[03:21:38]OFD Sender: No OFD packet to send [03:21:43]OFD Sender: No OFD packet to send [03:21:48]OFD Sender: No OFD packet to send [03:21:53]OFD Sender: No OFD packet to send [03:21:58]OFD Sender: No OFD packet to send [03:22:03]OFD Sender: No OFD packet to send [03:22:08]OFD Sender: No OFD packet to send [03:22:13]OFD Sender: No OFD packet to send [03:22:18]OFD Sender: No OFD packet to send [03:22:23]OFD Sender: No OFD packet to send [03:22:28]OFD Sender: No OFD packet to send [03:22:33]OFD Sender: No OFD packet to send [03:22:38]OFD Sender: No OFD packet to send [03:22:43]OFD Sender: No OFD packet to send [03:22:48]OFD Sender: No OFD packet to send [03:22:53]OFD Sender: No OFD packet to send [03:22:58]OFD Sender: No OFD packet to send [03:23:03]OFD Sender: No OFD packet to send [03:23:08]OFD Sender: No OFD packet to send [03:23:13]OFD Sender: No OFD packet to send [03:23:19]OFD Sender: No OFD packet to send [03:23:24]OFD Sender: No OFD packet to send [03:23:29]OFD Sender: No OFD packet to send [03:23:34]OFD Sender: No OFD packet to send [03:23:39]OFD Sender: No OFD packet to send [03:23:44]OFD Sender: No OFD packet to send [03:23:49]OFD Sender: No OFD packet to send [03:23:54]OFD Sender: No OFD packet to send [03:23:59]OFD Sender: No OFD packet to send [03:24:04]OFD Sender: No OFD packet to send [03:24:09]OFD Sender: No OFD packet to send [03:24:14]OFD Sender: No OFD packet to send [03:24:19]OFD Sender: No OFD packet to send [03:24:24]OFD Sender: No OFD packet to send [03:24:29]OFD Sender: No OFD packet to send [03:24:34]OFD Sender: No OFD packet to send [03:24:39]OFD Sender: No OFD packet to send [03:24:44]OFD Sender: No OFD packet to send [03:24:49]OFD Sender: No OFD packet to send [03:24:54]OFD Sender: No OFD packet to send [03:24:59]OFD Sender: No OFD packet to send [03:25:04]OFD Sender: No OFD packet to send [03:25:09]OFD Sender: No OFD packet to send [03:25:14]OFD Sender: No OFD packet to send [03:25:19]OFD Sender: No OFD packet to send [03:25:24]OFD Sender: No OFD packet to send [03:25:29]OFD Sender: No OFD packet to send [03:25:34]OFD Sender: No OFD packet to send [03:25:39]OFD Sender: No OFD packet to send [03:25:44]OFD Sender: No OFD packet to send [03:25:49]OFD Sender: No OFD packet to send [03:25:54]OFD Sender: No OFD packet to send [03:25:59]OFD Sender: No OFD packet to send [03:26:04]OFD Sender: No OFD packet to send [03:26:09]OFD Sender: No OFD packet to send [03:26:14]OFD Sender: No OFD packet to send [03:26:19]OFD Sender: No OFD packet to send [03:26:24]OFD Sender: No OFD packet to send [03:26:29]OFD Sender: No OFD packet to send [03:26:34]OFD Sender: No OFD packet to send [03:26:39]OFD Sender: No OFD packet to send [03:26:44]OFD Sender: No OFD packet to send [03:26:49]OFD Sender: No OFD packet to send [03:26:54]OFD Sender: No OFD packet to send [03:26:59]OFD Sender: No OFD packet to send [03:27:04]OFD Sender: No OFD packet to send [03:27:09]OFD Sender: No OFD packet to send [03:27:14]OFD Sender: No OFD packet to send [03:27:19]OFD Sender: No OFD packet to send [03:27:24]OFD Sender: No OFD packet to send [03:27:29]OFD Sender: No OFD packet to send [03:27:34]OFD Sender: No OFD packet to send [03:27:39]OFD Sender: No OFD packet to send [03:27:44]OFD Sender: No OFD packet to send [03:27:49]OFD Sender: No OFD packet to send [03:27:54]OFD Sender: No OFD packet to send [03:27:59]OFD Sender: No OFD packet to send [03:28:04]OFD Sender: No OFD packet to send [03:28:09]OFD Sender: No OFD packet to send [03:28:14]OFD Sender: No OFD packet to send [03:28:19]OFD Sender: No OFD packet to send [03:28:24]OFD Sender: No OFD packet to send [03:28:29]OFD Sender: No OFD packet to send [03:28:34]OFD Sender: No OFD packet to send [03:28:39]OFD Sender: No OFD packet to send [03:28:44]OFD Sender: No OFD packet to send [03:28:49]OFD Sender: No OFD packet to send [03:28:54]OFD Sender: No OFD packet to send [03:28:59]OFD Sender: No OFD packet to send [03:29:04]OFD Sender: No OFD packet to send [03:29:09]OFD Sender: No OFD packet to send [03:29:14]OFD Sender: No OFD packet to send [03:29:19]OFD Sender: No OFD packet to send [03:29:24]OFD Sender: No OFD packet to send [03:29:29]OFD Sender: No OFD packet to send [03:29:34]OFD Sender: No OFD packet to send [03:29:39]OFD Sender: No OFD packet to send [03:29:44]OFD Sender: No OFD packet to send [03:29:49]OFD Sender: No OFD packet to send [03:29:54]OFD Sender: No OFD packet to send [03:29:59]OFD Sender: No OFD packet to send [03:30:04]OFD Sender: No OFD packet to send [03:30:09]OFD Sender: No OFD packet to send [03:30:14]OFD Sender: No OFD packet to send [03:30:19]OFD Sender: No OFD packet to send [03:30:24]OFD Sender: No OFD packet to send [03:30:29]OFD Sender: No OFD packet to send [03:30:34]OFD Sender: No OFD packet to send [03:30:39]OFD Sender: No OFD packet to send [03:30:44]OFD Sender: No OFD packet to send [03:30:49]OFD Sender: No OFD packet to send [03:30:54]OFD Sender: No OFD packet to send [03:30:59]OFD Sender: No OFD packet to send [03:31:04]OFD Sender: No OFD packet to send [03:31:09]OFD Sender: No OFD packet to send [03:31:14]OFD Sender: No OFD packet to send [03:31:19]OFD Sender: No OFD packet to send [03:31:24]OFD Sender: No OFD packet to send [03:31:29]OFD Sender: No OFD packet to send [03:31:34]OFD Sender: No OFD packet to send [03:31:39]OFD Sender: No OFD packet to send [03:31:44]OFD Sender: No OFD packet to send [03:31:49]OFD Sender: No OFD packet to send [03:31:54]OFD Sender: No OFD packet to send [03:31:59]OFD Sender: No OFD packet to send [03:32:04]OFD Sender: No OFD packet to send [03:32:09]OFD Sender: No OFD packet to send [03:32:14]OFD Sender: No OFD packet to send [03:32:19]OFD Sender: No OFD packet to send [03:32:24]OFD Sender: No OFD packet to send [03:32:29]OFD Sender: No OFD packet to send [03:32:34]OFD Sender: No OFD packet to send [03:32:39]OFD Sender: No OFD packet to send [03:32:44]OFD Sender: No OFD packet to send [03:32:49]OFD Sender: No OFD packet to send [03:32:54]OFD Sender: No OFD packet to send [03:32:59]OFD Sender: No OFD packet to send [03:33:04]OFD Sender: No OFD packet to send [03:33:09]OFD Sender: No OFD packet to send [03:33:14]OFD Sender: No OFD packet to send [03:33:19]OFD Sender: No OFD packet to send [03:33:24]OFD Sender: No OFD packet to send [03:33:29]OFD Sender: No OFD packet to send [03:33:34]OFD Sender: No OFD packet to send [03:33:39]OFD Sender: No OFD packet to send [03:33:44]OFD Sender: No OFD packet to send [03:33:49]OFD Sender: No OFD packet to send [03:33:54]OFD Sender: No OFD packet to send [03:33:59]OFD Sender: No OFD packet to send [03:34:04]OFD Sender: No OFD packet to send [03:34:09]OFD Sender: No OFD packet to send [03:34:14]OFD Sender: No OFD packet to send [03:34:19]OFD Sender: No OFD packet to send [03:34:24]OFD Sender: No OFD packet to send [03:34:29]OFD Sender: No OFD packet to send [03:34:34]OFD Sender: No OFD packet to send [03:34:39]OFD Sender: No OFD packet to send [03:34:44]OFD Sender: No OFD packet to send [03:34:49]OFD Sender: No OFD packet to send [03:34:54]OFD Sender: No OFD packet to send [03:34:59]OFD Sender: No OFD packet to send [03:35:04]OFD Sender: No OFD packet to send [03:35:09]OFD Sender: No OFD packet to send [03:35:14]OFD Sender: No OFD packet to send [03:35:19]OFD Sender: No OFD packet to send [03:35:24]OFD Sender: No OFD packet to send [03:35:29]OFD Sender: No OFD packet to send [03:35:34]OFD Sender: No OFD packet to send [03:35:39]OFD Sender: No OFD packet to send [03:35:44]OFD Sender: No OFD packet to send [03:35:49]OFD Sender: No OFD packet to send [03:35:54]OFD Sender: No OFD packet to send [03:35:59]OFD Sender: No OFD packet to send [03:36:04]OFD Sender: No OFD packet to send [03:36:09]OFD Sender: No OFD packet to send [03:36:14]OFD Sender: No OFD packet to send [03:36:19]OFD Sender: No OFD packet to send [03:36:24]OFD Sender: No OFD packet to send [03:36:29]OFD Sender: No OFD packet to send [03:36:34]OFD Sender: No OFD packet to send [03:36:39]OFD Sender: No OFD packet to send [03:36:44]OFD Sender: No OFD packet to send [03:36:49]OFD Sender: No OFD packet to send [03:36:54]OFD Sender: No OFD packet to send [03:36:59]OFD Sender: No OFD packet to send [03:37:04]OFD Sender: No OFD packet to send [03:37:09]OFD Sender: No OFD packet to send [03:37:14]OFD Sender: No OFD packet to send [03:37:19]OFD Sender: No OFD packet to send [03:37:24]OFD Sender: No OFD packet to send [03:37:29]OFD Sender: No OFD packet to send [03:37:34]OFD Sender: No OFD packet to send [03:37:39]OFD Sender: No OFD packet to send [03:37:44]OFD Sender: No OFD packet to send [03:37:49]OFD Sender: No OFD packet to send [03:37:54]OFD Sender: No OFD packet to send [03:37:59]OFD Sender: No OFD packet to send [03:38:04]OFD Sender: No OFD packet to send [03:38:09]OFD Sender: No OFD packet to send [03:38:14]OFD Sender: No OFD packet to send [03:38:19]OFD Sender: No OFD packet to send [03:38:24]OFD Sender: No OFD packet to send [03:38:29]OFD Sender: No OFD packet to send [03:38: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:05]OFD Sender: No OFD packet to send [03:40:10]OFD Sender: No OFD packet to send [03:40:15]OFD Sender: No OFD packet to send [03:40:20]OFD Sender: No OFD packet to send [03:40:25]OFD Sender: No OFD packet to send [03:40:30]OFD Sender: No OFD packet to send [03:40:35]OFD Sender: No OFD packet to send [03:40:40]OFD Sender: No OFD packet to send [03:40:45]OFD Sender: No OFD packet to send [03:40:50]OFD Sender: No OFD packet to send [03:40:55]OFD Sender: No OFD packet to send [03:41:00]OFD Sender: No OFD packet to send [03:41:05]OFD Sender: No OFD packet to send [03:41:10]OFD Sender: No OFD packet to send [03:41:15]OFD Sender: No OFD packet to send [03:41:20]OFD Sender: No OFD packet to send [03:41:25]OFD Sender: No OFD packet to send [03:41:30]OFD Sender: No OFD packet to send [03:41:35]OFD Sender: No OFD packet to send [03:41:40]OFD Sender: No OFD packet to send [03:41:45]OFD Sender: No OFD packet to send [03:41:50]OFD Sender: No OFD packet to send [03:41:55]OFD Sender: No OFD packet to send [03:42:00]OFD Sender: No OFD packet to send [03:42:05]OFD Sender: No OFD packet to send [03:42:10]OFD Sender: No OFD packet to send [03:42:15]OFD Sender: No OFD packet to send [03:42:20]OFD Sender: No OFD packet to send [03:42:25]OFD Sender: No OFD packet to send [03:42:30]OFD Sender: No OFD packet to send [03:42:35]OFD Sender: No OFD packet to send [03:42:40]OFD Sender: No OFD packet to send [03:42:45]OFD Sender: No OFD packet to send [03:42:50]OFD Sender: No OFD packet to send [03:42:55]OFD Sender: No OFD packet to send [03:43:00]OFD Sender: No OFD packet to send [03:43:05]OFD Sender: No OFD packet to send [03:43:10]OFD Sender: No OFD packet to send [03:43:15]OFD Sender: No OFD packet to send [03:43:20]OFD Sender: No OFD packet to send [03:43:25]OFD Sender: No OFD packet to send [03:43:30]OFD Sender: No OFD packet to send [03:43:35]OFD Sender: No OFD packet to send [03:43:40]OFD Sender: No OFD packet to send [03:43:45]OFD Sender: No OFD packet to send [03:43:50]OFD Sender: No OFD packet to send [03:43:55]OFD Sender: No OFD packet to send [03:44:00]OFD Sender: No OFD packet to send [03:44:05]OFD Sender: No OFD packet to send [03:44:10]OFD Sender: No OFD packet to send [03:44:15]OFD Sender: No OFD packet to send [03:44:20]OFD Sender: No OFD packet to send [03:44:25]OFD Sender: No OFD packet to send [03:44:30]OFD Sender: No OFD packet to send [03:44:35]OFD Sender: No OFD packet to send [03:44:40]OFD Sender: No OFD packet to send [03:44:45]OFD Sender: No OFD packet to send [03:44:50]OFD Sender: No OFD packet to send [03:44:55]OFD Sender: No OFD packet to send [03:45:00]OFD Sender: No OFD packet to send [03:45:05]OFD Sender: No OFD packet to send [03:45:10]OFD Sender: No OFD packet to send [03:45:15]OFD Sender: No OFD packet to send [03:45:20]OFD Sender: No OFD packet to send [03:45:25]OFD Sender: No OFD packet to send [03:45:30]OFD Sender: No OFD packet to send [03:45:35]OFD Sender: No OFD packet to send [03:45:40]OFD Sender: No OFD packet to send [03:45:45]OFD Sender: No OFD packet to send [03:45:50]OFD Sender: No OFD packet to send [03:45:55]OFD Sender: No OFD packet to send [03:46:00]OFD Sender: No OFD packet to send [03:46:05]OFD Sender: No OFD packet to send [03:46:10]OFD Sender: No OFD packet to send [03:46:15]OFD Sender: No OFD packet to send [03:46:20]OFD Sender: No OFD packet to send [03:46:25]OFD Sender: No OFD packet to send [03:46:30]OFD Sender: No OFD packet to send [03:46:35]OFD Sender: No OFD packet to send [03:46:40]OFD Sender: No OFD packet to send [03:46:45]OFD Sender: No OFD packet to send [03:46:50]OFD Sender: No OFD packet to send [03:46:55]OFD Sender: No OFD packet to send [03:47:00]OFD Sender: No OFD packet to send [03:47:05]OFD Sender: No OFD packet to send [03:47:09]accept exits with 9 [03:47:09]New connection [03:47:09]New thread 3067428196 created [03:47:09]Thread 3067571556 joined [03:47:09]Waiting for new connection... [03:47:09] Sock 9.Parse request [03:47:09]Sock 9.Check first char [03:47:09]Sock 9.First char is OK [03:47:09]request: POST /json_proto HTTP/1.0 [03:47:09]Method: POST [03:47:09]URL: /json_proto [03:47:09]Method is POST - this is cgi request [03:47:09]url: /json_proto [03:47:09]query_string will be loaded in cgi processing [03:47:09]execute_cgi json_proto POST (null) [03:47:09]execute_cgi path=json_proto method=POST [03:47:09]POST find Content-Length [03:47:09]Host: 172.17.56.4:8080 [03:47:09]Content-Length: 677 [03:47:09]Content-Type: application/json [03:47:09] [03:47:09]POST finish read [03:47:09]Found Content-Length = 677 [03:47:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458907", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:47:09]execute_script... [03:47: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)458907", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:47:09]POST & json_proto [03:47:09]process_json_proto [03:47:09]json parsed OK: [03:47:09]protocol is kg_v1.0 [03:47:09]action value=close_receipt [03:47:09]process_action close_receipt [03:47:09]cmd_close_receipt [03:47:09]MH_GetDate [03:47:09]Write to MH i2c: F0 00 00 99 04 8C [03:47:09]Write i2c OK [03:47:09]MH_I2C_Read... [03:47:09]Read from MH i2c: F0 [03:47:09]MH_I2C_Read... [03:47:09]Read from MH i2c: F0 09 00 [03:47:09]MH_I2C_Read... [03:47:09]Read from MH i2c: F0 09 00 99 04 00 3E 4A 93 66 C9 DC B2 64 D1 [03:47:09]GetLastDocTimeStamp 1720926586 [03:47:09]current date 1720928830 [03:47:09]FM_GetShiftState [03:47:09]SAM_PROTO_GetShiftState [03:47:09]wFMCommunicate request_size=4 [03:47:09]MH_SAM_APDU [03:47:09]CAPDU: 80 13 01 00 [03:47:09]Write to MH i2c: E2 08 00 9A 04 80 13 01 00 00 00 00 00 1B [03:47:09]Write i2c OK [03:47:09]MH_I2C_Read... [03:47:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:47:09]Read from MH i2c: E2 [03:47:09]MH_I2C_Read... [03:47:09]Read from MH i2c: E2 0E 00 [03:47:09]MH_I2C_Read... [03:47:09]Read from MH i2c: E2 0E 00 9A 04 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 9B [03:47:09]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [03:47:09]wFMCommunicate OK [03:47:09]SAM_PROTO_GetShiftState done [03:47:09]FM_GetShiftState done [03:47:09]opened in 1720917342 [03:47:09]opened+sec_in_day 1721003742 [03:47:09]quantity*price = 30004 [03:47:09]sum+1 = 30006 [03:47:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 12 14.07.2024 03:47 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164814 ФПД: 74808585161513 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T034710&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164814&fm=74808585161513&tin=02508201610067®Number=0000000000090829&sum=30000 [03:47:10]StoreToDocumentArchive [03:47:10]shift 447 fd 164814 [03:47:10]save to /storage/0447/doc_00164814 [03:47:10]save last doc name /storage/0447/doc_00164814 to /storage/kkm_last_doc_name [03:47:10]save OK [03:47:10]Clear old archive folders... [03:47:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:47:10]tlvbuf is 0165C210 [03:47:10]SAM_PROTO_ClearQueue [03:47:10]wFMCommunicate request_size=4 [03:47:10]MH_SAM_APDU [03:47:10]CAPDU: 80 09 00 00 [03:47:10]Write to MH i2c: E2 08 00 A7 04 80 09 00 00 00 00 00 00 1D [03:47:10]Write i2c OK [03:47:10]MH_I2C_Read... [03:47:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:47:10]Read from MH i2c: E2 [03:47:10]MH_I2C_Read... [03:47:10]Read from MH i2c: E2 03 00 [03:47:10]MH_I2C_Read... [03:47:10]Read from MH i2c: E2 03 00 A7 04 00 90 00 1F [03:47:10]RAPDU: 90 00 [03:47:10]wFMCommunicate OK [03:47:10]SAM_PROTO_ClearQueue done [03:47:10]KKMCreateOFDPacket [03:47:10]OFDProtocolAddRootSTLVToBuf [03:47:10]FM_MakeSignedData [03:47:10]FM_MakeSignedData [03:47:10]SAM_PROTO_SignData [03:47:10]wFMCommunicate request_size=4 [03:47:10]MH_SAM_APDU [03:47:10]CAPDU: 80 0D 01 02 [03:47:10]Write to MH i2c: E2 08 00 A8 04 80 0D 01 02 00 00 00 00 25 [03:47:10]Write i2c OK [03:47:10]MH_I2C_Read... [03:47:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:47:10]Read from MH i2c: E2 [03:47:10]MH_I2C_Read... [03:47:10]Read from MH i2c: E2 03 00 [03:47:10]MH_I2C_Read... [03:47:10]Read from MH i2c: E2 03 00 A8 04 00 90 00 20 [03:47:10]RAPDU: 90 00 [03:47:10]wFMCommunicate OK [03:47:10]wFMCommunicate request_size=255 [03:47:10]MH_SAM_APDU [03:47:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 3E 4A 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CE 83 02 00 35 04 06 00 44 [03:47:10]Write to MH i2c: E2 02 01 A9 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 3E 4A 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CE 83 02 00 35 04 06 00 44 00 00 43 [03:47:10]Write i2c OK [03:47:10]MH_I2C_Read... [03:47:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:47:11]Read from MH i2c: E2 [03:47:11]MH_I2C_Read... [03:47:11]Read from MH i2c: E2 03 00 [03:47:11]MH_I2C_Read... [03:47:11]Read from MH i2c: E2 03 00 A9 04 00 90 00 21 [03:47:11]RAPDU: 90 00 [03:47:11]wFMCommunicate OK [03:47:11]wFMCommunicate request_size=10 [03:47:11]MH_SAM_APDU [03:47:11]CAPDU: 80 0D 02 02 05 09 BB 25 0B 29 [03:47:11]Write to MH i2c: E2 0D 00 AA 04 80 0D 02 02 05 00 09 BB 25 0B 29 00 00 4F [03:47:11]Write i2c OK [03:47:11]MH_I2C_Read... [03:47:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:47:11]Read from MH i2c: E2 [03:47:11]MH_I2C_Read... [03:47:11]Read from MH i2c: E2 03 00 [03:47:11]MH_I2C_Read... [03:47:11]Read from MH i2c: E2 03 00 AA 04 00 90 00 22 [03:47:11]RAPDU: 90 00 [03:47:11]wFMCommunicate OK [03:47:11]wFMCommunicate request_size=4 [03:47:11]MH_SAM_APDU [03:47:11]CAPDU: 80 0D 03 02 [03:47:11]Write to MH i2c: E2 08 00 AB 04 80 0D 03 02 00 00 00 00 2A [03:47:11]Write i2c OK [03:47:11]MH_I2C_Read... [03:47:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:47:11]Read from MH i2c: E2 [03:47:11]MH_I2C_Read... [03:47:11]Read from MH i2c: E2 0B 00 [03:47:11]MH_I2C_Read... [03:47:11]Read from MH i2c: E2 0B 00 AB 04 00 2B 2E 20 8A 45 18 EF B2 90 00 2C [03:47:11]RAPDU: 2B 2E 20 8A 45 18 EF B2 90 00 [03:47:11]wFMCommunicate OK [03:47:11]SAM_PROTO_SignData done [03:47:11]FM_MakeSignedData done [03:47:11]CreateOFDProtocolMessage [03:47:11]wFMCommunicate request_size=4 [03:47:11]MH_SAM_APDU [03:47:11]CAPDU: 80 11 00 00 [03:47:11]Write to MH i2c: E2 08 00 AC 04 80 11 00 00 00 00 00 00 2A [03:47:11]Write i2c OK [03:47:11]MH_I2C_Read... [03:47:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:47:11]Read from MH i2c: E2 [03:47:11]MH_I2C_Read... [03:47:11]Read from MH i2c: E2 17 00 [03:47:11]MH_I2C_Read... [03:47:11]Read from MH i2c: E2 17 00 AC 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 80 [03:47:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [03:47:11]wFMCommunicate OK [03:47:11]CreateOFDProtocolMessage done [03:47:11]OFDSenderStorePacket 164814 [03:47:11]StoreOFDPacket docnum=164814 [03:47:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 A2 16 07 01 6F 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 3E 4A 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CE 83 02 00 35 04 06 00 44 09 BB 25 0B 29 2B 2E 20 8A 45 18 EF B2 [03:47:11]CheckFolder [03:47:11]dirname=/storage/ofd_packets [03:47:11]CheckFolder done [03:47:11]ProducePacketName [03:47:11]name=ofd_packets/00164814 [03:47:11]NVStorageSaveData ofd_packets/00164814 [03:47:11]File name is /storage/ofd_packets/00164814 [03:47:11]Write 301 bytes [03:47:11]NVStorageSaveData done [03:47:11]OFDSenderStorePacket done [03:47:11]KKMCreateOFDPacket done [03:47:11]NVStorageSaveData kkm_last_timestamp [03:47:11]File name is /storage/kkm_last_timestamp [03:47:11]Write 4 bytes [03:47:11]NVStorageSaveData done [03:47:11]ExternCall_PrintAddStr [03:47:11]wPrintStart [03:47:11]Write to MH i2c: 01 00 00 AD 04 B1 [03:47:11]Write i2c OK [03:47:11]MH_I2C_Read... [03:47:11]Read from MH i2c: 01 [03:47:11]MH_I2C_Read... [03:47:11]Read from MH i2c: 01 07 00 [03:47:11]MH_I2C_Read... [03:47:11]Read from MH i2c: 01 07 00 AD 04 00 00 00 00 00 FF 0F C6 [03:47:11]RasterBufferAndPrint [03:47:11]line Счет N : (1)458907 [03:47:11]line ИНН: 02508201610067 [03:47:11]line Контрольно-Кассовый Чек [03:47:11]line ПРОДАЖА [03:47:11]line ТРК (МРК, ГНК) : 12 [03:47:11]line Товар: 2710124130 [03:47:11]line Аи-92-К-5 [03:47:11]line 4.560 * 65.80 [03:47:11]line = 300.05 [03:47:11]line НДС 12% НСП 1% [03:47:11]line > о реализуемом товаре [03:47:11]line ОКРУГЛЕНИЕ: -0.05 [03:47:11]line ИТОГО: 300.00 [03:47:11]line Внесено: 300.00 [03:47:11]line СДАЧА: 0.00 [03:47:11]line НСП 1% : 2.65 [03:47:11]line НДС 12% : 31.86 [03:47:11]line Наличными: 300.00 [03:47:11]line Безнал.: 0.00 [03:47:11]line Место: АЗС № 72 "Партнер Нефть" [03:47:11]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [03:47:11]line СНО: Общий режим [03:47:11]line Чек 12 14.07.2024 03:47 [03:47:11]line Смена: 447 ФФД: 1.0 [03:47:11]line ЗНМ: 0300000160 [03:47:11]line РНМ: 0000000000090829 [03:47:11]line Версия ККМ: 001 [03:47:11]line ФМ: 0000000000874718 [03:47:11]line ФД: 164814 [03:47:11]line ФПД: 74808585161513 [03:47:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T034710&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164814&fm=74808585161513&tin=02508201610067®Number=0000000000090829&sum=30000 [03:47:11]OFD Sender: Processing packet 164814 [packets to send 104, broken 103] [03:47:11]ProducePacketName [03:47:11]name=ofd_packets/00164814 [03:47:11]OFD Sender: To server: pG, [03:47:11]CommunicateWithHost lk.salyk.kg:30040 [03:47:11]ConnectInit lk.salyk.kg [03:47:11]written 0, free lines is 4095 [03:47:11]Connected sock=11 [03:47:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 A2 16 07 01 6F 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 3E 4A 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CE 83 02 00 35 04 06 00 44 09 BB 25 0B 29 2B 2E 20 8A 45 18 EF B2 [03:47:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 53 95 47 00 59 DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CE 83 02 00 F4 03 04 00 CD F0 92 66 B6 04 01 00 00 FA 16 1C 08 C3 F9 A8 EA [03:47:11]CommunicateWithHost err = 0 [03:47:11]CheckOFDResponse [03:47:11]1017 (14) - 77093643461234 [03:47:11]1041 (16) - 0000000000874718 [03:47:11]1040 (4) - 164814 [03:47:11]1012 (4) - 13.07.2024 21:25 [03:47:11]1206 (1) - 0 [03:47:11]OFD Sender: Remove packet 164814 [03:47:11]ProducePacketName [03:47:11]name=ofd_packets/00164814 [03:47:11]NVStorageDeleteData [03:47:12]Write to MH i2c: 01 00 00 D7 04 DB [03:47:12]Write i2c OK [03:47:12]MH_I2C_Read... [03:47:12]Read from MH i2c: 01 [03:47:12]MH_I2C_Read... [03:47:12]Read from MH i2c: 01 07 00 [03:47:12]MH_I2C_Read... [03:47:12]Read from MH i2c: 01 07 00 D7 04 00 00 00 00 00 ED 0C DB [03:47:12]RasterBufferAndPrint [03:47:12]line [03:47:12]line [03:47:12]line [03:47:12]line [03:47:12]line [03:47:12]written 0, free lines is 3316 [03:47:12]MH_Cut [03:47:12]Write to MH i2c: D1 01 00 DE 04 01 B4 [03:47:12]Write i2c OK [03:47:12]MH_I2C_Read... [03:47:12]Read from MH i2c: D1 [03:47:12]MH_I2C_Read... [03:47:12]Read from MH i2c: D1 01 00 [03:47:12]MH_I2C_Read... [03:47:12]Read from MH i2c: D1 01 00 DE 04 00 B3 [03:47:12]Write to MH i2c: 01 00 00 DF 04 E3 [03:47:12]Write i2c OK [03:47:12]MH_I2C_Read... [03:47:12]OFD Sender: No OFD packet to send [03:47:12]*** Cut start [03:47:12]*** Partial cut [03:47:12]*** CUTSNS_PIN = 1 [03:47:12]*** CUTSNS_PIN = 0 [03:47:12]*** Brake cut motor [03:47:13]Read from MH i2c: 01 [03:47:13]MH_I2C_Read... [03:47:13]*** Stop cut motor [03:47:13]*** Cut end [03:47:13]Read from MH i2c: 01 07 00 [03:47:13]MH_I2C_Read... [03:47:13]Read from MH i2c: 01 07 00 DF 04 00 00 00 00 00 FF 0F F8 [03:47:13]process_action close_receipt done [03:47:13]requested_data is exist [03:47:13]produce_requested_data [03:47:13]requested_item fm.sn is exist - process it [03:47:13]wFMCommunicate request_size=4 [03:47:13]MH_SAM_APDU [03:47:13]CAPDU: 80 11 00 00 [03:47:13]Write to MH i2c: E2 08 00 E0 04 80 11 00 00 00 00 00 00 5E [03:47:13]Write i2c OK [03:47:13]MH_I2C_Read... [03:47:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:47:13]Read from MH i2c: E2 [03:47:13]MH_I2C_Read... [03:47:13]Read from MH i2c: E2 17 00 [03:47:13]MH_I2C_Read... [03:47:13]Read from MH i2c: E2 17 00 E0 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B4 [03:47:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [03:47:13]wFMCommunicate OK [03:47:13]requested_item fd.num is exist - process it [03:47:13]SAM_PROTO_GetFieldsCounters [03:47:13]wFMCommunicate request_size=4 [03:47:13]MH_SAM_APDU [03:47:13]CAPDU: 80 13 00 00 [03:47:13]Write to MH i2c: E2 08 00 E1 04 80 13 00 00 00 00 00 00 61 [03:47:13]Write i2c OK [03:47:13]MH_I2C_Read... [03:47:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:47:13]Read from MH i2c: E2 [03:47:13]MH_I2C_Read... [03:47:13]Read from MH i2c: E2 62 00 [03:47:13]MH_I2C_Read... [03:47:13]Read from MH i2c: E2 62 00 E1 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 CE 83 02 00 0E 04 04 00 BF 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 BF [03:47:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 CE 83 02 00 0E 04 04 00 BF 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:47:13]wFMCommunicate OK [03:47:13]SAM_PROTO_GetFieldsCounters done [03:47:13]requested_item shift.num is exist - process it [03:47:13]requested_item shift.opened is exist - process it [03:47:13]req_shift_opened [03:47:13]FM_GetShiftState [03:47:13]SAM_PROTO_GetShiftState [03:47:13]wFMCommunicate request_size=4 [03:47:13]MH_SAM_APDU [03:47:13]CAPDU: 80 13 01 00 [03:47:13]Write to MH i2c: E2 08 00 E2 04 80 13 01 00 00 00 00 00 63 [03:47:13]Write i2c OK [03:47:13]MH_I2C_Read... [03:47:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:47:13]Read from MH i2c: E2 [03:47:13]MH_I2C_Read... [03:47:13]Read from MH i2c: E2 0E 00 [03:47:13]MH_I2C_Read... [03:47:13]Read from MH i2c: E2 0E 00 E2 04 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 E3 [03:47:13]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [03:47:13]wFMCommunicate OK [03:47:13]SAM_PROTO_GetShiftState done [03:47:13]FM_GetShiftState done [03:47:13]req_shift_opened done [03:47:13]requested_item shift.open_date is exist - process it [03:47:13]req_shift_open_date [03:47:13]req_shift_open_date done [03:47:13]produce_requested_data done [03:47:13]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164814,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [03:47:13]process_action_free close_receipt [03:47:13]json_value_free [03:47:13]json_value_free done [03:47:13]process_json_proto returns [03:47:13]Send response to host [03:47:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164814,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [03:47:13]free response buf [03:47:13]execute_script done [03:47:13]execute_script returns [03:47:13]free content buf [03:47:13]Sock 9.Close socket [03:47:13]Sock 9.Thread stoped [03:47:17]OFD Sender: No OFD packet to send [03:47:22]OFD Sender: No OFD packet to send [03:47:27]OFD Sender: No OFD packet to send [03:47:32]OFD Sender: No OFD packet to send [03:47:37]OFD Sender: No OFD packet to send [03:47:42]OFD Sender: No OFD packet to send [03:47:47]OFD Sender: No OFD packet to send [03:47:52]OFD Sender: No OFD packet to send [03:47:57]OFD Sender: No OFD packet to send [03:48:02]OFD Sender: No OFD packet to send [03:48:07]OFD Sender: No OFD packet to send [03:48:12]OFD Sender: No OFD packet to send [03:48:17]OFD Sender: No OFD packet to send [03:48:22]OFD Sender: No OFD packet to send [03:48:27]OFD Sender: No OFD packet to send [03:48:32]OFD Sender: No OFD packet to send [03:48:37]OFD Sender: No OFD packet to send [03:48:42]OFD Sender: No OFD packet to send [03:48:47]OFD Sender: No OFD packet to send [03:48:52]OFD Sender: No OFD packet to send [03:48:57]OFD Sender: No OFD packet to send [03:49:02]OFD Sender: No OFD packet to send [03:49:07]OFD Sender: No OFD packet to send [03:49:12]OFD Sender: No OFD packet to send [03:49:17]OFD Sender: No OFD packet to send [03:49:22]OFD Sender: No OFD packet to send [03:49:27]OFD Sender: No OFD packet to send [03:49:32]OFD Sender: No OFD packet to send [03:49:37]OFD Sender: No OFD packet to send [03:49:42]OFD Sender: No OFD packet to send [03:49:47]OFD Sender: No OFD packet to send [03:49:52]OFD Sender: No OFD packet to send [03:49:57]OFD Sender: No OFD packet to send [03:50:02]OFD Sender: No OFD packet to send [03:50:07]OFD Sender: No OFD packet to send [03:50:12]OFD Sender: No OFD packet to send [03:50:17]OFD Sender: No OFD packet to send [03:50:22]OFD Sender: No OFD packet to send [03:50:27]OFD Sender: No OFD packet to send [03:50:32]OFD Sender: No OFD packet to send [03:50:37]OFD Sender: No OFD packet to send [03:50:42]OFD Sender: No OFD packet to send [03:50:47]OFD Sender: No OFD packet to send [03:50:52]OFD Sender: No OFD packet to send [03:50:57]OFD Sender: No OFD packet to send [03:51:02]OFD Sender: No OFD packet to send [03:51:07]OFD Sender: No OFD packet to send [03:51:12]OFD Sender: No OFD packet to send [03:51:17]OFD Sender: No OFD packet to send [03:51:22]OFD Sender: No OFD packet to send [03:51:27]OFD Sender: No OFD packet to send [03:51:32]OFD Sender: No OFD packet to send [03:51:37]OFD Sender: No OFD packet to send [03:51:42]OFD Sender: No OFD packet to send [03:51:47]OFD Sender: No OFD packet to send [03:51:52]OFD Sender: No OFD packet to send [03:51:57]OFD Sender: No OFD packet to send [03:52:02]OFD Sender: No OFD packet to send [03:52:07]OFD Sender: No OFD packet to send [03:52:12]OFD Sender: No OFD packet to send [03:52:17]OFD Sender: No OFD packet to send [03:52:22]OFD Sender: No OFD packet to send [03:52:27]OFD Sender: No OFD packet to send [03:52:32]OFD Sender: No OFD packet to send [03:52:37]OFD Sender: No OFD packet to send [03:52:42]OFD Sender: No OFD packet to send [03:52:47]OFD Sender: No OFD packet to send [03:52:52]OFD Sender: No OFD packet to send [03:52:57]OFD Sender: No OFD packet to send [03:53:02]OFD Sender: No OFD packet to send [03:53:07]OFD Sender: No OFD packet to send [03:53:12]OFD Sender: No OFD packet to send [03:53:17]OFD Sender: No OFD packet to send [03:53:22]OFD Sender: No OFD packet to send [03:53:27]OFD Sender: No OFD packet to send [03:53:32]OFD Sender: No OFD packet to send [03:53:37]OFD Sender: No OFD packet to send [03:53:42]OFD Sender: No OFD packet to send [03:53:47]OFD Sender: No OFD packet to send [03:53:52]OFD Sender: No OFD packet to send [03:53:57]OFD Sender: No OFD packet to send [03:54:02]OFD Sender: No OFD packet to send [03:54:07]OFD Sender: No OFD packet to send [03:54:12]OFD Sender: No OFD packet to send [03:54:17]OFD Sender: No OFD packet to send [03:54:22]OFD Sender: No OFD packet to send [03:54:27]OFD Sender: No OFD packet to send [03:54:32]OFD Sender: No OFD packet to send [03:54:37]OFD Sender: No OFD packet to send [03:54:42]OFD Sender: No OFD packet to send [03:54:47]OFD Sender: No OFD packet to send [03:54:52]OFD Sender: No OFD packet to send [03:54:57]OFD Sender: No OFD packet to send [03:55:02]OFD Sender: No OFD packet to send [03:55:07]OFD Sender: No OFD packet to send [03:55:12]OFD Sender: No OFD packet to send [03:55:17]OFD Sender: No OFD packet to send [03:55:22]OFD Sender: No OFD packet to send [03:55:27]OFD Sender: No OFD packet to send [03:55:32]OFD Sender: No OFD packet to send [03:55:37]OFD Sender: No OFD packet to send [03:55:42]OFD Sender: No OFD packet to send [03:55:47]OFD Sender: No OFD packet to send [03:55:52]OFD Sender: No OFD packet to send [03:55:57]OFD Sender: No OFD packet to send [03:56:02]OFD Sender: No OFD packet to send [03:56:07]OFD Sender: No OFD packet to send [03:56:12]OFD Sender: No OFD packet to send [03:56:17]OFD Sender: No OFD packet to send [03:56:22]OFD Sender: No OFD packet to send [03:56:27]OFD Sender: No OFD packet to send [03:56:32]OFD Sender: No OFD packet to send [03:56:37]OFD Sender: No OFD packet to send [03:56:42]OFD Sender: No OFD packet to send [03:56:47]OFD Sender: No OFD packet to send [03:56:52]OFD Sender: No OFD packet to send [03:56:57]OFD Sender: No OFD packet to send [03:57:02]OFD Sender: No OFD packet to send [03:57:07]OFD Sender: No OFD packet to send [03:57:12]OFD Sender: No OFD packet to send [03:57:18]OFD Sender: No OFD packet to send [03:57:23]OFD Sender: No OFD packet to send [03:57:28]OFD Sender: No OFD packet to send [03:57:33]OFD Sender: No OFD packet to send [03:57:38]OFD Sender: No OFD packet to send [03:57:43]OFD Sender: No OFD packet to send [03:57:48]OFD Sender: No OFD packet to send [03:57:53]OFD Sender: No OFD packet to send [03:57:58]OFD Sender: No OFD packet to send [03:58:03]OFD Sender: No OFD packet to send [03:58:08]OFD Sender: No OFD packet to send [03:58:13]OFD Sender: No OFD packet to send [03:58:18]OFD Sender: No OFD packet to send [03:58:23]OFD Sender: No OFD packet to send [03:58:28]OFD Sender: No OFD packet to send [03:58:33]OFD Sender: No OFD packet to send [03:58:38]OFD Sender: No OFD packet to send [03:58:43]OFD Sender: No OFD packet to send [03:58:48]OFD Sender: No OFD packet to send [03:58:53]OFD Sender: No OFD packet to send [03:58:58]OFD Sender: No OFD packet to send [03:59:03]OFD Sender: No OFD packet to send [03:59:08]OFD Sender: No OFD packet to send [03:59:13]OFD Sender: No OFD packet to send [03:59:18]OFD Sender: No OFD packet to send [03:59:23]OFD Sender: No OFD packet to send [03:59:28]OFD Sender: No OFD packet to send [03:59:33]OFD Sender: No OFD packet to send [03:59:38]OFD Sender: No OFD packet to send [03:59:43]OFD Sender: No OFD packet to send [03:59:48]OFD Sender: No OFD packet to send [03:59:53]OFD Sender: No OFD packet to send [03:59:58]OFD Sender: No OFD packet to send [04:00:03]OFD Sender: No OFD packet to send [04:00:08]OFD Sender: No OFD packet to send [04:00:13]OFD Sender: No OFD packet to send [04:00:18]OFD Sender: No OFD packet to send [04:00:23]OFD Sender: No OFD packet to send [04:00:28]OFD Sender: No OFD packet to send [04:00:33]OFD Sender: No OFD packet to send [04:00:38]OFD Sender: No OFD packet to send [04:00:43]OFD Sender: No OFD packet to send [04:00:48]OFD Sender: No OFD packet to send [04:00:53]OFD Sender: No OFD packet to send [04:00:58]OFD Sender: No OFD packet to send [04:01:03]OFD Sender: No OFD packet to send [04:01:08]OFD Sender: No OFD packet to send [04:01:13]OFD Sender: No OFD packet to send [04:01:18]OFD Sender: No OFD packet to send [04:01:23]OFD Sender: No OFD packet to send [04:01:28]OFD Sender: No OFD packet to send [04:01:33]OFD Sender: No OFD packet to send [04:01:38]OFD Sender: No OFD packet to send [04:01:43]OFD Sender: No OFD packet to send [04:01:48]OFD Sender: No OFD packet to send [04:01:53]OFD Sender: No OFD packet to send [04:01:58]OFD Sender: No OFD packet to send [04:02:03]OFD Sender: No OFD packet to send [04:02:08]OFD Sender: No OFD packet to send [04:02:13]OFD Sender: No OFD packet to send [04:02:18]OFD Sender: No OFD packet to send [04:02:23]OFD Sender: No OFD packet to send [04:02:28]OFD Sender: No OFD packet to send [04:02:33]OFD Sender: No OFD packet to send [04:02:38]OFD Sender: No OFD packet to send [04:02:43]OFD Sender: No OFD packet to send [04:02:48]OFD Sender: No OFD packet to send [04:02:53]OFD Sender: No OFD packet to send [04:02:58]OFD Sender: No OFD packet to send [04:03:03]OFD Sender: No OFD packet to send [04:03:08]OFD Sender: No OFD packet to send [04:03:13]OFD Sender: No OFD packet to send [04:03:18]OFD Sender: No OFD packet to send [04:03:23]OFD Sender: No OFD packet to send [04:03:28]OFD Sender: No OFD packet to send [04:03:33]OFD Sender: No OFD packet to send [04:03:38]OFD Sender: No OFD packet to send [04:03:43]OFD Sender: No OFD packet to send [04:03:48]OFD Sender: No OFD packet to send [04:03:53]OFD Sender: No OFD packet to send [04:03:58]OFD Sender: No OFD packet to send [04:04:03]OFD Sender: No OFD packet to send [04:04:08]OFD Sender: No OFD packet to send [04:04:13]OFD Sender: No OFD packet to send [04:04:18]OFD Sender: No OFD packet to send [04:04:23]OFD Sender: No OFD packet to send [04:04:28]OFD Sender: No OFD packet to send [04:04:33]OFD Sender: No OFD packet to send [04:04:38]OFD Sender: No OFD packet to send [04:04:43]OFD Sender: No OFD packet to send [04:04:48]OFD Sender: No OFD packet to send [04:04:53]OFD Sender: No OFD packet to send [04:04:58]OFD Sender: No OFD packet to send [04:05:03]OFD Sender: No OFD packet to send [04:05:08]OFD Sender: No OFD packet to send [04:05:13]OFD Sender: No OFD packet to send [04:05:18]OFD Sender: No OFD packet to send [04:05:23]OFD Sender: No OFD packet to send [04:05:28]OFD Sender: No OFD packet to send [04:05:33]OFD Sender: No OFD packet to send [04:05:38]OFD Sender: No OFD packet to send [04:05:43]OFD Sender: No OFD packet to send [04:05:48]OFD Sender: No OFD packet to send [04:05:53]OFD Sender: No OFD packet to send [04:05:58]OFD Sender: No OFD packet to send [04:06:03]OFD Sender: No OFD packet to send [04:06:08]OFD Sender: No OFD packet to send [04:06:13]OFD Sender: No OFD packet to send [04:06:18]OFD Sender: No OFD packet to send [04:06:23]OFD Sender: No OFD packet to send [04:06:28]OFD Sender: No OFD packet to send [04:06:33]OFD Sender: No OFD packet to send [04:06:38]OFD Sender: No OFD packet to send [04:06:43]OFD Sender: No OFD packet to send [04:06:48]OFD Sender: No OFD packet to send [04:06:53]OFD Sender: No OFD packet to send [04:06:58]OFD Sender: No OFD packet to send [04:07:03]OFD Sender: No OFD packet to send [04:07:08]OFD Sender: No OFD packet to send [04:07:13]OFD Sender: No OFD packet to send [04:07:18]OFD Sender: No OFD packet to send [04:07:23]OFD Sender: No OFD packet to send [04:07:28]OFD Sender: No OFD packet to send [04:07:33]OFD Sender: No OFD packet to send [04:07:38]OFD Sender: No OFD packet to send [04:07:43]OFD Sender: No OFD packet to send [04:07:48]OFD Sender: No OFD packet to send [04:07:53]OFD Sender: No OFD packet to send [04:07:58]OFD Sender: No OFD packet to send [04:08:03]OFD Sender: No OFD packet to send [04:08:08]OFD Sender: No OFD packet to send [04:08:13]OFD Sender: No OFD packet to send [04:08:18]OFD Sender: No OFD packet to send [04:08:23]OFD Sender: No OFD packet to send [04:08:28]OFD Sender: No OFD packet to send [04:08:33]OFD Sender: No OFD packet to send [04:08:38]OFD Sender: No OFD packet to send [04:08:43]OFD Sender: No OFD packet to send [04:08:48]OFD Sender: No OFD packet to send [04:08:53]OFD Sender: No OFD packet to send [04:08:58]OFD Sender: No OFD packet to send [04:09:03]OFD Sender: No OFD packet to send [04:09:08]OFD Sender: No OFD packet to send [04:09:13]OFD Sender: No OFD packet to send [04:09:18]OFD Sender: No OFD packet to send [04:09:23]OFD Sender: No OFD packet to send [04:09:28]OFD Sender: No OFD packet to send [04:09:33]OFD Sender: No OFD packet to send [04:09:38]OFD Sender: No OFD packet to send [04:09:43]OFD Sender: No OFD packet to send [04:09:48]OFD Sender: No OFD packet to send [04:09:53]OFD Sender: No OFD packet to send [04:09:58]OFD Sender: No OFD packet to send [04:10:03]OFD Sender: No OFD packet to send [04:10:08]OFD Sender: No OFD packet to send [04:10:13]OFD Sender: No OFD packet to send [04:10:18]OFD Sender: No OFD packet to send [04:10:23]OFD Sender: No OFD packet to send [04:10:28]OFD Sender: No OFD packet to send [04:10:33]OFD Sender: No OFD packet to send [04:10:38]OFD Sender: No OFD packet to send [04:10:43]OFD Sender: No OFD packet to send [04:10:48]OFD Sender: No OFD packet to send [04:10:53]OFD Sender: No OFD packet to send [04:10:58]OFD Sender: No OFD packet to send [04:11:03]OFD Sender: No OFD packet to send [04:11:08]OFD Sender: No OFD packet to send [04:11:13]OFD Sender: No OFD packet to send [04:11:18]OFD Sender: No OFD packet to send [04:11:23]OFD Sender: No OFD packet to send [04:11:28]OFD Sender: No OFD packet to send [04:11:33]OFD Sender: No OFD packet to send [04:11:38]OFD Sender: No OFD packet to send [04:11:43]OFD Sender: No OFD packet to send [04:11:48]OFD Sender: No OFD packet to send [04:11:53]OFD Sender: No OFD packet to send [04:11:58]OFD Sender: No OFD packet to send [04:12:03]OFD Sender: No OFD packet to send [04:12:08]OFD Sender: No OFD packet to send [04:12:13]OFD Sender: No OFD packet to send [04:12:18]OFD Sender: No OFD packet to send [04:12:23]OFD Sender: No OFD packet to send [04:12: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:19]OFD Sender: No OFD packet to send [04:14:24]OFD Sender: No OFD packet to send [04:14:29]OFD Sender: No OFD packet to send [04:14:34]OFD Sender: No OFD packet to send [04:14:39]OFD Sender: No OFD packet to send [04:14:44]OFD Sender: No OFD packet to send [04:14:49]OFD Sender: No OFD packet to send [04:14:54]OFD Sender: No OFD packet to send [04:14:59]OFD Sender: No OFD packet to send [04:15:04]OFD Sender: No OFD packet to send [04:15:09]OFD Sender: No OFD packet to send [04:15:14]OFD Sender: No OFD packet to send [04:15:19]OFD Sender: No OFD packet to send [04:15:24]OFD Sender: No OFD packet to send [04:15:29]OFD Sender: No OFD packet to send [04:15:34]OFD Sender: No OFD packet to send [04:15:39]OFD Sender: No OFD packet to send [04:15:44]OFD Sender: No OFD packet to send [04:15:49]OFD Sender: No OFD packet to send [04:15:54]OFD Sender: No OFD packet to send [04:15:59]OFD Sender: No OFD packet to send [04:16:04]OFD Sender: No OFD packet to send [04:16:09]OFD Sender: No OFD packet to send [04:16:14]OFD Sender: No OFD packet to send [04:16:19]OFD Sender: No OFD packet to send [04:16:24]OFD Sender: No OFD packet to send [04:16:29]OFD Sender: No OFD packet to send [04:16:34]OFD Sender: No OFD packet to send [04:16:39]OFD Sender: No OFD packet to send [04:16:44]OFD Sender: No OFD packet to send [04:16:49]OFD Sender: No OFD packet to send [04:16:54]OFD Sender: No OFD packet to send [04:16:59]OFD Sender: No OFD packet to send [04:17:04]OFD Sender: No OFD packet to send [04:17:09]OFD Sender: No OFD packet to send [04:17:14]OFD Sender: No OFD packet to send [04:17:19]OFD Sender: No OFD packet to send [04:17:24]OFD Sender: No OFD packet to send [04:17:29]OFD Sender: No OFD packet to send [04:17:34]OFD Sender: No OFD packet to send [04:17:39]OFD Sender: No OFD packet to send [04:17:44]OFD Sender: No OFD packet to send [04:17:49]OFD Sender: No OFD packet to send [04:17:54]OFD Sender: No OFD packet to send [04:17:59]OFD Sender: No OFD packet to send [04:18:04]OFD Sender: No OFD packet to send [04:18:09]OFD Sender: No OFD packet to send [04:18:14]OFD Sender: No OFD packet to send [04:18:19]OFD Sender: No OFD packet to send [04:18:24]OFD Sender: No OFD packet to send [04:18:29]OFD Sender: No OFD packet to send [04:18:34]OFD Sender: No OFD packet to send [04:18:39]OFD Sender: No OFD packet to send [04:18:44]OFD Sender: No OFD packet to send [04:18:49]OFD Sender: No OFD packet to send [04:18:54]OFD Sender: No OFD packet to send [04:18:59]OFD Sender: No OFD packet to send [04:19:04]OFD Sender: No OFD packet to send [04:19:09]OFD Sender: No OFD packet to send [04:19:14]OFD Sender: No OFD packet to send [04:19:19]OFD Sender: No OFD packet to send [04:19:24]OFD Sender: No OFD packet to send [04:19:29]OFD Sender: No OFD packet to send [04:19:34]OFD Sender: No OFD packet to send [04:19:39]OFD Sender: No OFD packet to send [04:19:44]OFD Sender: No OFD packet to send [04:19:49]OFD Sender: No OFD packet to send [04:19:54]OFD Sender: No OFD packet to send [04:19:59]OFD Sender: No OFD packet to send [04:20:04]OFD Sender: No OFD packet to send [04:20:09]OFD Sender: No OFD packet to send [04:20:14]OFD Sender: No OFD packet to send [04:20:19]OFD Sender: No OFD packet to send [04:20:24]OFD Sender: No OFD packet to send [04:20:29]OFD Sender: No OFD packet to send [04:20:34]OFD Sender: No OFD packet to send [04:20:39]OFD Sender: No OFD packet to send [04:20:44]OFD Sender: No OFD packet to send [04:20:49]OFD Sender: No OFD packet to send [04:20:54]OFD Sender: No OFD packet to send [04:20:59]OFD Sender: No OFD packet to send [04:21:04]OFD Sender: No OFD packet to send [04:21:09]OFD Sender: No OFD packet to send [04:21:14]OFD Sender: No OFD packet to send [04:21:19]OFD Sender: No OFD packet to send [04:21:24]OFD Sender: No OFD packet to send [04:21:29]OFD Sender: No OFD packet to send [04:21:34]OFD Sender: No OFD packet to send [04:21:39]OFD Sender: No OFD packet to send [04:21:44]OFD Sender: No OFD packet to send [04:21:49]OFD Sender: No OFD packet to send [04:21:54]OFD Sender: No OFD packet to send [04:21:59]OFD Sender: No OFD packet to send [04:22:04]OFD Sender: No OFD packet to send [04:22:09]OFD Sender: No OFD packet to send [04:22:14]OFD Sender: No OFD packet to send [04:22:19]OFD Sender: No OFD packet to send [04:22:24]OFD Sender: No OFD packet to send [04:22:29]OFD Sender: No OFD packet to send [04:22:34]OFD Sender: No OFD packet to send [04:22:39]OFD Sender: No OFD packet to send [04:22:44]OFD Sender: No OFD packet to send [04:22:49]OFD Sender: No OFD packet to send [04:22:54]OFD Sender: No OFD packet to send [04:22:59]OFD Sender: No OFD packet to send [04:23:04]OFD Sender: No OFD packet to send [04:23:09]OFD Sender: No OFD packet to send [04:23:14]OFD Sender: No OFD packet to send [04:23:19]OFD Sender: No OFD packet to send [04:23:24]OFD Sender: No OFD packet to send [04:23:29]OFD Sender: No OFD packet to send [04:23:34]OFD Sender: No OFD packet to send [04:23:39]OFD Sender: No OFD packet to send [04:23:44]OFD Sender: No OFD packet to send [04:23:49]OFD Sender: No OFD packet to send [04:23:54]OFD Sender: No OFD packet to send [04:23:59]OFD Sender: No OFD packet to send [04:24:04]OFD Sender: No OFD packet to send [04:24:09]OFD Sender: No OFD packet to send [04:24:14]OFD Sender: No OFD packet to send [04:24:19]OFD Sender: No OFD packet to send [04:24:24]OFD Sender: No OFD packet to send [04:24:29]OFD Sender: No OFD packet to send [04:24:34]OFD Sender: No OFD packet to send [04:24:39]OFD Sender: No OFD packet to send [04:24:44]OFD Sender: No OFD packet to send [04:24:49]OFD Sender: No OFD packet to send [04:24:54]OFD Sender: No OFD packet to send [04:24:59]OFD Sender: No OFD packet to send [04:25:04]OFD Sender: No OFD packet to send [04:25:09]OFD Sender: No OFD packet to send [04:25:14]OFD Sender: No OFD packet to send [04:25:19]OFD Sender: No OFD packet to send [04:25:24]OFD Sender: No OFD packet to send [04:25:29]OFD Sender: No OFD packet to send [04:25:34]OFD Sender: No OFD packet to send [04:25:39]OFD Sender: No OFD packet to send [04:25:44]OFD Sender: No OFD packet to send [04:25:49]OFD Sender: No OFD packet to send [04:25:54]OFD Sender: No OFD packet to send [04:25:59]OFD Sender: No OFD packet to send [04:26:04]OFD Sender: No OFD packet to send [04:26:09]OFD Sender: No OFD packet to send [04:26:14]OFD Sender: No OFD packet to send [04:26:19]OFD Sender: No OFD packet to send [04:26:24]OFD Sender: No OFD packet to send [04:26:29]OFD Sender: No OFD packet to send [04:26:34]OFD Sender: No OFD packet to send [04:26:39]OFD Sender: No OFD packet to send [04:26:44]OFD Sender: No OFD packet to send [04:26:49]OFD Sender: No OFD packet to send [04:26:54]OFD Sender: No OFD packet to send [04:26:59]OFD Sender: No OFD packet to send [04:27:04]OFD Sender: No OFD packet to send [04:27:09]OFD Sender: No OFD packet to send [04:27:14]OFD Sender: No OFD packet to send [04:27:19]OFD Sender: No OFD packet to send [04:27:24]OFD Sender: No OFD packet to send [04:27:29]OFD Sender: No OFD packet to send [04:27:34]OFD Sender: No OFD packet to send [04:27:39]OFD Sender: No OFD packet to send [04:27:45]OFD Sender: No OFD packet to send [04:27:50]OFD Sender: No OFD packet to send [04:27:55]OFD Sender: No OFD packet to send [04:28:00]OFD Sender: No OFD packet to send [04:28:05]OFD Sender: No OFD packet to send [04:28:10]OFD Sender: No OFD packet to send [04:28:15]OFD Sender: No OFD packet to send [04:28:20]OFD Sender: No OFD packet to send [04:28:25]OFD Sender: No OFD packet to send [04:28:30]OFD Sender: No OFD packet to send [04:28:35]OFD Sender: No OFD packet to send [04:28:40]OFD Sender: No OFD packet to send [04:28:45]OFD Sender: No OFD packet to send [04:28:50]OFD Sender: No OFD packet to send [04:28:55]OFD Sender: No OFD packet to send [04:29:00]OFD Sender: No OFD packet to send [04:29:05]OFD Sender: No OFD packet to send [04:29:10]OFD Sender: No OFD packet to send [04:29:15]OFD Sender: No OFD packet to send [04:29:20]OFD Sender: No OFD packet to send [04:29:25]OFD Sender: No OFD packet to send [04:29:30]OFD Sender: No OFD packet to send [04:29:35]OFD Sender: No OFD packet to send [04:29:40]OFD Sender: No OFD packet to send [04:29:45]OFD Sender: No OFD packet to send [04:29:50]OFD Sender: No OFD packet to send [04:29:55]OFD Sender: No OFD packet to send [04:30:00]OFD Sender: No OFD packet to send [04:30:05]OFD Sender: No OFD packet to send [04:30:10]OFD Sender: No OFD packet to send [04:30:15]OFD Sender: No OFD packet to send [04:30:20]OFD Sender: No OFD packet to send [04:30:25]OFD Sender: No OFD packet to send [04:30:30]OFD Sender: No OFD packet to send [04:30:35]OFD Sender: No OFD packet to send [04:30:40]OFD Sender: No OFD packet to send [04:30:45]OFD Sender: No OFD packet to send [04:30:50]OFD Sender: No OFD packet to send [04:30:55]OFD Sender: No OFD packet to send [04:31:00]OFD Sender: No OFD packet to send [04:31:05]OFD Sender: No OFD packet to send [04:31:10]OFD Sender: No OFD packet to send [04:31:15]OFD Sender: No OFD packet to send [04:31:20]OFD Sender: No OFD packet to send [04:31:25]OFD Sender: No OFD packet to send [04:31:30]OFD Sender: No OFD packet to send [04:31:35]OFD Sender: No OFD packet to send [04:31:40]OFD Sender: No OFD packet to send [04:31:45]OFD Sender: No OFD packet to send [04:31:50]OFD Sender: No OFD packet to send [04:31:55]OFD Sender: No OFD packet to send [04:32:00]OFD Sender: No OFD packet to send [04:32:05]OFD Sender: No OFD packet to send [04:32:10]OFD Sender: No OFD packet to send [04:32:15]OFD Sender: No OFD packet to send [04:32:20]OFD Sender: No OFD packet to send [04:32:25]OFD Sender: No OFD packet to send [04:32:30]OFD Sender: No OFD packet to send [04:32:35]OFD Sender: No OFD packet to send [04:32:40]OFD Sender: No OFD packet to send [04:32:45]OFD Sender: No OFD packet to send [04:32:50]OFD Sender: No OFD packet to send [04:32:55]OFD Sender: No OFD packet to send [04:33:00]OFD Sender: No OFD packet to send [04:33:05]OFD Sender: No OFD packet to send [04:33:10]OFD Sender: No OFD packet to send [04:33:15]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:10]OFD Sender: No OFD packet to send [04:37:15]OFD Sender: No OFD packet to send [04:37:20]OFD Sender: No OFD packet to send [04:37:25]OFD Sender: No OFD packet to send [04:37:30]OFD Sender: No OFD packet to send [04:37:35]OFD Sender: No OFD packet to send [04:37:40]OFD Sender: No OFD packet to send [04:37:45]OFD Sender: No OFD packet to send [04:37:50]OFD Sender: No OFD packet to send [04:37:55]OFD Sender: No OFD packet to send [04:38:00]OFD Sender: No OFD packet to send [04:38:05]OFD Sender: No OFD packet to send [04:38:10]OFD Sender: No OFD packet to send [04:38:15]OFD Sender: No OFD packet to send [04:38:20]OFD Sender: No OFD packet to send [04:38:25]OFD Sender: No OFD packet to send [04:38:30]OFD Sender: No OFD packet to send [04:38:35]OFD Sender: No OFD packet to send [04:38:40]OFD Sender: No OFD packet to send [04:38:45]OFD Sender: No OFD packet to send [04:38:50]OFD Sender: No OFD packet to send [04:38:55]OFD Sender: No OFD packet to send [04:39:00]OFD Sender: No OFD packet to send [04:39:05]OFD Sender: No OFD packet to send [04:39:10]OFD Sender: No OFD packet to send [04:39:15]OFD Sender: No OFD packet to send [04:39:20]OFD Sender: No OFD packet to send [04:39:25]OFD Sender: No OFD packet to send [04:39:30]OFD Sender: No OFD packet to send [04:39:35]OFD Sender: No OFD packet to send [04:39:40]OFD Sender: No OFD packet to send [04:39:45]OFD Sender: No OFD packet to send [04:39:50]OFD Sender: No OFD packet to send [04:39:55]OFD Sender: No OFD packet to send [04:40:00]OFD Sender: No OFD packet to send [04:40:05]OFD Sender: No OFD packet to send [04:40:10]OFD Sender: No OFD packet to send [04:40:15]OFD Sender: No OFD packet to send [04:40:20]OFD Sender: No OFD packet to send [04:40:25]OFD Sender: No OFD packet to send [04:40:30]OFD Sender: No OFD packet to send [04:40:35]OFD Sender: No OFD packet to send [04:40:40]OFD Sender: No OFD packet to send [04:40:45]OFD Sender: No OFD packet to send [04:40:50]OFD Sender: No OFD packet to send [04:40:55]OFD Sender: No OFD packet to send [04:41:00]OFD Sender: No OFD packet to send [04:41:05]OFD Sender: No OFD packet to send [04:41:10]OFD Sender: No OFD packet to send [04:41:15]OFD Sender: No OFD packet to send [04:41:20]OFD Sender: No OFD packet to send [04:41:25]OFD Sender: No OFD packet to send [04:41:30]OFD Sender: No OFD packet to send [04:41:35]OFD Sender: No OFD packet to send [04:41:40]OFD Sender: No OFD packet to send [04:41:45]OFD Sender: No OFD packet to send [04:41:50]OFD Sender: No OFD packet to send [04:41:55]OFD Sender: No OFD packet to send [04:42:00]OFD Sender: No OFD packet to send [04:42:05]OFD Sender: No OFD packet to send [04:42:10]OFD Sender: No OFD packet to send [04:42:15]OFD Sender: No OFD packet to send [04:42:20]OFD Sender: No OFD packet to send [04:42:25]OFD Sender: No OFD packet to send [04:42:30]OFD Sender: No OFD packet to send [04:42:35]OFD Sender: No OFD packet to send [04:42:41]OFD Sender: No OFD packet to send [04:42:46]OFD Sender: No OFD packet to send [04:42:51]OFD Sender: No OFD packet to send [04:42:56]OFD Sender: No OFD packet to send [04:43:01]OFD Sender: No OFD packet to send [04:43:06]OFD Sender: No OFD packet to send [04:43:11]OFD Sender: No OFD packet to send [04:43:16]OFD Sender: No OFD packet to send [04:43:21]OFD Sender: No OFD packet to send [04:43:26]OFD Sender: No OFD packet to send [04:43:31]OFD Sender: No OFD packet to send [04:43:36]OFD Sender: No OFD packet to send [04:43:41]OFD Sender: No OFD packet to send [04:43:46]OFD Sender: No OFD packet to send [04:43:51]OFD Sender: No OFD packet to send [04:43:56]OFD Sender: No OFD packet to send [04:44:01]OFD Sender: No OFD packet to send [04:44:06]OFD Sender: No OFD packet to send [04:44:11]OFD Sender: No OFD packet to send [04:44:16]OFD Sender: No OFD packet to send [04:44:21]OFD Sender: No OFD packet to send [04:44:26]OFD Sender: No OFD packet to send [04:44:31]OFD Sender: No OFD packet to send [04:44:36]OFD Sender: No OFD packet to send [04:44:41]OFD Sender: No OFD packet to send [04:44:46]OFD Sender: No OFD packet to send [04:44:51]OFD Sender: No OFD packet to send [04:44:56]OFD Sender: No OFD packet to send [04:45:01]OFD Sender: No OFD packet to send [04:45:06]OFD Sender: No OFD packet to send [04:45:11]OFD Sender: No OFD packet to send [04:45:16]OFD Sender: No OFD packet to send [04:45:21]OFD Sender: No OFD packet to send [04:45:26]OFD Sender: No OFD packet to send [04:45:31]OFD Sender: No OFD packet to send [04:45:36]OFD Sender: No OFD packet to send [04:45:41]OFD Sender: No OFD packet to send [04:45:46]OFD Sender: No OFD packet to send [04:45:51]OFD Sender: No OFD packet to send [04:45:56]OFD Sender: No OFD packet to send [04:46:01]OFD Sender: No OFD packet to send [04:46:06]OFD Sender: No OFD packet to send [04:46:11]OFD Sender: No OFD packet to send [04:46:16]OFD Sender: No OFD packet to send [04:46:21]OFD Sender: No OFD packet to send [04:46:26]OFD Sender: No OFD packet to send [04:46:31]OFD Sender: No OFD packet to send [04:46:36]OFD Sender: No OFD packet to send [04:46:41]OFD Sender: No OFD packet to send [04:46:46]OFD Sender: No OFD packet to send [04:46:51]OFD Sender: No OFD packet to send [04:46:56]OFD Sender: No OFD packet to send [04:47:01]OFD Sender: No OFD packet to send [04:47:06]OFD Sender: No OFD packet to send [04:47:11]OFD Sender: No OFD packet to send [04:47:16]OFD Sender: No OFD packet to send [04:47:21]OFD Sender: No OFD packet to send [04:47:26]OFD Sender: No OFD packet to send [04:47:31]OFD Sender: No OFD packet to send [04:47:36]OFD Sender: No OFD packet to send [04:47:41]OFD Sender: No OFD packet to send [04:47:46]OFD Sender: No OFD packet to send [04:47:51]OFD Sender: No OFD packet to send [04:47:56]OFD Sender: No OFD packet to send [04:48:01]OFD Sender: No OFD packet to send [04:48:06]OFD Sender: No OFD packet to send [04:48:11]OFD Sender: No OFD packet to send [04:48:16]OFD Sender: No OFD packet to send [04:48:21]OFD Sender: No OFD packet to send [04:48:26]OFD Sender: No OFD packet to send [04:48:31]OFD Sender: No OFD packet to send [04:48:36]OFD Sender: No OFD packet to send [04:48:41]OFD Sender: No OFD packet to send [04:48:46]OFD Sender: No OFD packet to send [04:48:51]OFD Sender: No OFD packet to send [04:48:56]OFD Sender: No OFD packet to send [04:49:01]OFD Sender: No OFD packet to send [04:49:06]OFD Sender: No OFD packet to send [04:49:11]OFD Sender: No OFD packet to send [04:49:16]OFD Sender: No OFD packet to send [04:49:21]OFD Sender: No OFD packet to send [04:49:26]OFD Sender: No OFD packet to send [04:49:31]OFD Sender: No OFD packet to send [04:49:36]OFD Sender: No OFD packet to send [04:49:41]OFD Sender: No OFD packet to send [04:49:46]OFD Sender: No OFD packet to send [04:49:51]OFD Sender: No OFD packet to send [04:49:56]OFD Sender: No OFD packet to send [04:50:01]OFD Sender: No OFD packet to send [04:50:06]OFD Sender: No OFD packet to send [04:50:11]OFD Sender: No OFD packet to send [04:50:16]OFD Sender: No OFD packet to send [04:50:21]OFD Sender: No OFD packet to send [04:50:26]OFD Sender: No OFD packet to send [04:50:31]OFD Sender: No OFD packet to send [04:50:36]OFD Sender: No OFD packet to send [04:50:41]OFD Sender: No OFD packet to send [04:50:46]OFD Sender: No OFD packet to send [04:50:51]OFD Sender: No OFD packet to send [04:50:56]OFD Sender: No OFD packet to send [04:51:01]OFD Sender: No OFD packet to send [04:51:06]OFD Sender: No OFD packet to send [04:51:11]OFD Sender: No OFD packet to send [04:51:16]OFD Sender: No OFD packet to send [04:51:21]OFD Sender: No OFD packet to send [04:51:26]OFD Sender: No OFD packet to send [04:51:31]OFD Sender: No OFD packet to send [04:51:36]OFD Sender: No OFD packet to send [04:51:41]OFD Sender: No OFD packet to send [04:51:46]OFD Sender: No OFD packet to send [04:51:51]OFD Sender: No OFD packet to send [04:51:56]OFD Sender: No OFD packet to send [04:52:01]OFD Sender: No OFD packet to send [04:52:06]OFD Sender: No OFD packet to send [04:52:11]OFD Sender: No OFD packet to send [04:52:16]OFD Sender: No OFD packet to send [04:52:21]OFD Sender: No OFD packet to send [04:52:26]OFD Sender: No OFD packet to send [04:52:31]OFD Sender: No OFD packet to send [04:52:36]OFD Sender: No OFD packet to send [04:52:41]OFD Sender: No OFD packet to send [04:52:46]OFD Sender: No OFD packet to send [04:52:51]OFD Sender: No OFD packet to send [04:52:56]OFD Sender: No OFD packet to send [04:53:01]OFD Sender: No OFD packet to send [04:53:06]OFD Sender: No OFD packet to send [04:53:11]OFD Sender: No OFD packet to send [04:53:16]OFD Sender: No OFD packet to send [04:53:21]OFD Sender: No OFD packet to send [04:53:26]OFD Sender: No OFD packet to send [04:53:31]OFD Sender: No OFD packet to send [04:53:36]OFD Sender: No OFD packet to send [04:53:41]OFD Sender: No OFD packet to send [04:53:46]OFD Sender: No OFD packet to send [04:53:51]OFD Sender: No OFD packet to send [04:53:56]OFD Sender: No OFD packet to send [04:54:01]OFD Sender: No OFD packet to send [04:54:06]OFD Sender: No OFD packet to send [04:54:11]OFD Sender: No OFD packet to send [04:54:16]OFD Sender: No OFD packet to send [04:54:21]OFD Sender: No OFD packet to send [04:54:26]OFD Sender: No OFD packet to send [04:54:31]OFD Sender: No OFD packet to send [04:54:36]OFD Sender: No OFD packet to send [04:54:41]OFD Sender: No OFD packet to send [04:54:46]OFD Sender: No OFD packet to send [04:54:51]OFD Sender: No OFD packet to send [04:54:56]OFD Sender: No OFD packet to send [04:55:01]OFD Sender: No OFD packet to send [04:55:06]OFD Sender: No OFD packet to send [04:55:11]OFD Sender: No OFD packet to send [04:55:16]OFD Sender: No OFD packet to send [04:55:21]OFD Sender: No OFD packet to send [04:55:26]OFD Sender: No OFD packet to send [04:55:31]OFD Sender: No OFD packet to send [04:55:36]OFD Sender: No OFD packet to send [04:55:41]OFD Sender: No OFD packet to send [04:55:46]OFD Sender: No OFD packet to send [04:55:51]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:42]OFD Sender: No OFD packet to send [04:57:47]OFD Sender: No OFD packet to send [04:57:52]OFD Sender: No OFD packet to send [04:57:57]OFD Sender: No OFD packet to send [04:58:02]OFD Sender: No OFD packet to send [04:58:07]OFD Sender: No OFD packet to send [04:58:12]OFD Sender: No OFD packet to send [04:58:17]OFD Sender: No OFD packet to send [04:58:22]OFD Sender: No OFD packet to send [04:58:27]OFD Sender: No OFD packet to send [04:58:32]OFD Sender: No OFD packet to send [04:58:37]OFD Sender: No OFD packet to send [04:58:42]OFD Sender: No OFD packet to send [04:58:47]OFD Sender: No OFD packet to send [04:58:52]OFD Sender: No OFD packet to send [04:58:57]OFD Sender: No OFD packet to send [04:59:02]OFD Sender: No OFD packet to send [04:59:07]OFD Sender: No OFD packet to send [04:59:12]OFD Sender: No OFD packet to send [04:59:17]OFD Sender: No OFD packet to send [04:59:22]OFD Sender: No OFD packet to send [04:59:27]OFD Sender: No OFD packet to send [04:59:32]OFD Sender: No OFD packet to send [04:59:37]OFD Sender: No OFD packet to send [04:59:42]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:02:59]accept exits with 8 [05:02:59]New connection [05:02:59]New thread 3067571556 created [05:02:59]Thread 3067428196 joined [05:02:59]Waiting for new connection... [05:02:59] Sock 8.Parse request [05:02:59]Sock 8.Check first char [05:02:59]Sock 8.First char is OK [05:02:59]request: POST /json_proto HTTP/1.0 [05:02:59]Method: POST [05:02:59]URL: /json_proto [05:02:59]Method is POST - this is cgi request [05:02:59]url: /json_proto [05:02:59]query_string will be loaded in cgi processing [05:02:59]execute_cgi json_proto POST (null) [05:02:59]execute_cgi path=json_proto method=POST [05:02:59]POST find Content-Length [05:02:59]Host: 172.17.56.4:8080 [05:02:59]Content-Length: 674 [05:02:59]Content-Type: application/json [05:02:59] [05:02:59]POST finish read [05:02:59]Found Content-Length = 674 [05:02:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458908", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 4.180, "sum" : 300.54, "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" ] } } [05:02:59]execute_script... [05:02: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)458908", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 4.180, "sum" : 300.54, "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" ] } } [05:02:59]POST & json_proto [05:02:59]process_json_proto [05:02:59]json parsed OK: [05:02:59]protocol is kg_v1.0 [05:02:59]action value=close_receipt [05:02:59]process_action close_receipt [05:02:59]cmd_close_receipt [05:02:59]MH_GetDate [05:02:59]Write to MH i2c: F0 00 00 E3 04 D6 [05:02:59]Write i2c OK [05:02:59]MH_I2C_Read... [05:02:59]Read from MH i2c: F0 [05:02:59]MH_I2C_Read... [05:02:59]Read from MH i2c: F0 09 00 [05:02:59]MH_I2C_Read... [05:02:59]Read from MH i2c: F0 09 00 E3 04 00 04 5C 93 66 C9 DC B2 64 F3 [05:02:59]GetLastDocTimeStamp 1720928830 [05:02:59]current date 1720933380 [05:02:59]FM_GetShiftState [05:02:59]SAM_PROTO_GetShiftState [05:02:59]wFMCommunicate request_size=4 [05:02:59]MH_SAM_APDU [05:02:59]CAPDU: 80 13 01 00 [05:02:59]Write to MH i2c: E2 08 00 E4 04 80 13 01 00 00 00 00 00 65 [05:02:59]Write i2c OK [05:02:59]MH_I2C_Read... [05:02:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:02:59]Read from MH i2c: E2 [05:02:59]MH_I2C_Read... [05:02:59]Read from MH i2c: E2 0E 00 [05:02:59]MH_I2C_Read... [05:02:59]Read from MH i2c: E2 0E 00 E4 04 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 E5 [05:02:59]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [05:02:59]wFMCommunicate OK [05:02:59]SAM_PROTO_GetShiftState done [05:02:59]FM_GetShiftState done [05:02:59]opened in 1720917342 [05:02:59]opened+sec_in_day 1721003742 [05:02:59]quantity*price = 30054 [05:02:59]sum+1 = 30055 [05:02:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.92 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 13 14.07.2024 05:03 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164815 ФПД: 150318219016711 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T050300&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164815&fm=150318219016711&tin=02508201610067®Number=0000000000090829&sum=30000 [05:03:00]StoreToDocumentArchive [05:03:00]shift 447 fd 164815 [05:03:00]save to /storage/0447/doc_00164815 [05:03:00]save last doc name /storage/0447/doc_00164815 to /storage/kkm_last_doc_name [05:03:00]save OK [05:03:00]Clear old archive folders... [05:03:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [05:03:00]tlvbuf is 016400D0 [05:03:00]SAM_PROTO_ClearQueue [05:03:00]wFMCommunicate request_size=4 [05:03:00]MH_SAM_APDU [05:03:00]CAPDU: 80 09 00 00 [05:03:00]Write to MH i2c: E2 08 00 F1 04 80 09 00 00 00 00 00 00 67 [05:03:00]Write i2c OK [05:03:00]MH_I2C_Read... [05:03:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:03:00]Read from MH i2c: E2 [05:03:00]MH_I2C_Read... [05:03:00]Read from MH i2c: E2 03 00 [05:03:00]MH_I2C_Read... [05:03:00]Read from MH i2c: E2 03 00 F1 04 00 90 00 69 [05:03:00]RAPDU: 90 00 [05:03:00]wFMCommunicate OK [05:03:00]SAM_PROTO_ClearQueue done [05:03:00]KKMCreateOFDPacket [05:03:00]OFDProtocolAddRootSTLVToBuf [05:03:00]FM_MakeSignedData [05:03:00]FM_MakeSignedData [05:03:00]SAM_PROTO_SignData [05:03:00]wFMCommunicate request_size=4 [05:03:00]MH_SAM_APDU [05:03:00]CAPDU: 80 0D 01 02 [05:03:00]Write to MH i2c: E2 08 00 F2 04 80 0D 01 02 00 00 00 00 6F [05:03:00]Write i2c OK [05:03:00]MH_I2C_Read... [05:03:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:03:00]Read from MH i2c: E2 [05:03:00]MH_I2C_Read... [05:03:00]Read from MH i2c: E2 03 00 [05:03:00]MH_I2C_Read... [05:03:00]Read from MH i2c: E2 03 00 F2 04 00 90 00 6A [05:03:00]RAPDU: 90 00 [05:03:00]wFMCommunicate OK [05:03:00]wFMCommunicate request_size=255 [05:03:00]MH_SAM_APDU [05:03:00]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 10 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 66 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 78 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 0D 00 00 00 F4 03 04 00 04 5C 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CF 83 02 00 35 04 06 00 88 B6 B0 0C [05:03:00]Write to MH i2c: E2 02 01 F3 04 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 10 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 66 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 78 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 0D 00 00 00 F4 03 04 00 04 5C 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CF 83 02 00 35 04 06 00 88 B6 B0 0C 00 00 90 [05:03:00]Write i2c OK [05:03:00]MH_I2C_Read... [05:03:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:03:01]Read from MH i2c: E2 [05:03:01]MH_I2C_Read... [05:03:01]Read from MH i2c: E2 03 00 [05:03:01]MH_I2C_Read... [05:03:01]Read from MH i2c: E2 03 00 F3 04 00 90 00 6B [05:03:01]RAPDU: 90 00 [05:03:01]wFMCommunicate OK [05:03:01]wFMCommunicate request_size=7 [05:03:01]MH_SAM_APDU [05:03:01]CAPDU: 80 0D 02 02 02 3A 07 [05:03:01]Write to MH i2c: E2 0A 00 F4 04 80 0D 02 02 02 00 3A 07 00 00 B7 [05:03:01]Write i2c OK [05:03:01]MH_I2C_Read... [05:03:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:03:01]Read from MH i2c: E2 [05:03:01]MH_I2C_Read... [05:03:01]Read from MH i2c: E2 03 00 [05:03:01]MH_I2C_Read... [05:03:01]Read from MH i2c: E2 03 00 F4 04 00 90 00 6C [05:03:01]RAPDU: 90 00 [05:03:01]wFMCommunicate OK [05:03:01]wFMCommunicate request_size=4 [05:03:01]MH_SAM_APDU [05:03:01]CAPDU: 80 0D 03 02 [05:03:01]Write to MH i2c: E2 08 00 F5 04 80 0D 03 02 00 00 00 00 74 [05:03:01]Write i2c OK [05:03:01]MH_I2C_Read... [05:03:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:03:01]Read from MH i2c: E2 [05:03:01]MH_I2C_Read... [05:03:01]Read from MH i2c: E2 0B 00 [05:03:01]MH_I2C_Read... [05:03:01]Read from MH i2c: E2 0B 00 F5 04 00 66 AD B1 E3 A3 06 F1 8F 90 00 45 [05:03:01]RAPDU: 66 AD B1 E3 A3 06 F1 8F 90 00 [05:03:01]wFMCommunicate OK [05:03:01]SAM_PROTO_SignData done [05:03:01]FM_MakeSignedData done [05:03:01]CreateOFDProtocolMessage [05:03:01]wFMCommunicate request_size=4 [05:03:01]MH_SAM_APDU [05:03:01]CAPDU: 80 11 00 00 [05:03:01]Write to MH i2c: E2 08 00 F6 04 80 11 00 00 00 00 00 00 74 [05:03:01]Write i2c OK [05:03:01]MH_I2C_Read... [05:03:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:03:01]Read from MH i2c: E2 [05:03:01]MH_I2C_Read... [05:03:01]Read from MH i2c: E2 17 00 [05:03:01]MH_I2C_Read... [05:03:01]Read from MH i2c: E2 17 00 F6 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 CA [05:03:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [05:03:01]wFMCommunicate OK [05:03:01]CreateOFDProtocolMessage done [05:03:01]OFDSenderStorePacket 164815 [05:03:01]StoreOFDPacket docnum=164815 [05:03:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 E4 E7 04 01 2E DF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 10 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 66 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 78 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 0D 00 00 00 F4 03 04 00 04 5C 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CF 83 02 00 35 04 06 00 88 B6 B0 0C 3A 07 66 AD B1 E3 A3 06 F1 8F [05:03:01]CheckFolder [05:03:01]dirname=/storage/ofd_packets [05:03:01]CheckFolder done [05:03:01]ProducePacketName [05:03:01]name=ofd_packets/00164815 [05:03:01]NVStorageSaveData ofd_packets/00164815 [05:03:01]File name is /storage/ofd_packets/00164815 [05:03:01]Write 298 bytes [05:03:01]NVStorageSaveData done [05:03:01]OFDSenderStorePacket done [05:03:01]KKMCreateOFDPacket done [05:03:01]NVStorageSaveData kkm_last_timestamp [05:03:01]File name is /storage/kkm_last_timestamp [05:03:01]Write 4 bytes [05:03:01]NVStorageSaveData done [05:03:01]ExternCall_PrintAddStr [05:03:01]wPrintStart [05:03:01]Write to MH i2c: 01 00 00 F7 04 FB [05:03:01]Write i2c OK [05:03:01]MH_I2C_Read... [05:03:01]Read from MH i2c: 01 [05:03:01]MH_I2C_Read... [05:03:01]Read from MH i2c: 01 07 00 [05:03:01]MH_I2C_Read... [05:03:01]Read from MH i2c: 01 07 00 F7 04 00 00 00 00 00 FF 0F 10 [05:03:01]RasterBufferAndPrint [05:03:01]line Счет N : (1)458908 [05:03:01]line ИНН: 02508201610067 [05:03:01]line Контрольно-Кассовый Чек [05:03:01]line ПРОДАЖА [05:03:01]line ТРК (МРК, ГНК) : 11 [05:03:01]line Товар: 2710194210 [05:03:01]line ДТ-К-5 [05:03:01]line 4.180 * 71.90 [05:03:01]line = 300.54 [05:03:01]line НДС 12% НСП 1% [05:03:01]line > о реализуемом товаре [05:03:01]line ОКРУГЛЕНИЕ: -0.54 [05:03:01]line ИТОГО: 300.00 [05:03:01]line Внесено: 300.00 [05:03:01]line СДАЧА: 0.00 [05:03:01]line НСП 1% : 2.66 [05:03:01]line НДС 12% : 31.92 [05:03:01]line Наличными: 300.00 [05:03:01]line Безнал.: 0.00 [05:03:01]line Место: АЗС № 72 "Партнер Нефть" [05:03:01]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [05:03:01]line СНО: Общий режим [05:03:01]line Чек 13 14.07.2024 05:03 [05:03:01]line Смена: 447 ФФД: 1.0 [05:03:01]line ЗНМ: 0300000160 [05:03:01]line РНМ: 0000000000090829 [05:03:01]line Версия ККМ: 001 [05:03:01]line ФМ: 0000000000874718 [05:03:01]line ФД: 164815 [05:03:01]line ФПД: 150318219016711 [05:03:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T050300&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164815&fm=150318219016711&tin=02508201610067®Number=0000000000090829&sum=30000 [05:03:01]written 0, free lines is 4095 [05:03:01]OFD Sender: Processing packet 164815 [packets to send 104, broken 103] [05:03:01]ProducePacketName [05:03:01]name=ofd_packets/00164815 [05:03:01]OFD Sender: To server: pG, [05:03:01]CommunicateWithHost lk.salyk.kg:30040 [05:03:01]ConnectInit lk.salyk.kg [05:03:01]Connected sock=10 [05:03:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 E4 E7 04 01 2E DF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 10 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 66 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 78 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 0D 00 00 00 F4 03 04 00 04 5C 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CF 83 02 00 35 04 06 00 88 B6 B0 0C 3A 07 66 AD B1 E3 A3 06 F1 8F [05:03:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 D7 EB 47 00 F9 AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CF 83 02 00 F4 03 04 00 93 02 93 66 B6 04 01 00 00 29 27 69 4A 51 44 E3 5B [05:03:01]CommunicateWithHost err = 0 [05:03:01]CheckOFDResponse [05:03:01]1017 (14) - 77093643461234 [05:03:01]1041 (16) - 0000000000874718 [05:03:01]1040 (4) - 164815 [05:03:01]1012 (4) - 13.07.2024 22:41 [05:03:01]1206 (1) - 0 [05:03:01]OFD Sender: Remove packet 164815 [05:03:01]ProducePacketName [05:03:01]name=ofd_packets/00164815 [05:03:01]NVStorageDeleteData [05:03:01]Write to MH i2c: 01 00 00 21 05 26 [05:03:01]Write i2c OK [05:03:01]MH_I2C_Read... [05:03:01]Read from MH i2c: 01 [05:03:01]MH_I2C_Read... [05:03:01]Read from MH i2c: 01 07 00 [05:03:01]MH_I2C_Read... [05:03:01]Read from MH i2c: 01 07 00 21 05 00 00 00 00 00 01 0D 3B [05:03:01]RasterBufferAndPrint [05:03:01]line [05:03:01]line [05:03:01]line [05:03:01]line [05:03:01]line [05:03:01]written 0, free lines is 3335 [05:03:01]MH_Cut [05:03:01]Write to MH i2c: D1 01 00 28 05 01 FF [05:03:01]Write i2c OK [05:03:01]MH_I2C_Read... [05:03:01]Read from MH i2c: D1 [05:03:01]MH_I2C_Read... [05:03:01]Read from MH i2c: D1 01 00 [05:03:01]MH_I2C_Read... [05:03:01]Read from MH i2c: D1 01 00 28 05 00 FE [05:03:01]Write to MH i2c: 01 00 00 29 05 2E [05:03:01]Write i2c OK [05:03:01]MH_I2C_Read... [05:03:02]OFD Sender: No OFD packet to send [05:03:02]*** Cut start [05:03:02]*** Partial cut [05:03:02]*** CUTSNS_PIN = 1 [05:03:02]*** CUTSNS_PIN = 0 [05:03:02]*** Brake cut motor [05:03:03]Read from MH i2c: 01 [05:03:03]MH_I2C_Read... [05:03:03]*** Stop cut motor [05:03:03]*** Cut end [05:03:03]Read from MH i2c: 01 07 00 [05:03:03]MH_I2C_Read... [05:03:03]Read from MH i2c: 01 07 00 29 05 00 00 00 00 00 FF 0F 43 [05:03:03]process_action close_receipt done [05:03:03]requested_data is exist [05:03:03]produce_requested_data [05:03:03]requested_item fm.sn is exist - process it [05:03:03]wFMCommunicate request_size=4 [05:03:03]MH_SAM_APDU [05:03:03]CAPDU: 80 11 00 00 [05:03:03]Write to MH i2c: E2 08 00 2A 05 80 11 00 00 00 00 00 00 A9 [05:03:03]Write i2c OK [05:03:03]MH_I2C_Read... [05:03:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:03:03]Read from MH i2c: E2 [05:03:03]MH_I2C_Read... [05:03:03]Read from MH i2c: E2 17 00 [05:03:03]MH_I2C_Read... [05:03:03]Read from MH i2c: E2 17 00 2A 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 FF [05:03:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [05:03:03]wFMCommunicate OK [05:03:03]requested_item fd.num is exist - process it [05:03:03]SAM_PROTO_GetFieldsCounters [05:03:03]wFMCommunicate request_size=4 [05:03:03]MH_SAM_APDU [05:03:03]CAPDU: 80 13 00 00 [05:03:03]Write to MH i2c: E2 08 00 2B 05 80 13 00 00 00 00 00 00 AC [05:03:03]Write i2c OK [05:03:03]MH_I2C_Read... [05:03:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:03:03]Read from MH i2c: E2 [05:03:03]MH_I2C_Read... [05:03:03]Read from MH i2c: E2 62 00 [05:03:03]MH_I2C_Read... [05:03:03]Read from MH i2c: E2 62 00 2B 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 CF 83 02 00 0E 04 04 00 BF 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 0E [05:03:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 CF 83 02 00 0E 04 04 00 BF 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 [05:03:03]wFMCommunicate OK [05:03:03]SAM_PROTO_GetFieldsCounters done [05:03:03]requested_item shift.num is exist - process it [05:03:03]requested_item shift.opened is exist - process it [05:03:03]req_shift_opened [05:03:03]FM_GetShiftState [05:03:03]SAM_PROTO_GetShiftState [05:03:03]wFMCommunicate request_size=4 [05:03:03]MH_SAM_APDU [05:03:03]CAPDU: 80 13 01 00 [05:03:03]Write to MH i2c: E2 08 00 2C 05 80 13 01 00 00 00 00 00 AE [05:03:03]Write i2c OK [05:03:03]MH_I2C_Read... [05:03:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:03:03]Read from MH i2c: E2 [05:03:03]MH_I2C_Read... [05:03:03]Read from MH i2c: E2 0E 00 [05:03:03]MH_I2C_Read... [05:03:03]Read from MH i2c: E2 0E 00 2C 05 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 2E [05:03:03]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [05:03:03]wFMCommunicate OK [05:03:03]SAM_PROTO_GetShiftState done [05:03:03]FM_GetShiftState done [05:03:03]req_shift_opened done [05:03:03]requested_item shift.open_date is exist - process it [05:03:03]req_shift_open_date [05:03:03]req_shift_open_date done [05:03:03]produce_requested_data done [05:03:03]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164815,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [05:03:03]process_action_free close_receipt [05:03:03]json_value_free [05:03:03]json_value_free done [05:03:03]process_json_proto returns [05:03:03]Send response to host [05:03:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164815,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [05:03:03]free response buf [05:03:03]execute_script done [05:03:03]execute_script returns [05:03:03]free content buf [05:03:03]Sock 8.Close socket [05:03:03]Sock 8.Thread stoped [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:32]OFD Sender: No OFD packet to send [05:03:37]OFD Sender: No OFD packet to send [05:03:42]OFD Sender: No OFD packet to send [05:03:47]OFD Sender: No OFD packet to send [05:03:52]OFD Sender: No OFD packet to send [05:03:57]OFD Sender: No OFD packet to send [05:04:02]OFD Sender: No OFD packet to send [05:04:07]OFD Sender: No OFD packet to send [05:04:12]OFD Sender: No OFD packet to send [05:04:17]OFD Sender: No OFD packet to send [05:04:20]accept exits with 9 [05:04:20]New connection [05:04:20]New thread 3067428196 created [05:04:20]Thread 3067571556 joined [05:04:20]Waiting for new connection... [05:04:20] Sock 9.Parse request [05:04:20]Sock 9.Check first char [05:04:20]Sock 9.First char is OK [05:04:20]request: POST /json_proto HTTP/1.0 [05:04:20]Method: POST [05:04:20]URL: /json_proto [05:04:20]Method is POST - this is cgi request [05:04:20]url: /json_proto [05:04:20]query_string will be loaded in cgi processing [05:04:20]execute_cgi json_proto POST (null) [05:04:20]execute_cgi path=json_proto method=POST [05:04:20]POST find Content-Length [05:04:20]Host: 172.17.56.4:8080 [05:04:20]Content-Length: 678 [05:04:20]Content-Type: application/json [05:04:20] [05:04:20]POST finish read [05:04:20]Found Content-Length = 678 [05:04:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458909", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "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" ] } } [05:04:20]execute_script... [05:04: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)458909", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "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" ] } } [05:04:20]POST & json_proto [05:04:20]process_json_proto [05:04:20]json parsed OK: [05:04:20]protocol is kg_v1.0 [05:04:20]action value=close_receipt [05:04:20]process_action close_receipt [05:04:20]cmd_close_receipt [05:04:20]MH_GetDate [05:04:20]Write to MH i2c: F0 00 00 2D 05 21 [05:04:20]Write i2c OK [05:04:20]MH_I2C_Read... [05:04:20]Read from MH i2c: F0 [05:04:20]MH_I2C_Read... [05:04:20]Read from MH i2c: F0 09 00 [05:04:20]MH_I2C_Read... [05:04:20]Read from MH i2c: F0 09 00 2D 05 00 55 5C 93 66 C9 DC B2 64 8F [05:04:20]GetLastDocTimeStamp 1720933380 [05:04:20]current date 1720933461 [05:04:20]FM_GetShiftState [05:04:20]SAM_PROTO_GetShiftState [05:04:20]wFMCommunicate request_size=4 [05:04:20]MH_SAM_APDU [05:04:20]CAPDU: 80 13 01 00 [05:04:20]Write to MH i2c: E2 08 00 2E 05 80 13 01 00 00 00 00 00 B0 [05:04:20]Write i2c OK [05:04:20]MH_I2C_Read... [05:04:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:04:20]Read from MH i2c: E2 [05:04:20]MH_I2C_Read... [05:04:20]Read from MH i2c: E2 0E 00 [05:04:20]MH_I2C_Read... [05:04:20]Read from MH i2c: E2 0E 00 2E 05 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 30 [05:04:20]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [05:04:20]wFMCommunicate OK [05:04:20]SAM_PROTO_GetShiftState done [05:04:20]FM_GetShiftState done [05:04:20]opened in 1720917342 [05:04:20]opened+sec_in_day 1721003742 [05:04:20]quantity*price = 70011 [05:04:20]sum+1 = 70012 [05:04:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 14 14.07.2024 05:04 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164816 ФПД: 162226758447402 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T050421&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164816&fm=162226758447402&tin=02508201610067®Number=0000000000090829&sum=70000 [05:04:21]StoreToDocumentArchive [05:04:21]shift 447 fd 164816 [05:04:21]save to /storage/0447/doc_00164816 [05:04:21]save last doc name /storage/0447/doc_00164816 to /storage/kkm_last_doc_name [05:04:21]save OK [05:04:21]Clear old archive folders... [05:04:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:04:21]tlvbuf is 016536B0 [05:04:21]SAM_PROTO_ClearQueue [05:04:21]wFMCommunicate request_size=4 [05:04:21]MH_SAM_APDU [05:04:21]CAPDU: 80 09 00 00 [05:04:21]Write to MH i2c: E2 08 00 3B 05 80 09 00 00 00 00 00 00 B2 [05:04:21]Write i2c OK [05:04:21]MH_I2C_Read... [05:04:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:04:21]Read from MH i2c: E2 [05:04:21]MH_I2C_Read... [05:04:21]Read from MH i2c: E2 03 00 [05:04:21]MH_I2C_Read... [05:04:21]Read from MH i2c: E2 03 00 3B 05 00 90 00 B4 [05:04:21]RAPDU: 90 00 [05:04:21]wFMCommunicate OK [05:04:21]SAM_PROTO_ClearQueue done [05:04:21]KKMCreateOFDPacket [05:04:21]OFDProtocolAddRootSTLVToBuf [05:04:21]FM_MakeSignedData [05:04:21]FM_MakeSignedData [05:04:21]SAM_PROTO_SignData [05:04:21]wFMCommunicate request_size=4 [05:04:21]MH_SAM_APDU [05:04:21]CAPDU: 80 0D 01 02 [05:04:21]Write to MH i2c: E2 08 00 3C 05 80 0D 01 02 00 00 00 00 BA [05:04:21]Write i2c OK [05:04:21]MH_I2C_Read... [05:04:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:04:21]Read from MH i2c: E2 [05:04:21]MH_I2C_Read... [05:04:21]Read from MH i2c: E2 03 00 [05:04:21]MH_I2C_Read... [05:04:21]Read from MH i2c: E2 03 00 3C 05 00 90 00 B5 [05:04:21]RAPDU: 90 00 [05:04:21]wFMCommunicate OK [05:04:21]wFMCommunicate request_size=255 [05:04:21]MH_SAM_APDU [05:04:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 0E 00 00 00 F4 03 04 00 55 5C 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D0 83 02 00 35 04 06 00 93 [05:04:21]Write to MH i2c: E2 02 01 3D 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 0E 00 00 00 F4 03 04 00 55 5C 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D0 83 02 00 35 04 06 00 93 00 00 D7 [05:04:21]Write i2c OK [05:04:21]MH_I2C_Read... [05:04:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:04:21]Read from MH i2c: E2 [05:04:21]MH_I2C_Read... [05:04:21]Read from MH i2c: E2 03 00 [05:04:21]MH_I2C_Read... [05:04:21]Read from MH i2c: E2 03 00 3D 05 00 90 00 B6 [05:04:21]RAPDU: 90 00 [05:04:21]wFMCommunicate OK [05:04:21]wFMCommunicate request_size=10 [05:04:21]MH_SAM_APDU [05:04:21]CAPDU: 80 0D 02 02 05 8B 5C 4F 71 2A [05:04:21]Write to MH i2c: E2 0D 00 3E 05 80 0D 02 02 05 00 8B 5C 4F 71 2A 00 00 98 [05:04:21]Write i2c OK [05:04:21]MH_I2C_Read... [05:04:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:04:21]Read from MH i2c: E2 [05:04:21]MH_I2C_Read... [05:04:21]Read from MH i2c: E2 03 00 [05:04:21]MH_I2C_Read... [05:04:21]Read from MH i2c: E2 03 00 3E 05 00 90 00 B7 [05:04:21]RAPDU: 90 00 [05:04:21]wFMCommunicate OK [05:04:21]wFMCommunicate request_size=4 [05:04:21]MH_SAM_APDU [05:04:21]CAPDU: 80 0D 03 02 [05:04:21]Write to MH i2c: E2 08 00 3F 05 80 0D 03 02 00 00 00 00 BF [05:04:21]Write i2c OK [05:04:21]MH_I2C_Read... [05:04:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:04:21]Read from MH i2c: E2 [05:04:21]MH_I2C_Read... [05:04:21]Read from MH i2c: E2 0B 00 [05:04:21]MH_I2C_Read... [05:04:21]Read from MH i2c: E2 0B 00 3F 05 00 FF 75 27 D6 A8 D6 F4 10 90 00 B3 [05:04:21]RAPDU: FF 75 27 D6 A8 D6 F4 10 90 00 [05:04:21]wFMCommunicate OK [05:04:21]SAM_PROTO_SignData done [05:04:21]FM_MakeSignedData done [05:04:21]CreateOFDProtocolMessage [05:04:21]wFMCommunicate request_size=4 [05:04:21]MH_SAM_APDU [05:04:21]CAPDU: 80 11 00 00 [05:04:21]Write to MH i2c: E2 08 00 40 05 80 11 00 00 00 00 00 00 BF [05:04:21]Write i2c OK [05:04:21]MH_I2C_Read... [05:04:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:04:21]Read from MH i2c: E2 [05:04:21]MH_I2C_Read... [05:04:21]Read from MH i2c: E2 17 00 [05:04:21]MH_I2C_Read... [05:04:21]Read from MH i2c: E2 17 00 40 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 15 [05:04:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [05:04:21]wFMCommunicate OK [05:04:21]CreateOFDProtocolMessage done [05:04:21]OFDSenderStorePacket 164816 [05:04:21]StoreOFDPacket docnum=164816 [05:04:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 AD D0 07 01 63 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 0E 00 00 00 F4 03 04 00 55 5C 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D0 83 02 00 35 04 06 00 93 8B 5C 4F 71 2A FF 75 27 D6 A8 D6 F4 10 [05:04:21]CheckFolder [05:04:21]dirname=/storage/ofd_packets [05:04:21]CheckFolder done [05:04:21]ProducePacketName [05:04:21]name=ofd_packets/00164816 [05:04:21]NVStorageSaveData ofd_packets/00164816 [05:04:21]File name is /storage/ofd_packets/00164816 [05:04:21]Write 301 bytes [05:04:21]NVStorageSaveData done [05:04:21]OFDSenderStorePacket done [05:04:21]KKMCreateOFDPacket done [05:04:21]NVStorageSaveData kkm_last_timestamp [05:04:21]File name is /storage/kkm_last_timestamp [05:04:21]Write 4 bytes [05:04:21]NVStorageSaveData done [05:04:21]ExternCall_PrintAddStr [05:04:21]wPrintStart [05:04:21]Write to MH i2c: 01 00 00 41 05 46 [05:04:21]Write i2c OK [05:04:21]MH_I2C_Read... [05:04:21]Read from MH i2c: 01 [05:04:21]MH_I2C_Read... [05:04:21]Read from MH i2c: 01 07 00 [05:04:21]MH_I2C_Read... [05:04:21]Read from MH i2c: 01 07 00 41 05 00 00 00 00 00 FF 0F 5B [05:04:21]RasterBufferAndPrint [05:04:21]line Счет N : (1)458909 [05:04:21]line ИНН: 02508201610067 [05:04:21]line Контрольно-Кассовый Чек [05:04:21]line ПРОДАЖА [05:04:21]line ТРК (МРК, ГНК) : 22 [05:04:21]line Товар: 2710124130 [05:04:21]line Аи-92-К-5 [05:04:21]line 10.640 * 65.80 [05:04:21]line = 700.11 [05:04:21]line НДС 12% НСП 1% [05:04:21]line > о реализуемом товаре [05:04:21]line ОКРУГЛЕНИЕ: -0.11 [05:04:21]line ИТОГО: 700.00 [05:04:21]line Внесено: 700.00 [05:04:21]line СДАЧА: 0.00 [05:04:21]line НСП 1% : 6.20 [05:04:21]line НДС 12% : 74.35 [05:04:21]line Наличными: 700.00 [05:04:21]line Безнал.: 0.00 [05:04:21]line Место: АЗС № 72 "Партнер Нефть" [05:04:21]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [05:04:21]line СНО: Общий режим [05:04:21]line Чек 14 14.07.2024 05:04 [05:04:21]line Смена: 447 ФФД: 1.0 [05:04:21]line ЗНМ: 0300000160 [05:04:21]line РНМ: 0000000000090829 [05:04:21]line Версия ККМ: 001 [05:04:21]line ФМ: 0000000000874718 [05:04:21]line ФД: 164816 [05:04:21]line ФПД: 162226758447402 [05:04:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T050421&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164816&fm=162226758447402&tin=02508201610067®Number=0000000000090829&sum=70000 [05:04:22]OFD Sender: Processing packet 164816 [packets to send 104, broken 103] [05:04:22]ProducePacketName [05:04:22]name=ofd_packets/00164816 [05:04:22]OFD Sender: To server: pG, [05:04:22]CommunicateWithHost lk.salyk.kg:30040 [05:04:22]ConnectInit lk.salyk.kg [05:04:22]written 0, free lines is 4095 [05:04:22]Connected sock=8 [05:04:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 AD D0 07 01 63 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 0E 00 00 00 F4 03 04 00 55 5C 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D0 83 02 00 35 04 06 00 93 8B 5C 4F 71 2A FF 75 27 D6 A8 D6 F4 10 [05:04:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 65 00 47 00 11 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 38 37 34 37 31 38 10 04 04 00 D0 83 02 00 F4 03 04 00 E4 02 93 66 B6 04 01 00 00 9A 7F 8A FF 12 86 96 84 [05:04:22]CommunicateWithHost err = 0 [05:04:22]CheckOFDResponse [05:04:22]1017 (14) - 77093643461234 [05:04:22]1041 (16) - 0000000000874718 [05:04:22]1040 (4) - 164816 [05:04:22]1012 (4) - 13.07.2024 22:42 [05:04:22]1206 (1) - 0 [05:04:22]OFD Sender: Remove packet 164816 [05:04:22]ProducePacketName [05:04:22]name=ofd_packets/00164816 [05:04:22]NVStorageDeleteData [05:04:22]Write to MH i2c: 01 00 00 6B 05 70 [05:04:22]Write i2c OK [05:04:22]MH_I2C_Read... [05:04:22]Read from MH i2c: 01 [05:04:22]MH_I2C_Read... [05:04:22]Read from MH i2c: 01 07 00 [05:04:22]MH_I2C_Read... [05:04:22]Read from MH i2c: 01 07 00 6B 05 00 00 00 00 00 F5 0C 78 [05:04:22]RasterBufferAndPrint [05:04:22]line [05:04:22]line [05:04:22]line [05:04:22]line [05:04:22]line [05:04:22]written 0, free lines is 3328 [05:04:22]MH_Cut [05:04:22]Write to MH i2c: D1 01 00 72 05 01 49 [05:04:22]Write i2c OK [05:04:22]MH_I2C_Read... [05:04:22]Read from MH i2c: D1 [05:04:22]MH_I2C_Read... [05:04:22]Read from MH i2c: D1 01 00 [05:04:22]MH_I2C_Read... [05:04:22]Read from MH i2c: D1 01 00 72 05 00 48 [05:04:22]Write to MH i2c: 01 00 00 73 05 78 [05:04:22]Write i2c OK [05:04:22]MH_I2C_Read... [05:04:22]OFD Sender: No OFD packet to send [05:04:23]*** Cut start [05:04:23]*** Partial cut [05:04:23]*** CUTSNS_PIN = 1 [05:04:23]*** CUTSNS_PIN = 0 [05:04:23]*** Brake cut motor [05:04:23]Read from MH i2c: 01 [05:04:23]MH_I2C_Read... [05:04:23]*** Stop cut motor [05:04:23]*** Cut end [05:04:23]Read from MH i2c: 01 07 00 [05:04:23]MH_I2C_Read... [05:04:23]Read from MH i2c: 01 07 00 73 05 00 00 00 00 00 FF 0F 8D [05:04:23]process_action close_receipt done [05:04:23]requested_data is exist [05:04:23]produce_requested_data [05:04:23]requested_item fm.sn is exist - process it [05:04:23]wFMCommunicate request_size=4 [05:04:23]MH_SAM_APDU [05:04:23]CAPDU: 80 11 00 00 [05:04:23]Write to MH i2c: E2 08 00 74 05 80 11 00 00 00 00 00 00 F3 [05:04:23]Write i2c OK [05:04:23]MH_I2C_Read... [05:04:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:04:23]Read from MH i2c: E2 [05:04:23]MH_I2C_Read... [05:04:23]Read from MH i2c: E2 17 00 [05:04:23]MH_I2C_Read... [05:04:23]Read from MH i2c: E2 17 00 74 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 49 [05:04:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [05:04:23]wFMCommunicate OK [05:04:23]requested_item fd.num is exist - process it [05:04:23]SAM_PROTO_GetFieldsCounters [05:04:23]wFMCommunicate request_size=4 [05:04:23]MH_SAM_APDU [05:04:23]CAPDU: 80 13 00 00 [05:04:23]Write to MH i2c: E2 08 00 75 05 80 13 00 00 00 00 00 00 F6 [05:04:23]Write i2c OK [05:04:23]MH_I2C_Read... [05:04:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:04:23]Read from MH i2c: E2 [05:04:23]MH_I2C_Read... [05:04:23]Read from MH i2c: E2 62 00 [05:04:23]MH_I2C_Read... [05:04:23]Read from MH i2c: E2 62 00 75 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D0 83 02 00 0E 04 04 00 BF 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 5C [05:04:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D0 83 02 00 0E 04 04 00 BF 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:04:23]wFMCommunicate OK [05:04:23]SAM_PROTO_GetFieldsCounters done [05:04:23]requested_item shift.num is exist - process it [05:04:23]requested_item shift.opened is exist - process it [05:04:23]req_shift_opened [05:04:23]FM_GetShiftState [05:04:23]SAM_PROTO_GetShiftState [05:04:23]wFMCommunicate request_size=4 [05:04:23]MH_SAM_APDU [05:04:23]CAPDU: 80 13 01 00 [05:04:23]Write to MH i2c: E2 08 00 76 05 80 13 01 00 00 00 00 00 F8 [05:04:23]Write i2c OK [05:04:23]MH_I2C_Read... [05:04:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:04:24]Read from MH i2c: E2 [05:04:24]MH_I2C_Read... [05:04:24]Read from MH i2c: E2 0E 00 [05:04:24]MH_I2C_Read... [05:04:24]Read from MH i2c: E2 0E 00 76 05 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 78 [05:04:24]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [05:04:24]wFMCommunicate OK [05:04:24]SAM_PROTO_GetShiftState done [05:04:24]FM_GetShiftState done [05:04:24]req_shift_opened done [05:04:24]requested_item shift.open_date is exist - process it [05:04:24]req_shift_open_date [05:04:24]req_shift_open_date done [05:04:24]produce_requested_data done [05:04:24]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164816,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [05:04:24]process_action_free close_receipt [05:04:24]json_value_free [05:04:24]json_value_free done [05:04:24]process_json_proto returns [05:04:24]Send response to host [05:04:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164816,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [05:04:24]free response buf [05:04:24]execute_script done [05:04:24]execute_script returns [05:04:24]free content buf [05:04:24]Sock 9.Close socket [05:04:24]Sock 9.Thread stoped [05:04:27]OFD Sender: No OFD packet to send [05:04:32]OFD Sender: No OFD packet to send [05:04:37]OFD Sender: No OFD packet to send [05:04:42]OFD Sender: No OFD packet to send [05:04:47]OFD Sender: No OFD packet to send [05:04:52]OFD Sender: No OFD packet to send [05:04:57]OFD Sender: No OFD packet to send [05:05:02]OFD Sender: No OFD packet to send [05:05:07]OFD Sender: No OFD packet to send [05:05:12]OFD Sender: No OFD packet to send [05:05:17]OFD Sender: No OFD packet to send [05:05:22]OFD Sender: No OFD packet to send [05:05:27]OFD Sender: No OFD packet to send [05:05:32]OFD Sender: No OFD packet to send [05:05:37]OFD Sender: No OFD packet to send [05:05:42]OFD Sender: No OFD packet to send [05:05:47]OFD Sender: No OFD packet to send [05:05:52]OFD Sender: No OFD packet to send [05:05:57]OFD Sender: No OFD packet to send [05:06:02]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:23]OFD Sender: No OFD packet to send [05:07:28]OFD Sender: No OFD packet to send [05:07:33]OFD Sender: No OFD packet to send [05:07:38]OFD Sender: No OFD packet to send [05:07:43]OFD Sender: No OFD packet to send [05:07:48]OFD Sender: No OFD packet to send [05:07:53]OFD Sender: No OFD packet to send [05:07:58]OFD Sender: No OFD packet to send [05:08:03]OFD Sender: No OFD packet to send [05:08:08]OFD Sender: No OFD packet to send [05:08:13]OFD Sender: No OFD packet to send [05:08:18]OFD Sender: No OFD packet to send [05:08:23]OFD Sender: No OFD packet to send [05:08:28]OFD Sender: No OFD packet to send [05:08:33]OFD Sender: No OFD packet to send [05:08:38]OFD Sender: No OFD packet to send [05:08:43]OFD Sender: No OFD packet to send [05:08:48]OFD Sender: No OFD packet to send [05:08:53]OFD Sender: No OFD packet to send [05:08:58]OFD Sender: No OFD packet to send [05:09:03]OFD Sender: No OFD packet to send [05:09:08]OFD Sender: No OFD packet to send [05:09:13]OFD Sender: No OFD packet to send [05:09:18]OFD Sender: No OFD packet to send [05:09:23]OFD Sender: No OFD packet to send [05:09:28]OFD Sender: No OFD packet to send [05:09:33]OFD Sender: No OFD packet to send [05:09:38]OFD Sender: No OFD packet to send [05:09:43]OFD Sender: No OFD packet to send [05:09:48]OFD Sender: No OFD packet to send [05:09:53]OFD Sender: No OFD packet to send [05:09:58]OFD Sender: No OFD packet to send [05:10:03]OFD Sender: No OFD packet to send [05:10:08]OFD Sender: No OFD packet to send [05:10:13]OFD Sender: No OFD packet to send [05:10:18]OFD Sender: No OFD packet to send [05:10:23]OFD Sender: No OFD packet to send [05:10:28]OFD Sender: No OFD packet to send [05:10:33]OFD Sender: No OFD packet to send [05:10:38]OFD Sender: No OFD packet to send [05:10:43]OFD Sender: No OFD packet to send [05:10:48]OFD Sender: No OFD packet to send [05:10:53]OFD Sender: No OFD packet to send [05:10:58]OFD Sender: No OFD packet to send [05:11:03]OFD Sender: No OFD packet to send [05:11:08]OFD Sender: No OFD packet to send [05:11:13]OFD Sender: No OFD packet to send [05:11:18]OFD Sender: No OFD packet to send [05:11:23]OFD Sender: No OFD packet to send [05:11:28]OFD Sender: No OFD packet to send [05:11:33]OFD Sender: No OFD packet to send [05:11:38]OFD Sender: No OFD packet to send [05:11:43]OFD Sender: No OFD packet to send [05:11:48]OFD Sender: No OFD packet to send [05:11:53]OFD Sender: No OFD packet to send [05:11:58]OFD Sender: No OFD packet to send [05:12:03]OFD Sender: No OFD packet to send [05:12:08]OFD Sender: No OFD packet to send [05:12:13]OFD Sender: No OFD packet to send [05:12:18]OFD Sender: No OFD packet to send [05:12:23]OFD Sender: No OFD packet to send [05:12:28]OFD Sender: No OFD packet to send [05:12:33]OFD Sender: No OFD packet to send [05:12:38]OFD Sender: No OFD packet to send [05:12:43]OFD Sender: No OFD packet to send [05:12:48]OFD Sender: No OFD packet to send [05:12:53]OFD Sender: No OFD packet to send [05:12:58]OFD Sender: No OFD packet to send [05:13:03]OFD Sender: No OFD packet to send [05:13:08]OFD Sender: No OFD packet to send [05:13:13]OFD Sender: No OFD packet to send [05:13:18]OFD Sender: No OFD packet to send [05:13:23]OFD Sender: No OFD packet to send [05:13:28]OFD Sender: No OFD packet to send [05:13:33]OFD Sender: No OFD packet to send [05:13:38]OFD Sender: No OFD packet to send [05:13:43]OFD Sender: No OFD packet to send [05:13:48]OFD Sender: No OFD packet to send [05:13:53]OFD Sender: No OFD packet to send [05:13:58]OFD Sender: No OFD packet to send [05:14:03]OFD Sender: No OFD packet to send [05:14:08]OFD Sender: No OFD packet to send [05:14:13]OFD Sender: No OFD packet to send [05:14:18]OFD Sender: No OFD packet to send [05:14:23]OFD Sender: No OFD packet to send [05:14:28]OFD Sender: No OFD packet to send [05:14:33]OFD Sender: No OFD packet to send [05:14:38]OFD Sender: No OFD packet to send [05:14:43]OFD Sender: No OFD packet to send [05:14:48]OFD Sender: No OFD packet to send [05:14:53]OFD Sender: No OFD packet to send [05:14:58]OFD Sender: No OFD packet to send [05:15:03]OFD Sender: No OFD packet to send [05:15:08]OFD Sender: No OFD packet to send [05:15:13]OFD Sender: No OFD packet to send [05:15:18]OFD Sender: No OFD packet to send [05:15:23]OFD Sender: No OFD packet to send [05:15:28]OFD Sender: No OFD packet to send [05:15:33]OFD Sender: No OFD packet to send [05:15:38]OFD Sender: No OFD packet to send [05:15:43]OFD Sender: No OFD packet to send [05:15:48]OFD Sender: No OFD packet to send [05:15:53]OFD Sender: No OFD packet to send [05:15:58]OFD Sender: No OFD packet to send [05:16:03]OFD Sender: No OFD packet to send [05:16:08]OFD Sender: No OFD packet to send [05:16:13]OFD Sender: No OFD packet to send [05:16:18]OFD Sender: No OFD packet to send [05:16:23]OFD Sender: No OFD packet to send [05:16:28]OFD Sender: No OFD packet to send [05:16:33]OFD Sender: No OFD packet to send [05:16:38]OFD Sender: No OFD packet to send [05:16:43]OFD Sender: No OFD packet to send [05:16:48]OFD Sender: No OFD packet to send [05:16:53]OFD Sender: No OFD packet to send [05:16:58]OFD Sender: No OFD packet to send [05:17:03]OFD Sender: No OFD packet to send [05:17:08]OFD Sender: No OFD packet to send [05:17:13]OFD Sender: No OFD packet to send [05:17:18]OFD Sender: No OFD packet to send [05:17:23]OFD Sender: No OFD packet to send [05:17:28]OFD Sender: No OFD packet to send [05:17:33]OFD Sender: No OFD packet to send [05:17:38]OFD Sender: No OFD packet to send [05:17:43]OFD Sender: No OFD packet to send [05:17:48]OFD Sender: No OFD packet to send [05:17:53]OFD Sender: No OFD packet to send [05:17:58]OFD Sender: No OFD packet to send [05:18:03]OFD Sender: No OFD packet to send [05:18:08]OFD Sender: No OFD packet to send [05:18:13]OFD Sender: No OFD packet to send [05:18:18]OFD Sender: No OFD packet to send [05:18:23]OFD Sender: No OFD packet to send [05:18:28]OFD Sender: No OFD packet to send [05:18:33]OFD Sender: No OFD packet to send [05:18:38]OFD Sender: No OFD packet to send [05:18:43]OFD Sender: No OFD packet to send [05:18:48]OFD Sender: No OFD packet to send [05:18:53]OFD Sender: No OFD packet to send [05:18:58]OFD Sender: No OFD packet to send [05:19:03]OFD Sender: No OFD packet to send [05:19:08]OFD Sender: No OFD packet to send [05:19:13]OFD Sender: No OFD packet to send [05:19:18]OFD Sender: No OFD packet to send [05:19:23]OFD Sender: No OFD packet to send [05:19:28]OFD Sender: No OFD packet to send [05:19:33]OFD Sender: No OFD packet to send [05:19:38]OFD Sender: No OFD packet to send [05:19:43]OFD Sender: No OFD packet to send [05:19:48]OFD Sender: No OFD packet to send [05:19:53]OFD Sender: No OFD packet to send [05:19:58]OFD Sender: No OFD packet to send [05:20:03]OFD Sender: No OFD packet to send [05:20:08]OFD Sender: No OFD packet to send [05:20:13]OFD Sender: No OFD packet to send [05:20:18]OFD Sender: No OFD packet to send [05:20:23]OFD Sender: No OFD packet to send [05:20:28]OFD Sender: No OFD packet to send [05:20:33]OFD Sender: No OFD packet to send [05:20:38]OFD Sender: No OFD packet to send [05:20:43]OFD Sender: No OFD packet to send [05:20:48]OFD Sender: No OFD packet to send [05:20:53]OFD Sender: No OFD packet to send [05:20:58]OFD Sender: No OFD packet to send [05:21:03]OFD Sender: No OFD packet to send [05:21:08]OFD Sender: No OFD packet to send [05:21:14]OFD Sender: No OFD packet to send [05:21:19]OFD Sender: No OFD packet to send [05:21:24]OFD Sender: No OFD packet to send [05:21:29]OFD Sender: No OFD packet to send [05:21:34]OFD Sender: No OFD packet to send [05:21:39]OFD Sender: No OFD packet to send [05:21:44]OFD Sender: No OFD packet to send [05:21:49]OFD Sender: No OFD packet to send [05:21:54]OFD Sender: No OFD packet to send [05:21:59]OFD Sender: No OFD packet to send [05:22:04]OFD Sender: No OFD packet to send [05:22:09]OFD Sender: No OFD packet to send [05:22:14]OFD Sender: No OFD packet to send [05:22:19]OFD Sender: No OFD packet to send [05:22:24]OFD Sender: No OFD packet to send [05:22:29]OFD Sender: No OFD packet to send [05:22:34]OFD Sender: No OFD packet to send [05:22:39]OFD Sender: No OFD packet to send [05:22:44]OFD Sender: No OFD packet to send [05:22:49]OFD Sender: No OFD packet to send [05:22:54]OFD Sender: No OFD packet to send [05:22:59]OFD Sender: No OFD packet to send [05:23:04]OFD Sender: No OFD packet to send [05:23:09]OFD Sender: No OFD packet to send [05:23:14]OFD Sender: No OFD packet to send [05:23:19]OFD Sender: No OFD packet to send [05:23:24]OFD Sender: No OFD packet to send [05:23:29]OFD Sender: No OFD packet to send [05:23:34]OFD Sender: No OFD packet to send [05:23:39]OFD Sender: No OFD packet to send [05:23:44]OFD Sender: No OFD packet to send [05:23:49]OFD Sender: No OFD packet to send [05:23:54]OFD Sender: No OFD packet to send [05:23:59]OFD Sender: No OFD packet to send [05:24:04]OFD Sender: No OFD packet to send [05:24:09]OFD Sender: No OFD packet to send [05:24:14]OFD Sender: No OFD packet to send [05:24:19]OFD Sender: No OFD packet to send [05:24:24]OFD Sender: No OFD packet to send [05:24:29]OFD Sender: No OFD packet to send [05:24:34]OFD Sender: No OFD packet to send [05:24:39]OFD Sender: No OFD packet to send [05:24:44]OFD Sender: No OFD packet to send [05:24:49]OFD Sender: No OFD packet to send [05:24:54]OFD Sender: No OFD packet to send [05:24:59]OFD Sender: No OFD packet to send [05:25:04]OFD Sender: No OFD packet to send [05:25:09]OFD Sender: No OFD packet to send [05:25:14]OFD Sender: No OFD packet to send [05:25:19]OFD Sender: No OFD packet to send [05:25:24]OFD Sender: No OFD packet to send [05:25:29]OFD Sender: No OFD packet to send [05:25:34]OFD Sender: No OFD packet to send [05:25:39]OFD Sender: No OFD packet to send [05:25:44]OFD Sender: No OFD packet to send [05:25:49]OFD Sender: No OFD packet to send [05:25:54]OFD Sender: No OFD packet to send [05:25:59]OFD Sender: No OFD packet to send [05:26:04]OFD Sender: No OFD packet to send [05:26:09]OFD Sender: No OFD packet to send [05:26:14]OFD Sender: No OFD packet to send [05:26:19]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:14]OFD Sender: No OFD packet to send [05:30:19]OFD Sender: No OFD packet to send [05:30:24]OFD Sender: No OFD packet to send [05:30:29]OFD Sender: No OFD packet to send [05:30:34]OFD Sender: No OFD packet to send [05:30:39]OFD Sender: No OFD packet to send [05:30:44]OFD Sender: No OFD packet to send [05:30:49]OFD Sender: No OFD packet to send [05:30:54]OFD Sender: No OFD packet to send [05:30:59]OFD Sender: No OFD packet to send [05:31:04]OFD Sender: No OFD packet to send [05:31:09]OFD Sender: No OFD packet to send [05:31:14]OFD Sender: No OFD packet to send [05:31:19]OFD Sender: No OFD packet to send [05:31:24]OFD Sender: No OFD packet to send [05:31:29]OFD Sender: No OFD packet to send [05:31:34]OFD Sender: No OFD packet to send [05:31:39]OFD Sender: No OFD packet to send [05:31:44]OFD Sender: No OFD packet to send [05:31:49]OFD Sender: No OFD packet to send [05:31:54]OFD Sender: No OFD packet to send [05:31:59]OFD Sender: No OFD packet to send [05:32:04]OFD Sender: No OFD packet to send [05:32:09]OFD Sender: No OFD packet to send [05:32:14]OFD Sender: No OFD packet to send [05:32:19]OFD Sender: No OFD packet to send [05:32:24]OFD Sender: No OFD packet to send [05:32:29]OFD Sender: No OFD packet to send [05:32:34]OFD Sender: No OFD packet to send [05:32:39]OFD Sender: No OFD packet to send [05:32:44]OFD Sender: No OFD packet to send [05:32:49]OFD Sender: No OFD packet to send [05:32:54]OFD Sender: No OFD packet to send [05:32:59]OFD Sender: No OFD packet to send [05:33:04]OFD Sender: No OFD packet to send [05:33:09]OFD Sender: No OFD packet to send [05:33:14]OFD Sender: No OFD packet to send [05:33:19]OFD Sender: No OFD packet to send [05:33:24]OFD Sender: No OFD packet to send [05:33:29]OFD Sender: No OFD packet to send [05:33:34]OFD Sender: No OFD packet to send [05:33:39]OFD Sender: No OFD packet to send [05:33:44]OFD Sender: No OFD packet to send [05:33:49]OFD Sender: No OFD packet to send [05:33:54]OFD Sender: No OFD packet to send [05:33:59]OFD Sender: No OFD packet to send [05:34:04]OFD Sender: No OFD packet to send [05:34:09]OFD Sender: No OFD packet to send [05:34:14]OFD Sender: No OFD packet to send [05:34:19]OFD Sender: No OFD packet to send [05:34:24]OFD Sender: No OFD packet to send [05:34:29]OFD Sender: No OFD packet to send [05:34:34]OFD Sender: No OFD packet to send [05:34:39]OFD Sender: No OFD packet to send [05:34:44]OFD Sender: No OFD packet to send [05:34:49]OFD Sender: No OFD packet to send [05:34:54]OFD Sender: No OFD packet to send [05:34:59]OFD Sender: No OFD packet to send [05:35:04]OFD Sender: No OFD packet to send [05:35:09]OFD Sender: No OFD packet to send [05:35:14]OFD Sender: No OFD packet to send [05:35:19]OFD Sender: No OFD packet to send [05:35:24]OFD Sender: No OFD packet to send [05:35:29]OFD Sender: No OFD packet to send [05:35:34]OFD Sender: No OFD packet to send [05:35:39]OFD Sender: No OFD packet to send [05:35:44]OFD Sender: No OFD packet to send [05:35:49]OFD Sender: No OFD packet to send [05:35:54]OFD Sender: No OFD packet to send [05:35:59]OFD Sender: No OFD packet to send [05:36:04]OFD Sender: No OFD packet to send [05:36:09]OFD Sender: No OFD packet to send [05:36:15]OFD Sender: No OFD packet to send [05:36:20]OFD Sender: No OFD packet to send [05:36:25]OFD Sender: No OFD packet to send [05:36:30]OFD Sender: No OFD packet to send [05:36:35]OFD Sender: No OFD packet to send [05:36:40]OFD Sender: No OFD packet to send [05:36:45]OFD Sender: No OFD packet to send [05:36:50]OFD Sender: No OFD packet to send [05:36:55]OFD Sender: No OFD packet to send [05:37:00]OFD Sender: No OFD packet to send [05:37:05]OFD Sender: No OFD packet to send [05:37:10]OFD Sender: No OFD packet to send [05:37:15]OFD Sender: No OFD packet to send [05:37:20]OFD Sender: No OFD packet to send [05:37:25]OFD Sender: No OFD packet to send [05:37:30]OFD Sender: No OFD packet to send [05:37:35]OFD Sender: No OFD packet to send [05:37:40]OFD Sender: No OFD packet to send [05:37:45]OFD Sender: No OFD packet to send [05:37:50]OFD Sender: No OFD packet to send [05:37:55]OFD Sender: No OFD packet to send [05:38:00]OFD Sender: No OFD packet to send [05:38:05]OFD Sender: No OFD packet to send [05:38:10]OFD Sender: No OFD packet to send [05:38:15]OFD Sender: No OFD packet to send [05:38:20]OFD Sender: No OFD packet to send [05:38:25]OFD Sender: No OFD packet to send [05:38:30]OFD Sender: No OFD packet to send [05:38:35]OFD Sender: No OFD packet to send [05:38:40]OFD Sender: No OFD packet to send [05:38:45]OFD Sender: No OFD packet to send [05:38:50]OFD Sender: No OFD packet to send [05:38:55]OFD Sender: No OFD packet to send [05:39:00]OFD Sender: No OFD packet to send [05:39:05]OFD Sender: No OFD packet to send [05:39:10]OFD Sender: No OFD packet to send [05:39:15]OFD Sender: No OFD packet to send [05:39:20]OFD Sender: No OFD packet to send [05:39:25]OFD Sender: No OFD packet to send [05:39:30]OFD Sender: No OFD packet to send [05:39:35]OFD Sender: No OFD packet to send [05:39:40]OFD Sender: No OFD packet to send [05:39:45]OFD Sender: No OFD packet to send [05:39:50]OFD Sender: No OFD packet to send [05:39:55]OFD Sender: No OFD packet to send [05:40:00]OFD Sender: No OFD packet to send [05:40:05]OFD Sender: No OFD packet to send [05:40:10]OFD Sender: No OFD packet to send [05:40:15]OFD Sender: No OFD packet to send [05:40:20]OFD Sender: No OFD packet to send [05:40:25]OFD Sender: No OFD packet to send [05:40:30]OFD Sender: No OFD packet to send [05:40:35]OFD Sender: No OFD packet to send [05:40:40]OFD Sender: No OFD packet to send [05:40:45]OFD Sender: No OFD packet to send [05:40:50]OFD Sender: No OFD packet to send [05:40:55]OFD Sender: No OFD packet to send [05:41:00]OFD Sender: No OFD packet to send [05:41:05]OFD Sender: No OFD packet to send [05:41:10]OFD Sender: No OFD packet to send [05:41:15]OFD Sender: No OFD packet to send [05:41:20]OFD Sender: No OFD packet to send [05:41:25]OFD Sender: No OFD packet to send [05:41:30]OFD Sender: No OFD packet to send [05:41:35]OFD Sender: No OFD packet to send [05:41:40]OFD Sender: No OFD packet to send [05:41:45]OFD Sender: No OFD packet to send [05:41:50]OFD Sender: No OFD packet to send [05:41:55]OFD Sender: No OFD packet to send [05:42:00]OFD Sender: No OFD packet to send [05:42:05]OFD Sender: No OFD packet to send [05:42:10]OFD Sender: No OFD packet to send [05:42:15]OFD Sender: No OFD packet to send [05:42:20]OFD Sender: No OFD packet to send [05:42:25]OFD Sender: No OFD packet to send [05:42:30]OFD Sender: No OFD packet to send [05:42:35]OFD Sender: No OFD packet to send [05:42:40]OFD Sender: No OFD packet to send [05:42:45]OFD Sender: No OFD packet to send [05:42:50]OFD Sender: No OFD packet to send [05:42:55]OFD Sender: No OFD packet to send [05:43:00]OFD Sender: No OFD packet to send [05:43:05]OFD Sender: No OFD packet to send [05:43:10]OFD Sender: No OFD packet to send [05:43:15]OFD Sender: No OFD packet to send [05:43:20]OFD Sender: No OFD packet to send [05:43:25]OFD Sender: No OFD packet to send [05:43:30]OFD Sender: No OFD packet to send [05:43:35]OFD Sender: No OFD packet to send [05:43:40]OFD Sender: No OFD packet to send [05:43:45]OFD Sender: No OFD packet to send [05:43:50]OFD Sender: No OFD packet to send [05:43:55]OFD Sender: No OFD packet to send [05:44:00]OFD Sender: No OFD packet to send [05:44:05]OFD Sender: No OFD packet to send [05:44:10]OFD Sender: No OFD packet to send [05:44:15]OFD Sender: No OFD packet to send [05:44:20]OFD Sender: No OFD packet to send [05:44:25]OFD Sender: No OFD packet to send [05:44:30]OFD Sender: No OFD packet to send [05:44:35]OFD Sender: No OFD packet to send [05:44:40]OFD Sender: No OFD packet to send [05:44:45]OFD Sender: No OFD packet to send [05:44:50]OFD Sender: No OFD packet to send [05:44:55]OFD Sender: No OFD packet to send [05:45:00]OFD Sender: No OFD packet to send [05:45:05]OFD Sender: No OFD packet to send [05:45:10]OFD Sender: No OFD packet to send [05:45:15]OFD Sender: No OFD packet to send [05:45:20]OFD Sender: No OFD packet to send [05:45:25]OFD Sender: No OFD packet to send [05:45:30]OFD Sender: No OFD packet to send [05:45:35]OFD Sender: No OFD packet to send [05:45:40]OFD Sender: No OFD packet to send [05:45:45]OFD Sender: No OFD packet to send [05:45:50]OFD Sender: No OFD packet to send [05:45:55]OFD Sender: No OFD packet to send [05:46:00]OFD Sender: No OFD packet to send [05:46:05]OFD Sender: No OFD packet to send [05:46:10]OFD Sender: No OFD packet to send [05:46:15]OFD Sender: No OFD packet to send [05:46:20]OFD Sender: No OFD packet to send [05:46:25]OFD Sender: No OFD packet to send [05:46:30]OFD Sender: No OFD packet to send [05:46:35]OFD Sender: No OFD packet to send [05:46:40]OFD Sender: No OFD packet to send [05:46:45]OFD Sender: No OFD packet to send [05:46:50]OFD Sender: No OFD packet to send [05:46:55]OFD Sender: No OFD packet to send [05:47:00]OFD Sender: No OFD packet to send [05:47:05]OFD Sender: No OFD packet to send [05:47:10]OFD Sender: No OFD packet to send [05:47:15]OFD Sender: No OFD packet to send [05:47:20]OFD Sender: No OFD packet to send [05:47:25]OFD Sender: No OFD packet to send [05:47:30]OFD Sender: No OFD packet to send [05:47:35]OFD Sender: No OFD packet to send [05:47:40]OFD Sender: No OFD packet to send [05:47:45]OFD Sender: No OFD packet to send [05:47:50]OFD Sender: No OFD packet to send [05:47:55]OFD Sender: No OFD packet to send [05:48:00]OFD Sender: No OFD packet to send [05:48:05]OFD Sender: No OFD packet to send [05:48:10]OFD Sender: No OFD packet to send [05:48:15]OFD Sender: No OFD packet to send [05:48:20]OFD Sender: No OFD packet to send [05:48:25]OFD Sender: No OFD packet to send [05:48:30]OFD Sender: No OFD packet to send [05:48:35]OFD Sender: No OFD packet to send [05:48:39]accept exits with 10 [05:48:39]New connection [05:48:39]New thread 3067571556 created [05:48:39]Thread 3067428196 joined [05:48:39]Waiting for new connection... [05:48:39] Sock 10.Parse request [05:48:39]Sock 10.Check first char [05:48:39]Sock 10.First char is OK [05:48:39]request: POST /json_proto HTTP/1.0 [05:48:39]Method: POST [05:48:39]URL: /json_proto [05:48:39]Method is POST - this is cgi request [05:48:39]url: /json_proto [05:48:39]query_string will be loaded in cgi processing [05:48:39]execute_cgi json_proto POST (null) [05:48:39]execute_cgi path=json_proto method=POST [05:48:39]POST find Content-Length [05:48:39]Host: 172.17.56.4:8080 [05:48:39]Content-Length: 679 [05:48:39]Content-Type: application/json [05:48:39] [05:48:39]POST finish read [05:48:39]Found Content-Length = 679 [05:48:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458911", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:48:39]execute_script... [05: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)458911", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:48:39]POST & json_proto [05:48:39]process_json_proto [05:48:39]json parsed OK: [05:48:39]protocol is kg_v1.0 [05:48:39]action value=close_receipt [05:48:39]process_action close_receipt [05:48:39]cmd_close_receipt [05:48:39]MH_GetDate [05:48:39]Write to MH i2c: F0 00 00 77 05 6B [05:48:39]Write i2c OK [05:48:39]MH_I2C_Read... [05:48:39]Read from MH i2c: F0 [05:48:39]MH_I2C_Read... [05:48:39]Read from MH i2c: F0 09 00 [05:48:39]MH_I2C_Read... [05:48:39]Read from MH i2c: F0 09 00 77 05 00 B9 66 93 66 C9 DC B2 64 47 [05:48:39]GetLastDocTimeStamp 1720933461 [05:48:39]current date 1720936121 [05:48:39]FM_GetShiftState [05:48:39]SAM_PROTO_GetShiftState [05:48:39]wFMCommunicate request_size=4 [05:48:39]MH_SAM_APDU [05:48:39]CAPDU: 80 13 01 00 [05:48:39]Write to MH i2c: E2 08 00 78 05 80 13 01 00 00 00 00 00 FA [05:48:39]Write i2c OK [05:48:39]MH_I2C_Read... [05:48:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:48:39]Read from MH i2c: E2 [05:48:39]MH_I2C_Read... [05:48:39]Read from MH i2c: E2 0E 00 [05:48:39]MH_I2C_Read... [05:48:39]Read from MH i2c: E2 0E 00 78 05 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 7A [05:48:39]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [05:48:39]wFMCommunicate OK [05:48:39]SAM_PROTO_GetShiftState done [05:48:39]FM_GetShiftState done [05:48:39]opened in 1720917342 [05:48:39]opened+sec_in_day 1721003742 [05:48:39]quantity*price = 100012 [05:48:39]sum+1 = 100014 [05:48:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 15 14.07.2024 05:48 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164817 ФПД: 254539738498908 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T054841&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164817&fm=254539738498908&tin=02508201610067®Number=0000000000090829&sum=100000 [05:48:40]StoreToDocumentArchive [05:48:40]shift 447 fd 164817 [05:48:40]save to /storage/0447/doc_00164817 [05:48:40]save last doc name /storage/0447/doc_00164817 to /storage/kkm_last_doc_name [05:48:40]save OK [05:48:40]Clear old archive folders... [05:48:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [05:48:40]tlvbuf is 0163F990 [05:48:40]SAM_PROTO_ClearQueue [05:48:40]wFMCommunicate request_size=4 [05:48:40]MH_SAM_APDU [05:48:40]CAPDU: 80 09 00 00 [05:48:40]Write to MH i2c: E2 08 00 85 05 80 09 00 00 00 00 00 00 FC [05:48:40]Write i2c OK [05:48:40]MH_I2C_Read... [05:48:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:48:40]Read from MH i2c: E2 [05:48:40]MH_I2C_Read... [05:48:40]Read from MH i2c: E2 03 00 [05:48:40]MH_I2C_Read... [05:48:40]Read from MH i2c: E2 03 00 85 05 00 90 00 FE [05:48:40]RAPDU: 90 00 [05:48:40]wFMCommunicate OK [05:48:40]SAM_PROTO_ClearQueue done [05:48:40]KKMCreateOFDPacket [05:48:40]OFDProtocolAddRootSTLVToBuf [05:48:40]FM_MakeSignedData [05:48:40]FM_MakeSignedData [05:48:40]SAM_PROTO_SignData [05:48:40]wFMCommunicate request_size=4 [05:48:40]MH_SAM_APDU [05:48:40]CAPDU: 80 0D 01 02 [05:48:40]Write to MH i2c: E2 08 00 86 05 80 0D 01 02 00 00 00 00 04 [05:48:40]Write i2c OK [05:48:40]MH_I2C_Read... [05:48:40]OFD Sender: No OFD packet to send [05:48:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:48:40]Read from MH i2c: E2 [05:48:40]MH_I2C_Read... [05:48:40]Read from MH i2c: E2 03 00 [05:48:40]MH_I2C_Read... [05:48:40]Read from MH i2c: E2 03 00 86 05 00 90 00 FF [05:48:40]RAPDU: 90 00 [05:48:40]wFMCommunicate OK [05:48:40]wFMCommunicate request_size=255 [05:48:40]MH_SAM_APDU [05:48: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 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 B9 66 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D1 83 02 00 35 04 06 00 E7 80 A6 B1 [05:48:40]Write to MH i2c: E2 02 01 87 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 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 B9 66 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D1 83 02 00 35 04 06 00 E7 80 A6 B1 00 00 C0 [05:48:40]Write i2c OK [05:48:40]MH_I2C_Read... [05:48:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:48:41]Read from MH i2c: E2 [05:48:41]MH_I2C_Read... [05:48:41]Read from MH i2c: E2 03 00 [05:48:41]MH_I2C_Read... [05:48:41]Read from MH i2c: E2 03 00 87 05 00 90 00 00 [05:48:41]RAPDU: 90 00 [05:48:41]wFMCommunicate OK [05:48:41]wFMCommunicate request_size=7 [05:48:41]MH_SAM_APDU [05:48:41]CAPDU: 80 0D 02 02 02 C7 5C [05:48:41]Write to MH i2c: E2 0A 00 88 05 80 0D 02 02 02 00 C7 5C 00 00 2E [05:48:41]Write i2c OK [05:48:41]MH_I2C_Read... [05:48:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:48:41]Read from MH i2c: E2 [05:48:41]MH_I2C_Read... [05:48:41]Read from MH i2c: E2 03 00 [05:48:41]MH_I2C_Read... [05:48:41]Read from MH i2c: E2 03 00 88 05 00 90 00 01 [05:48:41]RAPDU: 90 00 [05:48:41]wFMCommunicate OK [05:48:41]wFMCommunicate request_size=4 [05:48:41]MH_SAM_APDU [05:48:41]CAPDU: 80 0D 03 02 [05:48:41]Write to MH i2c: E2 08 00 89 05 80 0D 03 02 00 00 00 00 09 [05:48:41]Write i2c OK [05:48:41]MH_I2C_Read... [05:48:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:48:41]Read from MH i2c: E2 [05:48:41]MH_I2C_Read... [05:48:41]Read from MH i2c: E2 0B 00 [05:48:41]MH_I2C_Read... [05:48:41]Read from MH i2c: E2 0B 00 89 05 00 45 F7 84 76 82 35 E6 D9 90 00 B6 [05:48:41]RAPDU: 45 F7 84 76 82 35 E6 D9 90 00 [05:48:41]wFMCommunicate OK [05:48:41]SAM_PROTO_SignData done [05:48:41]FM_MakeSignedData done [05:48:41]CreateOFDProtocolMessage [05:48:41]wFMCommunicate request_size=4 [05:48:41]MH_SAM_APDU [05:48:41]CAPDU: 80 11 00 00 [05:48:41]Write to MH i2c: E2 08 00 8A 05 80 11 00 00 00 00 00 00 09 [05:48:41]Write i2c OK [05:48:41]MH_I2C_Read... [05:48:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:48:41]Read from MH i2c: E2 [05:48:41]MH_I2C_Read... [05:48:41]Read from MH i2c: E2 17 00 [05:48:41]MH_I2C_Read... [05:48:41]Read from MH i2c: E2 17 00 8A 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 5F [05:48:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [05:48:41]wFMCommunicate OK [05:48:41]CreateOFDProtocolMessage done [05:48:41]OFDSenderStorePacket 164817 [05:48:41]StoreOFDPacket docnum=164817 [05:48:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 9E 15 04 01 44 A8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 B9 66 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D1 83 02 00 35 04 06 00 E7 80 A6 B1 C7 5C 45 F7 84 76 82 35 E6 D9 [05:48:41]CheckFolder [05:48:41]dirname=/storage/ofd_packets [05:48:41]CheckFolder done [05:48:41]ProducePacketName [05:48:41]name=ofd_packets/00164817 [05:48:41]NVStorageSaveData ofd_packets/00164817 [05:48:41]File name is /storage/ofd_packets/00164817 [05:48:41]Write 298 bytes [05:48:41]NVStorageSaveData done [05:48:41]OFDSenderStorePacket done [05:48:41]KKMCreateOFDPacket done [05:48:41]NVStorageSaveData kkm_last_timestamp [05:48:41]File name is /storage/kkm_last_timestamp [05:48:41]Write 4 bytes [05:48:41]NVStorageSaveData done [05:48:41]ExternCall_PrintAddStr [05:48:41]wPrintStart [05:48:41]Write to MH i2c: 01 00 00 8B 05 90 [05:48:41]Write i2c OK [05:48:41]MH_I2C_Read... [05:48:41]Read from MH i2c: 01 [05:48:41]MH_I2C_Read... [05:48:41]Read from MH i2c: 01 07 00 [05:48:41]MH_I2C_Read... [05:48:41]Read from MH i2c: 01 07 00 8B 05 00 00 00 00 00 FF 0F A5 [05:48:41]RasterBufferAndPrint [05:48:41]line Счет N : (1)458911 [05:48:41]line ИНН: 02508201610067 [05:48:41]line Контрольно-Кассовый Чек [05:48:41]line ПРОДАЖА [05:48:41]line ТРК (МРК, ГНК) : 21 [05:48:41]line Товар: 2710194210 [05:48:41]line ДТ-К-5 [05:48:41]line 13.910 * 71.90 [05:48:41]line = 1000.13 [05:48:41]line НДС 12% НСП 1% [05:48:41]line > о реализуемом товаре [05:48:41]line ОКРУГЛЕНИЕ: -0.13 [05:48:41]line ИТОГО: 1000.00 [05:48:41]line Внесено: 1000.00 [05:48:41]line СДАЧА: 0.00 [05:48:41]line НСП 1% : 8.85 [05:48:41]line НДС 12% : 106.21 [05:48:41]line Наличными: 1000.00 [05:48:41]line Безнал.: 0.00 [05:48:41]line Место: АЗС № 72 "Партнер Нефть" [05:48:41]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [05:48:41]line СНО: Общий режим [05:48:41]line Чек 15 14.07.2024 05:48 [05:48:41]line Смена: 447 ФФД: 1.0 [05:48:41]line ЗНМ: 0300000160 [05:48:41]line РНМ: 0000000000090829 [05:48:41]line Версия ККМ: 001 [05:48:41]line ФМ: 0000000000874718 [05:48:41]line ФД: 164817 [05:48:41]line ФПД: 254539738498908 [05:48:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T054841&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164817&fm=254539738498908&tin=02508201610067®Number=0000000000090829&sum=100000 [05:48:41]OFD Sender: Processing packet 164817 [packets to send 104, broken 103] [05:48:41]ProducePacketName [05:48:41]name=ofd_packets/00164817 [05:48:41]OFD Sender: To server: pG, [05:48:41]CommunicateWithHost lk.salyk.kg:30040 [05:48:41]ConnectInit lk.salyk.kg [05:48:41]written 0, free lines is 4095 [05:48:41]Connected sock=9 [05:48:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 9E 15 04 01 44 A8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 B9 66 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D1 83 02 00 35 04 06 00 E7 80 A6 B1 C7 5C 45 F7 84 76 82 35 E6 D9 [05:48:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 A7 EF 47 00 BA D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D1 83 02 00 F4 03 04 00 47 0D 93 66 B6 04 01 00 00 3F 39 03 6F 91 8C F1 0B [05:48:41]CommunicateWithHost err = 0 [05:48:41]CheckOFDResponse [05:48:41]1017 (14) - 77093643461234 [05:48:41]1041 (16) - 0000000000874718 [05:48:41]1040 (4) - 164817 [05:48:41]1012 (4) - 13.07.2024 23:27 [05:48:41]1206 (1) - 0 [05:48:41]OFD Sender: Remove packet 164817 [05:48:41]ProducePacketName [05:48:41]name=ofd_packets/00164817 [05:48:41]NVStorageDeleteData [05:48:42]Write to MH i2c: 01 00 00 B5 05 BA [05:48:42]Write i2c OK [05:48:42]MH_I2C_Read... [05:48:42]Read from MH i2c: 01 [05:48:42]MH_I2C_Read... [05:48:42]Read from MH i2c: 01 07 00 [05:48:42]MH_I2C_Read... [05:48:42]Read from MH i2c: 01 07 00 B5 05 00 00 00 00 00 0B 0D D9 [05:48:42]RasterBufferAndPrint [05:48:42]line [05:48:42]line [05:48:42]line [05:48:42]line [05:48:42]line [05:48:42]written 0, free lines is 3345 [05:48:42]MH_Cut [05:48:42]Write to MH i2c: D1 01 00 BC 05 01 93 [05:48:42]Write i2c OK [05:48:42]MH_I2C_Read... [05:48:42]Read from MH i2c: D1 [05:48:42]MH_I2C_Read... [05:48:42]Read from MH i2c: D1 01 00 [05:48:42]MH_I2C_Read... [05:48:42]Read from MH i2c: D1 01 00 BC 05 00 92 [05:48:42]Write to MH i2c: 01 00 00 BD 05 C2 [05:48:42]Write i2c OK [05:48:42]MH_I2C_Read... [05:48:42]OFD Sender: No OFD packet to send [05:48:42]*** Cut start [05:48:42]*** Partial cut [05:48:42]*** CUTSNS_PIN = 1 [05:48:42]*** CUTSNS_PIN = 0 [05:48:42]*** Brake cut motor [05:48:43]Read from MH i2c: 01 [05:48:43]MH_I2C_Read... [05:48:43]*** Stop cut motor [05:48:43]*** Cut end [05:48:43]Read from MH i2c: 01 07 00 [05:48:43]MH_I2C_Read... [05:48:43]Read from MH i2c: 01 07 00 BD 05 00 00 00 00 00 FF 0F D7 [05:48:43]process_action close_receipt done [05:48:43]requested_data is exist [05:48:43]produce_requested_data [05:48:43]requested_item fm.sn is exist - process it [05:48:43]wFMCommunicate request_size=4 [05:48:43]MH_SAM_APDU [05:48:43]CAPDU: 80 11 00 00 [05:48:43]Write to MH i2c: E2 08 00 BE 05 80 11 00 00 00 00 00 00 3D [05:48:43]Write i2c OK [05:48:43]MH_I2C_Read... [05:48:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:48:43]Read from MH i2c: E2 [05:48:43]MH_I2C_Read... [05:48:43]Read from MH i2c: E2 17 00 [05:48:43]MH_I2C_Read... [05:48:43]Read from MH i2c: E2 17 00 BE 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 93 [05:48:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [05:48:43]wFMCommunicate OK [05:48:43]requested_item fd.num is exist - process it [05:48:43]SAM_PROTO_GetFieldsCounters [05:48:43]wFMCommunicate request_size=4 [05:48:43]MH_SAM_APDU [05:48:43]CAPDU: 80 13 00 00 [05:48:43]Write to MH i2c: E2 08 00 BF 05 80 13 00 00 00 00 00 00 40 [05:48:43]Write i2c OK [05:48:43]MH_I2C_Read... [05:48:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:48:43]Read from MH i2c: E2 [05:48:43]MH_I2C_Read... [05:48:43]Read from MH i2c: E2 62 00 [05:48:43]MH_I2C_Read... [05:48:43]Read from MH i2c: E2 62 00 BF 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D1 83 02 00 0E 04 04 00 BF 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 AA [05:48:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D1 83 02 00 0E 04 04 00 BF 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 [05:48:43]wFMCommunicate OK [05:48:43]SAM_PROTO_GetFieldsCounters done [05:48:43]requested_item shift.num is exist - process it [05:48:43]requested_item shift.opened is exist - process it [05:48:43]req_shift_opened [05:48:43]FM_GetShiftState [05:48:43]SAM_PROTO_GetShiftState [05:48:43]wFMCommunicate request_size=4 [05:48:43]MH_SAM_APDU [05:48:43]CAPDU: 80 13 01 00 [05:48:43]Write to MH i2c: E2 08 00 C0 05 80 13 01 00 00 00 00 00 42 [05:48:43]Write i2c OK [05:48:43]MH_I2C_Read... [05:48:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:48:43]Read from MH i2c: E2 [05:48:43]MH_I2C_Read... [05:48:43]Read from MH i2c: E2 0E 00 [05:48:43]MH_I2C_Read... [05:48:43]Read from MH i2c: E2 0E 00 C0 05 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 C2 [05:48:43]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [05:48:43]wFMCommunicate OK [05:48:43]SAM_PROTO_GetShiftState done [05:48:43]FM_GetShiftState done [05:48:43]req_shift_opened done [05:48:43]requested_item shift.open_date is exist - process it [05:48:43]req_shift_open_date [05:48:43]req_shift_open_date done [05:48:43]produce_requested_data done [05:48:43]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164817,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [05:48:43]process_action_free close_receipt [05:48:43]json_value_free [05:48:43]json_value_free done [05:48:43]process_json_proto returns [05:48:43]Send response to host [05:48:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164817,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [05:48:43]free response buf [05:48:43]execute_script done [05:48:43]execute_script returns [05:48:43]free content buf [05:48:43]Sock 10.Close socket [05:48:43]Sock 10.Thread stoped [05:48:44]accept exits with 8 [05:48:44]New connection [05:48:44]New thread 3067428196 created [05:48:44]Thread 3067571556 joined [05:48:44]Waiting for new connection... [05:48:44] Sock 8.Parse request [05:48:44]Sock 8.Check first char [05:48:44]Sock 8.First char is OK [05:48:44]request: POST /json_proto HTTP/1.0 [05:48:44]Method: POST [05:48:44]URL: /json_proto [05:48:44]Method is POST - this is cgi request [05:48:44]url: /json_proto [05:48:44]query_string will be loaded in cgi processing [05:48:44]execute_cgi json_proto POST (null) [05:48:44]execute_cgi path=json_proto method=POST [05:48:44]POST find Content-Length [05:48:44]Host: 172.17.56.4:8080 [05:48:44]Content-Length: 679 [05:48:44]Content-Type: application/json [05:48:44] [05:48:44]POST finish read [05:48:44]Found Content-Length = 679 [05:48:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458910", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:48:44]execute_script... [05:48: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)458910", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:48:44]POST & json_proto [05:48:44]process_json_proto [05:48:44]json parsed OK: [05:48:44]protocol is kg_v1.0 [05:48:44]action value=close_receipt [05:48:44]process_action close_receipt [05:48:44]cmd_close_receipt [05:48:44]MH_GetDate [05:48:44]Write to MH i2c: F0 00 00 C1 05 B5 [05:48:44]Write i2c OK [05:48:44]MH_I2C_Read... [05:48:44]Read from MH i2c: F0 [05:48:44]MH_I2C_Read... [05:48:44]Read from MH i2c: F0 09 00 [05:48:44]MH_I2C_Read... [05:48:44]Read from MH i2c: F0 09 00 C1 05 00 BD 66 93 66 C9 DC B2 64 95 [05:48:44]GetLastDocTimeStamp 1720936121 [05:48:44]current date 1720936125 [05:48:44]FM_GetShiftState [05:48:44]SAM_PROTO_GetShiftState [05:48:44]wFMCommunicate request_size=4 [05:48:44]MH_SAM_APDU [05:48:44]CAPDU: 80 13 01 00 [05:48:44]Write to MH i2c: E2 08 00 C2 05 80 13 01 00 00 00 00 00 44 [05:48:44]Write i2c OK [05:48:44]MH_I2C_Read... [05:48:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:48:44]Read from MH i2c: E2 [05:48:44]MH_I2C_Read... [05:48:44]Read from MH i2c: E2 0E 00 [05:48:44]MH_I2C_Read... [05:48:44]Read from MH i2c: E2 0E 00 C2 05 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 C4 [05:48:44]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [05:48:44]wFMCommunicate OK [05:48:44]SAM_PROTO_GetShiftState done [05:48:44]FM_GetShiftState done [05:48:44]opened in 1720917342 [05:48:44]opened+sec_in_day 1721003742 [05:48:44]quantity*price = 100012 [05:48:44]sum+1 = 100014 [05:48:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 16 14.07.2024 05:48 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164818 ФПД: 173282595197772 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T054845&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164818&fm=173282595197772&tin=02508201610067®Number=0000000000090829&sum=100000 [05:48:45]StoreToDocumentArchive [05:48:45]shift 447 fd 164818 [05:48:45]save to /storage/0447/doc_00164818 [05:48:45]save last doc name /storage/0447/doc_00164818 to /storage/kkm_last_doc_name [05:48:45]save OK [05:48:45]Clear old archive folders... [05:48:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [05:48:45]tlvbuf is 0167DA90 [05:48:45]SAM_PROTO_ClearQueue [05:48:45]wFMCommunicate request_size=4 [05:48:45]MH_SAM_APDU [05:48:45]CAPDU: 80 09 00 00 [05:48:45]Write to MH i2c: E2 08 00 CF 05 80 09 00 00 00 00 00 00 46 [05:48:45]Write i2c OK [05:48:45]MH_I2C_Read... [05:48:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:48:45]Read from MH i2c: E2 [05:48:45]MH_I2C_Read... [05:48:45]Read from MH i2c: E2 03 00 [05:48:45]MH_I2C_Read... [05:48:45]Read from MH i2c: E2 03 00 CF 05 00 90 00 48 [05:48:45]RAPDU: 90 00 [05:48:45]wFMCommunicate OK [05:48:45]SAM_PROTO_ClearQueue done [05:48:45]KKMCreateOFDPacket [05:48:45]OFDProtocolAddRootSTLVToBuf [05:48:45]FM_MakeSignedData [05:48:45]FM_MakeSignedData [05:48:45]SAM_PROTO_SignData [05:48:45]wFMCommunicate request_size=4 [05:48:45]MH_SAM_APDU [05:48:45]CAPDU: 80 0D 01 02 [05:48:45]Write to MH i2c: E2 08 00 D0 05 80 0D 01 02 00 00 00 00 4E [05:48:45]Write i2c OK [05:48:45]MH_I2C_Read... [05:48:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:48:45]Read from MH i2c: E2 [05:48:45]MH_I2C_Read... [05:48:45]Read from MH i2c: E2 03 00 [05:48:45]MH_I2C_Read... [05:48:45]Read from MH i2c: E2 03 00 D0 05 00 90 00 49 [05:48:45]RAPDU: 90 00 [05:48:45]wFMCommunicate OK [05:48:45]wFMCommunicate request_size=255 [05:48:45]MH_SAM_APDU [05: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 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 BD 66 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D2 83 02 00 35 04 06 00 9D 99 7F 88 [05:48:45]Write to MH i2c: E2 02 01 D1 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 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 BD 66 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D2 83 02 00 35 04 06 00 9D 99 7F 88 00 00 8F [05:48:45]Write i2c OK [05:48:45]MH_I2C_Read... [05:48:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:48:45]Read from MH i2c: E2 [05:48:45]MH_I2C_Read... [05:48:45]Read from MH i2c: E2 03 00 [05:48:45]MH_I2C_Read... [05:48:45]Read from MH i2c: E2 03 00 D1 05 00 90 00 4A [05:48:45]RAPDU: 90 00 [05:48:45]wFMCommunicate OK [05:48:45]wFMCommunicate request_size=7 [05:48:45]MH_SAM_APDU [05:48:45]CAPDU: 80 0D 02 02 02 53 4C [05:48:45]Write to MH i2c: E2 0A 00 D2 05 80 0D 02 02 02 00 53 4C 00 00 F4 [05:48:45]Write i2c OK [05:48:45]MH_I2C_Read... [05:48:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:48:45]Read from MH i2c: E2 [05:48:45]MH_I2C_Read... [05:48:45]Read from MH i2c: E2 03 00 [05:48:45]MH_I2C_Read... [05:48:45]Read from MH i2c: E2 03 00 D2 05 00 90 00 4B [05:48:45]RAPDU: 90 00 [05:48:45]wFMCommunicate OK [05:48:45]wFMCommunicate request_size=4 [05:48:45]MH_SAM_APDU [05:48:45]CAPDU: 80 0D 03 02 [05:48:45]Write to MH i2c: E2 08 00 D3 05 80 0D 03 02 00 00 00 00 53 [05:48:45]Write i2c OK [05:48:45]MH_I2C_Read... [05:48:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:48:45]Read from MH i2c: E2 [05:48:45]MH_I2C_Read... [05:48:45]Read from MH i2c: E2 0B 00 [05:48:45]MH_I2C_Read... [05:48:45]Read from MH i2c: E2 0B 00 D3 05 00 96 3A BB D5 B1 C1 21 C9 90 00 10 [05:48:45]RAPDU: 96 3A BB D5 B1 C1 21 C9 90 00 [05:48:45]wFMCommunicate OK [05:48:45]SAM_PROTO_SignData done [05:48:45]FM_MakeSignedData done [05:48:45]CreateOFDProtocolMessage [05:48:45]wFMCommunicate request_size=4 [05:48:45]MH_SAM_APDU [05:48:45]CAPDU: 80 11 00 00 [05:48:45]Write to MH i2c: E2 08 00 D4 05 80 11 00 00 00 00 00 00 53 [05:48:45]Write i2c OK [05:48:45]MH_I2C_Read... [05:48:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:48:46]Read from MH i2c: E2 [05:48:46]MH_I2C_Read... [05:48:46]Read from MH i2c: E2 17 00 [05:48:46]MH_I2C_Read... [05:48:46]Read from MH i2c: E2 17 00 D4 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A9 [05:48:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [05:48:46]wFMCommunicate OK [05:48:46]CreateOFDProtocolMessage done [05:48:46]OFDSenderStorePacket 164818 [05:48:46]StoreOFDPacket docnum=164818 [05:48:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 8D F6 04 01 4B AE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 BD 66 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D2 83 02 00 35 04 06 00 9D 99 7F 88 53 4C 96 3A BB D5 B1 C1 21 C9 [05:48:46]CheckFolder [05:48:46]dirname=/storage/ofd_packets [05:48:46]CheckFolder done [05:48:46]ProducePacketName [05:48:46]name=ofd_packets/00164818 [05:48:46]NVStorageSaveData ofd_packets/00164818 [05:48:46]File name is /storage/ofd_packets/00164818 [05:48:46]Write 298 bytes [05:48:46]NVStorageSaveData done [05:48:46]OFDSenderStorePacket done [05:48:46]KKMCreateOFDPacket done [05:48:46]NVStorageSaveData kkm_last_timestamp [05:48:46]File name is /storage/kkm_last_timestamp [05:48:46]Write 4 bytes [05:48:46]NVStorageSaveData done [05:48:46]ExternCall_PrintAddStr [05:48:46]wPrintStart [05:48:46]Write to MH i2c: 01 00 00 D5 05 DA [05:48:46]Write i2c OK [05:48:46]MH_I2C_Read... [05:48:46]Read from MH i2c: 01 [05:48:46]MH_I2C_Read... [05:48:46]Read from MH i2c: 01 07 00 [05:48:46]MH_I2C_Read... [05:48:46]Read from MH i2c: 01 07 00 D5 05 00 00 00 00 00 FF 0F EF [05:48:46]RasterBufferAndPrint [05:48:46]line Счет N : (1)458910 [05:48:46]line ИНН: 02508201610067 [05:48:46]line Контрольно-Кассовый Чек [05:48:46]line ПРОДАЖА [05:48:46]line ТРК (МРК, ГНК) : 11 [05:48:46]line Товар: 2710194210 [05:48:46]line ДТ-К-5 [05:48:46]line 13.910 * 71.90 [05:48:46]line = 1000.13 [05:48:46]line НДС 12% НСП 1% [05:48:46]line > о реализуемом товаре [05:48:46]line ОКРУГЛЕНИЕ: -0.13 [05:48:46]line ИТОГО: 1000.00 [05:48:46]line Внесено: 1000.00 [05:48:46]line СДАЧА: 0.00 [05:48:46]line НСП 1% : 8.85 [05:48:46]line НДС 12% : 106.21 [05:48:46]line Наличными: 1000.00 [05:48:46]line Безнал.: 0.00 [05:48:46]line Место: АЗС № 72 "Партнер Нефть" [05:48:46]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [05:48:46]line СНО: Общий режим [05:48:46]line Чек 16 14.07.2024 05:48 [05:48:46]line Смена: 447 ФФД: 1.0 [05:48:46]line ЗНМ: 0300000160 [05:48:46]line РНМ: 0000000000090829 [05:48:46]line Версия ККМ: 001 [05:48:46]line ФМ: 0000000000874718 [05:48:46]line ФД: 164818 [05:48:46]line ФПД: 173282595197772 [05:48:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T054845&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164818&fm=173282595197772&tin=02508201610067®Number=0000000000090829&sum=100000 [05:48:46]written 0, free lines is 4095 [05:48:46]OFD Sender: Processing packet 164818 [packets to send 104, broken 103] [05:48:46]ProducePacketName [05:48:46]name=ofd_packets/00164818 [05:48:46]OFD Sender: To server: pG, [05:48:46]CommunicateWithHost lk.salyk.kg:30040 [05:48:46]ConnectInit lk.salyk.kg [05:48:46]Connected sock=10 [05:48:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 8D F6 04 01 4B AE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 BD 66 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D2 83 02 00 35 04 06 00 9D 99 7F 88 53 4C 96 3A BB D5 B1 C1 21 C9 [05:48:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 6A A3 47 00 DD 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D2 83 02 00 F4 03 04 00 4C 0D 93 66 B6 04 01 00 00 79 30 40 55 25 DB ED CD [05:48:46]CommunicateWithHost err = 0 [05:48:46]CheckOFDResponse [05:48:46]1017 (14) - 77093643461234 [05:48:46]1041 (16) - 0000000000874718 [05:48:46]1040 (4) - 164818 [05:48:46]1012 (4) - 13.07.2024 23:27 [05:48:46]1206 (1) - 0 [05:48:46]OFD Sender: Remove packet 164818 [05:48:46]ProducePacketName [05:48:46]name=ofd_packets/00164818 [05:48:46]NVStorageDeleteData [05:48:46]Write to MH i2c: 01 00 00 FF 05 04 [05:48:46]Write i2c OK [05:48:46]MH_I2C_Read... [05:48:46]Read from MH i2c: 01 [05:48:46]MH_I2C_Read... [05:48:46]Read from MH i2c: 01 07 00 [05:48:46]MH_I2C_Read... [05:48:46]Read from MH i2c: 01 07 00 FF 05 00 00 00 00 00 F2 0C 09 [05:48:46]RasterBufferAndPrint [05:48:46]line [05:48:46]line [05:48:46]line [05:48:46]line [05:48:46]line [05:48:46]written 0, free lines is 3331 [05:48:46]MH_Cut [05:48:46]Write to MH i2c: D1 01 00 06 06 01 DE [05:48:46]Write i2c OK [05:48:46]MH_I2C_Read... [05:48:46]Read from MH i2c: D1 [05:48:46]MH_I2C_Read... [05:48:46]Read from MH i2c: D1 01 00 [05:48:46]MH_I2C_Read... [05:48:46]Read from MH i2c: D1 01 00 06 06 00 DD [05:48:46]Write to MH i2c: 01 00 00 07 06 0D [05:48:46]Write i2c OK [05:48:46]MH_I2C_Read... [05:48:47]OFD Sender: No OFD packet to send [05:48:47]*** Cut start [05:48:47]*** Partial cut [05:48:47]*** CUTSNS_PIN = 1 [05:48:47]*** CUTSNS_PIN = 0 [05:48:47]*** Brake cut motor [05:48:48]Read from MH i2c: 01 [05:48:48]MH_I2C_Read... [05:48:48]*** Stop cut motor [05:48:48]*** Cut end [05:48:48]Read from MH i2c: 01 07 00 [05:48:48]MH_I2C_Read... [05:48:48]Read from MH i2c: 01 07 00 07 06 00 00 00 00 00 FF 0F 22 [05:48:48]process_action close_receipt done [05:48:48]requested_data is exist [05:48:48]produce_requested_data [05:48:48]requested_item fm.sn is exist - process it [05:48:48]wFMCommunicate request_size=4 [05:48:48]MH_SAM_APDU [05:48:48]CAPDU: 80 11 00 00 [05:48:48]Write to MH i2c: E2 08 00 08 06 80 11 00 00 00 00 00 00 88 [05:48:48]Write i2c OK [05:48:48]MH_I2C_Read... [05:48:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:48:48]Read from MH i2c: E2 [05:48:48]MH_I2C_Read... [05:48:48]Read from MH i2c: E2 17 00 [05:48:48]MH_I2C_Read... [05:48:48]Read from MH i2c: E2 17 00 08 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DE [05:48:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [05:48:48]wFMCommunicate OK [05:48:48]requested_item fd.num is exist - process it [05:48:48]SAM_PROTO_GetFieldsCounters [05:48:48]wFMCommunicate request_size=4 [05:48:48]MH_SAM_APDU [05:48:48]CAPDU: 80 13 00 00 [05:48:48]Write to MH i2c: E2 08 00 09 06 80 13 00 00 00 00 00 00 8B [05:48:48]Write i2c OK [05:48:48]MH_I2C_Read... [05:48:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:48:48]Read from MH i2c: E2 [05:48:48]MH_I2C_Read... [05:48:48]Read from MH i2c: E2 62 00 [05:48:48]MH_I2C_Read... [05:48:48]Read from MH i2c: E2 62 00 09 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D2 83 02 00 0E 04 04 00 BF 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 F9 [05:48:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D2 83 02 00 0E 04 04 00 BF 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 [05:48:48]wFMCommunicate OK [05:48:48]SAM_PROTO_GetFieldsCounters done [05:48:48]requested_item shift.num is exist - process it [05:48:48]requested_item shift.opened is exist - process it [05:48:48]req_shift_opened [05:48:48]FM_GetShiftState [05:48:48]SAM_PROTO_GetShiftState [05:48:48]wFMCommunicate request_size=4 [05:48:48]MH_SAM_APDU [05:48:48]CAPDU: 80 13 01 00 [05:48:48]Write to MH i2c: E2 08 00 0A 06 80 13 01 00 00 00 00 00 8D [05:48:48]Write i2c OK [05:48:48]MH_I2C_Read... [05:48:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:48:48]Read from MH i2c: E2 [05:48:48]MH_I2C_Read... [05:48:48]Read from MH i2c: E2 0E 00 [05:48:48]MH_I2C_Read... [05:48:48]Read from MH i2c: E2 0E 00 0A 06 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 0D [05:48:48]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [05:48:48]wFMCommunicate OK [05:48:48]SAM_PROTO_GetShiftState done [05:48:48]FM_GetShiftState done [05:48:48]req_shift_opened done [05:48:48]requested_item shift.open_date is exist - process it [05:48:48]req_shift_open_date [05:48:48]req_shift_open_date done [05:48:48]produce_requested_data done [05:48:48]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164818,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [05:48:48]process_action_free close_receipt [05:48:48]json_value_free [05:48:48]json_value_free done [05:48:48]process_json_proto returns [05:48:48]Send response to host [05:48:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164818,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [05:48:48]free response buf [05:48:48]execute_script done [05:48:48]execute_script returns [05:48:48]free content buf [05:48:48]Sock 8.Close socket [05:48:48]Sock 8.Thread stoped [05:48:52]OFD Sender: No OFD packet to send [05:48:57]OFD Sender: No OFD packet to send [05:49:02]OFD Sender: No OFD packet to send [05:49:07]OFD Sender: No OFD packet to send [05:49:12]OFD Sender: No OFD packet to send [05:49:17]OFD Sender: No OFD packet to send [05:49:22]OFD Sender: No OFD packet to send [05:49:27]OFD Sender: No OFD packet to send [05:49:32]OFD Sender: No OFD packet to send [05:49:37]OFD Sender: No OFD packet to send [05:49:42]OFD Sender: No OFD packet to send [05:49:47]OFD Sender: No OFD packet to send [05:49:52]OFD Sender: No OFD packet to send [05:49:57]OFD Sender: No OFD packet to send [05:50:02]OFD Sender: No OFD packet to send [05:50:07]OFD Sender: No OFD packet to send [05:50:12]OFD Sender: No OFD packet to send [05:50:17]OFD Sender: No OFD packet to send [05:50:22]OFD Sender: No OFD packet to send [05:50:27]OFD Sender: No OFD packet to send [05:50:32]OFD Sender: No OFD packet to send [05:50:37]OFD Sender: No OFD packet to send [05:50:42]OFD Sender: No OFD packet to send [05:50:47]OFD Sender: No OFD packet to send [05:50:52]OFD Sender: No OFD packet to send [05:50:57]OFD Sender: No OFD packet to send [05:51:02]OFD Sender: No OFD packet to send [05:51:07]OFD Sender: No OFD packet to send [05:51:12]OFD Sender: No OFD packet to send [05:51:17]OFD Sender: No OFD packet to send [05:51:22]OFD Sender: No OFD packet to send [05:51:27]OFD Sender: No OFD packet to send [05:51:32]OFD Sender: No OFD packet to send [05:51:37]OFD Sender: No OFD packet to send [05:51:42]OFD Sender: No OFD packet to send [05:51:47]OFD Sender: No OFD packet to send [05:51:52]OFD Sender: No OFD packet to send [05:51:57]OFD Sender: No OFD packet to send [05:52:02]OFD Sender: No OFD packet to send [05:52:07]OFD Sender: No OFD packet to send [05:52:12]OFD Sender: No OFD packet to send [05:52:17]OFD Sender: No OFD packet to send [05:52:22]OFD Sender: No OFD packet to send [05:52:27]OFD Sender: No OFD packet to send [05:52:32]OFD Sender: No OFD packet to send [05:52:37]OFD Sender: No OFD packet to send [05:52:42]OFD Sender: No OFD packet to send [05:52:47]OFD Sender: No OFD packet to send [05:52:52]OFD Sender: No OFD packet to send [05:52:57]OFD Sender: No OFD packet to send [05:53:02]OFD Sender: No OFD packet to send [05:53:07]OFD Sender: No OFD packet to send [05:53:12]OFD Sender: No OFD packet to send [05:53:17]OFD Sender: No OFD packet to send [05:53:22]OFD Sender: No OFD packet to send [05:53:27]OFD Sender: No OFD packet to send [05:53:32]OFD Sender: No OFD packet to send [05:53:37]OFD Sender: No OFD packet to send [05:53:42]OFD Sender: No OFD packet to send [05:53:47]OFD Sender: No OFD packet to send [05:53:52]OFD Sender: No OFD packet to send [05:53:57]OFD Sender: No OFD packet to send [05:54:02]OFD Sender: No OFD packet to send [05:54:07]OFD Sender: No OFD packet to send [05:54:12]OFD Sender: No OFD packet to send [05:54:17]OFD Sender: No OFD packet to send [05:54:22]OFD Sender: No OFD packet to send [05:54:27]OFD Sender: No OFD packet to send [05:54:32]OFD Sender: No OFD packet to send [05:54:37]OFD Sender: No OFD packet to send [05:54:42]OFD Sender: No OFD packet to send [05:54:47]OFD Sender: No OFD packet to send [05:54:52]OFD Sender: No OFD packet to send [05:54:57]OFD Sender: No OFD packet to send [05:55:02]OFD Sender: No OFD packet to send [05:55:07]OFD Sender: No OFD packet to send [05:55:12]OFD Sender: No OFD packet to send [05:55:17]OFD Sender: No OFD packet to send [05:55:22]OFD Sender: No OFD packet to send [05:55:27]OFD Sender: No OFD packet to send [05:55:32]OFD Sender: No OFD packet to send [05:55:37]OFD Sender: No OFD packet to send [05:55:42]OFD Sender: No OFD packet to send [05:55:47]OFD Sender: No OFD packet to send [05:55:52]OFD Sender: No OFD packet to send [05:55:57]OFD Sender: No OFD packet to send [05:56:02]OFD Sender: No OFD packet to send [05:56:07]OFD Sender: No OFD packet to send [05:56:12]OFD Sender: No OFD packet to send [05:56:17]OFD Sender: No OFD packet to send [05:56:22]OFD Sender: No OFD packet to send [05:56:27]OFD Sender: No OFD packet to send [05:56:32]OFD Sender: No OFD packet to send [05:56:37]OFD Sender: No OFD packet to send [05:56:42]OFD Sender: No OFD packet to send [05:56:47]OFD Sender: No OFD packet to send [05:56:52]OFD Sender: No OFD packet to send [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:07]OFD Sender: No OFD packet to send [05:58:12]OFD Sender: No OFD packet to send [05:58:17]OFD Sender: No OFD packet to send [05:58:22]OFD Sender: No OFD packet to send [05:58:27]OFD Sender: No OFD packet to send [05:58:32]OFD Sender: No OFD packet to send [05:58:37]OFD Sender: No OFD packet to send [05:58:42]OFD Sender: No OFD packet to send [05:58:47]OFD Sender: No OFD packet to send [05:58:52]OFD Sender: No OFD packet to send [05:58:57]OFD Sender: No OFD packet to send [05:59:02]OFD Sender: No OFD packet to send [05:59:07]OFD Sender: No OFD packet to send [05:59:12]OFD Sender: No OFD packet to send [05:59:17]OFD Sender: No OFD packet to send [05:59:22]OFD Sender: No OFD packet to send [05:59:27]OFD Sender: No OFD packet to send [05:59:32]OFD Sender: No OFD packet to send [05:59:37]OFD Sender: No OFD packet to send [05:59:42]OFD Sender: No OFD packet to send [05:59:47]OFD Sender: No OFD packet to send [05:59:52]OFD Sender: No OFD packet to send [05:59:58]OFD Sender: No OFD packet to send [06:00:03]OFD Sender: No OFD packet to send [06:00:08]OFD Sender: No OFD packet to send [06:00:13]OFD Sender: No OFD packet to send [06:00:18]OFD Sender: No OFD packet to send [06:00:23]OFD Sender: No OFD packet to send [06:00:28]OFD Sender: No OFD packet to send [06:00:33]OFD Sender: No OFD packet to send [06:00:38]OFD Sender: No OFD packet to send [06:00:43]OFD Sender: No OFD packet to send [06:00:48]OFD Sender: No OFD packet to send [06:00:53]OFD Sender: No OFD packet to send [06:00:58]OFD Sender: No OFD packet to send [06:01:03]OFD Sender: No OFD packet to send [06:01:08]OFD Sender: No OFD packet to send [06:01:13]OFD Sender: No OFD packet to send [06:01:18]OFD Sender: No OFD packet to send [06:01:23]OFD Sender: No OFD packet to send [06:01:28]OFD Sender: No OFD packet to send [06:01:33]OFD Sender: No OFD packet to send [06:01:38]OFD Sender: No OFD packet to send [06:01:43]OFD Sender: No OFD packet to send [06:01:48]OFD Sender: No OFD packet to send [06:01:53]OFD Sender: No OFD packet to send [06:01:58]OFD Sender: No OFD packet to send [06:02:03]OFD Sender: No OFD packet to send [06:02:08]OFD Sender: No OFD packet to send [06:02:13]OFD Sender: No OFD packet to send [06:02:18]OFD Sender: No OFD packet to send [06:02:23]OFD Sender: No OFD packet to send [06:02:28]OFD Sender: No OFD packet to send [06:02:33]OFD Sender: No OFD packet to send [06:02:38]OFD Sender: No OFD packet to send [06:02:43]OFD Sender: No OFD packet to send [06:02:48]OFD Sender: No OFD packet to send [06:02:53]OFD Sender: No OFD packet to send [06:02:58]OFD Sender: No OFD packet to send [06:03:03]OFD Sender: No OFD packet to send [06:03:08]OFD Sender: No OFD packet to send [06:03:13]OFD Sender: No OFD packet to send [06:03:18]OFD Sender: No OFD packet to send [06:03:23]OFD Sender: No OFD packet to send [06:03:28]OFD Sender: No OFD packet to send [06:03:33]OFD Sender: No OFD packet to send [06:03:38]OFD Sender: No OFD packet to send [06:03:43]OFD Sender: No OFD packet to send [06:03:48]OFD Sender: No OFD packet to send [06:03:53]OFD Sender: No OFD packet to send [06:03:58]OFD Sender: No OFD packet to send [06:04:03]OFD Sender: No OFD packet to send [06:04:08]OFD Sender: No OFD packet to send [06:04:13]OFD Sender: No OFD packet to send [06:04:18]OFD Sender: No OFD packet to send [06:04:23]OFD Sender: No OFD packet to send [06:04:28]OFD Sender: No OFD packet to send [06:04:33]OFD Sender: No OFD packet to send [06:04:38]OFD Sender: No OFD packet to send [06:04:43]OFD Sender: No OFD packet to send [06:04:48]OFD Sender: No OFD packet to send [06:04:53]OFD Sender: No OFD packet to send [06:04:58]OFD Sender: No OFD packet to send [06:05:03]OFD Sender: No OFD packet to send [06:05:08]OFD Sender: No OFD packet to send [06:05:13]OFD Sender: No OFD packet to send [06:05:18]OFD Sender: No OFD packet to send [06:05:23]OFD Sender: No OFD packet to send [06:05:28]OFD Sender: No OFD packet to send [06:05:33]OFD Sender: No OFD packet to send [06:05:38]OFD Sender: No OFD packet to send [06:05:43]OFD Sender: No OFD packet to send [06:05:48]OFD Sender: No OFD packet to send [06:05:53]OFD Sender: No OFD packet to send [06:05:58]OFD Sender: No OFD packet to send [06:06:03]OFD Sender: No OFD packet to send [06:06:08]OFD Sender: No OFD packet to send [06:06:13]OFD Sender: No OFD packet to send [06:06:18]OFD Sender: No OFD packet to send [06:06:23]OFD Sender: No OFD packet to send [06:06:28]OFD Sender: No OFD packet to send [06:06:33]OFD Sender: No OFD packet to send [06:06:38]OFD Sender: No OFD packet to send [06:06:43]OFD Sender: No OFD packet to send [06:06:48]OFD Sender: No OFD packet to send [06:06:53]OFD Sender: No OFD packet to send [06:06:58]OFD Sender: No OFD packet to send [06:07:03]OFD Sender: No OFD packet to send [06:07:08]OFD Sender: No OFD packet to send [06:07:13]OFD Sender: No OFD packet to send [06:07:18]OFD Sender: No OFD packet to send [06:07:23]OFD Sender: No OFD packet to send [06:07:28]OFD Sender: No OFD packet to send [06:07:33]OFD Sender: No OFD packet to send [06:07:38]OFD Sender: No OFD packet to send [06:07:43]OFD Sender: No OFD packet to send [06:07:48]OFD Sender: No OFD packet to send [06:07:53]OFD Sender: No OFD packet to send [06:07:58]OFD Sender: No OFD packet to send [06:08:03]OFD Sender: No OFD packet to send [06:08:08]OFD Sender: No OFD packet to send [06:08:13]OFD Sender: No OFD packet to send [06:08:18]OFD Sender: No OFD packet to send [06:08:23]OFD Sender: No OFD packet to send [06:08:28]OFD Sender: No OFD packet to send [06:08:33]OFD Sender: No OFD packet to send [06:08:38]OFD Sender: No OFD packet to send [06:08:43]OFD Sender: No OFD packet to send [06:08:48]OFD Sender: No OFD packet to send [06:08:53]OFD Sender: No OFD packet to send [06:08:58]OFD Sender: No OFD packet to send [06:09:03]OFD Sender: No OFD packet to send [06:09:08]OFD Sender: No OFD packet to send [06:09:13]OFD Sender: No OFD packet to send [06:09:18]OFD Sender: No OFD packet to send [06:09:23]OFD Sender: No OFD packet to send [06:09:28]OFD Sender: No OFD packet to send [06:09:33]OFD Sender: No OFD packet to send [06:09:38]OFD Sender: No OFD packet to send [06:09:43]OFD Sender: No OFD packet to send [06:09:48]OFD Sender: No OFD packet to send [06:09:53]OFD Sender: No OFD packet to send [06:09:58]OFD Sender: No OFD packet to send [06:10:03]OFD Sender: No OFD packet to send [06:10:08]OFD Sender: No OFD packet to send [06:10:13]OFD Sender: No OFD packet to send [06:10:18]OFD Sender: No OFD packet to send [06:10:23]OFD Sender: No OFD packet to send [06:10:28]OFD Sender: No OFD packet to send [06:10:33]OFD Sender: No OFD packet to send [06:10:38]OFD Sender: No OFD packet to send [06:10:43]OFD Sender: No OFD packet to send [06:10:48]OFD Sender: No OFD packet to send [06:10:53]OFD Sender: No OFD packet to send [06:10:58]OFD Sender: No OFD packet to send [06:11:03]OFD Sender: No OFD packet to send [06:11:08]OFD Sender: No OFD packet to send [06:11:13]OFD Sender: No OFD packet to send [06:11:18]OFD Sender: No OFD packet to send [06:11:23]OFD Sender: No OFD packet to send [06:11:28]OFD Sender: No OFD packet to send [06:11:33]OFD Sender: No OFD packet to send [06:11:38]OFD Sender: No OFD packet to send [06:11:43]OFD Sender: No OFD packet to send [06:11:48]OFD Sender: No OFD packet to send [06:11:53]OFD Sender: No OFD packet to send [06:11:58]OFD Sender: No OFD packet to send [06:12:03]OFD Sender: No OFD packet to send [06:12:08]OFD Sender: No OFD packet to send [06:12:13]OFD Sender: No OFD packet to send [06:12:18]OFD Sender: No OFD packet to send [06:12:23]OFD Sender: No OFD packet to send [06:12:28]OFD Sender: No OFD packet to send [06:12:33]OFD Sender: No OFD packet to send [06:12:38]OFD Sender: No OFD packet to send [06:12:43]OFD Sender: No OFD packet to send [06:12:48]OFD Sender: No OFD packet to send [06:12:53]OFD Sender: No OFD packet to send [06:12:58]OFD Sender: No OFD packet to send [06:13:03]OFD Sender: No OFD packet to send [06:13:08]OFD Sender: No OFD packet to send [06:13:13]OFD Sender: No OFD packet to send [06:13:18]OFD Sender: No OFD packet to send [06:13:23]OFD Sender: No OFD packet to send [06:13:28]OFD Sender: No OFD packet to send [06:13:33]OFD Sender: No OFD packet to send [06:13:38]OFD Sender: No OFD packet to send [06:13:43]OFD Sender: No OFD packet to send [06:13:48]OFD Sender: No OFD packet to send [06:13:53]OFD Sender: No OFD packet to send [06:13:58]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:09]OFD Sender: No OFD packet to send [06:15:14]OFD Sender: No OFD packet to send [06:15:19]OFD Sender: No OFD packet to send [06:15:24]OFD Sender: No OFD packet to send [06:15:29]OFD Sender: No OFD packet to send [06:15:34]OFD Sender: No OFD packet to send [06:15:39]OFD Sender: No OFD packet to send [06:15:44]OFD Sender: No OFD packet to send [06:15:49]OFD Sender: No OFD packet to send [06:15:54]OFD Sender: No OFD packet to send [06:15:59]OFD Sender: No OFD packet to send [06:16:04]OFD Sender: No OFD packet to send [06:16:09]OFD Sender: No OFD packet to send [06:16:14]OFD Sender: No OFD packet to send [06:16:19]OFD Sender: No OFD packet to send [06:16:24]OFD Sender: No OFD packet to send [06:16:29]OFD Sender: No OFD packet to send [06:16:34]OFD Sender: No OFD packet to send [06:16:39]OFD Sender: No OFD packet to send [06:16:44]OFD Sender: No OFD packet to send [06:16:49]OFD Sender: No OFD packet to send [06:16:54]OFD Sender: No OFD packet to send [06:16:59]OFD Sender: No OFD packet to send [06:17:04]OFD Sender: No OFD packet to send [06:17:09]OFD Sender: No OFD packet to send [06:17:14]OFD Sender: No OFD packet to send [06:17:19]OFD Sender: No OFD packet to send [06:17:24]OFD Sender: No OFD packet to send [06:17:29]OFD Sender: No OFD packet to send [06:17:34]OFD Sender: No OFD packet to send [06:17:39]OFD Sender: No OFD packet to send [06:17:44]OFD Sender: No OFD packet to send [06:17:49]OFD Sender: No OFD packet to send [06:17:54]OFD Sender: No OFD packet to send [06:17:59]OFD Sender: No OFD packet to send [06:18:04]OFD Sender: No OFD packet to send [06:18:09]OFD Sender: No OFD packet to send [06:18:14]OFD Sender: No OFD packet to send [06:18:19]OFD Sender: No OFD packet to send [06:18:24]OFD Sender: No OFD packet to send [06:18:29]OFD Sender: No OFD packet to send [06:18:34]OFD Sender: No OFD packet to send [06:18:39]OFD Sender: No OFD packet to send [06:18:44]OFD Sender: No OFD packet to send [06:18:49]OFD Sender: No OFD packet to send [06:18:54]OFD Sender: No OFD packet to send [06:18:59]OFD Sender: No OFD packet to send [06:19:04]OFD Sender: No OFD packet to send [06:19:09]OFD Sender: No OFD packet to send [06:19:14]OFD Sender: No OFD packet to send [06:19:19]OFD Sender: No OFD packet to send [06:19:24]OFD Sender: No OFD packet to send [06:19:29]OFD Sender: No OFD packet to send [06:19:34]OFD Sender: No OFD packet to send [06:19:39]OFD Sender: No OFD packet to send [06:19:44]OFD Sender: No OFD packet to send [06:19:49]OFD Sender: No OFD packet to send [06:19:54]OFD Sender: No OFD packet to send [06:19:59]OFD Sender: No OFD packet to send [06:20:04]OFD Sender: No OFD packet to send [06:20:09]OFD Sender: No OFD packet to send [06:20:14]OFD Sender: No OFD packet to send [06:20:19]OFD Sender: No OFD packet to send [06:20:24]OFD Sender: No OFD packet to send [06:20:29]OFD Sender: No OFD packet to send [06:20:34]OFD Sender: No OFD packet to send [06:20:39]OFD Sender: No OFD packet to send [06:20:44]OFD Sender: No OFD packet to send [06:20:49]OFD Sender: No OFD packet to send [06:20:54]OFD Sender: No OFD packet to send [06:20:59]OFD Sender: No OFD packet to send [06:21:02]accept exits with 9 [06:21:02]New connection [06:21:02]New thread 3067571556 created [06:21:02]Thread 3067428196 joined [06:21:02]Waiting for new connection... [06:21:02] Sock 9.Parse request [06:21:02]Sock 9.Check first char [06:21:02]Sock 9.First char is OK [06:21:02]request: POST /json_proto HTTP/1.0 [06:21:02]Method: POST [06:21:02]URL: /json_proto [06:21:02]Method is POST - this is cgi request [06:21:02]url: /json_proto [06:21:02]query_string will be loaded in cgi processing [06:21:02]execute_cgi json_proto POST (null) [06:21:02]execute_cgi path=json_proto method=POST [06:21:02]POST find Content-Length [06:21:02]Host: 172.17.56.4:8080 [06:21:02]Content-Length: 677 [06:21:02]Content-Type: application/json [06:21:02] [06:21:02]POST finish read [06:21:02]Found Content-Length = 677 [06:21:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458912", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.960, "sum" : 260.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 260.00, "total" : 260.00, "payments": [ { "type": 0, "sum" : 260.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:21:02]execute_script... [06:21: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)458912", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.960, "sum" : 260.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 260.00, "total" : 260.00, "payments": [ { "type": 0, "sum" : 260.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:21:02]POST & json_proto [06:21:02]process_json_proto [06:21:02]json parsed OK: [06:21:02]protocol is kg_v1.0 [06:21:02]action value=close_receipt [06:21:02]process_action close_receipt [06:21:02]cmd_close_receipt [06:21:02]MH_GetDate [06:21:02]Write to MH i2c: F0 00 00 0B 06 00 [06:21:02]Write i2c OK [06:21:02]MH_I2C_Read... [06:21:02]Read from MH i2c: F0 [06:21:02]MH_I2C_Read... [06:21:02]Read from MH i2c: F0 09 00 [06:21:02]MH_I2C_Read... [06:21:02]Read from MH i2c: F0 09 00 0B 06 00 50 6E 93 66 C9 DC B2 64 7B [06:21:02]GetLastDocTimeStamp 1720936125 [06:21:02]current date 1720938064 [06:21:02]FM_GetShiftState [06:21:02]SAM_PROTO_GetShiftState [06:21:02]wFMCommunicate request_size=4 [06:21:02]MH_SAM_APDU [06:21:02]CAPDU: 80 13 01 00 [06:21:02]Write to MH i2c: E2 08 00 0C 06 80 13 01 00 00 00 00 00 8F [06:21:02]Write i2c OK [06:21:02]MH_I2C_Read... [06:21:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:21:02]Read from MH i2c: E2 [06:21:02]MH_I2C_Read... [06:21:02]Read from MH i2c: E2 0E 00 [06:21:02]MH_I2C_Read... [06:21:02]Read from MH i2c: E2 0E 00 0C 06 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 0F [06:21:02]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [06:21:02]wFMCommunicate OK [06:21:02]SAM_PROTO_GetShiftState done [06:21:02]FM_GetShiftState done [06:21:02]opened in 1720917342 [06:21:02]opened+sec_in_day 1721003742 [06:21:02]quantity*price = 26056 [06:21:02]sum+1 = 26058 [06:21:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 260.00 Внесено: 260.00 СДАЧА: 0.00 НСП 1% : 2.31 НДС 12% : 27.67 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 17 14.07.2024 06:21 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164819 ФПД: 276690846369186 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T062104&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164819&fm=276690846369186&tin=02508201610067®Number=0000000000090829&sum=26000 [06:21:03]StoreToDocumentArchive [06:21:03]shift 447 fd 164819 [06:21:03]save to /storage/0447/doc_00164819 [06:21:03]save last doc name /storage/0447/doc_00164819 to /storage/kkm_last_doc_name [06:21:03]save OK [06:21:03]Clear old archive folders... [06:21:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:21:03]tlvbuf is 0163A8B0 [06:21:03]SAM_PROTO_ClearQueue [06:21:03]wFMCommunicate request_size=4 [06:21:03]MH_SAM_APDU [06:21:03]CAPDU: 80 09 00 00 [06:21:03]Write to MH i2c: E2 08 00 19 06 80 09 00 00 00 00 00 00 91 [06:21:03]Write i2c OK [06:21:03]MH_I2C_Read... [06:21:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:21:03]Read from MH i2c: E2 [06:21:03]MH_I2C_Read... [06:21:03]Read from MH i2c: E2 03 00 [06:21:03]MH_I2C_Read... [06:21:03]Read from MH i2c: E2 03 00 19 06 00 90 00 93 [06:21:03]RAPDU: 90 00 [06:21:03]wFMCommunicate OK [06:21:03]SAM_PROTO_ClearQueue done [06:21:03]KKMCreateOFDPacket [06:21:03]OFDProtocolAddRootSTLVToBuf [06:21:03]FM_MakeSignedData [06:21:03]FM_MakeSignedData [06:21:03]SAM_PROTO_SignData [06:21:03]wFMCommunicate request_size=4 [06:21:03]MH_SAM_APDU [06:21:03]CAPDU: 80 0D 01 02 [06:21:03]Write to MH i2c: E2 08 00 1A 06 80 0D 01 02 00 00 00 00 99 [06:21:03]Write i2c OK [06:21:03]MH_I2C_Read... [06:21:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:21:04]Read from MH i2c: E2 [06:21:04]MH_I2C_Read... [06:21:04]Read from MH i2c: E2 03 00 [06:21:04]MH_I2C_Read... [06:21:04]Read from MH i2c: E2 03 00 1A 06 00 90 00 94 [06:21:04]RAPDU: 90 00 [06:21:04]wFMCommunicate OK [06:21:04]wFMCommunicate request_size=255 [06:21:04]MH_SAM_APDU [06:21:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 0F 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 C9 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 50 6E 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D3 83 02 00 35 04 06 00 FB [06:21:04]Write to MH i2c: E2 02 01 1B 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 0F 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 C9 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 50 6E 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D3 83 02 00 35 04 06 00 FB 00 00 B0 [06:21:04]Write i2c OK [06:21:04]MH_I2C_Read... [06:21:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:21:04]Read from MH i2c: E2 [06:21:04]MH_I2C_Read... [06:21:04]Read from MH i2c: E2 03 00 [06:21:04]MH_I2C_Read... [06:21:04]Read from MH i2c: E2 03 00 1B 06 00 90 00 95 [06:21:04]RAPDU: 90 00 [06:21:04]wFMCommunicate OK [06:21:04]wFMCommunicate request_size=10 [06:21:04]MH_SAM_APDU [06:21:04]CAPDU: 80 0D 02 02 05 A6 1B 9C 45 A2 [06:21:04]Write to MH i2c: E2 0D 00 1C 06 80 0D 02 02 05 00 A6 1B 9C 45 A2 00 00 EA [06:21:04]Write i2c OK [06:21:04]MH_I2C_Read... [06:21:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:21:04]Read from MH i2c: E2 [06:21:04]MH_I2C_Read... [06:21:04]Read from MH i2c: E2 03 00 [06:21:04]MH_I2C_Read... [06:21:04]Read from MH i2c: E2 03 00 1C 06 00 90 00 96 [06:21:04]RAPDU: 90 00 [06:21:04]wFMCommunicate OK [06:21:04]wFMCommunicate request_size=4 [06:21:04]MH_SAM_APDU [06:21:04]CAPDU: 80 0D 03 02 [06:21:04]Write to MH i2c: E2 08 00 1D 06 80 0D 03 02 00 00 00 00 9E [06:21:04]Write i2c OK [06:21:04]MH_I2C_Read... [06:21:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:21:04]OFD Sender: No OFD packet to send [06:21:04]Read from MH i2c: E2 [06:21:04]MH_I2C_Read... [06:21:04]Read from MH i2c: E2 0B 00 [06:21:04]MH_I2C_Read... [06:21:04]Read from MH i2c: E2 0B 00 1D 06 00 EE 95 E7 FA 50 44 84 13 90 00 2E [06:21:04]RAPDU: EE 95 E7 FA 50 44 84 13 90 00 [06:21:04]wFMCommunicate OK [06:21:04]SAM_PROTO_SignData done [06:21:04]FM_MakeSignedData done [06:21:04]CreateOFDProtocolMessage [06:21:04]wFMCommunicate request_size=4 [06:21:04]MH_SAM_APDU [06:21:04]CAPDU: 80 11 00 00 [06:21:04]Write to MH i2c: E2 08 00 1E 06 80 11 00 00 00 00 00 00 9E [06:21:04]Write i2c OK [06:21:04]MH_I2C_Read... [06:21:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:21:04]Read from MH i2c: E2 [06:21:04]MH_I2C_Read... [06:21:04]Read from MH i2c: E2 17 00 [06:21:04]MH_I2C_Read... [06:21:04]Read from MH i2c: E2 17 00 1E 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F4 [06:21:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [06:21:04]wFMCommunicate OK [06:21:04]CreateOFDProtocolMessage done [06:21:04]OFDSenderStorePacket 164819 [06:21:04]StoreOFDPacket docnum=164819 [06:21:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 21 8D 07 01 7C 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 0F 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 C9 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 50 6E 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D3 83 02 00 35 04 06 00 FB A6 1B 9C 45 A2 EE 95 E7 FA 50 44 84 13 [06:21:04]CheckFolder [06:21:04]dirname=/storage/ofd_packets [06:21:04]CheckFolder done [06:21:04]ProducePacketName [06:21:04]name=ofd_packets/00164819 [06:21:04]NVStorageSaveData ofd_packets/00164819 [06:21:04]File name is /storage/ofd_packets/00164819 [06:21:04]Write 301 bytes [06:21:04]NVStorageSaveData done [06:21:04]OFDSenderStorePacket done [06:21:04]KKMCreateOFDPacket done [06:21:04]NVStorageSaveData kkm_last_timestamp [06:21:04]File name is /storage/kkm_last_timestamp [06:21:04]Write 4 bytes [06:21:04]NVStorageSaveData done [06:21:04]ExternCall_PrintAddStr [06:21:04]wPrintStart [06:21:04]Write to MH i2c: 01 00 00 1F 06 25 [06:21:04]Write i2c OK [06:21:04]MH_I2C_Read... [06:21:04]Read from MH i2c: 01 [06:21:04]MH_I2C_Read... [06:21:04]Read from MH i2c: 01 07 00 [06:21:04]MH_I2C_Read... [06:21:04]Read from MH i2c: 01 07 00 1F 06 00 00 00 00 00 FF 0F 3A [06:21:04]RasterBufferAndPrint [06:21:04]line Счет N : (1)458912 [06:21:04]line ИНН: 02508201610067 [06:21:04]line Контрольно-Кассовый Чек [06:21:04]line ПРОДАЖА [06:21:04]line ТРК (МРК, ГНК) : 12 [06:21:04]line Товар: 2710124130 [06:21:04]line Аи-92-К-5 [06:21:04]line 3.960 * 65.80 [06:21:04]line = 260.57 [06:21:04]line НДС 12% НСП 1% [06:21:04]line > о реализуемом товаре [06:21:04]line ОКРУГЛЕНИЕ: -0.57 [06:21:04]line ИТОГО: 260.00 [06:21:04]line Внесено: 260.00 [06:21:04]line СДАЧА: 0.00 [06:21:04]line НСП 1% : 2.31 [06:21:04]line НДС 12% : 27.67 [06:21:04]line Наличными: 260.00 [06:21:04]line Безнал.: 0.00 [06:21:04]line Место: АЗС № 72 "Партнер Нефть" [06:21:04]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [06:21:04]line СНО: Общий режим [06:21:04]line Чек 17 14.07.2024 06:21 [06:21:04]line Смена: 447 ФФД: 1.0 [06:21:04]line ЗНМ: 0300000160 [06:21:04]line РНМ: 0000000000090829 [06:21:04]line Версия ККМ: 001 [06:21:04]line ФМ: 0000000000874718 [06:21:04]line ФД: 164819 [06:21:04]line ФПД: 276690846369186 [06:21:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T062104&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164819&fm=276690846369186&tin=02508201610067®Number=0000000000090829&sum=26000 [06:21:04]OFD Sender: Processing packet 164819 [packets to send 104, broken 103] [06:21:04]ProducePacketName [06:21:04]name=ofd_packets/00164819 [06:21:04]OFD Sender: To server: pG, [06:21:04]CommunicateWithHost lk.salyk.kg:30040 [06:21:04]ConnectInit lk.salyk.kg [06:21:04]written 0, free lines is 4095 [06:21:04]Connected sock=10 [06:21:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 21 8D 07 01 7C 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 0F 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 C9 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 50 6E 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D3 83 02 00 35 04 06 00 FB A6 1B 9C 45 A2 EE 95 E7 FA 50 44 84 13 [06:21:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 82 AA 47 00 73 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 38 37 34 37 31 38 10 04 04 00 D3 83 02 00 F4 03 04 00 DF 14 93 66 B6 04 01 00 00 B5 C2 20 36 87 91 C2 97 [06:21:05]CommunicateWithHost err = 0 [06:21:05]CheckOFDResponse [06:21:05]1017 (14) - 77093643461234 [06:21:05]1041 (16) - 0000000000874718 [06:21:05]1040 (4) - 164819 [06:21:05]1012 (4) - 13.07.2024 23:59 [06:21:05]1206 (1) - 0 [06:21:05]OFD Sender: Remove packet 164819 [06:21:05]ProducePacketName [06:21:05]name=ofd_packets/00164819 [06:21:05]NVStorageDeleteData [06:21:05]Write to MH i2c: 01 00 00 49 06 4F [06:21:05]Write i2c OK [06:21:05]MH_I2C_Read... [06:21:05]Read from MH i2c: 01 [06:21:05]MH_I2C_Read... [06:21:05]Read from MH i2c: 01 07 00 [06:21:05]MH_I2C_Read... [06:21:05]Read from MH i2c: 01 07 00 49 06 00 00 00 00 00 F5 0C 57 [06:21:05]RasterBufferAndPrint [06:21:05]line [06:21:05]line [06:21:05]line [06:21:05]line [06:21:05]line [06:21:05]written 0, free lines is 3323 [06:21:05]MH_Cut [06:21:05]Write to MH i2c: D1 01 00 50 06 01 28 [06:21:05]Write i2c OK [06:21:05]MH_I2C_Read... [06:21:05]Read from MH i2c: D1 [06:21:05]MH_I2C_Read... [06:21:05]Read from MH i2c: D1 01 00 [06:21:05]MH_I2C_Read... [06:21:05]Read from MH i2c: D1 01 00 50 06 00 27 [06:21:05]Write to MH i2c: 01 00 00 51 06 57 [06:21:05]Write i2c OK [06:21:05]MH_I2C_Read... [06:21:05]OFD Sender: No OFD packet to send [06:21:05]*** Cut start [06:21:05]*** Partial cut [06:21:05]*** CUTSNS_PIN = 1 [06:21:05]*** CUTSNS_PIN = 0 [06:21:06]*** Brake cut motor [06:21:06]Read from MH i2c: 01 [06:21:06]MH_I2C_Read... [06:21:06]*** Stop cut motor [06:21:06]*** Cut end [06:21:06]Read from MH i2c: 01 07 00 [06:21:06]MH_I2C_Read... [06:21:06]Read from MH i2c: 01 07 00 51 06 00 00 00 00 00 FF 0F 6C [06:21:06]process_action close_receipt done [06:21:06]requested_data is exist [06:21:06]produce_requested_data [06:21:06]requested_item fm.sn is exist - process it [06:21:06]wFMCommunicate request_size=4 [06:21:06]MH_SAM_APDU [06:21:06]CAPDU: 80 11 00 00 [06:21:06]Write to MH i2c: E2 08 00 52 06 80 11 00 00 00 00 00 00 D2 [06:21:06]Write i2c OK [06:21:06]MH_I2C_Read... [06:21:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:21:06]Read from MH i2c: E2 [06:21:06]MH_I2C_Read... [06:21:06]Read from MH i2c: E2 17 00 [06:21:06]MH_I2C_Read... [06:21:06]Read from MH i2c: E2 17 00 52 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 28 [06:21:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [06:21:06]wFMCommunicate OK [06:21:06]requested_item fd.num is exist - process it [06:21:06]SAM_PROTO_GetFieldsCounters [06:21:06]wFMCommunicate request_size=4 [06:21:06]MH_SAM_APDU [06:21:06]CAPDU: 80 13 00 00 [06:21:06]Write to MH i2c: E2 08 00 53 06 80 13 00 00 00 00 00 00 D5 [06:21:06]Write i2c OK [06:21:06]MH_I2C_Read... [06:21:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:21:06]Read from MH i2c: E2 [06:21:06]MH_I2C_Read... [06:21:06]Read from MH i2c: E2 62 00 [06:21:06]MH_I2C_Read... [06:21:06]Read from MH i2c: E2 62 00 53 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D3 83 02 00 0E 04 04 00 BF 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 47 [06:21:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D3 83 02 00 0E 04 04 00 BF 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 [06:21:06]wFMCommunicate OK [06:21:06]SAM_PROTO_GetFieldsCounters done [06:21:06]requested_item shift.num is exist - process it [06:21:06]requested_item shift.opened is exist - process it [06:21:06]req_shift_opened [06:21:06]FM_GetShiftState [06:21:06]SAM_PROTO_GetShiftState [06:21:06]wFMCommunicate request_size=4 [06:21:06]MH_SAM_APDU [06:21:06]CAPDU: 80 13 01 00 [06:21:06]Write to MH i2c: E2 08 00 54 06 80 13 01 00 00 00 00 00 D7 [06:21:06]Write i2c OK [06:21:06]MH_I2C_Read... [06:21:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:21:06]Read from MH i2c: E2 [06:21:06]MH_I2C_Read... [06:21:06]Read from MH i2c: E2 0E 00 [06:21:06]MH_I2C_Read... [06:21:06]Read from MH i2c: E2 0E 00 54 06 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 57 [06:21:06]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [06:21:06]wFMCommunicate OK [06:21:06]SAM_PROTO_GetShiftState done [06:21:06]FM_GetShiftState done [06:21:06]req_shift_opened done [06:21:06]requested_item shift.open_date is exist - process it [06:21:06]req_shift_open_date [06:21:06]req_shift_open_date done [06:21:06]produce_requested_data done [06:21:06]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164819,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [06:21:06]process_action_free close_receipt [06:21:06]json_value_free [06:21:06]json_value_free done [06:21:06]process_json_proto returns [06:21:06]Send response to host [06:21:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164819,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [06:21:06]free response buf [06:21:06]execute_script done [06:21:06]execute_script returns [06:21:06]free content buf [06:21:06]Sock 9.Close socket [06:21:06]Sock 9.Thread stoped [06:21:10]OFD Sender: No OFD packet to send [06:21:15]OFD Sender: No OFD packet to send [06:21:20]OFD Sender: No OFD packet to send [06:21:25]OFD Sender: No OFD packet to send [06:21:30]OFD Sender: No OFD packet to send [06:21:35]OFD Sender: No OFD packet to send [06:21:40]OFD Sender: No OFD packet to send [06:21:45]OFD Sender: No OFD packet to send [06:21:50]OFD Sender: No OFD packet to send [06:21:55]OFD Sender: No OFD packet to send [06:22:00]OFD Sender: No OFD packet to send [06:22:05]OFD Sender: No OFD packet to send [06:22:10]OFD Sender: No OFD packet to send [06:22:15]OFD Sender: No OFD packet to send [06:22:20]OFD Sender: No OFD packet to send [06:22:25]OFD Sender: No OFD packet to send [06:22:30]OFD Sender: No OFD packet to send [06:22:35]OFD Sender: No OFD packet to send [06:22:40]OFD Sender: No OFD packet to send [06:22:45]OFD Sender: No OFD packet to send [06:22:50]OFD Sender: No OFD packet to send [06:22:55]OFD Sender: No OFD packet to send [06:23:00]OFD Sender: No OFD packet to send [06:23:05]OFD Sender: No OFD packet to send [06:23:10]OFD Sender: No OFD packet to send [06:23:15]OFD Sender: No OFD packet to send [06:23:20]OFD Sender: No OFD packet to send [06:23:25]OFD Sender: No OFD packet to send [06:23:30]OFD Sender: No OFD packet to send [06:23:35]OFD Sender: No OFD packet to send [06:23:40]OFD Sender: No OFD packet to send [06:23:45]OFD Sender: No OFD packet to send [06:23:50]OFD Sender: No OFD packet to send [06:23:55]OFD Sender: No OFD packet to send [06:24:00]OFD Sender: No OFD packet to send [06:24:05]OFD Sender: No OFD packet to send [06:24:10]OFD Sender: No OFD packet to send [06:24:15]OFD Sender: No OFD packet to send [06:24:20]OFD Sender: No OFD packet to send [06:24:25]OFD Sender: No OFD packet to send [06:24:30]OFD Sender: No OFD packet to send [06:24:35]OFD Sender: No OFD packet to send [06:24:40]OFD Sender: No OFD packet to send [06:24:45]OFD Sender: No OFD packet to send [06:24:50]OFD Sender: No OFD packet to send [06:24:55]OFD Sender: No OFD packet to send [06:25:00]OFD Sender: No OFD packet to send [06:25:05]OFD Sender: No OFD packet to send [06:25:10]OFD Sender: No OFD packet to send [06:25:15]OFD Sender: No OFD packet to send [06:25: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]accept exits with 8 [06:26:45]New connection [06:26:45]New thread 3067428196 created [06:26:45]Thread 3067571556 joined [06:26:45]Waiting for new connection... [06:26:45] Sock 8.Parse request [06:26:45]Sock 8.Check first char [06:26:45]Sock 8.First char is OK [06:26:45]request: POST /json_proto HTTP/1.0 [06:26:45]Method: POST [06:26:45]URL: /json_proto [06:26:45]Method is POST - this is cgi request [06:26:45]url: /json_proto [06:26:45]query_string will be loaded in cgi processing [06:26:45]execute_cgi json_proto POST (null) [06:26:45]execute_cgi path=json_proto method=POST [06:26:45]POST find Content-Length [06:26:45]Host: 172.17.56.4:8080 [06:26:45]Content-Length: 677 [06:26:45]Content-Type: application/json [06:26:45] [06:26:45]POST finish read [06:26:45]Found Content-Length = 677 [06:26:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458913", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "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" ] } } [06:26:45]execute_script... [06:26: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)458913", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "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" ] } } [06:26:45]POST & json_proto [06:26:45]process_json_proto [06:26:45]json parsed OK: [06:26:45]protocol is kg_v1.0 [06:26:45]action value=close_receipt [06:26:45]process_action close_receipt [06:26:45]cmd_close_receipt [06:26:45]MH_GetDate [06:26:45]Write to MH i2c: F0 00 00 55 06 4A [06:26:45]Write i2c OK [06:26:45]MH_I2C_Read... [06:26:45]Read from MH i2c: F0 [06:26:45]MH_I2C_Read... [06:26:45]Read from MH i2c: F0 09 00 [06:26:45]MH_I2C_Read... [06:26:45]Read from MH i2c: F0 09 00 55 06 00 A6 6F 93 66 C9 DC B2 64 1C [06:26:45]GetLastDocTimeStamp 1720938064 [06:26:45]current date 1720938406 [06:26:45]FM_GetShiftState [06:26:45]SAM_PROTO_GetShiftState [06:26:45]wFMCommunicate request_size=4 [06:26:45]MH_SAM_APDU [06:26:45]CAPDU: 80 13 01 00 [06:26:45]Write to MH i2c: E2 08 00 56 06 80 13 01 00 00 00 00 00 D9 [06:26:45]Write i2c OK [06:26:45]MH_I2C_Read... [06:26:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:26:45]Read from MH i2c: E2 [06:26:45]MH_I2C_Read... [06:26:45]Read from MH i2c: E2 0E 00 [06:26:45]MH_I2C_Read... [06:26:45]Read from MH i2c: E2 0E 00 56 06 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 59 [06:26:45]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [06:26:45]wFMCommunicate OK [06:26:45]SAM_PROTO_GetShiftState done [06:26:45]FM_GetShiftState done [06:26:45]opened in 1720917342 [06:26:45]opened+sec_in_day 1721003742 [06:26:45]quantity*price = 30004 [06:26:45]sum+1 = 30006 [06:26:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 18 14.07.2024 06:26 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164820 ФПД: 206875678268969 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T062646&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164820&fm=206875678268969&tin=02508201610067®Number=0000000000090829&sum=30000 [06:26:46]StoreToDocumentArchive [06:26:46]shift 447 fd 164820 [06:26:46]save to /storage/0447/doc_00164820 [06:26:46]save last doc name /storage/0447/doc_00164820 to /storage/kkm_last_doc_name [06:26:46]save OK [06:26:46]Clear old archive folders... [06:26:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:26:46]tlvbuf is 016536E0 [06:26:46]SAM_PROTO_ClearQueue [06:26:46]wFMCommunicate request_size=4 [06:26:46]MH_SAM_APDU [06:26:46]CAPDU: 80 09 00 00 [06:26:46]Write to MH i2c: E2 08 00 63 06 80 09 00 00 00 00 00 00 DB [06:26:46]Write i2c OK [06:26:46]MH_I2C_Read... [06:26:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:26:46]Read from MH i2c: E2 [06:26:46]MH_I2C_Read... [06:26:46]Read from MH i2c: E2 03 00 [06:26:46]MH_I2C_Read... [06:26:46]Read from MH i2c: E2 03 00 63 06 00 90 00 DD [06:26:46]RAPDU: 90 00 [06:26:46]wFMCommunicate OK [06:26:46]SAM_PROTO_ClearQueue done [06:26:46]KKMCreateOFDPacket [06:26:46]OFDProtocolAddRootSTLVToBuf [06:26:46]FM_MakeSignedData [06:26:46]FM_MakeSignedData [06:26:46]SAM_PROTO_SignData [06:26:46]wFMCommunicate request_size=4 [06:26:46]MH_SAM_APDU [06:26:46]CAPDU: 80 0D 01 02 [06:26:46]Write to MH i2c: E2 08 00 64 06 80 0D 01 02 00 00 00 00 E3 [06:26:46]Write i2c OK [06:26:46]MH_I2C_Read... [06:26:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:26:46]Read from MH i2c: E2 [06:26:46]MH_I2C_Read... [06:26:46]Read from MH i2c: E2 03 00 [06:26:46]MH_I2C_Read... [06:26:46]Read from MH i2c: E2 03 00 64 06 00 90 00 DE [06:26:46]RAPDU: 90 00 [06:26:46]wFMCommunicate OK [06:26:46]wFMCommunicate request_size=255 [06:26:46]MH_SAM_APDU [06:26:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 A6 6F 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D4 83 02 00 35 04 06 00 BC [06:26:46]Write to MH i2c: E2 02 01 65 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 A6 6F 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D4 83 02 00 35 04 06 00 BC 00 00 12 [06:26:46]Write i2c OK [06:26:46]MH_I2C_Read... [06:26:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:26:46]Read from MH i2c: E2 [06:26:46]MH_I2C_Read... [06:26:46]Read from MH i2c: E2 03 00 [06:26:46]MH_I2C_Read... [06:26:46]Read from MH i2c: E2 03 00 65 06 00 90 00 DF [06:26:46]RAPDU: 90 00 [06:26:46]wFMCommunicate OK [06:26:46]wFMCommunicate request_size=10 [06:26:46]MH_SAM_APDU [06:26:46]CAPDU: 80 0D 02 02 05 26 FF 50 DE 29 [06:26:46]Write to MH i2c: E2 0D 00 66 06 80 0D 02 02 05 00 26 FF 50 DE 29 00 00 6C [06:26:46]Write i2c OK [06:26:46]MH_I2C_Read... [06:26:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:26:46]Read from MH i2c: E2 [06:26:46]MH_I2C_Read... [06:26:46]Read from MH i2c: E2 03 00 [06:26:46]MH_I2C_Read... [06:26:46]Read from MH i2c: E2 03 00 66 06 00 90 00 E0 [06:26:46]RAPDU: 90 00 [06:26:46]wFMCommunicate OK [06:26:46]wFMCommunicate request_size=4 [06:26:46]MH_SAM_APDU [06:26:46]CAPDU: 80 0D 03 02 [06:26:46]Write to MH i2c: E2 08 00 67 06 80 0D 03 02 00 00 00 00 E8 [06:26:46]Write i2c OK [06:26:46]MH_I2C_Read... [06:26:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:26:46]Read from MH i2c: E2 [06:26:46]MH_I2C_Read... [06:26:46]Read from MH i2c: E2 0B 00 [06:26:46]MH_I2C_Read... [06:26:46]Read from MH i2c: E2 0B 00 67 06 00 03 62 56 79 7B CD 8A 39 90 00 28 [06:26:46]RAPDU: 03 62 56 79 7B CD 8A 39 90 00 [06:26:46]wFMCommunicate OK [06:26:46]SAM_PROTO_SignData done [06:26:46]FM_MakeSignedData done [06:26:46]CreateOFDProtocolMessage [06:26:46]wFMCommunicate request_size=4 [06:26:46]MH_SAM_APDU [06:26:46]CAPDU: 80 11 00 00 [06:26:46]Write to MH i2c: E2 08 00 68 06 80 11 00 00 00 00 00 00 E8 [06:26:46]Write i2c OK [06:26:46]MH_I2C_Read... [06:26:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:26:46]Read from MH i2c: E2 [06:26:46]MH_I2C_Read... [06:26:46]Read from MH i2c: E2 17 00 [06:26:46]MH_I2C_Read... [06:26:46]Read from MH i2c: E2 17 00 68 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 3E [06:26:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [06:26:46]wFMCommunicate OK [06:26:46]CreateOFDProtocolMessage done [06:26:46]OFDSenderStorePacket 164820 [06:26:46]StoreOFDPacket docnum=164820 [06:26:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 71 B4 07 01 10 C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 A6 6F 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D4 83 02 00 35 04 06 00 BC 26 FF 50 DE 29 03 62 56 79 7B CD 8A 39 [06:26:46]CheckFolder [06:26:46]dirname=/storage/ofd_packets [06:26:46]CheckFolder done [06:26:46]ProducePacketName [06:26:46]name=ofd_packets/00164820 [06:26:46]NVStorageSaveData ofd_packets/00164820 [06:26:46]File name is /storage/ofd_packets/00164820 [06:26:46]Write 301 bytes [06:26:46]NVStorageSaveData done [06:26:46]OFDSenderStorePacket done [06:26:46]KKMCreateOFDPacket done [06:26:46]NVStorageSaveData kkm_last_timestamp [06:26:46]File name is /storage/kkm_last_timestamp [06:26:46]Write 4 bytes [06:26:46]NVStorageSaveData done [06:26:46]ExternCall_PrintAddStr [06:26:46]wPrintStart [06:26:46]Write to MH i2c: 01 00 00 69 06 6F [06:26:46]Write i2c OK [06:26:46]MH_I2C_Read... [06:26:46]Read from MH i2c: 01 [06:26:46]MH_I2C_Read... [06:26:46]Read from MH i2c: 01 07 00 [06:26:46]MH_I2C_Read... [06:26:46]Read from MH i2c: 01 07 00 69 06 00 00 00 00 00 FF 0F 84 [06:26:46]RasterBufferAndPrint [06:26:46]line Счет N : (1)458913 [06:26:46]line ИНН: 02508201610067 [06:26:46]line Контрольно-Кассовый Чек [06:26:46]line ПРОДАЖА [06:26:46]line ТРК (МРК, ГНК) : 12 [06:26:46]line Товар: 2710124130 [06:26:46]line Аи-92-К-5 [06:26:46]line 4.560 * 65.80 [06:26:46]line = 300.05 [06:26:46]line НДС 12% НСП 1% [06:26:46]line > о реализуемом товаре [06:26:46]line ОКРУГЛЕНИЕ: -0.05 [06:26:46]line ИТОГО: 300.00 [06:26:46]line Внесено: 300.00 [06:26:46]line СДАЧА: 0.00 [06:26:46]line НСП 1% : 2.65 [06:26:46]line НДС 12% : 31.86 [06:26:46]line Наличными: 300.00 [06:26:46]line Безнал.: 0.00 [06:26:46]line Место: АЗС № 72 "Партнер Нефть" [06:26:46]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [06:26:46]line СНО: Общий режим [06:26:46]line Чек 18 14.07.2024 06:26 [06:26:46]line Смена: 447 ФФД: 1.0 [06:26:46]line ЗНМ: 0300000160 [06:26:46]line РНМ: 0000000000090829 [06:26:46]line Версия ККМ: 001 [06:26:46]line ФМ: 0000000000874718 [06:26:46]line ФД: 164820 [06:26:46]line ФПД: 206875678268969 [06:26:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T062646&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164820&fm=206875678268969&tin=02508201610067®Number=0000000000090829&sum=30000 [06:26:47]OFD Sender: Processing packet 164820 [packets to send 104, broken 103] [06:26:47]ProducePacketName [06:26:47]name=ofd_packets/00164820 [06:26:47]OFD Sender: To server: pG, [06:26:47]CommunicateWithHost lk.salyk.kg:30040 [06:26:47]ConnectInit lk.salyk.kg [06:26:47]written 0, free lines is 4095 [06:26:47]Connected sock=10 [06:26:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 71 B4 07 01 10 C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 A6 6F 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D4 83 02 00 35 04 06 00 BC 26 FF 50 DE 29 03 62 56 79 7B CD 8A 39 [06:26:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 A5 FA 47 00 45 AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D4 83 02 00 F4 03 04 00 35 16 93 66 B6 04 01 00 00 21 D0 D8 8D 27 E9 18 7D [06:26:47]CommunicateWithHost err = 0 [06:26:47]CheckOFDResponse [06:26:47]1017 (14) - 77093643461234 [06:26:47]1041 (16) - 0000000000874718 [06:26:47]1040 (4) - 164820 [06:26:47]1012 (4) - 14.07.2024 00:05 [06:26:47]1206 (1) - 0 [06:26:47]OFD Sender: Remove packet 164820 [06:26:47]ProducePacketName [06:26:47]name=ofd_packets/00164820 [06:26:47]NVStorageDeleteData [06:26:47]Write to MH i2c: 01 00 00 93 06 99 [06:26:47]Write i2c OK [06:26:47]MH_I2C_Read... [06:26:47]Read from MH i2c: 01 [06:26:47]MH_I2C_Read... [06:26:47]Read from MH i2c: 01 07 00 [06:26:47]MH_I2C_Read... [06:26:47]Read from MH i2c: 01 07 00 93 06 00 00 00 00 00 FB 0C A7 [06:26:47]RasterBufferAndPrint [06:26:47]line [06:26:47]line [06:26:47]line [06:26:47]line [06:26:47]line [06:26:47]written 0, free lines is 3329 [06:26:47]MH_Cut [06:26:47]Write to MH i2c: D1 01 00 9A 06 01 72 [06:26:47]Write i2c OK [06:26:47]MH_I2C_Read... [06:26:47]Read from MH i2c: D1 [06:26:47]MH_I2C_Read... [06:26:47]Read from MH i2c: D1 01 00 [06:26:47]MH_I2C_Read... [06:26:47]Read from MH i2c: D1 01 00 9A 06 00 71 [06:26:47]Write to MH i2c: 01 00 00 9B 06 A1 [06:26:47]Write i2c OK [06:26:47]MH_I2C_Read... [06:26:48]OFD Sender: No OFD packet to send [06:26:48]*** Cut start [06:26:48]*** Partial cut [06:26:48]*** CUTSNS_PIN = 1 [06:26:48]*** CUTSNS_PIN = 0 [06:26:48]*** Brake cut motor [06:26:49]Read from MH i2c: 01 [06:26:49]MH_I2C_Read... [06:26:49]*** Stop cut motor [06:26:49]*** Cut end [06:26:49]Read from MH i2c: 01 07 00 [06:26:49]MH_I2C_Read... [06:26:49]Read from MH i2c: 01 07 00 9B 06 00 00 00 00 00 FF 0F B6 [06:26:49]process_action close_receipt done [06:26:49]requested_data is exist [06:26:49]produce_requested_data [06:26:49]requested_item fm.sn is exist - process it [06:26:49]wFMCommunicate request_size=4 [06:26:49]MH_SAM_APDU [06:26:49]CAPDU: 80 11 00 00 [06:26:49]Write to MH i2c: E2 08 00 9C 06 80 11 00 00 00 00 00 00 1C [06:26:49]Write i2c OK [06:26:49]MH_I2C_Read... [06:26:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:26:49]Read from MH i2c: E2 [06:26:49]MH_I2C_Read... [06:26:49]Read from MH i2c: E2 17 00 [06:26:49]MH_I2C_Read... [06:26:49]Read from MH i2c: E2 17 00 9C 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 72 [06:26:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [06:26:49]wFMCommunicate OK [06:26:49]requested_item fd.num is exist - process it [06:26:49]SAM_PROTO_GetFieldsCounters [06:26:49]wFMCommunicate request_size=4 [06:26:49]MH_SAM_APDU [06:26:49]CAPDU: 80 13 00 00 [06:26:49]Write to MH i2c: E2 08 00 9D 06 80 13 00 00 00 00 00 00 1F [06:26:49]Write i2c OK [06:26:49]MH_I2C_Read... [06:26:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:26:49]Read from MH i2c: E2 [06:26:49]MH_I2C_Read... [06:26:49]Read from MH i2c: E2 62 00 [06:26:49]MH_I2C_Read... [06:26:49]Read from MH i2c: E2 62 00 9D 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D4 83 02 00 0E 04 04 00 BF 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 95 [06:26:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D4 83 02 00 0E 04 04 00 BF 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 [06:26:49]wFMCommunicate OK [06:26:49]SAM_PROTO_GetFieldsCounters done [06:26:49]requested_item shift.num is exist - process it [06:26:49]requested_item shift.opened is exist - process it [06:26:49]req_shift_opened [06:26:49]FM_GetShiftState [06:26:49]SAM_PROTO_GetShiftState [06:26:49]wFMCommunicate request_size=4 [06:26:49]MH_SAM_APDU [06:26:49]CAPDU: 80 13 01 00 [06:26:49]Write to MH i2c: E2 08 00 9E 06 80 13 01 00 00 00 00 00 21 [06:26:49]Write i2c OK [06:26:49]MH_I2C_Read... [06:26:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:26:49]Read from MH i2c: E2 [06:26:49]MH_I2C_Read... [06:26:49]Read from MH i2c: E2 0E 00 [06:26:49]MH_I2C_Read... [06:26:49]Read from MH i2c: E2 0E 00 9E 06 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 A1 [06:26:49]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [06:26:49]wFMCommunicate OK [06:26:49]SAM_PROTO_GetShiftState done [06:26:49]FM_GetShiftState done [06:26:49]req_shift_opened done [06:26:49]requested_item shift.open_date is exist - process it [06:26:49]req_shift_open_date [06:26:49]req_shift_open_date done [06:26:49]produce_requested_data done [06:26:49]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164820,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [06:26:49]process_action_free close_receipt [06:26:49]json_value_free [06:26:49]json_value_free done [06:26:49]process_json_proto returns [06:26:49]Send response to host [06:26:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164820,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [06:26:49]free response buf [06:26:49]execute_script done [06:26:49]execute_script returns [06:26:49]free content buf [06:26:49]Sock 8.Close socket [06:26:49]Sock 8.Thread stoped [06:26:53]OFD Sender: No OFD packet to send [06:26:58]OFD Sender: No OFD packet to send [06:27:03]OFD Sender: No OFD packet to send [06:27:08]OFD Sender: No OFD packet to send [06:27:13]OFD Sender: No OFD packet to send [06:27:18]OFD Sender: No OFD packet to send [06:27:23]OFD Sender: No OFD packet to send [06:27:28]OFD Sender: No OFD packet to send [06:27:33]OFD Sender: No OFD packet to send [06:27:38]OFD Sender: No OFD packet to send [06:27:43]OFD Sender: No OFD packet to send [06:27:48]OFD Sender: No OFD packet to send [06:27:53]OFD Sender: No OFD packet to send [06:27:58]OFD Sender: No OFD packet to send [06:28:03]OFD Sender: No OFD packet to send [06:28:08]OFD Sender: No OFD packet to send [06:28:13]OFD Sender: No OFD packet to send [06:28:18]OFD Sender: No OFD packet to send [06:28:23]OFD Sender: No OFD packet to send [06:28:28]OFD Sender: No OFD packet to send [06:28:33]OFD Sender: No OFD packet to send [06:28:38]OFD Sender: No OFD packet to send [06:28:43]OFD Sender: No OFD packet to send [06:28:48]OFD Sender: No OFD packet to send [06:28:53]OFD Sender: No OFD packet to send [06:28:58]OFD Sender: No OFD packet to send [06:29:00]accept exits with 9 [06:29:00]New connection [06:29:00]New thread 3067571556 created [06:29:00]Thread 3067428196 joined [06:29:00]Waiting for new connection... [06:29:00] Sock 9.Parse request [06:29:00]Sock 9.Check first char [06:29:00]Sock 9.First char is OK [06:29:00]request: POST /json_proto HTTP/1.0 [06:29:00]Method: POST [06:29:00]URL: /json_proto [06:29:00]Method is POST - this is cgi request [06:29:00]url: /json_proto [06:29:00]query_string will be loaded in cgi processing [06:29:00]execute_cgi json_proto POST (null) [06:29:00]execute_cgi path=json_proto method=POST [06:29:00]POST find Content-Length [06:29:00]Host: 172.17.56.4:8080 [06:29:00]Content-Length: 677 [06:29:00]Content-Type: application/json [06:29:00] [06:29:00]POST finish read [06:29:00]Found Content-Length = 677 [06:29:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458914", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.170, "sum" : 340.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 340.00, "payments": [ { "type": 0, "sum" : 340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:29:00]execute_script... [06:29: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)458914", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.170, "sum" : 340.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 340.00, "payments": [ { "type": 0, "sum" : 340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:29:00]POST & json_proto [06:29:00]process_json_proto [06:29:00]json parsed OK: [06:29:00]protocol is kg_v1.0 [06:29:00]action value=close_receipt [06:29:00]process_action close_receipt [06:29:00]cmd_close_receipt [06:29:00]MH_GetDate [06:29:00]Write to MH i2c: F0 00 00 9F 06 94 [06:29:00]Write i2c OK [06:29:00]MH_I2C_Read... [06:29:00]Read from MH i2c: F0 [06:29:00]MH_I2C_Read... [06:29:00]Read from MH i2c: F0 09 00 [06:29:00]MH_I2C_Read... [06:29:00]Read from MH i2c: F0 09 00 9F 06 00 2E 70 93 66 C9 DC B2 64 EF [06:29:00]GetLastDocTimeStamp 1720938406 [06:29:00]current date 1720938542 [06:29:00]FM_GetShiftState [06:29:00]SAM_PROTO_GetShiftState [06:29:00]wFMCommunicate request_size=4 [06:29:00]MH_SAM_APDU [06:29:00]CAPDU: 80 13 01 00 [06:29:00]Write to MH i2c: E2 08 00 A0 06 80 13 01 00 00 00 00 00 23 [06:29:00]Write i2c OK [06:29:00]MH_I2C_Read... [06:29:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:29:00]Read from MH i2c: E2 [06:29:00]MH_I2C_Read... [06:29:00]Read from MH i2c: E2 0E 00 [06:29:00]MH_I2C_Read... [06:29:00]Read from MH i2c: E2 0E 00 A0 06 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 A3 [06:29:00]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [06:29:00]wFMCommunicate OK [06:29:00]SAM_PROTO_GetShiftState done [06:29:00]FM_GetShiftState done [06:29:00]opened in 1720917342 [06:29:00]opened+sec_in_day 1721003742 [06:29:00]quantity*price = 34018 [06:29:00]sum+1 = 34020 [06:29:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 340.00 Внесено: 340.00 СДАЧА: 0.00 НСП 1% : 3.01 НДС 12% : 36.13 Наличными: 340.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 19 14.07.2024 06:29 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164821 ФПД: 230160211459395 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T062902&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164821&fm=230160211459395&tin=02508201610067®Number=0000000000090829&sum=34000 [06:29:01]StoreToDocumentArchive [06:29:01]shift 447 fd 164821 [06:29:01]save to /storage/0447/doc_00164821 [06:29:01]save last doc name /storage/0447/doc_00164821 to /storage/kkm_last_doc_name [06:29:01]save OK [06:29:01]Clear old archive folders... [06:29:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:29:01]tlvbuf is 0163CE40 [06:29:01]SAM_PROTO_ClearQueue [06:29:01]wFMCommunicate request_size=4 [06:29:01]MH_SAM_APDU [06:29:01]CAPDU: 80 09 00 00 [06:29:01]Write to MH i2c: E2 08 00 AD 06 80 09 00 00 00 00 00 00 25 [06:29:01]Write i2c OK [06:29:01]MH_I2C_Read... [06:29:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:29:01]Read from MH i2c: E2 [06:29:01]MH_I2C_Read... [06:29:01]Read from MH i2c: E2 03 00 [06:29:01]MH_I2C_Read... [06:29:01]Read from MH i2c: E2 03 00 AD 06 00 90 00 27 [06:29:01]RAPDU: 90 00 [06:29:01]wFMCommunicate OK [06:29:01]SAM_PROTO_ClearQueue done [06:29:01]KKMCreateOFDPacket [06:29:01]OFDProtocolAddRootSTLVToBuf [06:29:01]FM_MakeSignedData [06:29:01]FM_MakeSignedData [06:29:01]SAM_PROTO_SignData [06:29:01]wFMCommunicate request_size=4 [06:29:01]MH_SAM_APDU [06:29:01]CAPDU: 80 0D 01 02 [06:29:01]Write to MH i2c: E2 08 00 AE 06 80 0D 01 02 00 00 00 00 2D [06:29:01]Write i2c OK [06:29:01]MH_I2C_Read... [06:29:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:29:01]Read from MH i2c: E2 [06:29:01]MH_I2C_Read... [06:29:01]Read from MH i2c: E2 03 00 [06:29:01]MH_I2C_Read... [06:29:01]Read from MH i2c: E2 03 00 AE 06 00 90 00 28 [06:29:01]RAPDU: 90 00 [06:29:01]wFMCommunicate OK [06:29:01]wFMCommunicate request_size=255 [06:29:01]MH_SAM_APDU [06:29:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 E3 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1D 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 2E 70 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D5 83 02 00 35 04 06 00 D1 [06:29:01]Write to MH i2c: E2 02 01 AF 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 E3 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1D 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 2E 70 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D5 83 02 00 35 04 06 00 D1 00 00 4D [06:29:01]Write i2c OK [06:29:01]MH_I2C_Read... [06:29:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:29:02]Read from MH i2c: E2 [06:29:02]MH_I2C_Read... [06:29:02]Read from MH i2c: E2 03 00 [06:29:02]MH_I2C_Read... [06:29:02]Read from MH i2c: E2 03 00 AF 06 00 90 00 29 [06:29:02]RAPDU: 90 00 [06:29:02]wFMCommunicate OK [06:29:02]wFMCommunicate request_size=10 [06:29:02]MH_SAM_APDU [06:29:02]CAPDU: 80 0D 02 02 05 54 59 A5 3D 43 [06:29:02]Write to MH i2c: E2 0D 00 B0 06 80 0D 02 02 05 00 54 59 A5 3D 43 00 00 0C [06:29:02]Write i2c OK [06:29:02]MH_I2C_Read... [06:29:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:29:02]Read from MH i2c: E2 [06:29:02]MH_I2C_Read... [06:29:02]Read from MH i2c: E2 03 00 [06:29:02]MH_I2C_Read... [06:29:02]Read from MH i2c: E2 03 00 B0 06 00 90 00 2A [06:29:02]RAPDU: 90 00 [06:29:02]wFMCommunicate OK [06:29:02]wFMCommunicate request_size=4 [06:29:02]MH_SAM_APDU [06:29:02]CAPDU: 80 0D 03 02 [06:29:02]Write to MH i2c: E2 08 00 B1 06 80 0D 03 02 00 00 00 00 32 [06:29:02]Write i2c OK [06:29:02]MH_I2C_Read... [06:29:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:29:02]Read from MH i2c: E2 [06:29:02]MH_I2C_Read... [06:29:02]Read from MH i2c: E2 0B 00 [06:29:02]MH_I2C_Read... [06:29:02]Read from MH i2c: E2 0B 00 B1 06 00 CD 4D 47 40 06 86 05 8D 90 00 F2 [06:29:02]RAPDU: CD 4D 47 40 06 86 05 8D 90 00 [06:29:02]wFMCommunicate OK [06:29:02]SAM_PROTO_SignData done [06:29:02]FM_MakeSignedData done [06:29:02]CreateOFDProtocolMessage [06:29:02]wFMCommunicate request_size=4 [06:29:02]MH_SAM_APDU [06:29:02]CAPDU: 80 11 00 00 [06:29:02]Write to MH i2c: E2 08 00 B2 06 80 11 00 00 00 00 00 00 32 [06:29:02]Write i2c OK [06:29:02]MH_I2C_Read... [06:29:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:29:02]Read from MH i2c: E2 [06:29:02]MH_I2C_Read... [06:29:02]Read from MH i2c: E2 17 00 [06:29:02]MH_I2C_Read... [06:29:02]Read from MH i2c: E2 17 00 B2 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 88 [06:29:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [06:29:02]wFMCommunicate OK [06:29:02]CreateOFDProtocolMessage done [06:29:02]OFDSenderStorePacket 164821 [06:29:02]StoreOFDPacket docnum=164821 [06:29:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 B0 57 07 01 FF F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 E3 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1D 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 2E 70 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D5 83 02 00 35 04 06 00 D1 54 59 A5 3D 43 CD 4D 47 40 06 86 05 8D [06:29:02]CheckFolder [06:29:02]dirname=/storage/ofd_packets [06:29:02]CheckFolder done [06:29:02]ProducePacketName [06:29:02]name=ofd_packets/00164821 [06:29:02]NVStorageSaveData ofd_packets/00164821 [06:29:02]File name is /storage/ofd_packets/00164821 [06:29:02]Write 301 bytes [06:29:02]NVStorageSaveData done [06:29:02]OFDSenderStorePacket done [06:29:02]KKMCreateOFDPacket done [06:29:02]NVStorageSaveData kkm_last_timestamp [06:29:02]File name is /storage/kkm_last_timestamp [06:29:02]Write 4 bytes [06:29:02]NVStorageSaveData done [06:29:02]ExternCall_PrintAddStr [06:29:02]wPrintStart [06:29:02]Write to MH i2c: 01 00 00 B3 06 B9 [06:29:02]Write i2c OK [06:29:02]MH_I2C_Read... [06:29:02]Read from MH i2c: 01 [06:29:02]MH_I2C_Read... [06:29:02]Read from MH i2c: 01 07 00 [06:29:02]MH_I2C_Read... [06:29:02]Read from MH i2c: 01 07 00 B3 06 00 00 00 00 00 FF 0F CE [06:29:02]RasterBufferAndPrint [06:29:02]line Счет N : (1)458914 [06:29:02]line ИНН: 02508201610067 [06:29:02]line Контрольно-Кассовый Чек [06:29:02]line ПРОДАЖА [06:29:02]line ТРК (МРК, ГНК) : 22 [06:29:02]line Товар: 2710124130 [06:29:02]line Аи-92-К-5 [06:29:02]line 5.170 * 65.80 [06:29:02]line = 340.19 [06:29:02]line НДС 12% НСП 1% [06:29:02]line > о реализуемом товаре [06:29:02]line ОКРУГЛЕНИЕ: -0.19 [06:29:02]line ИТОГО: 340.00 [06:29:02]line Внесено: 340.00 [06:29:02]line СДАЧА: 0.00 [06:29:02]line НСП 1% : 3.01 [06:29:02]line НДС 12% : 36.13 [06:29:02]line Наличными: 340.00 [06:29:02]line Безнал.: 0.00 [06:29:02]line Место: АЗС № 72 "Партнер Нефть" [06:29:02]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [06:29:02]line СНО: Общий режим [06:29:02]line Чек 19 14.07.2024 06:29 [06:29:02]line Смена: 447 ФФД: 1.0 [06:29:02]line ЗНМ: 0300000160 [06:29:02]line РНМ: 0000000000090829 [06:29:02]line Версия ККМ: 001 [06:29:02]line ФМ: 0000000000874718 [06:29:02]line ФД: 164821 [06:29:02]line ФПД: 230160211459395 [06:29:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T062902&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164821&fm=230160211459395&tin=02508201610067®Number=0000000000090829&sum=34000 [06:29:02]OFD Sender: Processing packet 164821 [packets to send 104, broken 103] [06:29:02]ProducePacketName [06:29:02]name=ofd_packets/00164821 [06:29:02]OFD Sender: To server: pG, [06:29:02]CommunicateWithHost lk.salyk.kg:30040 [06:29:02]ConnectInit lk.salyk.kg [06:29:02]written 0, free lines is 4095 [06:29:02]Connected sock=10 [06:29:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 B0 57 07 01 FF F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 E3 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1D 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 2E 70 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D5 83 02 00 35 04 06 00 D1 54 59 A5 3D 43 CD 4D 47 40 06 86 05 8D [06:29:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 26 F8 47 00 29 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D5 83 02 00 F4 03 04 00 BD 16 93 66 B6 04 01 00 00 CE 41 24 E9 A0 C1 9E 4F [06:29:03]CommunicateWithHost err = 0 [06:29:03]CheckOFDResponse [06:29:03]1017 (14) - 77093643461234 [06:29:03]1041 (16) - 0000000000874718 [06:29:03]1040 (4) - 164821 [06:29:03]1012 (4) - 14.07.2024 00:07 [06:29:03]1206 (1) - 0 [06:29:03]OFD Sender: Remove packet 164821 [06:29:03]ProducePacketName [06:29:03]name=ofd_packets/00164821 [06:29:03]NVStorageDeleteData [06:29:03]Write to MH i2c: 01 00 00 DD 06 E3 [06:29:03]Write i2c OK [06:29:03]MH_I2C_Read... [06:29:03]Read from MH i2c: 01 [06:29:03]MH_I2C_Read... [06:29:03]Read from MH i2c: 01 07 00 [06:29:03]MH_I2C_Read... [06:29:03]Read from MH i2c: 01 07 00 DD 06 00 00 00 00 00 F3 0C E9 [06:29:03]RasterBufferAndPrint [06:29:03]line [06:29:03]line [06:29:03]line [06:29:03]line [06:29:03]line [06:29:03]written 0, free lines is 3322 [06:29:03]MH_Cut [06:29:03]Write to MH i2c: D1 01 00 E4 06 01 BC [06:29:03]Write i2c OK [06:29:03]MH_I2C_Read... [06:29:03]Read from MH i2c: D1 [06:29:03]MH_I2C_Read... [06:29:03]Read from MH i2c: D1 01 00 [06:29:03]MH_I2C_Read... [06:29:03]Read from MH i2c: D1 01 00 E4 06 00 BB [06:29:03]Write to MH i2c: 01 00 00 E5 06 EB [06:29:03]Write i2c OK [06:29:03]MH_I2C_Read... [06:29:03]OFD Sender: No OFD packet to send [06:29:03]*** Cut start [06:29:03]*** Partial cut [06:29:03]*** CUTSNS_PIN = 1 [06:29:03]*** CUTSNS_PIN = 0 [06:29:04]*** Brake cut motor [06:29:04]Read from MH i2c: 01 [06:29:04]MH_I2C_Read... [06:29:04]*** Stop cut motor [06:29:04]*** Cut end [06:29:04]Read from MH i2c: 01 07 00 [06:29:04]MH_I2C_Read... [06:29:04]Read from MH i2c: 01 07 00 E5 06 00 00 00 00 00 FF 0F 00 [06:29:04]process_action close_receipt done [06:29:04]requested_data is exist [06:29:04]produce_requested_data [06:29:04]requested_item fm.sn is exist - process it [06:29:04]wFMCommunicate request_size=4 [06:29:04]MH_SAM_APDU [06:29:04]CAPDU: 80 11 00 00 [06:29:04]Write to MH i2c: E2 08 00 E6 06 80 11 00 00 00 00 00 00 66 [06:29:04]Write i2c OK [06:29:04]MH_I2C_Read... [06:29:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:29:04]Read from MH i2c: E2 [06:29:04]MH_I2C_Read... [06:29:04]Read from MH i2c: E2 17 00 [06:29:04]MH_I2C_Read... [06:29:04]Read from MH i2c: E2 17 00 E6 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 BC [06:29:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [06:29:04]wFMCommunicate OK [06:29:04]requested_item fd.num is exist - process it [06:29:04]SAM_PROTO_GetFieldsCounters [06:29:04]wFMCommunicate request_size=4 [06:29:04]MH_SAM_APDU [06:29:04]CAPDU: 80 13 00 00 [06:29:04]Write to MH i2c: E2 08 00 E7 06 80 13 00 00 00 00 00 00 69 [06:29:04]Write i2c OK [06:29:04]MH_I2C_Read... [06:29:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:29:04]Read from MH i2c: E2 [06:29:04]MH_I2C_Read... [06:29:04]Read from MH i2c: E2 62 00 [06:29:04]MH_I2C_Read... [06:29:04]Read from MH i2c: E2 62 00 E7 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D5 83 02 00 0E 04 04 00 BF 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 E3 [06:29:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D5 83 02 00 0E 04 04 00 BF 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 [06:29:04]wFMCommunicate OK [06:29:04]SAM_PROTO_GetFieldsCounters done [06:29:04]requested_item shift.num is exist - process it [06:29:04]requested_item shift.opened is exist - process it [06:29:04]req_shift_opened [06:29:04]FM_GetShiftState [06:29:04]SAM_PROTO_GetShiftState [06:29:04]wFMCommunicate request_size=4 [06:29:04]MH_SAM_APDU [06:29:04]CAPDU: 80 13 01 00 [06:29:04]Write to MH i2c: E2 08 00 E8 06 80 13 01 00 00 00 00 00 6B [06:29:04]Write i2c OK [06:29:04]MH_I2C_Read... [06:29:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:29:04]Read from MH i2c: E2 [06:29:04]MH_I2C_Read... [06:29:04]Read from MH i2c: E2 0E 00 [06:29:04]MH_I2C_Read... [06:29:04]Read from MH i2c: E2 0E 00 E8 06 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 EB [06:29:04]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [06:29:04]wFMCommunicate OK [06:29:04]SAM_PROTO_GetShiftState done [06:29:04]FM_GetShiftState done [06:29:04]req_shift_opened done [06:29:04]requested_item shift.open_date is exist - process it [06:29:04]req_shift_open_date [06:29:04]req_shift_open_date done [06:29:04]produce_requested_data done [06:29:04]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164821,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [06:29:04]process_action_free close_receipt [06:29:04]json_value_free [06:29:04]json_value_free done [06:29:04]process_json_proto returns [06:29:04]Send response to host [06:29:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164821,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [06:29:04]free response buf [06:29:04]execute_script done [06:29:04]execute_script returns [06:29:04]free content buf [06:29:04]Sock 9.Close socket [06:29:04]Sock 9.Thread stoped [06:29:08]OFD Sender: No OFD packet to send [06:29:13]OFD Sender: No OFD packet to send [06:29:18]OFD Sender: No OFD packet to send [06:29:23]OFD Sender: No OFD packet to send [06:29:28]OFD Sender: No OFD packet to send [06:29:33]OFD Sender: No OFD packet to send [06:29:38]OFD Sender: No OFD packet to send [06:29:43]OFD Sender: No OFD packet to send [06:29:48]OFD Sender: No OFD packet to send [06:29:53]OFD Sender: No OFD packet to send [06:29:58]OFD Sender: No OFD packet to send [06:30:03]OFD Sender: No OFD packet to send [06:30:08]OFD Sender: No OFD packet to send [06:30:13]OFD Sender: No OFD packet to send [06:30:18]OFD Sender: No OFD packet to send [06:30:23]OFD Sender: No OFD packet to send [06:30:28]OFD Sender: No OFD packet to send [06:30:33]OFD Sender: No OFD packet to send [06:30:38]OFD Sender: No OFD packet to send [06:30:43]OFD Sender: No OFD packet to send [06:30:48]OFD Sender: No OFD packet to send [06:30:53]OFD Sender: No OFD packet to send [06:30:58]OFD Sender: No OFD packet to send [06:31:03]accept exits with 8 [06:31:03]New connection [06:31:03]New thread 3067428196 created [06:31:03]Thread 3067571556 joined [06:31:03]Waiting for new connection... [06:31:03] Sock 8.Parse request [06:31:03]Sock 8.Check first char [06:31:03]Sock 8.First char is OK [06:31:03]request: POST /json_proto HTTP/1.0 [06:31:03]Method: POST [06:31:03]URL: /json_proto [06:31:03]Method is POST - this is cgi request [06:31:03]url: /json_proto [06:31:03]query_string will be loaded in cgi processing [06:31:03]execute_cgi json_proto POST (null) [06:31:03]execute_cgi path=json_proto method=POST [06:31:03]POST find Content-Length [06:31:03]Host: 172.17.56.4:8080 [06:31:03]Content-Length: 677 [06:31:03]Content-Type: application/json [06:31:03] [06:31:03]POST finish read [06:31:03]Found Content-Length = 677 [06:31:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458915", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "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" ] } } [06:31:03]execute_script... [06:31: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)458915", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "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" ] } } [06:31:03]POST & json_proto [06:31:03]process_json_proto [06:31:03]json parsed OK: [06:31:03]protocol is kg_v1.0 [06:31:03]action value=close_receipt [06:31:03]process_action close_receipt [06:31:03]cmd_close_receipt [06:31:03]MH_GetDate [06:31:03]Write to MH i2c: F0 00 00 E9 06 DE [06:31:03]Write i2c OK [06:31:03]MH_I2C_Read... [06:31:03]Read from MH i2c: F0 [06:31:03]MH_I2C_Read... [06:31:03]Read from MH i2c: F0 09 00 [06:31:03]MH_I2C_Read... [06:31:03]Read from MH i2c: F0 09 00 E9 06 00 A8 70 93 66 C9 DC B2 64 B3 [06:31:03]GetLastDocTimeStamp 1720938542 [06:31:03]current date 1720938664 [06:31:03]FM_GetShiftState [06:31:03]SAM_PROTO_GetShiftState [06:31:03]wFMCommunicate request_size=4 [06:31:03]MH_SAM_APDU [06:31:03]CAPDU: 80 13 01 00 [06:31:03]Write to MH i2c: E2 08 00 EA 06 80 13 01 00 00 00 00 00 6D [06:31:03]Write i2c OK [06:31:03]MH_I2C_Read... [06:31:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:31:03]Read from MH i2c: E2 [06:31:03]MH_I2C_Read... [06:31:03]Read from MH i2c: E2 0E 00 [06:31:03]MH_I2C_Read... [06:31:03]Read from MH i2c: E2 0E 00 EA 06 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 ED [06:31:03]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [06:31:03]wFMCommunicate OK [06:31:03]SAM_PROTO_GetShiftState done [06:31:03]FM_GetShiftState done [06:31:03]opened in 1720917342 [06:31:03]opened+sec_in_day 1721003742 [06:31:03]quantity*price = 30004 [06:31:03]sum+1 = 30006 [06:31:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 20 14.07.2024 06:31 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164822 ФПД: 169036418990315 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T063104&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164822&fm=169036418990315&tin=02508201610067®Number=0000000000090829&sum=30000 [06:31:04]StoreToDocumentArchive [06:31:04]shift 447 fd 164822 [06:31:04]save to /storage/0447/doc_00164822 [06:31:04]save last doc name /storage/0447/doc_00164822 to /storage/kkm_last_doc_name [06:31:04]save OK [06:31:04]Clear old archive folders... [06:31:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:31:04]tlvbuf is 01652660 [06:31:04]SAM_PROTO_ClearQueue [06:31:04]wFMCommunicate request_size=4 [06:31:04]MH_SAM_APDU [06:31:04]CAPDU: 80 09 00 00 [06:31:04]Write to MH i2c: E2 08 00 F7 06 80 09 00 00 00 00 00 00 6F [06:31:04]Write i2c OK [06:31:04]MH_I2C_Read... [06:31:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:31:04]Read from MH i2c: E2 [06:31:04]MH_I2C_Read... [06:31:04]Read from MH i2c: E2 03 00 [06:31:04]MH_I2C_Read... [06:31:04]Read from MH i2c: E2 03 00 F7 06 00 90 00 71 [06:31:04]RAPDU: 90 00 [06:31:04]wFMCommunicate OK [06:31:04]SAM_PROTO_ClearQueue done [06:31:04]KKMCreateOFDPacket [06:31:04]OFDProtocolAddRootSTLVToBuf [06:31:04]FM_MakeSignedData [06:31:04]FM_MakeSignedData [06:31:04]SAM_PROTO_SignData [06:31:04]wFMCommunicate request_size=4 [06:31:04]MH_SAM_APDU [06:31:04]CAPDU: 80 0D 01 02 [06:31:04]Write to MH i2c: E2 08 00 F8 06 80 0D 01 02 00 00 00 00 77 [06:31:04]Write i2c OK [06:31:04]MH_I2C_Read... [06:31:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:31:04]Read from MH i2c: E2 [06:31:04]MH_I2C_Read... [06:31:04]Read from MH i2c: E2 03 00 [06:31:04]MH_I2C_Read... [06:31:04]Read from MH i2c: E2 03 00 F8 06 00 90 00 72 [06:31:04]RAPDU: 90 00 [06:31:04]wFMCommunicate OK [06:31:04]wFMCommunicate request_size=255 [06:31:04]MH_SAM_APDU [06:31:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 A8 70 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D6 83 02 00 35 04 06 00 99 [06:31:04]Write to MH i2c: E2 02 01 F9 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 A8 70 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D6 83 02 00 35 04 06 00 99 00 00 8A [06:31:04]Write i2c OK [06:31:04]MH_I2C_Read... [06:31:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:31:04]Read from MH i2c: E2 [06:31:04]MH_I2C_Read... [06:31:04]Read from MH i2c: E2 03 00 [06:31:04]MH_I2C_Read... [06:31:04]Read from MH i2c: E2 03 00 F9 06 00 90 00 73 [06:31:04]RAPDU: 90 00 [06:31:04]wFMCommunicate OK [06:31:04]wFMCommunicate request_size=10 [06:31:04]MH_SAM_APDU [06:31:04]CAPDU: 80 0D 02 02 05 BC DB B5 40 EB [06:31:04]Write to MH i2c: E2 0D 00 FA 06 80 0D 02 02 05 00 BC DB B5 40 EB 00 00 FB [06:31:04]Write i2c OK [06:31:04]MH_I2C_Read... [06:31:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:31:04]Read from MH i2c: E2 [06:31:04]MH_I2C_Read... [06:31:04]Read from MH i2c: E2 03 00 [06:31:04]MH_I2C_Read... [06:31:04]Read from MH i2c: E2 03 00 FA 06 00 90 00 74 [06:31:04]RAPDU: 90 00 [06:31:04]wFMCommunicate OK [06:31:04]wFMCommunicate request_size=4 [06:31:04]MH_SAM_APDU [06:31:04]CAPDU: 80 0D 03 02 [06:31:04]Write to MH i2c: E2 08 00 FB 06 80 0D 03 02 00 00 00 00 7C [06:31:04]Write i2c OK [06:31:04]MH_I2C_Read... [06:31:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:31:04]Read from MH i2c: E2 [06:31:04]MH_I2C_Read... [06:31:04]Read from MH i2c: E2 0B 00 [06:31:04]MH_I2C_Read... [06:31:04]Read from MH i2c: E2 0B 00 FB 06 00 BE FF FB BA 38 E1 A7 E1 90 00 90 [06:31:04]RAPDU: BE FF FB BA 38 E1 A7 E1 90 00 [06:31:04]wFMCommunicate OK [06:31:04]SAM_PROTO_SignData done [06:31:04]FM_MakeSignedData done [06:31:04]CreateOFDProtocolMessage [06:31:04]wFMCommunicate request_size=4 [06:31:04]MH_SAM_APDU [06:31:04]CAPDU: 80 11 00 00 [06:31:04]Write to MH i2c: E2 08 00 FC 06 80 11 00 00 00 00 00 00 7C [06:31:04]Write i2c OK [06:31:04]MH_I2C_Read... [06:31:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:31:04]Read from MH i2c: E2 [06:31:04]MH_I2C_Read... [06:31:04]Read from MH i2c: E2 17 00 [06:31:04]MH_I2C_Read... [06:31:04]Read from MH i2c: E2 17 00 FC 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D2 [06:31:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [06:31:04]wFMCommunicate OK [06:31:04]CreateOFDProtocolMessage done [06:31:04]OFDSenderStorePacket 164822 [06:31:04]StoreOFDPacket docnum=164822 [06:31:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 A3 C9 07 01 F4 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 A8 70 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D6 83 02 00 35 04 06 00 99 BC DB B5 40 EB BE FF FB BA 38 E1 A7 E1 [06:31:04]CheckFolder [06:31:04]dirname=/storage/ofd_packets [06:31:04]CheckFolder done [06:31:04]ProducePacketName [06:31:04]name=ofd_packets/00164822 [06:31:04]NVStorageSaveData ofd_packets/00164822 [06:31:04]File name is /storage/ofd_packets/00164822 [06:31:04]Write 301 bytes [06:31:04]NVStorageSaveData done [06:31:04]OFDSenderStorePacket done [06:31:04]KKMCreateOFDPacket done [06:31:04]NVStorageSaveData kkm_last_timestamp [06:31:04]File name is /storage/kkm_last_timestamp [06:31:04]Write 4 bytes [06:31:04]NVStorageSaveData done [06:31:04]OFD Sender: Processing packet 164822 [packets to send 104, broken 103] [06:31:04]ProducePacketName [06:31:04]name=ofd_packets/00164822 [06:31:04]OFD Sender: To server: pG, [06:31:04]CommunicateWithHost lk.salyk.kg:30040 [06:31:04]ConnectInit lk.salyk.kg [06:31:04]ExternCall_PrintAddStr [06:31:04]wPrintStart [06:31:04]Write to MH i2c: 01 00 00 FD 06 03 [06:31:04]Write i2c OK [06:31:04]MH_I2C_Read... [06:31:04]Read from MH i2c: 01 [06:31:04]MH_I2C_Read... [06:31:04]Read from MH i2c: 01 07 00 [06:31:04]MH_I2C_Read... [06:31:04]Read from MH i2c: 01 07 00 FD 06 00 00 00 00 00 FF 0F 18 [06:31:04]RasterBufferAndPrint [06:31:04]line Счет N : (1)458915 [06:31:04]line ИНН: 02508201610067 [06:31:04]line Контрольно-Кассовый Чек [06:31:04]line ПРОДАЖА [06:31:04]line ТРК (МРК, ГНК) : 22 [06:31:04]line Товар: 2710124130 [06:31:04]line Аи-92-К-5 [06:31:04]line 4.560 * 65.80 [06:31:04]line = 300.05 [06:31:04]line НДС 12% НСП 1% [06:31:04]line > о реализуемом товаре [06:31:04]line ОКРУГЛЕНИЕ: -0.05 [06:31:04]line ИТОГО: 300.00 [06:31:04]line Внесено: 300.00 [06:31:04]line СДАЧА: 0.00 [06:31:04]line НСП 1% : 2.65 [06:31:04]line НДС 12% : 31.86 [06:31:04]line Наличными: 300.00 [06:31:04]line Безнал.: 0.00 [06:31:04]line Место: АЗС № 72 "Партнер Нефть" [06:31:04]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [06:31:04]line СНО: Общий режим [06:31:04]line Чек 20 14.07.2024 06:31 [06:31:04]line Смена: 447 ФФД: 1.0 [06:31:04]line ЗНМ: 0300000160 [06:31:04]line РНМ: 0000000000090829 [06:31:04]line Версия ККМ: 001 [06:31:04]line ФМ: 0000000000874718 [06:31:04]line ФД: 164822 [06:31:04]line ФПД: 169036418990315 [06:31:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T063104&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164822&fm=169036418990315&tin=02508201610067®Number=0000000000090829&sum=30000 [06:31:05]Connected sock=11 [06:31:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 A3 C9 07 01 F4 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 A8 70 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D6 83 02 00 35 04 06 00 99 BC DB B5 40 EB BE FF FB BA 38 E1 A7 E1 [06:31:05]written 0, free lines is 4095 [06:31:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 06 CC 47 00 A3 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D6 83 02 00 F4 03 04 00 37 17 93 66 B6 04 01 00 00 79 CE DC 86 8B 28 3E 04 [06:31:05]CommunicateWithHost err = 0 [06:31:05]CheckOFDResponse [06:31:05]1017 (14) - 77093643461234 [06:31:05]1041 (16) - 0000000000874718 [06:31:05]1040 (4) - 164822 [06:31:05]1012 (4) - 14.07.2024 00:09 [06:31:05]1206 (1) - 0 [06:31:05]OFD Sender: Remove packet 164822 [06:31:05]ProducePacketName [06:31:05]name=ofd_packets/00164822 [06:31:05]NVStorageDeleteData [06:31:05]Write to MH i2c: 01 00 00 27 07 2E [06:31:05]Write i2c OK [06:31:05]MH_I2C_Read... [06:31:05]Read from MH i2c: 01 [06:31:05]MH_I2C_Read... [06:31:05]Read from MH i2c: 01 07 00 [06:31:05]MH_I2C_Read... [06:31:05]Read from MH i2c: 01 07 00 27 07 00 00 00 00 00 F4 0C 35 [06:31:05]RasterBufferAndPrint [06:31:05]line [06:31:05]line [06:31:05]line [06:31:05]line [06:31:05]line [06:31:05]written 0, free lines is 3323 [06:31:05]MH_Cut [06:31:05]Write to MH i2c: D1 01 00 2E 07 01 07 [06:31:05]Write i2c OK [06:31:05]MH_I2C_Read... [06:31:05]Read from MH i2c: D1 [06:31:05]MH_I2C_Read... [06:31:05]Read from MH i2c: D1 01 00 [06:31:05]MH_I2C_Read... [06:31:05]Read from MH i2c: D1 01 00 2E 07 00 06 [06:31:05]Write to MH i2c: 01 00 00 2F 07 36 [06:31:05]Write i2c OK [06:31:05]MH_I2C_Read... [06:31:05]OFD Sender: No OFD packet to send [06:31:06]*** Cut start [06:31:06]*** Partial cut [06:31:06]*** CUTSNS_PIN = 1 [06:31:06]*** CUTSNS_PIN = 0 [06:31:06]*** Brake cut motor [06:31:06]Read from MH i2c: 01 [06:31:06]MH_I2C_Read... [06:31:06]*** Stop cut motor [06:31:06]*** Cut end [06:31:06]Read from MH i2c: 01 07 00 [06:31:06]MH_I2C_Read... [06:31:06]Read from MH i2c: 01 07 00 2F 07 00 00 00 00 00 FF 0F 4B [06:31:06]process_action close_receipt done [06:31:06]requested_data is exist [06:31:06]produce_requested_data [06:31:06]requested_item fm.sn is exist - process it [06:31:06]wFMCommunicate request_size=4 [06:31:06]MH_SAM_APDU [06:31:06]CAPDU: 80 11 00 00 [06:31:06]Write to MH i2c: E2 08 00 30 07 80 11 00 00 00 00 00 00 B1 [06:31:06]Write i2c OK [06:31:06]MH_I2C_Read... [06:31:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:31:06]Read from MH i2c: E2 [06:31:06]MH_I2C_Read... [06:31:06]Read from MH i2c: E2 17 00 [06:31:06]MH_I2C_Read... [06:31:06]Read from MH i2c: E2 17 00 30 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 07 [06:31:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [06:31:06]wFMCommunicate OK [06:31:06]requested_item fd.num is exist - process it [06:31:06]SAM_PROTO_GetFieldsCounters [06:31:06]wFMCommunicate request_size=4 [06:31:06]MH_SAM_APDU [06:31:06]CAPDU: 80 13 00 00 [06:31:06]Write to MH i2c: E2 08 00 31 07 80 13 00 00 00 00 00 00 B4 [06:31:06]Write i2c OK [06:31:06]MH_I2C_Read... [06:31:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:31:07]Read from MH i2c: E2 [06:31:07]MH_I2C_Read... [06:31:07]Read from MH i2c: E2 62 00 [06:31:07]MH_I2C_Read... [06:31:07]Read from MH i2c: E2 62 00 31 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D6 83 02 00 0E 04 04 00 BF 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 32 [06:31:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D6 83 02 00 0E 04 04 00 BF 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 [06:31:07]wFMCommunicate OK [06:31:07]SAM_PROTO_GetFieldsCounters done [06:31:07]requested_item shift.num is exist - process it [06:31:07]requested_item shift.opened is exist - process it [06:31:07]req_shift_opened [06:31:07]FM_GetShiftState [06:31:07]SAM_PROTO_GetShiftState [06:31:07]wFMCommunicate request_size=4 [06:31:07]MH_SAM_APDU [06:31:07]CAPDU: 80 13 01 00 [06:31:07]Write to MH i2c: E2 08 00 32 07 80 13 01 00 00 00 00 00 B6 [06:31:07]Write i2c OK [06:31:07]MH_I2C_Read... [06:31:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:31:07]Read from MH i2c: E2 [06:31:07]MH_I2C_Read... [06:31:07]Read from MH i2c: E2 0E 00 [06:31:07]MH_I2C_Read... [06:31:07]Read from MH i2c: E2 0E 00 32 07 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 36 [06:31:07]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [06:31:07]wFMCommunicate OK [06:31:07]SAM_PROTO_GetShiftState done [06:31:07]FM_GetShiftState done [06:31:07]req_shift_opened done [06:31:07]requested_item shift.open_date is exist - process it [06:31:07]req_shift_open_date [06:31:07]req_shift_open_date done [06:31:07]produce_requested_data done [06:31:07]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164822,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [06:31:07]process_action_free close_receipt [06:31:07]json_value_free [06:31:07]json_value_free done [06:31:07]process_json_proto returns [06:31:07]Send response to host [06:31:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164822,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [06:31:07]free response buf [06:31:07]execute_script done [06:31:07]execute_script returns [06:31:07]free content buf [06:31:07]Sock 8.Close socket [06:31:07]Sock 8.Thread stoped [06:31:10]OFD Sender: No OFD packet to send [06:31:15]OFD Sender: No OFD packet to send [06:31:20]OFD Sender: No OFD packet to send [06:31:25]OFD Sender: No OFD packet to send [06:31:30]OFD Sender: No OFD packet to send [06:31:35]OFD Sender: No OFD packet to send [06:31:40]OFD Sender: No OFD packet to send [06:31:45]OFD Sender: No OFD packet to send [06:31:50]OFD Sender: No OFD packet to send [06:31:55]OFD Sender: No OFD packet to send [06:32:00]OFD Sender: No OFD packet to send [06:32:05]OFD Sender: No OFD packet to send [06:32:10]OFD Sender: No OFD packet to send [06:32:14]accept exits with 9 [06:32:14]New connection [06:32:14]New thread 3067571556 created [06:32:14]Thread 3067428196 joined [06:32:14]Waiting for new connection... [06:32:14] Sock 9.Parse request [06:32:14]Sock 9.Check first char [06:32:14]Sock 9.First char is OK [06:32:14]request: POST /json_proto HTTP/1.0 [06:32:14]Method: POST [06:32:14]URL: /json_proto [06:32:14]Method is POST - this is cgi request [06:32:14]url: /json_proto [06:32:14]query_string will be loaded in cgi processing [06:32:14]execute_cgi json_proto POST (null) [06:32:14]execute_cgi path=json_proto method=POST [06:32:14]POST find Content-Length [06:32:14]Host: 172.17.56.4:8080 [06:32:14]Content-Length: 677 [06:32:14]Content-Type: application/json [06:32:14] [06:32:14]POST finish read [06:32:14]Found Content-Length = 677 [06:32:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458916", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:32:14]execute_script... [06:32:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458916", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:32:14]POST & json_proto [06:32:14]process_json_proto [06:32:14]json parsed OK: [06:32:14]protocol is kg_v1.0 [06:32:14]action value=close_receipt [06:32:14]process_action close_receipt [06:32:14]cmd_close_receipt [06:32:14]MH_GetDate [06:32:14]Write to MH i2c: F0 00 00 33 07 29 [06:32:14]Write i2c OK [06:32:14]MH_I2C_Read... [06:32:14]Read from MH i2c: F0 [06:32:14]MH_I2C_Read... [06:32:14]Read from MH i2c: F0 09 00 [06:32:14]MH_I2C_Read... [06:32:14]Read from MH i2c: F0 09 00 33 07 00 F0 70 93 66 C9 DC B2 64 46 [06:32:14]GetLastDocTimeStamp 1720938664 [06:32:14]current date 1720938736 [06:32:14]FM_GetShiftState [06:32:14]SAM_PROTO_GetShiftState [06:32:14]wFMCommunicate request_size=4 [06:32:14]MH_SAM_APDU [06:32:14]CAPDU: 80 13 01 00 [06:32:14]Write to MH i2c: E2 08 00 34 07 80 13 01 00 00 00 00 00 B8 [06:32:14]Write i2c OK [06:32:14]MH_I2C_Read... [06:32:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:32:14]Read from MH i2c: E2 [06:32:14]MH_I2C_Read... [06:32:14]Read from MH i2c: E2 0E 00 [06:32:14]MH_I2C_Read... [06:32:14]Read from MH i2c: E2 0E 00 34 07 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 38 [06:32:14]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [06:32:14]wFMCommunicate OK [06:32:14]SAM_PROTO_GetShiftState done [06:32:14]FM_GetShiftState done [06:32:14]opened in 1720917342 [06:32:14]opened+sec_in_day 1721003742 [06:32:14]quantity*price = 50008 [06:32:14]sum+1 = 50009 [06:32:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 21 14.07.2024 06:32 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164823 ФПД: 194722086092588 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T063216&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164823&fm=194722086092588&tin=02508201610067®Number=0000000000090829&sum=50000 [06:32:15]StoreToDocumentArchive [06:32:15]shift 447 fd 164823 [06:32:15]save to /storage/0447/doc_00164823 [06:32:15]save last doc name /storage/0447/doc_00164823 to /storage/kkm_last_doc_name [06:32:15]save OK [06:32:15]Clear old archive folders... [06:32:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:32:15]tlvbuf is 0163F000 [06:32:15]SAM_PROTO_ClearQueue [06:32:15]wFMCommunicate request_size=4 [06:32:15]MH_SAM_APDU [06:32:15]CAPDU: 80 09 00 00 [06:32:15]Write to MH i2c: E2 08 00 41 07 80 09 00 00 00 00 00 00 BA [06:32:15]Write i2c OK [06:32:15]MH_I2C_Read... [06:32:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:32:15]Read from MH i2c: E2 [06:32:15]MH_I2C_Read... [06:32:15]Read from MH i2c: E2 03 00 [06:32:15]MH_I2C_Read... [06:32:15]Read from MH i2c: E2 03 00 41 07 00 90 00 BC [06:32:15]RAPDU: 90 00 [06:32:15]wFMCommunicate OK [06:32:15]SAM_PROTO_ClearQueue done [06:32:15]KKMCreateOFDPacket [06:32:15]OFDProtocolAddRootSTLVToBuf [06:32:15]FM_MakeSignedData [06:32:15]FM_MakeSignedData [06:32:15]SAM_PROTO_SignData [06:32:15]wFMCommunicate request_size=4 [06:32:15]MH_SAM_APDU [06:32:15]CAPDU: 80 0D 01 02 [06:32:15]Write to MH i2c: E2 08 00 42 07 80 0D 01 02 00 00 00 00 C2 [06:32:15]Write i2c OK [06:32:15]MH_I2C_Read... [06:32:15]OFD Sender: No OFD packet to send [06:32:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:32:15]Read from MH i2c: E2 [06:32:15]MH_I2C_Read... [06:32:15]Read from MH i2c: E2 03 00 [06:32:15]MH_I2C_Read... [06:32:15]Read from MH i2c: E2 03 00 42 07 00 90 00 BD [06:32:15]RAPDU: 90 00 [06:32:15]wFMCommunicate OK [06:32:15]wFMCommunicate request_size=255 [06:32:15]MH_SAM_APDU [06:32:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 15 00 00 00 F4 03 04 00 F0 70 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D7 83 02 00 35 04 06 00 B1 [06:32:15]Write to MH i2c: E2 02 01 43 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 15 00 00 00 F4 03 04 00 F0 70 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D7 83 02 00 35 04 06 00 B1 00 00 76 [06:32:15]Write i2c OK [06:32:15]MH_I2C_Read... [06:32:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:32:16]Read from MH i2c: E2 [06:32:16]MH_I2C_Read... [06:32:16]Read from MH i2c: E2 03 00 [06:32:16]MH_I2C_Read... [06:32:16]Read from MH i2c: E2 03 00 43 07 00 90 00 BE [06:32:16]RAPDU: 90 00 [06:32:16]wFMCommunicate OK [06:32:16]wFMCommunicate request_size=10 [06:32:16]MH_SAM_APDU [06:32:16]CAPDU: 80 0D 02 02 05 19 44 C5 7F 2C [06:32:16]Write to MH i2c: E2 0D 00 44 07 80 0D 02 02 05 00 19 44 C5 7F 2C 00 00 9C [06:32:16]Write i2c OK [06:32:16]MH_I2C_Read... [06:32:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:32:16]Read from MH i2c: E2 [06:32:16]MH_I2C_Read... [06:32:16]Read from MH i2c: E2 03 00 [06:32:16]MH_I2C_Read... [06:32:16]Read from MH i2c: E2 03 00 44 07 00 90 00 BF [06:32:16]RAPDU: 90 00 [06:32:16]wFMCommunicate OK [06:32:16]wFMCommunicate request_size=4 [06:32:16]MH_SAM_APDU [06:32:16]CAPDU: 80 0D 03 02 [06:32:16]Write to MH i2c: E2 08 00 45 07 80 0D 03 02 00 00 00 00 C7 [06:32:16]Write i2c OK [06:32:16]MH_I2C_Read... [06:32:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:32:16]Read from MH i2c: E2 [06:32:16]MH_I2C_Read... [06:32:16]Read from MH i2c: E2 0B 00 [06:32:16]MH_I2C_Read... [06:32:16]Read from MH i2c: E2 0B 00 45 07 00 F8 80 66 85 21 2E 47 0E 90 00 CF [06:32:16]RAPDU: F8 80 66 85 21 2E 47 0E 90 00 [06:32:16]wFMCommunicate OK [06:32:16]SAM_PROTO_SignData done [06:32:16]FM_MakeSignedData done [06:32:16]CreateOFDProtocolMessage [06:32:16]wFMCommunicate request_size=4 [06:32:16]MH_SAM_APDU [06:32:16]CAPDU: 80 11 00 00 [06:32:16]Write to MH i2c: E2 08 00 46 07 80 11 00 00 00 00 00 00 C7 [06:32:16]Write i2c OK [06:32:16]MH_I2C_Read... [06:32:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:32:16]Read from MH i2c: E2 [06:32:16]MH_I2C_Read... [06:32:16]Read from MH i2c: E2 17 00 [06:32:16]MH_I2C_Read... [06:32:16]Read from MH i2c: E2 17 00 46 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 1D [06:32:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [06:32:16]wFMCommunicate OK [06:32:16]CreateOFDProtocolMessage done [06:32:16]OFDSenderStorePacket 164823 [06:32:16]StoreOFDPacket docnum=164823 [06:32:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 72 28 07 01 B7 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 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 15 00 00 00 F4 03 04 00 F0 70 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D7 83 02 00 35 04 06 00 B1 19 44 C5 7F 2C F8 80 66 85 21 2E 47 0E [06:32:16]CheckFolder [06:32:16]dirname=/storage/ofd_packets [06:32:16]CheckFolder done [06:32:16]ProducePacketName [06:32:16]name=ofd_packets/00164823 [06:32:16]NVStorageSaveData ofd_packets/00164823 [06:32:16]File name is /storage/ofd_packets/00164823 [06:32:16]Write 301 bytes [06:32:16]NVStorageSaveData done [06:32:16]OFDSenderStorePacket done [06:32:16]KKMCreateOFDPacket done [06:32:16]NVStorageSaveData kkm_last_timestamp [06:32:16]File name is /storage/kkm_last_timestamp [06:32:16]Write 4 bytes [06:32:16]NVStorageSaveData done [06:32:16]ExternCall_PrintAddStr [06:32:16]wPrintStart [06:32:16]Write to MH i2c: 01 00 00 47 07 4E [06:32:16]Write i2c OK [06:32:16]MH_I2C_Read... [06:32:16]Read from MH i2c: 01 [06:32:16]MH_I2C_Read... [06:32:16]Read from MH i2c: 01 07 00 [06:32:16]MH_I2C_Read... [06:32:16]Read from MH i2c: 01 07 00 47 07 00 00 00 00 00 FF 0F 63 [06:32:16]RasterBufferAndPrint [06:32:16]line Счет N : (1)458916 [06:32:16]line ИНН: 02508201610067 [06:32:16]line Контрольно-Кассовый Чек [06:32:16]line ПРОДАЖА [06:32:16]line ТРК (МРК, ГНК) : 22 [06:32:16]line Товар: 2710124130 [06:32:16]line Аи-92-К-5 [06:32:16]line 7.600 * 65.80 [06:32:16]line = 500.08 [06:32:16]line НДС 12% НСП 1% [06:32:16]line > о реализуемом товаре [06:32:16]line ОКРУГЛЕНИЕ: -0.08 [06:32:16]line ИТОГО: 500.00 [06:32:16]line Внесено: 500.00 [06:32:16]line СДАЧА: 0.00 [06:32:16]line НСП 1% : 4.42 [06:32:16]line НДС 12% : 53.11 [06:32:16]line Наличными: 500.00 [06:32:16]line Безнал.: 0.00 [06:32:16]line Место: АЗС № 72 "Партнер Нефть" [06:32:16]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [06:32:16]line СНО: Общий режим [06:32:16]line Чек 21 14.07.2024 06:32 [06:32:16]line Смена: 447 ФФД: 1.0 [06:32:16]line ЗНМ: 0300000160 [06:32:16]line РНМ: 0000000000090829 [06:32:16]line Версия ККМ: 001 [06:32:16]line ФМ: 0000000000874718 [06:32:16]line ФД: 164823 [06:32:16]line ФПД: 194722086092588 [06:32:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T063216&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164823&fm=194722086092588&tin=02508201610067®Number=0000000000090829&sum=50000 [06:32:16]OFD Sender: Processing packet 164823 [packets to send 104, broken 103] [06:32:16]ProducePacketName [06:32:16]name=ofd_packets/00164823 [06:32:16]OFD Sender: To server: pG, [06:32:16]CommunicateWithHost lk.salyk.kg:30040 [06:32:16]ConnectInit lk.salyk.kg [06:32:16]written 0, free lines is 4095 [06:32:16]Connected sock=11 [06:32:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 72 28 07 01 B7 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 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 15 00 00 00 F4 03 04 00 F0 70 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D7 83 02 00 35 04 06 00 B1 19 44 C5 7F 2C F8 80 66 85 21 2E 47 0E [06:32:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 C3 03 47 00 0E 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 38 37 34 37 31 38 10 04 04 00 D7 83 02 00 F4 03 04 00 7F 17 93 66 B6 04 01 00 00 48 7F 88 5D 9A 15 91 95 [06:32:17]CommunicateWithHost err = 0 [06:32:17]CheckOFDResponse [06:32:17]1017 (14) - 77093643461234 [06:32:17]1041 (16) - 0000000000874718 [06:32:17]1040 (4) - 164823 [06:32:17]1012 (4) - 14.07.2024 00:10 [06:32:17]1206 (1) - 0 [06:32:17]OFD Sender: Remove packet 164823 [06:32:17]ProducePacketName [06:32:17]name=ofd_packets/00164823 [06:32:17]NVStorageDeleteData [06:32:17]Write to MH i2c: 01 00 00 71 07 78 [06:32:17]Write i2c OK [06:32:17]MH_I2C_Read... [06:32:17]Read from MH i2c: 01 [06:32:17]MH_I2C_Read... [06:32:17]Read from MH i2c: 01 07 00 [06:32:17]MH_I2C_Read... [06:32:17]Read from MH i2c: 01 07 00 71 07 00 00 00 00 00 FB 0C 86 [06:32:17]RasterBufferAndPrint [06:32:17]line [06:32:17]line [06:32:17]line [06:32:17]line [06:32:17]line [06:32:17]written 0, free lines is 3329 [06:32:17]MH_Cut [06:32:17]Write to MH i2c: D1 01 00 78 07 01 51 [06:32:17]Write i2c OK [06:32:17]MH_I2C_Read... [06:32:17]Read from MH i2c: D1 [06:32:17]MH_I2C_Read... [06:32:17]Read from MH i2c: D1 01 00 [06:32:17]MH_I2C_Read... [06:32:17]Read from MH i2c: D1 01 00 78 07 00 50 [06:32:17]Write to MH i2c: 01 00 00 79 07 80 [06:32:17]Write i2c OK [06:32:17]MH_I2C_Read... [06:32:17]OFD Sender: No OFD packet to send [06:32:17]*** Cut start [06:32:17]*** Partial cut [06:32:17]*** CUTSNS_PIN = 1 [06:32:17]*** CUTSNS_PIN = 0 [06:32:18]*** Brake cut motor [06:32:18]Read from MH i2c: 01 [06:32:18]MH_I2C_Read... [06:32:18]*** Stop cut motor [06:32:18]*** Cut end [06:32:18]Read from MH i2c: 01 07 00 [06:32:18]MH_I2C_Read... [06:32:18]Read from MH i2c: 01 07 00 79 07 00 00 00 00 00 FF 0F 95 [06:32:18]process_action close_receipt done [06:32:18]requested_data is exist [06:32:18]produce_requested_data [06:32:18]requested_item fm.sn is exist - process it [06:32:18]wFMCommunicate request_size=4 [06:32:18]MH_SAM_APDU [06:32:18]CAPDU: 80 11 00 00 [06:32:18]Write to MH i2c: E2 08 00 7A 07 80 11 00 00 00 00 00 00 FB [06:32:18]Write i2c OK [06:32:18]MH_I2C_Read... [06:32:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:32:18]Read from MH i2c: E2 [06:32:18]MH_I2C_Read... [06:32:18]Read from MH i2c: E2 17 00 [06:32:18]MH_I2C_Read... [06:32:18]Read from MH i2c: E2 17 00 7A 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 51 [06:32:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [06:32:18]wFMCommunicate OK [06:32:18]requested_item fd.num is exist - process it [06:32:18]SAM_PROTO_GetFieldsCounters [06:32:18]wFMCommunicate request_size=4 [06:32:18]MH_SAM_APDU [06:32:18]CAPDU: 80 13 00 00 [06:32:18]Write to MH i2c: E2 08 00 7B 07 80 13 00 00 00 00 00 00 FE [06:32:18]Write i2c OK [06:32:18]MH_I2C_Read... [06:32:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:32:18]Read from MH i2c: E2 [06:32:18]MH_I2C_Read... [06:32:18]Read from MH i2c: E2 62 00 [06:32:18]MH_I2C_Read... [06:32:18]Read from MH i2c: E2 62 00 7B 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D7 83 02 00 0E 04 04 00 BF 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 80 [06:32:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D7 83 02 00 0E 04 04 00 BF 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 [06:32:18]wFMCommunicate OK [06:32:18]SAM_PROTO_GetFieldsCounters done [06:32:18]requested_item shift.num is exist - process it [06:32:18]requested_item shift.opened is exist - process it [06:32:18]req_shift_opened [06:32:18]FM_GetShiftState [06:32:18]SAM_PROTO_GetShiftState [06:32:18]wFMCommunicate request_size=4 [06:32:18]MH_SAM_APDU [06:32:18]CAPDU: 80 13 01 00 [06:32:18]Write to MH i2c: E2 08 00 7C 07 80 13 01 00 00 00 00 00 00 [06:32:18]Write i2c OK [06:32:18]MH_I2C_Read... [06:32:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:32:18]Read from MH i2c: E2 [06:32:18]MH_I2C_Read... [06:32:18]Read from MH i2c: E2 0E 00 [06:32:18]MH_I2C_Read... [06:32:18]Read from MH i2c: E2 0E 00 7C 07 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 80 [06:32:18]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [06:32:18]wFMCommunicate OK [06:32:18]SAM_PROTO_GetShiftState done [06:32:18]FM_GetShiftState done [06:32:18]req_shift_opened done [06:32:18]requested_item shift.open_date is exist - process it [06:32:18]req_shift_open_date [06:32:18]req_shift_open_date done [06:32:18]produce_requested_data done [06:32:18]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164823,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [06:32:18]process_action_free close_receipt [06:32:18]json_value_free [06:32:18]json_value_free done [06:32:18]process_json_proto returns [06:32:18]Send response to host [06:32:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164823,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [06:32:18]free response buf [06:32:18]execute_script done [06:32:18]execute_script returns [06:32:18]free content buf [06:32:18]Sock 9.Close socket [06:32:18]Sock 9.Thread stoped [06:32:22]OFD Sender: No OFD packet to send [06:32:27]OFD Sender: No OFD packet to send [06:32:32]OFD Sender: No OFD packet to send [06:32:37]OFD Sender: No OFD packet to send [06:32:42]OFD Sender: No OFD packet to send [06:32:47]OFD Sender: No OFD packet to send [06:32:52]OFD Sender: No OFD packet to send [06:32:57]OFD Sender: No OFD packet to send [06:33:02]OFD Sender: No OFD packet to send [06:33:07]OFD Sender: No OFD packet to send [06:33:12]OFD Sender: No OFD packet to send [06:33:17]OFD Sender: No OFD packet to send [06:33:22]OFD Sender: No OFD packet to send [06:33:27]OFD Sender: No OFD packet to send [06:33:32]OFD Sender: No OFD packet to send [06:33:37]OFD Sender: No OFD packet to send [06:33:42]OFD Sender: No OFD packet to send [06:33:47]OFD Sender: No OFD packet to send [06:33:52]OFD Sender: No OFD packet to send [06:33:57]OFD Sender: No OFD packet to send [06:34:02]OFD Sender: No OFD packet to send [06:34:07]OFD Sender: No OFD packet to send [06:34:12]OFD Sender: No OFD packet to send [06:34:17]OFD Sender: No OFD packet to send [06:34:22]OFD Sender: No OFD packet to send [06:34:27]OFD Sender: No OFD packet to send [06:34:32]OFD Sender: No OFD packet to send [06:34:37]OFD Sender: No OFD packet to send [06:34:42]OFD Sender: No OFD packet to send [06:34:47]OFD Sender: No OFD packet to send [06:34:52]OFD Sender: No OFD packet to send [06:34:57]OFD Sender: No OFD packet to send [06:35:01]accept exits with 8 [06:35:01]New connection [06:35:01]New thread 3067428196 created [06:35:01]Thread 3067571556 joined [06:35:01]Waiting for new connection... [06:35:01] Sock 8.Parse request [06:35:01]Sock 8.Check first char [06:35:01]Sock 8.First char is OK [06:35:01]request: POST /json_proto HTTP/1.0 [06:35:01]Method: POST [06:35:01]URL: /json_proto [06:35:01]Method is POST - this is cgi request [06:35:01]url: /json_proto [06:35:01]query_string will be loaded in cgi processing [06:35:01]execute_cgi json_proto POST (null) [06:35:01]execute_cgi path=json_proto method=POST [06:35:01]POST find Content-Length [06:35:01]Host: 172.17.56.4:8080 [06:35:01]Content-Length: 682 [06:35:01]Content-Type: application/json [06:35:01] [06:35:01]POST finish read [06:35:01]Found Content-Length = 682 [06:35:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458917", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "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:35:01]execute_script... [06:35: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)458917", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "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:35:01]POST & json_proto [06:35:01]process_json_proto [06:35:01]json parsed OK: [06:35:01]protocol is kg_v1.0 [06:35:01]action value=close_receipt [06:35:01]process_action close_receipt [06:35:01]cmd_close_receipt [06:35:01]MH_GetDate [06:35:01]Write to MH i2c: F0 00 00 7D 07 73 [06:35:01]Write i2c OK [06:35:01]MH_I2C_Read... [06:35:01]Read from MH i2c: F0 [06:35:01]MH_I2C_Read... [06:35:01]Read from MH i2c: F0 09 00 [06:35:01]MH_I2C_Read... [06:35:01]Read from MH i2c: F0 09 00 7D 07 00 97 71 93 66 C9 DC B2 64 38 [06:35:01]GetLastDocTimeStamp 1720938736 [06:35:01]current date 1720938903 [06:35:01]FM_GetShiftState [06:35:01]SAM_PROTO_GetShiftState [06:35:01]wFMCommunicate request_size=4 [06:35:01]MH_SAM_APDU [06:35:01]CAPDU: 80 13 01 00 [06:35:01]Write to MH i2c: E2 08 00 7E 07 80 13 01 00 00 00 00 00 02 [06:35:01]Write i2c OK [06:35:01]MH_I2C_Read... [06:35:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:35:01]Read from MH i2c: E2 [06:35:01]MH_I2C_Read... [06:35:01]Read from MH i2c: E2 0E 00 [06:35:01]MH_I2C_Read... [06:35:01]Read from MH i2c: E2 0E 00 7E 07 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 82 [06:35:01]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [06:35:01]wFMCommunicate OK [06:35:01]SAM_PROTO_GetShiftState done [06:35:01]FM_GetShiftState done [06:35:01]opened in 1720917342 [06:35:01]opened+sec_in_day 1721003742 [06:35:01]quantity*price = 100016 [06:35:01]sum+1 = 100017 [06:35:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 22 14.07.2024 06:35 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164824 ФПД: 21100903952105 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T063503&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164824&fm=21100903952105&tin=02508201610067®Number=0000000000090829&sum=100000 [06:35:03]StoreToDocumentArchive [06:35:03]shift 447 fd 164824 [06:35:03]save to /storage/0447/doc_00164824 [06:35:03]save last doc name /storage/0447/doc_00164824 to /storage/kkm_last_doc_name [06:35:03]save OK [06:35:03]Clear old archive folders... [06:35:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:35:03]tlvbuf is 01670A60 [06:35:03]SAM_PROTO_ClearQueue [06:35:03]wFMCommunicate request_size=4 [06:35:03]MH_SAM_APDU [06:35:03]CAPDU: 80 09 00 00 [06:35:03]Write to MH i2c: E2 08 00 8B 07 80 09 00 00 00 00 00 00 04 [06:35:03]Write i2c OK [06:35:03]MH_I2C_Read... [06:35:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:35:03]Read from MH i2c: E2 [06:35:03]MH_I2C_Read... [06:35:03]Read from MH i2c: E2 03 00 [06:35:03]MH_I2C_Read... [06:35:03]Read from MH i2c: E2 03 00 8B 07 00 90 00 06 [06:35:03]RAPDU: 90 00 [06:35:03]wFMCommunicate OK [06:35:03]SAM_PROTO_ClearQueue done [06:35:03]KKMCreateOFDPacket [06:35:03]OFDProtocolAddRootSTLVToBuf [06:35:03]FM_MakeSignedData [06:35:03]FM_MakeSignedData [06:35:03]SAM_PROTO_SignData [06:35:03]wFMCommunicate request_size=4 [06:35:03]MH_SAM_APDU [06:35:03]CAPDU: 80 0D 01 02 [06:35:03]Write to MH i2c: E2 08 00 8C 07 80 0D 01 02 00 00 00 00 0C [06:35:03]Write i2c OK [06:35:03]MH_I2C_Read... [06:35:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:35:03]Read from MH i2c: E2 [06:35:03]MH_I2C_Read... [06:35:03]Read from MH i2c: E2 03 00 [06:35:03]MH_I2C_Read... [06:35:03]Read from MH i2c: E2 03 00 8C 07 00 90 00 07 [06:35:03]RAPDU: 90 00 [06:35:03]wFMCommunicate OK [06:35:03]wFMCommunicate request_size=255 [06:35:03]MH_SAM_APDU [06:35:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 97 71 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D8 83 02 00 35 04 06 00 13 [06:35:03]Write to MH i2c: E2 02 01 8D 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 97 71 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D8 83 02 00 35 04 06 00 13 00 00 6E [06:35:03]Write i2c OK [06:35:03]MH_I2C_Read... [06:35:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:35:03]Read from MH i2c: E2 [06:35:03]MH_I2C_Read... [06:35:03]Read from MH i2c: E2 03 00 [06:35:03]MH_I2C_Read... [06:35:03]Read from MH i2c: E2 03 00 8D 07 00 90 00 08 [06:35:03]RAPDU: 90 00 [06:35:03]wFMCommunicate OK [06:35:03]wFMCommunicate request_size=10 [06:35:03]MH_SAM_APDU [06:35:03]CAPDU: 80 0D 02 02 05 30 EF E2 6E E9 [06:35:03]Write to MH i2c: E2 0D 00 8E 07 80 0D 02 02 05 00 30 EF E2 6E E9 00 00 71 [06:35:03]Write i2c OK [06:35:03]MH_I2C_Read... [06:35:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:35:03]Read from MH i2c: E2 [06:35:03]MH_I2C_Read... [06:35:03]Read from MH i2c: E2 03 00 [06:35:03]MH_I2C_Read... [06:35:03]Read from MH i2c: E2 03 00 8E 07 00 90 00 09 [06:35:03]RAPDU: 90 00 [06:35:03]wFMCommunicate OK [06:35:03]wFMCommunicate request_size=4 [06:35:03]MH_SAM_APDU [06:35:03]CAPDU: 80 0D 03 02 [06:35:03]Write to MH i2c: E2 08 00 8F 07 80 0D 03 02 00 00 00 00 11 [06:35:03]Write i2c OK [06:35:03]MH_I2C_Read... [06:35:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:35:03]Read from MH i2c: E2 [06:35:03]MH_I2C_Read... [06:35:03]Read from MH i2c: E2 0B 00 [06:35:03]MH_I2C_Read... [06:35:03]Read from MH i2c: E2 0B 00 8F 07 00 86 94 E4 C9 A0 66 61 0D 90 00 4D [06:35:03]RAPDU: 86 94 E4 C9 A0 66 61 0D 90 00 [06:35:03]wFMCommunicate OK [06:35:03]SAM_PROTO_SignData done [06:35:03]FM_MakeSignedData done [06:35:03]CreateOFDProtocolMessage [06:35:03]wFMCommunicate request_size=4 [06:35:03]MH_SAM_APDU [06:35:03]CAPDU: 80 11 00 00 [06:35:03]Write to MH i2c: E2 08 00 90 07 80 11 00 00 00 00 00 00 11 [06:35:03]Write i2c OK [06:35:03]MH_I2C_Read... [06:35:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:35:03]Read from MH i2c: E2 [06:35:03]MH_I2C_Read... [06:35:03]Read from MH i2c: E2 17 00 [06:35:03]MH_I2C_Read... [06:35:03]Read from MH i2c: E2 17 00 90 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 67 [06:35:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [06:35:03]wFMCommunicate OK [06:35:03]CreateOFDProtocolMessage done [06:35:03]OFDSenderStorePacket 164824 [06:35:03]StoreOFDPacket docnum=164824 [06:35:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 79 54 07 01 C9 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 97 71 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D8 83 02 00 35 04 06 00 13 30 EF E2 6E E9 86 94 E4 C9 A0 66 61 0D [06:35:03]CheckFolder [06:35:03]dirname=/storage/ofd_packets [06:35:03]CheckFolder done [06:35:03]ProducePacketName [06:35:03]name=ofd_packets/00164824 [06:35:03]NVStorageSaveData ofd_packets/00164824 [06:35:03]File name is /storage/ofd_packets/00164824 [06:35:03]Write 301 bytes [06:35:03]NVStorageSaveData done [06:35:03]OFDSenderStorePacket done [06:35:03]KKMCreateOFDPacket done [06:35:03]NVStorageSaveData kkm_last_timestamp [06:35:03]File name is /storage/kkm_last_timestamp [06:35:03]Write 4 bytes [06:35:03]NVStorageSaveData done [06:35:03]OFD Sender: Processing packet 164824 [packets to send 104, broken 103] [06:35:03]ProducePacketName [06:35:03]name=ofd_packets/00164824 [06:35:03]OFD Sender: To server: pG, [06:35:03]CommunicateWithHost lk.salyk.kg:30040 [06:35:03]ConnectInit lk.salyk.kg [06:35:03]ExternCall_PrintAddStr [06:35:03]wPrintStart [06:35:03]Write to MH i2c: 01 00 00 91 07 98 [06:35:03]Write i2c OK [06:35:03]MH_I2C_Read... [06:35:03]Read from MH i2c: 01 [06:35:03]MH_I2C_Read... [06:35:03]Read from MH i2c: 01 07 00 [06:35:03]MH_I2C_Read... [06:35:03]Read from MH i2c: 01 07 00 91 07 00 00 00 00 00 FF 0F AD [06:35:03]RasterBufferAndPrint [06:35:03]line Счет N : (1)458917 [06:35:03]line ИНН: 02508201610067 [06:35:03]line Контрольно-Кассовый Чек [06:35:03]line ПРОДАЖА [06:35:03]line ТРК (МРК, ГНК) : 22 [06:35:03]line Товар: 2710124130 [06:35:03]line Аи-92-К-5 [06:35:03]line 15.200 * 65.80 [06:35:03]line = 1000.16 [06:35:03]line НДС 12% НСП 1% [06:35:03]line > о реализуемом товаре [06:35:03]line ОКРУГЛЕНИЕ: -0.16 [06:35:03]line ИТОГО: 1000.00 [06:35:03]line Внесено: 1000.00 [06:35:03]line СДАЧА: 0.00 [06:35:03]line НСП 1% : 8.85 [06:35:03]line НДС 12% : 106.21 [06:35:03]line Наличными: 1000.00 [06:35:03]line Безнал.: 0.00 [06:35:03]line Место: АЗС № 72 "Партнер Нефть" [06:35:03]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [06:35:03]line СНО: Общий режим [06:35:03]line Чек 22 14.07.2024 06:35 [06:35:03]line Смена: 447 ФФД: 1.0 [06:35:03]line ЗНМ: 0300000160 [06:35:03]line РНМ: 0000000000090829 [06:35:03]line Версия ККМ: 001 [06:35:03]line ФМ: 0000000000874718 [06:35:03]line ФД: 164824 [06:35:03]line ФПД: 21100903952105 [06:35:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T063503&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164824&fm=21100903952105&tin=02508201610067®Number=0000000000090829&sum=100000 [06:35:03]Connected sock=11 [06:35:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 79 54 07 01 C9 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 97 71 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D8 83 02 00 35 04 06 00 13 30 EF E2 6E E9 86 94 E4 C9 A0 66 61 0D [06:35:03]written 0, free lines is 4095 [06:35:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 CA 03 47 00 73 F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D8 83 02 00 F4 03 04 00 26 18 93 66 B6 04 01 00 00 25 45 61 E0 7F FB 4C E8 [06:35:04]CommunicateWithHost err = 0 [06:35:04]CheckOFDResponse [06:35:04]1017 (14) - 77093643461234 [06:35:04]1041 (16) - 0000000000874718 [06:35:04]1040 (4) - 164824 [06:35:04]1012 (4) - 14.07.2024 00:13 [06:35:04]1206 (1) - 0 [06:35:04]OFD Sender: Remove packet 164824 [06:35:04]ProducePacketName [06:35:04]name=ofd_packets/00164824 [06:35:04]NVStorageDeleteData [06:35:04]Write to MH i2c: 01 00 00 BB 07 C2 [06:35:04]Write i2c OK [06:35:04]MH_I2C_Read... [06:35:04]Read from MH i2c: 01 [06:35:04]MH_I2C_Read... [06:35:04]Read from MH i2c: 01 07 00 [06:35:04]MH_I2C_Read... [06:35:04]Read from MH i2c: 01 07 00 BB 07 00 00 00 00 00 FA 0C CF [06:35:04]RasterBufferAndPrint [06:35:04]line [06:35:04]line [06:35:04]line [06:35:04]line [06:35:04]line [06:35:04]written 0, free lines is 3328 [06:35:04]MH_Cut [06:35:04]Write to MH i2c: D1 01 00 C2 07 01 9B [06:35:04]Write i2c OK [06:35:04]MH_I2C_Read... [06:35:04]Read from MH i2c: D1 [06:35:04]MH_I2C_Read... [06:35:04]Read from MH i2c: D1 01 00 [06:35:04]MH_I2C_Read... [06:35:04]Read from MH i2c: D1 01 00 C2 07 00 9A [06:35:04]Write to MH i2c: 01 00 00 C3 07 CA [06:35:04]Write i2c OK [06:35:04]MH_I2C_Read... [06:35:04]OFD Sender: No OFD packet to send [06:35:05]*** Cut start [06:35:05]*** Partial cut [06:35:05]*** CUTSNS_PIN = 1 [06:35:05]*** CUTSNS_PIN = 0 [06:35:05]*** Brake cut motor [06:35:05]Read from MH i2c: 01 [06:35:05]MH_I2C_Read... [06:35:05]*** Stop cut motor [06:35:05]*** Cut end [06:35:05]Read from MH i2c: 01 07 00 [06:35:05]MH_I2C_Read... [06:35:05]Read from MH i2c: 01 07 00 C3 07 00 00 00 00 00 FF 0F DF [06:35:05]process_action close_receipt done [06:35:05]requested_data is exist [06:35:05]produce_requested_data [06:35:05]requested_item fm.sn is exist - process it [06:35:05]wFMCommunicate request_size=4 [06:35:05]MH_SAM_APDU [06:35:05]CAPDU: 80 11 00 00 [06:35:05]Write to MH i2c: E2 08 00 C4 07 80 11 00 00 00 00 00 00 45 [06:35:05]Write i2c OK [06:35:05]MH_I2C_Read... [06:35:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:35:05]Read from MH i2c: E2 [06:35:05]MH_I2C_Read... [06:35:05]Read from MH i2c: E2 17 00 [06:35:05]MH_I2C_Read... [06:35:05]Read from MH i2c: E2 17 00 C4 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 9B [06:35:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [06:35:05]wFMCommunicate OK [06:35:05]requested_item fd.num is exist - process it [06:35:05]SAM_PROTO_GetFieldsCounters [06:35:05]wFMCommunicate request_size=4 [06:35:05]MH_SAM_APDU [06:35:05]CAPDU: 80 13 00 00 [06:35:05]Write to MH i2c: E2 08 00 C5 07 80 13 00 00 00 00 00 00 48 [06:35:05]Write i2c OK [06:35:05]MH_I2C_Read... [06:35:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:35:05]Read from MH i2c: E2 [06:35:05]MH_I2C_Read... [06:35:05]Read from MH i2c: E2 62 00 [06:35:05]MH_I2C_Read... [06:35:05]Read from MH i2c: E2 62 00 C5 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D8 83 02 00 0E 04 04 00 BF 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 CE [06:35:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D8 83 02 00 0E 04 04 00 BF 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 [06:35:05]wFMCommunicate OK [06:35:05]SAM_PROTO_GetFieldsCounters done [06:35:05]requested_item shift.num is exist - process it [06:35:05]requested_item shift.opened is exist - process it [06:35:05]req_shift_opened [06:35:05]FM_GetShiftState [06:35:05]SAM_PROTO_GetShiftState [06:35:05]wFMCommunicate request_size=4 [06:35:05]MH_SAM_APDU [06:35:05]CAPDU: 80 13 01 00 [06:35:05]Write to MH i2c: E2 08 00 C6 07 80 13 01 00 00 00 00 00 4A [06:35:05]Write i2c OK [06:35:05]MH_I2C_Read... [06:35:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:35:05]Read from MH i2c: E2 [06:35:05]MH_I2C_Read... [06:35:05]Read from MH i2c: E2 0E 00 [06:35:05]MH_I2C_Read... [06:35:05]Read from MH i2c: E2 0E 00 C6 07 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 CA [06:35:05]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [06:35:05]wFMCommunicate OK [06:35:05]SAM_PROTO_GetShiftState done [06:35:05]FM_GetShiftState done [06:35:05]req_shift_opened done [06:35:05]requested_item shift.open_date is exist - process it [06:35:05]req_shift_open_date [06:35:05]req_shift_open_date done [06:35:05]produce_requested_data done [06:35:05]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164824,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [06:35:05]process_action_free close_receipt [06:35:05]json_value_free [06:35:05]json_value_free done [06:35:05]process_json_proto returns [06:35:05]Send response to host [06:35:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164824,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [06:35:05]free response buf [06:35:05]execute_script done [06:35:05]execute_script returns [06:35:05]free content buf [06:35:05]Sock 8.Close socket [06:35:05]Sock 8.Thread stoped [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:38:59]OFD Sender: No OFD packet to send [06:39:04]OFD Sender: No OFD packet to send [06:39:09]OFD Sender: No OFD packet to send [06:39:14]OFD Sender: No OFD packet to send [06:39:19]OFD Sender: No OFD packet to send [06:39:24]OFD Sender: No OFD packet to send [06:39:29]OFD Sender: No OFD packet to send [06:39:34]OFD Sender: No OFD packet to send [06:39:39]OFD Sender: No OFD packet to send [06:39:44]OFD Sender: No OFD packet to send [06:39:49]OFD Sender: No OFD packet to send [06:39:54]OFD Sender: No OFD packet to send [06:39:59]OFD Sender: No OFD packet to send [06:40:04]OFD Sender: No OFD packet to send [06:40:09]OFD Sender: No OFD packet to send [06:40:14]OFD Sender: No OFD packet to send [06:40:19]OFD Sender: No OFD packet to send [06:40:24]OFD Sender: No OFD packet to send [06:40:29]OFD Sender: No OFD packet to send [06:40:34]OFD Sender: No OFD packet to send [06:40:39]OFD Sender: No OFD packet to send [06:40:44]OFD Sender: No OFD packet to send [06:40:49]OFD Sender: No OFD packet to send [06:40:54]OFD Sender: No OFD packet to send [06:40:59]OFD Sender: No OFD packet to send [06:41:04]OFD Sender: No OFD packet to send [06:41:09]OFD Sender: No OFD packet to send [06:41:14]OFD Sender: No OFD packet to send [06:41:19]OFD Sender: No OFD packet to send [06:41:24]OFD Sender: No OFD packet to send [06:41:30]OFD Sender: No OFD packet to send [06:41:35]OFD Sender: No OFD packet to send [06:41:40]OFD Sender: No OFD packet to send [06:41:45]OFD Sender: No OFD packet to send [06:41:50]OFD Sender: No OFD packet to send [06:41:55]OFD Sender: No OFD packet to send [06:42:00]OFD Sender: No OFD packet to send [06:42:02]accept exits with 9 [06:42:02]New connection [06:42:02]New thread 3067571556 created [06:42:02]Thread 3067428196 joined [06:42:02]Waiting for new connection... [06:42:02] Sock 9.Parse request [06:42:02]Sock 9.Check first char [06:42:02]Sock 9.First char is OK [06:42:02]request: POST /json_proto HTTP/1.0 [06:42:02]Method: POST [06:42:02]URL: /json_proto [06:42:02]Method is POST - this is cgi request [06:42:02]url: /json_proto [06:42:02]query_string will be loaded in cgi processing [06:42:02]execute_cgi json_proto POST (null) [06:42:02]execute_cgi path=json_proto method=POST [06:42:02]POST find Content-Length [06:42:02]Host: 172.17.56.4:8080 [06:42:02]Content-Length: 679 [06:42:02]Content-Type: application/json [06:42:02] [06:42:02]POST finish read [06:42:02]Found Content-Length = 679 [06:42:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458918", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 22.260, "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" ] } } [06:42:02]execute_script... [06: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)458918", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 22.260, "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" ] } } [06:42:02]POST & json_proto [06:42:02]process_json_proto [06:42:02]json parsed OK: [06:42:02]protocol is kg_v1.0 [06:42:02]action value=close_receipt [06:42:02]process_action close_receipt [06:42:02]cmd_close_receipt [06:42:02]MH_GetDate [06:42:02]Write to MH i2c: F0 00 00 C7 07 BD [06:42:02]Write i2c OK [06:42:02]MH_I2C_Read... [06:42:02]Read from MH i2c: F0 [06:42:02]MH_I2C_Read... [06:42:02]Read from MH i2c: F0 09 00 [06:42:02]MH_I2C_Read... [06:42:02]Read from MH i2c: F0 09 00 C7 07 00 3C 73 93 66 C9 DC B2 64 29 [06:42:02]GetLastDocTimeStamp 1720938903 [06:42:02]current date 1720939324 [06:42:02]FM_GetShiftState [06:42:02]SAM_PROTO_GetShiftState [06:42:02]wFMCommunicate request_size=4 [06:42:02]MH_SAM_APDU [06:42:02]CAPDU: 80 13 01 00 [06:42:02]Write to MH i2c: E2 08 00 C8 07 80 13 01 00 00 00 00 00 4C [06:42:02]Write i2c OK [06:42:02]MH_I2C_Read... [06:42:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:42:02]Read from MH i2c: E2 [06:42:02]MH_I2C_Read... [06:42:02]Read from MH i2c: E2 0E 00 [06:42:02]MH_I2C_Read... [06:42:02]Read from MH i2c: E2 0E 00 C8 07 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 CC [06:42:02]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [06:42:02]wFMCommunicate OK [06:42:02]SAM_PROTO_GetShiftState done [06:42:02]FM_GetShiftState done [06:42:02]opened in 1720917342 [06:42:02]opened+sec_in_day 1721003742 [06:42:02]quantity*price = 160049 [06:42:02]sum+1 = 160050 [06:42:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 1600.00 Внесено: 1600.00 СДАЧА: 0.00 НСП 1% : 14.16 НДС 12% : 169.96 Наличными: 1600.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 23 14.07.2024 06:42 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164825 ФПД: 160855880181216 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T064204&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164825&fm=160855880181216&tin=02508201610067®Number=0000000000090829&sum=160000 [06:42:03]StoreToDocumentArchive [06:42:03]shift 447 fd 164825 [06:42:03]save to /storage/0447/doc_00164825 [06:42:03]save last doc name /storage/0447/doc_00164825 to /storage/kkm_last_doc_name [06:42:03]save OK [06:42:03]Clear old archive folders... [06:42:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:42:03]tlvbuf is 016497F0 [06:42:03]SAM_PROTO_ClearQueue [06:42:03]wFMCommunicate request_size=4 [06:42:03]MH_SAM_APDU [06:42:03]CAPDU: 80 09 00 00 [06:42:03]Write to MH i2c: E2 08 00 D5 07 80 09 00 00 00 00 00 00 4E [06:42:03]Write i2c OK [06:42:03]MH_I2C_Read... [06:42:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:42:03]Read from MH i2c: E2 [06:42:03]MH_I2C_Read... [06:42:03]Read from MH i2c: E2 03 00 [06:42:03]MH_I2C_Read... [06:42:03]Read from MH i2c: E2 03 00 D5 07 00 90 00 50 [06:42:03]RAPDU: 90 00 [06:42:03]wFMCommunicate OK [06:42:03]SAM_PROTO_ClearQueue done [06:42:03]KKMCreateOFDPacket [06:42:03]OFDProtocolAddRootSTLVToBuf [06:42:03]FM_MakeSignedData [06:42:03]FM_MakeSignedData [06:42:03]SAM_PROTO_SignData [06:42:03]wFMCommunicate request_size=4 [06:42:03]MH_SAM_APDU [06:42:03]CAPDU: 80 0D 01 02 [06:42:03]Write to MH i2c: E2 08 00 D6 07 80 0D 01 02 00 00 00 00 56 [06:42:03]Write i2c OK [06:42:03]MH_I2C_Read... [06:42:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:42:03]Read from MH i2c: E2 [06:42:03]MH_I2C_Read... [06:42:03]Read from MH i2c: E2 03 00 [06:42:03]MH_I2C_Read... [06:42:03]Read from MH i2c: E2 03 00 D6 07 00 90 00 51 [06:42:03]RAPDU: 90 00 [06:42:03]wFMCommunicate OK [06:42:03]wFMCommunicate request_size=255 [06:42:03]MH_SAM_APDU [06:42: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 F4 56 00 00 00 00 00 37 04 06 00 16 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 17 00 00 00 F4 03 04 00 3C 73 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D9 83 02 00 35 04 06 00 92 4C 2D 99 [06:42:03]Write to MH i2c: E2 02 01 D7 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 F4 56 00 00 00 00 00 37 04 06 00 16 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 17 00 00 00 F4 03 04 00 3C 73 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D9 83 02 00 35 04 06 00 92 4C 2D 99 00 00 73 [06:42:03]Write i2c OK [06:42:03]MH_I2C_Read... [06:42:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:42:04]Read from MH i2c: E2 [06:42:04]MH_I2C_Read... [06:42:04]Read from MH i2c: E2 03 00 [06:42:04]MH_I2C_Read... [06:42:04]Read from MH i2c: E2 03 00 D7 07 00 90 00 52 [06:42:04]RAPDU: 90 00 [06:42:04]wFMCommunicate OK [06:42:04]wFMCommunicate request_size=7 [06:42:04]MH_SAM_APDU [06:42:04]CAPDU: 80 0D 02 02 02 25 E0 [06:42:04]Write to MH i2c: E2 0A 00 D8 07 80 0D 02 02 02 00 25 E0 00 00 62 [06:42:04]Write i2c OK [06:42:04]MH_I2C_Read... [06:42:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:42:04]Read from MH i2c: E2 [06:42:04]MH_I2C_Read... [06:42:04]Read from MH i2c: E2 03 00 [06:42:04]MH_I2C_Read... [06:42:04]Read from MH i2c: E2 03 00 D8 07 00 90 00 53 [06:42:04]RAPDU: 90 00 [06:42:04]wFMCommunicate OK [06:42:04]wFMCommunicate request_size=4 [06:42:04]MH_SAM_APDU [06:42:04]CAPDU: 80 0D 03 02 [06:42:04]Write to MH i2c: E2 08 00 D9 07 80 0D 03 02 00 00 00 00 5B [06:42:04]Write i2c OK [06:42:04]MH_I2C_Read... [06:42:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:42:04]Read from MH i2c: E2 [06:42:04]MH_I2C_Read... [06:42:04]Read from MH i2c: E2 0B 00 [06:42:04]MH_I2C_Read... [06:42:04]Read from MH i2c: E2 0B 00 D9 07 00 28 BA BB 22 AF 08 6E 05 90 00 45 [06:42:04]RAPDU: 28 BA BB 22 AF 08 6E 05 90 00 [06:42:04]wFMCommunicate OK [06:42:04]SAM_PROTO_SignData done [06:42:04]FM_MakeSignedData done [06:42:04]CreateOFDProtocolMessage [06:42:04]wFMCommunicate request_size=4 [06:42:04]MH_SAM_APDU [06:42:04]CAPDU: 80 11 00 00 [06:42:04]Write to MH i2c: E2 08 00 DA 07 80 11 00 00 00 00 00 00 5B [06:42:04]Write i2c OK [06:42:04]MH_I2C_Read... [06:42:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:42:04]Read from MH i2c: E2 [06:42:04]MH_I2C_Read... [06:42:04]Read from MH i2c: E2 17 00 [06:42:04]MH_I2C_Read... [06:42:04]Read from MH i2c: E2 17 00 DA 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B1 [06:42:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [06:42:04]wFMCommunicate OK [06:42:04]CreateOFDProtocolMessage done [06:42:04]OFDSenderStorePacket 164825 [06:42:04]StoreOFDPacket docnum=164825 [06:42:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 DC D9 04 01 EB 9D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F4 56 00 00 00 00 00 37 04 06 00 16 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 17 00 00 00 F4 03 04 00 3C 73 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D9 83 02 00 35 04 06 00 92 4C 2D 99 25 E0 28 BA BB 22 AF 08 6E 05 [06:42:04]CheckFolder [06:42:04]dirname=/storage/ofd_packets [06:42:04]CheckFolder done [06:42:04]ProducePacketName [06:42:04]name=ofd_packets/00164825 [06:42:04]NVStorageSaveData ofd_packets/00164825 [06:42:04]File name is /storage/ofd_packets/00164825 [06:42:04]Write 298 bytes [06:42:04]NVStorageSaveData done [06:42:04]OFDSenderStorePacket done [06:42:04]KKMCreateOFDPacket done [06:42:04]NVStorageSaveData kkm_last_timestamp [06:42:04]File name is /storage/kkm_last_timestamp [06:42:04]Write 4 bytes [06:42:04]NVStorageSaveData done [06:42:04]ExternCall_PrintAddStr [06:42:04]wPrintStart [06:42:04]Write to MH i2c: 01 00 00 DB 07 E2 [06:42:04]Write i2c OK [06:42:04]MH_I2C_Read... [06:42:04]Read from MH i2c: 01 [06:42:04]MH_I2C_Read... [06:42:04]Read from MH i2c: 01 07 00 [06:42:04]MH_I2C_Read... [06:42:04]Read from MH i2c: 01 07 00 DB 07 00 00 00 00 00 FF 0F F7 [06:42:04]RasterBufferAndPrint [06:42:04]line Счет N : (1)458918 [06:42:04]line ИНН: 02508201610067 [06:42:04]line Контрольно-Кассовый Чек [06:42:04]line ПРОДАЖА [06:42:04]line ТРК (МРК, ГНК) : 11 [06:42:04]line Товар: 2710194210 [06:42:04]line ДТ-К-5 [06:42:04]line 22.260 * 71.90 [06:42:04]line = 1600.49 [06:42:04]line НДС 12% НСП 1% [06:42:04]line > о реализуемом товаре [06:42:04]line ОКРУГЛЕНИЕ: -0.49 [06:42:04]line ИТОГО: 1600.00 [06:42:04]line Внесено: 1600.00 [06:42:04]line СДАЧА: 0.00 [06:42:04]line НСП 1% : 14.16 [06:42:04]line НДС 12% : 169.96 [06:42:04]line Наличными: 1600.00 [06:42:04]line Безнал.: 0.00 [06:42:04]line Место: АЗС № 72 "Партнер Нефть" [06:42:04]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [06:42:04]line СНО: Общий режим [06:42:04]line Чек 23 14.07.2024 06:42 [06:42:04]line Смена: 447 ФФД: 1.0 [06:42:04]line ЗНМ: 0300000160 [06:42:04]line РНМ: 0000000000090829 [06:42:04]line Версия ККМ: 001 [06:42:04]line ФМ: 0000000000874718 [06:42:04]line ФД: 164825 [06:42:04]line ФПД: 160855880181216 [06:42:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T064204&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164825&fm=160855880181216&tin=02508201610067®Number=0000000000090829&sum=160000 [06:42:04]OFD Sender: Processing packet 164825 [packets to send 104, broken 103] [06:42:04]ProducePacketName [06:42:04]name=ofd_packets/00164825 [06:42:04]OFD Sender: To server: pG, [06:42:04]CommunicateWithHost lk.salyk.kg:30040 [06:42:04]ConnectInit lk.salyk.kg [06:42:04]written 0, free lines is 4095 [06:42:04]Connected sock=10 [06:42:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 DC D9 04 01 EB 9D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F4 56 00 00 00 00 00 37 04 06 00 16 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 17 00 00 00 F4 03 04 00 3C 73 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D9 83 02 00 35 04 06 00 92 4C 2D 99 25 E0 28 BA BB 22 AF 08 6E 05 [06:42:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 E6 61 47 00 51 FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D9 83 02 00 F4 03 04 00 CA 19 93 66 B6 04 01 00 00 3D 24 DF 59 33 79 A8 B3 [06:42:04]CommunicateWithHost err = 0 [06:42:04]CheckOFDResponse [06:42:04]1017 (14) - 77093643461234 [06:42:04]1041 (16) - 0000000000874718 [06:42:04]1040 (4) - 164825 [06:42:04]1012 (4) - 14.07.2024 00:20 [06:42:04]1206 (1) - 0 [06:42:04]OFD Sender: Remove packet 164825 [06:42:04]ProducePacketName [06:42:04]name=ofd_packets/00164825 [06:42:04]NVStorageDeleteData [06:42:04]Write to MH i2c: 01 00 00 05 08 0D [06:42:04]Write i2c OK [06:42:04]MH_I2C_Read... [06:42:04]Read from MH i2c: 01 [06:42:04]MH_I2C_Read... [06:42:04]Read from MH i2c: 01 07 00 [06:42:04]MH_I2C_Read... [06:42:04]Read from MH i2c: 01 07 00 05 08 00 00 00 00 00 F0 0C 10 [06:42:04]RasterBufferAndPrint [06:42:04]line [06:42:04]line [06:42:04]line [06:42:04]line [06:42:04]line [06:42:04]written 0, free lines is 3320 [06:42:04]MH_Cut [06:42:04]Write to MH i2c: D1 01 00 0C 08 01 E6 [06:42:04]Write i2c OK [06:42:04]MH_I2C_Read... [06:42:04]Read from MH i2c: D1 [06:42:04]MH_I2C_Read... [06:42:04]Read from MH i2c: D1 01 00 [06:42:04]MH_I2C_Read... [06:42:04]Read from MH i2c: D1 01 00 0C 08 00 E5 [06:42:04]Write to MH i2c: 01 00 00 0D 08 15 [06:42:04]Write i2c OK [06:42:04]MH_I2C_Read... [06:42:05]OFD Sender: No OFD packet to send [06:42:05]*** Cut start [06:42:05]*** Partial cut [06:42:05]*** CUTSNS_PIN = 1 [06:42:05]*** CUTSNS_PIN = 0 [06:42:05]*** Brake cut motor [06:42:06]Read from MH i2c: 01 [06:42:06]MH_I2C_Read... [06:42:06]*** Stop cut motor [06:42:06]*** Cut end [06:42:06]Read from MH i2c: 01 07 00 [06:42:06]MH_I2C_Read... [06:42:06]Read from MH i2c: 01 07 00 0D 08 00 00 00 00 00 FF 0F 2A [06:42:06]process_action close_receipt done [06:42:06]requested_data is exist [06:42:06]produce_requested_data [06:42:06]requested_item fm.sn is exist - process it [06:42:06]wFMCommunicate request_size=4 [06:42:06]MH_SAM_APDU [06:42:06]CAPDU: 80 11 00 00 [06:42:06]Write to MH i2c: E2 08 00 0E 08 80 11 00 00 00 00 00 00 90 [06:42:06]Write i2c OK [06:42:06]MH_I2C_Read... [06:42:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:42:06]Read from MH i2c: E2 [06:42:06]MH_I2C_Read... [06:42:06]Read from MH i2c: E2 17 00 [06:42:06]MH_I2C_Read... [06:42:06]Read from MH i2c: E2 17 00 0E 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E6 [06:42:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [06:42:06]wFMCommunicate OK [06:42:06]requested_item fd.num is exist - process it [06:42:06]SAM_PROTO_GetFieldsCounters [06:42:06]wFMCommunicate request_size=4 [06:42:06]MH_SAM_APDU [06:42:06]CAPDU: 80 13 00 00 [06:42:06]Write to MH i2c: E2 08 00 0F 08 80 13 00 00 00 00 00 00 93 [06:42:06]Write i2c OK [06:42:06]MH_I2C_Read... [06:42:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:42:06]Read from MH i2c: E2 [06:42:06]MH_I2C_Read... [06:42:06]Read from MH i2c: E2 62 00 [06:42:06]MH_I2C_Read... [06:42:06]Read from MH i2c: E2 62 00 0F 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D9 83 02 00 0E 04 04 00 BF 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 1D [06:42:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D9 83 02 00 0E 04 04 00 BF 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 [06:42:06]wFMCommunicate OK [06:42:06]SAM_PROTO_GetFieldsCounters done [06:42:06]requested_item shift.num is exist - process it [06:42:06]requested_item shift.opened is exist - process it [06:42:06]req_shift_opened [06:42:06]FM_GetShiftState [06:42:06]SAM_PROTO_GetShiftState [06:42:06]wFMCommunicate request_size=4 [06:42:06]MH_SAM_APDU [06:42:06]CAPDU: 80 13 01 00 [06:42:06]Write to MH i2c: E2 08 00 10 08 80 13 01 00 00 00 00 00 95 [06:42:06]Write i2c OK [06:42:06]MH_I2C_Read... [06:42:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:42:06]Read from MH i2c: E2 [06:42:06]MH_I2C_Read... [06:42:06]Read from MH i2c: E2 0E 00 [06:42:06]MH_I2C_Read... [06:42:06]Read from MH i2c: E2 0E 00 10 08 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 15 [06:42:06]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [06:42:06]wFMCommunicate OK [06:42:06]SAM_PROTO_GetShiftState done [06:42:06]FM_GetShiftState done [06:42:06]req_shift_opened done [06:42:06]requested_item shift.open_date is exist - process it [06:42:06]req_shift_open_date [06:42:06]req_shift_open_date done [06:42:06]produce_requested_data done [06:42:06]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164825,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [06:42:06]process_action_free close_receipt [06:42:06]json_value_free [06:42:06]json_value_free done [06:42:06]process_json_proto returns [06:42:06]Send response to host [06:42:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164825,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [06:42:06]free response buf [06:42:06]execute_script done [06:42:06]execute_script returns [06:42:06]free content buf [06:42:06]Sock 9.Close socket [06:42:06]Sock 9.Thread stoped [06:42:10]OFD Sender: No OFD packet to send [06:42:15]OFD Sender: No OFD packet to send [06:42:20]OFD Sender: No OFD packet to send [06:42:25]OFD Sender: No OFD packet to send [06:42:30]OFD Sender: No OFD packet to send [06:42:35]OFD Sender: No OFD packet to send [06:42:40]OFD Sender: No OFD packet to send [06:42:45]OFD Sender: No OFD packet to send [06:42:50]OFD Sender: No OFD packet to send [06:42:55]OFD Sender: No OFD packet to send [06:43:00]OFD Sender: No OFD packet to send [06:43:05]OFD Sender: No OFD packet to send [06:43:10]OFD Sender: No OFD packet to send [06:43:15]OFD Sender: No OFD packet to send [06:43:20]OFD Sender: No OFD packet to send [06:43:25]OFD Sender: No OFD packet to send [06:43:30]OFD Sender: No OFD packet to send [06:43:35]OFD Sender: No OFD packet to send [06:43:40]OFD Sender: No OFD packet to send [06:43:45]OFD Sender: No OFD packet to send [06:43:50]OFD Sender: No OFD packet to send [06:43:55]OFD Sender: No OFD packet to send [06:44:00]OFD Sender: No OFD packet to send [06:44:05]OFD Sender: No OFD packet to send [06:44:10]OFD Sender: No OFD packet to send [06:44:15]OFD Sender: No OFD packet to send [06:44:20]OFD Sender: No OFD packet to send [06:44:25]OFD Sender: No OFD packet to send [06:44:30]OFD Sender: No OFD packet to send [06:44:35]OFD Sender: No OFD packet to send [06:44:40]OFD Sender: No OFD packet to send [06:44:45]OFD Sender: No OFD packet to send [06:44:50]OFD Sender: No OFD packet to send [06:44:55]OFD Sender: No OFD packet to send [06:45:00]OFD Sender: No OFD packet to send [06:45:05]OFD Sender: No OFD packet to send [06:45:10]OFD Sender: No OFD packet to send [06:45:15]OFD Sender: No OFD packet to send [06:45:20]OFD Sender: No OFD packet to send [06:45:25]OFD Sender: No OFD packet to send [06:45:30]OFD Sender: No OFD packet to send [06:45:35]OFD Sender: No OFD packet to send [06:45:40]OFD Sender: No OFD packet to send [06:45:45]OFD Sender: No OFD packet to send [06:45:50]OFD Sender: No OFD packet to send [06:45:55]OFD Sender: No OFD packet to send [06:46:00]OFD Sender: No OFD packet to send [06:46:05]OFD Sender: No OFD packet to send [06:46:10]OFD Sender: No OFD packet to send [06:46:15]OFD Sender: No OFD packet to send [06:46:20]OFD Sender: No OFD packet to send [06:46:25]OFD Sender: No OFD packet to send [06:46:30]OFD Sender: No OFD packet to send [06:46:35]OFD Sender: No OFD packet to send [06:46:40]OFD Sender: No OFD packet to send [06:46:45]OFD Sender: No OFD packet to send [06:46:50]OFD Sender: No OFD packet to send [06:46:55]OFD Sender: No OFD packet to send [06:47:00]OFD Sender: No OFD packet to send [06:47:05]OFD Sender: No OFD packet to send [06:47:10]OFD Sender: No OFD packet to send [06:47:15]OFD Sender: No OFD packet to send [06:47:20]OFD Sender: No OFD packet to send [06:47:25]OFD Sender: No OFD packet to send [06:47:30]OFD Sender: No OFD packet to send [06:47:35]OFD Sender: No OFD packet to send [06:47:40]OFD Sender: No OFD packet to send [06:47:45]OFD Sender: No OFD packet to send [06:47:50]OFD Sender: No OFD packet to send [06:47:55]OFD Sender: No OFD packet to send [06:48:00]OFD Sender: No OFD packet to send [06:48:05]OFD Sender: No OFD packet to send [06:48:10]OFD Sender: No OFD packet to send [06:48:15]OFD Sender: No OFD packet to send [06:48: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:15]OFD Sender: No OFD packet to send [06:49:20]OFD Sender: No OFD packet to send [06:49:25]OFD Sender: No OFD packet to send [06:49:30]OFD Sender: No OFD packet to send [06:49:35]OFD Sender: No OFD packet to send [06:49:40]OFD Sender: No OFD packet to send [06:49:45]OFD Sender: No OFD packet to send [06:49:50]OFD Sender: No OFD packet to send [06:49:55]OFD Sender: No OFD packet to send [06:50:00]OFD Sender: No OFD packet to send [06:50:05]OFD Sender: No OFD packet to send [06:50:10]OFD Sender: No OFD packet to send [06:50:15]OFD Sender: No OFD packet to send [06:50:20]OFD Sender: No OFD packet to send [06:50:25]OFD Sender: No OFD packet to send [06:50:30]OFD Sender: No OFD packet to send [06:50:35]OFD Sender: No OFD packet to send [06:50:40]OFD Sender: No OFD packet to send [06:50:45]OFD Sender: No OFD packet to send [06:50:50]OFD Sender: No OFD packet to send [06:50:55]OFD Sender: No OFD packet to send [06:51:00]OFD Sender: No OFD packet to send [06:51:05]OFD Sender: No OFD packet to send [06:51:10]OFD Sender: No OFD packet to send [06:51:15]OFD Sender: No OFD packet to send [06:51:20]OFD Sender: No OFD packet to send [06:51:25]OFD Sender: No OFD packet to send [06:51:30]OFD Sender: No OFD packet to send [06:51:35]OFD Sender: No OFD packet to send [06:51:40]OFD Sender: No OFD packet to send [06:51:45]OFD Sender: No OFD packet to send [06:51:50]OFD Sender: No OFD packet to send [06:51:55]OFD Sender: No OFD packet to send [06:52:00]OFD Sender: No OFD packet to send [06:52:05]OFD Sender: No OFD packet to send [06:52:10]OFD Sender: No OFD packet to send [06:52:15]OFD Sender: No OFD packet to send [06:52:20]OFD Sender: No OFD packet to send [06:52:25]OFD Sender: No OFD packet to send [06:52:30]OFD Sender: No OFD packet to send [06:52:35]OFD Sender: No OFD packet to send [06:52:40]OFD Sender: No OFD packet to send [06:52:45]OFD Sender: No OFD packet to send [06:52:51]OFD Sender: No OFD packet to send [06:52:56]OFD Sender: No OFD packet to send [06:53:01]OFD Sender: No OFD packet to send [06:53:06]OFD Sender: No OFD packet to send [06:53:11]OFD Sender: No OFD packet to send [06:53:16]OFD Sender: No OFD packet to send [06:53:21]OFD Sender: No OFD packet to send [06:53:26]OFD Sender: No OFD packet to send [06:53:31]OFD Sender: No OFD packet to send [06:53:36]OFD Sender: No OFD packet to send [06:53:41]OFD Sender: No OFD packet to send [06:53:46]OFD Sender: No OFD packet to send [06:53:51]OFD Sender: No OFD packet to send [06:53:56]OFD Sender: No OFD packet to send [06:54:01]OFD Sender: No OFD packet to send [06:54:06]OFD Sender: No OFD packet to send [06:54:11]OFD Sender: No OFD packet to send [06:54:16]OFD Sender: No OFD packet to send [06:54:21]OFD Sender: No OFD packet to send [06:54:26]OFD Sender: No OFD packet to send [06:54:31]OFD Sender: No OFD packet to send [06:54:36]OFD Sender: No OFD packet to send [06:54:41]OFD Sender: No OFD packet to send [06:54:46]OFD Sender: No OFD packet to send [06:54:51]OFD Sender: No OFD packet to send [06:54:56]OFD Sender: No OFD packet to send [06:55:01]OFD Sender: No OFD packet to send [06:55:06]OFD Sender: No OFD packet to send [06:55:11]OFD Sender: No OFD packet to send [06:55:16]OFD Sender: No OFD packet to send [06:55:21]OFD Sender: No OFD packet to send [06:55:26]OFD Sender: No OFD packet to send [06:55:31]OFD Sender: No OFD packet to send [06:55:36]OFD Sender: No OFD packet to send [06:55:41]OFD Sender: No OFD packet to send [06:55:46]OFD Sender: No OFD packet to send [06:55:51]OFD Sender: No OFD packet to send [06:55:56]OFD Sender: No OFD packet to send [06:56:01]OFD Sender: No OFD packet to send [06:56:06]OFD Sender: No OFD packet to send [06:56:11]OFD Sender: No OFD packet to send [06:56:16]OFD Sender: No OFD packet to send [06:56:21]OFD Sender: No OFD packet to send [06:56:26]OFD Sender: No OFD packet to send [06:56:31]OFD Sender: No OFD packet to send [06:56:36]OFD Sender: No OFD packet to send [06:56:41]OFD Sender: No OFD packet to send [06:56:46]OFD Sender: No OFD packet to send [06:56:51]OFD Sender: No OFD packet to send [06:56:56]OFD Sender: No OFD packet to send [06:57:01]OFD Sender: No OFD packet to send [06:57:06]OFD Sender: No OFD packet to send [06:57:11]OFD Sender: No OFD packet to send [06:57:16]OFD Sender: No OFD packet to send [06:57:21]OFD Sender: No OFD packet to send [06:57:26]OFD Sender: No OFD packet to send [06:57:31]OFD Sender: No OFD packet to send [06:57:36]OFD Sender: No OFD packet to send [06:57:41]OFD Sender: No OFD packet to send [06:57:46]OFD Sender: No OFD packet to send [06:57:51]OFD Sender: No OFD packet to send [06:57:56]OFD Sender: No OFD packet to send [06:58:01]OFD Sender: No OFD packet to send [06:58:06]OFD Sender: No OFD packet to send [06:58:11]OFD Sender: No OFD packet to send [06:58:16]OFD Sender: No OFD packet to send [06:58:21]OFD Sender: No OFD packet to send [06:58:26]OFD Sender: No OFD packet to send [06:58:31]OFD Sender: No OFD packet to send [06:58:36]OFD Sender: No OFD packet to send [06:58:41]OFD Sender: No OFD packet to send [06:58:46]OFD Sender: No OFD packet to send [06:58:51]OFD Sender: No OFD packet to send [06:58:56]OFD Sender: No OFD packet to send [06:59:01]OFD Sender: No OFD packet to send [06:59:06]OFD Sender: No OFD packet to send [06:59:11]OFD Sender: No OFD packet to send [06:59:16]OFD Sender: No OFD packet to send [06:59:21]OFD Sender: No OFD packet to send [06:59:26]OFD Sender: No OFD packet to send [06:59:31]OFD Sender: No OFD packet to send [06:59:36]OFD Sender: No OFD packet to send [06:59:41]OFD Sender: No OFD packet to send [06:59:46]OFD Sender: No OFD packet to send [06:59:51]OFD Sender: No OFD packet to send [06:59:56]OFD Sender: No OFD packet to send [07:00:01]OFD Sender: No OFD packet to send [07:00:06]OFD Sender: No OFD packet to send [07:00:11]OFD Sender: No OFD packet to send [07:00:16]OFD Sender: No OFD packet to send [07:00:21]OFD Sender: No OFD packet to send [07:00:26]OFD Sender: No OFD packet to send [07:00:31]OFD Sender: No OFD packet to send [07:00:36]OFD Sender: No OFD packet to send [07:00:41]OFD Sender: No OFD packet to send [07:00:46]OFD Sender: No OFD packet to send [07:00:51]OFD Sender: No OFD packet to send [07:00:56]OFD Sender: No OFD packet to send [07:01:01]OFD Sender: No OFD packet to send [07:01:06]OFD Sender: No OFD packet to send [07:01:11]OFD Sender: No OFD packet to send [07:01:16]OFD Sender: No OFD packet to send [07:01:21]OFD Sender: No OFD packet to send [07:01:26]OFD Sender: No OFD packet to send [07:01:31]OFD Sender: No OFD packet to send [07:01:36]OFD Sender: No OFD packet to send [07:01:41]OFD Sender: No OFD packet to send [07:01:46]OFD Sender: No OFD packet to send [07:01:51]OFD Sender: No OFD packet to send [07:01:56]OFD Sender: No OFD packet to send [07:02:01]OFD Sender: No OFD packet to send [07:02:06]OFD Sender: No OFD packet to send [07:02:11]OFD Sender: No OFD packet to send [07:02:16]OFD Sender: No OFD packet to send [07:02:21]OFD Sender: No OFD packet to send [07:02:26]OFD Sender: No OFD packet to send [07:02:31]OFD Sender: No OFD packet to send [07:02:36]OFD Sender: No OFD packet to send [07:02:41]OFD Sender: No OFD packet to send [07:02:46]OFD Sender: No OFD packet to send [07:02:51]OFD Sender: No OFD packet to send [07:02:56]OFD Sender: No OFD packet to send [07:03:01]OFD Sender: No OFD packet to send [07:03:06]OFD Sender: No OFD packet to send [07:03:11]OFD Sender: No OFD packet to send [07:03:16]OFD Sender: No OFD packet to send [07:03:21]OFD Sender: No OFD packet to send [07:03:26]OFD Sender: No OFD packet to send [07:03:31]OFD Sender: No OFD packet to send [07:03:36]OFD Sender: No OFD packet to send [07:03:41]OFD Sender: No OFD packet to send [07:03:46]OFD Sender: No OFD packet to send [07:03:51]OFD Sender: No OFD packet to send [07:03:56]OFD Sender: No OFD packet to send [07:04:01]OFD Sender: No OFD packet to send [07:04:06]OFD Sender: No OFD packet to send [07:04:11]OFD Sender: No OFD packet to send [07:04:16]OFD Sender: No OFD packet to send [07:04:21]OFD Sender: No OFD packet to send [07:04:26]OFD Sender: No OFD packet to send [07:04:31]OFD Sender: No OFD packet to send [07:04:36]OFD Sender: No OFD packet to send [07:04:41]OFD Sender: No OFD packet to send [07:04:46]OFD Sender: No OFD packet to send [07:04:51]OFD Sender: No OFD packet to send [07:04:56]OFD Sender: No OFD packet to send [07:05:01]OFD Sender: No OFD packet to send [07:05:06]OFD Sender: No OFD packet to send [07:05:11]OFD Sender: No OFD packet to send [07:05:16]OFD Sender: No OFD packet to send [07:05:21]OFD Sender: No OFD packet to send [07:05:26]OFD Sender: No OFD packet to send [07:05:31]OFD Sender: No OFD packet to send [07:05:36]OFD Sender: No OFD packet to send [07:05:41]OFD Sender: No OFD packet to send [07:05:46]OFD Sender: No OFD packet to send [07:05:51]OFD Sender: No OFD packet to send [07:05:56]OFD Sender: No OFD packet to send [07:06:01]OFD Sender: No OFD packet to send [07:06:06]OFD Sender: No OFD packet to send [07:06:11]OFD Sender: No OFD packet to send [07:06:16]OFD Sender: No OFD packet to send [07:06:21]OFD Sender: No OFD packet to send [07:06:26]OFD Sender: No OFD packet to send [07:06:31]OFD Sender: No OFD packet to send [07:06:36]OFD Sender: No OFD packet to send [07:06:41]OFD Sender: No OFD packet to send [07:06:46]OFD Sender: No OFD packet to send [07:06:51]OFD Sender: No OFD packet to send [07:06:56]OFD Sender: No OFD packet to send [07:07:01]OFD Sender: No OFD packet to send [07:07:06]OFD Sender: No OFD packet to send [07:07:11]OFD Sender: No OFD packet to send [07:07:16]OFD Sender: No OFD packet to send [07:07:21]OFD Sender: No OFD packet to send [07:07:26]OFD Sender: No OFD packet to send [07:07:31]OFD Sender: No OFD packet to send [07:07:36]OFD Sender: No OFD packet to send [07:07:41]OFD Sender: No OFD packet to send [07:07:46]OFD Sender: No OFD packet to send [07:07:51]OFD Sender: No OFD packet to send [07:07:56]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:37]OFD Sender: No OFD packet to send [07:09:42]OFD Sender: No OFD packet to send [07:09:47]OFD Sender: No OFD packet to send [07:09:52]OFD Sender: No OFD packet to send [07:09:57]OFD Sender: No OFD packet to send [07:10:02]OFD Sender: No OFD packet to send [07:10:07]OFD Sender: No OFD packet to send [07:10:12]OFD Sender: No OFD packet to send [07:10:17]OFD Sender: No OFD packet to send [07:10:22]OFD Sender: No OFD packet to send [07:10:27]OFD Sender: No OFD packet to send [07:10:32]OFD Sender: No OFD packet to send [07:10:37]OFD Sender: No OFD packet to send [07:10:42]OFD Sender: No OFD packet to send [07:10:47]OFD Sender: No OFD packet to send [07:10:52]OFD Sender: No OFD packet to send [07:10:57]OFD Sender: No OFD packet to send [07:11:02]OFD Sender: No OFD packet to send [07:11:07]OFD Sender: No OFD packet to send [07:11:12]OFD Sender: No OFD packet to send [07:11:17]OFD Sender: No OFD packet to send [07:11:22]OFD Sender: No OFD packet to send [07:11:27]OFD Sender: No OFD packet to send [07:11:32]OFD Sender: No OFD packet to send [07:11:37]OFD Sender: No OFD packet to send [07:11:42]OFD Sender: No OFD packet to send [07:11:47]OFD Sender: No OFD packet to send [07:11:52]OFD Sender: No OFD packet to send [07:11:57]OFD Sender: No OFD packet to send [07:12:02]OFD Sender: No OFD packet to send [07:12:07]OFD Sender: No OFD packet to send [07:12:12]OFD Sender: No OFD packet to send [07:12:17]OFD Sender: No OFD packet to send [07:12:22]OFD Sender: No OFD packet to send [07:12:27]OFD Sender: No OFD packet to send [07:12:32]OFD Sender: No OFD packet to send [07:12:37]OFD Sender: No OFD packet to send [07:12:42]OFD Sender: No OFD packet to send [07:12:47]OFD Sender: No OFD packet to send [07:12:52]OFD Sender: No OFD packet to send [07:12:57]OFD Sender: No OFD packet to send [07:13:02]OFD Sender: No OFD packet to send [07:13:07]OFD Sender: No OFD packet to send [07:13:12]OFD Sender: No OFD packet to send [07:13:17]OFD Sender: No OFD packet to send [07:13:22]OFD Sender: No OFD packet to send [07:13:27]OFD Sender: No OFD packet to send [07:13:32]OFD Sender: No OFD packet to send [07:13:37]OFD Sender: No OFD packet to send [07:13:42]OFD Sender: No OFD packet to send [07:13:47]OFD Sender: No OFD packet to send [07:13:52]OFD Sender: No OFD packet to send [07:13:57]OFD Sender: No OFD packet to send [07:14:02]OFD Sender: No OFD packet to send [07:14:07]OFD Sender: No OFD packet to send [07:14:12]OFD Sender: No OFD packet to send [07:14:17]OFD Sender: No OFD packet to send [07:14:22]OFD Sender: No OFD packet to send [07:14:27]OFD Sender: No OFD packet to send [07:14:32]OFD Sender: No OFD packet to send [07:14:37]OFD Sender: No OFD packet to send [07:14:42]OFD Sender: No OFD packet to send [07:14:47]OFD Sender: No OFD packet to send [07:14:52]OFD Sender: No OFD packet to send [07:14:57]OFD Sender: No OFD packet to send [07:15:02]OFD Sender: No OFD packet to send [07:15:07]OFD Sender: No OFD packet to send [07:15:12]OFD Sender: No OFD packet to send [07:15:17]OFD Sender: No OFD packet to send [07:15:22]OFD Sender: No OFD packet to send [07:15:27]OFD Sender: No OFD packet to send [07:15:32]OFD Sender: No OFD packet to send [07:15:37]OFD Sender: No OFD packet to send [07:15:42]OFD Sender: No OFD packet to send [07:15:47]OFD Sender: No OFD packet to send [07:15:52]OFD Sender: No OFD packet to send [07:15:57]OFD Sender: No OFD packet to send [07:16:02]OFD Sender: No OFD packet to send [07:16:07]OFD Sender: No OFD packet to send [07:16:12]OFD Sender: No OFD packet to send [07:16:17]OFD Sender: No OFD packet to send [07:16:22]OFD Sender: No OFD packet to send [07:16:27]OFD Sender: No OFD packet to send [07:16:32]OFD Sender: No OFD packet to send [07:16:37]OFD Sender: No OFD packet to send [07:16:42]OFD Sender: No OFD packet to send [07:16:47]OFD Sender: No OFD packet to send [07:16:52]OFD Sender: No OFD packet to send [07:16:57]OFD Sender: No OFD packet to send [07:17:02]OFD Sender: No OFD packet to send [07:17:07]OFD Sender: No OFD packet to send [07:17:12]OFD Sender: No OFD packet to send [07:17:17]OFD Sender: No OFD packet to send [07:17:22]OFD Sender: No OFD packet to send [07:17:27]OFD Sender: No OFD packet to send [07:17:32]OFD Sender: No OFD packet to send [07:17:37]OFD Sender: No OFD packet to send [07:17:42]OFD Sender: No OFD packet to send [07:17:47]OFD Sender: No OFD packet to send [07:17:52]OFD Sender: No OFD packet to send [07:17:57]OFD Sender: No OFD packet to send [07:18:02]OFD Sender: No OFD packet to send [07:18:07]OFD Sender: No OFD packet to send [07:18:12]OFD Sender: No OFD packet to send [07:18:17]OFD Sender: No OFD packet to send [07:18:22]OFD Sender: No OFD packet to send [07:18:27]OFD Sender: No OFD packet to send [07:18:32]OFD Sender: No OFD packet to send [07:18:37]OFD Sender: No OFD packet to send [07:18:42]OFD Sender: No OFD packet to send [07:18:47]OFD Sender: No OFD packet to send [07:18:52]OFD Sender: No OFD packet to send [07:18:57]OFD Sender: No OFD packet to send [07:19:02]OFD Sender: No OFD packet to send [07:19:07]OFD Sender: No OFD packet to send [07:19:12]OFD Sender: No OFD packet to send [07:19:17]OFD Sender: No OFD packet to send [07:19:22]OFD Sender: No OFD packet to send [07:19:27]OFD Sender: No OFD packet to send [07:19:32]OFD Sender: No OFD packet to send [07:19:37]OFD Sender: No OFD packet to send [07:19:42]OFD Sender: No OFD packet to send [07:19:47]OFD Sender: No OFD packet to send [07:19:52]OFD Sender: No OFD packet to send [07:19:54]accept exits with 8 [07:19:54]New connection [07:19:54]New thread 3067428196 created [07:19:54]Thread 3067571556 joined [07:19:54]Waiting for new connection... [07:19:54] Sock 8.Parse request [07:19:54]Sock 8.Check first char [07:19:54]Sock 8.First char is OK [07:19:54]request: POST /json_proto HTTP/1.0 [07:19:54]Method: POST [07:19:54]URL: /json_proto [07:19:54]Method is POST - this is cgi request [07:19:54]url: /json_proto [07:19:54]query_string will be loaded in cgi processing [07:19:54]execute_cgi json_proto POST (null) [07:19:54]execute_cgi path=json_proto method=POST [07:19:54]POST find Content-Length [07:19:54]Host: 172.17.56.4:8080 [07:19:54]Content-Length: 787 [07:19:54]Content-Type: application/json [07:19:54] [07:19:54]POST finish read [07:19:54]Found Content-Length = 787 [07:19:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458920", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.26, "quantity" : 4.210, "sum" : 300.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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:19:54]execute_script... [07:19: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)458920", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.26, "quantity" : 4.210, "sum" : 300.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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:19:54]POST & json_proto [07:19:54]process_json_proto [07:19:54]json parsed OK: [07:19:54]protocol is kg_v1.0 [07:19:54]action value=close_receipt [07:19:54]process_action close_receipt [07:19:54]cmd_close_receipt [07:19:54]MH_GetDate [07:19:54]Write to MH i2c: F0 00 00 11 08 08 [07:19:54]Write i2c OK [07:19:54]MH_I2C_Read... [07:19:54]Read from MH i2c: F0 [07:19:54]MH_I2C_Read... [07:19:54]Read from MH i2c: F0 09 00 [07:19:54]MH_I2C_Read... [07:19:54]Read from MH i2c: F0 09 00 11 08 00 1C 7C 93 66 C9 DC B2 64 5D [07:19:54]GetLastDocTimeStamp 1720939324 [07:19:54]current date 1720941596 [07:19:54]FM_GetShiftState [07:19:54]SAM_PROTO_GetShiftState [07:19:54]wFMCommunicate request_size=4 [07:19:54]MH_SAM_APDU [07:19:54]CAPDU: 80 13 01 00 [07:19:54]Write to MH i2c: E2 08 00 12 08 80 13 01 00 00 00 00 00 97 [07:19:54]Write i2c OK [07:19:54]MH_I2C_Read... [07:19:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:19:54]Read from MH i2c: E2 [07:19:54]MH_I2C_Read... [07:19:54]Read from MH i2c: E2 0E 00 [07:19:54]MH_I2C_Read... [07:19:54]Read from MH i2c: E2 0E 00 12 08 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 17 [07:19:54]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [07:19:54]wFMCommunicate OK [07:19:54]SAM_PROTO_GetShiftState done [07:19:54]FM_GetShiftState done [07:19:54]opened in 1720917342 [07:19:54]opened+sec_in_day 1721003742 [07:19:54]quantity*price = 30000 [07:19:54]sum+1 = 30001 [07:19:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 0.00 Безнал.: 300.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 24 14.07.2024 07:19 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164826 ФПД: 100341149177583 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T071956&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164826&fm=100341149177583&tin=02508201610067®Number=0000000000090829&sum=30000 [07:19:55]StoreToDocumentArchive [07:19:55]shift 447 fd 164826 [07:19:55]save to /storage/0447/doc_00164826 [07:19:55]save last doc name /storage/0447/doc_00164826 to /storage/kkm_last_doc_name [07:19:55]save OK [07:19:55]Clear old archive folders... [07:19:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:19:55]tlvbuf is 0165E000 [07:19:55]SAM_PROTO_ClearQueue [07:19:55]wFMCommunicate request_size=4 [07:19:55]MH_SAM_APDU [07:19:55]CAPDU: 80 09 00 00 [07:19:55]Write to MH i2c: E2 08 00 1F 08 80 09 00 00 00 00 00 00 99 [07:19:55]Write i2c OK [07:19:55]MH_I2C_Read... [07:19:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:19:55]Read from MH i2c: E2 [07:19:55]MH_I2C_Read... [07:19:55]Read from MH i2c: E2 03 00 [07:19:55]MH_I2C_Read... [07:19:55]Read from MH i2c: E2 03 00 1F 08 00 90 00 9B [07:19:55]RAPDU: 90 00 [07:19:55]wFMCommunicate OK [07:19:55]SAM_PROTO_ClearQueue done [07:19:55]KKMCreateOFDPacket [07:19:55]OFDProtocolAddRootSTLVToBuf [07:19:55]FM_MakeSignedData [07:19:55]FM_MakeSignedData [07:19:55]SAM_PROTO_SignData [07:19:55]wFMCommunicate request_size=4 [07:19:55]MH_SAM_APDU [07:19:55]CAPDU: 80 0D 01 02 [07:19:55]Write to MH i2c: E2 08 00 20 08 80 0D 01 02 00 00 00 00 A1 [07:19:55]Write i2c OK [07:19:55]MH_I2C_Read... [07:19:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:19:55]Read from MH i2c: E2 [07:19:55]MH_I2C_Read... [07:19:55]Read from MH i2c: E2 03 00 [07:19:55]MH_I2C_Read... [07:19:55]Read from MH i2c: E2 03 00 20 08 00 90 00 9C [07:19:55]RAPDU: 90 00 [07:19:55]wFMCommunicate OK [07:19:55]wFMCommunicate request_size=255 [07:19:55]MH_SAM_APDU [07:19: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 72 10 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 1C 7C 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DA 83 02 00 35 04 06 00 5B 42 7E 8D [07:19:55]Write to MH i2c: E2 02 01 21 08 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 72 10 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 1C 7C 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DA 83 02 00 35 04 06 00 5B 42 7E 8D 00 00 5E [07:19:55]Write i2c OK [07:19:55]MH_I2C_Read... [07:19:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:19:55]Read from MH i2c: E2 [07:19:55]MH_I2C_Read... [07:19:55]Read from MH i2c: E2 03 00 [07:19:55]MH_I2C_Read... [07:19:55]Read from MH i2c: E2 03 00 21 08 00 90 00 9D [07:19:55]RAPDU: 90 00 [07:19:55]wFMCommunicate OK [07:19:55]wFMCommunicate request_size=7 [07:19:55]MH_SAM_APDU [07:19:55]CAPDU: 80 0D 02 02 02 96 EF [07:19:55]Write to MH i2c: E2 0A 00 22 08 80 0D 02 02 02 00 96 EF 00 00 2D [07:19:55]Write i2c OK [07:19:55]MH_I2C_Read... [07:19:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:19:56]Read from MH i2c: E2 [07:19:56]MH_I2C_Read... [07:19:56]Read from MH i2c: E2 03 00 [07:19:56]MH_I2C_Read... [07:19:56]Read from MH i2c: E2 03 00 22 08 00 90 00 9E [07:19:56]RAPDU: 90 00 [07:19:56]wFMCommunicate OK [07:19:56]wFMCommunicate request_size=4 [07:19:56]MH_SAM_APDU [07:19:56]CAPDU: 80 0D 03 02 [07:19:56]Write to MH i2c: E2 08 00 23 08 80 0D 03 02 00 00 00 00 A6 [07:19:56]Write i2c OK [07:19:56]MH_I2C_Read... [07:19:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:19:56]Read from MH i2c: E2 [07:19:56]MH_I2C_Read... [07:19:56]Read from MH i2c: E2 0B 00 [07:19:56]MH_I2C_Read... [07:19:56]Read from MH i2c: E2 0B 00 23 08 00 7B 75 37 14 A9 1A CC C2 90 00 33 [07:19:56]RAPDU: 7B 75 37 14 A9 1A CC C2 90 00 [07:19:56]wFMCommunicate OK [07:19:56]SAM_PROTO_SignData done [07:19:56]FM_MakeSignedData done [07:19:56]CreateOFDProtocolMessage [07:19:56]wFMCommunicate request_size=4 [07:19:56]MH_SAM_APDU [07:19:56]CAPDU: 80 11 00 00 [07:19:56]Write to MH i2c: E2 08 00 24 08 80 11 00 00 00 00 00 00 A6 [07:19:56]Write i2c OK [07:19:56]MH_I2C_Read... [07:19:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:19:56]Read from MH i2c: E2 [07:19:56]MH_I2C_Read... [07:19:56]Read from MH i2c: E2 17 00 [07:19:56]MH_I2C_Read... [07:19:56]Read from MH i2c: E2 17 00 24 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 FC [07:19:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [07:19:56]wFMCommunicate OK [07:19:56]CreateOFDProtocolMessage done [07:19:56]OFDSenderStorePacket 164826 [07:19:56]StoreOFDPacket docnum=164826 [07:19:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 1B CC 04 01 3A 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 72 10 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 1C 7C 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DA 83 02 00 35 04 06 00 5B 42 7E 8D 96 EF 7B 75 37 14 A9 1A CC C2 [07:19:56]CheckFolder [07:19:56]dirname=/storage/ofd_packets [07:19:56]CheckFolder done [07:19:56]ProducePacketName [07:19:56]name=ofd_packets/00164826 [07:19:56]NVStorageSaveData ofd_packets/00164826 [07:19:56]File name is /storage/ofd_packets/00164826 [07:19:56]Write 298 bytes [07:19:56]NVStorageSaveData done [07:19:56]OFDSenderStorePacket done [07:19:56]KKMCreateOFDPacket done [07:19:56]NVStorageSaveData kkm_last_timestamp [07:19:56]File name is /storage/kkm_last_timestamp [07:19:56]Write 4 bytes [07:19:56]NVStorageSaveData done [07:19:56]ExternCall_PrintAddStr [07:19:56]wPrintStart [07:19:56]Write to MH i2c: 01 00 00 25 08 2D [07:19:56]Write i2c OK [07:19:56]MH_I2C_Read... [07:19:56]Read from MH i2c: 01 [07:19:56]MH_I2C_Read... [07:19:56]Read from MH i2c: 01 07 00 [07:19:56]MH_I2C_Read... [07:19:56]Read from MH i2c: 01 07 00 25 08 00 00 00 00 00 FF 0F 42 [07:19:56]RasterBufferAndPrint [07:19:56]line Счет N : (1)458920 [07:19:56]line ИНН: 02508201610067 [07:19:56]line Контрольно-Кассовый Чек [07:19:56]line ПРОДАЖА [07:19:56]line ТРК (МРК, ГНК) : 21 [07:19:56]line Товар: 2710194210 [07:19:56]line ДТ-К-5 [07:19:56]line 4.210 * 71.26 [07:19:56]line = 300.00 [07:19:56]line НДС 12% НСП 1% [07:19:56]line > о реализуемом товаре [07:19:56]line ИТОГО: 300.00 [07:19:56]line НСП 1% : 2.65 [07:19:56]line НДС 12% : 31.86 [07:19:56]line Наличными: 0.00 [07:19:56]line Безнал.: 300.00 [07:19:56]line Место: АЗС № 72 "Партнер Нефть" [07:19:56]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [07:19:56]line СНО: Общий режим [07:19:56]line Чек 24 14.07.2024 07:19 [07:19:56]line Смена: 447 ФФД: 1.0 [07:19:56]line ЗНМ: 0300000160 [07:19:56]line РНМ: 0000000000090829 [07:19:56]line Версия ККМ: 001 [07:19:56]line Платежная система: KICB Банк [07:19:56]line ФМ: 0000000000874718 [07:19:56]line ФД: 164826 [07:19:56]line ФПД: 100341149177583 [07:19:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T071956&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164826&fm=100341149177583&tin=02508201610067®Number=0000000000090829&sum=30000 [07:19:56]OFD Sender: Processing packet 164826 [packets to send 104, broken 103] [07:19:56]ProducePacketName [07:19:56]name=ofd_packets/00164826 [07:19:56]OFD Sender: To server: pG, [07:19:56]CommunicateWithHost lk.salyk.kg:30040 [07:19:56]ConnectInit lk.salyk.kg [07:19:56]written 0, free lines is 4095 [07:19:56]Connected sock=9 [07:19:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 1B CC 04 01 3A 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 72 10 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 1C 7C 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DA 83 02 00 35 04 06 00 5B 42 7E 8D 96 EF 7B 75 37 14 A9 1A CC C2 [07:19:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 47 87 47 00 C7 D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DA 83 02 00 F4 03 04 00 AA 22 93 66 B6 04 01 00 00 0C 21 6A F0 A6 DB 9C 4C [07:19:56]CommunicateWithHost err = 0 [07:19:56]CheckOFDResponse [07:19:56]1017 (14) - 77093643461234 [07:19:56]1041 (16) - 0000000000874718 [07:19:56]1040 (4) - 164826 [07:19:56]1012 (4) - 14.07.2024 00:58 [07:19:56]1206 (1) - 0 [07:19:56]OFD Sender: Remove packet 164826 [07:19:56]ProducePacketName [07:19:56]name=ofd_packets/00164826 [07:19:56]NVStorageDeleteData [07:19:56]Write to MH i2c: 01 00 00 4E 08 56 [07:19:56]Write i2c OK [07:19:56]MH_I2C_Read... [07:19:56]Read from MH i2c: 01 [07:19:56]MH_I2C_Read... [07:19:56]Read from MH i2c: 01 07 00 [07:19:56]MH_I2C_Read... [07:19:56]Read from MH i2c: 01 07 00 4E 08 00 00 00 00 00 08 0D 72 [07:19:56]RasterBufferAndPrint [07:19:56]line [07:19:56]line [07:19:56]line [07:19:56]line [07:19:56]line [07:19:56]written 0, free lines is 3342 [07:19:56]MH_Cut [07:19:56]Write to MH i2c: D1 01 00 55 08 01 2F [07:19:56]Write i2c OK [07:19:56]MH_I2C_Read... [07:19:56]Read from MH i2c: D1 [07:19:56]MH_I2C_Read... [07:19:56]Read from MH i2c: D1 01 00 [07:19:56]MH_I2C_Read... [07:19:56]Read from MH i2c: D1 01 00 55 08 00 2E [07:19:56]Write to MH i2c: 01 00 00 56 08 5E [07:19:56]Write i2c OK [07:19:56]MH_I2C_Read... [07:19:57]OFD Sender: No OFD packet to send [07:19:57]*** Cut start [07:19:57]*** Partial cut [07:19:57]*** CUTSNS_PIN = 1 [07:19:57]*** CUTSNS_PIN = 0 [07:19:57]*** Brake cut motor [07:19:58]Read from MH i2c: 01 [07:19:58]MH_I2C_Read... [07:19:58]*** Stop cut motor [07:19:58]*** Cut end [07:19:58]Read from MH i2c: 01 07 00 [07:19:58]MH_I2C_Read... [07:19:58]Read from MH i2c: 01 07 00 56 08 00 00 00 00 00 FF 0F 73 [07:19:58]process_action close_receipt done [07:19:58]requested_data is exist [07:19:58]produce_requested_data [07:19:58]requested_item fm.sn is exist - process it [07:19:58]wFMCommunicate request_size=4 [07:19:58]MH_SAM_APDU [07:19:58]CAPDU: 80 11 00 00 [07:19:58]Write to MH i2c: E2 08 00 57 08 80 11 00 00 00 00 00 00 D9 [07:19:58]Write i2c OK [07:19:58]MH_I2C_Read... [07:19:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:19:58]Read from MH i2c: E2 [07:19:58]MH_I2C_Read... [07:19:58]Read from MH i2c: E2 17 00 [07:19:58]MH_I2C_Read... [07:19:58]Read from MH i2c: E2 17 00 57 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 2F [07:19:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [07:19:58]wFMCommunicate OK [07:19:58]requested_item fd.num is exist - process it [07:19:58]SAM_PROTO_GetFieldsCounters [07:19:58]wFMCommunicate request_size=4 [07:19:58]MH_SAM_APDU [07:19:58]CAPDU: 80 13 00 00 [07:19:58]Write to MH i2c: E2 08 00 58 08 80 13 00 00 00 00 00 00 DC [07:19:58]Write i2c OK [07:19:58]MH_I2C_Read... [07:19:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:19:58]Read from MH i2c: E2 [07:19:58]MH_I2C_Read... [07:19:58]Read from MH i2c: E2 62 00 [07:19:58]MH_I2C_Read... [07:19:58]Read from MH i2c: E2 62 00 58 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 DA 83 02 00 0E 04 04 00 BF 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 6A [07:19:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 DA 83 02 00 0E 04 04 00 BF 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 [07:19:58]wFMCommunicate OK [07:19:58]SAM_PROTO_GetFieldsCounters done [07:19:58]requested_item shift.num is exist - process it [07:19:58]requested_item shift.opened is exist - process it [07:19:58]req_shift_opened [07:19:58]FM_GetShiftState [07:19:58]SAM_PROTO_GetShiftState [07:19:58]wFMCommunicate request_size=4 [07:19:58]MH_SAM_APDU [07:19:58]CAPDU: 80 13 01 00 [07:19:58]Write to MH i2c: E2 08 00 59 08 80 13 01 00 00 00 00 00 DE [07:19:58]Write i2c OK [07:19:58]MH_I2C_Read... [07:19:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:19:58]Read from MH i2c: E2 [07:19:58]MH_I2C_Read... [07:19:58]Read from MH i2c: E2 0E 00 [07:19:58]MH_I2C_Read... [07:19:58]Read from MH i2c: E2 0E 00 59 08 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 5E [07:19:58]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [07:19:58]wFMCommunicate OK [07:19:58]SAM_PROTO_GetShiftState done [07:19:58]FM_GetShiftState done [07:19:58]req_shift_opened done [07:19:58]requested_item shift.open_date is exist - process it [07:19:58]req_shift_open_date [07:19:58]req_shift_open_date done [07:19:58]produce_requested_data done [07:19:58]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164826,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [07:19:58]process_action_free close_receipt [07:19:58]json_value_free [07:19:58]json_value_free done [07:19:58]process_json_proto returns [07:19:58]Send response to host [07:19:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164826,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [07:19:58]free response buf [07:19:58]execute_script done [07:19:58]execute_script returns [07:19:58]free content buf [07:19:58]Sock 8.Close socket [07:19:58]Sock 8.Thread stoped [07:20:02]OFD Sender: No OFD packet to send [07:20:07]OFD Sender: No OFD packet to send [07:20:12]OFD Sender: No OFD packet to send [07:20:17]OFD Sender: No OFD packet to send [07:20:22]OFD Sender: No OFD packet to send [07:20:27]OFD Sender: No OFD packet to send [07:20:32]OFD Sender: No OFD packet to send [07:20:37]OFD Sender: No OFD packet to send [07:20:42]OFD Sender: No OFD packet to send [07:20:47]OFD Sender: No OFD packet to send [07:20:52]OFD Sender: No OFD packet to send [07:20:57]OFD Sender: No OFD packet to send [07:21:02]OFD Sender: No OFD packet to send [07:21:07]OFD Sender: No OFD packet to send [07:21:08]accept exits with 10 [07:21:08]New connection [07:21:08]New thread 3067571556 created [07:21:08]Thread 3067428196 joined [07:21:08]Waiting for new connection... [07:21:08] Sock 10.Parse request [07:21:08]Sock 10.Check first char [07:21:08]Sock 10.First char is OK [07:21:08]request: POST /json_proto HTTP/1.0 [07:21:08]Method: POST [07:21:08]URL: /json_proto [07:21:08]Method is POST - this is cgi request [07:21:08]url: /json_proto [07:21:08]query_string will be loaded in cgi processing [07:21:08]execute_cgi json_proto POST (null) [07:21:08]execute_cgi path=json_proto method=POST [07:21:08]POST find Content-Length [07:21:08]Host: 172.17.56.4:8080 [07:21:08]Content-Length: 674 [07:21:08]Content-Type: application/json [07:21:08] [07:21:08]POST finish read [07:21:08]Found Content-Length = 674 [07:21:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458921", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 3.480, "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" ] } } [07:21:08]execute_script... [07:21: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)458921", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 3.480, "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" ] } } [07:21:08]POST & json_proto [07:21:08]process_json_proto [07:21:08]json parsed OK: [07:21:08]protocol is kg_v1.0 [07:21:08]action value=close_receipt [07:21:08]process_action close_receipt [07:21:08]cmd_close_receipt [07:21:08]MH_GetDate [07:21:08]Write to MH i2c: F0 00 00 5A 08 51 [07:21:08]Write i2c OK [07:21:08]MH_I2C_Read... [07:21:08]Read from MH i2c: F0 [07:21:08]MH_I2C_Read... [07:21:08]Read from MH i2c: F0 09 00 [07:21:08]MH_I2C_Read... [07:21:08]Read from MH i2c: F0 09 00 5A 08 00 66 7C 93 66 C9 DC B2 64 F0 [07:21:08]GetLastDocTimeStamp 1720941596 [07:21:08]current date 1720941670 [07:21:08]FM_GetShiftState [07:21:08]SAM_PROTO_GetShiftState [07:21:08]wFMCommunicate request_size=4 [07:21:08]MH_SAM_APDU [07:21:08]CAPDU: 80 13 01 00 [07:21:08]Write to MH i2c: E2 08 00 5B 08 80 13 01 00 00 00 00 00 E0 [07:21:08]Write i2c OK [07:21:08]MH_I2C_Read... [07:21:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:21:09]Read from MH i2c: E2 [07:21:09]MH_I2C_Read... [07:21:09]Read from MH i2c: E2 0E 00 [07:21:09]MH_I2C_Read... [07:21:09]Read from MH i2c: E2 0E 00 5B 08 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 60 [07:21:09]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [07:21:09]wFMCommunicate OK [07:21:09]SAM_PROTO_GetShiftState done [07:21:09]FM_GetShiftState done [07:21:09]opened in 1720917342 [07:21:09]opened+sec_in_day 1721003742 [07:21:09]quantity*price = 25021 [07:21:09]sum+1 = 25022 [07:21:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 25 14.07.2024 07:21 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164827 ФПД: 270243841330860 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T072110&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164827&fm=270243841330860&tin=02508201610067®Number=0000000000090829&sum=25000 [07:21:10]StoreToDocumentArchive [07:21:10]shift 447 fd 164827 [07:21:10]save to /storage/0447/doc_00164827 [07:21:10]save last doc name /storage/0447/doc_00164827 to /storage/kkm_last_doc_name [07:21:10]save OK [07:21:10]Clear old archive folders... [07:21:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:21:10]tlvbuf is 0165B2C0 [07:21:10]SAM_PROTO_ClearQueue [07:21:10]wFMCommunicate request_size=4 [07:21:10]MH_SAM_APDU [07:21:10]CAPDU: 80 09 00 00 [07:21:10]Write to MH i2c: E2 08 00 68 08 80 09 00 00 00 00 00 00 E2 [07:21:10]Write i2c OK [07:21:10]MH_I2C_Read... [07:21:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:21:10]Read from MH i2c: E2 [07:21:10]MH_I2C_Read... [07:21:10]Read from MH i2c: E2 03 00 [07:21:10]MH_I2C_Read... [07:21:10]Read from MH i2c: E2 03 00 68 08 00 90 00 E4 [07:21:10]RAPDU: 90 00 [07:21:10]wFMCommunicate OK [07:21:10]SAM_PROTO_ClearQueue done [07:21:10]KKMCreateOFDPacket [07:21:10]OFDProtocolAddRootSTLVToBuf [07:21:10]FM_MakeSignedData [07:21:10]FM_MakeSignedData [07:21:10]SAM_PROTO_SignData [07:21:10]wFMCommunicate request_size=4 [07:21:10]MH_SAM_APDU [07:21:10]CAPDU: 80 0D 01 02 [07:21:10]Write to MH i2c: E2 08 00 69 08 80 0D 01 02 00 00 00 00 EA [07:21:10]Write i2c OK [07:21:10]MH_I2C_Read... [07:21:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:21:10]Read from MH i2c: E2 [07:21:10]MH_I2C_Read... [07:21:10]Read from MH i2c: E2 03 00 [07:21:10]MH_I2C_Read... [07:21:10]Read from MH i2c: E2 03 00 69 08 00 90 00 E5 [07:21:10]RAPDU: 90 00 [07:21:10]wFMCommunicate OK [07:21:10]wFMCommunicate request_size=255 [07:21:10]MH_SAM_APDU [07:21: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 98 0D 00 00 00 00 00 37 04 06 00 16 1C 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 19 00 00 00 F4 03 04 00 66 7C 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DB 83 02 00 35 04 06 00 F5 C9 0C 2A [07:21:10]Write to MH i2c: E2 02 01 6A 08 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 0D 00 00 00 00 00 37 04 06 00 16 1C 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 19 00 00 00 F4 03 04 00 66 7C 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DB 83 02 00 35 04 06 00 F5 C9 0C 2A 00 00 A4 [07:21:10]Write i2c OK [07:21:10]MH_I2C_Read... [07:21:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:21:10]Read from MH i2c: E2 [07:21:10]MH_I2C_Read... [07:21:10]Read from MH i2c: E2 03 00 [07:21:10]MH_I2C_Read... [07:21:10]Read from MH i2c: E2 03 00 6A 08 00 90 00 E6 [07:21:10]RAPDU: 90 00 [07:21:10]wFMCommunicate OK [07:21:10]wFMCommunicate request_size=7 [07:21:10]MH_SAM_APDU [07:21:10]CAPDU: 80 0D 02 02 02 4E AC [07:21:10]Write to MH i2c: E2 0A 00 6B 08 80 0D 02 02 02 00 4E AC 00 00 EB [07:21:10]Write i2c OK [07:21:10]MH_I2C_Read... [07:21:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:21:10]Read from MH i2c: E2 [07:21:10]MH_I2C_Read... [07:21:10]Read from MH i2c: E2 03 00 [07:21:10]MH_I2C_Read... [07:21:10]Read from MH i2c: E2 03 00 6B 08 00 90 00 E7 [07:21:10]RAPDU: 90 00 [07:21:10]wFMCommunicate OK [07:21:10]wFMCommunicate request_size=4 [07:21:10]MH_SAM_APDU [07:21:10]CAPDU: 80 0D 03 02 [07:21:10]Write to MH i2c: E2 08 00 6C 08 80 0D 03 02 00 00 00 00 EF [07:21:10]Write i2c OK [07:21:10]MH_I2C_Read... [07:21:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:21:10]Read from MH i2c: E2 [07:21:10]MH_I2C_Read... [07:21:10]Read from MH i2c: E2 0B 00 [07:21:10]MH_I2C_Read... [07:21:10]Read from MH i2c: E2 0B 00 6C 08 00 6B 3A 0D 27 84 AE C5 7D 90 00 3D [07:21:10]RAPDU: 6B 3A 0D 27 84 AE C5 7D 90 00 [07:21:10]wFMCommunicate OK [07:21:10]SAM_PROTO_SignData done [07:21:10]FM_MakeSignedData done [07:21:10]CreateOFDProtocolMessage [07:21:10]wFMCommunicate request_size=4 [07:21:10]MH_SAM_APDU [07:21:10]CAPDU: 80 11 00 00 [07:21:10]Write to MH i2c: E2 08 00 6D 08 80 11 00 00 00 00 00 00 EF [07:21:10]Write i2c OK [07:21:10]MH_I2C_Read... [07:21:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:21:10]Read from MH i2c: E2 [07:21:10]MH_I2C_Read... [07:21:10]Read from MH i2c: E2 17 00 [07:21:10]MH_I2C_Read... [07:21:10]Read from MH i2c: E2 17 00 6D 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 45 [07:21:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [07:21:10]wFMCommunicate OK [07:21:10]CreateOFDProtocolMessage done [07:21:10]OFDSenderStorePacket 164827 [07:21:10]StoreOFDPacket docnum=164827 [07:21:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 E0 92 04 01 B8 C6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 0D 00 00 00 00 00 37 04 06 00 16 1C 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 19 00 00 00 F4 03 04 00 66 7C 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DB 83 02 00 35 04 06 00 F5 C9 0C 2A 4E AC 6B 3A 0D 27 84 AE C5 7D [07:21:10]CheckFolder [07:21:10]dirname=/storage/ofd_packets [07:21:10]CheckFolder done [07:21:10]ProducePacketName [07:21:10]name=ofd_packets/00164827 [07:21:10]NVStorageSaveData ofd_packets/00164827 [07:21:10]File name is /storage/ofd_packets/00164827 [07:21:10]Write 298 bytes [07:21:10]NVStorageSaveData done [07:21:10]OFDSenderStorePacket done [07:21:10]KKMCreateOFDPacket done [07:21:10]NVStorageSaveData kkm_last_timestamp [07:21:10]File name is /storage/kkm_last_timestamp [07:21:10]Write 4 bytes [07:21:10]NVStorageSaveData done [07:21:10]ExternCall_PrintAddStr [07:21:10]wPrintStart [07:21:10]Write to MH i2c: 01 00 00 6E 08 76 [07:21:10]Write i2c OK [07:21:10]MH_I2C_Read... [07:21:10]Read from MH i2c: 01 [07:21:10]MH_I2C_Read... [07:21:10]Read from MH i2c: 01 07 00 [07:21:10]MH_I2C_Read... [07:21:10]Read from MH i2c: 01 07 00 6E 08 00 00 00 00 00 FF 0F 8B [07:21:10]RasterBufferAndPrint [07:21:10]line Счет N : (1)458921 [07:21:10]line ИНН: 02508201610067 [07:21:10]line Контрольно-Кассовый Чек [07:21:10]line ПРОДАЖА [07:21:10]line ТРК (МРК, ГНК) : 11 [07:21:10]line Товар: 2710194210 [07:21:10]line ДТ-К-5 [07:21:10]line 3.480 * 71.90 [07:21:10]line = 250.21 [07:21:10]line НДС 12% НСП 1% [07:21:10]line > о реализуемом товаре [07:21:10]line ОКРУГЛЕНИЕ: -0.21 [07:21:10]line ИТОГО: 250.00 [07:21:10]line Внесено: 250.00 [07:21:10]line СДАЧА: 0.00 [07:21:10]line НСП 1% : 2.21 [07:21:10]line НДС 12% : 26.57 [07:21:10]line Наличными: 250.00 [07:21:10]line Безнал.: 0.00 [07:21:10]line Место: АЗС № 72 "Партнер Нефть" [07:21:10]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [07:21:10]line СНО: Общий режим [07:21:10]line Чек 25 14.07.2024 07:21 [07:21:10]line Смена: 447 ФФД: 1.0 [07:21:10]line ЗНМ: 0300000160 [07:21:10]line РНМ: 0000000000090829 [07:21:10]line Версия ККМ: 001 [07:21:10]line ФМ: 0000000000874718 [07:21:10]line ФД: 164827 [07:21:10]line ФПД: 270243841330860 [07:21:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T072110&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164827&fm=270243841330860&tin=02508201610067®Number=0000000000090829&sum=25000 [07:21:10]OFD Sender: Processing packet 164827 [packets to send 104, broken 103] [07:21:10]ProducePacketName [07:21:10]name=ofd_packets/00164827 [07:21:10]OFD Sender: To server: pG, [07:21:10]CommunicateWithHost lk.salyk.kg:30040 [07:21:10]ConnectInit lk.salyk.kg [07:21:10]written 0, free lines is 4095 [07:21:11]Connected sock=9 [07:21:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 E0 92 04 01 B8 C6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 0D 00 00 00 00 00 37 04 06 00 16 1C 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 19 00 00 00 F4 03 04 00 66 7C 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DB 83 02 00 35 04 06 00 F5 C9 0C 2A 4E AC 6B 3A 0D 27 84 AE C5 7D [07:21:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 11 18 47 00 E2 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 38 37 34 37 31 38 10 04 04 00 DB 83 02 00 F4 03 04 00 F5 22 93 66 B6 04 01 00 00 17 B7 A1 60 AF 65 C3 0E [07:21:11]CommunicateWithHost err = 0 [07:21:11]CheckOFDResponse [07:21:11]1017 (14) - 77093643461234 [07:21:11]1041 (16) - 0000000000874718 [07:21:11]1040 (4) - 164827 [07:21:11]1012 (4) - 14.07.2024 00:59 [07:21:11]1206 (1) - 0 [07:21:11]OFD Sender: Remove packet 164827 [07:21:11]ProducePacketName [07:21:11]name=ofd_packets/00164827 [07:21:11]NVStorageDeleteData [07:21:11]Write to MH i2c: 01 00 00 98 08 A0 [07:21:11]Write i2c OK [07:21:11]MH_I2C_Read... [07:21:11]Read from MH i2c: 01 [07:21:11]MH_I2C_Read... [07:21:11]Read from MH i2c: 01 07 00 [07:21:11]MH_I2C_Read... [07:21:11]Read from MH i2c: 01 07 00 98 08 00 00 00 00 00 F2 0C A5 [07:21:11]RasterBufferAndPrint [07:21:11]line [07:21:11]line [07:21:11]line [07:21:11]line [07:21:11]line [07:21:11]written 0, free lines is 3320 [07:21:11]MH_Cut [07:21:11]Write to MH i2c: D1 01 00 9F 08 01 79 [07:21:11]Write i2c OK [07:21:11]MH_I2C_Read... [07:21:11]Read from MH i2c: D1 [07:21:11]MH_I2C_Read... [07:21:11]Read from MH i2c: D1 01 00 [07:21:11]MH_I2C_Read... [07:21:11]Read from MH i2c: D1 01 00 9F 08 00 78 [07:21:11]Write to MH i2c: 01 00 00 A0 08 A8 [07:21:11]Write i2c OK [07:21:11]MH_I2C_Read... [07:21:11]OFD Sender: No OFD packet to send [07:21:12]*** Cut start [07:21:12]*** Partial cut [07:21:12]*** CUTSNS_PIN = 1 [07:21:12]*** CUTSNS_PIN = 0 [07:21:12]*** Brake cut motor [07:21:12]Read from MH i2c: 01 [07:21:12]MH_I2C_Read... [07:21:12]*** Stop cut motor [07:21:12]*** Cut end [07:21:12]Read from MH i2c: 01 07 00 [07:21:12]MH_I2C_Read... [07:21:12]Read from MH i2c: 01 07 00 A0 08 00 00 00 00 00 FF 0F BD [07:21:12]process_action close_receipt done [07:21:12]requested_data is exist [07:21:12]produce_requested_data [07:21:12]requested_item fm.sn is exist - process it [07:21:12]wFMCommunicate request_size=4 [07:21:12]MH_SAM_APDU [07:21:12]CAPDU: 80 11 00 00 [07:21:12]Write to MH i2c: E2 08 00 A1 08 80 11 00 00 00 00 00 00 23 [07:21:12]Write i2c OK [07:21:12]MH_I2C_Read... [07:21:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:21:12]Read from MH i2c: E2 [07:21:12]MH_I2C_Read... [07:21:12]Read from MH i2c: E2 17 00 [07:21:12]MH_I2C_Read... [07:21:12]Read from MH i2c: E2 17 00 A1 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 79 [07:21:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [07:21:12]wFMCommunicate OK [07:21:12]requested_item fd.num is exist - process it [07:21:12]SAM_PROTO_GetFieldsCounters [07:21:12]wFMCommunicate request_size=4 [07:21:12]MH_SAM_APDU [07:21:12]CAPDU: 80 13 00 00 [07:21:12]Write to MH i2c: E2 08 00 A2 08 80 13 00 00 00 00 00 00 26 [07:21:12]Write i2c OK [07:21:12]MH_I2C_Read... [07:21:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:21:12]Read from MH i2c: E2 [07:21:12]MH_I2C_Read... [07:21:12]Read from MH i2c: E2 62 00 [07:21:12]MH_I2C_Read... [07:21:12]Read from MH i2c: E2 62 00 A2 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 DB 83 02 00 0E 04 04 00 BF 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 B8 [07:21:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 DB 83 02 00 0E 04 04 00 BF 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 [07:21:12]wFMCommunicate OK [07:21:12]SAM_PROTO_GetFieldsCounters done [07:21:12]requested_item shift.num is exist - process it [07:21:12]requested_item shift.opened is exist - process it [07:21:12]req_shift_opened [07:21:12]FM_GetShiftState [07:21:12]SAM_PROTO_GetShiftState [07:21:12]wFMCommunicate request_size=4 [07:21:12]MH_SAM_APDU [07:21:12]CAPDU: 80 13 01 00 [07:21:12]Write to MH i2c: E2 08 00 A3 08 80 13 01 00 00 00 00 00 28 [07:21:12]Write i2c OK [07:21:12]MH_I2C_Read... [07:21:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:21:12]Read from MH i2c: E2 [07:21:12]MH_I2C_Read... [07:21:12]Read from MH i2c: E2 0E 00 [07:21:12]MH_I2C_Read... [07:21:12]Read from MH i2c: E2 0E 00 A3 08 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 A8 [07:21:12]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [07:21:12]wFMCommunicate OK [07:21:12]SAM_PROTO_GetShiftState done [07:21:12]FM_GetShiftState done [07:21:12]req_shift_opened done [07:21:12]requested_item shift.open_date is exist - process it [07:21:12]req_shift_open_date [07:21:12]req_shift_open_date done [07:21:12]produce_requested_data done [07:21:12]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164827,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [07:21:12]process_action_free close_receipt [07:21:12]json_value_free [07:21:12]json_value_free done [07:21:12]process_json_proto returns [07:21:12]Send response to host [07:21:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164827,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [07:21:12]free response buf [07:21:12]execute_script done [07:21:12]execute_script returns [07:21:12]free content buf [07:21:12]Sock 10.Close socket [07:21:12]Sock 10.Thread stoped [07:21:16]OFD Sender: No OFD packet to send [07:21:21]OFD Sender: No OFD packet to send [07:21:26]OFD Sender: No OFD packet to send [07:21:31]OFD Sender: No OFD packet to send [07:21:36]OFD Sender: No OFD packet to send [07:21:41]OFD Sender: No OFD packet to send [07:21:46]OFD Sender: No OFD packet to send [07:21:51]OFD Sender: No OFD packet to send [07:21:56]OFD Sender: No OFD packet to send [07:22:01]OFD Sender: No OFD packet to send [07:22:06]OFD Sender: No OFD packet to send [07:22:11]OFD Sender: No OFD packet to send [07:22:16]OFD Sender: No OFD packet to send [07:22:21]OFD Sender: No OFD packet to send [07:22:26]OFD Sender: No OFD packet to send [07:22:31]OFD Sender: No OFD packet to send [07:22:36]OFD Sender: No OFD packet to send [07:22:41]OFD Sender: No OFD packet to send [07:22:46]OFD Sender: No OFD packet to send [07:22:51]OFD Sender: No OFD packet to send [07:22:56]OFD Sender: No OFD packet to send [07:23:01]OFD Sender: No OFD packet to send [07:23:06]OFD Sender: No OFD packet to send [07:23:11]OFD Sender: No OFD packet to send [07:23:16]OFD Sender: No OFD packet to send [07:23:21]OFD Sender: No OFD packet to send [07:23:26]OFD Sender: No OFD packet to send [07:23:31]OFD Sender: No OFD packet to send [07:23:36]OFD Sender: No OFD packet to send [07:23:41]OFD Sender: No OFD packet to send [07:23:46]OFD Sender: No OFD packet to send [07:23:51]OFD Sender: No OFD packet to send [07:23:56]OFD Sender: No OFD packet to send [07:24:01]OFD Sender: No OFD packet to send [07:24:06]OFD Sender: No OFD packet to send [07:24:11]OFD Sender: No OFD packet to send [07:24:16]OFD Sender: No OFD packet to send [07:24:21]OFD Sender: No OFD packet to send [07:24:27]OFD Sender: No OFD packet to send [07:24:32]OFD Sender: No OFD packet to send [07:24:37]OFD Sender: No OFD packet to send [07:24:42]OFD Sender: No OFD packet to send [07:24:47]OFD Sender: No OFD packet to send [07:24:52]OFD Sender: No OFD packet to send [07:24:57]OFD Sender: No OFD packet to send [07:25:02]OFD Sender: No OFD packet to send [07:25:07]OFD Sender: No OFD packet to send [07:25:12]OFD Sender: No OFD packet to send [07:25:17]OFD Sender: No OFD packet to send [07:25:22]OFD Sender: No OFD packet to send [07:25:27]OFD Sender: No OFD packet to send [07:25:32]OFD Sender: No OFD packet to send [07:25:37]OFD Sender: No OFD packet to send [07:25:42]OFD Sender: No OFD packet to send [07:25:47]OFD Sender: No OFD packet to send [07:25:52]OFD Sender: No OFD packet to send [07:25:57]OFD Sender: No OFD packet to send [07:26:02]OFD Sender: No OFD packet to send [07:26:07]OFD Sender: No OFD packet to send [07:26:12]OFD Sender: No OFD packet to send [07:26:17]OFD Sender: No OFD packet to send [07:26:22]OFD Sender: No OFD packet to send [07:26:27]OFD Sender: No OFD packet to send [07:26:32]OFD Sender: No OFD packet to send [07:26:37]OFD Sender: No OFD packet to send [07:26:42]OFD Sender: No OFD packet to send [07:26:47]OFD Sender: No OFD packet to send [07:26:52]OFD Sender: No OFD packet to send [07:26:57]OFD Sender: No OFD packet to send [07:27:02]OFD Sender: No OFD packet to send [07:27:07]OFD Sender: No OFD packet to send [07:27:12]OFD Sender: No OFD packet to send [07:27:17]OFD Sender: No OFD packet to send [07:27:22]OFD Sender: No OFD packet to send [07:27:27]OFD Sender: No OFD packet to send [07:27:32]OFD Sender: No OFD packet to send [07:27:37]OFD Sender: No OFD packet to send [07:27:42]OFD Sender: No OFD packet to send [07:27:47]OFD Sender: No OFD packet to send [07:27:52]OFD Sender: No OFD packet to send [07:27:57]OFD Sender: No OFD packet to send [07:28:02]OFD Sender: No OFD packet to send [07:28:07]OFD Sender: No OFD packet to send [07:28:12]OFD Sender: No OFD packet to send [07:28:17]OFD Sender: No OFD packet to send [07:28:22]OFD Sender: No OFD packet to send [07:28:27]OFD Sender: No OFD packet to send [07:28:32]OFD Sender: No OFD packet to send [07:28:37]OFD Sender: No OFD packet to send [07:28:42]OFD Sender: No OFD packet to send [07:28:47]OFD Sender: No OFD packet to send [07:28:52]OFD Sender: No OFD packet to send [07:28:57]OFD Sender: No OFD packet to send [07:29:02]OFD Sender: No OFD packet to send [07:29:07]OFD Sender: No OFD packet to send [07:29:12]OFD Sender: No OFD packet to send [07:29:17]OFD Sender: No OFD packet to send [07:29:22]OFD Sender: No OFD packet to send [07:29:27]OFD Sender: No OFD packet to send [07:29:32]OFD Sender: No OFD packet to send [07:29:37]OFD Sender: No OFD packet to send [07:29:42]OFD Sender: No OFD packet to send [07:29:47]OFD Sender: No OFD packet to send [07:29:52]OFD Sender: No OFD packet to send [07:29:57]OFD Sender: No OFD packet to send [07:30:02]OFD Sender: No OFD packet to send [07:30:07]OFD Sender: No OFD packet to send [07:30:12]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:52]OFD Sender: No OFD packet to send [07:30:57]OFD Sender: No OFD packet to send [07:31:02]OFD Sender: No OFD packet to send [07:31:07]OFD Sender: No OFD packet to send [07:31:12]OFD Sender: No OFD packet to send [07:31:17]OFD Sender: No OFD packet to send [07:31:22]OFD Sender: No OFD packet to send [07:31:27]OFD Sender: No OFD packet to send [07:31:32]OFD Sender: No OFD packet to send [07:31:36]accept exits with 8 [07:31:36]New connection [07:31:36]New thread 3067428196 created [07:31:36]Thread 3067571556 joined [07:31:36]Waiting for new connection... [07:31:36] Sock 8.Parse request [07:31:36]Sock 8.Check first char [07:31:36]Sock 8.First char is OK [07:31:36]request: POST /json_proto HTTP/1.0 [07:31:36]Method: POST [07:31:36]URL: /json_proto [07:31:36]Method is POST - this is cgi request [07:31:36]url: /json_proto [07:31:36]query_string will be loaded in cgi processing [07:31:36]execute_cgi json_proto POST (null) [07:31:36]execute_cgi path=json_proto method=POST [07:31:36]POST find Content-Length [07:31:36]Host: 172.17.56.4:8080 [07:31:36]Content-Length: 1184 [07:31:36]Content-Type: application/json [07:31:36] [07:31:36]POST finish read [07:31:36]Found Content-Length = 1184 [07:31:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 72\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041D\u0443\u0440\u043C\u0430\u0442\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)458922\u000A14.07.2024 06:57\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 65.80\u000A\u0418\u0422\u041E\u0413: 658.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4114478\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:31:36]execute_script... [07:31:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 72\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041D\u0443\u0440\u043C\u0430\u0442\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)458922\u000A14.07.2024 06:57\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 65.80\u000A\u0418\u0422\u041E\u0413: 658.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4114478\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:31:36]POST & json_proto [07:31:36]process_json_proto [07:31:36]json parsed OK: [07:31:36]protocol is kg_v1.0 [07:31:36]action value=print_text [07:31:36]process_action print_text [07:31:36]cmd_print_text [07:31:36]ExternCall_PrintAddStr [07:31:36]wPrintStart [07:31:36]Write to MH i2c: 01 00 00 A4 08 AC [07:31:36]Write i2c OK [07:31:36]MH_I2C_Read... [07:31:36]Read from MH i2c: 01 [07:31:36]MH_I2C_Read... [07:31:36]Read from MH i2c: 01 07 00 [07:31:36]MH_I2C_Read... [07:31:36]Read from MH i2c: 01 07 00 A4 08 00 00 00 00 00 FF 0F C1 [07:31:36]RasterBufferAndPrint [07:31:36]line *****ТОВАРНЫЙ ЧЕК***** [07:31:36]line АЗС 72 [07:31:36]line Партнер нефть [07:31:36]line 02508201610067 [07:31:36]line Кассир : Нурматов Н. [07:31:36]line Счет N : (1)458922 [07:31:36]line 14.07.2024 06:57 [07:31:36]line ПРОДАЖА [07:31:36]line ТРК (МРК, ГНК): 12 [07:31:36]line Вид ГСМ : 2710124130 [07:31:36]line Аи-92-К-5 [07:31:36]line 10.000 x 65.80 [07:31:36]line ИТОГ: 658.00 [07:31:36]line Тип оплаты: Талоны: Партнер нефть [07:31:36]line 4114478 [07:31:36]line ______________________ [07:31:36]line (подпись) [07:31:36]written 0, free lines is 4095 [07:31:36]Write to MH i2c: 01 00 00 B8 08 C0 [07:31:36]Write i2c OK [07:31:36]MH_I2C_Read... [07:31:36]Read from MH i2c: 01 [07:31:36]MH_I2C_Read... [07:31:36]Read from MH i2c: 01 07 00 [07:31:36]MH_I2C_Read... [07:31:36]Read from MH i2c: 01 07 00 B8 08 00 00 00 00 00 0F 0E E4 [07:31:36]RasterBufferAndPrint [07:31:36]line [07:31:36]line [07:31:36]line [07:31:36]line [07:31:36]line [07:31:36]written 0, free lines is 3601 [07:31:36]MH_Cut [07:31:36]Write to MH i2c: D1 01 00 BF 08 01 99 [07:31:36]Write i2c OK [07:31:36]MH_I2C_Read... [07:31:36]Read from MH i2c: D1 [07:31:36]MH_I2C_Read... [07:31:36]Read from MH i2c: D1 01 00 [07:31:36]MH_I2C_Read... [07:31:36]Read from MH i2c: D1 01 00 BF 08 00 98 [07:31:36]Write to MH i2c: 01 00 00 C0 08 C8 [07:31:36]Write i2c OK [07:31:36]MH_I2C_Read... [07:31:36]*** Cut start [07:31:36]*** Partial cut [07:31:36]*** CUTSNS_PIN = 1 [07:31:36]*** CUTSNS_PIN = 0 [07:31:37]*** Brake cut motor [07:31:37]Read from MH i2c: 01 [07:31:37]MH_I2C_Read... [07:31:37]*** Stop cut motor [07:31:37]*** Cut end [07:31:37]OFD Sender: No OFD packet to send [07:31:37]Read from MH i2c: 01 07 00 [07:31:37]MH_I2C_Read... [07:31:37]Read from MH i2c: 01 07 00 C0 08 00 00 00 00 00 FF 0F DD [07:31:37]process_action print_text done [07:31:37]requested_data is exist [07:31:37]produce_requested_data [07:31:37]requested_item fm.sn is exist - process it [07:31:37]wFMCommunicate request_size=4 [07:31:37]MH_SAM_APDU [07:31:37]CAPDU: 80 11 00 00 [07:31:37]Write to MH i2c: E2 08 00 C1 08 80 11 00 00 00 00 00 00 43 [07:31:37]Write i2c OK [07:31:37]MH_I2C_Read... [07:31:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:31:37]Read from MH i2c: E2 [07:31:37]MH_I2C_Read... [07:31:37]Read from MH i2c: E2 17 00 [07:31:37]MH_I2C_Read... [07:31:37]Read from MH i2c: E2 17 00 C1 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 99 [07:31:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [07:31:37]wFMCommunicate OK [07:31:37]requested_item fd.num is exist - process it [07:31:37]SAM_PROTO_GetFieldsCounters [07:31:37]wFMCommunicate request_size=4 [07:31:37]MH_SAM_APDU [07:31:37]CAPDU: 80 13 00 00 [07:31:37]Write to MH i2c: E2 08 00 C2 08 80 13 00 00 00 00 00 00 46 [07:31:37]Write i2c OK [07:31:37]MH_I2C_Read... [07:31:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:31:37]Read from MH i2c: E2 [07:31:37]MH_I2C_Read... [07:31:37]Read from MH i2c: E2 62 00 [07:31:37]MH_I2C_Read... [07:31:37]Read from MH i2c: E2 62 00 C2 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 DB 83 02 00 0E 04 04 00 BF 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 D8 [07:31:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 DB 83 02 00 0E 04 04 00 BF 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 [07:31:37]wFMCommunicate OK [07:31:37]SAM_PROTO_GetFieldsCounters done [07:31:37]requested_item shift.num is exist - process it [07:31:37]requested_item shift.opened is exist - process it [07:31:37]req_shift_opened [07:31:37]FM_GetShiftState [07:31:37]SAM_PROTO_GetShiftState [07:31:37]wFMCommunicate request_size=4 [07:31:37]MH_SAM_APDU [07:31:37]CAPDU: 80 13 01 00 [07:31:37]Write to MH i2c: E2 08 00 C3 08 80 13 01 00 00 00 00 00 48 [07:31:37]Write i2c OK [07:31:37]MH_I2C_Read... [07:31:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:31:37]Read from MH i2c: E2 [07:31:37]MH_I2C_Read... [07:31:37]Read from MH i2c: E2 0E 00 [07:31:37]MH_I2C_Read... [07:31:37]Read from MH i2c: E2 0E 00 C3 08 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 C8 [07:31:37]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [07:31:37]wFMCommunicate OK [07:31:37]SAM_PROTO_GetShiftState done [07:31:37]FM_GetShiftState done [07:31:37]req_shift_opened done [07:31:37]requested_item shift.open_date is exist - process it [07:31:37]req_shift_open_date [07:31:37]req_shift_open_date done [07:31:37]produce_requested_data done [07:31:37]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164827,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [07:31:37]process_action_free print_text [07:31:37]json_value_free [07:31:37]json_value_free done [07:31:37]process_json_proto returns [07:31:37]Send response to host [07:31:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164827,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [07:31:37]free response buf [07:31:37]execute_script done [07:31:37]execute_script returns [07:31:37]free content buf [07:31:37]Sock 8.Close socket [07:31:37]Sock 8.Thread stoped [07:31:42]OFD Sender: No OFD packet to send [07:31:47]OFD Sender: No OFD packet to send [07:31:52]OFD Sender: No OFD packet to send [07:31:57]OFD Sender: No OFD packet to send [07:32:02]OFD Sender: No OFD packet to send [07:32:07]OFD Sender: No OFD packet to send [07:32:12]OFD Sender: No OFD packet to send [07:32:17]OFD Sender: No OFD packet to send [07:32:22]OFD Sender: No OFD packet to send [07:32:27]OFD Sender: No OFD packet to send [07:32:32]OFD Sender: No OFD packet to send [07:32:37]OFD Sender: No OFD packet to send [07:32:42]OFD Sender: No OFD packet to send [07:32:47]OFD Sender: No OFD packet to send [07:32:52]OFD Sender: No OFD packet to send [07:32:57]OFD Sender: No OFD packet to send [07:33:02]OFD Sender: No OFD packet to send [07:33:07]OFD Sender: No OFD packet to send [07:33:12]OFD Sender: No OFD packet to send [07:33:17]OFD Sender: No OFD packet to send [07:33:22]OFD Sender: No OFD packet to send [07:33:27]OFD Sender: No OFD packet to send [07:33:32]OFD Sender: No OFD packet to send [07:33:37]OFD Sender: No OFD packet to send [07:33:42]OFD Sender: No OFD packet to send [07:33:47]OFD Sender: No OFD packet to send [07:33:52]OFD Sender: No OFD packet to send [07:33:57]OFD Sender: No OFD packet to send [07:34:02]OFD Sender: No OFD packet to send [07:34:07]OFD Sender: No OFD packet to send [07:34:12]OFD Sender: No OFD packet to send [07:34:17]OFD Sender: No OFD packet to send [07:34:22]OFD Sender: No OFD packet to send [07:34:27]OFD Sender: No OFD packet to send [07:34:32]OFD Sender: No OFD packet to send [07:34:37]OFD Sender: No OFD packet to send [07:34:42]OFD Sender: No OFD packet to send [07:34:47]OFD Sender: No OFD packet to send [07:34:52]OFD Sender: No OFD packet to send [07:34:57]OFD Sender: No OFD packet to send [07:35:02]OFD Sender: No OFD packet to send [07:35:07]OFD Sender: No OFD packet to send [07:35:12]OFD Sender: No OFD packet to send [07:35:17]OFD Sender: No OFD packet to send [07:35:22]OFD Sender: No OFD packet to send [07:35:27]OFD Sender: No OFD packet to send [07:35:32]OFD Sender: No OFD packet to send [07:35:37]OFD Sender: No OFD packet to send [07:35:42]OFD Sender: No OFD packet to send [07:35:47]OFD Sender: No OFD packet to send [07:35:52]OFD Sender: No OFD packet to send [07:35:57]OFD Sender: No OFD packet to send [07:36:02]OFD Sender: No OFD packet to send [07:36:07]OFD Sender: No OFD packet to send [07:36:12]OFD Sender: No OFD packet to send [07:36:17]OFD Sender: No OFD packet to send [07:36:22]OFD Sender: No OFD packet to send [07:36:27]OFD Sender: No OFD packet to send [07:36:32]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]OFD Sender: No OFD packet to send [07:37:57]OFD Sender: No OFD packet to send [07:38:02]OFD Sender: No OFD packet to send [07:38:07]OFD Sender: No OFD packet to send [07:38:12]OFD Sender: No OFD packet to send [07:38:17]OFD Sender: No OFD packet to send [07:38:22]OFD Sender: No OFD packet to send [07:38:27]OFD Sender: No OFD packet to send [07:38:32]OFD Sender: No OFD packet to send [07:38:37]OFD Sender: No OFD packet to send [07:38:42]OFD Sender: No OFD packet to send [07:38:47]OFD Sender: No OFD packet to send [07:38:52]OFD Sender: No OFD packet to send [07:38:57]OFD Sender: No OFD packet to send [07:39:02]OFD Sender: No OFD packet to send [07:39:07]OFD Sender: No OFD packet to send [07:39:12]OFD Sender: No OFD packet to send [07:39:17]OFD Sender: No OFD packet to send [07:39:22]OFD Sender: No OFD packet to send [07:39:27]OFD Sender: No OFD packet to send [07:39:33]OFD Sender: No OFD packet to send [07:39:38]OFD Sender: No OFD packet to send [07:39:43]OFD Sender: No OFD packet to send [07:39:48]OFD Sender: No OFD packet to send [07:39:53]OFD Sender: No OFD packet to send [07:39:58]OFD Sender: No OFD packet to send [07:40:03]OFD Sender: No OFD packet to send [07:40:08]OFD Sender: No OFD packet to send [07:40:13]OFD Sender: No OFD packet to send [07:40:18]OFD Sender: No OFD packet to send [07:40:23]OFD Sender: No OFD packet to send [07:40:28]OFD Sender: No OFD packet to send [07:40:33]OFD Sender: No OFD packet to send [07:40:38]OFD Sender: No OFD packet to send [07:40:43]OFD Sender: No OFD packet to send [07:40:48]OFD Sender: No OFD packet to send [07:40:53]OFD Sender: No OFD packet to send [07:40:58]OFD Sender: No OFD packet to send [07:41:03]OFD Sender: No OFD packet to send [07:41:08]OFD Sender: No OFD packet to send [07:41:13]OFD Sender: No OFD packet to send [07:41:18]OFD Sender: No OFD packet to send [07:41:23]OFD Sender: No OFD packet to send [07:41:28]OFD Sender: No OFD packet to send [07:41:33]OFD Sender: No OFD packet to send [07:41:38]OFD Sender: No OFD packet to send [07:41:43]OFD Sender: No OFD packet to send [07:41:48]OFD Sender: No OFD packet to send [07:41:53]OFD Sender: No OFD packet to send [07:41:58]OFD Sender: No OFD packet to send [07:42:03]OFD Sender: No OFD packet to send [07:42:08]OFD Sender: No OFD packet to send [07:42:13]OFD Sender: No OFD packet to send [07:42:18]OFD Sender: No OFD packet to send [07:42:20]accept exits with 9 [07:42:20]New connection [07:42:20]New thread 3067571556 created [07:42:20]Thread 3067428196 joined [07:42:20]Waiting for new connection... [07:42:20] Sock 9.Parse request [07:42:20]Sock 9.Check first char [07:42:20]Sock 9.First char is OK [07:42:20]request: POST /json_proto HTTP/1.0 [07:42:20]Method: POST [07:42:20]URL: /json_proto [07:42:20]Method is POST - this is cgi request [07:42:20]url: /json_proto [07:42:20]query_string will be loaded in cgi processing [07:42:20]execute_cgi json_proto POST (null) [07:42:20]execute_cgi path=json_proto method=POST [07:42:20]POST find Content-Length [07:42:20]Host: 172.17.56.4:8080 [07:42:20]Content-Length: 677 [07:42:20]Content-Type: application/json [07:42:20] [07:42:20]POST finish read [07:42:20]Found Content-Length = 677 [07:42:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458923", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:42:20]execute_script... [07:42: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)458923", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:42:20]POST & json_proto [07:42:20]process_json_proto [07:42:20]json parsed OK: [07:42:20]protocol is kg_v1.0 [07:42:20]action value=close_receipt [07:42:20]process_action close_receipt [07:42:20]cmd_close_receipt [07:42:20]MH_GetDate [07:42:20]Write to MH i2c: F0 00 00 C4 08 BB [07:42:20]Write i2c OK [07:42:20]MH_I2C_Read... [07:42:20]Read from MH i2c: F0 [07:42:20]MH_I2C_Read... [07:42:20]Read from MH i2c: F0 09 00 [07:42:20]MH_I2C_Read... [07:42:20]Read from MH i2c: F0 09 00 C4 08 00 5E 81 93 66 C9 DC B2 64 57 [07:42:20]GetLastDocTimeStamp 1720941670 [07:42:20]current date 1720942942 [07:42:20]FM_GetShiftState [07:42:20]SAM_PROTO_GetShiftState [07:42:20]wFMCommunicate request_size=4 [07:42:20]MH_SAM_APDU [07:42:20]CAPDU: 80 13 01 00 [07:42:20]Write to MH i2c: E2 08 00 C5 08 80 13 01 00 00 00 00 00 4A [07:42:20]Write i2c OK [07:42:20]MH_I2C_Read... [07:42:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:42:20]Read from MH i2c: E2 [07:42:20]MH_I2C_Read... [07:42:20]Read from MH i2c: E2 0E 00 [07:42:20]MH_I2C_Read... [07:42:20]Read from MH i2c: E2 0E 00 C5 08 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 CA [07:42:20]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [07:42:20]wFMCommunicate OK [07:42:20]SAM_PROTO_GetShiftState done [07:42:20]FM_GetShiftState done [07:42:20]opened in 1720917342 [07:42:20]opened+sec_in_day 1721003742 [07:42:20]quantity*price = 50008 [07:42:20]sum+1 = 50009 [07:42:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 26 14.07.2024 07:42 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164828 ФПД: 109980824089949 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T074222&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164828&fm=109980824089949&tin=02508201610067®Number=0000000000090829&sum=50000 [07:42:21]StoreToDocumentArchive [07:42:21]shift 447 fd 164828 [07:42:21]save to /storage/0447/doc_00164828 [07:42:21]save last doc name /storage/0447/doc_00164828 to /storage/kkm_last_doc_name [07:42:21]save OK [07:42:21]Clear old archive folders... [07:42:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:42:21]tlvbuf is 01622420 [07:42:21]SAM_PROTO_ClearQueue [07:42:21]wFMCommunicate request_size=4 [07:42:21]MH_SAM_APDU [07:42:21]CAPDU: 80 09 00 00 [07:42:21]Write to MH i2c: E2 08 00 D2 08 80 09 00 00 00 00 00 00 4C [07:42:21]Write i2c OK [07:42:21]MH_I2C_Read... [07:42:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:42:21]Read from MH i2c: E2 [07:42:21]MH_I2C_Read... [07:42:21]Read from MH i2c: E2 03 00 [07:42:21]MH_I2C_Read... [07:42:21]Read from MH i2c: E2 03 00 D2 08 00 90 00 4E [07:42:21]RAPDU: 90 00 [07:42:21]wFMCommunicate OK [07:42:21]SAM_PROTO_ClearQueue done [07:42:21]KKMCreateOFDPacket [07:42:21]OFDProtocolAddRootSTLVToBuf [07:42:21]FM_MakeSignedData [07:42:21]FM_MakeSignedData [07:42:21]SAM_PROTO_SignData [07:42:21]wFMCommunicate request_size=4 [07:42:21]MH_SAM_APDU [07:42:21]CAPDU: 80 0D 01 02 [07:42:21]Write to MH i2c: E2 08 00 D3 08 80 0D 01 02 00 00 00 00 54 [07:42:21]Write i2c OK [07:42:21]MH_I2C_Read... [07:42:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:42:21]Read from MH i2c: E2 [07:42:21]MH_I2C_Read... [07:42:21]Read from MH i2c: E2 03 00 [07:42:21]MH_I2C_Read... [07:42:21]Read from MH i2c: E2 03 00 D3 08 00 90 00 4F [07:42:21]RAPDU: 90 00 [07:42:21]wFMCommunicate OK [07:42:21]wFMCommunicate request_size=255 [07:42:21]MH_SAM_APDU [07:42:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 1A 00 00 00 F4 03 04 00 5E 81 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DC 83 02 00 35 04 06 00 64 [07:42:21]Write to MH i2c: E2 02 01 D4 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 1A 00 00 00 F4 03 04 00 5E 81 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DC 83 02 00 35 04 06 00 64 00 00 44 [07:42:21]Write i2c OK [07:42:21]MH_I2C_Read... [07:42:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:42:22]Read from MH i2c: E2 [07:42:22]MH_I2C_Read... [07:42:22]Read from MH i2c: E2 03 00 [07:42:22]MH_I2C_Read... [07:42:22]Read from MH i2c: E2 03 00 D4 08 00 90 00 50 [07:42:22]RAPDU: 90 00 [07:42:22]wFMCommunicate OK [07:42:22]wFMCommunicate request_size=10 [07:42:22]MH_SAM_APDU [07:42:22]CAPDU: 80 0D 02 02 05 06 E7 F3 B5 5D [07:42:22]Write to MH i2c: E2 0D 00 D5 08 80 0D 02 02 05 00 06 E7 F3 B5 5D 00 00 53 [07:42:22]Write i2c OK [07:42:22]MH_I2C_Read... [07:42:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:42:22]Read from MH i2c: E2 [07:42:22]MH_I2C_Read... [07:42:22]Read from MH i2c: E2 03 00 [07:42:22]MH_I2C_Read... [07:42:22]Read from MH i2c: E2 03 00 D5 08 00 90 00 51 [07:42:22]RAPDU: 90 00 [07:42:22]wFMCommunicate OK [07:42:22]wFMCommunicate request_size=4 [07:42:22]MH_SAM_APDU [07:42:22]CAPDU: 80 0D 03 02 [07:42:22]Write to MH i2c: E2 08 00 D6 08 80 0D 03 02 00 00 00 00 59 [07:42:22]Write i2c OK [07:42:22]MH_I2C_Read... [07:42:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:42:22]Read from MH i2c: E2 [07:42:22]MH_I2C_Read... [07:42:22]Read from MH i2c: E2 0B 00 [07:42:22]MH_I2C_Read... [07:42:22]Read from MH i2c: E2 0B 00 D6 08 00 09 5E 98 A6 8D 92 A8 5A 90 00 20 [07:42:22]RAPDU: 09 5E 98 A6 8D 92 A8 5A 90 00 [07:42:22]wFMCommunicate OK [07:42:22]SAM_PROTO_SignData done [07:42:22]FM_MakeSignedData done [07:42:22]CreateOFDProtocolMessage [07:42:22]wFMCommunicate request_size=4 [07:42:22]MH_SAM_APDU [07:42:22]CAPDU: 80 11 00 00 [07:42:22]Write to MH i2c: E2 08 00 D7 08 80 11 00 00 00 00 00 00 59 [07:42:22]Write i2c OK [07:42:22]MH_I2C_Read... [07:42:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:42:22]Read from MH i2c: E2 [07:42:22]MH_I2C_Read... [07:42:22]Read from MH i2c: E2 17 00 [07:42:22]MH_I2C_Read... [07:42:22]Read from MH i2c: E2 17 00 D7 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 AF [07:42:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [07:42:22]wFMCommunicate OK [07:42:22]CreateOFDProtocolMessage done [07:42:22]OFDSenderStorePacket 164828 [07:42:22]StoreOFDPacket docnum=164828 [07:42:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 E0 19 07 01 3E 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 1A 00 00 00 F4 03 04 00 5E 81 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DC 83 02 00 35 04 06 00 64 06 E7 F3 B5 5D 09 5E 98 A6 8D 92 A8 5A [07:42:22]CheckFolder [07:42:22]dirname=/storage/ofd_packets [07:42:22]CheckFolder done [07:42:22]ProducePacketName [07:42:22]name=ofd_packets/00164828 [07:42:22]NVStorageSaveData ofd_packets/00164828 [07:42:22]File name is /storage/ofd_packets/00164828 [07:42:22]Write 301 bytes [07:42:22]NVStorageSaveData done [07:42:22]OFDSenderStorePacket done [07:42:22]KKMCreateOFDPacket done [07:42:22]NVStorageSaveData kkm_last_timestamp [07:42:22]File name is /storage/kkm_last_timestamp [07:42:22]Write 4 bytes [07:42:22]NVStorageSaveData done [07:42:22]OFD Sender: Processing packet 164828 [packets to send 104, broken 103] [07:42:22]ProducePacketName [07:42:22]name=ofd_packets/00164828 [07:42:22]OFD Sender: To server: pG, [07:42:22]CommunicateWithHost lk.salyk.kg:30040 [07:42:22]ConnectInit lk.salyk.kg [07:42:22]ExternCall_PrintAddStr [07:42:22]wPrintStart [07:42:22]Write to MH i2c: 01 00 00 D8 08 E0 [07:42:22]Write i2c OK [07:42:22]MH_I2C_Read... [07:42:22]Read from MH i2c: 01 [07:42:22]MH_I2C_Read... [07:42:22]Read from MH i2c: 01 07 00 [07:42:22]MH_I2C_Read... [07:42:22]Read from MH i2c: 01 07 00 D8 08 00 00 00 00 00 FF 0F F5 [07:42:22]RasterBufferAndPrint [07:42:22]line Счет N : (1)458923 [07:42:22]line ИНН: 02508201610067 [07:42:22]line Контрольно-Кассовый Чек [07:42:22]line ПРОДАЖА [07:42:22]line ТРК (МРК, ГНК) : 12 [07:42:22]line Товар: 2710124130 [07:42:22]line Аи-92-К-5 [07:42:22]line 7.600 * 65.80 [07:42:22]line = 500.08 [07:42:22]line НДС 12% НСП 1% [07:42:22]line > о реализуемом товаре [07:42:22]line ОКРУГЛЕНИЕ: -0.08 [07:42:22]line ИТОГО: 500.00 [07:42:22]line Внесено: 500.00 [07:42:22]line СДАЧА: 0.00 [07:42:22]line НСП 1% : 4.42 [07:42:22]line НДС 12% : 53.11 [07:42:22]line Наличными: 500.00 [07:42:22]line Безнал.: 0.00 [07:42:22]line Место: АЗС № 72 "Партнер Нефть" [07:42:22]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [07:42:22]line СНО: Общий режим [07:42:22]line Чек 26 14.07.2024 07:42 [07:42:22]line Смена: 447 ФФД: 1.0 [07:42:22]line ЗНМ: 0300000160 [07:42:22]line РНМ: 0000000000090829 [07:42:22]line Версия ККМ: 001 [07:42:22]line ФМ: 0000000000874718 [07:42:22]line ФД: 164828 [07:42:22]line ФПД: 109980824089949 [07:42:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T074222&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164828&fm=109980824089949&tin=02508201610067®Number=0000000000090829&sum=50000 [07:42:22]Connected sock=11 [07:42:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 E0 19 07 01 3E 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 1A 00 00 00 F4 03 04 00 5E 81 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DC 83 02 00 35 04 06 00 64 06 E7 F3 B5 5D 09 5E 98 A6 8D 92 A8 5A [07:42:22]written 0, free lines is 4095 [07:42:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 C1 C4 47 00 A7 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 38 37 34 37 31 38 10 04 04 00 DC 83 02 00 F4 03 04 00 EC 27 93 66 B6 04 01 00 00 96 99 6F 6C 51 EF 86 CE [07:42:22]CommunicateWithHost err = 0 [07:42:22]CheckOFDResponse [07:42:22]1017 (14) - 77093643461234 [07:42:22]1041 (16) - 0000000000874718 [07:42:22]1040 (4) - 164828 [07:42:22]1012 (4) - 14.07.2024 01:20 [07:42:22]1206 (1) - 0 [07:42:22]OFD Sender: Remove packet 164828 [07:42:22]ProducePacketName [07:42:22]name=ofd_packets/00164828 [07:42:22]NVStorageDeleteData [07:42:23]Write to MH i2c: 01 00 00 02 09 0B [07:42:23]Write i2c OK [07:42:23]MH_I2C_Read... [07:42:23]Read from MH i2c: 01 [07:42:23]MH_I2C_Read... [07:42:23]Read from MH i2c: 01 07 00 [07:42:23]MH_I2C_Read... [07:42:23]Read from MH i2c: 01 07 00 02 09 00 00 00 00 00 02 0D 21 [07:42:23]RasterBufferAndPrint [07:42:23]line [07:42:23]line [07:42:23]line [07:42:23]line [07:42:23]line [07:42:23]written 0, free lines is 3336 [07:42:23]MH_Cut [07:42:23]Write to MH i2c: D1 01 00 09 09 01 E4 [07:42:23]Write i2c OK [07:42:23]MH_I2C_Read... [07:42:23]Read from MH i2c: D1 [07:42:23]MH_I2C_Read... [07:42:23]Read from MH i2c: D1 01 00 [07:42:23]MH_I2C_Read... [07:42:23]Read from MH i2c: D1 01 00 09 09 00 E3 [07:42:23]Write to MH i2c: 01 00 00 0A 09 13 [07:42:23]Write i2c OK [07:42:23]MH_I2C_Read... [07:42:23]OFD Sender: No OFD packet to send [07:42:23]*** Cut start [07:42:23]*** Partial cut [07:42:23]*** CUTSNS_PIN = 1 [07:42:23]*** CUTSNS_PIN = 0 [07:42:24]*** Brake cut motor [07:42:24]Read from MH i2c: 01 [07:42:24]MH_I2C_Read... [07:42:24]*** Stop cut motor [07:42:24]*** Cut end [07:42:24]Read from MH i2c: 01 07 00 [07:42:24]MH_I2C_Read... [07:42:24]Read from MH i2c: 01 07 00 0A 09 00 00 00 00 00 FF 0F 28 [07:42:24]process_action close_receipt done [07:42:24]requested_data is exist [07:42:24]produce_requested_data [07:42:24]requested_item fm.sn is exist - process it [07:42:24]wFMCommunicate request_size=4 [07:42:24]MH_SAM_APDU [07:42:24]CAPDU: 80 11 00 00 [07:42:24]Write to MH i2c: E2 08 00 0B 09 80 11 00 00 00 00 00 00 8E [07:42:24]Write i2c OK [07:42:24]MH_I2C_Read... [07:42:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:42:24]Read from MH i2c: E2 [07:42:24]MH_I2C_Read... [07:42:24]Read from MH i2c: E2 17 00 [07:42:24]MH_I2C_Read... [07:42:24]Read from MH i2c: E2 17 00 0B 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E4 [07:42:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [07:42:24]wFMCommunicate OK [07:42:24]requested_item fd.num is exist - process it [07:42:24]SAM_PROTO_GetFieldsCounters [07:42:24]wFMCommunicate request_size=4 [07:42:24]MH_SAM_APDU [07:42:24]CAPDU: 80 13 00 00 [07:42:24]Write to MH i2c: E2 08 00 0C 09 80 13 00 00 00 00 00 00 91 [07:42:24]Write i2c OK [07:42:24]MH_I2C_Read... [07:42:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:42:24]Read from MH i2c: E2 [07:42:24]MH_I2C_Read... [07:42:24]Read from MH i2c: E2 62 00 [07:42:24]MH_I2C_Read... [07:42:24]Read from MH i2c: E2 62 00 0C 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 DC 83 02 00 0E 04 04 00 BF 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 27 [07:42:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 DC 83 02 00 0E 04 04 00 BF 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 [07:42:24]wFMCommunicate OK [07:42:24]SAM_PROTO_GetFieldsCounters done [07:42:24]requested_item shift.num is exist - process it [07:42:24]requested_item shift.opened is exist - process it [07:42:24]req_shift_opened [07:42:24]FM_GetShiftState [07:42:24]SAM_PROTO_GetShiftState [07:42:24]wFMCommunicate request_size=4 [07:42:24]MH_SAM_APDU [07:42:24]CAPDU: 80 13 01 00 [07:42:24]Write to MH i2c: E2 08 00 0D 09 80 13 01 00 00 00 00 00 93 [07:42:24]Write i2c OK [07:42:24]MH_I2C_Read... [07:42:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:42:24]Read from MH i2c: E2 [07:42:24]MH_I2C_Read... [07:42:24]Read from MH i2c: E2 0E 00 [07:42:24]MH_I2C_Read... [07:42:24]Read from MH i2c: E2 0E 00 0D 09 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 13 [07:42:24]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [07:42:24]wFMCommunicate OK [07:42:24]SAM_PROTO_GetShiftState done [07:42:24]FM_GetShiftState done [07:42:24]req_shift_opened done [07:42:24]requested_item shift.open_date is exist - process it [07:42:24]req_shift_open_date [07:42:24]req_shift_open_date done [07:42:24]produce_requested_data done [07:42:24]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164828,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [07:42:24]process_action_free close_receipt [07:42:24]json_value_free [07:42:24]json_value_free done [07:42:24]process_json_proto returns [07:42:24]Send response to host [07:42:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164828,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [07:42:24]free response buf [07:42:24]execute_script done [07:42:24]execute_script returns [07:42:24]free content buf [07:42:24]Sock 9.Close socket [07:42:24]Sock 9.Thread stoped [07:42:28]OFD Sender: No OFD packet to send [07:42:33]OFD Sender: No OFD packet to send [07:42:38]OFD Sender: No OFD packet to send [07:42:43]OFD Sender: No OFD packet to send [07:42:48]OFD Sender: No OFD packet to send [07:42:53]OFD Sender: No OFD packet to send [07:42:58]OFD Sender: No OFD packet to send [07:43:03]OFD Sender: No OFD packet to send [07:43:08]OFD Sender: No OFD packet to send [07:43:13]OFD Sender: No OFD packet to send [07:43:18]OFD Sender: No OFD packet to send [07:43:23]OFD Sender: No OFD packet to send [07:43:28]OFD Sender: No OFD packet to send [07:43:33]OFD Sender: No OFD packet to send [07:43:38]OFD Sender: No OFD packet to send [07:43:43]OFD Sender: No OFD packet to send [07:43:48]OFD Sender: No OFD packet to send [07:43:53]OFD Sender: No OFD packet to send [07:43:58]OFD Sender: No OFD packet to send [07:44:03]OFD Sender: No OFD packet to send [07:44:08]OFD Sender: No OFD packet to send [07:44:13]OFD Sender: No OFD packet to send [07:44:18]OFD Sender: No OFD packet to send [07:44:23]OFD Sender: No OFD packet to send [07:44:28]OFD Sender: No OFD packet to send [07:44:33]OFD Sender: No OFD packet to send [07:44:38]OFD Sender: No OFD packet to send [07:44:43]OFD Sender: No OFD packet to send [07:44:48]OFD Sender: No OFD packet to send [07:44:53]OFD Sender: No OFD packet to send [07:44:57]accept exits with 8 [07:44:57]New connection [07:44:57]New thread 3067428196 created [07:44:57]Thread 3067571556 joined [07:44:57]Waiting for new connection... [07:44:57] Sock 8.Parse request [07:44:57]Sock 8.Check first char [07:44:57]Sock 8.First char is OK [07:44:57]request: POST /json_proto HTTP/1.0 [07:44:57]Method: POST [07:44:57]URL: /json_proto [07:44:57]Method is POST - this is cgi request [07:44:57]url: /json_proto [07:44:57]query_string will be loaded in cgi processing [07:44:57]execute_cgi json_proto POST (null) [07:44:57]execute_cgi path=json_proto method=POST [07:44:57]POST find Content-Length [07:44:57]Host: 172.17.56.4:8080 [07:44:57]Content-Length: 679 [07:44:57]Content-Type: application/json [07:44:57] [07:44:57]POST finish read [07:44:57]Found Content-Length = 679 [07:44:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458924", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:44:57]execute_script... [07:44:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458924", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:44:57]POST & json_proto [07:44:57]process_json_proto [07:44:57]json parsed OK: [07:44:57]protocol is kg_v1.0 [07:44:57]action value=close_receipt [07:44:57]process_action close_receipt [07:44:57]cmd_close_receipt [07:44:57]MH_GetDate [07:44:57]Write to MH i2c: F0 00 00 0E 09 06 [07:44:57]Write i2c OK [07:44:57]MH_I2C_Read... [07:44:57]Read from MH i2c: F0 [07:44:57]MH_I2C_Read... [07:44:57]Read from MH i2c: F0 09 00 [07:44:57]MH_I2C_Read... [07:44:57]Read from MH i2c: F0 09 00 0E 09 00 FB 81 93 66 C9 DC B2 64 3F [07:44:57]GetLastDocTimeStamp 1720942942 [07:44:57]current date 1720943099 [07:44:57]FM_GetShiftState [07:44:57]SAM_PROTO_GetShiftState [07:44:57]wFMCommunicate request_size=4 [07:44:57]MH_SAM_APDU [07:44:57]CAPDU: 80 13 01 00 [07:44:57]Write to MH i2c: E2 08 00 0F 09 80 13 01 00 00 00 00 00 95 [07:44:57]Write i2c OK [07:44:57]MH_I2C_Read... [07:44:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:44:57]Read from MH i2c: E2 [07:44:57]MH_I2C_Read... [07:44:57]Read from MH i2c: E2 0E 00 [07:44:57]MH_I2C_Read... [07:44:57]Read from MH i2c: E2 0E 00 0F 09 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 15 [07:44:57]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [07:44:57]wFMCommunicate OK [07:44:57]SAM_PROTO_GetShiftState done [07:44:57]FM_GetShiftState done [07:44:57]opened in 1720917342 [07:44:57]opened+sec_in_day 1721003742 [07:44:57]quantity*price = 100012 [07:44:57]sum+1 = 100014 [07:44:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 27 14.07.2024 07:44 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164829 ФПД: 150608170611109 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T074459&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164829&fm=150608170611109&tin=02508201610067®Number=0000000000090829&sum=100000 [07:44:58]StoreToDocumentArchive [07:44:58]shift 447 fd 164829 [07:44:58]save to /storage/0447/doc_00164829 [07:44:58]save last doc name /storage/0447/doc_00164829 to /storage/kkm_last_doc_name [07:44:58]save OK [07:44:58]Clear old archive folders... [07:44:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:44:58]tlvbuf is 0165AE80 [07:44:58]SAM_PROTO_ClearQueue [07:44:58]wFMCommunicate request_size=4 [07:44:58]MH_SAM_APDU [07:44:58]CAPDU: 80 09 00 00 [07:44:58]Write to MH i2c: E2 08 00 1C 09 80 09 00 00 00 00 00 00 97 [07:44:58]Write i2c OK [07:44:58]MH_I2C_Read... [07:44:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:44:58]Read from MH i2c: E2 [07:44:58]MH_I2C_Read... [07:44:58]Read from MH i2c: E2 03 00 [07:44:58]MH_I2C_Read... [07:44:58]Read from MH i2c: E2 03 00 1C 09 00 90 00 99 [07:44:58]RAPDU: 90 00 [07:44:58]wFMCommunicate OK [07:44:58]SAM_PROTO_ClearQueue done [07:44:58]KKMCreateOFDPacket [07:44:58]OFDProtocolAddRootSTLVToBuf [07:44:58]FM_MakeSignedData [07:44:58]FM_MakeSignedData [07:44:58]SAM_PROTO_SignData [07:44:58]wFMCommunicate request_size=4 [07:44:58]MH_SAM_APDU [07:44:58]CAPDU: 80 0D 01 02 [07:44:58]Write to MH i2c: E2 08 00 1D 09 80 0D 01 02 00 00 00 00 9F [07:44:58]Write i2c OK [07:44:58]MH_I2C_Read... [07:44:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:44:58]Read from MH i2c: E2 [07:44:58]MH_I2C_Read... [07:44:58]Read from MH i2c: E2 03 00 [07:44:58]MH_I2C_Read... [07:44:58]Read from MH i2c: E2 03 00 1D 09 00 90 00 9A [07:44:58]RAPDU: 90 00 [07:44:58]wFMCommunicate OK [07:44:58]wFMCommunicate request_size=255 [07:44:58]MH_SAM_APDU [07:44:58]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 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 FB 81 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DD 83 02 00 35 04 06 00 88 FA 32 82 [07:44:58]Write to MH i2c: E2 02 01 1E 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 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 FB 81 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DD 83 02 00 35 04 06 00 88 FA 32 82 00 00 48 [07:44:58]Write i2c OK [07:44:58]MH_I2C_Read... [07:44:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:44:59]Read from MH i2c: E2 [07:44:59]MH_I2C_Read... [07:44:59]Read from MH i2c: E2 03 00 [07:44:59]MH_I2C_Read... [07:44:59]Read from MH i2c: E2 03 00 1E 09 00 90 00 9B [07:44:59]RAPDU: 90 00 [07:44:59]wFMCommunicate OK [07:44:59]wFMCommunicate request_size=7 [07:44:59]MH_SAM_APDU [07:44:59]CAPDU: 80 0D 02 02 02 71 A5 [07:44:59]Write to MH i2c: E2 0A 00 1F 09 80 0D 02 02 02 00 71 A5 00 00 BC [07:44:59]Write i2c OK [07:44:59]MH_I2C_Read... [07:44:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:44:59]Read from MH i2c: E2 [07:44:59]MH_I2C_Read... [07:44:59]Read from MH i2c: E2 03 00 [07:44:59]MH_I2C_Read... [07:44:59]Read from MH i2c: E2 03 00 1F 09 00 90 00 9C [07:44:59]RAPDU: 90 00 [07:44:59]wFMCommunicate OK [07:44:59]wFMCommunicate request_size=4 [07:44:59]MH_SAM_APDU [07:44:59]CAPDU: 80 0D 03 02 [07:44:59]Write to MH i2c: E2 08 00 20 09 80 0D 03 02 00 00 00 00 A4 [07:44:59]Write i2c OK [07:44:59]MH_I2C_Read... [07:44:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:44:59]Read from MH i2c: E2 [07:44:59]MH_I2C_Read... [07:44:59]Read from MH i2c: E2 0B 00 [07:44:59]MH_I2C_Read... [07:44:59]Read from MH i2c: E2 0B 00 20 09 00 8C C6 92 F7 DE 45 36 08 90 00 E1 [07:44:59]RAPDU: 8C C6 92 F7 DE 45 36 08 90 00 [07:44:59]wFMCommunicate OK [07:44:59]SAM_PROTO_SignData done [07:44:59]FM_MakeSignedData done [07:44:59]CreateOFDProtocolMessage [07:44:59]wFMCommunicate request_size=4 [07:44:59]MH_SAM_APDU [07:44:59]CAPDU: 80 11 00 00 [07:44:59]Write to MH i2c: E2 08 00 21 09 80 11 00 00 00 00 00 00 A4 [07:44:59]Write i2c OK [07:44:59]MH_I2C_Read... [07:44:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:44:59]Read from MH i2c: E2 [07:44:59]MH_I2C_Read... [07:44:59]Read from MH i2c: E2 17 00 [07:44:59]MH_I2C_Read... [07:44:59]Read from MH i2c: E2 17 00 21 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 FA [07:44:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [07:44:59]wFMCommunicate OK [07:44:59]CreateOFDProtocolMessage done [07:44:59]OFDSenderStorePacket 164829 [07:44:59]StoreOFDPacket docnum=164829 [07:44:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 90 DB 04 01 2D 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 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 FB 81 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DD 83 02 00 35 04 06 00 88 FA 32 82 71 A5 8C C6 92 F7 DE 45 36 08 [07:44:59]CheckFolder [07:44:59]dirname=/storage/ofd_packets [07:44:59]CheckFolder done [07:44:59]ProducePacketName [07:44:59]name=ofd_packets/00164829 [07:44:59]NVStorageSaveData ofd_packets/00164829 [07:44:59]File name is /storage/ofd_packets/00164829 [07:44:59]Write 298 bytes [07:44:59]NVStorageSaveData done [07:44:59]OFDSenderStorePacket done [07:44:59]KKMCreateOFDPacket done [07:44:59]NVStorageSaveData kkm_last_timestamp [07:44:59]File name is /storage/kkm_last_timestamp [07:44:59]Write 4 bytes [07:44:59]NVStorageSaveData done [07:44:59]ExternCall_PrintAddStr [07:44:59]wPrintStart [07:44:59]Write to MH i2c: 01 00 00 22 09 2B [07:44:59]Write i2c OK [07:44:59]MH_I2C_Read... [07:44:59]Read from MH i2c: 01 [07:44:59]MH_I2C_Read... [07:44:59]Read from MH i2c: 01 07 00 [07:44:59]MH_I2C_Read... [07:44:59]Read from MH i2c: 01 07 00 22 09 00 00 00 00 00 FF 0F 40 [07:44:59]RasterBufferAndPrint [07:44:59]line Счет N : (1)458924 [07:44:59]line ИНН: 02508201610067 [07:44:59]line Контрольно-Кассовый Чек [07:44:59]line ПРОДАЖА [07:44:59]line ТРК (МРК, ГНК) : 11 [07:44:59]line Товар: 2710194210 [07:44:59]line ДТ-К-5 [07:44:59]line 13.910 * 71.90 [07:44:59]line = 1000.13 [07:44:59]line НДС 12% НСП 1% [07:44:59]line > о реализуемом товаре [07:44:59]line ОКРУГЛЕНИЕ: -0.13 [07:44:59]line ИТОГО: 1000.00 [07:44:59]line Внесено: 1000.00 [07:44:59]line СДАЧА: 0.00 [07:44:59]line НСП 1% : 8.85 [07:44:59]line НДС 12% : 106.21 [07:44:59]line Наличными: 1000.00 [07:44:59]line Безнал.: 0.00 [07:44:59]line Место: АЗС № 72 "Партнер Нефть" [07:44:59]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [07:44:59]line СНО: Общий режим [07:44:59]line Чек 27 14.07.2024 07:44 [07:44:59]line Смена: 447 ФФД: 1.0 [07:44:59]line ЗНМ: 0300000160 [07:44:59]line РНМ: 0000000000090829 [07:44:59]line Версия ККМ: 001 [07:44:59]line ФМ: 0000000000874718 [07:44:59]line ФД: 164829 [07:44:59]line ФПД: 150608170611109 [07:44:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T074459&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164829&fm=150608170611109&tin=02508201610067®Number=0000000000090829&sum=100000 [07:44:59]OFD Sender: Processing packet 164829 [packets to send 104, broken 103] [07:44:59]ProducePacketName [07:44:59]name=ofd_packets/00164829 [07:44:59]OFD Sender: To server: pG, [07:44:59]CommunicateWithHost lk.salyk.kg:30040 [07:44:59]ConnectInit lk.salyk.kg [07:44:59]written 0, free lines is 4095 [07:44:59]Connected sock=10 [07:44:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 90 DB 04 01 2D 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 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 FB 81 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DD 83 02 00 35 04 06 00 88 FA 32 82 71 A5 8C C6 92 F7 DE 45 36 08 [07:44:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 50 2B 47 00 68 F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DD 83 02 00 F4 03 04 00 89 28 93 66 B6 04 01 00 00 D5 D3 F2 57 E6 6A D3 20 [07:44:59]CommunicateWithHost err = 0 [07:44:59]CheckOFDResponse [07:44:59]1017 (14) - 77093643461234 [07:44:59]1041 (16) - 0000000000874718 [07:44:59]1040 (4) - 164829 [07:44:59]1012 (4) - 14.07.2024 01:23 [07:44:59]1206 (1) - 0 [07:44:59]OFD Sender: Remove packet 164829 [07:44:59]ProducePacketName [07:44:59]name=ofd_packets/00164829 [07:44:59]NVStorageDeleteData [07:44:59]Write to MH i2c: 01 00 00 4C 09 55 [07:44:59]Write i2c OK [07:44:59]MH_I2C_Read... [07:44:59]Read from MH i2c: 01 [07:44:59]MH_I2C_Read... [07:44:59]Read from MH i2c: 01 07 00 [07:44:59]MH_I2C_Read... [07:44:59]Read from MH i2c: 01 07 00 4C 09 00 00 00 00 00 F2 0C 5A [07:44:59]RasterBufferAndPrint [07:44:59]line [07:44:59]line [07:44:59]line [07:44:59]line [07:44:59]line [07:44:59]written 0, free lines is 3322 [07:44:59]MH_Cut [07:44:59]Write to MH i2c: D1 01 00 53 09 01 2E [07:44:59]Write i2c OK [07:44:59]MH_I2C_Read... [07:44:59]Read from MH i2c: D1 [07:44:59]MH_I2C_Read... [07:44:59]Read from MH i2c: D1 01 00 [07:44:59]MH_I2C_Read... [07:44:59]Read from MH i2c: D1 01 00 53 09 00 2D [07:44:59]Write to MH i2c: 01 00 00 54 09 5D [07:44:59]Write i2c OK [07:44:59]MH_I2C_Read... [07:45:00]OFD Sender: No OFD packet to send [07:45:00]*** Cut start [07:45:00]*** Partial cut [07:45:00]*** CUTSNS_PIN = 1 [07:45:00]*** CUTSNS_PIN = 0 [07:45:00]*** Brake cut motor [07:45:01]Read from MH i2c: 01 [07:45:01]MH_I2C_Read... [07:45:01]*** Stop cut motor [07:45:01]*** Cut end [07:45:01]Read from MH i2c: 01 07 00 [07:45:01]MH_I2C_Read... [07:45:01]Read from MH i2c: 01 07 00 54 09 00 00 00 00 00 FF 0F 72 [07:45:01]process_action close_receipt done [07:45:01]requested_data is exist [07:45:01]produce_requested_data [07:45:01]requested_item fm.sn is exist - process it [07:45:01]wFMCommunicate request_size=4 [07:45:01]MH_SAM_APDU [07:45:01]CAPDU: 80 11 00 00 [07:45:01]Write to MH i2c: E2 08 00 55 09 80 11 00 00 00 00 00 00 D8 [07:45:01]Write i2c OK [07:45:01]MH_I2C_Read... [07:45:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:45:01]Read from MH i2c: E2 [07:45:01]MH_I2C_Read... [07:45:01]Read from MH i2c: E2 17 00 [07:45:01]MH_I2C_Read... [07:45:01]Read from MH i2c: E2 17 00 55 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 2E [07:45:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [07:45:01]wFMCommunicate OK [07:45:01]requested_item fd.num is exist - process it [07:45:01]SAM_PROTO_GetFieldsCounters [07:45:01]wFMCommunicate request_size=4 [07:45:01]MH_SAM_APDU [07:45:01]CAPDU: 80 13 00 00 [07:45:01]Write to MH i2c: E2 08 00 56 09 80 13 00 00 00 00 00 00 DB [07:45:01]Write i2c OK [07:45:01]MH_I2C_Read... [07:45:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:45:01]Read from MH i2c: E2 [07:45:01]MH_I2C_Read... [07:45:01]Read from MH i2c: E2 62 00 [07:45:01]MH_I2C_Read... [07:45:01]Read from MH i2c: E2 62 00 56 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 DD 83 02 00 0E 04 04 00 BF 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 75 [07:45:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 DD 83 02 00 0E 04 04 00 BF 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 [07:45:01]wFMCommunicate OK [07:45:01]SAM_PROTO_GetFieldsCounters done [07:45:01]requested_item shift.num is exist - process it [07:45:01]requested_item shift.opened is exist - process it [07:45:01]req_shift_opened [07:45:01]FM_GetShiftState [07:45:01]SAM_PROTO_GetShiftState [07:45:01]wFMCommunicate request_size=4 [07:45:01]MH_SAM_APDU [07:45:01]CAPDU: 80 13 01 00 [07:45:01]Write to MH i2c: E2 08 00 57 09 80 13 01 00 00 00 00 00 DD [07:45:01]Write i2c OK [07:45:01]MH_I2C_Read... [07:45:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:45:01]Read from MH i2c: E2 [07:45:01]MH_I2C_Read... [07:45:01]Read from MH i2c: E2 0E 00 [07:45:01]MH_I2C_Read... [07:45:01]Read from MH i2c: E2 0E 00 57 09 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 5D [07:45:01]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [07:45:01]wFMCommunicate OK [07:45:01]SAM_PROTO_GetShiftState done [07:45:01]FM_GetShiftState done [07:45:01]req_shift_opened done [07:45:01]requested_item shift.open_date is exist - process it [07:45:01]req_shift_open_date [07:45:01]req_shift_open_date done [07:45:01]produce_requested_data done [07:45:01]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164829,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [07:45:01]process_action_free close_receipt [07:45:01]json_value_free [07:45:01]json_value_free done [07:45:01]process_json_proto returns [07:45:01]Send response to host [07:45:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164829,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [07:45:01]free response buf [07:45:01]execute_script done [07:45:01]execute_script returns [07:45:01]free content buf [07:45:01]Sock 8.Close socket [07:45:01]Sock 8.Thread stoped [07:45:05]OFD Sender: No OFD packet to send [07:45:10]OFD Sender: No OFD packet to send [07:45:15]OFD Sender: No OFD packet to send [07:45:20]OFD Sender: No OFD packet to send [07:45:25]OFD Sender: No OFD packet to send [07:45:30]OFD Sender: No OFD packet to send [07:45:35]OFD Sender: No OFD packet to send [07:45:40]OFD Sender: No OFD packet to send [07:45:45]OFD Sender: No OFD packet to send [07:45:50]OFD Sender: No OFD packet to send [07:45:55]OFD Sender: No OFD packet to send [07:46:00]OFD Sender: No OFD packet to send [07:46:05]OFD Sender: No OFD packet to send [07:46:09]accept exits with 9 [07:46:09]New connection [07:46:09]New thread 3067571556 created [07:46:09]Thread 3067428196 joined [07:46:09]Waiting for new connection... [07:46:09] Sock 9.Parse request [07:46:09]Sock 9.Check first char [07:46:09]Sock 9.First char is OK [07:46:09]request: POST /json_proto HTTP/1.0 [07:46:09]Method: POST [07:46:09]URL: /json_proto [07:46:09]Method is POST - this is cgi request [07:46:09]url: /json_proto [07:46:09]query_string will be loaded in cgi processing [07:46:09]execute_cgi json_proto POST (null) [07:46:09]execute_cgi path=json_proto method=POST [07:46:09]POST find Content-Length [07:46:09]Host: 172.17.56.4:8080 [07:46:09]Content-Length: 677 [07:46:09]Content-Type: application/json [07:46:09] [07:46:09]POST finish read [07:46:09]Found Content-Length = 677 [07:46:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458925", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.480, "sum" : 360.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 360.00, "total" : 360.00, "payments": [ { "type": 0, "sum" : 360.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:46:09]execute_script... [07:46: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)458925", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.480, "sum" : 360.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 360.00, "total" : 360.00, "payments": [ { "type": 0, "sum" : 360.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:46:09]POST & json_proto [07:46:09]process_json_proto [07:46:09]json parsed OK: [07:46:09]protocol is kg_v1.0 [07:46:09]action value=close_receipt [07:46:09]process_action close_receipt [07:46:09]cmd_close_receipt [07:46:09]MH_GetDate [07:46:09]Write to MH i2c: F0 00 00 58 09 50 [07:46:09]Write i2c OK [07:46:09]MH_I2C_Read... [07:46:09]Read from MH i2c: F0 [07:46:09]MH_I2C_Read... [07:46:09]Read from MH i2c: F0 09 00 [07:46:09]MH_I2C_Read... [07:46:09]Read from MH i2c: F0 09 00 58 09 00 43 82 93 66 C9 DC B2 64 D2 [07:46:09]GetLastDocTimeStamp 1720943099 [07:46:09]current date 1720943171 [07:46:09]FM_GetShiftState [07:46:09]SAM_PROTO_GetShiftState [07:46:09]wFMCommunicate request_size=4 [07:46:09]MH_SAM_APDU [07:46:09]CAPDU: 80 13 01 00 [07:46:09]Write to MH i2c: E2 08 00 59 09 80 13 01 00 00 00 00 00 DF [07:46:09]Write i2c OK [07:46:09]MH_I2C_Read... [07:46:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:46:09]Read from MH i2c: E2 [07:46:09]MH_I2C_Read... [07:46:09]Read from MH i2c: E2 0E 00 [07:46:09]MH_I2C_Read... [07:46:09]Read from MH i2c: E2 0E 00 59 09 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 5F [07:46:09]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [07:46:09]wFMCommunicate OK [07:46:09]SAM_PROTO_GetShiftState done [07:46:09]FM_GetShiftState done [07:46:09]opened in 1720917342 [07:46:09]opened+sec_in_day 1721003742 [07:46:09]quantity*price = 36058 [07:46:09]sum+1 = 36059 [07:46:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.58 ИТОГО: 360.00 Внесено: 360.00 СДАЧА: 0.00 НСП 1% : 3.19 НДС 12% : 38.29 Наличными: 360.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 28 14.07.2024 07:46 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164830 ФПД: 66550712798102 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T074611&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164830&fm=66550712798102&tin=02508201610067®Number=0000000000090829&sum=36000 [07:46:10]StoreToDocumentArchive [07:46:10]shift 447 fd 164830 [07:46:10]save to /storage/0447/doc_00164830 [07:46:10]save last doc name /storage/0447/doc_00164830 to /storage/kkm_last_doc_name [07:46:10]save OK [07:46:10]Clear old archive folders... [07:46:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:46:10]tlvbuf is B6F58920 [07:46:10]SAM_PROTO_ClearQueue [07:46:10]wFMCommunicate request_size=4 [07:46:10]MH_SAM_APDU [07:46:10]CAPDU: 80 09 00 00 [07:46:10]Write to MH i2c: E2 08 00 66 09 80 09 00 00 00 00 00 00 E1 [07:46:10]Write i2c OK [07:46:10]MH_I2C_Read... [07:46:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:46:10]Read from MH i2c: E2 [07:46:10]MH_I2C_Read... [07:46:10]Read from MH i2c: E2 03 00 [07:46:10]MH_I2C_Read... [07:46:10]Read from MH i2c: E2 03 00 66 09 00 90 00 E3 [07:46:10]RAPDU: 90 00 [07:46:10]wFMCommunicate OK [07:46:10]SAM_PROTO_ClearQueue done [07:46:10]KKMCreateOFDPacket [07:46:10]OFDProtocolAddRootSTLVToBuf [07:46:10]FM_MakeSignedData [07:46:10]FM_MakeSignedData [07:46:10]SAM_PROTO_SignData [07:46:10]wFMCommunicate request_size=4 [07:46:10]MH_SAM_APDU [07:46:10]CAPDU: 80 0D 01 02 [07:46:10]Write to MH i2c: E2 08 00 67 09 80 0D 01 02 00 00 00 00 E9 [07:46:10]Write i2c OK [07:46:10]MH_I2C_Read... [07:46:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:46:10]Read from MH i2c: E2 [07:46:10]MH_I2C_Read... [07:46:10]Read from MH i2c: E2 03 00 [07:46:10]MH_I2C_Read... [07:46:10]Read from MH i2c: E2 03 00 67 09 00 90 00 E4 [07:46:10]RAPDU: 90 00 [07:46:10]wFMCommunicate OK [07:46:10]wFMCommunicate request_size=255 [07:46:10]MH_SAM_APDU [07:46:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 68 15 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 DA 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 43 82 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DE 83 02 00 35 04 06 00 3C [07:46:10]Write to MH i2c: E2 02 01 68 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 68 15 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 DA 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 43 82 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DE 83 02 00 35 04 06 00 3C 00 00 7D [07:46:10]Write i2c OK [07:46:10]MH_I2C_Read... [07:46:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:46:11]Read from MH i2c: E2 [07:46:11]MH_I2C_Read... [07:46:11]Read from MH i2c: E2 03 00 [07:46:11]MH_I2C_Read... [07:46:11]Read from MH i2c: E2 03 00 68 09 00 90 00 E5 [07:46:11]RAPDU: 90 00 [07:46:11]wFMCommunicate OK [07:46:11]wFMCommunicate request_size=10 [07:46:11]MH_SAM_APDU [07:46:11]CAPDU: 80 0D 02 02 05 87 0B 98 8B 96 [07:46:11]Write to MH i2c: E2 0D 00 69 09 80 0D 02 02 05 00 87 0B 98 8B 96 00 00 41 [07:46:11]Write i2c OK [07:46:11]MH_I2C_Read... [07:46:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:46:11]Read from MH i2c: E2 [07:46:11]MH_I2C_Read... [07:46:11]Read from MH i2c: E2 03 00 [07:46:11]MH_I2C_Read... [07:46:11]Read from MH i2c: E2 03 00 69 09 00 90 00 E6 [07:46:11]RAPDU: 90 00 [07:46:11]wFMCommunicate OK [07:46:11]wFMCommunicate request_size=4 [07:46:11]MH_SAM_APDU [07:46:11]CAPDU: 80 0D 03 02 [07:46:11]Write to MH i2c: E2 08 00 6A 09 80 0D 03 02 00 00 00 00 EE [07:46:11]Write i2c OK [07:46:11]MH_I2C_Read... [07:46:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:46:11]Read from MH i2c: E2 [07:46:11]MH_I2C_Read... [07:46:11]Read from MH i2c: E2 0B 00 [07:46:11]MH_I2C_Read... [07:46:11]Read from MH i2c: E2 0B 00 6A 09 00 1D E9 82 8A A9 3B 28 7C 90 00 89 [07:46:11]RAPDU: 1D E9 82 8A A9 3B 28 7C 90 00 [07:46:11]wFMCommunicate OK [07:46:11]SAM_PROTO_SignData done [07:46:11]FM_MakeSignedData done [07:46:11]CreateOFDProtocolMessage [07:46:11]wFMCommunicate request_size=4 [07:46:11]MH_SAM_APDU [07:46:11]CAPDU: 80 11 00 00 [07:46:11]Write to MH i2c: E2 08 00 6B 09 80 11 00 00 00 00 00 00 EE [07:46:11]Write i2c OK [07:46:11]MH_I2C_Read... [07:46:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:46:11]Read from MH i2c: E2 [07:46:11]MH_I2C_Read... [07:46:11]Read from MH i2c: E2 17 00 [07:46:11]MH_I2C_Read... [07:46:11]Read from MH i2c: E2 17 00 6B 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 44 [07:46:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [07:46:11]wFMCommunicate OK [07:46:11]CreateOFDProtocolMessage done [07:46:11]OFDSenderStorePacket 164830 [07:46:11]StoreOFDPacket docnum=164830 [07:46:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 4C 64 07 01 F9 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 35 FF 03 08 00 03 68 15 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 DA 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 43 82 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DE 83 02 00 35 04 06 00 3C 87 0B 98 8B 96 1D E9 82 8A A9 3B 28 7C [07:46:11]CheckFolder [07:46:11]dirname=/storage/ofd_packets [07:46:11]CheckFolder done [07:46:11]ProducePacketName [07:46:11]name=ofd_packets/00164830 [07:46:11]NVStorageSaveData ofd_packets/00164830 [07:46:11]File name is /storage/ofd_packets/00164830 [07:46:11]Write 301 bytes [07:46:11]NVStorageSaveData done [07:46:11]OFDSenderStorePacket done [07:46:11]KKMCreateOFDPacket done [07:46:11]NVStorageSaveData kkm_last_timestamp [07:46:11]File name is /storage/kkm_last_timestamp [07:46:11]Write 4 bytes [07:46:11]NVStorageSaveData done [07:46:11]ExternCall_PrintAddStr [07:46:11]wPrintStart [07:46:11]Write to MH i2c: 01 00 00 6C 09 75 [07:46:11]Write i2c OK [07:46:11]MH_I2C_Read... [07:46:11]Read from MH i2c: 01 [07:46:11]MH_I2C_Read... [07:46:11]Read from MH i2c: 01 07 00 [07:46:11]MH_I2C_Read... [07:46:11]Read from MH i2c: 01 07 00 6C 09 00 00 00 00 00 FF 0F 8A [07:46:11]RasterBufferAndPrint [07:46:11]line Счет N : (1)458925 [07:46:11]line ИНН: 02508201610067 [07:46:11]line Контрольно-Кассовый Чек [07:46:11]line ПРОДАЖА [07:46:11]line ТРК (МРК, ГНК) : 22 [07:46:11]line Товар: 2710124130 [07:46:11]line Аи-92-К-5 [07:46:11]line 5.480 * 65.80 [07:46:11]line = 360.58 [07:46:11]line НДС 12% НСП 1% [07:46:11]line > о реализуемом товаре [07:46:11]line ОКРУГЛЕНИЕ: -0.58 [07:46:11]line ИТОГО: 360.00 [07:46:11]line Внесено: 360.00 [07:46:11]line СДАЧА: 0.00 [07:46:11]line НСП 1% : 3.19 [07:46:11]line НДС 12% : 38.29 [07:46:11]line Наличными: 360.00 [07:46:11]line Безнал.: 0.00 [07:46:11]line Место: АЗС № 72 "Партнер Нефть" [07:46:11]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [07:46:11]line СНО: Общий режим [07:46:11]line Чек 28 14.07.2024 07:46 [07:46:11]line Смена: 447 ФФД: 1.0 [07:46:11]line ЗНМ: 0300000160 [07:46:11]line РНМ: 0000000000090829 [07:46:11]line Версия ККМ: 001 [07:46:11]line ФМ: 0000000000874718 [07:46:11]line ФД: 164830 [07:46:11]line ФПД: 66550712798102 [07:46:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T074611&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164830&fm=66550712798102&tin=02508201610067®Number=0000000000090829&sum=36000 [07:46:11]OFD Sender: Processing packet 164830 [packets to send 104, broken 103] [07:46:11]ProducePacketName [07:46:11]name=ofd_packets/00164830 [07:46:11]OFD Sender: To server: pG, [07:46:11]CommunicateWithHost lk.salyk.kg:30040 [07:46:11]ConnectInit lk.salyk.kg [07:46:11]written 0, free lines is 4095 [07:46:11]Connected sock=10 [07:46:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 4C 64 07 01 F9 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 35 FF 03 08 00 03 68 15 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 DA 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 43 82 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DE 83 02 00 35 04 06 00 3C 87 0B 98 8B 96 1D E9 82 8A A9 3B 28 7C [07:46:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 60 39 47 00 F3 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 38 37 34 37 31 38 10 04 04 00 DE 83 02 00 F4 03 04 00 D2 28 93 66 B6 04 01 00 00 3E 7E 07 25 47 EF 4C 88 [07:46:12]CommunicateWithHost err = 0 [07:46:12]CheckOFDResponse [07:46:12]1017 (14) - 77093643461234 [07:46:12]1041 (16) - 0000000000874718 [07:46:12]1040 (4) - 164830 [07:46:12]1012 (4) - 14.07.2024 01:24 [07:46:12]1206 (1) - 0 [07:46:12]OFD Sender: Remove packet 164830 [07:46:12]ProducePacketName [07:46:12]name=ofd_packets/00164830 [07:46:12]NVStorageDeleteData [07:46:12]Write to MH i2c: 01 00 00 96 09 9F [07:46:12]Write i2c OK [07:46:12]MH_I2C_Read... [07:46:12]Read from MH i2c: 01 [07:46:12]MH_I2C_Read... [07:46:12]Read from MH i2c: 01 07 00 [07:46:12]MH_I2C_Read... [07:46:12]Read from MH i2c: 01 07 00 96 09 00 00 00 00 00 F2 0C A4 [07:46:12]RasterBufferAndPrint [07:46:12]line [07:46:12]line [07:46:12]line [07:46:12]line [07:46:12]line [07:46:12]written 0, free lines is 3322 [07:46:12]MH_Cut [07:46:12]Write to MH i2c: D1 01 00 9D 09 01 78 [07:46:12]Write i2c OK [07:46:12]MH_I2C_Read... [07:46:12]Read from MH i2c: D1 [07:46:12]MH_I2C_Read... [07:46:12]Read from MH i2c: D1 01 00 [07:46:12]MH_I2C_Read... [07:46:12]Read from MH i2c: D1 01 00 9D 09 00 77 [07:46:12]Write to MH i2c: 01 00 00 9E 09 A7 [07:46:12]Write i2c OK [07:46:12]MH_I2C_Read... [07:46:12]OFD Sender: No OFD packet to send [07:46:12]*** Cut start [07:46:12]*** Partial cut [07:46:12]*** CUTSNS_PIN = 1 [07:46:12]*** CUTSNS_PIN = 0 [07:46:13]*** Brake cut motor [07:46:13]Read from MH i2c: 01 [07:46:13]MH_I2C_Read... [07:46:13]*** Stop cut motor [07:46:13]*** Cut end [07:46:13]Read from MH i2c: 01 07 00 [07:46:13]MH_I2C_Read... [07:46:13]Read from MH i2c: 01 07 00 9E 09 00 00 00 00 00 FF 0F BC [07:46:13]process_action close_receipt done [07:46:13]requested_data is exist [07:46:13]produce_requested_data [07:46:13]requested_item fm.sn is exist - process it [07:46:13]wFMCommunicate request_size=4 [07:46:13]MH_SAM_APDU [07:46:13]CAPDU: 80 11 00 00 [07:46:13]Write to MH i2c: E2 08 00 9F 09 80 11 00 00 00 00 00 00 22 [07:46:13]Write i2c OK [07:46:13]MH_I2C_Read... [07:46:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:46:13]Read from MH i2c: E2 [07:46:13]MH_I2C_Read... [07:46:13]Read from MH i2c: E2 17 00 [07:46:13]MH_I2C_Read... [07:46:13]Read from MH i2c: E2 17 00 9F 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 78 [07:46:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [07:46:13]wFMCommunicate OK [07:46:13]requested_item fd.num is exist - process it [07:46:13]SAM_PROTO_GetFieldsCounters [07:46:13]wFMCommunicate request_size=4 [07:46:13]MH_SAM_APDU [07:46:13]CAPDU: 80 13 00 00 [07:46:13]Write to MH i2c: E2 08 00 A0 09 80 13 00 00 00 00 00 00 25 [07:46:13]Write i2c OK [07:46:13]MH_I2C_Read... [07:46:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:46:13]Read from MH i2c: E2 [07:46:13]MH_I2C_Read... [07:46:13]Read from MH i2c: E2 62 00 [07:46:13]MH_I2C_Read... [07:46:13]Read from MH i2c: E2 62 00 A0 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 DE 83 02 00 0E 04 04 00 BF 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 C3 [07:46:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 DE 83 02 00 0E 04 04 00 BF 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 [07:46:13]wFMCommunicate OK [07:46:13]SAM_PROTO_GetFieldsCounters done [07:46:13]requested_item shift.num is exist - process it [07:46:13]requested_item shift.opened is exist - process it [07:46:13]req_shift_opened [07:46:13]FM_GetShiftState [07:46:13]SAM_PROTO_GetShiftState [07:46:13]wFMCommunicate request_size=4 [07:46:13]MH_SAM_APDU [07:46:13]CAPDU: 80 13 01 00 [07:46:13]Write to MH i2c: E2 08 00 A1 09 80 13 01 00 00 00 00 00 27 [07:46:13]Write i2c OK [07:46:13]MH_I2C_Read... [07:46:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:46:13]Read from MH i2c: E2 [07:46:13]MH_I2C_Read... [07:46:13]Read from MH i2c: E2 0E 00 [07:46:13]MH_I2C_Read... [07:46:13]Read from MH i2c: E2 0E 00 A1 09 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 A7 [07:46:13]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [07:46:13]wFMCommunicate OK [07:46:13]SAM_PROTO_GetShiftState done [07:46:13]FM_GetShiftState done [07:46:13]req_shift_opened done [07:46:13]requested_item shift.open_date is exist - process it [07:46:13]req_shift_open_date [07:46:13]req_shift_open_date done [07:46:13]produce_requested_data done [07:46:13]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164830,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [07:46:13]process_action_free close_receipt [07:46:13]json_value_free [07:46:13]json_value_free done [07:46:13]process_json_proto returns [07:46:13]Send response to host [07:46:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164830,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [07:46:13]free response buf [07:46:13]execute_script done [07:46:13]execute_script returns [07:46:13]free content buf [07:46:13]Sock 9.Close socket [07:46:13]Sock 9.Thread stoped [07:46:17]OFD Sender: No OFD packet to send [07:46:22]OFD Sender: No OFD packet to send [07:46:27]OFD Sender: No OFD packet to send [07:46:32]OFD Sender: No OFD packet to send [07:46:37]OFD Sender: No OFD packet to send [07:46:42]OFD Sender: No OFD packet to send [07:46:47]OFD Sender: No OFD packet to send [07:46:52]OFD Sender: No OFD packet to send [07:46:57]OFD Sender: No OFD packet to send [07:47:02]OFD Sender: No OFD packet to send [07:47:07]OFD Sender: No OFD packet to send [07:47:07]accept exits with 8 [07:47:07]New connection [07:47:07]New thread 3067428196 created [07:47:07]Thread 3067571556 joined [07:47:07]Waiting for new connection... [07:47:07] Sock 8.Parse request [07:47:07]Sock 8.Check first char [07:47:07]Sock 8.First char is OK [07:47:07]request: POST /json_proto HTTP/1.0 [07:47:07]Method: POST [07:47:07]URL: /json_proto [07:47:07]Method is POST - this is cgi request [07:47:07]url: /json_proto [07:47:07]query_string will be loaded in cgi processing [07:47:07]execute_cgi json_proto POST (null) [07:47:07]execute_cgi path=json_proto method=POST [07:47:07]POST find Content-Length [07:47:07]Host: 172.17.56.4:8080 [07:47:07]Content-Length: 677 [07:47:07]Content-Type: application/json [07:47:07] [07:47:07]POST finish read [07:47:07]Found Content-Length = 677 [07:47:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458926", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.800, "sum" : 250.04, "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" ] } } [07:47:07]execute_script... [07:47:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458926", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.800, "sum" : 250.04, "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" ] } } [07:47:07]POST & json_proto [07:47:07]process_json_proto [07:47:07]json parsed OK: [07:47:07]protocol is kg_v1.0 [07:47:07]action value=close_receipt [07:47:07]process_action close_receipt [07:47:07]cmd_close_receipt [07:47:07]MH_GetDate [07:47:07]Write to MH i2c: F0 00 00 A2 09 9A [07:47:07]Write i2c OK [07:47:07]MH_I2C_Read... [07:47:07]Read from MH i2c: F0 [07:47:07]MH_I2C_Read... [07:47:07]Read from MH i2c: F0 09 00 [07:47:07]MH_I2C_Read... [07:47:07]Read from MH i2c: F0 09 00 A2 09 00 7D 82 93 66 C9 DC B2 64 56 [07:47:07]GetLastDocTimeStamp 1720943171 [07:47:07]current date 1720943229 [07:47:07]FM_GetShiftState [07:47:07]SAM_PROTO_GetShiftState [07:47:07]wFMCommunicate request_size=4 [07:47:07]MH_SAM_APDU [07:47:07]CAPDU: 80 13 01 00 [07:47:07]Write to MH i2c: E2 08 00 A3 09 80 13 01 00 00 00 00 00 29 [07:47:07]Write i2c OK [07:47:07]MH_I2C_Read... [07:47:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:47:07]Read from MH i2c: E2 [07:47:07]MH_I2C_Read... [07:47:07]Read from MH i2c: E2 0E 00 [07:47:07]MH_I2C_Read... [07:47:07]Read from MH i2c: E2 0E 00 A3 09 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 A9 [07:47:07]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [07:47:07]wFMCommunicate OK [07:47:07]SAM_PROTO_GetShiftState done [07:47:07]FM_GetShiftState done [07:47:07]opened in 1720917342 [07:47:07]opened+sec_in_day 1721003742 [07:47:07]quantity*price = 25004 [07:47:07]sum+1 = 25005 [07:47:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.55 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 29 14.07.2024 07:47 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164831 ФПД: 194731801535625 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T074709&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164831&fm=194731801535625&tin=02508201610067®Number=0000000000090829&sum=25000 [07:47:08]StoreToDocumentArchive [07:47:08]shift 447 fd 164831 [07:47:08]save to /storage/0447/doc_00164831 [07:47:08]save last doc name /storage/0447/doc_00164831 to /storage/kkm_last_doc_name [07:47:08]save OK [07:47:08]Clear old archive folders... [07:47:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:47:08]tlvbuf is B6FEF6A0 [07:47:08]SAM_PROTO_ClearQueue [07:47:08]wFMCommunicate request_size=4 [07:47:08]MH_SAM_APDU [07:47:08]CAPDU: 80 09 00 00 [07:47:08]Write to MH i2c: E2 08 00 B0 09 80 09 00 00 00 00 00 00 2B [07:47:08]Write i2c OK [07:47:08]MH_I2C_Read... [07:47:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:47:08]Read from MH i2c: E2 [07:47:08]MH_I2C_Read... [07:47:08]Read from MH i2c: E2 03 00 [07:47:08]MH_I2C_Read... [07:47:08]Read from MH i2c: E2 03 00 B0 09 00 90 00 2D [07:47:08]RAPDU: 90 00 [07:47:08]wFMCommunicate OK [07:47:08]SAM_PROTO_ClearQueue done [07:47:08]KKMCreateOFDPacket [07:47:08]OFDProtocolAddRootSTLVToBuf [07:47:08]FM_MakeSignedData [07:47:08]FM_MakeSignedData [07:47:08]SAM_PROTO_SignData [07:47:08]wFMCommunicate request_size=4 [07:47:08]MH_SAM_APDU [07:47:08]CAPDU: 80 0D 01 02 [07:47:08]Write to MH i2c: E2 08 00 B1 09 80 0D 01 02 00 00 00 00 33 [07:47:08]Write i2c OK [07:47:08]MH_I2C_Read... [07:47:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:47:08]Read from MH i2c: E2 [07:47:08]MH_I2C_Read... [07:47:08]Read from MH i2c: E2 03 00 [07:47:08]MH_I2C_Read... [07:47:08]Read from MH i2c: E2 03 00 B1 09 00 90 00 2E [07:47:08]RAPDU: 90 00 [07:47:08]wFMCommunicate OK [07:47:08]wFMCommunicate request_size=255 [07:47:08]MH_SAM_APDU [07:47:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 AC 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 7D 82 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DF 83 02 00 35 04 06 00 B1 [07:47:08]Write to MH i2c: E2 02 01 B2 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 AC 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 7D 82 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DF 83 02 00 35 04 06 00 B1 00 00 45 [07:47:08]Write i2c OK [07:47:08]MH_I2C_Read... [07:47:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:47:09]Read from MH i2c: E2 [07:47:09]MH_I2C_Read... [07:47:09]Read from MH i2c: E2 03 00 [07:47:09]MH_I2C_Read... [07:47:09]Read from MH i2c: E2 03 00 B2 09 00 90 00 2F [07:47:09]RAPDU: 90 00 [07:47:09]wFMCommunicate OK [07:47:09]wFMCommunicate request_size=10 [07:47:09]MH_SAM_APDU [07:47:09]CAPDU: 80 0D 02 02 05 1B 87 DB 64 89 [07:47:09]Write to MH i2c: E2 0D 00 B3 09 80 0D 02 02 05 00 1B 87 DB 64 89 00 00 AA [07:47:09]Write i2c OK [07:47:09]MH_I2C_Read... [07:47:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:47:09]Read from MH i2c: E2 [07:47:09]MH_I2C_Read... [07:47:09]Read from MH i2c: E2 03 00 [07:47:09]MH_I2C_Read... [07:47:09]Read from MH i2c: E2 03 00 B3 09 00 90 00 30 [07:47:09]RAPDU: 90 00 [07:47:09]wFMCommunicate OK [07:47:09]wFMCommunicate request_size=4 [07:47:09]MH_SAM_APDU [07:47:09]CAPDU: 80 0D 03 02 [07:47:09]Write to MH i2c: E2 08 00 B4 09 80 0D 03 02 00 00 00 00 38 [07:47:09]Write i2c OK [07:47:09]MH_I2C_Read... [07:47:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:47:09]Read from MH i2c: E2 [07:47:09]MH_I2C_Read... [07:47:09]Read from MH i2c: E2 0B 00 [07:47:09]MH_I2C_Read... [07:47:09]Read from MH i2c: E2 0B 00 B4 09 00 9F A7 22 37 FE D8 E7 2C 90 00 C1 [07:47:09]RAPDU: 9F A7 22 37 FE D8 E7 2C 90 00 [07:47:09]wFMCommunicate OK [07:47:09]SAM_PROTO_SignData done [07:47:09]FM_MakeSignedData done [07:47:09]CreateOFDProtocolMessage [07:47:09]wFMCommunicate request_size=4 [07:47:09]MH_SAM_APDU [07:47:09]CAPDU: 80 11 00 00 [07:47:09]Write to MH i2c: E2 08 00 B5 09 80 11 00 00 00 00 00 00 38 [07:47:09]Write i2c OK [07:47:09]MH_I2C_Read... [07:47:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:47:09]Read from MH i2c: E2 [07:47:09]MH_I2C_Read... [07:47:09]Read from MH i2c: E2 17 00 [07:47:09]MH_I2C_Read... [07:47:09]Read from MH i2c: E2 17 00 B5 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 8E [07:47:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [07:47:09]wFMCommunicate OK [07:47:09]CreateOFDProtocolMessage done [07:47:09]OFDSenderStorePacket 164831 [07:47:09]StoreOFDPacket docnum=164831 [07:47:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 9D E5 07 01 72 FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 AC 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 7D 82 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DF 83 02 00 35 04 06 00 B1 1B 87 DB 64 89 9F A7 22 37 FE D8 E7 2C [07:47:09]CheckFolder [07:47:09]dirname=/storage/ofd_packets [07:47:09]CheckFolder done [07:47:09]ProducePacketName [07:47:09]name=ofd_packets/00164831 [07:47:09]NVStorageSaveData ofd_packets/00164831 [07:47:09]File name is /storage/ofd_packets/00164831 [07:47:09]Write 301 bytes [07:47:09]NVStorageSaveData done [07:47:09]OFDSenderStorePacket done [07:47:09]KKMCreateOFDPacket done [07:47:09]NVStorageSaveData kkm_last_timestamp [07:47:09]File name is /storage/kkm_last_timestamp [07:47:09]Write 4 bytes [07:47:09]NVStorageSaveData done [07:47:09]ExternCall_PrintAddStr [07:47:09]wPrintStart [07:47:09]Write to MH i2c: 01 00 00 B6 09 BF [07:47:09]Write i2c OK [07:47:09]MH_I2C_Read... [07:47:09]Read from MH i2c: 01 [07:47:09]MH_I2C_Read... [07:47:09]Read from MH i2c: 01 07 00 [07:47:09]MH_I2C_Read... [07:47:09]Read from MH i2c: 01 07 00 B6 09 00 00 00 00 00 FF 0F D4 [07:47:09]RasterBufferAndPrint [07:47:09]line Счет N : (1)458926 [07:47:09]line ИНН: 02508201610067 [07:47:09]line Контрольно-Кассовый Чек [07:47:09]line ПРОДАЖА [07:47:09]line ТРК (МРК, ГНК) : 12 [07:47:09]line Товар: 2710124130 [07:47:09]line Аи-92-К-5 [07:47:09]line 3.800 * 65.80 [07:47:09]line = 250.04 [07:47:09]line НДС 12% НСП 1% [07:47:09]line > о реализуемом товаре [07:47:09]line ОКРУГЛЕНИЕ: -0.04 [07:47:09]line ИТОГО: 250.00 [07:47:09]line Внесено: 250.00 [07:47:09]line СДАЧА: 0.00 [07:47:09]line НСП 1% : 2.21 [07:47:09]line НДС 12% : 26.55 [07:47:09]line Наличными: 250.00 [07:47:09]line Безнал.: 0.00 [07:47:09]line Место: АЗС № 72 "Партнер Нефть" [07:47:09]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [07:47:09]line СНО: Общий режим [07:47:09]line Чек 29 14.07.2024 07:47 [07:47:09]line Смена: 447 ФФД: 1.0 [07:47:09]line ЗНМ: 0300000160 [07:47:09]line РНМ: 0000000000090829 [07:47:09]line Версия ККМ: 001 [07:47:09]line ФМ: 0000000000874718 [07:47:09]line ФД: 164831 [07:47:09]line ФПД: 194731801535625 [07:47:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T074709&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164831&fm=194731801535625&tin=02508201610067®Number=0000000000090829&sum=25000 [07:47:09]OFD Sender: Processing packet 164831 [packets to send 104, broken 103] [07:47:09]ProducePacketName [07:47:09]name=ofd_packets/00164831 [07:47:09]OFD Sender: To server: pG, [07:47:09]CommunicateWithHost lk.salyk.kg:30040 [07:47:09]ConnectInit lk.salyk.kg [07:47:09]written 0, free lines is 4095 [07:47:09]Connected sock=10 [07:47:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 9D E5 07 01 72 FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 AC 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 7D 82 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DF 83 02 00 35 04 06 00 B1 1B 87 DB 64 89 9F A7 22 37 FE D8 E7 2C [07:47:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 02 AB 47 00 6C 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DF 83 02 00 F4 03 04 00 0C 29 93 66 B6 04 01 00 00 6D 5A 5F D0 78 D8 53 BC [07:47:09]CommunicateWithHost err = 0 [07:47:09]CheckOFDResponse [07:47:09]1017 (14) - 77093643461234 [07:47:09]1041 (16) - 0000000000874718 [07:47:09]1040 (4) - 164831 [07:47:09]1012 (4) - 14.07.2024 01:25 [07:47:09]1206 (1) - 0 [07:47:09]OFD Sender: Remove packet 164831 [07:47:09]ProducePacketName [07:47:09]name=ofd_packets/00164831 [07:47:09]NVStorageDeleteData [07:47:10]Write to MH i2c: 01 00 00 E0 09 E9 [07:47:10]Write i2c OK [07:47:10]MH_I2C_Read... [07:47:10]Read from MH i2c: 01 [07:47:10]MH_I2C_Read... [07:47:10]Read from MH i2c: 01 07 00 [07:47:10]MH_I2C_Read... [07:47:10]Read from MH i2c: 01 07 00 E0 09 00 00 00 00 00 02 0D FF [07:47:10]RasterBufferAndPrint [07:47:10]line [07:47:10]line [07:47:10]line [07:47:10]line [07:47:10]line [07:47:10]written 0, free lines is 3336 [07:47:10]MH_Cut [07:47:10]Write to MH i2c: D1 01 00 E7 09 01 C2 [07:47:10]Write i2c OK [07:47:10]MH_I2C_Read... [07:47:10]Read from MH i2c: D1 [07:47:10]MH_I2C_Read... [07:47:10]Read from MH i2c: D1 01 00 [07:47:10]MH_I2C_Read... [07:47:10]Read from MH i2c: D1 01 00 E7 09 00 C1 [07:47:10]Write to MH i2c: 01 00 00 E8 09 F1 [07:47:10]Write i2c OK [07:47:10]MH_I2C_Read... [07:47:10]OFD Sender: No OFD packet to send [07:47:10]*** Cut start [07:47:10]*** Partial cut [07:47:10]*** CUTSNS_PIN = 1 [07:47:10]*** CUTSNS_PIN = 0 [07:47:11]*** Brake cut motor [07:47:11]Read from MH i2c: 01 [07:47:11]MH_I2C_Read... [07:47:11]*** Stop cut motor [07:47:11]*** Cut end [07:47:11]Read from MH i2c: 01 07 00 [07:47:11]MH_I2C_Read... [07:47:11]Read from MH i2c: 01 07 00 E8 09 00 00 00 00 00 FF 0F 06 [07:47:11]process_action close_receipt done [07:47:11]requested_data is exist [07:47:11]produce_requested_data [07:47:11]requested_item fm.sn is exist - process it [07:47:11]wFMCommunicate request_size=4 [07:47:11]MH_SAM_APDU [07:47:11]CAPDU: 80 11 00 00 [07:47:11]Write to MH i2c: E2 08 00 E9 09 80 11 00 00 00 00 00 00 6C [07:47:11]Write i2c OK [07:47:11]MH_I2C_Read... [07:47:11]Read from MH i2c: E2 [07:47:11]MH_I2C_Read... [07:47:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:47:11]Read from MH i2c: E2 17 00 [07:47:11]MH_I2C_Read... [07:47:11]Read from MH i2c: E2 17 00 E9 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C2 [07:47:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [07:47:11]wFMCommunicate OK [07:47:11]requested_item fd.num is exist - process it [07:47:11]SAM_PROTO_GetFieldsCounters [07:47:11]wFMCommunicate request_size=4 [07:47:11]MH_SAM_APDU [07:47:11]CAPDU: 80 13 00 00 [07:47:11]Write to MH i2c: E2 08 00 EA 09 80 13 00 00 00 00 00 00 6F [07:47:11]Write i2c OK [07:47:11]MH_I2C_Read... [07:47:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:47:11]Read from MH i2c: E2 [07:47:11]MH_I2C_Read... [07:47:11]Read from MH i2c: E2 62 00 [07:47:11]MH_I2C_Read... [07:47:11]Read from MH i2c: E2 62 00 EA 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 DF 83 02 00 0E 04 04 00 BF 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 11 [07:47:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 DF 83 02 00 0E 04 04 00 BF 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 [07:47:11]wFMCommunicate OK [07:47:11]SAM_PROTO_GetFieldsCounters done [07:47:11]requested_item shift.num is exist - process it [07:47:11]requested_item shift.opened is exist - process it [07:47:11]req_shift_opened [07:47:11]FM_GetShiftState [07:47:11]SAM_PROTO_GetShiftState [07:47:11]wFMCommunicate request_size=4 [07:47:11]MH_SAM_APDU [07:47:11]CAPDU: 80 13 01 00 [07:47:11]Write to MH i2c: E2 08 00 EB 09 80 13 01 00 00 00 00 00 71 [07:47:11]Write i2c OK [07:47:11]MH_I2C_Read... [07:47:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:47:11]Read from MH i2c: E2 [07:47:11]MH_I2C_Read... [07:47:11]Read from MH i2c: E2 0E 00 [07:47:11]MH_I2C_Read... [07:47:11]Read from MH i2c: E2 0E 00 EB 09 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 F1 [07:47:11]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [07:47:11]wFMCommunicate OK [07:47:11]SAM_PROTO_GetShiftState done [07:47:11]FM_GetShiftState done [07:47:11]req_shift_opened done [07:47:11]requested_item shift.open_date is exist - process it [07:47:11]req_shift_open_date [07:47:11]req_shift_open_date done [07:47:11]produce_requested_data done [07:47:11]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164831,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [07:47:11]process_action_free close_receipt [07:47:11]json_value_free [07:47:11]json_value_free done [07:47:11]process_json_proto returns [07:47:11]Send response to host [07:47:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164831,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [07:47:11]free response buf [07:47:11]execute_script done [07:47:11]execute_script returns [07:47:11]free content buf [07:47:11]Sock 8.Close socket [07:47:11]Sock 8.Thread stoped [07:47:15]OFD Sender: No OFD packet to send [07:47:20]OFD Sender: No OFD packet to send [07:47:25]OFD Sender: No OFD packet to send [07:47:30]OFD Sender: No OFD packet to send [07:47:35]OFD Sender: No OFD packet to send [07:47:40]OFD Sender: No OFD packet to send [07:47:45]OFD Sender: No OFD packet to send [07:47:50]OFD Sender: No OFD packet to send [07:47:55]OFD Sender: No OFD packet to send [07:48:00]OFD Sender: No OFD packet to send [07:48:05]OFD Sender: No OFD packet to send [07:48:10]OFD Sender: No OFD packet to send [07:48:15]OFD Sender: No OFD packet to send [07:48:20]OFD Sender: No OFD packet to send [07:48:25]OFD Sender: No OFD packet to send [07:48:30]OFD Sender: No OFD packet to send [07:48:35]OFD Sender: No OFD packet to send [07:48:40]OFD Sender: No OFD packet to send [07:48:45]OFD Sender: No OFD packet to send [07:48:50]OFD Sender: No OFD packet to send [07:48:55]OFD Sender: No OFD packet to send [07:49:00]OFD Sender: No OFD packet to send [07:49:05]OFD Sender: No OFD packet to send [07:49:10]OFD Sender: No OFD packet to send [07:49:15]OFD Sender: No OFD packet to send [07:49:20]OFD Sender: No OFD packet to send [07:49:25]OFD Sender: No OFD packet to send [07:49:30]OFD Sender: No OFD packet to send [07:49:35]OFD Sender: No OFD packet to send [07:49:40]OFD Sender: No OFD packet to send [07:49:45]OFD Sender: No OFD packet to send [07:49:50]OFD Sender: No OFD packet to send [07:49:55]OFD Sender: No OFD packet to send [07:50:00]OFD Sender: No OFD packet to send [07:50:05]OFD Sender: No OFD packet to send [07:50:10]OFD Sender: No OFD packet to send [07:50:15]OFD Sender: No OFD packet to send [07:50:20]OFD Sender: No OFD packet to send [07:50:25]OFD Sender: No OFD packet to send [07:50:30]OFD Sender: No OFD packet to send [07:50:35]OFD Sender: No OFD packet to send [07:50:40]OFD Sender: No OFD packet to send [07:50:45]OFD Sender: No OFD packet to send [07:50:50]OFD Sender: No OFD packet to send [07:50:55]OFD Sender: No OFD packet to send [07:51:00]OFD Sender: No OFD packet to send [07:51:05]OFD Sender: No OFD packet to send [07:51:10]OFD Sender: No OFD packet to send [07:51:15]OFD Sender: No OFD packet to send [07:51:20]OFD Sender: No OFD packet to send [07:51:25]OFD Sender: No OFD packet to send [07:51:30]OFD Sender: No OFD packet to send [07:51:35]OFD Sender: No OFD packet to send [07:51:40]OFD Sender: No OFD packet to send [07:51:45]OFD Sender: No OFD packet to send [07:51:50]OFD Sender: No OFD packet to send [07:51:55]OFD Sender: No OFD packet to send [07:52:00]OFD Sender: No OFD packet to send [07:52:05]OFD Sender: No OFD packet to send [07:52:10]OFD Sender: No OFD packet to send [07:52:15]OFD Sender: No OFD packet to send [07:52:20]OFD Sender: No OFD packet to send [07:52:25]OFD Sender: No OFD packet to send [07:52:30]OFD Sender: No OFD packet to send [07:52:35]OFD Sender: No OFD packet to send [07:52:40]OFD Sender: No OFD packet to send [07:52:45]OFD Sender: No OFD packet to send [07:52:50]OFD Sender: No OFD packet to send [07:52:55]OFD Sender: No OFD packet to send [07:53:00]OFD Sender: No OFD packet to send [07:53:05]OFD Sender: No OFD packet to send [07:53:10]OFD Sender: No OFD packet to send [07:53:15]OFD Sender: No OFD packet to send [07:53:20]OFD Sender: No OFD packet to send [07:53:25]OFD Sender: No OFD packet to send [07:53:30]OFD Sender: No OFD packet to send [07:53:35]OFD Sender: No OFD packet to send [07:53:40]OFD Sender: No OFD packet to send [07:53:45]OFD Sender: No OFD packet to send [07:53:50]OFD Sender: No OFD packet to send [07:53:55]OFD Sender: No OFD packet to send [07:54:00]OFD Sender: No OFD packet to send [07:54:05]OFD Sender: No OFD packet to send [07:54:10]OFD Sender: No OFD packet to send [07:54:14]accept exits with 9 [07:54:14]New connection [07:54:14]New thread 3067571556 created [07:54:14]Thread 3067428196 joined [07:54:14]Waiting for new connection... [07:54:14] Sock 9.Parse request [07:54:14]Sock 9.Check first char [07:54:14]Sock 9.First char is OK [07:54:14]request: POST /json_proto HTTP/1.0 [07:54:14]Method: POST [07:54:14]URL: /json_proto [07:54:14]Method is POST - this is cgi request [07:54:14]url: /json_proto [07:54:14]query_string will be loaded in cgi processing [07:54:14]execute_cgi json_proto POST (null) [07:54:14]execute_cgi path=json_proto method=POST [07:54:14]POST find Content-Length [07:54:14]Host: 172.17.56.4:8080 [07:54:14]Content-Length: 637 [07:54:14]Content-Type: application/json [07:54:14] [07:54:14]POST finish read [07:54:14]Found Content-Length = 637 [07:54:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458927", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 10.000, "sum" : 719.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 719.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:54:14]execute_script... [07:54:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458927", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 10.000, "sum" : 719.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 719.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:54:14]POST & json_proto [07:54:14]process_json_proto [07:54:14]json parsed OK: [07:54:14]protocol is kg_v1.0 [07:54:14]action value=close_receipt [07:54:14]process_action close_receipt [07:54:14]cmd_close_receipt [07:54:14]MH_GetDate [07:54:14]Write to MH i2c: F0 00 00 EC 09 E4 [07:54:14]Write i2c OK [07:54:14]MH_I2C_Read... [07:54:14]Read from MH i2c: F0 [07:54:14]MH_I2C_Read... [07:54:14]Read from MH i2c: F0 09 00 [07:54:14]MH_I2C_Read... [07:54:14]Read from MH i2c: F0 09 00 EC 09 00 28 84 93 66 C9 DC B2 64 4D [07:54:14]GetLastDocTimeStamp 1720943229 [07:54:14]current date 1720943656 [07:54:14]FM_GetShiftState [07:54:14]SAM_PROTO_GetShiftState [07:54:14]wFMCommunicate request_size=4 [07:54:14]MH_SAM_APDU [07:54:14]CAPDU: 80 13 01 00 [07:54:14]Write to MH i2c: E2 08 00 ED 09 80 13 01 00 00 00 00 00 73 [07:54:14]Write i2c OK [07:54:14]MH_I2C_Read... [07:54:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:54:14]Read from MH i2c: E2 [07:54:14]MH_I2C_Read... [07:54:14]Read from MH i2c: E2 0E 00 [07:54:14]MH_I2C_Read... [07:54:14]Read from MH i2c: E2 0E 00 ED 09 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 F3 [07:54:14]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [07:54:14]wFMCommunicate OK [07:54:14]SAM_PROTO_GetShiftState done [07:54:14]FM_GetShiftState done [07:54:14]opened in 1720917342 [07:54:14]opened+sec_in_day 1721003742 [07:54:14]quantity*price = 71900 [07:54:14]sum+1 = 71901 [07:54:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 719.00 НСП 1% : 6.36 НДС 12% : 76.35 Наличными: 719.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 30 14.07.2024 07:54 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164832 ФПД: 236749651201521 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T075416&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164832&fm=236749651201521&tin=02508201610067®Number=0000000000090829&sum=71900 [07:54:15]StoreToDocumentArchive [07:54:15]shift 447 fd 164832 [07:54:15]save to /storage/0447/doc_00164832 [07:54:15]save last doc name /storage/0447/doc_00164832 to /storage/kkm_last_doc_name [07:54:15]save OK [07:54:15]Clear old archive folders... [07:54:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:54:15]tlvbuf is B6FEC7F0 [07:54:15]SAM_PROTO_ClearQueue [07:54:15]wFMCommunicate request_size=4 [07:54:15]MH_SAM_APDU [07:54:15]CAPDU: 80 09 00 00 [07:54:15]Write to MH i2c: E2 08 00 FA 09 80 09 00 00 00 00 00 00 75 [07:54:15]Write i2c OK [07:54:15]MH_I2C_Read... [07:54:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:54:15]Read from MH i2c: E2 [07:54:15]MH_I2C_Read... [07:54:15]Read from MH i2c: E2 03 00 [07:54:15]MH_I2C_Read... [07:54:15]Read from MH i2c: E2 03 00 FA 09 00 90 00 77 [07:54:15]RAPDU: 90 00 [07:54:15]wFMCommunicate OK [07:54:15]SAM_PROTO_ClearQueue done [07:54:15]KKMCreateOFDPacket [07:54:15]OFDProtocolAddRootSTLVToBuf [07:54:15]FM_MakeSignedData [07:54:15]FM_MakeSignedData [07:54:15]SAM_PROTO_SignData [07:54:15]wFMCommunicate request_size=4 [07:54:15]MH_SAM_APDU [07:54:15]CAPDU: 80 0D 01 02 [07:54:15]Write to MH i2c: E2 08 00 FB 09 80 0D 01 02 00 00 00 00 7D [07:54:15]Write i2c OK [07:54:15]MH_I2C_Read... [07:54:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:54:15]Read from MH i2c: E2 [07:54:15]MH_I2C_Read... [07:54:15]Read from MH i2c: E2 03 00 [07:54:15]MH_I2C_Read... [07:54:15]Read from MH i2c: E2 03 00 FB 09 00 90 00 78 [07:54:15]RAPDU: 90 00 [07:54:15]wFMCommunicate OK [07:54:15]wFMCommunicate request_size=255 [07:54:15]MH_SAM_APDU [07:54:15]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 16 1C 00 00 00 00 13 04 06 00 DC 18 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 18 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 1D 00 00 00 00 07 04 06 00 DC 18 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 28 84 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E0 83 02 00 35 04 06 00 D7 52 92 DC [07:54:15]Write to MH i2c: E2 02 01 FC 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 10 27 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 DC 18 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 18 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 1D 00 00 00 00 07 04 06 00 DC 18 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 28 84 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E0 83 02 00 35 04 06 00 D7 52 92 DC 00 00 15 [07:54:15]Write i2c OK [07:54:15]MH_I2C_Read... [07:54:15]OFD Sender: No OFD packet to send [07:54:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:54:16]Read from MH i2c: E2 [07:54:16]MH_I2C_Read... [07:54:16]Read from MH i2c: E2 03 00 [07:54:16]MH_I2C_Read... [07:54:16]Read from MH i2c: E2 03 00 FC 09 00 90 00 79 [07:54:16]RAPDU: 90 00 [07:54:16]wFMCommunicate OK [07:54:16]wFMCommunicate request_size=7 [07:54:16]MH_SAM_APDU [07:54:16]CAPDU: 80 0D 02 02 02 4D F1 [07:54:16]Write to MH i2c: E2 0A 00 FD 09 80 0D 02 02 02 00 4D F1 00 00 C2 [07:54:16]Write i2c OK [07:54:16]MH_I2C_Read... [07:54:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:54:16]Read from MH i2c: E2 [07:54:16]MH_I2C_Read... [07:54:16]Read from MH i2c: E2 03 00 [07:54:16]MH_I2C_Read... [07:54:16]Read from MH i2c: E2 03 00 FD 09 00 90 00 7A [07:54:16]RAPDU: 90 00 [07:54:16]wFMCommunicate OK [07:54:16]wFMCommunicate request_size=4 [07:54:16]MH_SAM_APDU [07:54:16]CAPDU: 80 0D 03 02 [07:54:16]Write to MH i2c: E2 08 00 FE 09 80 0D 03 02 00 00 00 00 82 [07:54:16]Write i2c OK [07:54:16]MH_I2C_Read... [07:54:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:54:16]Read from MH i2c: E2 [07:54:16]MH_I2C_Read... [07:54:16]Read from MH i2c: E2 0B 00 [07:54:16]MH_I2C_Read... [07:54:16]Read from MH i2c: E2 0B 00 FE 09 00 6D F8 AB 66 79 0F 99 75 90 00 8F [07:54:16]RAPDU: 6D F8 AB 66 79 0F 99 75 90 00 [07:54:16]wFMCommunicate OK [07:54:16]SAM_PROTO_SignData done [07:54:16]FM_MakeSignedData done [07:54:16]CreateOFDProtocolMessage [07:54:16]wFMCommunicate request_size=4 [07:54:16]MH_SAM_APDU [07:54:16]CAPDU: 80 11 00 00 [07:54:16]Write to MH i2c: E2 08 00 FF 09 80 11 00 00 00 00 00 00 82 [07:54:16]Write i2c OK [07:54:16]MH_I2C_Read... [07:54:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:54:16]Read from MH i2c: E2 [07:54:16]MH_I2C_Read... [07:54:16]Read from MH i2c: E2 17 00 [07:54:16]MH_I2C_Read... [07:54:16]Read from MH i2c: E2 17 00 FF 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D8 [07:54:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [07:54:16]wFMCommunicate OK [07:54:16]CreateOFDProtocolMessage done [07:54:16]OFDSenderStorePacket 164832 [07:54:16]StoreOFDPacket docnum=164832 [07:54:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 61 6E 04 01 9F 96 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 DC 18 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 18 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 1D 00 00 00 00 07 04 06 00 DC 18 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 28 84 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E0 83 02 00 35 04 06 00 D7 52 92 DC 4D F1 6D F8 AB 66 79 0F 99 75 [07:54:16]CheckFolder [07:54:16]dirname=/storage/ofd_packets [07:54:16]CheckFolder done [07:54:16]ProducePacketName [07:54:16]name=ofd_packets/00164832 [07:54:16]NVStorageSaveData ofd_packets/00164832 [07:54:16]File name is /storage/ofd_packets/00164832 [07:54:16]Write 298 bytes [07:54:16]NVStorageSaveData done [07:54:16]OFDSenderStorePacket done [07:54:16]KKMCreateOFDPacket done [07:54:16]NVStorageSaveData kkm_last_timestamp [07:54:16]File name is /storage/kkm_last_timestamp [07:54:16]Write 4 bytes [07:54:16]NVStorageSaveData done [07:54:16]ExternCall_PrintAddStr [07:54:16]wPrintStart [07:54:16]Write to MH i2c: 01 00 00 00 0A 0A [07:54:16]Write i2c OK [07:54:16]MH_I2C_Read... [07:54:16]Read from MH i2c: 01 [07:54:16]MH_I2C_Read... [07:54:16]Read from MH i2c: 01 07 00 [07:54:16]MH_I2C_Read... [07:54:16]Read from MH i2c: 01 07 00 00 0A 00 00 00 00 00 FF 0F 1F [07:54:16]RasterBufferAndPrint [07:54:16]line Счет N : (1)458927 [07:54:16]line ИНН: 02508201610067 [07:54:16]line Контрольно-Кассовый Чек [07:54:16]line ПРОДАЖА [07:54:16]line ТРК (МРК, ГНК) : 21 [07:54:16]line Товар: 2710194210 [07:54:16]line ДТ-К-5 [07:54:16]line 10.000 * 71.90 [07:54:16]line = 719.00 [07:54:16]line НДС 12% НСП 1% [07:54:16]line > о реализуемом товаре [07:54:16]line ИТОГО: 719.00 [07:54:16]line НСП 1% : 6.36 [07:54:16]line НДС 12% : 76.35 [07:54:16]line Наличными: 719.00 [07:54:16]line Безнал.: 0.00 [07:54:16]line Место: АЗС № 72 "Партнер Нефть" [07:54:16]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [07:54:16]line СНО: Общий режим [07:54:16]line Чек 30 14.07.2024 07:54 [07:54:16]line Смена: 447 ФФД: 1.0 [07:54:16]line ЗНМ: 0300000160 [07:54:16]line РНМ: 0000000000090829 [07:54:16]line Версия ККМ: 001 [07:54:16]line ФМ: 0000000000874718 [07:54:16]line ФД: 164832 [07:54:16]line ФПД: 236749651201521 [07:54:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T075416&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164832&fm=236749651201521&tin=02508201610067®Number=0000000000090829&sum=71900 [07:54:16]OFD Sender: Processing packet 164832 [packets to send 104, broken 103] [07:54:16]ProducePacketName [07:54:16]name=ofd_packets/00164832 [07:54:16]OFD Sender: To server: pG, [07:54:16]CommunicateWithHost lk.salyk.kg:30040 [07:54:16]ConnectInit lk.salyk.kg [07:54:16]written 0, free lines is 4095 [07:54:16]Connected sock=10 [07:54:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 61 6E 04 01 9F 96 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 DC 18 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 18 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 1D 00 00 00 00 07 04 06 00 DC 18 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 28 84 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E0 83 02 00 35 04 06 00 D7 52 92 DC 4D F1 6D F8 AB 66 79 0F 99 75 [07:54:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 15 08 47 00 6A 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 38 37 34 37 31 38 10 04 04 00 E0 83 02 00 F4 03 04 00 B6 2A 93 66 B6 04 01 00 00 74 9C B2 09 16 3A BF E0 [07:54:16]CommunicateWithHost err = 0 [07:54:16]CheckOFDResponse [07:54:16]1017 (14) - 77093643461234 [07:54:16]1041 (16) - 0000000000874718 [07:54:16]1040 (4) - 164832 [07:54:16]1012 (4) - 14.07.2024 01:32 [07:54:16]1206 (1) - 0 [07:54:16]OFD Sender: Remove packet 164832 [07:54:16]ProducePacketName [07:54:16]name=ofd_packets/00164832 [07:54:16]NVStorageDeleteData [07:54:16]Write to MH i2c: 01 00 00 27 0A 31 [07:54:16]Write i2c OK [07:54:16]MH_I2C_Read... [07:54:16]Read from MH i2c: 01 [07:54:16]MH_I2C_Read... [07:54:16]Read from MH i2c: 01 07 00 [07:54:16]MH_I2C_Read... [07:54:16]Read from MH i2c: 01 07 00 27 0A 00 00 00 00 00 2A 0D 6F [07:54:16]RasterBufferAndPrint [07:54:16]line [07:54:16]line [07:54:16]line [07:54:16]line [07:54:16]line [07:54:16]written 0, free lines is 3376 [07:54:16]MH_Cut [07:54:16]Write to MH i2c: D1 01 00 2E 0A 01 0A [07:54:16]Write i2c OK [07:54:16]MH_I2C_Read... [07:54:16]Read from MH i2c: D1 [07:54:16]MH_I2C_Read... [07:54:16]Read from MH i2c: D1 01 00 [07:54:16]MH_I2C_Read... [07:54:16]Read from MH i2c: D1 01 00 2E 0A 00 09 [07:54:16]Write to MH i2c: 01 00 00 2F 0A 39 [07:54:16]Write i2c OK [07:54:16]MH_I2C_Read... [07:54:17]OFD Sender: No OFD packet to send [07:54:17]*** Cut start [07:54:17]*** Partial cut [07:54:17]*** CUTSNS_PIN = 1 [07:54:17]*** CUTSNS_PIN = 0 [07:54:17]*** Brake cut motor [07:54:18]Read from MH i2c: 01 [07:54:18]MH_I2C_Read... [07:54:18]*** Stop cut motor [07:54:18]*** Cut end [07:54:18]Read from MH i2c: 01 07 00 [07:54:18]MH_I2C_Read... [07:54:18]Read from MH i2c: 01 07 00 2F 0A 00 00 00 00 00 FF 0F 4E [07:54:18]process_action close_receipt done [07:54:18]requested_data is exist [07:54:18]produce_requested_data [07:54:18]requested_item fm.sn is exist - process it [07:54:18]wFMCommunicate request_size=4 [07:54:18]MH_SAM_APDU [07:54:18]CAPDU: 80 11 00 00 [07:54:18]Write to MH i2c: E2 08 00 30 0A 80 11 00 00 00 00 00 00 B4 [07:54:18]Write i2c OK [07:54:18]MH_I2C_Read... [07:54:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:54:18]Read from MH i2c: E2 [07:54:18]MH_I2C_Read... [07:54:18]Read from MH i2c: E2 17 00 [07:54:18]MH_I2C_Read... [07:54:18]Read from MH i2c: E2 17 00 30 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 0A [07:54:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [07:54:18]wFMCommunicate OK [07:54:18]requested_item fd.num is exist - process it [07:54:18]SAM_PROTO_GetFieldsCounters [07:54:18]wFMCommunicate request_size=4 [07:54:18]MH_SAM_APDU [07:54:18]CAPDU: 80 13 00 00 [07:54:18]Write to MH i2c: E2 08 00 31 0A 80 13 00 00 00 00 00 00 B7 [07:54:18]Write i2c OK [07:54:18]MH_I2C_Read... [07:54:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:54:18]Read from MH i2c: E2 [07:54:18]MH_I2C_Read... [07:54:18]Read from MH i2c: E2 62 00 [07:54:18]MH_I2C_Read... [07:54:18]Read from MH i2c: E2 62 00 31 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E0 83 02 00 0E 04 04 00 BF 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 5D [07:54:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E0 83 02 00 0E 04 04 00 BF 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 [07:54:18]wFMCommunicate OK [07:54:18]SAM_PROTO_GetFieldsCounters done [07:54:18]requested_item shift.num is exist - process it [07:54:18]requested_item shift.opened is exist - process it [07:54:18]req_shift_opened [07:54:18]FM_GetShiftState [07:54:18]SAM_PROTO_GetShiftState [07:54:18]wFMCommunicate request_size=4 [07:54:18]MH_SAM_APDU [07:54:18]CAPDU: 80 13 01 00 [07:54:18]Write to MH i2c: E2 08 00 32 0A 80 13 01 00 00 00 00 00 B9 [07:54:18]Write i2c OK [07:54:18]MH_I2C_Read... [07:54:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:54:18]Read from MH i2c: E2 [07:54:18]MH_I2C_Read... [07:54:18]Read from MH i2c: E2 0E 00 [07:54:18]MH_I2C_Read... [07:54:18]Read from MH i2c: E2 0E 00 32 0A 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 39 [07:54:18]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [07:54:18]wFMCommunicate OK [07:54:18]SAM_PROTO_GetShiftState done [07:54:18]FM_GetShiftState done [07:54:18]req_shift_opened done [07:54:18]requested_item shift.open_date is exist - process it [07:54:18]req_shift_open_date [07:54:18]req_shift_open_date done [07:54:18]produce_requested_data done [07:54:18]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164832,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [07:54:18]process_action_free close_receipt [07:54:18]json_value_free [07:54:18]json_value_free done [07:54:18]process_json_proto returns [07:54:18]Send response to host [07:54:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164832,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [07:54:18]free response buf [07:54:18]execute_script done [07:54:18]execute_script returns [07:54:18]free content buf [07:54:18]Sock 9.Close socket [07:54:18]Sock 9.Thread stoped [07:54:22]OFD Sender: No OFD packet to send [07:54:27]OFD Sender: No OFD packet to send [07:54:32]OFD Sender: No OFD packet to send [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:22]OFD Sender: No OFD packet to send [07:55:27]OFD Sender: No OFD packet to send [07:55:32]OFD Sender: No OFD packet to send [07:55:37]OFD Sender: No OFD packet to send [07:55:42]OFD Sender: No OFD packet to send [07:55:47]OFD Sender: No OFD packet to send [07:55:52]OFD Sender: No OFD packet to send [07:55:57]OFD Sender: No OFD packet to send [07:56:02]OFD Sender: No OFD packet to send [07:56:07]OFD Sender: No OFD packet to send [07:56:12]OFD Sender: No OFD packet to send [07:56:17]OFD Sender: No OFD packet to send [07:56:22]OFD Sender: No OFD packet to send [07:56:27]OFD Sender: No OFD packet to send [07:56:32]OFD Sender: No OFD packet to send [07:56:37]OFD Sender: No OFD packet to send [07:56:42]OFD Sender: No OFD packet to send [07:56:47]OFD Sender: No OFD packet to send [07:56:52]OFD Sender: No OFD packet to send [07:56:57]OFD Sender: No OFD packet to send [07:57:02]OFD Sender: No OFD packet to send [07:57:07]OFD Sender: No OFD packet to send [07:57:12]OFD Sender: No OFD packet to send [07:57:17]OFD Sender: No OFD packet to send [07:57:22]OFD Sender: No OFD packet to send [07:57:27]OFD Sender: No OFD packet to send [07:57:32]OFD Sender: No OFD packet to send [07:57:37]OFD Sender: No OFD packet to send [07:57:42]OFD Sender: No OFD packet to send [07:57:47]OFD Sender: No OFD packet to send [07:57:52]OFD Sender: No OFD packet to send [07:57:57]OFD Sender: No OFD packet to send [07:58:02]OFD Sender: No OFD packet to send [07:58:07]OFD Sender: No OFD packet to send [07:58:12]OFD Sender: No OFD packet to send [07:58:17]OFD Sender: No OFD packet to send [07:58:22]OFD Sender: No OFD packet to send [07:58:27]OFD Sender: No OFD packet to send [07:58:32]OFD Sender: No OFD packet to send [07:58:37]OFD Sender: No OFD packet to send [07:58:42]OFD Sender: No OFD packet to send [07:58:47]OFD Sender: No OFD packet to send [07:58:52]OFD Sender: No OFD packet to send [07:58:57]OFD Sender: No OFD packet to send [07:59:02]OFD Sender: No OFD packet to send [07:59:07]OFD Sender: No OFD packet to send [07:59:12]OFD Sender: No OFD packet to send [07:59:17]OFD Sender: No OFD packet to send [07:59:22]OFD Sender: No OFD packet to send [07:59:27]OFD Sender: No OFD packet to send [07:59:32]OFD Sender: No OFD packet to send [07:59:37]OFD Sender: No OFD packet to send [07:59:42]OFD Sender: No OFD packet to send [07:59:47]OFD Sender: No OFD packet to send [07:59:52]OFD Sender: No OFD packet to send [07:59:53]accept exits with 8 [07:59:53]New connection [07:59:53]New thread 3067428196 created [07:59:53]Thread 3067571556 joined [07:59:53]Waiting for new connection... [07:59:53] Sock 8.Parse request [07:59:53]Sock 8.Check first char [07:59:53]Sock 8.First char is OK [07:59:53]request: POST /json_proto HTTP/1.0 [07:59:53]Method: POST [07:59:53]URL: /json_proto [07:59:53]Method is POST - this is cgi request [07:59:53]url: /json_proto [07:59:53]query_string will be loaded in cgi processing [07:59:53]execute_cgi json_proto POST (null) [07:59:53]execute_cgi path=json_proto method=POST [07:59:53]POST find Content-Length [07:59:53]Host: 172.17.56.4:8080 [07:59:53]Content-Length: 682 [07:59:53]Content-Type: application/json [07:59:53] [07:59:53]POST finish read [07:59:53]Found Content-Length = 682 [07:59:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458928", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 30.400, "sum" : 2000.32, "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:59:53]execute_script... [07:59: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)458928", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 30.400, "sum" : 2000.32, "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:59:53]POST & json_proto [07:59:53]process_json_proto [07:59:53]json parsed OK: [07:59:53]protocol is kg_v1.0 [07:59:53]action value=close_receipt [07:59:53]process_action close_receipt [07:59:53]cmd_close_receipt [07:59:53]MH_GetDate [07:59:53]Write to MH i2c: F0 00 00 33 0A 2C [07:59:53]Write i2c OK [07:59:53]MH_I2C_Read... [07:59:53]Read from MH i2c: F0 [07:59:53]MH_I2C_Read... [07:59:53]Read from MH i2c: F0 09 00 [07:59:53]MH_I2C_Read... [07:59:53]Read from MH i2c: F0 09 00 33 0A 00 7B 85 93 66 C9 DC B2 64 E9 [07:59:53]GetLastDocTimeStamp 1720943656 [07:59:53]current date 1720943995 [07:59:53]FM_GetShiftState [07:59:53]SAM_PROTO_GetShiftState [07:59:53]wFMCommunicate request_size=4 [07:59:53]MH_SAM_APDU [07:59:53]CAPDU: 80 13 01 00 [07:59:53]Write to MH i2c: E2 08 00 34 0A 80 13 01 00 00 00 00 00 BB [07:59:53]Write i2c OK [07:59:53]MH_I2C_Read... [07:59:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:59:53]Read from MH i2c: E2 [07:59:53]MH_I2C_Read... [07:59:53]Read from MH i2c: E2 0E 00 [07:59:53]MH_I2C_Read... [07:59:53]Read from MH i2c: E2 0E 00 34 0A 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 3B [07:59:53]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [07:59:53]wFMCommunicate OK [07:59:53]SAM_PROTO_GetShiftState done [07:59:53]FM_GetShiftState done [07:59:53]opened in 1720917342 [07:59:53]opened+sec_in_day 1721003742 [07:59:53]quantity*price = 200032 [07:59:53]sum+1 = 200033 [07:59:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 31 14.07.2024 07:59 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164833 ФПД: 122513016113705 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T075955&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164833&fm=122513016113705&tin=02508201610067®Number=0000000000090829&sum=200000 [07:59:54]StoreToDocumentArchive [07:59:54]shift 447 fd 164833 [07:59:54]save to /storage/0447/doc_00164833 [07:59:54]save last doc name /storage/0447/doc_00164833 to /storage/kkm_last_doc_name [07:59:54]save OK [07:59:54]Clear old archive folders... [07:59:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:59:54]tlvbuf is 01653F50 [07:59:54]SAM_PROTO_ClearQueue [07:59:54]wFMCommunicate request_size=4 [07:59:54]MH_SAM_APDU [07:59:54]CAPDU: 80 09 00 00 [07:59:54]Write to MH i2c: E2 08 00 41 0A 80 09 00 00 00 00 00 00 BD [07:59:54]Write i2c OK [07:59:54]MH_I2C_Read... [07:59:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:59:54]Read from MH i2c: E2 [07:59:54]MH_I2C_Read... [07:59:54]Read from MH i2c: E2 03 00 [07:59:54]MH_I2C_Read... [07:59:54]Read from MH i2c: E2 03 00 41 0A 00 90 00 BF [07:59:54]RAPDU: 90 00 [07:59:54]wFMCommunicate OK [07:59:54]SAM_PROTO_ClearQueue done [07:59:54]KKMCreateOFDPacket [07:59:54]OFDProtocolAddRootSTLVToBuf [07:59:54]FM_MakeSignedData [07:59:54]FM_MakeSignedData [07:59:54]SAM_PROTO_SignData [07:59:54]wFMCommunicate request_size=4 [07:59:54]MH_SAM_APDU [07:59:54]CAPDU: 80 0D 01 02 [07:59:54]Write to MH i2c: E2 08 00 42 0A 80 0D 01 02 00 00 00 00 C5 [07:59:54]Write i2c OK [07:59:54]MH_I2C_Read... [07:59:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:59:54]Read from MH i2c: E2 [07:59:54]MH_I2C_Read... [07:59:54]Read from MH i2c: E2 03 00 [07:59:54]MH_I2C_Read... [07:59:54]Read from MH i2c: E2 03 00 42 0A 00 90 00 C0 [07:59:54]RAPDU: 90 00 [07:59:54]wFMCommunicate OK [07:59:54]wFMCommunicate request_size=255 [07:59:54]MH_SAM_APDU [07:59:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 60 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 1F 00 00 00 F4 03 04 00 7B 85 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E1 83 02 00 35 04 06 00 6F [07:59:54]Write to MH i2c: E2 02 01 43 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 60 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 1F 00 00 00 F4 03 04 00 7B 85 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E1 83 02 00 35 04 06 00 6F 00 00 D1 [07:59:54]Write i2c OK [07:59:54]MH_I2C_Read... [07:59:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:59:55]Read from MH i2c: E2 [07:59:55]MH_I2C_Read... [07:59:55]Read from MH i2c: E2 03 00 [07:59:55]MH_I2C_Read... [07:59:55]Read from MH i2c: E2 03 00 43 0A 00 90 00 C1 [07:59:55]RAPDU: 90 00 [07:59:55]wFMCommunicate OK [07:59:55]wFMCommunicate request_size=10 [07:59:55]MH_SAM_APDU [07:59:55]CAPDU: 80 0D 02 02 05 6C C8 CE 4A 29 [07:59:55]Write to MH i2c: E2 0D 00 44 0A 80 0D 02 02 05 00 6C C8 CE 4A 29 00 00 47 [07:59:55]Write i2c OK [07:59:55]MH_I2C_Read... [07:59:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:59:55]Read from MH i2c: E2 [07:59:55]MH_I2C_Read... [07:59:55]Read from MH i2c: E2 03 00 [07:59:55]MH_I2C_Read... [07:59:55]Read from MH i2c: E2 03 00 44 0A 00 90 00 C2 [07:59:55]RAPDU: 90 00 [07:59:55]wFMCommunicate OK [07:59:55]wFMCommunicate request_size=4 [07:59:55]MH_SAM_APDU [07:59:55]CAPDU: 80 0D 03 02 [07:59:55]Write to MH i2c: E2 08 00 45 0A 80 0D 03 02 00 00 00 00 CA [07:59:55]Write i2c OK [07:59:55]MH_I2C_Read... [07:59:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:59:55]Read from MH i2c: E2 [07:59:55]MH_I2C_Read... [07:59:55]Read from MH i2c: E2 0B 00 [07:59:55]MH_I2C_Read... [07:59:55]Read from MH i2c: E2 0B 00 45 0A 00 93 C1 6D 2B C6 D6 9A EC 90 00 D9 [07:59:55]RAPDU: 93 C1 6D 2B C6 D6 9A EC 90 00 [07:59:55]wFMCommunicate OK [07:59:55]SAM_PROTO_SignData done [07:59:55]FM_MakeSignedData done [07:59:55]CreateOFDProtocolMessage [07:59:55]wFMCommunicate request_size=4 [07:59:55]MH_SAM_APDU [07:59:55]CAPDU: 80 11 00 00 [07:59:55]Write to MH i2c: E2 08 00 46 0A 80 11 00 00 00 00 00 00 CA [07:59:55]Write i2c OK [07:59:55]MH_I2C_Read... [07:59:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:59:55]Read from MH i2c: E2 [07:59:55]MH_I2C_Read... [07:59:55]Read from MH i2c: E2 17 00 [07:59:55]MH_I2C_Read... [07:59:55]Read from MH i2c: E2 17 00 46 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 20 [07:59:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [07:59:55]wFMCommunicate OK [07:59:55]CreateOFDProtocolMessage done [07:59:55]OFDSenderStorePacket 164833 [07:59:55]StoreOFDPacket docnum=164833 [07:59:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 95 63 07 01 5F 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 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 60 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 1F 00 00 00 F4 03 04 00 7B 85 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E1 83 02 00 35 04 06 00 6F 6C C8 CE 4A 29 93 C1 6D 2B C6 D6 9A EC [07:59:55]CheckFolder [07:59:55]dirname=/storage/ofd_packets [07:59:55]CheckFolder done [07:59:55]ProducePacketName [07:59:55]name=ofd_packets/00164833 [07:59:55]NVStorageSaveData ofd_packets/00164833 [07:59:55]File name is /storage/ofd_packets/00164833 [07:59:55]Write 301 bytes [07:59:55]NVStorageSaveData done [07:59:55]OFDSenderStorePacket done [07:59:55]KKMCreateOFDPacket done [07:59:55]NVStorageSaveData kkm_last_timestamp [07:59:55]File name is /storage/kkm_last_timestamp [07:59:55]Write 4 bytes [07:59:55]NVStorageSaveData done [07:59:55]ExternCall_PrintAddStr [07:59:55]wPrintStart [07:59:55]Write to MH i2c: 01 00 00 47 0A 51 [07:59:55]Write i2c OK [07:59:55]MH_I2C_Read... [07:59:55]Read from MH i2c: 01 [07:59:55]MH_I2C_Read... [07:59:55]Read from MH i2c: 01 07 00 [07:59:55]MH_I2C_Read... [07:59:55]Read from MH i2c: 01 07 00 47 0A 00 00 00 00 00 FF 0F 66 [07:59:55]RasterBufferAndPrint [07:59:55]line Счет N : (1)458928 [07:59:55]line ИНН: 02508201610067 [07:59:55]line Контрольно-Кассовый Чек [07:59:55]line ПРОДАЖА [07:59:55]line ТРК (МРК, ГНК) : 12 [07:59:55]line Товар: 2710124130 [07:59:55]line Аи-92-К-5 [07:59:55]line 30.400 * 65.80 [07:59:55]line = 2000.32 [07:59:55]line НДС 12% НСП 1% [07:59:55]line > о реализуемом товаре [07:59:55]line ОКРУГЛЕНИЕ: -0.32 [07:59:55]line ИТОГО: 2000.00 [07:59:55]line Внесено: 2000.00 [07:59:55]line СДАЧА: 0.00 [07:59:55]line НСП 1% : 17.70 [07:59:55]line НДС 12% : 212.42 [07:59:55]line Наличными: 2000.00 [07:59:55]line Безнал.: 0.00 [07:59:55]line Место: АЗС № 72 "Партнер Нефть" [07:59:55]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [07:59:55]line СНО: Общий режим [07:59:55]line Чек 31 14.07.2024 07:59 [07:59:55]line Смена: 447 ФФД: 1.0 [07:59:55]line ЗНМ: 0300000160 [07:59:55]line РНМ: 0000000000090829 [07:59:55]line Версия ККМ: 001 [07:59:55]line ФМ: 0000000000874718 [07:59:55]line ФД: 164833 [07:59:55]line ФПД: 122513016113705 [07:59:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T075955&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164833&fm=122513016113705&tin=02508201610067®Number=0000000000090829&sum=200000 [07:59:55]OFD Sender: Processing packet 164833 [packets to send 104, broken 103] [07:59:55]ProducePacketName [07:59:55]name=ofd_packets/00164833 [07:59:55]OFD Sender: To server: pG, [07:59:55]CommunicateWithHost lk.salyk.kg:30040 [07:59:55]ConnectInit lk.salyk.kg [07:59:55]written 0, free lines is 4095 [07:59:55]Connected sock=10 [07:59:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 95 63 07 01 5F 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 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 60 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 1F 00 00 00 F4 03 04 00 7B 85 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E1 83 02 00 35 04 06 00 6F 6C C8 CE 4A 29 93 C1 6D 2B C6 D6 9A EC [07:59:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 87 4D 47 00 9A D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E1 83 02 00 F4 03 04 00 09 2C 93 66 B6 04 01 00 00 3E A6 EC 9C 33 14 09 42 [07:59:55]CommunicateWithHost err = 0 [07:59:55]CheckOFDResponse [07:59:55]1017 (14) - 77093643461234 [07:59:55]1041 (16) - 0000000000874718 [07:59:55]1040 (4) - 164833 [07:59:55]1012 (4) - 14.07.2024 01:38 [07:59:55]1206 (1) - 0 [07:59:55]OFD Sender: Remove packet 164833 [07:59:55]ProducePacketName [07:59:55]name=ofd_packets/00164833 [07:59:55]NVStorageDeleteData [07:59:55]Write to MH i2c: 01 00 00 71 0A 7B [07:59:55]Write i2c OK [07:59:55]MH_I2C_Read... [07:59:55]Read from MH i2c: 01 [07:59:55]MH_I2C_Read... [07:59:55]Read from MH i2c: 01 07 00 [07:59:55]MH_I2C_Read... [07:59:55]Read from MH i2c: 01 07 00 71 0A 00 00 00 00 00 FF 0C 8D [07:59:55]RasterBufferAndPrint [07:59:55]line [07:59:55]line [07:59:55]line [07:59:55]line [07:59:55]line [07:59:55]written 0, free lines is 3335 [07:59:55]MH_Cut [07:59:55]Write to MH i2c: D1 01 00 78 0A 01 54 [07:59:55]Write i2c OK [07:59:55]MH_I2C_Read... [07:59:55]Read from MH i2c: D1 [07:59:55]MH_I2C_Read... [07:59:55]Read from MH i2c: D1 01 00 [07:59:55]MH_I2C_Read... [07:59:55]Read from MH i2c: D1 01 00 78 0A 00 53 [07:59:55]Write to MH i2c: 01 00 00 79 0A 83 [07:59:55]Write i2c OK [07:59:55]MH_I2C_Read... [07:59:56]OFD Sender: No OFD packet to send [07:59:56]*** Cut start [07:59:56]*** Partial cut [07:59:56]*** CUTSNS_PIN = 1 [07:59:56]*** CUTSNS_PIN = 0 [07:59:56]*** Brake cut motor [07:59:57]Read from MH i2c: 01 [07:59:57]MH_I2C_Read... [07:59:57]*** Stop cut motor [07:59:57]*** Cut end [07:59:57]Read from MH i2c: 01 07 00 [07:59:57]MH_I2C_Read... [07:59:57]Read from MH i2c: 01 07 00 79 0A 00 00 00 00 00 FF 0F 98 [07:59:57]process_action close_receipt done [07:59:57]requested_data is exist [07:59:57]produce_requested_data [07:59:57]requested_item fm.sn is exist - process it [07:59:57]wFMCommunicate request_size=4 [07:59:57]MH_SAM_APDU [07:59:57]CAPDU: 80 11 00 00 [07:59:57]Write to MH i2c: E2 08 00 7A 0A 80 11 00 00 00 00 00 00 FE [07:59:57]Write i2c OK [07:59:57]MH_I2C_Read... [07:59:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:59:57]Read from MH i2c: E2 [07:59:57]MH_I2C_Read... [07:59:57]Read from MH i2c: E2 17 00 [07:59:57]MH_I2C_Read... [07:59:57]Read from MH i2c: E2 17 00 7A 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 54 [07:59:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [07:59:57]wFMCommunicate OK [07:59:57]requested_item fd.num is exist - process it [07:59:57]SAM_PROTO_GetFieldsCounters [07:59:57]wFMCommunicate request_size=4 [07:59:57]MH_SAM_APDU [07:59:57]CAPDU: 80 13 00 00 [07:59:57]Write to MH i2c: E2 08 00 7B 0A 80 13 00 00 00 00 00 00 01 [07:59:57]Write i2c OK [07:59:57]MH_I2C_Read... [07:59:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:59:57]Read from MH i2c: E2 [07:59:57]MH_I2C_Read... [07:59:57]Read from MH i2c: E2 62 00 [07:59:57]MH_I2C_Read... [07:59:57]Read from MH i2c: E2 62 00 7B 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E1 83 02 00 0E 04 04 00 BF 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 AB [07:59:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E1 83 02 00 0E 04 04 00 BF 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 [07:59:57]wFMCommunicate OK [07:59:57]SAM_PROTO_GetFieldsCounters done [07:59:57]requested_item shift.num is exist - process it [07:59:57]requested_item shift.opened is exist - process it [07:59:57]req_shift_opened [07:59:57]FM_GetShiftState [07:59:57]SAM_PROTO_GetShiftState [07:59:57]wFMCommunicate request_size=4 [07:59:57]MH_SAM_APDU [07:59:57]CAPDU: 80 13 01 00 [07:59:57]Write to MH i2c: E2 08 00 7C 0A 80 13 01 00 00 00 00 00 03 [07:59:57]Write i2c OK [07:59:57]MH_I2C_Read... [07:59:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:59:57]Read from MH i2c: E2 [07:59:57]MH_I2C_Read... [07:59:57]Read from MH i2c: E2 0E 00 [07:59:57]MH_I2C_Read... [07:59:57]Read from MH i2c: E2 0E 00 7C 0A 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 83 [07:59:57]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [07:59:57]wFMCommunicate OK [07:59:57]SAM_PROTO_GetShiftState done [07:59:57]FM_GetShiftState done [07:59:57]req_shift_opened done [07:59:57]requested_item shift.open_date is exist - process it [07:59:57]req_shift_open_date [07:59:57]req_shift_open_date done [07:59:57]produce_requested_data done [07:59:57]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164833,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [07:59:57]process_action_free close_receipt [07:59:57]json_value_free [07:59:57]json_value_free done [07:59:57]process_json_proto returns [07:59:57]Send response to host [07:59:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164833,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [07:59:57]free response buf [07:59:57]execute_script done [07:59:57]execute_script returns [07:59:57]free content buf [07:59:57]Sock 8.Close socket [07:59:57]Sock 8.Thread stoped [08:00:01]OFD Sender: No OFD packet to send [08:00:06]OFD Sender: No OFD packet to send [08:00:11]OFD Sender: No OFD packet to send [08:00:16]OFD Sender: No OFD packet to send [08:00:21]OFD Sender: No OFD packet to send [08:00:22]accept exits with 9 [08:00:22]New connection [08:00:22]New thread 3067571556 created [08:00:22]Thread 3067428196 joined [08:00:22]Waiting for new connection... [08:00:22] Sock 9.Parse request [08:00:22]Sock 9.Check first char [08:00:22]Sock 9.First char is OK [08:00:22]request: POST /json_proto HTTP/1.0 [08:00:22]Method: POST [08:00:22]URL: /json_proto [08:00:22]Method is POST - this is cgi request [08:00:22]url: /json_proto [08:00:22]query_string will be loaded in cgi processing [08:00:22]execute_cgi json_proto POST (null) [08:00:22]execute_cgi path=json_proto method=POST [08:00:22]POST find Content-Length [08:00:22]Host: 172.17.56.4:8080 [08:00:22]Content-Length: 677 [08:00:22]Content-Type: application/json [08:00:22] [08:00:22]POST finish read [08:00:22]Found Content-Length = 677 [08:00:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458929", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:00:22]execute_script... [08:00: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)458929", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:00:22]POST & json_proto [08:00:22]process_json_proto [08:00:22]json parsed OK: [08:00:22]protocol is kg_v1.0 [08:00:22]action value=close_receipt [08:00:22]process_action close_receipt [08:00:22]cmd_close_receipt [08:00:22]MH_GetDate [08:00:22]Write to MH i2c: F0 00 00 7D 0A 76 [08:00:22]Write i2c OK [08:00:22]MH_I2C_Read... [08:00:22]Read from MH i2c: F0 [08:00:22]MH_I2C_Read... [08:00:22]Read from MH i2c: F0 09 00 [08:00:22]MH_I2C_Read... [08:00:22]Read from MH i2c: F0 09 00 7D 0A 00 98 85 93 66 C9 DC B2 64 50 [08:00:22]GetLastDocTimeStamp 1720943995 [08:00:22]current date 1720944024 [08:00:22]FM_GetShiftState [08:00:22]SAM_PROTO_GetShiftState [08:00:22]wFMCommunicate request_size=4 [08:00:22]MH_SAM_APDU [08:00:22]CAPDU: 80 13 01 00 [08:00:22]Write to MH i2c: E2 08 00 7E 0A 80 13 01 00 00 00 00 00 05 [08:00:22]Write i2c OK [08:00:22]MH_I2C_Read... [08:00:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:00:22]Read from MH i2c: E2 [08:00:22]MH_I2C_Read... [08:00:22]Read from MH i2c: E2 0E 00 [08:00:22]MH_I2C_Read... [08:00:22]Read from MH i2c: E2 0E 00 7E 0A 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 85 [08:00:22]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [08:00:22]wFMCommunicate OK [08:00:22]SAM_PROTO_GetShiftState done [08:00:22]FM_GetShiftState done [08:00:22]opened in 1720917342 [08:00:22]opened+sec_in_day 1721003742 [08:00:22]quantity*price = 50008 [08:00:22]sum+1 = 50009 [08:00:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 32 14.07.2024 08:00 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164834 ФПД: 232570738932696 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T080024&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164834&fm=232570738932696&tin=02508201610067®Number=0000000000090829&sum=50000 [08:00:23]StoreToDocumentArchive [08:00:23]shift 447 fd 164834 [08:00:23]save to /storage/0447/doc_00164834 [08:00:23]save last doc name /storage/0447/doc_00164834 to /storage/kkm_last_doc_name [08:00:23]save OK [08:00:23]Clear old archive folders... [08:00:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:00:23]tlvbuf is 01653FE0 [08:00:23]SAM_PROTO_ClearQueue [08:00:23]wFMCommunicate request_size=4 [08:00:23]MH_SAM_APDU [08:00:23]CAPDU: 80 09 00 00 [08:00:23]Write to MH i2c: E2 08 00 8B 0A 80 09 00 00 00 00 00 00 07 [08:00:23]Write i2c OK [08:00:23]MH_I2C_Read... [08:00:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:00:23]Read from MH i2c: E2 [08:00:23]MH_I2C_Read... [08:00:23]Read from MH i2c: E2 03 00 [08:00:23]MH_I2C_Read... [08:00:23]Read from MH i2c: E2 03 00 8B 0A 00 90 00 09 [08:00:23]RAPDU: 90 00 [08:00:23]wFMCommunicate OK [08:00:23]SAM_PROTO_ClearQueue done [08:00:23]KKMCreateOFDPacket [08:00:23]OFDProtocolAddRootSTLVToBuf [08:00:23]FM_MakeSignedData [08:00:23]FM_MakeSignedData [08:00:23]SAM_PROTO_SignData [08:00:23]wFMCommunicate request_size=4 [08:00:23]MH_SAM_APDU [08:00:23]CAPDU: 80 0D 01 02 [08:00:23]Write to MH i2c: E2 08 00 8C 0A 80 0D 01 02 00 00 00 00 0F [08:00:23]Write i2c OK [08:00:23]MH_I2C_Read... [08:00:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:00:23]Read from MH i2c: E2 [08:00:23]MH_I2C_Read... [08:00:23]Read from MH i2c: E2 03 00 [08:00:23]MH_I2C_Read... [08:00:23]Read from MH i2c: E2 03 00 8C 0A 00 90 00 0A [08:00:23]RAPDU: 90 00 [08:00:23]wFMCommunicate OK [08:00:23]wFMCommunicate request_size=255 [08:00:23]MH_SAM_APDU [08:00:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 20 00 00 00 F4 03 04 00 98 85 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E2 83 02 00 35 04 06 00 D3 [08:00:23]Write to MH i2c: E2 02 01 8D 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 20 00 00 00 F4 03 04 00 98 85 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E2 83 02 00 35 04 06 00 D3 00 00 B8 [08:00:23]Write i2c OK [08:00:23]MH_I2C_Read... [08:00:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:00:23]Read from MH i2c: E2 [08:00:23]MH_I2C_Read... [08:00:23]Read from MH i2c: E2 03 00 [08:00:23]MH_I2C_Read... [08:00:23]Read from MH i2c: E2 03 00 8D 0A 00 90 00 0B [08:00:23]RAPDU: 90 00 [08:00:23]wFMCommunicate OK [08:00:23]wFMCommunicate request_size=10 [08:00:23]MH_SAM_APDU [08:00:23]CAPDU: 80 0D 02 02 05 85 98 47 7B D8 [08:00:23]Write to MH i2c: E2 0D 00 8E 0A 80 0D 02 02 05 00 85 98 47 7B D8 00 00 D3 [08:00:23]Write i2c OK [08:00:23]MH_I2C_Read... [08:00:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:00:23]Read from MH i2c: E2 [08:00:23]MH_I2C_Read... [08:00:23]Read from MH i2c: E2 03 00 [08:00:23]MH_I2C_Read... [08:00:23]Read from MH i2c: E2 03 00 8E 0A 00 90 00 0C [08:00:23]RAPDU: 90 00 [08:00:23]wFMCommunicate OK [08:00:23]wFMCommunicate request_size=4 [08:00:23]MH_SAM_APDU [08:00:23]CAPDU: 80 0D 03 02 [08:00:23]Write to MH i2c: E2 08 00 8F 0A 80 0D 03 02 00 00 00 00 14 [08:00:23]Write i2c OK [08:00:23]MH_I2C_Read... [08:00:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:00:23]Read from MH i2c: E2 [08:00:23]MH_I2C_Read... [08:00:23]Read from MH i2c: E2 0B 00 [08:00:23]MH_I2C_Read... [08:00:23]Read from MH i2c: E2 0B 00 8F 0A 00 31 F3 73 04 30 40 E7 43 90 00 4A [08:00:23]RAPDU: 31 F3 73 04 30 40 E7 43 90 00 [08:00:23]wFMCommunicate OK [08:00:23]SAM_PROTO_SignData done [08:00:23]FM_MakeSignedData done [08:00:23]CreateOFDProtocolMessage [08:00:23]wFMCommunicate request_size=4 [08:00:23]MH_SAM_APDU [08:00:23]CAPDU: 80 11 00 00 [08:00:23]Write to MH i2c: E2 08 00 90 0A 80 11 00 00 00 00 00 00 14 [08:00:23]Write i2c OK [08:00:23]MH_I2C_Read... [08:00:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:00:23]Read from MH i2c: E2 [08:00:23]MH_I2C_Read... [08:00:23]Read from MH i2c: E2 17 00 [08:00:23]MH_I2C_Read... [08:00:23]Read from MH i2c: E2 17 00 90 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 6A [08:00:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:00:23]wFMCommunicate OK [08:00:23]CreateOFDProtocolMessage done [08:00:23]OFDSenderStorePacket 164834 [08:00:23]StoreOFDPacket docnum=164834 [08:00:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 53 DD 07 01 1B BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 20 00 00 00 F4 03 04 00 98 85 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E2 83 02 00 35 04 06 00 D3 85 98 47 7B D8 31 F3 73 04 30 40 E7 43 [08:00:23]CheckFolder [08:00:23]dirname=/storage/ofd_packets [08:00:23]CheckFolder done [08:00:23]ProducePacketName [08:00:23]name=ofd_packets/00164834 [08:00:23]NVStorageSaveData ofd_packets/00164834 [08:00:23]File name is /storage/ofd_packets/00164834 [08:00:23]Write 301 bytes [08:00:23]NVStorageSaveData done [08:00:23]OFDSenderStorePacket done [08:00:23]KKMCreateOFDPacket done [08:00:23]NVStorageSaveData kkm_last_timestamp [08:00:23]File name is /storage/kkm_last_timestamp [08:00:23]Write 4 bytes [08:00:23]NVStorageSaveData done [08:00:23]ExternCall_PrintAddStr [08:00:23]wPrintStart [08:00:23]Write to MH i2c: 01 00 00 91 0A 9B [08:00:23]Write i2c OK [08:00:23]MH_I2C_Read... [08:00:23]Read from MH i2c: 01 [08:00:23]MH_I2C_Read... [08:00:23]Read from MH i2c: 01 07 00 [08:00:23]MH_I2C_Read... [08:00:23]Read from MH i2c: 01 07 00 91 0A 00 00 00 00 00 FF 0F B0 [08:00:23]RasterBufferAndPrint [08:00:23]line Счет N : (1)458929 [08:00:23]line ИНН: 02508201610067 [08:00:23]line Контрольно-Кассовый Чек [08:00:23]line ПРОДАЖА [08:00:23]line ТРК (МРК, ГНК) : 22 [08:00:23]line Товар: 2710124130 [08:00:23]line Аи-92-К-5 [08:00:23]line 7.600 * 65.80 [08:00:23]line = 500.08 [08:00:23]line НДС 12% НСП 1% [08:00:23]line > о реализуемом товаре [08:00:23]line ОКРУГЛЕНИЕ: -0.08 [08:00:23]line ИТОГО: 500.00 [08:00:23]line Внесено: 500.00 [08:00:23]line СДАЧА: 0.00 [08:00:23]line НСП 1% : 4.42 [08:00:23]line НДС 12% : 53.11 [08:00:23]line Наличными: 500.00 [08:00:23]line Безнал.: 0.00 [08:00:23]line Место: АЗС № 72 "Партнер Нефть" [08:00:23]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [08:00:23]line СНО: Общий режим [08:00:23]line Чек 32 14.07.2024 08:00 [08:00:23]line Смена: 447 ФФД: 1.0 [08:00:23]line ЗНМ: 0300000160 [08:00:23]line РНМ: 0000000000090829 [08:00:23]line Версия ККМ: 001 [08:00:23]line ФМ: 0000000000874718 [08:00:23]line ФД: 164834 [08:00:23]line ФПД: 232570738932696 [08:00:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T080024&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164834&fm=232570738932696&tin=02508201610067®Number=0000000000090829&sum=50000 [08:00:24]written 0, free lines is 4095 [08:00:24]OFD Sender: Processing packet 164834 [packets to send 104, broken 103] [08:00:24]ProducePacketName [08:00:24]name=ofd_packets/00164834 [08:00:24]OFD Sender: To server: pG, [08:00:24]CommunicateWithHost lk.salyk.kg:30040 [08:00:24]ConnectInit lk.salyk.kg [08:00:24]Connected sock=10 [08:00:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 53 DD 07 01 1B BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 20 00 00 00 F4 03 04 00 98 85 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E2 83 02 00 35 04 06 00 D3 85 98 47 7B D8 31 F3 73 04 30 40 E7 43 [08:00:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 32 0B 47 00 1C 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E2 83 02 00 F4 03 04 00 26 2C 93 66 B6 04 01 00 00 98 C1 5A F4 37 7A 93 7C [08:00:24]CommunicateWithHost err = 0 [08:00:24]CheckOFDResponse [08:00:24]1017 (14) - 77093643461234 [08:00:24]1041 (16) - 0000000000874718 [08:00:24]1040 (4) - 164834 [08:00:24]1012 (4) - 14.07.2024 01:38 [08:00:24]1206 (1) - 0 [08:00:24]OFD Sender: Remove packet 164834 [08:00:24]ProducePacketName [08:00:24]name=ofd_packets/00164834 [08:00:24]NVStorageDeleteData [08:00:24]Write to MH i2c: 01 00 00 BB 0A C5 [08:00:24]Write i2c OK [08:00:24]MH_I2C_Read... [08:00:24]Read from MH i2c: 01 [08:00:24]MH_I2C_Read... [08:00:24]Read from MH i2c: 01 07 00 [08:00:24]MH_I2C_Read... [08:00:24]Read from MH i2c: 01 07 00 BB 0A 00 00 00 00 00 15 0D EE [08:00:24]RasterBufferAndPrint [08:00:24]line [08:00:24]line [08:00:24]line [08:00:24]line [08:00:24]line [08:00:24]written 0, free lines is 3356 [08:00:24]MH_Cut [08:00:24]Write to MH i2c: D1 01 00 C2 0A 01 9E [08:00:24]Write i2c OK [08:00:24]MH_I2C_Read... [08:00:24]Read from MH i2c: D1 [08:00:24]MH_I2C_Read... [08:00:24]Read from MH i2c: D1 01 00 [08:00:24]MH_I2C_Read... [08:00:24]Read from MH i2c: D1 01 00 C2 0A 00 9D [08:00:24]Write to MH i2c: 01 00 00 C3 0A CD [08:00:24]Write i2c OK [08:00:24]MH_I2C_Read... [08:00:25]OFD Sender: No OFD packet to send [08:00:25]*** Cut start [08:00:25]*** Partial cut [08:00:25]*** CUTSNS_PIN = 1 [08:00:25]*** CUTSNS_PIN = 0 [08:00:25]*** Brake cut motor [08:00:25]Read from MH i2c: 01 [08:00:25]MH_I2C_Read... [08:00:25]*** Stop cut motor [08:00:25]*** Cut end [08:00:25]Read from MH i2c: 01 07 00 [08:00:25]MH_I2C_Read... [08:00:25]Read from MH i2c: 01 07 00 C3 0A 00 00 00 00 00 FF 0F E2 [08:00:25]process_action close_receipt done [08:00:25]requested_data is exist [08:00:25]produce_requested_data [08:00:25]requested_item fm.sn is exist - process it [08:00:25]wFMCommunicate request_size=4 [08:00:25]MH_SAM_APDU [08:00:25]CAPDU: 80 11 00 00 [08:00:25]Write to MH i2c: E2 08 00 C4 0A 80 11 00 00 00 00 00 00 48 [08:00:25]Write i2c OK [08:00:25]MH_I2C_Read... [08:00:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:00:26]Read from MH i2c: E2 [08:00:26]MH_I2C_Read... [08:00:26]Read from MH i2c: E2 17 00 [08:00:26]MH_I2C_Read... [08:00:26]Read from MH i2c: E2 17 00 C4 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 9E [08:00:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:00:26]wFMCommunicate OK [08:00:26]requested_item fd.num is exist - process it [08:00:26]SAM_PROTO_GetFieldsCounters [08:00:26]wFMCommunicate request_size=4 [08:00:26]MH_SAM_APDU [08:00:26]CAPDU: 80 13 00 00 [08:00:26]Write to MH i2c: E2 08 00 C5 0A 80 13 00 00 00 00 00 00 4B [08:00:26]Write i2c OK [08:00:26]MH_I2C_Read... [08:00:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:00:26]Read from MH i2c: E2 [08:00:26]MH_I2C_Read... [08:00:26]Read from MH i2c: E2 62 00 [08:00:26]MH_I2C_Read... [08:00:26]Read from MH i2c: E2 62 00 C5 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E2 83 02 00 0E 04 04 00 BF 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 F9 [08:00:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E2 83 02 00 0E 04 04 00 BF 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 [08:00:26]wFMCommunicate OK [08:00:26]SAM_PROTO_GetFieldsCounters done [08:00:26]requested_item shift.num is exist - process it [08:00:26]requested_item shift.opened is exist - process it [08:00:26]req_shift_opened [08:00:26]FM_GetShiftState [08:00:26]SAM_PROTO_GetShiftState [08:00:26]wFMCommunicate request_size=4 [08:00:26]MH_SAM_APDU [08:00:26]CAPDU: 80 13 01 00 [08:00:26]Write to MH i2c: E2 08 00 C6 0A 80 13 01 00 00 00 00 00 4D [08:00:26]Write i2c OK [08:00:26]MH_I2C_Read... [08:00:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:00:26]Read from MH i2c: E2 [08:00:26]MH_I2C_Read... [08:00:26]Read from MH i2c: E2 0E 00 [08:00:26]MH_I2C_Read... [08:00:26]Read from MH i2c: E2 0E 00 C6 0A 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 CD [08:00:26]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [08:00:26]wFMCommunicate OK [08:00:26]SAM_PROTO_GetShiftState done [08:00:26]FM_GetShiftState done [08:00:26]req_shift_opened done [08:00:26]requested_item shift.open_date is exist - process it [08:00:26]req_shift_open_date [08:00:26]req_shift_open_date done [08:00:26]produce_requested_data done [08:00:26]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164834,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [08:00:26]process_action_free close_receipt [08:00:26]json_value_free [08:00:26]json_value_free done [08:00:26]process_json_proto returns [08:00:26]Send response to host [08:00:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164834,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [08:00:26]free response buf [08:00:26]execute_script done [08:00:26]execute_script returns [08:00:26]free content buf [08:00:26]Sock 9.Close socket [08:00:26]Sock 9.Thread stoped [08:00:30]OFD Sender: No OFD packet to send [08:00:35]OFD Sender: No OFD packet to send [08:00:40]OFD Sender: No OFD packet to send [08:00:45]OFD Sender: No OFD packet to send [08:00:50]OFD Sender: No OFD packet to send [08:00:55]OFD Sender: No OFD packet to send [08:01:00]OFD Sender: No OFD packet to send [08:01:05]OFD Sender: No OFD packet to send [08:01:10]OFD Sender: No OFD packet to send [08:01:15]OFD Sender: No OFD packet to send [08:01:20]OFD Sender: No OFD packet to send [08:01:25]OFD Sender: No OFD packet to send [08:01:30]OFD Sender: No OFD packet to send [08:01:35]OFD Sender: No OFD packet to send [08:01:40]OFD Sender: No OFD packet to send [08:01:45]OFD Sender: No OFD packet to send [08:01:50]OFD Sender: No OFD packet to send [08:01:55]OFD Sender: No OFD packet to send [08:02:00]OFD Sender: No OFD packet to send [08:02:05]OFD Sender: No OFD packet to send [08:02:10]OFD Sender: No OFD packet to send [08:02:15]OFD Sender: No OFD packet to send [08:02:20]OFD Sender: No OFD packet to send [08:02:25]OFD Sender: No OFD packet to send [08:02:30]OFD Sender: No OFD packet to send [08:02:35]OFD Sender: No OFD packet to send [08:02:40]OFD Sender: No OFD packet to send [08:02:45]OFD Sender: No OFD packet to send [08:02:50]OFD Sender: No OFD packet to send [08:02:55]OFD Sender: No OFD packet to send [08:03:00]OFD Sender: No OFD packet to send [08:03:05]OFD Sender: No OFD packet to send [08:03:10]OFD Sender: No OFD packet to send [08:03:15]OFD Sender: No OFD packet to send [08:03:20]OFD Sender: No OFD packet to send [08:03:25]OFD Sender: No OFD packet to send [08:03:30]OFD Sender: No OFD packet to send [08:03:35]OFD Sender: No OFD packet to send [08:03:40]OFD Sender: No OFD packet to send [08:03:45]OFD Sender: No OFD packet to send [08:03:50]OFD Sender: No OFD packet to send [08:03:55]OFD Sender: No OFD packet to send [08:04:00]OFD Sender: No OFD packet to send [08:04:05]OFD Sender: No OFD packet to send [08:04:10]OFD Sender: No OFD packet to send [08:04:15]OFD Sender: No OFD packet to send [08:04:20]OFD Sender: No OFD packet to send [08:04:25]OFD Sender: No OFD packet to send [08:04:30]OFD Sender: No OFD packet to send [08:04:35]OFD Sender: No OFD packet to send [08:04:40]OFD Sender: No OFD packet to send [08:04:45]OFD Sender: No OFD packet to send [08:04:50]OFD Sender: No OFD packet to send [08:04:55]OFD Sender: No OFD packet to send [08:05:00]OFD Sender: No OFD packet to send [08:05:05]OFD Sender: No OFD packet to send [08:05:10]OFD Sender: No OFD packet to send [08:05:15]OFD Sender: No OFD packet to send [08:05:20]OFD Sender: No OFD packet to send [08:05:25]OFD Sender: No OFD packet to send [08:05:30]OFD Sender: No OFD packet to send [08:05:35]OFD Sender: No OFD packet to send [08:05:40]OFD Sender: No OFD packet to send [08:05:45]OFD Sender: No OFD packet to send [08:05:50]OFD Sender: No OFD packet to send [08:05:55]OFD Sender: No OFD packet to send [08:06:00]OFD Sender: No OFD packet to send [08:06:05]OFD Sender: No OFD packet to send [08:06:10]OFD Sender: No OFD packet to send [08:06:15]OFD Sender: No OFD packet to send [08:06:20]OFD Sender: No OFD packet to send [08:06:25]OFD Sender: No OFD packet to send [08:06:30]OFD Sender: No OFD packet to send [08:06:35]OFD Sender: No OFD packet to send [08:06:40]OFD Sender: No OFD packet to send [08:06:45]OFD Sender: No OFD packet to send [08:06:50]OFD Sender: No OFD packet to send [08:06:55]OFD Sender: No OFD packet to send [08:07:00]OFD Sender: No OFD packet to send [08:07:05]OFD Sender: No OFD packet to send [08:07:10]OFD Sender: No OFD packet to send [08:07:15]OFD Sender: No OFD packet to send [08:07:20]OFD Sender: No OFD packet to send [08:07:25]OFD Sender: No OFD packet to send [08:07:30]OFD Sender: No OFD packet to send [08:07:35]OFD Sender: No OFD packet to send [08:07:40]OFD Sender: No OFD packet to send [08:07:45]OFD Sender: No OFD packet to send [08:07:50]OFD Sender: No OFD packet to send [08:07:55]OFD Sender: No OFD packet to send [08:08:00]OFD Sender: No OFD packet to send [08:08:05]OFD Sender: No OFD packet to send [08:08:10]OFD Sender: No OFD packet to send [08:08:15]OFD Sender: No OFD packet to send [08:08:20]OFD Sender: No OFD packet to send [08:08:25]OFD Sender: No OFD packet to send [08:08:30]OFD Sender: No OFD packet to send [08:08:35]OFD Sender: No OFD packet to send [08:08:40]OFD Sender: No OFD packet to send [08:08:45]OFD Sender: No OFD packet to send [08:08:50]OFD Sender: No OFD packet to send [08:08:55]OFD Sender: No OFD packet to send [08:09:00]OFD Sender: No OFD packet to send [08:09:05]OFD Sender: No OFD packet to send [08:09:10]OFD Sender: No OFD packet to send [08:09:15]OFD Sender: No OFD packet to send [08:09:18]accept exits with 8 [08:09:18]New connection [08:09:18]New thread 3067428196 created [08:09:18]Thread 3067571556 joined [08:09:18]Waiting for new connection... [08:09:18] Sock 8.Parse request [08:09:18]Sock 8.Check first char [08:09:18]Sock 8.First char is OK [08:09:18]request: POST /json_proto HTTP/1.0 [08:09:18]Method: POST [08:09:18]URL: /json_proto [08:09:18]Method is POST - this is cgi request [08:09:18]url: /json_proto [08:09:18]query_string will be loaded in cgi processing [08:09:18]execute_cgi json_proto POST (null) [08:09:18]execute_cgi path=json_proto method=POST [08:09:18]POST find Content-Length [08:09:18]Host: 172.17.56.4:8080 [08:09:18]Content-Length: 677 [08:09:18]Content-Type: application/json [08:09:18] [08:09:18]POST finish read [08:09:18]Found Content-Length = 677 [08:09:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458931", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:09:18]execute_script... [08:09:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458931", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:09:18]POST & json_proto [08:09:18]process_json_proto [08:09:18]json parsed OK: [08:09:18]protocol is kg_v1.0 [08:09:18]action value=close_receipt [08:09:18]process_action close_receipt [08:09:18]cmd_close_receipt [08:09:18]MH_GetDate [08:09:18]Write to MH i2c: F0 00 00 C7 0A C0 [08:09:18]Write i2c OK [08:09:18]MH_I2C_Read... [08:09:18]Read from MH i2c: F0 [08:09:18]MH_I2C_Read... [08:09:18]Read from MH i2c: F0 09 00 [08:09:18]MH_I2C_Read... [08:09:18]Read from MH i2c: F0 09 00 C7 0A 00 B0 87 93 66 C9 DC B2 64 B4 [08:09:18]GetLastDocTimeStamp 1720944024 [08:09:18]current date 1720944560 [08:09:18]FM_GetShiftState [08:09:18]SAM_PROTO_GetShiftState [08:09:18]wFMCommunicate request_size=4 [08:09:18]MH_SAM_APDU [08:09:18]CAPDU: 80 13 01 00 [08:09:18]Write to MH i2c: E2 08 00 C8 0A 80 13 01 00 00 00 00 00 4F [08:09:18]Write i2c OK [08:09:18]MH_I2C_Read... [08:09:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:09:18]Read from MH i2c: E2 [08:09:18]MH_I2C_Read... [08:09:18]Read from MH i2c: E2 0E 00 [08:09:18]MH_I2C_Read... [08:09:18]Read from MH i2c: E2 0E 00 C8 0A 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 CF [08:09:18]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [08:09:18]wFMCommunicate OK [08:09:18]SAM_PROTO_GetShiftState done [08:09:18]FM_GetShiftState done [08:09:18]opened in 1720917342 [08:09:18]opened+sec_in_day 1721003742 [08:09:18]quantity*price = 50008 [08:09:18]sum+1 = 50009 [08:09:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 33 14.07.2024 08:09 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164835 ФПД: 242830202287019 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T080920&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164835&fm=242830202287019&tin=02508201610067®Number=0000000000090829&sum=50000 [08:09:19]StoreToDocumentArchive [08:09:19]shift 447 fd 164835 [08:09:19]save to /storage/0447/doc_00164835 [08:09:19]save last doc name /storage/0447/doc_00164835 to /storage/kkm_last_doc_name [08:09:19]save OK [08:09:19]Clear old archive folders... [08:09:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:09:19]tlvbuf is 01654630 [08:09:19]SAM_PROTO_ClearQueue [08:09:19]wFMCommunicate request_size=4 [08:09:19]MH_SAM_APDU [08:09:19]CAPDU: 80 09 00 00 [08:09:19]Write to MH i2c: E2 08 00 D5 0A 80 09 00 00 00 00 00 00 51 [08:09:19]Write i2c OK [08:09:19]MH_I2C_Read... [08:09:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:09:19]Read from MH i2c: E2 [08:09:19]MH_I2C_Read... [08:09:19]Read from MH i2c: E2 03 00 [08:09:19]MH_I2C_Read... [08:09:19]Read from MH i2c: E2 03 00 D5 0A 00 90 00 53 [08:09:19]RAPDU: 90 00 [08:09:19]wFMCommunicate OK [08:09:19]SAM_PROTO_ClearQueue done [08:09:19]KKMCreateOFDPacket [08:09:19]OFDProtocolAddRootSTLVToBuf [08:09:19]FM_MakeSignedData [08:09:19]FM_MakeSignedData [08:09:19]SAM_PROTO_SignData [08:09:19]wFMCommunicate request_size=4 [08:09:19]MH_SAM_APDU [08:09:19]CAPDU: 80 0D 01 02 [08:09:19]Write to MH i2c: E2 08 00 D6 0A 80 0D 01 02 00 00 00 00 59 [08:09:19]Write i2c OK [08:09:19]MH_I2C_Read... [08:09:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:09:19]Read from MH i2c: E2 [08:09:19]MH_I2C_Read... [08:09:19]Read from MH i2c: E2 03 00 [08:09:19]MH_I2C_Read... [08:09:19]Read from MH i2c: E2 03 00 D6 0A 00 90 00 54 [08:09:19]RAPDU: 90 00 [08:09:19]wFMCommunicate OK [08:09:19]wFMCommunicate request_size=255 [08:09:19]MH_SAM_APDU [08:09:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 21 00 00 00 F4 03 04 00 B0 87 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E3 83 02 00 35 04 06 00 DC [08:09:19]Write to MH i2c: E2 02 01 D7 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 21 00 00 00 F4 03 04 00 B0 87 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E3 83 02 00 35 04 06 00 DC 00 00 27 [08:09:19]Write i2c OK [08:09:19]MH_I2C_Read... [08:09:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:09:19]Read from MH i2c: E2 [08:09:19]MH_I2C_Read... [08:09:19]Read from MH i2c: E2 03 00 [08:09:19]MH_I2C_Read... [08:09:19]Read from MH i2c: E2 03 00 D7 0A 00 90 00 55 [08:09:19]RAPDU: 90 00 [08:09:19]wFMCommunicate OK [08:09:19]wFMCommunicate request_size=10 [08:09:19]MH_SAM_APDU [08:09:19]CAPDU: 80 0D 02 02 05 DA 4F F2 B3 AB [08:09:19]Write to MH i2c: E2 0D 00 D8 0A 80 0D 02 02 05 00 DA 4F F2 B3 AB 00 00 DF [08:09:19]Write i2c OK [08:09:19]MH_I2C_Read... [08:09:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:09:19]Read from MH i2c: E2 [08:09:19]MH_I2C_Read... [08:09:19]Read from MH i2c: E2 03 00 [08:09:19]MH_I2C_Read... [08:09:19]Read from MH i2c: E2 03 00 D8 0A 00 90 00 56 [08:09:19]RAPDU: 90 00 [08:09:19]wFMCommunicate OK [08:09:19]wFMCommunicate request_size=4 [08:09:19]MH_SAM_APDU [08:09:19]CAPDU: 80 0D 03 02 [08:09:19]Write to MH i2c: E2 08 00 D9 0A 80 0D 03 02 00 00 00 00 5E [08:09:19]Write i2c OK [08:09:19]MH_I2C_Read... [08:09:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:09:19]Read from MH i2c: E2 [08:09:19]MH_I2C_Read... [08:09:19]Read from MH i2c: E2 0B 00 [08:09:19]MH_I2C_Read... [08:09:19]Read from MH i2c: E2 0B 00 D9 0A 00 55 0E AC F3 AD 45 C3 D2 90 00 E8 [08:09:19]RAPDU: 55 0E AC F3 AD 45 C3 D2 90 00 [08:09:19]wFMCommunicate OK [08:09:19]SAM_PROTO_SignData done [08:09:19]FM_MakeSignedData done [08:09:19]CreateOFDProtocolMessage [08:09:19]wFMCommunicate request_size=4 [08:09:19]MH_SAM_APDU [08:09:19]CAPDU: 80 11 00 00 [08:09:19]Write to MH i2c: E2 08 00 DA 0A 80 11 00 00 00 00 00 00 5E [08:09:19]Write i2c OK [08:09:19]MH_I2C_Read... [08:09:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:09:20]Read from MH i2c: E2 [08:09:20]MH_I2C_Read... [08:09:20]Read from MH i2c: E2 17 00 [08:09:20]MH_I2C_Read... [08:09:20]Read from MH i2c: E2 17 00 DA 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B4 [08:09:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:09:20]wFMCommunicate OK [08:09:20]CreateOFDProtocolMessage done [08:09:20]OFDSenderStorePacket 164835 [08:09:20]StoreOFDPacket docnum=164835 [08:09:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D1 EE 07 01 B9 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 21 00 00 00 F4 03 04 00 B0 87 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E3 83 02 00 35 04 06 00 DC DA 4F F2 B3 AB 55 0E AC F3 AD 45 C3 D2 [08:09:20]CheckFolder [08:09:20]dirname=/storage/ofd_packets [08:09:20]CheckFolder done [08:09:20]ProducePacketName [08:09:20]name=ofd_packets/00164835 [08:09:20]NVStorageSaveData ofd_packets/00164835 [08:09:20]File name is /storage/ofd_packets/00164835 [08:09:20]Write 301 bytes [08:09:20]NVStorageSaveData done [08:09:20]OFDSenderStorePacket done [08:09:20]KKMCreateOFDPacket done [08:09:20]NVStorageSaveData kkm_last_timestamp [08:09:20]File name is /storage/kkm_last_timestamp [08:09:20]Write 4 bytes [08:09:20]NVStorageSaveData done [08:09:20]ExternCall_PrintAddStr [08:09:20]wPrintStart [08:09:20]Write to MH i2c: 01 00 00 DB 0A E5 [08:09:20]Write i2c OK [08:09:20]MH_I2C_Read... [08:09:20]Read from MH i2c: 01 [08:09:20]MH_I2C_Read... [08:09:20]Read from MH i2c: 01 07 00 [08:09:20]MH_I2C_Read... [08:09:20]Read from MH i2c: 01 07 00 DB 0A 00 00 00 00 00 FF 0F FA [08:09:20]RasterBufferAndPrint [08:09:20]line Счет N : (1)458931 [08:09:20]line ИНН: 02508201610067 [08:09:20]line Контрольно-Кассовый Чек [08:09:20]line ПРОДАЖА [08:09:20]line ТРК (МРК, ГНК) : 12 [08:09:20]line Товар: 2710124130 [08:09:20]line Аи-92-К-5 [08:09:20]line 7.600 * 65.80 [08:09:20]line = 500.08 [08:09:20]line НДС 12% НСП 1% [08:09:20]line > о реализуемом товаре [08:09:20]line ОКРУГЛЕНИЕ: -0.08 [08:09:20]line ИТОГО: 500.00 [08:09:20]line Внесено: 500.00 [08:09:20]line СДАЧА: 0.00 [08:09:20]line НСП 1% : 4.42 [08:09:20]line НДС 12% : 53.11 [08:09:20]line Наличными: 500.00 [08:09:20]line Безнал.: 0.00 [08:09:20]line Место: АЗС № 72 "Партнер Нефть" [08:09:20]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [08:09:20]line СНО: Общий режим [08:09:20]line Чек 33 14.07.2024 08:09 [08:09:20]line Смена: 447 ФФД: 1.0 [08:09:20]line ЗНМ: 0300000160 [08:09:20]line РНМ: 0000000000090829 [08:09:20]line Версия ККМ: 001 [08:09:20]line ФМ: 0000000000874718 [08:09:20]line ФД: 164835 [08:09:20]line ФПД: 242830202287019 [08:09:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T080920&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164835&fm=242830202287019&tin=02508201610067®Number=0000000000090829&sum=50000 [08:09:20]written 0, free lines is 4095 [08:09:20]OFD Sender: Processing packet 164835 [packets to send 104, broken 103] [08:09:20]ProducePacketName [08:09:20]name=ofd_packets/00164835 [08:09:20]OFD Sender: To server: pG, [08:09:20]CommunicateWithHost lk.salyk.kg:30040 [08:09:20]ConnectInit lk.salyk.kg [08:09:20]Connected sock=11 [08:09:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D1 EE 07 01 B9 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 21 00 00 00 F4 03 04 00 B0 87 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E3 83 02 00 35 04 06 00 DC DA 4F F2 B3 AB 55 0E AC F3 AD 45 C3 D2 [08:09:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 60 DB 47 00 AC 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E3 83 02 00 F4 03 04 00 3E 2E 93 66 B6 04 01 00 00 21 8E 5B CF 4C 5C C2 AF [08:09:20]CommunicateWithHost err = 0 [08:09:20]CheckOFDResponse [08:09:20]1017 (14) - 77093643461234 [08:09:20]1041 (16) - 0000000000874718 [08:09:20]1040 (4) - 164835 [08:09:20]1012 (4) - 14.07.2024 01:47 [08:09:20]1206 (1) - 0 [08:09:20]OFD Sender: Remove packet 164835 [08:09:20]ProducePacketName [08:09:20]name=ofd_packets/00164835 [08:09:20]NVStorageDeleteData [08:09:20]Write to MH i2c: 01 00 00 05 0B 10 [08:09:20]Write i2c OK [08:09:20]MH_I2C_Read... [08:09:20]Read from MH i2c: 01 [08:09:20]MH_I2C_Read... [08:09:20]Read from MH i2c: 01 07 00 [08:09:20]MH_I2C_Read... [08:09:20]Read from MH i2c: 01 07 00 05 0B 00 00 00 00 00 07 0D 2B [08:09:20]RasterBufferAndPrint [08:09:20]line [08:09:20]line [08:09:20]line [08:09:20]line [08:09:20]line [08:09:20]written 0, free lines is 3341 [08:09:20]MH_Cut [08:09:20]Write to MH i2c: D1 01 00 0C 0B 01 E9 [08:09:20]Write i2c OK [08:09:20]MH_I2C_Read... [08:09:20]Read from MH i2c: D1 [08:09:20]MH_I2C_Read... [08:09:20]Read from MH i2c: D1 01 00 [08:09:20]MH_I2C_Read... [08:09:20]Read from MH i2c: D1 01 00 0C 0B 00 E8 [08:09:20]Write to MH i2c: 01 00 00 0D 0B 18 [08:09:20]Write i2c OK [08:09:20]MH_I2C_Read... [08:09:20]OFD Sender: No OFD packet to send [08:09:21]*** Cut start [08:09:21]*** Partial cut [08:09:21]*** CUTSNS_PIN = 1 [08:09:21]*** CUTSNS_PIN = 0 [08:09:21]*** Brake cut motor [08:09:21]Read from MH i2c: 01 [08:09:21]MH_I2C_Read... [08:09:21]*** Stop cut motor [08:09:21]*** Cut end [08:09:21]Read from MH i2c: 01 07 00 [08:09:21]MH_I2C_Read... [08:09:21]Read from MH i2c: 01 07 00 0D 0B 00 00 00 00 00 FF 0F 2D [08:09:21]process_action close_receipt done [08:09:21]requested_data is exist [08:09:21]produce_requested_data [08:09:21]requested_item fm.sn is exist - process it [08:09:21]wFMCommunicate request_size=4 [08:09:21]MH_SAM_APDU [08:09:21]CAPDU: 80 11 00 00 [08:09:21]Write to MH i2c: E2 08 00 0E 0B 80 11 00 00 00 00 00 00 93 [08:09:21]Write i2c OK [08:09:21]MH_I2C_Read... [08:09:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:09:21]Read from MH i2c: E2 [08:09:21]MH_I2C_Read... [08:09:21]Read from MH i2c: E2 17 00 [08:09:21]MH_I2C_Read... [08:09:21]Read from MH i2c: E2 17 00 0E 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E9 [08:09:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:09:21]wFMCommunicate OK [08:09:21]requested_item fd.num is exist - process it [08:09:21]SAM_PROTO_GetFieldsCounters [08:09:21]wFMCommunicate request_size=4 [08:09:21]MH_SAM_APDU [08:09:21]CAPDU: 80 13 00 00 [08:09:21]Write to MH i2c: E2 08 00 0F 0B 80 13 00 00 00 00 00 00 96 [08:09:21]Write i2c OK [08:09:21]MH_I2C_Read... [08:09:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:09:21]Read from MH i2c: E2 [08:09:21]MH_I2C_Read... [08:09:21]Read from MH i2c: E2 62 00 [08:09:21]MH_I2C_Read... [08:09:21]Read from MH i2c: E2 62 00 0F 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E3 83 02 00 0E 04 04 00 BF 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 48 [08:09:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E3 83 02 00 0E 04 04 00 BF 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 [08:09:21]wFMCommunicate OK [08:09:21]SAM_PROTO_GetFieldsCounters done [08:09:21]requested_item shift.num is exist - process it [08:09:21]requested_item shift.opened is exist - process it [08:09:21]req_shift_opened [08:09:21]FM_GetShiftState [08:09:21]SAM_PROTO_GetShiftState [08:09:21]wFMCommunicate request_size=4 [08:09:21]MH_SAM_APDU [08:09:21]CAPDU: 80 13 01 00 [08:09:21]Write to MH i2c: E2 08 00 10 0B 80 13 01 00 00 00 00 00 98 [08:09:21]Write i2c OK [08:09:21]MH_I2C_Read... [08:09:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:09:22]Read from MH i2c: E2 [08:09:22]MH_I2C_Read... [08:09:22]Read from MH i2c: E2 0E 00 [08:09:22]MH_I2C_Read... [08:09:22]Read from MH i2c: E2 0E 00 10 0B 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 18 [08:09:22]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [08:09:22]wFMCommunicate OK [08:09:22]SAM_PROTO_GetShiftState done [08:09:22]FM_GetShiftState done [08:09:22]req_shift_opened done [08:09:22]requested_item shift.open_date is exist - process it [08:09:22]req_shift_open_date [08:09:22]req_shift_open_date done [08:09:22]produce_requested_data done [08:09:22]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164835,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [08:09:22]process_action_free close_receipt [08:09:22]json_value_free [08:09:22]json_value_free done [08:09:22]process_json_proto returns [08:09:22]Send response to host [08:09:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164835,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [08:09:22]free response buf [08:09:22]execute_script done [08:09:22]execute_script returns [08:09:22]free content buf [08:09:22]Sock 8.Close socket [08:09:22]Sock 8.Thread stoped [08:09:25]OFD Sender: No OFD packet to send [08:09:30]OFD Sender: No OFD packet to send [08:09:35]OFD Sender: No OFD packet to send [08:09:40]OFD Sender: No OFD packet to send [08:09:45]OFD Sender: No OFD packet to send [08:09:50]OFD Sender: No OFD packet to send [08:09:55]OFD Sender: No OFD packet to send [08:10:00]OFD Sender: No OFD packet to send [08:10:05]OFD Sender: No OFD packet to send [08:10:10]OFD Sender: No OFD packet to send [08:10:15]OFD Sender: No OFD packet to send [08:10:20]OFD Sender: No OFD packet to send [08:10:25]OFD Sender: No OFD packet to send [08:10:30]OFD Sender: No OFD packet to send [08:10:35]OFD Sender: No OFD packet to send [08:10:40]OFD Sender: No OFD packet to send [08:10:45]OFD Sender: No OFD packet to send [08:10:50]OFD Sender: No OFD packet to send [08:10:55]OFD Sender: No OFD packet to send [08:11:00]OFD Sender: No OFD packet to send [08:11:05]OFD Sender: No OFD packet to send [08:11:10]OFD Sender: No OFD packet to send [08:11:15]OFD Sender: No OFD packet to send [08:11:20]OFD Sender: No OFD packet to send [08:11:26]OFD Sender: No OFD packet to send [08:11:31]OFD Sender: No OFD packet to send [08:11:36]OFD Sender: No OFD packet to send [08:11:41]OFD Sender: No OFD packet to send [08:11:46]OFD Sender: No OFD packet to send [08:11:51]OFD Sender: No OFD packet to send [08:11:56]OFD Sender: No OFD packet to send [08:12:01]OFD Sender: No OFD packet to send [08:12:06]OFD Sender: No OFD packet to send [08:12:11]OFD Sender: No OFD packet to send [08:12:16]OFD Sender: No OFD packet to send [08:12:21]OFD Sender: No OFD packet to send [08:12:26]OFD Sender: No OFD packet to send [08:12:31]OFD Sender: No OFD packet to send [08:12:36]OFD Sender: No OFD packet to send [08:12:41]OFD Sender: No OFD packet to send [08:12:46]OFD Sender: No OFD packet to send [08:12:51]OFD Sender: No OFD packet to send [08:12:56]OFD Sender: No OFD packet to send [08:13:01]OFD Sender: No OFD packet to send [08:13:06]OFD Sender: No OFD packet to send [08:13:11]OFD Sender: No OFD packet to send [08:13:16]OFD Sender: No OFD packet to send [08:13:21]OFD Sender: No OFD packet to send [08:13:26]OFD Sender: No OFD packet to send [08:13:31]OFD Sender: No OFD packet to send [08:13:36]OFD Sender: No OFD packet to send [08:13:41]OFD Sender: No OFD packet to send [08:13:46]OFD Sender: No OFD packet to send [08:13:51]OFD Sender: No OFD packet to send [08:13:56]OFD Sender: No OFD packet to send [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:15:01]OFD Sender: No OFD packet to send [08:15:06]OFD Sender: No OFD packet to send [08:15:11]OFD Sender: No OFD packet to send [08:15:11]accept exits with 10 [08:15:11]New connection [08:15:11]New thread 3067571556 created [08:15:11]Thread 3067428196 joined [08:15:11]Waiting for new connection... [08:15:11] Sock 10.Parse request [08:15:11]Sock 10.Check first char [08:15:11]Sock 10.First char is OK [08:15:11]request: POST /json_proto HTTP/1.0 [08:15:11]Method: POST [08:15:11]URL: /json_proto [08:15:11]Method is POST - this is cgi request [08:15:11]url: /json_proto [08:15:11]query_string will be loaded in cgi processing [08:15:11]execute_cgi json_proto POST (null) [08:15:11]execute_cgi path=json_proto method=POST [08:15:11]POST find Content-Length [08:15:11]Host: 172.17.56.4:8080 [08:15:11]Content-Length: 790 [08:15:11]Content-Type: application/json [08:15:11] [08:15:11]POST finish read [08:15:11]Found Content-Length = 790 [08:15:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458932", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 7.670, "sum" : 500.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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:15:11]execute_script... [08:15: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)458932", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 7.670, "sum" : 500.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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:15:11]POST & json_proto [08:15:11]process_json_proto [08:15:11]json parsed OK: [08:15:11]protocol is kg_v1.0 [08:15:11]action value=close_receipt [08:15:11]process_action close_receipt [08:15:11]cmd_close_receipt [08:15:11]MH_GetDate [08:15:11]Write to MH i2c: F0 00 00 11 0B 0B [08:15:11]Write i2c OK [08:15:11]MH_I2C_Read... [08:15:11]Read from MH i2c: F0 [08:15:11]MH_I2C_Read... [08:15:11]Read from MH i2c: F0 09 00 [08:15:11]MH_I2C_Read... [08:15:11]Read from MH i2c: F0 09 00 11 0B 00 11 89 93 66 C9 DC B2 64 62 [08:15:11]GetLastDocTimeStamp 1720944560 [08:15:11]current date 1720944913 [08:15:11]FM_GetShiftState [08:15:11]SAM_PROTO_GetShiftState [08:15:11]wFMCommunicate request_size=4 [08:15:11]MH_SAM_APDU [08:15:11]CAPDU: 80 13 01 00 [08:15:11]Write to MH i2c: E2 08 00 12 0B 80 13 01 00 00 00 00 00 9A [08:15:11]Write i2c OK [08:15:11]MH_I2C_Read... [08:15:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:15:11]Read from MH i2c: E2 [08:15:11]MH_I2C_Read... [08:15:11]Read from MH i2c: E2 0E 00 [08:15:11]MH_I2C_Read... [08:15:11]Read from MH i2c: E2 0E 00 12 0B 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 1A [08:15:11]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [08:15:11]wFMCommunicate OK [08:15:11]SAM_PROTO_GetShiftState done [08:15:11]FM_GetShiftState done [08:15:11]opened in 1720917342 [08:15:11]opened+sec_in_day 1721003742 [08:15:11]quantity*price = 50023 [08:15:11]sum+1 = 50025 [08:15:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.24 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.24 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 34 14.07.2024 08:15 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164836 ФПД: 247306998192746 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T081513&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164836&fm=247306998192746&tin=02508201610067®Number=0000000000090829&sum=50024 [08:15:12]StoreToDocumentArchive [08:15:12]shift 447 fd 164836 [08:15:12]save to /storage/0447/doc_00164836 [08:15:12]save last doc name /storage/0447/doc_00164836 to /storage/kkm_last_doc_name [08:15:12]save OK [08:15:12]Clear old archive folders... [08:15:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:15:12]tlvbuf is 01660A80 [08:15:12]SAM_PROTO_ClearQueue [08:15:12]wFMCommunicate request_size=4 [08:15:12]MH_SAM_APDU [08:15:12]CAPDU: 80 09 00 00 [08:15:12]Write to MH i2c: E2 08 00 1F 0B 80 09 00 00 00 00 00 00 9C [08:15:12]Write i2c OK [08:15:12]MH_I2C_Read... [08:15:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:15:12]Read from MH i2c: E2 [08:15:12]MH_I2C_Read... [08:15:12]Read from MH i2c: E2 03 00 [08:15:12]MH_I2C_Read... [08:15:12]Read from MH i2c: E2 03 00 1F 0B 00 90 00 9E [08:15:12]RAPDU: 90 00 [08:15:12]wFMCommunicate OK [08:15:12]SAM_PROTO_ClearQueue done [08:15:12]KKMCreateOFDPacket [08:15:12]OFDProtocolAddRootSTLVToBuf [08:15:12]FM_MakeSignedData [08:15:12]FM_MakeSignedData [08:15:12]SAM_PROTO_SignData [08:15:12]wFMCommunicate request_size=4 [08:15:12]MH_SAM_APDU [08:15:12]CAPDU: 80 0D 01 02 [08:15:12]Write to MH i2c: E2 08 00 20 0B 80 0D 01 02 00 00 00 00 A4 [08:15:12]Write i2c OK [08:15:12]MH_I2C_Read... [08:15:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:15:12]Read from MH i2c: E2 [08:15:12]MH_I2C_Read... [08:15:12]Read from MH i2c: E2 03 00 [08:15:12]MH_I2C_Read... [08:15:12]Read from MH i2c: E2 03 00 20 0B 00 90 00 9F [08:15:12]RAPDU: 90 00 [08:15:12]wFMCommunicate OK [08:15:12]wFMCommunicate request_size=255 [08:15:12]MH_SAM_APDU [08:15:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 11 89 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E4 83 02 00 35 04 06 00 E0 [08:15:12]Write to MH i2c: E2 02 01 21 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 11 89 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E4 83 02 00 35 04 06 00 E0 00 00 29 [08:15:12]Write i2c OK [08:15:12]MH_I2C_Read... [08:15:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:15:13]Read from MH i2c: E2 [08:15:13]MH_I2C_Read... [08:15:13]Read from MH i2c: E2 03 00 [08:15:13]MH_I2C_Read... [08:15:13]Read from MH i2c: E2 03 00 21 0B 00 90 00 A0 [08:15:13]RAPDU: 90 00 [08:15:13]wFMCommunicate OK [08:15:13]wFMCommunicate request_size=10 [08:15:13]MH_SAM_APDU [08:15:13]CAPDU: 80 0D 02 02 05 EC A5 C7 1A 6A [08:15:13]Write to MH i2c: E2 0D 00 22 0B 80 0D 02 02 05 00 EC A5 C7 1A 6A 00 00 8D [08:15:13]Write i2c OK [08:15:13]MH_I2C_Read... [08:15:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:15:13]Read from MH i2c: E2 [08:15:13]MH_I2C_Read... [08:15:13]Read from MH i2c: E2 03 00 [08:15:13]MH_I2C_Read... [08:15:13]Read from MH i2c: E2 03 00 22 0B 00 90 00 A1 [08:15:13]RAPDU: 90 00 [08:15:13]wFMCommunicate OK [08:15:13]wFMCommunicate request_size=4 [08:15:13]MH_SAM_APDU [08:15:13]CAPDU: 80 0D 03 02 [08:15:13]Write to MH i2c: E2 08 00 23 0B 80 0D 03 02 00 00 00 00 A9 [08:15:13]Write i2c OK [08:15:13]MH_I2C_Read... [08:15:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:15:13]Read from MH i2c: E2 [08:15:13]MH_I2C_Read... [08:15:13]Read from MH i2c: E2 0B 00 [08:15:13]MH_I2C_Read... [08:15:13]Read from MH i2c: E2 0B 00 23 0B 00 3D 41 52 D8 49 5C B4 A9 90 00 54 [08:15:13]RAPDU: 3D 41 52 D8 49 5C B4 A9 90 00 [08:15:13]wFMCommunicate OK [08:15:13]SAM_PROTO_SignData done [08:15:13]FM_MakeSignedData done [08:15:13]CreateOFDProtocolMessage [08:15:13]wFMCommunicate request_size=4 [08:15:13]MH_SAM_APDU [08:15:13]CAPDU: 80 11 00 00 [08:15:13]Write to MH i2c: E2 08 00 24 0B 80 11 00 00 00 00 00 00 A9 [08:15:13]Write i2c OK [08:15:13]MH_I2C_Read... [08:15:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:15:13]Read from MH i2c: E2 [08:15:13]MH_I2C_Read... [08:15:13]Read from MH i2c: E2 17 00 [08:15:13]MH_I2C_Read... [08:15:13]Read from MH i2c: E2 17 00 24 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 FF [08:15:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:15:13]wFMCommunicate OK [08:15:13]CreateOFDProtocolMessage done [08:15:13]OFDSenderStorePacket 164836 [08:15:13]StoreOFDPacket docnum=164836 [08:15:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 E2 7B 07 01 AE 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 11 89 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E4 83 02 00 35 04 06 00 E0 EC A5 C7 1A 6A 3D 41 52 D8 49 5C B4 A9 [08:15:13]CheckFolder [08:15:13]dirname=/storage/ofd_packets [08:15:13]CheckFolder done [08:15:13]ProducePacketName [08:15:13]name=ofd_packets/00164836 [08:15:13]NVStorageSaveData ofd_packets/00164836 [08:15:13]File name is /storage/ofd_packets/00164836 [08:15:13]Write 301 bytes [08:15:13]NVStorageSaveData done [08:15:13]OFDSenderStorePacket done [08:15:13]KKMCreateOFDPacket done [08:15:13]NVStorageSaveData kkm_last_timestamp [08:15:13]File name is /storage/kkm_last_timestamp [08:15:13]Write 4 bytes [08:15:13]NVStorageSaveData done [08:15:13]ExternCall_PrintAddStr [08:15:13]wPrintStart [08:15:13]Write to MH i2c: 01 00 00 25 0B 30 [08:15:13]Write i2c OK [08:15:13]MH_I2C_Read... [08:15:13]Read from MH i2c: 01 [08:15:13]MH_I2C_Read... [08:15:13]Read from MH i2c: 01 07 00 [08:15:13]MH_I2C_Read... [08:15:13]Read from MH i2c: 01 07 00 25 0B 00 00 00 00 00 FF 0F 45 [08:15:13]RasterBufferAndPrint [08:15:13]line Счет N : (1)458932 [08:15:13]line ИНН: 02508201610067 [08:15:13]line Контрольно-Кассовый Чек [08:15:13]line ПРОДАЖА [08:15:13]line ТРК (МРК, ГНК) : 12 [08:15:13]line Товар: 2710124130 [08:15:13]line Аи-92-К-5 [08:15:13]line 7.670 * 65.22 [08:15:13]line = 500.24 [08:15:13]line НДС 12% НСП 1% [08:15:13]line > о реализуемом товаре [08:15:13]line ИТОГО: 500.24 [08:15:13]line НСП 1% : 4.43 [08:15:13]line НДС 12% : 53.12 [08:15:13]line Наличными: 0.00 [08:15:13]line Безнал.: 500.24 [08:15:13]line Место: АЗС № 72 "Партнер Нефть" [08:15:13]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [08:15:13]line СНО: Общий режим [08:15:13]line Чек 34 14.07.2024 08:15 [08:15:13]line Смена: 447 ФФД: 1.0 [08:15:13]line ЗНМ: 0300000160 [08:15:13]line РНМ: 0000000000090829 [08:15:13]line Версия ККМ: 001 [08:15:13]line Платежная система: KICB Банк [08:15:13]line ФМ: 0000000000874718 [08:15:13]line ФД: 164836 [08:15:13]line ФПД: 247306998192746 [08:15:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T081513&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164836&fm=247306998192746&tin=02508201610067®Number=0000000000090829&sum=50024 [08:15:13]written 0, free lines is 4095 [08:15:13]OFD Sender: Processing packet 164836 [packets to send 104, broken 103] [08:15:13]ProducePacketName [08:15:13]name=ofd_packets/00164836 [08:15:13]OFD Sender: To server: pG, [08:15:13]CommunicateWithHost lk.salyk.kg:30040 [08:15:13]ConnectInit lk.salyk.kg [08:15:13]Connected sock=9 [08:15:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 E2 7B 07 01 AE 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 11 89 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E4 83 02 00 35 04 06 00 E0 EC A5 C7 1A 6A 3D 41 52 D8 49 5C B4 A9 [08:15:13]Write to MH i2c: 01 00 00 4E 0B 59 [08:15:13]Write i2c OK [08:15:13]MH_I2C_Read... [08:15:13]Read from MH i2c: 01 [08:15:13]MH_I2C_Read... [08:15:13]Read from MH i2c: 01 07 00 [08:15:13]MH_I2C_Read... [08:15:13]Read from MH i2c: 01 07 00 4E 0B 00 00 00 00 00 06 0D 73 [08:15:13]RasterBufferAndPrint [08:15:13]line [08:15:13]line [08:15:13]line [08:15:13]line [08:15:13]line [08:15:13]written 0, free lines is 3340 [08:15:13]MH_Cut [08:15:13]Write to MH i2c: D1 01 00 55 0B 01 32 [08:15:13]Write i2c OK [08:15:13]MH_I2C_Read... [08:15:13]Read from MH i2c: D1 [08:15:13]MH_I2C_Read... [08:15:13]Read from MH i2c: D1 01 00 [08:15:13]MH_I2C_Read... [08:15:13]Read from MH i2c: D1 01 00 55 0B 00 31 [08:15:13]Write to MH i2c: 01 00 00 56 0B 61 [08:15:13]Write i2c OK [08:15:13]MH_I2C_Read... [08:15:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 CF 39 47 00 65 AE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E4 83 02 00 F4 03 04 00 9F 2F 93 66 B6 04 01 00 00 77 DD 00 7C 8B CF D3 0F [08:15:13]CommunicateWithHost err = 0 [08:15:13]CheckOFDResponse [08:15:13]1017 (14) - 77093643461234 [08:15:13]1041 (16) - 0000000000874718 [08:15:13]1040 (4) - 164836 [08:15:13]1012 (4) - 14.07.2024 01:53 [08:15:13]1206 (1) - 0 [08:15:13]OFD Sender: Remove packet 164836 [08:15:13]ProducePacketName [08:15:13]name=ofd_packets/00164836 [08:15:13]NVStorageDeleteData [08:15:14]*** Cut start [08:15:14]*** Partial cut [08:15:14]*** CUTSNS_PIN = 1 [08:15:14]OFD Sender: No OFD packet to send [08:15:14]*** CUTSNS_PIN = 0 [08:15:14]*** Brake cut motor [08:15:14]Read from MH i2c: 01 [08:15:14]MH_I2C_Read... [08:15:14]*** Stop cut motor [08:15:14]*** Cut end [08:15:14]Read from MH i2c: 01 07 00 [08:15:14]MH_I2C_Read... [08:15:14]Read from MH i2c: 01 07 00 56 0B 00 00 00 00 00 FF 0F 76 [08:15:14]process_action close_receipt done [08:15:14]requested_data is exist [08:15:14]produce_requested_data [08:15:14]requested_item fm.sn is exist - process it [08:15:14]wFMCommunicate request_size=4 [08:15:14]MH_SAM_APDU [08:15:14]CAPDU: 80 11 00 00 [08:15:14]Write to MH i2c: E2 08 00 57 0B 80 11 00 00 00 00 00 00 DC [08:15:14]Write i2c OK [08:15:14]MH_I2C_Read... [08:15:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:15:14]Read from MH i2c: E2 [08:15:14]MH_I2C_Read... [08:15:14]Read from MH i2c: E2 17 00 [08:15:14]MH_I2C_Read... [08:15:14]Read from MH i2c: E2 17 00 57 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 32 [08:15:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:15:14]wFMCommunicate OK [08:15:14]requested_item fd.num is exist - process it [08:15:14]SAM_PROTO_GetFieldsCounters [08:15:14]wFMCommunicate request_size=4 [08:15:14]MH_SAM_APDU [08:15:14]CAPDU: 80 13 00 00 [08:15:14]Write to MH i2c: E2 08 00 58 0B 80 13 00 00 00 00 00 00 DF [08:15:14]Write i2c OK [08:15:14]MH_I2C_Read... [08:15:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:15:15]Read from MH i2c: E2 [08:15:15]MH_I2C_Read... [08:15:15]Read from MH i2c: E2 62 00 [08:15:15]MH_I2C_Read... [08:15:15]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 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E4 83 02 00 0E 04 04 00 BF 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 95 [08:15:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E4 83 02 00 0E 04 04 00 BF 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 [08:15:15]wFMCommunicate OK [08:15:15]SAM_PROTO_GetFieldsCounters done [08:15:15]requested_item shift.num is exist - process it [08:15:15]requested_item shift.opened is exist - process it [08:15:15]req_shift_opened [08:15:15]FM_GetShiftState [08:15:15]SAM_PROTO_GetShiftState [08:15:15]wFMCommunicate request_size=4 [08:15:15]MH_SAM_APDU [08:15:15]CAPDU: 80 13 01 00 [08:15:15]Write to MH i2c: E2 08 00 59 0B 80 13 01 00 00 00 00 00 E1 [08:15:15]Write i2c OK [08:15:15]MH_I2C_Read... [08:15:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:15:15]Read from MH i2c: E2 [08:15:15]MH_I2C_Read... [08:15:15]Read from MH i2c: E2 0E 00 [08:15:15]MH_I2C_Read... [08:15:15]Read from MH i2c: E2 0E 00 59 0B 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 61 [08:15:15]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [08:15:15]wFMCommunicate OK [08:15:15]SAM_PROTO_GetShiftState done [08:15:15]FM_GetShiftState done [08:15:15]req_shift_opened done [08:15:15]requested_item shift.open_date is exist - process it [08:15:15]req_shift_open_date [08:15:15]req_shift_open_date done [08:15:15]produce_requested_data done [08:15:15]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164836,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [08:15:15]process_action_free close_receipt [08:15:15]json_value_free [08:15:15]json_value_free done [08:15:15]process_json_proto returns [08:15:15]Send response to host [08:15:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164836,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [08:15:15]free response buf [08:15:15]execute_script done [08:15:15]execute_script returns [08:15:15]free content buf [08:15:15]Sock 10.Close socket [08:15:15]Sock 10.Thread stoped [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:04]OFD Sender: No OFD packet to send [08:17:09]OFD Sender: No OFD packet to send [08:17:14]OFD Sender: No OFD packet to send [08:17:19]OFD Sender: No OFD packet to send [08:17:24]OFD Sender: No OFD packet to send [08:17:29]OFD Sender: No OFD packet to send [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:17:59]OFD Sender: No OFD packet to send [08:18:04]OFD Sender: No OFD packet to send [08:18:09]OFD Sender: No OFD packet to send [08:18:14]OFD Sender: No OFD packet to send [08:18:19]OFD Sender: No OFD packet to send [08:18:24]OFD Sender: No OFD packet to send [08:18:29]OFD Sender: No OFD packet to send [08:18:34]OFD Sender: No OFD packet to send [08:18:39]OFD Sender: No OFD packet to send [08:18:44]OFD Sender: No OFD packet to send [08:18:49]OFD Sender: No OFD packet to send [08:18:54]OFD Sender: No OFD packet to send [08:18:59]OFD Sender: No OFD packet to send [08:19:04]OFD Sender: No OFD packet to send [08:19:09]OFD Sender: No OFD packet to send [08:19:14]OFD Sender: No OFD packet to send [08:19:19]OFD Sender: No OFD packet to send [08:19:24]OFD Sender: No OFD packet to send [08:19:29]OFD Sender: No OFD packet to send [08:19:31]accept exits with 8 [08:19:31]New connection [08:19:31]New thread 3067428196 created [08:19:31]Thread 3067571556 joined [08:19:31]Waiting for new connection... [08:19:31] Sock 8.Parse request [08:19:31]Sock 8.Check first char [08:19:31]Sock 8.First char is OK [08:19:31]request: POST /json_proto HTTP/1.0 [08:19:31]Method: POST [08:19:31]URL: /json_proto [08:19:31]Method is POST - this is cgi request [08:19:31]url: /json_proto [08:19:31]query_string will be loaded in cgi processing [08:19:31]execute_cgi json_proto POST (null) [08:19:31]execute_cgi path=json_proto method=POST [08:19:31]POST find Content-Length [08:19:31]Host: 172.17.56.4:8080 [08:19:31]Content-Length: 677 [08:19:31]Content-Type: application/json [08:19:31] [08:19:31]POST finish read [08:19:31]Found Content-Length = 677 [08:19:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458933", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.320, "sum" : 350.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:19:31]execute_script... [08:19:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458933", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.320, "sum" : 350.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:19:31]POST & json_proto [08:19:31]process_json_proto [08:19:31]json parsed OK: [08:19:31]protocol is kg_v1.0 [08:19:31]action value=close_receipt [08:19:31]process_action close_receipt [08:19:31]cmd_close_receipt [08:19:31]MH_GetDate [08:19:31]Write to MH i2c: F0 00 00 5A 0B 54 [08:19:31]Write i2c OK [08:19:31]MH_I2C_Read... [08:19:31]Read from MH i2c: F0 [08:19:31]MH_I2C_Read... [08:19:31]Read from MH i2c: F0 09 00 [08:19:31]MH_I2C_Read... [08:19:31]Read from MH i2c: F0 09 00 5A 0B 00 15 8A 93 66 C9 DC B2 64 B0 [08:19:31]GetLastDocTimeStamp 1720944913 [08:19:31]current date 1720945173 [08:19:31]FM_GetShiftState [08:19:31]SAM_PROTO_GetShiftState [08:19:31]wFMCommunicate request_size=4 [08:19:31]MH_SAM_APDU [08:19:31]CAPDU: 80 13 01 00 [08:19:31]Write to MH i2c: E2 08 00 5B 0B 80 13 01 00 00 00 00 00 E3 [08:19:31]Write i2c OK [08:19:31]MH_I2C_Read... [08:19:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:19:31]Read from MH i2c: E2 [08:19:31]MH_I2C_Read... [08:19:31]Read from MH i2c: E2 0E 00 [08:19:31]MH_I2C_Read... [08:19:31]Read from MH i2c: E2 0E 00 5B 0B 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 63 [08:19:31]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [08:19:31]wFMCommunicate OK [08:19:31]SAM_PROTO_GetShiftState done [08:19:31]FM_GetShiftState done [08:19:31]opened in 1720917342 [08:19:31]opened+sec_in_day 1721003742 [08:19:31]quantity*price = 35005 [08:19:31]sum+1 = 35007 [08:19:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.17 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 35 14.07.2024 08:19 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164837 ФПД: 128277588600896 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T081934&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164837&fm=128277588600896&tin=02508201610067®Number=0000000000090829&sum=35000 [08:19:33]StoreToDocumentArchive [08:19:33]shift 447 fd 164837 [08:19:33]save to /storage/0447/doc_00164837 [08:19:33]save last doc name /storage/0447/doc_00164837 to /storage/kkm_last_doc_name [08:19:33]save OK [08:19:33]Clear old archive folders... [08:19:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:19:33]tlvbuf is 01654210 [08:19:33]SAM_PROTO_ClearQueue [08:19:33]wFMCommunicate request_size=4 [08:19:33]MH_SAM_APDU [08:19:33]CAPDU: 80 09 00 00 [08:19:33]Write to MH i2c: E2 08 00 68 0B 80 09 00 00 00 00 00 00 E5 [08:19:33]Write i2c OK [08:19:33]MH_I2C_Read... [08:19:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:19:33]Read from MH i2c: E2 [08:19:33]MH_I2C_Read... [08:19:33]Read from MH i2c: E2 03 00 [08:19:33]MH_I2C_Read... [08:19:33]Read from MH i2c: E2 03 00 68 0B 00 90 00 E7 [08:19:33]RAPDU: 90 00 [08:19:33]wFMCommunicate OK [08:19:33]SAM_PROTO_ClearQueue done [08:19:33]KKMCreateOFDPacket [08:19:33]OFDProtocolAddRootSTLVToBuf [08:19:33]FM_MakeSignedData [08:19:33]FM_MakeSignedData [08:19:33]SAM_PROTO_SignData [08:19:33]wFMCommunicate request_size=4 [08:19:33]MH_SAM_APDU [08:19:33]CAPDU: 80 0D 01 02 [08:19:33]Write to MH i2c: E2 08 00 69 0B 80 0D 01 02 00 00 00 00 ED [08:19:33]Write i2c OK [08:19:33]MH_I2C_Read... [08:19:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:19:33]Read from MH i2c: E2 [08:19:33]MH_I2C_Read... [08:19:33]Read from MH i2c: E2 03 00 [08:19:33]MH_I2C_Read... [08:19:33]Read from MH i2c: E2 03 00 69 0B 00 90 00 E8 [08:19:33]RAPDU: 90 00 [08:19:33]wFMCommunicate OK [08:19:33]wFMCommunicate request_size=255 [08:19:33]MH_SAM_APDU [08:19:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BE 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 85 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 23 00 00 00 F4 03 04 00 16 8A 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E5 83 02 00 35 04 06 00 74 [08:19:33]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 35 FF 03 08 00 03 C8 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BE 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 85 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 23 00 00 00 F4 03 04 00 16 8A 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E5 83 02 00 35 04 06 00 74 00 00 90 [08:19:33]Write i2c OK [08:19:33]MH_I2C_Read... [08:19:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:19:33]Read from MH i2c: E2 [08:19:33]MH_I2C_Read... [08:19:33]Read from MH i2c: E2 03 00 [08:19:33]MH_I2C_Read... [08:19:33]Read from MH i2c: E2 03 00 6A 0B 00 90 00 E9 [08:19:33]RAPDU: 90 00 [08:19:33]wFMCommunicate OK [08:19:33]wFMCommunicate request_size=10 [08:19:33]MH_SAM_APDU [08:19:33]CAPDU: 80 0D 02 02 05 AA F4 19 E8 40 [08:19:33]Write to MH i2c: E2 0D 00 6B 0B 80 0D 02 02 05 00 AA F4 19 E8 40 00 00 D9 [08:19:33]Write i2c OK [08:19:33]MH_I2C_Read... [08:19:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:19:33]Read from MH i2c: E2 [08:19:33]MH_I2C_Read... [08:19:33]Read from MH i2c: E2 03 00 [08:19:33]MH_I2C_Read... [08:19:33]Read from MH i2c: E2 03 00 6B 0B 00 90 00 EA [08:19:33]RAPDU: 90 00 [08:19:33]wFMCommunicate OK [08:19:33]wFMCommunicate request_size=4 [08:19:33]MH_SAM_APDU [08:19:33]CAPDU: 80 0D 03 02 [08:19:33]Write to MH i2c: E2 08 00 6C 0B 80 0D 03 02 00 00 00 00 F2 [08:19:33]Write i2c OK [08:19:33]MH_I2C_Read... [08:19:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:19:33]Read from MH i2c: E2 [08:19:33]MH_I2C_Read... [08:19:33]Read from MH i2c: E2 0B 00 [08:19:33]MH_I2C_Read... [08:19:33]Read from MH i2c: E2 0B 00 6C 0B 00 51 55 16 41 01 52 AF 1F 90 00 11 [08:19:33]RAPDU: 51 55 16 41 01 52 AF 1F 90 00 [08:19:33]wFMCommunicate OK [08:19:33]SAM_PROTO_SignData done [08:19:33]FM_MakeSignedData done [08:19:33]CreateOFDProtocolMessage [08:19:33]wFMCommunicate request_size=4 [08:19:33]MH_SAM_APDU [08:19:33]CAPDU: 80 11 00 00 [08:19:33]Write to MH i2c: E2 08 00 6D 0B 80 11 00 00 00 00 00 00 F2 [08:19:33]Write i2c OK [08:19:33]MH_I2C_Read... [08:19:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:19:33]Read from MH i2c: E2 [08:19:33]MH_I2C_Read... [08:19:33]Read from MH i2c: E2 17 00 [08:19:33]MH_I2C_Read... [08:19:33]Read from MH i2c: E2 17 00 6D 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 48 [08:19:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:19:33]wFMCommunicate OK [08:19:33]CreateOFDProtocolMessage done [08:19:33]OFDSenderStorePacket 164837 [08:19:33]StoreOFDPacket docnum=164837 [08:19:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 9C F5 07 01 11 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BE 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 85 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 23 00 00 00 F4 03 04 00 16 8A 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E5 83 02 00 35 04 06 00 74 AA F4 19 E8 40 51 55 16 41 01 52 AF 1F [08:19:33]CheckFolder [08:19:33]dirname=/storage/ofd_packets [08:19:33]CheckFolder done [08:19:33]ProducePacketName [08:19:33]name=ofd_packets/00164837 [08:19:33]NVStorageSaveData ofd_packets/00164837 [08:19:33]File name is /storage/ofd_packets/00164837 [08:19:33]Write 301 bytes [08:19:33]NVStorageSaveData done [08:19:33]OFDSenderStorePacket done [08:19:33]KKMCreateOFDPacket done [08:19:33]NVStorageSaveData kkm_last_timestamp [08:19:33]File name is /storage/kkm_last_timestamp [08:19:33]Write 4 bytes [08:19:33]NVStorageSaveData done [08:19:33]OFD Sender: Processing packet 164837 [packets to send 104, broken 103] [08:19:33]ProducePacketName [08:19:33]name=ofd_packets/00164837 [08:19:33]OFD Sender: To server: pG, [08:19:33]CommunicateWithHost lk.salyk.kg:30040 [08:19:33]ConnectInit lk.salyk.kg [08:19:33]ExternCall_PrintAddStr [08:19:33]wPrintStart [08:19:33]Write to MH i2c: 01 00 00 6E 0B 79 [08:19:33]Write i2c OK [08:19:33]MH_I2C_Read... [08:19:33]Read from MH i2c: 01 [08:19:33]MH_I2C_Read... [08:19:33]Read from MH i2c: 01 07 00 [08:19:33]MH_I2C_Read... [08:19:33]Read from MH i2c: 01 07 00 6E 0B 00 00 00 00 00 FF 0F 8E [08:19:33]RasterBufferAndPrint [08:19:33]line Счет N : (1)458933 [08:19:33]line ИНН: 02508201610067 [08:19:33]line Контрольно-Кассовый Чек [08:19:33]line ПРОДАЖА [08:19:33]line ТРК (МРК, ГНК) : 22 [08:19:33]line Товар: 2710124130 [08:19:33]line Аи-92-К-5 [08:19:33]line 5.320 * 65.80 [08:19:33]line = 350.06 [08:19:33]line НДС 12% НСП 1% [08:19:33]line > о реализуемом товаре [08:19:33]line ОКРУГЛЕНИЕ: -0.06 [08:19:33]line ИТОГО: 350.00 [08:19:33]line Внесено: 350.00 [08:19:33]line СДАЧА: 0.00 [08:19:33]line НСП 1% : 3.10 [08:19:33]line НДС 12% : 37.17 [08:19:33]line Наличными: 350.00 [08:19:33]line Безнал.: 0.00 [08:19:33]line Место: АЗС № 72 "Партнер Нефть" [08:19:33]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [08:19:33]line СНО: Общий режим [08:19:33]line Чек 35 14.07.2024 08:19 [08:19:33]line Смена: 447 ФФД: 1.0 [08:19:33]line ЗНМ: 0300000160 [08:19:33]line РНМ: 0000000000090829 [08:19:33]line Версия ККМ: 001 [08:19:33]line ФМ: 0000000000874718 [08:19:33]line ФД: 164837 [08:19:33]line ФПД: 128277588600896 [08:19:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T081934&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164837&fm=128277588600896&tin=02508201610067®Number=0000000000090829&sum=35000 [08:19:33]written 0, free lines is 4095 [08:19:33]Connected sock=11 [08:19:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 9C F5 07 01 11 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BE 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 85 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 23 00 00 00 F4 03 04 00 16 8A 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E5 83 02 00 35 04 06 00 74 AA F4 19 E8 40 51 55 16 41 01 52 AF 1F [08:19:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 43 DF 47 00 A8 21 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E5 83 02 00 F4 03 04 00 A3 30 93 66 B6 04 01 00 00 43 A6 DD 05 B4 7D 0A C4 [08:19:33]CommunicateWithHost err = 0 [08:19:33]CheckOFDResponse [08:19:33]1017 (14) - 77093643461234 [08:19:33]1041 (16) - 0000000000874718 [08:19:33]1040 (4) - 164837 [08:19:33]1012 (4) - 14.07.2024 01:57 [08:19:33]1206 (1) - 0 [08:19:33]OFD Sender: Remove packet 164837 [08:19:33]ProducePacketName [08:19:33]name=ofd_packets/00164837 [08:19:33]NVStorageDeleteData [08:19:34]Write to MH i2c: 01 00 00 98 0B A3 [08:19:34]Write i2c OK [08:19:34]MH_I2C_Read... [08:19:34]Read from MH i2c: 01 [08:19:34]MH_I2C_Read... [08:19:34]Read from MH i2c: 01 07 00 [08:19:34]MH_I2C_Read... [08:19:34]Read from MH i2c: 01 07 00 98 0B 00 00 00 00 00 07 0D BE [08:19:34]RasterBufferAndPrint [08:19:34]line [08:19:34]line [08:19:34]line [08:19:34]line [08:19:34]line [08:19:34]written 0, free lines is 3342 [08:19:34]MH_Cut [08:19:34]Write to MH i2c: D1 01 00 9F 0B 01 7C [08:19:34]Write i2c OK [08:19:34]MH_I2C_Read... [08:19:34]Read from MH i2c: D1 [08:19:34]MH_I2C_Read... [08:19:34]Read from MH i2c: D1 01 00 [08:19:34]MH_I2C_Read... [08:19:34]Read from MH i2c: D1 01 00 9F 0B 00 7B [08:19:34]Write to MH i2c: 01 00 00 A0 0B AB [08:19:34]Write i2c OK [08:19:34]MH_I2C_Read... [08:19:34]OFD Sender: No OFD packet to send [08:19:34]*** Cut start [08:19:34]*** Partial cut [08:19:34]*** CUTSNS_PIN = 1 [08:19:34]*** CUTSNS_PIN = 0 [08:19:34]*** Brake cut motor [08:19:35]Read from MH i2c: 01 [08:19:35]MH_I2C_Read... [08:19:35]*** Stop cut motor [08:19:35]*** Cut end [08:19:35]Read from MH i2c: 01 07 00 [08:19:35]MH_I2C_Read... [08:19:35]Read from MH i2c: 01 07 00 A0 0B 00 00 00 00 00 FF 0F C0 [08:19:35]process_action close_receipt done [08:19:35]requested_data is exist [08:19:35]produce_requested_data [08:19:35]requested_item fm.sn is exist - process it [08:19:35]wFMCommunicate request_size=4 [08:19:35]MH_SAM_APDU [08:19:35]CAPDU: 80 11 00 00 [08:19:35]Write to MH i2c: E2 08 00 A1 0B 80 11 00 00 00 00 00 00 26 [08:19:35]Write i2c OK [08:19:35]MH_I2C_Read... [08:19:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:19:35]Read from MH i2c: E2 [08:19:35]MH_I2C_Read... [08:19:35]Read from MH i2c: E2 17 00 [08:19:35]MH_I2C_Read... [08:19:35]Read from MH i2c: E2 17 00 A1 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 7C [08:19:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:19:35]wFMCommunicate OK [08:19:35]requested_item fd.num is exist - process it [08:19:35]SAM_PROTO_GetFieldsCounters [08:19:35]wFMCommunicate request_size=4 [08:19:35]MH_SAM_APDU [08:19:35]CAPDU: 80 13 00 00 [08:19:35]Write to MH i2c: E2 08 00 A2 0B 80 13 00 00 00 00 00 00 29 [08:19:35]Write i2c OK [08:19:35]MH_I2C_Read... [08:19:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:19:35]Read from MH i2c: E2 [08:19:35]MH_I2C_Read... [08:19:35]Read from MH i2c: E2 62 00 [08:19:35]MH_I2C_Read... [08:19:35]Read from MH i2c: E2 62 00 A2 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E5 83 02 00 0E 04 04 00 BF 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 E3 [08:19:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E5 83 02 00 0E 04 04 00 BF 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 [08:19:35]wFMCommunicate OK [08:19:35]SAM_PROTO_GetFieldsCounters done [08:19:35]requested_item shift.num is exist - process it [08:19:35]requested_item shift.opened is exist - process it [08:19:35]req_shift_opened [08:19:35]FM_GetShiftState [08:19:35]SAM_PROTO_GetShiftState [08:19:35]wFMCommunicate request_size=4 [08:19:35]MH_SAM_APDU [08:19:35]CAPDU: 80 13 01 00 [08:19:35]Write to MH i2c: E2 08 00 A3 0B 80 13 01 00 00 00 00 00 2B [08:19:35]Write i2c OK [08:19:35]MH_I2C_Read... [08:19:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:19:35]Read from MH i2c: E2 [08:19:35]MH_I2C_Read... [08:19:35]Read from MH i2c: E2 0E 00 [08:19:35]MH_I2C_Read... [08:19:35]Read from MH i2c: E2 0E 00 A3 0B 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 AB [08:19:35]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [08:19:35]wFMCommunicate OK [08:19:35]SAM_PROTO_GetShiftState done [08:19:35]FM_GetShiftState done [08:19:35]req_shift_opened done [08:19:35]requested_item shift.open_date is exist - process it [08:19:35]req_shift_open_date [08:19:35]req_shift_open_date done [08:19:35]produce_requested_data done [08:19:35]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164837,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [08:19:35]process_action_free close_receipt [08:19:35]json_value_free [08:19:35]json_value_free done [08:19:35]process_json_proto returns [08:19:35]Send response to host [08:19:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164837,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [08:19:35]free response buf [08:19:35]execute_script done [08:19:35]execute_script returns [08:19:35]free content buf [08:19:35]Sock 8.Close socket [08:19:35]Sock 8.Thread stoped [08:19:39]OFD Sender: No OFD packet to send [08:19:44]OFD Sender: No OFD packet to send [08:19:49]OFD Sender: No OFD packet to send [08:19:54]OFD Sender: No OFD packet to send [08:19:59]OFD Sender: No OFD packet to send [08:20:00]accept exits with 9 [08:20:00]New connection [08:20:00]New thread 3067571556 created [08:20:00]Thread 3067428196 joined [08:20:00]Waiting for new connection... [08:20:00] Sock 9.Parse request [08:20:00]Sock 9.Check first char [08:20:00]Sock 9.First char is OK [08:20:00]request: POST /json_proto HTTP/1.0 [08:20:00]Method: POST [08:20:00]URL: /json_proto [08:20:00]Method is POST - this is cgi request [08:20:00]url: /json_proto [08:20:00]query_string will be loaded in cgi processing [08:20:00]execute_cgi json_proto POST (null) [08:20:00]execute_cgi path=json_proto method=POST [08:20:00]POST find Content-Length [08:20:00]Host: 172.17.56.4:8080 [08:20:00]Content-Length: 678 [08:20:00]Content-Type: application/json [08:20:00] [08:20:00]POST finish read [08:20:00]Found Content-Length = 678 [08:20:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458934", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 11.250, "sum" : 740.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 740.00, "total" : 740.00, "payments": [ { "type": 0, "sum" : 740.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:20:00]execute_script... [08:20: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)458934", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 11.250, "sum" : 740.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 740.00, "total" : 740.00, "payments": [ { "type": 0, "sum" : 740.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:20:00]POST & json_proto [08:20:00]process_json_proto [08:20:00]json parsed OK: [08:20:00]protocol is kg_v1.0 [08:20:00]action value=close_receipt [08:20:00]process_action close_receipt [08:20:00]cmd_close_receipt [08:20:00]MH_GetDate [08:20:00]Write to MH i2c: F0 00 00 A4 0B 9E [08:20:00]Write i2c OK [08:20:00]MH_I2C_Read... [08:20:00]Read from MH i2c: F0 [08:20:00]MH_I2C_Read... [08:20:00]Read from MH i2c: F0 09 00 [08:20:00]MH_I2C_Read... [08:20:00]Read from MH i2c: F0 09 00 A4 0B 00 32 8A 93 66 C9 DC B2 64 17 [08:20:00]GetLastDocTimeStamp 1720945174 [08:20:00]current date 1720945202 [08:20:00]FM_GetShiftState [08:20:00]SAM_PROTO_GetShiftState [08:20:00]wFMCommunicate request_size=4 [08:20:00]MH_SAM_APDU [08:20:00]CAPDU: 80 13 01 00 [08:20:00]Write to MH i2c: E2 08 00 A5 0B 80 13 01 00 00 00 00 00 2D [08:20:00]Write i2c OK [08:20:00]MH_I2C_Read... [08:20:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:00]Read from MH i2c: E2 [08:20:00]MH_I2C_Read... [08:20:00]Read from MH i2c: E2 0E 00 [08:20:00]MH_I2C_Read... [08:20:00]Read from MH i2c: E2 0E 00 A5 0B 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 AD [08:20:00]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [08:20:00]wFMCommunicate OK [08:20:00]SAM_PROTO_GetShiftState done [08:20:00]FM_GetShiftState done [08:20:00]opened in 1720917342 [08:20:00]opened+sec_in_day 1721003742 [08:20:00]quantity*price = 74025 [08:20:00]sum+1 = 74026 [08:20:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 740.00 Внесено: 740.00 СДАЧА: 0.00 НСП 1% : 6.55 НДС 12% : 78.61 Наличными: 740.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 36 14.07.2024 08:20 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164838 ФПД: 266027004331985 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T082002&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164838&fm=266027004331985&tin=02508201610067®Number=0000000000090829&sum=74000 [08:20:01]StoreToDocumentArchive [08:20:01]shift 447 fd 164838 [08:20:01]save to /storage/0447/doc_00164838 [08:20:01]save last doc name /storage/0447/doc_00164838 to /storage/kkm_last_doc_name [08:20:01]save OK [08:20:01]Clear old archive folders... [08:20:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:20:01]tlvbuf is B6FEF230 [08:20:01]SAM_PROTO_ClearQueue [08:20:01]wFMCommunicate request_size=4 [08:20:01]MH_SAM_APDU [08:20:01]CAPDU: 80 09 00 00 [08:20:01]Write to MH i2c: E2 08 00 B2 0B 80 09 00 00 00 00 00 00 2F [08:20:01]Write i2c OK [08:20:01]MH_I2C_Read... [08:20:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:20:02]Read from MH i2c: E2 [08:20:02]MH_I2C_Read... [08:20:02]Read from MH i2c: E2 03 00 [08:20:02]MH_I2C_Read... [08:20:02]Read from MH i2c: E2 03 00 B2 0B 00 90 00 31 [08:20:02]RAPDU: 90 00 [08:20:02]wFMCommunicate OK [08:20:02]SAM_PROTO_ClearQueue done [08:20:02]KKMCreateOFDPacket [08:20:02]OFDProtocolAddRootSTLVToBuf [08:20:02]FM_MakeSignedData [08:20:02]FM_MakeSignedData [08:20:02]SAM_PROTO_SignData [08:20:02]wFMCommunicate request_size=4 [08:20:02]MH_SAM_APDU [08:20:02]CAPDU: 80 0D 01 02 [08:20:02]Write to MH i2c: E2 08 00 B3 0B 80 0D 01 02 00 00 00 00 37 [08:20:02]Write i2c OK [08:20:02]MH_I2C_Read... [08:20:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:20:02]Read from MH i2c: E2 [08:20:02]MH_I2C_Read... [08:20:02]Read from MH i2c: E2 03 00 [08:20:02]MH_I2C_Read... [08:20:02]Read from MH i2c: E2 03 00 B3 0B 00 90 00 32 [08:20:02]RAPDU: 90 00 [08:20:02]wFMCommunicate OK [08:20:02]wFMCommunicate request_size=255 [08:20:02]MH_SAM_APDU [08:20:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 2B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 29 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 1E 00 00 00 00 07 04 06 00 10 21 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 32 8A 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E6 83 02 00 35 04 06 00 F1 [08:20:02]Write to MH i2c: E2 02 01 B4 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 2B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 29 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 1E 00 00 00 00 07 04 06 00 10 21 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 32 8A 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E6 83 02 00 35 04 06 00 F1 00 00 39 [08:20:02]Write i2c OK [08:20:02]MH_I2C_Read... [08:20:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:20:02]Read from MH i2c: E2 [08:20:02]MH_I2C_Read... [08:20:02]Read from MH i2c: E2 03 00 [08:20:02]MH_I2C_Read... [08:20:02]Read from MH i2c: E2 03 00 B4 0B 00 90 00 33 [08:20:02]RAPDU: 90 00 [08:20:02]wFMCommunicate OK [08:20:02]wFMCommunicate request_size=10 [08:20:02]MH_SAM_APDU [08:20:02]CAPDU: 80 0D 02 02 05 F3 3D 18 07 D1 [08:20:02]Write to MH i2c: E2 0D 00 B5 0B 80 0D 02 02 05 00 F3 3D 18 07 D1 00 00 64 [08:20:02]Write i2c OK [08:20:02]MH_I2C_Read... [08:20:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:20:02]Read from MH i2c: E2 [08:20:02]MH_I2C_Read... [08:20:02]Read from MH i2c: E2 03 00 [08:20:02]MH_I2C_Read... [08:20:02]Read from MH i2c: E2 03 00 B5 0B 00 90 00 34 [08:20:02]RAPDU: 90 00 [08:20:02]wFMCommunicate OK [08:20:02]wFMCommunicate request_size=4 [08:20:02]MH_SAM_APDU [08:20:02]CAPDU: 80 0D 03 02 [08:20:02]Write to MH i2c: E2 08 00 B6 0B 80 0D 03 02 00 00 00 00 3C [08:20:02]Write i2c OK [08:20:02]MH_I2C_Read... [08:20:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:20:02]Read from MH i2c: E2 [08:20:02]MH_I2C_Read... [08:20:02]Read from MH i2c: E2 0B 00 [08:20:02]MH_I2C_Read... [08:20:02]Read from MH i2c: E2 0B 00 B6 0B 00 1F A1 42 52 29 58 CA 38 90 00 14 [08:20:02]RAPDU: 1F A1 42 52 29 58 CA 38 90 00 [08:20:02]wFMCommunicate OK [08:20:02]SAM_PROTO_SignData done [08:20:02]FM_MakeSignedData done [08:20:02]CreateOFDProtocolMessage [08:20:02]wFMCommunicate request_size=4 [08:20:02]MH_SAM_APDU [08:20:02]CAPDU: 80 11 00 00 [08:20:02]Write to MH i2c: E2 08 00 B7 0B 80 11 00 00 00 00 00 00 3C [08:20:02]Write i2c OK [08:20:02]MH_I2C_Read... [08:20:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:02]Read from MH i2c: E2 [08:20:02]MH_I2C_Read... [08:20:02]Read from MH i2c: E2 17 00 [08:20:02]MH_I2C_Read... [08:20:02]Read from MH i2c: E2 17 00 B7 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 92 [08:20:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:20:02]wFMCommunicate OK [08:20:02]CreateOFDProtocolMessage done [08:20:02]OFDSenderStorePacket 164838 [08:20:02]StoreOFDPacket docnum=164838 [08:20:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 0D A1 07 01 0E 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 2B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 29 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 1E 00 00 00 00 07 04 06 00 10 21 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 32 8A 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E6 83 02 00 35 04 06 00 F1 F3 3D 18 07 D1 1F A1 42 52 29 58 CA 38 [08:20:02]CheckFolder [08:20:02]dirname=/storage/ofd_packets [08:20:02]CheckFolder done [08:20:02]ProducePacketName [08:20:02]name=ofd_packets/00164838 [08:20:02]NVStorageSaveData ofd_packets/00164838 [08:20:02]File name is /storage/ofd_packets/00164838 [08:20:02]Write 301 bytes [08:20:02]NVStorageSaveData done [08:20:02]OFDSenderStorePacket done [08:20:02]KKMCreateOFDPacket done [08:20:02]NVStorageSaveData kkm_last_timestamp [08:20:02]File name is /storage/kkm_last_timestamp [08:20:02]Write 4 bytes [08:20:02]NVStorageSaveData done [08:20:02]ExternCall_PrintAddStr [08:20:02]wPrintStart [08:20:02]Write to MH i2c: 01 00 00 B8 0B C3 [08:20:02]Write i2c OK [08:20:02]MH_I2C_Read... [08:20:02]Read from MH i2c: 01 [08:20:02]MH_I2C_Read... [08:20:02]Read from MH i2c: 01 07 00 [08:20:02]MH_I2C_Read... [08:20:02]Read from MH i2c: 01 07 00 B8 0B 00 00 00 00 00 FF 0F D8 [08:20:02]RasterBufferAndPrint [08:20:02]line Счет N : (1)458934 [08:20:02]line ИНН: 02508201610067 [08:20:02]line Контрольно-Кассовый Чек [08:20:02]line ПРОДАЖА [08:20:02]line ТРК (МРК, ГНК) : 12 [08:20:02]line Товар: 2710124130 [08:20:02]line Аи-92-К-5 [08:20:02]line 11.250 * 65.80 [08:20:02]line = 740.25 [08:20:02]line НДС 12% НСП 1% [08:20:02]line > о реализуемом товаре [08:20:02]line ОКРУГЛЕНИЕ: -0.25 [08:20:02]line ИТОГО: 740.00 [08:20:02]line Внесено: 740.00 [08:20:02]line СДАЧА: 0.00 [08:20:02]line НСП 1% : 6.55 [08:20:02]line НДС 12% : 78.61 [08:20:02]line Наличными: 740.00 [08:20:02]line Безнал.: 0.00 [08:20:02]line Место: АЗС № 72 "Партнер Нефть" [08:20:02]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [08:20:02]line СНО: Общий режим [08:20:02]line Чек 36 14.07.2024 08:20 [08:20:02]line Смена: 447 ФФД: 1.0 [08:20:02]line ЗНМ: 0300000160 [08:20:02]line РНМ: 0000000000090829 [08:20:02]line Версия ККМ: 001 [08:20:02]line ФМ: 0000000000874718 [08:20:02]line ФД: 164838 [08:20:02]line ФПД: 266027004331985 [08:20:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T082002&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164838&fm=266027004331985&tin=02508201610067®Number=0000000000090829&sum=74000 [08:20:02]OFD Sender: Processing packet 164838 [packets to send 104, broken 103] [08:20:02]ProducePacketName [08:20:02]name=ofd_packets/00164838 [08:20:02]OFD Sender: To server: pG, [08:20:02]CommunicateWithHost lk.salyk.kg:30040 [08:20:02]ConnectInit lk.salyk.kg [08:20:02]written 0, free lines is 4095 [08:20:02]Connected sock=10 [08:20:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 0D A1 07 01 0E 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 2B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 29 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 1E 00 00 00 00 07 04 06 00 10 21 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 32 8A 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E6 83 02 00 35 04 06 00 F1 F3 3D 18 07 D1 1F A1 42 52 29 58 CA 38 [08:20:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 66 03 47 00 41 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E6 83 02 00 F4 03 04 00 C1 30 93 66 B6 04 01 00 00 A6 0D 27 5B B3 78 50 BE [08:20:03]CommunicateWithHost err = 0 [08:20:03]CheckOFDResponse [08:20:03]1017 (14) - 77093643461234 [08:20:03]1041 (16) - 0000000000874718 [08:20:03]1040 (4) - 164838 [08:20:03]1012 (4) - 14.07.2024 01:58 [08:20:03]1206 (1) - 0 [08:20:03]OFD Sender: Remove packet 164838 [08:20:03]ProducePacketName [08:20:03]name=ofd_packets/00164838 [08:20:03]NVStorageDeleteData [08:20:03]Write to MH i2c: 01 00 00 E2 0B ED [08:20:03]Write i2c OK [08:20:03]MH_I2C_Read... [08:20:03]Read from MH i2c: 01 [08:20:03]MH_I2C_Read... [08:20:03]Read from MH i2c: 01 07 00 [08:20:03]MH_I2C_Read... [08:20:03]Read from MH i2c: 01 07 00 E2 0B 00 00 00 00 00 0C 0D 0D [08:20:03]RasterBufferAndPrint [08:20:03]line [08:20:03]line [08:20:03]line [08:20:03]line [08:20:03]line [08:20:03]written 0, free lines is 3346 [08:20:03]MH_Cut [08:20:03]Write to MH i2c: D1 01 00 E9 0B 01 C6 [08:20:03]Write i2c OK [08:20:03]MH_I2C_Read... [08:20:03]Read from MH i2c: D1 [08:20:03]MH_I2C_Read... [08:20:03]Read from MH i2c: D1 01 00 [08:20:03]MH_I2C_Read... [08:20:03]Read from MH i2c: D1 01 00 E9 0B 00 C5 [08:20:03]Write to MH i2c: 01 00 00 EA 0B F5 [08:20:03]Write i2c OK [08:20:03]MH_I2C_Read... [08:20:03]OFD Sender: No OFD packet to send [08:20:03]*** Cut start [08:20:03]*** Partial cut [08:20:03]*** CUTSNS_PIN = 1 [08:20:03]*** CUTSNS_PIN = 0 [08:20:04]*** Brake cut motor [08:20:04]Read from MH i2c: 01 [08:20:04]MH_I2C_Read... [08:20:04]*** Stop cut motor [08:20:04]*** Cut end [08:20:04]Read from MH i2c: 01 07 00 [08:20:04]MH_I2C_Read... [08:20:04]Read from MH i2c: 01 07 00 EA 0B 00 00 00 00 00 FF 0F 0A [08:20:04]process_action close_receipt done [08:20:04]requested_data is exist [08:20:04]produce_requested_data [08:20:04]requested_item fm.sn is exist - process it [08:20:04]wFMCommunicate request_size=4 [08:20:04]MH_SAM_APDU [08:20:04]CAPDU: 80 11 00 00 [08:20:04]Write to MH i2c: E2 08 00 EB 0B 80 11 00 00 00 00 00 00 70 [08:20:04]Write i2c OK [08:20:04]MH_I2C_Read... [08:20:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:04]Read from MH i2c: E2 [08:20:04]MH_I2C_Read... [08:20:04]Read from MH i2c: E2 17 00 [08:20:04]MH_I2C_Read... [08:20:04]Read from MH i2c: E2 17 00 EB 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C6 [08:20:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:20:04]wFMCommunicate OK [08:20:04]requested_item fd.num is exist - process it [08:20:04]SAM_PROTO_GetFieldsCounters [08:20:04]wFMCommunicate request_size=4 [08:20:04]MH_SAM_APDU [08:20:04]CAPDU: 80 13 00 00 [08:20:04]Write to MH i2c: E2 08 00 EC 0B 80 13 00 00 00 00 00 00 73 [08:20:04]Write i2c OK [08:20:04]MH_I2C_Read... [08:20:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:20:04]Read from MH i2c: E2 [08:20:04]MH_I2C_Read... [08:20:04]Read from MH i2c: E2 62 00 [08:20:04]MH_I2C_Read... [08:20:04]Read from MH i2c: E2 62 00 EC 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E6 83 02 00 0E 04 04 00 BF 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 31 [08:20:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E6 83 02 00 0E 04 04 00 BF 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 [08:20:04]wFMCommunicate OK [08:20:04]SAM_PROTO_GetFieldsCounters done [08:20:04]requested_item shift.num is exist - process it [08:20:04]requested_item shift.opened is exist - process it [08:20:04]req_shift_opened [08:20:04]FM_GetShiftState [08:20:04]SAM_PROTO_GetShiftState [08:20:04]wFMCommunicate request_size=4 [08:20:04]MH_SAM_APDU [08:20:04]CAPDU: 80 13 01 00 [08:20:04]Write to MH i2c: E2 08 00 ED 0B 80 13 01 00 00 00 00 00 75 [08:20:04]Write i2c OK [08:20:04]MH_I2C_Read... [08:20:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:04]Read from MH i2c: E2 [08:20:04]MH_I2C_Read... [08:20:04]Read from MH i2c: E2 0E 00 [08:20:04]MH_I2C_Read... [08:20:04]Read from MH i2c: E2 0E 00 ED 0B 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 F5 [08:20:04]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [08:20:04]wFMCommunicate OK [08:20:04]SAM_PROTO_GetShiftState done [08:20:04]FM_GetShiftState done [08:20:04]req_shift_opened done [08:20:04]requested_item shift.open_date is exist - process it [08:20:04]req_shift_open_date [08:20:04]req_shift_open_date done [08:20:04]produce_requested_data done [08:20:04]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164838,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [08:20:04]process_action_free close_receipt [08:20:04]json_value_free [08:20:04]json_value_free done [08:20:04]process_json_proto returns [08:20:04]Send response to host [08:20:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164838,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [08:20:04]free response buf [08:20:04]execute_script done [08:20:04]execute_script returns [08:20:04]free content buf [08:20:04]Sock 9.Close socket [08:20:04]Sock 9.Thread stoped [08:20:08]OFD Sender: No OFD packet to send [08:20:13]OFD Sender: No OFD packet to send [08:20:18]OFD Sender: No OFD packet to send [08:20:23]OFD Sender: No OFD packet to send [08:20:28]OFD Sender: No OFD packet to send [08:20:33]OFD Sender: No OFD packet to send [08:20:38]OFD Sender: No OFD packet to send [08:20:43]OFD Sender: No OFD packet to send [08:20:48]OFD Sender: No OFD packet to send [08:20:53]OFD Sender: No OFD packet to send [08:20:58]OFD Sender: No OFD packet to send [08:21:03]OFD Sender: No OFD packet to send [08:21:08]OFD Sender: No OFD packet to send [08:21:13]OFD Sender: No OFD packet to send [08:21:18]OFD Sender: No OFD packet to send [08:21:23]OFD Sender: No OFD packet to send [08:21:28]OFD Sender: No OFD packet to send [08:21:33]OFD Sender: No OFD packet to send [08:21:38]OFD Sender: No OFD packet to send [08:21:43]OFD Sender: No OFD packet to send [08:21:48]OFD Sender: No OFD packet to send [08:21:53]OFD Sender: No OFD packet to send [08:21:58]OFD Sender: No OFD packet to send [08:22:03]OFD Sender: No OFD packet to send [08:22:08]OFD Sender: No OFD packet to send [08:22:13]OFD Sender: No OFD packet to send [08:22:18]OFD Sender: No OFD packet to send [08:22:23]OFD Sender: No OFD packet to send [08:22:28]OFD Sender: No OFD packet to send [08:22:33]OFD Sender: No OFD packet to send [08:22:38]OFD Sender: No OFD packet to send [08:22:43]OFD Sender: No OFD packet to send [08:22:48]OFD Sender: No OFD packet to send [08:22:53]OFD Sender: No OFD packet to send [08:22:58]OFD Sender: No OFD packet to send [08:23:03]OFD Sender: No OFD packet to send [08:23:08]OFD Sender: No OFD packet to send [08:23:13]OFD Sender: No OFD packet to send [08:23:18]OFD Sender: No OFD packet to send [08:23:23]OFD Sender: No OFD packet to send [08:23:28]OFD Sender: No OFD packet to send [08:23:33]OFD Sender: No OFD packet to send [08:23:38]OFD Sender: No OFD packet to send [08:23:43]OFD Sender: No OFD packet to send [08:23:48]OFD Sender: No OFD packet to send [08:23:53]OFD Sender: No OFD packet to send [08:23:58]OFD Sender: No OFD packet to send [08:24:03]OFD Sender: No OFD packet to send [08:24:08]OFD Sender: No OFD packet to send [08:24:13]OFD Sender: No OFD packet to send [08:24:18]OFD Sender: No OFD packet to send [08:24:23]OFD Sender: No OFD packet to send [08:24:28]OFD Sender: No OFD packet to send [08:24:33]OFD Sender: No OFD packet to send [08:24:38]OFD Sender: No OFD packet to send [08:24:43]OFD Sender: No OFD packet to send [08:24:48]OFD Sender: No OFD packet to send [08:24:53]OFD Sender: No OFD packet to send [08:24:58]OFD Sender: No OFD packet to send [08:25:03]OFD Sender: No OFD packet to send [08:25:08]OFD Sender: No OFD packet to send [08:25:13]OFD Sender: No OFD packet to send [08:25:19]OFD Sender: No OFD packet to send [08:25:24]OFD Sender: No OFD packet to send [08:25:29]OFD Sender: No OFD packet to send [08:25:34]OFD Sender: No OFD packet to send [08:25:39]OFD Sender: No OFD packet to send [08:25:44]OFD Sender: No OFD packet to send [08:25:49]OFD Sender: No OFD packet to send [08:25:54]OFD Sender: No OFD packet to send [08:25:59]OFD Sender: No OFD packet to send [08:26:04]OFD Sender: No OFD packet to send [08:26:09]OFD Sender: No OFD packet to send [08:26:14]OFD Sender: No OFD packet to send [08:26:19]OFD Sender: No OFD packet to send [08:26:24]OFD Sender: No OFD packet to send [08:26:29]OFD Sender: No OFD packet to send [08:26:34]OFD Sender: No OFD packet to send [08:26:39]OFD Sender: No OFD packet to send [08:26:44]OFD Sender: No OFD packet to send [08:26:49]OFD Sender: No OFD packet to send [08:26:54]OFD Sender: No OFD packet to send [08:26:59]OFD Sender: No OFD packet to send [08:27:04]OFD Sender: No OFD packet to send [08:27:09]OFD Sender: No OFD packet to send [08:27:14]OFD Sender: No OFD packet to send [08:27:19]OFD Sender: No OFD packet to send [08:27:24]OFD Sender: No OFD packet to send [08:27:29]OFD Sender: No OFD packet to send [08:27:34]OFD Sender: No OFD packet to send [08:27:39]OFD Sender: No OFD packet to send [08:27:44]OFD Sender: No OFD packet to send [08:27:49]OFD Sender: No OFD packet to send [08:27:54]OFD Sender: No OFD packet to send [08:27:59]OFD Sender: No OFD packet to send [08:28:04]OFD Sender: No OFD packet to send [08:28:09]OFD Sender: No OFD packet to send [08:28:14]OFD Sender: No OFD packet to send [08:28:19]OFD Sender: No OFD packet to send [08:28:24]OFD Sender: No OFD packet to send [08:28:29]OFD Sender: No OFD packet to send [08:28:34]OFD Sender: No OFD packet to send [08:28:39]OFD Sender: No OFD packet to send [08:28:44]OFD Sender: No OFD packet to send [08:28:48]accept exits with 8 [08:28:48]New connection [08:28:48]New thread 3067428196 created [08:28:48]Thread 3067571556 joined [08:28:48]Waiting for new connection... [08:28:48] Sock 8.Parse request [08:28:48]Sock 8.Check first char [08:28:48]Sock 8.First char is OK [08:28:48]request: POST /json_proto HTTP/1.0 [08:28:48]Method: POST [08:28:48]URL: /json_proto [08:28:48]Method is POST - this is cgi request [08:28:48]url: /json_proto [08:28:48]query_string will be loaded in cgi processing [08:28:48]execute_cgi json_proto POST (null) [08:28:48]execute_cgi path=json_proto method=POST [08:28:48]POST find Content-Length [08:28:48]Host: 172.17.56.4:8080 [08:28:48]Content-Length: 677 [08:28:48]Content-Type: application/json [08:28:48] [08:28:48]POST finish read [08:28:48]Found Content-Length = 677 [08:28:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458935", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:28:48]execute_script... [08: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)458935", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:28:48]POST & json_proto [08:28:48]process_json_proto [08:28:48]json parsed OK: [08:28:48]protocol is kg_v1.0 [08:28:48]action value=close_receipt [08:28:48]process_action close_receipt [08:28:48]cmd_close_receipt [08:28:48]MH_GetDate [08:28:48]Write to MH i2c: F0 00 00 EE 0B E8 [08:28:48]Write i2c OK [08:28:48]MH_I2C_Read... [08:28:48]Read from MH i2c: F0 [08:28:48]MH_I2C_Read... [08:28:48]Read from MH i2c: F0 09 00 [08:28:48]MH_I2C_Read... [08:28:48]Read from MH i2c: F0 09 00 EE 0B 00 42 8C 93 66 C9 DC B2 64 73 [08:28:48]GetLastDocTimeStamp 1720945202 [08:28:48]current date 1720945730 [08:28:48]FM_GetShiftState [08:28:48]SAM_PROTO_GetShiftState [08:28:48]wFMCommunicate request_size=4 [08:28:48]MH_SAM_APDU [08:28:48]CAPDU: 80 13 01 00 [08:28:48]Write to MH i2c: E2 08 00 EF 0B 80 13 01 00 00 00 00 00 77 [08:28:48]Write i2c OK [08:28:48]MH_I2C_Read... [08:28:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:28:48]Read from MH i2c: E2 [08:28:48]MH_I2C_Read... [08:28:48]Read from MH i2c: E2 0E 00 [08:28:48]MH_I2C_Read... [08:28:48]Read from MH i2c: E2 0E 00 EF 0B 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 F7 [08:28:48]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [08:28:48]wFMCommunicate OK [08:28:48]SAM_PROTO_GetShiftState done [08:28:48]FM_GetShiftState done [08:28:48]opened in 1720917342 [08:28:48]opened+sec_in_day 1721003742 [08:28:48]quantity*price = 30004 [08:28:48]sum+1 = 30006 [08:28:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 37 14.07.2024 08:28 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164839 ФПД: 12440050818580 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T082850&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164839&fm=12440050818580&tin=02508201610067®Number=0000000000090829&sum=30000 [08:28:49]StoreToDocumentArchive [08:28:49]shift 447 fd 164839 [08:28:49]save to /storage/0447/doc_00164839 [08:28:49]save last doc name /storage/0447/doc_00164839 to /storage/kkm_last_doc_name [08:28:49]save OK [08:28:49]Clear old archive folders... [08:28:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:28:49]tlvbuf is 01657180 [08:28:49]SAM_PROTO_ClearQueue [08:28:49]wFMCommunicate request_size=4 [08:28:49]MH_SAM_APDU [08:28:49]CAPDU: 80 09 00 00 [08:28:49]Write to MH i2c: E2 08 00 FC 0B 80 09 00 00 00 00 00 00 79 [08:28:49]Write i2c OK [08:28:49]MH_I2C_Read... [08:28:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:28:49]Read from MH i2c: E2 [08:28:49]MH_I2C_Read... [08:28:49]Read from MH i2c: E2 03 00 [08:28:49]MH_I2C_Read... [08:28:49]Read from MH i2c: E2 03 00 FC 0B 00 90 00 7B [08:28:49]RAPDU: 90 00 [08:28:49]wFMCommunicate OK [08:28:49]SAM_PROTO_ClearQueue done [08:28:49]KKMCreateOFDPacket [08:28:49]OFDProtocolAddRootSTLVToBuf [08:28:49]FM_MakeSignedData [08:28:49]FM_MakeSignedData [08:28:49]SAM_PROTO_SignData [08:28:49]wFMCommunicate request_size=4 [08:28:49]MH_SAM_APDU [08:28:49]CAPDU: 80 0D 01 02 [08:28:49]Write to MH i2c: E2 08 00 FD 0B 80 0D 01 02 00 00 00 00 81 [08:28:49]Write i2c OK [08:28:49]MH_I2C_Read... [08:28:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:28:49]Read from MH i2c: E2 [08:28:49]MH_I2C_Read... [08:28:49]Read from MH i2c: E2 03 00 [08:28:49]MH_I2C_Read... [08:28:49]Read from MH i2c: E2 03 00 FD 0B 00 90 00 7C [08:28:49]RAPDU: 90 00 [08:28:49]wFMCommunicate OK [08:28:49]wFMCommunicate request_size=255 [08:28:49]MH_SAM_APDU [08:28:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 42 8C 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E7 83 02 00 35 04 06 00 0B [08:28:49]Write to MH i2c: E2 02 01 FE 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 42 8C 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E7 83 02 00 35 04 06 00 0B 00 00 DE [08:28:49]Write i2c OK [08:28:49]MH_I2C_Read... [08:28:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:28:50]Read from MH i2c: E2 [08:28:50]MH_I2C_Read... [08:28:50]Read from MH i2c: E2 03 00 [08:28:50]MH_I2C_Read... [08:28:50]Read from MH i2c: E2 03 00 FE 0B 00 90 00 7D [08:28:50]RAPDU: 90 00 [08:28:50]wFMCommunicate OK [08:28:50]wFMCommunicate request_size=10 [08:28:50]MH_SAM_APDU [08:28:50]CAPDU: 80 0D 02 02 05 50 6C CF 5E 14 [08:28:50]Write to MH i2c: E2 0D 00 FF 0B 80 0D 02 02 05 00 50 6C CF 5E 14 00 00 8B [08:28:50]Write i2c OK [08:28:50]MH_I2C_Read... [08:28:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:28:50]Read from MH i2c: E2 [08:28:50]MH_I2C_Read... [08:28:50]Read from MH i2c: E2 03 00 [08:28:50]MH_I2C_Read... [08:28:50]Read from MH i2c: E2 03 00 FF 0B 00 90 00 7E [08:28:50]RAPDU: 90 00 [08:28:50]wFMCommunicate OK [08:28:50]wFMCommunicate request_size=4 [08:28:50]MH_SAM_APDU [08:28:50]CAPDU: 80 0D 03 02 [08:28:50]Write to MH i2c: E2 08 00 00 0C 80 0D 03 02 00 00 00 00 87 [08:28:50]Write i2c OK [08:28:50]MH_I2C_Read... [08:28:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:28:50]Read from MH i2c: E2 [08:28:50]MH_I2C_Read... [08:28:50]Read from MH i2c: E2 0B 00 [08:28:50]MH_I2C_Read... [08:28:50]Read from MH i2c: E2 0B 00 00 0C 00 68 6C A9 CD 02 8B EC 06 90 00 51 [08:28:50]RAPDU: 68 6C A9 CD 02 8B EC 06 90 00 [08:28:50]wFMCommunicate OK [08:28:50]SAM_PROTO_SignData done [08:28:50]FM_MakeSignedData done [08:28:50]CreateOFDProtocolMessage [08:28:50]wFMCommunicate request_size=4 [08:28:50]MH_SAM_APDU [08:28:50]CAPDU: 80 11 00 00 [08:28:50]Write to MH i2c: E2 08 00 01 0C 80 11 00 00 00 00 00 00 87 [08:28:50]Write i2c OK [08:28:50]MH_I2C_Read... [08:28:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:28:50]Read from MH i2c: E2 [08:28:50]MH_I2C_Read... [08:28:50]Read from MH i2c: E2 17 00 [08:28:50]MH_I2C_Read... [08:28:50]Read from MH i2c: E2 17 00 01 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DD [08:28:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:28:50]wFMCommunicate OK [08:28:50]CreateOFDProtocolMessage done [08:28:50]OFDSenderStorePacket 164839 [08:28:50]StoreOFDPacket docnum=164839 [08:28:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 FA 1B 07 01 13 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 42 8C 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E7 83 02 00 35 04 06 00 0B 50 6C CF 5E 14 68 6C A9 CD 02 8B EC 06 [08:28:50]CheckFolder [08:28:50]dirname=/storage/ofd_packets [08:28:50]CheckFolder done [08:28:50]ProducePacketName [08:28:50]name=ofd_packets/00164839 [08:28:50]NVStorageSaveData ofd_packets/00164839 [08:28:50]File name is /storage/ofd_packets/00164839 [08:28:50]Write 301 bytes [08:28:50]NVStorageSaveData done [08:28:50]OFDSenderStorePacket done [08:28:50]KKMCreateOFDPacket done [08:28:50]NVStorageSaveData kkm_last_timestamp [08:28:50]File name is /storage/kkm_last_timestamp [08:28:50]Write 4 bytes [08:28:50]NVStorageSaveData done [08:28:50]ExternCall_PrintAddStr [08:28:50]wPrintStart [08:28:50]Write to MH i2c: 01 00 00 02 0C 0E [08:28:50]Write i2c OK [08:28:50]MH_I2C_Read... [08:28:50]Read from MH i2c: 01 [08:28:50]MH_I2C_Read... [08:28:50]Read from MH i2c: 01 07 00 [08:28:50]MH_I2C_Read... [08:28:50]Read from MH i2c: 01 07 00 02 0C 00 00 00 00 00 FF 0F 23 [08:28:50]RasterBufferAndPrint [08:28:50]line Счет N : (1)458935 [08:28:50]line ИНН: 02508201610067 [08:28:50]line Контрольно-Кассовый Чек [08:28:50]line ПРОДАЖА [08:28:50]line ТРК (МРК, ГНК) : 22 [08:28:50]line Товар: 2710124130 [08:28:50]line Аи-92-К-5 [08:28:50]line 4.560 * 65.80 [08:28:50]line = 300.05 [08:28:50]line НДС 12% НСП 1% [08:28:50]line > о реализуемом товаре [08:28:50]line ОКРУГЛЕНИЕ: -0.05 [08:28:50]line ИТОГО: 300.00 [08:28:50]line Внесено: 300.00 [08:28:50]line СДАЧА: 0.00 [08:28:50]line НСП 1% : 2.65 [08:28:50]line НДС 12% : 31.86 [08:28:50]line Наличными: 300.00 [08:28:50]line Безнал.: 0.00 [08:28:50]line Место: АЗС № 72 "Партнер Нефть" [08:28:50]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [08:28:50]line СНО: Общий режим [08:28:50]line Чек 37 14.07.2024 08:28 [08:28:50]line Смена: 447 ФФД: 1.0 [08:28:50]line ЗНМ: 0300000160 [08:28:50]line РНМ: 0000000000090829 [08:28:50]line Версия ККМ: 001 [08:28:50]line ФМ: 0000000000874718 [08:28:50]line ФД: 164839 [08:28:50]line ФПД: 12440050818580 [08:28:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T082850&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164839&fm=12440050818580&tin=02508201610067®Number=0000000000090829&sum=30000 [08:28:50]OFD Sender: Processing packet 164839 [packets to send 104, broken 103] [08:28:50]ProducePacketName [08:28:50]name=ofd_packets/00164839 [08:28:50]OFD Sender: To server: pG, [08:28:50]CommunicateWithHost lk.salyk.kg:30040 [08:28:50]ConnectInit lk.salyk.kg [08:28:50]written 0, free lines is 4095 [08:28:50]Connected sock=10 [08:28:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 FA 1B 07 01 13 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 42 8C 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E7 83 02 00 35 04 06 00 0B 50 6C CF 5E 14 68 6C A9 CD 02 8B EC 06 [08:28:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 FA F0 47 00 43 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 38 37 34 37 31 38 10 04 04 00 E7 83 02 00 F4 03 04 00 D1 32 93 66 B6 04 01 00 00 48 D0 92 4F 0E 54 84 C9 [08:28:51]CommunicateWithHost err = 0 [08:28:51]CheckOFDResponse [08:28:51]1017 (14) - 77093643461234 [08:28:51]1041 (16) - 0000000000874718 [08:28:51]1040 (4) - 164839 [08:28:51]1012 (4) - 14.07.2024 02:07 [08:28:51]1206 (1) - 0 [08:28:51]OFD Sender: Remove packet 164839 [08:28:51]ProducePacketName [08:28:51]name=ofd_packets/00164839 [08:28:51]NVStorageDeleteData [08:28:51]Write to MH i2c: 01 00 00 2C 0C 38 [08:28:51]Write i2c OK [08:28:51]MH_I2C_Read... [08:28:51]Read from MH i2c: 01 [08:28:51]MH_I2C_Read... [08:28:51]Read from MH i2c: 01 07 00 [08:28:51]MH_I2C_Read... [08:28:51]Read from MH i2c: 01 07 00 2C 0C 00 00 00 00 00 0A 0D 56 [08:28:51]RasterBufferAndPrint [08:28:51]line [08:28:51]line [08:28:51]line [08:28:51]line [08:28:51]line [08:28:51]written 0, free lines is 3344 [08:28:51]MH_Cut [08:28:51]Write to MH i2c: D1 01 00 33 0C 01 11 [08:28:51]Write i2c OK [08:28:51]MH_I2C_Read... [08:28:51]Read from MH i2c: D1 [08:28:51]MH_I2C_Read... [08:28:51]Read from MH i2c: D1 01 00 [08:28:51]MH_I2C_Read... [08:28:51]Read from MH i2c: D1 01 00 33 0C 00 10 [08:28:51]Write to MH i2c: 01 00 00 34 0C 40 [08:28:51]Write i2c OK [08:28:51]MH_I2C_Read... [08:28:51]OFD Sender: No OFD packet to send [08:28:51]*** Cut start [08:28:51]*** Partial cut [08:28:51]*** CUTSNS_PIN = 1 [08:28:51]*** CUTSNS_PIN = 0 [08:28:52]*** Brake cut motor [08:28:52]Read from MH i2c: 01 [08:28:52]MH_I2C_Read... [08:28:52]*** Stop cut motor [08:28:52]*** Cut end [08:28:52]Read from MH i2c: 01 07 00 [08:28:52]MH_I2C_Read... [08:28:52]Read from MH i2c: 01 07 00 34 0C 00 00 00 00 00 FF 0F 55 [08:28:52]process_action close_receipt done [08:28:52]requested_data is exist [08:28:52]produce_requested_data [08:28:52]requested_item fm.sn is exist - process it [08:28:52]wFMCommunicate request_size=4 [08:28:52]MH_SAM_APDU [08:28:52]CAPDU: 80 11 00 00 [08:28:52]Write to MH i2c: E2 08 00 35 0C 80 11 00 00 00 00 00 00 BB [08:28:52]Write i2c OK [08:28:52]MH_I2C_Read... [08:28:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:28:52]Read from MH i2c: E2 [08:28:52]MH_I2C_Read... [08:28:52]Read from MH i2c: E2 17 00 [08:28:52]MH_I2C_Read... [08:28:52]Read from MH i2c: E2 17 00 35 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 11 [08:28:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:28:52]wFMCommunicate OK [08:28:52]requested_item fd.num is exist - process it [08:28:52]SAM_PROTO_GetFieldsCounters [08:28:52]wFMCommunicate request_size=4 [08:28:52]MH_SAM_APDU [08:28:52]CAPDU: 80 13 00 00 [08:28:52]Write to MH i2c: E2 08 00 36 0C 80 13 00 00 00 00 00 00 BE [08:28:52]Write i2c OK [08:28:52]MH_I2C_Read... [08:28:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:28:52]Read from MH i2c: E2 [08:28:52]MH_I2C_Read... [08:28:52]Read from MH i2c: E2 62 00 [08:28:52]MH_I2C_Read... [08:28:52]Read from MH i2c: E2 62 00 36 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E7 83 02 00 0E 04 04 00 BF 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 80 [08:28:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E7 83 02 00 0E 04 04 00 BF 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 [08:28:52]wFMCommunicate OK [08:28:52]SAM_PROTO_GetFieldsCounters done [08:28:52]requested_item shift.num is exist - process it [08:28:52]requested_item shift.opened is exist - process it [08:28:52]req_shift_opened [08:28:52]FM_GetShiftState [08:28:52]SAM_PROTO_GetShiftState [08:28:52]wFMCommunicate request_size=4 [08:28:52]MH_SAM_APDU [08:28:52]CAPDU: 80 13 01 00 [08:28:52]Write to MH i2c: E2 08 00 37 0C 80 13 01 00 00 00 00 00 C0 [08:28:52]Write i2c OK [08:28:52]MH_I2C_Read... [08:28:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:28:52]Read from MH i2c: E2 [08:28:52]MH_I2C_Read... [08:28:52]Read from MH i2c: E2 0E 00 [08:28:52]MH_I2C_Read... [08:28:52]Read from MH i2c: E2 0E 00 37 0C 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 40 [08:28:52]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [08:28:52]wFMCommunicate OK [08:28:52]SAM_PROTO_GetShiftState done [08:28:52]FM_GetShiftState done [08:28:52]req_shift_opened done [08:28:52]requested_item shift.open_date is exist - process it [08:28:52]req_shift_open_date [08:28:52]req_shift_open_date done [08:28:52]produce_requested_data done [08:28:52]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164839,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [08:28:52]process_action_free close_receipt [08:28:52]json_value_free [08:28:52]json_value_free done [08:28:52]process_json_proto returns [08:28:52]Send response to host [08:28:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164839,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [08:28:52]free response buf [08:28:52]execute_script done [08:28:52]execute_script returns [08:28:52]free content buf [08:28:52]Sock 8.Close socket [08:28:52]Sock 8.Thread stoped [08:28:56]OFD Sender: No OFD packet to send [08:29:01]OFD Sender: No OFD packet to send [08:29:06]OFD Sender: No OFD packet to send [08:29:11]OFD Sender: No OFD packet to send [08:29:16]OFD Sender: No OFD packet to send [08:29:21]OFD Sender: No OFD packet to send [08:29:26]OFD Sender: No OFD packet to send [08:29:31]OFD Sender: No OFD packet to send [08:29:36]OFD Sender: No OFD packet to send [08:29:41]OFD Sender: No OFD packet to send [08:29:46]OFD Sender: No OFD packet to send [08:29:51]OFD Sender: No OFD packet to send [08:29:56]OFD Sender: No OFD packet to send [08:30:01]OFD Sender: No OFD packet to send [08:30:06]OFD Sender: No OFD packet to send [08:30:11]OFD Sender: No OFD packet to send [08:30:16]OFD Sender: No OFD packet to send [08:30:21]OFD Sender: No OFD packet to send [08:30:26]OFD Sender: No OFD packet to send [08:30:31]OFD Sender: No OFD packet to send [08:30:36]OFD Sender: No OFD packet to send [08:30:41]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:04]accept exits with 9 [08:31:04]New connection [08:31:04]New thread 3067571556 created [08:31:04]Thread 3067428196 joined [08:31:04]Waiting for new connection... [08:31:04] Sock 9.Parse request [08:31:04]Sock 9.Check first char [08:31:04]Sock 9.First char is OK [08:31:04]request: POST /json_proto HTTP/1.0 [08:31:04]Method: POST [08:31:04]URL: /json_proto [08:31:04]Method is POST - this is cgi request [08:31:04]url: /json_proto [08:31:04]query_string will be loaded in cgi processing [08:31:04]execute_cgi json_proto POST (null) [08:31:04]execute_cgi path=json_proto method=POST [08:31:04]POST find Content-Length [08:31:04]Host: 172.17.56.4:8080 [08:31:04]Content-Length: 677 [08:31:04]Content-Type: application/json [08:31:04] [08:31:04]POST finish read [08:31:04]Found Content-Length = 677 [08:31:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458936", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:31:04]execute_script... [08:31: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)458936", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:31:04]POST & json_proto [08:31:04]process_json_proto [08:31:04]json parsed OK: [08:31:04]protocol is kg_v1.0 [08:31:04]action value=close_receipt [08:31:04]process_action close_receipt [08:31:04]cmd_close_receipt [08:31:04]MH_GetDate [08:31:04]Write to MH i2c: F0 00 00 38 0C 33 [08:31:04]Write i2c OK [08:31:04]MH_I2C_Read... [08:31:04]Read from MH i2c: F0 [08:31:04]MH_I2C_Read... [08:31:04]Read from MH i2c: F0 09 00 [08:31:04]MH_I2C_Read... [08:31:04]Read from MH i2c: F0 09 00 38 0C 00 CB 8C 93 66 C9 DC B2 64 47 [08:31:04]GetLastDocTimeStamp 1720945730 [08:31:04]current date 1720945867 [08:31:04]FM_GetShiftState [08:31:04]SAM_PROTO_GetShiftState [08:31:04]wFMCommunicate request_size=4 [08:31:04]MH_SAM_APDU [08:31:04]CAPDU: 80 13 01 00 [08:31:04]Write to MH i2c: E2 08 00 39 0C 80 13 01 00 00 00 00 00 C2 [08:31:04]Write i2c OK [08:31:04]MH_I2C_Read... [08:31:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:05]Read from MH i2c: E2 [08:31:05]MH_I2C_Read... [08:31:05]Read from MH i2c: E2 0E 00 [08:31:05]MH_I2C_Read... [08:31:05]Read from MH i2c: E2 0E 00 39 0C 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 42 [08:31:05]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [08:31:05]wFMCommunicate OK [08:31:05]SAM_PROTO_GetShiftState done [08:31:05]FM_GetShiftState done [08:31:05]opened in 1720917342 [08:31:05]opened+sec_in_day 1721003742 [08:31:05]quantity*price = 30004 [08:31:05]sum+1 = 30006 [08:31:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 38 14.07.2024 08:31 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164840 ФПД: 194586047173417 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T083107&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164840&fm=194586047173417&tin=02508201610067®Number=0000000000090829&sum=30000 [08:31:06]StoreToDocumentArchive [08:31:06]shift 447 fd 164840 [08:31:06]save to /storage/0447/doc_00164840 [08:31:06]save last doc name /storage/0447/doc_00164840 to /storage/kkm_last_doc_name [08:31:06]save OK [08:31:06]Clear old archive folders... [08:31:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:31:06]tlvbuf is 0168A180 [08:31:06]SAM_PROTO_ClearQueue [08:31:06]wFMCommunicate request_size=4 [08:31:06]MH_SAM_APDU [08:31:06]CAPDU: 80 09 00 00 [08:31:06]Write to MH i2c: E2 08 00 46 0C 80 09 00 00 00 00 00 00 C4 [08:31:06]Write i2c OK [08:31:06]MH_I2C_Read... [08:31:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:31:06]Read from MH i2c: E2 [08:31:06]MH_I2C_Read... [08:31:06]Read from MH i2c: E2 03 00 [08:31:06]MH_I2C_Read... [08:31:06]Read from MH i2c: E2 03 00 46 0C 00 90 00 C6 [08:31:06]RAPDU: 90 00 [08:31:06]wFMCommunicate OK [08:31:06]SAM_PROTO_ClearQueue done [08:31:06]KKMCreateOFDPacket [08:31:06]OFDProtocolAddRootSTLVToBuf [08:31:06]FM_MakeSignedData [08:31:06]FM_MakeSignedData [08:31:06]SAM_PROTO_SignData [08:31:06]wFMCommunicate request_size=4 [08:31:06]MH_SAM_APDU [08:31:06]CAPDU: 80 0D 01 02 [08:31:06]Write to MH i2c: E2 08 00 47 0C 80 0D 01 02 00 00 00 00 CC [08:31:06]Write i2c OK [08:31:06]MH_I2C_Read... [08:31:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:31:06]Read from MH i2c: E2 [08:31:06]MH_I2C_Read... [08:31:06]Read from MH i2c: E2 03 00 [08:31:06]MH_I2C_Read... [08:31:06]Read from MH i2c: E2 03 00 47 0C 00 90 00 C7 [08:31:06]RAPDU: 90 00 [08:31:06]wFMCommunicate OK [08:31:06]wFMCommunicate request_size=255 [08:31:06]MH_SAM_APDU [08:31:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 CB 8C 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E8 83 02 00 35 04 06 00 B0 [08:31:06]Write to MH i2c: E2 02 01 48 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 CB 8C 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E8 83 02 00 35 04 06 00 B0 00 00 59 [08:31:06]Write i2c OK [08:31:06]MH_I2C_Read... [08:31:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:06]Read from MH i2c: E2 [08:31:06]MH_I2C_Read... [08:31:06]Read from MH i2c: E2 03 00 [08:31:06]MH_I2C_Read... [08:31:06]Read from MH i2c: E2 03 00 48 0C 00 90 00 C8 [08:31:06]RAPDU: 90 00 [08:31:06]wFMCommunicate OK [08:31:06]wFMCommunicate request_size=10 [08:31:06]MH_SAM_APDU [08:31:06]CAPDU: 80 0D 02 02 05 F9 98 38 53 29 [08:31:06]Write to MH i2c: E2 0D 00 49 0C 80 0D 02 02 05 00 F9 98 38 53 29 00 00 1E [08:31:06]Write i2c OK [08:31:06]MH_I2C_Read... [08:31:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:06]Read from MH i2c: E2 [08:31:06]MH_I2C_Read... [08:31:06]Read from MH i2c: E2 03 00 [08:31:06]MH_I2C_Read... [08:31:06]Read from MH i2c: E2 03 00 49 0C 00 90 00 C9 [08:31:06]RAPDU: 90 00 [08:31:06]wFMCommunicate OK [08:31:06]wFMCommunicate request_size=4 [08:31:06]MH_SAM_APDU [08:31:06]CAPDU: 80 0D 03 02 [08:31:06]Write to MH i2c: E2 08 00 4A 0C 80 0D 03 02 00 00 00 00 D1 [08:31:06]Write i2c OK [08:31:06]MH_I2C_Read... [08:31:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:31:06]Read from MH i2c: E2 [08:31:06]MH_I2C_Read... [08:31:06]Read from MH i2c: E2 0B 00 [08:31:06]MH_I2C_Read... [08:31:06]Read from MH i2c: E2 0B 00 4A 0C 00 D7 68 94 5A 34 E9 11 B3 90 00 E0 [08:31:06]RAPDU: D7 68 94 5A 34 E9 11 B3 90 00 [08:31:06]wFMCommunicate OK [08:31:06]SAM_PROTO_SignData done [08:31:06]FM_MakeSignedData done [08:31:06]CreateOFDProtocolMessage [08:31:06]wFMCommunicate request_size=4 [08:31:06]MH_SAM_APDU [08:31:06]CAPDU: 80 11 00 00 [08:31:06]Write to MH i2c: E2 08 00 4B 0C 80 11 00 00 00 00 00 00 D1 [08:31:06]Write i2c OK [08:31:06]MH_I2C_Read... [08:31:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:06]Read from MH i2c: E2 [08:31:06]MH_I2C_Read... [08:31:06]Read from MH i2c: E2 17 00 [08:31:06]MH_I2C_Read... [08:31:06]Read from MH i2c: E2 17 00 4B 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 27 [08:31:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:31:06]wFMCommunicate OK [08:31:06]CreateOFDProtocolMessage done [08:31:06]OFDSenderStorePacket 164840 [08:31:06]StoreOFDPacket docnum=164840 [08:31:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 FC 65 07 01 30 DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 CB 8C 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E8 83 02 00 35 04 06 00 B0 F9 98 38 53 29 D7 68 94 5A 34 E9 11 B3 [08:31:06]CheckFolder [08:31:06]dirname=/storage/ofd_packets [08:31:06]CheckFolder done [08:31:06]ProducePacketName [08:31:06]name=ofd_packets/00164840 [08:31:06]NVStorageSaveData ofd_packets/00164840 [08:31:06]File name is /storage/ofd_packets/00164840 [08:31:06]Write 301 bytes [08:31:06]NVStorageSaveData done [08:31:06]OFDSenderStorePacket done [08:31:06]KKMCreateOFDPacket done [08:31:06]NVStorageSaveData kkm_last_timestamp [08:31:06]File name is /storage/kkm_last_timestamp [08:31:06]Write 4 bytes [08:31:06]NVStorageSaveData done [08:31:06]ExternCall_PrintAddStr [08:31:06]wPrintStart [08:31:06]Write to MH i2c: 01 00 00 4C 0C 58 [08:31:06]Write i2c OK [08:31:06]MH_I2C_Read... [08:31:06]Read from MH i2c: 01 [08:31:06]MH_I2C_Read... [08:31:06]Read from MH i2c: 01 07 00 [08:31:06]MH_I2C_Read... [08:31:06]Read from MH i2c: 01 07 00 4C 0C 00 00 00 00 00 FF 0F 6D [08:31:06]RasterBufferAndPrint [08:31:06]line Счет N : (1)458936 [08:31:06]line ИНН: 02508201610067 [08:31:06]line Контрольно-Кассовый Чек [08:31:06]line ПРОДАЖА [08:31:06]line ТРК (МРК, ГНК) : 12 [08:31:06]line Товар: 2710124130 [08:31:06]line Аи-92-К-5 [08:31:06]line 4.560 * 65.80 [08:31:06]line = 300.05 [08:31:06]line НДС 12% НСП 1% [08:31:06]line > о реализуемом товаре [08:31:06]line ОКРУГЛЕНИЕ: -0.05 [08:31:06]line ИТОГО: 300.00 [08:31:06]line Внесено: 300.00 [08:31:06]line СДАЧА: 0.00 [08:31:06]line НСП 1% : 2.65 [08:31:06]line НДС 12% : 31.86 [08:31:06]line Наличными: 300.00 [08:31:06]line Безнал.: 0.00 [08:31:06]line Место: АЗС № 72 "Партнер Нефть" [08:31:06]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [08:31:06]line СНО: Общий режим [08:31:06]line Чек 38 14.07.2024 08:31 [08:31:06]line Смена: 447 ФФД: 1.0 [08:31:06]line ЗНМ: 0300000160 [08:31:06]line РНМ: 0000000000090829 [08:31:06]line Версия ККМ: 001 [08:31:06]line ФМ: 0000000000874718 [08:31:06]line ФД: 164840 [08:31:06]line ФПД: 194586047173417 [08:31:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T083107&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164840&fm=194586047173417&tin=02508201610067®Number=0000000000090829&sum=30000 [08:31:06]OFD Sender: Processing packet 164840 [packets to send 104, broken 103] [08:31:07]ProducePacketName [08:31:07]name=ofd_packets/00164840 [08:31:07]OFD Sender: To server: pG, [08:31:07]CommunicateWithHost lk.salyk.kg:30040 [08:31:07]ConnectInit lk.salyk.kg [08:31:07]written 0, free lines is 4095 [08:31:07]Connected sock=10 [08:31:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 FC 65 07 01 30 DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 CB 8C 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E8 83 02 00 35 04 06 00 B0 F9 98 38 53 29 D7 68 94 5A 34 E9 11 B3 [08:31:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 A9 4D 47 00 46 B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E8 83 02 00 F4 03 04 00 59 33 93 66 B6 04 01 00 00 3B 95 68 F0 3E 62 DF 54 [08:31:07]CommunicateWithHost err = 0 [08:31:07]CheckOFDResponse [08:31:07]1017 (14) - 77093643461234 [08:31:07]1041 (16) - 0000000000874718 [08:31:07]1040 (4) - 164840 [08:31:07]1012 (4) - 14.07.2024 02:09 [08:31:07]1206 (1) - 0 [08:31:07]OFD Sender: Remove packet 164840 [08:31:07]ProducePacketName [08:31:07]name=ofd_packets/00164840 [08:31:07]NVStorageDeleteData [08:31:07]Write to MH i2c: 01 00 00 76 0C 82 [08:31:07]Write i2c OK [08:31:07]MH_I2C_Read... [08:31:07]Read from MH i2c: 01 [08:31:07]MH_I2C_Read... [08:31:07]Read from MH i2c: 01 07 00 [08:31:07]MH_I2C_Read... [08:31:07]Read from MH i2c: 01 07 00 76 0C 00 00 00 00 00 02 0D 98 [08:31:07]RasterBufferAndPrint [08:31:07]line [08:31:07]line [08:31:07]line [08:31:07]line [08:31:07]line [08:31:07]written 0, free lines is 3336 [08:31:07]MH_Cut [08:31:07]Write to MH i2c: D1 01 00 7D 0C 01 5B [08:31:07]Write i2c OK [08:31:07]MH_I2C_Read... [08:31:07]Read from MH i2c: D1 [08:31:07]MH_I2C_Read... [08:31:07]Read from MH i2c: D1 01 00 [08:31:07]MH_I2C_Read... [08:31:07]Read from MH i2c: D1 01 00 7D 0C 00 5A [08:31:07]Write to MH i2c: 01 00 00 7E 0C 8A [08:31:07]Write i2c OK [08:31:07]MH_I2C_Read... [08:31:07]OFD Sender: No OFD packet to send [08:31:08]*** Cut start [08:31:08]*** Partial cut [08:31:08]*** CUTSNS_PIN = 1 [08:31:08]*** CUTSNS_PIN = 0 [08:31:08]*** Brake cut motor [08:31:08]Read from MH i2c: 01 [08:31:08]MH_I2C_Read... [08:31:08]*** Stop cut motor [08:31:08]*** Cut end [08:31:08]Read from MH i2c: 01 07 00 [08:31:08]MH_I2C_Read... [08:31:08]Read from MH i2c: 01 07 00 7E 0C 00 00 00 00 00 FF 0F 9F [08:31:08]process_action close_receipt done [08:31:08]requested_data is exist [08:31:08]produce_requested_data [08:31:08]requested_item fm.sn is exist - process it [08:31:08]wFMCommunicate request_size=4 [08:31:08]MH_SAM_APDU [08:31:08]CAPDU: 80 11 00 00 [08:31:08]Write to MH i2c: E2 08 00 7F 0C 80 11 00 00 00 00 00 00 05 [08:31:08]Write i2c OK [08:31:08]MH_I2C_Read... [08:31:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:08]Read from MH i2c: E2 [08:31:08]MH_I2C_Read... [08:31:08]Read from MH i2c: E2 17 00 [08:31:08]MH_I2C_Read... [08:31:08]Read from MH i2c: E2 17 00 7F 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 5B [08:31:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:31:08]wFMCommunicate OK [08:31:08]requested_item fd.num is exist - process it [08:31:08]SAM_PROTO_GetFieldsCounters [08:31:08]wFMCommunicate request_size=4 [08:31:08]MH_SAM_APDU [08:31:08]CAPDU: 80 13 00 00 [08:31:08]Write to MH i2c: E2 08 00 80 0C 80 13 00 00 00 00 00 00 08 [08:31:08]Write i2c OK [08:31:08]MH_I2C_Read... [08:31:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:31:08]Read from MH i2c: E2 [08:31:08]MH_I2C_Read... [08:31:08]Read from MH i2c: E2 62 00 [08:31:08]MH_I2C_Read... [08:31:08]Read from MH i2c: E2 62 00 80 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E8 83 02 00 0E 04 04 00 BF 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 CE [08:31:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E8 83 02 00 0E 04 04 00 BF 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 [08:31:08]wFMCommunicate OK [08:31:08]SAM_PROTO_GetFieldsCounters done [08:31:08]requested_item shift.num is exist - process it [08:31:08]requested_item shift.opened is exist - process it [08:31:08]req_shift_opened [08:31:08]FM_GetShiftState [08:31:08]SAM_PROTO_GetShiftState [08:31:08]wFMCommunicate request_size=4 [08:31:08]MH_SAM_APDU [08:31:08]CAPDU: 80 13 01 00 [08:31:08]Write to MH i2c: E2 08 00 81 0C 80 13 01 00 00 00 00 00 0A [08:31:08]Write i2c OK [08:31:08]MH_I2C_Read... [08:31:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:08]Read from MH i2c: E2 [08:31:08]MH_I2C_Read... [08:31:08]Read from MH i2c: E2 0E 00 [08:31:08]MH_I2C_Read... [08:31:08]Read from MH i2c: E2 0E 00 81 0C 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 8A [08:31:08]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [08:31:08]wFMCommunicate OK [08:31:08]SAM_PROTO_GetShiftState done [08:31:08]FM_GetShiftState done [08:31:08]req_shift_opened done [08:31:08]requested_item shift.open_date is exist - process it [08:31:08]req_shift_open_date [08:31:08]req_shift_open_date done [08:31:08]produce_requested_data done [08:31:08]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164840,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [08:31:08]process_action_free close_receipt [08:31:08]json_value_free [08:31:08]json_value_free done [08:31:08]process_json_proto returns [08:31:08]Send response to host [08:31:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164840,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [08:31:08]free response buf [08:31:08]execute_script done [08:31:08]execute_script returns [08:31:08]free content buf [08:31:08]Sock 9.Close socket [08:31:08]Sock 9.Thread stoped [08:31:12]OFD Sender: No OFD packet to send [08:31:17]OFD Sender: No OFD packet to send [08:31:22]OFD Sender: No OFD packet to send [08:31:27]OFD Sender: No OFD packet to send [08:31:32]OFD Sender: No OFD packet to send [08:31:37]OFD Sender: No OFD packet to send [08:31:42]OFD Sender: No OFD packet to send [08:31:47]OFD Sender: No OFD packet to send [08:31:50]accept exits with 8 [08:31:50]New connection [08:31:50]New thread 3067428196 created [08:31:50]Thread 3067571556 joined [08:31:50]Waiting for new connection... [08:31:50] Sock 8.Parse request [08:31:50]Sock 8.Check first char [08:31:50]Sock 8.First char is OK [08:31:50]request: POST /json_proto HTTP/1.0 [08:31:50]Method: POST [08:31:50]URL: /json_proto [08:31:50]Method is POST - this is cgi request [08:31:50]url: /json_proto [08:31:50]query_string will be loaded in cgi processing [08:31:50]execute_cgi json_proto POST (null) [08:31:50]execute_cgi path=json_proto method=POST [08:31:50]POST find Content-Length [08:31:50]Host: 172.17.56.4:8080 [08:31:50]Content-Length: 677 [08:31:50]Content-Type: application/json [08:31:50] [08:31:50]POST finish read [08:31:50]Found Content-Length = 677 [08:31:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458937", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:31:50]execute_script... [08:31: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)458937", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:31:50]POST & json_proto [08:31:50]process_json_proto [08:31:50]json parsed OK: [08:31:50]protocol is kg_v1.0 [08:31:50]action value=close_receipt [08:31:50]process_action close_receipt [08:31:50]cmd_close_receipt [08:31:50]MH_GetDate [08:31:50]Write to MH i2c: F0 00 00 82 0C 7D [08:31:50]Write i2c OK [08:31:50]MH_I2C_Read... [08:31:50]Read from MH i2c: F0 [08:31:50]MH_I2C_Read... [08:31:50]Read from MH i2c: F0 09 00 [08:31:50]MH_I2C_Read... [08:31:50]Read from MH i2c: F0 09 00 82 0C 00 F9 8C 93 66 C9 DC B2 64 BF [08:31:50]GetLastDocTimeStamp 1720945867 [08:31:50]current date 1720945913 [08:31:50]FM_GetShiftState [08:31:50]SAM_PROTO_GetShiftState [08:31:50]wFMCommunicate request_size=4 [08:31:50]MH_SAM_APDU [08:31:50]CAPDU: 80 13 01 00 [08:31:50]Write to MH i2c: E2 08 00 83 0C 80 13 01 00 00 00 00 00 0C [08:31:50]Write i2c OK [08:31:50]MH_I2C_Read... [08:31:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:51]Read from MH i2c: E2 [08:31:51]MH_I2C_Read... [08:31:51]Read from MH i2c: E2 0E 00 [08:31:51]MH_I2C_Read... [08:31:51]Read from MH i2c: E2 0E 00 83 0C 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 8C [08:31:51]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [08:31:51]wFMCommunicate OK [08:31:51]SAM_PROTO_GetShiftState done [08:31:51]FM_GetShiftState done [08:31:51]opened in 1720917342 [08:31:51]opened+sec_in_day 1721003742 [08:31:51]quantity*price = 20003 [08:31:51]sum+1 = 20004 [08:31:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 39 14.07.2024 08:31 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164841 ФПД: 87584732685565 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T083153&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164841&fm=87584732685565&tin=02508201610067®Number=0000000000090829&sum=20000 [08:31:52]StoreToDocumentArchive [08:31:52]shift 447 fd 164841 [08:31:52]save to /storage/0447/doc_00164841 [08:31:52]save last doc name /storage/0447/doc_00164841 to /storage/kkm_last_doc_name [08:31:52]save OK [08:31:52]Clear old archive folders... [08:31:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:31:52]tlvbuf is 01689CA0 [08:31:52]SAM_PROTO_ClearQueue [08:31:52]wFMCommunicate request_size=4 [08:31:52]MH_SAM_APDU [08:31:52]CAPDU: 80 09 00 00 [08:31:52]Write to MH i2c: E2 08 00 90 0C 80 09 00 00 00 00 00 00 0E [08:31:52]Write i2c OK [08:31:52]MH_I2C_Read... [08:31:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:31:52]Read from MH i2c: E2 [08:31:52]MH_I2C_Read... [08:31:52]Read from MH i2c: E2 03 00 [08:31:52]MH_I2C_Read... [08:31:52]Read from MH i2c: E2 03 00 90 0C 00 90 00 10 [08:31:52]RAPDU: 90 00 [08:31:52]wFMCommunicate OK [08:31:52]SAM_PROTO_ClearQueue done [08:31:52]KKMCreateOFDPacket [08:31:52]OFDProtocolAddRootSTLVToBuf [08:31:52]FM_MakeSignedData [08:31:52]FM_MakeSignedData [08:31:52]SAM_PROTO_SignData [08:31:52]wFMCommunicate request_size=4 [08:31:52]MH_SAM_APDU [08:31:52]CAPDU: 80 0D 01 02 [08:31:52]Write to MH i2c: E2 08 00 91 0C 80 0D 01 02 00 00 00 00 16 [08:31:52]Write i2c OK [08:31:52]MH_I2C_Read... [08:31:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:31:52]Read from MH i2c: E2 [08:31:52]MH_I2C_Read... [08:31:52]Read from MH i2c: E2 03 00 [08:31:52]MH_I2C_Read... [08:31:52]Read from MH i2c: E2 03 00 91 0C 00 90 00 11 [08:31:52]RAPDU: 90 00 [08:31:52]wFMCommunicate OK [08:31:52]wFMCommunicate request_size=255 [08:31:52]MH_SAM_APDU [08:31:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 27 00 00 00 F4 03 04 00 F9 8C 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E9 83 02 00 35 04 06 00 4F [08:31:52]Write to MH i2c: E2 02 01 92 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 27 00 00 00 F4 03 04 00 F9 8C 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E9 83 02 00 35 04 06 00 4F 00 00 52 [08:31:52]Write i2c OK [08:31:52]MH_I2C_Read... [08:31:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:52]Read from MH i2c: E2 [08:31:52]MH_I2C_Read... [08:31:52]Read from MH i2c: E2 03 00 [08:31:52]MH_I2C_Read... [08:31:52]Read from MH i2c: E2 03 00 92 0C 00 90 00 12 [08:31:52]RAPDU: 90 00 [08:31:52]wFMCommunicate OK [08:31:52]wFMCommunicate request_size=10 [08:31:52]MH_SAM_APDU [08:31:52]CAPDU: 80 0D 02 02 05 A8 68 E1 24 FD [08:31:52]Write to MH i2c: E2 0D 00 93 0C 80 0D 02 02 05 00 A8 68 E1 24 FD 00 00 35 [08:31:52]Write i2c OK [08:31:52]MH_I2C_Read... [08:31:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:52]Read from MH i2c: E2 [08:31:52]MH_I2C_Read... [08:31:52]Read from MH i2c: E2 03 00 [08:31:52]MH_I2C_Read... [08:31:52]Read from MH i2c: E2 03 00 93 0C 00 90 00 13 [08:31:52]RAPDU: 90 00 [08:31:52]wFMCommunicate OK [08:31:52]wFMCommunicate request_size=4 [08:31:52]MH_SAM_APDU [08:31:52]CAPDU: 80 0D 03 02 [08:31:52]Write to MH i2c: E2 08 00 94 0C 80 0D 03 02 00 00 00 00 1B [08:31:52]Write i2c OK [08:31:52]MH_I2C_Read... [08:31:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:31:52]Read from MH i2c: E2 [08:31:52]MH_I2C_Read... [08:31:52]Read from MH i2c: E2 0B 00 [08:31:52]MH_I2C_Read... [08:31:52]Read from MH i2c: E2 0B 00 94 0C 00 5B 92 CB FB 93 50 6D 20 90 00 3F [08:31:52]RAPDU: 5B 92 CB FB 93 50 6D 20 90 00 [08:31:52]wFMCommunicate OK [08:31:52]SAM_PROTO_SignData done [08:31:52]FM_MakeSignedData done [08:31:52]CreateOFDProtocolMessage [08:31:52]wFMCommunicate request_size=4 [08:31:52]MH_SAM_APDU [08:31:52]CAPDU: 80 11 00 00 [08:31:52]Write to MH i2c: E2 08 00 95 0C 80 11 00 00 00 00 00 00 1B [08:31:52]Write i2c OK [08:31:52]MH_I2C_Read... [08:31:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:52]Read from MH i2c: E2 [08:31:52]MH_I2C_Read... [08:31:52]Read from MH i2c: E2 17 00 [08:31:52]MH_I2C_Read... [08:31:52]Read from MH i2c: E2 17 00 95 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 71 [08:31:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:31:52]wFMCommunicate OK [08:31:52]CreateOFDProtocolMessage done [08:31:52]OFDSenderStorePacket 164841 [08:31:52]StoreOFDPacket docnum=164841 [08:31:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 97 16 07 01 2D 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 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 27 00 00 00 F4 03 04 00 F9 8C 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E9 83 02 00 35 04 06 00 4F A8 68 E1 24 FD 5B 92 CB FB 93 50 6D 20 [08:31:52]CheckFolder [08:31:52]dirname=/storage/ofd_packets [08:31:52]CheckFolder done [08:31:52]ProducePacketName [08:31:52]name=ofd_packets/00164841 [08:31:52]NVStorageSaveData ofd_packets/00164841 [08:31:52]File name is /storage/ofd_packets/00164841 [08:31:52]Write 301 bytes [08:31:52]NVStorageSaveData done [08:31:52]OFDSenderStorePacket done [08:31:52]KKMCreateOFDPacket done [08:31:52]NVStorageSaveData kkm_last_timestamp [08:31:52]File name is /storage/kkm_last_timestamp [08:31:52]Write 4 bytes [08:31:52]NVStorageSaveData done [08:31:52]ExternCall_PrintAddStr [08:31:52]wPrintStart [08:31:52]Write to MH i2c: 01 00 00 96 0C A2 [08:31:52]Write i2c OK [08:31:52]MH_I2C_Read... [08:31:52]Read from MH i2c: 01 [08:31:52]MH_I2C_Read... [08:31:52]Read from MH i2c: 01 07 00 [08:31:52]MH_I2C_Read... [08:31:52]Read from MH i2c: 01 07 00 96 0C 00 00 00 00 00 FF 0F B7 [08:31:52]RasterBufferAndPrint [08:31:52]line Счет N : (1)458937 [08:31:52]line ИНН: 02508201610067 [08:31:52]line Контрольно-Кассовый Чек [08:31:52]line ПРОДАЖА [08:31:52]line ТРК (МРК, ГНК) : 12 [08:31:52]line Товар: 2710124130 [08:31:52]line Аи-92-К-5 [08:31:52]line 3.040 * 65.80 [08:31:52]line = 200.03 [08:31:52]line НДС 12% НСП 1% [08:31:52]line > о реализуемом товаре [08:31:52]line ОКРУГЛЕНИЕ: -0.03 [08:31:52]line ИТОГО: 200.00 [08:31:52]line Внесено: 200.00 [08:31:52]line СДАЧА: 0.00 [08:31:52]line НСП 1% : 1.77 [08:31:52]line НДС 12% : 21.24 [08:31:52]line Наличными: 200.00 [08:31:52]line Безнал.: 0.00 [08:31:52]line Место: АЗС № 72 "Партнер Нефть" [08:31:52]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [08:31:52]line СНО: Общий режим [08:31:52]line Чек 39 14.07.2024 08:31 [08:31:52]line Смена: 447 ФФД: 1.0 [08:31:52]line ЗНМ: 0300000160 [08:31:52]line РНМ: 0000000000090829 [08:31:52]line Версия ККМ: 001 [08:31:52]line ФМ: 0000000000874718 [08:31:52]line ФД: 164841 [08:31:52]line ФПД: 87584732685565 [08:31:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T083153&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164841&fm=87584732685565&tin=02508201610067®Number=0000000000090829&sum=20000 [08:31:53]written 0, free lines is 4095 [08:31:53]OFD Sender: Processing packet 164841 [packets to send 104, broken 103] [08:31:53]ProducePacketName [08:31:53]name=ofd_packets/00164841 [08:31:53]OFD Sender: To server: pG, [08:31:53]CommunicateWithHost lk.salyk.kg:30040 [08:31:53]ConnectInit lk.salyk.kg [08:31:53]Connected sock=10 [08:31:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 97 16 07 01 2D 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 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 27 00 00 00 F4 03 04 00 F9 8C 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E9 83 02 00 35 04 06 00 4F A8 68 E1 24 FD 5B 92 CB FB 93 50 6D 20 [08:31:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 72 8B 47 00 28 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 38 37 34 37 31 38 10 04 04 00 E9 83 02 00 F4 03 04 00 87 33 93 66 B6 04 01 00 00 A3 CE E8 57 80 94 B4 15 [08:31:53]CommunicateWithHost err = 0 [08:31:53]CheckOFDResponse [08:31:53]1017 (14) - 77093643461234 [08:31:53]1041 (16) - 0000000000874718 [08:31:53]1040 (4) - 164841 [08:31:53]1012 (4) - 14.07.2024 02:10 [08:31:53]1206 (1) - 0 [08:31:53]OFD Sender: Remove packet 164841 [08:31:53]ProducePacketName [08:31:53]name=ofd_packets/00164841 [08:31:53]NVStorageDeleteData [08:31:53]Write to MH i2c: 01 00 00 C0 0C CC [08:31:53]Write i2c OK [08:31:53]MH_I2C_Read... [08:31:53]Read from MH i2c: 01 [08:31:53]MH_I2C_Read... [08:31:53]Read from MH i2c: 01 07 00 [08:31:53]MH_I2C_Read... [08:31:53]Read from MH i2c: 01 07 00 C0 0C 00 00 00 00 00 F5 0C D4 [08:31:53]RasterBufferAndPrint [08:31:53]line [08:31:53]line [08:31:53]line [08:31:53]line [08:31:53]line [08:31:53]written 0, free lines is 3323 [08:31:53]MH_Cut [08:31:53]Write to MH i2c: D1 01 00 C7 0C 01 A5 [08:31:53]Write i2c OK [08:31:53]MH_I2C_Read... [08:31:53]Read from MH i2c: D1 [08:31:53]MH_I2C_Read... [08:31:53]Read from MH i2c: D1 01 00 [08:31:53]MH_I2C_Read... [08:31:53]Read from MH i2c: D1 01 00 C7 0C 00 A4 [08:31:53]Write to MH i2c: 01 00 00 C8 0C D4 [08:31:53]Write i2c OK [08:31:53]MH_I2C_Read... [08:31:53]OFD Sender: No OFD packet to send [08:31:54]*** Cut start [08:31:54]*** Partial cut [08:31:54]*** CUTSNS_PIN = 1 [08:31:54]*** CUTSNS_PIN = 0 [08:31:54]*** Brake cut motor [08:31:54]Read from MH i2c: 01 [08:31:54]MH_I2C_Read... [08:31:54]*** Stop cut motor [08:31:54]*** Cut end [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 C8 0C 00 00 00 00 00 FF 0F E9 [08:31:54]process_action close_receipt done [08:31:54]requested_data is exist [08:31:54]produce_requested_data [08:31:54]requested_item fm.sn is exist - process it [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 C9 0C 80 11 00 00 00 00 00 00 4F [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 C9 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A5 [08:31:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:31:54]wFMCommunicate OK [08:31:54]requested_item fd.num is exist - process it [08:31:54]SAM_PROTO_GetFieldsCounters [08:31:54]wFMCommunicate request_size=4 [08:31:54]MH_SAM_APDU [08:31:54]CAPDU: 80 13 00 00 [08:31:54]Write to MH i2c: E2 08 00 CA 0C 80 13 00 00 00 00 00 00 52 [08:31:54]Write i2c OK [08:31:54]MH_I2C_Read... [08:31:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:31:54]Read from MH i2c: E2 [08:31:54]MH_I2C_Read... [08:31:54]Read from MH i2c: E2 62 00 [08:31:54]MH_I2C_Read... [08:31:54]Read from MH i2c: E2 62 00 CA 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E9 83 02 00 0E 04 04 00 BF 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 1C [08:31:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E9 83 02 00 0E 04 04 00 BF 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 [08:31:54]wFMCommunicate OK [08:31:54]SAM_PROTO_GetFieldsCounters done [08:31:54]requested_item shift.num is exist - process it [08:31:54]requested_item shift.opened is exist - process it [08:31:54]req_shift_opened [08:31:54]FM_GetShiftState [08:31:54]SAM_PROTO_GetShiftState [08:31:54]wFMCommunicate request_size=4 [08:31:54]MH_SAM_APDU [08:31:54]CAPDU: 80 13 01 00 [08:31:54]Write to MH i2c: E2 08 00 CB 0C 80 13 01 00 00 00 00 00 54 [08:31:54]Write i2c OK [08:31:54]MH_I2C_Read... [08:31:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:54]Read from MH i2c: E2 [08:31:54]MH_I2C_Read... [08:31:54]Read from MH i2c: E2 0E 00 [08:31:54]MH_I2C_Read... [08:31:54]Read from MH i2c: E2 0E 00 CB 0C 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 D4 [08:31:54]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [08:31:54]wFMCommunicate OK [08:31:54]SAM_PROTO_GetShiftState done [08:31:54]FM_GetShiftState done [08:31:54]req_shift_opened done [08:31:54]requested_item shift.open_date is exist - process it [08:31:54]req_shift_open_date [08:31:54]req_shift_open_date done [08:31:54]produce_requested_data done [08:31:54]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164841,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [08:31:54]process_action_free close_receipt [08:31:54]json_value_free [08:31:54]json_value_free done [08:31:54]process_json_proto returns [08:31:54]Send response to host [08:31:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164841,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [08:31:54]free response buf [08:31:54]execute_script done [08:31:54]execute_script returns [08:31:54]free content buf [08:31:54]Sock 8.Close socket [08:31:54]Sock 8.Thread stoped [08:31:58]OFD Sender: No OFD packet to send [08:32:03]OFD Sender: No OFD packet to send [08:32:08]OFD Sender: No OFD packet to send [08:32:13]OFD Sender: No OFD packet to send [08:32:18]OFD Sender: No OFD packet to send [08:32:23]OFD Sender: No OFD packet to send [08:32:28]OFD Sender: No OFD packet to send [08:32:33]OFD Sender: No OFD packet to send [08:32:38]OFD Sender: No OFD packet to send [08:32:43]OFD Sender: No OFD packet to send [08:32:48]OFD Sender: No OFD packet to send [08:32:53]OFD Sender: No OFD packet to send [08:32:58]OFD Sender: No OFD packet to send [08:33:03]OFD Sender: No OFD packet to send [08:33:08]OFD Sender: No OFD packet to send [08:33:13]OFD Sender: No OFD packet to send [08:33:18]OFD Sender: No OFD packet to send [08:33:23]OFD Sender: No OFD packet to send [08:33:28]OFD Sender: No OFD packet to send [08:33:33]OFD Sender: No OFD packet to send [08:33:38]OFD Sender: No OFD packet to send [08:33:43]OFD Sender: No OFD packet to send [08:33:48]OFD Sender: No OFD packet to send [08:33:53]OFD Sender: No OFD packet to send [08:33:58]OFD Sender: No OFD packet to send [08:34:03]OFD Sender: No OFD packet to send [08:34:08]OFD Sender: No OFD packet to send [08:34:13]OFD Sender: No OFD packet to send [08:34:19]OFD Sender: No OFD packet to send [08:34:24]OFD Sender: No OFD packet to send [08:34:29]OFD Sender: No OFD packet to send [08:34:34]OFD Sender: No OFD packet to send [08:34:39]OFD Sender: No OFD packet to send [08:34:44]OFD Sender: No OFD packet to send [08:34:49]OFD Sender: No OFD packet to send [08:34:54]OFD Sender: No OFD packet to send [08:34:59]OFD Sender: No OFD packet to send [08:35:04]OFD Sender: No OFD packet to send [08:35:09]OFD Sender: No OFD packet to send [08:35:14]OFD Sender: No OFD packet to send [08:35:19]OFD Sender: No OFD packet to send [08:35:24]OFD Sender: No OFD packet to send [08:35:27]accept exits with 9 [08:35:27]New connection [08:35:27]New thread 3067571556 created [08:35:27]Thread 3067428196 joined [08:35:27]Waiting for new connection... [08:35:27] Sock 9.Parse request [08:35:27]Sock 9.Check first char [08:35:27]Sock 9.First char is OK [08:35:27]request: POST /json_proto HTTP/1.0 [08:35:27]Method: POST [08:35:27]URL: /json_proto [08:35:27]Method is POST - this is cgi request [08:35:27]url: /json_proto [08:35:27]query_string will be loaded in cgi processing [08:35:27]execute_cgi json_proto POST (null) [08:35:27]execute_cgi path=json_proto method=POST [08:35:27]POST find Content-Length [08:35:27]Host: 172.17.56.4:8080 [08:35:27]Content-Length: 677 [08:35:27]Content-Type: application/json [08:35:27] [08:35:27]POST finish read [08:35:27]Found Content-Length = 677 [08:35:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458938", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:35:27]execute_script... [08:35:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458938", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:35:27]POST & json_proto [08:35:27]process_json_proto [08:35:27]json parsed OK: [08:35:27]protocol is kg_v1.0 [08:35:27]action value=close_receipt [08:35:27]process_action close_receipt [08:35:27]cmd_close_receipt [08:35:27]MH_GetDate [08:35:27]Write to MH i2c: F0 00 00 CC 0C C7 [08:35:27]Write i2c OK [08:35:27]MH_I2C_Read... [08:35:27]Read from MH i2c: F0 [08:35:27]MH_I2C_Read... [08:35:27]Read from MH i2c: F0 09 00 [08:35:27]MH_I2C_Read... [08:35:27]Read from MH i2c: F0 09 00 CC 0C 00 D2 8D 93 66 C9 DC B2 64 E3 [08:35:27]GetLastDocTimeStamp 1720945913 [08:35:27]current date 1720946130 [08:35:27]FM_GetShiftState [08:35:27]SAM_PROTO_GetShiftState [08:35:27]wFMCommunicate request_size=4 [08:35:27]MH_SAM_APDU [08:35:27]CAPDU: 80 13 01 00 [08:35:27]Write to MH i2c: E2 08 00 CD 0C 80 13 01 00 00 00 00 00 56 [08:35:27]Write i2c OK [08:35:27]MH_I2C_Read... [08:35:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:35:27]Read from MH i2c: E2 [08:35:27]MH_I2C_Read... [08:35:27]Read from MH i2c: E2 0E 00 [08:35:27]MH_I2C_Read... [08:35:27]Read from MH i2c: E2 0E 00 CD 0C 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 D6 [08:35:27]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [08:35:27]wFMCommunicate OK [08:35:27]SAM_PROTO_GetShiftState done [08:35:27]FM_GetShiftState done [08:35:27]opened in 1720917342 [08:35:27]opened+sec_in_day 1721003742 [08:35:27]quantity*price = 30004 [08:35:27]sum+1 = 30006 [08:35:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 40 14.07.2024 08:35 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164842 ФПД: 68244734375470 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T083530&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164842&fm=68244734375470&tin=02508201610067®Number=0000000000090829&sum=30000 [08:35:29]StoreToDocumentArchive [08:35:29]shift 447 fd 164842 [08:35:29]save to /storage/0447/doc_00164842 [08:35:29]save last doc name /storage/0447/doc_00164842 to /storage/kkm_last_doc_name [08:35:29]save OK [08:35:29]Clear old archive folders... [08:35:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:35:29]tlvbuf is 01657560 [08:35:29]SAM_PROTO_ClearQueue [08:35:29]wFMCommunicate request_size=4 [08:35:29]MH_SAM_APDU [08:35:29]CAPDU: 80 09 00 00 [08:35:29]Write to MH i2c: E2 08 00 DA 0C 80 09 00 00 00 00 00 00 58 [08:35:29]Write i2c OK [08:35:29]MH_I2C_Read... [08:35:29]OFD Sender: No OFD packet to send [08:35:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:35:29]Read from MH i2c: E2 [08:35:29]MH_I2C_Read... [08:35:29]Read from MH i2c: E2 03 00 [08:35:29]MH_I2C_Read... [08:35:29]Read from MH i2c: E2 03 00 DA 0C 00 90 00 5A [08:35:29]RAPDU: 90 00 [08:35:29]wFMCommunicate OK [08:35:29]SAM_PROTO_ClearQueue done [08:35:29]KKMCreateOFDPacket [08:35:29]OFDProtocolAddRootSTLVToBuf [08:35:29]FM_MakeSignedData [08:35:29]FM_MakeSignedData [08:35:29]SAM_PROTO_SignData [08:35:29]wFMCommunicate request_size=4 [08:35:29]MH_SAM_APDU [08:35:29]CAPDU: 80 0D 01 02 [08:35:29]Write to MH i2c: E2 08 00 DB 0C 80 0D 01 02 00 00 00 00 60 [08:35:29]Write i2c OK [08:35:29]MH_I2C_Read... [08:35:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:35:29]Read from MH i2c: E2 [08:35:29]MH_I2C_Read... [08:35:29]Read from MH i2c: E2 03 00 [08:35:29]MH_I2C_Read... [08:35:29]Read from MH i2c: E2 03 00 DB 0C 00 90 00 5B [08:35:29]RAPDU: 90 00 [08:35:29]wFMCommunicate OK [08:35:29]wFMCommunicate request_size=255 [08:35:29]MH_SAM_APDU [08:35:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 D2 8D 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EA 83 02 00 35 04 06 00 3E [08:35:29]Write to MH i2c: E2 02 01 DC 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 D2 8D 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EA 83 02 00 35 04 06 00 3E 00 00 87 [08:35:29]Write i2c OK [08:35:29]MH_I2C_Read... [08:35:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:35:29]Read from MH i2c: E2 [08:35:29]MH_I2C_Read... [08:35:29]Read from MH i2c: E2 03 00 [08:35:29]MH_I2C_Read... [08:35:29]Read from MH i2c: E2 03 00 DC 0C 00 90 00 5C [08:35:29]RAPDU: 90 00 [08:35:29]wFMCommunicate OK [08:35:29]wFMCommunicate request_size=10 [08:35:29]MH_SAM_APDU [08:35:29]CAPDU: 80 0D 02 02 05 11 77 26 76 2E [08:35:29]Write to MH i2c: E2 0D 00 DD 0C 80 0D 02 02 05 00 11 77 26 76 2E 00 00 BF [08:35:29]Write i2c OK [08:35:29]MH_I2C_Read... [08:35:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:35:29]Read from MH i2c: E2 [08:35:29]MH_I2C_Read... [08:35:29]Read from MH i2c: E2 03 00 [08:35:29]MH_I2C_Read... [08:35:29]Read from MH i2c: E2 03 00 DD 0C 00 90 00 5D [08:35:29]RAPDU: 90 00 [08:35:29]wFMCommunicate OK [08:35:29]wFMCommunicate request_size=4 [08:35:29]MH_SAM_APDU [08:35:29]CAPDU: 80 0D 03 02 [08:35:29]Write to MH i2c: E2 08 00 DE 0C 80 0D 03 02 00 00 00 00 65 [08:35:29]Write i2c OK [08:35:29]MH_I2C_Read... [08:35:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:35:29]Read from MH i2c: E2 [08:35:29]MH_I2C_Read... [08:35:29]Read from MH i2c: E2 0B 00 [08:35:29]MH_I2C_Read... [08:35:29]Read from MH i2c: E2 0B 00 DE 0C 00 36 8D 0E 7F 11 68 1D E3 90 00 2F [08:35:29]RAPDU: 36 8D 0E 7F 11 68 1D E3 90 00 [08:35:29]wFMCommunicate OK [08:35:29]SAM_PROTO_SignData done [08:35:29]FM_MakeSignedData done [08:35:29]CreateOFDProtocolMessage [08:35:29]wFMCommunicate request_size=4 [08:35:29]MH_SAM_APDU [08:35:29]CAPDU: 80 11 00 00 [08:35:29]Write to MH i2c: E2 08 00 DF 0C 80 11 00 00 00 00 00 00 65 [08:35:29]Write i2c OK [08:35:29]MH_I2C_Read... [08:35:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:35:29]Read from MH i2c: E2 [08:35:29]MH_I2C_Read... [08:35:29]Read from MH i2c: E2 17 00 [08:35:29]MH_I2C_Read... [08:35:29]Read from MH i2c: E2 17 00 DF 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 BB [08:35:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:35:29]wFMCommunicate OK [08:35:29]CreateOFDProtocolMessage done [08:35:29]OFDSenderStorePacket 164842 [08:35:29]StoreOFDPacket docnum=164842 [08:35:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 06 65 07 01 25 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 D2 8D 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EA 83 02 00 35 04 06 00 3E 11 77 26 76 2E 36 8D 0E 7F 11 68 1D E3 [08:35:29]CheckFolder [08:35:29]dirname=/storage/ofd_packets [08:35:29]CheckFolder done [08:35:29]ProducePacketName [08:35:29]name=ofd_packets/00164842 [08:35:29]NVStorageSaveData ofd_packets/00164842 [08:35:29]File name is /storage/ofd_packets/00164842 [08:35:29]Write 301 bytes [08:35:29]NVStorageSaveData done [08:35:29]OFDSenderStorePacket done [08:35:29]KKMCreateOFDPacket done [08:35:29]NVStorageSaveData kkm_last_timestamp [08:35:29]File name is /storage/kkm_last_timestamp [08:35:29]Write 4 bytes [08:35:29]NVStorageSaveData done [08:35:29]ExternCall_PrintAddStr [08:35:29]wPrintStart [08:35:29]Write to MH i2c: 01 00 00 E0 0C EC [08:35:29]Write i2c OK [08:35:29]MH_I2C_Read... [08:35:29]Read from MH i2c: 01 [08:35:29]MH_I2C_Read... [08:35:29]Read from MH i2c: 01 07 00 [08:35:29]MH_I2C_Read... [08:35:29]Read from MH i2c: 01 07 00 E0 0C 00 00 00 00 00 FF 0F 01 [08:35:29]RasterBufferAndPrint [08:35:29]line Счет N : (1)458938 [08:35:29]line ИНН: 02508201610067 [08:35:29]line Контрольно-Кассовый Чек [08:35:29]line ПРОДАЖА [08:35:29]line ТРК (МРК, ГНК) : 12 [08:35:29]line Товар: 2710124130 [08:35:29]line Аи-92-К-5 [08:35:29]line 4.560 * 65.80 [08:35:29]line = 300.05 [08:35:29]line НДС 12% НСП 1% [08:35:29]line > о реализуемом товаре [08:35:29]line ОКРУГЛЕНИЕ: -0.05 [08:35:29]line ИТОГО: 300.00 [08:35:29]line Внесено: 300.00 [08:35:29]line СДАЧА: 0.00 [08:35:29]line НСП 1% : 2.65 [08:35:29]line НДС 12% : 31.86 [08:35:29]line Наличными: 300.00 [08:35:29]line Безнал.: 0.00 [08:35:29]line Место: АЗС № 72 "Партнер Нефть" [08:35:29]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [08:35:29]line СНО: Общий режим [08:35:29]line Чек 40 14.07.2024 08:35 [08:35:29]line Смена: 447 ФФД: 1.0 [08:35:29]line ЗНМ: 0300000160 [08:35:29]line РНМ: 0000000000090829 [08:35:29]line Версия ККМ: 001 [08:35:29]line ФМ: 0000000000874718 [08:35:29]line ФД: 164842 [08:35:29]line ФПД: 68244734375470 [08:35:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T083530&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164842&fm=68244734375470&tin=02508201610067®Number=0000000000090829&sum=30000 [08:35:29]written 0, free lines is 4095 [08:35:29]OFD Sender: Processing packet 164842 [packets to send 104, broken 103] [08:35:29]ProducePacketName [08:35:29]name=ofd_packets/00164842 [08:35:29]OFD Sender: To server: pG, [08:35:29]CommunicateWithHost lk.salyk.kg:30040 [08:35:29]ConnectInit lk.salyk.kg [08:35:29]Connected sock=11 [08:35:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 06 65 07 01 25 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 D2 8D 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EA 83 02 00 35 04 06 00 3E 11 77 26 76 2E 36 8D 0E 7F 11 68 1D E3 [08:35:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 FB 9D 47 00 D5 EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EA 83 02 00 F4 03 04 00 60 34 93 66 B6 04 01 00 00 E9 30 46 BE 67 90 A5 80 [08:35:30]CommunicateWithHost err = 0 [08:35:30]CheckOFDResponse [08:35:30]1017 (14) - 77093643461234 [08:35:30]1041 (16) - 0000000000874718 [08:35:30]1040 (4) - 164842 [08:35:30]1012 (4) - 14.07.2024 02:13 [08:35:30]1206 (1) - 0 [08:35:30]OFD Sender: Remove packet 164842 [08:35:30]ProducePacketName [08:35:30]name=ofd_packets/00164842 [08:35:30]NVStorageDeleteData [08:35:30]Write to MH i2c: 01 00 00 0A 0D 17 [08:35:30]Write i2c OK [08:35:30]MH_I2C_Read... [08:35:30]Read from MH i2c: 01 [08:35:30]MH_I2C_Read... [08:35:30]Read from MH i2c: 01 07 00 [08:35:30]MH_I2C_Read... [08:35:30]Read from MH i2c: 01 07 00 0A 0D 00 00 00 00 00 0A 0D 35 [08:35:30]RasterBufferAndPrint [08:35:30]line [08:35:30]line [08:35:30]line [08:35:30]line [08:35:30]line [08:35:30]written 0, free lines is 3344 [08:35:30]MH_Cut [08:35:30]Write to MH i2c: D1 01 00 11 0D 01 F0 [08:35:30]Write i2c OK [08:35:30]MH_I2C_Read... [08:35:30]Read from MH i2c: D1 [08:35:30]MH_I2C_Read... [08:35:30]Read from MH i2c: D1 01 00 [08:35:30]MH_I2C_Read... [08:35:30]Read from MH i2c: D1 01 00 11 0D 00 EF [08:35:30]Write to MH i2c: 01 00 00 12 0D 1F [08:35:30]Write i2c OK [08:35:30]MH_I2C_Read... [08:35:30]OFD Sender: No OFD packet to send [08:35:30]*** Cut start [08:35:30]*** Partial cut [08:35:30]*** CUTSNS_PIN = 1 [08:35:30]*** CUTSNS_PIN = 0 [08:35:31]*** Brake cut motor [08:35:31]Read from MH i2c: 01 [08:35:31]MH_I2C_Read... [08:35:31]*** Stop cut motor [08:35:31]*** Cut end [08:35:31]Read from MH i2c: 01 07 00 [08:35:31]MH_I2C_Read... [08:35:31]Read from MH i2c: 01 07 00 12 0D 00 00 00 00 00 FF 0F 34 [08:35:31]process_action close_receipt done [08:35:31]requested_data is exist [08:35:31]produce_requested_data [08:35:31]requested_item fm.sn is exist - process it [08:35:31]wFMCommunicate request_size=4 [08:35:31]MH_SAM_APDU [08:35:31]CAPDU: 80 11 00 00 [08:35:31]Write to MH i2c: E2 08 00 13 0D 80 11 00 00 00 00 00 00 9A [08:35:31]Write i2c OK [08:35:31]MH_I2C_Read... [08:35:31]Read from MH i2c: E2 [08:35:31]MH_I2C_Read... [08:35:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:35:31]Read from MH i2c: E2 17 00 [08:35:31]MH_I2C_Read... [08:35:31]Read from MH i2c: E2 17 00 13 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F0 [08:35:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:35:31]wFMCommunicate OK [08:35:31]requested_item fd.num is exist - process it [08:35:31]SAM_PROTO_GetFieldsCounters [08:35:31]wFMCommunicate request_size=4 [08:35:31]MH_SAM_APDU [08:35:31]CAPDU: 80 13 00 00 [08:35:31]Write to MH i2c: E2 08 00 14 0D 80 13 00 00 00 00 00 00 9D [08:35:31]Write i2c OK [08:35:31]MH_I2C_Read... [08:35:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:35:31]Read from MH i2c: E2 [08:35:31]MH_I2C_Read... [08:35:31]Read from MH i2c: E2 62 00 [08:35:31]MH_I2C_Read... [08:35:31]Read from MH i2c: E2 62 00 14 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 EA 83 02 00 0E 04 04 00 BF 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 6B [08:35:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 EA 83 02 00 0E 04 04 00 BF 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 [08:35:31]wFMCommunicate OK [08:35:31]SAM_PROTO_GetFieldsCounters done [08:35:31]requested_item shift.num is exist - process it [08:35:31]requested_item shift.opened is exist - process it [08:35:31]req_shift_opened [08:35:31]FM_GetShiftState [08:35:31]SAM_PROTO_GetShiftState [08:35:31]wFMCommunicate request_size=4 [08:35:31]MH_SAM_APDU [08:35:31]CAPDU: 80 13 01 00 [08:35:31]Write to MH i2c: E2 08 00 15 0D 80 13 01 00 00 00 00 00 9F [08:35:31]Write i2c OK [08:35:31]MH_I2C_Read... [08:35:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:35:31]Read from MH i2c: E2 [08:35:31]MH_I2C_Read... [08:35:31]Read from MH i2c: E2 0E 00 [08:35:31]MH_I2C_Read... [08:35:31]Read from MH i2c: E2 0E 00 15 0D 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 1F [08:35:31]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [08:35:31]wFMCommunicate OK [08:35:31]SAM_PROTO_GetShiftState done [08:35:31]FM_GetShiftState done [08:35:31]req_shift_opened done [08:35:31]requested_item shift.open_date is exist - process it [08:35:31]req_shift_open_date [08:35:31]req_shift_open_date done [08:35:31]produce_requested_data done [08:35:31]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164842,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [08:35:31]process_action_free close_receipt [08:35:31]json_value_free [08:35:31]json_value_free done [08:35:31]process_json_proto returns [08:35:31]Send response to host [08:35:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164842,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [08:35:31]free response buf [08:35:31]execute_script done [08:35:31]execute_script returns [08:35:31]free content buf [08:35:31]Sock 9.Close socket [08:35:31]Sock 9.Thread stoped [08:35:35]OFD Sender: No OFD packet to send [08:35:40]OFD Sender: No OFD packet to send [08:35:45]OFD Sender: No OFD packet to send [08:35:50]OFD Sender: No OFD packet to send [08:35:55]OFD Sender: No OFD packet to send [08:36:00]OFD Sender: No OFD packet to send [08:36:05]OFD Sender: No OFD packet to send [08:36:10]OFD Sender: No OFD packet to send [08:36:15]OFD Sender: No OFD packet to send [08:36:20]OFD Sender: No OFD packet to send [08:36:25]OFD Sender: No OFD packet to send [08:36:30]OFD Sender: No OFD packet to send [08:36:35]OFD Sender: No OFD packet to send [08:36:40]OFD Sender: No OFD packet to send [08:36:45]OFD Sender: No OFD packet to send [08:36:50]OFD Sender: No OFD packet to send [08:36:55]OFD Sender: No OFD packet to send [08:37:00]OFD Sender: No OFD packet to send [08:37:05]OFD Sender: No OFD packet to send [08:37:10]OFD Sender: No OFD packet to send [08:37:15]OFD Sender: No OFD packet to send [08:37:20]OFD Sender: No OFD packet to send [08:37:25]OFD Sender: No OFD packet to send [08:37:30]OFD Sender: No OFD packet to send [08:37:35]OFD Sender: No OFD packet to send [08:37:40]OFD Sender: No OFD packet to send [08:37:45]OFD Sender: No OFD packet to send [08:37:50]OFD Sender: No OFD packet to send [08:37:55]OFD Sender: No OFD packet to send [08:38:00]OFD Sender: No OFD packet to send [08:38:05]OFD Sender: No OFD packet to send [08:38:10]OFD Sender: No OFD packet to send [08:38:15]OFD Sender: No OFD packet to send [08:38:20]OFD Sender: No OFD packet to send [08:38:25]OFD Sender: No OFD packet to send [08:38:30]OFD Sender: No OFD packet to send [08:38:35]OFD Sender: No OFD packet to send [08:38:40]OFD Sender: No OFD packet to send [08:38:45]OFD Sender: No OFD packet to send [08:38:50]OFD Sender: No OFD packet to send [08:38:55]OFD Sender: No OFD packet to send [08:39:00]OFD Sender: No OFD packet to send [08:39:05]OFD Sender: No OFD packet to send [08:39:10]OFD Sender: No OFD packet to send [08:39:15]OFD Sender: No OFD packet to send [08:39:20]OFD Sender: No OFD packet to send [08:39:25]OFD Sender: No OFD packet to send [08:39:30]OFD Sender: No OFD packet to send [08:39:35]OFD Sender: No OFD packet to send [08:39:40]OFD Sender: No OFD packet to send [08:39:45]OFD Sender: No OFD packet to send [08:39:47]accept exits with 8 [08:39:47]New connection [08:39:47]New thread 3067428196 created [08:39:47]Thread 3067571556 joined [08:39:47]Waiting for new connection... [08:39:47] Sock 8.Parse request [08:39:47]Sock 8.Check first char [08:39:47]Sock 8.First char is OK [08:39:47]request: POST /json_proto HTTP/1.0 [08:39:47]Method: POST [08:39:47]URL: /json_proto [08:39:47]Method is POST - this is cgi request [08:39:47]url: /json_proto [08:39:47]query_string will be loaded in cgi processing [08:39:47]execute_cgi json_proto POST (null) [08:39:47]execute_cgi path=json_proto method=POST [08:39:47]POST find Content-Length [08:39:47]Host: 172.17.56.4:8080 [08:39:47]Content-Length: 678 [08:39:47]Content-Type: application/json [08:39:47] [08:39:47]POST finish read [08:39:47]Found Content-Length = 678 [08:39:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458939", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "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" ] } } [08:39:47]execute_script... [08:39: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)458939", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "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" ] } } [08:39:47]POST & json_proto [08:39:47]process_json_proto [08:39:47]json parsed OK: [08:39:47]protocol is kg_v1.0 [08:39:47]action value=close_receipt [08:39:47]process_action close_receipt [08:39:47]cmd_close_receipt [08:39:47]MH_GetDate [08:39:47]Write to MH i2c: F0 00 00 16 0D 12 [08:39:47]Write i2c OK [08:39:47]MH_I2C_Read... [08:39:47]Read from MH i2c: F0 [08:39:47]MH_I2C_Read... [08:39:47]Read from MH i2c: F0 09 00 [08:39:47]MH_I2C_Read... [08:39:47]Read from MH i2c: F0 09 00 16 0D 00 D5 8E 93 66 C9 DC B2 64 32 [08:39:47]GetLastDocTimeStamp 1720946130 [08:39:47]current date 1720946389 [08:39:47]FM_GetShiftState [08:39:47]SAM_PROTO_GetShiftState [08:39:47]wFMCommunicate request_size=4 [08:39:47]MH_SAM_APDU [08:39:47]CAPDU: 80 13 01 00 [08:39:47]Write to MH i2c: E2 08 00 17 0D 80 13 01 00 00 00 00 00 A1 [08:39:47]Write i2c OK [08:39:47]MH_I2C_Read... [08:39:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:39:47]Read from MH i2c: E2 [08:39:47]MH_I2C_Read... [08:39:47]Read from MH i2c: E2 0E 00 [08:39:47]MH_I2C_Read... [08:39:47]Read from MH i2c: E2 0E 00 17 0D 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 21 [08:39:47]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [08:39:47]wFMCommunicate OK [08:39:47]SAM_PROTO_GetShiftState done [08:39:47]FM_GetShiftState done [08:39:47]opened in 1720917342 [08:39:47]opened+sec_in_day 1721003742 [08:39:47]quantity*price = 70011 [08:39:47]sum+1 = 70012 [08:39:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 41 14.07.2024 08:39 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164843 ФПД: 169812034667362 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T083949&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164843&fm=169812034667362&tin=02508201610067®Number=0000000000090829&sum=70000 [08:39:48]StoreToDocumentArchive [08:39:48]shift 447 fd 164843 [08:39:48]save to /storage/0447/doc_00164843 [08:39:48]save last doc name /storage/0447/doc_00164843 to /storage/kkm_last_doc_name [08:39:48]save OK [08:39:48]Clear old archive folders... [08:39:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:39:48]tlvbuf is 016635A0 [08:39:48]SAM_PROTO_ClearQueue [08:39:48]wFMCommunicate request_size=4 [08:39:48]MH_SAM_APDU [08:39:48]CAPDU: 80 09 00 00 [08:39:48]Write to MH i2c: E2 08 00 24 0D 80 09 00 00 00 00 00 00 A3 [08:39:48]Write i2c OK [08:39:48]MH_I2C_Read... [08:39:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:39:48]Read from MH i2c: E2 [08:39:48]MH_I2C_Read... [08:39:48]Read from MH i2c: E2 03 00 [08:39:48]MH_I2C_Read... [08:39:48]Read from MH i2c: E2 03 00 24 0D 00 90 00 A5 [08:39:48]RAPDU: 90 00 [08:39:48]wFMCommunicate OK [08:39:48]SAM_PROTO_ClearQueue done [08:39:48]KKMCreateOFDPacket [08:39:48]OFDProtocolAddRootSTLVToBuf [08:39:48]FM_MakeSignedData [08:39:48]FM_MakeSignedData [08:39:48]SAM_PROTO_SignData [08:39:48]wFMCommunicate request_size=4 [08:39:48]MH_SAM_APDU [08:39:48]CAPDU: 80 0D 01 02 [08:39:48]Write to MH i2c: E2 08 00 25 0D 80 0D 01 02 00 00 00 00 AB [08:39:48]Write i2c OK [08:39:48]MH_I2C_Read... [08:39:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:39:48]Read from MH i2c: E2 [08:39:48]MH_I2C_Read... [08:39:48]Read from MH i2c: E2 03 00 [08:39:48]MH_I2C_Read... [08:39:48]Read from MH i2c: E2 03 00 25 0D 00 90 00 A6 [08:39:48]RAPDU: 90 00 [08:39:48]wFMCommunicate OK [08:39:48]wFMCommunicate request_size=255 [08:39:48]MH_SAM_APDU [08:39:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 29 00 00 00 F4 03 04 00 D5 8E 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EB 83 02 00 35 04 06 00 9A [08:39:48]Write to MH i2c: E2 02 01 26 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 29 00 00 00 F4 03 04 00 D5 8E 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EB 83 02 00 35 04 06 00 9A 00 00 B7 [08:39:48]Write i2c OK [08:39:48]MH_I2C_Read... [08:39:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:39:48]Read from MH i2c: E2 [08:39:48]MH_I2C_Read... [08:39:48]Read from MH i2c: E2 03 00 [08:39:48]MH_I2C_Read... [08:39:48]Read from MH i2c: E2 03 00 26 0D 00 90 00 A7 [08:39:48]RAPDU: 90 00 [08:39:48]wFMCommunicate OK [08:39:48]wFMCommunicate request_size=10 [08:39:48]MH_SAM_APDU [08:39:48]CAPDU: 80 0D 02 02 05 71 72 01 43 62 [08:39:48]Write to MH i2c: E2 0D 00 27 0D 80 0D 02 02 05 00 71 72 01 43 62 00 00 41 [08:39:48]Write i2c OK [08:39:48]MH_I2C_Read... [08:39:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:39:48]Read from MH i2c: E2 [08:39:48]MH_I2C_Read... [08:39:48]Read from MH i2c: E2 03 00 [08:39:48]MH_I2C_Read... [08:39:48]Read from MH i2c: E2 03 00 27 0D 00 90 00 A8 [08:39:48]RAPDU: 90 00 [08:39:48]wFMCommunicate OK [08:39:48]wFMCommunicate request_size=4 [08:39:48]MH_SAM_APDU [08:39:48]CAPDU: 80 0D 03 02 [08:39:48]Write to MH i2c: E2 08 00 28 0D 80 0D 03 02 00 00 00 00 B0 [08:39:48]Write i2c OK [08:39:48]MH_I2C_Read... [08:39:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:39:48]Read from MH i2c: E2 [08:39:48]MH_I2C_Read... [08:39:48]Read from MH i2c: E2 0B 00 [08:39:48]MH_I2C_Read... [08:39:48]Read from MH i2c: E2 0B 00 28 0D 00 3B BF F4 CD 0B CD D8 A1 90 00 BD [08:39:48]RAPDU: 3B BF F4 CD 0B CD D8 A1 90 00 [08:39:48]wFMCommunicate OK [08:39:48]SAM_PROTO_SignData done [08:39:48]FM_MakeSignedData done [08:39:48]CreateOFDProtocolMessage [08:39:48]wFMCommunicate request_size=4 [08:39:48]MH_SAM_APDU [08:39:48]CAPDU: 80 11 00 00 [08:39:48]Write to MH i2c: E2 08 00 29 0D 80 11 00 00 00 00 00 00 B0 [08:39:48]Write i2c OK [08:39:48]MH_I2C_Read... [08:39:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:39:48]Read from MH i2c: E2 [08:39:48]MH_I2C_Read... [08:39:48]Read from MH i2c: E2 17 00 [08:39:48]MH_I2C_Read... [08:39:48]Read from MH i2c: E2 17 00 29 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 06 [08:39:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:39:48]wFMCommunicate OK [08:39:48]CreateOFDProtocolMessage done [08:39:48]OFDSenderStorePacket 164843 [08:39:48]StoreOFDPacket docnum=164843 [08:39:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 83 68 07 01 7D EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 29 00 00 00 F4 03 04 00 D5 8E 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EB 83 02 00 35 04 06 00 9A 71 72 01 43 62 3B BF F4 CD 0B CD D8 A1 [08:39:48]CheckFolder [08:39:48]dirname=/storage/ofd_packets [08:39:48]CheckFolder done [08:39:48]ProducePacketName [08:39:48]name=ofd_packets/00164843 [08:39:48]NVStorageSaveData ofd_packets/00164843 [08:39:48]File name is /storage/ofd_packets/00164843 [08:39:48]Write 301 bytes [08:39:48]NVStorageSaveData done [08:39:48]OFDSenderStorePacket done [08:39:48]KKMCreateOFDPacket done [08:39:48]NVStorageSaveData kkm_last_timestamp [08:39:48]File name is /storage/kkm_last_timestamp [08:39:48]Write 4 bytes [08:39:48]NVStorageSaveData done [08:39:48]ExternCall_PrintAddStr [08:39:48]wPrintStart [08:39:48]Write to MH i2c: 01 00 00 2A 0D 37 [08:39:48]Write i2c OK [08:39:48]MH_I2C_Read... [08:39:48]Read from MH i2c: 01 [08:39:48]MH_I2C_Read... [08:39:48]Read from MH i2c: 01 07 00 [08:39:48]MH_I2C_Read... [08:39:48]Read from MH i2c: 01 07 00 2A 0D 00 00 00 00 00 FF 0F 4C [08:39:48]RasterBufferAndPrint [08:39:48]line Счет N : (1)458939 [08:39:48]line ИНН: 02508201610067 [08:39:48]line Контрольно-Кассовый Чек [08:39:48]line ПРОДАЖА [08:39:48]line ТРК (МРК, ГНК) : 12 [08:39:48]line Товар: 2710124130 [08:39:48]line Аи-92-К-5 [08:39:48]line 10.640 * 65.80 [08:39:48]line = 700.11 [08:39:48]line НДС 12% НСП 1% [08:39:48]line > о реализуемом товаре [08:39:48]line ОКРУГЛЕНИЕ: -0.11 [08:39:48]line ИТОГО: 700.00 [08:39:48]line Внесено: 700.00 [08:39:48]line СДАЧА: 0.00 [08:39:48]line НСП 1% : 6.20 [08:39:48]line НДС 12% : 74.35 [08:39:48]line Наличными: 700.00 [08:39:48]line Безнал.: 0.00 [08:39:48]line Место: АЗС № 72 "Партнер Нефть" [08:39:48]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [08:39:48]line СНО: Общий режим [08:39:48]line Чек 41 14.07.2024 08:39 [08:39:48]line Смена: 447 ФФД: 1.0 [08:39:48]line ЗНМ: 0300000160 [08:39:48]line РНМ: 0000000000090829 [08:39:48]line Версия ККМ: 001 [08:39:48]line ФМ: 0000000000874718 [08:39:48]line ФД: 164843 [08:39:48]line ФПД: 169812034667362 [08:39:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T083949&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164843&fm=169812034667362&tin=02508201610067®Number=0000000000090829&sum=70000 [08:39:49]OFD Sender: Processing packet 164843 [packets to send 104, broken 103] [08:39:49]ProducePacketName [08:39:49]name=ofd_packets/00164843 [08:39:49]OFD Sender: To server: pG, [08:39:49]CommunicateWithHost lk.salyk.kg:30040 [08:39:49]ConnectInit lk.salyk.kg [08:39:49]written 0, free lines is 4095 [08:39:49]Connected sock=10 [08:39:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 83 68 07 01 7D EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 29 00 00 00 F4 03 04 00 D5 8E 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EB 83 02 00 35 04 06 00 9A 71 72 01 43 62 3B BF F4 CD 0B CD D8 A1 [08:39:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 37 80 47 00 53 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EB 83 02 00 F4 03 04 00 63 35 93 66 B6 04 01 00 00 38 78 46 7D C0 48 A2 D1 [08:39:49]CommunicateWithHost err = 0 [08:39:49]CheckOFDResponse [08:39:49]1017 (14) - 77093643461234 [08:39:49]1041 (16) - 0000000000874718 [08:39:49]1040 (4) - 164843 [08:39:49]1012 (4) - 14.07.2024 02:18 [08:39:49]1206 (1) - 0 [08:39:49]OFD Sender: Remove packet 164843 [08:39:49]ProducePacketName [08:39:49]name=ofd_packets/00164843 [08:39:49]NVStorageDeleteData [08:39:49]Write to MH i2c: 01 00 00 54 0D 61 [08:39:49]Write i2c OK [08:39:49]MH_I2C_Read... [08:39:49]Read from MH i2c: 01 [08:39:49]MH_I2C_Read... [08:39:49]Read from MH i2c: 01 07 00 [08:39:49]MH_I2C_Read... [08:39:49]Read from MH i2c: 01 07 00 54 0D 00 00 00 00 00 0A 0D 7F [08:39:49]RasterBufferAndPrint [08:39:49]line [08:39:49]line [08:39:49]line [08:39:49]line [08:39:49]line [08:39:49]written 0, free lines is 3344 [08:39:49]MH_Cut [08:39:49]Write to MH i2c: D1 01 00 5B 0D 01 3A [08:39:49]Write i2c OK [08:39:49]MH_I2C_Read... [08:39:49]Read from MH i2c: D1 [08:39:49]MH_I2C_Read... [08:39:49]Read from MH i2c: D1 01 00 [08:39:49]MH_I2C_Read... [08:39:49]Read from MH i2c: D1 01 00 5B 0D 00 39 [08:39:49]Write to MH i2c: 01 00 00 5C 0D 69 [08:39:49]Write i2c OK [08:39:49]MH_I2C_Read... [08:39:49]OFD Sender: No OFD packet to send [08:39:50]*** Cut start [08:39:50]*** Partial cut [08:39:50]*** CUTSNS_PIN = 1 [08:39:50]*** CUTSNS_PIN = 0 [08:39:50]*** Brake cut motor [08:39:50]Read from MH i2c: 01 [08:39:50]MH_I2C_Read... [08:39:50]*** Stop cut motor [08:39:50]*** Cut end [08:39:50]Read from MH i2c: 01 07 00 [08:39:50]MH_I2C_Read... [08:39:50]Read from MH i2c: 01 07 00 5C 0D 00 00 00 00 00 FF 0F 7E [08:39:50]process_action close_receipt done [08:39:50]requested_data is exist [08:39:50]produce_requested_data [08:39:50]requested_item fm.sn is exist - process it [08:39:50]wFMCommunicate request_size=4 [08:39:50]MH_SAM_APDU [08:39:50]CAPDU: 80 11 00 00 [08:39:50]Write to MH i2c: E2 08 00 5D 0D 80 11 00 00 00 00 00 00 E4 [08:39:50]Write i2c OK [08:39:50]MH_I2C_Read... [08:39:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:39:50]Read from MH i2c: E2 [08:39:50]MH_I2C_Read... [08:39:50]Read from MH i2c: E2 17 00 [08:39:50]MH_I2C_Read... [08:39:50]Read from MH i2c: E2 17 00 5D 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 3A [08:39:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:39:50]wFMCommunicate OK [08:39:50]requested_item fd.num is exist - process it [08:39:50]SAM_PROTO_GetFieldsCounters [08:39:50]wFMCommunicate request_size=4 [08:39:50]MH_SAM_APDU [08:39:50]CAPDU: 80 13 00 00 [08:39:50]Write to MH i2c: E2 08 00 5E 0D 80 13 00 00 00 00 00 00 E7 [08:39:50]Write i2c OK [08:39:50]MH_I2C_Read... [08:39:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:39:50]Read from MH i2c: E2 [08:39:50]MH_I2C_Read... [08:39:50]Read from MH i2c: E2 62 00 [08:39:50]MH_I2C_Read... [08:39:50]Read from MH i2c: E2 62 00 5E 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 EB 83 02 00 0E 04 04 00 BF 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 B9 [08:39:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 EB 83 02 00 0E 04 04 00 BF 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 [08:39:50]wFMCommunicate OK [08:39:50]SAM_PROTO_GetFieldsCounters done [08:39:50]requested_item shift.num is exist - process it [08:39:50]requested_item shift.opened is exist - process it [08:39:50]req_shift_opened [08:39:50]FM_GetShiftState [08:39:50]SAM_PROTO_GetShiftState [08:39:50]wFMCommunicate request_size=4 [08:39:50]MH_SAM_APDU [08:39:50]CAPDU: 80 13 01 00 [08:39:50]Write to MH i2c: E2 08 00 5F 0D 80 13 01 00 00 00 00 00 E9 [08:39:50]Write i2c OK [08:39:50]MH_I2C_Read... [08:39:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:39:50]Read from MH i2c: E2 [08:39:50]MH_I2C_Read... [08:39:50]Read from MH i2c: E2 0E 00 [08:39:50]MH_I2C_Read... [08:39:50]Read from MH i2c: E2 0E 00 5F 0D 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 69 [08:39:50]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [08:39:50]wFMCommunicate OK [08:39:50]SAM_PROTO_GetShiftState done [08:39:50]FM_GetShiftState done [08:39:50]req_shift_opened done [08:39:50]requested_item shift.open_date is exist - process it [08:39:50]req_shift_open_date [08:39:50]req_shift_open_date done [08:39:50]produce_requested_data done [08:39:50]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164843,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [08:39:50]process_action_free close_receipt [08:39:50]json_value_free [08:39:50]json_value_free done [08:39:50]process_json_proto returns [08:39:50]Send response to host [08:39:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164843,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [08:39:50]free response buf [08:39:50]execute_script done [08:39:50]execute_script returns [08:39:50]free content buf [08:39:50]Sock 8.Close socket [08:39:51]Sock 8.Thread stoped [08:39:54]OFD Sender: No OFD packet to send [08:39:59]OFD Sender: No OFD packet to send [08:40:04]OFD Sender: No OFD packet to send [08:40:09]OFD Sender: No OFD packet to send [08:40:14]OFD Sender: No OFD packet to send [08:40:19]OFD Sender: No OFD packet to send [08:40:24]OFD Sender: No OFD packet to send [08:40:29]OFD Sender: No OFD packet to send [08:40:34]OFD Sender: No OFD packet to send [08:40:39]OFD Sender: No OFD packet to send [08:40:44]OFD Sender: No OFD packet to send [08:40:49]OFD Sender: No OFD packet to send [08:40:54]OFD Sender: No OFD packet to send [08:40:59]OFD Sender: No OFD packet to send [08:41:04]OFD Sender: No OFD packet to send [08:41:09]OFD Sender: No OFD packet to send [08:41:14]OFD Sender: No OFD packet to send [08:41:19]OFD Sender: No OFD packet to send [08:41:24]OFD Sender: No OFD packet to send [08:41:29]OFD Sender: No OFD packet to send [08:41:34]OFD Sender: No OFD packet to send [08:41:39]OFD Sender: No OFD packet to send [08:41:44]OFD Sender: No OFD packet to send [08:41:49]OFD Sender: No OFD packet to send [08:41:54]OFD Sender: No OFD packet to send [08:41:59]OFD Sender: No OFD packet to send [08:42:04]OFD Sender: No OFD packet to send [08:42:09]OFD Sender: No OFD packet to send [08:42:14]OFD Sender: No OFD packet to send [08:42:20]OFD Sender: No OFD packet to send [08:42:25]OFD Sender: No OFD packet to send [08:42:30]OFD Sender: No OFD packet to send [08:42:35]OFD Sender: No OFD packet to send [08:42:40]OFD Sender: No OFD packet to send [08:42:45]OFD Sender: No OFD packet to send [08:42:50]OFD Sender: No OFD packet to send [08:42:55]OFD Sender: No OFD packet to send [08:43:00]OFD Sender: No OFD packet to send [08:43:05]OFD Sender: No OFD packet to send [08:43:10]OFD Sender: No OFD packet to send [08:43:15]OFD Sender: No OFD packet to send [08:43:20]OFD Sender: No OFD packet to send [08:43:25]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:55]OFD Sender: No OFD packet to send [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:05]OFD Sender: No OFD packet to send [08:46:10]OFD Sender: No OFD packet to send [08:46:15]OFD Sender: No OFD packet to send [08:46:20]OFD Sender: No OFD packet to send [08:46:25]OFD Sender: No OFD packet to send [08:46:30]OFD Sender: No OFD packet to send [08:46:35]OFD Sender: No OFD packet to send [08:46:40]OFD Sender: No OFD packet to send [08:46:45]OFD Sender: No OFD packet to send [08:46:50]OFD Sender: No OFD packet to send [08:46:55]OFD Sender: No OFD packet to send [08:47:00]OFD Sender: No OFD packet to send [08:47:05]OFD Sender: No OFD packet to send [08:47:10]OFD Sender: No OFD packet to send [08:47:15]OFD Sender: No OFD packet to send [08:47:20]OFD Sender: No OFD packet to send [08:47:25]OFD Sender: No OFD packet to send [08:47:30]OFD Sender: No OFD packet to send [08:47:35]OFD Sender: No OFD packet to send [08:47:40]OFD Sender: No OFD packet to send [08:47:45]OFD Sender: No OFD packet to send [08:47:50]OFD Sender: No OFD packet to send [08:47:55]OFD Sender: No OFD packet to send [08:48:00]OFD Sender: No OFD packet to send [08:48:05]OFD Sender: No OFD packet to send [08:48:10]OFD Sender: No OFD packet to send [08:48:15]OFD Sender: No OFD packet to send [08:48:20]OFD Sender: No OFD packet to send [08:48:25]OFD Sender: No OFD packet to send [08:48:30]OFD Sender: No OFD packet to send [08:48:35]OFD Sender: No OFD packet to send [08:48:40]OFD Sender: No OFD packet to send [08:48:45]OFD Sender: No OFD packet to send [08:48:50]OFD Sender: No OFD packet to send [08:48:55]OFD Sender: No OFD packet to send [08:49:00]OFD Sender: No OFD packet to send [08:49:05]OFD Sender: No OFD packet to send [08:49:10]OFD Sender: No OFD packet to send [08:49:15]OFD Sender: No OFD packet to send [08:49:20]OFD Sender: No OFD packet to send [08:49:25]OFD Sender: No OFD packet to send [08:49:30]OFD Sender: No OFD packet to send [08:49:35]OFD Sender: No OFD packet to send [08:49:40]OFD Sender: No OFD packet to send [08:49:45]OFD Sender: No OFD packet to send [08:49:50]OFD Sender: No OFD packet to send [08:49:55]OFD Sender: No OFD packet to send [08:50:00]OFD Sender: No OFD packet to send [08:50:05]OFD Sender: No OFD packet to send [08:50:10]OFD Sender: No OFD packet to send [08:50:15]OFD Sender: No OFD packet to send [08:50:20]OFD Sender: No OFD packet to send [08:50:25]OFD Sender: No OFD packet to send [08:50:30]OFD Sender: No OFD packet to send [08:50:35]OFD Sender: No OFD packet to send [08:50:40]OFD Sender: No OFD packet to send [08:50:45]OFD Sender: No OFD packet to send [08:50:50]OFD Sender: No OFD packet to send [08:50:55]OFD Sender: No OFD packet to send [08:51:00]OFD Sender: No OFD packet to send [08:51:05]OFD Sender: No OFD packet to send [08:51:10]OFD Sender: No OFD packet to send [08:51:15]OFD Sender: No OFD packet to send [08:51:20]OFD Sender: No OFD packet to send [08:51:25]OFD Sender: No OFD packet to send [08:51:30]OFD Sender: No OFD packet to send [08:51:35]OFD Sender: No OFD packet to send [08:51:40]OFD Sender: No OFD packet to send [08:51:45]OFD Sender: No OFD packet to send [08:51:50]OFD Sender: No OFD packet to send [08:51:55]OFD Sender: No OFD packet to send [08:52:00]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]accept exits with 9 [08:55:15]New connection [08:55:15]New thread 3067571556 created [08:55:15]Thread 3067428196 joined [08:55:15]Waiting for new connection... [08:55:15] Sock 9.Parse request [08:55:15]Sock 9.Check first char [08:55:15]Sock 9.First char is OK [08:55:15]request: POST /json_proto HTTP/1.0 [08:55:15]Method: POST [08:55:15]URL: /json_proto [08:55:15]Method is POST - this is cgi request [08:55:15]url: /json_proto [08:55:15]query_string will be loaded in cgi processing [08:55:15]execute_cgi json_proto POST (null) [08:55:15]execute_cgi path=json_proto method=POST [08:55:15]POST find Content-Length [08:55:15]Host: 172.17.56.4:8080 [08:55:15]Content-Length: 677 [08:55:15]Content-Type: application/json [08:55:15] [08:55:15]POST finish read [08:55:15]Found Content-Length = 677 [08:55:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458940", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:55:15]execute_script... [08:55:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458940", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:55:15]POST & json_proto [08:55:15]process_json_proto [08:55:15]json parsed OK: [08:55:15]protocol is kg_v1.0 [08:55:15]action value=close_receipt [08:55:15]process_action close_receipt [08:55:15]cmd_close_receipt [08:55:15]MH_GetDate [08:55:15]Write to MH i2c: F0 00 00 60 0D 5C [08:55:15]Write i2c OK [08:55:15]MH_I2C_Read... [08:55:15]Read from MH i2c: F0 [08:55:15]MH_I2C_Read... [08:55:15]Read from MH i2c: F0 09 00 [08:55:15]MH_I2C_Read... [08:55:15]Read from MH i2c: F0 09 00 60 0D 00 76 92 93 66 C9 DC B2 64 21 [08:55:15]GetLastDocTimeStamp 1720946389 [08:55:15]current date 1720947318 [08:55:15]FM_GetShiftState [08:55:15]SAM_PROTO_GetShiftState [08:55:15]wFMCommunicate request_size=4 [08:55:15]MH_SAM_APDU [08:55:15]CAPDU: 80 13 01 00 [08:55:15]Write to MH i2c: E2 08 00 61 0D 80 13 01 00 00 00 00 00 EB [08:55:15]Write i2c OK [08:55:15]MH_I2C_Read... [08:55:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:15]Read from MH i2c: E2 [08:55:15]MH_I2C_Read... [08:55:15]Read from MH i2c: E2 0E 00 [08:55:15]MH_I2C_Read... [08:55:15]Read from MH i2c: E2 0E 00 61 0D 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 6B [08:55:15]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [08:55:15]wFMCommunicate OK [08:55:15]SAM_PROTO_GetShiftState done [08:55:15]FM_GetShiftState done [08:55:15]opened in 1720917342 [08:55:15]opened+sec_in_day 1721003742 [08:55:15]quantity*price = 60009 [08:55:15]sum+1 = 60011 [08:55:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 42 14.07.2024 08:55 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164844 ФПД: 86090927391949 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T085518&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164844&fm=86090927391949&tin=02508201610067®Number=0000000000090829&sum=60000 [08:55:16]StoreToDocumentArchive [08:55:16]shift 447 fd 164844 [08:55:16]save to /storage/0447/doc_00164844 [08:55:16]save last doc name /storage/0447/doc_00164844 to /storage/kkm_last_doc_name [08:55:16]save OK [08:55:16]Clear old archive folders... [08:55:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:55:16]tlvbuf is 01690B70 [08:55:16]SAM_PROTO_ClearQueue [08:55:16]wFMCommunicate request_size=4 [08:55:16]MH_SAM_APDU [08:55:16]CAPDU: 80 09 00 00 [08:55:16]Write to MH i2c: E2 08 00 6E 0D 80 09 00 00 00 00 00 00 ED [08:55:16]Write i2c OK [08:55:16]MH_I2C_Read... [08:55:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:55:16]Read from MH i2c: E2 [08:55:16]MH_I2C_Read... [08:55:16]Read from MH i2c: E2 03 00 [08:55:16]MH_I2C_Read... [08:55:16]Read from MH i2c: E2 03 00 6E 0D 00 90 00 EF [08:55:16]RAPDU: 90 00 [08:55:16]wFMCommunicate OK [08:55:16]SAM_PROTO_ClearQueue done [08:55:16]KKMCreateOFDPacket [08:55:16]OFDProtocolAddRootSTLVToBuf [08:55:16]FM_MakeSignedData [08:55:16]FM_MakeSignedData [08:55:16]SAM_PROTO_SignData [08:55:16]wFMCommunicate request_size=4 [08:55:16]MH_SAM_APDU [08:55:16]CAPDU: 80 0D 01 02 [08:55:16]Write to MH i2c: E2 08 00 6F 0D 80 0D 01 02 00 00 00 00 F5 [08:55:16]Write i2c OK [08:55:16]MH_I2C_Read... [08:55:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:55:17]Read from MH i2c: E2 [08:55:17]MH_I2C_Read... [08:55:17]Read from MH i2c: E2 03 00 [08:55:17]MH_I2C_Read... [08:55:17]Read from MH i2c: E2 03 00 6F 0D 00 90 00 F0 [08:55:17]RAPDU: 90 00 [08:55:17]wFMCommunicate OK [08:55:17]wFMCommunicate request_size=255 [08:55:17]MH_SAM_APDU [08:55:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A 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 2A 00 00 00 F4 03 04 00 76 92 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EC 83 02 00 35 04 06 00 4E [08:55:17]Write to MH i2c: E2 02 01 70 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A 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 2A 00 00 00 F4 03 04 00 76 92 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EC 83 02 00 35 04 06 00 4E 00 00 39 [08:55:17]Write i2c OK [08:55:17]MH_I2C_Read... [08:55:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:17]Read from MH i2c: E2 [08:55:17]MH_I2C_Read... [08:55:17]Read from MH i2c: E2 03 00 [08:55:17]MH_I2C_Read... [08:55:17]Read from MH i2c: E2 03 00 70 0D 00 90 00 F1 [08:55:17]RAPDU: 90 00 [08:55:17]wFMCommunicate OK [08:55:17]wFMCommunicate request_size=10 [08:55:17]MH_SAM_APDU [08:55:17]CAPDU: 80 0D 02 02 05 4C 9B 25 44 CD [08:55:17]Write to MH i2c: E2 0D 00 71 0D 80 0D 02 02 05 00 4C 9B 25 44 CD 00 00 1F [08:55:17]Write i2c OK [08:55:17]MH_I2C_Read... [08:55:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:17]Read from MH i2c: E2 [08:55:17]MH_I2C_Read... [08:55:17]Read from MH i2c: E2 03 00 [08:55:17]MH_I2C_Read... [08:55:17]Read from MH i2c: E2 03 00 71 0D 00 90 00 F2 [08:55:17]RAPDU: 90 00 [08:55:17]wFMCommunicate OK [08:55:17]wFMCommunicate request_size=4 [08:55:17]MH_SAM_APDU [08:55:17]CAPDU: 80 0D 03 02 [08:55:17]Write to MH i2c: E2 08 00 72 0D 80 0D 03 02 00 00 00 00 FA [08:55:17]Write i2c OK [08:55:17]MH_I2C_Read... [08:55:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:55:17]Read from MH i2c: E2 [08:55:17]MH_I2C_Read... [08:55:17]Read from MH i2c: E2 0B 00 [08:55:17]MH_I2C_Read... [08:55:17]Read from MH i2c: E2 0B 00 72 0D 00 70 0C 43 DC 96 21 E6 BC 90 00 EF [08:55:17]RAPDU: 70 0C 43 DC 96 21 E6 BC 90 00 [08:55:17]wFMCommunicate OK [08:55:17]SAM_PROTO_SignData done [08:55:17]FM_MakeSignedData done [08:55:17]CreateOFDProtocolMessage [08:55:17]wFMCommunicate request_size=4 [08:55:17]MH_SAM_APDU [08:55:17]CAPDU: 80 11 00 00 [08:55:17]Write to MH i2c: E2 08 00 73 0D 80 11 00 00 00 00 00 00 FA [08:55:17]Write i2c OK [08:55:17]MH_I2C_Read... [08:55:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:17]Read from MH i2c: E2 [08:55:17]MH_I2C_Read... [08:55:17]Read from MH i2c: E2 17 00 [08:55:17]MH_I2C_Read... [08:55:17]Read from MH i2c: E2 17 00 73 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 50 [08:55:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:55:17]wFMCommunicate OK [08:55:17]CreateOFDProtocolMessage done [08:55:17]OFDSenderStorePacket 164844 [08:55:17]StoreOFDPacket docnum=164844 [08:55:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 F5 3C 07 01 86 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 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A 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 2A 00 00 00 F4 03 04 00 76 92 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EC 83 02 00 35 04 06 00 4E 4C 9B 25 44 CD 70 0C 43 DC 96 21 E6 BC [08:55:17]CheckFolder [08:55:17]dirname=/storage/ofd_packets [08:55:17]CheckFolder done [08:55:17]ProducePacketName [08:55:17]name=ofd_packets/00164844 [08:55:17]NVStorageSaveData ofd_packets/00164844 [08:55:17]File name is /storage/ofd_packets/00164844 [08:55:17]Write 301 bytes [08:55:17]NVStorageSaveData done [08:55:17]OFDSenderStorePacket done [08:55:17]KKMCreateOFDPacket done [08:55:17]NVStorageSaveData kkm_last_timestamp [08:55:17]File name is /storage/kkm_last_timestamp [08:55:17]Write 4 bytes [08:55:17]NVStorageSaveData done [08:55:17]ExternCall_PrintAddStr [08:55:17]wPrintStart [08:55:17]Write to MH i2c: 01 00 00 74 0D 81 [08:55:17]Write i2c OK [08:55:17]MH_I2C_Read... [08:55:17]Read from MH i2c: 01 [08:55:17]MH_I2C_Read... [08:55:17]Read from MH i2c: 01 07 00 [08:55:17]MH_I2C_Read... [08:55:17]Read from MH i2c: 01 07 00 74 0D 00 00 00 00 00 FF 0F 96 [08:55:17]RasterBufferAndPrint [08:55:17]line Счет N : (1)458940 [08:55:17]line ИНН: 02508201610067 [08:55:17]line Контрольно-Кассовый Чек [08:55:17]line ПРОДАЖА [08:55:17]line ТРК (МРК, ГНК) : 12 [08:55:17]line Товар: 2710124130 [08:55:17]line Аи-92-К-5 [08:55:17]line 9.120 * 65.80 [08:55:17]line = 600.10 [08:55:17]line НДС 12% НСП 1% [08:55:17]line > о реализуемом товаре [08:55:17]line ОКРУГЛЕНИЕ: -0.10 [08:55:17]line ИТОГО: 600.00 [08:55:17]line Внесено: 600.00 [08:55:17]line СДАЧА: 0.00 [08:55:17]line НСП 1% : 5.31 [08:55:17]line НДС 12% : 63.73 [08:55:17]line Наличными: 600.00 [08:55:17]line Безнал.: 0.00 [08:55:17]line Место: АЗС № 72 "Партнер Нефть" [08:55:17]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [08:55:17]line СНО: Общий режим [08:55:17]line Чек 42 14.07.2024 08:55 [08:55:17]line Смена: 447 ФФД: 1.0 [08:55:17]line ЗНМ: 0300000160 [08:55:17]line РНМ: 0000000000090829 [08:55:17]line Версия ККМ: 001 [08:55:17]line ФМ: 0000000000874718 [08:55:17]line ФД: 164844 [08:55:17]line ФПД: 86090927391949 [08:55:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T085518&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164844&fm=86090927391949&tin=02508201610067®Number=0000000000090829&sum=60000 [08:55:17]written 0, free lines is 4095 [08:55:17]OFD Sender: Processing packet 164844 [packets to send 104, broken 103] [08:55:17]ProducePacketName [08:55:17]name=ofd_packets/00164844 [08:55:17]OFD Sender: To server: pG, [08:55:17]CommunicateWithHost lk.salyk.kg:30040 [08:55:17]ConnectInit lk.salyk.kg [08:55:17]Connected sock=11 [08:55:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 F5 3C 07 01 86 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 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A 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 2A 00 00 00 F4 03 04 00 76 92 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EC 83 02 00 35 04 06 00 4E 4C 9B 25 44 CD 70 0C 43 DC 96 21 E6 BC [08:55:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 43 CB 47 00 85 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EC 83 02 00 F4 03 04 00 04 39 93 66 B6 04 01 00 00 ED 17 9C FD 72 7E B1 4E [08:55:18]CommunicateWithHost err = 0 [08:55:18]CheckOFDResponse [08:55:18]1017 (14) - 77093643461234 [08:55:18]1041 (16) - 0000000000874718 [08:55:18]1040 (4) - 164844 [08:55:18]1012 (4) - 14.07.2024 02:33 [08:55:18]1206 (1) - 0 [08:55:18]OFD Sender: Remove packet 164844 [08:55:18]ProducePacketName [08:55:18]name=ofd_packets/00164844 [08:55:18]NVStorageDeleteData [08:55:18]Write to MH i2c: 01 00 00 9E 0D AB [08:55:18]Write i2c OK [08:55:18]MH_I2C_Read... [08:55:18]Read from MH i2c: 01 [08:55:18]MH_I2C_Read... [08:55:18]Read from MH i2c: 01 07 00 [08:55:18]MH_I2C_Read... [08:55:18]Read from MH i2c: 01 07 00 9E 0D 00 00 00 00 00 01 0D C0 [08:55:18]RasterBufferAndPrint [08:55:18]line [08:55:18]line [08:55:18]line [08:55:18]line [08:55:18]line [08:55:18]written 0, free lines is 3335 [08:55:18]MH_Cut [08:55:18]Write to MH i2c: D1 01 00 A5 0D 01 84 [08:55:18]Write i2c OK [08:55:18]MH_I2C_Read... [08:55:18]Read from MH i2c: D1 [08:55:18]MH_I2C_Read... [08:55:18]Read from MH i2c: D1 01 00 [08:55:18]MH_I2C_Read... [08:55:18]Read from MH i2c: D1 01 00 A5 0D 00 83 [08:55:18]Write to MH i2c: 01 00 00 A6 0D B3 [08:55:18]Write i2c OK [08:55:18]MH_I2C_Read... [08:55:18]OFD Sender: No OFD packet to send [08:55:18]*** Cut start [08:55:18]*** Partial cut [08:55:18]*** CUTSNS_PIN = 1 [08:55:18]*** CUTSNS_PIN = 0 [08:55:19]*** Brake cut motor [08:55:19]Read from MH i2c: 01 [08:55:19]MH_I2C_Read... [08:55:19]*** Stop cut motor [08:55:19]*** Cut end [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 A6 0D 00 00 00 00 00 FF 0F C8 [08:55:19]process_action close_receipt done [08:55:19]requested_data is exist [08:55:19]produce_requested_data [08:55:19]requested_item fm.sn is exist - process it [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 A7 0D 80 11 00 00 00 00 00 00 2E [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 A7 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 84 [08:55:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:55:19]wFMCommunicate OK [08:55:19]requested_item fd.num is exist - process it [08:55:19]SAM_PROTO_GetFieldsCounters [08:55:19]wFMCommunicate request_size=4 [08:55:19]MH_SAM_APDU [08:55:19]CAPDU: 80 13 00 00 [08:55:19]Write to MH i2c: E2 08 00 A8 0D 80 13 00 00 00 00 00 00 31 [08:55:19]Write i2c OK [08:55:19]MH_I2C_Read... [08:55:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:55:19]Read from MH i2c: E2 [08:55:19]MH_I2C_Read... [08:55:19]Read from MH i2c: E2 62 00 [08:55:19]MH_I2C_Read... [08:55:19]Read from MH i2c: E2 62 00 A8 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 EC 83 02 00 0E 04 04 00 BF 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 [08:55:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 EC 83 02 00 0E 04 04 00 BF 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 [08:55:19]wFMCommunicate OK [08:55:19]SAM_PROTO_GetFieldsCounters done [08:55:19]requested_item shift.num is exist - process it [08:55:19]requested_item shift.opened is exist - process it [08:55:19]req_shift_opened [08:55:19]FM_GetShiftState [08:55:19]SAM_PROTO_GetShiftState [08:55:19]wFMCommunicate request_size=4 [08:55:19]MH_SAM_APDU [08:55:19]CAPDU: 80 13 01 00 [08:55:19]Write to MH i2c: E2 08 00 A9 0D 80 13 01 00 00 00 00 00 33 [08:55:19]Write i2c OK [08:55:19]MH_I2C_Read... [08:55:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:19]Read from MH i2c: E2 [08:55:19]MH_I2C_Read... [08:55:19]Read from MH i2c: E2 0E 00 [08:55:19]MH_I2C_Read... [08:55:19]Read from MH i2c: E2 0E 00 A9 0D 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 B3 [08:55:19]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [08:55:19]wFMCommunicate OK [08:55:19]SAM_PROTO_GetShiftState done [08:55:19]FM_GetShiftState done [08:55:19]req_shift_opened done [08:55:19]requested_item shift.open_date is exist - process it [08:55:19]req_shift_open_date [08:55:19]req_shift_open_date done [08:55:19]produce_requested_data done [08:55:19]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164844,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [08:55:19]process_action_free close_receipt [08:55:19]json_value_free [08:55:19]json_value_free done [08:55:19]process_json_proto returns [08:55:19]Send response to host [08:55:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164844,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [08:55:19]free response buf [08:55:19]execute_script done [08:55:19]execute_script returns [08:55:19]free content buf [08:55:19]Sock 9.Close socket [08:55:19]Sock 9.Thread stoped [08:55:23]OFD Sender: No OFD packet to send [08:55:28]OFD Sender: No OFD packet to send [08:55:33]OFD Sender: No OFD packet to send [08:55:38]OFD Sender: No OFD packet to send [08:55:43]OFD Sender: No OFD packet to send [08:55:48]OFD Sender: No OFD packet to send [08:55:53]OFD Sender: No OFD packet to send [08:55:58]OFD Sender: No OFD packet to send [08:56:03]OFD Sender: No OFD packet to send [08:56:08]OFD Sender: No OFD packet to send [08:56:13]OFD Sender: No OFD packet to send [08:56:18]OFD Sender: No OFD packet to send [08:56:23]OFD Sender: No OFD packet to send [08:56:28]OFD Sender: No OFD packet to send [08:56:33]OFD Sender: No OFD packet to send [08:56:38]OFD Sender: No OFD packet to send [08:56:43]OFD Sender: No OFD packet to send [08:56:48]OFD Sender: No OFD packet to send [08:56:53]OFD Sender: No OFD packet to send [08:56:58]OFD Sender: No OFD packet to send [08:57:03]OFD Sender: No OFD packet to send [08:57:08]OFD Sender: No OFD packet to send [08:57:13]OFD Sender: No OFD packet to send [08:57:18]OFD Sender: No OFD packet to send [08:57:23]OFD Sender: No OFD packet to send [08:57:28]OFD Sender: No OFD packet to send [08:57:33]OFD Sender: No OFD packet to send [08:57:38]OFD Sender: No OFD packet to send [08:57:43]OFD Sender: No OFD packet to send [08:57:48]OFD Sender: No OFD packet to send [08:57:53]OFD Sender: No OFD packet to send [08:57:58]OFD Sender: No OFD packet to send [08:58:03]OFD Sender: No OFD packet to send [08:58:08]OFD Sender: No OFD packet to send [08:58:13]OFD Sender: No OFD packet to send [08:58:18]OFD Sender: No OFD packet to send [08:58:23]OFD Sender: No OFD packet to send [08:58:28]OFD Sender: No OFD packet to send [08:58:33]OFD Sender: No OFD packet to send [08:58:38]OFD Sender: No OFD packet to send [08:58:43]OFD Sender: No OFD packet to send [08:58:48]OFD Sender: No OFD packet to send [08:58:53]OFD Sender: No OFD packet to send [08:58:58]OFD Sender: No OFD packet to send [08:59:03]OFD Sender: No OFD packet to send [08:59:08]OFD Sender: No OFD packet to send [08:59:13]OFD Sender: No OFD packet to send [08:59:15]accept exits with 8 [08:59:15]New connection [08:59:15]New thread 3067428196 created [08:59:15]Thread 3067571556 joined [08:59:15]Waiting for new connection... [08:59:15] Sock 8.Parse request [08:59:15]Sock 8.Check first char [08:59:15]Sock 8.First char is OK [08:59:15]request: POST /json_proto HTTP/1.0 [08:59:15]Method: POST [08:59:15]URL: /json_proto [08:59:15]Method is POST - this is cgi request [08:59:15]url: /json_proto [08:59:15]query_string will be loaded in cgi processing [08:59:15]execute_cgi json_proto POST (null) [08:59:15]execute_cgi path=json_proto method=POST [08:59:15]POST find Content-Length [08:59:15]Host: 172.17.56.4:8080 [08:59:15]Content-Length: 677 [08:59:15]Content-Type: application/json [08:59:15] [08:59:15]POST finish read [08:59:15]Found Content-Length = 677 [08:59:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458941", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:59:15]execute_script... [08:59: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)458941", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:59:15]POST & json_proto [08:59:15]process_json_proto [08:59:15]json parsed OK: [08:59:15]protocol is kg_v1.0 [08:59:15]action value=close_receipt [08:59:15]process_action close_receipt [08:59:15]cmd_close_receipt [08:59:15]MH_GetDate [08:59:15]Write to MH i2c: F0 00 00 AA 0D A6 [08:59:15]Write i2c OK [08:59:15]MH_I2C_Read... [08:59:15]Read from MH i2c: F0 [08:59:15]MH_I2C_Read... [08:59:15]Read from MH i2c: F0 09 00 [08:59:15]MH_I2C_Read... [08:59:15]Read from MH i2c: F0 09 00 AA 0D 00 65 93 93 66 C9 DC B2 64 5B [08:59:15]GetLastDocTimeStamp 1720947318 [08:59:15]current date 1720947557 [08:59:15]FM_GetShiftState [08:59:15]SAM_PROTO_GetShiftState [08:59:15]wFMCommunicate request_size=4 [08:59:15]MH_SAM_APDU [08:59:15]CAPDU: 80 13 01 00 [08:59:15]Write to MH i2c: E2 08 00 AB 0D 80 13 01 00 00 00 00 00 35 [08:59:15]Write i2c OK [08:59:15]MH_I2C_Read... [08:59:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:15]Read from MH i2c: E2 [08:59:15]MH_I2C_Read... [08:59:15]Read from MH i2c: E2 0E 00 [08:59:15]MH_I2C_Read... [08:59:15]Read from MH i2c: E2 0E 00 AB 0D 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 B5 [08:59:15]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [08:59:15]wFMCommunicate OK [08:59:15]SAM_PROTO_GetShiftState done [08:59:15]FM_GetShiftState done [08:59:15]opened in 1720917342 [08:59:15]opened+sec_in_day 1721003742 [08:59:15]quantity*price = 50008 [08:59:15]sum+1 = 50009 [08:59:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 43 14.07.2024 08:59 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164845 ФПД: 131140341115219 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T085917&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164845&fm=131140341115219&tin=02508201610067®Number=0000000000090829&sum=50000 [08:59:16]StoreToDocumentArchive [08:59:16]shift 447 fd 164845 [08:59:16]save to /storage/0447/doc_00164845 [08:59:16]save last doc name /storage/0447/doc_00164845 to /storage/kkm_last_doc_name [08:59:16]save OK [08:59:16]Clear old archive folders... [08:59:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:59:16]tlvbuf is 016572C0 [08:59:16]SAM_PROTO_ClearQueue [08:59:16]wFMCommunicate request_size=4 [08:59:16]MH_SAM_APDU [08:59:16]CAPDU: 80 09 00 00 [08:59:16]Write to MH i2c: E2 08 00 B8 0D 80 09 00 00 00 00 00 00 37 [08:59:16]Write i2c OK [08:59:16]MH_I2C_Read... [08:59:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:59:16]Read from MH i2c: E2 [08:59:16]MH_I2C_Read... [08:59:16]Read from MH i2c: E2 03 00 [08:59:16]MH_I2C_Read... [08:59:16]Read from MH i2c: E2 03 00 B8 0D 00 90 00 39 [08:59:16]RAPDU: 90 00 [08:59:16]wFMCommunicate OK [08:59:16]SAM_PROTO_ClearQueue done [08:59:16]KKMCreateOFDPacket [08:59:16]OFDProtocolAddRootSTLVToBuf [08:59:16]FM_MakeSignedData [08:59:16]FM_MakeSignedData [08:59:16]SAM_PROTO_SignData [08:59:16]wFMCommunicate request_size=4 [08:59:16]MH_SAM_APDU [08:59:16]CAPDU: 80 0D 01 02 [08:59:16]Write to MH i2c: E2 08 00 B9 0D 80 0D 01 02 00 00 00 00 3F [08:59:16]Write i2c OK [08:59:16]MH_I2C_Read... [08:59:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:59:16]Read from MH i2c: E2 [08:59:16]MH_I2C_Read... [08:59:16]Read from MH i2c: E2 03 00 [08:59:16]MH_I2C_Read... [08:59:16]Read from MH i2c: E2 03 00 B9 0D 00 90 00 3A [08:59:16]RAPDU: 90 00 [08:59:16]wFMCommunicate OK [08:59:16]wFMCommunicate request_size=255 [08:59:16]MH_SAM_APDU [08:59:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 2B 00 00 00 F4 03 04 00 65 93 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 ED 83 02 00 35 04 06 00 77 [08:59:16]Write to MH i2c: E2 02 01 BA 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 2B 00 00 00 F4 03 04 00 65 93 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 ED 83 02 00 35 04 06 00 77 00 00 7D [08:59:16]Write i2c OK [08:59:16]MH_I2C_Read... [08:59:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:16]Read from MH i2c: E2 [08:59:16]MH_I2C_Read... [08:59:16]Read from MH i2c: E2 03 00 [08:59:16]MH_I2C_Read... [08:59:16]Read from MH i2c: E2 03 00 BA 0D 00 90 00 3B [08:59:16]RAPDU: 90 00 [08:59:16]wFMCommunicate OK [08:59:16]wFMCommunicate request_size=10 [08:59:16]MH_SAM_APDU [08:59:16]CAPDU: 80 0D 02 02 05 45 7D 72 A9 53 [08:59:16]Write to MH i2c: E2 0D 00 BB 0D 80 0D 02 02 05 00 45 7D 72 A9 53 00 00 7C [08:59:16]Write i2c OK [08:59:16]MH_I2C_Read... [08:59:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:16]Read from MH i2c: E2 [08:59:16]MH_I2C_Read... [08:59:16]Read from MH i2c: E2 03 00 [08:59:16]MH_I2C_Read... [08:59:16]Read from MH i2c: E2 03 00 BB 0D 00 90 00 3C [08:59:16]RAPDU: 90 00 [08:59:16]wFMCommunicate OK [08:59:16]wFMCommunicate request_size=4 [08:59:16]MH_SAM_APDU [08:59:16]CAPDU: 80 0D 03 02 [08:59:16]Write to MH i2c: E2 08 00 BC 0D 80 0D 03 02 00 00 00 00 44 [08:59:16]Write i2c OK [08:59:16]MH_I2C_Read... [08:59:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:59:17]Read from MH i2c: E2 [08:59:17]MH_I2C_Read... [08:59:17]Read from MH i2c: E2 0B 00 [08:59:17]MH_I2C_Read... [08:59:17]Read from MH i2c: E2 0B 00 BC 0D 00 25 4B 08 A4 B6 F5 6F D4 90 00 4F [08:59:17]RAPDU: 25 4B 08 A4 B6 F5 6F D4 90 00 [08:59:17]wFMCommunicate OK [08:59:17]SAM_PROTO_SignData done [08:59:17]FM_MakeSignedData done [08:59:17]CreateOFDProtocolMessage [08:59:17]wFMCommunicate request_size=4 [08:59:17]MH_SAM_APDU [08:59:17]CAPDU: 80 11 00 00 [08:59:17]Write to MH i2c: E2 08 00 BD 0D 80 11 00 00 00 00 00 00 44 [08:59:17]Write i2c OK [08:59:17]MH_I2C_Read... [08:59:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:17]Read from MH i2c: E2 [08:59:17]MH_I2C_Read... [08:59:17]Read from MH i2c: E2 17 00 [08:59:17]MH_I2C_Read... [08:59:17]Read from MH i2c: E2 17 00 BD 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 9A [08:59:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:59:17]wFMCommunicate OK [08:59:17]CreateOFDProtocolMessage done [08:59:17]OFDSenderStorePacket 164845 [08:59:17]StoreOFDPacket docnum=164845 [08:59:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 DA AE 07 01 66 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 2B 00 00 00 F4 03 04 00 65 93 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 ED 83 02 00 35 04 06 00 77 45 7D 72 A9 53 25 4B 08 A4 B6 F5 6F D4 [08:59:17]CheckFolder [08:59:17]dirname=/storage/ofd_packets [08:59:17]CheckFolder done [08:59:17]ProducePacketName [08:59:17]name=ofd_packets/00164845 [08:59:17]NVStorageSaveData ofd_packets/00164845 [08:59:17]File name is /storage/ofd_packets/00164845 [08:59:17]Write 301 bytes [08:59:17]NVStorageSaveData done [08:59:17]OFDSenderStorePacket done [08:59:17]KKMCreateOFDPacket done [08:59:17]NVStorageSaveData kkm_last_timestamp [08:59:17]File name is /storage/kkm_last_timestamp [08:59:17]Write 4 bytes [08:59:17]NVStorageSaveData done [08:59:17]ExternCall_PrintAddStr [08:59:17]wPrintStart [08:59:17]Write to MH i2c: 01 00 00 BE 0D CB [08:59:17]Write i2c OK [08:59:17]MH_I2C_Read... [08:59:17]Read from MH i2c: 01 [08:59:17]MH_I2C_Read... [08:59:17]Read from MH i2c: 01 07 00 [08:59:17]MH_I2C_Read... [08:59:17]Read from MH i2c: 01 07 00 BE 0D 00 00 00 00 00 FF 0F E0 [08:59:17]RasterBufferAndPrint [08:59:17]line Счет N : (1)458941 [08:59:17]line ИНН: 02508201610067 [08:59:17]line Контрольно-Кассовый Чек [08:59:17]line ПРОДАЖА [08:59:17]line ТРК (МРК, ГНК) : 12 [08:59:17]line Товар: 2710124130 [08:59:17]line Аи-92-К-5 [08:59:17]line 7.600 * 65.80 [08:59:17]line = 500.08 [08:59:17]line НДС 12% НСП 1% [08:59:17]line > о реализуемом товаре [08:59:17]line ОКРУГЛЕНИЕ: -0.08 [08:59:17]line ИТОГО: 500.00 [08:59:17]line Внесено: 500.00 [08:59:17]line СДАЧА: 0.00 [08:59:17]line НСП 1% : 4.42 [08:59:17]line НДС 12% : 53.11 [08:59:17]line Наличными: 500.00 [08:59:17]line Безнал.: 0.00 [08:59:17]line Место: АЗС № 72 "Партнер Нефть" [08:59:17]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [08:59:17]line СНО: Общий режим [08:59:17]line Чек 43 14.07.2024 08:59 [08:59:17]line Смена: 447 ФФД: 1.0 [08:59:17]line ЗНМ: 0300000160 [08:59:17]line РНМ: 0000000000090829 [08:59:17]line Версия ККМ: 001 [08:59:17]line ФМ: 0000000000874718 [08:59:17]line ФД: 164845 [08:59:17]line ФПД: 131140341115219 [08:59:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T085917&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164845&fm=131140341115219&tin=02508201610067®Number=0000000000090829&sum=50000 [08:59:17]written 0, free lines is 4095 [08:59:17]OFD Sender: Processing packet 164845 [packets to send 104, broken 103] [08:59:17]ProducePacketName [08:59:17]name=ofd_packets/00164845 [08:59:17]OFD Sender: To server: pG, [08:59:17]CommunicateWithHost lk.salyk.kg:30040 [08:59:17]ConnectInit lk.salyk.kg [08:59:17]Connected sock=10 [08:59:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 DA AE 07 01 66 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 2B 00 00 00 F4 03 04 00 65 93 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 ED 83 02 00 35 04 06 00 77 45 7D 72 A9 53 25 4B 08 A4 B6 F5 6F D4 [08:59:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 AB 58 47 00 9A B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 ED 83 02 00 F4 03 04 00 F3 39 93 66 B6 04 01 00 00 FA E5 B7 15 73 AB 6C 16 [08:59:17]CommunicateWithHost err = 0 [08:59:17]CheckOFDResponse [08:59:17]1017 (14) - 77093643461234 [08:59:17]1041 (16) - 0000000000874718 [08:59:17]1040 (4) - 164845 [08:59:17]1012 (4) - 14.07.2024 02:37 [08:59:17]1206 (1) - 0 [08:59:17]OFD Sender: Remove packet 164845 [08:59:17]ProducePacketName [08:59:17]name=ofd_packets/00164845 [08:59:17]NVStorageDeleteData [08:59:17]Write to MH i2c: 01 00 00 E8 0D F5 [08:59:17]Write i2c OK [08:59:17]MH_I2C_Read... [08:59:17]Read from MH i2c: 01 [08:59:17]MH_I2C_Read... [08:59:17]Read from MH i2c: 01 07 00 [08:59:17]MH_I2C_Read... [08:59:17]Read from MH i2c: 01 07 00 E8 0D 00 00 00 00 00 02 0D 0B [08:59:17]RasterBufferAndPrint [08:59:17]line [08:59:17]line [08:59:17]line [08:59:17]line [08:59:17]line [08:59:17]written 0, free lines is 3336 [08:59:17]MH_Cut [08:59:17]Write to MH i2c: D1 01 00 EF 0D 01 CE [08:59:17]Write i2c OK [08:59:17]MH_I2C_Read... [08:59:17]Read from MH i2c: D1 [08:59:17]MH_I2C_Read... [08:59:17]Read from MH i2c: D1 01 00 [08:59:17]MH_I2C_Read... [08:59:17]Read from MH i2c: D1 01 00 EF 0D 00 CD [08:59:17]Write to MH i2c: 01 00 00 F0 0D FD [08:59:17]Write i2c OK [08:59:17]MH_I2C_Read... [08:59:17]OFD Sender: No OFD packet to send [08:59:18]*** Cut start [08:59:18]*** Partial cut [08:59:18]*** CUTSNS_PIN = 1 [08:59:18]*** CUTSNS_PIN = 0 [08:59:18]*** Brake cut motor [08:59:18]Read from MH i2c: 01 [08:59:18]MH_I2C_Read... [08:59:18]*** Stop cut motor [08:59:18]*** Cut end [08:59:18]Read from MH i2c: 01 07 00 [08:59:18]MH_I2C_Read... [08:59:18]Read from MH i2c: 01 07 00 F0 0D 00 00 00 00 00 FF 0F 12 [08:59:18]process_action close_receipt done [08:59:18]requested_data is exist [08:59:18]produce_requested_data [08:59:18]requested_item fm.sn is exist - process it [08:59:18]wFMCommunicate request_size=4 [08:59:18]MH_SAM_APDU [08:59:18]CAPDU: 80 11 00 00 [08:59:18]Write to MH i2c: E2 08 00 F1 0D 80 11 00 00 00 00 00 00 78 [08:59:18]Write i2c OK [08:59:18]MH_I2C_Read... [08:59:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:18]Read from MH i2c: E2 [08:59:18]MH_I2C_Read... [08:59:18]Read from MH i2c: E2 17 00 [08:59:18]MH_I2C_Read... [08:59:18]Read from MH i2c: E2 17 00 F1 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 CE [08:59:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:59:18]wFMCommunicate OK [08:59:18]requested_item fd.num is exist - process it [08:59:18]SAM_PROTO_GetFieldsCounters [08:59:18]wFMCommunicate request_size=4 [08:59:18]MH_SAM_APDU [08:59:18]CAPDU: 80 13 00 00 [08:59:18]Write to MH i2c: E2 08 00 F2 0D 80 13 00 00 00 00 00 00 7B [08:59:18]Write i2c OK [08:59:18]MH_I2C_Read... [08:59:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:59:19]Read from MH i2c: E2 [08:59:19]MH_I2C_Read... [08:59:19]Read from MH i2c: E2 62 00 [08:59:19]MH_I2C_Read... [08:59:19]Read from MH i2c: E2 62 00 F2 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 ED 83 02 00 0E 04 04 00 BF 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 55 [08:59:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 ED 83 02 00 0E 04 04 00 BF 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 [08:59:19]wFMCommunicate OK [08:59:19]SAM_PROTO_GetFieldsCounters done [08:59:19]requested_item shift.num is exist - process it [08:59:19]requested_item shift.opened is exist - process it [08:59:19]req_shift_opened [08:59:19]FM_GetShiftState [08:59:19]SAM_PROTO_GetShiftState [08:59:19]wFMCommunicate request_size=4 [08:59:19]MH_SAM_APDU [08:59:19]CAPDU: 80 13 01 00 [08:59:19]Write to MH i2c: E2 08 00 F3 0D 80 13 01 00 00 00 00 00 7D [08:59:19]Write i2c OK [08:59:19]MH_I2C_Read... [08:59:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:19]Read from MH i2c: E2 [08:59:19]MH_I2C_Read... [08:59:19]Read from MH i2c: E2 0E 00 [08:59:19]MH_I2C_Read... [08:59:19]Read from MH i2c: E2 0E 00 F3 0D 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 FD [08:59:19]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [08:59:19]wFMCommunicate OK [08:59:19]SAM_PROTO_GetShiftState done [08:59:19]FM_GetShiftState done [08:59:19]req_shift_opened done [08:59:19]requested_item shift.open_date is exist - process it [08:59:19]req_shift_open_date [08:59:19]req_shift_open_date done [08:59:19]produce_requested_data done [08:59:19]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164845,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [08:59:19]process_action_free close_receipt [08:59:19]json_value_free [08:59:19]json_value_free done [08:59:19]process_json_proto returns [08:59:19]Send response to host [08:59:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164845,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [08:59:19]free response buf [08:59:19]execute_script done [08:59:19]execute_script returns [08:59:19]free content buf [08:59:19]Sock 8.Close socket [08:59:19]Sock 8.Thread stoped [08:59:22]OFD Sender: No OFD packet to send [08:59:27]OFD Sender: No OFD packet to send [08:59:32]OFD Sender: No OFD packet to send [08:59:37]OFD Sender: No OFD packet to send [08:59:42]OFD Sender: No OFD packet to send [08:59:47]OFD Sender: No OFD packet to send [08:59:52]OFD Sender: No OFD packet to send [08:59:57]OFD Sender: No OFD packet to send [09:00:02]OFD Sender: No OFD packet to send [09:00:07]OFD Sender: No OFD packet to send [09:00:12]OFD Sender: No OFD packet to send [09:00:17]OFD Sender: No OFD packet to send [09:00:22]OFD Sender: No OFD packet to send [09:00:27]OFD Sender: No OFD packet to send [09:00:32]OFD Sender: No OFD packet to send [09:00:37]OFD Sender: No OFD packet to send [09:00:43]OFD Sender: No OFD packet to send [09:00:48]OFD Sender: No OFD packet to send [09:00:53]OFD Sender: No OFD packet to send [09:00:58]OFD Sender: No OFD packet to send [09:01:03]OFD Sender: No OFD packet to send [09:01:08]OFD Sender: No OFD packet to send [09:01:13]OFD Sender: No OFD packet to send [09:01:18]OFD Sender: No OFD packet to send [09:01:23]OFD Sender: No OFD packet to send [09:01:28]OFD Sender: No OFD packet to send [09:01:33]OFD Sender: No OFD packet to send [09:01:38]OFD Sender: No OFD packet to send [09:01:43]OFD Sender: No OFD packet to send [09:01:48]OFD Sender: No OFD packet to send [09:01:53]OFD Sender: No OFD packet to send [09:01:58]OFD Sender: No OFD packet to send [09:02:03]OFD Sender: No OFD packet to send [09:02:08]OFD Sender: No OFD packet to send [09:02:13]OFD Sender: No OFD packet to send [09:02:18]OFD Sender: No OFD packet to send [09:02:23]OFD Sender: No OFD packet to send [09:02:28]OFD Sender: No OFD packet to send [09:02:33]OFD Sender: No OFD packet to send [09:02:38]OFD Sender: No OFD packet to send [09:02:43]OFD Sender: No OFD packet to send [09:02:48]OFD Sender: No OFD packet to send [09:02:53]OFD Sender: No OFD packet to send [09:02:58]OFD Sender: No OFD packet to send [09:03:03]OFD Sender: No OFD packet to send [09:03:08]OFD Sender: No OFD packet to send [09:03:13]OFD Sender: No OFD packet to send [09:03:18]OFD Sender: No OFD packet to send [09:03:21]accept exits with 9 [09:03:21]New connection [09:03:21]New thread 3067571556 created [09:03:21]Thread 3067428196 joined [09:03:21]Waiting for new connection... [09:03:21] Sock 9.Parse request [09:03:21]Sock 9.Check first char [09:03:21]Sock 9.First char is OK [09:03:21]request: POST /json_proto HTTP/1.0 [09:03:21]Method: POST [09:03:21]URL: /json_proto [09:03:21]Method is POST - this is cgi request [09:03:21]url: /json_proto [09:03:21]query_string will be loaded in cgi processing [09:03:21]execute_cgi json_proto POST (null) [09:03:21]execute_cgi path=json_proto method=POST [09:03:21]POST find Content-Length [09:03:21]Host: 172.17.56.4:8080 [09:03:21]Content-Length: 677 [09:03:21]Content-Type: application/json [09:03:21] [09:03:21]POST finish read [09:03:21]Found Content-Length = 677 [09:03:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458942", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.320, "sum" : 350.06, "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" ] } } [09:03:21]execute_script... [09:03: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)458942", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.320, "sum" : 350.06, "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" ] } } [09:03:21]POST & json_proto [09:03:21]process_json_proto [09:03:21]json parsed OK: [09:03:21]protocol is kg_v1.0 [09:03:21]action value=close_receipt [09:03:21]process_action close_receipt [09:03:21]cmd_close_receipt [09:03:21]MH_GetDate [09:03:21]Write to MH i2c: F0 00 00 F4 0D F0 [09:03:21]Write i2c OK [09:03:21]MH_I2C_Read... [09:03:21]Read from MH i2c: F0 [09:03:21]MH_I2C_Read... [09:03:21]Read from MH i2c: F0 09 00 [09:03:21]MH_I2C_Read... [09:03:21]Read from MH i2c: F0 09 00 F4 0D 00 5B 94 93 66 C9 DC B2 64 9C [09:03:21]GetLastDocTimeStamp 1720947557 [09:03:21]current date 1720947803 [09:03:21]FM_GetShiftState [09:03:21]SAM_PROTO_GetShiftState [09:03:21]wFMCommunicate request_size=4 [09:03:21]MH_SAM_APDU [09:03:21]CAPDU: 80 13 01 00 [09:03:21]Write to MH i2c: E2 08 00 F5 0D 80 13 01 00 00 00 00 00 7F [09:03:21]Write i2c OK [09:03:21]MH_I2C_Read... [09:03:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:21]Read from MH i2c: E2 [09:03:21]MH_I2C_Read... [09:03:21]Read from MH i2c: E2 0E 00 [09:03:21]MH_I2C_Read... [09:03:21]Read from MH i2c: E2 0E 00 F5 0D 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 FF [09:03:21]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [09:03:21]wFMCommunicate OK [09:03:21]SAM_PROTO_GetShiftState done [09:03:21]FM_GetShiftState done [09:03:21]opened in 1720917342 [09:03:21]opened+sec_in_day 1721003742 [09:03:21]quantity*price = 35005 [09:03:21]sum+1 = 35007 [09:03:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.17 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 44 14.07.2024 09:03 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164846 ФПД: 58013984588772 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T090323&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164846&fm=58013984588772&tin=02508201610067®Number=0000000000090829&sum=35000 [09:03:22]StoreToDocumentArchive [09:03:22]shift 447 fd 164846 [09:03:22]save to /storage/0447/doc_00164846 [09:03:22]save last doc name /storage/0447/doc_00164846 to /storage/kkm_last_doc_name [09:03:22]save OK [09:03:22]Clear old archive folders... [09:03:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:03:22]tlvbuf is 0163CF00 [09:03:22]SAM_PROTO_ClearQueue [09:03:22]wFMCommunicate request_size=4 [09:03:22]MH_SAM_APDU [09:03:22]CAPDU: 80 09 00 00 [09:03:22]Write to MH i2c: E2 08 00 02 0E 80 09 00 00 00 00 00 00 82 [09:03:22]Write i2c OK [09:03:22]MH_I2C_Read... [09:03:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:03:22]Read from MH i2c: E2 [09:03:22]MH_I2C_Read... [09:03:22]Read from MH i2c: E2 03 00 [09:03:22]MH_I2C_Read... [09:03:22]Read from MH i2c: E2 03 00 02 0E 00 90 00 84 [09:03:22]RAPDU: 90 00 [09:03:22]wFMCommunicate OK [09:03:22]SAM_PROTO_ClearQueue done [09:03:22]KKMCreateOFDPacket [09:03:22]OFDProtocolAddRootSTLVToBuf [09:03:22]FM_MakeSignedData [09:03:22]FM_MakeSignedData [09:03:22]SAM_PROTO_SignData [09:03:22]wFMCommunicate request_size=4 [09:03:22]MH_SAM_APDU [09:03:22]CAPDU: 80 0D 01 02 [09:03:22]Write to MH i2c: E2 08 00 03 0E 80 0D 01 02 00 00 00 00 8A [09:03:22]Write i2c OK [09:03:22]MH_I2C_Read... [09:03:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:03:22]Read from MH i2c: E2 [09:03:22]MH_I2C_Read... [09:03:22]Read from MH i2c: E2 03 00 [09:03:22]MH_I2C_Read... [09:03:22]Read from MH i2c: E2 03 00 03 0E 00 90 00 85 [09:03:22]RAPDU: 90 00 [09:03:22]wFMCommunicate OK [09:03:22]wFMCommunicate request_size=255 [09:03:22]MH_SAM_APDU [09:03:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BE 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 85 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 2C 00 00 00 F4 03 04 00 5B 94 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EE 83 02 00 35 04 06 00 34 [09:03:22]Write to MH i2c: E2 02 01 04 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BE 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 85 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 2C 00 00 00 F4 03 04 00 5B 94 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EE 83 02 00 35 04 06 00 34 00 00 4E [09:03:22]Write i2c OK [09:03:22]MH_I2C_Read... [09:03:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:22]Read from MH i2c: E2 [09:03:22]MH_I2C_Read... [09:03:22]Read from MH i2c: E2 03 00 [09:03:22]MH_I2C_Read... [09:03:22]Read from MH i2c: E2 03 00 04 0E 00 90 00 86 [09:03:22]RAPDU: 90 00 [09:03:22]wFMCommunicate OK [09:03:22]wFMCommunicate request_size=10 [09:03:22]MH_SAM_APDU [09:03:22]CAPDU: 80 0D 02 02 05 C3 6E F1 83 E4 [09:03:22]Write to MH i2c: E2 0D 00 05 0E 80 0D 02 02 05 00 C3 6E F1 83 E4 00 00 20 [09:03:22]Write i2c OK [09:03:22]MH_I2C_Read... [09:03:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:22]Read from MH i2c: E2 [09:03:22]MH_I2C_Read... [09:03:22]Read from MH i2c: E2 03 00 [09:03:22]MH_I2C_Read... [09:03:22]Read from MH i2c: E2 03 00 05 0E 00 90 00 87 [09:03:22]RAPDU: 90 00 [09:03:22]wFMCommunicate OK [09:03:22]wFMCommunicate request_size=4 [09:03:22]MH_SAM_APDU [09:03:22]CAPDU: 80 0D 03 02 [09:03:22]Write to MH i2c: E2 08 00 06 0E 80 0D 03 02 00 00 00 00 8F [09:03:22]Write i2c OK [09:03:22]MH_I2C_Read... [09:03:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:03:22]Read from MH i2c: E2 [09:03:22]MH_I2C_Read... [09:03:22]Read from MH i2c: E2 0B 00 [09:03:22]MH_I2C_Read... [09:03:22]Read from MH i2c: E2 0B 00 06 0E 00 7E EA 9C CF 15 61 1C 4F 90 00 44 [09:03:22]RAPDU: 7E EA 9C CF 15 61 1C 4F 90 00 [09:03:22]wFMCommunicate OK [09:03:22]SAM_PROTO_SignData done [09:03:22]FM_MakeSignedData done [09:03:22]CreateOFDProtocolMessage [09:03:22]wFMCommunicate request_size=4 [09:03:22]MH_SAM_APDU [09:03:22]CAPDU: 80 11 00 00 [09:03:22]Write to MH i2c: E2 08 00 07 0E 80 11 00 00 00 00 00 00 8F [09:03:22]Write i2c OK [09:03:22]MH_I2C_Read... [09:03:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:22]Read from MH i2c: E2 [09:03:22]MH_I2C_Read... [09:03:22]Read from MH i2c: E2 17 00 [09:03:22]MH_I2C_Read... [09:03:22]Read from MH i2c: E2 17 00 07 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E5 [09:03:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:03:22]wFMCommunicate OK [09:03:22]CreateOFDProtocolMessage done [09:03:22]OFDSenderStorePacket 164846 [09:03:22]StoreOFDPacket docnum=164846 [09:03:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 1E 14 07 01 C1 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BE 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 85 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 2C 00 00 00 F4 03 04 00 5B 94 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EE 83 02 00 35 04 06 00 34 C3 6E F1 83 E4 7E EA 9C CF 15 61 1C 4F [09:03:22]CheckFolder [09:03:22]dirname=/storage/ofd_packets [09:03:22]CheckFolder done [09:03:22]ProducePacketName [09:03:22]name=ofd_packets/00164846 [09:03:22]NVStorageSaveData ofd_packets/00164846 [09:03:22]File name is /storage/ofd_packets/00164846 [09:03:22]Write 301 bytes [09:03:22]NVStorageSaveData done [09:03:22]OFDSenderStorePacket done [09:03:22]KKMCreateOFDPacket done [09:03:22]NVStorageSaveData kkm_last_timestamp [09:03:22]File name is /storage/kkm_last_timestamp [09:03:22]Write 4 bytes [09:03:22]NVStorageSaveData done [09:03:22]ExternCall_PrintAddStr [09:03:22]wPrintStart [09:03:22]Write to MH i2c: 01 00 00 08 0E 16 [09:03:22]Write i2c OK [09:03:22]MH_I2C_Read... [09:03:22]Read from MH i2c: 01 [09:03:22]MH_I2C_Read... [09:03:22]Read from MH i2c: 01 07 00 [09:03:22]MH_I2C_Read... [09:03:22]Read from MH i2c: 01 07 00 08 0E 00 00 00 00 00 FF 0F 2B [09:03:22]RasterBufferAndPrint [09:03:22]line Счет N : (1)458942 [09:03:22]line ИНН: 02508201610067 [09:03:22]line Контрольно-Кассовый Чек [09:03:22]line ПРОДАЖА [09:03:22]line ТРК (МРК, ГНК) : 12 [09:03:22]line Товар: 2710124130 [09:03:22]line Аи-92-К-5 [09:03:22]line 5.320 * 65.80 [09:03:22]line = 350.06 [09:03:22]line НДС 12% НСП 1% [09:03:22]line > о реализуемом товаре [09:03:22]line ОКРУГЛЕНИЕ: -0.06 [09:03:22]line ИТОГО: 350.00 [09:03:22]line Внесено: 350.00 [09:03:22]line СДАЧА: 0.00 [09:03:22]line НСП 1% : 3.10 [09:03:22]line НДС 12% : 37.17 [09:03:22]line Наличными: 350.00 [09:03:23]line Безнал.: 0.00 [09:03:23]line Место: АЗС № 72 "Партнер Нефть" [09:03:23]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:03:23]line СНО: Общий режим [09:03:23]line Чек 44 14.07.2024 09:03 [09:03:23]line Смена: 447 ФФД: 1.0 [09:03:23]line ЗНМ: 0300000160 [09:03:23]line РНМ: 0000000000090829 [09:03:23]line Версия ККМ: 001 [09:03:23]line ФМ: 0000000000874718 [09:03:23]line ФД: 164846 [09:03:23]line ФПД: 58013984588772 [09:03:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T090323&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164846&fm=58013984588772&tin=02508201610067®Number=0000000000090829&sum=35000 [09:03:23]written 0, free lines is 4095 [09:03:23]OFD Sender: Processing packet 164846 [packets to send 104, broken 103] [09:03:23]ProducePacketName [09:03:23]name=ofd_packets/00164846 [09:03:23]OFD Sender: To server: pG, [09:03:23]CommunicateWithHost lk.salyk.kg:30040 [09:03:23]ConnectInit lk.salyk.kg [09:03:23]Connected sock=10 [09:03:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 1E 14 07 01 C1 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BE 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 85 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 2C 00 00 00 F4 03 04 00 5B 94 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EE 83 02 00 35 04 06 00 34 C3 6E F1 83 E4 7E EA 9C CF 15 61 1C 4F [09:03:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 93 7B 47 00 66 D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EE 83 02 00 F4 03 04 00 E9 3A 93 66 B6 04 01 00 00 C3 B0 4D 6E 0D 5C 1B 86 [09:03:23]CommunicateWithHost err = 0 [09:03:23]CheckOFDResponse [09:03:23]1017 (14) - 77093643461234 [09:03:23]1041 (16) - 0000000000874718 [09:03:23]1040 (4) - 164846 [09:03:23]1012 (4) - 14.07.2024 02:41 [09:03:23]1206 (1) - 0 [09:03:23]OFD Sender: Remove packet 164846 [09:03:23]ProducePacketName [09:03:23]name=ofd_packets/00164846 [09:03:23]NVStorageDeleteData [09:03:23]Write to MH i2c: 01 00 00 32 0E 40 [09:03:23]Write i2c OK [09:03:23]MH_I2C_Read... [09:03:23]Read from MH i2c: 01 [09:03:23]MH_I2C_Read... [09:03:23]Read from MH i2c: 01 07 00 [09:03:23]MH_I2C_Read... [09:03:23]Read from MH i2c: 01 07 00 32 0E 00 00 00 00 00 02 0D 56 [09:03:23]RasterBufferAndPrint [09:03:23]line [09:03:23]line [09:03:23]line [09:03:23]line [09:03:23]line [09:03:23]written 0, free lines is 3336 [09:03:23]MH_Cut [09:03:23]Write to MH i2c: D1 01 00 39 0E 01 19 [09:03:23]Write i2c OK [09:03:23]MH_I2C_Read... [09:03:23]Read from MH i2c: D1 [09:03:23]MH_I2C_Read... [09:03:23]Read from MH i2c: D1 01 00 [09:03:23]MH_I2C_Read... [09:03:23]Read from MH i2c: D1 01 00 39 0E 00 18 [09:03:23]Write to MH i2c: 01 00 00 3A 0E 48 [09:03:23]Write i2c OK [09:03:23]MH_I2C_Read... [09:03:24]OFD Sender: No OFD packet to send [09:03:24]*** Cut start [09:03:24]*** Partial cut [09:03:24]*** CUTSNS_PIN = 1 [09:03:24]*** CUTSNS_PIN = 0 [09:03:24]*** Brake cut motor [09:03:25]Read from MH i2c: 01 [09:03:25]MH_I2C_Read... [09:03:25]*** Stop cut motor [09:03:25]*** Cut end [09:03:25]Read from MH i2c: 01 07 00 [09:03:25]MH_I2C_Read... [09:03:25]Read from MH i2c: 01 07 00 3A 0E 00 00 00 00 00 FF 0F 5D [09:03:25]process_action close_receipt done [09:03:25]requested_data is exist [09:03:25]produce_requested_data [09:03:25]requested_item fm.sn is exist - process it [09:03:25]wFMCommunicate request_size=4 [09:03:25]MH_SAM_APDU [09:03:25]CAPDU: 80 11 00 00 [09:03:25]Write to MH i2c: E2 08 00 3B 0E 80 11 00 00 00 00 00 00 C3 [09:03:25]Write i2c OK [09:03:25]MH_I2C_Read... [09:03:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:25]Read from MH i2c: E2 [09:03:25]MH_I2C_Read... [09:03:25]Read from MH i2c: E2 17 00 [09:03:25]MH_I2C_Read... [09:03:25]Read from MH i2c: E2 17 00 3B 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 19 [09:03:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:03:25]wFMCommunicate OK [09:03:25]requested_item fd.num is exist - process it [09:03:25]SAM_PROTO_GetFieldsCounters [09:03:25]wFMCommunicate request_size=4 [09:03:25]MH_SAM_APDU [09:03:25]CAPDU: 80 13 00 00 [09:03:25]Write to MH i2c: E2 08 00 3C 0E 80 13 00 00 00 00 00 00 C6 [09:03:25]Write i2c OK [09:03:25]MH_I2C_Read... [09:03:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:03:25]Read from MH i2c: E2 [09:03:25]MH_I2C_Read... [09:03:25]Read from MH i2c: E2 62 00 [09:03:25]MH_I2C_Read... [09:03:25]Read from MH i2c: E2 62 00 3C 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 EE 83 02 00 0E 04 04 00 BF 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 A4 [09:03:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 EE 83 02 00 0E 04 04 00 BF 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 [09:03:25]wFMCommunicate OK [09:03:25]SAM_PROTO_GetFieldsCounters done [09:03:25]requested_item shift.num is exist - process it [09:03:25]requested_item shift.opened is exist - process it [09:03:25]req_shift_opened [09:03:25]FM_GetShiftState [09:03:25]SAM_PROTO_GetShiftState [09:03:25]wFMCommunicate request_size=4 [09:03:25]MH_SAM_APDU [09:03:25]CAPDU: 80 13 01 00 [09:03:25]Write to MH i2c: E2 08 00 3D 0E 80 13 01 00 00 00 00 00 C8 [09:03:25]Write i2c OK [09:03:25]MH_I2C_Read... [09:03:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:25]Read from MH i2c: E2 [09:03:25]MH_I2C_Read... [09:03:25]Read from MH i2c: E2 0E 00 [09:03:25]MH_I2C_Read... [09:03:25]Read from MH i2c: E2 0E 00 3D 0E 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 48 [09:03:25]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [09:03:25]wFMCommunicate OK [09:03:25]SAM_PROTO_GetShiftState done [09:03:25]FM_GetShiftState done [09:03:25]req_shift_opened done [09:03:25]requested_item shift.open_date is exist - process it [09:03:25]req_shift_open_date [09:03:25]req_shift_open_date done [09:03:25]produce_requested_data done [09:03:25]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164846,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [09:03:25]process_action_free close_receipt [09:03:25]json_value_free [09:03:25]json_value_free done [09:03:25]process_json_proto returns [09:03:25]Send response to host [09:03:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164846,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [09:03:25]free response buf [09:03:25]execute_script done [09:03:25]execute_script returns [09:03:25]free content buf [09:03:25]Sock 9.Close socket [09:03:25]Sock 9.Thread stoped [09:03:29]accept exits with 8 [09:03:29]New connection [09:03:29]New thread 3067428196 created [09:03:29]Thread 3067571556 joined [09:03:29]Waiting for new connection... [09:03:29] Sock 8.Parse request [09:03:29]Sock 8.Check first char [09:03:29]Sock 8.First char is OK [09:03:29]request: POST /json_proto HTTP/1.0 [09:03:29]Method: POST [09:03:29]URL: /json_proto [09:03:29]Method is POST - this is cgi request [09:03:29]url: /json_proto [09:03:29]query_string will be loaded in cgi processing [09:03:29]execute_cgi json_proto POST (null) [09:03:29]execute_cgi path=json_proto method=POST [09:03:29]POST find Content-Length [09:03:29]Host: 172.17.56.4:8080 [09:03:29]Content-Length: 677 [09:03:29]Content-Type: application/json [09:03:29] [09:03:29]POST finish read [09:03:29]Found Content-Length = 677 [09:03:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458943", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:03:29]execute_script... [09:03: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)458943", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:03:29]POST & json_proto [09:03:29]process_json_proto [09:03:29]json parsed OK: [09:03:29]protocol is kg_v1.0 [09:03:29]action value=close_receipt [09:03:29]process_action close_receipt [09:03:29]cmd_close_receipt [09:03:29]MH_GetDate [09:03:29]Write to MH i2c: F0 00 00 3E 0E 3B [09:03:29]Write i2c OK [09:03:29]MH_I2C_Read... [09:03:29]Read from MH i2c: F0 [09:03:29]MH_I2C_Read... [09:03:29]Read from MH i2c: F0 09 00 [09:03:29]MH_I2C_Read... [09:03:29]Read from MH i2c: F0 09 00 3E 0E 00 63 94 93 66 C9 DC B2 64 EF [09:03:29]GetLastDocTimeStamp 1720947803 [09:03:29]current date 1720947811 [09:03:29]FM_GetShiftState [09:03:29]SAM_PROTO_GetShiftState [09:03:29]wFMCommunicate request_size=4 [09:03:29]MH_SAM_APDU [09:03:29]CAPDU: 80 13 01 00 [09:03:29]Write to MH i2c: E2 08 00 3F 0E 80 13 01 00 00 00 00 00 CA [09:03:29]Write i2c OK [09:03:29]MH_I2C_Read... [09:03:29]OFD Sender: No OFD packet to send [09:03:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:29]Read from MH i2c: E2 [09:03:29]MH_I2C_Read... [09:03:29]Read from MH i2c: E2 0E 00 [09:03:29]MH_I2C_Read... [09:03:29]Read from MH i2c: E2 0E 00 3F 0E 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 4A [09:03:29]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [09:03:29]wFMCommunicate OK [09:03:29]SAM_PROTO_GetShiftState done [09:03:29]FM_GetShiftState done [09:03:29]opened in 1720917342 [09:03:29]opened+sec_in_day 1721003742 [09:03:29]quantity*price = 40006 [09:03:29]sum+1 = 40007 [09:03:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 45 14.07.2024 09:03 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164847 ФПД: 19663753782768 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T090331&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164847&fm=19663753782768&tin=02508201610067®Number=0000000000090829&sum=40000 [09:03:30]StoreToDocumentArchive [09:03:30]shift 447 fd 164847 [09:03:30]save to /storage/0447/doc_00164847 [09:03:30]save last doc name /storage/0447/doc_00164847 to /storage/kkm_last_doc_name [09:03:30]save OK [09:03:30]Clear old archive folders... [09:03:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:03:30]tlvbuf is 01640C30 [09:03:30]SAM_PROTO_ClearQueue [09:03:30]wFMCommunicate request_size=4 [09:03:30]MH_SAM_APDU [09:03:30]CAPDU: 80 09 00 00 [09:03:30]Write to MH i2c: E2 08 00 4C 0E 80 09 00 00 00 00 00 00 CC [09:03:30]Write i2c OK [09:03:30]MH_I2C_Read... [09:03:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:03:30]Read from MH i2c: E2 [09:03:30]MH_I2C_Read... [09:03:30]Read from MH i2c: E2 03 00 [09:03:30]MH_I2C_Read... [09:03:30]Read from MH i2c: E2 03 00 4C 0E 00 90 00 CE [09:03:30]RAPDU: 90 00 [09:03:30]wFMCommunicate OK [09:03:30]SAM_PROTO_ClearQueue done [09:03:30]KKMCreateOFDPacket [09:03:30]OFDProtocolAddRootSTLVToBuf [09:03:30]FM_MakeSignedData [09:03:30]FM_MakeSignedData [09:03:30]SAM_PROTO_SignData [09:03:30]wFMCommunicate request_size=4 [09:03:30]MH_SAM_APDU [09:03:30]CAPDU: 80 0D 01 02 [09:03:30]Write to MH i2c: E2 08 00 4D 0E 80 0D 01 02 00 00 00 00 D4 [09:03:30]Write i2c OK [09:03:30]MH_I2C_Read... [09:03:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:03:30]Read from MH i2c: E2 [09:03:30]MH_I2C_Read... [09:03:30]Read from MH i2c: E2 03 00 [09:03:30]MH_I2C_Read... [09:03:30]Read from MH i2c: E2 03 00 4D 0E 00 90 00 CF [09:03:30]RAPDU: 90 00 [09:03:30]wFMCommunicate OK [09:03:30]wFMCommunicate request_size=255 [09:03:30]MH_SAM_APDU [09:03:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 2D 00 00 00 F4 03 04 00 63 94 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EF 83 02 00 35 04 06 00 11 [09:03:30]Write to MH i2c: E2 02 01 4E 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 2D 00 00 00 F4 03 04 00 63 94 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EF 83 02 00 35 04 06 00 11 00 00 8F [09:03:30]Write i2c OK [09:03:30]MH_I2C_Read... [09:03:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:30]Read from MH i2c: E2 [09:03:30]MH_I2C_Read... [09:03:30]Read from MH i2c: E2 03 00 [09:03:30]MH_I2C_Read... [09:03:30]Read from MH i2c: E2 03 00 4E 0E 00 90 00 D0 [09:03:30]RAPDU: 90 00 [09:03:30]wFMCommunicate OK [09:03:30]wFMCommunicate request_size=10 [09:03:30]MH_SAM_APDU [09:03:30]CAPDU: 80 0D 02 02 05 E2 53 0F 25 F0 [09:03:30]Write to MH i2c: E2 0D 00 4F 0E 80 0D 02 02 05 00 E2 53 0F 25 F0 00 00 3A [09:03:30]Write i2c OK [09:03:30]MH_I2C_Read... [09:03:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:30]Read from MH i2c: E2 [09:03:30]MH_I2C_Read... [09:03:30]Read from MH i2c: E2 03 00 [09:03:30]MH_I2C_Read... [09:03:30]Read from MH i2c: E2 03 00 4F 0E 00 90 00 D1 [09:03:30]RAPDU: 90 00 [09:03:30]wFMCommunicate OK [09:03:30]wFMCommunicate request_size=4 [09:03:30]MH_SAM_APDU [09:03:30]CAPDU: 80 0D 03 02 [09:03:30]Write to MH i2c: E2 08 00 50 0E 80 0D 03 02 00 00 00 00 D9 [09:03:30]Write i2c OK [09:03:30]MH_I2C_Read... [09:03:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:03:30]Read from MH i2c: E2 [09:03:30]MH_I2C_Read... [09:03:30]Read from MH i2c: E2 0B 00 [09:03:30]MH_I2C_Read... [09:03:30]Read from MH i2c: E2 0B 00 50 0E 00 DF 0B EE F9 BD 86 46 E6 90 00 1A [09:03:30]RAPDU: DF 0B EE F9 BD 86 46 E6 90 00 [09:03:30]wFMCommunicate OK [09:03:30]SAM_PROTO_SignData done [09:03:30]FM_MakeSignedData done [09:03:30]CreateOFDProtocolMessage [09:03:30]wFMCommunicate request_size=4 [09:03:30]MH_SAM_APDU [09:03:30]CAPDU: 80 11 00 00 [09:03:30]Write to MH i2c: E2 08 00 51 0E 80 11 00 00 00 00 00 00 D9 [09:03:30]Write i2c OK [09:03:30]MH_I2C_Read... [09:03:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:30]Read from MH i2c: E2 [09:03:30]MH_I2C_Read... [09:03:30]Read from MH i2c: E2 17 00 [09:03:30]MH_I2C_Read... [09:03:30]Read from MH i2c: E2 17 00 51 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 2F [09:03:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:03:30]wFMCommunicate OK [09:03:30]CreateOFDProtocolMessage done [09:03:30]OFDSenderStorePacket 164847 [09:03:30]StoreOFDPacket docnum=164847 [09:03:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D1 72 07 01 62 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 2D 00 00 00 F4 03 04 00 63 94 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EF 83 02 00 35 04 06 00 11 E2 53 0F 25 F0 DF 0B EE F9 BD 86 46 E6 [09:03:30]CheckFolder [09:03:30]dirname=/storage/ofd_packets [09:03:30]CheckFolder done [09:03:30]ProducePacketName [09:03:30]name=ofd_packets/00164847 [09:03:30]NVStorageSaveData ofd_packets/00164847 [09:03:30]File name is /storage/ofd_packets/00164847 [09:03:30]Write 301 bytes [09:03:30]NVStorageSaveData done [09:03:30]OFDSenderStorePacket done [09:03:30]KKMCreateOFDPacket done [09:03:30]NVStorageSaveData kkm_last_timestamp [09:03:30]File name is /storage/kkm_last_timestamp [09:03:30]Write 4 bytes [09:03:30]NVStorageSaveData done [09:03:30]ExternCall_PrintAddStr [09:03:30]wPrintStart [09:03:30]Write to MH i2c: 01 00 00 52 0E 60 [09:03:30]Write i2c OK [09:03:30]MH_I2C_Read... [09:03:30]Read from MH i2c: 01 [09:03:30]MH_I2C_Read... [09:03:30]Read from MH i2c: 01 07 00 [09:03:30]MH_I2C_Read... [09:03:30]Read from MH i2c: 01 07 00 52 0E 00 00 00 00 00 FF 0F 75 [09:03:30]RasterBufferAndPrint [09:03:30]line Счет N : (1)458943 [09:03:30]line ИНН: 02508201610067 [09:03:30]line Контрольно-Кассовый Чек [09:03:30]line ПРОДАЖА [09:03:30]line ТРК (МРК, ГНК) : 22 [09:03:30]line Товар: 2710124130 [09:03:30]line Аи-92-К-5 [09:03:30]line 6.080 * 65.80 [09:03:30]line = 400.06 [09:03:30]line НДС 12% НСП 1% [09:03:30]line > о реализуемом товаре [09:03:30]line ОКРУГЛЕНИЕ: -0.06 [09:03:30]line ИТОГО: 400.00 [09:03:30]line Внесено: 400.00 [09:03:30]line СДАЧА: 0.00 [09:03:30]line НСП 1% : 3.54 [09:03:30]line НДС 12% : 42.48 [09:03:30]line Наличными: 400.00 [09:03:30]line Безнал.: 0.00 [09:03:30]line Место: АЗС № 72 "Партнер Нефть" [09:03:30]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:03:30]line СНО: Общий режим [09:03:30]line Чек 45 14.07.2024 09:03 [09:03:30]line Смена: 447 ФФД: 1.0 [09:03:30]line ЗНМ: 0300000160 [09:03:30]line РНМ: 0000000000090829 [09:03:30]line Версия ККМ: 001 [09:03:30]line ФМ: 0000000000874718 [09:03:30]line ФД: 164847 [09:03:30]line ФПД: 19663753782768 [09:03:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T090331&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164847&fm=19663753782768&tin=02508201610067®Number=0000000000090829&sum=40000 [09:03:30]written 0, free lines is 4095 [09:03:30]OFD Sender: Processing packet 164847 [packets to send 104, broken 103] [09:03:30]ProducePacketName [09:03:30]name=ofd_packets/00164847 [09:03:30]OFD Sender: To server: pG, [09:03:30]CommunicateWithHost lk.salyk.kg:30040 [09:03:30]ConnectInit lk.salyk.kg [09:03:30]Connected sock=10 [09:03:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D1 72 07 01 62 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 2D 00 00 00 F4 03 04 00 63 94 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EF 83 02 00 35 04 06 00 11 E2 53 0F 25 F0 DF 0B EE F9 BD 86 46 E6 [09:03:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 C3 F6 47 00 ED 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 38 37 34 37 31 38 10 04 04 00 EF 83 02 00 F4 03 04 00 F1 3A 93 66 B6 04 01 00 00 26 8E 99 C4 95 66 4B F5 [09:03:31]CommunicateWithHost err = 0 [09:03:31]CheckOFDResponse [09:03:31]1017 (14) - 77093643461234 [09:03:31]1041 (16) - 0000000000874718 [09:03:31]1040 (4) - 164847 [09:03:31]1012 (4) - 14.07.2024 02:41 [09:03:31]1206 (1) - 0 [09:03:31]OFD Sender: Remove packet 164847 [09:03:31]ProducePacketName [09:03:31]name=ofd_packets/00164847 [09:03:31]NVStorageDeleteData [09:03:31]Write to MH i2c: 01 00 00 7C 0E 8A [09:03:31]Write i2c OK [09:03:31]MH_I2C_Read... [09:03:31]Read from MH i2c: 01 [09:03:31]MH_I2C_Read... [09:03:31]Read from MH i2c: 01 07 00 [09:03:31]MH_I2C_Read... [09:03:31]Read from MH i2c: 01 07 00 7C 0E 00 00 00 00 00 1E 0D BC [09:03:31]RasterBufferAndPrint [09:03:31]line [09:03:31]line [09:03:31]line [09:03:31]line [09:03:31]line [09:03:31]written 0, free lines is 3369 [09:03:31]MH_Cut [09:03:31]Write to MH i2c: D1 01 00 83 0E 01 63 [09:03:31]Write i2c OK [09:03:31]MH_I2C_Read... [09:03:31]Read from MH i2c: D1 [09:03:31]MH_I2C_Read... [09:03:31]Read from MH i2c: D1 01 00 [09:03:31]MH_I2C_Read... [09:03:31]Read from MH i2c: D1 01 00 83 0E 00 62 [09:03:31]Write to MH i2c: 01 00 00 84 0E 92 [09:03:31]Write i2c OK [09:03:31]MH_I2C_Read... [09:03:31]OFD Sender: No OFD packet to send [09:03:31]*** Cut start [09:03:31]*** Partial cut [09:03:31]*** CUTSNS_PIN = 1 [09:03:31]*** CUTSNS_PIN = 0 [09:03:32]*** Brake cut motor [09:03:32]Read from MH i2c: 01 [09:03:32]MH_I2C_Read... [09:03:32]*** Stop cut motor [09:03:32]*** Cut end [09:03:32]Read from MH i2c: 01 07 00 [09:03:32]MH_I2C_Read... [09:03:32]Read from MH i2c: 01 07 00 84 0E 00 00 00 00 00 FF 0F A7 [09:03:32]process_action close_receipt done [09:03:32]requested_data is exist [09:03:32]produce_requested_data [09:03:32]requested_item fm.sn is exist - process it [09:03:32]wFMCommunicate request_size=4 [09:03:32]MH_SAM_APDU [09:03:32]CAPDU: 80 11 00 00 [09:03:32]Write to MH i2c: E2 08 00 85 0E 80 11 00 00 00 00 00 00 0D [09:03:32]Write i2c OK [09:03:32]MH_I2C_Read... [09:03:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:32]Read from MH i2c: E2 [09:03:32]MH_I2C_Read... [09:03:32]Read from MH i2c: E2 17 00 [09:03:32]MH_I2C_Read... [09:03:32]Read from MH i2c: E2 17 00 85 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 63 [09:03:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:03:32]wFMCommunicate OK [09:03:32]requested_item fd.num is exist - process it [09:03:32]SAM_PROTO_GetFieldsCounters [09:03:32]wFMCommunicate request_size=4 [09:03:32]MH_SAM_APDU [09:03:32]CAPDU: 80 13 00 00 [09:03:32]Write to MH i2c: E2 08 00 86 0E 80 13 00 00 00 00 00 00 10 [09:03:32]Write i2c OK [09:03:32]MH_I2C_Read... [09:03:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:03:32]Read from MH i2c: E2 [09:03:32]MH_I2C_Read... [09:03:32]Read from MH i2c: E2 62 00 [09:03:32]MH_I2C_Read... [09:03:32]Read from MH i2c: E2 62 00 86 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 EF 83 02 00 0E 04 04 00 BF 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 F2 [09:03:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 EF 83 02 00 0E 04 04 00 BF 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 [09:03:32]wFMCommunicate OK [09:03:32]SAM_PROTO_GetFieldsCounters done [09:03:32]requested_item shift.num is exist - process it [09:03:32]requested_item shift.opened is exist - process it [09:03:32]req_shift_opened [09:03:32]FM_GetShiftState [09:03:32]SAM_PROTO_GetShiftState [09:03:32]wFMCommunicate request_size=4 [09:03:32]MH_SAM_APDU [09:03:32]CAPDU: 80 13 01 00 [09:03:32]Write to MH i2c: E2 08 00 87 0E 80 13 01 00 00 00 00 00 12 [09:03:32]Write i2c OK [09:03:32]MH_I2C_Read... [09:03:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:32]Read from MH i2c: E2 [09:03:32]MH_I2C_Read... [09:03:32]Read from MH i2c: E2 0E 00 [09:03:32]MH_I2C_Read... [09:03:32]Read from MH i2c: E2 0E 00 87 0E 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 92 [09:03:32]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [09:03:32]wFMCommunicate OK [09:03:32]SAM_PROTO_GetShiftState done [09:03:32]FM_GetShiftState done [09:03:32]req_shift_opened done [09:03:32]requested_item shift.open_date is exist - process it [09:03:32]req_shift_open_date [09:03:32]req_shift_open_date done [09:03:32]produce_requested_data done [09:03:32]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164847,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [09:03:32]process_action_free close_receipt [09:03:32]json_value_free [09:03:32]json_value_free done [09:03:32]process_json_proto returns [09:03:32]Send response to host [09:03:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164847,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [09:03:32]free response buf [09:03:32]execute_script done [09:03:32]execute_script returns [09:03:32]free content buf [09:03:32]Sock 8.Close socket [09:03:32]Sock 8.Thread stoped [09:03:36]OFD Sender: No OFD packet to send [09:03:41]OFD Sender: No OFD packet to send [09:03:46]OFD Sender: No OFD packet to send [09:03:51]OFD Sender: No OFD packet to send [09:03:56]OFD Sender: No OFD packet to send [09:04:01]OFD Sender: No OFD packet to send [09:04:06]OFD Sender: No OFD packet to send [09:04:11]OFD Sender: No OFD packet to send [09:04:16]OFD Sender: No OFD packet to send [09:04:21]OFD Sender: No OFD packet to send [09:04:26]OFD Sender: No OFD packet to send [09:04:31]OFD Sender: No OFD packet to send [09:04:36]OFD Sender: No OFD packet to send [09:04:41]OFD Sender: No OFD packet to send [09:04:46]OFD Sender: No OFD packet to send [09:04:51]OFD Sender: No OFD packet to send [09:04:56]OFD Sender: No OFD packet to send [09:05:01]OFD Sender: No OFD packet to send [09:05:06]OFD Sender: No OFD packet to send [09:05:11]OFD Sender: No OFD packet to send [09:05:16]OFD Sender: No OFD packet to send [09:05:21]OFD Sender: No OFD packet to send [09:05:26]OFD Sender: No OFD packet to send [09:05:31]OFD Sender: No OFD packet to send [09:05:36]OFD Sender: No OFD packet to send [09:05:41]OFD Sender: No OFD packet to send [09:05:46]OFD Sender: No OFD packet to send [09:05:51]OFD Sender: No OFD packet to send [09:05:56]OFD Sender: No OFD packet to send [09:06:01]OFD Sender: No OFD packet to send [09:06:06]OFD Sender: No OFD packet to send [09:06:11]OFD Sender: No OFD packet to send [09:06:16]OFD Sender: No OFD packet to send [09:06:21]OFD Sender: No OFD packet to send [09:06:26]OFD Sender: No OFD packet to send [09:06:31]OFD Sender: No OFD packet to send [09:06:36]OFD Sender: No OFD packet to send [09:06:41]OFD Sender: No OFD packet to send [09:06:46]OFD Sender: No OFD packet to send [09:06:51]OFD Sender: No OFD packet to send [09:06:56]OFD Sender: No OFD packet to send [09:07:01]OFD Sender: No OFD packet to send [09:07:06]OFD Sender: No OFD packet to send [09:07:11]OFD Sender: No OFD packet to send [09:07:16]OFD Sender: No OFD packet to send [09:07:21]OFD Sender: No OFD packet to send [09:07:26]OFD Sender: No OFD packet to send [09:07:31]OFD Sender: No OFD packet to send [09:07:36]OFD Sender: No OFD packet to send [09:07:41]OFD Sender: No OFD packet to send [09:07:46]OFD Sender: No OFD packet to send [09:07:51]OFD Sender: No OFD packet to send [09:07:56]OFD Sender: No OFD packet to send [09:08:01]OFD Sender: No OFD packet to send [09:08:06]OFD Sender: No OFD packet to send [09:08:11]OFD Sender: No OFD packet to send [09:08:16]OFD Sender: No OFD packet to send [09:08:21]OFD Sender: No OFD packet to send [09:08:26]OFD Sender: No OFD packet to send [09:08:31]OFD Sender: No OFD packet to send [09:08:36]accept exits with 9 [09:08:36]New connection [09:08:36]New thread 3067571556 created [09:08:36]Thread 3067428196 joined [09:08:36]Waiting for new connection... [09:08:36] Sock 9.Parse request [09:08:36]Sock 9.Check first char [09:08:36]Sock 9.First char is OK [09:08:36]request: POST /json_proto HTTP/1.0 [09:08:36]Method: POST [09:08:36]URL: /json_proto [09:08:36]Method is POST - this is cgi request [09:08:36]url: /json_proto [09:08:36]query_string will be loaded in cgi processing [09:08:36]execute_cgi json_proto POST (null) [09:08:36]execute_cgi path=json_proto method=POST [09:08:36]POST find Content-Length [09:08:36]Host: 172.17.56.4:8080 [09:08:36]Content-Length: 678 [09:08:36]Content-Type: application/json [09:08:36] [09:08:36]POST finish read [09:08:36]Found Content-Length = 678 [09:08:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458944", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 11.400, "sum" : 750.12, "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" ] } } [09:08:36]execute_script... [09:08: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)458944", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 11.400, "sum" : 750.12, "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" ] } } [09:08:36]POST & json_proto [09:08:36]process_json_proto [09:08:36]json parsed OK: [09:08:36]protocol is kg_v1.0 [09:08:36]action value=close_receipt [09:08:36]process_action close_receipt [09:08:36]cmd_close_receipt [09:08:36]MH_GetDate [09:08:36]Write to MH i2c: F0 00 00 88 0E 85 [09:08:36]Write i2c OK [09:08:36]MH_I2C_Read... [09:08:36]Read from MH i2c: F0 [09:08:36]MH_I2C_Read... [09:08:36]Read from MH i2c: F0 09 00 [09:08:36]MH_I2C_Read... [09:08:36]Read from MH i2c: F0 09 00 88 0E 00 96 95 93 66 C9 DC B2 64 6D [09:08:36]GetLastDocTimeStamp 1720947811 [09:08:36]current date 1720948118 [09:08:36]FM_GetShiftState [09:08:36]SAM_PROTO_GetShiftState [09:08:36]wFMCommunicate request_size=4 [09:08:36]MH_SAM_APDU [09:08:36]CAPDU: 80 13 01 00 [09:08:36]Write to MH i2c: E2 08 00 89 0E 80 13 01 00 00 00 00 00 14 [09:08:36]Write i2c OK [09:08:36]MH_I2C_Read... [09:08:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:36]Read from MH i2c: E2 [09:08:36]MH_I2C_Read... [09:08:36]Read from MH i2c: E2 0E 00 [09:08:36]MH_I2C_Read... [09:08:36]Read from MH i2c: E2 0E 00 89 0E 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 94 [09:08:36]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [09:08:36]wFMCommunicate OK [09:08:36]SAM_PROTO_GetShiftState done [09:08:36]FM_GetShiftState done [09:08:36]opened in 1720917342 [09:08:36]opened+sec_in_day 1721003742 [09:08:36]quantity*price = 75012 [09:08:36]sum+1 = 75013 [09:08:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 750.00 Внесено: 750.00 СДАЧА: 0.00 НСП 1% : 6.64 НДС 12% : 79.66 Наличными: 750.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 46 14.07.2024 09:08 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164848 ФПД: 105673301567848 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T090838&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164848&fm=105673301567848&tin=02508201610067®Number=0000000000090829&sum=75000 [09:08:37]StoreToDocumentArchive [09:08:37]shift 447 fd 164848 [09:08:37]save to /storage/0447/doc_00164848 [09:08:37]save last doc name /storage/0447/doc_00164848 to /storage/kkm_last_doc_name [09:08:37]save OK [09:08:37]Clear old archive folders... [09:08:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:08:37]tlvbuf is 01657800 [09:08:37]SAM_PROTO_ClearQueue [09:08:37]wFMCommunicate request_size=4 [09:08:37]MH_SAM_APDU [09:08:37]CAPDU: 80 09 00 00 [09:08:37]Write to MH i2c: E2 08 00 96 0E 80 09 00 00 00 00 00 00 16 [09:08:37]Write i2c OK [09:08:37]MH_I2C_Read... [09:08:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:08:37]Read from MH i2c: E2 [09:08:37]MH_I2C_Read... [09:08:37]Read from MH i2c: E2 03 00 [09:08:37]MH_I2C_Read... [09:08:37]Read from MH i2c: E2 03 00 96 0E 00 90 00 18 [09:08:37]RAPDU: 90 00 [09:08:37]wFMCommunicate OK [09:08:37]SAM_PROTO_ClearQueue done [09:08:37]KKMCreateOFDPacket [09:08:37]OFDProtocolAddRootSTLVToBuf [09:08:37]FM_MakeSignedData [09:08:37]FM_MakeSignedData [09:08:37]SAM_PROTO_SignData [09:08:37]wFMCommunicate request_size=4 [09:08:37]MH_SAM_APDU [09:08:37]CAPDU: 80 0D 01 02 [09:08:37]Write to MH i2c: E2 08 00 97 0E 80 0D 01 02 00 00 00 00 1E [09:08:37]Write i2c OK [09:08:37]MH_I2C_Read... [09:08:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:08:37]Read from MH i2c: E2 [09:08:37]MH_I2C_Read... [09:08:37]Read from MH i2c: E2 03 00 [09:08:37]MH_I2C_Read... [09:08:37]Read from MH i2c: E2 03 00 97 0E 00 90 00 19 [09:08:37]RAPDU: 90 00 [09:08:37]wFMCommunicate OK [09:08:37]wFMCommunicate request_size=255 [09:08:37]MH_SAM_APDU [09:08:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 2C 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 04 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 2E 00 00 00 F4 03 04 00 96 95 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F0 83 02 00 35 04 06 00 60 [09:08:37]Write to MH i2c: E2 02 01 98 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 2C 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 04 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 2E 00 00 00 F4 03 04 00 96 95 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F0 83 02 00 35 04 06 00 60 00 00 D1 [09:08:37]Write i2c OK [09:08:37]MH_I2C_Read... [09:08:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:38]Read from MH i2c: E2 [09:08:38]MH_I2C_Read... [09:08:38]Read from MH i2c: E2 03 00 [09:08:38]MH_I2C_Read... [09:08:38]Read from MH i2c: E2 03 00 98 0E 00 90 00 1A [09:08:38]RAPDU: 90 00 [09:08:38]wFMCommunicate OK [09:08:38]wFMCommunicate request_size=10 [09:08:38]MH_SAM_APDU [09:08:38]CAPDU: 80 0D 02 02 05 1B FB 9A 29 68 [09:08:38]Write to MH i2c: E2 0D 00 99 0E 80 0D 02 02 05 00 1B FB 9A 29 68 00 00 6C [09:08:38]Write i2c OK [09:08:38]MH_I2C_Read... [09:08:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:38]Read from MH i2c: E2 [09:08:38]MH_I2C_Read... [09:08:38]Read from MH i2c: E2 03 00 [09:08:38]MH_I2C_Read... [09:08:38]Read from MH i2c: E2 03 00 99 0E 00 90 00 1B [09:08:38]RAPDU: 90 00 [09:08:38]wFMCommunicate OK [09:08:38]wFMCommunicate request_size=4 [09:08:38]MH_SAM_APDU [09:08:38]CAPDU: 80 0D 03 02 [09:08:38]Write to MH i2c: E2 08 00 9A 0E 80 0D 03 02 00 00 00 00 23 [09:08:38]Write i2c OK [09:08:38]MH_I2C_Read... [09:08:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:08:38]Read from MH i2c: E2 [09:08:38]MH_I2C_Read... [09:08:38]Read from MH i2c: E2 0B 00 [09:08:38]MH_I2C_Read... [09:08:38]Read from MH i2c: E2 0B 00 9A 0E 00 E2 13 C5 98 D4 44 22 73 90 00 23 [09:08:38]RAPDU: E2 13 C5 98 D4 44 22 73 90 00 [09:08:38]wFMCommunicate OK [09:08:38]SAM_PROTO_SignData done [09:08:38]FM_MakeSignedData done [09:08:38]CreateOFDProtocolMessage [09:08:38]wFMCommunicate request_size=4 [09:08:38]MH_SAM_APDU [09:08:38]CAPDU: 80 11 00 00 [09:08:38]Write to MH i2c: E2 08 00 9B 0E 80 11 00 00 00 00 00 00 23 [09:08:38]Write i2c OK [09:08:38]MH_I2C_Read... [09:08:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:38]Read from MH i2c: E2 [09:08:38]MH_I2C_Read... [09:08:38]Read from MH i2c: E2 17 00 [09:08:38]MH_I2C_Read... [09:08:38]Read from MH i2c: E2 17 00 9B 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 79 [09:08:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:08:38]wFMCommunicate OK [09:08:38]CreateOFDProtocolMessage done [09:08:38]OFDSenderStorePacket 164848 [09:08:38]StoreOFDPacket docnum=164848 [09:08:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 A8 AB 07 01 1E 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 35 FF 03 08 00 03 88 2C 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 04 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 2E 00 00 00 F4 03 04 00 96 95 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F0 83 02 00 35 04 06 00 60 1B FB 9A 29 68 E2 13 C5 98 D4 44 22 73 [09:08:38]CheckFolder [09:08:38]dirname=/storage/ofd_packets [09:08:38]CheckFolder done [09:08:38]ProducePacketName [09:08:38]name=ofd_packets/00164848 [09:08:38]NVStorageSaveData ofd_packets/00164848 [09:08:38]File name is /storage/ofd_packets/00164848 [09:08:38]Write 301 bytes [09:08:38]NVStorageSaveData done [09:08:38]OFDSenderStorePacket done [09:08:38]KKMCreateOFDPacket done [09:08:38]NVStorageSaveData kkm_last_timestamp [09:08:38]File name is /storage/kkm_last_timestamp [09:08:38]Write 4 bytes [09:08:38]NVStorageSaveData done [09:08:38]ExternCall_PrintAddStr [09:08:38]wPrintStart [09:08:38]Write to MH i2c: 01 00 00 9C 0E AA [09:08:38]Write i2c OK [09:08:38]MH_I2C_Read... [09:08:38]Read from MH i2c: 01 [09:08:38]MH_I2C_Read... [09:08:38]Read from MH i2c: 01 07 00 [09:08:38]MH_I2C_Read... [09:08:38]Read from MH i2c: 01 07 00 9C 0E 00 00 00 00 00 FF 0F BF [09:08:38]RasterBufferAndPrint [09:08:38]line Счет N : (1)458944 [09:08:38]line ИНН: 02508201610067 [09:08:38]line Контрольно-Кассовый Чек [09:08:38]line ПРОДАЖА [09:08:38]line ТРК (МРК, ГНК) : 22 [09:08:38]line Товар: 2710124130 [09:08:38]line Аи-92-К-5 [09:08:38]line 11.400 * 65.80 [09:08:38]line = 750.12 [09:08:38]line НДС 12% НСП 1% [09:08:38]line > о реализуемом товаре [09:08:38]line ОКРУГЛЕНИЕ: -0.12 [09:08:38]line ИТОГО: 750.00 [09:08:38]line Внесено: 750.00 [09:08:38]line СДАЧА: 0.00 [09:08:38]line НСП 1% : 6.64 [09:08:38]line НДС 12% : 79.66 [09:08:38]line Наличными: 750.00 [09:08:38]line Безнал.: 0.00 [09:08:38]line Место: АЗС № 72 "Партнер Нефть" [09:08:38]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:08:38]line СНО: Общий режим [09:08:38]line Чек 46 14.07.2024 09:08 [09:08:38]line Смена: 447 ФФД: 1.0 [09:08:38]line ЗНМ: 0300000160 [09:08:38]line РНМ: 0000000000090829 [09:08:38]line Версия ККМ: 001 [09:08:38]line ФМ: 0000000000874718 [09:08:38]line ФД: 164848 [09:08:38]line ФПД: 105673301567848 [09:08:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T090838&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164848&fm=105673301567848&tin=02508201610067®Number=0000000000090829&sum=75000 [09:08:38]OFD Sender: Processing packet 164848 [packets to send 104, broken 103] [09:08:38]ProducePacketName [09:08:38]name=ofd_packets/00164848 [09:08:38]OFD Sender: To server: pG, [09:08:38]CommunicateWithHost lk.salyk.kg:30040 [09:08:38]ConnectInit lk.salyk.kg [09:08:38]written 0, free lines is 4095 [09:08:38]Connected sock=10 [09:08:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 A8 AB 07 01 1E 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 35 FF 03 08 00 03 88 2C 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 04 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 2E 00 00 00 F4 03 04 00 96 95 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F0 83 02 00 35 04 06 00 60 1B FB 9A 29 68 E2 13 C5 98 D4 44 22 73 [09:08:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 A8 A2 47 00 57 E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F0 83 02 00 F4 03 04 00 25 3C 93 66 B6 04 01 00 00 0D E0 84 A2 E4 6A 37 28 [09:08:38]CommunicateWithHost err = 0 [09:08:38]CheckOFDResponse [09:08:38]1017 (14) - 77093643461234 [09:08:38]1041 (16) - 0000000000874718 [09:08:38]1040 (4) - 164848 [09:08:38]1012 (4) - 14.07.2024 02:47 [09:08:38]1206 (1) - 0 [09:08:38]OFD Sender: Remove packet 164848 [09:08:38]ProducePacketName [09:08:38]name=ofd_packets/00164848 [09:08:38]NVStorageDeleteData [09:08:38]Write to MH i2c: 01 00 00 C6 0E D4 [09:08:38]Write i2c OK [09:08:38]MH_I2C_Read... [09:08:38]Read from MH i2c: 01 [09:08:38]MH_I2C_Read... [09:08:38]Read from MH i2c: 01 07 00 [09:08:38]MH_I2C_Read... [09:08:38]Read from MH i2c: 01 07 00 C6 0E 00 00 00 00 00 03 0D EB [09:08:38]RasterBufferAndPrint [09:08:38]line [09:08:38]line [09:08:38]line [09:08:38]line [09:08:38]line [09:08:38]written 0, free lines is 3337 [09:08:38]MH_Cut [09:08:38]Write to MH i2c: D1 01 00 CD 0E 01 AD [09:08:38]Write i2c OK [09:08:38]MH_I2C_Read... [09:08:38]Read from MH i2c: D1 [09:08:38]MH_I2C_Read... [09:08:38]Read from MH i2c: D1 01 00 [09:08:38]MH_I2C_Read... [09:08:38]Read from MH i2c: D1 01 00 CD 0E 00 AC [09:08:38]Write to MH i2c: 01 00 00 CE 0E DC [09:08:38]Write i2c OK [09:08:38]MH_I2C_Read... [09:08:39]OFD Sender: No OFD packet to send [09:08:39]*** Cut start [09:08:39]*** Partial cut [09:08:39]*** CUTSNS_PIN = 1 [09:08:39]*** CUTSNS_PIN = 0 [09:08:39]*** Brake cut motor [09:08:40]Read from MH i2c: 01 [09:08:40]MH_I2C_Read... [09:08:40]*** Stop cut motor [09:08:40]*** Cut end [09:08:40]Read from MH i2c: 01 07 00 [09:08:40]MH_I2C_Read... [09:08:40]Read from MH i2c: 01 07 00 CE 0E 00 00 00 00 00 FF 0F F1 [09:08:40]process_action close_receipt done [09:08:40]requested_data is exist [09:08:40]produce_requested_data [09:08:40]requested_item fm.sn is exist - process it [09:08:40]wFMCommunicate request_size=4 [09:08:40]MH_SAM_APDU [09:08:40]CAPDU: 80 11 00 00 [09:08:40]Write to MH i2c: E2 08 00 CF 0E 80 11 00 00 00 00 00 00 57 [09:08:40]Write i2c OK [09:08:40]MH_I2C_Read... [09:08:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:40]Read from MH i2c: E2 [09:08:40]MH_I2C_Read... [09:08:40]Read from MH i2c: E2 17 00 [09:08:40]MH_I2C_Read... [09:08:40]Read from MH i2c: E2 17 00 CF 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 AD [09:08:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:08:40]wFMCommunicate OK [09:08:40]requested_item fd.num is exist - process it [09:08:40]SAM_PROTO_GetFieldsCounters [09:08:40]wFMCommunicate request_size=4 [09:08:40]MH_SAM_APDU [09:08:40]CAPDU: 80 13 00 00 [09:08:40]Write to MH i2c: E2 08 00 D0 0E 80 13 00 00 00 00 00 00 5A [09:08:40]Write i2c OK [09:08:40]MH_I2C_Read... [09:08:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:08:40]Read from MH i2c: E2 [09:08:40]MH_I2C_Read... [09:08:40]Read from MH i2c: E2 62 00 [09:08:40]MH_I2C_Read... [09:08:40]Read from MH i2c: E2 62 00 D0 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F0 83 02 00 0E 04 04 00 BF 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 40 [09:08:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F0 83 02 00 0E 04 04 00 BF 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 [09:08:40]wFMCommunicate OK [09:08:40]SAM_PROTO_GetFieldsCounters done [09:08:40]requested_item shift.num is exist - process it [09:08:40]requested_item shift.opened is exist - process it [09:08:40]req_shift_opened [09:08:40]FM_GetShiftState [09:08:40]SAM_PROTO_GetShiftState [09:08:40]wFMCommunicate request_size=4 [09:08:40]MH_SAM_APDU [09:08:40]CAPDU: 80 13 01 00 [09:08:40]Write to MH i2c: E2 08 00 D1 0E 80 13 01 00 00 00 00 00 5C [09:08:40]Write i2c OK [09:08:40]MH_I2C_Read... [09:08:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:40]Read from MH i2c: E2 [09:08:40]MH_I2C_Read... [09:08:40]Read from MH i2c: E2 0E 00 [09:08:40]MH_I2C_Read... [09:08:40]Read from MH i2c: E2 0E 00 D1 0E 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 DC [09:08:40]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [09:08:40]wFMCommunicate OK [09:08:40]SAM_PROTO_GetShiftState done [09:08:40]FM_GetShiftState done [09:08:40]req_shift_opened done [09:08:40]requested_item shift.open_date is exist - process it [09:08:40]req_shift_open_date [09:08:40]req_shift_open_date done [09:08:40]produce_requested_data done [09:08:40]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164848,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [09:08:40]process_action_free close_receipt [09:08:40]json_value_free [09:08:40]json_value_free done [09:08:40]process_json_proto returns [09:08:40]Send response to host [09:08:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164848,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [09:08:40]free response buf [09:08:40]execute_script done [09:08:40]execute_script returns [09:08:40]free content buf [09:08:40]Sock 9.Close socket [09:08:40]Sock 9.Thread stoped [09:08:44]OFD Sender: No OFD packet to send [09:08:49]OFD Sender: No OFD packet to send [09:08:54]OFD Sender: No OFD packet to send [09:08:59]OFD Sender: No OFD packet to send [09:09:04]OFD Sender: No OFD packet to send [09:09:09]OFD Sender: No OFD packet to send [09:09:14]OFD Sender: No OFD packet to send [09:09:19]OFD Sender: No OFD packet to send [09:09:24]OFD Sender: No OFD packet to send [09:09:29]OFD Sender: No OFD packet to send [09:09:34]OFD Sender: No OFD packet to send [09:09:39]OFD Sender: No OFD packet to send [09:09:44]OFD Sender: No OFD packet to send [09:09:49]OFD Sender: No OFD packet to send [09:09:54]OFD Sender: No OFD packet to send [09:09:59]OFD Sender: No OFD packet to send [09:10:04]OFD Sender: No OFD packet to send [09:10:09]OFD Sender: No OFD packet to send [09:10:14]OFD Sender: No OFD packet to send [09:10:19]OFD Sender: No OFD packet to send [09:10:24]OFD Sender: No OFD packet to send [09:10:29]OFD Sender: No OFD packet to send [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:44]OFD Sender: No OFD packet to send [09:11:49]OFD Sender: No OFD packet to send [09:11:54]OFD Sender: No OFD packet to send [09:11:59]OFD Sender: No OFD packet to send [09:12:04]OFD Sender: No OFD packet to send [09:12:09]OFD Sender: No OFD packet to send [09:12:14]OFD Sender: No OFD packet to send [09:12:19]OFD Sender: No OFD packet to send [09:12:24]OFD Sender: No OFD packet to send [09:12:29]OFD Sender: No OFD packet to send [09:12:34]OFD Sender: No OFD packet to send [09:12:39]OFD Sender: No OFD packet to send [09:12:44]OFD Sender: No OFD packet to send [09:12:49]OFD Sender: No OFD packet to send [09:12:54]OFD Sender: No OFD packet to send [09:12:59]OFD Sender: No OFD packet to send [09:13:04]OFD Sender: No OFD packet to send [09:13:09]OFD Sender: No OFD packet to send [09:13:14]OFD Sender: No OFD packet to send [09:13:19]OFD Sender: No OFD packet to send [09:13:24]OFD Sender: No OFD packet to send [09:13:29]OFD Sender: No OFD packet to send [09:13:34]OFD Sender: No OFD packet to send [09:13:39]OFD Sender: No OFD packet to send [09:13:44]OFD Sender: No OFD packet to send [09:13:49]OFD Sender: No OFD packet to send [09:13:54]OFD Sender: No OFD packet to send [09:13:59]OFD Sender: No OFD packet to send [09:14:04]OFD Sender: No OFD packet to send [09:14:09]OFD Sender: No OFD packet to send [09:14:14]OFD Sender: No OFD packet to send [09:14:19]OFD Sender: No OFD packet to send [09:14:24]OFD Sender: No OFD packet to send [09:14:29]OFD Sender: No OFD packet to send [09:14:34]OFD Sender: No OFD packet to send [09:14:39]OFD Sender: No OFD packet to send [09:14:44]OFD Sender: No OFD packet to send [09:14:49]OFD Sender: No OFD packet to send [09:14:54]OFD Sender: No OFD packet to send [09:14:59]OFD Sender: No OFD packet to send [09:15:04]OFD Sender: No OFD packet to send [09:15:09]OFD Sender: No OFD packet to send [09:15:14]OFD Sender: No OFD packet to send [09:15:19]OFD Sender: No OFD packet to send [09:15:24]OFD Sender: No OFD packet to send [09:15:29]OFD Sender: No OFD packet to send [09:15:34]OFD Sender: No OFD packet to send [09:15:39]OFD Sender: No OFD packet to send [09:15:44]OFD Sender: No OFD packet to send [09:15:49]OFD Sender: No OFD packet to send [09:15:54]OFD Sender: No OFD packet to send [09:15:59]OFD Sender: No OFD packet to send [09:16:04]OFD Sender: No OFD packet to send [09:16:09]OFD Sender: No OFD packet to send [09:16:14]OFD Sender: No OFD packet to send [09:16:19]OFD Sender: No OFD packet to send [09:16:24]OFD Sender: No OFD packet to send [09:16:29]OFD Sender: No OFD packet to send [09:16:34]OFD Sender: No OFD packet to send [09:16:39]OFD Sender: No OFD packet to send [09:16:44]OFD Sender: No OFD packet to send [09:16:49]OFD Sender: No OFD packet to send [09:16:54]OFD Sender: No OFD packet to send [09:16:59]OFD Sender: No OFD packet to send [09:17:04]OFD Sender: No OFD packet to send [09:17:09]OFD Sender: No OFD packet to send [09:17:14]OFD Sender: No OFD packet to send [09:17:19]OFD Sender: No OFD packet to send [09:17:24]OFD Sender: No OFD packet to send [09:17:29]OFD Sender: No OFD packet to send [09:17:34]OFD Sender: No OFD packet to send [09:17:39]OFD Sender: No OFD packet to send [09:17:44]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:40]OFD Sender: No OFD packet to send [09:18:45]OFD Sender: No OFD packet to send [09:18:50]OFD Sender: No OFD packet to send [09:18:55]OFD Sender: No OFD packet to send [09:19:00]OFD Sender: No OFD packet to send [09:19:05]OFD Sender: No OFD packet to send [09:19:10]OFD Sender: No OFD packet to send [09:19:15]OFD Sender: No OFD packet to send [09:19:20]OFD Sender: No OFD packet to send [09:19:25]OFD Sender: No OFD packet to send [09:19:30]OFD Sender: No OFD packet to send [09:19:35]OFD Sender: No OFD packet to send [09:19:40]OFD Sender: No OFD packet to send [09:19:45]OFD Sender: No OFD packet to send [09:19:50]OFD Sender: No OFD packet to send [09:19:55]OFD Sender: No OFD packet to send [09:20:00]OFD Sender: No OFD packet to send [09:20:05]OFD Sender: No OFD packet to send [09:20:10]OFD Sender: No OFD packet to send [09:20:15]OFD Sender: No OFD packet to send [09:20:20]OFD Sender: No OFD packet to send [09:20:25]OFD Sender: No OFD packet to send [09:20:30]OFD Sender: No OFD packet to send [09:20:35]OFD Sender: No OFD packet to send [09:20:40]OFD Sender: No OFD packet to send [09:20:45]OFD Sender: No OFD packet to send [09:20:50]OFD Sender: No OFD packet to send [09:20:55]OFD Sender: No OFD packet to send [09:21:00]OFD Sender: No OFD packet to send [09:21:05]OFD Sender: No OFD packet to send [09:21:10]OFD Sender: No OFD packet to send [09:21:15]OFD Sender: No OFD packet to send [09:21:20]OFD Sender: No OFD packet to send [09:21:25]OFD Sender: No OFD packet to send [09:21:30]OFD Sender: No OFD packet to send [09:21:35]OFD Sender: No OFD packet to send [09:21:40]OFD Sender: No OFD packet to send [09:21:45]OFD Sender: No OFD packet to send [09:21:50]OFD Sender: No OFD packet to send [09:21:55]OFD Sender: No OFD packet to send [09:22:00]OFD Sender: No OFD packet to send [09:22:05]OFD Sender: No OFD packet to send [09:22:10]OFD Sender: No OFD packet to send [09:22:15]OFD Sender: No OFD packet to send [09:22:20]OFD Sender: No OFD packet to send [09:22:25]OFD Sender: No OFD packet to send [09:22:30]OFD Sender: No OFD packet to send [09:22:35]OFD Sender: No OFD packet to send [09:22:40]OFD Sender: No OFD packet to send [09:22:45]OFD Sender: No OFD packet to send [09:22:50]OFD Sender: No OFD packet to send [09:22:55]OFD Sender: No OFD packet to send [09:23:00]OFD Sender: No OFD packet to send [09:23:05]OFD Sender: No OFD packet to send [09:23:10]OFD Sender: No OFD packet to send [09:23:15]OFD Sender: No OFD packet to send [09:23:20]OFD Sender: No OFD packet to send [09:23:25]OFD Sender: No OFD packet to send [09:23:30]OFD Sender: No OFD packet to send [09:23:35]OFD Sender: No OFD packet to send [09:23:40]OFD Sender: No OFD packet to send [09:23:45]OFD Sender: No OFD packet to send [09:23:50]OFD Sender: No OFD packet to send [09:23:55]OFD Sender: No OFD packet to send [09:24:00]OFD Sender: No OFD packet to send [09:24:05]OFD Sender: No OFD packet to send [09:24:10]OFD Sender: No OFD packet to send [09:24:15]OFD Sender: No OFD packet to send [09:24:20]OFD Sender: No OFD packet to send [09:24:25]OFD Sender: No OFD packet to send [09:24:30]OFD Sender: No OFD packet to send [09:24:35]OFD Sender: No OFD packet to send [09:24:40]OFD Sender: No OFD packet to send [09:24:45]OFD Sender: No OFD packet to send [09:24:50]OFD Sender: No OFD packet to send [09:24:52]accept exits with 8 [09:24:52]New connection [09:24:52]New thread 3067428196 created [09:24:52]Thread 3067571556 joined [09:24:52]Waiting for new connection... [09:24:52] Sock 8.Parse request [09:24:52]Sock 8.Check first char [09:24:52]Sock 8.First char is OK [09:24:52]request: POST /json_proto HTTP/1.0 [09:24:52]Method: POST [09:24:52]URL: /json_proto [09:24:52]Method is POST - this is cgi request [09:24:52]url: /json_proto [09:24:52]query_string will be loaded in cgi processing [09:24:52]execute_cgi json_proto POST (null) [09:24:52]execute_cgi path=json_proto method=POST [09:24:52]POST find Content-Length [09:24:52]Host: 172.17.56.4:8080 [09:24:52]Content-Length: 678 [09:24:52]Content-Type: application/json [09:24:52] [09:24:52]POST finish read [09:24:52]Found Content-Length = 678 [09:24:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458945", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.190, "sum" : 670.50, "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" ] } } [09:24:52]execute_script... [09:24: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)458945", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.190, "sum" : 670.50, "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" ] } } [09:24:52]POST & json_proto [09:24:52]process_json_proto [09:24:52]json parsed OK: [09:24:52]protocol is kg_v1.0 [09:24:52]action value=close_receipt [09:24:52]process_action close_receipt [09:24:52]cmd_close_receipt [09:24:52]MH_GetDate [09:24:52]Write to MH i2c: F0 00 00 D2 0E CF [09:24:52]Write i2c OK [09:24:52]MH_I2C_Read... [09:24:52]Read from MH i2c: F0 [09:24:52]MH_I2C_Read... [09:24:52]Read from MH i2c: F0 09 00 [09:24:52]MH_I2C_Read... [09:24:52]Read from MH i2c: F0 09 00 D2 0E 00 66 99 93 66 C9 DC B2 64 8B [09:24:52]GetLastDocTimeStamp 1720948118 [09:24:52]current date 1720949094 [09:24:52]FM_GetShiftState [09:24:52]SAM_PROTO_GetShiftState [09:24:52]wFMCommunicate request_size=4 [09:24:52]MH_SAM_APDU [09:24:52]CAPDU: 80 13 01 00 [09:24:52]Write to MH i2c: E2 08 00 D3 0E 80 13 01 00 00 00 00 00 5E [09:24:52]Write i2c OK [09:24:52]MH_I2C_Read... [09:24:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:24:52]Read from MH i2c: E2 [09:24:52]MH_I2C_Read... [09:24:52]Read from MH i2c: E2 0E 00 [09:24:52]MH_I2C_Read... [09:24:52]Read from MH i2c: E2 0E 00 D3 0E 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 DE [09:24:52]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [09:24:52]wFMCommunicate OK [09:24:52]SAM_PROTO_GetShiftState done [09:24:52]FM_GetShiftState done [09:24:52]opened in 1720917342 [09:24:52]opened+sec_in_day 1721003742 [09:24:52]quantity*price = 67050 [09:24:52]sum+1 = 67051 [09:24:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 670.00 Внесено: 670.00 СДАЧА: 0.00 НСП 1% : 5.93 НДС 12% : 71.20 Наличными: 670.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 47 14.07.2024 09:24 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164849 ФПД: 117001904245330 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T092454&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164849&fm=117001904245330&tin=02508201610067®Number=0000000000090829&sum=67000 [09:24:53]StoreToDocumentArchive [09:24:53]shift 447 fd 164849 [09:24:53]save to /storage/0447/doc_00164849 [09:24:53]save last doc name /storage/0447/doc_00164849 to /storage/kkm_last_doc_name [09:24:53]save OK [09:24:53]Clear old archive folders... [09:24:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:24:53]tlvbuf is 0163C9E0 [09:24:53]SAM_PROTO_ClearQueue [09:24:53]wFMCommunicate request_size=4 [09:24:53]MH_SAM_APDU [09:24:53]CAPDU: 80 09 00 00 [09:24:53]Write to MH i2c: E2 08 00 E0 0E 80 09 00 00 00 00 00 00 60 [09:24:53]Write i2c OK [09:24:53]MH_I2C_Read... [09:24:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:24:53]Read from MH i2c: E2 [09:24:53]MH_I2C_Read... [09:24:53]Read from MH i2c: E2 03 00 [09:24:53]MH_I2C_Read... [09:24:53]Read from MH i2c: E2 03 00 E0 0E 00 90 00 62 [09:24:53]RAPDU: 90 00 [09:24:53]wFMCommunicate OK [09:24:53]SAM_PROTO_ClearQueue done [09:24:53]KKMCreateOFDPacket [09:24:53]OFDProtocolAddRootSTLVToBuf [09:24:53]FM_MakeSignedData [09:24:53]FM_MakeSignedData [09:24:53]SAM_PROTO_SignData [09:24:53]wFMCommunicate request_size=4 [09:24:53]MH_SAM_APDU [09:24:53]CAPDU: 80 0D 01 02 [09:24:53]Write to MH i2c: E2 08 00 E1 0E 80 0D 01 02 00 00 00 00 68 [09:24:53]Write i2c OK [09:24:53]MH_I2C_Read... [09:24:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:24:53]Read from MH i2c: E2 [09:24:53]MH_I2C_Read... [09:24:53]Read from MH i2c: E2 03 00 [09:24:53]MH_I2C_Read... [09:24:53]Read from MH i2c: E2 03 00 E1 0E 00 90 00 63 [09:24:53]RAPDU: 90 00 [09:24:53]wFMCommunicate OK [09:24:53]wFMCommunicate request_size=255 [09:24:53]MH_SAM_APDU [09:24:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 EA 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 D0 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 2F 00 00 00 F4 03 04 00 66 99 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F1 83 02 00 35 04 06 00 6A [09:24:53]Write to MH i2c: E2 02 01 E2 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 EA 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 D0 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 2F 00 00 00 F4 03 04 00 66 99 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F1 83 02 00 35 04 06 00 6A 00 00 AB [09:24:53]Write i2c OK [09:24:53]MH_I2C_Read... [09:24:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:24:53]Read from MH i2c: E2 [09:24:53]MH_I2C_Read... [09:24:53]Read from MH i2c: E2 03 00 [09:24:53]MH_I2C_Read... [09:24:53]Read from MH i2c: E2 03 00 E2 0E 00 90 00 64 [09:24:53]RAPDU: 90 00 [09:24:53]wFMCommunicate OK [09:24:53]wFMCommunicate request_size=10 [09:24:53]MH_SAM_APDU [09:24:53]CAPDU: 80 0D 02 02 05 69 A0 F0 CA 52 [09:24:53]Write to MH i2c: E2 0D 00 E3 0E 80 0D 02 02 05 00 69 A0 F0 CA 52 00 00 8A [09:24:53]Write i2c OK [09:24:53]MH_I2C_Read... [09:24:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:24:53]Read from MH i2c: E2 [09:24:53]MH_I2C_Read... [09:24:53]Read from MH i2c: E2 03 00 [09:24:53]MH_I2C_Read... [09:24:53]Read from MH i2c: E2 03 00 E3 0E 00 90 00 65 [09:24:53]RAPDU: 90 00 [09:24:53]wFMCommunicate OK [09:24:53]wFMCommunicate request_size=4 [09:24:53]MH_SAM_APDU [09:24:53]CAPDU: 80 0D 03 02 [09:24:53]Write to MH i2c: E2 08 00 E4 0E 80 0D 03 02 00 00 00 00 6D [09:24:53]Write i2c OK [09:24:53]MH_I2C_Read... [09:24:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:24:53]Read from MH i2c: E2 [09:24:53]MH_I2C_Read... [09:24:53]Read from MH i2c: E2 0B 00 [09:24:53]MH_I2C_Read... [09:24:53]Read from MH i2c: E2 0B 00 E4 0E 00 ED BF 18 88 3E 67 1F C8 90 00 46 [09:24:53]RAPDU: ED BF 18 88 3E 67 1F C8 90 00 [09:24:53]wFMCommunicate OK [09:24:53]SAM_PROTO_SignData done [09:24:53]FM_MakeSignedData done [09:24:53]CreateOFDProtocolMessage [09:24:53]wFMCommunicate request_size=4 [09:24:53]MH_SAM_APDU [09:24:53]CAPDU: 80 11 00 00 [09:24:53]Write to MH i2c: E2 08 00 E5 0E 80 11 00 00 00 00 00 00 6D [09:24:53]Write i2c OK [09:24:53]MH_I2C_Read... [09:24:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:24:53]Read from MH i2c: E2 [09:24:53]MH_I2C_Read... [09:24:53]Read from MH i2c: E2 17 00 [09:24:53]MH_I2C_Read... [09:24:53]Read from MH i2c: E2 17 00 E5 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C3 [09:24:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:24:53]wFMCommunicate OK [09:24:53]CreateOFDProtocolMessage done [09:24:53]OFDSenderStorePacket 164849 [09:24:53]StoreOFDPacket docnum=164849 [09:24:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 0E 92 07 01 1E B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 EA 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 D0 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 2F 00 00 00 F4 03 04 00 66 99 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F1 83 02 00 35 04 06 00 6A 69 A0 F0 CA 52 ED BF 18 88 3E 67 1F C8 [09:24:53]CheckFolder [09:24:53]dirname=/storage/ofd_packets [09:24:53]CheckFolder done [09:24:53]ProducePacketName [09:24:53]name=ofd_packets/00164849 [09:24:53]NVStorageSaveData ofd_packets/00164849 [09:24:53]File name is /storage/ofd_packets/00164849 [09:24:53]Write 301 bytes [09:24:53]NVStorageSaveData done [09:24:53]OFDSenderStorePacket done [09:24:53]KKMCreateOFDPacket done [09:24:53]NVStorageSaveData kkm_last_timestamp [09:24:53]File name is /storage/kkm_last_timestamp [09:24:53]Write 4 bytes [09:24:53]NVStorageSaveData done [09:24:53]ExternCall_PrintAddStr [09:24:53]wPrintStart [09:24:53]Write to MH i2c: 01 00 00 E6 0E F4 [09:24:53]OFD Sender: Processing packet 164849 [packets to send 104, broken 103] [09:24:53]ProducePacketName [09:24:53]name=ofd_packets/00164849 [09:24:53]OFD Sender: To server: pG, [09:24:53]CommunicateWithHost lk.salyk.kg:30040 [09:24:53]ConnectInit lk.salyk.kg [09:24:53]Write i2c OK [09:24:53]MH_I2C_Read... [09:24:53]Read from MH i2c: 01 [09:24:53]MH_I2C_Read... [09:24:53]Read from MH i2c: 01 07 00 [09:24:53]MH_I2C_Read... [09:24:53]Read from MH i2c: 01 07 00 E6 0E 00 00 00 00 00 FF 0F 09 [09:24:53]RasterBufferAndPrint [09:24:53]line Счет N : (1)458945 [09:24:53]line ИНН: 02508201610067 [09:24:53]line Контрольно-Кассовый Чек [09:24:53]line ПРОДАЖА [09:24:53]line ТРК (МРК, ГНК) : 12 [09:24:53]line Товар: 2710124130 [09:24:53]line Аи-92-К-5 [09:24:53]line 10.190 * 65.80 [09:24:53]line = 670.50 [09:24:53]line НДС 12% НСП 1% [09:24:53]line > о реализуемом товаре [09:24:53]line ОКРУГЛЕНИЕ: -0.50 [09:24:53]line ИТОГО: 670.00 [09:24:53]line Внесено: 670.00 [09:24:53]line СДАЧА: 0.00 [09:24:53]line НСП 1% : 5.93 [09:24:53]line НДС 12% : 71.20 [09:24:53]line Наличными: 670.00 [09:24:53]line Безнал.: 0.00 [09:24:53]line Место: АЗС № 72 "Партнер Нефть" [09:24:53]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:24:53]line СНО: Общий режим [09:24:53]line Чек 47 14.07.2024 09:24 [09:24:53]line Смена: 447 ФФД: 1.0 [09:24:53]line ЗНМ: 0300000160 [09:24:53]line РНМ: 0000000000090829 [09:24:53]line Версия ККМ: 001 [09:24:53]line ФМ: 0000000000874718 [09:24:53]line ФД: 164849 [09:24:53]line ФПД: 117001904245330 [09:24:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T092454&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164849&fm=117001904245330&tin=02508201610067®Number=0000000000090829&sum=67000 [09:24:54]Connected sock=10 [09:24:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 0E 92 07 01 1E B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 EA 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 D0 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 2F 00 00 00 F4 03 04 00 66 99 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F1 83 02 00 35 04 06 00 6A 69 A0 F0 CA 52 ED BF 18 88 3E 67 1F C8 [09:24:54]written 0, free lines is 4095 [09:24:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 11 33 47 00 6F 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F1 83 02 00 F4 03 04 00 F4 3F 93 66 B6 04 01 00 00 28 D2 FC D0 C3 02 2A 89 [09:24:54]CommunicateWithHost err = 0 [09:24:54]CheckOFDResponse [09:24:54]1017 (14) - 77093643461234 [09:24:54]1041 (16) - 0000000000874718 [09:24:54]1040 (4) - 164849 [09:24:54]1012 (4) - 14.07.2024 03:03 [09:24:54]1206 (1) - 0 [09:24:54]OFD Sender: Remove packet 164849 [09:24:54]ProducePacketName [09:24:54]name=ofd_packets/00164849 [09:24:54]NVStorageDeleteData [09:24:54]Write to MH i2c: 01 00 00 10 0F 1F [09:24:54]Write i2c OK [09:24:54]MH_I2C_Read... [09:24:54]Read from MH i2c: 01 [09:24:54]MH_I2C_Read... [09:24:54]Read from MH i2c: 01 07 00 [09:24:54]MH_I2C_Read... [09:24:54]Read from MH i2c: 01 07 00 10 0F 00 00 00 00 00 06 0D 39 [09:24:54]RasterBufferAndPrint [09:24:54]line [09:24:54]line [09:24:54]line [09:24:54]line [09:24:54]line [09:24:54]written 0, free lines is 3340 [09:24:54]MH_Cut [09:24:54]Write to MH i2c: D1 01 00 17 0F 01 F8 [09:24:54]Write i2c OK [09:24:54]MH_I2C_Read... [09:24:54]Read from MH i2c: D1 [09:24:54]MH_I2C_Read... [09:24:54]Read from MH i2c: D1 01 00 [09:24:54]MH_I2C_Read... [09:24:54]Read from MH i2c: D1 01 00 17 0F 00 F7 [09:24:54]Write to MH i2c: 01 00 00 18 0F 27 [09:24:54]Write i2c OK [09:24:54]MH_I2C_Read... [09:24:54]OFD Sender: No OFD packet to send [09:24:55]*** Cut start [09:24:55]*** Partial cut [09:24:55]*** CUTSNS_PIN = 1 [09:24:55]*** CUTSNS_PIN = 0 [09:24:55]*** Brake cut motor [09:24:56]Read from MH i2c: 01 [09:24:56]MH_I2C_Read... [09:24:56]*** Stop cut motor [09:24:56]*** Cut end [09:24:56]Read from MH i2c: 01 07 00 [09:24:56]MH_I2C_Read... [09:24:56]Read from MH i2c: 01 07 00 18 0F 00 00 00 00 00 FF 0F 3C [09:24:56]process_action close_receipt done [09:24:56]requested_data is exist [09:24:56]produce_requested_data [09:24:56]requested_item fm.sn is exist - process it [09:24:56]wFMCommunicate request_size=4 [09:24:56]MH_SAM_APDU [09:24:56]CAPDU: 80 11 00 00 [09:24:56]Write to MH i2c: E2 08 00 19 0F 80 11 00 00 00 00 00 00 A2 [09:24:56]Write i2c OK [09:24:56]MH_I2C_Read... [09:24:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:24:56]Read from MH i2c: E2 [09:24:56]MH_I2C_Read... [09:24:56]Read from MH i2c: E2 17 00 [09:24:56]MH_I2C_Read... [09:24:56]Read from MH i2c: E2 17 00 19 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F8 [09:24:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:24:56]wFMCommunicate OK [09:24:56]requested_item fd.num is exist - process it [09:24:56]SAM_PROTO_GetFieldsCounters [09:24:56]wFMCommunicate request_size=4 [09:24:56]MH_SAM_APDU [09:24:56]CAPDU: 80 13 00 00 [09:24:56]Write to MH i2c: E2 08 00 1A 0F 80 13 00 00 00 00 00 00 A5 [09:24:56]Write i2c OK [09:24:56]MH_I2C_Read... [09:24:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:24:56]Read from MH i2c: E2 [09:24:56]MH_I2C_Read... [09:24:56]Read from MH i2c: E2 62 00 [09:24:56]MH_I2C_Read... [09:24:56]Read from MH i2c: E2 62 00 1A 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F1 83 02 00 0E 04 04 00 BF 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 8F [09:24:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F1 83 02 00 0E 04 04 00 BF 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 [09:24:56]wFMCommunicate OK [09:24:56]SAM_PROTO_GetFieldsCounters done [09:24:56]requested_item shift.num is exist - process it [09:24:56]requested_item shift.opened is exist - process it [09:24:56]req_shift_opened [09:24:56]FM_GetShiftState [09:24:56]SAM_PROTO_GetShiftState [09:24:56]wFMCommunicate request_size=4 [09:24:56]MH_SAM_APDU [09:24:56]CAPDU: 80 13 01 00 [09:24:56]Write to MH i2c: E2 08 00 1B 0F 80 13 01 00 00 00 00 00 A7 [09:24:56]Write i2c OK [09:24:56]MH_I2C_Read... [09:24:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:24:56]Read from MH i2c: E2 [09:24:56]MH_I2C_Read... [09:24:56]Read from MH i2c: E2 0E 00 [09:24:56]MH_I2C_Read... [09:24:56]Read from MH i2c: E2 0E 00 1B 0F 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 27 [09:24:56]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [09:24:56]wFMCommunicate OK [09:24:56]SAM_PROTO_GetShiftState done [09:24:56]FM_GetShiftState done [09:24:56]req_shift_opened done [09:24:56]requested_item shift.open_date is exist - process it [09:24:56]req_shift_open_date [09:24:56]req_shift_open_date done [09:24:56]produce_requested_data done [09:24:56]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164849,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [09:24:56]process_action_free close_receipt [09:24:56]json_value_free [09:24:56]json_value_free done [09:24:56]process_json_proto returns [09:24:56]Send response to host [09:24:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164849,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [09:24:56]free response buf [09:24:56]execute_script done [09:24:56]execute_script returns [09:24:56]free content buf [09:24:56]Sock 8.Close socket [09:24:56]Sock 8.Thread stoped [09:24:59]OFD Sender: No OFD packet to send [09:25:04]OFD Sender: No OFD packet to send [09:25:10]OFD Sender: No OFD packet to send [09:25:15]OFD Sender: No OFD packet to send [09:25:20]OFD Sender: No OFD packet to send [09:25:25]OFD Sender: No OFD packet to send [09:25:30]OFD Sender: No OFD packet to send [09:25:35]OFD Sender: No OFD packet to send [09:25:40]OFD Sender: No OFD packet to send [09:25:45]OFD Sender: No OFD packet to send [09:25:50]OFD Sender: No OFD packet to send [09:25:55]OFD Sender: No OFD packet to send [09:26:00]OFD Sender: No OFD packet to send [09:26:05]OFD Sender: No OFD packet to send [09:26:10]OFD Sender: No OFD packet to send [09:26:15]OFD Sender: No OFD packet to send [09:26:20]OFD Sender: No OFD packet to send [09:26:25]OFD Sender: No OFD packet to send [09:26:30]OFD Sender: No OFD packet to send [09:26:35]OFD Sender: No OFD packet to send [09:26: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:40]OFD Sender: No OFD packet to send [09:28:45]OFD Sender: No OFD packet to send [09:28:50]OFD Sender: No OFD packet to send [09:28:55]OFD Sender: No OFD packet to send [09:29:00]OFD Sender: No OFD packet to send [09:29:01]accept exits with 9 [09:29:01]New connection [09:29:01]New thread 3067571556 created [09:29:01]Thread 3067428196 joined [09:29:01]Waiting for new connection... [09:29:01] Sock 9.Parse request [09:29:01]Sock 9.Check first char [09:29:01]Sock 9.First char is OK [09:29:01]request: POST /json_proto HTTP/1.0 [09:29:01]Method: POST [09:29:01]URL: /json_proto [09:29:01]Method is POST - this is cgi request [09:29:01]url: /json_proto [09:29:01]query_string will be loaded in cgi processing [09:29:01]execute_cgi json_proto POST (null) [09:29:01]execute_cgi path=json_proto method=POST [09:29:01]POST find Content-Length [09:29:01]Host: 172.17.56.4:8080 [09:29:01]Content-Length: 677 [09:29:01]Content-Type: application/json [09:29:01] [09:29:01]POST finish read [09:29:01]Found Content-Length = 677 [09:29:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458946", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.350, "sum" : 220.43, "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" ] } } [09:29:01]execute_script... [09:29: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)458946", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.350, "sum" : 220.43, "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" ] } } [09:29:01]POST & json_proto [09:29:01]process_json_proto [09:29:01]json parsed OK: [09:29:01]protocol is kg_v1.0 [09:29:01]action value=close_receipt [09:29:01]process_action close_receipt [09:29:01]cmd_close_receipt [09:29:01]MH_GetDate [09:29:01]Write to MH i2c: F0 00 00 1C 0F 1A [09:29:01]Write i2c OK [09:29:01]MH_I2C_Read... [09:29:01]Read from MH i2c: F0 [09:29:01]MH_I2C_Read... [09:29:01]Read from MH i2c: F0 09 00 [09:29:01]MH_I2C_Read... [09:29:01]Read from MH i2c: F0 09 00 1C 0F 00 5F 9A 93 66 C9 DC B2 64 D0 [09:29:01]GetLastDocTimeStamp 1720949094 [09:29:01]current date 1720949343 [09:29:01]FM_GetShiftState [09:29:01]SAM_PROTO_GetShiftState [09:29:01]wFMCommunicate request_size=4 [09:29:01]MH_SAM_APDU [09:29:01]CAPDU: 80 13 01 00 [09:29:01]Write to MH i2c: E2 08 00 1D 0F 80 13 01 00 00 00 00 00 A9 [09:29:01]Write i2c OK [09:29:01]MH_I2C_Read... [09:29:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:29:01]Read from MH i2c: E2 [09:29:01]MH_I2C_Read... [09:29:01]Read from MH i2c: E2 0E 00 [09:29:01]MH_I2C_Read... [09:29:01]Read from MH i2c: E2 0E 00 1D 0F 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 29 [09:29:01]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [09:29:01]wFMCommunicate OK [09:29:01]SAM_PROTO_GetShiftState done [09:29:01]FM_GetShiftState done [09:29:01]opened in 1720917342 [09:29:01]opened+sec_in_day 1721003742 [09:29:01]quantity*price = 22043 [09:29:01]sum+1 = 22044 [09:29:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 220.00 Внесено: 220.00 СДАЧА: 0.00 НСП 1% : 1.95 НДС 12% : 23.41 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 48 14.07.2024 09:29 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164850 ФПД: 63663945216808 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T092903&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164850&fm=63663945216808&tin=02508201610067®Number=0000000000090829&sum=22000 [09:29:02]StoreToDocumentArchive [09:29:02]shift 447 fd 164850 [09:29:02]save to /storage/0447/doc_00164850 [09:29:02]save last doc name /storage/0447/doc_00164850 to /storage/kkm_last_doc_name [09:29:02]save OK [09:29:02]Clear old archive folders... [09:29:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:29:02]tlvbuf is 01665C30 [09:29:02]SAM_PROTO_ClearQueue [09:29:02]wFMCommunicate request_size=4 [09:29:02]MH_SAM_APDU [09:29:02]CAPDU: 80 09 00 00 [09:29:02]Write to MH i2c: E2 08 00 2A 0F 80 09 00 00 00 00 00 00 AB [09:29:02]Write i2c OK [09:29:02]MH_I2C_Read... [09:29:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:29:02]Read from MH i2c: E2 [09:29:02]MH_I2C_Read... [09:29:02]Read from MH i2c: E2 03 00 [09:29:02]MH_I2C_Read... [09:29:02]Read from MH i2c: E2 03 00 2A 0F 00 90 00 AD [09:29:02]RAPDU: 90 00 [09:29:02]wFMCommunicate OK [09:29:02]SAM_PROTO_ClearQueue done [09:29:02]KKMCreateOFDPacket [09:29:02]OFDProtocolAddRootSTLVToBuf [09:29:02]FM_MakeSignedData [09:29:02]FM_MakeSignedData [09:29:02]SAM_PROTO_SignData [09:29:02]wFMCommunicate request_size=4 [09:29:02]MH_SAM_APDU [09:29:02]CAPDU: 80 0D 01 02 [09:29:02]Write to MH i2c: E2 08 00 2B 0F 80 0D 01 02 00 00 00 00 B3 [09:29:02]Write i2c OK [09:29:02]MH_I2C_Read... [09:29:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:29:02]Read from MH i2c: E2 [09:29:02]MH_I2C_Read... [09:29:02]Read from MH i2c: E2 03 00 [09:29:02]MH_I2C_Read... [09:29:02]Read from MH i2c: E2 03 00 2B 0F 00 90 00 AE [09:29:02]RAPDU: 90 00 [09:29:02]wFMCommunicate OK [09:29:02]wFMCommunicate request_size=255 [09:29:02]MH_SAM_APDU [09:29:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 16 0D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 1B 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 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 30 00 00 00 F4 03 04 00 5F 9A 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F2 83 02 00 35 04 06 00 39 [09:29:02]Write to MH i2c: E2 02 01 2C 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 16 0D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 1B 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 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 30 00 00 00 F4 03 04 00 5F 9A 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F2 83 02 00 35 04 06 00 39 00 00 31 [09:29:02]Write i2c OK [09:29:02]MH_I2C_Read... [09:29:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:29:02]Read from MH i2c: E2 [09:29:02]MH_I2C_Read... [09:29:02]Read from MH i2c: E2 03 00 [09:29:02]MH_I2C_Read... [09:29:02]Read from MH i2c: E2 03 00 2C 0F 00 90 00 AF [09:29:02]RAPDU: 90 00 [09:29:02]wFMCommunicate OK [09:29:02]wFMCommunicate request_size=10 [09:29:02]MH_SAM_APDU [09:29:02]CAPDU: 80 0D 02 02 05 E6 EA D6 F3 28 [09:29:02]Write to MH i2c: E2 0D 00 2D 0F 80 0D 02 02 05 00 E6 EA D6 F3 28 00 00 81 [09:29:02]Write i2c OK [09:29:02]MH_I2C_Read... [09:29:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:29:02]Read from MH i2c: E2 [09:29:02]MH_I2C_Read... [09:29:02]Read from MH i2c: E2 03 00 [09:29:02]MH_I2C_Read... [09:29:02]Read from MH i2c: E2 03 00 2D 0F 00 90 00 B0 [09:29:02]RAPDU: 90 00 [09:29:02]wFMCommunicate OK [09:29:02]wFMCommunicate request_size=4 [09:29:02]MH_SAM_APDU [09:29:02]CAPDU: 80 0D 03 02 [09:29:02]Write to MH i2c: E2 08 00 2E 0F 80 0D 03 02 00 00 00 00 B8 [09:29:02]Write i2c OK [09:29:02]MH_I2C_Read... [09:29:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:29:02]Read from MH i2c: E2 [09:29:02]MH_I2C_Read... [09:29:02]Read from MH i2c: E2 0B 00 [09:29:02]MH_I2C_Read... [09:29:02]Read from MH i2c: E2 0B 00 2E 0F 00 50 CB 51 60 4E 6C BC 69 90 00 64 [09:29:02]RAPDU: 50 CB 51 60 4E 6C BC 69 90 00 [09:29:02]wFMCommunicate OK [09:29:02]SAM_PROTO_SignData done [09:29:02]FM_MakeSignedData done [09:29:02]CreateOFDProtocolMessage [09:29:02]wFMCommunicate request_size=4 [09:29:02]MH_SAM_APDU [09:29:02]CAPDU: 80 11 00 00 [09:29:02]Write to MH i2c: E2 08 00 2F 0F 80 11 00 00 00 00 00 00 B8 [09:29:02]Write i2c OK [09:29:02]MH_I2C_Read... [09:29:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:29:02]Read from MH i2c: E2 [09:29:02]MH_I2C_Read... [09:29:02]Read from MH i2c: E2 17 00 [09:29:02]MH_I2C_Read... [09:29:02]Read from MH i2c: E2 17 00 2F 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 0E [09:29:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:29:02]wFMCommunicate OK [09:29:02]CreateOFDProtocolMessage done [09:29:02]OFDSenderStorePacket 164850 [09:29:02]StoreOFDPacket docnum=164850 [09:29:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 68 CE 07 01 21 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 16 0D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 1B 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 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 30 00 00 00 F4 03 04 00 5F 9A 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F2 83 02 00 35 04 06 00 39 E6 EA D6 F3 28 50 CB 51 60 4E 6C BC 69 [09:29:02]CheckFolder [09:29:02]dirname=/storage/ofd_packets [09:29:02]CheckFolder done [09:29:02]ProducePacketName [09:29:02]name=ofd_packets/00164850 [09:29:02]NVStorageSaveData ofd_packets/00164850 [09:29:02]File name is /storage/ofd_packets/00164850 [09:29:02]Write 301 bytes [09:29:02]NVStorageSaveData done [09:29:02]OFDSenderStorePacket done [09:29:02]KKMCreateOFDPacket done [09:29:02]NVStorageSaveData kkm_last_timestamp [09:29:02]File name is /storage/kkm_last_timestamp [09:29:02]Write 4 bytes [09:29:02]NVStorageSaveData done [09:29:02]ExternCall_PrintAddStr [09:29:02]wPrintStart [09:29:02]Write to MH i2c: 01 00 00 30 0F 3F [09:29:02]Write i2c OK [09:29:02]MH_I2C_Read... [09:29:02]Read from MH i2c: 01 [09:29:02]MH_I2C_Read... [09:29:02]Read from MH i2c: 01 07 00 [09:29:02]MH_I2C_Read... [09:29:02]Read from MH i2c: 01 07 00 30 0F 00 00 00 00 00 FF 0F 54 [09:29:02]RasterBufferAndPrint [09:29:02]line Счет N : (1)458946 [09:29:02]line ИНН: 02508201610067 [09:29:02]line Контрольно-Кассовый Чек [09:29:02]line ПРОДАЖА [09:29:02]line ТРК (МРК, ГНК) : 22 [09:29:02]line Товар: 2710124130 [09:29:02]line Аи-92-К-5 [09:29:02]line 3.350 * 65.80 [09:29:02]line = 220.43 [09:29:02]line НДС 12% НСП 1% [09:29:02]line > о реализуемом товаре [09:29:02]line ОКРУГЛЕНИЕ: -0.43 [09:29:02]line ИТОГО: 220.00 [09:29:02]line Внесено: 220.00 [09:29:02]line СДАЧА: 0.00 [09:29:02]line НСП 1% : 1.95 [09:29:02]line НДС 12% : 23.41 [09:29:02]line Наличными: 220.00 [09:29:02]line Безнал.: 0.00 [09:29:02]line Место: АЗС № 72 "Партнер Нефть" [09:29:02]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:29:02]line СНО: Общий режим [09:29:02]line Чек 48 14.07.2024 09:29 [09:29:02]line Смена: 447 ФФД: 1.0 [09:29:02]line ЗНМ: 0300000160 [09:29:02]line РНМ: 0000000000090829 [09:29:02]line Версия ККМ: 001 [09:29:02]line ФМ: 0000000000874718 [09:29:02]line ФД: 164850 [09:29:02]line ФПД: 63663945216808 [09:29:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T092903&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164850&fm=63663945216808&tin=02508201610067®Number=0000000000090829&sum=22000 [09:29:03]written 0, free lines is 4095 [09:29:03]OFD Sender: Processing packet 164850 [packets to send 104, broken 103] [09:29:03]ProducePacketName [09:29:03]name=ofd_packets/00164850 [09:29:03]OFD Sender: To server: pG, [09:29:03]CommunicateWithHost lk.salyk.kg:30040 [09:29:03]ConnectInit lk.salyk.kg [09:29:03]Connected sock=10 [09:29:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 68 CE 07 01 21 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 16 0D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 1B 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 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 30 00 00 00 F4 03 04 00 5F 9A 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F2 83 02 00 35 04 06 00 39 E6 EA D6 F3 28 50 CB 51 60 4E 6C BC 69 [09:29:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 85 B5 47 00 D5 D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F2 83 02 00 F4 03 04 00 ED 40 93 66 B6 04 01 00 00 62 50 F6 1E 07 15 3F 1D [09:29:03]CommunicateWithHost err = 0 [09:29:03]CheckOFDResponse [09:29:03]1017 (14) - 77093643461234 [09:29:03]1041 (16) - 0000000000874718 [09:29:03]1040 (4) - 164850 [09:29:03]1012 (4) - 14.07.2024 03:07 [09:29:03]1206 (1) - 0 [09:29:03]OFD Sender: Remove packet 164850 [09:29:03]ProducePacketName [09:29:03]name=ofd_packets/00164850 [09:29:03]NVStorageDeleteData [09:29:03]Write to MH i2c: 01 00 00 5A 0F 69 [09:29:03]Write i2c OK [09:29:03]MH_I2C_Read... [09:29:03]Read from MH i2c: 01 [09:29:03]MH_I2C_Read... [09:29:03]Read from MH i2c: 01 07 00 [09:29:03]MH_I2C_Read... [09:29:03]Read from MH i2c: 01 07 00 5A 0F 00 00 00 00 00 05 0D 82 [09:29:03]RasterBufferAndPrint [09:29:03]line [09:29:03]line [09:29:03]line [09:29:03]line [09:29:03]line [09:29:03]written 0, free lines is 3339 [09:29:03]MH_Cut [09:29:03]Write to MH i2c: D1 01 00 61 0F 01 42 [09:29:03]Write i2c OK [09:29:03]MH_I2C_Read... [09:29:03]Read from MH i2c: D1 [09:29:03]MH_I2C_Read... [09:29:03]Read from MH i2c: D1 01 00 [09:29:03]MH_I2C_Read... [09:29:03]Read from MH i2c: D1 01 00 61 0F 00 41 [09:29:03]Write to MH i2c: 01 00 00 62 0F 71 [09:29:03]Write i2c OK [09:29:03]MH_I2C_Read... [09:29:03]OFD Sender: No OFD packet to send [09:29:04]*** Cut start [09:29:04]*** Partial cut [09:29:04]*** CUTSNS_PIN = 1 [09:29:04]*** CUTSNS_PIN = 0 [09:29:04]*** Brake cut motor [09:29:04]Read from MH i2c: 01 [09:29:04]MH_I2C_Read... [09:29:04]*** Stop cut motor [09:29:04]*** Cut end [09:29:04]Read from MH i2c: 01 07 00 [09:29:04]MH_I2C_Read... [09:29:04]Read from MH i2c: 01 07 00 62 0F 00 00 00 00 00 FF 0F 86 [09:29:04]process_action close_receipt done [09:29:04]requested_data is exist [09:29:04]produce_requested_data [09:29:04]requested_item fm.sn is exist - process it [09:29:04]wFMCommunicate request_size=4 [09:29:04]MH_SAM_APDU [09:29:04]CAPDU: 80 11 00 00 [09:29:04]Write to MH i2c: E2 08 00 63 0F 80 11 00 00 00 00 00 00 EC [09:29:04]Write i2c OK [09:29:04]MH_I2C_Read... [09:29:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:29:04]Read from MH i2c: E2 [09:29:04]MH_I2C_Read... [09:29:04]Read from MH i2c: E2 17 00 [09:29:04]MH_I2C_Read... [09:29:04]Read from MH i2c: E2 17 00 63 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 42 [09:29:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:29:04]wFMCommunicate OK [09:29:04]requested_item fd.num is exist - process it [09:29:04]SAM_PROTO_GetFieldsCounters [09:29:04]wFMCommunicate request_size=4 [09:29:04]MH_SAM_APDU [09:29:04]CAPDU: 80 13 00 00 [09:29:04]Write to MH i2c: E2 08 00 64 0F 80 13 00 00 00 00 00 00 EF [09:29:04]Write i2c OK [09:29:04]MH_I2C_Read... [09:29:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:29:05]Read from MH i2c: E2 [09:29:05]MH_I2C_Read... [09:29:05]Read from MH i2c: E2 62 00 [09:29:05]MH_I2C_Read... [09:29:05]Read from MH i2c: E2 62 00 64 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F2 83 02 00 0E 04 04 00 BF 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 DD [09:29:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F2 83 02 00 0E 04 04 00 BF 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 [09:29:05]wFMCommunicate OK [09:29:05]SAM_PROTO_GetFieldsCounters done [09:29:05]requested_item shift.num is exist - process it [09:29:05]requested_item shift.opened is exist - process it [09:29:05]req_shift_opened [09:29:05]FM_GetShiftState [09:29:05]SAM_PROTO_GetShiftState [09:29:05]wFMCommunicate request_size=4 [09:29:05]MH_SAM_APDU [09:29:05]CAPDU: 80 13 01 00 [09:29:05]Write to MH i2c: E2 08 00 65 0F 80 13 01 00 00 00 00 00 F1 [09:29:05]Write i2c OK [09:29:05]MH_I2C_Read... [09:29:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:29:05]Read from MH i2c: E2 [09:29:05]MH_I2C_Read... [09:29:05]Read from MH i2c: E2 0E 00 [09:29:05]MH_I2C_Read... [09:29:05]Read from MH i2c: E2 0E 00 65 0F 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 71 [09:29:05]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [09:29:05]wFMCommunicate OK [09:29:05]SAM_PROTO_GetShiftState done [09:29:05]FM_GetShiftState done [09:29:05]req_shift_opened done [09:29:05]requested_item shift.open_date is exist - process it [09:29:05]req_shift_open_date [09:29:05]req_shift_open_date done [09:29:05]produce_requested_data done [09:29:05]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164850,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [09:29:05]process_action_free close_receipt [09:29:05]json_value_free [09:29:05]json_value_free done [09:29:05]process_json_proto returns [09:29:05]Send response to host [09:29:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164850,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [09:29:05]free response buf [09:29:05]execute_script done [09:29:05]execute_script returns [09:29:05]free content buf [09:29:05]Sock 9.Close socket [09:29:05]Sock 9.Thread stoped [09:29:08]OFD Sender: No OFD packet to send [09:29:13]OFD Sender: No OFD packet to send [09:29:18]OFD Sender: No OFD packet to send [09:29:23]OFD Sender: No OFD packet to send [09:29:28]OFD Sender: No OFD packet to send [09:29:33]OFD Sender: No OFD packet to send [09:29:38]OFD Sender: No OFD packet to send [09:29:43]OFD Sender: No OFD packet to send [09:29:48]OFD Sender: No OFD packet to send [09:29:53]OFD Sender: No OFD packet to send [09:29:58]OFD Sender: No OFD packet to send [09:30:03]OFD Sender: No OFD packet to send [09:30:08]OFD Sender: No OFD packet to send [09:30:14]OFD Sender: No OFD packet to send [09:30:19]OFD Sender: No OFD packet to send [09:30:24]OFD Sender: No OFD packet to send [09:30:29]OFD Sender: No OFD packet to send [09:30:34]OFD Sender: No OFD packet to send [09:30:38]accept exits with 8 [09:30:38]New connection [09:30:38]New thread 3067428196 created [09:30:38]Thread 3067571556 joined [09:30:38]Waiting for new connection... [09:30:38] Sock 8.Parse request [09:30:38]Sock 8.Check first char [09:30:38]Sock 8.First char is OK [09:30:38]request: POST /json_proto HTTP/1.0 [09:30:38]Method: POST [09:30:38]URL: /json_proto [09:30:38]Method is POST - this is cgi request [09:30:38]url: /json_proto [09:30:38]query_string will be loaded in cgi processing [09:30:38]execute_cgi json_proto POST (null) [09:30:38]execute_cgi path=json_proto method=POST [09:30:38]POST find Content-Length [09:30:38]Host: 172.17.56.4:8080 [09:30:38]Content-Length: 640 [09:30:38]Content-Type: application/json [09:30:38] [09:30:38]POST finish read [09:30:38]Found Content-Length = 640 [09:30:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458947", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.000, "sum" : 658.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 658.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:30:38]execute_script... [09:30:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458947", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.000, "sum" : 658.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 658.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:30:38]POST & json_proto [09:30:38]process_json_proto [09:30:38]json parsed OK: [09:30:38]protocol is kg_v1.0 [09:30:38]action value=close_receipt [09:30:38]process_action close_receipt [09:30:38]cmd_close_receipt [09:30:38]MH_GetDate [09:30:38]Write to MH i2c: F0 00 00 66 0F 64 [09:30:38]Write i2c OK [09:30:38]MH_I2C_Read... [09:30:38]Read from MH i2c: F0 [09:30:38]MH_I2C_Read... [09:30:38]Read from MH i2c: F0 09 00 [09:30:38]MH_I2C_Read... [09:30:38]Read from MH i2c: F0 09 00 66 0F 00 C1 9A 93 66 C9 DC B2 64 7C [09:30:38]GetLastDocTimeStamp 1720949343 [09:30:38]current date 1720949441 [09:30:38]FM_GetShiftState [09:30:38]SAM_PROTO_GetShiftState [09:30:38]wFMCommunicate request_size=4 [09:30:38]MH_SAM_APDU [09:30:38]CAPDU: 80 13 01 00 [09:30:38]Write to MH i2c: E2 08 00 67 0F 80 13 01 00 00 00 00 00 F3 [09:30:38]Write i2c OK [09:30:38]MH_I2C_Read... [09:30:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:38]Read from MH i2c: E2 [09:30:38]MH_I2C_Read... [09:30:38]Read from MH i2c: E2 0E 00 [09:30:38]MH_I2C_Read... [09:30:38]Read from MH i2c: E2 0E 00 67 0F 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 73 [09:30:38]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [09:30:38]wFMCommunicate OK [09:30:38]SAM_PROTO_GetShiftState done [09:30:38]FM_GetShiftState done [09:30:38]opened in 1720917342 [09:30:38]opened+sec_in_day 1721003742 [09:30:38]quantity*price = 65800 [09:30:38]sum+1 = 65801 [09:30:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 658.00 НСП 1% : 5.82 НДС 12% : 69.88 Наличными: 658.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 49 14.07.2024 09:30 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164851 ФПД: 36888053197605 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T093041&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164851&fm=36888053197605&tin=02508201610067®Number=0000000000090829&sum=65800 [09:30:39]StoreToDocumentArchive [09:30:39]shift 447 fd 164851 [09:30:39]save to /storage/0447/doc_00164851 [09:30:39]save last doc name /storage/0447/doc_00164851 to /storage/kkm_last_doc_name [09:30:39]save OK [09:30:39]Clear old archive folders... [09:30:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:30:39]tlvbuf is 016609E0 [09:30:39]SAM_PROTO_ClearQueue [09:30:39]wFMCommunicate request_size=4 [09:30:39]MH_SAM_APDU [09:30:39]CAPDU: 80 09 00 00 [09:30:39]Write to MH i2c: E2 08 00 74 0F 80 09 00 00 00 00 00 00 F5 [09:30:39]Write i2c OK [09:30:39]MH_I2C_Read... [09:30:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:30:39]Read from MH i2c: E2 [09:30:39]MH_I2C_Read... [09:30:39]Read from MH i2c: E2 03 00 [09:30:39]MH_I2C_Read... [09:30:39]Read from MH i2c: E2 03 00 74 0F 00 90 00 F7 [09:30:39]RAPDU: 90 00 [09:30:39]wFMCommunicate OK [09:30:39]SAM_PROTO_ClearQueue done [09:30:39]KKMCreateOFDPacket [09:30:39]OFDProtocolAddRootSTLVToBuf [09:30:39]FM_MakeSignedData [09:30:39]FM_MakeSignedData [09:30:39]SAM_PROTO_SignData [09:30:39]wFMCommunicate request_size=4 [09:30:39]MH_SAM_APDU [09:30:39]CAPDU: 80 0D 01 02 [09:30:39]Write to MH i2c: E2 08 00 75 0F 80 0D 01 02 00 00 00 00 FD [09:30:39]Write i2c OK [09:30:39]MH_I2C_Read... [09:30:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:30:39]Read from MH i2c: E2 [09:30:39]MH_I2C_Read... [09:30:39]Read from MH i2c: E2 03 00 [09:30:39]MH_I2C_Read... [09:30:39]Read from MH i2c: E2 03 00 75 0F 00 90 00 F8 [09:30:39]RAPDU: 90 00 [09:30:39]wFMCommunicate OK [09:30:39]wFMCommunicate request_size=255 [09:30:39]MH_SAM_APDU [09:30:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 C1 9A 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F3 83 02 00 35 04 06 00 21 [09:30:39]Write to MH i2c: E2 02 01 76 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 C1 9A 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F3 83 02 00 35 04 06 00 21 00 00 BC [09:30:40]Write i2c OK [09:30:40]MH_I2C_Read... [09:30:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:40]Read from MH i2c: E2 [09:30:40]MH_I2C_Read... [09:30:40]Read from MH i2c: E2 03 00 [09:30:40]MH_I2C_Read... [09:30:40]Read from MH i2c: E2 03 00 76 0F 00 90 00 F9 [09:30:40]RAPDU: 90 00 [09:30:40]wFMCommunicate OK [09:30:40]wFMCommunicate request_size=10 [09:30:40]MH_SAM_APDU [09:30:40]CAPDU: 80 0D 02 02 05 8C AB 4E AB 25 [09:30:40]Write to MH i2c: E2 0D 00 77 0F 80 0D 02 02 05 00 8C AB 4E AB 25 00 00 5F [09:30:40]Write i2c OK [09:30:40]MH_I2C_Read... [09:30:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:40]Read from MH i2c: E2 [09:30:40]MH_I2C_Read... [09:30:40]Read from MH i2c: E2 03 00 [09:30:40]MH_I2C_Read... [09:30:40]Read from MH i2c: E2 03 00 77 0F 00 90 00 FA [09:30:40]RAPDU: 90 00 [09:30:40]wFMCommunicate OK [09:30:40]wFMCommunicate request_size=4 [09:30:40]MH_SAM_APDU [09:30:40]CAPDU: 80 0D 03 02 [09:30:40]Write to MH i2c: E2 08 00 78 0F 80 0D 03 02 00 00 00 00 02 [09:30:40]Write i2c OK [09:30:40]MH_I2C_Read... [09:30:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:30:40]Read from MH i2c: E2 [09:30:40]MH_I2C_Read... [09:30:40]Read from MH i2c: E2 0B 00 [09:30:40]MH_I2C_Read... [09:30:40]Read from MH i2c: E2 0B 00 78 0F 00 D0 10 B1 48 A8 60 75 97 90 00 F0 [09:30:40]RAPDU: D0 10 B1 48 A8 60 75 97 90 00 [09:30:40]wFMCommunicate OK [09:30:40]SAM_PROTO_SignData done [09:30:40]FM_MakeSignedData done [09:30:40]CreateOFDProtocolMessage [09:30:40]wFMCommunicate request_size=4 [09:30:40]MH_SAM_APDU [09:30:40]CAPDU: 80 11 00 00 [09:30:40]Write to MH i2c: E2 08 00 79 0F 80 11 00 00 00 00 00 00 02 [09:30:40]Write i2c OK [09:30:40]MH_I2C_Read... [09:30:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:40]Read from MH i2c: E2 [09:30:40]MH_I2C_Read... [09:30:40]Read from MH i2c: E2 17 00 [09:30:40]MH_I2C_Read... [09:30:40]Read from MH i2c: E2 17 00 79 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 58 [09:30:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:30:40]wFMCommunicate OK [09:30:40]CreateOFDProtocolMessage done [09:30:40]OFDSenderStorePacket 164851 [09:30:40]StoreOFDPacket docnum=164851 [09:30:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 0A 87 07 01 5C 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 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 C1 9A 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F3 83 02 00 35 04 06 00 21 8C AB 4E AB 25 D0 10 B1 48 A8 60 75 97 [09:30:40]CheckFolder [09:30:40]dirname=/storage/ofd_packets [09:30:40]CheckFolder done [09:30:40]ProducePacketName [09:30:40]name=ofd_packets/00164851 [09:30:40]NVStorageSaveData ofd_packets/00164851 [09:30:40]File name is /storage/ofd_packets/00164851 [09:30:40]Write 301 bytes [09:30:40]NVStorageSaveData done [09:30:40]OFDSenderStorePacket done [09:30:40]KKMCreateOFDPacket done [09:30:40]NVStorageSaveData kkm_last_timestamp [09:30:40]File name is /storage/kkm_last_timestamp [09:30:40]Write 4 bytes [09:30:40]NVStorageSaveData done [09:30:40]ExternCall_PrintAddStr [09:30:40]wPrintStart [09:30:40]Write to MH i2c: 01 00 00 7A 0F 89 [09:30:40]Write i2c OK [09:30:40]MH_I2C_Read... [09:30:40]Read from MH i2c: 01 [09:30:40]MH_I2C_Read... [09:30:40]Read from MH i2c: 01 07 00 [09:30:40]MH_I2C_Read... [09:30:40]Read from MH i2c: 01 07 00 7A 0F 00 00 00 00 00 FF 0F 9E [09:30:40]RasterBufferAndPrint [09:30:40]line Счет N : (1)458947 [09:30:40]line ИНН: 02508201610067 [09:30:40]line Контрольно-Кассовый Чек [09:30:40]line ПРОДАЖА [09:30:40]line ТРК (МРК, ГНК) : 12 [09:30:40]line Товар: 2710124130 [09:30:40]line Аи-92-К-5 [09:30:40]line 10.000 * 65.80 [09:30:40]line = 658.00 [09:30:40]line НДС 12% НСП 1% [09:30:40]line > о реализуемом товаре [09:30:40]line ИТОГО: 658.00 [09:30:40]line НСП 1% : 5.82 [09:30:40]line НДС 12% : 69.88 [09:30:40]line Наличными: 658.00 [09:30:40]line Безнал.: 0.00 [09:30:40]line Место: АЗС № 72 "Партнер Нефть" [09:30:40]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:30:40]line СНО: Общий режим [09:30:40]line Чек 49 14.07.2024 09:30 [09:30:40]line Смена: 447 ФФД: 1.0 [09:30:40]line ЗНМ: 0300000160 [09:30:40]line РНМ: 0000000000090829 [09:30:40]line Версия ККМ: 001 [09:30:40]line ФМ: 0000000000874718 [09:30:40]line ФД: 164851 [09:30:40]line ФПД: 36888053197605 [09:30:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T093041&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164851&fm=36888053197605&tin=02508201610067®Number=0000000000090829&sum=65800 [09:30:40]written 0, free lines is 4095 [09:30:40]OFD Sender: Processing packet 164851 [packets to send 104, broken 103] [09:30:40]ProducePacketName [09:30:40]name=ofd_packets/00164851 [09:30:40]OFD Sender: To server: pG, [09:30:40]CommunicateWithHost lk.salyk.kg:30040 [09:30:40]ConnectInit lk.salyk.kg [09:30:40]Connected sock=10 [09:30:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 0A 87 07 01 5C 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 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 C1 9A 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F3 83 02 00 35 04 06 00 21 8C AB 4E AB 25 D0 10 B1 48 A8 60 75 97 [09:30:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 17 8B 47 00 79 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 38 37 34 37 31 38 10 04 04 00 F3 83 02 00 F4 03 04 00 4F 41 93 66 B6 04 01 00 00 62 D4 06 59 02 BA 6D EA [09:30:41]CommunicateWithHost err = 0 [09:30:41]CheckOFDResponse [09:30:41]1017 (14) - 77093643461234 [09:30:41]1041 (16) - 0000000000874718 [09:30:41]1040 (4) - 164851 [09:30:41]1012 (4) - 14.07.2024 03:09 [09:30:41]1206 (1) - 0 [09:30:41]OFD Sender: Remove packet 164851 [09:30:41]ProducePacketName [09:30:41]name=ofd_packets/00164851 [09:30:41]NVStorageDeleteData [09:30:41]Write to MH i2c: 01 00 00 A1 0F B0 [09:30:41]Write i2c OK [09:30:41]MH_I2C_Read... [09:30:41]Read from MH i2c: 01 [09:30:41]MH_I2C_Read... [09:30:41]Read from MH i2c: 01 07 00 [09:30:41]MH_I2C_Read... [09:30:41]Read from MH i2c: 01 07 00 A1 0F 00 00 00 00 00 32 0D F6 [09:30:41]RasterBufferAndPrint [09:30:41]line [09:30:41]line [09:30:41]line [09:30:41]line [09:30:41]line [09:30:41]written 0, free lines is 3385 [09:30:41]MH_Cut [09:30:41]Write to MH i2c: D1 01 00 A8 0F 01 89 [09:30:41]Write i2c OK [09:30:41]MH_I2C_Read... [09:30:41]Read from MH i2c: D1 [09:30:41]MH_I2C_Read... [09:30:41]Read from MH i2c: D1 01 00 [09:30:41]MH_I2C_Read... [09:30:41]Read from MH i2c: D1 01 00 A8 0F 00 88 [09:30:41]Write to MH i2c: 01 00 00 A9 0F B8 [09:30:41]Write i2c OK [09:30:41]MH_I2C_Read... [09:30:41]OFD Sender: No OFD packet to send [09:30:41]*** Cut start [09:30:41]*** Partial cut [09:30:41]*** CUTSNS_PIN = 1 [09:30:41]*** CUTSNS_PIN = 0 [09:30:42]*** Brake cut motor [09:30:42]Read from MH i2c: 01 [09:30:42]MH_I2C_Read... [09:30:42]*** Stop cut motor [09:30:42]*** Cut end [09:30:42]Read from MH i2c: 01 07 00 [09:30:42]MH_I2C_Read... [09:30:42]Read from MH i2c: 01 07 00 A9 0F 00 00 00 00 00 FF 0F CD [09:30:42]process_action close_receipt done [09:30:42]requested_data is exist [09:30:42]produce_requested_data [09:30:42]requested_item fm.sn is exist - process it [09:30:42]wFMCommunicate request_size=4 [09:30:42]MH_SAM_APDU [09:30:42]CAPDU: 80 11 00 00 [09:30:42]Write to MH i2c: E2 08 00 AA 0F 80 11 00 00 00 00 00 00 33 [09:30:42]Write i2c OK [09:30:42]MH_I2C_Read... [09:30:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:42]Read from MH i2c: E2 [09:30:42]MH_I2C_Read... [09:30:42]Read from MH i2c: E2 17 00 [09:30:42]MH_I2C_Read... [09:30:42]Read from MH i2c: E2 17 00 AA 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 89 [09:30:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:30:42]wFMCommunicate OK [09:30:42]requested_item fd.num is exist - process it [09:30:42]SAM_PROTO_GetFieldsCounters [09:30:42]wFMCommunicate request_size=4 [09:30:42]MH_SAM_APDU [09:30:42]CAPDU: 80 13 00 00 [09:30:42]Write to MH i2c: E2 08 00 AB 0F 80 13 00 00 00 00 00 00 36 [09:30:42]Write i2c OK [09:30:42]MH_I2C_Read... [09:30:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:30:42]Read from MH i2c: E2 [09:30:42]MH_I2C_Read... [09:30:42]Read from MH i2c: E2 62 00 [09:30:42]MH_I2C_Read... [09:30:42]Read from MH i2c: E2 62 00 AB 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F3 83 02 00 0E 04 04 00 BF 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 28 [09:30:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F3 83 02 00 0E 04 04 00 BF 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 [09:30:42]wFMCommunicate OK [09:30:42]SAM_PROTO_GetFieldsCounters done [09:30:42]requested_item shift.num is exist - process it [09:30:42]requested_item shift.opened is exist - process it [09:30:42]req_shift_opened [09:30:42]FM_GetShiftState [09:30:42]SAM_PROTO_GetShiftState [09:30:42]wFMCommunicate request_size=4 [09:30:42]MH_SAM_APDU [09:30:42]CAPDU: 80 13 01 00 [09:30:42]Write to MH i2c: E2 08 00 AC 0F 80 13 01 00 00 00 00 00 38 [09:30:42]Write i2c OK [09:30:42]MH_I2C_Read... [09:30:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:42]Read from MH i2c: E2 [09:30:42]MH_I2C_Read... [09:30:42]Read from MH i2c: E2 0E 00 [09:30:42]MH_I2C_Read... [09:30:42]Read from MH i2c: E2 0E 00 AC 0F 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 B8 [09:30:42]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [09:30:42]wFMCommunicate OK [09:30:42]SAM_PROTO_GetShiftState done [09:30:42]FM_GetShiftState done [09:30:42]req_shift_opened done [09:30:42]requested_item shift.open_date is exist - process it [09:30:42]req_shift_open_date [09:30:42]req_shift_open_date done [09:30:42]produce_requested_data done [09:30:42]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164851,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [09:30:42]process_action_free close_receipt [09:30:42]json_value_free [09:30:42]json_value_free done [09:30:42]process_json_proto returns [09:30:42]Send response to host [09:30:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164851,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [09:30:42]free response buf [09:30:42]execute_script done [09:30:42]execute_script returns [09:30:42]free content buf [09:30:42]Sock 8.Close socket [09:30:42]Sock 8.Thread stoped [09:30:46]OFD Sender: No OFD packet to send [09:30:51]OFD Sender: No OFD packet to send [09:30:56]OFD Sender: No OFD packet to send [09:31:01]OFD Sender: No OFD packet to send [09:31:06]OFD Sender: No OFD packet to send [09:31:11]OFD Sender: No OFD packet to send [09:31:16]OFD Sender: No OFD packet to send [09:31:21]OFD Sender: No OFD packet to send [09:31:26]OFD Sender: No OFD packet to send [09:31:31]OFD Sender: No OFD packet to send [09:31:36]OFD Sender: No OFD packet to send [09:31:41]OFD Sender: No OFD packet to send [09:31:46]OFD Sender: No OFD packet to send [09:31:51]OFD Sender: No OFD packet to send [09:31:56]OFD Sender: No OFD packet to send [09:32:01]accept exits with 9 [09:32:01]New connection [09:32:01]New thread 3067571556 created [09:32:01]Thread 3067428196 joined [09:32:01]Waiting for new connection... [09:32:01] Sock 9.Parse request [09:32:01]Sock 9.Check first char [09:32:01]Sock 9.First char is OK [09:32:01]request: POST /json_proto HTTP/1.0 [09:32:01]Method: POST [09:32:01]URL: /json_proto [09:32:01]Method is POST - this is cgi request [09:32:01]url: /json_proto [09:32:01]query_string will be loaded in cgi processing [09:32:01]execute_cgi json_proto POST (null) [09:32:01]execute_cgi path=json_proto method=POST [09:32:01]POST find Content-Length [09:32:01]Host: 172.17.56.4:8080 [09:32:01]Content-Length: 677 [09:32:01]Content-Type: application/json [09:32:01] [09:32:01]POST finish read [09:32:01]Found Content-Length = 677 [09:32:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458948", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "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:32:01]execute_script... [09:32: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)458948", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "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:32:01]POST & json_proto [09:32:01]process_json_proto [09:32:01]json parsed OK: [09:32:01]protocol is kg_v1.0 [09:32:01]action value=close_receipt [09:32:01]process_action close_receipt [09:32:01]cmd_close_receipt [09:32:01]MH_GetDate [09:32:01]Write to MH i2c: F0 00 00 AD 0F AB [09:32:01]Write i2c OK [09:32:01]MH_I2C_Read... [09:32:01]Read from MH i2c: F0 [09:32:01]MH_I2C_Read... [09:32:01]Read from MH i2c: F0 09 00 [09:32:01]MH_I2C_Read... [09:32:01]Read from MH i2c: F0 09 00 AD 0F 00 13 9B 93 66 C9 DC B2 64 16 [09:32:01]GetLastDocTimeStamp 1720949441 [09:32:01]current date 1720949523 [09:32:01]FM_GetShiftState [09:32:01]SAM_PROTO_GetShiftState [09:32:01]wFMCommunicate request_size=4 [09:32:01]MH_SAM_APDU [09:32:01]CAPDU: 80 13 01 00 [09:32:01]Write to MH i2c: E2 08 00 AE 0F 80 13 01 00 00 00 00 00 3A [09:32:01]Write i2c OK [09:32:01]MH_I2C_Read... [09:32:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:01]Read from MH i2c: E2 [09:32:01]MH_I2C_Read... [09:32:01]Read from MH i2c: E2 0E 00 [09:32:01]MH_I2C_Read... [09:32:01]Read from MH i2c: E2 0E 00 AE 0F 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 BA [09:32:01]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [09:32:01]wFMCommunicate OK [09:32:01]SAM_PROTO_GetShiftState done [09:32:01]FM_GetShiftState done [09:32:01]opened in 1720917342 [09:32:01]opened+sec_in_day 1721003742 [09:32:01]quantity*price = 30004 [09:32:01]sum+1 = 30006 [09:32:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 50 14.07.2024 09:32 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164852 ФПД: 114212347221183 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T093203&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164852&fm=114212347221183&tin=02508201610067®Number=0000000000090829&sum=30000 [09:32:02]StoreToDocumentArchive [09:32:02]shift 447 fd 164852 [09:32:02]save to /storage/0447/doc_00164852 [09:32:02]save last doc name /storage/0447/doc_00164852 to /storage/kkm_last_doc_name [09:32:02]save OK [09:32:02]Clear old archive folders... [09:32:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:32:02]tlvbuf is B6F71C50 [09:32:02]SAM_PROTO_ClearQueue [09:32:02]wFMCommunicate request_size=4 [09:32:02]MH_SAM_APDU [09:32:02]CAPDU: 80 09 00 00 [09:32:02]Write to MH i2c: E2 08 00 BB 0F 80 09 00 00 00 00 00 00 3C [09:32:02]Write i2c OK [09:32:02]MH_I2C_Read... [09:32:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:32:02]Read from MH i2c: E2 [09:32:02]MH_I2C_Read... [09:32:02]Read from MH i2c: E2 03 00 [09:32:02]MH_I2C_Read... [09:32:02]Read from MH i2c: E2 03 00 BB 0F 00 90 00 3E [09:32:02]RAPDU: 90 00 [09:32:02]wFMCommunicate OK [09:32:02]SAM_PROTO_ClearQueue done [09:32:02]KKMCreateOFDPacket [09:32:02]OFDProtocolAddRootSTLVToBuf [09:32:02]FM_MakeSignedData [09:32:02]FM_MakeSignedData [09:32:02]SAM_PROTO_SignData [09:32:02]wFMCommunicate request_size=4 [09:32:02]MH_SAM_APDU [09:32:02]CAPDU: 80 0D 01 02 [09:32:02]Write to MH i2c: E2 08 00 BC 0F 80 0D 01 02 00 00 00 00 44 [09:32:02]Write i2c OK [09:32:02]MH_I2C_Read... [09:32:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:32:02]Read from MH i2c: E2 [09:32:02]MH_I2C_Read... [09:32:02]Read from MH i2c: E2 03 00 [09:32:02]MH_I2C_Read... [09:32:02]Read from MH i2c: E2 03 00 BC 0F 00 90 00 3F [09:32:02]RAPDU: 90 00 [09:32:02]wFMCommunicate OK [09:32:02]wFMCommunicate request_size=255 [09:32:02]MH_SAM_APDU [09:32:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 13 9B 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F4 83 02 00 35 04 06 00 67 [09:32:02]Write to MH i2c: E2 02 01 BD 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 13 9B 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F4 83 02 00 35 04 06 00 67 00 00 F7 [09:32:02]Write i2c OK [09:32:02]MH_I2C_Read... [09:32:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:02]Read from MH i2c: E2 [09:32:02]MH_I2C_Read... [09:32:02]Read from MH i2c: E2 03 00 [09:32:02]MH_I2C_Read... [09:32:02]Read from MH i2c: E2 03 00 BD 0F 00 90 00 40 [09:32:02]RAPDU: 90 00 [09:32:02]wFMCommunicate OK [09:32:02]wFMCommunicate request_size=10 [09:32:02]MH_SAM_APDU [09:32:02]CAPDU: 80 0D 02 02 05 E0 22 62 94 BF [09:32:02]Write to MH i2c: E2 0D 00 BE 0F 80 0D 02 02 05 00 E0 22 62 94 BF 00 00 08 [09:32:02]Write i2c OK [09:32:02]MH_I2C_Read... [09:32:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:02]Read from MH i2c: E2 [09:32:02]MH_I2C_Read... [09:32:02]Read from MH i2c: E2 03 00 [09:32:02]MH_I2C_Read... [09:32:02]Read from MH i2c: E2 03 00 BE 0F 00 90 00 41 [09:32:02]RAPDU: 90 00 [09:32:02]wFMCommunicate OK [09:32:02]wFMCommunicate request_size=4 [09:32:02]MH_SAM_APDU [09:32:02]CAPDU: 80 0D 03 02 [09:32:02]Write to MH i2c: E2 08 00 BF 0F 80 0D 03 02 00 00 00 00 49 [09:32:02]Write i2c OK [09:32:02]MH_I2C_Read... [09:32:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:32:02]Read from MH i2c: E2 [09:32:02]MH_I2C_Read... [09:32:02]Read from MH i2c: E2 0B 00 [09:32:02]MH_I2C_Read... [09:32:02]Read from MH i2c: E2 0B 00 BF 0F 00 C1 09 6E B9 B7 3B 48 B8 90 00 2D [09:32:02]RAPDU: C1 09 6E B9 B7 3B 48 B8 90 00 [09:32:02]wFMCommunicate OK [09:32:02]SAM_PROTO_SignData done [09:32:02]FM_MakeSignedData done [09:32:02]CreateOFDProtocolMessage [09:32:02]wFMCommunicate request_size=4 [09:32:02]MH_SAM_APDU [09:32:02]CAPDU: 80 11 00 00 [09:32:02]Write to MH i2c: E2 08 00 C0 0F 80 11 00 00 00 00 00 00 49 [09:32:02]Write i2c OK [09:32:02]MH_I2C_Read... [09:32:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:02]Read from MH i2c: E2 [09:32:02]MH_I2C_Read... [09:32:02]Read from MH i2c: E2 17 00 [09:32:02]MH_I2C_Read... [09:32:02]Read from MH i2c: E2 17 00 C0 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 9F [09:32:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:32:02]wFMCommunicate OK [09:32:02]CreateOFDProtocolMessage done [09:32:02]OFDSenderStorePacket 164852 [09:32:02]StoreOFDPacket docnum=164852 [09:32:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 87 09 07 01 0B 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 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 13 9B 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F4 83 02 00 35 04 06 00 67 E0 22 62 94 BF C1 09 6E B9 B7 3B 48 B8 [09:32:02]CheckFolder [09:32:02]dirname=/storage/ofd_packets [09:32:02]CheckFolder done [09:32:02]ProducePacketName [09:32:02]name=ofd_packets/00164852 [09:32:02]NVStorageSaveData ofd_packets/00164852 [09:32:02]File name is /storage/ofd_packets/00164852 [09:32:02]Write 301 bytes [09:32:02]NVStorageSaveData done [09:32:02]OFDSenderStorePacket done [09:32:02]KKMCreateOFDPacket done [09:32:02]NVStorageSaveData kkm_last_timestamp [09:32:02]File name is /storage/kkm_last_timestamp [09:32:02]Write 4 bytes [09:32:02]NVStorageSaveData done [09:32:02]ExternCall_PrintAddStr [09:32:02]wPrintStart [09:32:02]Write to MH i2c: 01 00 00 C1 0F D0 [09:32:02]Write i2c OK [09:32:02]MH_I2C_Read... [09:32:02]Read from MH i2c: 01 [09:32:02]MH_I2C_Read... [09:32:02]Read from MH i2c: 01 07 00 [09:32:02]MH_I2C_Read... [09:32:02]Read from MH i2c: 01 07 00 C1 0F 00 00 00 00 00 FF 0F E5 [09:32:02]RasterBufferAndPrint [09:32:02]line Счет N : (1)458948 [09:32:02]line ИНН: 02508201610067 [09:32:02]line Контрольно-Кассовый Чек [09:32:02]line ПРОДАЖА [09:32:02]line ТРК (МРК, ГНК) : 12 [09:32:02]line Товар: 2710124130 [09:32:02]line Аи-92-К-5 [09:32:02]line 4.560 * 65.80 [09:32:02]line = 300.05 [09:32:02]line НДС 12% НСП 1% [09:32:02]line > о реализуемом товаре [09:32:02]line ОКРУГЛЕНИЕ: -0.05 [09:32:02]line ИТОГО: 300.00 [09:32:02]line Внесено: 300.00 [09:32:02]line СДАЧА: 0.00 [09:32:02]line НСП 1% : 2.65 [09:32:02]line НДС 12% : 31.86 [09:32:02]line Наличными: 300.00 [09:32:02]line Безнал.: 0.00 [09:32:02]line Место: АЗС № 72 "Партнер Нефть" [09:32:02]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:32:02]line СНО: Общий режим [09:32:02]line Чек 50 14.07.2024 09:32 [09:32:02]line Смена: 447 ФФД: 1.0 [09:32:02]line ЗНМ: 0300000160 [09:32:02]line РНМ: 0000000000090829 [09:32:02]line Версия ККМ: 001 [09:32:02]line ФМ: 0000000000874718 [09:32:02]line ФД: 164852 [09:32:02]line ФПД: 114212347221183 [09:32:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T093203&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164852&fm=114212347221183&tin=02508201610067®Number=0000000000090829&sum=30000 [09:32:03]OFD Sender: Processing packet 164852 [packets to send 104, broken 103] [09:32:03]ProducePacketName [09:32:03]name=ofd_packets/00164852 [09:32:03]OFD Sender: To server: pG, [09:32:03]CommunicateWithHost lk.salyk.kg:30040 [09:32:03]ConnectInit lk.salyk.kg [09:32:03]written 0, free lines is 4095 [09:32:03]Connected sock=10 [09:32:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 87 09 07 01 0B 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 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 13 9B 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F4 83 02 00 35 04 06 00 67 E0 22 62 94 BF C1 09 6E B9 B7 3B 48 B8 [09:32:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 48 BD 47 00 6D 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F4 83 02 00 F4 03 04 00 A1 41 93 66 B6 04 01 00 00 7C 88 78 41 CE 51 F5 4E [09:32:03]CommunicateWithHost err = 0 [09:32:03]CheckOFDResponse [09:32:03]1017 (14) - 77093643461234 [09:32:03]1041 (16) - 0000000000874718 [09:32:03]1040 (4) - 164852 [09:32:03]1012 (4) - 14.07.2024 03:10 [09:32:03]1206 (1) - 0 [09:32:03]OFD Sender: Remove packet 164852 [09:32:03]ProducePacketName [09:32:03]name=ofd_packets/00164852 [09:32:03]NVStorageDeleteData [09:32:03]Write to MH i2c: 01 00 00 EB 0F FA [09:32:03]Write i2c OK [09:32:03]MH_I2C_Read... [09:32:03]Read from MH i2c: 01 [09:32:03]MH_I2C_Read... [09:32:03]Read from MH i2c: 01 07 00 [09:32:03]MH_I2C_Read... [09:32:03]Read from MH i2c: 01 07 00 EB 0F 00 00 00 00 00 F3 0C 00 [09:32:03]RasterBufferAndPrint [09:32:03]line [09:32:03]line [09:32:03]line [09:32:03]line [09:32:03]line [09:32:03]written 0, free lines is 3322 [09:32:03]MH_Cut [09:32:03]Write to MH i2c: D1 01 00 F2 0F 01 D3 [09:32:03]Write i2c OK [09:32:03]MH_I2C_Read... [09:32:03]Read from MH i2c: D1 [09:32:03]MH_I2C_Read... [09:32:03]Read from MH i2c: D1 01 00 [09:32:03]MH_I2C_Read... [09:32:03]Read from MH i2c: D1 01 00 F2 0F 00 D2 [09:32:03]Write to MH i2c: 01 00 00 F3 0F 02 [09:32:03]Write i2c OK [09:32:03]MH_I2C_Read... [09:32:03]OFD Sender: No OFD packet to send [09:32:04]*** Cut start [09:32:04]*** Partial cut [09:32:04]*** CUTSNS_PIN = 1 [09:32:04]*** CUTSNS_PIN = 0 [09:32:04]*** Brake cut motor [09:32:04]Read from MH i2c: 01 [09:32:04]MH_I2C_Read... [09:32:04]*** Stop cut motor [09:32:04]*** Cut end [09:32:04]Read from MH i2c: 01 07 00 [09:32:04]MH_I2C_Read... [09:32:04]Read from MH i2c: 01 07 00 F3 0F 00 00 00 00 00 FF 0F 17 [09:32:04]process_action close_receipt done [09:32:04]requested_data is exist [09:32:04]produce_requested_data [09:32:04]requested_item fm.sn is exist - process it [09:32:04]wFMCommunicate request_size=4 [09:32:04]MH_SAM_APDU [09:32:04]CAPDU: 80 11 00 00 [09:32:04]Write to MH i2c: E2 08 00 F4 0F 80 11 00 00 00 00 00 00 7D [09:32:04]Write i2c OK [09:32:04]MH_I2C_Read... [09:32:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:04]Read from MH i2c: E2 [09:32:04]MH_I2C_Read... [09:32:04]Read from MH i2c: E2 17 00 [09:32:04]MH_I2C_Read... [09:32:04]Read from MH i2c: E2 17 00 F4 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D3 [09:32:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:32:04]wFMCommunicate OK [09:32:04]requested_item fd.num is exist - process it [09:32:04]SAM_PROTO_GetFieldsCounters [09:32:04]wFMCommunicate request_size=4 [09:32:04]MH_SAM_APDU [09:32:04]CAPDU: 80 13 00 00 [09:32:04]Write to MH i2c: E2 08 00 F5 0F 80 13 00 00 00 00 00 00 80 [09:32:04]Write i2c OK [09:32:04]MH_I2C_Read... [09:32:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:32:04]Read from MH i2c: E2 [09:32:04]MH_I2C_Read... [09:32:04]Read from MH i2c: E2 62 00 [09:32:04]MH_I2C_Read... [09:32:04]Read from MH i2c: E2 62 00 F5 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F4 83 02 00 0E 04 04 00 BF 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 76 [09:32:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F4 83 02 00 0E 04 04 00 BF 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 [09:32:04]wFMCommunicate OK [09:32:04]SAM_PROTO_GetFieldsCounters done [09:32:04]requested_item shift.num is exist - process it [09:32:04]requested_item shift.opened is exist - process it [09:32:04]req_shift_opened [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 F6 0F 80 13 01 00 00 00 00 00 82 [09:32:04]Write i2c OK [09:32:04]MH_I2C_Read... [09:32:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:05]Read from MH i2c: E2 [09:32:05]MH_I2C_Read... [09:32:05]Read from MH i2c: E2 0E 00 [09:32:05]MH_I2C_Read... [09:32:05]Read from MH i2c: E2 0E 00 F6 0F 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 02 [09:32:05]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [09:32:05]wFMCommunicate OK [09:32:05]SAM_PROTO_GetShiftState done [09:32:05]FM_GetShiftState done [09:32:05]req_shift_opened done [09:32:05]requested_item shift.open_date is exist - process it [09:32:05]req_shift_open_date [09:32:05]req_shift_open_date done [09:32:05]produce_requested_data done [09:32:05]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164852,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [09:32:05]process_action_free close_receipt [09:32:05]json_value_free [09:32:05]json_value_free done [09:32:05]process_json_proto returns [09:32:05]Send response to host [09:32:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164852,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [09:32:05]free response buf [09:32:05]execute_script done [09:32:05]execute_script returns [09:32:05]free content buf [09:32:05]Sock 9.Close socket [09:32:05]Sock 9.Thread stoped [09:32:08]OFD Sender: No OFD packet to send [09:32:13]OFD Sender: No OFD packet to send [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 CB FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 70 [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 54000000005725CB (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 31506039+1689443529=1720949568 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x20ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33520623 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [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 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 CB FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 71 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 60 00 FF FF 7F [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 41 9B 93 66 C9 DC B2 64 8F [09:32:49]Current date/time: 14.07.2024 09:32 [09:32:49]FM_Init [09:32:49]wFMConnect [09:32:49]MH_SAM_On [09:32:49]Write to MH i2c: E0 00 00 08 00 E7 [09:32:49]Write i2c OK [09:32:49]MH_I2C_Read... [09:32:49]*** iso7816_init finished! [09:32:49]*** atr: [09:32:49]*** 0F 3B D5 18 FF 81 91 FE [09:32:49]*** 1F C3 80 73 C8 21 10 0A [09:32:49]*** 00 00 00 00 00 00 00 00 [09:32:49]*** 00 00 00 00 00 00 00 00 [09:32:49]*** 00 00 00 00 00 00 00 00 [09:32:49]*** 00 00 00 00 00 00 00 00 [09:32:49]*** 00 00 00 00 00 00 00 00 [09:32:49]*** 00 00 00 00 00 00 00 00 [09:32:49]Read from MH i2c: E0 [09:32:49]MH_I2C_Read... [09:32:49]Read from MH i2c: E0 10 00 [09:32:49]MH_I2C_Read... [09:32:49]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 [09:32:49]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [09:32:49]wFMCommunicate request_size=10 [09:32:49]MH_SAM_APDU [09:32:49]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [09:32:49]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [09:32:49]Write i2c OK [09:32:49]MH_I2C_Read... [09:32:49]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [09:32:49]Read from MH i2c: E2 [09:32:49]MH_I2C_Read... [09:32:49]Read from MH i2c: E2 03 00 [09:32:49]MH_I2C_Read... [09:32:49]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [09:32:49]RAPDU: 90 00 [09:32:49]wFMCommunicate OK [09:32:49]wFMCommunicate request_size=4 [09:32:49]MH_SAM_APDU [09:32:49]CAPDU: 80 11 00 00 [09:32:49]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [09:32:49]Write i2c OK [09:32:49]MH_I2C_Read... [09:32:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:49]Read from MH i2c: E2 [09:32:49]MH_I2C_Read... [09:32:49]Read from MH i2c: E2 17 00 [09:32:49]MH_I2C_Read... [09:32:49]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DA [09:32:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:32:49]wFMCommunicate OK [09:32:49]Detected FM SN is 0000000000874718 [09:32:49]Stored FM SN is 0000000000874718 [09:32:49]wFMCommunicate request_size=9 [09:32:49]MH_SAM_APDU [09:32:49]CAPDU: 80 16 00 00 04 29 B3 00 00 [09:32:49]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 29 B3 00 00 00 00 6E [09:32:49]Write i2c OK [09:32:49]MH_I2C_Read... [09:32:49]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [09:32:49]Read from MH i2c: E2 [09:32:49]MH_I2C_Read... [09:32:49]Read from MH i2c: E2 03 00 [09:32:49]MH_I2C_Read... [09:32:49]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [09:32:49]RAPDU: 90 00 [09:32:49]wFMCommunicate OK [09:32:49]FM PIN OK [09:32:49]wFMCommunicate request_size=8 [09:32:49]MH_SAM_APDU [09:32:49]CAPDU: 80 14 04 00 03 02 00 01 [09:32:49]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [09:32:49]Write i2c OK [09:32:49]MH_I2C_Read... [09:32:49]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [09:32:49]Read from MH i2c: E2 [09:32:49]MH_I2C_Read... [09:32:49]Read from MH i2c: E2 03 00 [09:32:49]MH_I2C_Read... [09:32:49]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [09:32:49]RAPDU: 90 00 [09:32:49]wFMCommunicate OK [09:32:49]wFMCommunicate request_size=13 [09:32:49]MH_SAM_APDU [09:32:49]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [09:32:49]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 [09:32:49]Write i2c OK [09:32:49]MH_I2C_Read... [09:32:49]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [09:32:49]Read from MH i2c: E2 [09:32:49]MH_I2C_Read... [09:32:49]Read from MH i2c: E2 03 00 [09:32:49]MH_I2C_Read... [09:32:49]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [09:32:49]RAPDU: 90 00 [09:32:49]wFMCommunicate OK [09:32:49]wFMCommunicate request_size=4 [09:32:49]MH_SAM_APDU [09:32:49]CAPDU: 80 11 00 00 [09:32:49]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [09:32:49]Write i2c OK [09:32:49]MH_I2C_Read... [09:32:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:49]Read from MH i2c: E2 [09:32:49]MH_I2C_Read... [09:32:49]Read from MH i2c: E2 17 00 [09:32:49]MH_I2C_Read... [09:32:49]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DE [09:32:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:32:49]wFMCommunicate OK [09:32:49]DocumentArchiveInit [09:32:49]Start Httpd... [09:32:49]Httpd thread 3067903332 created [09:32:49]Write to MH i2c: 01 00 00 0F 00 0F [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 0F 00 00 00 00 00 00 FF 0F 24 [09:32:49]MH Int Process started [09:32:49]Allocated Socket 8 [09:32:49]Bind OK [09:32:49]Listen OK [09:32:49]httpd running on port 8080 [09:32:49]Waiting for new connection... [09:32:49]OFD Sender: No OFD packet to send [09:32:54]OFD Sender: No OFD packet to send [09:32:57]accept exits with 9 [09:32:57]New connection [09:32:57]New thread 3067616612 created [09:32:57]Waiting for new connection... [09:32:57] Sock 9.Parse request [09:32:57]Sock 9.Check first char [09:32:57]Sock 9.First char is OK [09:32:57]request: POST /json_proto HTTP/1.0 [09:32:57]Method: POST [09:32:57]URL: /json_proto [09:32:57]Method is POST - this is cgi request [09:32:57]url: /json_proto [09:32:57]query_string will be loaded in cgi processing [09:32:57]execute_cgi json_proto POST (null) [09:32:57]execute_cgi path=json_proto method=POST [09:32:57]POST find Content-Length [09:32:57]Host: 172.17.56.4:8080 [09:32:57]Content-Length: 215 [09:32:57]Content-Type: application/json [09:32:57] [09:32:57]POST finish read [09:32:57]Found Content-Length = 215 [09:32:57]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" ] } } [09:32:57]execute_script... [09:32:57]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" ] } } [09:32:57]POST & json_proto [09:32:57]process_json_proto [09:32:57]json parsed OK: [09:32:57]protocol is kg_v1.0 [09:32:57]action value=get_value [09:32:57]process_action get_value [09:32:57]cmd_get_value [09:32:57]process_action get_value done [09:32:57]requested_data is exist [09:32:57]produce_requested_data [09:32:57]requested_item kkm.sn is exist - process it [09:32:57]requested_item kkm.ver is exist - process it [09:32:57]requested_item fm.sn is exist - process it [09:32:57]wFMCommunicate request_size=4 [09:32:57]MH_SAM_APDU [09:32:57]CAPDU: 80 11 00 00 [09:32:57]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [09:32:57]Write i2c OK [09:32:57]MH_I2C_Read... [09:32:57]Read from MH i2c: E2 [09:32:57]MH_I2C_Read... [09:32:57]Read from MH i2c: E2 17 00 [09:32:57]MH_I2C_Read... [09:32:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:57]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E0 [09:32:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:32:57]wFMCommunicate OK [09:32:57]requested_item fd.num is exist - process it [09:32:57]SAM_PROTO_GetFieldsCounters [09:32:57]wFMCommunicate request_size=4 [09:32:57]MH_SAM_APDU [09:32:57]CAPDU: 80 13 00 00 [09:32:57]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [09:32:57]Write i2c OK [09:32:57]MH_I2C_Read... [09:32:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:32:57]Read from MH i2c: E2 [09:32:57]MH_I2C_Read... [09:32:57]Read from MH i2c: E2 62 00 [09:32:57]MH_I2C_Read... [09:32:57]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 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F4 83 02 00 0E 04 04 00 BF 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 83 [09:32:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F4 83 02 00 0E 04 04 00 BF 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 [09:32:57]wFMCommunicate OK [09:32:57]SAM_PROTO_GetFieldsCounters done [09:32:57]requested_item shift.num is exist - process it [09:32:57]requested_item shift.opened is exist - process it [09:32:57]req_shift_opened [09:32:57]FM_GetShiftState [09:32:57]SAM_PROTO_GetShiftState [09:32:57]wFMCommunicate request_size=4 [09:32:57]MH_SAM_APDU [09:32:57]CAPDU: 80 13 01 00 [09:32:57]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [09:32:57]Write i2c OK [09:32:57]MH_I2C_Read... [09:32:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:57]Read from MH i2c: E2 [09:32:57]MH_I2C_Read... [09:32:57]Read from MH i2c: E2 0E 00 [09:32:57]MH_I2C_Read... [09:32:57]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 0F [09:32:57]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [09:32:57]wFMCommunicate OK [09:32:57]SAM_PROTO_GetShiftState done [09:32:57]FM_GetShiftState done [09:32:57]req_shift_opened done [09:32:57]requested_item shift.open_date is exist - process it [09:32:57]req_shift_open_date [09:32:57]req_shift_open_date done [09:32:57]produce_requested_data done [09:32:57]produce_requested_data return {"kkm.sn":"0300000160","kkm.ver":"001","fm.sn":"0000000000874718","fd.num":164852,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [09:32:57]process_action_free get_value [09:32:57]json_value_free [09:32:57]json_value_free done [09:32:57]process_json_proto returns [09:32:57]Send response to host [09:32:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000160","kkm.ver":"001","fm.sn":"0000000000874718","fd.num":164852,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [09:32:57]free response buf [09:32:57]execute_script done [09:32:57]execute_script returns [09:32:57]free content buf [09:32:57]Sock 9.Close socket [09:32:57]Sock 9.Thread stoped [09:32:57]accept exits with 7 [09:32:57]New connection [09:32:57]New thread 3067473252 created [09:32:57]Thread 3067616612 joined [09:32:57]Waiting for new connection... [09:32:57] Sock 7.Parse request [09:32:57]Sock 7.Check first char [09:32:57]Sock 7.First char is OK [09:32:57]request: POST /json_proto HTTP/1.0 [09:32:57]Method: POST [09:32:57]URL: /json_proto [09:32:57]Method is POST - this is cgi request [09:32:57]url: /json_proto [09:32:57]query_string will be loaded in cgi processing [09:32:57]execute_cgi json_proto POST (null) [09:32:57]execute_cgi path=json_proto method=POST [09:32:57]POST find Content-Length [09:32:57]Host: 172.17.56.4:8080 [09:32:57]Content-Length: 331 [09:32:57]Content-Type: application/json [09:32:57] [09:32:57]POST finish read [09:32:57]Found Content-Length = 331 [09:32:57]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" ] } } [09:32:57]execute_script... [09:32:57]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" ] } } [09:32:57]POST & json_proto [09:32:57]process_json_proto [09:32:57]json parsed OK: [09:32:57]protocol is kg_v1.0 [09:32:57]action value=get_value [09:32:57]process_action get_value [09:32:58]cmd_get_value [09:32:58]process_action get_value done [09:32:58]requested_data is exist [09:32:58]produce_requested_data [09:32:58]requested_item fm.sale.total is exist - process it [09:32:58]SAM_PROTO_GetFMData [09:32:58]wFMCommunicate request_size=4 [09:32:58]MH_SAM_APDU [09:32:58]CAPDU: 80 13 03 00 [09:32:58]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [09:32:58]Write i2c OK [09:32:58]MH_I2C_Read... [09:32:58]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [09:32:58]Read from MH i2c: E2 [09:32:58]MH_I2C_Read... [09:32:58]Read from MH i2c: E2 FD 00 [09:32:58]MH_I2C_Read... [09:32:58]Read from MH i2c: E2 FD 00 13 00 00 C4 04 85 04 C0 04 6E 04 04 00 73 80 02 00 69 04 A3 00 6F 04 04 00 65 7F 02 00 B1 04 05 00 5A 78 39 58 02 70 04 05 00 15 45 11 36 02 72 04 04 00 45 33 28 22 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 1D EB C3 3F 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 1C 23 50 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 0E 01 00 00 B1 04 04 00 6C E5 46 03 70 04 04 00 6C E5 46 03 72 04 00 00 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 23 19 59 EF 03 09 00 90 00 CB [09:32:58]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 73 80 02 00 69 04 A3 00 6F 04 04 00 65 7F 02 00 B1 04 05 00 5A 78 39 58 02 70 04 05 00 15 45 11 36 02 72 04 04 00 45 33 28 22 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 1D EB C3 3F 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 1C 23 50 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 0E 01 00 00 B1 04 04 00 6C E5 46 03 70 04 04 00 6C E5 46 03 72 04 00 00 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 23 19 59 EF 03 09 00 90 00 [09:32:58]wFMCommunicate OK [09:32:58]wFMCommunicate request_size=4 [09:32:58]MH_SAM_APDU [09:32:58]CAPDU: 80 17 00 00 [09:32:58]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [09:32:58]Write i2c OK [09:32:58]MH_I2C_Read... [09:32:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:32:58]Read from MH i2c: E2 [09:32:58]MH_I2C_Read... [09:32:58]Read from MH i2c: E2 FD 00 [09:32:58]MH_I2C_Read... [09:32:58]Read from MH i2c: E2 FD 00 14 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B1 6C 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 6E [09:32:58]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B1 6C 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [09:32:58]wFMCommunicate OK [09:32:58]wFMCommunicate request_size=4 [09:32:58]MH_SAM_APDU [09:32:58]CAPDU: 80 17 00 00 [09:32:58]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [09:32:58]Write i2c OK [09:32:58]MH_I2C_Read... [09:32:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:32:59]Read from MH i2c: E2 [09:32:59]MH_I2C_Read... [09:32:59]Read from MH i2c: E2 FD 00 [09:32:59]MH_I2C_Read... [09:32:59]Read from MH i2c: E2 FD 00 15 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 AA [09:32:59]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [09:32:59]wFMCommunicate OK [09:32:59]wFMCommunicate request_size=4 [09:32:59]MH_SAM_APDU [09:32:59]CAPDU: 80 17 00 00 [09:32:59]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [09:32:59]Write i2c OK [09:32:59]MH_I2C_Read... [09:32:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:32:59]Read from MH i2c: E2 [09:32:59]MH_I2C_Read... [09:32:59]Read from MH i2c: E2 FD 00 [09:32:59]MH_I2C_Read... [09:32:59]Read from MH i2c: E2 FD 00 16 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 0E [09:32:59]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [09:32:59]wFMCommunicate OK [09:32:59]wFMCommunicate request_size=4 [09:32:59]MH_SAM_APDU [09:32:59]CAPDU: 80 17 00 00 [09:32:59]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [09:32:59]Write i2c OK [09:32:59]MH_I2C_Read... [09:32:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [09:32:59]Read from MH i2c: E2 [09:32:59]MH_I2C_Read... [09:32:59]Read from MH i2c: E2 E1 00 [09:32:59]MH_I2C_Read... [09:32:59]OFD Sender: No OFD packet to send [09:32:59]Read from MH i2c: E2 E1 00 17 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [09:32:59]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [09:32:59]wFMCommunicate OK [09:32:59]SAM_PROTO_GetFMData done [09:32:59]requested_item fm.sale_refund.total is exist - process it [09:32:59]requested_item fm.buy.total is exist - process it [09:32:59]requested_item shift.sale.total is exist - process it [09:32:59]SAM_PROTO_GetShiftData [09:32:59]wFMCommunicate request_size=4 [09:32:59]MH_SAM_APDU [09:32:59]CAPDU: 80 13 02 00 [09:32:59]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [09:32:59]Write i2c OK [09:32:59]MH_I2C_Read... [09:33:00]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [09:33:00]Read from MH i2c: E2 [09:33:00]MH_I2C_Read... [09:33:00]Read from MH i2c: E2 FD 00 [09:33:00]MH_I2C_Read... [09:33:00]Read from MH i2c: E2 FD 00 18 00 00 AE 04 AA 04 AA 04 6E 04 04 00 32 00 00 00 69 04 9B 00 6F 04 04 00 32 00 00 00 B1 04 03 00 F4 DF 28 70 04 03 00 FC 37 26 72 04 03 00 F8 A7 02 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 83 57 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 97 5C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 81 [09:33:00]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 32 00 00 00 69 04 9B 00 6F 04 04 00 32 00 00 00 B1 04 03 00 F4 DF 28 70 04 03 00 FC 37 26 72 04 03 00 F8 A7 02 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 83 57 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 97 5C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [09:33:00]wFMCommunicate OK [09:33:00]wFMCommunicate request_size=4 [09:33:00]MH_SAM_APDU [09:33:00]CAPDU: 80 17 00 00 [09:33:00]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [09:33:00]Write i2c OK [09:33:00]MH_I2C_Read... [09:33:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:33:00]Read from MH i2c: E2 [09:33:00]MH_I2C_Read... [09:33:00]Read from MH i2c: E2 FD 00 [09:33:00]MH_I2C_Read... [09:33:00]Read from MH i2c: E2 FD 00 19 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 BB [09:33:00]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [09:33:00]wFMCommunicate OK [09:33:00]wFMCommunicate request_size=4 [09:33:00]MH_SAM_APDU [09:33:00]CAPDU: 80 17 00 00 [09:33:00]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [09:33:00]Write i2c OK [09:33:00]MH_I2C_Read... [09:33:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:33:00]Read from MH i2c: E2 [09:33:00]MH_I2C_Read... [09:33:00]Read from MH i2c: E2 FD 00 [09:33:00]MH_I2C_Read... [09:33:00]Read from MH i2c: E2 FD 00 1A 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 51 [09:33:00]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [09:33:00]wFMCommunicate OK [09:33:00]wFMCommunicate request_size=4 [09:33:00]MH_SAM_APDU [09:33:00]CAPDU: 80 17 00 00 [09:33:00]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [09:33:00]Write i2c OK [09:33:00]MH_I2C_Read... [09:33:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:33:00]Read from MH i2c: E2 [09:33:00]MH_I2C_Read... [09:33:00]Read from MH i2c: E2 FD 00 [09:33:00]MH_I2C_Read... [09:33:00]Read from MH i2c: E2 FD 00 1B 00 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 0D [09:33:00]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [09:33:00]wFMCommunicate OK [09:33:00]wFMCommunicate request_size=4 [09:33:00]MH_SAM_APDU [09:33:00]CAPDU: 80 17 00 00 [09:33:00]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [09:33:00]Write i2c OK [09:33:00]MH_I2C_Read... [09:33:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [09:33:01]Read from MH i2c: E2 [09:33:01]MH_I2C_Read... [09:33:01]Read from MH i2c: E2 CB 00 [09:33:01]MH_I2C_Read... [09:33:01]Read from MH i2c: E2 CB 00 1C 00 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [09:33:01]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [09:33:01]wFMCommunicate OK [09:33:01]SAM_PROTO_GetShiftData done [09:33:01]requested_item shift.sale.total_cash is exist - process it [09:33:01]requested_item shift.sale_refund.total is exist - process it [09:33:01]requested_item shift.sale_refund.total_cash is exist - process it [09:33:01]requested_item shift.buy.total is exist - process it [09:33:01]requested_item shift.buy.total_cash is exist - process it [09:33:01]produce_requested_data done [09:33:01]produce_requested_data return {"fm.sale.total":100700959.62,"fm.sale_refund.total":549779.00,"fm.buy.total":0.00,"shift.sale.total":26787.72,"shift.sale.total_cash":25047.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} [09:33:01]process_action_free get_value [09:33:01]json_value_free [09:33:01]json_value_free done [09:33:01]process_json_proto returns [09:33:01]Send response to host [09:33:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":100700959.62,"fm.sale_refund.total":549779.00,"fm.buy.total":0.00,"shift.sale.total":26787.72,"shift.sale.total_cash":25047.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}}} [09:33:01]free response buf [09:33:01]execute_script done [09:33:01]execute_script returns [09:33:01]free content buf [09:33:01]Sock 7.Close socket [09:33:01]Sock 7.Thread stoped [09:33:04]OFD Sender: No OFD packet to send [09:33:09]OFD Sender: No OFD packet to send [09:33:14]OFD Sender: No OFD packet to send [09:33:19]OFD Sender: No OFD packet to send [09:33:24]OFD Sender: No OFD packet to send [09:33:29]OFD Sender: No OFD packet to send [09:33:34]OFD Sender: No OFD packet to send [09:33:39]OFD Sender: No OFD packet to send [09:33:44]OFD Sender: No OFD packet to send [09:33:49]OFD Sender: No OFD packet to send [09:33:54]OFD Sender: No OFD packet to send [09:33:59]OFD Sender: No OFD packet to send [09:34:04]OFD Sender: No OFD packet to send [09:34:09]OFD Sender: No OFD packet to send [09:34:14]OFD Sender: No OFD packet to send [09:34:19]OFD Sender: No OFD packet to send [09:34:24]OFD Sender: No OFD packet to send [09:34:29]OFD Sender: No OFD packet to send [09:34:34]OFD Sender: No OFD packet to send [09:34:39]OFD Sender: No OFD packet to send [09:34:44]OFD Sender: No OFD packet to send [09:34:49]OFD Sender: No OFD packet to send [09:34:54]OFD Sender: No OFD packet to send [09:34:59]OFD Sender: No OFD packet to send [09:35:04]OFD Sender: No OFD packet to send [09:35:09]OFD Sender: No OFD packet to send [09:35:14]OFD Sender: No OFD packet to send [09:35:19]OFD Sender: No OFD packet to send [09:35:24]OFD Sender: No OFD packet to send [09:35:29]OFD Sender: No OFD packet to send [09:35:34]OFD Sender: No OFD packet to send [09:35:39]OFD Sender: No OFD packet to send [09:35:41]accept exits with 9 [09:35:41]New connection [09:35:41]New thread 3067616612 created [09:35:41]Thread 3067473252 joined [09:35:41]Waiting for new connection... [09:35:41] Sock 9.Parse request [09:35:41]Sock 9.Check first char [09:35:41]Sock 9.First char is OK [09:35:41]request: POST /json_proto HTTP/1.0 [09:35:41]Method: POST [09:35:41]URL: /json_proto [09:35:41]Method is POST - this is cgi request [09:35:41]url: /json_proto [09:35:41]query_string will be loaded in cgi processing [09:35:41]execute_cgi json_proto POST (null) [09:35:41]execute_cgi path=json_proto method=POST [09:35:41]POST find Content-Length [09:35:41]Host: 172.17.56.4:8080 [09:35:41]Content-Length: 682 [09:35:41]Content-Type: application/json [09:35:41] [09:35:41]POST finish read [09:35:41]Found Content-Length = 682 [09:35:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458949", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 24.630, "sum" : 1620.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1620.00, "total" : 1620.00, "payments": [ { "type": 0, "sum" : 1620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:35:41]execute_script... [09:35: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)458949", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 24.630, "sum" : 1620.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1620.00, "total" : 1620.00, "payments": [ { "type": 0, "sum" : 1620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:35:41]POST & json_proto [09:35:41]process_json_proto [09:35:41]json parsed OK: [09:35:41]protocol is kg_v1.0 [09:35:41]action value=close_receipt [09:35:41]process_action close_receipt [09:35:41]cmd_close_receipt [09:35:41]MH_GetDate [09:35:41]Write to MH i2c: F0 00 00 1D 00 0C [09:35:41]Write i2c OK [09:35:41]MH_I2C_Read... [09:35:41]Read from MH i2c: F0 [09:35:41]MH_I2C_Read... [09:35:41]Read from MH i2c: F0 09 00 [09:35:41]MH_I2C_Read... [09:35:41]Read from MH i2c: F0 09 00 1D 00 00 EE 9B 93 66 C9 DC B2 64 52 [09:35:41]GetLastDocTimeStamp 97 [09:35:41]current date 1720949742 [09:35:41]FM_GetShiftState [09:35:41]SAM_PROTO_GetShiftState [09:35:41]wFMCommunicate request_size=4 [09:35:41]MH_SAM_APDU [09:35:41]CAPDU: 80 13 01 00 [09:35:41]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [09:35:41]Write i2c OK [09:35:41]MH_I2C_Read... [09:35:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:41]Read from MH i2c: E2 [09:35:41]MH_I2C_Read... [09:35:41]Read from MH i2c: E2 0E 00 [09:35:41]MH_I2C_Read... [09:35:41]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 1B [09:35:41]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [09:35:41]wFMCommunicate OK [09:35:41]SAM_PROTO_GetShiftState done [09:35:41]FM_GetShiftState done [09:35:41]opened in 1720917342 [09:35:41]opened+sec_in_day 1721003742 [09:35:41]quantity*price = 162065 [09:35:41]sum+1 = 162066 [09:35:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1620.00 Внесено: 1620.00 СДАЧА: 0.00 НСП 1% : 14.34 НДС 12% : 172.10 Наличными: 1620.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 51 14.07.2024 09:35 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164853 ФПД: 166392398210857 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T093542&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164853&fm=166392398210857&tin=02508201610067®Number=0000000000090829&sum=162000 [09:35:42]StoreToDocumentArchive [09:35:42]shift 447 fd 164853 [09:35:42]save to /storage/0447/doc_00164853 [09:35:42]save last doc name /storage/0447/doc_00164853 to /storage/kkm_last_doc_name [09:35:42]save OK [09:35:42]Clear old archive folders... [09:35:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:35:42]tlvbuf is 007440C0 [09:35:42]SAM_PROTO_ClearQueue [09:35:42]wFMCommunicate request_size=4 [09:35:42]MH_SAM_APDU [09:35:42]CAPDU: 80 09 00 00 [09:35:42]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [09:35:42]Write i2c OK [09:35:42]MH_I2C_Read... [09:35:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:35:42]Read from MH i2c: E2 [09:35:42]MH_I2C_Read... [09:35:42]Read from MH i2c: E2 03 00 [09:35:42]MH_I2C_Read... [09:35:42]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [09:35:42]RAPDU: 90 00 [09:35:42]wFMCommunicate OK [09:35:42]SAM_PROTO_ClearQueue done [09:35:42]KKMCreateOFDPacket [09:35:42]OFDProtocolAddRootSTLVToBuf [09:35:42]FM_MakeSignedData [09:35:42]FM_MakeSignedData [09:35:42]SAM_PROTO_SignData [09:35:42]wFMCommunicate request_size=4 [09:35:42]MH_SAM_APDU [09:35:42]CAPDU: 80 0D 01 02 [09:35:42]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [09:35:42]Write i2c OK [09:35:42]MH_I2C_Read... [09:35:42]*** 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 2C 00 00 90 00 A0 [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 35 FF 03 08 00 03 36 60 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 11 79 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 78 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 43 00 00 00 00 07 04 06 00 D0 78 02 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 EE 9B 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F5 83 02 00 35 04 06 00 97 [09:35:43]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 60 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 11 79 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 78 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 43 00 00 00 00 07 04 06 00 D0 78 02 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 EE 9B 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F5 83 02 00 35 04 06 00 97 00 00 DA [09:35:43]Write i2c OK [09:35:43]MH_I2C_Read... [09:35:43]*** iso7816_exchange 80 0D 02 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 2D 00 00 90 00 A1 [09:35:43]RAPDU: 90 00 [09:35:43]wFMCommunicate OK [09:35:43]wFMCommunicate request_size=10 [09:35:43]MH_SAM_APDU [09:35:43]CAPDU: 80 0D 02 02 05 55 3F C9 E7 29 [09:35:43]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 55 3F C9 E7 29 00 00 1F [09:35:43]Write i2c OK [09:35:43]MH_I2C_Read... [09:35:43]*** iso7816_exchange 80 0D 02 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 2E 00 00 90 00 A2 [09:35:43]RAPDU: 90 00 [09:35:43]wFMCommunicate OK [09:35:43]wFMCommunicate request_size=4 [09:35:43]MH_SAM_APDU [09:35:43]CAPDU: 80 0D 03 02 [09:35:43]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [09:35:43]Write i2c OK [09:35:43]MH_I2C_Read... [09:35:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:35:43]Read from MH i2c: E2 [09:35:43]MH_I2C_Read... [09:35:43]Read from MH i2c: E2 0B 00 [09:35:43]MH_I2C_Read... [09:35:43]Read from MH i2c: E2 0B 00 2F 00 00 2F 4F 4F 48 D3 B6 C3 FC 90 00 08 [09:35:43]RAPDU: 2F 4F 4F 48 D3 B6 C3 FC 90 00 [09:35:43]wFMCommunicate OK [09:35:43]SAM_PROTO_SignData done [09:35:43]FM_MakeSignedData done [09:35:43]CreateOFDProtocolMessage [09:35:43]wFMCommunicate request_size=4 [09:35:43]MH_SAM_APDU [09:35:43]CAPDU: 80 11 00 00 [09:35:43]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [09:35:43]Write i2c OK [09:35:43]MH_I2C_Read... [09:35:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:43]Read from MH i2c: E2 [09:35:43]MH_I2C_Read... [09:35:43]Read from MH i2c: E2 17 00 [09:35:43]MH_I2C_Read... [09:35:43]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 00 [09:35:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:35:43]wFMCommunicate OK [09:35:43]CreateOFDProtocolMessage done [09:35:43]OFDSenderStorePacket 164853 [09:35:43]StoreOFDPacket docnum=164853 [09:35:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 DE D8 07 01 F2 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 60 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 11 79 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 78 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 43 00 00 00 00 07 04 06 00 D0 78 02 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 EE 9B 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F5 83 02 00 35 04 06 00 97 55 3F C9 E7 29 2F 4F 4F 48 D3 B6 C3 FC [09:35:43]CheckFolder [09:35:43]dirname=/storage/ofd_packets [09:35:43]CheckFolder done [09:35:43]ProducePacketName [09:35:43]name=ofd_packets/00164853 [09:35:43]NVStorageSaveData ofd_packets/00164853 [09:35:43]File name is /storage/ofd_packets/00164853 [09:35:43]Write 301 bytes [09:35:43]NVStorageSaveData done [09:35:43]OFDSenderStorePacket done [09:35:43]KKMCreateOFDPacket done [09:35:43]NVStorageSaveData kkm_last_timestamp [09:35:43]File name is /storage/kkm_last_timestamp [09:35:43]Write 4 bytes [09:35:43]NVStorageSaveData done [09:35:43]ExternCall_PrintAddStr [09:35:43]wPrintStart [09:35:43]Write to MH i2c: 01 00 00 31 00 31 [09:35:43]Write i2c OK [09:35:43]MH_I2C_Read... [09:35:43]Read from MH i2c: 01 [09:35:43]MH_I2C_Read... [09:35:43]Read from MH i2c: 01 07 00 [09:35:43]MH_I2C_Read... [09:35:43]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [09:35:43]RasterBufferAndPrint [09:35:43]line Счет N : (1)458949 [09:35:43]line ИНН: 02508201610067 [09:35:43]line Контрольно-Кассовый Чек [09:35:43]line ПРОДАЖА [09:35:43]line ТРК (МРК, ГНК) : 12 [09:35:43]line Товар: 2710124130 [09:35:43]line Аи-92-К-5 [09:35:43]line 24.630 * 65.80 [09:35:43]line = 1620.65 [09:35:43]line НДС 12% НСП 1% [09:35:43]line > о реализуемом товаре [09:35:43]line ОКРУГЛЕНИЕ: -0.65 [09:35:43]line ИТОГО: 1620.00 [09:35:43]line Внесено: 1620.00 [09:35:43]line СДАЧА: 0.00 [09:35:43]line НСП 1% : 14.34 [09:35:43]line НДС 12% : 172.10 [09:35:43]line Наличными: 1620.00 [09:35:43]line Безнал.: 0.00 [09:35:43]line Место: АЗС № 72 "Партнер Нефть" [09:35:43]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:35:43]line СНО: Общий режим [09:35:43]line Чек 51 14.07.2024 09:35 [09:35:43]line Смена: 447 ФФД: 1.0 [09:35:43]line ЗНМ: 0300000160 [09:35:43]line РНМ: 0000000000090829 [09:35:43]line Версия ККМ: 001 [09:35:43]line ФМ: 0000000000874718 [09:35:43]line ФД: 164853 [09:35:43]line ФПД: 166392398210857 [09:35:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T093542&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164853&fm=166392398210857&tin=02508201610067®Number=0000000000090829&sum=162000 [09:35:43]written 0, free lines is 4095 [09:35:43]OFD Sender: Processing packet 164853 [packets to send 104, broken 103] [09:35:43]ProducePacketName [09:35:43]name=ofd_packets/00164853 [09:35:43]OFD Sender: To server: pG, [09:35:43]CommunicateWithHost lk.salyk.kg:30040 [09:35:43]ConnectInit lk.salyk.kg [09:35:43]Connected sock=10 [09:35:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 DE D8 07 01 F2 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 60 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 11 79 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 78 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 43 00 00 00 00 07 04 06 00 D0 78 02 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 EE 9B 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F5 83 02 00 35 04 06 00 97 55 3F C9 E7 29 2F 4F 4F 48 D3 B6 C3 FC [09:35:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 DF 20 47 00 92 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 38 37 34 37 31 38 10 04 04 00 F5 83 02 00 F4 03 04 00 7C 42 93 66 B6 04 01 00 00 2E 28 00 4E 07 DB 26 0D [09:35:43]CommunicateWithHost err = 0 [09:35:43]CheckOFDResponse [09:35:43]1017 (14) - 77093643461234 [09:35:43]1041 (16) - 0000000000874718 [09:35:43]1040 (4) - 164853 [09:35:43]1012 (4) - 14.07.2024 03:14 [09:35:43]1206 (1) - 0 [09:35:43]OFD Sender: Remove packet 164853 [09:35:43]ProducePacketName [09:35:43]name=ofd_packets/00164853 [09:35:43]NVStorageDeleteData [09:35:43]Write to MH i2c: 01 00 00 5B 00 5B [09:35:43]Write i2c OK [09:35:43]MH_I2C_Read... [09:35:43]Read from MH i2c: 01 [09:35:43]MH_I2C_Read... [09:35:43]Read from MH i2c: 01 07 00 [09:35:43]MH_I2C_Read... [09:35:43]Read from MH i2c: 01 07 00 5B 00 00 00 00 00 00 15 0D 84 [09:35:43]RasterBufferAndPrint [09:35:43]line [09:35:43]line [09:35:43]line [09:35:43]line [09:35:43]line [09:35:43]written 0, free lines is 3356 [09:35:43]MH_Cut [09:35:43]Write to MH i2c: D1 01 00 62 00 01 34 [09:35:43]Write i2c OK [09:35:43]MH_I2C_Read... [09:35:43]Read from MH i2c: D1 [09:35:43]MH_I2C_Read... [09:35:43]Read from MH i2c: D1 01 00 [09:35:43]MH_I2C_Read... [09:35:43]Read from MH i2c: D1 01 00 62 00 00 33 [09:35:43]Write to MH i2c: 01 00 00 63 00 63 [09:35:43]Write i2c OK [09:35:43]MH_I2C_Read... [09:35:44]OFD Sender: No OFD packet to send [09:35:44]*** Cut start [09:35:44]*** Partial cut [09:35:44]*** CUTSNS_PIN = 1 [09:35:44]*** CUTSNS_PIN = 0 [09:35:44]*** Brake cut motor [09:35:45]Read from MH i2c: 01 [09:35:45]MH_I2C_Read... [09:35:45]*** Stop cut motor [09:35:45]*** Cut end [09:35:45]Read from MH i2c: 01 07 00 [09:35:45]MH_I2C_Read... [09:35:45]Read from MH i2c: 01 07 00 63 00 00 00 00 00 00 FF 0F 78 [09:35:45]process_action close_receipt done [09:35:45]requested_data is exist [09:35:45]produce_requested_data [09:35:45]requested_item fm.sn is exist - process it [09:35:45]wFMCommunicate request_size=4 [09:35:45]MH_SAM_APDU [09:35:45]CAPDU: 80 11 00 00 [09:35:45]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [09:35:45]Write i2c OK [09:35:45]MH_I2C_Read... [09:35:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:45]Read from MH i2c: E2 [09:35:45]MH_I2C_Read... [09:35:45]Read from MH i2c: E2 17 00 [09:35:45]MH_I2C_Read... [09:35:45]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 34 [09:35:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:35:45]wFMCommunicate OK [09:35:45]requested_item fd.num is exist - process it [09:35:45]SAM_PROTO_GetFieldsCounters [09:35:45]wFMCommunicate request_size=4 [09:35:45]MH_SAM_APDU [09:35:45]CAPDU: 80 13 00 00 [09:35:45]Write to MH i2c: E2 08 00 65 00 80 13 00 00 00 00 00 00 E1 [09:35:45]Write i2c OK [09:35:45]MH_I2C_Read... [09:35:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:35:45]Read from MH i2c: E2 [09:35:45]MH_I2C_Read... [09:35:45]Read from MH i2c: E2 62 00 [09:35:45]MH_I2C_Read... [09:35:45]Read from MH i2c: E2 62 00 65 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F5 83 02 00 0E 04 04 00 BF 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 DB [09:35:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F5 83 02 00 0E 04 04 00 BF 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 [09:35:45]wFMCommunicate OK [09:35:45]SAM_PROTO_GetFieldsCounters done [09:35:45]requested_item shift.num is exist - process it [09:35:45]requested_item shift.opened is exist - process it [09:35:45]req_shift_opened [09:35:45]FM_GetShiftState [09:35:45]SAM_PROTO_GetShiftState [09:35:45]wFMCommunicate request_size=4 [09:35:45]MH_SAM_APDU [09:35:45]CAPDU: 80 13 01 00 [09:35:45]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [09:35:45]Write i2c OK [09:35:45]MH_I2C_Read... [09:35:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:45]Read from MH i2c: E2 [09:35:45]MH_I2C_Read... [09:35:45]Read from MH i2c: E2 0E 00 [09:35:45]MH_I2C_Read... [09:35:45]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 63 [09:35:45]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [09:35:45]wFMCommunicate OK [09:35:45]SAM_PROTO_GetShiftState done [09:35:45]FM_GetShiftState done [09:35:45]req_shift_opened done [09:35:45]requested_item shift.open_date is exist - process it [09:35:45]req_shift_open_date [09:35:45]req_shift_open_date done [09:35:45]produce_requested_data done [09:35:45]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164853,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [09:35:45]process_action_free close_receipt [09:35:45]json_value_free [09:35:45]json_value_free done [09:35:45]process_json_proto returns [09:35:45]Send response to host [09:35:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164853,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [09:35:45]free response buf [09:35:45]execute_script done [09:35:45]execute_script returns [09:35:45]free content buf [09:35:45]Sock 9.Close socket [09:35:45]Sock 9.Thread stoped [09:35:49]OFD Sender: No OFD packet to send [09:35:54]OFD Sender: No OFD packet to send [09:35:59]OFD Sender: No OFD packet to send [09:36:04]OFD Sender: No OFD packet to send [09:36:09]OFD Sender: No OFD packet to send [09:36:14]OFD Sender: No OFD packet to send [09:36:19]OFD Sender: No OFD packet to send [09:36:24]OFD Sender: No OFD packet to send [09:36:29]OFD Sender: No OFD packet to send [09:36:34]OFD Sender: No OFD packet to send [09:36:39]OFD Sender: No OFD packet to send [09:36:44]OFD Sender: No OFD packet to send [09:36:49]OFD Sender: No OFD packet to send [09:36:54]OFD Sender: No OFD packet to send [09:36:59]OFD Sender: No OFD packet to send [09:37:04]OFD Sender: No OFD packet to send [09:37:09]OFD Sender: No OFD packet to send [09:37:14]OFD Sender: No OFD packet to send [09:37:19]OFD Sender: No OFD packet to send [09:37:23]accept exits with 7 [09:37:23]New connection [09:37:23]New thread 3067473252 created [09:37:23]Thread 3067616612 joined [09:37:23]Waiting for new connection... [09:37:23] Sock 7.Parse request [09:37:23]Sock 7.Check first char [09:37:23]Sock 7.First char is OK [09:37:23]request: POST /json_proto HTTP/1.0 [09:37:23]Method: POST [09:37:23]URL: /json_proto [09:37:23]Method is POST - this is cgi request [09:37:23]url: /json_proto [09:37:23]query_string will be loaded in cgi processing [09:37:23]execute_cgi json_proto POST (null) [09:37:23]execute_cgi path=json_proto method=POST [09:37:23]POST find Content-Length [09:37:23]Host: 172.17.56.4:8080 [09:37:23]Content-Length: 679 [09:37:23]Content-Type: application/json [09:37:23] [09:37:23]POST finish read [09:37:23]Found Content-Length = 679 [09:37:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458950", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 20.870, "sum" : 1500.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:37:23]execute_script... [09:37: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)458950", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 20.870, "sum" : 1500.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:37:23]POST & json_proto [09:37:23]process_json_proto [09:37:23]json parsed OK: [09:37:23]protocol is kg_v1.0 [09:37:23]action value=close_receipt [09:37:23]process_action close_receipt [09:37:23]cmd_close_receipt [09:37:23]MH_GetDate [09:37:23]Write to MH i2c: F0 00 00 67 00 56 [09:37:23]Write i2c OK [09:37:23]MH_I2C_Read... [09:37:23]Read from MH i2c: F0 [09:37:23]MH_I2C_Read... [09:37:23]Read from MH i2c: F0 09 00 [09:37:23]MH_I2C_Read... [09:37:23]Read from MH i2c: F0 09 00 67 00 00 54 9C 93 66 C9 DC B2 64 03 [09:37:23]GetLastDocTimeStamp 1720949742 [09:37:23]current date 1720949844 [09:37:23]FM_GetShiftState [09:37:23]SAM_PROTO_GetShiftState [09:37:23]wFMCommunicate request_size=4 [09:37:23]MH_SAM_APDU [09:37:23]CAPDU: 80 13 01 00 [09:37:23]Write to MH i2c: E2 08 00 68 00 80 13 01 00 00 00 00 00 E5 [09:37:23]Write i2c OK [09:37:23]MH_I2C_Read... [09:37:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:23]Read from MH i2c: E2 [09:37:23]MH_I2C_Read... [09:37:23]Read from MH i2c: E2 0E 00 [09:37:23]MH_I2C_Read... [09:37:23]Read from MH i2c: E2 0E 00 68 00 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 65 [09:37:23]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [09:37:23]wFMCommunicate OK [09:37:23]SAM_PROTO_GetShiftState done [09:37:23]FM_GetShiftState done [09:37:23]opened in 1720917342 [09:37:23]opened+sec_in_day 1721003742 [09:37:23]quantity*price = 150055 [09:37:23]sum+1 = 150056 [09:37:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 52 14.07.2024 09:37 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164854 ФПД: 269606327308285 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T093724&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164854&fm=269606327308285&tin=02508201610067®Number=0000000000090829&sum=150000 [09:37:24]StoreToDocumentArchive [09:37:24]shift 447 fd 164854 [09:37:24]save to /storage/0447/doc_00164854 [09:37:24]save last doc name /storage/0447/doc_00164854 to /storage/kkm_last_doc_name [09:37:24]save OK [09:37:24]Clear old archive folders... [09:37:24]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:37:24]tlvbuf is 0073A6C0 [09:37:24]SAM_PROTO_ClearQueue [09:37:24]wFMCommunicate request_size=4 [09:37:24]MH_SAM_APDU [09:37:24]CAPDU: 80 09 00 00 [09:37:24]Write to MH i2c: E2 08 00 75 00 80 09 00 00 00 00 00 00 E7 [09:37:24]Write i2c OK [09:37:24]MH_I2C_Read... [09:37:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:37:24]Read from MH i2c: E2 [09:37:24]MH_I2C_Read... [09:37:24]Read from MH i2c: E2 03 00 [09:37:24]MH_I2C_Read... [09:37:24]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [09:37:24]RAPDU: 90 00 [09:37:24]wFMCommunicate OK [09:37:24]SAM_PROTO_ClearQueue done [09:37:24]KKMCreateOFDPacket [09:37:24]OFDProtocolAddRootSTLVToBuf [09:37:24]FM_MakeSignedData [09:37:24]FM_MakeSignedData [09:37:24]SAM_PROTO_SignData [09:37:24]wFMCommunicate request_size=4 [09:37:24]MH_SAM_APDU [09:37:24]CAPDU: 80 0D 01 02 [09:37:24]Write to MH i2c: E2 08 00 76 00 80 0D 01 02 00 00 00 00 EF [09:37:24]Write i2c OK [09:37:24]MH_I2C_Read... [09:37:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:37:25]Read from MH i2c: E2 [09:37:25]MH_I2C_Read... [09:37:25]Read from MH i2c: E2 03 00 [09:37:25]MH_I2C_Read... [09:37:25]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [09:37:25]RAPDU: 90 00 [09:37:25]wFMCommunicate OK [09:37:25]wFMCommunicate request_size=255 [09:37:25]MH_SAM_APDU [09:37: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 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 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 34 00 00 00 F4 03 04 00 54 9C 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F6 83 02 00 35 04 06 00 F5 34 9D 5E [09:37:25]Write to MH i2c: E2 02 01 77 00 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 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 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 34 00 00 00 F4 03 04 00 54 9C 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F6 83 02 00 35 04 06 00 F5 34 9D 5E 00 00 72 [09:37:25]Write i2c OK [09:37:25]MH_I2C_Read... [09:37:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:25]Read from MH i2c: E2 [09:37:25]MH_I2C_Read... [09:37:25]Read from MH i2c: E2 03 00 [09:37:25]MH_I2C_Read... [09:37:25]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [09:37:25]RAPDU: 90 00 [09:37:25]wFMCommunicate OK [09:37:25]wFMCommunicate request_size=7 [09:37:25]MH_SAM_APDU [09:37:25]CAPDU: 80 0D 02 02 02 4F FD [09:37:25]Write to MH i2c: E2 0A 00 78 00 80 0D 02 02 02 00 4F FD 00 00 42 [09:37:25]Write i2c OK [09:37:25]MH_I2C_Read... [09:37:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:25]Read from MH i2c: E2 [09:37:25]MH_I2C_Read... [09:37:25]Read from MH i2c: E2 03 00 [09:37:25]MH_I2C_Read... [09:37:25]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [09:37:25]RAPDU: 90 00 [09:37:25]wFMCommunicate OK [09:37:25]wFMCommunicate request_size=4 [09:37:25]MH_SAM_APDU [09:37:25]CAPDU: 80 0D 03 02 [09:37:25]Write to MH i2c: E2 08 00 79 00 80 0D 03 02 00 00 00 00 F4 [09:37:25]Write i2c OK [09:37:25]MH_I2C_Read... [09:37:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:37:25]Read from MH i2c: E2 [09:37:25]MH_I2C_Read... [09:37:25]Read from MH i2c: E2 0B 00 [09:37:25]MH_I2C_Read... [09:37:25]Read from MH i2c: E2 0B 00 79 00 00 F7 AA F8 83 5D 43 CD D9 90 00 57 [09:37:25]RAPDU: F7 AA F8 83 5D 43 CD D9 90 00 [09:37:25]wFMCommunicate OK [09:37:25]SAM_PROTO_SignData done [09:37:25]FM_MakeSignedData done [09:37:25]CreateOFDProtocolMessage [09:37:25]wFMCommunicate request_size=4 [09:37:25]MH_SAM_APDU [09:37:25]CAPDU: 80 11 00 00 [09:37:25]Write to MH i2c: E2 08 00 7A 00 80 11 00 00 00 00 00 00 F4 [09:37:25]Write i2c OK [09:37:25]MH_I2C_Read... [09:37:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:25]Read from MH i2c: E2 [09:37:25]MH_I2C_Read... [09:37:25]Read from MH i2c: E2 17 00 [09:37:25]MH_I2C_Read... [09:37:25]Read from MH i2c: E2 17 00 7A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 4A [09:37:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:37:25]wFMCommunicate OK [09:37:25]CreateOFDProtocolMessage done [09:37:25]OFDSenderStorePacket 164854 [09:37:25]StoreOFDPacket docnum=164854 [09:37:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 F1 92 04 01 E0 D2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 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 34 00 00 00 F4 03 04 00 54 9C 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F6 83 02 00 35 04 06 00 F5 34 9D 5E 4F FD F7 AA F8 83 5D 43 CD D9 [09:37:25]CheckFolder [09:37:25]dirname=/storage/ofd_packets [09:37:25]CheckFolder done [09:37:25]ProducePacketName [09:37:25]name=ofd_packets/00164854 [09:37:25]NVStorageSaveData ofd_packets/00164854 [09:37:25]File name is /storage/ofd_packets/00164854 [09:37:25]Write 298 bytes [09:37:25]NVStorageSaveData done [09:37:25]OFDSenderStorePacket done [09:37:25]KKMCreateOFDPacket done [09:37:25]NVStorageSaveData kkm_last_timestamp [09:37:25]File name is /storage/kkm_last_timestamp [09:37:25]Write 4 bytes [09:37:25]NVStorageSaveData done [09:37:25]ExternCall_PrintAddStr [09:37:25]wPrintStart [09:37:25]Write to MH i2c: 01 00 00 7B 00 7B [09:37:25]Write i2c OK [09:37:25]MH_I2C_Read... [09:37:25]Read from MH i2c: 01 [09:37:25]MH_I2C_Read... [09:37:25]Read from MH i2c: 01 07 00 [09:37:25]MH_I2C_Read... [09:37:25]Read from MH i2c: 01 07 00 7B 00 00 00 00 00 00 FF 0F 90 [09:37:25]RasterBufferAndPrint [09:37:25]line Счет N : (1)458950 [09:37:25]line ИНН: 02508201610067 [09:37:25]line Контрольно-Кассовый Чек [09:37:25]line ПРОДАЖА [09:37:25]line ТРК (МРК, ГНК) : 21 [09:37:25]line Товар: 2710194210 [09:37:25]line ДТ-К-5 [09:37:25]line 20.870 * 71.90 [09:37:25]line = 1500.55 [09:37:25]line НДС 12% НСП 1% [09:37:25]line > о реализуемом товаре [09:37:25]line ОКРУГЛЕНИЕ: -0.55 [09:37:25]line ИТОГО: 1500.00 [09:37:25]line Внесено: 1500.00 [09:37:25]line СДАЧА: 0.00 [09:37:25]line НСП 1% : 13.28 [09:37:25]line НДС 12% : 159.35 [09:37:25]line Наличными: 1500.00 [09:37:25]line Безнал.: 0.00 [09:37:25]line Место: АЗС № 72 "Партнер Нефть" [09:37:25]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:37:25]line СНО: Общий режим [09:37:25]line Чек 52 14.07.2024 09:37 [09:37:25]line Смена: 447 ФФД: 1.0 [09:37:25]line ЗНМ: 0300000160 [09:37:25]line РНМ: 0000000000090829 [09:37:25]line Версия ККМ: 001 [09:37:25]line ФМ: 0000000000874718 [09:37:25]line ФД: 164854 [09:37:25]line ФПД: 269606327308285 [09:37:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T093724&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164854&fm=269606327308285&tin=02508201610067®Number=0000000000090829&sum=150000 [09:37:25]OFD Sender: Processing packet 164854 [packets to send 104, broken 103] [09:37:25]ProducePacketName [09:37:25]name=ofd_packets/00164854 [09:37:25]OFD Sender: To server: pG, [09:37:25]CommunicateWithHost lk.salyk.kg:30040 [09:37:25]ConnectInit lk.salyk.kg [09:37:25]written 0, free lines is 4095 [09:37:25]Connected sock=10 [09:37:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 F1 92 04 01 E0 D2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 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 34 00 00 00 F4 03 04 00 54 9C 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F6 83 02 00 35 04 06 00 F5 34 9D 5E 4F FD F7 AA F8 83 5D 43 CD D9 [09:37:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 A4 32 47 00 E1 28 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F6 83 02 00 F4 03 04 00 E2 42 93 66 B6 04 01 00 00 35 CD 35 E7 74 BE 8F 6F [09:37:26]CommunicateWithHost err = 0 [09:37:26]CheckOFDResponse [09:37:26]1017 (14) - 77093643461234 [09:37:26]1041 (16) - 0000000000874718 [09:37:26]1040 (4) - 164854 [09:37:26]1012 (4) - 14.07.2024 03:15 [09:37:26]1206 (1) - 0 [09:37:26]OFD Sender: Remove packet 164854 [09:37:26]ProducePacketName [09:37:26]name=ofd_packets/00164854 [09:37:26]NVStorageDeleteData [09:37:26]Write to MH i2c: 01 00 00 A5 00 A5 [09:37:26]Write i2c OK [09:37:26]MH_I2C_Read... [09:37:26]Read from MH i2c: 01 [09:37:26]MH_I2C_Read... [09:37:26]Read from MH i2c: 01 07 00 [09:37:26]MH_I2C_Read... [09:37:26]Read from MH i2c: 01 07 00 A5 00 00 00 00 00 00 F7 0C AF [09:37:26]RasterBufferAndPrint [09:37:26]line [09:37:26]line [09:37:26]line [09:37:26]line [09:37:26]line [09:37:26]written 0, free lines is 3327 [09:37:26]MH_Cut [09:37:26]Write to MH i2c: D1 01 00 AC 00 01 7E [09:37:26]Write i2c OK [09:37:26]MH_I2C_Read... [09:37:26]Read from MH i2c: D1 [09:37:26]MH_I2C_Read... [09:37:26]Read from MH i2c: D1 01 00 [09:37:26]MH_I2C_Read... [09:37:26]Read from MH i2c: D1 01 00 AC 00 00 7D [09:37:26]Write to MH i2c: 01 00 00 AD 00 AD [09:37:26]Write i2c OK [09:37:26]MH_I2C_Read... [09:37:26]OFD Sender: No OFD packet to send [09:37:26]*** Cut start [09:37:26]*** Partial cut [09:37:26]*** CUTSNS_PIN = 1 [09:37:26]*** CUTSNS_PIN = 0 [09:37:27]*** Brake cut motor [09:37:27]Read from MH i2c: 01 [09:37:27]MH_I2C_Read... [09:37:27]*** Stop cut motor [09:37:27]*** Cut end [09:37:27]Read from MH i2c: 01 07 00 [09:37:27]MH_I2C_Read... [09:37:27]Read from MH i2c: 01 07 00 AD 00 00 00 00 00 00 FF 0F C2 [09:37:27]process_action close_receipt done [09:37:27]requested_data is exist [09:37:27]produce_requested_data [09:37:27]requested_item fm.sn is exist - process it [09:37:27]wFMCommunicate request_size=4 [09:37:27]MH_SAM_APDU [09:37:27]CAPDU: 80 11 00 00 [09:37:27]Write to MH i2c: E2 08 00 AE 00 80 11 00 00 00 00 00 00 28 [09:37:27]Write i2c OK [09:37:27]MH_I2C_Read... [09:37:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:27]Read from MH i2c: E2 [09:37:27]MH_I2C_Read... [09:37:27]Read from MH i2c: E2 17 00 [09:37:27]MH_I2C_Read... [09:37:27]Read from MH i2c: E2 17 00 AE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 7E [09:37:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:37:27]wFMCommunicate OK [09:37:27]requested_item fd.num is exist - process it [09:37:27]SAM_PROTO_GetFieldsCounters [09:37:27]wFMCommunicate request_size=4 [09:37:27]MH_SAM_APDU [09:37:27]CAPDU: 80 13 00 00 [09:37:27]Write to MH i2c: E2 08 00 AF 00 80 13 00 00 00 00 00 00 2B [09:37:27]Write i2c OK [09:37:27]MH_I2C_Read... [09:37:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:37:27]Read from MH i2c: E2 [09:37:27]MH_I2C_Read... [09:37:27]Read from MH i2c: E2 62 00 [09:37:27]MH_I2C_Read... [09:37:27]Read from MH i2c: E2 62 00 AF 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F6 83 02 00 0E 04 04 00 BF 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 29 [09:37:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F6 83 02 00 0E 04 04 00 BF 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 [09:37:27]wFMCommunicate OK [09:37:27]SAM_PROTO_GetFieldsCounters done [09:37:27]requested_item shift.num is exist - process it [09:37:27]requested_item shift.opened is exist - process it [09:37:27]req_shift_opened [09:37:27]FM_GetShiftState [09:37:27]SAM_PROTO_GetShiftState [09:37:27]wFMCommunicate request_size=4 [09:37:27]MH_SAM_APDU [09:37:27]CAPDU: 80 13 01 00 [09:37:27]Write to MH i2c: E2 08 00 B0 00 80 13 01 00 00 00 00 00 2D [09:37:27]Write i2c OK [09:37:27]MH_I2C_Read... [09:37:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:27]Read from MH i2c: E2 [09:37:27]MH_I2C_Read... [09:37:27]Read from MH i2c: E2 0E 00 [09:37:27]MH_I2C_Read... [09:37:27]Read from MH i2c: E2 0E 00 B0 00 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 AD [09:37:27]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [09:37:27]wFMCommunicate OK [09:37:27]SAM_PROTO_GetShiftState done [09:37:27]FM_GetShiftState done [09:37:27]req_shift_opened done [09:37:27]requested_item shift.open_date is exist - process it [09:37:27]req_shift_open_date [09:37:27]req_shift_open_date done [09:37:27]produce_requested_data done [09:37:27]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164854,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [09:37:27]process_action_free close_receipt [09:37:27]json_value_free [09:37:27]json_value_free done [09:37:27]process_json_proto returns [09:37:27]Send response to host [09:37:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164854,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [09:37:27]free response buf [09:37:27]execute_script done [09:37:27]execute_script returns [09:37:27]free content buf [09:37:27]Sock 7.Close socket [09:37:27]Sock 7.Thread stoped [09:37:31]OFD Sender: No OFD packet to send [09:37:36]OFD Sender: No OFD packet to send [09:37:41]OFD Sender: No OFD packet to send [09:37:44]accept exits with 9 [09:37:44]New connection [09:37:44]New thread 3067616612 created [09:37:44]Thread 3067473252 joined [09:37:44]Waiting for new connection... [09:37:44] Sock 9.Parse request [09:37:44]Sock 9.Check first char [09:37:44]Sock 9.First char is OK [09:37:44]request: POST /json_proto HTTP/1.0 [09:37:44]Method: POST [09:37:44]URL: /json_proto [09:37:44]Method is POST - this is cgi request [09:37:44]url: /json_proto [09:37:44]query_string will be loaded in cgi processing [09:37:44]execute_cgi json_proto POST (null) [09:37:44]execute_cgi path=json_proto method=POST [09:37:44]POST find Content-Length [09:37:44]Host: 172.17.56.4:8080 [09:37:44]Content-Length: 677 [09:37:44]Content-Type: application/json [09:37:44] [09:37:44]POST finish read [09:37:44]Found Content-Length = 677 [09:37:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458951", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:37:44]execute_script... [09:37: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)458951", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:37:44]POST & json_proto [09:37:44]process_json_proto [09:37:44]json parsed OK: [09:37:44]protocol is kg_v1.0 [09:37:44]action value=close_receipt [09:37:44]process_action close_receipt [09:37:44]cmd_close_receipt [09:37:44]MH_GetDate [09:37:44]Write to MH i2c: F0 00 00 B1 00 A0 [09:37:44]Write i2c OK [09:37:44]MH_I2C_Read... [09:37:44]Read from MH i2c: F0 [09:37:44]MH_I2C_Read... [09:37:44]Read from MH i2c: F0 09 00 [09:37:44]MH_I2C_Read... [09:37:44]Read from MH i2c: F0 09 00 B1 00 00 69 9C 93 66 C9 DC B2 64 62 [09:37:44]GetLastDocTimeStamp 1720949844 [09:37:44]current date 1720949865 [09:37:44]FM_GetShiftState [09:37:44]SAM_PROTO_GetShiftState [09:37:44]wFMCommunicate request_size=4 [09:37:44]MH_SAM_APDU [09:37:44]CAPDU: 80 13 01 00 [09:37:44]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [09:37:44]Write i2c OK [09:37:44]MH_I2C_Read... [09:37:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:45]Read from MH i2c: E2 [09:37:45]MH_I2C_Read... [09:37:45]Read from MH i2c: E2 0E 00 [09:37:45]MH_I2C_Read... [09:37:45]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 AF [09:37:45]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [09:37:45]wFMCommunicate OK [09:37:45]SAM_PROTO_GetShiftState done [09:37:45]FM_GetShiftState done [09:37:45]opened in 1720917342 [09:37:45]opened+sec_in_day 1721003742 [09:37:45]quantity*price = 50008 [09:37:45]sum+1 = 50009 [09:37:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 53 14.07.2024 09:37 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164855 ФПД: 64822552691349 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T093745&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164855&fm=64822552691349&tin=02508201610067®Number=0000000000090829&sum=50000 [09:37:46]StoreToDocumentArchive [09:37:46]shift 447 fd 164855 [09:37:46]save to /storage/0447/doc_00164855 [09:37:46]save last doc name /storage/0447/doc_00164855 to /storage/kkm_last_doc_name [09:37:46]save OK [09:37:46]Clear old archive folders... [09:37:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:37:46]tlvbuf is 00754FC0 [09:37:46]SAM_PROTO_ClearQueue [09:37:46]wFMCommunicate request_size=4 [09:37:46]MH_SAM_APDU [09:37:46]CAPDU: 80 09 00 00 [09:37:46]Write to MH i2c: E2 08 00 BF 00 80 09 00 00 00 00 00 00 31 [09:37:46]Write i2c OK [09:37:46]MH_I2C_Read... [09:37:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:37:46]Read from MH i2c: E2 [09:37:46]MH_I2C_Read... [09:37:46]Read from MH i2c: E2 03 00 [09:37:46]MH_I2C_Read... [09:37:46]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [09:37:46]RAPDU: 90 00 [09:37:46]wFMCommunicate OK [09:37:46]SAM_PROTO_ClearQueue done [09:37:46]KKMCreateOFDPacket [09:37:46]OFDProtocolAddRootSTLVToBuf [09:37:46]FM_MakeSignedData [09:37:46]FM_MakeSignedData [09:37:46]SAM_PROTO_SignData [09:37:46]wFMCommunicate request_size=4 [09:37:46]MH_SAM_APDU [09:37:46]CAPDU: 80 0D 01 02 [09:37:46]Write to MH i2c: E2 08 00 C0 00 80 0D 01 02 00 00 00 00 39 [09:37:46]Write i2c OK [09:37:46]MH_I2C_Read... [09:37:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:37:46]Read from MH i2c: E2 [09:37:46]MH_I2C_Read... [09:37:46]Read from MH i2c: E2 03 00 [09:37:46]MH_I2C_Read... [09:37:46]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [09:37:46]RAPDU: 90 00 [09:37:46]wFMCommunicate OK [09:37:46]wFMCommunicate request_size=255 [09:37:46]MH_SAM_APDU [09:37:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 35 00 00 00 F4 03 04 00 69 9C 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F7 83 02 00 35 04 06 00 3A [09:37:46]Write to MH i2c: E2 02 01 C1 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 35 00 00 00 F4 03 04 00 69 9C 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F7 83 02 00 35 04 06 00 3A 00 00 5B [09:37:46]Write i2c OK [09:37:46]MH_I2C_Read... [09:37:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:46]Read from MH i2c: E2 [09:37:46]MH_I2C_Read... [09:37:46]Read from MH i2c: E2 03 00 [09:37:46]MH_I2C_Read... [09:37:46]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [09:37:46]RAPDU: 90 00 [09:37:46]wFMCommunicate OK [09:37:46]wFMCommunicate request_size=10 [09:37:46]MH_SAM_APDU [09:37:46]CAPDU: 80 0D 02 02 05 F4 AD 3A 02 95 [09:37:46]Write to MH i2c: E2 0D 00 C2 00 80 0D 02 02 05 00 F4 AD 3A 02 95 00 00 B8 [09:37:46]Write i2c OK [09:37:46]MH_I2C_Read... [09:37:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:46]Read from MH i2c: E2 [09:37:46]MH_I2C_Read... [09:37:46]Read from MH i2c: E2 03 00 [09:37:46]MH_I2C_Read... [09:37:46]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [09:37:46]RAPDU: 90 00 [09:37:46]wFMCommunicate OK [09:37:46]wFMCommunicate request_size=4 [09:37:46]MH_SAM_APDU [09:37:46]CAPDU: 80 0D 03 02 [09:37:46]Write to MH i2c: E2 08 00 C3 00 80 0D 03 02 00 00 00 00 3E [09:37:46]Write i2c OK [09:37:46]MH_I2C_Read... [09:37:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:37:46]Read from MH i2c: E2 [09:37:46]MH_I2C_Read... [09:37:46]Read from MH i2c: E2 0B 00 [09:37:46]MH_I2C_Read... [09:37:46]Read from MH i2c: E2 0B 00 C3 00 00 C6 70 2E 0C 46 EF AE 9A 90 00 2C [09:37:46]RAPDU: C6 70 2E 0C 46 EF AE 9A 90 00 [09:37:46]wFMCommunicate OK [09:37:46]SAM_PROTO_SignData done [09:37:46]FM_MakeSignedData done [09:37:46]CreateOFDProtocolMessage [09:37:46]wFMCommunicate request_size=4 [09:37:46]MH_SAM_APDU [09:37:46]CAPDU: 80 11 00 00 [09:37:46]Write to MH i2c: E2 08 00 C4 00 80 11 00 00 00 00 00 00 3E [09:37:46]Write i2c OK [09:37:46]MH_I2C_Read... [09:37:46]OFD Sender: No OFD packet to send [09:37:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:46]Read from MH i2c: E2 [09:37:46]MH_I2C_Read... [09:37:46]Read from MH i2c: E2 17 00 [09:37:46]MH_I2C_Read... [09:37:46]Read from MH i2c: E2 17 00 C4 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 94 [09:37:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:37:46]wFMCommunicate OK [09:37:46]CreateOFDProtocolMessage done [09:37:46]OFDSenderStorePacket 164855 [09:37:46]StoreOFDPacket docnum=164855 [09:37:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 FD 08 07 01 11 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 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 35 00 00 00 F4 03 04 00 69 9C 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F7 83 02 00 35 04 06 00 3A F4 AD 3A 02 95 C6 70 2E 0C 46 EF AE 9A [09:37:46]CheckFolder [09:37:46]dirname=/storage/ofd_packets [09:37:46]CheckFolder done [09:37:46]ProducePacketName [09:37:46]name=ofd_packets/00164855 [09:37:46]NVStorageSaveData ofd_packets/00164855 [09:37:46]File name is /storage/ofd_packets/00164855 [09:37:46]Write 301 bytes [09:37:46]NVStorageSaveData done [09:37:46]OFDSenderStorePacket done [09:37:46]KKMCreateOFDPacket done [09:37:46]NVStorageSaveData kkm_last_timestamp [09:37:46]File name is /storage/kkm_last_timestamp [09:37:46]Write 4 bytes [09:37:46]NVStorageSaveData done [09:37:46]ExternCall_PrintAddStr [09:37:46]wPrintStart [09:37:46]Write to MH i2c: 01 00 00 C5 00 C5 [09:37:46]Write i2c OK [09:37:46]MH_I2C_Read... [09:37:46]Read from MH i2c: 01 [09:37:46]MH_I2C_Read... [09:37:46]Read from MH i2c: 01 07 00 [09:37:46]MH_I2C_Read... [09:37:46]Read from MH i2c: 01 07 00 C5 00 00 00 00 00 00 FF 0F DA [09:37:46]RasterBufferAndPrint [09:37:46]line Счет N : (1)458951 [09:37:46]line ИНН: 02508201610067 [09:37:46]line Контрольно-Кассовый Чек [09:37:46]line ПРОДАЖА [09:37:46]line ТРК (МРК, ГНК) : 12 [09:37:46]line Товар: 2710124130 [09:37:46]line Аи-92-К-5 [09:37:46]line 7.600 * 65.80 [09:37:46]line = 500.08 [09:37:46]line НДС 12% НСП 1% [09:37:46]line > о реализуемом товаре [09:37:46]line ОКРУГЛЕНИЕ: -0.08 [09:37:46]line ИТОГО: 500.00 [09:37:46]line Внесено: 500.00 [09:37:46]line СДАЧА: 0.00 [09:37:46]line НСП 1% : 4.42 [09:37:46]line НДС 12% : 53.11 [09:37:46]line Наличными: 500.00 [09:37:46]line Безнал.: 0.00 [09:37:46]line Место: АЗС № 72 "Партнер Нефть" [09:37:46]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:37:46]line СНО: Общий режим [09:37:46]line Чек 53 14.07.2024 09:37 [09:37:46]line Смена: 447 ФФД: 1.0 [09:37:46]line ЗНМ: 0300000160 [09:37:46]line РНМ: 0000000000090829 [09:37:46]line Версия ККМ: 001 [09:37:46]line ФМ: 0000000000874718 [09:37:46]line ФД: 164855 [09:37:46]line ФПД: 64822552691349 [09:37:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T093745&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164855&fm=64822552691349&tin=02508201610067®Number=0000000000090829&sum=50000 [09:37:47]OFD Sender: Processing packet 164855 [packets to send 104, broken 103] [09:37:47]ProducePacketName [09:37:47]name=ofd_packets/00164855 [09:37:47]OFD Sender: To server: pG, [09:37:47]CommunicateWithHost lk.salyk.kg:30040 [09:37:47]ConnectInit lk.salyk.kg [09:37:47]written 0, free lines is 4095 [09:37:47]Connected sock=10 [09:37:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 FD 08 07 01 11 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 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 35 00 00 00 F4 03 04 00 69 9C 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F7 83 02 00 35 04 06 00 3A F4 AD 3A 02 95 C6 70 2E 0C 46 EF AE 9A [09:37:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 6E 3D 47 00 EA 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 38 37 34 37 31 38 10 04 04 00 F7 83 02 00 F4 03 04 00 F7 42 93 66 B6 04 01 00 00 46 D7 49 BB 4E DB A9 E0 [09:37:47]CommunicateWithHost err = 0 [09:37:47]CheckOFDResponse [09:37:47]1017 (14) - 77093643461234 [09:37:47]1041 (16) - 0000000000874718 [09:37:47]1040 (4) - 164855 [09:37:47]1012 (4) - 14.07.2024 03:16 [09:37:47]1206 (1) - 0 [09:37:47]OFD Sender: Remove packet 164855 [09:37:47]ProducePacketName [09:37:47]name=ofd_packets/00164855 [09:37:47]NVStorageDeleteData [09:37:47]Write to MH i2c: 01 00 00 EF 00 EF [09:37:47]Write i2c OK [09:37:47]MH_I2C_Read... [09:37:47]Read from MH i2c: 01 [09:37:47]MH_I2C_Read... [09:37:47]Read from MH i2c: 01 07 00 [09:37:47]MH_I2C_Read... [09:37:47]Read from MH i2c: 01 07 00 EF 00 00 00 00 00 00 FA 0C FC [09:37:47]RasterBufferAndPrint [09:37:47]line [09:37:47]line [09:37:47]line [09:37:47]line [09:37:47]line [09:37:47]written 0, free lines is 3328 [09:37:47]MH_Cut [09:37:47]Write to MH i2c: D1 01 00 F6 00 01 C8 [09:37:47]Write i2c OK [09:37:47]MH_I2C_Read... [09:37:47]Read from MH i2c: D1 [09:37:47]MH_I2C_Read... [09:37:47]Read from MH i2c: D1 01 00 [09:37:47]MH_I2C_Read... [09:37:47]Read from MH i2c: D1 01 00 F6 00 00 C7 [09:37:47]Write to MH i2c: 01 00 00 F7 00 F7 [09:37:47]Write i2c OK [09:37:47]MH_I2C_Read... [09:37:47]OFD Sender: No OFD packet to send [09:37:48]*** Cut start [09:37:48]*** Partial cut [09:37:48]*** CUTSNS_PIN = 1 [09:37:48]*** CUTSNS_PIN = 0 [09:37:48]*** Brake cut motor [09:37:48]Read from MH i2c: 01 [09:37:48]MH_I2C_Read... [09:37:48]*** Stop cut motor [09:37:48]*** Cut end [09:37:48]Read from MH i2c: 01 07 00 [09:37:48]MH_I2C_Read... [09:37:48]Read from MH i2c: 01 07 00 F7 00 00 00 00 00 00 FF 0F 0C [09:37:48]process_action close_receipt done [09:37:48]requested_data is exist [09:37:48]produce_requested_data [09:37:48]requested_item fm.sn is exist - process it [09:37:48]wFMCommunicate request_size=4 [09:37:48]MH_SAM_APDU [09:37:48]CAPDU: 80 11 00 00 [09:37:48]Write to MH i2c: E2 08 00 F8 00 80 11 00 00 00 00 00 00 72 [09:37:48]Write i2c OK [09:37:48]MH_I2C_Read... [09:37:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:48]Read from MH i2c: E2 [09:37:48]MH_I2C_Read... [09:37:48]Read from MH i2c: E2 17 00 [09:37:48]MH_I2C_Read... [09:37:48]Read from MH i2c: E2 17 00 F8 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C8 [09:37:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:37:48]wFMCommunicate OK [09:37:48]requested_item fd.num is exist - process it [09:37:48]SAM_PROTO_GetFieldsCounters [09:37:48]wFMCommunicate request_size=4 [09:37:48]MH_SAM_APDU [09:37:48]CAPDU: 80 13 00 00 [09:37:48]Write to MH i2c: E2 08 00 F9 00 80 13 00 00 00 00 00 00 75 [09:37:48]Write i2c OK [09:37:48]MH_I2C_Read... [09:37:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:37:48]Read from MH i2c: E2 [09:37:48]MH_I2C_Read... [09:37:48]Read from MH i2c: E2 62 00 [09:37:48]MH_I2C_Read... [09:37:48]Read from MH i2c: E2 62 00 F9 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F7 83 02 00 0E 04 04 00 BF 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 77 [09:37:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F7 83 02 00 0E 04 04 00 BF 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 [09:37:48]wFMCommunicate OK [09:37:48]SAM_PROTO_GetFieldsCounters done [09:37:48]requested_item shift.num is exist - process it [09:37:48]requested_item shift.opened is exist - process it [09:37:48]req_shift_opened [09:37:48]FM_GetShiftState [09:37:48]SAM_PROTO_GetShiftState [09:37:48]wFMCommunicate request_size=4 [09:37:48]MH_SAM_APDU [09:37:48]CAPDU: 80 13 01 00 [09:37:48]Write to MH i2c: E2 08 00 FA 00 80 13 01 00 00 00 00 00 77 [09:37:48]Write i2c OK [09:37:48]MH_I2C_Read... [09:37:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:48]Read from MH i2c: E2 [09:37:48]MH_I2C_Read... [09:37:48]Read from MH i2c: E2 0E 00 [09:37:48]MH_I2C_Read... [09:37:48]Read from MH i2c: E2 0E 00 FA 00 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 F7 [09:37:48]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [09:37:48]wFMCommunicate OK [09:37:48]SAM_PROTO_GetShiftState done [09:37:48]FM_GetShiftState done [09:37:48]req_shift_opened done [09:37:48]requested_item shift.open_date is exist - process it [09:37:48]req_shift_open_date [09:37:48]req_shift_open_date done [09:37:48]produce_requested_data done [09:37:48]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164855,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [09:37:48]process_action_free close_receipt [09:37:48]json_value_free [09:37:48]json_value_free done [09:37:48]process_json_proto returns [09:37:48]Send response to host [09:37:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164855,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [09:37:48]free response buf [09:37:48]execute_script done [09:37:48]execute_script returns [09:37:48]free content buf [09:37:48]Sock 9.Close socket [09:37:48]Sock 9.Thread stoped [09:37:52]OFD Sender: No OFD packet to send [09:37:57]OFD Sender: No OFD packet to send [09:38:02]OFD Sender: No OFD packet to send [09:38:07]OFD Sender: No OFD packet to send [09:38:12]OFD Sender: No OFD packet to send [09:38:17]OFD Sender: No OFD packet to send [09:38:22]OFD Sender: No OFD packet to send [09:38:27]OFD Sender: No OFD packet to send [09:38:32]OFD Sender: No OFD packet to send [09:38:37]OFD Sender: No OFD packet to send [09:38:42]OFD Sender: No OFD packet to send [09:38:47]OFD Sender: No OFD packet to send [09:38:52]OFD Sender: No OFD packet to send [09:38:57]OFD Sender: No OFD packet to send [09:39:02]OFD Sender: No OFD packet to send [09:39:07]OFD Sender: No OFD packet to send [09:39:12]OFD Sender: No OFD packet to send [09:39:17]OFD Sender: No OFD packet to send [09:39:22]OFD Sender: No OFD packet to send [09:39:27]OFD Sender: No OFD packet to send [09:39:32]OFD Sender: No OFD packet to send [09:39:37]OFD Sender: No OFD packet to send [09:39:42]OFD Sender: No OFD packet to send [09:39:47]OFD Sender: No OFD packet to send [09:39:52]OFD Sender: No OFD packet to send [09:39:57]OFD Sender: No OFD packet to send [09:40:02]OFD Sender: No OFD packet to send [09:40:07]OFD Sender: No OFD packet to send [09:40:12]OFD Sender: No OFD packet to send [09:40:17]OFD Sender: No OFD packet to send [09:40:22]OFD Sender: No OFD packet to send [09:40:27]OFD Sender: No OFD packet to send [09:40:33]OFD Sender: No OFD packet to send [09:40:38]OFD Sender: No OFD packet to send [09:40:43]OFD Sender: No OFD packet to send [09:40:48]OFD Sender: No OFD packet to send [09:40:53]OFD Sender: No OFD packet to send [09:40:58]OFD Sender: No OFD packet to send [09:41:03]OFD Sender: No OFD packet to send [09:41:08]OFD Sender: No OFD packet to send [09:41:13]OFD Sender: No OFD packet to send [09:41:18]OFD Sender: No OFD packet to send [09:41:23]OFD Sender: No OFD packet to send [09:41:28]OFD Sender: No OFD packet to send [09:41:33]OFD Sender: No OFD packet to send [09:41:38]OFD Sender: No OFD packet to send [09:41:43]OFD Sender: No OFD packet to send [09:41:48]OFD Sender: No OFD packet to send [09:41:53]OFD Sender: No OFD packet to send [09:41:58]OFD Sender: No OFD packet to send [09:42:03]OFD Sender: No OFD packet to send [09:42:08]OFD Sender: No OFD packet to send [09:42:13]OFD Sender: No OFD packet to send [09:42:18]OFD Sender: No OFD packet to send [09:42:23]OFD Sender: No OFD packet to send [09:42:28]OFD Sender: No OFD packet to send [09:42:33]OFD Sender: No OFD packet to send [09:42:38]OFD Sender: No OFD packet to send [09:42:43]OFD Sender: No OFD packet to send [09:42:48]OFD Sender: No OFD packet to send [09:42:53]OFD Sender: No OFD packet to send [09:42:58]OFD Sender: No OFD packet to send [09:43:03]OFD Sender: No OFD packet to send [09:43:08]OFD Sender: No OFD packet to send [09:43:13]OFD Sender: No OFD packet to send [09:43:18]OFD Sender: No OFD packet to send [09:43:23]OFD Sender: No OFD packet to send [09:43:28]OFD Sender: No OFD packet to send [09:43:33]OFD Sender: No OFD packet to send [09:43:38]OFD Sender: No OFD packet to send [09:43:43]OFD Sender: No OFD packet to send [09:43:48]OFD Sender: No OFD packet to send [09:43:53]OFD Sender: No OFD packet to send [09:43:58]OFD Sender: No OFD packet to send [09:44:03]OFD Sender: No OFD packet to send [09:44:08]OFD Sender: No OFD packet to send [09:44:13]OFD Sender: No OFD packet to send [09:44:18]OFD Sender: No OFD packet to send [09:44:23]OFD Sender: No OFD packet to send [09:44:28]OFD Sender: No OFD packet to send [09:44:33]OFD Sender: No OFD packet to send [09:44:38]OFD Sender: No OFD packet to send [09:44:43]OFD Sender: No OFD packet to send [09:44:48]OFD Sender: No OFD packet to send [09:44:53]OFD Sender: No OFD packet to send [09:44:58]OFD Sender: No OFD packet to send [09:45:03]OFD Sender: No OFD packet to send [09:45:08]OFD Sender: No OFD packet to send [09:45:13]OFD Sender: No OFD packet to send [09:45:18]OFD Sender: No OFD packet to send [09:45:23]OFD Sender: No OFD packet to send [09:45:28]OFD Sender: No OFD packet to send [09:45:33]OFD Sender: No OFD packet to send [09:45:38]OFD Sender: No OFD packet to send [09:45:43]OFD Sender: No OFD packet to send [09:45:48]OFD Sender: No OFD packet to send [09:45:53]OFD Sender: No OFD packet to send [09:45:58]OFD Sender: No OFD packet to send [09:46:03]OFD Sender: No OFD packet to send [09:46:08]OFD Sender: No OFD packet to send [09:46:13]OFD Sender: No OFD packet to send [09:46:18]OFD Sender: No OFD packet to send [09:46:23]OFD Sender: No OFD packet to send [09:46:28]OFD Sender: No OFD packet to send [09:46:33]OFD Sender: No OFD packet to send [09:46:38]OFD Sender: No OFD packet to send [09:46:43]OFD Sender: No OFD packet to send [09:46:48]OFD Sender: No OFD packet to send [09:46:53]OFD Sender: No OFD packet to send [09:46:58]OFD Sender: No OFD packet to send [09:47:03]OFD Sender: No OFD packet to send [09:47:08]OFD Sender: No OFD packet to send [09:47:13]OFD Sender: No OFD packet to send [09:47:18]OFD Sender: No OFD packet to send [09:47:23]OFD Sender: No OFD packet to send [09:47:28]OFD Sender: No OFD packet to send [09:47:33]OFD Sender: No OFD packet to send [09:47:38]OFD Sender: No OFD packet to send [09:47:43]OFD Sender: No OFD packet to send [09:47:48]OFD Sender: No OFD packet to send [09:47:53]OFD Sender: No OFD packet to send [09:47:58]OFD Sender: No OFD packet to send [09:48:03]OFD Sender: No OFD packet to send [09:48:08]OFD Sender: No OFD packet to send [09:48:13]OFD Sender: No OFD packet to send [09:48:18]OFD Sender: No OFD packet to send [09:48:23]OFD Sender: No OFD packet to send [09:48:28]OFD Sender: No OFD packet to send [09:48:33]OFD Sender: No OFD packet to send [09:48:38]OFD Sender: No OFD packet to send [09:48:43]OFD Sender: No OFD packet to send [09:48:48]OFD Sender: No OFD packet to send [09:48:53]OFD Sender: No OFD packet to send [09:48:58]OFD Sender: No OFD packet to send [09:49:03]OFD Sender: No OFD packet to send [09:49:08]OFD Sender: No OFD packet to send [09:49:13]OFD Sender: No OFD packet to send [09:49:18]OFD Sender: No OFD packet to send [09:49:23]OFD Sender: No OFD packet to send [09:49:28]OFD Sender: No OFD packet to send [09:49:33]OFD Sender: No OFD packet to send [09:49:38]OFD Sender: No OFD packet to send [09:49:43]OFD Sender: No OFD packet to send [09:49:48]OFD Sender: No OFD packet to send [09:49:53]OFD Sender: No OFD packet to send [09:49:58]OFD Sender: No OFD packet to send [09:50:03]OFD Sender: No OFD packet to send [09:50:08]OFD Sender: No OFD packet to send [09:50:13]OFD Sender: No OFD packet to send [09:50:18]OFD Sender: No OFD packet to send [09:50: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:53]OFD Sender: No OFD packet to send [09:50:58]OFD Sender: No OFD packet to send [09:51:03]OFD Sender: No OFD packet to send [09:51:08]OFD Sender: No OFD packet to send [09:51:13]OFD Sender: No OFD packet to send [09:51:18]OFD Sender: No OFD packet to send [09:51:23]OFD Sender: No OFD packet to send [09:51:28]OFD Sender: No OFD packet to send [09:51:33]OFD Sender: No OFD packet to send [09:51:38]OFD Sender: No OFD packet to send [09:51:43]OFD Sender: No OFD packet to send [09:51:48]OFD Sender: No OFD packet to send [09:51:53]OFD Sender: No OFD packet to send [09:51:58]OFD Sender: No OFD packet to send [09:52:02]accept exits with 7 [09:52:02]New connection [09:52:02]New thread 3067473252 created [09:52:02]Thread 3067616612 joined [09:52:02]Waiting for new connection... [09:52:02] Sock 7.Parse request [09:52:02]Sock 7.Check first char [09:52:02]Sock 7.First char is OK [09:52:02]request: POST /json_proto HTTP/1.0 [09:52:02]Method: POST [09:52:02]URL: /json_proto [09:52:02]Method is POST - this is cgi request [09:52:02]url: /json_proto [09:52:02]query_string will be loaded in cgi processing [09:52:02]execute_cgi json_proto POST (null) [09:52:02]execute_cgi path=json_proto method=POST [09:52:02]POST find Content-Length [09:52:02]Host: 172.17.56.4:8080 [09:52:02]Content-Length: 677 [09:52:02]Content-Type: application/json [09:52:02] [09:52:02]POST finish read [09:52:02]Found Content-Length = 677 [09:52:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458952", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.800, "sum" : 250.04, "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" ] } } [09:52:02]execute_script... [09:52: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)458952", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.800, "sum" : 250.04, "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" ] } } [09:52:02]POST & json_proto [09:52:02]process_json_proto [09:52:02]json parsed OK: [09:52:02]protocol is kg_v1.0 [09:52:02]action value=close_receipt [09:52:02]process_action close_receipt [09:52:02]cmd_close_receipt [09:52:02]MH_GetDate [09:52:02]Write to MH i2c: F0 00 00 FB 00 EA [09:52:02]Write i2c OK [09:52:02]MH_I2C_Read... [09:52:02]Read from MH i2c: F0 [09:52:02]MH_I2C_Read... [09:52:02]Read from MH i2c: F0 09 00 [09:52:02]MH_I2C_Read... [09:52:02]Read from MH i2c: F0 09 00 FB 00 00 C3 9F 93 66 C9 DC B2 64 09 [09:52:02]GetLastDocTimeStamp 1720949865 [09:52:02]current date 1720950723 [09:52:02]FM_GetShiftState [09:52:02]SAM_PROTO_GetShiftState [09:52:02]wFMCommunicate request_size=4 [09:52:02]MH_SAM_APDU [09:52:02]CAPDU: 80 13 01 00 [09:52:02]Write to MH i2c: E2 08 00 FC 00 80 13 01 00 00 00 00 00 79 [09:52:02]Write i2c OK [09:52:02]MH_I2C_Read... [09:52:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:02]Read from MH i2c: E2 [09:52:02]MH_I2C_Read... [09:52:02]Read from MH i2c: E2 0E 00 [09:52:02]MH_I2C_Read... [09:52:02]Read from MH i2c: E2 0E 00 FC 00 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 F9 [09:52:02]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [09:52:02]wFMCommunicate OK [09:52:02]SAM_PROTO_GetShiftState done [09:52:02]FM_GetShiftState done [09:52:02]opened in 1720917342 [09:52:02]opened+sec_in_day 1721003742 [09:52:02]quantity*price = 25004 [09:52:02]sum+1 = 25005 [09:52:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.55 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 54 14.07.2024 09:52 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164856 ФПД: 12887403867016 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T095203&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164856&fm=12887403867016&tin=02508201610067®Number=0000000000090829&sum=25000 [09:52:03]StoreToDocumentArchive [09:52:03]shift 447 fd 164856 [09:52:03]save to /storage/0447/doc_00164856 [09:52:03]save last doc name /storage/0447/doc_00164856 to /storage/kkm_last_doc_name [09:52:03]save OK [09:52:03]Clear old archive folders... [09:52:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:52:03]tlvbuf is 00736050 [09:52:03]SAM_PROTO_ClearQueue [09:52:03]wFMCommunicate request_size=4 [09:52:03]MH_SAM_APDU [09:52:03]CAPDU: 80 09 00 00 [09:52:03]Write to MH i2c: E2 08 00 09 01 80 09 00 00 00 00 00 00 7C [09:52:03]Write i2c OK [09:52:03]MH_I2C_Read... [09:52:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:52:03]Read from MH i2c: E2 [09:52:03]MH_I2C_Read... [09:52:03]Read from MH i2c: E2 03 00 [09:52:03]MH_I2C_Read... [09:52:03]Read from MH i2c: E2 03 00 09 01 00 90 00 7E [09:52:03]RAPDU: 90 00 [09:52:03]wFMCommunicate OK [09:52:03]SAM_PROTO_ClearQueue done [09:52:03]KKMCreateOFDPacket [09:52:03]OFDProtocolAddRootSTLVToBuf [09:52:03]FM_MakeSignedData [09:52:03]FM_MakeSignedData [09:52:03]SAM_PROTO_SignData [09:52:03]wFMCommunicate request_size=4 [09:52:03]MH_SAM_APDU [09:52:03]CAPDU: 80 0D 01 02 [09:52:03]Write to MH i2c: E2 08 00 0A 01 80 0D 01 02 00 00 00 00 84 [09:52:03]Write i2c OK [09:52:03]MH_I2C_Read... [09:52:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:52:03]Read from MH i2c: E2 [09:52:03]MH_I2C_Read... [09:52:03]Read from MH i2c: E2 03 00 [09:52:03]MH_I2C_Read... [09:52:03]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [09:52:03]RAPDU: 90 00 [09:52:03]wFMCommunicate OK [09:52:03]wFMCommunicate request_size=255 [09:52:03]MH_SAM_APDU [09:52:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 AC 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 C3 9F 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F8 83 02 00 35 04 06 00 0B [09:52:03]Write to MH i2c: E2 02 01 0B 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 AC 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 C3 9F 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F8 83 02 00 35 04 06 00 0B 00 00 85 [09:52:04]Write i2c OK [09:52:04]MH_I2C_Read... [09:52:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:04]Read from MH i2c: E2 [09:52:04]MH_I2C_Read... [09:52:04]Read from MH i2c: E2 03 00 [09:52:04]MH_I2C_Read... [09:52:04]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [09:52:04]RAPDU: 90 00 [09:52:04]wFMCommunicate OK [09:52:04]wFMCommunicate request_size=10 [09:52:04]MH_SAM_APDU [09:52:04]CAPDU: 80 0D 02 02 05 B8 95 21 2B 88 [09:52:04]Write to MH i2c: E2 0D 00 0C 01 80 0D 02 02 05 00 B8 95 21 2B 88 00 00 B2 [09:52:04]Write i2c OK [09:52:04]MH_I2C_Read... [09:52:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:04]Read from MH i2c: E2 [09:52:04]MH_I2C_Read... [09:52:04]Read from MH i2c: E2 03 00 [09:52:04]MH_I2C_Read... [09:52:04]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [09:52:04]RAPDU: 90 00 [09:52:04]wFMCommunicate OK [09:52:04]wFMCommunicate request_size=4 [09:52:04]MH_SAM_APDU [09:52:04]CAPDU: 80 0D 03 02 [09:52:04]Write to MH i2c: E2 08 00 0D 01 80 0D 03 02 00 00 00 00 89 [09:52:04]Write i2c OK [09:52:04]MH_I2C_Read... [09:52:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:52:04]Read from MH i2c: E2 [09:52:04]MH_I2C_Read... [09:52:04]Read from MH i2c: E2 0B 00 [09:52:04]MH_I2C_Read... [09:52:04]Read from MH i2c: E2 0B 00 0D 01 00 FD 61 EF AC DA 20 57 5C 90 00 30 [09:52:04]RAPDU: FD 61 EF AC DA 20 57 5C 90 00 [09:52:04]wFMCommunicate OK [09:52:04]SAM_PROTO_SignData done [09:52:04]FM_MakeSignedData done [09:52:04]CreateOFDProtocolMessage [09:52:04]wFMCommunicate request_size=4 [09:52:04]MH_SAM_APDU [09:52:04]CAPDU: 80 11 00 00 [09:52:04]Write to MH i2c: E2 08 00 0E 01 80 11 00 00 00 00 00 00 89 [09:52:04]Write i2c OK [09:52:04]MH_I2C_Read... [09:52:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:04]Read from MH i2c: E2 [09:52:04]MH_I2C_Read... [09:52:04]Read from MH i2c: E2 17 00 [09:52:04]MH_I2C_Read... [09:52:04]Read from MH i2c: E2 17 00 0E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DF [09:52:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:52:04]wFMCommunicate OK [09:52:04]CreateOFDProtocolMessage done [09:52:04]OFDSenderStorePacket 164856 [09:52:04]StoreOFDPacket docnum=164856 [09:52:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 4B CF 07 01 29 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 AC 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 C3 9F 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F8 83 02 00 35 04 06 00 0B B8 95 21 2B 88 FD 61 EF AC DA 20 57 5C [09:52:04]CheckFolder [09:52:04]dirname=/storage/ofd_packets [09:52:04]CheckFolder done [09:52:04]ProducePacketName [09:52:04]name=ofd_packets/00164856 [09:52:04]NVStorageSaveData ofd_packets/00164856 [09:52:04]File name is /storage/ofd_packets/00164856 [09:52:04]Write 301 bytes [09:52:04]NVStorageSaveData done [09:52:04]OFDSenderStorePacket done [09:52:04]KKMCreateOFDPacket done [09:52:04]NVStorageSaveData kkm_last_timestamp [09:52:04]File name is /storage/kkm_last_timestamp [09:52:04]Write 4 bytes [09:52:04]NVStorageSaveData done [09:52:04]ExternCall_PrintAddStr [09:52:04]wPrintStart [09:52:04]Write to MH i2c: 01 00 00 0F 01 10 [09:52:04]Write i2c OK [09:52:04]MH_I2C_Read... [09:52:04]Read from MH i2c: 01 [09:52:04]MH_I2C_Read... [09:52:04]Read from MH i2c: 01 07 00 [09:52:04]MH_I2C_Read... [09:52:04]Read from MH i2c: 01 07 00 0F 01 00 00 00 00 00 FF 0F 25 [09:52:04]RasterBufferAndPrint [09:52:04]line Счет N : (1)458952 [09:52:04]line ИНН: 02508201610067 [09:52:04]line Контрольно-Кассовый Чек [09:52:04]line ПРОДАЖА [09:52:04]line ТРК (МРК, ГНК) : 22 [09:52:04]line Товар: 2710124130 [09:52:04]line Аи-92-К-5 [09:52:04]line 3.800 * 65.80 [09:52:04]line = 250.04 [09:52:04]line НДС 12% НСП 1% [09:52:04]line > о реализуемом товаре [09:52:04]line ОКРУГЛЕНИЕ: -0.04 [09:52:04]line ИТОГО: 250.00 [09:52:04]line Внесено: 250.00 [09:52:04]line СДАЧА: 0.00 [09:52:04]line НСП 1% : 2.21 [09:52:04]line НДС 12% : 26.55 [09:52:04]line Наличными: 250.00 [09:52:04]line Безнал.: 0.00 [09:52:04]line Место: АЗС № 72 "Партнер Нефть" [09:52:04]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:52:04]line СНО: Общий режим [09:52:04]line Чек 54 14.07.2024 09:52 [09:52:04]line Смена: 447 ФФД: 1.0 [09:52:04]line ЗНМ: 0300000160 [09:52:04]line РНМ: 0000000000090829 [09:52:04]line Версия ККМ: 001 [09:52:04]line ФМ: 0000000000874718 [09:52:04]line ФД: 164856 [09:52:04]line ФПД: 12887403867016 [09:52:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T095203&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164856&fm=12887403867016&tin=02508201610067®Number=0000000000090829&sum=25000 [09:52:04]OFD Sender: Processing packet 164856 [packets to send 104, broken 103] [09:52:04]ProducePacketName [09:52:04]name=ofd_packets/00164856 [09:52:04]OFD Sender: To server: pG, [09:52:04]CommunicateWithHost lk.salyk.kg:30040 [09:52:04]ConnectInit lk.salyk.kg [09:52:04]written 0, free lines is 4095 [09:52:04]Connected sock=10 [09:52:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 4B CF 07 01 29 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 AC 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 C3 9F 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F8 83 02 00 35 04 06 00 0B B8 95 21 2B 88 FD 61 EF AC DA 20 57 5C [09:52:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 EB CC 47 00 C5 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 38 37 34 37 31 38 10 04 04 00 F8 83 02 00 F4 03 04 00 51 46 93 66 B6 04 01 00 00 85 CC F8 A5 97 E3 F9 7C [09:52:05]CommunicateWithHost err = 0 [09:52:05]CheckOFDResponse [09:52:05]1017 (14) - 77093643461234 [09:52:05]1041 (16) - 0000000000874718 [09:52:05]1040 (4) - 164856 [09:52:05]1012 (4) - 14.07.2024 03:30 [09:52:05]1206 (1) - 0 [09:52:05]OFD Sender: Remove packet 164856 [09:52:05]ProducePacketName [09:52:05]name=ofd_packets/00164856 [09:52:05]NVStorageDeleteData [09:52:05]Write to MH i2c: 01 00 00 39 01 3A [09:52:05]Write i2c OK [09:52:05]MH_I2C_Read... [09:52:05]Read from MH i2c: 01 [09:52:05]MH_I2C_Read... [09:52:05]Read from MH i2c: 01 07 00 [09:52:05]MH_I2C_Read... [09:52:05]Read from MH i2c: 01 07 00 39 01 00 00 00 00 00 01 0D 4F [09:52:05]RasterBufferAndPrint [09:52:05]line [09:52:05]line [09:52:05]line [09:52:05]line [09:52:05]line [09:52:05]written 0, free lines is 3335 [09:52:05]MH_Cut [09:52:05]Write to MH i2c: D1 01 00 40 01 01 13 [09:52:05]Write i2c OK [09:52:05]MH_I2C_Read... [09:52:05]Read from MH i2c: D1 [09:52:05]MH_I2C_Read... [09:52:05]Read from MH i2c: D1 01 00 [09:52:05]MH_I2C_Read... [09:52:05]Read from MH i2c: D1 01 00 40 01 00 12 [09:52:05]Write to MH i2c: 01 00 00 41 01 42 [09:52:05]Write i2c OK [09:52:05]MH_I2C_Read... [09:52:05]OFD Sender: No OFD packet to send [09:52:05]*** Cut start [09:52:05]*** Partial cut [09:52:05]*** CUTSNS_PIN = 1 [09:52:05]*** CUTSNS_PIN = 0 [09:52:06]*** Brake cut motor [09:52:06]Read from MH i2c: 01 [09:52:06]MH_I2C_Read... [09:52:06]*** Stop cut motor [09:52:06]*** Cut end [09:52:06]Read from MH i2c: 01 07 00 [09:52:06]MH_I2C_Read... [09:52:06]Read from MH i2c: 01 07 00 41 01 00 00 00 00 00 FF 0F 57 [09:52:06]process_action close_receipt done [09:52:06]requested_data is exist [09:52:06]produce_requested_data [09:52:06]requested_item fm.sn is exist - process it [09:52:06]wFMCommunicate request_size=4 [09:52:06]MH_SAM_APDU [09:52:06]CAPDU: 80 11 00 00 [09:52:06]Write to MH i2c: E2 08 00 42 01 80 11 00 00 00 00 00 00 BD [09:52:06]Write i2c OK [09:52:06]MH_I2C_Read... [09:52:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:06]Read from MH i2c: E2 [09:52:06]MH_I2C_Read... [09:52:06]Read from MH i2c: E2 17 00 [09:52:06]MH_I2C_Read... [09:52:06]Read from MH i2c: E2 17 00 42 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 13 [09:52:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:52:06]wFMCommunicate OK [09:52:06]requested_item fd.num is exist - process it [09:52:06]SAM_PROTO_GetFieldsCounters [09:52:06]wFMCommunicate request_size=4 [09:52:06]MH_SAM_APDU [09:52:06]CAPDU: 80 13 00 00 [09:52:06]Write to MH i2c: E2 08 00 43 01 80 13 00 00 00 00 00 00 C0 [09:52:06]Write i2c OK [09:52:06]MH_I2C_Read... [09:52:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:52:06]Read from MH i2c: E2 [09:52:06]MH_I2C_Read... [09:52:06]Read from MH i2c: E2 62 00 [09:52:06]MH_I2C_Read... [09:52:06]Read from MH i2c: E2 62 00 43 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F8 83 02 00 0E 04 04 00 BF 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 C6 [09:52:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F8 83 02 00 0E 04 04 00 BF 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 [09:52:06]wFMCommunicate OK [09:52:06]SAM_PROTO_GetFieldsCounters done [09:52:06]requested_item shift.num is exist - process it [09:52:06]requested_item shift.opened is exist - process it [09:52:06]req_shift_opened [09:52:06]FM_GetShiftState [09:52:06]SAM_PROTO_GetShiftState [09:52:06]wFMCommunicate request_size=4 [09:52:06]MH_SAM_APDU [09:52:06]CAPDU: 80 13 01 00 [09:52:06]Write to MH i2c: E2 08 00 44 01 80 13 01 00 00 00 00 00 C2 [09:52:06]Write i2c OK [09:52:06]MH_I2C_Read... [09:52:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:06]Read from MH i2c: E2 [09:52:06]MH_I2C_Read... [09:52:06]Read from MH i2c: E2 0E 00 [09:52:06]MH_I2C_Read... [09:52:06]Read from MH i2c: E2 0E 00 44 01 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 42 [09:52:06]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [09:52:06]wFMCommunicate OK [09:52:06]SAM_PROTO_GetShiftState done [09:52:06]FM_GetShiftState done [09:52:06]req_shift_opened done [09:52:06]requested_item shift.open_date is exist - process it [09:52:06]req_shift_open_date [09:52:06]req_shift_open_date done [09:52:06]produce_requested_data done [09:52:06]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164856,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [09:52:06]process_action_free close_receipt [09:52:06]json_value_free [09:52:06]json_value_free done [09:52:06]process_json_proto returns [09:52:06]Send response to host [09:52:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164856,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [09:52:06]free response buf [09:52:06]execute_script done [09:52:06]execute_script returns [09:52:06]free content buf [09:52:06]Sock 7.Close socket [09:52:06]Sock 7.Thread stoped [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:15]OFD Sender: No OFD packet to send [09:53:20]OFD Sender: No OFD packet to send [09:53:25]OFD Sender: No OFD packet to send [09:53:30]OFD Sender: No OFD packet to send [09:53:35]OFD Sender: No OFD packet to send [09:53:40]OFD Sender: No OFD packet to send [09:53:45]OFD Sender: No OFD packet to send [09:53:50]OFD Sender: No OFD packet to send [09:53:55]OFD Sender: No OFD packet to send [09:54:00]OFD Sender: No OFD packet to send [09:54:05]OFD Sender: No OFD packet to send [09:54:10]OFD Sender: No OFD packet to send [09:54:15]OFD Sender: No OFD packet to send [09:54:20]OFD Sender: No OFD packet to send [09:54:25]OFD Sender: No OFD packet to send [09:54:30]OFD Sender: No OFD packet to send [09:54:35]OFD Sender: No OFD packet to send [09:54:40]OFD Sender: No OFD packet to send [09:54:45]OFD Sender: No OFD packet to send [09:54:50]OFD Sender: No OFD packet to send [09:54:55]OFD Sender: No OFD packet to send [09:54:58]accept exits with 9 [09:54:58]New connection [09:54:58]New thread 3067616612 created [09:54:58]Thread 3067473252 joined [09:54:58]Waiting for new connection... [09:54:58] Sock 9.Parse request [09:54:58]Sock 9.Check first char [09:54:58]Sock 9.First char is OK [09:54:58]request: POST /json_proto HTTP/1.0 [09:54:58]Method: POST [09:54:58]URL: /json_proto [09:54:58]Method is POST - this is cgi request [09:54:58]url: /json_proto [09:54:58]query_string will be loaded in cgi processing [09:54:58]execute_cgi json_proto POST (null) [09:54:58]execute_cgi path=json_proto method=POST [09:54:58]POST find Content-Length [09:54:58]Host: 172.17.56.4:8080 [09:54:58]Content-Length: 790 [09:54:58]Content-Type: application/json [09:54:58] [09:54:58]POST finish read [09:54:58]Found Content-Length = 790 [09:54:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458953", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 5.000, "sum" : 326.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 326.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:54:58]execute_script... [09:54: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)458953", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 5.000, "sum" : 326.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 326.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:54:58]POST & json_proto [09:54:58]process_json_proto [09:54:58]json parsed OK: [09:54:58]protocol is kg_v1.0 [09:54:58]action value=close_receipt [09:54:58]process_action close_receipt [09:54:58]cmd_close_receipt [09:54:58]MH_GetDate [09:54:58]Write to MH i2c: F0 00 00 45 01 35 [09:54:58]Write i2c OK [09:54:58]MH_I2C_Read... [09:54:58]Read from MH i2c: F0 [09:54:58]MH_I2C_Read... [09:54:58]Read from MH i2c: F0 09 00 [09:54:58]MH_I2C_Read... [09:54:58]Read from MH i2c: F0 09 00 45 01 00 72 A0 93 66 C9 DC B2 64 04 [09:54:58]GetLastDocTimeStamp 1720950723 [09:54:58]current date 1720950898 [09:54:58]FM_GetShiftState [09:54:58]SAM_PROTO_GetShiftState [09:54:58]wFMCommunicate request_size=4 [09:54:58]MH_SAM_APDU [09:54:58]CAPDU: 80 13 01 00 [09:54:58]Write to MH i2c: E2 08 00 46 01 80 13 01 00 00 00 00 00 C4 [09:54:58]Write i2c OK [09:54:58]MH_I2C_Read... [09:54:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:54:58]Read from MH i2c: E2 [09:54:58]MH_I2C_Read... [09:54:58]Read from MH i2c: E2 0E 00 [09:54:58]MH_I2C_Read... [09:54:58]Read from MH i2c: E2 0E 00 46 01 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 44 [09:54:58]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [09:54:58]wFMCommunicate OK [09:54:58]SAM_PROTO_GetShiftState done [09:54:58]FM_GetShiftState done [09:54:58]opened in 1720917342 [09:54:58]opened+sec_in_day 1721003742 [09:54:58]quantity*price = 32610 [09:54:58]sum+1 = 32611 [09:54:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 326.10 НСП 1% : 2.89 НДС 12% : 34.63 Наличными: 0.00 Безнал.: 326.10 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 55 14.07.2024 09:54 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164857 ФПД: 138808688566878 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T095458&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164857&fm=138808688566878&tin=02508201610067®Number=0000000000090829&sum=32610 [09:54:59]StoreToDocumentArchive [09:54:59]shift 447 fd 164857 [09:54:59]save to /storage/0447/doc_00164857 [09:54:59]save last doc name /storage/0447/doc_00164857 to /storage/kkm_last_doc_name [09:54:59]save OK [09:54:59]Clear old archive folders... [09:54:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:54:59]tlvbuf is 00742DD0 [09:54:59]SAM_PROTO_ClearQueue [09:54:59]wFMCommunicate request_size=4 [09:54:59]MH_SAM_APDU [09:54:59]CAPDU: 80 09 00 00 [09:54:59]Write to MH i2c: E2 08 00 53 01 80 09 00 00 00 00 00 00 C6 [09:54:59]Write i2c OK [09:54:59]MH_I2C_Read... [09:54:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:54:59]Read from MH i2c: E2 [09:54:59]MH_I2C_Read... [09:54:59]Read from MH i2c: E2 03 00 [09:54:59]MH_I2C_Read... [09:54:59]Read from MH i2c: E2 03 00 53 01 00 90 00 C8 [09:54:59]RAPDU: 90 00 [09:54:59]wFMCommunicate OK [09:54:59]SAM_PROTO_ClearQueue done [09:54:59]KKMCreateOFDPacket [09:54:59]OFDProtocolAddRootSTLVToBuf [09:54:59]FM_MakeSignedData [09:54:59]FM_MakeSignedData [09:54:59]SAM_PROTO_SignData [09:54:59]wFMCommunicate request_size=4 [09:54:59]MH_SAM_APDU [09:54:59]CAPDU: 80 0D 01 02 [09:54:59]Write to MH i2c: E2 08 00 54 01 80 0D 01 02 00 00 00 00 CE [09:54:59]Write i2c OK [09:54:59]MH_I2C_Read... [09:54:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:54:59]Read from MH i2c: E2 [09:54:59]MH_I2C_Read... [09:54:59]Read from MH i2c: E2 03 00 [09:54:59]MH_I2C_Read... [09:54:59]Read from MH i2c: E2 03 00 54 01 00 90 00 C9 [09:54:59]RAPDU: 90 00 [09:54:59]wFMCommunicate OK [09:54:59]wFMCommunicate request_size=255 [09:54:59]MH_SAM_APDU [09:54:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 62 7F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 7F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 7F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 72 A0 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F9 83 02 00 35 04 06 00 7E [09:54:59]Write to MH i2c: E2 02 01 55 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 62 7F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 7F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 7F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 72 A0 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F9 83 02 00 35 04 06 00 7E 00 00 63 [09:54:59]Write i2c OK [09:54:59]MH_I2C_Read... [09:54:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:54:59]Read from MH i2c: E2 [09:54:59]MH_I2C_Read... [09:54:59]Read from MH i2c: E2 03 00 [09:54:59]MH_I2C_Read... [09:54:59]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [09:54:59]RAPDU: 90 00 [09:54:59]wFMCommunicate OK [09:54:59]wFMCommunicate request_size=10 [09:54:59]MH_SAM_APDU [09:54:59]CAPDU: 80 0D 02 02 05 3E EA 92 E2 5E [09:54:59]Write to MH i2c: E2 0D 00 56 01 80 0D 02 02 05 00 3E EA 92 E2 5E 00 00 D5 [09:54:59]Write i2c OK [09:54:59]MH_I2C_Read... [09:54:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:54:59]Read from MH i2c: E2 [09:54:59]MH_I2C_Read... [09:54:59]Read from MH i2c: E2 03 00 [09:54:59]MH_I2C_Read... [09:54:59]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [09:54:59]RAPDU: 90 00 [09:54:59]wFMCommunicate OK [09:54:59]wFMCommunicate request_size=4 [09:54:59]MH_SAM_APDU [09:54:59]CAPDU: 80 0D 03 02 [09:54:59]Write to MH i2c: E2 08 00 57 01 80 0D 03 02 00 00 00 00 D3 [09:54:59]Write i2c OK [09:54:59]MH_I2C_Read... [09:54:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:54:59]Read from MH i2c: E2 [09:54:59]MH_I2C_Read... [09:54:59]Read from MH i2c: E2 0B 00 [09:54:59]MH_I2C_Read... [09:54:59]Read from MH i2c: E2 0B 00 57 01 00 57 2A CD 56 C3 BE 89 58 90 00 DA [09:54:59]RAPDU: 57 2A CD 56 C3 BE 89 58 90 00 [09:54:59]wFMCommunicate OK [09:54:59]SAM_PROTO_SignData done [09:54:59]FM_MakeSignedData done [09:54:59]CreateOFDProtocolMessage [09:54:59]wFMCommunicate request_size=4 [09:54:59]MH_SAM_APDU [09:54:59]CAPDU: 80 11 00 00 [09:54:59]Write to MH i2c: E2 08 00 58 01 80 11 00 00 00 00 00 00 D3 [09:54:59]Write i2c OK [09:54:59]MH_I2C_Read... [09:54:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:54:59]Read from MH i2c: E2 [09:54:59]MH_I2C_Read... [09:54:59]Read from MH i2c: E2 17 00 [09:54:59]MH_I2C_Read... [09:54:59]Read from MH i2c: E2 17 00 58 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 29 [09:54:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:54:59]wFMCommunicate OK [09:54:59]CreateOFDProtocolMessage done [09:54:59]OFDSenderStorePacket 164857 [09:54:59]StoreOFDPacket docnum=164857 [09:54:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 58 D3 07 01 EA 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 62 7F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 7F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 7F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 72 A0 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F9 83 02 00 35 04 06 00 7E 3E EA 92 E2 5E 57 2A CD 56 C3 BE 89 58 [09:54:59]CheckFolder [09:54:59]dirname=/storage/ofd_packets [09:54:59]CheckFolder done [09:54:59]ProducePacketName [09:54:59]name=ofd_packets/00164857 [09:54:59]NVStorageSaveData ofd_packets/00164857 [09:54:59]File name is /storage/ofd_packets/00164857 [09:54:59]Write 301 bytes [09:54:59]NVStorageSaveData done [09:54:59]OFDSenderStorePacket done [09:54:59]KKMCreateOFDPacket done [09:54:59]NVStorageSaveData kkm_last_timestamp [09:54:59]File name is /storage/kkm_last_timestamp [09:54:59]Write 4 bytes [09:54:59]NVStorageSaveData done [09:54:59]ExternCall_PrintAddStr [09:54:59]wPrintStart [09:54:59]Write to MH i2c: 01 00 00 59 01 5A [09:54:59]Write i2c OK [09:54:59]MH_I2C_Read... [09:54:59]Read from MH i2c: 01 [09:54:59]MH_I2C_Read... [09:54:59]Read from MH i2c: 01 07 00 [09:55:00]MH_I2C_Read... [09:55:00]Read from MH i2c: 01 07 00 59 01 00 00 00 00 00 FF 0F 6F [09:55:00]RasterBufferAndPrint [09:55:00]line Счет N : (1)458953 [09:55:00]line ИНН: 02508201610067 [09:55:00]line Контрольно-Кассовый Чек [09:55:00]line ПРОДАЖА [09:55:00]line ТРК (МРК, ГНК) : 12 [09:55:00]line Товар: 2710124130 [09:55:00]line Аи-92-К-5 [09:55:00]line 5.000 * 65.22 [09:55:00]line = 326.10 [09:55:00]line НДС 12% НСП 1% [09:55:00]line > о реализуемом товаре [09:55:00]line ИТОГО: 326.10 [09:55:00]line НСП 1% : 2.89 [09:55:00]line НДС 12% : 34.63 [09:55:00]line Наличными: 0.00 [09:55:00]line Безнал.: 326.10 [09:55:00]line Место: АЗС № 72 "Партнер Нефть" [09:55:00]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:55:00]line СНО: Общий режим [09:55:00]line Чек 55 14.07.2024 09:54 [09:55:00]line Смена: 447 ФФД: 1.0 [09:55:00]line ЗНМ: 0300000160 [09:55:00]line РНМ: 0000000000090829 [09:55:00]line Версия ККМ: 001 [09:55:00]line Платежная система: KICB Банк [09:55:00]line ФМ: 0000000000874718 [09:55:00]line ФД: 164857 [09:55:00]line ФПД: 138808688566878 [09:55:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T095458&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164857&fm=138808688566878&tin=02508201610067®Number=0000000000090829&sum=32610 [09:55:00]written 0, free lines is 4095 [09:55:00]OFD Sender: Processing packet 164857 [packets to send 104, broken 103] [09:55:00]ProducePacketName [09:55:00]name=ofd_packets/00164857 [09:55:00]OFD Sender: To server: pG, [09:55:00]CommunicateWithHost lk.salyk.kg:30040 [09:55:00]ConnectInit lk.salyk.kg [09:55:00]Connected sock=7 [09:55:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 58 D3 07 01 EA 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 62 7F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 7F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 7F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 72 A0 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F9 83 02 00 35 04 06 00 7E 3E EA 92 E2 5E 57 2A CD 56 C3 BE 89 58 [09:55:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 B2 39 47 00 B8 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F9 83 02 00 F4 03 04 00 00 47 93 66 B6 04 01 00 00 C1 89 BA F3 BC 04 3F 46 [09:55:00]CommunicateWithHost err = 0 [09:55:00]CheckOFDResponse [09:55:00]1017 (14) - 77093643461234 [09:55:00]1041 (16) - 0000000000874718 [09:55:00]1040 (4) - 164857 [09:55:00]1012 (4) - 14.07.2024 03:33 [09:55:00]1206 (1) - 0 [09:55:00]OFD Sender: Remove packet 164857 [09:55:00]ProducePacketName [09:55:00]name=ofd_packets/00164857 [09:55:00]NVStorageDeleteData [09:55:00]Write to MH i2c: 01 00 00 82 01 83 [09:55:00]Write i2c OK [09:55:00]MH_I2C_Read... [09:55:00]Read from MH i2c: 01 [09:55:00]MH_I2C_Read... [09:55:00]Read from MH i2c: 01 07 00 [09:55:00]MH_I2C_Read... [09:55:00]Read from MH i2c: 01 07 00 82 01 00 00 00 00 00 15 0D AC [09:55:00]RasterBufferAndPrint [09:55:00]line [09:55:00]line [09:55:00]line [09:55:00]line [09:55:00]line [09:55:00]written 0, free lines is 3357 [09:55:00]MH_Cut [09:55:00]Write to MH i2c: D1 01 00 89 01 01 5C [09:55:00]Write i2c OK [09:55:00]MH_I2C_Read... [09:55:00]Read from MH i2c: D1 [09:55:00]MH_I2C_Read... [09:55:00]Read from MH i2c: D1 01 00 [09:55:00]MH_I2C_Read... [09:55:00]Read from MH i2c: D1 01 00 89 01 00 5B [09:55:00]Write to MH i2c: 01 00 00 8A 01 8B [09:55:00]Write i2c OK [09:55:00]MH_I2C_Read... [09:55:00]OFD Sender: No OFD packet to send [09:55:01]*** Cut start [09:55:01]*** Partial cut [09:55:01]*** CUTSNS_PIN = 1 [09:55:01]*** CUTSNS_PIN = 0 [09:55:01]*** Brake cut motor [09:55:01]Read from MH i2c: 01 [09:55:01]MH_I2C_Read... [09:55:01]*** Stop cut motor [09:55:01]*** Cut end [09:55:01]Read from MH i2c: 01 07 00 [09:55:01]MH_I2C_Read... [09:55:01]Read from MH i2c: 01 07 00 8A 01 00 00 00 00 00 FF 0F A0 [09:55:01]process_action close_receipt done [09:55:01]requested_data is exist [09:55:01]produce_requested_data [09:55:01]requested_item fm.sn is exist - process it [09:55:01]wFMCommunicate request_size=4 [09:55:01]MH_SAM_APDU [09:55:01]CAPDU: 80 11 00 00 [09:55:01]Write to MH i2c: E2 08 00 8B 01 80 11 00 00 00 00 00 00 06 [09:55:01]Write i2c OK [09:55:01]MH_I2C_Read... [09:55:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:01]Read from MH i2c: E2 [09:55:01]MH_I2C_Read... [09:55:01]Read from MH i2c: E2 17 00 [09:55:01]MH_I2C_Read... [09:55:01]Read from MH i2c: E2 17 00 8B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 5C [09:55:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:55:01]wFMCommunicate OK [09:55:01]requested_item fd.num is exist - process it [09:55:01]SAM_PROTO_GetFieldsCounters [09:55:01]wFMCommunicate request_size=4 [09:55:01]MH_SAM_APDU [09:55:01]CAPDU: 80 13 00 00 [09:55:01]Write to MH i2c: E2 08 00 8C 01 80 13 00 00 00 00 00 00 09 [09:55:01]Write i2c OK [09:55:01]MH_I2C_Read... [09:55:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:55:01]Read from MH i2c: E2 [09:55:01]MH_I2C_Read... [09:55:01]Read from MH i2c: E2 62 00 [09:55:01]MH_I2C_Read... [09:55:01]Read from MH i2c: E2 62 00 8C 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F9 83 02 00 0E 04 04 00 BF 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [09:55:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F9 83 02 00 0E 04 04 00 BF 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 [09:55:01]wFMCommunicate OK [09:55:01]SAM_PROTO_GetFieldsCounters done [09:55:01]requested_item shift.num is exist - process it [09:55:01]requested_item shift.opened is exist - process it [09:55:01]req_shift_opened [09:55:01]FM_GetShiftState [09:55:01]SAM_PROTO_GetShiftState [09:55:01]wFMCommunicate request_size=4 [09:55:01]MH_SAM_APDU [09:55:01]CAPDU: 80 13 01 00 [09:55:01]Write to MH i2c: E2 08 00 8D 01 80 13 01 00 00 00 00 00 0B [09:55:01]Write i2c OK [09:55:01]MH_I2C_Read... [09:55:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:01]Read from MH i2c: E2 [09:55:01]MH_I2C_Read... [09:55:01]Read from MH i2c: E2 0E 00 [09:55:01]MH_I2C_Read... [09:55:01]Read from MH i2c: E2 0E 00 8D 01 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 8B [09:55:01]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [09:55:01]wFMCommunicate OK [09:55:01]SAM_PROTO_GetShiftState done [09:55:01]FM_GetShiftState done [09:55:01]req_shift_opened done [09:55:01]requested_item shift.open_date is exist - process it [09:55:01]req_shift_open_date [09:55:01]req_shift_open_date done [09:55:01]produce_requested_data done [09:55:01]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164857,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [09:55:01]process_action_free close_receipt [09:55:01]json_value_free [09:55:01]json_value_free done [09:55:01]process_json_proto returns [09:55:01]Send response to host [09:55:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164857,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [09:55:01]free response buf [09:55:01]execute_script done [09:55:01]execute_script returns [09:55:01]free content buf [09:55:01]Sock 9.Close socket [09:55:01]Sock 9.Thread stoped [09:55:05]OFD Sender: No OFD packet to send [09:55:10]OFD Sender: No OFD packet to send [09:55:13]accept exits with 10 [09:55:13]New connection [09:55:13]New thread 3067473252 created [09:55:13]Thread 3067616612 joined [09:55:13]Waiting for new connection... [09:55:13] Sock 10.Parse request [09:55:13]Sock 10.Check first char [09:55:13]Sock 10.First char is OK [09:55:13]request: POST /json_proto HTTP/1.0 [09:55:13]Method: POST [09:55:13]URL: /json_proto [09:55:13]Method is POST - this is cgi request [09:55:13]url: /json_proto [09:55:13]query_string will be loaded in cgi processing [09:55:13]execute_cgi json_proto POST (null) [09:55:13]execute_cgi path=json_proto method=POST [09:55:13]POST find Content-Length [09:55:13]Host: 172.17.56.4:8080 [09:55:13]Content-Length: 677 [09:55:13]Content-Type: application/json [09:55:13] [09:55:13]POST finish read [09:55:13]Found Content-Length = 677 [09:55:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458955", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:55:13]execute_script... [09:55: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)458955", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:55:13]POST & json_proto [09:55:13]process_json_proto [09:55:13]json parsed OK: [09:55:13]protocol is kg_v1.0 [09:55:13]action value=close_receipt [09:55:13]process_action close_receipt [09:55:13]cmd_close_receipt [09:55:13]MH_GetDate [09:55:13]Write to MH i2c: F0 00 00 8E 01 7E [09:55:13]Write i2c OK [09:55:13]MH_I2C_Read... [09:55:13]Read from MH i2c: F0 [09:55:13]MH_I2C_Read... [09:55:13]Read from MH i2c: F0 09 00 [09:55:13]MH_I2C_Read... [09:55:13]Read from MH i2c: F0 09 00 8E 01 00 81 A0 93 66 C9 DC B2 64 5C [09:55:13]GetLastDocTimeStamp 1720950898 [09:55:13]current date 1720950913 [09:55:13]FM_GetShiftState [09:55:13]SAM_PROTO_GetShiftState [09:55:13]wFMCommunicate request_size=4 [09:55:13]MH_SAM_APDU [09:55:13]CAPDU: 80 13 01 00 [09:55:13]Write to MH i2c: E2 08 00 8F 01 80 13 01 00 00 00 00 00 0D [09:55:13]Write i2c OK [09:55:13]MH_I2C_Read... [09:55:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:13]Read from MH i2c: E2 [09:55:13]MH_I2C_Read... [09:55:13]Read from MH i2c: E2 0E 00 [09:55:13]MH_I2C_Read... [09:55:13]Read from MH i2c: E2 0E 00 8F 01 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 8D [09:55:13]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [09:55:13]wFMCommunicate OK [09:55:13]SAM_PROTO_GetShiftState done [09:55:13]FM_GetShiftState done [09:55:13]opened in 1720917342 [09:55:13]opened+sec_in_day 1721003742 [09:55:13]quantity*price = 50008 [09:55:13]sum+1 = 50009 [09:55:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 56 14.07.2024 09:55 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164858 ФПД: 197147214377226 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T095513&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164858&fm=197147214377226&tin=02508201610067®Number=0000000000090829&sum=50000 [09:55:14]StoreToDocumentArchive [09:55:14]shift 447 fd 164858 [09:55:14]save to /storage/0447/doc_00164858 [09:55:14]save last doc name /storage/0447/doc_00164858 to /storage/kkm_last_doc_name [09:55:14]save OK [09:55:14]Clear old archive folders... [09:55:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:55:14]tlvbuf is 00733EB0 [09:55:14]SAM_PROTO_ClearQueue [09:55:14]wFMCommunicate request_size=4 [09:55:14]MH_SAM_APDU [09:55:14]CAPDU: 80 09 00 00 [09:55:14]Write to MH i2c: E2 08 00 9C 01 80 09 00 00 00 00 00 00 0F [09:55:14]Write i2c OK [09:55:14]MH_I2C_Read... [09:55:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:55:14]Read from MH i2c: E2 [09:55:14]MH_I2C_Read... [09:55:14]Read from MH i2c: E2 03 00 [09:55:14]MH_I2C_Read... [09:55:14]Read from MH i2c: E2 03 00 9C 01 00 90 00 11 [09:55:14]RAPDU: 90 00 [09:55:14]wFMCommunicate OK [09:55:14]SAM_PROTO_ClearQueue done [09:55:14]KKMCreateOFDPacket [09:55:14]OFDProtocolAddRootSTLVToBuf [09:55:14]FM_MakeSignedData [09:55:14]FM_MakeSignedData [09:55:14]SAM_PROTO_SignData [09:55:14]wFMCommunicate request_size=4 [09:55:14]MH_SAM_APDU [09:55:14]CAPDU: 80 0D 01 02 [09:55:14]Write to MH i2c: E2 08 00 9D 01 80 0D 01 02 00 00 00 00 17 [09:55:14]Write i2c OK [09:55:14]MH_I2C_Read... [09:55:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:55:14]Read from MH i2c: E2 [09:55:14]MH_I2C_Read... [09:55:14]Read from MH i2c: E2 03 00 [09:55:14]MH_I2C_Read... [09:55:14]Read from MH i2c: E2 03 00 9D 01 00 90 00 12 [09:55:14]RAPDU: 90 00 [09:55:14]wFMCommunicate OK [09:55:14]wFMCommunicate request_size=255 [09:55:14]MH_SAM_APDU [09:55:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 38 00 00 00 F4 03 04 00 81 A0 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FA 83 02 00 35 04 06 00 B3 [09:55:14]Write to MH i2c: E2 02 01 9E 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 38 00 00 00 F4 03 04 00 81 A0 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FA 83 02 00 35 04 06 00 B3 00 00 D4 [09:55:14]Write i2c OK [09:55:14]MH_I2C_Read... [09:55:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:14]Read from MH i2c: E2 [09:55:14]MH_I2C_Read... [09:55:14]Read from MH i2c: E2 03 00 [09:55:14]MH_I2C_Read... [09:55:14]Read from MH i2c: E2 03 00 9E 01 00 90 00 13 [09:55:14]RAPDU: 90 00 [09:55:14]wFMCommunicate OK [09:55:14]wFMCommunicate request_size=10 [09:55:14]MH_SAM_APDU [09:55:14]CAPDU: 80 0D 02 02 05 4D E9 AE 71 0A [09:55:14]Write to MH i2c: E2 0D 00 9F 01 80 0D 02 02 05 00 4D E9 AE 71 0A 00 00 83 [09:55:14]Write i2c OK [09:55:14]MH_I2C_Read... [09:55:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:14]Read from MH i2c: E2 [09:55:14]MH_I2C_Read... [09:55:14]Read from MH i2c: E2 03 00 [09:55:14]MH_I2C_Read... [09:55:14]Read from MH i2c: E2 03 00 9F 01 00 90 00 14 [09:55:14]RAPDU: 90 00 [09:55:14]wFMCommunicate OK [09:55:14]wFMCommunicate request_size=4 [09:55:14]MH_SAM_APDU [09:55:14]CAPDU: 80 0D 03 02 [09:55:14]Write to MH i2c: E2 08 00 A0 01 80 0D 03 02 00 00 00 00 1C [09:55:14]Write i2c OK [09:55:14]MH_I2C_Read... [09:55:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:55:14]Read from MH i2c: E2 [09:55:14]MH_I2C_Read... [09:55:14]Read from MH i2c: E2 0B 00 [09:55:14]MH_I2C_Read... [09:55:14]Read from MH i2c: E2 0B 00 A0 01 00 AF 91 25 CA B4 A8 2E 1F 90 00 F5 [09:55:14]RAPDU: AF 91 25 CA B4 A8 2E 1F 90 00 [09:55:14]wFMCommunicate OK [09:55:14]SAM_PROTO_SignData done [09:55:14]FM_MakeSignedData done [09:55:14]CreateOFDProtocolMessage [09:55:14]wFMCommunicate request_size=4 [09:55:14]MH_SAM_APDU [09:55:14]CAPDU: 80 11 00 00 [09:55:14]Write to MH i2c: E2 08 00 A1 01 80 11 00 00 00 00 00 00 1C [09:55:14]Write i2c OK [09:55:14]MH_I2C_Read... [09:55:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:14]Read from MH i2c: E2 [09:55:14]MH_I2C_Read... [09:55:14]Read from MH i2c: E2 17 00 [09:55:14]MH_I2C_Read... [09:55:14]Read from MH i2c: E2 17 00 A1 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 72 [09:55:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:55:14]wFMCommunicate OK [09:55:14]CreateOFDProtocolMessage done [09:55:14]OFDSenderStorePacket 164858 [09:55:14]StoreOFDPacket docnum=164858 [09:55:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 53 1E 07 01 30 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 38 00 00 00 F4 03 04 00 81 A0 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FA 83 02 00 35 04 06 00 B3 4D E9 AE 71 0A AF 91 25 CA B4 A8 2E 1F [09:55:14]CheckFolder [09:55:14]dirname=/storage/ofd_packets [09:55:14]CheckFolder done [09:55:14]ProducePacketName [09:55:14]name=ofd_packets/00164858 [09:55:14]NVStorageSaveData ofd_packets/00164858 [09:55:14]File name is /storage/ofd_packets/00164858 [09:55:14]Write 301 bytes [09:55:14]NVStorageSaveData done [09:55:14]OFDSenderStorePacket done [09:55:14]KKMCreateOFDPacket done [09:55:14]NVStorageSaveData kkm_last_timestamp [09:55:14]File name is /storage/kkm_last_timestamp [09:55:14]Write 4 bytes [09:55:14]NVStorageSaveData done [09:55:14]ExternCall_PrintAddStr [09:55:14]wPrintStart [09:55:14]Write to MH i2c: 01 00 00 A2 01 A3 [09:55:14]Write i2c OK [09:55:14]MH_I2C_Read... [09:55:14]Read from MH i2c: 01 [09:55:14]MH_I2C_Read... [09:55:14]Read from MH i2c: 01 07 00 [09:55:14]MH_I2C_Read... [09:55:14]Read from MH i2c: 01 07 00 A2 01 00 00 00 00 00 FF 0F B8 [09:55:14]RasterBufferAndPrint [09:55:14]line Счет N : (1)458955 [09:55:14]line ИНН: 02508201610067 [09:55:14]line Контрольно-Кассовый Чек [09:55:14]line ПРОДАЖА [09:55:14]line ТРК (МРК, ГНК) : 22 [09:55:14]line Товар: 2710124130 [09:55:14]line Аи-92-К-5 [09:55:14]line 7.600 * 65.80 [09:55:14]line = 500.08 [09:55:14]line НДС 12% НСП 1% [09:55:14]line > о реализуемом товаре [09:55:14]line ОКРУГЛЕНИЕ: -0.08 [09:55:14]line ИТОГО: 500.00 [09:55:14]line Внесено: 500.00 [09:55:14]line СДАЧА: 0.00 [09:55:14]line НСП 1% : 4.42 [09:55:14]line НДС 12% : 53.11 [09:55:14]line Наличными: 500.00 [09:55:14]line Безнал.: 0.00 [09:55:14]line Место: АЗС № 72 "Партнер Нефть" [09:55:14]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:55:14]line СНО: Общий режим [09:55:14]line Чек 56 14.07.2024 09:55 [09:55:14]line Смена: 447 ФФД: 1.0 [09:55:14]line ЗНМ: 0300000160 [09:55:14]line РНМ: 0000000000090829 [09:55:14]line Версия ККМ: 001 [09:55:14]line ФМ: 0000000000874718 [09:55:14]line ФД: 164858 [09:55:14]line ФПД: 197147214377226 [09:55:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T095513&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164858&fm=197147214377226&tin=02508201610067®Number=0000000000090829&sum=50000 [09:55:15]OFD Sender: Processing packet 164858 [packets to send 104, broken 103] [09:55:15]ProducePacketName [09:55:15]name=ofd_packets/00164858 [09:55:15]OFD Sender: To server: pG, [09:55:15]CommunicateWithHost lk.salyk.kg:30040 [09:55:15]ConnectInit lk.salyk.kg [09:55:15]written 0, free lines is 4095 [09:55:15]Connected sock=9 [09:55:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 53 1E 07 01 30 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 38 00 00 00 F4 03 04 00 81 A0 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FA 83 02 00 35 04 06 00 B3 4D E9 AE 71 0A AF 91 25 CA B4 A8 2E 1F [09:55:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 C5 B4 47 00 92 AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FA 83 02 00 F4 03 04 00 0F 47 93 66 B6 04 01 00 00 4A 1F 3A A8 07 1A 61 75 [09:55:15]CommunicateWithHost err = 0 [09:55:15]CheckOFDResponse [09:55:15]1017 (14) - 77093643461234 [09:55:15]1041 (16) - 0000000000874718 [09:55:15]1040 (4) - 164858 [09:55:15]1012 (4) - 14.07.2024 03:33 [09:55:15]1206 (1) - 0 [09:55:15]OFD Sender: Remove packet 164858 [09:55:15]ProducePacketName [09:55:15]name=ofd_packets/00164858 [09:55:15]NVStorageDeleteData [09:55:15]Write to MH i2c: 01 00 00 CC 01 CD [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 CC 01 00 00 00 00 00 F2 0C D2 [09:55:15]RasterBufferAndPrint [09:55:15]line [09:55:15]line [09:55:15]line [09:55:15]line [09:55:15]line [09:55:15]written 0, free lines is 3320 [09:55:15]MH_Cut [09:55:15]Write to MH i2c: D1 01 00 D3 01 01 A6 [09:55:15]Write i2c OK [09:55:15]MH_I2C_Read... [09:55:15]Read from MH i2c: D1 [09:55:15]MH_I2C_Read... [09:55:15]Read from MH i2c: D1 01 00 [09:55:15]MH_I2C_Read... [09:55:15]Read from MH i2c: D1 01 00 D3 01 00 A5 [09:55:15]Write to MH i2c: 01 00 00 D4 01 D5 [09:55:15]Write i2c OK [09:55:15]MH_I2C_Read... [09:55:16]OFD Sender: No OFD packet to send [09:55:16]*** Cut start [09:55:16]*** Partial cut [09:55:16]*** CUTSNS_PIN = 1 [09:55:16]*** CUTSNS_PIN = 0 [09:55:16]*** Brake cut motor [09:55:16]Read from MH i2c: 01 [09:55:16]MH_I2C_Read... [09:55:16]*** Stop cut motor [09:55:16]*** Cut end [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 D4 01 00 00 00 00 00 FF 0F EA [09:55:16]process_action close_receipt done [09:55:16]requested_data is exist [09:55:16]produce_requested_data [09:55:16]requested_item fm.sn is exist - process it [09:55:16]wFMCommunicate request_size=4 [09:55:16]MH_SAM_APDU [09:55:16]CAPDU: 80 11 00 00 [09:55:16]Write to MH i2c: E2 08 00 D5 01 80 11 00 00 00 00 00 00 50 [09:55:16]Write i2c OK [09:55:16]MH_I2C_Read... [09:55:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:17]Read from MH i2c: E2 [09:55:17]MH_I2C_Read... [09:55:17]Read from MH i2c: E2 17 00 [09:55:17]MH_I2C_Read... [09:55:17]Read from MH i2c: E2 17 00 D5 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A6 [09:55:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:55:17]wFMCommunicate OK [09:55:17]requested_item fd.num is exist - process it [09:55:17]SAM_PROTO_GetFieldsCounters [09:55:17]wFMCommunicate request_size=4 [09:55:17]MH_SAM_APDU [09:55:17]CAPDU: 80 13 00 00 [09:55:17]Write to MH i2c: E2 08 00 D6 01 80 13 00 00 00 00 00 00 53 [09:55:17]Write i2c OK [09:55:17]MH_I2C_Read... [09:55:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:55:17]Read from MH i2c: E2 [09:55:17]MH_I2C_Read... [09:55:17]Read from MH i2c: E2 62 00 [09:55:17]MH_I2C_Read... [09:55:17]Read from MH i2c: E2 62 00 D6 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 FA 83 02 00 0E 04 04 00 BF 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 61 [09:55:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 FA 83 02 00 0E 04 04 00 BF 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 [09:55:17]wFMCommunicate OK [09:55:17]SAM_PROTO_GetFieldsCounters done [09:55:17]requested_item shift.num is exist - process it [09:55:17]requested_item shift.opened is exist - process it [09:55:17]req_shift_opened [09:55:17]FM_GetShiftState [09:55:17]SAM_PROTO_GetShiftState [09:55:17]wFMCommunicate request_size=4 [09:55:17]MH_SAM_APDU [09:55:17]CAPDU: 80 13 01 00 [09:55:17]Write to MH i2c: E2 08 00 D7 01 80 13 01 00 00 00 00 00 55 [09:55:17]Write i2c OK [09:55:17]MH_I2C_Read... [09:55:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:17]Read from MH i2c: E2 [09:55:17]MH_I2C_Read... [09:55:17]Read from MH i2c: E2 0E 00 [09:55:17]MH_I2C_Read... [09:55:17]Read from MH i2c: E2 0E 00 D7 01 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 D5 [09:55:17]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [09:55:17]wFMCommunicate OK [09:55:17]SAM_PROTO_GetShiftState done [09:55:17]FM_GetShiftState done [09:55:17]req_shift_opened done [09:55:17]requested_item shift.open_date is exist - process it [09:55:17]req_shift_open_date [09:55:17]req_shift_open_date done [09:55:17]produce_requested_data done [09:55:17]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164858,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [09:55:17]process_action_free close_receipt [09:55:17]json_value_free [09:55:17]json_value_free done [09:55:17]process_json_proto returns [09:55:17]Send response to host [09:55:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164858,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [09:55:17]free response buf [09:55:17]execute_script done [09:55:17]execute_script returns [09:55:17]free content buf [09:55:17]Sock 10.Close socket [09:55:17]Sock 10.Thread stoped [09:55:17]accept exits with 7 [09:55:17]New connection [09:55:17]New thread 3067616612 created [09:55:17]Thread 3067473252 joined [09:55:17]Waiting for new connection... [09:55:17] Sock 7.Parse request [09:55:17]Sock 7.Check first char [09:55:17]Sock 7.First char is OK [09:55:17]request: POST /json_proto HTTP/1.0 [09:55:17]Method: POST [09:55:17]URL: /json_proto [09:55:17]Method is POST - this is cgi request [09:55:17]url: /json_proto [09:55:17]query_string will be loaded in cgi processing [09:55:17]execute_cgi json_proto POST (null) [09:55:17]execute_cgi path=json_proto method=POST [09:55:17]POST find Content-Length [09:55:17]Host: 172.17.56.4:8080 [09:55:17]Content-Length: 679 [09:55:17]Content-Type: application/json [09:55:17] [09:55:17]POST finish read [09:55:17]Found Content-Length = 679 [09:55:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458954", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 33.380, "sum" : 2400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2400.00, "total" : 2400.00, "payments": [ { "type": 0, "sum" : 2400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:55:17]execute_script... [09: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)458954", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 33.380, "sum" : 2400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2400.00, "total" : 2400.00, "payments": [ { "type": 0, "sum" : 2400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:55:17]POST & json_proto [09:55:17]process_json_proto [09:55:17]json parsed OK: [09:55:17]protocol is kg_v1.0 [09:55:17]action value=close_receipt [09:55:17]process_action close_receipt [09:55:17]cmd_close_receipt [09:55:17]MH_GetDate [09:55:17]Write to MH i2c: F0 00 00 D8 01 C8 [09:55:17]Write i2c OK [09:55:17]MH_I2C_Read... [09:55:17]Read from MH i2c: F0 [09:55:17]MH_I2C_Read... [09:55:17]Read from MH i2c: F0 09 00 [09:55:17]MH_I2C_Read... [09:55:17]Read from MH i2c: F0 09 00 D8 01 00 86 A0 93 66 C9 DC B2 64 AB [09:55:17]GetLastDocTimeStamp 1720950913 [09:55:17]current date 1720950918 [09:55:17]FM_GetShiftState [09:55:17]SAM_PROTO_GetShiftState [09:55:17]wFMCommunicate request_size=4 [09:55:17]MH_SAM_APDU [09:55:17]CAPDU: 80 13 01 00 [09:55:17]Write to MH i2c: E2 08 00 D9 01 80 13 01 00 00 00 00 00 57 [09:55:17]Write i2c OK [09:55:17]MH_I2C_Read... [09:55:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:17]Read from MH i2c: E2 [09:55:17]MH_I2C_Read... [09:55:17]Read from MH i2c: E2 0E 00 [09:55:17]MH_I2C_Read... [09:55:17]Read from MH i2c: E2 0E 00 D9 01 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 D7 [09:55:17]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [09:55:17]wFMCommunicate OK [09:55:17]SAM_PROTO_GetShiftState done [09:55:17]FM_GetShiftState done [09:55:17]opened in 1720917342 [09:55:17]opened+sec_in_day 1721003742 [09:55:17]quantity*price = 240002 [09:55:17]sum+1 = 240003 [09:55:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 2400.00 Внесено: 2400.00 СДАЧА: 0.00 НСП 1% : 21.24 НДС 12% : 254.87 Наличными: 2400.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 57 14.07.2024 09:55 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164859 ФПД: 265445284391776 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T095518&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164859&fm=265445284391776&tin=02508201610067®Number=0000000000090829&sum=240000 [09:55:19]StoreToDocumentArchive [09:55:19]shift 447 fd 164859 [09:55:19]save to /storage/0447/doc_00164859 [09:55:19]save last doc name /storage/0447/doc_00164859 to /storage/kkm_last_doc_name [09:55:19]save OK [09:55:19]Clear old archive folders... [09:55:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:55:19]tlvbuf is 00733960 [09:55:19]SAM_PROTO_ClearQueue [09:55:19]wFMCommunicate request_size=4 [09:55:19]MH_SAM_APDU [09:55:19]CAPDU: 80 09 00 00 [09:55:19]Write to MH i2c: E2 08 00 E6 01 80 09 00 00 00 00 00 00 59 [09:55:19]Write i2c OK [09:55:19]MH_I2C_Read... [09:55:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:55:19]Read from MH i2c: E2 [09:55:19]MH_I2C_Read... [09:55:19]Read from MH i2c: E2 03 00 [09:55:19]MH_I2C_Read... [09:55:19]Read from MH i2c: E2 03 00 E6 01 00 90 00 5B [09:55:19]RAPDU: 90 00 [09:55:19]wFMCommunicate OK [09:55:19]SAM_PROTO_ClearQueue done [09:55:19]KKMCreateOFDPacket [09:55:19]OFDProtocolAddRootSTLVToBuf [09:55:19]FM_MakeSignedData [09:55:19]FM_MakeSignedData [09:55:19]SAM_PROTO_SignData [09:55:19]wFMCommunicate request_size=4 [09:55:19]MH_SAM_APDU [09:55:19]CAPDU: 80 0D 01 02 [09:55:19]Write to MH i2c: E2 08 00 E7 01 80 0D 01 02 00 00 00 00 61 [09:55:19]Write i2c OK [09:55:19]MH_I2C_Read... [09:55:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:55:19]Read from MH i2c: E2 [09:55:19]MH_I2C_Read... [09:55:19]Read from MH i2c: E2 03 00 [09:55:19]MH_I2C_Read... [09:55:19]Read from MH i2c: E2 03 00 E7 01 00 90 00 5C [09:55:19]RAPDU: 90 00 [09:55:19]wFMCommunicate OK [09:55:19]wFMCommunicate request_size=255 [09:55:19]MH_SAM_APDU [09:55: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 64 82 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 82 A9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 A9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 63 00 00 00 00 07 04 06 00 80 A9 03 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 86 A0 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FB 83 02 00 35 04 06 00 F1 6B CB E2 [09:55:19]Write to MH i2c: E2 02 01 E8 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 64 82 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 82 A9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 A9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 63 00 00 00 00 07 04 06 00 80 A9 03 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 86 A0 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FB 83 02 00 35 04 06 00 F1 6B CB E2 00 00 49 [09:55:19]Write i2c OK [09:55:19]MH_I2C_Read... [09:55:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:19]Read from MH i2c: E2 [09:55:19]MH_I2C_Read... [09:55:19]Read from MH i2c: E2 03 00 [09:55:19]MH_I2C_Read... [09:55:19]Read from MH i2c: E2 03 00 E8 01 00 90 00 5D [09:55:19]RAPDU: 90 00 [09:55:19]wFMCommunicate OK [09:55:19]wFMCommunicate request_size=7 [09:55:19]MH_SAM_APDU [09:55:19]CAPDU: 80 0D 02 02 02 2B 60 [09:55:19]Write to MH i2c: E2 0A 00 E9 01 80 0D 02 02 02 00 2B 60 00 00 F3 [09:55:19]Write i2c OK [09:55:19]MH_I2C_Read... [09:55:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:19]Read from MH i2c: E2 [09:55:19]MH_I2C_Read... [09:55:19]Read from MH i2c: E2 03 00 [09:55:19]MH_I2C_Read... [09:55:19]Read from MH i2c: E2 03 00 E9 01 00 90 00 5E [09:55:19]RAPDU: 90 00 [09:55:19]wFMCommunicate OK [09:55:19]wFMCommunicate request_size=4 [09:55:19]MH_SAM_APDU [09:55:19]CAPDU: 80 0D 03 02 [09:55:19]Write to MH i2c: E2 08 00 EA 01 80 0D 03 02 00 00 00 00 66 [09:55:19]Write i2c OK [09:55:19]MH_I2C_Read... [09:55:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:55:19]Read from MH i2c: E2 [09:55:19]MH_I2C_Read... [09:55:19]Read from MH i2c: E2 0B 00 [09:55:19]MH_I2C_Read... [09:55:19]Read from MH i2c: E2 0B 00 EA 01 00 16 B8 C1 9A A5 44 15 D2 90 00 60 [09:55:19]RAPDU: 16 B8 C1 9A A5 44 15 D2 90 00 [09:55:19]wFMCommunicate OK [09:55:19]SAM_PROTO_SignData done [09:55:19]FM_MakeSignedData done [09:55:19]CreateOFDProtocolMessage [09:55:19]wFMCommunicate request_size=4 [09:55:19]MH_SAM_APDU [09:55:19]CAPDU: 80 11 00 00 [09:55:19]Write to MH i2c: E2 08 00 EB 01 80 11 00 00 00 00 00 00 66 [09:55:19]Write i2c OK [09:55:19]MH_I2C_Read... [09:55:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:19]Read from MH i2c: E2 [09:55:19]MH_I2C_Read... [09:55:19]Read from MH i2c: E2 17 00 [09:55:19]MH_I2C_Read... [09:55:19]Read from MH i2c: E2 17 00 EB 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 BC [09:55:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:55:19]wFMCommunicate OK [09:55:19]CreateOFDProtocolMessage done [09:55:19]OFDSenderStorePacket 164859 [09:55:19]StoreOFDPacket docnum=164859 [09:55:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 CA CA 04 01 A0 C5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 82 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 82 A9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 A9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 63 00 00 00 00 07 04 06 00 80 A9 03 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 86 A0 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FB 83 02 00 35 04 06 00 F1 6B CB E2 2B 60 16 B8 C1 9A A5 44 15 D2 [09:55:19]CheckFolder [09:55:19]dirname=/storage/ofd_packets [09:55:19]CheckFolder done [09:55:19]ProducePacketName [09:55:19]name=ofd_packets/00164859 [09:55:19]NVStorageSaveData ofd_packets/00164859 [09:55:19]File name is /storage/ofd_packets/00164859 [09:55:19]Write 298 bytes [09:55:19]NVStorageSaveData done [09:55:19]OFDSenderStorePacket done [09:55:19]KKMCreateOFDPacket done [09:55:19]NVStorageSaveData kkm_last_timestamp [09:55:19]File name is /storage/kkm_last_timestamp [09:55:19]Write 4 bytes [09:55:19]NVStorageSaveData done [09:55:19]ExternCall_PrintAddStr [09:55:19]wPrintStart [09:55:19]Write to MH i2c: 01 00 00 EC 01 ED [09:55:19]Write i2c OK [09:55:19]MH_I2C_Read... [09:55:19]Read from MH i2c: 01 [09:55:19]MH_I2C_Read... [09:55:19]Read from MH i2c: 01 07 00 [09:55:19]MH_I2C_Read... [09:55:19]Read from MH i2c: 01 07 00 EC 01 00 00 00 00 00 FF 0F 02 [09:55:19]RasterBufferAndPrint [09:55:19]line Счет N : (1)458954 [09:55:19]line ИНН: 02508201610067 [09:55:19]line Контрольно-Кассовый Чек [09:55:19]line ПРОДАЖА [09:55:19]line ТРК (МРК, ГНК) : 21 [09:55:19]line Товар: 2710194210 [09:55:19]line ДТ-К-5 [09:55:19]line 33.380 * 71.90 [09:55:19]line = 2400.02 [09:55:19]line НДС 12% НСП 1% [09:55:19]line > о реализуемом товаре [09:55:19]line ОКРУГЛЕНИЕ: -0.02 [09:55:19]line ИТОГО: 2400.00 [09:55:19]line Внесено: 2400.00 [09:55:19]line СДАЧА: 0.00 [09:55:19]line НСП 1% : 21.24 [09:55:19]line НДС 12% : 254.87 [09:55:19]line Наличными: 2400.00 [09:55:19]line Безнал.: 0.00 [09:55:19]line Место: АЗС № 72 "Партнер Нефть" [09:55:19]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:55:19]line СНО: Общий режим [09:55:19]line Чек 57 14.07.2024 09:55 [09:55:19]line Смена: 447 ФФД: 1.0 [09:55:19]line ЗНМ: 0300000160 [09:55:19]line РНМ: 0000000000090829 [09:55:19]line Версия ККМ: 001 [09:55:19]line ФМ: 0000000000874718 [09:55:19]line ФД: 164859 [09:55:19]line ФПД: 265445284391776 [09:55:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T095518&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164859&fm=265445284391776&tin=02508201610067®Number=0000000000090829&sum=240000 [09:55:19]written 0, free lines is 4095 [09:55:19]OFD Sender: Processing packet 164859 [packets to send 104, broken 103] [09:55:19]ProducePacketName [09:55:19]name=ofd_packets/00164859 [09:55:19]OFD Sender: To server: pG, [09:55:19]CommunicateWithHost lk.salyk.kg:30040 [09:55:19]ConnectInit lk.salyk.kg [09:55:19]Connected sock=10 [09:55:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 CA CA 04 01 A0 C5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 82 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 82 A9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 A9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 63 00 00 00 00 07 04 06 00 80 A9 03 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 86 A0 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FB 83 02 00 35 04 06 00 F1 6B CB E2 2B 60 16 B8 C1 9A A5 44 15 D2 [09:55:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 26 AB 47 00 4A 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FB 83 02 00 F4 03 04 00 14 47 93 66 B6 04 01 00 00 27 33 3E A5 7E 8A B5 4F [09:55:20]CommunicateWithHost err = 0 [09:55:20]CheckOFDResponse [09:55:20]1017 (14) - 77093643461234 [09:55:20]1041 (16) - 0000000000874718 [09:55:20]1040 (4) - 164859 [09:55:20]1012 (4) - 14.07.2024 03:33 [09:55:20]1206 (1) - 0 [09:55:20]OFD Sender: Remove packet 164859 [09:55:20]ProducePacketName [09:55:20]name=ofd_packets/00164859 [09:55:20]NVStorageDeleteData [09:55:20]Write to MH i2c: 01 00 00 16 02 18 [09:55:20]Write i2c OK [09:55:20]MH_I2C_Read... [09:55:20]Read from MH i2c: 01 [09:55:20]MH_I2C_Read... [09:55:20]Read from MH i2c: 01 07 00 [09:55:20]MH_I2C_Read... [09:55:20]Read from MH i2c: 01 07 00 16 02 00 00 00 00 00 05 0D 31 [09:55:20]RasterBufferAndPrint [09:55:20]line [09:55:20]line [09:55:20]line [09:55:20]line [09:55:20]line [09:55:20]written 0, free lines is 3345 [09:55:20]MH_Cut [09:55:20]Write to MH i2c: D1 01 00 1D 02 01 F1 [09:55:20]Write i2c OK [09:55:20]MH_I2C_Read... [09:55:20]Read from MH i2c: D1 [09:55:20]MH_I2C_Read... [09:55:20]Read from MH i2c: D1 01 00 [09:55:20]MH_I2C_Read... [09:55:20]Read from MH i2c: D1 01 00 1D 02 00 F0 [09:55:20]Write to MH i2c: 01 00 00 1E 02 20 [09:55:20]Write i2c OK [09:55:20]MH_I2C_Read... [09:55:20]OFD Sender: No OFD packet to send [09:55:20]*** Cut start [09:55:20]*** Partial cut [09:55:20]*** CUTSNS_PIN = 1 [09:55:20]*** CUTSNS_PIN = 0 [09:55:21]*** Brake cut motor [09:55:21]Read from MH i2c: 01 [09:55:21]MH_I2C_Read... [09:55:21]*** Stop cut motor [09:55:21]*** Cut end [09:55:21]Read from MH i2c: 01 07 00 [09:55:21]MH_I2C_Read... [09:55:21]Read from MH i2c: 01 07 00 1E 02 00 00 00 00 00 FF 0F 35 [09:55:21]process_action close_receipt done [09:55:21]requested_data is exist [09:55:21]produce_requested_data [09:55:21]requested_item fm.sn is exist - process it [09:55:21]wFMCommunicate request_size=4 [09:55:21]MH_SAM_APDU [09:55:21]CAPDU: 80 11 00 00 [09:55:21]Write to MH i2c: E2 08 00 1F 02 80 11 00 00 00 00 00 00 9B [09:55:21]Write i2c OK [09:55:21]MH_I2C_Read... [09:55:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:21]Read from MH i2c: E2 [09:55:21]MH_I2C_Read... [09:55:21]Read from MH i2c: E2 17 00 [09:55:21]MH_I2C_Read... [09:55:21]Read from MH i2c: E2 17 00 1F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F1 [09:55:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:55:21]wFMCommunicate OK [09:55:21]requested_item fd.num is exist - process it [09:55:21]SAM_PROTO_GetFieldsCounters [09:55:21]wFMCommunicate request_size=4 [09:55:21]MH_SAM_APDU [09:55:21]CAPDU: 80 13 00 00 [09:55:21]Write to MH i2c: E2 08 00 20 02 80 13 00 00 00 00 00 00 9E [09:55:21]Write i2c OK [09:55:21]MH_I2C_Read... [09:55:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:55:21]Read from MH i2c: E2 [09:55:21]MH_I2C_Read... [09:55:21]Read from MH i2c: E2 62 00 [09:55:21]MH_I2C_Read... [09:55:21]Read from MH i2c: E2 62 00 20 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 FB 83 02 00 0E 04 04 00 BF 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 B0 [09:55:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 FB 83 02 00 0E 04 04 00 BF 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 [09:55:21]wFMCommunicate OK [09:55:21]SAM_PROTO_GetFieldsCounters done [09:55:21]requested_item shift.num is exist - process it [09:55:21]requested_item shift.opened is exist - process it [09:55:21]req_shift_opened [09:55:21]FM_GetShiftState [09:55:21]SAM_PROTO_GetShiftState [09:55:21]wFMCommunicate request_size=4 [09:55:21]MH_SAM_APDU [09:55:21]CAPDU: 80 13 01 00 [09:55:21]Write to MH i2c: E2 08 00 21 02 80 13 01 00 00 00 00 00 A0 [09:55:21]Write i2c OK [09:55:21]MH_I2C_Read... [09:55:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:21]Read from MH i2c: E2 [09:55:21]MH_I2C_Read... [09:55:21]Read from MH i2c: E2 0E 00 [09:55:21]MH_I2C_Read... [09:55:21]Read from MH i2c: E2 0E 00 21 02 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 20 [09:55:21]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [09:55:21]wFMCommunicate OK [09:55:21]SAM_PROTO_GetShiftState done [09:55:21]FM_GetShiftState done [09:55:21]req_shift_opened done [09:55:21]requested_item shift.open_date is exist - process it [09:55:21]req_shift_open_date [09:55:21]req_shift_open_date done [09:55:21]produce_requested_data done [09:55:21]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164859,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [09:55:21]process_action_free close_receipt [09:55:21]json_value_free [09:55:21]json_value_free done [09:55:21]process_json_proto returns [09:55:21]Send response to host [09:55:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164859,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [09:55:21]free response buf [09:55:21]execute_script done [09:55:21]execute_script returns [09:55:21]free content buf [09:55:21]Sock 7.Close socket [09:55:21]Sock 7.Thread stoped [09:55:25]OFD Sender: No OFD packet to send [09:55:30]OFD Sender: No OFD packet to send [09:55:35]OFD Sender: No OFD packet to send [09:55:40]OFD Sender: No OFD packet to send [09:55:45]OFD Sender: No OFD packet to send [09:55:50]OFD Sender: No OFD packet to send [09:55:55]OFD Sender: No OFD packet to send [09:56:00]OFD Sender: No OFD packet to send [09:56:05]OFD Sender: No OFD packet to send [09:56:10]OFD Sender: No OFD packet to send [09:56:15]OFD Sender: No OFD packet to send [09:56:20]OFD Sender: No OFD packet to send [09:56:25]OFD Sender: No OFD packet to send [09:56:30]OFD Sender: No OFD packet to send [09:56:35]OFD Sender: No OFD packet to send [09:56:40]OFD Sender: No OFD packet to send [09:56:45]OFD Sender: No OFD packet to send [09:56:50]OFD Sender: No OFD packet to send [09:56:55]OFD Sender: No OFD packet to send [09:57:00]OFD Sender: No OFD packet to send [09:57:05]OFD Sender: No OFD packet to send [09:57:10]OFD Sender: No OFD packet to send [09:57:15]OFD Sender: No OFD packet to send [09:57:20]OFD Sender: No OFD packet to send [09:57:25]OFD Sender: No OFD packet to send [09:57:30]OFD Sender: No OFD packet to send [09:57:35]OFD Sender: No OFD packet to send [09:57:40]OFD Sender: No OFD packet to send [09:57:45]OFD Sender: No OFD packet to send [09:57:50]OFD Sender: No OFD packet to send [09:57:55]OFD Sender: No OFD packet to send [09:58:00]OFD Sender: No OFD packet to send [09:58:05]OFD Sender: No OFD packet to send [09:58:10]OFD Sender: No OFD packet to send [09:58:15]OFD Sender: No OFD packet to send [09:58:20]OFD Sender: No OFD packet to send [09:58:25]OFD Sender: No OFD packet to send [09:58:30]OFD Sender: No OFD packet to send [09:58:35]OFD Sender: No OFD packet to send [09:58:40]OFD Sender: No OFD packet to send [09:58:45]OFD Sender: No OFD packet to send [09:58:50]OFD Sender: No OFD packet to send [09:58:55]OFD Sender: No OFD packet to send [09:59:00]OFD Sender: No OFD packet to send [09:59:05]OFD Sender: No OFD packet to send [09:59:10]OFD Sender: No OFD packet to send [09:59:15]OFD Sender: No OFD packet to send [09:59:20]OFD Sender: No OFD packet to send [09:59:25]OFD Sender: No OFD packet to send [09:59:30]OFD Sender: No OFD packet to send [09:59:35]OFD Sender: No OFD packet to send [09:59:40]OFD Sender: No OFD packet to send [09:59:46]OFD Sender: No OFD packet to send [09:59:51]OFD Sender: No OFD packet to send [09:59:56]OFD Sender: No OFD packet to send [10:00:01]OFD Sender: No OFD packet to send [10:00:06]OFD Sender: No OFD packet to send [10:00:11]OFD Sender: No OFD packet to send [10:00:16]OFD Sender: No OFD packet to send [10:00:21]OFD Sender: No OFD packet to send [10:00:26]OFD Sender: No OFD packet to send [10:00:31]OFD Sender: No OFD packet to send [10:00:36]OFD Sender: No OFD packet to send [10:00:40]accept exits with 9 [10:00:40]New connection [10:00:40]New thread 3067473252 created [10:00:40]Thread 3067616612 joined [10:00:40]Waiting for new connection... [10:00:40] Sock 9.Parse request [10:00:40]Sock 9.Check first char [10:00:40]Sock 9.First char is OK [10:00:40]request: POST /json_proto HTTP/1.0 [10:00:40]Method: POST [10:00:40]URL: /json_proto [10:00:40]Method is POST - this is cgi request [10:00:40]url: /json_proto [10:00:40]query_string will be loaded in cgi processing [10:00:40]execute_cgi json_proto POST (null) [10:00:40]execute_cgi path=json_proto method=POST [10:00:40]POST find Content-Length [10:00:40]Host: 172.17.56.4:8080 [10:00:40]Content-Length: 682 [10:00:40]Content-Type: application/json [10:00:40] [10:00:40]POST finish read [10:00:40]Found Content-Length = 682 [10:00:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458956", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 16.720, "sum" : 1100.18, "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" ] } } [10:00:40]execute_script... [10:00: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)458956", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 16.720, "sum" : 1100.18, "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" ] } } [10:00:40]POST & json_proto [10:00:40]process_json_proto [10:00:40]json parsed OK: [10:00:40]protocol is kg_v1.0 [10:00:40]action value=close_receipt [10:00:40]process_action close_receipt [10:00:40]cmd_close_receipt [10:00:40]MH_GetDate [10:00:40]Write to MH i2c: F0 00 00 22 02 13 [10:00:40]Write i2c OK [10:00:40]MH_I2C_Read... [10:00:40]Read from MH i2c: F0 [10:00:40]MH_I2C_Read... [10:00:40]Read from MH i2c: F0 09 00 [10:00:40]MH_I2C_Read... [10:00:40]Read from MH i2c: F0 09 00 22 02 00 C8 A1 93 66 C9 DC B2 64 39 [10:00:40]GetLastDocTimeStamp 1720950918 [10:00:40]current date 1720951240 [10:00:40]FM_GetShiftState [10:00:40]SAM_PROTO_GetShiftState [10:00:40]wFMCommunicate request_size=4 [10:00:40]MH_SAM_APDU [10:00:40]CAPDU: 80 13 01 00 [10:00:40]Write to MH i2c: E2 08 00 23 02 80 13 01 00 00 00 00 00 A2 [10:00:40]Write i2c OK [10:00:40]MH_I2C_Read... [10:00:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:40]Read from MH i2c: E2 [10:00:40]MH_I2C_Read... [10:00:40]Read from MH i2c: E2 0E 00 [10:00:40]MH_I2C_Read... [10:00:40]Read from MH i2c: E2 0E 00 23 02 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 22 [10:00:40]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [10:00:40]wFMCommunicate OK [10:00:40]SAM_PROTO_GetShiftState done [10:00:40]FM_GetShiftState done [10:00:40]opened in 1720917342 [10:00:40]opened+sec_in_day 1721003742 [10:00:40]quantity*price = 110017 [10:00:40]sum+1 = 110019 [10:00:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 1100.00 Внесено: 1100.00 СДАЧА: 0.00 НСП 1% : 9.74 НДС 12% : 116.83 Наличными: 1100.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 58 14.07.2024 10:00 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164860 ФПД: 236664918990849 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T100041&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164860&fm=236664918990849&tin=02508201610067®Number=0000000000090829&sum=110000 [10:00:41]StoreToDocumentArchive [10:00:41]shift 447 fd 164860 [10:00:41]save to /storage/0447/doc_00164860 [10:00:41]save last doc name /storage/0447/doc_00164860 to /storage/kkm_last_doc_name [10:00:41]save OK [10:00:41]Clear old archive folders... [10:00:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:00:41]tlvbuf is 0073AD70 [10:00:41]SAM_PROTO_ClearQueue [10:00:41]wFMCommunicate request_size=4 [10:00:41]MH_SAM_APDU [10:00:41]CAPDU: 80 09 00 00 [10:00:41]Write to MH i2c: E2 08 00 30 02 80 09 00 00 00 00 00 00 A4 [10:00:41]Write i2c OK [10:00:41]MH_I2C_Read... [10:00:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:00:41]Read from MH i2c: E2 [10:00:41]MH_I2C_Read... [10:00:41]Read from MH i2c: E2 03 00 [10:00:41]MH_I2C_Read... [10:00:41]Read from MH i2c: E2 03 00 30 02 00 90 00 A6 [10:00:41]RAPDU: 90 00 [10:00:41]wFMCommunicate OK [10:00:41]SAM_PROTO_ClearQueue done [10:00:41]KKMCreateOFDPacket [10:00:41]OFDProtocolAddRootSTLVToBuf [10:00:41]FM_MakeSignedData [10:00:41]FM_MakeSignedData [10:00:41]SAM_PROTO_SignData [10:00:41]wFMCommunicate request_size=4 [10:00:41]MH_SAM_APDU [10:00:41]CAPDU: 80 0D 01 02 [10:00:41]Write to MH i2c: E2 08 00 31 02 80 0D 01 02 00 00 00 00 AC [10:00:41]Write i2c OK [10:00:41]MH_I2C_Read... [10:00:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:00:41]Read from MH i2c: E2 [10:00:41]MH_I2C_Read... [10:00:41]Read from MH i2c: E2 03 00 [10:00:41]MH_I2C_Read... [10:00:41]Read from MH i2c: E2 03 00 31 02 00 90 00 A7 [10:00:41]RAPDU: 90 00 [10:00:41]wFMCommunicate OK [10:00:41]wFMCommunicate request_size=255 [10:00:41]MH_SAM_APDU [10:00:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 41 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 C2 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 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 3A 00 00 00 F4 03 04 00 C9 A1 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FC 83 02 00 35 04 06 00 D7 [10:00:41]Write to MH i2c: E2 02 01 32 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 35 FF 03 08 00 03 50 41 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 C2 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 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 3A 00 00 00 F4 03 04 00 C9 A1 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FC 83 02 00 35 04 06 00 D7 00 00 9C [10:00:41]Write i2c OK [10:00:41]MH_I2C_Read... [10:00:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:41]Read from MH i2c: E2 [10:00:41]MH_I2C_Read... [10:00:41]Read from MH i2c: E2 03 00 [10:00:41]MH_I2C_Read... [10:00:41]Read from MH i2c: E2 03 00 32 02 00 90 00 A8 [10:00:41]RAPDU: 90 00 [10:00:41]wFMCommunicate OK [10:00:41]wFMCommunicate request_size=10 [10:00:41]MH_SAM_APDU [10:00:41]CAPDU: 80 0D 02 02 05 3E D8 6D 60 01 [10:00:41]Write to MH i2c: E2 0D 00 33 02 80 0D 02 02 05 00 3E D8 6D 60 01 00 00 9D [10:00:41]Write i2c OK [10:00:41]MH_I2C_Read... [10:00:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:41]Read from MH i2c: E2 [10:00:41]MH_I2C_Read... [10:00:41]Read from MH i2c: E2 03 00 [10:00:41]MH_I2C_Read... [10:00:41]Read from MH i2c: E2 03 00 33 02 00 90 00 A9 [10:00:41]RAPDU: 90 00 [10:00:41]wFMCommunicate OK [10:00:41]wFMCommunicate request_size=4 [10:00:41]MH_SAM_APDU [10:00:41]CAPDU: 80 0D 03 02 [10:00:41]Write to MH i2c: E2 08 00 34 02 80 0D 03 02 00 00 00 00 B1 [10:00:41]Write i2c OK [10:00:41]MH_I2C_Read... [10:00:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:00:41]Read from MH i2c: E2 [10:00:41]MH_I2C_Read... [10:00:41]Read from MH i2c: E2 0B 00 [10:00:41]MH_I2C_Read... [10:00:41]Read from MH i2c: E2 0B 00 34 02 00 49 1E 36 1B 24 DC 34 DE 90 00 7C [10:00:41]RAPDU: 49 1E 36 1B 24 DC 34 DE 90 00 [10:00:41]wFMCommunicate OK [10:00:41]SAM_PROTO_SignData done [10:00:41]FM_MakeSignedData done [10:00:41]CreateOFDProtocolMessage [10:00:41]wFMCommunicate request_size=4 [10:00:41]MH_SAM_APDU [10:00:41]CAPDU: 80 11 00 00 [10:00:41]Write to MH i2c: E2 08 00 35 02 80 11 00 00 00 00 00 00 B1 [10:00:41]Write i2c OK [10:00:41]MH_I2C_Read... [10:00:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:42]Read from MH i2c: E2 [10:00:42]MH_I2C_Read... [10:00:42]Read from MH i2c: E2 17 00 [10:00:42]MH_I2C_Read... [10:00:42]Read from MH i2c: E2 17 00 35 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 07 [10:00:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:00:42]wFMCommunicate OK [10:00:42]CreateOFDProtocolMessage done [10:00:42]OFDSenderStorePacket 164860 [10:00:42]StoreOFDPacket docnum=164860 [10:00:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 5E EA 07 01 91 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 41 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 C2 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 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 3A 00 00 00 F4 03 04 00 C9 A1 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FC 83 02 00 35 04 06 00 D7 3E D8 6D 60 01 49 1E 36 1B 24 DC 34 DE [10:00:42]CheckFolder [10:00:42]dirname=/storage/ofd_packets [10:00:42]CheckFolder done [10:00:42]ProducePacketName [10:00:42]name=ofd_packets/00164860 [10:00:42]NVStorageSaveData ofd_packets/00164860 [10:00:42]File name is /storage/ofd_packets/00164860 [10:00:42]Write 301 bytes [10:00:42]NVStorageSaveData done [10:00:42]OFDSenderStorePacket done [10:00:42]KKMCreateOFDPacket done [10:00:42]NVStorageSaveData kkm_last_timestamp [10:00:42]File name is /storage/kkm_last_timestamp [10:00:42]Write 4 bytes [10:00:42]NVStorageSaveData done [10:00:42]ExternCall_PrintAddStr [10:00:42]wPrintStart [10:00:42]Write to MH i2c: 01 00 00 36 02 38 [10:00:42]Write i2c OK [10:00:42]MH_I2C_Read... [10:00:42]Read from MH i2c: 01 [10:00:42]MH_I2C_Read... [10:00:42]Read from MH i2c: 01 07 00 [10:00:42]MH_I2C_Read... [10:00:42]Read from MH i2c: 01 07 00 36 02 00 00 00 00 00 FF 0F 4D [10:00:42]RasterBufferAndPrint [10:00:42]line Счет N : (1)458956 [10:00:42]line ИНН: 02508201610067 [10:00:42]line Контрольно-Кассовый Чек [10:00:42]line ПРОДАЖА [10:00:42]line ТРК (МРК, ГНК) : 12 [10:00:42]line Товар: 2710124130 [10:00:42]line Аи-92-К-5 [10:00:42]line 16.720 * 65.80 [10:00:42]line = 1100.18 [10:00:42]line НДС 12% НСП 1% [10:00:42]line > о реализуемом товаре [10:00:42]line ОКРУГЛЕНИЕ: -0.18 [10:00:42]line ИТОГО: 1100.00 [10:00:42]line Внесено: 1100.00 [10:00:42]line СДАЧА: 0.00 [10:00:42]line НСП 1% : 9.74 [10:00:42]line НДС 12% : 116.83 [10:00:42]line Наличными: 1100.00 [10:00:42]line Безнал.: 0.00 [10:00:42]line Место: АЗС № 72 "Партнер Нефть" [10:00:42]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:00:42]line СНО: Общий режим [10:00:42]line Чек 58 14.07.2024 10:00 [10:00:42]line Смена: 447 ФФД: 1.0 [10:00:42]line ЗНМ: 0300000160 [10:00:42]line РНМ: 0000000000090829 [10:00:42]line Версия ККМ: 001 [10:00:42]line ФМ: 0000000000874718 [10:00:42]line ФД: 164860 [10:00:42]line ФПД: 236664918990849 [10:00:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T100041&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164860&fm=236664918990849&tin=02508201610067®Number=0000000000090829&sum=110000 [10:00:42]OFD Sender: Processing packet 164860 [packets to send 104, broken 103] [10:00:42]ProducePacketName [10:00:42]name=ofd_packets/00164860 [10:00:42]OFD Sender: To server: pG, [10:00:42]CommunicateWithHost lk.salyk.kg:30040 [10:00:42]ConnectInit lk.salyk.kg [10:00:42]written 0, free lines is 4095 [10:00:42]Connected sock=10 [10:00:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 5E EA 07 01 91 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 41 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 C2 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 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 3A 00 00 00 F4 03 04 00 C9 A1 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FC 83 02 00 35 04 06 00 D7 3E D8 6D 60 01 49 1E 36 1B 24 DC 34 DE [10:00:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 F9 1E 47 00 E5 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 38 37 34 37 31 38 10 04 04 00 FC 83 02 00 F4 03 04 00 57 48 93 66 B6 04 01 00 00 3A 21 9D 33 E5 20 2A DB [10:00:42]CommunicateWithHost err = 0 [10:00:42]CheckOFDResponse [10:00:42]1017 (14) - 77093643461234 [10:00:42]1041 (16) - 0000000000874718 [10:00:42]1040 (4) - 164860 [10:00:42]1012 (4) - 14.07.2024 03:39 [10:00:42]1206 (1) - 0 [10:00:42]OFD Sender: Remove packet 164860 [10:00:42]ProducePacketName [10:00:42]name=ofd_packets/00164860 [10:00:42]NVStorageDeleteData [10:00:42]Write to MH i2c: 01 00 00 60 02 62 [10:00:42]Write i2c OK [10:00:42]MH_I2C_Read... [10:00:42]Read from MH i2c: 01 [10:00:42]MH_I2C_Read... [10:00:42]Read from MH i2c: 01 07 00 [10:00:42]MH_I2C_Read... [10:00:42]Read from MH i2c: 01 07 00 60 02 00 00 00 00 00 FF 0C 74 [10:00:42]RasterBufferAndPrint [10:00:42]line [10:00:42]line [10:00:42]line [10:00:42]line [10:00:42]line [10:00:42]written 0, free lines is 3333 [10:00:42]MH_Cut [10:00:42]Write to MH i2c: D1 01 00 67 02 01 3B [10:00:42]Write i2c OK [10:00:42]MH_I2C_Read... [10:00:42]Read from MH i2c: D1 [10:00:42]MH_I2C_Read... [10:00:42]Read from MH i2c: D1 01 00 [10:00:42]MH_I2C_Read... [10:00:42]Read from MH i2c: D1 01 00 67 02 00 3A [10:00:42]Write to MH i2c: 01 00 00 68 02 6A [10:00:42]Write i2c OK [10:00:42]MH_I2C_Read... [10:00:43]OFD Sender: No OFD packet to send [10:00:43]*** Cut start [10:00:43]*** Partial cut [10:00:43]*** CUTSNS_PIN = 1 [10:00:43]*** CUTSNS_PIN = 0 [10:00:43]*** Brake cut motor [10:00:44]Read from MH i2c: 01 [10:00:44]MH_I2C_Read... [10:00:44]*** Stop cut motor [10:00:44]*** Cut end [10:00:44]Read from MH i2c: 01 07 00 [10:00:44]MH_I2C_Read... [10:00:44]Read from MH i2c: 01 07 00 68 02 00 00 00 00 00 FF 0F 7F [10:00:44]process_action close_receipt done [10:00:44]requested_data is exist [10:00:44]produce_requested_data [10:00:44]requested_item fm.sn is exist - process it [10:00:44]wFMCommunicate request_size=4 [10:00:44]MH_SAM_APDU [10:00:44]CAPDU: 80 11 00 00 [10:00:44]Write to MH i2c: E2 08 00 69 02 80 11 00 00 00 00 00 00 E5 [10:00:44]Write i2c OK [10:00:44]MH_I2C_Read... [10:00:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:44]Read from MH i2c: E2 [10:00:44]MH_I2C_Read... [10:00:44]Read from MH i2c: E2 17 00 [10:00:44]MH_I2C_Read... [10:00:44]Read from MH i2c: E2 17 00 69 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 3B [10:00:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:00:44]wFMCommunicate OK [10:00:44]requested_item fd.num is exist - process it [10:00:44]SAM_PROTO_GetFieldsCounters [10:00:44]wFMCommunicate request_size=4 [10:00:44]MH_SAM_APDU [10:00:44]CAPDU: 80 13 00 00 [10:00:44]Write to MH i2c: E2 08 00 6A 02 80 13 00 00 00 00 00 00 E8 [10:00:44]Write i2c OK [10:00:44]MH_I2C_Read... [10:00:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:00:44]Read from MH i2c: E2 [10:00:44]MH_I2C_Read... [10:00:44]Read from MH i2c: E2 62 00 [10:00:44]MH_I2C_Read... [10:00:44]Read from MH i2c: E2 62 00 6A 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 FC 83 02 00 0E 04 04 00 BF 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 FE [10:00:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 FC 83 02 00 0E 04 04 00 BF 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 [10:00:44]wFMCommunicate OK [10:00:44]SAM_PROTO_GetFieldsCounters done [10:00:44]requested_item shift.num is exist - process it [10:00:44]requested_item shift.opened is exist - process it [10:00:44]req_shift_opened [10:00:44]FM_GetShiftState [10:00:44]SAM_PROTO_GetShiftState [10:00:44]wFMCommunicate request_size=4 [10:00:44]MH_SAM_APDU [10:00:44]CAPDU: 80 13 01 00 [10:00:44]Write to MH i2c: E2 08 00 6B 02 80 13 01 00 00 00 00 00 EA [10:00:44]Write i2c OK [10:00:44]MH_I2C_Read... [10:00:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:44]Read from MH i2c: E2 [10:00:44]MH_I2C_Read... [10:00:44]Read from MH i2c: E2 0E 00 [10:00:44]MH_I2C_Read... [10:00:44]Read from MH i2c: E2 0E 00 6B 02 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 6A [10:00:44]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [10:00:44]wFMCommunicate OK [10:00:44]SAM_PROTO_GetShiftState done [10:00:44]FM_GetShiftState done [10:00:44]req_shift_opened done [10:00:44]requested_item shift.open_date is exist - process it [10:00:44]req_shift_open_date [10:00:44]req_shift_open_date done [10:00:44]produce_requested_data done [10:00:44]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164860,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [10:00:44]process_action_free close_receipt [10:00:44]json_value_free [10:00:44]json_value_free done [10:00:44]process_json_proto returns [10:00:44]Send response to host [10:00:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164860,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [10:00:44]free response buf [10:00:44]execute_script done [10:00:44]execute_script returns [10:00:44]free content buf [10:00:44]Sock 9.Close socket [10:00:44]Sock 9.Thread stoped [10:00:48]OFD Sender: No OFD packet to send [10:00:53]OFD Sender: No OFD packet to send [10:00:58]OFD Sender: No OFD packet to send [10:01:03]OFD Sender: No OFD packet to send [10:01:08]OFD Sender: No OFD packet to send [10:01:13]OFD Sender: No OFD packet to send [10:01:18]OFD Sender: No OFD packet to send [10:01:23]OFD Sender: No OFD packet to send [10:01:28]OFD Sender: No OFD packet to send [10:01:33]OFD Sender: No OFD packet to send [10:01:38]OFD Sender: No OFD packet to send [10:01:43]OFD Sender: No OFD packet to send [10:01:48]OFD Sender: No OFD packet to send [10:01:53]OFD Sender: No OFD packet to send [10:01:58]OFD Sender: No OFD packet to send [10:02:03]OFD Sender: No OFD packet to send [10:02:08]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:03]OFD Sender: No OFD packet to send [10:05:08]OFD Sender: No OFD packet to send [10:05:13]OFD Sender: No OFD packet to send [10:05:18]OFD Sender: No OFD packet to send [10:05:18]accept exits with 7 [10:05:18]New connection [10:05:18]New thread 3067616612 created [10:05:18]Thread 3067473252 joined [10:05:18]Waiting for new connection... [10:05:18] Sock 7.Parse request [10:05:18]Sock 7.Check first char [10:05:18]Sock 7.First char is OK [10:05:18]request: POST /json_proto HTTP/1.0 [10:05:18]Method: POST [10:05:18]URL: /json_proto [10:05:18]Method is POST - this is cgi request [10:05:18]url: /json_proto [10:05:18]query_string will be loaded in cgi processing [10:05:18]execute_cgi json_proto POST (null) [10:05:18]execute_cgi path=json_proto method=POST [10:05:18]POST find Content-Length [10:05:18]Host: 172.17.56.4:8080 [10:05:18]Content-Length: 640 [10:05:18]Content-Type: application/json [10:05:18] [10:05:18]POST finish read [10:05:18]Found Content-Length = 640 [10:05:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458957", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.000, "sum" : 658.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 658.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:05:18]execute_script... [10:05: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)458957", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.000, "sum" : 658.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 658.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:05:18]POST & json_proto [10:05:18]process_json_proto [10:05:18]json parsed OK: [10:05:18]protocol is kg_v1.0 [10:05:18]action value=close_receipt [10:05:18]process_action close_receipt [10:05:18]cmd_close_receipt [10:05:18]MH_GetDate [10:05:18]Write to MH i2c: F0 00 00 6C 02 5D [10:05:18]Write i2c OK [10:05:18]MH_I2C_Read... [10:05:18]Read from MH i2c: F0 [10:05:18]MH_I2C_Read... [10:05:18]Read from MH i2c: F0 09 00 [10:05:18]MH_I2C_Read... [10:05:18]Read from MH i2c: F0 09 00 6C 02 00 DF A2 93 66 C9 DC B2 64 9B [10:05:18]GetLastDocTimeStamp 1720951241 [10:05:18]current date 1720951519 [10:05:18]FM_GetShiftState [10:05:18]SAM_PROTO_GetShiftState [10:05:18]wFMCommunicate request_size=4 [10:05:18]MH_SAM_APDU [10:05:18]CAPDU: 80 13 01 00 [10:05:18]Write to MH i2c: E2 08 00 6D 02 80 13 01 00 00 00 00 00 EC [10:05:18]Write i2c OK [10:05:18]MH_I2C_Read... [10:05:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:18]Read from MH i2c: E2 [10:05:18]MH_I2C_Read... [10:05:18]Read from MH i2c: E2 0E 00 [10:05:18]MH_I2C_Read... [10:05:18]Read from MH i2c: E2 0E 00 6D 02 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 6C [10:05:18]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [10:05:18]wFMCommunicate OK [10:05:18]SAM_PROTO_GetShiftState done [10:05:18]FM_GetShiftState done [10:05:18]opened in 1720917342 [10:05:18]opened+sec_in_day 1721003742 [10:05:18]quantity*price = 65800 [10:05:18]sum+1 = 65801 [10:05:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 658.00 НСП 1% : 5.82 НДС 12% : 69.88 Наличными: 658.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 59 14.07.2024 10:05 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164861 ФПД: 35486516436520 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T100519&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164861&fm=35486516436520&tin=02508201610067®Number=0000000000090829&sum=65800 [10:05:19]StoreToDocumentArchive [10:05:19]shift 447 fd 164861 [10:05:19]save to /storage/0447/doc_00164861 [10:05:19]save last doc name /storage/0447/doc_00164861 to /storage/kkm_last_doc_name [10:05:19]save OK [10:05:19]Clear old archive folders... [10:05:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:05:19]tlvbuf is 0073C690 [10:05:19]SAM_PROTO_ClearQueue [10:05:19]wFMCommunicate request_size=4 [10:05:19]MH_SAM_APDU [10:05:19]CAPDU: 80 09 00 00 [10:05:19]Write to MH i2c: E2 08 00 7A 02 80 09 00 00 00 00 00 00 EE [10:05:19]Write i2c OK [10:05:19]MH_I2C_Read... [10:05:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:05:20]Read from MH i2c: E2 [10:05:20]MH_I2C_Read... [10:05:20]Read from MH i2c: E2 03 00 [10:05:20]MH_I2C_Read... [10:05:20]Read from MH i2c: E2 03 00 7A 02 00 90 00 F0 [10:05:20]RAPDU: 90 00 [10:05:20]wFMCommunicate OK [10:05:20]SAM_PROTO_ClearQueue done [10:05:20]KKMCreateOFDPacket [10:05:20]OFDProtocolAddRootSTLVToBuf [10:05:20]FM_MakeSignedData [10:05:20]FM_MakeSignedData [10:05:20]SAM_PROTO_SignData [10:05:20]wFMCommunicate request_size=4 [10:05:20]MH_SAM_APDU [10:05:20]CAPDU: 80 0D 01 02 [10:05:20]Write to MH i2c: E2 08 00 7B 02 80 0D 01 02 00 00 00 00 F6 [10:05:20]Write i2c OK [10:05:20]MH_I2C_Read... [10:05:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:05:20]Read from MH i2c: E2 [10:05:20]MH_I2C_Read... [10:05:20]Read from MH i2c: E2 03 00 [10:05:20]MH_I2C_Read... [10:05:20]Read from MH i2c: E2 03 00 7B 02 00 90 00 F1 [10:05:20]RAPDU: 90 00 [10:05:20]wFMCommunicate OK [10:05:20]wFMCommunicate request_size=255 [10:05:20]MH_SAM_APDU [10:05:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 DF A2 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FD 83 02 00 35 04 06 00 20 [10:05:20]Write to MH i2c: E2 02 01 7C 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 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 DF A2 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FD 83 02 00 35 04 06 00 20 00 00 EE [10:05:20]Write i2c OK [10:05:20]MH_I2C_Read... [10:05:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:20]Read from MH i2c: E2 [10:05:20]MH_I2C_Read... [10:05:20]Read from MH i2c: E2 03 00 [10:05:20]MH_I2C_Read... [10:05:20]Read from MH i2c: E2 03 00 7C 02 00 90 00 F2 [10:05:20]RAPDU: 90 00 [10:05:20]wFMCommunicate OK [10:05:20]wFMCommunicate request_size=10 [10:05:20]MH_SAM_APDU [10:05:20]CAPDU: 80 0D 02 02 05 46 59 34 DE 28 [10:05:20]Write to MH i2c: E2 0D 00 7D 02 80 0D 02 02 05 00 46 59 34 DE 28 00 00 DC [10:05:20]Write i2c OK [10:05:20]MH_I2C_Read... [10:05:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:20]Read from MH i2c: E2 [10:05:20]MH_I2C_Read... [10:05:20]Read from MH i2c: E2 03 00 [10:05:20]MH_I2C_Read... [10:05:20]Read from MH i2c: E2 03 00 7D 02 00 90 00 F3 [10:05:20]RAPDU: 90 00 [10:05:20]wFMCommunicate OK [10:05:20]wFMCommunicate request_size=4 [10:05:20]MH_SAM_APDU [10:05:20]CAPDU: 80 0D 03 02 [10:05:20]Write to MH i2c: E2 08 00 7E 02 80 0D 03 02 00 00 00 00 FB [10:05:20]Write i2c OK [10:05:20]MH_I2C_Read... [10:05:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:05:20]Read from MH i2c: E2 [10:05:20]MH_I2C_Read... [10:05:20]Read from MH i2c: E2 0B 00 [10:05:20]MH_I2C_Read... [10:05:20]Read from MH i2c: E2 0B 00 7E 02 00 A6 3E B1 69 9E F9 CC C6 90 00 23 [10:05:20]RAPDU: A6 3E B1 69 9E F9 CC C6 90 00 [10:05:20]wFMCommunicate OK [10:05:20]SAM_PROTO_SignData done [10:05:20]FM_MakeSignedData done [10:05:20]CreateOFDProtocolMessage [10:05:20]wFMCommunicate request_size=4 [10:05:20]MH_SAM_APDU [10:05:20]CAPDU: 80 11 00 00 [10:05:20]Write to MH i2c: E2 08 00 7F 02 80 11 00 00 00 00 00 00 FB [10:05:20]Write i2c OK [10:05:20]MH_I2C_Read... [10:05:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:20]Read from MH i2c: E2 [10:05:20]MH_I2C_Read... [10:05:20]Read from MH i2c: E2 17 00 [10:05:20]MH_I2C_Read... [10:05:20]Read from MH i2c: E2 17 00 7F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 51 [10:05:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:05:20]wFMCommunicate OK [10:05:20]CreateOFDProtocolMessage done [10:05:20]OFDSenderStorePacket 164861 [10:05:20]StoreOFDPacket docnum=164861 [10:05:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 E6 23 07 01 DC 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 DF A2 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FD 83 02 00 35 04 06 00 20 46 59 34 DE 28 A6 3E B1 69 9E F9 CC C6 [10:05:20]CheckFolder [10:05:20]dirname=/storage/ofd_packets [10:05:20]CheckFolder done [10:05:20]ProducePacketName [10:05:20]name=ofd_packets/00164861 [10:05:20]NVStorageSaveData ofd_packets/00164861 [10:05:20]File name is /storage/ofd_packets/00164861 [10:05:20]Write 301 bytes [10:05:20]NVStorageSaveData done [10:05:20]OFDSenderStorePacket done [10:05:20]KKMCreateOFDPacket done [10:05:20]NVStorageSaveData kkm_last_timestamp [10:05:20]File name is /storage/kkm_last_timestamp [10:05:20]Write 4 bytes [10:05:20]NVStorageSaveData done [10:05:20]ExternCall_PrintAddStr [10:05:20]wPrintStart [10:05:20]Write to MH i2c: 01 00 00 80 02 82 [10:05:20]Write i2c OK [10:05:20]MH_I2C_Read... [10:05:20]Read from MH i2c: 01 [10:05:20]MH_I2C_Read... [10:05:20]Read from MH i2c: 01 07 00 [10:05:20]MH_I2C_Read... [10:05:20]Read from MH i2c: 01 07 00 80 02 00 00 00 00 00 FF 0F 97 [10:05:20]RasterBufferAndPrint [10:05:20]line Счет N : (1)458957 [10:05:20]line ИНН: 02508201610067 [10:05:20]line Контрольно-Кассовый Чек [10:05:20]line ПРОДАЖА [10:05:20]line ТРК (МРК, ГНК) : 12 [10:05:20]line Товар: 2710124130 [10:05:20]line Аи-92-К-5 [10:05:20]line 10.000 * 65.80 [10:05:20]line = 658.00 [10:05:20]line НДС 12% НСП 1% [10:05:20]line > о реализуемом товаре [10:05:20]line ИТОГО: 658.00 [10:05:20]line НСП 1% : 5.82 [10:05:20]line НДС 12% : 69.88 [10:05:20]line Наличными: 658.00 [10:05:20]line Безнал.: 0.00 [10:05:20]line Место: АЗС № 72 "Партнер Нефть" [10:05:20]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:05:20]line СНО: Общий режим [10:05:20]line Чек 59 14.07.2024 10:05 [10:05:20]line Смена: 447 ФФД: 1.0 [10:05:20]line ЗНМ: 0300000160 [10:05:20]line РНМ: 0000000000090829 [10:05:20]line Версия ККМ: 001 [10:05:20]line ФМ: 0000000000874718 [10:05:20]line ФД: 164861 [10:05:20]line ФПД: 35486516436520 [10:05:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T100519&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164861&fm=35486516436520&tin=02508201610067®Number=0000000000090829&sum=65800 [10:05:20]written 0, free lines is 4095 [10:05:20]OFD Sender: Processing packet 164861 [packets to send 104, broken 103] [10:05:20]ProducePacketName [10:05:20]name=ofd_packets/00164861 [10:05:20]OFD Sender: To server: pG, [10:05:20]CommunicateWithHost lk.salyk.kg:30040 [10:05:20]ConnectInit lk.salyk.kg [10:05:20]Connected sock=10 [10:05:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 E6 23 07 01 DC 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 DF A2 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FD 83 02 00 35 04 06 00 20 46 59 34 DE 28 A6 3E B1 69 9E F9 CC C6 [10:05:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 5B 01 47 00 0C 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 38 37 34 37 31 38 10 04 04 00 FD 83 02 00 F4 03 04 00 6D 49 93 66 B6 04 01 00 00 FF 5C 12 D5 9E 1D C6 34 [10:05:20]CommunicateWithHost err = 0 [10:05:20]CheckOFDResponse [10:05:20]1017 (14) - 77093643461234 [10:05:20]1041 (16) - 0000000000874718 [10:05:20]1040 (4) - 164861 [10:05:20]1012 (4) - 14.07.2024 03:43 [10:05:20]1206 (1) - 0 [10:05:20]OFD Sender: Remove packet 164861 [10:05:20]ProducePacketName [10:05:20]name=ofd_packets/00164861 [10:05:20]NVStorageDeleteData [10:05:20]Write to MH i2c: 01 00 00 A7 02 A9 [10:05:20]Write i2c OK [10:05:20]MH_I2C_Read... [10:05:20]Read from MH i2c: 01 [10:05:20]MH_I2C_Read... [10:05:20]Read from MH i2c: 01 07 00 [10:05:20]MH_I2C_Read... [10:05:20]Read from MH i2c: 01 07 00 A7 02 00 00 00 00 00 26 0D E3 [10:05:20]RasterBufferAndPrint [10:05:20]line [10:05:20]line [10:05:20]line [10:05:20]line [10:05:20]line [10:05:20]written 0, free lines is 3372 [10:05:20]MH_Cut [10:05:20]Write to MH i2c: D1 01 00 AE 02 01 82 [10:05:20]Write i2c OK [10:05:20]MH_I2C_Read... [10:05:20]Read from MH i2c: D1 [10:05:20]MH_I2C_Read... [10:05:20]Read from MH i2c: D1 01 00 [10:05:20]MH_I2C_Read... [10:05:20]Read from MH i2c: D1 01 00 AE 02 00 81 [10:05:20]Write to MH i2c: 01 00 00 AF 02 B1 [10:05:20]Write i2c OK [10:05:20]MH_I2C_Read... [10:05:21]OFD Sender: No OFD packet to send [10:05:21]*** Cut start [10:05:21]*** Partial cut [10:05:21]*** CUTSNS_PIN = 1 [10:05:21]*** CUTSNS_PIN = 0 [10:05:21]*** Brake cut motor [10:05:22]Read from MH i2c: 01 [10:05:22]MH_I2C_Read... [10:05:22]*** Stop cut motor [10:05:22]*** Cut end [10:05:22]Read from MH i2c: 01 07 00 [10:05:22]MH_I2C_Read... [10:05:22]Read from MH i2c: 01 07 00 AF 02 00 00 00 00 00 FF 0F C6 [10:05:22]process_action close_receipt done [10:05:22]requested_data is exist [10:05:22]produce_requested_data [10:05:22]requested_item fm.sn is exist - process it [10:05:22]wFMCommunicate request_size=4 [10:05:22]MH_SAM_APDU [10:05:22]CAPDU: 80 11 00 00 [10:05:22]Write to MH i2c: E2 08 00 B0 02 80 11 00 00 00 00 00 00 2C [10:05:22]Write i2c OK [10:05:22]MH_I2C_Read... [10:05:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:22]Read from MH i2c: E2 [10:05:22]MH_I2C_Read... [10:05:22]Read from MH i2c: E2 17 00 [10:05:22]MH_I2C_Read... [10:05:22]Read from MH i2c: E2 17 00 B0 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 82 [10:05:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:05:22]wFMCommunicate OK [10:05:22]requested_item fd.num is exist - process it [10:05:22]SAM_PROTO_GetFieldsCounters [10:05:22]wFMCommunicate request_size=4 [10:05:22]MH_SAM_APDU [10:05:22]CAPDU: 80 13 00 00 [10:05:22]Write to MH i2c: E2 08 00 B1 02 80 13 00 00 00 00 00 00 2F [10:05:22]Write i2c OK [10:05:22]MH_I2C_Read... [10:05:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:05:22]Read from MH i2c: E2 [10:05:22]MH_I2C_Read... [10:05:22]Read from MH i2c: E2 62 00 [10:05:22]MH_I2C_Read... [10:05:22]Read from MH i2c: E2 62 00 B1 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 FD 83 02 00 0E 04 04 00 BF 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 49 [10:05:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 FD 83 02 00 0E 04 04 00 BF 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 [10:05:22]wFMCommunicate OK [10:05:22]SAM_PROTO_GetFieldsCounters done [10:05:22]requested_item shift.num is exist - process it [10:05:22]requested_item shift.opened is exist - process it [10:05:22]req_shift_opened [10:05:22]FM_GetShiftState [10:05:22]SAM_PROTO_GetShiftState [10:05:22]wFMCommunicate request_size=4 [10:05:22]MH_SAM_APDU [10:05:22]CAPDU: 80 13 01 00 [10:05:22]Write to MH i2c: E2 08 00 B2 02 80 13 01 00 00 00 00 00 31 [10:05:22]Write i2c OK [10:05:22]MH_I2C_Read... [10:05:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:22]Read from MH i2c: E2 [10:05:22]MH_I2C_Read... [10:05:22]Read from MH i2c: E2 0E 00 [10:05:22]MH_I2C_Read... [10:05:22]Read from MH i2c: E2 0E 00 B2 02 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 B1 [10:05:22]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [10:05:22]wFMCommunicate OK [10:05:22]SAM_PROTO_GetShiftState done [10:05:22]FM_GetShiftState done [10:05:22]req_shift_opened done [10:05:22]requested_item shift.open_date is exist - process it [10:05:22]req_shift_open_date [10:05:22]req_shift_open_date done [10:05:22]produce_requested_data done [10:05:22]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164861,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [10:05:22]process_action_free close_receipt [10:05:22]json_value_free [10:05:22]json_value_free done [10:05:22]process_json_proto returns [10:05:22]Send response to host [10:05:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164861,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [10:05:22]free response buf [10:05:22]execute_script done [10:05:22]execute_script returns [10:05:22]free content buf [10:05:22]Sock 7.Close socket [10:05:22]Sock 7.Thread stoped [10:05:26]OFD Sender: No OFD packet to send [10:05:31]OFD Sender: No OFD packet to send [10:05:36]OFD Sender: No OFD packet to send [10:05:41]OFD Sender: No OFD packet to send [10:05:46]OFD Sender: No OFD packet to send [10:05:51]OFD Sender: No OFD packet to send [10:05:56]OFD Sender: No OFD packet to send [10:06:01]OFD Sender: No OFD packet to send [10:06:06]OFD Sender: No OFD packet to send [10:06:11]OFD Sender: No OFD packet to send [10:06:16]OFD Sender: No OFD packet to send [10:06:21]OFD Sender: No OFD packet to send [10:06:26]accept exits with 9 [10:06:26]New connection [10:06:26]New thread 3067473252 created [10:06:26]Thread 3067616612 joined [10:06:26]Waiting for new connection... [10:06:26] Sock 9.Parse request [10:06:26]Sock 9.Check first char [10:06:26]Sock 9.First char is OK [10:06:26]request: POST /json_proto HTTP/1.0 [10:06:26]Method: POST [10:06:26]URL: /json_proto [10:06:26]Method is POST - this is cgi request [10:06:26]url: /json_proto [10:06:26]query_string will be loaded in cgi processing [10:06:26]execute_cgi json_proto POST (null) [10:06:26]execute_cgi path=json_proto method=POST [10:06:26]POST find Content-Length [10:06:26]Host: 172.17.56.4:8080 [10:06:26]Content-Length: 677 [10:06:26]Content-Type: application/json [10:06:26] [10:06:26]POST finish read [10:06:26]Found Content-Length = 677 [10:06:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458958", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.020, "sum" : 330.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 330.00, "total" : 330.00, "payments": [ { "type": 0, "sum" : 330.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:06:26]execute_script... [10:06:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458958", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.020, "sum" : 330.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 330.00, "total" : 330.00, "payments": [ { "type": 0, "sum" : 330.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:06:26]POST & json_proto [10:06:26]process_json_proto [10:06:26]json parsed OK: [10:06:26]protocol is kg_v1.0 [10:06:26]action value=close_receipt [10:06:26]process_action close_receipt [10:06:26]cmd_close_receipt [10:06:26]MH_GetDate [10:06:26]Write to MH i2c: F0 00 00 B3 02 A4 [10:06:26]Write i2c OK [10:06:26]MH_I2C_Read... [10:06:26]Read from MH i2c: F0 [10:06:26]MH_I2C_Read... [10:06:26]Read from MH i2c: F0 09 00 [10:06:26]MH_I2C_Read... [10:06:26]Read from MH i2c: F0 09 00 B3 02 00 23 A3 93 66 C9 DC B2 64 27 [10:06:26]GetLastDocTimeStamp 1720951519 [10:06:26]current date 1720951587 [10:06:26]FM_GetShiftState [10:06:26]SAM_PROTO_GetShiftState [10:06:26]wFMCommunicate request_size=4 [10:06:26]MH_SAM_APDU [10:06:26]CAPDU: 80 13 01 00 [10:06:26]Write to MH i2c: E2 08 00 B4 02 80 13 01 00 00 00 00 00 33 [10:06:26]Write i2c OK [10:06:26]MH_I2C_Read... [10:06:26]OFD Sender: No OFD packet to send [10:06:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:26]Read from MH i2c: E2 [10:06:26]MH_I2C_Read... [10:06:26]Read from MH i2c: E2 0E 00 [10:06:26]MH_I2C_Read... [10:06:26]Read from MH i2c: E2 0E 00 B4 02 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 B3 [10:06:26]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [10:06:26]wFMCommunicate OK [10:06:26]SAM_PROTO_GetShiftState done [10:06:26]FM_GetShiftState done [10:06:26]opened in 1720917342 [10:06:26]opened+sec_in_day 1721003742 [10:06:26]quantity*price = 33031 [10:06:26]sum+1 = 33033 [10:06:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 330.00 Внесено: 330.00 СДАЧА: 0.00 НСП 1% : 2.92 НДС 12% : 35.08 Наличными: 330.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 60 14.07.2024 10:06 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164862 ФПД: 3166709150636 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T100627&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164862&fm=3166709150636&tin=02508201610067®Number=0000000000090829&sum=33000 [10:06:27]StoreToDocumentArchive [10:06:27]shift 447 fd 164862 [10:06:27]save to /storage/0447/doc_00164862 [10:06:27]save last doc name /storage/0447/doc_00164862 to /storage/kkm_last_doc_name [10:06:27]save OK [10:06:27]Clear old archive folders... [10:06:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:06:27]tlvbuf is 0073C980 [10:06:27]SAM_PROTO_ClearQueue [10:06:27]wFMCommunicate request_size=4 [10:06:27]MH_SAM_APDU [10:06:27]CAPDU: 80 09 00 00 [10:06:27]Write to MH i2c: E2 08 00 C1 02 80 09 00 00 00 00 00 00 35 [10:06:27]Write i2c OK [10:06:27]MH_I2C_Read... [10:06:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:06:27]Read from MH i2c: E2 [10:06:27]MH_I2C_Read... [10:06:27]Read from MH i2c: E2 03 00 [10:06:27]MH_I2C_Read... [10:06:27]Read from MH i2c: E2 03 00 C1 02 00 90 00 37 [10:06:27]RAPDU: 90 00 [10:06:27]wFMCommunicate OK [10:06:27]SAM_PROTO_ClearQueue done [10:06:27]KKMCreateOFDPacket [10:06:27]OFDProtocolAddRootSTLVToBuf [10:06:27]FM_MakeSignedData [10:06:27]FM_MakeSignedData [10:06:27]SAM_PROTO_SignData [10:06:27]wFMCommunicate request_size=4 [10:06:27]MH_SAM_APDU [10:06:27]CAPDU: 80 0D 01 02 [10:06:27]Write to MH i2c: E2 08 00 C2 02 80 0D 01 02 00 00 00 00 3D [10:06:27]Write i2c OK [10:06:27]MH_I2C_Read... [10:06:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:06:27]Read from MH i2c: E2 [10:06:27]MH_I2C_Read... [10:06:27]Read from MH i2c: E2 03 00 [10:06:27]MH_I2C_Read... [10:06:27]Read from MH i2c: E2 03 00 C2 02 00 90 00 38 [10:06:27]RAPDU: 90 00 [10:06:27]wFMCommunicate OK [10:06:27]wFMCommunicate request_size=255 [10:06:27]MH_SAM_APDU [10:06:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 23 A3 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FE 83 02 00 35 04 06 00 02 [10:06:27]Write to MH i2c: E2 02 01 C3 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 35 FF 03 08 00 03 9C 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 23 A3 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FE 83 02 00 35 04 06 00 02 00 00 48 [10:06:27]Write i2c OK [10:06:27]MH_I2C_Read... [10:06:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:27]Read from MH i2c: E2 [10:06:27]MH_I2C_Read... [10:06:27]Read from MH i2c: E2 03 00 [10:06:27]MH_I2C_Read... [10:06:27]Read from MH i2c: E2 03 00 C3 02 00 90 00 39 [10:06:27]RAPDU: 90 00 [10:06:27]wFMCommunicate OK [10:06:27]wFMCommunicate request_size=10 [10:06:27]MH_SAM_APDU [10:06:27]CAPDU: 80 0D 02 02 05 E1 4E 92 F3 AC [10:06:27]Write to MH i2c: E2 0D 00 C4 02 80 0D 02 02 05 00 E1 4E 92 F3 AC 00 00 AA [10:06:27]Write i2c OK [10:06:27]MH_I2C_Read... [10:06:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:27]Read from MH i2c: E2 [10:06:27]MH_I2C_Read... [10:06:27]Read from MH i2c: E2 03 00 [10:06:27]MH_I2C_Read... [10:06:27]Read from MH i2c: E2 03 00 C4 02 00 90 00 3A [10:06:27]RAPDU: 90 00 [10:06:27]wFMCommunicate OK [10:06:27]wFMCommunicate request_size=4 [10:06:27]MH_SAM_APDU [10:06:27]CAPDU: 80 0D 03 02 [10:06:27]Write to MH i2c: E2 08 00 C5 02 80 0D 03 02 00 00 00 00 42 [10:06:27]Write i2c OK [10:06:27]MH_I2C_Read... [10:06:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:06:28]Read from MH i2c: E2 [10:06:28]MH_I2C_Read... [10:06:28]Read from MH i2c: E2 0B 00 [10:06:28]MH_I2C_Read... [10:06:28]Read from MH i2c: E2 0B 00 C5 02 00 AB D3 FF 7C E7 57 83 48 90 00 45 [10:06:28]RAPDU: AB D3 FF 7C E7 57 83 48 90 00 [10:06:28]wFMCommunicate OK [10:06:28]SAM_PROTO_SignData done [10:06:28]FM_MakeSignedData done [10:06:28]CreateOFDProtocolMessage [10:06:28]wFMCommunicate request_size=4 [10:06:28]MH_SAM_APDU [10:06:28]CAPDU: 80 11 00 00 [10:06:28]Write to MH i2c: E2 08 00 C6 02 80 11 00 00 00 00 00 00 42 [10:06:28]Write i2c OK [10:06:28]MH_I2C_Read... [10:06:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:28]Read from MH i2c: E2 [10:06:28]MH_I2C_Read... [10:06:28]Read from MH i2c: E2 17 00 [10:06:28]MH_I2C_Read... [10:06:28]Read from MH i2c: E2 17 00 C6 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 98 [10:06:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:06:28]wFMCommunicate OK [10:06:28]CreateOFDProtocolMessage done [10:06:28]OFDSenderStorePacket 164862 [10:06:28]StoreOFDPacket docnum=164862 [10:06:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 1D 77 07 01 EC 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 35 FF 03 08 00 03 9C 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 23 A3 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FE 83 02 00 35 04 06 00 02 E1 4E 92 F3 AC AB D3 FF 7C E7 57 83 48 [10:06:28]CheckFolder [10:06:28]dirname=/storage/ofd_packets [10:06:28]CheckFolder done [10:06:28]ProducePacketName [10:06:28]name=ofd_packets/00164862 [10:06:28]NVStorageSaveData ofd_packets/00164862 [10:06:28]File name is /storage/ofd_packets/00164862 [10:06:28]Write 301 bytes [10:06:28]NVStorageSaveData done [10:06:28]OFDSenderStorePacket done [10:06:28]KKMCreateOFDPacket done [10:06:28]NVStorageSaveData kkm_last_timestamp [10:06:28]File name is /storage/kkm_last_timestamp [10:06:28]Write 4 bytes [10:06:28]NVStorageSaveData done [10:06:28]ExternCall_PrintAddStr [10:06:28]wPrintStart [10:06:28]Write to MH i2c: 01 00 00 C7 02 C9 [10:06:28]Write i2c OK [10:06:28]MH_I2C_Read... [10:06:28]Read from MH i2c: 01 [10:06:28]MH_I2C_Read... [10:06:28]Read from MH i2c: 01 07 00 [10:06:28]MH_I2C_Read... [10:06:28]Read from MH i2c: 01 07 00 C7 02 00 00 00 00 00 FF 0F DE [10:06:28]RasterBufferAndPrint [10:06:28]line Счет N : (1)458958 [10:06:28]line ИНН: 02508201610067 [10:06:28]line Контрольно-Кассовый Чек [10:06:28]line ПРОДАЖА [10:06:28]line ТРК (МРК, ГНК) : 22 [10:06:28]line Товар: 2710124130 [10:06:28]line Аи-92-К-5 [10:06:28]line 5.020 * 65.80 [10:06:28]line = 330.32 [10:06:28]line НДС 12% НСП 1% [10:06:28]line > о реализуемом товаре [10:06:28]line ОКРУГЛЕНИЕ: -0.32 [10:06:28]line ИТОГО: 330.00 [10:06:28]line Внесено: 330.00 [10:06:28]line СДАЧА: 0.00 [10:06:28]line НСП 1% : 2.92 [10:06:28]line НДС 12% : 35.08 [10:06:28]line Наличными: 330.00 [10:06:28]line Безнал.: 0.00 [10:06:28]line Место: АЗС № 72 "Партнер Нефть" [10:06:28]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:06:28]line СНО: Общий режим [10:06:28]line Чек 60 14.07.2024 10:06 [10:06:28]line Смена: 447 ФФД: 1.0 [10:06:28]line ЗНМ: 0300000160 [10:06:28]line РНМ: 0000000000090829 [10:06:28]line Версия ККМ: 001 [10:06:28]line ФМ: 0000000000874718 [10:06:28]line ФД: 164862 [10:06:28]line ФПД: 3166709150636 [10:06:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T100627&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164862&fm=3166709150636&tin=02508201610067®Number=0000000000090829&sum=33000 [10:06:28]OFD Sender: Processing packet 164862 [packets to send 104, broken 103] [10:06:28]ProducePacketName [10:06:28]name=ofd_packets/00164862 [10:06:28]OFD Sender: To server: pG, [10:06:28]CommunicateWithHost lk.salyk.kg:30040 [10:06:28]ConnectInit lk.salyk.kg [10:06:28]written 0, free lines is 4095 [10:06:28]Connected sock=10 [10:06:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 1D 77 07 01 EC 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 35 FF 03 08 00 03 9C 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 23 A3 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FE 83 02 00 35 04 06 00 02 E1 4E 92 F3 AC AB D3 FF 7C E7 57 83 48 [10:06:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 FF 3F 47 00 F0 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FE 83 02 00 F4 03 04 00 B1 49 93 66 B6 04 01 00 00 86 4F 5C C9 45 2B 6F CF [10:06:28]CommunicateWithHost err = 0 [10:06:28]CheckOFDResponse [10:06:28]1017 (14) - 77093643461234 [10:06:28]1041 (16) - 0000000000874718 [10:06:28]1040 (4) - 164862 [10:06:28]1012 (4) - 14.07.2024 03:44 [10:06:28]1206 (1) - 0 [10:06:28]OFD Sender: Remove packet 164862 [10:06:28]ProducePacketName [10:06:28]name=ofd_packets/00164862 [10:06:28]NVStorageDeleteData [10:06:28]Write to MH i2c: 01 00 00 F1 02 F3 [10:06:28]Write i2c OK [10:06:28]MH_I2C_Read... [10:06:28]Read from MH i2c: 01 [10:06:28]MH_I2C_Read... [10:06:28]Read from MH i2c: 01 07 00 [10:06:28]MH_I2C_Read... [10:06:28]Read from MH i2c: 01 07 00 F1 02 00 00 00 00 00 02 0D 09 [10:06:28]RasterBufferAndPrint [10:06:28]line [10:06:28]line [10:06:28]line [10:06:28]line [10:06:28]line [10:06:28]written 0, free lines is 3336 [10:06:28]MH_Cut [10:06:28]Write to MH i2c: D1 01 00 F8 02 01 CC [10:06:28]Write i2c OK [10:06:28]MH_I2C_Read... [10:06:28]Read from MH i2c: D1 [10:06:28]MH_I2C_Read... [10:06:28]Read from MH i2c: D1 01 00 [10:06:28]MH_I2C_Read... [10:06:28]Read from MH i2c: D1 01 00 F8 02 00 CB [10:06:28]Write to MH i2c: 01 00 00 F9 02 FB [10:06:28]Write i2c OK [10:06:28]MH_I2C_Read... [10:06:29]OFD Sender: No OFD packet to send [10:06:29]*** Cut start [10:06:29]*** Partial cut [10:06:29]*** CUTSNS_PIN = 1 [10:06:29]*** CUTSNS_PIN = 0 [10:06:29]*** Brake cut motor [10:06:30]Read from MH i2c: 01 [10:06:30]MH_I2C_Read... [10:06:30]*** Stop cut motor [10:06:30]*** Cut end [10:06:30]Read from MH i2c: 01 07 00 [10:06:30]MH_I2C_Read... [10:06:30]Read from MH i2c: 01 07 00 F9 02 00 00 00 00 00 FF 0F 10 [10:06:30]process_action close_receipt done [10:06:30]requested_data is exist [10:06:30]produce_requested_data [10:06:30]requested_item fm.sn is exist - process it [10:06:30]wFMCommunicate request_size=4 [10:06:30]MH_SAM_APDU [10:06:30]CAPDU: 80 11 00 00 [10:06:30]Write to MH i2c: E2 08 00 FA 02 80 11 00 00 00 00 00 00 76 [10:06:30]Write i2c OK [10:06:30]MH_I2C_Read... [10:06:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:30]Read from MH i2c: E2 [10:06:30]MH_I2C_Read... [10:06:30]Read from MH i2c: E2 17 00 [10:06:30]MH_I2C_Read... [10:06:30]Read from MH i2c: E2 17 00 FA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 CC [10:06:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:06:30]wFMCommunicate OK [10:06:30]requested_item fd.num is exist - process it [10:06:30]SAM_PROTO_GetFieldsCounters [10:06:30]wFMCommunicate request_size=4 [10:06:30]MH_SAM_APDU [10:06:30]CAPDU: 80 13 00 00 [10:06:30]Write to MH i2c: E2 08 00 FB 02 80 13 00 00 00 00 00 00 79 [10:06:30]Write i2c OK [10:06:30]MH_I2C_Read... [10:06:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:06:30]Read from MH i2c: E2 [10:06:30]MH_I2C_Read... [10:06:30]Read from MH i2c: E2 62 00 [10:06:30]MH_I2C_Read... [10:06:30]Read from MH i2c: E2 62 00 FB 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 FE 83 02 00 0E 04 04 00 BF 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 97 [10:06:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 FE 83 02 00 0E 04 04 00 BF 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 [10:06:30]wFMCommunicate OK [10:06:30]SAM_PROTO_GetFieldsCounters done [10:06:30]requested_item shift.num is exist - process it [10:06:30]requested_item shift.opened is exist - process it [10:06:30]req_shift_opened [10:06:30]FM_GetShiftState [10:06:30]SAM_PROTO_GetShiftState [10:06:30]wFMCommunicate request_size=4 [10:06:30]MH_SAM_APDU [10:06:30]CAPDU: 80 13 01 00 [10:06:30]Write to MH i2c: E2 08 00 FC 02 80 13 01 00 00 00 00 00 7B [10:06:30]Write i2c OK [10:06:30]MH_I2C_Read... [10:06:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:30]Read from MH i2c: E2 [10:06:30]MH_I2C_Read... [10:06:30]Read from MH i2c: E2 0E 00 [10:06:30]MH_I2C_Read... [10:06:30]Read from MH i2c: E2 0E 00 FC 02 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 FB [10:06:30]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [10:06:30]wFMCommunicate OK [10:06:30]SAM_PROTO_GetShiftState done [10:06:30]FM_GetShiftState done [10:06:30]req_shift_opened done [10:06:30]requested_item shift.open_date is exist - process it [10:06:30]req_shift_open_date [10:06:30]req_shift_open_date done [10:06:30]produce_requested_data done [10:06:30]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164862,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [10:06:30]process_action_free close_receipt [10:06:30]json_value_free [10:06:30]json_value_free done [10:06:30]process_json_proto returns [10:06:30]Send response to host [10:06:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164862,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [10:06:30]free response buf [10:06:30]execute_script done [10:06:30]execute_script returns [10:06:30]free content buf [10:06:30]Sock 9.Close socket [10:06:30]Sock 9.Thread stoped [10:06:34]OFD Sender: No OFD packet to send [10:06:39]OFD Sender: No OFD packet to send [10:06:44]OFD Sender: No OFD packet to send [10:06:49]OFD Sender: No OFD packet to send [10:06:54]OFD Sender: No OFD packet to send [10:06:59]OFD Sender: No OFD packet to send [10:07:04]OFD Sender: No OFD packet to send [10:07:09]OFD Sender: No OFD packet to send [10:07:14]OFD Sender: No OFD packet to send [10:07:19]OFD Sender: No OFD packet to send [10:07:21]accept exits with 7 [10:07:21]New connection [10:07:21]New thread 3067616612 created [10:07:21]Thread 3067473252 joined [10:07:21]Waiting for new connection... [10:07:21] Sock 7.Parse request [10:07:21]Sock 7.Check first char [10:07:21]Sock 7.First char is OK [10:07:21]request: POST /json_proto HTTP/1.0 [10:07:21]Method: POST [10:07:21]URL: /json_proto [10:07:21]Method is POST - this is cgi request [10:07:21]url: /json_proto [10:07:21]query_string will be loaded in cgi processing [10:07:21]execute_cgi json_proto POST (null) [10:07:21]execute_cgi path=json_proto method=POST [10:07:21]POST find Content-Length [10:07:21]Host: 172.17.56.4:8080 [10:07:21]Content-Length: 677 [10:07:21]Content-Type: application/json [10:07:21] [10:07:21]POST finish read [10:07:21]Found Content-Length = 677 [10:07:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458959", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:07:21]execute_script... [10:07: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)458959", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:07:21]POST & json_proto [10:07:21]process_json_proto [10:07:21]json parsed OK: [10:07:21]protocol is kg_v1.0 [10:07:21]action value=close_receipt [10:07:21]process_action close_receipt [10:07:21]cmd_close_receipt [10:07:21]MH_GetDate [10:07:21]Write to MH i2c: F0 00 00 FD 02 EE [10:07:21]Write i2c OK [10:07:21]MH_I2C_Read... [10:07:21]Read from MH i2c: F0 [10:07:21]MH_I2C_Read... [10:07:21]Read from MH i2c: F0 09 00 [10:07:21]MH_I2C_Read... [10:07:21]Read from MH i2c: F0 09 00 FD 02 00 5A A3 93 66 C9 DC B2 64 A8 [10:07:21]GetLastDocTimeStamp 1720951587 [10:07:21]current date 1720951642 [10:07:21]FM_GetShiftState [10:07:21]SAM_PROTO_GetShiftState [10:07:21]wFMCommunicate request_size=4 [10:07:21]MH_SAM_APDU [10:07:21]CAPDU: 80 13 01 00 [10:07:21]Write to MH i2c: E2 08 00 FE 02 80 13 01 00 00 00 00 00 7D [10:07:21]Write i2c OK [10:07:21]MH_I2C_Read... [10:07:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:21]Read from MH i2c: E2 [10:07:21]MH_I2C_Read... [10:07:21]Read from MH i2c: E2 0E 00 [10:07:21]MH_I2C_Read... [10:07:21]Read from MH i2c: E2 0E 00 FE 02 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 FD [10:07:21]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [10:07:21]wFMCommunicate OK [10:07:21]SAM_PROTO_GetShiftState done [10:07:21]FM_GetShiftState done [10:07:21]opened in 1720917342 [10:07:21]opened+sec_in_day 1721003742 [10:07:21]quantity*price = 20003 [10:07:21]sum+1 = 20004 [10:07:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 61 14.07.2024 10:07 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164863 ФПД: 261243976344445 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T100722&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164863&fm=261243976344445&tin=02508201610067®Number=0000000000090829&sum=20000 [10:07:22]StoreToDocumentArchive [10:07:22]shift 447 fd 164863 [10:07:22]save to /storage/0447/doc_00164863 [10:07:22]save last doc name /storage/0447/doc_00164863 to /storage/kkm_last_doc_name [10:07:22]save OK [10:07:22]Clear old archive folders... [10:07:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:07:22]tlvbuf is 00738C40 [10:07:22]SAM_PROTO_ClearQueue [10:07:22]wFMCommunicate request_size=4 [10:07:22]MH_SAM_APDU [10:07:22]CAPDU: 80 09 00 00 [10:07:22]Write to MH i2c: E2 08 00 0B 03 80 09 00 00 00 00 00 00 80 [10:07:22]Write i2c OK [10:07:22]MH_I2C_Read... [10:07:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:07:22]Read from MH i2c: E2 [10:07:22]MH_I2C_Read... [10:07:22]Read from MH i2c: E2 03 00 [10:07:22]MH_I2C_Read... [10:07:22]Read from MH i2c: E2 03 00 0B 03 00 90 00 82 [10:07:22]RAPDU: 90 00 [10:07:22]wFMCommunicate OK [10:07:22]SAM_PROTO_ClearQueue done [10:07:22]KKMCreateOFDPacket [10:07:22]OFDProtocolAddRootSTLVToBuf [10:07:22]FM_MakeSignedData [10:07:22]FM_MakeSignedData [10:07:22]SAM_PROTO_SignData [10:07:22]wFMCommunicate request_size=4 [10:07:22]MH_SAM_APDU [10:07:22]CAPDU: 80 0D 01 02 [10:07:22]Write to MH i2c: E2 08 00 0C 03 80 0D 01 02 00 00 00 00 88 [10:07:22]Write i2c OK [10:07:22]MH_I2C_Read... [10:07:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:07:22]Read from MH i2c: E2 [10:07:22]MH_I2C_Read... [10:07:22]Read from MH i2c: E2 03 00 [10:07:22]MH_I2C_Read... [10:07:22]Read from MH i2c: E2 03 00 0C 03 00 90 00 83 [10:07:22]RAPDU: 90 00 [10:07:22]wFMCommunicate OK [10:07:22]wFMCommunicate request_size=255 [10:07:22]MH_SAM_APDU [10:07:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 3D 00 00 00 F4 03 04 00 5A A3 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FF 83 02 00 35 04 06 00 ED [10:07:22]Write to MH i2c: E2 02 01 0D 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 3D 00 00 00 F4 03 04 00 5A A3 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FF 83 02 00 35 04 06 00 ED 00 00 06 [10:07:22]Write i2c OK [10:07:22]MH_I2C_Read... [10:07:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:07:23]Read from MH i2c: E2 [10:07:23]MH_I2C_Read... [10:07:23]Read from MH i2c: E2 03 00 [10:07:23]MH_I2C_Read... [10:07:23]Read from MH i2c: E2 03 00 0D 03 00 90 00 84 [10:07:23]RAPDU: 90 00 [10:07:23]wFMCommunicate OK [10:07:23]wFMCommunicate request_size=10 [10:07:23]MH_SAM_APDU [10:07:23]CAPDU: 80 0D 02 02 05 99 9A 68 E3 7D [10:07:23]Write to MH i2c: E2 0D 00 0E 03 80 0D 02 02 05 00 99 9A 68 E3 7D 00 00 90 [10:07:23]Write i2c OK [10:07:23]MH_I2C_Read... [10:07:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:07:23]Read from MH i2c: E2 [10:07:23]MH_I2C_Read... [10:07:23]Read from MH i2c: E2 03 00 [10:07:23]MH_I2C_Read... [10:07:23]Read from MH i2c: E2 03 00 0E 03 00 90 00 85 [10:07:23]RAPDU: 90 00 [10:07:23]wFMCommunicate OK [10:07:23]wFMCommunicate request_size=4 [10:07:23]MH_SAM_APDU [10:07:23]CAPDU: 80 0D 03 02 [10:07:23]Write to MH i2c: E2 08 00 0F 03 80 0D 03 02 00 00 00 00 8D [10:07:23]Write i2c OK [10:07:23]MH_I2C_Read... [10:07:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:07:23]Read from MH i2c: E2 [10:07:23]MH_I2C_Read... [10:07:23]Read from MH i2c: E2 0B 00 [10:07:23]MH_I2C_Read... [10:07:23]Read from MH i2c: E2 0B 00 0F 03 00 FE EB F7 64 62 01 0A B3 90 00 F2 [10:07:23]RAPDU: FE EB F7 64 62 01 0A B3 90 00 [10:07:23]wFMCommunicate OK [10:07:23]SAM_PROTO_SignData done [10:07:23]FM_MakeSignedData done [10:07:23]CreateOFDProtocolMessage [10:07:23]wFMCommunicate request_size=4 [10:07:23]MH_SAM_APDU [10:07:23]CAPDU: 80 11 00 00 [10:07:23]Write to MH i2c: E2 08 00 10 03 80 11 00 00 00 00 00 00 8D [10:07:23]Write i2c OK [10:07:23]MH_I2C_Read... [10:07:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:23]Read from MH i2c: E2 [10:07:23]MH_I2C_Read... [10:07:23]Read from MH i2c: E2 17 00 [10:07:23]MH_I2C_Read... [10:07:23]Read from MH i2c: E2 17 00 10 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E3 [10:07:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:07:23]wFMCommunicate OK [10:07:23]CreateOFDProtocolMessage done [10:07:23]OFDSenderStorePacket 164863 [10:07:23]StoreOFDPacket docnum=164863 [10:07:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 AC 1E 07 01 26 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 3D 00 00 00 F4 03 04 00 5A A3 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FF 83 02 00 35 04 06 00 ED 99 9A 68 E3 7D FE EB F7 64 62 01 0A B3 [10:07:23]CheckFolder [10:07:23]dirname=/storage/ofd_packets [10:07:23]CheckFolder done [10:07:23]ProducePacketName [10:07:23]name=ofd_packets/00164863 [10:07:23]NVStorageSaveData ofd_packets/00164863 [10:07:23]File name is /storage/ofd_packets/00164863 [10:07:23]Write 301 bytes [10:07:23]NVStorageSaveData done [10:07:23]OFDSenderStorePacket done [10:07:23]KKMCreateOFDPacket done [10:07:23]NVStorageSaveData kkm_last_timestamp [10:07:23]File name is /storage/kkm_last_timestamp [10:07:23]Write 4 bytes [10:07:23]NVStorageSaveData done [10:07:23]OFD Sender: Processing packet 164863 [packets to send 104, broken 103] [10:07:23]ProducePacketName [10:07:23]name=ofd_packets/00164863 [10:07:23]OFD Sender: To server: pG, [10:07:23]CommunicateWithHost lk.salyk.kg:30040 [10:07:23]ConnectInit lk.salyk.kg [10:07:23]ExternCall_PrintAddStr [10:07:23]wPrintStart [10:07:23]Write to MH i2c: 01 00 00 11 03 14 [10:07:23]Write i2c OK [10:07:23]MH_I2C_Read... [10:07:23]Read from MH i2c: 01 [10:07:23]MH_I2C_Read... [10:07:23]Read from MH i2c: 01 07 00 [10:07:23]MH_I2C_Read... [10:07:23]Read from MH i2c: 01 07 00 11 03 00 00 00 00 00 FF 0F 29 [10:07:23]RasterBufferAndPrint [10:07:23]line Счет N : (1)458959 [10:07:23]line ИНН: 02508201610067 [10:07:23]line Контрольно-Кассовый Чек [10:07:23]line ПРОДАЖА [10:07:23]line ТРК (МРК, ГНК) : 12 [10:07:23]line Товар: 2710124130 [10:07:23]line Аи-92-К-5 [10:07:23]line 3.040 * 65.80 [10:07:23]line = 200.03 [10:07:23]line НДС 12% НСП 1% [10:07:23]line > о реализуемом товаре [10:07:23]line ОКРУГЛЕНИЕ: -0.03 [10:07:23]line ИТОГО: 200.00 [10:07:23]line Внесено: 200.00 [10:07:23]line СДАЧА: 0.00 [10:07:23]line НСП 1% : 1.77 [10:07:23]line НДС 12% : 21.24 [10:07:23]line Наличными: 200.00 [10:07:23]line Безнал.: 0.00 [10:07:23]line Место: АЗС № 72 "Партнер Нефть" [10:07:23]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:07:23]line СНО: Общий режим [10:07:23]line Чек 61 14.07.2024 10:07 [10:07:23]line Смена: 447 ФФД: 1.0 [10:07:23]line ЗНМ: 0300000160 [10:07:23]line РНМ: 0000000000090829 [10:07:23]line Версия ККМ: 001 [10:07:23]line ФМ: 0000000000874718 [10:07:23]line ФД: 164863 [10:07:23]line ФПД: 261243976344445 [10:07:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T100722&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164863&fm=261243976344445&tin=02508201610067®Number=0000000000090829&sum=20000 [10:07:23]Connected sock=11 [10:07:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 AC 1E 07 01 26 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 3D 00 00 00 F4 03 04 00 5A A3 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FF 83 02 00 35 04 06 00 ED 99 9A 68 E3 7D FE EB F7 64 62 01 0A B3 [10:07:23]written 0, free lines is 4095 [10:07:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 96 39 47 00 FB AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FF 83 02 00 F4 03 04 00 E8 49 93 66 B6 04 01 00 00 80 44 27 F3 BF 26 47 A3 [10:07:23]CommunicateWithHost err = 0 [10:07:23]CheckOFDResponse [10:07:23]1017 (14) - 77093643461234 [10:07:23]1041 (16) - 0000000000874718 [10:07:23]1040 (4) - 164863 [10:07:23]1012 (4) - 14.07.2024 03:45 [10:07:23]1206 (1) - 0 [10:07:23]OFD Sender: Remove packet 164863 [10:07:23]ProducePacketName [10:07:23]name=ofd_packets/00164863 [10:07:23]NVStorageDeleteData [10:07:24]Write to MH i2c: 01 00 00 3B 03 3E [10:07:24]Write i2c OK [10:07:24]MH_I2C_Read... [10:07:24]Read from MH i2c: 01 [10:07:24]MH_I2C_Read... [10:07:24]Read from MH i2c: 01 07 00 [10:07:24]MH_I2C_Read... [10:07:24]Read from MH i2c: 01 07 00 3B 03 00 00 00 00 00 F3 0C 44 [10:07:24]RasterBufferAndPrint [10:07:24]line [10:07:24]line [10:07:24]line [10:07:24]line [10:07:24]line [10:07:24]written 0, free lines is 3321 [10:07:24]MH_Cut [10:07:24]Write to MH i2c: D1 01 00 42 03 01 17 [10:07:24]Write i2c OK [10:07:24]MH_I2C_Read... [10:07:24]Read from MH i2c: D1 [10:07:24]MH_I2C_Read... [10:07:24]Read from MH i2c: D1 01 00 [10:07:24]MH_I2C_Read... [10:07:24]Read from MH i2c: D1 01 00 42 03 00 16 [10:07:24]Write to MH i2c: 01 00 00 43 03 46 [10:07:24]Write i2c OK [10:07:24]MH_I2C_Read... [10:07:24]OFD Sender: No OFD packet to send [10:07:24]*** Cut start [10:07:24]*** Partial cut [10:07:24]*** CUTSNS_PIN = 1 [10:07:24]*** CUTSNS_PIN = 0 [10:07:25]*** Brake cut motor [10:07:25]Read from MH i2c: 01 [10:07:25]MH_I2C_Read... [10:07:25]*** Stop cut motor [10:07:25]*** Cut end [10:07:25]Read from MH i2c: 01 07 00 [10:07:25]MH_I2C_Read... [10:07:25]Read from MH i2c: 01 07 00 43 03 00 00 00 00 00 FF 0F 5B [10:07:25]process_action close_receipt done [10:07:25]requested_data is exist [10:07:25]produce_requested_data [10:07:25]requested_item fm.sn is exist - process it [10:07:25]wFMCommunicate request_size=4 [10:07:25]MH_SAM_APDU [10:07:25]CAPDU: 80 11 00 00 [10:07:25]Write to MH i2c: E2 08 00 44 03 80 11 00 00 00 00 00 00 C1 [10:07:25]Write i2c OK [10:07:25]MH_I2C_Read... [10:07:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:25]Read from MH i2c: E2 [10:07:25]MH_I2C_Read... [10:07:25]Read from MH i2c: E2 17 00 [10:07:25]MH_I2C_Read... [10:07:25]Read from MH i2c: E2 17 00 44 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 17 [10:07:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:07:25]wFMCommunicate OK [10:07:25]requested_item fd.num is exist - process it [10:07:25]SAM_PROTO_GetFieldsCounters [10:07:25]wFMCommunicate request_size=4 [10:07:25]MH_SAM_APDU [10:07:25]CAPDU: 80 13 00 00 [10:07:25]Write to MH i2c: E2 08 00 45 03 80 13 00 00 00 00 00 00 C4 [10:07:25]Write i2c OK [10:07:25]MH_I2C_Read... [10:07:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:07:25]Read from MH i2c: E2 [10:07:25]MH_I2C_Read... [10:07:25]Read from MH i2c: E2 62 00 [10:07:25]MH_I2C_Read... [10:07:25]Read from MH i2c: E2 62 00 45 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 FF 83 02 00 0E 04 04 00 BF 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 E6 [10:07:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 FF 83 02 00 0E 04 04 00 BF 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 [10:07:25]wFMCommunicate OK [10:07:25]SAM_PROTO_GetFieldsCounters done [10:07:25]requested_item shift.num is exist - process it [10:07:25]requested_item shift.opened is exist - process it [10:07:25]req_shift_opened [10:07:25]FM_GetShiftState [10:07:25]SAM_PROTO_GetShiftState [10:07:25]wFMCommunicate request_size=4 [10:07:25]MH_SAM_APDU [10:07:25]CAPDU: 80 13 01 00 [10:07:25]Write to MH i2c: E2 08 00 46 03 80 13 01 00 00 00 00 00 C6 [10:07:25]Write i2c OK [10:07:25]MH_I2C_Read... [10:07:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:25]Read from MH i2c: E2 [10:07:25]MH_I2C_Read... [10:07:25]Read from MH i2c: E2 0E 00 [10:07:25]MH_I2C_Read... [10:07:25]Read from MH i2c: E2 0E 00 46 03 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 46 [10:07:25]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [10:07:25]wFMCommunicate OK [10:07:25]SAM_PROTO_GetShiftState done [10:07:25]FM_GetShiftState done [10:07:25]req_shift_opened done [10:07:25]requested_item shift.open_date is exist - process it [10:07:25]req_shift_open_date [10:07:25]req_shift_open_date done [10:07:25]produce_requested_data done [10:07:25]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164863,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [10:07:25]process_action_free close_receipt [10:07:25]json_value_free [10:07:25]json_value_free done [10:07:25]process_json_proto returns [10:07:25]Send response to host [10:07:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164863,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [10:07:25]free response buf [10:07:25]execute_script done [10:07:25]execute_script returns [10:07:25]free content buf [10:07:25]Sock 7.Close socket [10:07:25]Sock 7.Thread stoped [10:07:29]OFD Sender: No OFD packet to send [10:07:34]OFD Sender: No OFD packet to send [10:07:39]OFD Sender: No OFD packet to send [10:07:44]OFD Sender: No OFD packet to send [10:07:49]OFD Sender: No OFD packet to send [10:07:54]OFD Sender: No OFD packet to send [10:07:59]OFD Sender: No OFD packet to send [10:08:04]OFD Sender: No OFD packet to send [10:08:09]OFD Sender: No OFD packet to send [10:08:14]OFD Sender: No OFD packet to send [10:08:19]OFD Sender: No OFD packet to send [10:08:24]OFD Sender: No OFD packet to send [10:08:29]OFD Sender: No OFD packet to send [10:08:34]OFD Sender: No OFD packet to send [10:08:39]OFD Sender: No OFD packet to send [10:08:44]OFD Sender: No OFD packet to send [10:08:49]OFD Sender: No OFD packet to send [10:08:54]OFD Sender: No OFD packet to send [10:08:59]OFD Sender: No OFD packet to send [10:09:04]OFD Sender: No OFD packet to send [10:09:09]OFD Sender: No OFD packet to send [10:09:14]OFD Sender: No OFD packet to send [10:09:19]OFD Sender: No OFD packet to send [10:09:24]OFD Sender: No OFD packet to send [10:09:29]OFD Sender: No OFD packet to send [10:09:34]OFD Sender: No OFD packet to send [10:09:39]OFD Sender: No OFD packet to send [10:09:44]OFD Sender: No OFD packet to send [10:09:49]OFD Sender: No OFD packet to send [10:09:54]OFD Sender: No OFD packet to send [10:09:59]OFD Sender: No OFD packet to send [10:10:04]OFD Sender: No OFD packet to send [10:10:09]OFD Sender: No OFD packet to send [10:10:14]OFD Sender: No OFD packet to send [10:10:19]OFD Sender: No OFD packet to send [10:10:24]OFD Sender: No OFD packet to send [10:10:29]OFD Sender: No OFD packet to send [10:10:34]OFD Sender: No OFD packet to send [10:10:39]OFD Sender: No OFD packet to send [10:10:44]OFD Sender: No OFD packet to send [10:10:49]OFD Sender: No OFD packet to send [10:10:54]OFD Sender: No OFD packet to send [10:10:59]OFD Sender: No OFD packet to send [10:11:04]OFD Sender: No OFD packet to send [10:11:09]OFD Sender: No OFD packet to send [10:11:14]OFD Sender: No OFD packet to send [10:11:19]OFD Sender: No OFD packet to send [10:11:24]OFD Sender: No OFD packet to send [10:11:29]OFD Sender: No OFD packet to send [10:11:34]OFD Sender: No OFD packet to send [10:11:39]OFD Sender: No OFD packet to send [10:11:44]OFD Sender: No OFD packet to send [10:11:49]OFD Sender: No OFD packet to send [10:11:54]OFD Sender: No OFD packet to send [10:11:59]OFD Sender: No OFD packet to send [10:12:04]OFD Sender: No OFD packet to send [10:12:09]OFD Sender: No OFD packet to send [10:12:14]OFD Sender: No OFD packet to send [10:12:19]accept exits with 10 [10:12:19]New connection [10:12:19]New thread 3067473252 created [10:12:19]Thread 3067616612 joined [10:12:19]Waiting for new connection... [10:12:19] Sock 10.Parse request [10:12:19]Sock 10.Check first char [10:12:19]Sock 10.First char is OK [10:12:19]request: POST /json_proto HTTP/1.0 [10:12:19]Method: POST [10:12:19]URL: /json_proto [10:12:19]Method is POST - this is cgi request [10:12:19]url: /json_proto [10:12:19]query_string will be loaded in cgi processing [10:12:19]execute_cgi json_proto POST (null) [10:12:19]execute_cgi path=json_proto method=POST [10:12:19]POST find Content-Length [10:12:19]Host: 172.17.56.4:8080 [10:12:19]Content-Length: 682 [10:12:19]Content-Type: application/json [10:12:19] [10:12:19]POST finish read [10:12:19]Found Content-Length = 682 [10:12:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458960", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "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:12:19]execute_script... [10:12: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)458960", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "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:12:19]POST & json_proto [10:12:19]process_json_proto [10:12:19]json parsed OK: [10:12:19]protocol is kg_v1.0 [10:12:19]action value=close_receipt [10:12:19]process_action close_receipt [10:12:19]cmd_close_receipt [10:12:19]MH_GetDate [10:12:19]Write to MH i2c: F0 00 00 47 03 39 [10:12:19]Write i2c OK [10:12:19]MH_I2C_Read... [10:12:19]Read from MH i2c: F0 [10:12:19]MH_I2C_Read... [10:12:19]Read from MH i2c: F0 09 00 [10:12:19]MH_I2C_Read... [10:12:19]Read from MH i2c: F0 09 00 47 03 00 84 A4 93 66 C9 DC B2 64 1E [10:12:19]GetLastDocTimeStamp 1720951642 [10:12:19]current date 1720951940 [10:12:19]FM_GetShiftState [10:12:19]SAM_PROTO_GetShiftState [10:12:19]wFMCommunicate request_size=4 [10:12:19]MH_SAM_APDU [10:12:19]CAPDU: 80 13 01 00 [10:12:19]Write to MH i2c: E2 08 00 48 03 80 13 01 00 00 00 00 00 C8 [10:12:19]Write i2c OK [10:12:19]MH_I2C_Read... [10:12:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:19]Read from MH i2c: E2 [10:12:19]MH_I2C_Read... [10:12:19]Read from MH i2c: E2 0E 00 [10:12:19]MH_I2C_Read... [10:12:19]Read from MH i2c: E2 0E 00 48 03 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 48 [10:12:19]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [10:12:19]wFMCommunicate OK [10:12:19]SAM_PROTO_GetShiftState done [10:12:19]FM_GetShiftState done [10:12:19]opened in 1720917342 [10:12:19]opened+sec_in_day 1721003742 [10:12:19]quantity*price = 100016 [10:12:19]sum+1 = 100017 [10:12:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 62 14.07.2024 10:12 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164864 ФПД: 189708453787821 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T101220&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164864&fm=189708453787821&tin=02508201610067®Number=0000000000090829&sum=100000 [10:12:20]StoreToDocumentArchive [10:12:20]shift 447 fd 164864 [10:12:20]save to /storage/0447/doc_00164864 [10:12:20]save last doc name /storage/0447/doc_00164864 to /storage/kkm_last_doc_name [10:12:20]save OK [10:12:20]Clear old archive folders... [10:12:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:12:20]tlvbuf is 0073A720 [10:12:20]SAM_PROTO_ClearQueue [10:12:20]wFMCommunicate request_size=4 [10:12:20]MH_SAM_APDU [10:12:20]CAPDU: 80 09 00 00 [10:12:20]Write to MH i2c: E2 08 00 55 03 80 09 00 00 00 00 00 00 CA [10:12:20]Write i2c OK [10:12:20]MH_I2C_Read... [10:12:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:12:20]Read from MH i2c: E2 [10:12:20]MH_I2C_Read... [10:12:20]Read from MH i2c: E2 03 00 [10:12:20]MH_I2C_Read... [10:12:20]Read from MH i2c: E2 03 00 55 03 00 90 00 CC [10:12:20]RAPDU: 90 00 [10:12:20]wFMCommunicate OK [10:12:20]SAM_PROTO_ClearQueue done [10:12:20]KKMCreateOFDPacket [10:12:20]OFDProtocolAddRootSTLVToBuf [10:12:20]FM_MakeSignedData [10:12:20]FM_MakeSignedData [10:12:20]SAM_PROTO_SignData [10:12:20]wFMCommunicate request_size=4 [10:12:20]MH_SAM_APDU [10:12:20]CAPDU: 80 0D 01 02 [10:12:20]Write to MH i2c: E2 08 00 56 03 80 0D 01 02 00 00 00 00 D2 [10:12:20]Write i2c OK [10:12:20]MH_I2C_Read... [10:12:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:12:20]Read from MH i2c: E2 [10:12:20]MH_I2C_Read... [10:12:20]Read from MH i2c: E2 03 00 [10:12:20]MH_I2C_Read... [10:12:20]Read from MH i2c: E2 03 00 56 03 00 90 00 CD [10:12:20]RAPDU: 90 00 [10:12:20]wFMCommunicate OK [10:12:20]wFMCommunicate request_size=255 [10:12:20]MH_SAM_APDU [10:12:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 84 A4 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 00 84 02 00 35 04 06 00 AC [10:12:20]Write to MH i2c: E2 02 01 57 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 84 A4 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 00 84 02 00 35 04 06 00 AC 00 00 3E [10:12:20]Write i2c OK [10:12:20]MH_I2C_Read... [10:12:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:21]Read from MH i2c: E2 [10:12:21]MH_I2C_Read... [10:12:21]Read from MH i2c: E2 03 00 [10:12:21]MH_I2C_Read... [10:12:21]Read from MH i2c: E2 03 00 57 03 00 90 00 CE [10:12:21]RAPDU: 90 00 [10:12:21]wFMCommunicate OK [10:12:21]wFMCommunicate request_size=10 [10:12:21]MH_SAM_APDU [10:12:21]CAPDU: 80 0D 02 02 05 89 F0 FF B8 AD [10:12:21]Write to MH i2c: E2 0D 00 58 03 80 0D 02 02 05 00 89 F0 FF B8 AD 00 00 BC [10:12:21]Write i2c OK [10:12:21]MH_I2C_Read... [10:12:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:21]Read from MH i2c: E2 [10:12:21]MH_I2C_Read... [10:12:21]Read from MH i2c: E2 03 00 [10:12:21]MH_I2C_Read... [10:12:21]Read from MH i2c: E2 03 00 58 03 00 90 00 CF [10:12:21]RAPDU: 90 00 [10:12:21]wFMCommunicate OK [10:12:21]wFMCommunicate request_size=4 [10:12:21]MH_SAM_APDU [10:12:21]CAPDU: 80 0D 03 02 [10:12:21]Write to MH i2c: E2 08 00 59 03 80 0D 03 02 00 00 00 00 D7 [10:12:21]Write i2c OK [10:12:21]MH_I2C_Read... [10:12:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:12:21]Read from MH i2c: E2 [10:12:21]MH_I2C_Read... [10:12:21]Read from MH i2c: E2 0B 00 [10:12:21]MH_I2C_Read... [10:12:21]Read from MH i2c: E2 0B 00 59 03 00 5D 36 3D 4C 3E 9A B8 17 90 00 9B [10:12:21]RAPDU: 5D 36 3D 4C 3E 9A B8 17 90 00 [10:12:21]wFMCommunicate OK [10:12:21]SAM_PROTO_SignData done [10:12:21]FM_MakeSignedData done [10:12:21]CreateOFDProtocolMessage [10:12:21]wFMCommunicate request_size=4 [10:12:21]MH_SAM_APDU [10:12:21]CAPDU: 80 11 00 00 [10:12:21]Write to MH i2c: E2 08 00 5A 03 80 11 00 00 00 00 00 00 D7 [10:12:21]Write i2c OK [10:12:21]MH_I2C_Read... [10:12:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:21]Read from MH i2c: E2 [10:12:21]MH_I2C_Read... [10:12:21]Read from MH i2c: E2 17 00 [10:12:21]MH_I2C_Read... [10:12:21]Read from MH i2c: E2 17 00 5A 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 2D [10:12:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:12:21]wFMCommunicate OK [10:12:21]CreateOFDProtocolMessage done [10:12:21]OFDSenderStorePacket 164864 [10:12:21]StoreOFDPacket docnum=164864 [10:12:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 66 81 07 01 B7 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 84 A4 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 00 84 02 00 35 04 06 00 AC 89 F0 FF B8 AD 5D 36 3D 4C 3E 9A B8 17 [10:12:21]CheckFolder [10:12:21]dirname=/storage/ofd_packets [10:12:21]CheckFolder done [10:12:21]ProducePacketName [10:12:21]name=ofd_packets/00164864 [10:12:21]NVStorageSaveData ofd_packets/00164864 [10:12:21]File name is /storage/ofd_packets/00164864 [10:12:21]Write 301 bytes [10:12:21]NVStorageSaveData done [10:12:21]OFDSenderStorePacket done [10:12:21]KKMCreateOFDPacket done [10:12:21]NVStorageSaveData kkm_last_timestamp [10:12:21]File name is /storage/kkm_last_timestamp [10:12:21]Write 4 bytes [10:12:21]NVStorageSaveData done [10:12:21]ExternCall_PrintAddStr [10:12:21]wPrintStart [10:12:21]Write to MH i2c: 01 00 00 5B 03 5E [10:12:21]Write i2c OK [10:12:21]MH_I2C_Read... [10:12:21]Read from MH i2c: 01 [10:12:21]MH_I2C_Read... [10:12:21]Read from MH i2c: 01 07 00 [10:12:21]MH_I2C_Read... [10:12:21]Read from MH i2c: 01 07 00 5B 03 00 00 00 00 00 FF 0F 73 [10:12:21]RasterBufferAndPrint [10:12:21]line Счет N : (1)458960 [10:12:21]line ИНН: 02508201610067 [10:12:21]line Контрольно-Кассовый Чек [10:12:21]line ПРОДАЖА [10:12:21]line ТРК (МРК, ГНК) : 12 [10:12:21]line Товар: 2710124130 [10:12:21]line Аи-92-К-5 [10:12:21]line 15.200 * 65.80 [10:12:21]line = 1000.16 [10:12:21]line НДС 12% НСП 1% [10:12:21]line > о реализуемом товаре [10:12:21]line ОКРУГЛЕНИЕ: -0.16 [10:12:21]line ИТОГО: 1000.00 [10:12:21]line Внесено: 1000.00 [10:12:21]line СДАЧА: 0.00 [10:12:21]line НСП 1% : 8.85 [10:12:21]line НДС 12% : 106.21 [10:12:21]line Наличными: 1000.00 [10:12:21]line Безнал.: 0.00 [10:12:21]line Место: АЗС № 72 "Партнер Нефть" [10:12:21]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:12:21]line СНО: Общий режим [10:12:21]line Чек 62 14.07.2024 10:12 [10:12:21]line Смена: 447 ФФД: 1.0 [10:12:21]line ЗНМ: 0300000160 [10:12:21]line РНМ: 0000000000090829 [10:12:21]line Версия ККМ: 001 [10:12:21]line ФМ: 0000000000874718 [10:12:21]line ФД: 164864 [10:12:21]line ФПД: 189708453787821 [10:12:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T101220&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164864&fm=189708453787821&tin=02508201610067®Number=0000000000090829&sum=100000 [10:12:21]OFD Sender: Processing packet 164864 [packets to send 104, broken 103] [10:12:21]ProducePacketName [10:12:21]name=ofd_packets/00164864 [10:12:21]OFD Sender: To server: pG, [10:12:21]CommunicateWithHost lk.salyk.kg:30040 [10:12:21]ConnectInit lk.salyk.kg [10:12:21]written 0, free lines is 4095 [10:12:21]Connected sock=9 [10:12:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 66 81 07 01 B7 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 84 A4 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 00 84 02 00 35 04 06 00 AC 89 F0 FF B8 AD 5D 36 3D 4C 3E 9A B8 17 [10:12:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 81 8D 47 00 24 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 00 84 02 00 F4 03 04 00 12 4B 93 66 B6 04 01 00 00 34 B4 FD 96 B9 E2 17 93 [10:12:21]CommunicateWithHost err = 0 [10:12:21]CheckOFDResponse [10:12:21]1017 (14) - 77093643461234 [10:12:21]1041 (16) - 0000000000874718 [10:12:21]1040 (4) - 164864 [10:12:21]1012 (4) - 14.07.2024 03:50 [10:12:21]1206 (1) - 0 [10:12:21]OFD Sender: Remove packet 164864 [10:12:21]ProducePacketName [10:12:21]name=ofd_packets/00164864 [10:12:21]NVStorageDeleteData [10:12:22]Write to MH i2c: 01 00 00 85 03 88 [10:12:22]Write i2c OK [10:12:22]MH_I2C_Read... [10:12:22]Read from MH i2c: 01 [10:12:22]MH_I2C_Read... [10:12:22]Read from MH i2c: 01 07 00 [10:12:22]MH_I2C_Read... [10:12:22]Read from MH i2c: 01 07 00 85 03 00 00 00 00 00 F8 0C 93 [10:12:22]RasterBufferAndPrint [10:12:22]line [10:12:22]line [10:12:22]line [10:12:22]line [10:12:22]line [10:12:22]written 0, free lines is 3327 [10:12:22]MH_Cut [10:12:22]Write to MH i2c: D1 01 00 8C 03 01 61 [10:12:22]Write i2c OK [10:12:22]MH_I2C_Read... [10:12:22]Read from MH i2c: D1 [10:12:22]MH_I2C_Read... [10:12:22]Read from MH i2c: D1 01 00 [10:12:22]MH_I2C_Read... [10:12:22]Read from MH i2c: D1 01 00 8C 03 00 60 [10:12:22]Write to MH i2c: 01 00 00 8D 03 90 [10:12:22]Write i2c OK [10:12:22]MH_I2C_Read... [10:12:22]OFD Sender: No OFD packet to send [10:12:22]*** Cut start [10:12:22]*** Partial cut [10:12:22]*** CUTSNS_PIN = 1 [10:12:22]*** CUTSNS_PIN = 0 [10:12:22]*** Brake cut motor [10:12:23]Read from MH i2c: 01 [10:12:23]MH_I2C_Read... [10:12:23]*** Stop cut motor [10:12:23]*** Cut end [10:12:23]Read from MH i2c: 01 07 00 [10:12:23]MH_I2C_Read... [10:12:23]Read from MH i2c: 01 07 00 8D 03 00 00 00 00 00 FF 0F A5 [10:12:23]process_action close_receipt done [10:12:23]requested_data is exist [10:12:23]produce_requested_data [10:12:23]requested_item fm.sn is exist - process it [10:12:23]wFMCommunicate request_size=4 [10:12:23]MH_SAM_APDU [10:12:23]CAPDU: 80 11 00 00 [10:12:23]Write to MH i2c: E2 08 00 8E 03 80 11 00 00 00 00 00 00 0B [10:12:23]Write i2c OK [10:12:23]MH_I2C_Read... [10:12:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:23]Read from MH i2c: E2 [10:12:23]MH_I2C_Read... [10:12:23]Read from MH i2c: E2 17 00 [10:12:23]MH_I2C_Read... [10:12:23]Read from MH i2c: E2 17 00 8E 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 61 [10:12:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:12:23]wFMCommunicate OK [10:12:23]requested_item fd.num is exist - process it [10:12:23]SAM_PROTO_GetFieldsCounters [10:12:23]wFMCommunicate request_size=4 [10:12:23]MH_SAM_APDU [10:12:23]CAPDU: 80 13 00 00 [10:12:23]Write to MH i2c: E2 08 00 8F 03 80 13 00 00 00 00 00 00 0E [10:12:23]Write i2c OK [10:12:23]MH_I2C_Read... [10:12:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:12:23]Read from MH i2c: E2 [10:12:23]MH_I2C_Read... [10:12:23]Read from MH i2c: E2 62 00 [10:12:23]MH_I2C_Read... [10:12:23]Read from MH i2c: E2 62 00 8F 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 00 84 02 00 0E 04 04 00 BF 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 35 [10:12:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 00 84 02 00 0E 04 04 00 BF 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 [10:12:23]wFMCommunicate OK [10:12:23]SAM_PROTO_GetFieldsCounters done [10:12:23]requested_item shift.num is exist - process it [10:12:23]requested_item shift.opened is exist - process it [10:12:23]req_shift_opened [10:12:23]FM_GetShiftState [10:12:23]SAM_PROTO_GetShiftState [10:12:23]wFMCommunicate request_size=4 [10:12:23]MH_SAM_APDU [10:12:23]CAPDU: 80 13 01 00 [10:12:23]Write to MH i2c: E2 08 00 90 03 80 13 01 00 00 00 00 00 10 [10:12:23]Write i2c OK [10:12:23]MH_I2C_Read... [10:12:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:23]Read from MH i2c: E2 [10:12:23]MH_I2C_Read... [10:12:23]Read from MH i2c: E2 0E 00 [10:12:23]MH_I2C_Read... [10:12:23]Read from MH i2c: E2 0E 00 90 03 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 90 [10:12:23]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [10:12:23]wFMCommunicate OK [10:12:23]SAM_PROTO_GetShiftState done [10:12:23]FM_GetShiftState done [10:12:23]req_shift_opened done [10:12:23]requested_item shift.open_date is exist - process it [10:12:23]req_shift_open_date [10:12:23]req_shift_open_date done [10:12:23]produce_requested_data done [10:12:23]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164864,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [10:12:23]process_action_free close_receipt [10:12:23]json_value_free [10:12:23]json_value_free done [10:12:23]process_json_proto returns [10:12:23]Send response to host [10:12:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164864,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [10:12:23]free response buf [10:12:23]execute_script done [10:12:23]execute_script returns [10:12:23]free content buf [10:12:23]Sock 10.Close socket [10:12:23]Sock 10.Thread stoped [10:12:27]OFD Sender: No OFD packet to send [10:12:32]OFD Sender: No OFD packet to send [10:12:37]OFD Sender: No OFD packet to send [10:12:42]OFD Sender: No OFD packet to send [10:12:47]OFD Sender: No OFD packet to send [10:12:52]OFD Sender: No OFD packet to send [10:12:57]OFD Sender: No OFD packet to send [10:13:02]OFD Sender: No OFD packet to send [10:13:07]OFD Sender: No OFD packet to send [10:13:12]OFD Sender: No OFD packet to send [10:13:17]OFD Sender: No OFD packet to send [10:13:22]OFD Sender: No OFD packet to send [10:13:27]OFD Sender: No OFD packet to send [10:13:32]OFD Sender: No OFD packet to send [10:13:37]OFD Sender: No OFD packet to send [10:13:42]OFD Sender: No OFD packet to send [10:13:47]OFD Sender: No OFD packet to send [10:13:52]OFD Sender: No OFD packet to send [10:13:57]OFD Sender: No OFD packet to send [10:14:02]OFD Sender: No OFD packet to send [10:14:07]OFD Sender: No OFD packet to send [10:14:09]accept exits with 7 [10:14:09]New connection [10:14:09]New thread 3067616612 created [10:14:09]Thread 3067473252 joined [10:14:09]Waiting for new connection... [10:14:09] Sock 7.Parse request [10:14:09]Sock 7.Check first char [10:14:09]Sock 7.First char is OK [10:14:09]request: POST /json_proto HTTP/1.0 [10:14:09]Method: POST [10:14:09]URL: /json_proto [10:14:09]Method is POST - this is cgi request [10:14:09]url: /json_proto [10:14:09]query_string will be loaded in cgi processing [10:14:09]execute_cgi json_proto POST (null) [10:14:09]execute_cgi path=json_proto method=POST [10:14:09]POST find Content-Length [10:14:09]Host: 172.17.56.4:8080 [10:14:09]Content-Length: 639 [10:14:09]Content-Type: application/json [10:14:09] [10:14:09]POST finish read [10:14:09]Found Content-Length = 639 [10:14:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458961", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 20.000, "sum" : 1438.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1438.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:09]execute_script... [10:14: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)458961", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 20.000, "sum" : 1438.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1438.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:09]POST & json_proto [10:14:09]process_json_proto [10:14:09]json parsed OK: [10:14:09]protocol is kg_v1.0 [10:14:09]action value=close_receipt [10:14:09]process_action close_receipt [10:14:09]cmd_close_receipt [10:14:09]MH_GetDate [10:14:09]Write to MH i2c: F0 00 00 91 03 83 [10:14:09]Write i2c OK [10:14:09]MH_I2C_Read... [10:14:09]Read from MH i2c: F0 [10:14:09]MH_I2C_Read... [10:14:09]Read from MH i2c: F0 09 00 [10:14:09]MH_I2C_Read... [10:14:09]Read from MH i2c: F0 09 00 91 03 00 F1 A4 93 66 C9 DC B2 64 D5 [10:14:09]GetLastDocTimeStamp 1720951940 [10:14:09]current date 1720952049 [10:14:09]FM_GetShiftState [10:14:09]SAM_PROTO_GetShiftState [10:14:09]wFMCommunicate request_size=4 [10:14:09]MH_SAM_APDU [10:14:09]CAPDU: 80 13 01 00 [10:14:09]Write to MH i2c: E2 08 00 92 03 80 13 01 00 00 00 00 00 12 [10:14:09]Write i2c OK [10:14:09]MH_I2C_Read... [10:14:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:09]Read from MH i2c: E2 [10:14:09]MH_I2C_Read... [10:14:09]Read from MH i2c: E2 0E 00 [10:14:09]MH_I2C_Read... [10:14:09]Read from MH i2c: E2 0E 00 92 03 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 92 [10:14:09]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [10:14:09]wFMCommunicate OK [10:14:09]SAM_PROTO_GetShiftState done [10:14:09]FM_GetShiftState done [10:14:09]opened in 1720917342 [10:14:09]opened+sec_in_day 1721003742 [10:14:09]quantity*price = 143800 [10:14:09]sum+1 = 143801 [10:14:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1438.00 НСП 1% : 12.73 НДС 12% : 152.71 Наличными: 1438.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 63 14.07.2024 10:14 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164865 ФПД: 137267648399014 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T101409&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164865&fm=137267648399014&tin=02508201610067®Number=0000000000090829&sum=143800 [10:14:10]StoreToDocumentArchive [10:14:10]shift 447 fd 164865 [10:14:10]save to /storage/0447/doc_00164865 [10:14:10]save last doc name /storage/0447/doc_00164865 to /storage/kkm_last_doc_name [10:14:10]save OK [10:14:10]Clear old archive folders... [10:14:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:14:10]tlvbuf is 0074ED60 [10:14:10]SAM_PROTO_ClearQueue [10:14:10]wFMCommunicate request_size=4 [10:14:10]MH_SAM_APDU [10:14:10]CAPDU: 80 09 00 00 [10:14:10]Write to MH i2c: E2 08 00 9F 03 80 09 00 00 00 00 00 00 14 [10:14:10]Write i2c OK [10:14:10]MH_I2C_Read... [10:14:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:14:10]Read from MH i2c: E2 [10:14:10]MH_I2C_Read... [10:14:10]Read from MH i2c: E2 03 00 [10:14:10]MH_I2C_Read... [10:14:10]Read from MH i2c: E2 03 00 9F 03 00 90 00 16 [10:14:10]RAPDU: 90 00 [10:14:10]wFMCommunicate OK [10:14:10]SAM_PROTO_ClearQueue done [10:14:10]KKMCreateOFDPacket [10:14:10]OFDProtocolAddRootSTLVToBuf [10:14:10]FM_MakeSignedData [10:14:10]FM_MakeSignedData [10:14:10]SAM_PROTO_SignData [10:14:10]wFMCommunicate request_size=4 [10:14:10]MH_SAM_APDU [10:14:10]CAPDU: 80 0D 01 02 [10:14:10]Write to MH i2c: E2 08 00 A0 03 80 0D 01 02 00 00 00 00 1C [10:14:10]Write i2c OK [10:14:10]MH_I2C_Read... [10:14:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:14:10]Read from MH i2c: E2 [10:14:10]MH_I2C_Read... [10:14:10]Read from MH i2c: E2 03 00 [10:14:10]MH_I2C_Read... [10:14:10]Read from MH i2c: E2 03 00 A0 03 00 90 00 17 [10:14:10]RAPDU: 90 00 [10:14:10]wFMCommunicate OK [10:14:10]wFMCommunicate request_size=255 [10:14:10]MH_SAM_APDU [10:14: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 20 4E 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B8 31 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 31 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 3B 00 00 00 00 07 04 06 00 B8 31 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 F1 A4 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 01 84 02 00 35 04 06 00 7C D8 1D 6C [10:14:10]Write to MH i2c: E2 02 01 A1 03 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 16 1C 00 00 00 00 13 04 06 00 B8 31 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 31 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 3B 00 00 00 00 07 04 06 00 B8 31 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 F1 A4 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 01 84 02 00 35 04 06 00 7C D8 1D 6C 00 00 B0 [10:14:10]Write i2c OK [10:14:10]MH_I2C_Read... [10:14:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:10]Read from MH i2c: E2 [10:14:10]MH_I2C_Read... [10:14:10]Read from MH i2c: E2 03 00 [10:14:10]MH_I2C_Read... [10:14:10]Read from MH i2c: E2 03 00 A1 03 00 90 00 18 [10:14:10]RAPDU: 90 00 [10:14:10]wFMCommunicate OK [10:14:10]wFMCommunicate request_size=7 [10:14:10]MH_SAM_APDU [10:14:10]CAPDU: 80 0D 02 02 02 06 A6 [10:14:10]Write to MH i2c: E2 0A 00 A2 03 80 0D 02 02 02 00 06 A6 00 00 CF [10:14:10]Write i2c OK [10:14:10]MH_I2C_Read... [10:14:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:10]Read from MH i2c: E2 [10:14:10]MH_I2C_Read... [10:14:10]Read from MH i2c: E2 03 00 [10:14:10]MH_I2C_Read... [10:14:10]Read from MH i2c: E2 03 00 A2 03 00 90 00 19 [10:14:10]RAPDU: 90 00 [10:14:10]wFMCommunicate OK [10:14:10]wFMCommunicate request_size=4 [10:14:10]MH_SAM_APDU [10:14:10]CAPDU: 80 0D 03 02 [10:14:10]Write to MH i2c: E2 08 00 A3 03 80 0D 03 02 00 00 00 00 21 [10:14:10]Write i2c OK [10:14:10]MH_I2C_Read... [10:14:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:14:10]Read from MH i2c: E2 [10:14:10]MH_I2C_Read... [10:14:10]Read from MH i2c: E2 0B 00 [10:14:10]MH_I2C_Read... [10:14:10]Read from MH i2c: E2 0B 00 A3 03 00 90 57 B9 13 69 4B 03 3F 90 00 CB [10:14:10]RAPDU: 90 57 B9 13 69 4B 03 3F 90 00 [10:14:10]wFMCommunicate OK [10:14:10]SAM_PROTO_SignData done [10:14:10]FM_MakeSignedData done [10:14:10]CreateOFDProtocolMessage [10:14:10]wFMCommunicate request_size=4 [10:14:10]MH_SAM_APDU [10:14:10]CAPDU: 80 11 00 00 [10:14:10]Write to MH i2c: E2 08 00 A4 03 80 11 00 00 00 00 00 00 21 [10:14:10]Write i2c OK [10:14:10]MH_I2C_Read... [10:14:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:10]Read from MH i2c: E2 [10:14:10]MH_I2C_Read... [10:14:10]Read from MH i2c: E2 17 00 [10:14:10]MH_I2C_Read... [10:14:10]Read from MH i2c: E2 17 00 A4 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 77 [10:14:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:14:10]wFMCommunicate OK [10:14:10]CreateOFDProtocolMessage done [10:14:10]OFDSenderStorePacket 164865 [10:14:10]StoreOFDPacket docnum=164865 [10:14:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 51 67 04 01 E3 5B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B8 31 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 31 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 3B 00 00 00 00 07 04 06 00 B8 31 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 F1 A4 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 01 84 02 00 35 04 06 00 7C D8 1D 6C 06 A6 90 57 B9 13 69 4B 03 3F [10:14:10]CheckFolder [10:14:10]dirname=/storage/ofd_packets [10:14:10]CheckFolder done [10:14:10]ProducePacketName [10:14:10]name=ofd_packets/00164865 [10:14:10]NVStorageSaveData ofd_packets/00164865 [10:14:10]File name is /storage/ofd_packets/00164865 [10:14:10]Write 298 bytes [10:14:10]NVStorageSaveData done [10:14:10]OFDSenderStorePacket done [10:14:10]KKMCreateOFDPacket done [10:14:10]NVStorageSaveData kkm_last_timestamp [10:14:10]File name is /storage/kkm_last_timestamp [10:14:10]Write 4 bytes [10:14:10]NVStorageSaveData done [10:14:10]ExternCall_PrintAddStr [10:14:10]wPrintStart [10:14:10]Write to MH i2c: 01 00 00 A5 03 A8 [10:14:10]Write i2c OK [10:14:10]MH_I2C_Read... [10:14:10]Read from MH i2c: 01 [10:14:10]MH_I2C_Read... [10:14:10]Read from MH i2c: 01 07 00 [10:14:10]MH_I2C_Read... [10:14:10]Read from MH i2c: 01 07 00 A5 03 00 00 00 00 00 FF 0F BD [10:14:10]RasterBufferAndPrint [10:14:10]line Счет N : (1)458961 [10:14:10]line ИНН: 02508201610067 [10:14:10]line Контрольно-Кассовый Чек [10:14:10]line ПРОДАЖА [10:14:10]line ТРК (МРК, ГНК) : 11 [10:14:10]line Товар: 2710194210 [10:14:10]line ДТ-К-5 [10:14:10]line 20.000 * 71.90 [10:14:10]line = 1438.00 [10:14:10]line НДС 12% НСП 1% [10:14:10]line > о реализуемом товаре [10:14:10]line ИТОГО: 1438.00 [10:14:10]line НСП 1% : 12.73 [10:14:10]line НДС 12% : 152.71 [10:14:10]line Наличными: 1438.00 [10:14:10]line Безнал.: 0.00 [10:14:10]line Место: АЗС № 72 "Партнер Нефть" [10:14:10]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:14:10]line СНО: Общий режим [10:14:10]line Чек 63 14.07.2024 10:14 [10:14:10]line Смена: 447 ФФД: 1.0 [10:14:10]line ЗНМ: 0300000160 [10:14:10]line РНМ: 0000000000090829 [10:14:10]line Версия ККМ: 001 [10:14:10]line ФМ: 0000000000874718 [10:14:10]line ФД: 164865 [10:14:10]line ФПД: 137267648399014 [10:14:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T101409&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164865&fm=137267648399014&tin=02508201610067®Number=0000000000090829&sum=143800 [10:14:11]OFD Sender: Processing packet 164865 [packets to send 104, broken 103] [10:14:11]ProducePacketName [10:14:11]name=ofd_packets/00164865 [10:14:11]OFD Sender: To server: pG, [10:14:11]CommunicateWithHost lk.salyk.kg:30040 [10:14:11]ConnectInit lk.salyk.kg [10:14:11]written 0, free lines is 4095 [10:14:11]Connected sock=10 [10:14:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 51 67 04 01 E3 5B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B8 31 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 31 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 3B 00 00 00 00 07 04 06 00 B8 31 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 F1 A4 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 01 84 02 00 35 04 06 00 7C D8 1D 6C 06 A6 90 57 B9 13 69 4B 03 3F [10:14:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 1A DC 47 00 84 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 01 84 02 00 F4 03 04 00 7F 4B 93 66 B6 04 01 00 00 4B 1C A1 F6 77 C7 66 72 [10:14:11]CommunicateWithHost err = 0 [10:14:11]CheckOFDResponse [10:14:11]1017 (14) - 77093643461234 [10:14:11]1041 (16) - 0000000000874718 [10:14:11]1040 (4) - 164865 [10:14:11]1012 (4) - 14.07.2024 03:52 [10:14:11]1206 (1) - 0 [10:14:11]OFD Sender: Remove packet 164865 [10:14:11]ProducePacketName [10:14:11]name=ofd_packets/00164865 [10:14:11]NVStorageDeleteData [10:14:11]Write to MH i2c: 01 00 00 CC 03 CF [10:14:11]Write i2c OK [10:14:11]MH_I2C_Read... [10:14:11]Read from MH i2c: 01 [10:14:11]MH_I2C_Read... [10:14:11]Read from MH i2c: 01 07 00 [10:14:11]MH_I2C_Read... [10:14:11]Read from MH i2c: 01 07 00 CC 03 00 00 00 00 00 1F 0D 02 [10:14:11]RasterBufferAndPrint [10:14:11]line [10:14:11]line [10:14:11]line [10:14:11]line [10:14:11]line [10:14:11]written 0, free lines is 3365 [10:14:11]MH_Cut [10:14:11]Write to MH i2c: D1 01 00 D3 03 01 A8 [10:14:11]Write i2c OK [10:14:11]MH_I2C_Read... [10:14:11]Read from MH i2c: D1 [10:14:11]MH_I2C_Read... [10:14:11]Read from MH i2c: D1 01 00 [10:14:11]MH_I2C_Read... [10:14:11]Read from MH i2c: D1 01 00 D3 03 00 A7 [10:14:11]Write to MH i2c: 01 00 00 D4 03 D7 [10:14:11]Write i2c OK [10:14:11]MH_I2C_Read... [10:14:12]OFD Sender: No OFD packet to send [10:14:12]*** Cut start [10:14:12]*** Partial cut [10:14:12]*** CUTSNS_PIN = 1 [10:14:12]*** CUTSNS_PIN = 0 [10:14:12]*** Brake cut motor [10:14:12]Read from MH i2c: 01 [10:14:12]MH_I2C_Read... [10:14:12]*** Stop cut motor [10:14:12]*** Cut end [10:14:12]Read from MH i2c: 01 07 00 [10:14:12]MH_I2C_Read... [10:14:12]Read from MH i2c: 01 07 00 D4 03 00 00 00 00 00 FF 0F EC [10:14:12]process_action close_receipt done [10:14:12]requested_data is exist [10:14:12]produce_requested_data [10:14:12]requested_item fm.sn is exist - process it [10:14:12]wFMCommunicate request_size=4 [10:14:12]MH_SAM_APDU [10:14:12]CAPDU: 80 11 00 00 [10:14:12]Write to MH i2c: E2 08 00 D5 03 80 11 00 00 00 00 00 00 52 [10:14:12]Write i2c OK [10:14:12]MH_I2C_Read... [10:14:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:12]Read from MH i2c: E2 [10:14:12]MH_I2C_Read... [10:14:12]Read from MH i2c: E2 17 00 [10:14:12]MH_I2C_Read... [10:14:12]Read from MH i2c: E2 17 00 D5 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A8 [10:14:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:14:12]wFMCommunicate OK [10:14:12]requested_item fd.num is exist - process it [10:14:12]SAM_PROTO_GetFieldsCounters [10:14:12]wFMCommunicate request_size=4 [10:14:12]MH_SAM_APDU [10:14:12]CAPDU: 80 13 00 00 [10:14:12]Write to MH i2c: E2 08 00 D6 03 80 13 00 00 00 00 00 00 55 [10:14:12]Write i2c OK [10:14:12]MH_I2C_Read... [10:14:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:14:13]Read from MH i2c: E2 [10:14:13]MH_I2C_Read... [10:14:13]Read from MH i2c: E2 62 00 [10:14:13]MH_I2C_Read... [10:14:13]Read from MH i2c: E2 62 00 D6 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 01 84 02 00 0E 04 04 00 BF 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 80 [10:14:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 01 84 02 00 0E 04 04 00 BF 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 [10:14:13]wFMCommunicate OK [10:14:13]SAM_PROTO_GetFieldsCounters done [10:14:13]requested_item shift.num is exist - process it [10:14:13]requested_item shift.opened is exist - process it [10:14:13]req_shift_opened [10:14:13]FM_GetShiftState [10:14:13]SAM_PROTO_GetShiftState [10:14:13]wFMCommunicate request_size=4 [10:14:13]MH_SAM_APDU [10:14:13]CAPDU: 80 13 01 00 [10:14:13]Write to MH i2c: E2 08 00 D7 03 80 13 01 00 00 00 00 00 57 [10:14:13]Write i2c OK [10:14:13]MH_I2C_Read... [10:14:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:13]Read from MH i2c: E2 [10:14:13]MH_I2C_Read... [10:14:13]Read from MH i2c: E2 0E 00 [10:14:13]MH_I2C_Read... [10:14:13]Read from MH i2c: E2 0E 00 D7 03 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 D7 [10:14:13]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [10:14:13]wFMCommunicate OK [10:14:13]SAM_PROTO_GetShiftState done [10:14:13]FM_GetShiftState done [10:14:13]req_shift_opened done [10:14:13]requested_item shift.open_date is exist - process it [10:14:13]req_shift_open_date [10:14:13]req_shift_open_date done [10:14:13]produce_requested_data done [10:14:13]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164865,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [10:14:13]process_action_free close_receipt [10:14:13]json_value_free [10:14:13]json_value_free done [10:14:13]process_json_proto returns [10:14:13]Send response to host [10:14:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164865,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [10:14:13]free response buf [10:14:13]execute_script done [10:14:13]execute_script returns [10:14:13]free content buf [10:14:13]Sock 7.Close socket [10:14:13]Sock 7.Thread stoped [10:14:17]OFD Sender: No OFD packet to send [10:14:22]OFD Sender: No OFD packet to send [10:14:27]OFD Sender: No OFD packet to send [10:14:32]OFD Sender: No OFD packet to send [10:14:37]OFD Sender: No OFD packet to send [10:14:42]OFD Sender: No OFD packet to send [10:14:47]OFD Sender: No OFD packet to send [10:14:52]OFD Sender: No OFD packet to send [10:14:57]accept exits with 9 [10:14:57]New connection [10:14:57]New thread 3067473252 created [10:14:57]Thread 3067616612 joined [10:14:57]Waiting for new connection... [10:14:57] Sock 9.Parse request [10:14:57]Sock 9.Check first char [10:14:57]Sock 9.First char is OK [10:14:57]request: POST /json_proto HTTP/1.0 [10:14:57]Method: POST [10:14:57]URL: /json_proto [10:14:57]Method is POST - this is cgi request [10:14:57]url: /json_proto [10:14:57]query_string will be loaded in cgi processing [10:14:57]execute_cgi json_proto POST (null) [10:14:57]execute_cgi path=json_proto method=POST [10:14:57]POST find Content-Length [10:14:57]Host: 172.17.56.4:8080 [10:14:57]Content-Length: 636 [10:14:57]Content-Type: application/json [10:14:57] [10:14:57]POST finish read [10:14:57]Found Content-Length = 636 [10:14:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458962", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 3.630, "sum" : 261.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 261.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:57]execute_script... [10:14:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458962", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 3.630, "sum" : 261.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 261.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:57]POST & json_proto [10:14:57]process_json_proto [10:14:57]json parsed OK: [10:14:57]protocol is kg_v1.0 [10:14:57]action value=close_receipt [10:14:57]process_action close_receipt [10:14:57]cmd_close_receipt [10:14:57]MH_GetDate [10:14:57]Write to MH i2c: F0 00 00 D8 03 CA [10:14:57]Write i2c OK [10:14:57]MH_I2C_Read... [10:14:57]Read from MH i2c: F0 [10:14:57]MH_I2C_Read... [10:14:57]Read from MH i2c: F0 09 00 [10:14:57]MH_I2C_Read... [10:14:57]Read from MH i2c: F0 09 00 D8 03 00 21 A5 93 66 C9 DC B2 64 4D [10:14:57]GetLastDocTimeStamp 1720952049 [10:14:57]current date 1720952097 [10:14:57]FM_GetShiftState [10:14:57]SAM_PROTO_GetShiftState [10:14:57]wFMCommunicate request_size=4 [10:14:57]MH_SAM_APDU [10:14:57]CAPDU: 80 13 01 00 [10:14:57]Write to MH i2c: E2 08 00 D9 03 80 13 01 00 00 00 00 00 59 [10:14:57]Write i2c OK [10:14:57]MH_I2C_Read... [10:14:57]OFD Sender: No OFD packet to send [10:14:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:57]Read from MH i2c: E2 [10:14:57]MH_I2C_Read... [10:14:57]Read from MH i2c: E2 0E 00 [10:14:57]MH_I2C_Read... [10:14:57]Read from MH i2c: E2 0E 00 D9 03 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 D9 [10:14:57]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [10:14:57]wFMCommunicate OK [10:14:57]SAM_PROTO_GetShiftState done [10:14:57]FM_GetShiftState done [10:14:57]opened in 1720917342 [10:14:57]opened+sec_in_day 1721003742 [10:14:57]quantity*price = 26099 [10:14:57]sum+1 = 26101 [10:14:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 261.00 НСП 1% : 2.31 НДС 12% : 27.72 Наличными: 261.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 64 14.07.2024 10:14 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164866 ФПД: 188420044072669 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T101457&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164866&fm=188420044072669&tin=02508201610067®Number=0000000000090829&sum=26100 [10:14:58]StoreToDocumentArchive [10:14:58]shift 447 fd 164866 [10:14:58]save to /storage/0447/doc_00164866 [10:14:58]save last doc name /storage/0447/doc_00164866 to /storage/kkm_last_doc_name [10:14:58]save OK [10:14:58]Clear old archive folders... [10:14:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:14:58]tlvbuf is 0074AEF0 [10:14:58]SAM_PROTO_ClearQueue [10:14:58]wFMCommunicate request_size=4 [10:14:58]MH_SAM_APDU [10:14:58]CAPDU: 80 09 00 00 [10:14:58]Write to MH i2c: E2 08 00 E6 03 80 09 00 00 00 00 00 00 5B [10:14:58]Write i2c OK [10:14:58]MH_I2C_Read... [10:14:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:14:58]Read from MH i2c: E2 [10:14:58]MH_I2C_Read... [10:14:58]Read from MH i2c: E2 03 00 [10:14:58]MH_I2C_Read... [10:14:58]Read from MH i2c: E2 03 00 E6 03 00 90 00 5D [10:14:58]RAPDU: 90 00 [10:14:58]wFMCommunicate OK [10:14:58]SAM_PROTO_ClearQueue done [10:14:58]KKMCreateOFDPacket [10:14:58]OFDProtocolAddRootSTLVToBuf [10:14:58]FM_MakeSignedData [10:14:58]FM_MakeSignedData [10:14:58]SAM_PROTO_SignData [10:14:58]wFMCommunicate request_size=4 [10:14:58]MH_SAM_APDU [10:14:58]CAPDU: 80 0D 01 02 [10:14:58]Write to MH i2c: E2 08 00 E7 03 80 0D 01 02 00 00 00 00 63 [10:14:58]Write i2c OK [10:14:58]MH_I2C_Read... [10:14:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:14:58]Read from MH i2c: E2 [10:14:58]MH_I2C_Read... [10:14:58]Read from MH i2c: E2 03 00 [10:14:58]MH_I2C_Read... [10:14:58]Read from MH i2c: E2 03 00 E7 03 00 90 00 5E [10:14:58]RAPDU: 90 00 [10:14:58]wFMCommunicate OK [10:14:58]wFMCommunicate request_size=255 [10:14:58]MH_SAM_APDU [10:14:58]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 2E 0E 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 F4 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 0A 00 00 00 00 07 04 06 00 F4 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 21 A5 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 02 84 02 00 35 04 06 00 AB 5D F5 CB [10:14:58]Write to MH i2c: E2 02 01 E8 03 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 2E 0E 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 F4 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 0A 00 00 00 00 07 04 06 00 F4 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 21 A5 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 02 84 02 00 35 04 06 00 AB 5D F5 CB 00 00 13 [10:14:58]Write i2c OK [10:14:58]MH_I2C_Read... [10:14:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:58]Read from MH i2c: E2 [10:14:58]MH_I2C_Read... [10:14:58]Read from MH i2c: E2 03 00 [10:14:58]MH_I2C_Read... [10:14:58]Read from MH i2c: E2 03 00 E8 03 00 90 00 5F [10:14:58]RAPDU: 90 00 [10:14:58]wFMCommunicate OK [10:14:58]wFMCommunicate request_size=7 [10:14:58]MH_SAM_APDU [10:14:58]CAPDU: 80 0D 02 02 02 A6 DD [10:14:58]Write to MH i2c: E2 0A 00 E9 03 80 0D 02 02 02 00 A6 DD 00 00 ED [10:14:58]Write i2c OK [10:14:58]MH_I2C_Read... [10:14:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:58]Read from MH i2c: E2 [10:14:58]MH_I2C_Read... [10:14:58]Read from MH i2c: E2 03 00 [10:14:58]MH_I2C_Read... [10:14:58]Read from MH i2c: E2 03 00 E9 03 00 90 00 60 [10:14:58]RAPDU: 90 00 [10:14:58]wFMCommunicate OK [10:14:58]wFMCommunicate request_size=4 [10:14:58]MH_SAM_APDU [10:14:58]CAPDU: 80 0D 03 02 [10:14:58]Write to MH i2c: E2 08 00 EA 03 80 0D 03 02 00 00 00 00 68 [10:14:58]Write i2c OK [10:14:58]MH_I2C_Read... [10:14:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:14:58]Read from MH i2c: E2 [10:14:58]MH_I2C_Read... [10:14:58]Read from MH i2c: E2 0B 00 [10:14:58]MH_I2C_Read... [10:14:58]Read from MH i2c: E2 0B 00 EA 03 00 6F 29 CA 1D 4B 29 F1 AB 90 00 F8 [10:14:58]RAPDU: 6F 29 CA 1D 4B 29 F1 AB 90 00 [10:14:58]wFMCommunicate OK [10:14:58]SAM_PROTO_SignData done [10:14:58]FM_MakeSignedData done [10:14:58]CreateOFDProtocolMessage [10:14:58]wFMCommunicate request_size=4 [10:14:58]MH_SAM_APDU [10:14:58]CAPDU: 80 11 00 00 [10:14:58]Write to MH i2c: E2 08 00 EB 03 80 11 00 00 00 00 00 00 68 [10:14:58]Write i2c OK [10:14:58]MH_I2C_Read... [10:14:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:58]Read from MH i2c: E2 [10:14:58]MH_I2C_Read... [10:14:58]Read from MH i2c: E2 17 00 [10:14:58]MH_I2C_Read... [10:14:58]Read from MH i2c: E2 17 00 EB 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 BE [10:14:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:14:58]wFMCommunicate OK [10:14:58]CreateOFDProtocolMessage done [10:14:58]OFDSenderStorePacket 164866 [10:14:58]StoreOFDPacket docnum=164866 [10:14:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 0E EF 04 01 41 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 2E 0E 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 F4 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 0A 00 00 00 00 07 04 06 00 F4 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 21 A5 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 02 84 02 00 35 04 06 00 AB 5D F5 CB A6 DD 6F 29 CA 1D 4B 29 F1 AB [10:14:58]CheckFolder [10:14:58]dirname=/storage/ofd_packets [10:14:58]CheckFolder done [10:14:58]ProducePacketName [10:14:58]name=ofd_packets/00164866 [10:14:58]NVStorageSaveData ofd_packets/00164866 [10:14:58]File name is /storage/ofd_packets/00164866 [10:14:58]Write 298 bytes [10:14:58]NVStorageSaveData done [10:14:58]OFDSenderStorePacket done [10:14:58]KKMCreateOFDPacket done [10:14:58]NVStorageSaveData kkm_last_timestamp [10:14:58]File name is /storage/kkm_last_timestamp [10:14:58]Write 4 bytes [10:14:58]NVStorageSaveData done [10:14:58]ExternCall_PrintAddStr [10:14:58]wPrintStart [10:14:58]Write to MH i2c: 01 00 00 EC 03 EF [10:14:58]Write i2c OK [10:14:58]MH_I2C_Read... [10:14:58]Read from MH i2c: 01 [10:14:58]MH_I2C_Read... [10:14:58]Read from MH i2c: 01 07 00 [10:14:58]MH_I2C_Read... [10:14:58]Read from MH i2c: 01 07 00 EC 03 00 00 00 00 00 FF 0F 04 [10:14:58]RasterBufferAndPrint [10:14:58]line Счет N : (1)458962 [10:14:58]line ИНН: 02508201610067 [10:14:58]line Контрольно-Кассовый Чек [10:14:58]line ПРОДАЖА [10:14:58]line ТРК (МРК, ГНК) : 11 [10:14:58]line Товар: 2710194210 [10:14:58]line ДТ-К-5 [10:14:58]line 3.630 * 71.90 [10:14:58]line = 261.00 [10:14:58]line НДС 12% НСП 1% [10:14:58]line > о реализуемом товаре [10:14:58]line ИТОГО: 261.00 [10:14:58]line НСП 1% : 2.31 [10:14:58]line НДС 12% : 27.72 [10:14:58]line Наличными: 261.00 [10:14:58]line Безнал.: 0.00 [10:14:58]line Место: АЗС № 72 "Партнер Нефть" [10:14:58]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:14:58]line СНО: Общий режим [10:14:58]line Чек 64 14.07.2024 10:14 [10:14:58]line Смена: 447 ФФД: 1.0 [10:14:58]line ЗНМ: 0300000160 [10:14:58]line РНМ: 0000000000090829 [10:14:58]line Версия ККМ: 001 [10:14:58]line ФМ: 0000000000874718 [10:14:58]line ФД: 164866 [10:14:58]line ФПД: 188420044072669 [10:14:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T101457&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164866&fm=188420044072669&tin=02508201610067®Number=0000000000090829&sum=26100 [10:14:59]OFD Sender: Processing packet 164866 [packets to send 104, broken 103] [10:14:59]ProducePacketName [10:14:59]name=ofd_packets/00164866 [10:14:59]OFD Sender: To server: pG, [10:14:59]CommunicateWithHost lk.salyk.kg:30040 [10:14:59]ConnectInit lk.salyk.kg [10:14:59]written 0, free lines is 4095 [10:14:59]Connected sock=10 [10:14:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 0E EF 04 01 41 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 2E 0E 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 F4 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 0A 00 00 00 00 07 04 06 00 F4 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 21 A5 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 02 84 02 00 35 04 06 00 AB 5D F5 CB A6 DD 6F 29 CA 1D 4B 29 F1 AB [10:14:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 9B BF 47 00 A4 FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 02 84 02 00 F4 03 04 00 AF 4B 93 66 B6 04 01 00 00 FB E0 B5 9C 19 25 AF C4 [10:14:59]CommunicateWithHost err = 0 [10:14:59]CheckOFDResponse [10:14:59]1017 (14) - 77093643461234 [10:14:59]1041 (16) - 0000000000874718 [10:14:59]1040 (4) - 164866 [10:14:59]1012 (4) - 14.07.2024 03:53 [10:14:59]1206 (1) - 0 [10:14:59]OFD Sender: Remove packet 164866 [10:14:59]ProducePacketName [10:14:59]name=ofd_packets/00164866 [10:14:59]NVStorageDeleteData [10:14:59]Write to MH i2c: 01 00 00 13 04 17 [10:14:59]Write i2c OK [10:14:59]MH_I2C_Read... [10:14:59]Read from MH i2c: 01 [10:14:59]MH_I2C_Read... [10:14:59]Read from MH i2c: 01 07 00 [10:14:59]MH_I2C_Read... [10:14:59]Read from MH i2c: 01 07 00 13 04 00 00 00 00 00 1D 0D 48 [10:14:59]RasterBufferAndPrint [10:14:59]line [10:14:59]line [10:14:59]line [10:14:59]line [10:14:59]line [10:14:59]written 0, free lines is 3363 [10:14:59]MH_Cut [10:14:59]Write to MH i2c: D1 01 00 1A 04 01 F0 [10:14:59]Write i2c OK [10:14:59]MH_I2C_Read... [10:14:59]Read from MH i2c: D1 [10:14:59]MH_I2C_Read... [10:14:59]Read from MH i2c: D1 01 00 [10:14:59]MH_I2C_Read... [10:14:59]Read from MH i2c: D1 01 00 1A 04 00 EF [10:14:59]Write to MH i2c: 01 00 00 1B 04 1F [10:14:59]Write i2c OK [10:14:59]MH_I2C_Read... [10:14:59]OFD Sender: No OFD packet to send [10:15:00]*** Cut start [10:15:00]*** Partial cut [10:15:00]*** CUTSNS_PIN = 1 [10:15:00]*** CUTSNS_PIN = 0 [10:15:00]*** Brake cut motor [10:15:00]Read from MH i2c: 01 [10:15:00]MH_I2C_Read... [10:15:00]*** Stop cut motor [10:15:00]*** Cut end [10:15:00]Read from MH i2c: 01 07 00 [10:15:00]MH_I2C_Read... [10:15:00]Read from MH i2c: 01 07 00 1B 04 00 00 00 00 00 FF 0F 34 [10:15:00]process_action close_receipt done [10:15:00]requested_data is exist [10:15:00]produce_requested_data [10:15:00]requested_item fm.sn is exist - process it [10:15:00]wFMCommunicate request_size=4 [10:15:00]MH_SAM_APDU [10:15:00]CAPDU: 80 11 00 00 [10:15:00]Write to MH i2c: E2 08 00 1C 04 80 11 00 00 00 00 00 00 9A [10:15:00]Write i2c OK [10:15:00]MH_I2C_Read... [10:15:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:00]Read from MH i2c: E2 [10:15:00]MH_I2C_Read... [10:15:00]Read from MH i2c: E2 17 00 [10:15:00]MH_I2C_Read... [10:15:00]Read from MH i2c: E2 17 00 1C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F0 [10:15:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:15:00]wFMCommunicate OK [10:15:00]requested_item fd.num is exist - process it [10:15:00]SAM_PROTO_GetFieldsCounters [10:15:00]wFMCommunicate request_size=4 [10:15:00]MH_SAM_APDU [10:15:00]CAPDU: 80 13 00 00 [10:15:00]Write to MH i2c: E2 08 00 1D 04 80 13 00 00 00 00 00 00 9D [10:15:00]Write i2c OK [10:15:00]MH_I2C_Read... [10:15:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:15:00]Read from MH i2c: E2 [10:15:00]MH_I2C_Read... [10:15:00]Read from MH i2c: E2 62 00 [10:15:00]MH_I2C_Read... [10:15:00]Read from MH i2c: E2 62 00 1D 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 02 84 02 00 0E 04 04 00 BF 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 CC [10:15:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 02 84 02 00 0E 04 04 00 BF 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 [10:15:00]wFMCommunicate OK [10:15:00]SAM_PROTO_GetFieldsCounters done [10:15:00]requested_item shift.num is exist - process it [10:15:00]requested_item shift.opened is exist - process it [10:15:00]req_shift_opened [10:15:00]FM_GetShiftState [10:15:00]SAM_PROTO_GetShiftState [10:15:00]wFMCommunicate request_size=4 [10:15:00]MH_SAM_APDU [10:15:00]CAPDU: 80 13 01 00 [10:15:00]Write to MH i2c: E2 08 00 1E 04 80 13 01 00 00 00 00 00 9F [10:15:00]Write i2c OK [10:15:00]MH_I2C_Read... [10:15:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:01]Read from MH i2c: E2 [10:15:01]MH_I2C_Read... [10:15:01]Read from MH i2c: E2 0E 00 [10:15:01]MH_I2C_Read... [10:15:01]Read from MH i2c: E2 0E 00 1E 04 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 1F [10:15:01]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [10:15:01]wFMCommunicate OK [10:15:01]SAM_PROTO_GetShiftState done [10:15:01]FM_GetShiftState done [10:15:01]req_shift_opened done [10:15:01]requested_item shift.open_date is exist - process it [10:15:01]req_shift_open_date [10:15:01]req_shift_open_date done [10:15:01]produce_requested_data done [10:15:01]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164866,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [10:15:01]process_action_free close_receipt [10:15:01]json_value_free [10:15:01]json_value_free done [10:15:01]process_json_proto returns [10:15:01]Send response to host [10:15:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164866,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [10:15:01]free response buf [10:15:01]execute_script done [10:15:01]execute_script returns [10:15:01]free content buf [10:15:01]Sock 9.Close socket [10:15:01]Sock 9.Thread stoped [10:15:04]OFD Sender: No OFD packet to send [10:15:09]OFD Sender: No OFD packet to send [10:15:14]OFD Sender: No OFD packet to send [10:15:19]OFD Sender: No OFD packet to send [10:15:24]OFD Sender: No OFD packet to send [10:15:29]OFD Sender: No OFD packet to send [10:15:34]OFD Sender: No OFD packet to send [10:15:39]OFD Sender: No OFD packet to send [10:15:44]OFD Sender: No OFD packet to send [10:15:49]OFD Sender: No OFD packet to send [10:15:51]accept exits with 7 [10:15:51]New connection [10:15:51]New thread 3067616612 created [10:15:51]Thread 3067473252 joined [10:15:51]Waiting for new connection... [10:15:51] Sock 7.Parse request [10:15:51]Sock 7.Check first char [10:15:51]Sock 7.First char is OK [10:15:51]request: POST /json_proto HTTP/1.0 [10:15:51]Method: POST [10:15:51]URL: /json_proto [10:15:51]Method is POST - this is cgi request [10:15:51]url: /json_proto [10:15:51]query_string will be loaded in cgi processing [10:15:51]execute_cgi json_proto POST (null) [10:15:51]execute_cgi path=json_proto method=POST [10:15:51]POST find Content-Length [10:15:51]Host: 172.17.56.4:8080 [10:15:51]Content-Length: 677 [10:15:51]Content-Type: application/json [10:15:51] [10:15:51]POST finish read [10:15:51]Found Content-Length = 677 [10:15:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458963", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:15:51]execute_script... [10: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)458963", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:15:51]POST & json_proto [10:15:51]process_json_proto [10:15:51]json parsed OK: [10:15:51]protocol is kg_v1.0 [10:15:51]action value=close_receipt [10:15:51]process_action close_receipt [10:15:51]cmd_close_receipt [10:15:51]MH_GetDate [10:15:51]Write to MH i2c: F0 00 00 1F 04 12 [10:15:51]Write i2c OK [10:15:51]MH_I2C_Read... [10:15:51]Read from MH i2c: F0 [10:15:51]MH_I2C_Read... [10:15:51]Read from MH i2c: F0 09 00 [10:15:51]MH_I2C_Read... [10:15:51]Read from MH i2c: F0 09 00 1F 04 00 57 A5 93 66 C9 DC B2 64 CB [10:15:51]GetLastDocTimeStamp 1720952097 [10:15:51]current date 1720952151 [10:15:51]FM_GetShiftState [10:15:51]SAM_PROTO_GetShiftState [10:15:51]wFMCommunicate request_size=4 [10:15:51]MH_SAM_APDU [10:15:51]CAPDU: 80 13 01 00 [10:15:51]Write to MH i2c: E2 08 00 20 04 80 13 01 00 00 00 00 00 A1 [10:15:51]Write i2c OK [10:15:51]MH_I2C_Read... [10:15:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:51]Read from MH i2c: E2 [10:15:51]MH_I2C_Read... [10:15:51]Read from MH i2c: E2 0E 00 [10:15:51]MH_I2C_Read... [10:15:51]Read from MH i2c: E2 0E 00 20 04 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 21 [10:15:51]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [10:15:51]wFMCommunicate OK [10:15:51]SAM_PROTO_GetShiftState done [10:15:51]FM_GetShiftState done [10:15:51]opened in 1720917342 [10:15:51]opened+sec_in_day 1721003742 [10:15:51]quantity*price = 50008 [10:15:51]sum+1 = 50009 [10:15:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 65 14.07.2024 10:15 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164867 ФПД: 128554465073132 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T101551&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164867&fm=128554465073132&tin=02508201610067®Number=0000000000090829&sum=50000 [10:15:52]StoreToDocumentArchive [10:15:52]shift 447 fd 164867 [10:15:52]save to /storage/0447/doc_00164867 [10:15:52]save last doc name /storage/0447/doc_00164867 to /storage/kkm_last_doc_name [10:15:52]save OK [10:15:52]Clear old archive folders... [10:15:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:15:52]tlvbuf is 00738CF0 [10:15:52]SAM_PROTO_ClearQueue [10:15:52]wFMCommunicate request_size=4 [10:15:52]MH_SAM_APDU [10:15:52]CAPDU: 80 09 00 00 [10:15:52]Write to MH i2c: E2 08 00 2D 04 80 09 00 00 00 00 00 00 A3 [10:15:52]Write i2c OK [10:15:52]MH_I2C_Read... [10:15:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:15:52]Read from MH i2c: E2 [10:15:52]MH_I2C_Read... [10:15:52]Read from MH i2c: E2 03 00 [10:15:52]MH_I2C_Read... [10:15:52]Read from MH i2c: E2 03 00 2D 04 00 90 00 A5 [10:15:52]RAPDU: 90 00 [10:15:52]wFMCommunicate OK [10:15:52]SAM_PROTO_ClearQueue done [10:15:52]KKMCreateOFDPacket [10:15:52]OFDProtocolAddRootSTLVToBuf [10:15:52]FM_MakeSignedData [10:15:52]FM_MakeSignedData [10:15:52]SAM_PROTO_SignData [10:15:52]wFMCommunicate request_size=4 [10:15:52]MH_SAM_APDU [10:15:52]CAPDU: 80 0D 01 02 [10:15:52]Write to MH i2c: E2 08 00 2E 04 80 0D 01 02 00 00 00 00 AB [10:15:52]Write i2c OK [10:15:52]MH_I2C_Read... [10:15:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:15:52]Read from MH i2c: E2 [10:15:52]MH_I2C_Read... [10:15:52]Read from MH i2c: E2 03 00 [10:15:52]MH_I2C_Read... [10:15:52]Read from MH i2c: E2 03 00 2E 04 00 90 00 A6 [10:15:52]RAPDU: 90 00 [10:15:52]wFMCommunicate OK [10:15:52]wFMCommunicate request_size=255 [10:15:52]MH_SAM_APDU [10:15:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 41 00 00 00 F4 03 04 00 57 A5 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 03 84 02 00 35 04 06 00 74 [10:15:52]Write to MH i2c: E2 02 01 2F 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 41 00 00 00 F4 03 04 00 57 A5 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 03 84 02 00 35 04 06 00 74 00 00 17 [10:15:52]Write i2c OK [10:15:52]MH_I2C_Read... [10:15:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:52]Read from MH i2c: E2 [10:15:52]MH_I2C_Read... [10:15:52]Read from MH i2c: E2 03 00 [10:15:52]MH_I2C_Read... [10:15:52]Read from MH i2c: E2 03 00 2F 04 00 90 00 A7 [10:15:52]RAPDU: 90 00 [10:15:52]wFMCommunicate OK [10:15:52]wFMCommunicate request_size=10 [10:15:52]MH_SAM_APDU [10:15:52]CAPDU: 80 0D 02 02 05 EB 6B 39 97 EC [10:15:52]Write to MH i2c: E2 0D 00 30 04 80 0D 02 02 05 00 EB 6B 39 97 EC 00 00 CA [10:15:52]Write i2c OK [10:15:52]MH_I2C_Read... [10:15:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:52]Read from MH i2c: E2 [10:15:52]MH_I2C_Read... [10:15:52]Read from MH i2c: E2 03 00 [10:15:52]MH_I2C_Read... [10:15:52]Read from MH i2c: E2 03 00 30 04 00 90 00 A8 [10:15:52]RAPDU: 90 00 [10:15:52]wFMCommunicate OK [10:15:52]wFMCommunicate request_size=4 [10:15:52]MH_SAM_APDU [10:15:52]CAPDU: 80 0D 03 02 [10:15:52]Write to MH i2c: E2 08 00 31 04 80 0D 03 02 00 00 00 00 B0 [10:15:52]Write i2c OK [10:15:52]MH_I2C_Read... [10:15:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:15:52]Read from MH i2c: E2 [10:15:52]MH_I2C_Read... [10:15:52]Read from MH i2c: E2 0B 00 [10:15:52]MH_I2C_Read... [10:15:52]Read from MH i2c: E2 0B 00 31 04 00 FB BD BA 7C F8 43 E6 0B 90 00 CB [10:15:52]RAPDU: FB BD BA 7C F8 43 E6 0B 90 00 [10:15:52]wFMCommunicate OK [10:15:52]SAM_PROTO_SignData done [10:15:52]FM_MakeSignedData done [10:15:52]CreateOFDProtocolMessage [10:15:52]wFMCommunicate request_size=4 [10:15:52]MH_SAM_APDU [10:15:52]CAPDU: 80 11 00 00 [10:15:52]Write to MH i2c: E2 08 00 32 04 80 11 00 00 00 00 00 00 B0 [10:15:52]Write i2c OK [10:15:52]MH_I2C_Read... [10:15:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:52]Read from MH i2c: E2 [10:15:52]MH_I2C_Read... [10:15:52]Read from MH i2c: E2 17 00 [10:15:52]MH_I2C_Read... [10:15:52]Read from MH i2c: E2 17 00 32 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 06 [10:15:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:15:52]wFMCommunicate OK [10:15:52]CreateOFDProtocolMessage done [10:15:52]OFDSenderStorePacket 164867 [10:15:52]StoreOFDPacket docnum=164867 [10:15:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 78 4D 07 01 5B 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 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 41 00 00 00 F4 03 04 00 57 A5 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 03 84 02 00 35 04 06 00 74 EB 6B 39 97 EC FB BD BA 7C F8 43 E6 0B [10:15:52]CheckFolder [10:15:52]dirname=/storage/ofd_packets [10:15:52]CheckFolder done [10:15:52]ProducePacketName [10:15:52]name=ofd_packets/00164867 [10:15:52]NVStorageSaveData ofd_packets/00164867 [10:15:52]File name is /storage/ofd_packets/00164867 [10:15:52]Write 301 bytes [10:15:52]NVStorageSaveData done [10:15:52]OFDSenderStorePacket done [10:15:52]KKMCreateOFDPacket done [10:15:52]NVStorageSaveData kkm_last_timestamp [10:15:52]File name is /storage/kkm_last_timestamp [10:15:52]Write 4 bytes [10:15:52]NVStorageSaveData done [10:15:52]ExternCall_PrintAddStr [10:15:52]wPrintStart [10:15:52]Write to MH i2c: 01 00 00 33 04 37 [10:15:52]Write i2c OK [10:15:52]MH_I2C_Read... [10:15:52]Read from MH i2c: 01 [10:15:52]MH_I2C_Read... [10:15:52]Read from MH i2c: 01 07 00 [10:15:52]MH_I2C_Read... [10:15:52]Read from MH i2c: 01 07 00 33 04 00 00 00 00 00 FF 0F 4C [10:15:52]RasterBufferAndPrint [10:15:52]line Счет N : (1)458963 [10:15:52]line ИНН: 02508201610067 [10:15:52]line Контрольно-Кассовый Чек [10:15:52]line ПРОДАЖА [10:15:52]line ТРК (МРК, ГНК) : 22 [10:15:52]line Товар: 2710124130 [10:15:52]line Аи-92-К-5 [10:15:52]line 7.600 * 65.80 [10:15:52]line = 500.08 [10:15:52]line НДС 12% НСП 1% [10:15:52]line > о реализуемом товаре [10:15:52]line ОКРУГЛЕНИЕ: -0.08 [10:15:52]line ИТОГО: 500.00 [10:15:52]line Внесено: 500.00 [10:15:52]line СДАЧА: 0.00 [10:15:52]line НСП 1% : 4.42 [10:15:52]line НДС 12% : 53.11 [10:15:52]line Наличными: 500.00 [10:15:52]line Безнал.: 0.00 [10:15:52]line Место: АЗС № 72 "Партнер Нефть" [10:15:52]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:15:52]line СНО: Общий режим [10:15:52]line Чек 65 14.07.2024 10:15 [10:15:52]line Смена: 447 ФФД: 1.0 [10:15:52]line ЗНМ: 0300000160 [10:15:52]line РНМ: 0000000000090829 [10:15:52]line Версия ККМ: 001 [10:15:52]line ФМ: 0000000000874718 [10:15:52]line ФД: 164867 [10:15:52]line ФПД: 128554465073132 [10:15:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T101551&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164867&fm=128554465073132&tin=02508201610067®Number=0000000000090829&sum=50000 [10:15:53]OFD Sender: Processing packet 164867 [packets to send 104, broken 103] [10:15:53]ProducePacketName [10:15:53]name=ofd_packets/00164867 [10:15:53]OFD Sender: To server: pG, [10:15:53]CommunicateWithHost lk.salyk.kg:30040 [10:15:53]ConnectInit lk.salyk.kg [10:15:53]written 0, free lines is 4095 [10:15:53]Connected sock=11 [10:15:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 78 4D 07 01 5B 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 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 41 00 00 00 F4 03 04 00 57 A5 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 03 84 02 00 35 04 06 00 74 EB 6B 39 97 EC FB BD BA 7C F8 43 E6 0B [10:15:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 8C 7C 47 00 7A 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 03 84 02 00 F4 03 04 00 E5 4B 93 66 B6 04 01 00 00 49 2B 0E 4B E3 06 4E 7F [10:15:53]CommunicateWithHost err = 0 [10:15:53]CheckOFDResponse [10:15:53]1017 (14) - 77093643461234 [10:15:53]1041 (16) - 0000000000874718 [10:15:53]1040 (4) - 164867 [10:15:53]1012 (4) - 14.07.2024 03:54 [10:15:53]1206 (1) - 0 [10:15:53]OFD Sender: Remove packet 164867 [10:15:53]ProducePacketName [10:15:53]name=ofd_packets/00164867 [10:15:53]NVStorageDeleteData [10:15:53]Write to MH i2c: 01 00 00 5D 04 61 [10:15:53]Write i2c OK [10:15:53]MH_I2C_Read... [10:15:53]Read from MH i2c: 01 [10:15:53]MH_I2C_Read... [10:15:53]Read from MH i2c: 01 07 00 [10:15:53]MH_I2C_Read... [10:15:53]Read from MH i2c: 01 07 00 5D 04 00 00 00 00 00 F3 0C 67 [10:15:53]RasterBufferAndPrint [10:15:53]line [10:15:53]line [10:15:53]line [10:15:53]line [10:15:53]line [10:15:53]written 0, free lines is 3322 [10:15:53]MH_Cut [10:15:53]Write to MH i2c: D1 01 00 64 04 01 3A [10:15:53]Write i2c OK [10:15:53]MH_I2C_Read... [10:15:53]Read from MH i2c: D1 [10:15:53]MH_I2C_Read... [10:15:53]Read from MH i2c: D1 01 00 [10:15:53]MH_I2C_Read... [10:15:53]Read from MH i2c: D1 01 00 64 04 00 39 [10:15:53]Write to MH i2c: 01 00 00 65 04 69 [10:15:53]Write i2c OK [10:15:53]MH_I2C_Read... [10:15:53]OFD Sender: No OFD packet to send [10:15:54]*** Cut start [10:15:54]*** Partial cut [10:15:54]*** CUTSNS_PIN = 1 [10:15:54]*** CUTSNS_PIN = 0 [10:15:54]*** Brake cut motor [10:15:54]Read from MH i2c: 01 [10:15:54]MH_I2C_Read... [10:15:54]*** Stop cut motor [10:15:54]*** Cut end [10:15:54]Read from MH i2c: 01 07 00 [10:15:54]MH_I2C_Read... [10:15:54]Read from MH i2c: 01 07 00 65 04 00 00 00 00 00 FF 0F 7E [10:15:54]process_action close_receipt done [10:15:54]requested_data is exist [10:15:54]produce_requested_data [10:15:54]requested_item fm.sn is exist - process it [10:15:54]wFMCommunicate request_size=4 [10:15:54]MH_SAM_APDU [10:15:54]CAPDU: 80 11 00 00 [10:15:54]Write to MH i2c: E2 08 00 66 04 80 11 00 00 00 00 00 00 E4 [10:15:54]Write i2c OK [10:15:54]MH_I2C_Read... [10:15:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:54]Read from MH i2c: E2 [10:15:54]MH_I2C_Read... [10:15:54]Read from MH i2c: E2 17 00 [10:15:54]MH_I2C_Read... [10:15:54]Read from MH i2c: E2 17 00 66 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 3A [10:15:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:15:54]wFMCommunicate OK [10:15:54]requested_item fd.num is exist - process it [10:15:54]SAM_PROTO_GetFieldsCounters [10:15:54]wFMCommunicate request_size=4 [10:15:54]MH_SAM_APDU [10:15:54]CAPDU: 80 13 00 00 [10:15:54]Write to MH i2c: E2 08 00 67 04 80 13 00 00 00 00 00 00 E7 [10:15:54]Write i2c OK [10:15:54]MH_I2C_Read... [10:15:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:15:54]Read from MH i2c: E2 [10:15:54]MH_I2C_Read... [10:15:54]Read from MH i2c: E2 62 00 [10:15:54]MH_I2C_Read... [10:15:54]Read from MH i2c: E2 62 00 67 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 03 84 02 00 0E 04 04 00 BF 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 1A [10:15:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 03 84 02 00 0E 04 04 00 BF 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 [10:15:54]wFMCommunicate OK [10:15:54]SAM_PROTO_GetFieldsCounters done [10:15:54]requested_item shift.num is exist - process it [10:15:54]requested_item shift.opened is exist - process it [10:15:54]req_shift_opened [10:15:54]FM_GetShiftState [10:15:54]SAM_PROTO_GetShiftState [10:15:54]wFMCommunicate request_size=4 [10:15:54]MH_SAM_APDU [10:15:54]CAPDU: 80 13 01 00 [10:15:54]Write to MH i2c: E2 08 00 68 04 80 13 01 00 00 00 00 00 E9 [10:15:54]Write i2c OK [10:15:54]MH_I2C_Read... [10:15:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:55]Read from MH i2c: E2 [10:15:55]MH_I2C_Read... [10:15:55]Read from MH i2c: E2 0E 00 [10:15:55]MH_I2C_Read... [10:15:55]Read from MH i2c: E2 0E 00 68 04 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 69 [10:15:55]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [10:15:55]wFMCommunicate OK [10:15:55]SAM_PROTO_GetShiftState done [10:15:55]FM_GetShiftState done [10:15:55]req_shift_opened done [10:15:55]requested_item shift.open_date is exist - process it [10:15:55]req_shift_open_date [10:15:55]req_shift_open_date done [10:15:55]produce_requested_data done [10:15:55]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164867,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [10:15:55]process_action_free close_receipt [10:15:55]json_value_free [10:15:55]json_value_free done [10:15:55]process_json_proto returns [10:15:55]Send response to host [10:15:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164867,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [10:15:55]free response buf [10:15:55]execute_script done [10:15:55]execute_script returns [10:15:55]free content buf [10:15:55]Sock 7.Close socket [10:15:55]Sock 7.Thread stoped [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:48]OFD Sender: No OFD packet to send [10:16:53]OFD Sender: No OFD packet to send [10:16:54]accept exits with 9 [10:16:54]New connection [10:16:54]New thread 3067473252 created [10:16:54]Thread 3067616612 joined [10:16:54]Waiting for new connection... [10:16:54] Sock 9.Parse request [10:16:54]Sock 9.Check first char [10:16:54]Sock 9.First char is OK [10:16:54]request: POST /json_proto HTTP/1.0 [10:16:54]Method: POST [10:16:54]URL: /json_proto [10:16:54]Method is POST - this is cgi request [10:16:54]url: /json_proto [10:16:54]query_string will be loaded in cgi processing [10:16:54]execute_cgi json_proto POST (null) [10:16:54]execute_cgi path=json_proto method=POST [10:16:54]POST find Content-Length [10:16:54]Host: 172.17.56.4:8080 [10:16:54]Content-Length: 790 [10:16:54]Content-Type: application/json [10:16:54] [10:16:54]POST finish read [10:16:54]Found Content-Length = 790 [10:16:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458964", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 7.670, "sum" : 500.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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:16:54]execute_script... [10:16: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)458964", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 7.670, "sum" : 500.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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:16:54]POST & json_proto [10:16:54]process_json_proto [10:16:54]json parsed OK: [10:16:54]protocol is kg_v1.0 [10:16:54]action value=close_receipt [10:16:54]process_action close_receipt [10:16:54]cmd_close_receipt [10:16:54]MH_GetDate [10:16:54]Write to MH i2c: F0 00 00 69 04 5C [10:16:54]Write i2c OK [10:16:54]MH_I2C_Read... [10:16:54]Read from MH i2c: F0 [10:16:54]MH_I2C_Read... [10:16:54]Read from MH i2c: F0 09 00 [10:16:54]MH_I2C_Read... [10:16:54]Read from MH i2c: F0 09 00 69 04 00 97 A5 93 66 C9 DC B2 64 55 [10:16:54]GetLastDocTimeStamp 1720952151 [10:16:54]current date 1720952215 [10:16:54]FM_GetShiftState [10:16:54]SAM_PROTO_GetShiftState [10:16:54]wFMCommunicate request_size=4 [10:16:54]MH_SAM_APDU [10:16:54]CAPDU: 80 13 01 00 [10:16:54]Write to MH i2c: E2 08 00 6A 04 80 13 01 00 00 00 00 00 EB [10:16:54]Write i2c OK [10:16:54]MH_I2C_Read... [10:16:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:54]Read from MH i2c: E2 [10:16:54]MH_I2C_Read... [10:16:54]Read from MH i2c: E2 0E 00 [10:16:54]MH_I2C_Read... [10:16:54]Read from MH i2c: E2 0E 00 6A 04 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 6B [10:16:54]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [10:16:54]wFMCommunicate OK [10:16:54]SAM_PROTO_GetShiftState done [10:16:54]FM_GetShiftState done [10:16:54]opened in 1720917342 [10:16:54]opened+sec_in_day 1721003742 [10:16:54]quantity*price = 50023 [10:16:54]sum+1 = 50025 [10:16:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.24 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.24 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 66 14.07.2024 10:16 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164868 ФПД: 28052243800316 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T101655&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164868&fm=28052243800316&tin=02508201610067®Number=0000000000090829&sum=50024 [10:16:56]StoreToDocumentArchive [10:16:56]shift 447 fd 164868 [10:16:56]save to /storage/0447/doc_00164868 [10:16:56]save last doc name /storage/0447/doc_00164868 to /storage/kkm_last_doc_name [10:16:56]save OK [10:16:56]Clear old archive folders... [10:16:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:16:56]tlvbuf is 00757A40 [10:16:56]SAM_PROTO_ClearQueue [10:16:56]wFMCommunicate request_size=4 [10:16:56]MH_SAM_APDU [10:16:56]CAPDU: 80 09 00 00 [10:16:56]Write to MH i2c: E2 08 00 77 04 80 09 00 00 00 00 00 00 ED [10:16:56]Write i2c OK [10:16:56]MH_I2C_Read... [10:16:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:16:56]Read from MH i2c: E2 [10:16:56]MH_I2C_Read... [10:16:56]Read from MH i2c: E2 03 00 [10:16:56]MH_I2C_Read... [10:16:56]Read from MH i2c: E2 03 00 77 04 00 90 00 EF [10:16:56]RAPDU: 90 00 [10:16:56]wFMCommunicate OK [10:16:56]SAM_PROTO_ClearQueue done [10:16:56]KKMCreateOFDPacket [10:16:56]OFDProtocolAddRootSTLVToBuf [10:16:56]FM_MakeSignedData [10:16:56]FM_MakeSignedData [10:16:56]SAM_PROTO_SignData [10:16:56]wFMCommunicate request_size=4 [10:16:56]MH_SAM_APDU [10:16:56]CAPDU: 80 0D 01 02 [10:16:56]Write to MH i2c: E2 08 00 78 04 80 0D 01 02 00 00 00 00 F5 [10:16:56]Write i2c OK [10:16:56]MH_I2C_Read... [10:16:56]Read from MH i2c: E2 [10:16:56]MH_I2C_Read... [10:16:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:16:56]Read from MH i2c: E2 03 00 [10:16:56]MH_I2C_Read... [10:16:56]Read from MH i2c: E2 03 00 78 04 00 90 00 F0 [10:16:56]RAPDU: 90 00 [10:16:56]wFMCommunicate OK [10:16:56]wFMCommunicate request_size=255 [10:16:56]MH_SAM_APDU [10:16:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 97 A5 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 04 84 02 00 35 04 06 00 19 [10:16:56]Write to MH i2c: E2 02 01 79 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 97 A5 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 04 84 02 00 35 04 06 00 19 00 00 96 [10:16:56]Write i2c OK [10:16:56]MH_I2C_Read... [10:16:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:56]Read from MH i2c: E2 [10:16:56]MH_I2C_Read... [10:16:56]Read from MH i2c: E2 03 00 [10:16:56]MH_I2C_Read... [10:16:56]Read from MH i2c: E2 03 00 79 04 00 90 00 F1 [10:16:56]RAPDU: 90 00 [10:16:56]wFMCommunicate OK [10:16:56]wFMCommunicate request_size=10 [10:16:56]MH_SAM_APDU [10:16:56]CAPDU: 80 0D 02 02 05 83 6C 06 E0 FC [10:16:56]Write to MH i2c: E2 0D 00 7A 04 80 0D 02 02 05 00 83 6C 06 E0 FC 00 00 D3 [10:16:56]Write i2c OK [10:16:56]MH_I2C_Read... [10:16:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:56]Read from MH i2c: E2 [10:16:56]MH_I2C_Read... [10:16:56]Read from MH i2c: E2 03 00 [10:16:56]MH_I2C_Read... [10:16:56]Read from MH i2c: E2 03 00 7A 04 00 90 00 F2 [10:16:56]RAPDU: 90 00 [10:16:56]wFMCommunicate OK [10:16:56]wFMCommunicate request_size=4 [10:16:56]MH_SAM_APDU [10:16:56]CAPDU: 80 0D 03 02 [10:16:56]Write to MH i2c: E2 08 00 7B 04 80 0D 03 02 00 00 00 00 FA [10:16:56]Write i2c OK [10:16:56]MH_I2C_Read... [10:16:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:16:56]Read from MH i2c: E2 [10:16:56]MH_I2C_Read... [10:16:56]Read from MH i2c: E2 0B 00 [10:16:56]MH_I2C_Read... [10:16:56]Read from MH i2c: E2 0B 00 7B 04 00 31 F5 56 02 54 9C 6F 2A 90 00 02 [10:16:56]RAPDU: 31 F5 56 02 54 9C 6F 2A 90 00 [10:16:56]wFMCommunicate OK [10:16:56]SAM_PROTO_SignData done [10:16:56]FM_MakeSignedData done [10:16:56]CreateOFDProtocolMessage [10:16:56]wFMCommunicate request_size=4 [10:16:56]MH_SAM_APDU [10:16:56]CAPDU: 80 11 00 00 [10:16:56]Write to MH i2c: E2 08 00 7C 04 80 11 00 00 00 00 00 00 FA [10:16:56]Write i2c OK [10:16:56]MH_I2C_Read... [10:16:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:56]Read from MH i2c: E2 [10:16:56]MH_I2C_Read... [10:16:56]Read from MH i2c: E2 17 00 [10:16:56]MH_I2C_Read... [10:16:56]Read from MH i2c: E2 17 00 7C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 50 [10:16:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:16:56]wFMCommunicate OK [10:16:56]CreateOFDProtocolMessage done [10:16:56]OFDSenderStorePacket 164868 [10:16:56]StoreOFDPacket docnum=164868 [10:16:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C4 F7 07 01 A0 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 97 A5 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 04 84 02 00 35 04 06 00 19 83 6C 06 E0 FC 31 F5 56 02 54 9C 6F 2A [10:16:56]CheckFolder [10:16:56]dirname=/storage/ofd_packets [10:16:56]CheckFolder done [10:16:56]ProducePacketName [10:16:56]name=ofd_packets/00164868 [10:16:56]NVStorageSaveData ofd_packets/00164868 [10:16:56]File name is /storage/ofd_packets/00164868 [10:16:56]Write 301 bytes [10:16:56]NVStorageSaveData done [10:16:56]OFDSenderStorePacket done [10:16:56]KKMCreateOFDPacket done [10:16:56]NVStorageSaveData kkm_last_timestamp [10:16:56]File name is /storage/kkm_last_timestamp [10:16:56]Write 4 bytes [10:16:56]NVStorageSaveData done [10:16:56]ExternCall_PrintAddStr [10:16:56]wPrintStart [10:16:56]Write to MH i2c: 01 00 00 7D 04 81 [10:16:56]Write i2c OK [10:16:56]MH_I2C_Read... [10:16:56]Read from MH i2c: 01 [10:16:56]MH_I2C_Read... [10:16:56]Read from MH i2c: 01 07 00 [10:16:56]MH_I2C_Read... [10:16:56]Read from MH i2c: 01 07 00 7D 04 00 00 00 00 00 FF 0F 96 [10:16:56]RasterBufferAndPrint [10:16:56]line Счет N : (1)458964 [10:16:56]line ИНН: 02508201610067 [10:16:56]line Контрольно-Кассовый Чек [10:16:56]line ПРОДАЖА [10:16:56]line ТРК (МРК, ГНК) : 22 [10:16:56]line Товар: 2710124130 [10:16:56]line Аи-92-К-5 [10:16:56]line 7.670 * 65.22 [10:16:56]line = 500.24 [10:16:56]line НДС 12% НСП 1% [10:16:56]line > о реализуемом товаре [10:16:56]line ИТОГО: 500.24 [10:16:56]line НСП 1% : 4.43 [10:16:56]line НДС 12% : 53.12 [10:16:56]line Наличными: 0.00 [10:16:56]line Безнал.: 500.24 [10:16:56]line Место: АЗС № 72 "Партнер Нефть" [10:16:56]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:16:56]line СНО: Общий режим [10:16:56]line Чек 66 14.07.2024 10:16 [10:16:56]line Смена: 447 ФФД: 1.0 [10:16:56]line ЗНМ: 0300000160 [10:16:56]line РНМ: 0000000000090829 [10:16:56]line Версия ККМ: 001 [10:16:56]line Платежная система: KICB Банк [10:16:56]line ФМ: 0000000000874718 [10:16:56]line ФД: 164868 [10:16:56]line ФПД: 28052243800316 [10:16:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T101655&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164868&fm=28052243800316&tin=02508201610067®Number=0000000000090829&sum=50024 [10:16:56]written 0, free lines is 4095 [10:16:56]OFD Sender: Processing packet 164868 [packets to send 104, broken 103] [10:16:56]ProducePacketName [10:16:56]name=ofd_packets/00164868 [10:16:56]OFD Sender: To server: pG, [10:16:56]CommunicateWithHost lk.salyk.kg:30040 [10:16:56]ConnectInit lk.salyk.kg [10:16:56]Connected sock=10 [10:16:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C4 F7 07 01 A0 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 97 A5 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 04 84 02 00 35 04 06 00 19 83 6C 06 E0 FC 31 F5 56 02 54 9C 6F 2A [10:16:57]Write to MH i2c: 01 00 00 A6 04 AA [10:16:57]Write i2c OK [10:16:57]MH_I2C_Read... [10:16:57]Read from MH i2c: 01 [10:16:57]MH_I2C_Read... [10:16:57]Read from MH i2c: 01 07 00 [10:16:57]MH_I2C_Read... [10:16:57]Read from MH i2c: 01 07 00 A6 04 00 00 00 00 00 0D 0D CB [10:16:57]RasterBufferAndPrint [10:16:57]line [10:16:57]line [10:16:57]line [10:16:57]line [10:16:57]line [10:16:57]written 0, free lines is 3344 [10:16:57]MH_Cut [10:16:57]Write to MH i2c: D1 01 00 AD 04 01 83 [10:16:57]Write i2c OK [10:16:57]MH_I2C_Read... [10:16:57]Read from MH i2c: D1 [10:16:57]MH_I2C_Read... [10:16:57]Read from MH i2c: D1 01 00 [10:16:57]MH_I2C_Read... [10:16:57]Read from MH i2c: D1 01 00 AD 04 00 82 [10:16:57]Write to MH i2c: 01 00 00 AE 04 B2 [10:16:57]Write i2c OK [10:16:57]MH_I2C_Read... [10:16:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 8E 55 47 00 D1 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 04 84 02 00 F4 03 04 00 25 4C 93 66 B6 04 01 00 00 C7 73 F9 DC 31 6B AE 61 [10:16:57]CommunicateWithHost err = 0 [10:16:57]CheckOFDResponse [10:16:57]1017 (14) - 77093643461234 [10:16:57]1041 (16) - 0000000000874718 [10:16:57]1040 (4) - 164868 [10:16:57]1012 (4) - 14.07.2024 03:55 [10:16:57]1206 (1) - 0 [10:16:57]OFD Sender: Remove packet 164868 [10:16:57]ProducePacketName [10:16:57]name=ofd_packets/00164868 [10:16:57]NVStorageDeleteData [10:16:57]*** Cut start [10:16:57]*** Partial cut [10:16:57]*** CUTSNS_PIN = 1 [10:16:57]*** CUTSNS_PIN = 0 [10:16:57]OFD Sender: No OFD packet to send [10:16:57]*** Brake cut motor [10:16:58]Read from MH i2c: 01 [10:16:58]MH_I2C_Read... [10:16:58]*** Stop cut motor [10:16:58]*** Cut end [10:16:58]Read from MH i2c: 01 07 00 [10:16:58]MH_I2C_Read... [10:16:58]Read from MH i2c: 01 07 00 AE 04 00 00 00 00 00 FF 0F C7 [10:16:58]process_action close_receipt done [10:16:58]requested_data is exist [10:16:58]produce_requested_data [10:16:58]requested_item fm.sn is exist - process it [10:16:58]wFMCommunicate request_size=4 [10:16:58]MH_SAM_APDU [10:16:58]CAPDU: 80 11 00 00 [10:16:58]Write to MH i2c: E2 08 00 AF 04 80 11 00 00 00 00 00 00 2D [10:16:58]Write i2c OK [10:16:58]MH_I2C_Read... [10:16:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:58]Read from MH i2c: E2 [10:16:58]MH_I2C_Read... [10:16:58]Read from MH i2c: E2 17 00 [10:16:58]MH_I2C_Read... [10:16:58]Read from MH i2c: E2 17 00 AF 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 83 [10:16:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:16:58]wFMCommunicate OK [10:16:58]requested_item fd.num is exist - process it [10:16:58]SAM_PROTO_GetFieldsCounters [10:16:58]wFMCommunicate request_size=4 [10:16:58]MH_SAM_APDU [10:16:58]CAPDU: 80 13 00 00 [10:16:58]Write to MH i2c: E2 08 00 B0 04 80 13 00 00 00 00 00 00 30 [10:16:58]Write i2c OK [10:16:58]MH_I2C_Read... [10:16:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:16:58]Read from MH i2c: E2 [10:16:58]MH_I2C_Read... [10:16:58]Read from MH i2c: E2 62 00 [10:16:58]MH_I2C_Read... [10:16:58]Read from MH i2c: E2 62 00 B0 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 04 84 02 00 0E 04 04 00 BF 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 67 [10:16:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 04 84 02 00 0E 04 04 00 BF 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 [10:16:58]wFMCommunicate OK [10:16:58]SAM_PROTO_GetFieldsCounters done [10:16:58]requested_item shift.num is exist - process it [10:16:58]requested_item shift.opened is exist - process it [10:16:58]req_shift_opened [10:16:58]FM_GetShiftState [10:16:58]SAM_PROTO_GetShiftState [10:16:58]wFMCommunicate request_size=4 [10:16:58]MH_SAM_APDU [10:16:58]CAPDU: 80 13 01 00 [10:16:58]Write to MH i2c: E2 08 00 B1 04 80 13 01 00 00 00 00 00 32 [10:16:58]Write i2c OK [10:16:58]MH_I2C_Read... [10:16:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:58]Read from MH i2c: E2 [10:16:58]MH_I2C_Read... [10:16:58]Read from MH i2c: E2 0E 00 [10:16:58]MH_I2C_Read... [10:16:58]Read from MH i2c: E2 0E 00 B1 04 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 B2 [10:16:58]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [10:16:58]wFMCommunicate OK [10:16:58]SAM_PROTO_GetShiftState done [10:16:58]FM_GetShiftState done [10:16:58]req_shift_opened done [10:16:58]requested_item shift.open_date is exist - process it [10:16:58]req_shift_open_date [10:16:58]req_shift_open_date done [10:16:58]produce_requested_data done [10:16:58]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164868,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [10:16:58]process_action_free close_receipt [10:16:58]json_value_free [10:16:58]json_value_free done [10:16:58]process_json_proto returns [10:16:58]Send response to host [10:16:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164868,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [10:16:58]free response buf [10:16:58]execute_script done [10:16:58]execute_script returns [10:16:58]free content buf [10:16:58]Sock 9.Close socket [10:16:58]Sock 9.Thread stoped [10:17:02]OFD Sender: No OFD packet to send [10:17:07]OFD Sender: No OFD packet to send [10:17:12]OFD Sender: No OFD packet to send [10:17:17]OFD Sender: No OFD packet to send [10:17:22]OFD Sender: No OFD packet to send [10:17:27]OFD Sender: No OFD packet to send [10:17:32]OFD Sender: No OFD packet to send [10:17:37]OFD Sender: No OFD packet to send [10:17:42]OFD Sender: No OFD packet to send [10:17:47]OFD Sender: No OFD packet to send [10:17:52]OFD Sender: No OFD packet to send [10:17:57]OFD Sender: No OFD packet to send [10:18:01]accept exits with 7 [10:18:01]New connection [10:18:01]New thread 3067616612 created [10:18:01]Thread 3067473252 joined [10:18:01]Waiting for new connection... [10:18:01] Sock 7.Parse request [10:18:01]Sock 7.Check first char [10:18:01]Sock 7.First char is OK [10:18:01]request: POST /json_proto HTTP/1.0 [10:18:01]Method: POST [10:18:01]URL: /json_proto [10:18:01]Method is POST - this is cgi request [10:18:01]url: /json_proto [10:18:01]query_string will be loaded in cgi processing [10:18:01]execute_cgi json_proto POST (null) [10:18:01]execute_cgi path=json_proto method=POST [10:18:01]POST find Content-Length [10:18:01]Host: 172.17.56.4:8080 [10:18:01]Content-Length: 677 [10:18:01]Content-Type: application/json [10:18:01] [10:18:01]POST finish read [10:18:01]Found Content-Length = 677 [10:18:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458965", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:18:01]execute_script... [10:18: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)458965", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:18:01]POST & json_proto [10:18:01]process_json_proto [10:18:01]json parsed OK: [10:18:01]protocol is kg_v1.0 [10:18:01]action value=close_receipt [10:18:01]process_action close_receipt [10:18:01]cmd_close_receipt [10:18:01]MH_GetDate [10:18:01]Write to MH i2c: F0 00 00 B2 04 A5 [10:18:01]Write i2c OK [10:18:01]MH_I2C_Read... [10:18:01]Read from MH i2c: F0 [10:18:01]MH_I2C_Read... [10:18:01]Read from MH i2c: F0 09 00 [10:18:01]MH_I2C_Read... [10:18:01]Read from MH i2c: F0 09 00 B2 04 00 D9 A5 93 66 C9 DC B2 64 E0 [10:18:01]GetLastDocTimeStamp 1720952215 [10:18:01]current date 1720952281 [10:18:01]FM_GetShiftState [10:18:01]SAM_PROTO_GetShiftState [10:18:01]wFMCommunicate request_size=4 [10:18:01]MH_SAM_APDU [10:18:01]CAPDU: 80 13 01 00 [10:18:01]Write to MH i2c: E2 08 00 B3 04 80 13 01 00 00 00 00 00 34 [10:18:01]Write i2c OK [10:18:01]MH_I2C_Read... [10:18:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:01]Read from MH i2c: E2 [10:18:01]MH_I2C_Read... [10:18:01]Read from MH i2c: E2 0E 00 [10:18:01]MH_I2C_Read... [10:18:01]Read from MH i2c: E2 0E 00 B3 04 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 B4 [10:18:01]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [10:18:01]wFMCommunicate OK [10:18:01]SAM_PROTO_GetShiftState done [10:18:01]FM_GetShiftState done [10:18:01]opened in 1720917342 [10:18:01]opened+sec_in_day 1721003742 [10:18:01]quantity*price = 50008 [10:18:01]sum+1 = 50009 [10:18:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 67 14.07.2024 10:18 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164869 ФПД: 193513913209711 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T101801&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164869&fm=193513913209711&tin=02508201610067®Number=0000000000090829&sum=50000 [10:18:02]StoreToDocumentArchive [10:18:02]shift 447 fd 164869 [10:18:02]save to /storage/0447/doc_00164869 [10:18:02]save last doc name /storage/0447/doc_00164869 to /storage/kkm_last_doc_name [10:18:02]save OK [10:18:02]Clear old archive folders... [10:18:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:18:02]tlvbuf is 0073D1E0 [10:18:02]SAM_PROTO_ClearQueue [10:18:02]wFMCommunicate request_size=4 [10:18:02]MH_SAM_APDU [10:18:02]CAPDU: 80 09 00 00 [10:18:02]Write to MH i2c: E2 08 00 C0 04 80 09 00 00 00 00 00 00 36 [10:18:02]Write i2c OK [10:18:02]MH_I2C_Read... [10:18:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:18:02]Read from MH i2c: E2 [10:18:02]MH_I2C_Read... [10:18:02]Read from MH i2c: E2 03 00 [10:18:02]MH_I2C_Read... [10:18:02]Read from MH i2c: E2 03 00 C0 04 00 90 00 38 [10:18:02]RAPDU: 90 00 [10:18:02]wFMCommunicate OK [10:18:02]SAM_PROTO_ClearQueue done [10:18:02]KKMCreateOFDPacket [10:18:02]OFDProtocolAddRootSTLVToBuf [10:18:02]FM_MakeSignedData [10:18:02]FM_MakeSignedData [10:18:02]SAM_PROTO_SignData [10:18:02]wFMCommunicate request_size=4 [10:18:02]MH_SAM_APDU [10:18:02]CAPDU: 80 0D 01 02 [10:18:02]Write to MH i2c: E2 08 00 C1 04 80 0D 01 02 00 00 00 00 3E [10:18:02]Write i2c OK [10:18:02]MH_I2C_Read... [10:18:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:18:02]Read from MH i2c: E2 [10:18:02]MH_I2C_Read... [10:18:02]Read from MH i2c: E2 03 00 [10:18:02]MH_I2C_Read... [10:18:02]Read from MH i2c: E2 03 00 C1 04 00 90 00 39 [10:18:02]RAPDU: 90 00 [10:18:02]wFMCommunicate OK [10:18:02]wFMCommunicate request_size=255 [10:18:02]MH_SAM_APDU [10:18:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 43 00 00 00 F4 03 04 00 D9 A5 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 05 84 02 00 35 04 06 00 AF [10:18:02]Write to MH i2c: E2 02 01 C2 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 43 00 00 00 F4 03 04 00 D9 A5 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 05 84 02 00 35 04 06 00 AF 00 00 6B [10:18:02]Write i2c OK [10:18:02]MH_I2C_Read... [10:18:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:02]Read from MH i2c: E2 [10:18:02]MH_I2C_Read... [10:18:02]Read from MH i2c: E2 03 00 [10:18:02]MH_I2C_Read... [10:18:02]Read from MH i2c: E2 03 00 C2 04 00 90 00 3A [10:18:02]RAPDU: 90 00 [10:18:02]wFMCommunicate OK [10:18:02]wFMCommunicate request_size=10 [10:18:02]MH_SAM_APDU [10:18:02]CAPDU: 80 0D 02 02 05 FF F8 0E 53 6F [10:18:02]Write to MH i2c: E2 0D 00 C3 04 80 0D 02 02 05 00 FF F8 0E 53 6F 00 00 12 [10:18:02]Write i2c OK [10:18:02]MH_I2C_Read... [10:18:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:02]Read from MH i2c: E2 [10:18:02]MH_I2C_Read... [10:18:02]Read from MH i2c: E2 03 00 [10:18:02]MH_I2C_Read... [10:18:02]Read from MH i2c: E2 03 00 C3 04 00 90 00 3B [10:18:02]RAPDU: 90 00 [10:18:02]wFMCommunicate OK [10:18:02]wFMCommunicate request_size=4 [10:18:02]MH_SAM_APDU [10:18:02]CAPDU: 80 0D 03 02 [10:18:02]Write to MH i2c: E2 08 00 C4 04 80 0D 03 02 00 00 00 00 43 [10:18:02]Write i2c OK [10:18:02]MH_I2C_Read... [10:18:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:18:02]Read from MH i2c: E2 [10:18:02]MH_I2C_Read... [10:18:02]Read from MH i2c: E2 0B 00 [10:18:02]MH_I2C_Read... [10:18:02]Read from MH i2c: E2 0B 00 C4 04 00 EB B7 0B B1 34 30 3A D6 90 00 16 [10:18:02]RAPDU: EB B7 0B B1 34 30 3A D6 90 00 [10:18:02]wFMCommunicate OK [10:18:02]SAM_PROTO_SignData done [10:18:02]FM_MakeSignedData done [10:18:02]CreateOFDProtocolMessage [10:18:02]wFMCommunicate request_size=4 [10:18:02]MH_SAM_APDU [10:18:02]CAPDU: 80 11 00 00 [10:18:02]Write to MH i2c: E2 08 00 C5 04 80 11 00 00 00 00 00 00 43 [10:18:02]Write i2c OK [10:18:02]MH_I2C_Read... [10:18:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:02]Read from MH i2c: E2 [10:18:02]MH_I2C_Read... [10:18:02]Read from MH i2c: E2 17 00 [10:18:02]MH_I2C_Read... [10:18:02]Read from MH i2c: E2 17 00 C5 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 99 [10:18:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:18:02]wFMCommunicate OK [10:18:02]CreateOFDProtocolMessage done [10:18:02]OFDSenderStorePacket 164869 [10:18:02]StoreOFDPacket docnum=164869 [10:18:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 49 38 07 01 93 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 43 00 00 00 F4 03 04 00 D9 A5 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 05 84 02 00 35 04 06 00 AF FF F8 0E 53 6F EB B7 0B B1 34 30 3A D6 [10:18:02]CheckFolder [10:18:02]dirname=/storage/ofd_packets [10:18:02]CheckFolder done [10:18:02]ProducePacketName [10:18:02]name=ofd_packets/00164869 [10:18:02]NVStorageSaveData ofd_packets/00164869 [10:18:02]File name is /storage/ofd_packets/00164869 [10:18:02]Write 301 bytes [10:18:02]NVStorageSaveData done [10:18:02]OFDSenderStorePacket done [10:18:02]KKMCreateOFDPacket done [10:18:02]NVStorageSaveData kkm_last_timestamp [10:18:02]File name is /storage/kkm_last_timestamp [10:18:02]Write 4 bytes [10:18:02]NVStorageSaveData done [10:18:02]OFD Sender: Processing packet 164869 [packets to send 104, broken 103] [10:18:02]ProducePacketName [10:18:02]name=ofd_packets/00164869 [10:18:02]OFD Sender: To server: pG, [10:18:02]CommunicateWithHost lk.salyk.kg:30040 [10:18:02]ConnectInit lk.salyk.kg [10:18:02]ExternCall_PrintAddStr [10:18:02]wPrintStart [10:18:02]Write to MH i2c: 01 00 00 C6 04 CA [10:18:02]Write i2c OK [10:18:02]MH_I2C_Read... [10:18:02]Read from MH i2c: 01 [10:18:02]MH_I2C_Read... [10:18:02]Read from MH i2c: 01 07 00 [10:18:02]MH_I2C_Read... [10:18:02]Read from MH i2c: 01 07 00 C6 04 00 00 00 00 00 FF 0F DF [10:18:02]RasterBufferAndPrint [10:18:02]line Счет N : (1)458965 [10:18:02]line ИНН: 02508201610067 [10:18:02]line Контрольно-Кассовый Чек [10:18:02]line ПРОДАЖА [10:18:02]line ТРК (МРК, ГНК) : 12 [10:18:02]line Товар: 2710124130 [10:18:02]line Аи-92-К-5 [10:18:02]line 7.600 * 65.80 [10:18:02]line = 500.08 [10:18:02]line НДС 12% НСП 1% [10:18:02]line > о реализуемом товаре [10:18:02]line ОКРУГЛЕНИЕ: -0.08 [10:18:02]line ИТОГО: 500.00 [10:18:02]line Внесено: 500.00 [10:18:02]line СДАЧА: 0.00 [10:18:02]line НСП 1% : 4.42 [10:18:02]line НДС 12% : 53.11 [10:18:02]line Наличными: 500.00 [10:18:02]line Безнал.: 0.00 [10:18:02]line Место: АЗС № 72 "Партнер Нефть" [10:18:02]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:18:02]line СНО: Общий режим [10:18:02]line Чек 67 14.07.2024 10:18 [10:18:02]line Смена: 447 ФФД: 1.0 [10:18:02]line ЗНМ: 0300000160 [10:18:02]line РНМ: 0000000000090829 [10:18:02]line Версия ККМ: 001 [10:18:02]line ФМ: 0000000000874718 [10:18:02]line ФД: 164869 [10:18:02]line ФПД: 193513913209711 [10:18:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T101801&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164869&fm=193513913209711&tin=02508201610067®Number=0000000000090829&sum=50000 [10:18:03]Connected sock=11 [10:18:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 49 38 07 01 93 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 43 00 00 00 F4 03 04 00 D9 A5 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 05 84 02 00 35 04 06 00 AF FF F8 0E 53 6F EB B7 0B B1 34 30 3A D6 [10:18:03]written 0, free lines is 4095 [10:18:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 6F 03 47 00 1F 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 38 37 34 37 31 38 10 04 04 00 05 84 02 00 F4 03 04 00 67 4C 93 66 B6 04 01 00 00 E2 38 3E A8 A1 A2 AB 72 [10:18:03]CommunicateWithHost err = 0 [10:18:03]CheckOFDResponse [10:18:03]1017 (14) - 77093643461234 [10:18:03]1041 (16) - 0000000000874718 [10:18:03]1040 (4) - 164869 [10:18:03]1012 (4) - 14.07.2024 03:56 [10:18:03]1206 (1) - 0 [10:18:03]OFD Sender: Remove packet 164869 [10:18:03]ProducePacketName [10:18:03]name=ofd_packets/00164869 [10:18:03]NVStorageDeleteData [10:18:03]Write to MH i2c: 01 00 00 F0 04 F4 [10:18:03]Write i2c OK [10:18:03]MH_I2C_Read... [10:18:03]Read from MH i2c: 01 [10:18:03]MH_I2C_Read... [10:18:03]Read from MH i2c: 01 07 00 [10:18:03]MH_I2C_Read... [10:18:03]Read from MH i2c: 01 07 00 F0 04 00 00 00 00 00 F1 0C F8 [10:18:03]RasterBufferAndPrint [10:18:03]line [10:18:03]line [10:18:03]line [10:18:03]line [10:18:03]line [10:18:03]written 0, free lines is 3320 [10:18:03]MH_Cut [10:18:03]Write to MH i2c: D1 01 00 F7 04 01 CD [10:18:03]Write i2c OK [10:18:03]MH_I2C_Read... [10:18:03]Read from MH i2c: D1 [10:18:03]MH_I2C_Read... [10:18:03]Read from MH i2c: D1 01 00 [10:18:03]MH_I2C_Read... [10:18:03]Read from MH i2c: D1 01 00 F7 04 00 CC [10:18:03]Write to MH i2c: 01 00 00 F8 04 FC [10:18:03]Write i2c OK [10:18:03]MH_I2C_Read... [10:18:03]OFD Sender: No OFD packet to send [10:18:04]*** Cut start [10:18:04]*** Partial cut [10:18:04]*** CUTSNS_PIN = 1 [10:18:04]*** CUTSNS_PIN = 0 [10:18:04]*** Brake cut motor [10:18:04]Read from MH i2c: 01 [10:18:04]MH_I2C_Read... [10:18:04]*** Stop cut motor [10:18:04]*** Cut end [10:18:04]Read from MH i2c: 01 07 00 [10:18:04]MH_I2C_Read... [10:18:04]Read from MH i2c: 01 07 00 F8 04 00 00 00 00 00 FF 0F 11 [10:18:04]process_action close_receipt done [10:18:04]requested_data is exist [10:18:04]produce_requested_data [10:18:04]requested_item fm.sn is exist - process it [10:18:04]wFMCommunicate request_size=4 [10:18:04]MH_SAM_APDU [10:18:04]CAPDU: 80 11 00 00 [10:18:04]Write to MH i2c: E2 08 00 F9 04 80 11 00 00 00 00 00 00 77 [10:18:04]Write i2c OK [10:18:04]MH_I2C_Read... [10:18:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:04]Read from MH i2c: E2 [10:18:04]MH_I2C_Read... [10:18:04]Read from MH i2c: E2 17 00 [10:18:04]MH_I2C_Read... [10:18:04]Read from MH i2c: E2 17 00 F9 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 CD [10:18:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:18:04]wFMCommunicate OK [10:18:04]requested_item fd.num is exist - process it [10:18:04]SAM_PROTO_GetFieldsCounters [10:18:04]wFMCommunicate request_size=4 [10:18:04]MH_SAM_APDU [10:18:04]CAPDU: 80 13 00 00 [10:18:04]Write to MH i2c: E2 08 00 FA 04 80 13 00 00 00 00 00 00 7A [10:18:04]Write i2c OK [10:18:04]MH_I2C_Read... [10:18:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:18:04]Read from MH i2c: E2 [10:18:04]MH_I2C_Read... [10:18:04]Read from MH i2c: E2 62 00 [10:18:04]MH_I2C_Read... [10:18:04]Read from MH i2c: E2 62 00 FA 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 05 84 02 00 0E 04 04 00 BF 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 B5 [10:18:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 05 84 02 00 0E 04 04 00 BF 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 [10:18:04]wFMCommunicate OK [10:18:04]SAM_PROTO_GetFieldsCounters done [10:18:04]requested_item shift.num is exist - process it [10:18:04]requested_item shift.opened is exist - process it [10:18:04]req_shift_opened [10:18:04]FM_GetShiftState [10:18:04]SAM_PROTO_GetShiftState [10:18:04]wFMCommunicate request_size=4 [10:18:04]MH_SAM_APDU [10:18:04]CAPDU: 80 13 01 00 [10:18:04]Write to MH i2c: E2 08 00 FB 04 80 13 01 00 00 00 00 00 7C [10:18:04]Write i2c OK [10:18:04]MH_I2C_Read... [10:18:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:05]Read from MH i2c: E2 [10:18:05]MH_I2C_Read... [10:18:05]Read from MH i2c: E2 0E 00 [10:18:05]MH_I2C_Read... [10:18:05]Read from MH i2c: E2 0E 00 FB 04 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 FC [10:18:05]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [10:18:05]wFMCommunicate OK [10:18:05]SAM_PROTO_GetShiftState done [10:18:05]FM_GetShiftState done [10:18:05]req_shift_opened done [10:18:05]requested_item shift.open_date is exist - process it [10:18:05]req_shift_open_date [10:18:05]req_shift_open_date done [10:18:05]produce_requested_data done [10:18:05]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164869,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [10:18:05]process_action_free close_receipt [10:18:05]json_value_free [10:18:05]json_value_free done [10:18:05]process_json_proto returns [10:18:05]Send response to host [10:18:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164869,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [10:18:05]free response buf [10:18:05]execute_script done [10:18:05]execute_script returns [10:18:05]free content buf [10:18:05]Sock 7.Close socket [10:18:05]Sock 7.Thread stoped [10:18:08]OFD Sender: No OFD packet to send [10:18:13]accept exits with 9 [10:18:13]New connection [10:18:13]New thread 3067473252 created [10:18:13]Thread 3067616612 joined [10:18:13]Waiting for new connection... [10:18:13] Sock 9.Parse request [10:18:13]Sock 9.Check first char [10:18:13]Sock 9.First char is OK [10:18:13]request: POST /json_proto HTTP/1.0 [10:18:13]Method: POST [10:18:13]URL: /json_proto [10:18:13]Method is POST - this is cgi request [10:18:13]url: /json_proto [10:18:13]query_string will be loaded in cgi processing [10:18:13]execute_cgi json_proto POST (null) [10:18:13]execute_cgi path=json_proto method=POST [10:18:13]POST find Content-Length [10:18:13]Host: 172.17.56.4:8080 [10:18:13]Content-Length: 678 [10:18:13]Content-Type: application/json [10:18:13] [10:18:13]POST finish read [10:18:13]Found Content-Length = 678 [10:18:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458966", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 13.070, "sum" : 860.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 860.00, "total" : 860.00, "payments": [ { "type": 0, "sum" : 860.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:18:13]execute_script... [10:18: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)458966", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 13.070, "sum" : 860.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 860.00, "total" : 860.00, "payments": [ { "type": 0, "sum" : 860.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:18:13]POST & json_proto [10:18:13]process_json_proto [10:18:13]json parsed OK: [10:18:13]protocol is kg_v1.0 [10:18:13]action value=close_receipt [10:18:13]process_action close_receipt [10:18:13]cmd_close_receipt [10:18:13]MH_GetDate [10:18:13]Write to MH i2c: F0 00 00 FC 04 EF [10:18:13]Write i2c OK [10:18:13]MH_I2C_Read... [10:18:13]Read from MH i2c: F0 [10:18:13]MH_I2C_Read... [10:18:13]Read from MH i2c: F0 09 00 [10:18:13]MH_I2C_Read... [10:18:13]Read from MH i2c: F0 09 00 FC 04 00 E5 A5 93 66 C9 DC B2 64 36 [10:18:13]GetLastDocTimeStamp 1720952281 [10:18:13]current date 1720952293 [10:18:13]FM_GetShiftState [10:18:13]SAM_PROTO_GetShiftState [10:18:13]wFMCommunicate request_size=4 [10:18:13]MH_SAM_APDU [10:18:13]CAPDU: 80 13 01 00 [10:18:13]Write to MH i2c: E2 08 00 FD 04 80 13 01 00 00 00 00 00 7E [10:18:13]Write i2c OK [10:18:13]MH_I2C_Read... [10:18:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:13]Read from MH i2c: E2 [10:18:13]MH_I2C_Read... [10:18:13]Read from MH i2c: E2 0E 00 [10:18:13]MH_I2C_Read... [10:18:13]Read from MH i2c: E2 0E 00 FD 04 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 FE [10:18:13]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [10:18:13]wFMCommunicate OK [10:18:13]SAM_PROTO_GetShiftState done [10:18:13]FM_GetShiftState done [10:18:13]opened in 1720917342 [10:18:13]opened+sec_in_day 1721003742 [10:18:13]quantity*price = 86000 [10:18:13]sum+1 = 86002 [10:18:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 860.00 Внесено: 860.00 СДАЧА: 0.00 НСП 1% : 7.61 НДС 12% : 91.33 Наличными: 860.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 68 14.07.2024 10:18 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164870 ФПД: 223640400250096 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T101813&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164870&fm=223640400250096&tin=02508201610067®Number=0000000000090829&sum=86000 [10:18:14]StoreToDocumentArchive [10:18:14]shift 447 fd 164870 [10:18:14]save to /storage/0447/doc_00164870 [10:18:14]save last doc name /storage/0447/doc_00164870 to /storage/kkm_last_doc_name [10:18:14]save OK [10:18:14]Clear old archive folders... [10:18:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:18:14]tlvbuf is 0077D1D0 [10:18:14]SAM_PROTO_ClearQueue [10:18:14]wFMCommunicate request_size=4 [10:18:14]MH_SAM_APDU [10:18:14]CAPDU: 80 09 00 00 [10:18:14]Write to MH i2c: E2 08 00 0A 05 80 09 00 00 00 00 00 00 81 [10:18:14]Write i2c OK [10:18:14]MH_I2C_Read... [10:18:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:18:14]Read from MH i2c: E2 [10:18:14]MH_I2C_Read... [10:18:14]Read from MH i2c: E2 03 00 [10:18:14]MH_I2C_Read... [10:18:14]Read from MH i2c: E2 03 00 0A 05 00 90 00 83 [10:18:14]RAPDU: 90 00 [10:18:14]wFMCommunicate OK [10:18:14]SAM_PROTO_ClearQueue done [10:18:14]KKMCreateOFDPacket [10:18:14]OFDProtocolAddRootSTLVToBuf [10:18:14]FM_MakeSignedData [10:18:14]FM_MakeSignedData [10:18:14]SAM_PROTO_SignData [10:18:14]wFMCommunicate request_size=4 [10:18:14]MH_SAM_APDU [10:18:14]CAPDU: 80 0D 01 02 [10:18:14]Write to MH i2c: E2 08 00 0B 05 80 0D 01 02 00 00 00 00 89 [10:18:14]Write i2c OK [10:18:14]MH_I2C_Read... [10:18:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:18:14]Read from MH i2c: E2 [10:18:14]MH_I2C_Read... [10:18:14]Read from MH i2c: E2 03 00 [10:18:14]MH_I2C_Read... [10:18:14]Read from MH i2c: E2 03 00 0B 05 00 90 00 84 [10:18:14]RAPDU: 90 00 [10:18:14]wFMCommunicate OK [10:18:14]wFMCommunicate request_size=255 [10:18:14]MH_SAM_APDU [10:18:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 33 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 F1 4F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 4F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 23 00 00 00 00 07 04 06 00 F0 4F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 E5 A5 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 06 84 02 00 35 04 06 00 CB [10:18:14]Write to MH i2c: E2 02 01 0C 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 33 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 F1 4F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 4F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 23 00 00 00 00 07 04 06 00 F0 4F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 E5 A5 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 06 84 02 00 35 04 06 00 CB 00 00 11 [10:18:14]Write i2c OK [10:18:14]MH_I2C_Read... [10:18:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:14]Read from MH i2c: E2 [10:18:14]MH_I2C_Read... [10:18:14]Read from MH i2c: E2 03 00 [10:18:14]MH_I2C_Read... [10:18:14]Read from MH i2c: E2 03 00 0C 05 00 90 00 85 [10:18:14]RAPDU: 90 00 [10:18:14]wFMCommunicate OK [10:18:14]wFMCommunicate request_size=10 [10:18:14]MH_SAM_APDU [10:18:14]CAPDU: 80 0D 02 02 05 66 56 9D 44 F0 [10:18:14]Write to MH i2c: E2 0D 00 0D 05 80 0D 02 02 05 00 66 56 9D 44 F0 00 00 23 [10:18:14]Write i2c OK [10:18:14]MH_I2C_Read... [10:18:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:14]Read from MH i2c: E2 [10:18:14]MH_I2C_Read... [10:18:14]Read from MH i2c: E2 03 00 [10:18:14]MH_I2C_Read... [10:18:14]Read from MH i2c: E2 03 00 0D 05 00 90 00 86 [10:18:14]RAPDU: 90 00 [10:18:14]wFMCommunicate OK [10:18:14]wFMCommunicate request_size=4 [10:18:14]MH_SAM_APDU [10:18:14]CAPDU: 80 0D 03 02 [10:18:14]Write to MH i2c: E2 08 00 0E 05 80 0D 03 02 00 00 00 00 8E [10:18:14]Write i2c OK [10:18:14]MH_I2C_Read... [10:18:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:18:14]Read from MH i2c: E2 [10:18:14]MH_I2C_Read... [10:18:14]Read from MH i2c: E2 0B 00 [10:18:14]MH_I2C_Read... [10:18:14]Read from MH i2c: E2 0B 00 0E 05 00 01 B1 8A 60 FF A3 57 0D 90 00 31 [10:18:14]RAPDU: 01 B1 8A 60 FF A3 57 0D 90 00 [10:18:14]wFMCommunicate OK [10:18:14]SAM_PROTO_SignData done [10:18:14]FM_MakeSignedData done [10:18:14]CreateOFDProtocolMessage [10:18:14]wFMCommunicate request_size=4 [10:18:14]MH_SAM_APDU [10:18:14]CAPDU: 80 11 00 00 [10:18:14]Write to MH i2c: E2 08 00 0F 05 80 11 00 00 00 00 00 00 8E [10:18:14]Write i2c OK [10:18:14]MH_I2C_Read... [10:18:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:14]Read from MH i2c: E2 [10:18:14]MH_I2C_Read... [10:18:14]Read from MH i2c: E2 17 00 [10:18:14]MH_I2C_Read... [10:18:14]Read from MH i2c: E2 17 00 0F 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E4 [10:18:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:18:14]wFMCommunicate OK [10:18:14]CreateOFDProtocolMessage done [10:18:14]OFDSenderStorePacket 164870 [10:18:14]StoreOFDPacket docnum=164870 [10:18:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 E4 BD 07 01 5F 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 33 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 F1 4F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 4F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 23 00 00 00 00 07 04 06 00 F0 4F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 E5 A5 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 06 84 02 00 35 04 06 00 CB 66 56 9D 44 F0 01 B1 8A 60 FF A3 57 0D [10:18:14]CheckFolder [10:18:14]dirname=/storage/ofd_packets [10:18:14]CheckFolder done [10:18:14]ProducePacketName [10:18:14]name=ofd_packets/00164870 [10:18:14]NVStorageSaveData ofd_packets/00164870 [10:18:14]File name is /storage/ofd_packets/00164870 [10:18:14]Write 301 bytes [10:18:14]NVStorageSaveData done [10:18:14]OFDSenderStorePacket done [10:18:14]KKMCreateOFDPacket done [10:18:14]NVStorageSaveData kkm_last_timestamp [10:18:14]File name is /storage/kkm_last_timestamp [10:18:14]Write 4 bytes [10:18:14]NVStorageSaveData done [10:18:14]ExternCall_PrintAddStr [10:18:14]wPrintStart [10:18:14]Write to MH i2c: 01 00 00 10 05 15 [10:18:14]Write i2c OK [10:18:14]MH_I2C_Read... [10:18:14]Read from MH i2c: 01 [10:18:14]MH_I2C_Read... [10:18:14]Read from MH i2c: 01 07 00 [10:18:14]MH_I2C_Read... [10:18:14]Read from MH i2c: 01 07 00 10 05 00 00 00 00 00 FF 0F 2A [10:18:14]RasterBufferAndPrint [10:18:14]line Счет N : (1)458966 [10:18:14]line ИНН: 02508201610067 [10:18:14]line Контрольно-Кассовый Чек [10:18:14]line ПРОДАЖА [10:18:14]line ТРК (МРК, ГНК) : 22 [10:18:14]line Товар: 2710124130 [10:18:14]line Аи-92-К-5 [10:18:14]line 13.070 * 65.80 [10:18:14]line = 860.01 [10:18:14]line НДС 12% НСП 1% [10:18:14]line > о реализуемом товаре [10:18:14]line ОКРУГЛЕНИЕ: -0.01 [10:18:14]line ИТОГО: 860.00 [10:18:14]line Внесено: 860.00 [10:18:14]line СДАЧА: 0.00 [10:18:14]line НСП 1% : 7.61 [10:18:14]line НДС 12% : 91.33 [10:18:14]line Наличными: 860.00 [10:18:14]line Безнал.: 0.00 [10:18:14]line Место: АЗС № 72 "Партнер Нефть" [10:18:14]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:18:14]line СНО: Общий режим [10:18:14]line Чек 68 14.07.2024 10:18 [10:18:14]line Смена: 447 ФФД: 1.0 [10:18:14]line ЗНМ: 0300000160 [10:18:14]line РНМ: 0000000000090829 [10:18:14]line Версия ККМ: 001 [10:18:14]line ФМ: 0000000000874718 [10:18:14]line ФД: 164870 [10:18:14]line ФПД: 223640400250096 [10:18:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T101813&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164870&fm=223640400250096&tin=02508201610067®Number=0000000000090829&sum=86000 [10:18:14]written 0, free lines is 4095 [10:18:14]OFD Sender: Processing packet 164870 [packets to send 104, broken 103] [10:18:14]ProducePacketName [10:18:14]name=ofd_packets/00164870 [10:18:14]OFD Sender: To server: pG, [10:18:15]CommunicateWithHost lk.salyk.kg:30040 [10:18:15]ConnectInit lk.salyk.kg [10:18:15]Write to MH i2c: 01 00 00 3A 05 3F [10:18:15]Write i2c OK [10:18:15]MH_I2C_Read... [10:18:15]Read from MH i2c: 01 [10:18:15]MH_I2C_Read... [10:18:15]Read from MH i2c: 01 07 00 [10:18:15]MH_I2C_Read... [10:18:15]Read from MH i2c: 01 07 00 3A 05 00 00 00 00 00 F1 0C 43 [10:18:15]RasterBufferAndPrint [10:18:15]line [10:18:15]line [10:18:15]line [10:18:15]line [10:18:15]line [10:18:15]written 0, free lines is 3320 [10:18:15]MH_Cut [10:18:15]Write to MH i2c: D1 01 00 41 05 01 18 [10:18:15]Write i2c OK [10:18:15]MH_I2C_Read... [10:18:15]Read from MH i2c: D1 [10:18:15]MH_I2C_Read... [10:18:15]Read from MH i2c: D1 01 00 [10:18:15]MH_I2C_Read... [10:18:15]Read from MH i2c: D1 01 00 41 05 00 17 [10:18:15]Write to MH i2c: 01 00 00 42 05 47 [10:18:15]Write i2c OK [10:18:15]MH_I2C_Read... [10:18:15]Connected sock=11 [10:18:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 E4 BD 07 01 5F 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 33 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 F1 4F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 4F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 23 00 00 00 00 07 04 06 00 F0 4F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 E5 A5 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 06 84 02 00 35 04 06 00 CB 66 56 9D 44 F0 01 B1 8A 60 FF A3 57 0D [10:18:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 F9 35 47 00 0D 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 06 84 02 00 F4 03 04 00 74 4C 93 66 B6 04 01 00 00 55 86 2C 7C 38 14 5F F8 [10:18:15]CommunicateWithHost err = 0 [10:18:15]CheckOFDResponse [10:18:15]1017 (14) - 77093643461234 [10:18:15]1041 (16) - 0000000000874718 [10:18:15]1040 (4) - 164870 [10:18:15]1012 (4) - 14.07.2024 03:56 [10:18:15]1206 (1) - 0 [10:18:15]OFD Sender: Remove packet 164870 [10:18:15]ProducePacketName [10:18:15]name=ofd_packets/00164870 [10:18:15]NVStorageDeleteData [10:18:16]*** Cut start [10:18:16]*** Partial cut [10:18:16]*** CUTSNS_PIN = 1 [10:18:16]*** CUTSNS_PIN = 0 [10:18:16]OFD Sender: No OFD packet to send [10:18:16]*** Brake cut motor [10:18:16]Read from MH i2c: 01 [10:18:16]MH_I2C_Read... [10:18:16]*** Stop cut motor [10:18:16]*** Cut end [10:18:16]Read from MH i2c: 01 07 00 [10:18:16]MH_I2C_Read... [10:18:16]Read from MH i2c: 01 07 00 42 05 00 00 00 00 00 FF 0F 5C [10:18:16]process_action close_receipt done [10:18:16]requested_data is exist [10:18:16]produce_requested_data [10:18:16]requested_item fm.sn is exist - process it [10:18:16]wFMCommunicate request_size=4 [10:18:16]MH_SAM_APDU [10:18:16]CAPDU: 80 11 00 00 [10:18:16]Write to MH i2c: E2 08 00 43 05 80 11 00 00 00 00 00 00 C2 [10:18:16]Write i2c OK [10:18:16]MH_I2C_Read... [10:18:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:16]Read from MH i2c: E2 [10:18:16]MH_I2C_Read... [10:18:16]Read from MH i2c: E2 17 00 [10:18:16]MH_I2C_Read... [10:18:16]Read from MH i2c: E2 17 00 43 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 18 [10:18:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:18:16]wFMCommunicate OK [10:18:16]requested_item fd.num is exist - process it [10:18:16]SAM_PROTO_GetFieldsCounters [10:18:16]wFMCommunicate request_size=4 [10:18:16]MH_SAM_APDU [10:18:16]CAPDU: 80 13 00 00 [10:18:16]Write to MH i2c: E2 08 00 44 05 80 13 00 00 00 00 00 00 C5 [10:18:16]Write i2c OK [10:18:16]MH_I2C_Read... [10:18:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:18:16]Read from MH i2c: E2 [10:18:16]MH_I2C_Read... [10:18:16]Read from MH i2c: E2 62 00 [10:18:16]MH_I2C_Read... [10:18:16]Read from MH i2c: E2 62 00 44 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 06 84 02 00 0E 04 04 00 BF 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 04 [10:18:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 06 84 02 00 0E 04 04 00 BF 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 [10:18:16]wFMCommunicate OK [10:18:16]SAM_PROTO_GetFieldsCounters done [10:18:16]requested_item shift.num is exist - process it [10:18:16]requested_item shift.opened is exist - process it [10:18:16]req_shift_opened [10:18:16]FM_GetShiftState [10:18:16]SAM_PROTO_GetShiftState [10:18:16]wFMCommunicate request_size=4 [10:18:16]MH_SAM_APDU [10:18:16]CAPDU: 80 13 01 00 [10:18:16]Write to MH i2c: E2 08 00 45 05 80 13 01 00 00 00 00 00 C7 [10:18:16]Write i2c OK [10:18:16]MH_I2C_Read... [10:18:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:16]Read from MH i2c: E2 [10:18:16]MH_I2C_Read... [10:18:16]Read from MH i2c: E2 0E 00 [10:18:16]MH_I2C_Read... [10:18:16]Read from MH i2c: E2 0E 00 45 05 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 47 [10:18:16]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [10:18:16]wFMCommunicate OK [10:18:16]SAM_PROTO_GetShiftState done [10:18:16]FM_GetShiftState done [10:18:16]req_shift_opened done [10:18:16]requested_item shift.open_date is exist - process it [10:18:16]req_shift_open_date [10:18:16]req_shift_open_date done [10:18:16]produce_requested_data done [10:18:16]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164870,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [10:18:16]process_action_free close_receipt [10:18:16]json_value_free [10:18:16]json_value_free done [10:18:16]process_json_proto returns [10:18:16]Send response to host [10:18:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164870,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [10:18:16]free response buf [10:18:16]execute_script done [10:18:16]execute_script returns [10:18:16]free content buf [10:18:16]Sock 9.Close socket [10:18:16]Sock 9.Thread stoped [10:18:21]OFD Sender: No OFD packet to send [10:18:26]OFD Sender: No OFD packet to send [10:18:31]OFD Sender: No OFD packet to send [10:18:36]OFD Sender: No OFD packet to send [10:18:41]OFD Sender: No OFD packet to send [10:18:41]accept exits with 7 [10:18:41]New connection [10:18:41]New thread 3067616612 created [10:18:41]Thread 3067473252 joined [10:18:41]Waiting for new connection... [10:18:41] Sock 7.Parse request [10:18:41]Sock 7.Check first char [10:18:41]Sock 7.First char is OK [10:18:41]request: POST /json_proto HTTP/1.0 [10:18:41]Method: POST [10:18:41]URL: /json_proto [10:18:41]Method is POST - this is cgi request [10:18:41]url: /json_proto [10:18:41]query_string will be loaded in cgi processing [10:18:41]execute_cgi json_proto POST (null) [10:18:41]execute_cgi path=json_proto method=POST [10:18:41]POST find Content-Length [10:18:41]Host: 172.17.56.4:8080 [10:18:41]Content-Length: 679 [10:18:41]Content-Type: application/json [10:18:41] [10:18:41]POST finish read [10:18:41]Found Content-Length = 679 [10:18:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458967", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:18:41]execute_script... [10:18: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)458967", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:18:41]POST & json_proto [10:18:41]process_json_proto [10:18:41]json parsed OK: [10:18:41]protocol is kg_v1.0 [10:18:41]action value=close_receipt [10:18:41]process_action close_receipt [10:18:41]cmd_close_receipt [10:18:41]MH_GetDate [10:18:41]Write to MH i2c: F0 00 00 46 05 3A [10:18:41]Write i2c OK [10:18:41]MH_I2C_Read... [10:18:41]Read from MH i2c: F0 [10:18:41]MH_I2C_Read... [10:18:41]Read from MH i2c: F0 09 00 [10:18:41]MH_I2C_Read... [10:18:41]Read from MH i2c: F0 09 00 46 05 00 02 A6 93 66 C9 DC B2 64 9F [10:18:41]GetLastDocTimeStamp 1720952293 [10:18:41]current date 1720952322 [10:18:41]FM_GetShiftState [10:18:41]SAM_PROTO_GetShiftState [10:18:41]wFMCommunicate request_size=4 [10:18:41]MH_SAM_APDU [10:18:41]CAPDU: 80 13 01 00 [10:18:41]Write to MH i2c: E2 08 00 47 05 80 13 01 00 00 00 00 00 C9 [10:18:41]Write i2c OK [10:18:41]MH_I2C_Read... [10:18:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:41]Read from MH i2c: E2 [10:18:41]MH_I2C_Read... [10:18:42]Read from MH i2c: E2 0E 00 [10:18:42]MH_I2C_Read... [10:18:42]Read from MH i2c: E2 0E 00 47 05 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 49 [10:18:42]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [10:18:42]wFMCommunicate OK [10:18:42]SAM_PROTO_GetShiftState done [10:18:42]FM_GetShiftState done [10:18:42]opened in 1720917342 [10:18:42]opened+sec_in_day 1721003742 [10:18:42]quantity*price = 100012 [10:18:42]sum+1 = 100014 [10:18:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 69 14.07.2024 10:18 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164871 ФПД: 36575872824009 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T101842&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164871&fm=36575872824009&tin=02508201610067®Number=0000000000090829&sum=100000 [10:18:43]StoreToDocumentArchive [10:18:43]shift 447 fd 164871 [10:18:43]save to /storage/0447/doc_00164871 [10:18:43]save last doc name /storage/0447/doc_00164871 to /storage/kkm_last_doc_name [10:18:43]save OK [10:18:43]Clear old archive folders... [10:18:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:18:43]tlvbuf is 007574B0 [10:18:43]SAM_PROTO_ClearQueue [10:18:43]wFMCommunicate request_size=4 [10:18:43]MH_SAM_APDU [10:18:43]CAPDU: 80 09 00 00 [10:18:43]Write to MH i2c: E2 08 00 54 05 80 09 00 00 00 00 00 00 CB [10:18:43]Write i2c OK [10:18:43]MH_I2C_Read... [10:18:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:18:43]Read from MH i2c: E2 [10:18:43]MH_I2C_Read... [10:18:43]Read from MH i2c: E2 03 00 [10:18:43]MH_I2C_Read... [10:18:43]Read from MH i2c: E2 03 00 54 05 00 90 00 CD [10:18:43]RAPDU: 90 00 [10:18:43]wFMCommunicate OK [10:18:43]SAM_PROTO_ClearQueue done [10:18:43]KKMCreateOFDPacket [10:18:43]OFDProtocolAddRootSTLVToBuf [10:18:43]FM_MakeSignedData [10:18:43]FM_MakeSignedData [10:18:43]SAM_PROTO_SignData [10:18:43]wFMCommunicate request_size=4 [10:18:43]MH_SAM_APDU [10:18:43]CAPDU: 80 0D 01 02 [10:18:43]Write to MH i2c: E2 08 00 55 05 80 0D 01 02 00 00 00 00 D3 [10:18:43]Write i2c OK [10:18:43]MH_I2C_Read... [10:18:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:18:43]Read from MH i2c: E2 [10:18:43]MH_I2C_Read... [10:18:43]Read from MH i2c: E2 03 00 [10:18:43]MH_I2C_Read... [10:18:43]Read from MH i2c: E2 03 00 55 05 00 90 00 CE [10:18:43]RAPDU: 90 00 [10:18:43]wFMCommunicate OK [10:18:43]wFMCommunicate request_size=255 [10:18:43]MH_SAM_APDU [10:18:43]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 02 A6 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 07 84 02 00 35 04 06 00 21 43 FB E8 [10:18:43]Write to MH i2c: E2 02 01 56 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 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 02 A6 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 07 84 02 00 35 04 06 00 21 43 FB E8 00 00 0E [10:18:43]Write i2c OK [10:18:43]MH_I2C_Read... [10:18:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:43]Read from MH i2c: E2 [10:18:43]MH_I2C_Read... [10:18:43]Read from MH i2c: E2 03 00 [10:18:43]MH_I2C_Read... [10:18:43]Read from MH i2c: E2 03 00 56 05 00 90 00 CF [10:18:43]RAPDU: 90 00 [10:18:43]wFMCommunicate OK [10:18:43]wFMCommunicate request_size=7 [10:18:43]MH_SAM_APDU [10:18:43]CAPDU: 80 0D 02 02 02 32 C9 [10:18:43]Write to MH i2c: E2 0A 00 57 05 80 0D 02 02 02 00 32 C9 00 00 D5 [10:18:43]Write i2c OK [10:18:43]MH_I2C_Read... [10:18:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:43]Read from MH i2c: E2 [10:18:43]MH_I2C_Read... [10:18:43]Read from MH i2c: E2 03 00 [10:18:43]MH_I2C_Read... [10:18:43]Read from MH i2c: E2 03 00 57 05 00 90 00 D0 [10:18:43]RAPDU: 90 00 [10:18:43]wFMCommunicate OK [10:18:43]wFMCommunicate request_size=4 [10:18:43]MH_SAM_APDU [10:18:43]CAPDU: 80 0D 03 02 [10:18:43]Write to MH i2c: E2 08 00 58 05 80 0D 03 02 00 00 00 00 D8 [10:18:43]Write i2c OK [10:18:43]MH_I2C_Read... [10:18:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:18:43]Read from MH i2c: E2 [10:18:43]MH_I2C_Read... [10:18:43]Read from MH i2c: E2 0B 00 [10:18:43]MH_I2C_Read... [10:18:43]Read from MH i2c: E2 0B 00 58 05 00 38 BC 64 F8 64 DB 96 8A 90 00 88 [10:18:43]RAPDU: 38 BC 64 F8 64 DB 96 8A 90 00 [10:18:43]wFMCommunicate OK [10:18:43]SAM_PROTO_SignData done [10:18:43]FM_MakeSignedData done [10:18:43]CreateOFDProtocolMessage [10:18:43]wFMCommunicate request_size=4 [10:18:43]MH_SAM_APDU [10:18:43]CAPDU: 80 11 00 00 [10:18:43]Write to MH i2c: E2 08 00 59 05 80 11 00 00 00 00 00 00 D8 [10:18:43]Write i2c OK [10:18:43]MH_I2C_Read... [10:18:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:43]Read from MH i2c: E2 [10:18:43]MH_I2C_Read... [10:18:43]Read from MH i2c: E2 17 00 [10:18:43]MH_I2C_Read... [10:18:43]Read from MH i2c: E2 17 00 59 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 2E [10:18:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:18:43]wFMCommunicate OK [10:18:43]CreateOFDProtocolMessage done [10:18:43]OFDSenderStorePacket 164871 [10:18:43]StoreOFDPacket docnum=164871 [10:18:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 0E 94 04 01 B6 51 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 02 A6 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 07 84 02 00 35 04 06 00 21 43 FB E8 32 C9 38 BC 64 F8 64 DB 96 8A [10:18:43]CheckFolder [10:18:43]dirname=/storage/ofd_packets [10:18:43]CheckFolder done [10:18:43]ProducePacketName [10:18:43]name=ofd_packets/00164871 [10:18:43]NVStorageSaveData ofd_packets/00164871 [10:18:43]File name is /storage/ofd_packets/00164871 [10:18:43]Write 298 bytes [10:18:43]NVStorageSaveData done [10:18:43]OFDSenderStorePacket done [10:18:43]KKMCreateOFDPacket done [10:18:43]NVStorageSaveData kkm_last_timestamp [10:18:43]File name is /storage/kkm_last_timestamp [10:18:43]Write 4 bytes [10:18:43]NVStorageSaveData done [10:18:43]ExternCall_PrintAddStr [10:18:43]wPrintStart [10:18:43]Write to MH i2c: 01 00 00 5A 05 5F [10:18:43]Write i2c OK [10:18:43]MH_I2C_Read... [10:18:43]Read from MH i2c: 01 [10:18:43]MH_I2C_Read... [10:18:43]Read from MH i2c: 01 07 00 [10:18:43]MH_I2C_Read... [10:18:43]Read from MH i2c: 01 07 00 5A 05 00 00 00 00 00 FF 0F 74 [10:18:43]RasterBufferAndPrint [10:18:43]line Счет N : (1)458967 [10:18:43]line ИНН: 02508201610067 [10:18:43]line Контрольно-Кассовый Чек [10:18:43]line ПРОДАЖА [10:18:43]line ТРК (МРК, ГНК) : 11 [10:18:43]line Товар: 2710194210 [10:18:43]line ДТ-К-5 [10:18:43]line 13.910 * 71.90 [10:18:43]line = 1000.13 [10:18:43]line НДС 12% НСП 1% [10:18:43]line > о реализуемом товаре [10:18:43]line ОКРУГЛЕНИЕ: -0.13 [10:18:43]line ИТОГО: 1000.00 [10:18:43]line Внесено: 1000.00 [10:18:43]line СДАЧА: 0.00 [10:18:43]line НСП 1% : 8.85 [10:18:43]line НДС 12% : 106.21 [10:18:43]line Наличными: 1000.00 [10:18:43]line Безнал.: 0.00 [10:18:43]line Место: АЗС № 72 "Партнер Нефть" [10:18:43]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:18:43]line СНО: Общий режим [10:18:43]line Чек 69 14.07.2024 10:18 [10:18:43]line Смена: 447 ФФД: 1.0 [10:18:43]line ЗНМ: 0300000160 [10:18:43]line РНМ: 0000000000090829 [10:18:43]line Версия ККМ: 001 [10:18:43]line ФМ: 0000000000874718 [10:18:43]line ФД: 164871 [10:18:43]line ФПД: 36575872824009 [10:18:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T101842&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164871&fm=36575872824009&tin=02508201610067®Number=0000000000090829&sum=100000 [10:18:43]OFD Sender: Processing packet 164871 [packets to send 104, broken 103] [10:18:43]ProducePacketName [10:18:43]name=ofd_packets/00164871 [10:18:43]OFD Sender: To server: pG, [10:18:43]CommunicateWithHost lk.salyk.kg:30040 [10:18:43]ConnectInit lk.salyk.kg [10:18:43]written 0, free lines is 4095 [10:18:44]Connected sock=10 [10:18:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 0E 94 04 01 B6 51 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 02 A6 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 07 84 02 00 35 04 06 00 21 43 FB E8 32 C9 38 BC 64 F8 64 DB 96 8A [10:18:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 1B 8D 47 00 65 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 07 84 02 00 F4 03 04 00 90 4C 93 66 B6 04 01 00 00 B1 E4 F5 4A A4 B2 1A D8 [10:18:44]CommunicateWithHost err = 0 [10:18:44]CheckOFDResponse [10:18:44]1017 (14) - 77093643461234 [10:18:44]1041 (16) - 0000000000874718 [10:18:44]1040 (4) - 164871 [10:18:44]1012 (4) - 14.07.2024 03:57 [10:18:44]1206 (1) - 0 [10:18:44]OFD Sender: Remove packet 164871 [10:18:44]ProducePacketName [10:18:44]name=ofd_packets/00164871 [10:18:44]NVStorageDeleteData [10:18:44]Write to MH i2c: 01 00 00 84 05 89 [10:18:44]Write i2c OK [10:18:44]MH_I2C_Read... [10:18:44]Read from MH i2c: 01 [10:18:44]MH_I2C_Read... [10:18:44]Read from MH i2c: 01 07 00 [10:18:44]MH_I2C_Read... [10:18:44]Read from MH i2c: 01 07 00 84 05 00 00 00 00 00 EE 0C 8A [10:18:44]RasterBufferAndPrint [10:18:44]line [10:18:44]line [10:18:44]line [10:18:44]line [10:18:44]line [10:18:44]written 0, free lines is 3316 [10:18:44]MH_Cut [10:18:44]Write to MH i2c: D1 01 00 8B 05 01 62 [10:18:44]Write i2c OK [10:18:44]MH_I2C_Read... [10:18:44]Read from MH i2c: D1 [10:18:44]MH_I2C_Read... [10:18:44]Read from MH i2c: D1 01 00 [10:18:44]MH_I2C_Read... [10:18:44]Read from MH i2c: D1 01 00 8B 05 00 61 [10:18:44]Write to MH i2c: 01 00 00 8C 05 91 [10:18:44]Write i2c OK [10:18:44]MH_I2C_Read... [10:18:44]OFD Sender: No OFD packet to send [10:18:45]*** Cut start [10:18:45]*** Partial cut [10:18:45]*** CUTSNS_PIN = 1 [10:18:45]*** CUTSNS_PIN = 0 [10:18:45]*** Brake cut motor [10:18:45]Read from MH i2c: 01 [10:18:45]MH_I2C_Read... [10:18:45]*** Stop cut motor [10:18:45]*** Cut end [10:18:45]Read from MH i2c: 01 07 00 [10:18:45]MH_I2C_Read... [10:18:45]Read from MH i2c: 01 07 00 8C 05 00 00 00 00 00 FF 0F A6 [10:18:45]process_action close_receipt done [10:18:45]requested_data is exist [10:18:45]produce_requested_data [10:18:45]requested_item fm.sn is exist - process it [10:18:45]wFMCommunicate request_size=4 [10:18:45]MH_SAM_APDU [10:18:45]CAPDU: 80 11 00 00 [10:18:45]Write to MH i2c: E2 08 00 8D 05 80 11 00 00 00 00 00 00 0C [10:18:45]Write i2c OK [10:18:45]MH_I2C_Read... [10:18:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:45]Read from MH i2c: E2 [10:18:45]MH_I2C_Read... [10:18:45]Read from MH i2c: E2 17 00 [10:18:45]MH_I2C_Read... [10:18:45]Read from MH i2c: E2 17 00 8D 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 62 [10:18:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:18:45]wFMCommunicate OK [10:18:45]requested_item fd.num is exist - process it [10:18:45]SAM_PROTO_GetFieldsCounters [10:18:45]wFMCommunicate request_size=4 [10:18:45]MH_SAM_APDU [10:18:45]CAPDU: 80 13 00 00 [10:18:45]Write to MH i2c: E2 08 00 8E 05 80 13 00 00 00 00 00 00 0F [10:18:45]Write i2c OK [10:18:45]MH_I2C_Read... [10:18:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:18:45]Read from MH i2c: E2 [10:18:45]MH_I2C_Read... [10:18:45]Read from MH i2c: E2 62 00 [10:18:45]MH_I2C_Read... [10:18:45]Read from MH i2c: E2 62 00 8E 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 07 84 02 00 0E 04 04 00 BF 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 52 [10:18:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 07 84 02 00 0E 04 04 00 BF 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 [10:18:45]wFMCommunicate OK [10:18:45]SAM_PROTO_GetFieldsCounters done [10:18:45]requested_item shift.num is exist - process it [10:18:45]requested_item shift.opened is exist - process it [10:18:45]req_shift_opened [10:18:45]FM_GetShiftState [10:18:45]SAM_PROTO_GetShiftState [10:18:45]wFMCommunicate request_size=4 [10:18:45]MH_SAM_APDU [10:18:45]CAPDU: 80 13 01 00 [10:18:45]Write to MH i2c: E2 08 00 8F 05 80 13 01 00 00 00 00 00 11 [10:18:45]Write i2c OK [10:18:45]MH_I2C_Read... [10:18:45]Read from MH i2c: E2 [10:18:45]MH_I2C_Read... [10:18:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:45]Read from MH i2c: E2 0E 00 [10:18:45]MH_I2C_Read... [10:18:45]Read from MH i2c: E2 0E 00 8F 05 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 91 [10:18:45]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [10:18:45]wFMCommunicate OK [10:18:45]SAM_PROTO_GetShiftState done [10:18:45]FM_GetShiftState done [10:18:45]req_shift_opened done [10:18:45]requested_item shift.open_date is exist - process it [10:18:45]req_shift_open_date [10:18:45]req_shift_open_date done [10:18:45]produce_requested_data done [10:18:45]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164871,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [10:18:45]process_action_free close_receipt [10:18:45]json_value_free [10:18:45]json_value_free done [10:18:45]process_json_proto returns [10:18:45]Send response to host [10:18:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164871,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [10:18:45]free response buf [10:18:45]execute_script done [10:18:45]execute_script returns [10:18:45]free content buf [10:18:45]Sock 7.Close socket [10:18:45]Sock 7.Thread stoped [10:18:49]OFD Sender: No OFD packet to send [10:18:54]OFD Sender: No OFD packet to send [10:18:59]OFD Sender: No OFD packet to send [10:19:04]OFD Sender: No OFD packet to send [10:19:09]OFD Sender: No OFD packet to send [10:19:14]OFD Sender: No OFD packet to send [10:19:19]OFD Sender: No OFD packet to send [10:19:24]OFD Sender: No OFD packet to send [10:19:29]OFD Sender: No OFD packet to send [10:19:34]OFD Sender: No OFD packet to send [10:19:39]OFD Sender: No OFD packet to send [10:19:44]OFD Sender: No OFD packet to send [10:19:49]OFD Sender: No OFD packet to send [10:19:54]OFD Sender: No OFD packet to send [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:49]OFD Sender: No OFD packet to send [10:21:54]OFD Sender: No OFD packet to send [10:21:59]OFD Sender: No OFD packet to send [10:22:04]OFD Sender: No OFD packet to send [10:22:09]OFD Sender: No OFD packet to send [10:22:15]OFD Sender: No OFD packet to send [10:22:20]OFD Sender: No OFD packet to send [10:22:25]OFD Sender: No OFD packet to send [10:22:30]OFD Sender: No OFD packet to send [10:22:35]OFD Sender: No OFD packet to send [10:22:40]OFD Sender: No OFD packet to send [10:22:45]OFD Sender: No OFD packet to send [10:22:50]OFD Sender: No OFD packet to send [10:22:55]OFD Sender: No OFD packet to send [10:22:58]accept exits with 9 [10:22:58]New connection [10:22:58]New thread 3067473252 created [10:22:58]Thread 3067616612 joined [10:22:58]Waiting for new connection... [10:22:58] Sock 9.Parse request [10:22:58]Sock 9.Check first char [10:22:58]Sock 9.First char is OK [10:22:58]request: POST /json_proto HTTP/1.0 [10:22:58]Method: POST [10:22:58]URL: /json_proto [10:22:58]Method is POST - this is cgi request [10:22:58]url: /json_proto [10:22:58]query_string will be loaded in cgi processing [10:22:58]execute_cgi json_proto POST (null) [10:22:58]execute_cgi path=json_proto method=POST [10:22:58]POST find Content-Length [10:22:58]Host: 172.17.56.4:8080 [10:22:58]Content-Length: 682 [10:22:58]Content-Type: application/json [10:22:58] [10:22:58]POST finish read [10:22:58]Found Content-Length = 682 [10:22:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458968", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "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:22:58]execute_script... [10: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)458968", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "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:22:58]POST & json_proto [10:22:58]process_json_proto [10:22:58]json parsed OK: [10:22:58]protocol is kg_v1.0 [10:22:58]action value=close_receipt [10:22:58]process_action close_receipt [10:22:58]cmd_close_receipt [10:22:58]MH_GetDate [10:22:58]Write to MH i2c: F0 00 00 90 05 84 [10:22:58]Write i2c OK [10:22:58]MH_I2C_Read... [10:22:58]Read from MH i2c: F0 [10:22:58]MH_I2C_Read... [10:22:58]Read from MH i2c: F0 09 00 [10:22:58]MH_I2C_Read... [10:22:58]Read from MH i2c: F0 09 00 90 05 00 03 A7 93 66 C9 DC B2 64 EB [10:22:58]GetLastDocTimeStamp 1720952322 [10:22:58]current date 1720952579 [10:22:58]FM_GetShiftState [10:22:58]SAM_PROTO_GetShiftState [10:22:58]wFMCommunicate request_size=4 [10:22:58]MH_SAM_APDU [10:22:58]CAPDU: 80 13 01 00 [10:22:58]Write to MH i2c: E2 08 00 91 05 80 13 01 00 00 00 00 00 13 [10:22:58]Write i2c OK [10:22:58]MH_I2C_Read... [10:22:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:58]Read from MH i2c: E2 [10:22:58]MH_I2C_Read... [10:22:58]Read from MH i2c: E2 0E 00 [10:22:58]MH_I2C_Read... [10:22:58]Read from MH i2c: E2 0E 00 91 05 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 93 [10:22:58]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [10:22:58]wFMCommunicate OK [10:22:58]SAM_PROTO_GetShiftState done [10:22:58]FM_GetShiftState done [10:22:58]opened in 1720917342 [10:22:58]opened+sec_in_day 1721003742 [10:22:58]quantity*price = 100016 [10:22:58]sum+1 = 100017 [10:22:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 70 14.07.2024 10:22 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164872 ФПД: 116236423684291 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T102259&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164872&fm=116236423684291&tin=02508201610067®Number=0000000000090829&sum=100000 [10:22:59]StoreToDocumentArchive [10:22:59]shift 447 fd 164872 [10:22:59]save to /storage/0447/doc_00164872 [10:22:59]save last doc name /storage/0447/doc_00164872 to /storage/kkm_last_doc_name [10:22:59]save OK [10:22:59]Clear old archive folders... [10:22:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:22:59]tlvbuf is B6F7C790 [10:22:59]SAM_PROTO_ClearQueue [10:22:59]wFMCommunicate request_size=4 [10:22:59]MH_SAM_APDU [10:22:59]CAPDU: 80 09 00 00 [10:22:59]Write to MH i2c: E2 08 00 9E 05 80 09 00 00 00 00 00 00 15 [10:22:59]Write i2c OK [10:22:59]MH_I2C_Read... [10:22:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:22:59]Read from MH i2c: E2 [10:22:59]MH_I2C_Read... [10:22:59]Read from MH i2c: E2 03 00 [10:22:59]MH_I2C_Read... [10:22:59]Read from MH i2c: E2 03 00 9E 05 00 90 00 17 [10:22:59]RAPDU: 90 00 [10:22:59]wFMCommunicate OK [10:22:59]SAM_PROTO_ClearQueue done [10:22:59]KKMCreateOFDPacket [10:22:59]OFDProtocolAddRootSTLVToBuf [10:22:59]FM_MakeSignedData [10:22:59]FM_MakeSignedData [10:22:59]SAM_PROTO_SignData [10:22:59]wFMCommunicate request_size=4 [10:22:59]MH_SAM_APDU [10:22:59]CAPDU: 80 0D 01 02 [10:22:59]Write to MH i2c: E2 08 00 9F 05 80 0D 01 02 00 00 00 00 1D [10:22:59]Write i2c OK [10:22:59]MH_I2C_Read... [10:22:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:23:00]Read from MH i2c: E2 [10:23:00]MH_I2C_Read... [10:23:00]Read from MH i2c: E2 03 00 [10:23:00]MH_I2C_Read... [10:23:00]Read from MH i2c: E2 03 00 9F 05 00 90 00 18 [10:23:00]RAPDU: 90 00 [10:23:00]wFMCommunicate OK [10:23:00]wFMCommunicate request_size=255 [10:23:00]MH_SAM_APDU [10:23:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 03 A7 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 08 84 02 00 35 04 06 00 69 [10:23:00]Write to MH i2c: E2 02 01 A0 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 03 A7 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 08 84 02 00 35 04 06 00 69 00 00 D8 [10:23:00]Write i2c OK [10:23:00]MH_I2C_Read... [10:23:00]OFD Sender: No OFD packet to send [10:23:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:00]Read from MH i2c: E2 [10:23:00]MH_I2C_Read... [10:23:00]Read from MH i2c: E2 03 00 [10:23:00]MH_I2C_Read... [10:23:00]Read from MH i2c: E2 03 00 A0 05 00 90 00 19 [10:23:00]RAPDU: 90 00 [10:23:00]wFMCommunicate OK [10:23:00]wFMCommunicate request_size=10 [10:23:00]MH_SAM_APDU [10:23:00]CAPDU: 80 0D 02 02 05 B7 66 BE 60 C3 [10:23:00]Write to MH i2c: E2 0D 00 A1 05 80 0D 02 02 05 00 B7 66 BE 60 C3 00 00 28 [10:23:00]Write i2c OK [10:23:00]MH_I2C_Read... [10:23:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:00]Read from MH i2c: E2 [10:23:00]MH_I2C_Read... [10:23:00]Read from MH i2c: E2 03 00 [10:23:00]MH_I2C_Read... [10:23:00]Read from MH i2c: E2 03 00 A1 05 00 90 00 1A [10:23:00]RAPDU: 90 00 [10:23:00]wFMCommunicate OK [10:23:00]wFMCommunicate request_size=4 [10:23:00]MH_SAM_APDU [10:23:00]CAPDU: 80 0D 03 02 [10:23:00]Write to MH i2c: E2 08 00 A2 05 80 0D 03 02 00 00 00 00 22 [10:23:00]Write i2c OK [10:23:00]MH_I2C_Read... [10:23:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:23:00]Read from MH i2c: E2 [10:23:00]MH_I2C_Read... [10:23:00]Read from MH i2c: E2 0B 00 [10:23:00]MH_I2C_Read... [10:23:00]Read from MH i2c: E2 0B 00 A2 05 00 F3 03 FC 0C CA 59 49 5E 90 00 EB [10:23:00]RAPDU: F3 03 FC 0C CA 59 49 5E 90 00 [10:23:00]wFMCommunicate OK [10:23:00]SAM_PROTO_SignData done [10:23:00]FM_MakeSignedData done [10:23:00]CreateOFDProtocolMessage [10:23:00]wFMCommunicate request_size=4 [10:23:00]MH_SAM_APDU [10:23:00]CAPDU: 80 11 00 00 [10:23:00]Write to MH i2c: E2 08 00 A3 05 80 11 00 00 00 00 00 00 22 [10:23:00]Write i2c OK [10:23:00]MH_I2C_Read... [10:23:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:00]Read from MH i2c: E2 [10:23:00]MH_I2C_Read... [10:23:00]Read from MH i2c: E2 17 00 [10:23:00]MH_I2C_Read... [10:23:00]Read from MH i2c: E2 17 00 A3 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 78 [10:23:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:23:00]wFMCommunicate OK [10:23:00]CreateOFDProtocolMessage done [10:23:00]OFDSenderStorePacket 164872 [10:23:00]StoreOFDPacket docnum=164872 [10:23:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 3D C1 07 01 00 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 03 A7 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 08 84 02 00 35 04 06 00 69 B7 66 BE 60 C3 F3 03 FC 0C CA 59 49 5E [10:23:00]CheckFolder [10:23:00]dirname=/storage/ofd_packets [10:23:00]CheckFolder done [10:23:00]ProducePacketName [10:23:00]name=ofd_packets/00164872 [10:23:00]NVStorageSaveData ofd_packets/00164872 [10:23:00]File name is /storage/ofd_packets/00164872 [10:23:00]Write 301 bytes [10:23:00]NVStorageSaveData done [10:23:00]OFDSenderStorePacket done [10:23:00]KKMCreateOFDPacket done [10:23:00]NVStorageSaveData kkm_last_timestamp [10:23:00]File name is /storage/kkm_last_timestamp [10:23:00]Write 4 bytes [10:23:00]NVStorageSaveData done [10:23:00]ExternCall_PrintAddStr [10:23:00]wPrintStart [10:23:00]Write to MH i2c: 01 00 00 A4 05 A9 [10:23:00]Write i2c OK [10:23:00]MH_I2C_Read... [10:23:00]Read from MH i2c: 01 [10:23:00]MH_I2C_Read... [10:23:00]Read from MH i2c: 01 07 00 [10:23:00]MH_I2C_Read... [10:23:00]Read from MH i2c: 01 07 00 A4 05 00 00 00 00 00 FF 0F BE [10:23:00]RasterBufferAndPrint [10:23:00]line Счет N : (1)458968 [10:23:00]line ИНН: 02508201610067 [10:23:00]line Контрольно-Кассовый Чек [10:23:00]line ПРОДАЖА [10:23:00]line ТРК (МРК, ГНК) : 12 [10:23:00]line Товар: 2710124130 [10:23:00]line Аи-92-К-5 [10:23:00]line 15.200 * 65.80 [10:23:00]line = 1000.16 [10:23:00]line НДС 12% НСП 1% [10:23:00]line > о реализуемом товаре [10:23:00]line ОКРУГЛЕНИЕ: -0.16 [10:23:00]line ИТОГО: 1000.00 [10:23:00]line Внесено: 1000.00 [10:23:00]line СДАЧА: 0.00 [10:23:00]line НСП 1% : 8.85 [10:23:00]line НДС 12% : 106.21 [10:23:00]line Наличными: 1000.00 [10:23:00]line Безнал.: 0.00 [10:23:00]line Место: АЗС № 72 "Партнер Нефть" [10:23:00]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:23:00]line СНО: Общий режим [10:23:00]line Чек 70 14.07.2024 10:22 [10:23:00]line Смена: 447 ФФД: 1.0 [10:23:00]line ЗНМ: 0300000160 [10:23:00]line РНМ: 0000000000090829 [10:23:00]line Версия ККМ: 001 [10:23:00]line ФМ: 0000000000874718 [10:23:00]line ФД: 164872 [10:23:00]line ФПД: 116236423684291 [10:23:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T102259&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164872&fm=116236423684291&tin=02508201610067®Number=0000000000090829&sum=100000 [10:23:00]OFD Sender: Processing packet 164872 [packets to send 104, broken 103] [10:23:00]ProducePacketName [10:23:00]name=ofd_packets/00164872 [10:23:00]OFD Sender: To server: pG, [10:23:00]CommunicateWithHost lk.salyk.kg:30040 [10:23:00]ConnectInit lk.salyk.kg [10:23:00]written 0, free lines is 4095 [10:23:00]Connected sock=10 [10:23:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 3D C1 07 01 00 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 03 A7 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 08 84 02 00 35 04 06 00 69 B7 66 BE 60 C3 F3 03 FC 0C CA 59 49 5E [10:23:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 1E 3A 47 00 1B 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 08 84 02 00 F4 03 04 00 91 4D 93 66 B6 04 01 00 00 1D AA AF A7 7E 8E 86 75 [10:23:01]CommunicateWithHost err = 0 [10:23:01]CheckOFDResponse [10:23:01]1017 (14) - 77093643461234 [10:23:01]1041 (16) - 0000000000874718 [10:23:01]1040 (4) - 164872 [10:23:01]1012 (4) - 14.07.2024 04:01 [10:23:01]1206 (1) - 0 [10:23:01]OFD Sender: Remove packet 164872 [10:23:01]ProducePacketName [10:23:01]name=ofd_packets/00164872 [10:23:01]NVStorageDeleteData [10:23:01]Write to MH i2c: 01 00 00 CE 05 D3 [10:23:01]Write i2c OK [10:23:01]MH_I2C_Read... [10:23:01]Read from MH i2c: 01 [10:23:01]MH_I2C_Read... [10:23:01]Read from MH i2c: 01 07 00 [10:23:01]MH_I2C_Read... [10:23:01]Read from MH i2c: 01 07 00 CE 05 00 00 00 00 00 FB 0C E1 [10:23:01]RasterBufferAndPrint [10:23:01]line [10:23:01]line [10:23:01]line [10:23:01]line [10:23:01]line [10:23:01]written 0, free lines is 3330 [10:23:01]MH_Cut [10:23:01]Write to MH i2c: D1 01 00 D5 05 01 AC [10:23:01]Write i2c OK [10:23:01]MH_I2C_Read... [10:23:01]Read from MH i2c: D1 [10:23:01]MH_I2C_Read... [10:23:01]Read from MH i2c: D1 01 00 [10:23:01]MH_I2C_Read... [10:23:01]Read from MH i2c: D1 01 00 D5 05 00 AB [10:23:01]Write to MH i2c: 01 00 00 D6 05 DB [10:23:01]Write i2c OK [10:23:01]MH_I2C_Read... [10:23:01]OFD Sender: No OFD packet to send [10:23:01]*** Cut start [10:23:01]*** Partial cut [10:23:01]*** CUTSNS_PIN = 1 [10:23:01]*** CUTSNS_PIN = 0 [10:23:02]*** Brake cut motor [10:23:02]Read from MH i2c: 01 [10:23:02]MH_I2C_Read... [10:23:02]*** Stop cut motor [10:23:02]*** Cut end [10:23:02]Read from MH i2c: 01 07 00 [10:23:02]MH_I2C_Read... [10:23:02]Read from MH i2c: 01 07 00 D6 05 00 00 00 00 00 FF 0F F0 [10:23:02]process_action close_receipt done [10:23:02]requested_data is exist [10:23:02]produce_requested_data [10:23:02]requested_item fm.sn is exist - process it [10:23:02]wFMCommunicate request_size=4 [10:23:02]MH_SAM_APDU [10:23:02]CAPDU: 80 11 00 00 [10:23:02]Write to MH i2c: E2 08 00 D7 05 80 11 00 00 00 00 00 00 56 [10:23:02]Write i2c OK [10:23:02]MH_I2C_Read... [10:23:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:02]Read from MH i2c: E2 [10:23:02]MH_I2C_Read... [10:23:02]Read from MH i2c: E2 17 00 [10:23:02]MH_I2C_Read... [10:23:02]Read from MH i2c: E2 17 00 D7 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 AC [10:23:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:23:02]wFMCommunicate OK [10:23:02]requested_item fd.num is exist - process it [10:23:02]SAM_PROTO_GetFieldsCounters [10:23:02]wFMCommunicate request_size=4 [10:23:02]MH_SAM_APDU [10:23:02]CAPDU: 80 13 00 00 [10:23:02]Write to MH i2c: E2 08 00 D8 05 80 13 00 00 00 00 00 00 59 [10:23:02]Write i2c OK [10:23:02]MH_I2C_Read... [10:23:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:23:02]Read from MH i2c: E2 [10:23:02]MH_I2C_Read... [10:23:02]Read from MH i2c: E2 62 00 [10:23:02]MH_I2C_Read... [10:23:02]Read from MH i2c: E2 62 00 D8 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 08 84 02 00 0E 04 04 00 BF 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 A0 [10:23:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 08 84 02 00 0E 04 04 00 BF 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 [10:23:02]wFMCommunicate OK [10:23:02]SAM_PROTO_GetFieldsCounters done [10:23:02]requested_item shift.num is exist - process it [10:23:02]requested_item shift.opened is exist - process it [10:23:02]req_shift_opened [10:23:02]FM_GetShiftState [10:23:02]SAM_PROTO_GetShiftState [10:23:02]wFMCommunicate request_size=4 [10:23:02]MH_SAM_APDU [10:23:02]CAPDU: 80 13 01 00 [10:23:02]Write to MH i2c: E2 08 00 D9 05 80 13 01 00 00 00 00 00 5B [10:23:02]Write i2c OK [10:23:02]MH_I2C_Read... [10:23:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:02]Read from MH i2c: E2 [10:23:02]MH_I2C_Read... [10:23:02]Read from MH i2c: E2 0E 00 [10:23:02]MH_I2C_Read... [10:23:02]Read from MH i2c: E2 0E 00 D9 05 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 DB [10:23:02]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [10:23:02]wFMCommunicate OK [10:23:02]SAM_PROTO_GetShiftState done [10:23:02]FM_GetShiftState done [10:23:02]req_shift_opened done [10:23:02]requested_item shift.open_date is exist - process it [10:23:02]req_shift_open_date [10:23:02]req_shift_open_date done [10:23:02]produce_requested_data done [10:23:02]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164872,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [10:23:02]process_action_free close_receipt [10:23:02]json_value_free [10:23:02]json_value_free done [10:23:02]process_json_proto returns [10:23:02]Send response to host [10:23:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164872,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [10:23:02]free response buf [10:23:02]execute_script done [10:23:02]execute_script returns [10:23:02]free content buf [10:23:02]Sock 9.Close socket [10:23:02]Sock 9.Thread stoped [10:23:06]OFD Sender: No OFD packet to send [10:23:11]OFD Sender: No OFD packet to send [10:23:16]OFD Sender: No OFD packet to send [10:23:21]OFD Sender: No OFD packet to send [10:23:26]OFD Sender: No OFD packet to send [10:23:31]OFD Sender: No OFD packet to send [10:23:36]OFD Sender: No OFD packet to send [10:23:41]OFD Sender: No OFD packet to send [10:23:46]OFD Sender: No OFD packet to send [10:23:51]OFD Sender: No OFD packet to send [10:23:56]OFD Sender: No OFD packet to send [10:24:01]OFD Sender: No OFD packet to send [10:24:06]OFD Sender: No OFD packet to send [10:24:11]OFD Sender: No OFD packet to send [10:24:16]OFD Sender: No OFD packet to send [10:24:21]OFD Sender: No OFD packet to send [10:24:26]OFD Sender: No OFD packet to send [10:24:31]OFD Sender: No OFD packet to send [10:24:36]OFD Sender: No OFD packet to send [10:24:41]OFD Sender: No OFD packet to send [10:24:46]OFD Sender: No OFD packet to send [10:24:51]OFD Sender: No OFD packet to send [10:24:56]OFD Sender: No OFD packet to send [10:25:01]OFD Sender: No OFD packet to send [10:25:06]OFD Sender: No OFD packet to send [10:25:11]OFD Sender: No OFD packet to send [10:25:16]OFD Sender: No OFD packet to send [10:25:17]accept exits with 7 [10:25:17]New connection [10:25:17]New thread 3067616612 created [10:25:17]Thread 3067473252 joined [10:25:17]Waiting for new connection... [10:25:17] Sock 7.Parse request [10:25:17]Sock 7.Check first char [10:25:17]Sock 7.First char is OK [10:25:17]request: POST /json_proto HTTP/1.0 [10:25:17]Method: POST [10:25:17]URL: /json_proto [10:25:17]Method is POST - this is cgi request [10:25:17]url: /json_proto [10:25:17]query_string will be loaded in cgi processing [10:25:17]execute_cgi json_proto POST (null) [10:25:17]execute_cgi path=json_proto method=POST [10:25:17]POST find Content-Length [10:25:17]Host: 172.17.56.4:8080 [10:25:17]Content-Length: 677 [10:25:17]Content-Type: application/json [10:25:17] [10:25:17]POST finish read [10:25:17]Found Content-Length = 677 [10:25:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458969", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:25:17]execute_script... [10:25:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458969", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:25:17]POST & json_proto [10:25:17]process_json_proto [10:25:17]json parsed OK: [10:25:17]protocol is kg_v1.0 [10:25:17]action value=close_receipt [10:25:17]process_action close_receipt [10:25:17]cmd_close_receipt [10:25:17]MH_GetDate [10:25:17]Write to MH i2c: F0 00 00 DA 05 CE [10:25:17]Write i2c OK [10:25:17]MH_I2C_Read... [10:25:17]Read from MH i2c: F0 [10:25:17]MH_I2C_Read... [10:25:17]Read from MH i2c: F0 09 00 [10:25:17]MH_I2C_Read... [10:25:17]Read from MH i2c: F0 09 00 DA 05 00 8E A7 93 66 C9 DC B2 64 C0 [10:25:17]GetLastDocTimeStamp 1720952579 [10:25:17]current date 1720952718 [10:25:17]FM_GetShiftState [10:25:17]SAM_PROTO_GetShiftState [10:25:17]wFMCommunicate request_size=4 [10:25:17]MH_SAM_APDU [10:25:17]CAPDU: 80 13 01 00 [10:25:17]Write to MH i2c: E2 08 00 DB 05 80 13 01 00 00 00 00 00 5D [10:25:17]Write i2c OK [10:25:17]MH_I2C_Read... [10:25:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:17]Read from MH i2c: E2 [10:25:17]MH_I2C_Read... [10:25:17]Read from MH i2c: E2 0E 00 [10:25:17]MH_I2C_Read... [10:25:17]Read from MH i2c: E2 0E 00 DB 05 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 DD [10:25:17]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [10:25:17]wFMCommunicate OK [10:25:17]SAM_PROTO_GetShiftState done [10:25:17]FM_GetShiftState done [10:25:17]opened in 1720917342 [10:25:17]opened+sec_in_day 1721003742 [10:25:17]quantity*price = 50008 [10:25:17]sum+1 = 50009 [10:25:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 71 14.07.2024 10:25 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164873 ФПД: 107615365217167 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T102518&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164873&fm=107615365217167&tin=02508201610067®Number=0000000000090829&sum=50000 [10:25:18]StoreToDocumentArchive [10:25:18]shift 447 fd 164873 [10:25:18]save to /storage/0447/doc_00164873 [10:25:18]save last doc name /storage/0447/doc_00164873 to /storage/kkm_last_doc_name [10:25:18]save OK [10:25:18]Clear old archive folders... [10:25:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:25:18]tlvbuf is 00756AA0 [10:25:18]SAM_PROTO_ClearQueue [10:25:18]wFMCommunicate request_size=4 [10:25:18]MH_SAM_APDU [10:25:18]CAPDU: 80 09 00 00 [10:25:18]Write to MH i2c: E2 08 00 E8 05 80 09 00 00 00 00 00 00 5F [10:25:18]Write i2c OK [10:25:18]MH_I2C_Read... [10:25:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:25:18]Read from MH i2c: E2 [10:25:18]MH_I2C_Read... [10:25:18]Read from MH i2c: E2 03 00 [10:25:18]MH_I2C_Read... [10:25:18]Read from MH i2c: E2 03 00 E8 05 00 90 00 61 [10:25:18]RAPDU: 90 00 [10:25:18]wFMCommunicate OK [10:25:18]SAM_PROTO_ClearQueue done [10:25:18]KKMCreateOFDPacket [10:25:18]OFDProtocolAddRootSTLVToBuf [10:25:18]FM_MakeSignedData [10:25:18]FM_MakeSignedData [10:25:18]SAM_PROTO_SignData [10:25:18]wFMCommunicate request_size=4 [10:25:18]MH_SAM_APDU [10:25:18]CAPDU: 80 0D 01 02 [10:25:18]Write to MH i2c: E2 08 00 E9 05 80 0D 01 02 00 00 00 00 67 [10:25:18]Write i2c OK [10:25:18]MH_I2C_Read... [10:25:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:25:18]Read from MH i2c: E2 [10:25:18]MH_I2C_Read... [10:25:18]Read from MH i2c: E2 03 00 [10:25:18]MH_I2C_Read... [10:25:18]Read from MH i2c: E2 03 00 E9 05 00 90 00 62 [10:25:18]RAPDU: 90 00 [10:25:18]wFMCommunicate OK [10:25:18]wFMCommunicate request_size=255 [10:25:18]MH_SAM_APDU [10:25:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 47 00 00 00 F4 03 04 00 8E A7 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 09 84 02 00 35 04 06 00 61 [10:25:18]Write to MH i2c: E2 02 01 EA 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 47 00 00 00 F4 03 04 00 8E A7 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 09 84 02 00 35 04 06 00 61 00 00 05 [10:25:18]Write i2c OK [10:25:18]MH_I2C_Read... [10:25:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:19]Read from MH i2c: E2 [10:25:19]MH_I2C_Read... [10:25:19]Read from MH i2c: E2 03 00 [10:25:19]MH_I2C_Read... [10:25:19]Read from MH i2c: E2 03 00 EA 05 00 90 00 63 [10:25:19]RAPDU: 90 00 [10:25:19]wFMCommunicate OK [10:25:19]wFMCommunicate request_size=10 [10:25:19]MH_SAM_APDU [10:25:19]CAPDU: 80 0D 02 02 05 E0 27 9D BB 8F [10:25:19]Write to MH i2c: E2 0D 00 EB 05 80 0D 02 02 05 00 E0 27 9D BB 8F 00 00 62 [10:25:19]Write i2c OK [10:25:19]MH_I2C_Read... [10:25:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:19]Read from MH i2c: E2 [10:25:19]MH_I2C_Read... [10:25:19]Read from MH i2c: E2 03 00 [10:25:19]MH_I2C_Read... [10:25:19]Read from MH i2c: E2 03 00 EB 05 00 90 00 64 [10:25:19]RAPDU: 90 00 [10:25:19]wFMCommunicate OK [10:25:19]wFMCommunicate request_size=4 [10:25:19]MH_SAM_APDU [10:25:19]CAPDU: 80 0D 03 02 [10:25:19]Write to MH i2c: E2 08 00 EC 05 80 0D 03 02 00 00 00 00 6C [10:25:19]Write i2c OK [10:25:19]MH_I2C_Read... [10:25:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:25:19]Read from MH i2c: E2 [10:25:19]MH_I2C_Read... [10:25:19]Read from MH i2c: E2 0B 00 [10:25:19]MH_I2C_Read... [10:25:19]Read from MH i2c: E2 0B 00 EC 05 00 08 5E 79 60 D4 F7 5B E0 90 00 B2 [10:25:19]RAPDU: 08 5E 79 60 D4 F7 5B E0 90 00 [10:25:19]wFMCommunicate OK [10:25:19]SAM_PROTO_SignData done [10:25:19]FM_MakeSignedData done [10:25:19]CreateOFDProtocolMessage [10:25:19]wFMCommunicate request_size=4 [10:25:19]MH_SAM_APDU [10:25:19]CAPDU: 80 11 00 00 [10:25:19]Write to MH i2c: E2 08 00 ED 05 80 11 00 00 00 00 00 00 6C [10:25:19]Write i2c OK [10:25:19]MH_I2C_Read... [10:25:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:19]Read from MH i2c: E2 [10:25:19]MH_I2C_Read... [10:25:19]Read from MH i2c: E2 17 00 [10:25:19]MH_I2C_Read... [10:25:19]Read from MH i2c: E2 17 00 ED 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C2 [10:25:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:25:19]wFMCommunicate OK [10:25:19]CreateOFDProtocolMessage done [10:25:19]OFDSenderStorePacket 164873 [10:25:19]StoreOFDPacket docnum=164873 [10:25:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 30 F9 07 01 C0 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 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 47 00 00 00 F4 03 04 00 8E A7 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 09 84 02 00 35 04 06 00 61 E0 27 9D BB 8F 08 5E 79 60 D4 F7 5B E0 [10:25:19]CheckFolder [10:25:19]dirname=/storage/ofd_packets [10:25:19]CheckFolder done [10:25:19]ProducePacketName [10:25:19]name=ofd_packets/00164873 [10:25:19]NVStorageSaveData ofd_packets/00164873 [10:25:19]File name is /storage/ofd_packets/00164873 [10:25:19]Write 301 bytes [10:25:19]NVStorageSaveData done [10:25:19]OFDSenderStorePacket done [10:25:19]KKMCreateOFDPacket done [10:25:19]NVStorageSaveData kkm_last_timestamp [10:25:19]File name is /storage/kkm_last_timestamp [10:25:19]Write 4 bytes [10:25:19]NVStorageSaveData done [10:25:19]ExternCall_PrintAddStr [10:25:19]wPrintStart [10:25:19]Write to MH i2c: 01 00 00 EE 05 F3 [10:25:19]Write i2c OK [10:25:19]MH_I2C_Read... [10:25:19]Read from MH i2c: 01 [10:25:19]MH_I2C_Read... [10:25:19]Read from MH i2c: 01 07 00 [10:25:19]MH_I2C_Read... [10:25:19]Read from MH i2c: 01 07 00 EE 05 00 00 00 00 00 FF 0F 08 [10:25:19]RasterBufferAndPrint [10:25:19]line Счет N : (1)458969 [10:25:19]line ИНН: 02508201610067 [10:25:19]line Контрольно-Кассовый Чек [10:25:19]line ПРОДАЖА [10:25:19]line ТРК (МРК, ГНК) : 22 [10:25:19]line Товар: 2710124130 [10:25:19]line Аи-92-К-5 [10:25:19]line 7.600 * 65.80 [10:25:19]line = 500.08 [10:25:19]line НДС 12% НСП 1% [10:25:19]line > о реализуемом товаре [10:25:19]line ОКРУГЛЕНИЕ: -0.08 [10:25:19]line ИТОГО: 500.00 [10:25:19]line Внесено: 500.00 [10:25:19]line СДАЧА: 0.00 [10:25:19]line НСП 1% : 4.42 [10:25:19]line НДС 12% : 53.11 [10:25:19]line Наличными: 500.00 [10:25:19]line Безнал.: 0.00 [10:25:19]line Место: АЗС № 72 "Партнер Нефть" [10:25:19]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:25:19]line СНО: Общий режим [10:25:19]line Чек 71 14.07.2024 10:25 [10:25:19]line Смена: 447 ФФД: 1.0 [10:25:19]line ЗНМ: 0300000160 [10:25:19]line РНМ: 0000000000090829 [10:25:19]line Версия ККМ: 001 [10:25:19]line ФМ: 0000000000874718 [10:25:19]line ФД: 164873 [10:25:19]line ФПД: 107615365217167 [10:25:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T102518&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164873&fm=107615365217167&tin=02508201610067®Number=0000000000090829&sum=50000 [10:25:19]written 0, free lines is 4095 [10:25:19]OFD Sender: Processing packet 164873 [packets to send 104, broken 103] [10:25:19]ProducePacketName [10:25:19]name=ofd_packets/00164873 [10:25:19]OFD Sender: To server: pG, [10:25:19]CommunicateWithHost lk.salyk.kg:30040 [10:25:19]ConnectInit lk.salyk.kg [10:25:19]Connected sock=10 [10:25:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 30 F9 07 01 C0 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 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 47 00 00 00 F4 03 04 00 8E A7 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 09 84 02 00 35 04 06 00 61 E0 27 9D BB 8F 08 5E 79 60 D4 F7 5B E0 [10:25:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 75 D0 47 00 51 FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 09 84 02 00 F4 03 04 00 1C 4E 93 66 B6 04 01 00 00 78 F0 0F 19 D9 20 3A BF [10:25:19]CommunicateWithHost err = 0 [10:25:19]CheckOFDResponse [10:25:19]1017 (14) - 77093643461234 [10:25:19]1041 (16) - 0000000000874718 [10:25:19]1040 (4) - 164873 [10:25:19]1012 (4) - 14.07.2024 04:03 [10:25:19]1206 (1) - 0 [10:25:19]OFD Sender: Remove packet 164873 [10:25:19]ProducePacketName [10:25:19]name=ofd_packets/00164873 [10:25:19]NVStorageDeleteData [10:25:19]Write to MH i2c: 01 00 00 18 06 1E [10:25:19]Write i2c OK [10:25:19]MH_I2C_Read... [10:25:19]Read from MH i2c: 01 [10:25:19]MH_I2C_Read... [10:25:19]Read from MH i2c: 01 07 00 [10:25:19]MH_I2C_Read... [10:25:19]Read from MH i2c: 01 07 00 18 06 00 00 00 00 00 F3 0C 24 [10:25:19]RasterBufferAndPrint [10:25:19]line [10:25:19]line [10:25:19]line [10:25:19]line [10:25:19]line [10:25:19]written 0, free lines is 3321 [10:25:19]MH_Cut [10:25:19]Write to MH i2c: D1 01 00 1F 06 01 F7 [10:25:19]Write i2c OK [10:25:19]MH_I2C_Read... [10:25:19]Read from MH i2c: D1 [10:25:19]MH_I2C_Read... [10:25:19]Read from MH i2c: D1 01 00 [10:25:19]MH_I2C_Read... [10:25:19]Read from MH i2c: D1 01 00 1F 06 00 F6 [10:25:19]Write to MH i2c: 01 00 00 20 06 26 [10:25:19]Write i2c OK [10:25:19]MH_I2C_Read... [10:25:20]OFD Sender: No OFD packet to send [10:25:20]*** Cut start [10:25:20]*** Partial cut [10:25:20]*** CUTSNS_PIN = 1 [10:25:20]*** CUTSNS_PIN = 0 [10:25:20]*** 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 20 06 00 00 00 00 00 FF 0F 3B [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 21 06 80 11 00 00 00 00 00 00 A1 [10:25:20]Write i2c OK [10:25:20]MH_I2C_Read... [10:25:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:21]Read from MH i2c: E2 [10:25:21]MH_I2C_Read... [10:25:21]Read from MH i2c: E2 17 00 [10:25:21]MH_I2C_Read... [10:25:21]Read from MH i2c: E2 17 00 21 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F7 [10:25:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:25:21]wFMCommunicate OK [10:25:21]requested_item fd.num is exist - process it [10:25:21]SAM_PROTO_GetFieldsCounters [10:25:21]wFMCommunicate request_size=4 [10:25:21]MH_SAM_APDU [10:25:21]CAPDU: 80 13 00 00 [10:25:21]Write to MH i2c: E2 08 00 22 06 80 13 00 00 00 00 00 00 A4 [10:25:21]Write i2c OK [10:25:21]MH_I2C_Read... [10:25:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:25:21]Read from MH i2c: E2 [10:25:21]MH_I2C_Read... [10:25:21]Read from MH i2c: E2 62 00 [10:25:21]MH_I2C_Read... [10:25:21]Read from MH i2c: E2 62 00 22 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 09 84 02 00 0E 04 04 00 BF 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 EF [10:25:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 09 84 02 00 0E 04 04 00 BF 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 [10:25:21]wFMCommunicate OK [10:25:21]SAM_PROTO_GetFieldsCounters done [10:25:21]requested_item shift.num is exist - process it [10:25:21]requested_item shift.opened is exist - process it [10:25:21]req_shift_opened [10:25:21]FM_GetShiftState [10:25:21]SAM_PROTO_GetShiftState [10:25:21]wFMCommunicate request_size=4 [10:25:21]MH_SAM_APDU [10:25:21]CAPDU: 80 13 01 00 [10:25:21]Write to MH i2c: E2 08 00 23 06 80 13 01 00 00 00 00 00 A6 [10:25:21]Write i2c OK [10:25:21]MH_I2C_Read... [10:25:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:21]Read from MH i2c: E2 [10:25:21]MH_I2C_Read... [10:25:21]Read from MH i2c: E2 0E 00 [10:25:21]MH_I2C_Read... [10:25:21]Read from MH i2c: E2 0E 00 23 06 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 26 [10:25:21]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [10:25:21]wFMCommunicate OK [10:25:21]SAM_PROTO_GetShiftState done [10:25:21]FM_GetShiftState done [10:25:21]req_shift_opened done [10:25:21]requested_item shift.open_date is exist - process it [10:25:21]req_shift_open_date [10:25:21]req_shift_open_date done [10:25:21]produce_requested_data done [10:25:21]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164873,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [10:25:21]process_action_free close_receipt [10:25:21]json_value_free [10:25:21]json_value_free done [10:25:21]process_json_proto returns [10:25:21]Send response to host [10:25:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164873,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [10:25:21]free response buf [10:25:21]execute_script done [10:25:21]execute_script returns [10:25:21]free content buf [10:25:21]Sock 7.Close socket [10:25:21]Sock 7.Thread stoped [10:25:25]OFD Sender: No OFD packet to send [10:25:30]OFD Sender: No OFD packet to send [10:25:35]OFD Sender: No OFD packet to send [10:25:40]OFD Sender: No OFD packet to send [10:25:45]OFD Sender: No OFD packet to send [10:25:50]OFD Sender: No OFD packet to send [10:25:53]accept exits with 9 [10:25:53]New connection [10:25:53]New thread 3067473252 created [10:25:53]Thread 3067616612 joined [10:25:53]Waiting for new connection... [10:25:53] Sock 9.Parse request [10:25:53]Sock 9.Check first char [10:25:53]Sock 9.First char is OK [10:25:53]request: POST /json_proto HTTP/1.0 [10:25:53]Method: POST [10:25:53]URL: /json_proto [10:25:53]Method is POST - this is cgi request [10:25:53]url: /json_proto [10:25:53]query_string will be loaded in cgi processing [10:25:53]execute_cgi json_proto POST (null) [10:25:53]execute_cgi path=json_proto method=POST [10:25:53]POST find Content-Length [10:25:53]Host: 172.17.56.4:8080 [10:25:53]Content-Length: 677 [10:25:53]Content-Type: application/json [10:25:53] [10:25:53]POST finish read [10:25:53]Found Content-Length = 677 [10:25:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458970", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:25:53]execute_script... [10:25: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)458970", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:25:53]POST & json_proto [10:25:53]process_json_proto [10:25:53]json parsed OK: [10:25:53]protocol is kg_v1.0 [10:25:53]action value=close_receipt [10:25:53]process_action close_receipt [10:25:53]cmd_close_receipt [10:25:53]MH_GetDate [10:25:53]Write to MH i2c: F0 00 00 24 06 19 [10:25:53]Write i2c OK [10:25:53]MH_I2C_Read... [10:25:53]Read from MH i2c: F0 [10:25:53]MH_I2C_Read... [10:25:53]Read from MH i2c: F0 09 00 [10:25:53]MH_I2C_Read... [10:25:53]Read from MH i2c: F0 09 00 24 06 00 B1 A7 93 66 C9 DC B2 64 2E [10:25:53]GetLastDocTimeStamp 1720952718 [10:25:53]current date 1720952753 [10:25:53]FM_GetShiftState [10:25:53]SAM_PROTO_GetShiftState [10:25:53]wFMCommunicate request_size=4 [10:25:53]MH_SAM_APDU [10:25:53]CAPDU: 80 13 01 00 [10:25:53]Write to MH i2c: E2 08 00 25 06 80 13 01 00 00 00 00 00 A8 [10:25:53]Write i2c OK [10:25:53]MH_I2C_Read... [10:25:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:53]Read from MH i2c: E2 [10:25:53]MH_I2C_Read... [10:25:53]Read from MH i2c: E2 0E 00 [10:25:53]MH_I2C_Read... [10:25:53]Read from MH i2c: E2 0E 00 25 06 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 28 [10:25:53]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [10:25:53]wFMCommunicate OK [10:25:53]SAM_PROTO_GetShiftState done [10:25:53]FM_GetShiftState done [10:25:53]opened in 1720917342 [10:25:53]opened+sec_in_day 1721003742 [10:25:53]quantity*price = 50008 [10:25:53]sum+1 = 50009 [10:25:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 72 14.07.2024 10:25 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164874 ФПД: 126051579529804 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T102554&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164874&fm=126051579529804&tin=02508201610067®Number=0000000000090829&sum=50000 [10:25:54]StoreToDocumentArchive [10:25:54]shift 447 fd 164874 [10:25:54]save to /storage/0447/doc_00164874 [10:25:54]save last doc name /storage/0447/doc_00164874 to /storage/kkm_last_doc_name [10:25:54]save OK [10:25:54]Clear old archive folders... [10:25:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:25:54]tlvbuf is 00743940 [10:25:54]SAM_PROTO_ClearQueue [10:25:54]wFMCommunicate request_size=4 [10:25:54]MH_SAM_APDU [10:25:54]CAPDU: 80 09 00 00 [10:25:54]Write to MH i2c: E2 08 00 32 06 80 09 00 00 00 00 00 00 AA [10:25:54]Write i2c OK [10:25:54]MH_I2C_Read... [10:25:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:25:54]Read from MH i2c: E2 [10:25:54]MH_I2C_Read... [10:25:54]Read from MH i2c: E2 03 00 [10:25:54]MH_I2C_Read... [10:25:54]Read from MH i2c: E2 03 00 32 06 00 90 00 AC [10:25:54]RAPDU: 90 00 [10:25:54]wFMCommunicate OK [10:25:54]SAM_PROTO_ClearQueue done [10:25:54]KKMCreateOFDPacket [10:25:54]OFDProtocolAddRootSTLVToBuf [10:25:54]FM_MakeSignedData [10:25:54]FM_MakeSignedData [10:25:54]SAM_PROTO_SignData [10:25:54]wFMCommunicate request_size=4 [10:25:54]MH_SAM_APDU [10:25:54]CAPDU: 80 0D 01 02 [10:25:54]Write to MH i2c: E2 08 00 33 06 80 0D 01 02 00 00 00 00 B2 [10:25:54]Write i2c OK [10:25:54]MH_I2C_Read... [10:25:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:25:54]Read from MH i2c: E2 [10:25:54]MH_I2C_Read... [10:25:54]Read from MH i2c: E2 03 00 [10:25:54]MH_I2C_Read... [10:25:54]Read from MH i2c: E2 03 00 33 06 00 90 00 AD [10:25:54]RAPDU: 90 00 [10:25:54]wFMCommunicate OK [10:25:54]wFMCommunicate request_size=255 [10:25:54]MH_SAM_APDU [10:25:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 48 00 00 00 F4 03 04 00 B2 A7 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0A 84 02 00 35 04 06 00 72 [10:25:54]Write to MH i2c: E2 02 01 34 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 48 00 00 00 F4 03 04 00 B2 A7 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0A 84 02 00 35 04 06 00 72 00 00 87 [10:25:54]Write i2c OK [10:25:54]MH_I2C_Read... [10:25:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:54]Read from MH i2c: E2 [10:25:54]MH_I2C_Read... [10:25:54]Read from MH i2c: E2 03 00 [10:25:54]MH_I2C_Read... [10:25:54]Read from MH i2c: E2 03 00 34 06 00 90 00 AE [10:25:54]RAPDU: 90 00 [10:25:54]wFMCommunicate OK [10:25:54]wFMCommunicate request_size=10 [10:25:54]MH_SAM_APDU [10:25:54]CAPDU: 80 0D 02 02 05 A4 AB 9F 0A 4C [10:25:54]Write to MH i2c: E2 0D 00 35 06 80 0D 02 02 05 00 A4 AB 9F 0A 4C 00 00 03 [10:25:54]Write i2c OK [10:25:54]MH_I2C_Read... [10:25:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:54]Read from MH i2c: E2 [10:25:54]MH_I2C_Read... [10:25:54]Read from MH i2c: E2 03 00 [10:25:54]MH_I2C_Read... [10:25:54]Read from MH i2c: E2 03 00 35 06 00 90 00 AF [10:25:54]RAPDU: 90 00 [10:25:54]wFMCommunicate OK [10:25:54]wFMCommunicate request_size=4 [10:25:54]MH_SAM_APDU [10:25:54]CAPDU: 80 0D 03 02 [10:25:54]Write to MH i2c: E2 08 00 36 06 80 0D 03 02 00 00 00 00 B7 [10:25:54]Write i2c OK [10:25:54]MH_I2C_Read... [10:25:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:25:54]Read from MH i2c: E2 [10:25:54]MH_I2C_Read... [10:25:54]Read from MH i2c: E2 0B 00 [10:25:54]MH_I2C_Read... [10:25:54]Read from MH i2c: E2 0B 00 36 06 00 C9 91 80 22 96 05 27 BD 90 00 33 [10:25:54]RAPDU: C9 91 80 22 96 05 27 BD 90 00 [10:25:54]wFMCommunicate OK [10:25:54]SAM_PROTO_SignData done [10:25:54]FM_MakeSignedData done [10:25:54]CreateOFDProtocolMessage [10:25:54]wFMCommunicate request_size=4 [10:25:54]MH_SAM_APDU [10:25:54]CAPDU: 80 11 00 00 [10:25:54]Write to MH i2c: E2 08 00 37 06 80 11 00 00 00 00 00 00 B7 [10:25:54]Write i2c OK [10:25:54]MH_I2C_Read... [10:25:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:54]Read from MH i2c: E2 [10:25:54]MH_I2C_Read... [10:25:54]Read from MH i2c: E2 17 00 [10:25:54]MH_I2C_Read... [10:25:54]Read from MH i2c: E2 17 00 37 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 0D [10:25:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:25:54]wFMCommunicate OK [10:25:54]CreateOFDProtocolMessage done [10:25:54]OFDSenderStorePacket 164874 [10:25:54]StoreOFDPacket docnum=164874 [10:25:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 2F 79 07 01 26 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 48 00 00 00 F4 03 04 00 B2 A7 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0A 84 02 00 35 04 06 00 72 A4 AB 9F 0A 4C C9 91 80 22 96 05 27 BD [10:25:54]CheckFolder [10:25:54]dirname=/storage/ofd_packets [10:25:54]CheckFolder done [10:25:54]ProducePacketName [10:25:54]name=ofd_packets/00164874 [10:25:54]NVStorageSaveData ofd_packets/00164874 [10:25:54]File name is /storage/ofd_packets/00164874 [10:25:54]Write 301 bytes [10:25:54]NVStorageSaveData done [10:25:54]OFDSenderStorePacket done [10:25:54]KKMCreateOFDPacket done [10:25:54]NVStorageSaveData kkm_last_timestamp [10:25:54]File name is /storage/kkm_last_timestamp [10:25:54]Write 4 bytes [10:25:54]NVStorageSaveData done [10:25:54]ExternCall_PrintAddStr [10:25:54]wPrintStart [10:25:54]Write to MH i2c: 01 00 00 38 06 3E [10:25:54]Write i2c OK [10:25:54]MH_I2C_Read... [10:25:54]Read from MH i2c: 01 [10:25:54]MH_I2C_Read... [10:25:54]Read from MH i2c: 01 07 00 [10:25:54]MH_I2C_Read... [10:25:54]Read from MH i2c: 01 07 00 38 06 00 00 00 00 00 FF 0F 53 [10:25:54]RasterBufferAndPrint [10:25:54]line Счет N : (1)458970 [10:25:54]line ИНН: 02508201610067 [10:25:54]line Контрольно-Кассовый Чек [10:25:54]line ПРОДАЖА [10:25:54]line ТРК (МРК, ГНК) : 22 [10:25:54]line Товар: 2710124130 [10:25:54]line Аи-92-К-5 [10:25:54]line 7.600 * 65.80 [10:25:54]line = 500.08 [10:25:54]line НДС 12% НСП 1% [10:25:54]line > о реализуемом товаре [10:25:54]line ОКРУГЛЕНИЕ: -0.08 [10:25:54]line ИТОГО: 500.00 [10:25:54]line Внесено: 500.00 [10:25:54]line СДАЧА: 0.00 [10:25:54]line НСП 1% : 4.42 [10:25:54]line НДС 12% : 53.11 [10:25:54]line Наличными: 500.00 [10:25:54]line Безнал.: 0.00 [10:25:54]line Место: АЗС № 72 "Партнер Нефть" [10:25:54]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:25:54]line СНО: Общий режим [10:25:54]line Чек 72 14.07.2024 10:25 [10:25:54]line Смена: 447 ФФД: 1.0 [10:25:54]line ЗНМ: 0300000160 [10:25:54]line РНМ: 0000000000090829 [10:25:54]line Версия ККМ: 001 [10:25:54]line ФМ: 0000000000874718 [10:25:54]line ФД: 164874 [10:25:54]line ФПД: 126051579529804 [10:25:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T102554&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164874&fm=126051579529804&tin=02508201610067®Number=0000000000090829&sum=50000 [10:25:55]OFD Sender: Processing packet 164874 [packets to send 104, broken 103] [10:25:55]ProducePacketName [10:25:55]name=ofd_packets/00164874 [10:25:55]OFD Sender: To server: pG, [10:25:55]CommunicateWithHost lk.salyk.kg:30040 [10:25:55]ConnectInit lk.salyk.kg [10:25:55]written 0, free lines is 4095 [10:25:55]Connected sock=10 [10:25:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 2F 79 07 01 26 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 48 00 00 00 F4 03 04 00 B2 A7 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0A 84 02 00 35 04 06 00 72 A4 AB 9F 0A 4C C9 91 80 22 96 05 27 BD [10:25:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 C5 BB 47 00 18 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0A 84 02 00 F4 03 04 00 40 4E 93 66 B6 04 01 00 00 CF 91 43 2B 9F 64 7A 3B [10:25:55]CommunicateWithHost err = 0 [10:25:55]CheckOFDResponse [10:25:55]1017 (14) - 77093643461234 [10:25:55]1041 (16) - 0000000000874718 [10:25:55]1040 (4) - 164874 [10:25:55]1012 (4) - 14.07.2024 04:04 [10:25:55]1206 (1) - 0 [10:25:55]OFD Sender: Remove packet 164874 [10:25:55]ProducePacketName [10:25:55]name=ofd_packets/00164874 [10:25:55]NVStorageDeleteData [10:25:55]Write to MH i2c: 01 00 00 62 06 68 [10:25:55]Write i2c OK [10:25:55]MH_I2C_Read... [10:25:55]Read from MH i2c: 01 [10:25:55]MH_I2C_Read... [10:25:55]Read from MH i2c: 01 07 00 [10:25:55]MH_I2C_Read... [10:25:55]Read from MH i2c: 01 07 00 62 06 00 00 00 00 00 F0 0C 6B [10:25:55]RasterBufferAndPrint [10:25:55]line [10:25:55]line [10:25:55]line [10:25:55]line [10:25:55]line [10:25:55]written 0, free lines is 3318 [10:25:55]MH_Cut [10:25:55]Write to MH i2c: D1 01 00 69 06 01 41 [10:25:55]Write i2c OK [10:25:55]MH_I2C_Read... [10:25:55]Read from MH i2c: D1 [10:25:55]MH_I2C_Read... [10:25:55]Read from MH i2c: D1 01 00 [10:25:55]MH_I2C_Read... [10:25:55]Read from MH i2c: D1 01 00 69 06 00 40 [10:25:55]Write to MH i2c: 01 00 00 6A 06 70 [10:25:55]Write i2c OK [10:25:55]MH_I2C_Read... [10:25:56]OFD Sender: No OFD packet to send [10:25:56]*** Cut start [10:25:56]*** Partial cut [10:25:56]*** CUTSNS_PIN = 1 [10:25:56]*** CUTSNS_PIN = 0 [10:25:56]*** Brake cut motor [10:25:56]Read from MH i2c: 01 [10:25:56]MH_I2C_Read... [10:25:56]*** Stop cut motor [10:25:56]*** Cut end [10:25:56]Read from MH i2c: 01 07 00 [10:25:56]MH_I2C_Read... [10:25:56]Read from MH i2c: 01 07 00 6A 06 00 00 00 00 00 FF 0F 85 [10:25:56]process_action close_receipt done [10:25:56]requested_data is exist [10:25:56]produce_requested_data [10:25:56]requested_item fm.sn is exist - process it [10:25:56]wFMCommunicate request_size=4 [10:25:56]MH_SAM_APDU [10:25:56]CAPDU: 80 11 00 00 [10:25:56]Write to MH i2c: E2 08 00 6B 06 80 11 00 00 00 00 00 00 EB [10:25:56]Write i2c OK [10:25:56]MH_I2C_Read... [10:25:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:57]Read from MH i2c: E2 [10:25:57]MH_I2C_Read... [10:25:57]Read from MH i2c: E2 17 00 [10:25:57]MH_I2C_Read... [10:25:57]Read from MH i2c: E2 17 00 6B 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 41 [10:25:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:25:57]wFMCommunicate OK [10:25:57]requested_item fd.num is exist - process it [10:25:57]SAM_PROTO_GetFieldsCounters [10:25:57]wFMCommunicate request_size=4 [10:25:57]MH_SAM_APDU [10:25:57]CAPDU: 80 13 00 00 [10:25:57]Write to MH i2c: E2 08 00 6C 06 80 13 00 00 00 00 00 00 EE [10:25:57]Write i2c OK [10:25:57]MH_I2C_Read... [10:25:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:25:57]Read from MH i2c: E2 [10:25:57]MH_I2C_Read... [10:25:57]Read from MH i2c: E2 62 00 [10:25:57]MH_I2C_Read... [10:25:57]Read from MH i2c: E2 62 00 6C 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 0A 84 02 00 0E 04 04 00 BF 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 3D [10:25:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 0A 84 02 00 0E 04 04 00 BF 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 [10:25:57]wFMCommunicate OK [10:25:57]SAM_PROTO_GetFieldsCounters done [10:25:57]requested_item shift.num is exist - process it [10:25:57]requested_item shift.opened is exist - process it [10:25:57]req_shift_opened [10:25:57]FM_GetShiftState [10:25:57]SAM_PROTO_GetShiftState [10:25:57]wFMCommunicate request_size=4 [10:25:57]MH_SAM_APDU [10:25:57]CAPDU: 80 13 01 00 [10:25:57]Write to MH i2c: E2 08 00 6D 06 80 13 01 00 00 00 00 00 F0 [10:25:57]Write i2c OK [10:25:57]MH_I2C_Read... [10:25:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:57]Read from MH i2c: E2 [10:25:57]MH_I2C_Read... [10:25:57]Read from MH i2c: E2 0E 00 [10:25:57]MH_I2C_Read... [10:25:57]Read from MH i2c: E2 0E 00 6D 06 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 70 [10:25:57]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [10:25:57]wFMCommunicate OK [10:25:57]SAM_PROTO_GetShiftState done [10:25:57]FM_GetShiftState done [10:25:57]req_shift_opened done [10:25:57]requested_item shift.open_date is exist - process it [10:25:57]req_shift_open_date [10:25:57]req_shift_open_date done [10:25:57]produce_requested_data done [10:25:57]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164874,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [10:25:57]process_action_free close_receipt [10:25:57]json_value_free [10:25:57]json_value_free done [10:25:57]process_json_proto returns [10:25:57]Send response to host [10:25:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164874,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [10:25:57]free response buf [10:25:57]execute_script done [10:25:57]execute_script returns [10:25:57]free content buf [10:25:57]Sock 9.Close socket [10:25:57]Sock 9.Thread stoped [10:26:01]OFD Sender: No OFD packet to send [10:26:06]OFD Sender: No OFD packet to send [10:26:11]OFD Sender: No OFD packet to send [10:26:16]OFD Sender: No OFD packet to send [10:26:21]OFD Sender: No OFD packet to send [10:26:26]OFD Sender: No OFD packet to send [10:26:31]OFD Sender: No OFD packet to send [10:26:36]OFD Sender: No OFD packet to send [10:26:41]OFD Sender: No OFD packet to send [10:26:46]OFD Sender: No OFD packet to send [10:26:51]OFD Sender: No OFD packet to send [10:26:56]OFD Sender: No OFD packet to send [10:27:01]OFD Sender: No OFD packet to send [10:27:06]OFD Sender: No OFD packet to send [10:27:11]OFD Sender: No OFD packet to send [10:27:16]OFD Sender: No OFD packet to send [10:27:21]OFD Sender: No OFD packet to send [10:27:26]OFD Sender: No OFD packet to send [10:27:31]OFD Sender: No OFD packet to send [10:27:36]OFD Sender: No OFD packet to send [10:27:41]OFD Sender: No OFD packet to send [10:27:46]OFD Sender: No OFD packet to send [10:27:51]OFD Sender: No OFD packet to send [10:27:56]OFD Sender: No OFD packet to send [10:28:01]OFD Sender: No OFD packet to send [10:28:06]OFD Sender: No OFD packet to send [10:28:11]OFD Sender: No OFD packet to send [10:28:16]OFD Sender: No OFD packet to send [10:28:21]OFD Sender: No OFD packet to send [10:28:26]OFD Sender: No OFD packet to send [10:28:31]OFD Sender: No OFD packet to send [10:28:36]OFD Sender: No OFD packet to send [10:28:41]OFD Sender: No OFD packet to send [10:28:46]OFD Sender: No OFD packet to send [10:28:51]OFD Sender: No OFD packet to send [10:28:56]OFD Sender: No OFD packet to send [10:29:01]OFD Sender: No OFD packet to send [10:29:06]OFD Sender: No OFD packet to send [10:29:11]OFD Sender: No OFD packet to send [10:29:16]OFD Sender: No OFD packet to send [10:29:21]OFD Sender: No OFD packet to send [10:29:26]OFD Sender: No OFD packet to send [10:29:31]OFD Sender: No OFD packet to send [10:29:36]OFD Sender: No OFD packet to send [10:29:41]OFD Sender: No OFD packet to send [10:29:46]OFD Sender: No OFD packet to send [10:29:51]OFD Sender: No OFD packet to send [10:29:56]OFD Sender: No OFD packet to send [10:30:01]OFD Sender: No OFD packet to send [10:30:06]OFD Sender: No OFD packet to send [10:30:11]OFD Sender: No OFD packet to send [10:30:16]OFD Sender: No OFD packet to send [10:30:21]OFD Sender: No OFD packet to send [10:30:26]OFD Sender: No OFD packet to send [10:30:31]OFD Sender: No OFD packet to send [10:30:36]OFD Sender: No OFD packet to send [10:30:41]OFD Sender: No OFD packet to send [10:30:46]OFD Sender: No OFD packet to send [10:30:51]OFD Sender: No OFD packet to send [10:30:56]OFD Sender: No OFD packet to send [10:31:01]OFD Sender: No OFD packet to send [10:31:06]OFD Sender: No OFD packet to send [10:31:11]OFD Sender: No OFD packet to send [10:31:16]OFD Sender: No OFD packet to send [10:31:21]OFD Sender: No OFD packet to send [10:31:26]OFD Sender: No OFD packet to send [10:31:31]OFD Sender: No OFD packet to send [10:31:36]OFD Sender: No OFD packet to send [10:31:41]OFD Sender: No OFD packet to send [10:31:46]OFD Sender: No OFD packet to send [10:31:51]OFD Sender: No OFD packet to send [10:31:56]OFD Sender: No OFD packet to send [10:32:01]OFD Sender: No OFD packet to send [10:32:06]OFD Sender: No OFD packet to send [10:32:11]OFD Sender: No OFD packet to send [10:32:16]OFD Sender: No OFD packet to send [10:32:18]accept exits with 7 [10:32:18]New connection [10:32:18]New thread 3067616612 created [10:32:18]Thread 3067473252 joined [10:32:18]Waiting for new connection... [10:32:18] Sock 7.Parse request [10:32:18]Sock 7.Check first char [10:32:18]Sock 7.First char is OK [10:32:18]request: POST /json_proto HTTP/1.0 [10:32:18]Method: POST [10:32:18]URL: /json_proto [10:32:18]Method is POST - this is cgi request [10:32:18]url: /json_proto [10:32:18]query_string will be loaded in cgi processing [10:32:18]execute_cgi json_proto POST (null) [10:32:18]execute_cgi path=json_proto method=POST [10:32:18]POST find Content-Length [10:32:18]Host: 172.17.56.4:8080 [10:32:18]Content-Length: 791 [10:32:18]Content-Type: application/json [10:32:18] [10:32:18]POST finish read [10:32:18]Found Content-Length = 791 [10:32:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458971", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 10.000, "sum" : 652.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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 652.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:18]execute_script... [10:32: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)458971", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 10.000, "sum" : 652.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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 652.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:18]POST & json_proto [10:32:18]process_json_proto [10:32:18]json parsed OK: [10:32:18]protocol is kg_v1.0 [10:32:18]action value=close_receipt [10:32:18]process_action close_receipt [10:32:18]cmd_close_receipt [10:32:18]MH_GetDate [10:32:18]Write to MH i2c: F0 00 00 6E 06 63 [10:32:18]Write i2c OK [10:32:18]MH_I2C_Read... [10:32:18]Read from MH i2c: F0 [10:32:18]MH_I2C_Read... [10:32:18]Read from MH i2c: F0 09 00 [10:32:18]MH_I2C_Read... [10:32:18]Read from MH i2c: F0 09 00 6E 06 00 32 A9 93 66 C9 DC B2 64 FB [10:32:18]GetLastDocTimeStamp 1720952754 [10:32:18]current date 1720953138 [10:32:18]FM_GetShiftState [10:32:18]SAM_PROTO_GetShiftState [10:32:18]wFMCommunicate request_size=4 [10:32:18]MH_SAM_APDU [10:32:18]CAPDU: 80 13 01 00 [10:32:18]Write to MH i2c: E2 08 00 6F 06 80 13 01 00 00 00 00 00 F2 [10:32:18]Write i2c OK [10:32:18]MH_I2C_Read... [10:32:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:18]Read from MH i2c: E2 [10:32:18]MH_I2C_Read... [10:32:18]Read from MH i2c: E2 0E 00 [10:32:18]MH_I2C_Read... [10:32:18]Read from MH i2c: E2 0E 00 6F 06 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 72 [10:32:18]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [10:32:18]wFMCommunicate OK [10:32:18]SAM_PROTO_GetShiftState done [10:32:18]FM_GetShiftState done [10:32:18]opened in 1720917342 [10:32:18]opened+sec_in_day 1721003742 [10:32:18]quantity*price = 65220 [10:32:18]sum+1 = 65221 [10:32:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 652.20 НСП 1% : 5.77 НДС 12% : 69.26 Наличными: 0.00 Безнал.: 652.20 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 73 14.07.2024 10:32 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164875 ФПД: 34018300725407 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T103218&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164875&fm=34018300725407&tin=02508201610067®Number=0000000000090829&sum=65220 [10:32:19]StoreToDocumentArchive [10:32:19]shift 447 fd 164875 [10:32:19]save to /storage/0447/doc_00164875 [10:32:19]save last doc name /storage/0447/doc_00164875 to /storage/kkm_last_doc_name [10:32:19]save OK [10:32:19]Clear old archive folders... [10:32:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:32:19]tlvbuf is 0073EEF0 [10:32:19]SAM_PROTO_ClearQueue [10:32:19]wFMCommunicate request_size=4 [10:32:19]MH_SAM_APDU [10:32:19]CAPDU: 80 09 00 00 [10:32:19]Write to MH i2c: E2 08 00 7C 06 80 09 00 00 00 00 00 00 F4 [10:32:19]Write i2c OK [10:32:19]MH_I2C_Read... [10:32:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:32:19]Read from MH i2c: E2 [10:32:19]MH_I2C_Read... [10:32:19]Read from MH i2c: E2 03 00 [10:32:19]MH_I2C_Read... [10:32:19]Read from MH i2c: E2 03 00 7C 06 00 90 00 F6 [10:32:19]RAPDU: 90 00 [10:32:19]wFMCommunicate OK [10:32:19]SAM_PROTO_ClearQueue done [10:32:19]KKMCreateOFDPacket [10:32:19]OFDProtocolAddRootSTLVToBuf [10:32:19]FM_MakeSignedData [10:32:19]FM_MakeSignedData [10:32:19]SAM_PROTO_SignData [10:32:19]wFMCommunicate request_size=4 [10:32:19]MH_SAM_APDU [10:32:19]CAPDU: 80 0D 01 02 [10:32:19]Write to MH i2c: E2 08 00 7D 06 80 0D 01 02 00 00 00 00 FC [10:32:19]Write i2c OK [10:32:19]MH_I2C_Read... [10:32:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:32:19]Read from MH i2c: E2 [10:32:19]MH_I2C_Read... [10:32:19]Read from MH i2c: E2 03 00 [10:32:19]MH_I2C_Read... [10:32:19]Read from MH i2c: E2 03 00 7D 06 00 90 00 F7 [10:32:19]RAPDU: 90 00 [10:32:19]wFMCommunicate OK [10:32:19]wFMCommunicate request_size=255 [10:32:19]MH_SAM_APDU [10:32:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 C4 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 32 A9 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0B 84 02 00 35 04 06 00 1E [10:32:19]Write to MH i2c: E2 02 01 7E 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 C4 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 32 A9 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0B 84 02 00 35 04 06 00 1E 00 00 14 [10:32:19]Write i2c OK [10:32:19]MH_I2C_Read... [10:32:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:19]Read from MH i2c: E2 [10:32:19]MH_I2C_Read... [10:32:19]Read from MH i2c: E2 03 00 [10:32:19]MH_I2C_Read... [10:32:19]Read from MH i2c: E2 03 00 7E 06 00 90 00 F8 [10:32:19]RAPDU: 90 00 [10:32:19]wFMCommunicate OK [10:32:19]wFMCommunicate request_size=10 [10:32:19]MH_SAM_APDU [10:32:19]CAPDU: 80 0D 02 02 05 F0 80 BB 08 9F [10:32:19]Write to MH i2c: E2 0D 00 7F 06 80 0D 02 02 05 00 F0 80 BB 08 9F 00 00 DB [10:32:19]Write i2c OK [10:32:19]MH_I2C_Read... [10:32:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:19]Read from MH i2c: E2 [10:32:19]MH_I2C_Read... [10:32:19]Read from MH i2c: E2 03 00 [10:32:19]MH_I2C_Read... [10:32:19]Read from MH i2c: E2 03 00 7F 06 00 90 00 F9 [10:32:19]RAPDU: 90 00 [10:32:19]wFMCommunicate OK [10:32:19]wFMCommunicate request_size=4 [10:32:19]MH_SAM_APDU [10:32:19]CAPDU: 80 0D 03 02 [10:32:19]Write to MH i2c: E2 08 00 80 06 80 0D 03 02 00 00 00 00 01 [10:32:19]Write i2c OK [10:32:19]MH_I2C_Read... [10:32:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:32:19]Read from MH i2c: E2 [10:32:19]MH_I2C_Read... [10:32:19]Read from MH i2c: E2 0B 00 [10:32:19]MH_I2C_Read... [10:32:19]Read from MH i2c: E2 0B 00 80 06 00 8D 3D 50 2C D0 0A 00 F1 90 00 13 [10:32:19]RAPDU: 8D 3D 50 2C D0 0A 00 F1 90 00 [10:32:19]wFMCommunicate OK [10:32:19]SAM_PROTO_SignData done [10:32:19]FM_MakeSignedData done [10:32:19]CreateOFDProtocolMessage [10:32:19]wFMCommunicate request_size=4 [10:32:19]MH_SAM_APDU [10:32:19]CAPDU: 80 11 00 00 [10:32:19]Write to MH i2c: E2 08 00 81 06 80 11 00 00 00 00 00 00 01 [10:32:19]Write i2c OK [10:32:19]MH_I2C_Read... [10:32:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:19]Read from MH i2c: E2 [10:32:19]MH_I2C_Read... [10:32:19]Read from MH i2c: E2 17 00 [10:32:19]MH_I2C_Read... [10:32:19]Read from MH i2c: E2 17 00 81 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 57 [10:32:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:32:19]wFMCommunicate OK [10:32:19]CreateOFDProtocolMessage done [10:32:19]OFDSenderStorePacket 164875 [10:32:19]StoreOFDPacket docnum=164875 [10:32:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 83 40 07 01 20 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 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 C4 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 32 A9 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0B 84 02 00 35 04 06 00 1E F0 80 BB 08 9F 8D 3D 50 2C D0 0A 00 F1 [10:32:19]CheckFolder [10:32:19]dirname=/storage/ofd_packets [10:32:19]CheckFolder done [10:32:19]ProducePacketName [10:32:19]name=ofd_packets/00164875 [10:32:19]NVStorageSaveData ofd_packets/00164875 [10:32:19]File name is /storage/ofd_packets/00164875 [10:32:19]Write 301 bytes [10:32:19]NVStorageSaveData done [10:32:19]OFDSenderStorePacket done [10:32:19]KKMCreateOFDPacket done [10:32:19]NVStorageSaveData kkm_last_timestamp [10:32:19]File name is /storage/kkm_last_timestamp [10:32:19]Write 4 bytes [10:32:19]NVStorageSaveData done [10:32:19]ExternCall_PrintAddStr [10:32:19]wPrintStart [10:32:19]Write to MH i2c: 01 00 00 82 06 88 [10:32:19]Write i2c OK [10:32:19]MH_I2C_Read... [10:32:19]Read from MH i2c: 01 [10:32:19]MH_I2C_Read... [10:32:19]Read from MH i2c: 01 07 00 [10:32:19]MH_I2C_Read... [10:32:19]Read from MH i2c: 01 07 00 82 06 00 00 00 00 00 FF 0F 9D [10:32:19]RasterBufferAndPrint [10:32:19]line Счет N : (1)458971 [10:32:19]line ИНН: 02508201610067 [10:32:19]line Контрольно-Кассовый Чек [10:32:19]line ПРОДАЖА [10:32:19]line ТРК (МРК, ГНК) : 22 [10:32:19]line Товар: 2710124130 [10:32:19]line Аи-92-К-5 [10:32:19]line 10.000 * 65.22 [10:32:19]line = 652.20 [10:32:19]line НДС 12% НСП 1% [10:32:19]line > о реализуемом товаре [10:32:19]line ИТОГО: 652.20 [10:32:19]line НСП 1% : 5.77 [10:32:19]line НДС 12% : 69.26 [10:32:19]line Наличными: 0.00 [10:32:19]line Безнал.: 652.20 [10:32:19]line Место: АЗС № 72 "Партнер Нефть" [10:32:19]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:32:19]line СНО: Общий режим [10:32:19]line Чек 73 14.07.2024 10:32 [10:32:19]line Смена: 447 ФФД: 1.0 [10:32:19]line ЗНМ: 0300000160 [10:32:19]line РНМ: 0000000000090829 [10:32:19]line Версия ККМ: 001 [10:32:19]line Платежная система: KICB Банк [10:32:19]line ФМ: 0000000000874718 [10:32:19]line ФД: 164875 [10:32:19]line ФПД: 34018300725407 [10:32:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T103218&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164875&fm=34018300725407&tin=02508201610067®Number=0000000000090829&sum=65220 [10:32:20]OFD Sender: Processing packet 164875 [packets to send 104, broken 103] [10:32:20]ProducePacketName [10:32:20]name=ofd_packets/00164875 [10:32:20]OFD Sender: To server: pG, [10:32:20]CommunicateWithHost lk.salyk.kg:30040 [10:32:20]ConnectInit lk.salyk.kg [10:32:20]written 0, free lines is 4095 [10:32:20]Connected sock=10 [10:32:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 83 40 07 01 20 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 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 C4 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 32 A9 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0B 84 02 00 35 04 06 00 1E F0 80 BB 08 9F 8D 3D 50 2C D0 0A 00 F1 [10:32:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 FB 6B 47 00 C2 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0B 84 02 00 F4 03 04 00 C0 4F 93 66 B6 04 01 00 00 A0 14 C0 32 29 D8 B8 5D [10:32:20]CommunicateWithHost err = 0 [10:32:20]CheckOFDResponse [10:32:20]1017 (14) - 77093643461234 [10:32:20]1041 (16) - 0000000000874718 [10:32:20]1040 (4) - 164875 [10:32:20]1012 (4) - 14.07.2024 04:10 [10:32:20]1206 (1) - 0 [10:32:20]OFD Sender: Remove packet 164875 [10:32:20]ProducePacketName [10:32:20]name=ofd_packets/00164875 [10:32:20]NVStorageDeleteData [10:32:20]Write to MH i2c: 01 00 00 AB 06 B1 [10:32:20]Write i2c OK [10:32:20]MH_I2C_Read... [10:32:20]Read from MH i2c: 01 [10:32:20]MH_I2C_Read... [10:32:20]Read from MH i2c: 01 07 00 [10:32:20]MH_I2C_Read... [10:32:20]Read from MH i2c: 01 07 00 AB 06 00 00 00 00 00 0A 0D CF [10:32:20]RasterBufferAndPrint [10:32:20]line [10:32:20]line [10:32:20]line [10:32:20]line [10:32:20]line [10:32:20]written 0, free lines is 3344 [10:32:20]MH_Cut [10:32:20]Write to MH i2c: D1 01 00 B2 06 01 8A [10:32:20]Write i2c OK [10:32:20]MH_I2C_Read... [10:32:20]Read from MH i2c: D1 [10:32:20]MH_I2C_Read... [10:32:20]Read from MH i2c: D1 01 00 [10:32:20]MH_I2C_Read... [10:32:20]Read from MH i2c: D1 01 00 B2 06 00 89 [10:32:20]Write to MH i2c: 01 00 00 B3 06 B9 [10:32:20]Write i2c OK [10:32:20]MH_I2C_Read... [10:32:20]OFD Sender: No OFD packet to send [10:32:21]*** Cut start [10:32:21]*** Partial cut [10:32:21]*** CUTSNS_PIN = 1 [10:32:21]*** CUTSNS_PIN = 0 [10:32:21]*** Brake cut motor [10:32:21]Read from MH i2c: 01 [10:32:21]MH_I2C_Read... [10:32:21]*** Stop cut motor [10:32:21]*** Cut end [10:32:21]Read from MH i2c: 01 07 00 [10:32:21]MH_I2C_Read... [10:32:21]Read from MH i2c: 01 07 00 B3 06 00 00 00 00 00 FF 0F CE [10:32:21]process_action close_receipt done [10:32:21]requested_data is exist [10:32:21]produce_requested_data [10:32:21]requested_item fm.sn is exist - process it [10:32:21]wFMCommunicate request_size=4 [10:32:21]MH_SAM_APDU [10:32:21]CAPDU: 80 11 00 00 [10:32:21]Write to MH i2c: E2 08 00 B4 06 80 11 00 00 00 00 00 00 34 [10:32:21]Write i2c OK [10:32:21]MH_I2C_Read... [10:32:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:21]Read from MH i2c: E2 [10:32:21]MH_I2C_Read... [10:32:21]Read from MH i2c: E2 17 00 [10:32:21]MH_I2C_Read... [10:32:21]Read from MH i2c: E2 17 00 B4 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 8A [10:32:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:32:21]wFMCommunicate OK [10:32:21]requested_item fd.num is exist - process it [10:32:21]SAM_PROTO_GetFieldsCounters [10:32:21]wFMCommunicate request_size=4 [10:32:21]MH_SAM_APDU [10:32:21]CAPDU: 80 13 00 00 [10:32:21]Write to MH i2c: E2 08 00 B5 06 80 13 00 00 00 00 00 00 37 [10:32:21]Write i2c OK [10:32:21]MH_I2C_Read... [10:32:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:32:22]Read from MH i2c: E2 [10:32:22]MH_I2C_Read... [10:32:22]Read from MH i2c: E2 62 00 [10:32:22]MH_I2C_Read... [10:32:22]Read from MH i2c: E2 62 00 B5 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 0B 84 02 00 0E 04 04 00 BF 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 8A [10:32:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 0B 84 02 00 0E 04 04 00 BF 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 [10:32:22]wFMCommunicate OK [10:32:22]SAM_PROTO_GetFieldsCounters done [10:32:22]requested_item shift.num is exist - process it [10:32:22]requested_item shift.opened is exist - process it [10:32:22]req_shift_opened [10:32:22]FM_GetShiftState [10:32:22]SAM_PROTO_GetShiftState [10:32:22]wFMCommunicate request_size=4 [10:32:22]MH_SAM_APDU [10:32:22]CAPDU: 80 13 01 00 [10:32:22]Write to MH i2c: E2 08 00 B6 06 80 13 01 00 00 00 00 00 39 [10:32:22]Write i2c OK [10:32:22]MH_I2C_Read... [10:32:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:22]Read from MH i2c: E2 [10:32:22]MH_I2C_Read... [10:32:22]Read from MH i2c: E2 0E 00 [10:32:22]MH_I2C_Read... [10:32:22]Read from MH i2c: E2 0E 00 B6 06 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 B9 [10:32:22]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [10:32:22]wFMCommunicate OK [10:32:22]SAM_PROTO_GetShiftState done [10:32:22]FM_GetShiftState done [10:32:22]req_shift_opened done [10:32:22]requested_item shift.open_date is exist - process it [10:32:22]req_shift_open_date [10:32:22]req_shift_open_date done [10:32:22]produce_requested_data done [10:32:22]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164875,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [10:32:22]process_action_free close_receipt [10:32:22]json_value_free [10:32:22]json_value_free done [10:32:22]process_json_proto returns [10:32:22]Send response to host [10:32:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164875,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [10:32:22]free response buf [10:32:22]execute_script done [10:32:22]execute_script returns [10:32:22]free content buf [10:32:22]Sock 7.Close socket [10:32:22]Sock 7.Thread stoped [10:32:26]OFD Sender: No OFD packet to send [10:32:31]OFD Sender: No OFD packet to send [10:32:36]OFD Sender: No OFD packet to send [10:32:41]OFD Sender: No OFD packet to send [10:32:46]OFD Sender: No OFD packet to send [10:32:51]OFD Sender: No OFD packet to send [10:32:56]OFD Sender: No OFD packet to send [10:33:01]OFD Sender: No OFD packet to send [10:33:06]OFD Sender: No OFD packet to send [10:33:11]OFD Sender: No OFD packet to send [10:33:16]OFD Sender: No OFD packet to send [10:33:21]OFD Sender: No OFD packet to send [10:33:26]OFD Sender: No OFD packet to send [10:33:31]OFD Sender: No OFD packet to send [10:33:36]OFD Sender: No OFD packet to send [10:33:41]OFD Sender: No OFD packet to send [10:33:46]OFD Sender: No OFD packet to send [10:33:51]OFD Sender: No OFD packet to send [10:33:56]OFD Sender: No OFD packet to send [10:34:01]OFD Sender: No OFD packet to send [10:34:06]OFD Sender: No OFD packet to send [10:34:11]OFD Sender: No OFD packet to send [10:34:12]accept exits with 9 [10:34:12]New connection [10:34:12]New thread 3067473252 created [10:34:12]Thread 3067616612 joined [10:34:12]Waiting for new connection... [10:34:12] Sock 9.Parse request [10:34:12]Sock 9.Check first char [10:34:12]Sock 9.First char is OK [10:34:12]request: POST /json_proto HTTP/1.0 [10:34:12]Method: POST [10:34:12]URL: /json_proto [10:34:12]Method is POST - this is cgi request [10:34:12]url: /json_proto [10:34:12]query_string will be loaded in cgi processing [10:34:12]execute_cgi json_proto POST (null) [10:34:12]execute_cgi path=json_proto method=POST [10:34:12]POST find Content-Length [10:34:12]Host: 172.17.56.4:8080 [10:34:12]Content-Length: 682 [10:34:12]Content-Type: application/json [10:34:12] [10:34:12]POST finish read [10:34:12]Found Content-Length = 682 [10:34:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458972", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 30.400, "sum" : 2000.32, "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:34:12]execute_script... [10:34: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)458972", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 30.400, "sum" : 2000.32, "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:34:12]POST & json_proto [10:34:12]process_json_proto [10:34:12]json parsed OK: [10:34:12]protocol is kg_v1.0 [10:34:12]action value=close_receipt [10:34:12]process_action close_receipt [10:34:12]cmd_close_receipt [10:34:12]MH_GetDate [10:34:12]Write to MH i2c: F0 00 00 B7 06 AC [10:34:12]Write i2c OK [10:34:12]MH_I2C_Read... [10:34:12]Read from MH i2c: F0 [10:34:12]MH_I2C_Read... [10:34:12]Read from MH i2c: F0 09 00 [10:34:12]MH_I2C_Read... [10:34:12]Read from MH i2c: F0 09 00 B7 06 00 A5 A9 93 66 C9 DC B2 64 B7 [10:34:12]GetLastDocTimeStamp 1720953138 [10:34:12]current date 1720953253 [10:34:12]FM_GetShiftState [10:34:12]SAM_PROTO_GetShiftState [10:34:12]wFMCommunicate request_size=4 [10:34:12]MH_SAM_APDU [10:34:12]CAPDU: 80 13 01 00 [10:34:12]Write to MH i2c: E2 08 00 B8 06 80 13 01 00 00 00 00 00 3B [10:34:12]Write i2c OK [10:34:12]MH_I2C_Read... [10:34:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:12]Read from MH i2c: E2 [10:34:12]MH_I2C_Read... [10:34:12]Read from MH i2c: E2 0E 00 [10:34:12]MH_I2C_Read... [10:34:12]Read from MH i2c: E2 0E 00 B8 06 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 BB [10:34:12]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [10:34:12]wFMCommunicate OK [10:34:12]SAM_PROTO_GetShiftState done [10:34:12]FM_GetShiftState done [10:34:12]opened in 1720917342 [10:34:12]opened+sec_in_day 1721003742 [10:34:12]quantity*price = 200032 [10:34:12]sum+1 = 200033 [10:34:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 74 14.07.2024 10:34 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164876 ФПД: 187612133591794 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T103413&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164876&fm=187612133591794&tin=02508201610067®Number=0000000000090829&sum=200000 [10:34:13]StoreToDocumentArchive [10:34:13]shift 447 fd 164876 [10:34:13]save to /storage/0447/doc_00164876 [10:34:13]save last doc name /storage/0447/doc_00164876 to /storage/kkm_last_doc_name [10:34:13]save OK [10:34:13]Clear old archive folders... [10:34:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:34:13]tlvbuf is 007467C0 [10:34:13]SAM_PROTO_ClearQueue [10:34:13]wFMCommunicate request_size=4 [10:34:13]MH_SAM_APDU [10:34:13]CAPDU: 80 09 00 00 [10:34:13]Write to MH i2c: E2 08 00 C5 06 80 09 00 00 00 00 00 00 3D [10:34:13]Write i2c OK [10:34:13]MH_I2C_Read... [10:34:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:34:13]Read from MH i2c: E2 [10:34:13]MH_I2C_Read... [10:34:13]Read from MH i2c: E2 03 00 [10:34:13]MH_I2C_Read... [10:34:13]Read from MH i2c: E2 03 00 C5 06 00 90 00 3F [10:34:13]RAPDU: 90 00 [10:34:13]wFMCommunicate OK [10:34:13]SAM_PROTO_ClearQueue done [10:34:13]KKMCreateOFDPacket [10:34:13]OFDProtocolAddRootSTLVToBuf [10:34:13]FM_MakeSignedData [10:34:13]FM_MakeSignedData [10:34:13]SAM_PROTO_SignData [10:34:13]wFMCommunicate request_size=4 [10:34:13]MH_SAM_APDU [10:34:13]CAPDU: 80 0D 01 02 [10:34:13]Write to MH i2c: E2 08 00 C6 06 80 0D 01 02 00 00 00 00 45 [10:34:13]Write i2c OK [10:34:13]MH_I2C_Read... [10:34:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:34:13]Read from MH i2c: E2 [10:34:13]MH_I2C_Read... [10:34:13]Read from MH i2c: E2 03 00 [10:34:13]MH_I2C_Read... [10:34:13]Read from MH i2c: E2 03 00 C6 06 00 90 00 40 [10:34:13]RAPDU: 90 00 [10:34:13]wFMCommunicate OK [10:34:13]wFMCommunicate request_size=255 [10:34:13]MH_SAM_APDU [10:34:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 60 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 A5 A9 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0C 84 02 00 35 04 06 00 AA [10:34:13]Write to MH i2c: E2 02 01 C7 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 60 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 A5 A9 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0C 84 02 00 35 04 06 00 AA 00 00 31 [10:34:13]Write i2c OK [10:34:13]MH_I2C_Read... [10:34:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:13]Read from MH i2c: E2 [10:34:13]MH_I2C_Read... [10:34:13]Read from MH i2c: E2 03 00 [10:34:13]MH_I2C_Read... [10:34:13]Read from MH i2c: E2 03 00 C7 06 00 90 00 41 [10:34:13]RAPDU: 90 00 [10:34:13]wFMCommunicate OK [10:34:13]wFMCommunicate request_size=10 [10:34:13]MH_SAM_APDU [10:34:13]CAPDU: 80 0D 02 02 05 A1 DA 94 0A F2 [10:34:13]Write to MH i2c: E2 0D 00 C8 06 80 0D 02 02 05 00 A1 DA 94 0A F2 00 00 5D [10:34:13]Write i2c OK [10:34:13]MH_I2C_Read... [10:34:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:13]Read from MH i2c: E2 [10:34:13]MH_I2C_Read... [10:34:13]Read from MH i2c: E2 03 00 [10:34:13]MH_I2C_Read... [10:34:13]Read from MH i2c: E2 03 00 C8 06 00 90 00 42 [10:34:13]RAPDU: 90 00 [10:34:13]wFMCommunicate OK [10:34:13]wFMCommunicate request_size=4 [10:34:13]MH_SAM_APDU [10:34:13]CAPDU: 80 0D 03 02 [10:34:13]Write to MH i2c: E2 08 00 C9 06 80 0D 03 02 00 00 00 00 4A [10:34:13]Write i2c OK [10:34:13]MH_I2C_Read... [10:34:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:34:14]Read from MH i2c: E2 [10:34:14]MH_I2C_Read... [10:34:14]Read from MH i2c: E2 0B 00 [10:34:14]MH_I2C_Read... [10:34:14]Read from MH i2c: E2 0B 00 C9 06 00 9C 15 16 D0 76 8E 19 02 90 00 01 [10:34:14]RAPDU: 9C 15 16 D0 76 8E 19 02 90 00 [10:34:14]wFMCommunicate OK [10:34:14]SAM_PROTO_SignData done [10:34:14]FM_MakeSignedData done [10:34:14]CreateOFDProtocolMessage [10:34:14]wFMCommunicate request_size=4 [10:34:14]MH_SAM_APDU [10:34:14]CAPDU: 80 11 00 00 [10:34:14]Write to MH i2c: E2 08 00 CA 06 80 11 00 00 00 00 00 00 4A [10:34:14]Write i2c OK [10:34:14]MH_I2C_Read... [10:34:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:14]Read from MH i2c: E2 [10:34:14]MH_I2C_Read... [10:34:14]Read from MH i2c: E2 17 00 [10:34:14]MH_I2C_Read... [10:34:14]Read from MH i2c: E2 17 00 CA 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A0 [10:34:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:34:14]wFMCommunicate OK [10:34:14]CreateOFDProtocolMessage done [10:34:14]OFDSenderStorePacket 164876 [10:34:14]StoreOFDPacket docnum=164876 [10:34:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 1C B9 07 01 2E 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 60 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 A5 A9 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0C 84 02 00 35 04 06 00 AA A1 DA 94 0A F2 9C 15 16 D0 76 8E 19 02 [10:34:14]CheckFolder [10:34:14]dirname=/storage/ofd_packets [10:34:14]CheckFolder done [10:34:14]ProducePacketName [10:34:14]name=ofd_packets/00164876 [10:34:14]NVStorageSaveData ofd_packets/00164876 [10:34:14]File name is /storage/ofd_packets/00164876 [10:34:14]Write 301 bytes [10:34:14]NVStorageSaveData done [10:34:14]OFDSenderStorePacket done [10:34:14]KKMCreateOFDPacket done [10:34:14]NVStorageSaveData kkm_last_timestamp [10:34:14]File name is /storage/kkm_last_timestamp [10:34:14]Write 4 bytes [10:34:14]NVStorageSaveData done [10:34:14]ExternCall_PrintAddStr [10:34:14]wPrintStart [10:34:14]Write to MH i2c: 01 00 00 CB 06 D1 [10:34:14]Write i2c OK [10:34:14]MH_I2C_Read... [10:34:14]Read from MH i2c: 01 [10:34:14]MH_I2C_Read... [10:34:14]Read from MH i2c: 01 07 00 [10:34:14]MH_I2C_Read... [10:34:14]Read from MH i2c: 01 07 00 CB 06 00 00 00 00 00 FF 0F E6 [10:34:14]RasterBufferAndPrint [10:34:14]line Счет N : (1)458972 [10:34:14]line ИНН: 02508201610067 [10:34:14]line Контрольно-Кассовый Чек [10:34:14]line ПРОДАЖА [10:34:14]line ТРК (МРК, ГНК) : 22 [10:34:14]line Товар: 2710124130 [10:34:14]line Аи-92-К-5 [10:34:14]line 30.400 * 65.80 [10:34:14]line = 2000.32 [10:34:14]line НДС 12% НСП 1% [10:34:14]line > о реализуемом товаре [10:34:14]line ОКРУГЛЕНИЕ: -0.32 [10:34:14]line ИТОГО: 2000.00 [10:34:14]line Внесено: 2000.00 [10:34:14]line СДАЧА: 0.00 [10:34:14]line НСП 1% : 17.70 [10:34:14]line НДС 12% : 212.42 [10:34:14]line Наличными: 2000.00 [10:34:14]line Безнал.: 0.00 [10:34:14]line Место: АЗС № 72 "Партнер Нефть" [10:34:14]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:34:14]line СНО: Общий режим [10:34:14]line Чек 74 14.07.2024 10:34 [10:34:14]line Смена: 447 ФФД: 1.0 [10:34:14]line ЗНМ: 0300000160 [10:34:14]line РНМ: 0000000000090829 [10:34:14]line Версия ККМ: 001 [10:34:14]line ФМ: 0000000000874718 [10:34:14]line ФД: 164876 [10:34:14]line ФПД: 187612133591794 [10:34:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T103413&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164876&fm=187612133591794&tin=02508201610067®Number=0000000000090829&sum=200000 [10:34:14]OFD Sender: Processing packet 164876 [packets to send 104, broken 103] [10:34:14]ProducePacketName [10:34:14]name=ofd_packets/00164876 [10:34:14]OFD Sender: To server: pG, [10:34:14]CommunicateWithHost lk.salyk.kg:30040 [10:34:14]ConnectInit lk.salyk.kg [10:34:14]written 0, free lines is 4095 [10:34:14]Connected sock=10 [10:34:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 1C B9 07 01 2E 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 60 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 A5 A9 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0C 84 02 00 35 04 06 00 AA A1 DA 94 0A F2 9C 15 16 D0 76 8E 19 02 [10:34:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 5B 62 47 00 66 92 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0C 84 02 00 F4 03 04 00 33 50 93 66 B6 04 01 00 00 3C 86 44 78 4F EE B0 C7 [10:34:14]CommunicateWithHost err = 0 [10:34:14]CheckOFDResponse [10:34:14]1017 (14) - 77093643461234 [10:34:14]1041 (16) - 0000000000874718 [10:34:14]1040 (4) - 164876 [10:34:14]1012 (4) - 14.07.2024 04:12 [10:34:14]1206 (1) - 0 [10:34:14]OFD Sender: Remove packet 164876 [10:34:14]ProducePacketName [10:34:14]name=ofd_packets/00164876 [10:34:14]NVStorageDeleteData [10:34:14]Write to MH i2c: 01 00 00 F5 06 FB [10:34:14]Write i2c OK [10:34:14]MH_I2C_Read... [10:34:14]Read from MH i2c: 01 [10:34:14]MH_I2C_Read... [10:34:14]Read from MH i2c: 01 07 00 [10:34:14]MH_I2C_Read... [10:34:14]Read from MH i2c: 01 07 00 F5 06 00 00 00 00 00 02 0D 11 [10:34:14]RasterBufferAndPrint [10:34:14]line [10:34:14]line [10:34:14]line [10:34:14]line [10:34:14]line [10:34:14]written 0, free lines is 3336 [10:34:14]MH_Cut [10:34:14]Write to MH i2c: D1 01 00 FC 06 01 D4 [10:34:14]Write i2c OK [10:34:14]MH_I2C_Read... [10:34:14]Read from MH i2c: D1 [10:34:14]MH_I2C_Read... [10:34:14]Read from MH i2c: D1 01 00 [10:34:14]MH_I2C_Read... [10:34:14]Read from MH i2c: D1 01 00 FC 06 00 D3 [10:34:14]Write to MH i2c: 01 00 00 FD 06 03 [10:34:14]Write i2c OK [10:34:14]MH_I2C_Read... [10:34:15]OFD Sender: No OFD packet to send [10:34:15]*** Cut start [10:34:15]*** Partial cut [10:34:15]*** CUTSNS_PIN = 1 [10:34:15]*** CUTSNS_PIN = 0 [10:34:15]*** Brake cut motor [10:34:16]Read from MH i2c: 01 [10:34:16]MH_I2C_Read... [10:34:16]*** Stop cut motor [10:34:16]*** Cut end [10:34:16]Read from MH i2c: 01 07 00 [10:34:16]MH_I2C_Read... [10:34:16]Read from MH i2c: 01 07 00 FD 06 00 00 00 00 00 FF 0F 18 [10:34:16]process_action close_receipt done [10:34:16]requested_data is exist [10:34:16]produce_requested_data [10:34:16]requested_item fm.sn is exist - process it [10:34:16]wFMCommunicate request_size=4 [10:34:16]MH_SAM_APDU [10:34:16]CAPDU: 80 11 00 00 [10:34:16]Write to MH i2c: E2 08 00 FE 06 80 11 00 00 00 00 00 00 7E [10:34:16]Write i2c OK [10:34:16]MH_I2C_Read... [10:34:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:16]Read from MH i2c: E2 [10:34:16]MH_I2C_Read... [10:34:16]Read from MH i2c: E2 17 00 [10:34:16]MH_I2C_Read... [10:34:16]Read from MH i2c: E2 17 00 FE 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D4 [10:34:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:34:16]wFMCommunicate OK [10:34:16]requested_item fd.num is exist - process it [10:34:16]SAM_PROTO_GetFieldsCounters [10:34:16]wFMCommunicate request_size=4 [10:34:16]MH_SAM_APDU [10:34:16]CAPDU: 80 13 00 00 [10:34:16]Write to MH i2c: E2 08 00 FF 06 80 13 00 00 00 00 00 00 81 [10:34:16]Write i2c OK [10:34:16]MH_I2C_Read... [10:34:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:34:16]Read from MH i2c: E2 [10:34:16]MH_I2C_Read... [10:34:16]Read from MH i2c: E2 62 00 [10:34:16]MH_I2C_Read... [10:34:16]Read from MH i2c: E2 62 00 FF 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 0C 84 02 00 0E 04 04 00 BF 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 D8 [10:34:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 0C 84 02 00 0E 04 04 00 BF 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 [10:34:16]wFMCommunicate OK [10:34:16]SAM_PROTO_GetFieldsCounters done [10:34:16]requested_item shift.num is exist - process it [10:34:16]requested_item shift.opened is exist - process it [10:34:16]req_shift_opened [10:34:16]FM_GetShiftState [10:34:16]SAM_PROTO_GetShiftState [10:34:16]wFMCommunicate request_size=4 [10:34:16]MH_SAM_APDU [10:34:16]CAPDU: 80 13 01 00 [10:34:16]Write to MH i2c: E2 08 00 00 07 80 13 01 00 00 00 00 00 84 [10:34:16]Write i2c OK [10:34:16]MH_I2C_Read... [10:34:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:16]Read from MH i2c: E2 [10:34:16]MH_I2C_Read... [10:34:16]Read from MH i2c: E2 0E 00 [10:34:16]MH_I2C_Read... [10:34:16]Read from MH i2c: E2 0E 00 00 07 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 04 [10:34:16]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [10:34:16]wFMCommunicate OK [10:34:16]SAM_PROTO_GetShiftState done [10:34:16]FM_GetShiftState done [10:34:16]req_shift_opened done [10:34:16]requested_item shift.open_date is exist - process it [10:34:16]req_shift_open_date [10:34:16]req_shift_open_date done [10:34:16]produce_requested_data done [10:34:16]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164876,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [10:34:16]process_action_free close_receipt [10:34:16]json_value_free [10:34:16]json_value_free done [10:34:16]process_json_proto returns [10:34:16]Send response to host [10:34:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164876,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [10:34:16]free response buf [10:34:16]execute_script done [10:34:16]execute_script returns [10:34:16]free content buf [10:34:16]Sock 9.Close socket [10:34:16]Sock 9.Thread stoped [10:34:20]OFD Sender: No OFD packet to send [10:34:25]OFD Sender: No OFD packet to send [10:34:30]OFD Sender: No OFD packet to send [10:34:35]OFD Sender: No OFD packet to send [10:34:40]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:55]OFD Sender: No OFD packet to send [10:36:00]OFD Sender: No OFD packet to send [10:36:05]OFD Sender: No OFD packet to send [10:36:06]accept exits with 7 [10:36:06]New connection [10:36:06]New thread 3067616612 created [10:36:06]Thread 3067473252 joined [10:36:06]Waiting for new connection... [10:36:06] Sock 7.Parse request [10:36:06]Sock 7.Check first char [10:36:06]Sock 7.First char is OK [10:36:06]request: POST /json_proto HTTP/1.0 [10:36:06]Method: POST [10:36:06]URL: /json_proto [10:36:06]Method is POST - this is cgi request [10:36:06]url: /json_proto [10:36:06]query_string will be loaded in cgi processing [10:36:06]execute_cgi json_proto POST (null) [10:36:06]execute_cgi path=json_proto method=POST [10:36:06]POST find Content-Length [10:36:06]Host: 172.17.56.4:8080 [10:36:06]Content-Length: 679 [10:36:06]Content-Type: application/json [10:36:06] [10:36:06]POST finish read [10:36:06]Found Content-Length = 679 [10:36:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458973", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:36:06]execute_script... [10:36: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)458973", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:36:06]POST & json_proto [10:36:06]process_json_proto [10:36:06]json parsed OK: [10:36:06]protocol is kg_v1.0 [10:36:06]action value=close_receipt [10:36:06]process_action close_receipt [10:36:06]cmd_close_receipt [10:36:06]MH_GetDate [10:36:06]Write to MH i2c: F0 00 00 01 07 F7 [10:36:06]Write i2c OK [10:36:06]MH_I2C_Read... [10:36:06]Read from MH i2c: F0 [10:36:06]MH_I2C_Read... [10:36:06]Read from MH i2c: F0 09 00 [10:36:06]MH_I2C_Read... [10:36:06]Read from MH i2c: F0 09 00 01 07 00 17 AA 93 66 C9 DC B2 64 75 [10:36:06]GetLastDocTimeStamp 1720953253 [10:36:06]current date 1720953367 [10:36:06]FM_GetShiftState [10:36:06]SAM_PROTO_GetShiftState [10:36:06]wFMCommunicate request_size=4 [10:36:06]MH_SAM_APDU [10:36:06]CAPDU: 80 13 01 00 [10:36:06]Write to MH i2c: E2 08 00 02 07 80 13 01 00 00 00 00 00 86 [10:36:06]Write i2c OK [10:36:06]MH_I2C_Read... [10:36:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:06]Read from MH i2c: E2 [10:36:06]MH_I2C_Read... [10:36:06]Read from MH i2c: E2 0E 00 [10:36:06]MH_I2C_Read... [10:36:06]Read from MH i2c: E2 0E 00 02 07 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 06 [10:36:06]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [10:36:06]wFMCommunicate OK [10:36:06]SAM_PROTO_GetShiftState done [10:36:06]FM_GetShiftState done [10:36:06]opened in 1720917342 [10:36:06]opened+sec_in_day 1721003742 [10:36:06]quantity*price = 100012 [10:36:06]sum+1 = 100014 [10:36:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 75 14.07.2024 10:36 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164877 ФПД: 232871290127502 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T103607&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164877&fm=232871290127502&tin=02508201610067®Number=0000000000090829&sum=100000 [10:36:07]StoreToDocumentArchive [10:36:07]shift 447 fd 164877 [10:36:07]save to /storage/0447/doc_00164877 [10:36:07]save last doc name /storage/0447/doc_00164877 to /storage/kkm_last_doc_name [10:36:07]save OK [10:36:07]Clear old archive folders... [10:36:07]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:36:07]tlvbuf is 00749830 [10:36:07]SAM_PROTO_ClearQueue [10:36:07]wFMCommunicate request_size=4 [10:36:07]MH_SAM_APDU [10:36:07]CAPDU: 80 09 00 00 [10:36:07]Write to MH i2c: E2 08 00 0F 07 80 09 00 00 00 00 00 00 88 [10:36:07]Write i2c OK [10:36:07]MH_I2C_Read... [10:36:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:36:07]Read from MH i2c: E2 [10:36:07]MH_I2C_Read... [10:36:07]Read from MH i2c: E2 03 00 [10:36:07]MH_I2C_Read... [10:36:07]Read from MH i2c: E2 03 00 0F 07 00 90 00 8A [10:36:07]RAPDU: 90 00 [10:36:07]wFMCommunicate OK [10:36:07]SAM_PROTO_ClearQueue done [10:36:07]KKMCreateOFDPacket [10:36:07]OFDProtocolAddRootSTLVToBuf [10:36:07]FM_MakeSignedData [10:36:07]FM_MakeSignedData [10:36:07]SAM_PROTO_SignData [10:36:07]wFMCommunicate request_size=4 [10:36:07]MH_SAM_APDU [10:36:07]CAPDU: 80 0D 01 02 [10:36:07]Write to MH i2c: E2 08 00 10 07 80 0D 01 02 00 00 00 00 90 [10:36:07]Write i2c OK [10:36:07]MH_I2C_Read... [10:36:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:36:07]Read from MH i2c: E2 [10:36:07]MH_I2C_Read... [10:36:07]Read from MH i2c: E2 03 00 [10:36:07]MH_I2C_Read... [10:36:07]Read from MH i2c: E2 03 00 10 07 00 90 00 8B [10:36:07]RAPDU: 90 00 [10:36:07]wFMCommunicate OK [10:36:07]wFMCommunicate request_size=255 [10:36:07]MH_SAM_APDU [10:36: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 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 00 00 00 F4 03 04 00 17 AA 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0D 84 02 00 35 04 06 00 D3 CB 92 86 [10:36:07]Write to MH i2c: E2 02 01 11 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 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 00 00 00 F4 03 04 00 17 AA 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0D 84 02 00 35 04 06 00 D3 CB 92 86 00 00 5F [10:36:07]Write i2c OK [10:36:07]MH_I2C_Read... [10:36:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:08]Read from MH i2c: E2 [10:36:08]MH_I2C_Read... [10:36:08]Read from MH i2c: E2 03 00 [10:36:08]MH_I2C_Read... [10:36:08]Read from MH i2c: E2 03 00 11 07 00 90 00 8C [10:36:08]RAPDU: 90 00 [10:36:08]wFMCommunicate OK [10:36:08]wFMCommunicate request_size=7 [10:36:08]MH_SAM_APDU [10:36:08]CAPDU: 80 0D 02 02 02 C4 8E [10:36:08]Write to MH i2c: E2 0A 00 12 07 80 0D 02 02 02 00 C4 8E 00 00 E9 [10:36:08]Write i2c OK [10:36:08]MH_I2C_Read... [10:36:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:08]Read from MH i2c: E2 [10:36:08]MH_I2C_Read... [10:36:08]Read from MH i2c: E2 03 00 [10:36:08]MH_I2C_Read... [10:36:08]Read from MH i2c: E2 03 00 12 07 00 90 00 8D [10:36:08]RAPDU: 90 00 [10:36:08]wFMCommunicate OK [10:36:08]wFMCommunicate request_size=4 [10:36:08]MH_SAM_APDU [10:36:08]CAPDU: 80 0D 03 02 [10:36:08]Write to MH i2c: E2 08 00 13 07 80 0D 03 02 00 00 00 00 95 [10:36:08]Write i2c OK [10:36:08]MH_I2C_Read... [10:36:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:36:08]Read from MH i2c: E2 [10:36:08]MH_I2C_Read... [10:36:08]Read from MH i2c: E2 0B 00 [10:36:08]MH_I2C_Read... [10:36:08]Read from MH i2c: E2 0B 00 13 07 00 F3 8A 7C 6E 6A 91 07 AD 90 00 AC [10:36:08]RAPDU: F3 8A 7C 6E 6A 91 07 AD 90 00 [10:36:08]wFMCommunicate OK [10:36:08]SAM_PROTO_SignData done [10:36:08]FM_MakeSignedData done [10:36:08]CreateOFDProtocolMessage [10:36:08]wFMCommunicate request_size=4 [10:36:08]MH_SAM_APDU [10:36:08]CAPDU: 80 11 00 00 [10:36:08]Write to MH i2c: E2 08 00 14 07 80 11 00 00 00 00 00 00 95 [10:36:08]Write i2c OK [10:36:08]MH_I2C_Read... [10:36:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:08]Read from MH i2c: E2 [10:36:08]MH_I2C_Read... [10:36:08]Read from MH i2c: E2 17 00 [10:36:08]MH_I2C_Read... [10:36:08]Read from MH i2c: E2 17 00 14 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 EB [10:36:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:36:08]wFMCommunicate OK [10:36:08]CreateOFDProtocolMessage done [10:36:08]OFDSenderStorePacket 164877 [10:36:08]StoreOFDPacket docnum=164877 [10:36:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 B5 20 04 01 04 9B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 00 00 00 F4 03 04 00 17 AA 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0D 84 02 00 35 04 06 00 D3 CB 92 86 C4 8E F3 8A 7C 6E 6A 91 07 AD [10:36:08]CheckFolder [10:36:08]dirname=/storage/ofd_packets [10:36:08]CheckFolder done [10:36:08]ProducePacketName [10:36:08]name=ofd_packets/00164877 [10:36:08]NVStorageSaveData ofd_packets/00164877 [10:36:08]File name is /storage/ofd_packets/00164877 [10:36:08]Write 298 bytes [10:36:08]NVStorageSaveData done [10:36:08]OFDSenderStorePacket done [10:36:08]KKMCreateOFDPacket done [10:36:08]NVStorageSaveData kkm_last_timestamp [10:36:08]File name is /storage/kkm_last_timestamp [10:36:08]Write 4 bytes [10:36:08]NVStorageSaveData done [10:36:08]ExternCall_PrintAddStr [10:36:08]wPrintStart [10:36:08]Write to MH i2c: 01 00 00 15 07 1C [10:36:08]Write i2c OK [10:36:08]MH_I2C_Read... [10:36:08]Read from MH i2c: 01 [10:36:08]MH_I2C_Read... [10:36:08]Read from MH i2c: 01 07 00 [10:36:08]MH_I2C_Read... [10:36:08]Read from MH i2c: 01 07 00 15 07 00 00 00 00 00 FF 0F 31 [10:36:08]RasterBufferAndPrint [10:36:08]line Счет N : (1)458973 [10:36:08]line ИНН: 02508201610067 [10:36:08]line Контрольно-Кассовый Чек [10:36:08]line ПРОДАЖА [10:36:08]line ТРК (МРК, ГНК) : 11 [10:36:08]line Товар: 2710194210 [10:36:08]line ДТ-К-5 [10:36:08]line 13.910 * 71.90 [10:36:08]line = 1000.13 [10:36:08]line НДС 12% НСП 1% [10:36:08]line > о реализуемом товаре [10:36:08]line ОКРУГЛЕНИЕ: -0.13 [10:36:08]line ИТОГО: 1000.00 [10:36:08]line Внесено: 1000.00 [10:36:08]line СДАЧА: 0.00 [10:36:08]line НСП 1% : 8.85 [10:36:08]line НДС 12% : 106.21 [10:36:08]line Наличными: 1000.00 [10:36:08]line Безнал.: 0.00 [10:36:08]line Место: АЗС № 72 "Партнер Нефть" [10:36:08]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:36:08]line СНО: Общий режим [10:36:08]line Чек 75 14.07.2024 10:36 [10:36:08]line Смена: 447 ФФД: 1.0 [10:36:08]line ЗНМ: 0300000160 [10:36:08]line РНМ: 0000000000090829 [10:36:08]line Версия ККМ: 001 [10:36:08]line ФМ: 0000000000874718 [10:36:08]line ФД: 164877 [10:36:08]line ФПД: 232871290127502 [10:36:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T103607&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164877&fm=232871290127502&tin=02508201610067®Number=0000000000090829&sum=100000 [10:36:08]OFD Sender: Processing packet 164877 [packets to send 104, broken 103] [10:36:08]ProducePacketName [10:36:08]name=ofd_packets/00164877 [10:36:08]OFD Sender: To server: pG, [10:36:08]CommunicateWithHost lk.salyk.kg:30040 [10:36:08]ConnectInit lk.salyk.kg [10:36:08]written 0, free lines is 4095 [10:36:08]Connected sock=10 [10:36:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 B5 20 04 01 04 9B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 00 00 00 F4 03 04 00 17 AA 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0D 84 02 00 35 04 06 00 D3 CB 92 86 C4 8E F3 8A 7C 6E 6A 91 07 AD [10:36:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 19 3E 47 00 5C 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 38 37 34 37 31 38 10 04 04 00 0D 84 02 00 F4 03 04 00 A5 50 93 66 B6 04 01 00 00 66 1D 27 41 48 1A 2F 72 [10:36:08]CommunicateWithHost err = 0 [10:36:08]CheckOFDResponse [10:36:08]1017 (14) - 77093643461234 [10:36:08]1041 (16) - 0000000000874718 [10:36:08]1040 (4) - 164877 [10:36:08]1012 (4) - 14.07.2024 04:14 [10:36:08]1206 (1) - 0 [10:36:08]OFD Sender: Remove packet 164877 [10:36:08]ProducePacketName [10:36:08]name=ofd_packets/00164877 [10:36:08]NVStorageDeleteData [10:36:09]Write to MH i2c: 01 00 00 3F 07 46 [10:36:09]Write i2c OK [10:36:09]MH_I2C_Read... [10:36:09]Read from MH i2c: 01 [10:36:09]MH_I2C_Read... [10:36:09]Read from MH i2c: 01 07 00 [10:36:09]MH_I2C_Read... [10:36:09]Read from MH i2c: 01 07 00 3F 07 00 00 00 00 00 FF 0C 58 [10:36:09]RasterBufferAndPrint [10:36:09]line [10:36:09]line [10:36:09]line [10:36:09]line [10:36:09]line [10:36:09]written 0, free lines is 3333 [10:36:09]MH_Cut [10:36:09]Write to MH i2c: D1 01 00 46 07 01 1F [10:36:09]Write i2c OK [10:36:09]MH_I2C_Read... [10:36:09]Read from MH i2c: D1 [10:36:09]MH_I2C_Read... [10:36:09]Read from MH i2c: D1 01 00 [10:36:09]MH_I2C_Read... [10:36:09]Read from MH i2c: D1 01 00 46 07 00 1E [10:36:09]Write to MH i2c: 01 00 00 47 07 4E [10:36:09]Write i2c OK [10:36:09]MH_I2C_Read... [10:36:09]OFD Sender: No OFD packet to send [10:36:09]*** Cut start [10:36:09]*** Partial cut [10:36:09]*** CUTSNS_PIN = 1 [10:36:09]*** CUTSNS_PIN = 0 [10:36:09]*** Brake cut motor [10:36:10]Read from MH i2c: 01 [10:36:10]MH_I2C_Read... [10:36:10]*** Stop cut motor [10:36:10]*** Cut end [10:36:10]Read from MH i2c: 01 07 00 [10:36:10]MH_I2C_Read... [10:36:10]Read from MH i2c: 01 07 00 47 07 00 00 00 00 00 FF 0F 63 [10:36:10]process_action close_receipt done [10:36:10]requested_data is exist [10:36:10]produce_requested_data [10:36:10]requested_item fm.sn is exist - process it [10:36:10]wFMCommunicate request_size=4 [10:36:10]MH_SAM_APDU [10:36:10]CAPDU: 80 11 00 00 [10:36:10]Write to MH i2c: E2 08 00 48 07 80 11 00 00 00 00 00 00 C9 [10:36:10]Write i2c OK [10:36:10]MH_I2C_Read... [10:36:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:10]Read from MH i2c: E2 [10:36:10]MH_I2C_Read... [10:36:10]Read from MH i2c: E2 17 00 [10:36:10]MH_I2C_Read... [10:36:10]Read from MH i2c: E2 17 00 48 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 1F [10:36:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:36:10]wFMCommunicate OK [10:36:10]requested_item fd.num is exist - process it [10:36:10]SAM_PROTO_GetFieldsCounters [10:36:10]wFMCommunicate request_size=4 [10:36:10]MH_SAM_APDU [10:36:10]CAPDU: 80 13 00 00 [10:36:10]Write to MH i2c: E2 08 00 49 07 80 13 00 00 00 00 00 00 CC [10:36:10]Write i2c OK [10:36:10]MH_I2C_Read... [10:36:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:36:10]Read from MH i2c: E2 [10:36:10]MH_I2C_Read... [10:36:10]Read from MH i2c: E2 62 00 [10:36:10]MH_I2C_Read... [10:36:10]Read from MH i2c: E2 62 00 49 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 0D 84 02 00 0E 04 04 00 BF 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 27 [10:36:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 0D 84 02 00 0E 04 04 00 BF 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 [10:36:10]wFMCommunicate OK [10:36:10]SAM_PROTO_GetFieldsCounters done [10:36:10]requested_item shift.num is exist - process it [10:36:10]requested_item shift.opened is exist - process it [10:36:10]req_shift_opened [10:36:10]FM_GetShiftState [10:36:10]SAM_PROTO_GetShiftState [10:36:10]wFMCommunicate request_size=4 [10:36:10]MH_SAM_APDU [10:36:10]CAPDU: 80 13 01 00 [10:36:10]Write to MH i2c: E2 08 00 4A 07 80 13 01 00 00 00 00 00 CE [10:36:10]Write i2c OK [10:36:10]MH_I2C_Read... [10:36:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:10]Read from MH i2c: E2 [10:36:10]MH_I2C_Read... [10:36:10]Read from MH i2c: E2 0E 00 [10:36:10]MH_I2C_Read... [10:36:10]Read from MH i2c: E2 0E 00 4A 07 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 4E [10:36:10]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [10:36:10]wFMCommunicate OK [10:36:10]SAM_PROTO_GetShiftState done [10:36:10]FM_GetShiftState done [10:36:10]req_shift_opened done [10:36:10]requested_item shift.open_date is exist - process it [10:36:10]req_shift_open_date [10:36:10]req_shift_open_date done [10:36:10]produce_requested_data done [10:36:10]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164877,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [10:36:10]process_action_free close_receipt [10:36:10]json_value_free [10:36:10]json_value_free done [10:36:10]process_json_proto returns [10:36:10]Send response to host [10:36:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164877,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [10:36:10]free response buf [10:36:10]execute_script done [10:36:10]execute_script returns [10:36:10]free content buf [10:36:10]Sock 7.Close socket [10:36:10]Sock 7.Thread stoped [10:36:14]OFD Sender: No OFD packet to send [10:36:19]OFD Sender: No OFD packet to send [10:36:24]OFD Sender: No OFD packet to send [10:36:29]OFD Sender: No OFD packet to send [10:36:34]OFD Sender: No OFD packet to send [10:36:39]OFD Sender: No OFD packet to send [10:36:44]OFD Sender: No OFD packet to send [10:36:49]OFD Sender: No OFD packet to send [10:36:54]OFD Sender: No OFD packet to send [10:36:59]OFD Sender: No OFD packet to send [10:37:04]OFD Sender: No OFD packet to send [10:37:09]OFD Sender: No OFD packet to send [10:37:14]OFD Sender: No OFD packet to send [10:37:19]OFD Sender: No OFD packet to send [10:37:24]OFD Sender: No OFD packet to send [10:37:29]OFD Sender: No OFD packet to send [10:37:34]OFD Sender: No OFD packet to send [10:37:39]OFD Sender: No OFD packet to send [10:37:44]OFD Sender: No OFD packet to send [10:37:49]OFD Sender: No OFD packet to send [10:37:54]OFD Sender: No OFD packet to send [10:37:59]OFD Sender: No OFD packet to send [10:38:04]OFD Sender: No OFD packet to send [10:38:09]OFD Sender: No OFD packet to send [10:38:14]OFD Sender: No OFD packet to send [10:38:19]OFD Sender: No OFD packet to send [10:38:24]OFD Sender: No OFD packet to send [10:38:29]OFD Sender: No OFD packet to send [10:38:34]OFD Sender: No OFD packet to send [10:38:39]OFD Sender: No OFD packet to send [10:38:44]OFD Sender: No OFD packet to send [10:38:49]OFD Sender: No OFD packet to send [10:38:54]OFD Sender: No OFD packet to send [10:38:59]OFD Sender: No OFD packet to send [10:39:04]OFD Sender: No OFD packet to send [10:39:09]OFD Sender: No OFD packet to send [10:39:14]OFD Sender: No OFD packet to send [10:39:19]OFD Sender: No OFD packet to send [10:39:24]OFD Sender: No OFD packet to send [10:39:29]OFD Sender: No OFD packet to send [10:39:34]OFD Sender: No OFD packet to send [10:39:39]OFD Sender: No OFD packet to send [10:39:44]OFD Sender: No OFD packet to send [10:39:49]OFD Sender: No OFD packet to send [10:39:54]OFD Sender: No OFD packet to send [10:39:59]OFD Sender: No OFD packet to send [10:40:04]OFD Sender: No OFD packet to send [10:40:09]OFD Sender: No OFD packet to send [10:40:14]OFD Sender: No OFD packet to send [10:40:19]OFD Sender: No OFD packet to send [10:40:24]OFD Sender: No OFD packet to send [10:40:29]OFD Sender: No OFD packet to send [10:40: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:04]OFD Sender: No OFD packet to send [10:41:09]OFD Sender: No OFD packet to send [10:41:14]OFD Sender: No OFD packet to send [10:41:19]OFD Sender: No OFD packet to send [10:41:24]OFD Sender: No OFD packet to send [10:41:29]OFD Sender: No OFD packet to send [10:41:34]OFD Sender: No OFD packet to send [10:41:39]OFD Sender: No OFD packet to send [10:41:44]OFD Sender: No OFD packet to send [10:41:49]OFD Sender: No OFD packet to send [10:41:54]OFD Sender: No OFD packet to send [10:41:59]OFD Sender: No OFD packet to send [10:42:04]OFD Sender: No OFD packet to send [10:42:09]OFD Sender: No OFD packet to send [10:42:14]OFD Sender: No OFD packet to send [10:42:19]OFD Sender: No OFD packet to send [10:42:24]OFD Sender: No OFD packet to send [10:42:29]OFD Sender: No OFD packet to send [10:42:34]OFD Sender: No OFD packet to send [10:42:39]OFD Sender: No OFD packet to send [10:42:44]OFD Sender: No OFD packet to send [10:42:49]OFD Sender: No OFD packet to send [10:42:54]OFD Sender: No OFD packet to send [10:42:59]OFD Sender: No OFD packet to send [10:43:04]OFD Sender: No OFD packet to send [10:43:08]accept exits with 9 [10:43:08]New connection [10:43:08]New thread 3067473252 created [10:43:08]Thread 3067616612 joined [10:43:08]Waiting for new connection... [10:43:08] Sock 9.Parse request [10:43:08]Sock 9.Check first char [10:43:08]Sock 9.First char is OK [10:43:08]request: POST /json_proto HTTP/1.0 [10:43:08]Method: POST [10:43:08]URL: /json_proto [10:43:08]Method is POST - this is cgi request [10:43:08]url: /json_proto [10:43:08]query_string will be loaded in cgi processing [10:43:08]execute_cgi json_proto POST (null) [10:43:08]execute_cgi path=json_proto method=POST [10:43:08]POST find Content-Length [10:43:08]Host: 172.17.56.4:8080 [10:43:08]Content-Length: 677 [10:43:08]Content-Type: application/json [10:43:08] [10:43:08]POST finish read [10:43:08]Found Content-Length = 677 [10:43:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458974", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:43:08]execute_script... [10:43: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)458974", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:43:08]POST & json_proto [10:43:08]process_json_proto [10:43:08]json parsed OK: [10:43:08]protocol is kg_v1.0 [10:43:08]action value=close_receipt [10:43:08]process_action close_receipt [10:43:08]cmd_close_receipt [10:43:08]MH_GetDate [10:43:08]Write to MH i2c: F0 00 00 4B 07 41 [10:43:08]Write i2c OK [10:43:08]MH_I2C_Read... [10:43:08]Read from MH i2c: F0 [10:43:08]MH_I2C_Read... [10:43:08]Read from MH i2c: F0 09 00 [10:43:08]MH_I2C_Read... [10:43:08]Read from MH i2c: F0 09 00 4B 07 00 BD AB 93 66 C9 DC B2 64 66 [10:43:08]GetLastDocTimeStamp 1720953367 [10:43:08]current date 1720953789 [10:43:08]FM_GetShiftState [10:43:08]SAM_PROTO_GetShiftState [10:43:08]wFMCommunicate request_size=4 [10:43:08]MH_SAM_APDU [10:43:08]CAPDU: 80 13 01 00 [10:43:08]Write to MH i2c: E2 08 00 4C 07 80 13 01 00 00 00 00 00 D0 [10:43:08]Write i2c OK [10:43:08]MH_I2C_Read... [10:43:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:08]Read from MH i2c: E2 [10:43:08]MH_I2C_Read... [10:43:08]Read from MH i2c: E2 0E 00 [10:43:08]MH_I2C_Read... [10:43:08]Read from MH i2c: E2 0E 00 4C 07 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 50 [10:43:08]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [10:43:08]wFMCommunicate OK [10:43:08]SAM_PROTO_GetShiftState done [10:43:08]FM_GetShiftState done [10:43:08]opened in 1720917342 [10:43:08]opened+sec_in_day 1721003742 [10:43:08]quantity*price = 20003 [10:43:08]sum+1 = 20004 [10:43:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 76 14.07.2024 10:43 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164878 ФПД: 23698512645729 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T104309&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164878&fm=23698512645729&tin=02508201610067®Number=0000000000090829&sum=20000 [10:43:10]StoreToDocumentArchive [10:43:10]shift 447 fd 164878 [10:43:10]save to /storage/0447/doc_00164878 [10:43:10]save last doc name /storage/0447/doc_00164878 to /storage/kkm_last_doc_name [10:43:10]save OK [10:43:10]Clear old archive folders... [10:43:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:43:10]tlvbuf is 0071B690 [10:43:10]SAM_PROTO_ClearQueue [10:43:10]wFMCommunicate request_size=4 [10:43:10]MH_SAM_APDU [10:43:10]CAPDU: 80 09 00 00 [10:43:10]Write to MH i2c: E2 08 00 59 07 80 09 00 00 00 00 00 00 D2 [10:43:10]Write i2c OK [10:43:10]MH_I2C_Read... [10:43:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:43:10]Read from MH i2c: E2 [10:43:10]MH_I2C_Read... [10:43:10]Read from MH i2c: E2 03 00 [10:43:10]MH_I2C_Read... [10:43:10]Read from MH i2c: E2 03 00 59 07 00 90 00 D4 [10:43:10]RAPDU: 90 00 [10:43:10]wFMCommunicate OK [10:43:10]SAM_PROTO_ClearQueue done [10:43:10]KKMCreateOFDPacket [10:43:10]OFDProtocolAddRootSTLVToBuf [10:43:10]FM_MakeSignedData [10:43:10]FM_MakeSignedData [10:43:10]SAM_PROTO_SignData [10:43:10]wFMCommunicate request_size=4 [10:43:10]MH_SAM_APDU [10:43:10]CAPDU: 80 0D 01 02 [10:43:10]Write to MH i2c: E2 08 00 5A 07 80 0D 01 02 00 00 00 00 DA [10:43:10]Write i2c OK [10:43:10]MH_I2C_Read... [10:43:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:43:10]Read from MH i2c: E2 [10:43:10]MH_I2C_Read... [10:43:10]Read from MH i2c: E2 03 00 [10:43:10]MH_I2C_Read... [10:43:10]Read from MH i2c: E2 03 00 5A 07 00 90 00 D5 [10:43:10]RAPDU: 90 00 [10:43:10]wFMCommunicate OK [10:43:10]wFMCommunicate request_size=255 [10:43:10]MH_SAM_APDU [10:43:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 4C 00 00 00 F4 03 04 00 BD AB 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0E 84 02 00 35 04 06 00 15 [10:43:10]Write to MH i2c: E2 02 01 5B 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 4C 00 00 00 F4 03 04 00 BD AB 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0E 84 02 00 35 04 06 00 15 00 00 0A [10:43:10]Write i2c OK [10:43:10]MH_I2C_Read... [10:43:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:10]Read from MH i2c: E2 [10:43:10]MH_I2C_Read... [10:43:10]Read from MH i2c: E2 03 00 [10:43:10]MH_I2C_Read... [10:43:10]Read from MH i2c: E2 03 00 5B 07 00 90 00 D6 [10:43:10]RAPDU: 90 00 [10:43:10]wFMCommunicate OK [10:43:10]wFMCommunicate request_size=10 [10:43:10]MH_SAM_APDU [10:43:10]CAPDU: 80 0D 02 02 05 8D BD 6D 8E 61 [10:43:10]Write to MH i2c: E2 0D 00 5C 07 80 0D 02 02 05 00 8D BD 6D 8E 61 00 00 8D [10:43:10]Write i2c OK [10:43:10]MH_I2C_Read... [10:43:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:10]Read from MH i2c: E2 [10:43:10]MH_I2C_Read... [10:43:10]Read from MH i2c: E2 03 00 [10:43:10]MH_I2C_Read... [10:43:10]Read from MH i2c: E2 03 00 5C 07 00 90 00 D7 [10:43:10]RAPDU: 90 00 [10:43:10]wFMCommunicate OK [10:43:10]wFMCommunicate request_size=4 [10:43:10]MH_SAM_APDU [10:43:10]CAPDU: 80 0D 03 02 [10:43:10]Write to MH i2c: E2 08 00 5D 07 80 0D 03 02 00 00 00 00 DF [10:43:10]Write i2c OK [10:43:10]MH_I2C_Read... [10:43:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:43:10]Read from MH i2c: E2 [10:43:10]MH_I2C_Read... [10:43:10]Read from MH i2c: E2 0B 00 [10:43:10]MH_I2C_Read... [10:43:10]Read from MH i2c: E2 0B 00 5D 07 00 5B 89 DB 8F 67 22 5F FB 90 00 11 [10:43:10]RAPDU: 5B 89 DB 8F 67 22 5F FB 90 00 [10:43:10]wFMCommunicate OK [10:43:10]SAM_PROTO_SignData done [10:43:10]FM_MakeSignedData done [10:43:10]CreateOFDProtocolMessage [10:43:10]wFMCommunicate request_size=4 [10:43:10]MH_SAM_APDU [10:43:10]CAPDU: 80 11 00 00 [10:43:10]Write to MH i2c: E2 08 00 5E 07 80 11 00 00 00 00 00 00 DF [10:43:10]Write i2c OK [10:43:10]MH_I2C_Read... [10:43:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:10]Read from MH i2c: E2 [10:43:10]MH_I2C_Read... [10:43:10]Read from MH i2c: E2 17 00 [10:43:10]MH_I2C_Read... [10:43:10]Read from MH i2c: E2 17 00 5E 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 35 [10:43:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:43:10]wFMCommunicate OK [10:43:10]CreateOFDProtocolMessage done [10:43:10]OFDSenderStorePacket 164878 [10:43:10]StoreOFDPacket docnum=164878 [10:43:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 4D B1 07 01 8D AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 4C 00 00 00 F4 03 04 00 BD AB 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0E 84 02 00 35 04 06 00 15 8D BD 6D 8E 61 5B 89 DB 8F 67 22 5F FB [10:43:10]CheckFolder [10:43:10]dirname=/storage/ofd_packets [10:43:10]CheckFolder done [10:43:10]ProducePacketName [10:43:10]name=ofd_packets/00164878 [10:43:10]NVStorageSaveData ofd_packets/00164878 [10:43:10]File name is /storage/ofd_packets/00164878 [10:43:10]Write 301 bytes [10:43:10]NVStorageSaveData done [10:43:10]OFDSenderStorePacket done [10:43:10]KKMCreateOFDPacket done [10:43:10]NVStorageSaveData kkm_last_timestamp [10:43:10]File name is /storage/kkm_last_timestamp [10:43:10]Write 4 bytes [10:43:10]NVStorageSaveData done [10:43:10]ExternCall_PrintAddStr [10:43:10]wPrintStart [10:43:10]Write to MH i2c: 01 00 00 5F 07 66 [10:43:10]Write i2c OK [10:43:10]MH_I2C_Read... [10:43:10]Read from MH i2c: 01 [10:43:10]MH_I2C_Read... [10:43:10]Read from MH i2c: 01 07 00 [10:43:10]MH_I2C_Read... [10:43:10]Read from MH i2c: 01 07 00 5F 07 00 00 00 00 00 FF 0F 7B [10:43:10]RasterBufferAndPrint [10:43:10]line Счет N : (1)458974 [10:43:10]line ИНН: 02508201610067 [10:43:10]line Контрольно-Кассовый Чек [10:43:10]line ПРОДАЖА [10:43:10]line ТРК (МРК, ГНК) : 22 [10:43:10]line Товар: 2710124130 [10:43:10]line Аи-92-К-5 [10:43:10]line 3.040 * 65.80 [10:43:10]line = 200.03 [10:43:10]line НДС 12% НСП 1% [10:43:10]line > о реализуемом товаре [10:43:10]line ОКРУГЛЕНИЕ: -0.03 [10:43:10]line ИТОГО: 200.00 [10:43:10]line Внесено: 200.00 [10:43:10]line СДАЧА: 0.00 [10:43:10]line НСП 1% : 1.77 [10:43:10]line НДС 12% : 21.24 [10:43:10]line Наличными: 200.00 [10:43:10]line Безнал.: 0.00 [10:43:10]line Место: АЗС № 72 "Партнер Нефть" [10:43:10]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:43:10]line СНО: Общий режим [10:43:10]line Чек 76 14.07.2024 10:43 [10:43:10]line Смена: 447 ФФД: 1.0 [10:43:10]line ЗНМ: 0300000160 [10:43:10]line РНМ: 0000000000090829 [10:43:10]line Версия ККМ: 001 [10:43:10]line ФМ: 0000000000874718 [10:43:10]line ФД: 164878 [10:43:10]line ФПД: 23698512645729 [10:43:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T104309&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164878&fm=23698512645729&tin=02508201610067®Number=0000000000090829&sum=20000 [10:43:10]written 0, free lines is 4095 [10:43:10]OFD Sender: Processing packet 164878 [packets to send 104, broken 103] [10:43:10]ProducePacketName [10:43:10]name=ofd_packets/00164878 [10:43:10]OFD Sender: To server: pG, [10:43:10]CommunicateWithHost lk.salyk.kg:30040 [10:43:10]ConnectInit lk.salyk.kg [10:43:11]Connected sock=10 [10:43:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 4D B1 07 01 8D AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 4C 00 00 00 F4 03 04 00 BD AB 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0E 84 02 00 35 04 06 00 15 8D BD 6D 8E 61 5B 89 DB 8F 67 22 5F FB [10:43:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 F9 7E 47 00 3D 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 38 37 34 37 31 38 10 04 04 00 0E 84 02 00 F4 03 04 00 4B 52 93 66 B6 04 01 00 00 D7 57 89 83 78 B3 41 C2 [10:43:11]CommunicateWithHost err = 0 [10:43:11]CheckOFDResponse [10:43:11]1017 (14) - 77093643461234 [10:43:11]1041 (16) - 0000000000874718 [10:43:11]1040 (4) - 164878 [10:43:11]1012 (4) - 14.07.2024 04:21 [10:43:11]1206 (1) - 0 [10:43:11]OFD Sender: Remove packet 164878 [10:43:11]ProducePacketName [10:43:11]name=ofd_packets/00164878 [10:43:11]NVStorageDeleteData [10:43:11]Write to MH i2c: 01 00 00 89 07 90 [10:43:11]Write i2c OK [10:43:11]MH_I2C_Read... [10:43:11]Read from MH i2c: 01 [10:43:11]MH_I2C_Read... [10:43:11]Read from MH i2c: 01 07 00 [10:43:11]MH_I2C_Read... [10:43:11]Read from MH i2c: 01 07 00 89 07 00 00 00 00 00 F3 0C 96 [10:43:11]RasterBufferAndPrint [10:43:11]line [10:43:11]line [10:43:11]line [10:43:11]line [10:43:11]line [10:43:11]written 0, free lines is 3322 [10:43:11]MH_Cut [10:43:11]Write to MH i2c: D1 01 00 90 07 01 69 [10:43:11]Write i2c OK [10:43:11]MH_I2C_Read... [10:43:11]Read from MH i2c: D1 [10:43:11]MH_I2C_Read... [10:43:11]Read from MH i2c: D1 01 00 [10:43:11]MH_I2C_Read... [10:43:11]Read from MH i2c: D1 01 00 90 07 00 68 [10:43:11]Write to MH i2c: 01 00 00 91 07 98 [10:43:11]Write i2c OK [10:43:11]MH_I2C_Read... [10:43:11]OFD Sender: No OFD packet to send [10:43:12]*** Cut start [10:43:12]*** Partial cut [10:43:12]*** CUTSNS_PIN = 1 [10:43:12]*** CUTSNS_PIN = 0 [10:43:12]*** Brake cut motor [10:43:12]Read from MH i2c: 01 [10:43:12]MH_I2C_Read... [10:43:12]*** Stop cut motor [10:43:12]*** Cut end [10:43:12]Read from MH i2c: 01 07 00 [10:43:12]MH_I2C_Read... [10:43:12]Read from MH i2c: 01 07 00 91 07 00 00 00 00 00 FF 0F AD [10:43:12]process_action close_receipt done [10:43:12]requested_data is exist [10:43:12]produce_requested_data [10:43:12]requested_item fm.sn is exist - process it [10:43:12]wFMCommunicate request_size=4 [10:43:12]MH_SAM_APDU [10:43:12]CAPDU: 80 11 00 00 [10:43:12]Write to MH i2c: E2 08 00 92 07 80 11 00 00 00 00 00 00 13 [10:43:12]Write i2c OK [10:43:12]MH_I2C_Read... [10:43:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:12]Read from MH i2c: E2 [10:43:12]MH_I2C_Read... [10:43:12]Read from MH i2c: E2 17 00 [10:43:12]MH_I2C_Read... [10:43:12]Read from MH i2c: E2 17 00 92 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 69 [10:43:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:43:12]wFMCommunicate OK [10:43:12]requested_item fd.num is exist - process it [10:43:12]SAM_PROTO_GetFieldsCounters [10:43:12]wFMCommunicate request_size=4 [10:43:12]MH_SAM_APDU [10:43:12]CAPDU: 80 13 00 00 [10:43:12]Write to MH i2c: E2 08 00 93 07 80 13 00 00 00 00 00 00 16 [10:43:12]Write i2c OK [10:43:12]MH_I2C_Read... [10:43:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:43:12]Read from MH i2c: E2 [10:43:12]MH_I2C_Read... [10:43:12]Read from MH i2c: E2 62 00 [10:43:12]MH_I2C_Read... [10:43:12]Read from MH i2c: E2 62 00 93 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 0E 84 02 00 0E 04 04 00 BF 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 75 [10:43:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 0E 84 02 00 0E 04 04 00 BF 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 [10:43:12]wFMCommunicate OK [10:43:12]SAM_PROTO_GetFieldsCounters done [10:43:12]requested_item shift.num is exist - process it [10:43:12]requested_item shift.opened is exist - process it [10:43:12]req_shift_opened [10:43:12]FM_GetShiftState [10:43:12]SAM_PROTO_GetShiftState [10:43:12]wFMCommunicate request_size=4 [10:43:12]MH_SAM_APDU [10:43:12]CAPDU: 80 13 01 00 [10:43:12]Write to MH i2c: E2 08 00 94 07 80 13 01 00 00 00 00 00 18 [10:43:12]Write i2c OK [10:43:12]MH_I2C_Read... [10:43:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:12]Read from MH i2c: E2 [10:43:12]MH_I2C_Read... [10:43:12]Read from MH i2c: E2 0E 00 [10:43:12]MH_I2C_Read... [10:43:12]Read from MH i2c: E2 0E 00 94 07 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 98 [10:43:12]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [10:43:12]wFMCommunicate OK [10:43:12]SAM_PROTO_GetShiftState done [10:43:12]FM_GetShiftState done [10:43:12]req_shift_opened done [10:43:12]requested_item shift.open_date is exist - process it [10:43:12]req_shift_open_date [10:43:12]req_shift_open_date done [10:43:12]produce_requested_data done [10:43:12]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164878,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [10:43:12]process_action_free close_receipt [10:43:12]json_value_free [10:43:12]json_value_free done [10:43:12]process_json_proto returns [10:43:12]Send response to host [10:43:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164878,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [10:43:12]free response buf [10:43:12]execute_script done [10:43:12]execute_script returns [10:43:12]free content buf [10:43:12]Sock 9.Close socket [10:43:12]Sock 9.Thread stoped [10:43:16]OFD Sender: No OFD packet to send [10:43:21]OFD Sender: No OFD packet to send [10:43:26]OFD Sender: No OFD packet to send [10:43:31]OFD Sender: No OFD packet to send [10:43:36]OFD Sender: No OFD packet to send [10:43:41]OFD Sender: No OFD packet to send [10:43:46]OFD Sender: No OFD packet to send [10:43:51]OFD Sender: No OFD packet to send [10:43:56]OFD Sender: No OFD packet to send [10:44:01]OFD Sender: No OFD packet to send [10:44:06]OFD Sender: No OFD packet to send [10:44:11]OFD Sender: No OFD packet to send [10:44:16]OFD Sender: No OFD packet to send [10:44:21]OFD Sender: No OFD packet to send [10:44:26]OFD Sender: No OFD packet to send [10:44:31]OFD Sender: No OFD packet to send [10:44:36]OFD Sender: No OFD packet to send [10:44:41]OFD Sender: No OFD packet to send [10:44:46]OFD Sender: No OFD packet to send [10:44:51]OFD Sender: No OFD packet to send [10:44:56]OFD Sender: No OFD packet to send [10:45:01]OFD Sender: No OFD packet to send [10:45:06]OFD Sender: No OFD packet to send [10:45:11]OFD Sender: No OFD packet to send [10:45:16]OFD Sender: No OFD packet to send [10:45:21]OFD Sender: No OFD packet to send [10:45:26]OFD Sender: No OFD packet to send [10:45:31]OFD Sender: No OFD packet to send [10:45:36]OFD Sender: No OFD packet to send [10:45:41]OFD Sender: No OFD packet to send [10:45:46]OFD Sender: No OFD packet to send [10:45:51]OFD Sender: No OFD packet to send [10:45:53]accept exits with 7 [10:45:53]New connection [10:45:53]New thread 3067616612 created [10:45:53]Thread 3067473252 joined [10:45:53]Waiting for new connection... [10:45:53] Sock 7.Parse request [10:45:53]Sock 7.Check first char [10:45:53]Sock 7.First char is OK [10:45:53]request: POST /json_proto HTTP/1.0 [10:45:53]Method: POST [10:45:53]URL: /json_proto [10:45:53]Method is POST - this is cgi request [10:45:53]url: /json_proto [10:45:53]query_string will be loaded in cgi processing [10:45:53]execute_cgi json_proto POST (null) [10:45:53]execute_cgi path=json_proto method=POST [10:45:53]POST find Content-Length [10:45:53]Host: 172.17.56.4:8080 [10:45:53]Content-Length: 679 [10:45:53]Content-Type: application/json [10:45:53] [10:45:53]POST finish read [10:45:53]Found Content-Length = 679 [10:45:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458975", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 41.730, "sum" : 3000.39, "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:45:53]execute_script... [10:45:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458975", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 41.730, "sum" : 3000.39, "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:45:53]POST & json_proto [10:45:53]process_json_proto [10:45:53]json parsed OK: [10:45:53]protocol is kg_v1.0 [10:45:53]action value=close_receipt [10:45:53]process_action close_receipt [10:45:53]cmd_close_receipt [10:45:53]MH_GetDate [10:45:53]Write to MH i2c: F0 00 00 95 07 8B [10:45:53]Write i2c OK [10:45:53]MH_I2C_Read... [10:45:53]Read from MH i2c: F0 [10:45:53]MH_I2C_Read... [10:45:53]Read from MH i2c: F0 09 00 [10:45:53]MH_I2C_Read... [10:45:53]Read from MH i2c: F0 09 00 95 07 00 62 AC 93 66 C9 DC B2 64 56 [10:45:53]GetLastDocTimeStamp 1720953789 [10:45:53]current date 1720953954 [10:45:53]FM_GetShiftState [10:45:53]SAM_PROTO_GetShiftState [10:45:53]wFMCommunicate request_size=4 [10:45:53]MH_SAM_APDU [10:45:53]CAPDU: 80 13 01 00 [10:45:53]Write to MH i2c: E2 08 00 96 07 80 13 01 00 00 00 00 00 1A [10:45:53]Write i2c OK [10:45:53]MH_I2C_Read... [10:45:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:53]Read from MH i2c: E2 [10:45:53]MH_I2C_Read... [10:45:53]Read from MH i2c: E2 0E 00 [10:45:53]MH_I2C_Read... [10:45:53]Read from MH i2c: E2 0E 00 96 07 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 9A [10:45:53]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [10:45:53]wFMCommunicate OK [10:45:53]SAM_PROTO_GetShiftState done [10:45:53]FM_GetShiftState done [10:45:53]opened in 1720917342 [10:45:53]opened+sec_in_day 1721003742 [10:45:53]quantity*price = 300038 [10:45:53]sum+1 = 300040 [10:45:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.62 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 77 14.07.2024 10:45 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164879 ФПД: 69898868764380 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T104554&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164879&fm=69898868764380&tin=02508201610067®Number=0000000000090829&sum=300000 [10:45:55]StoreToDocumentArchive [10:45:55]shift 447 fd 164879 [10:45:55]save to /storage/0447/doc_00164879 [10:45:55]save last doc name /storage/0447/doc_00164879 to /storage/kkm_last_doc_name [10:45:55]save OK [10:45:55]Clear old archive folders... [10:45:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:45:55]tlvbuf is 0074A540 [10:45:55]SAM_PROTO_ClearQueue [10:45:55]wFMCommunicate request_size=4 [10:45:55]MH_SAM_APDU [10:45:55]CAPDU: 80 09 00 00 [10:45:55]Write to MH i2c: E2 08 00 A3 07 80 09 00 00 00 00 00 00 1C [10:45:55]Write i2c OK [10:45:55]MH_I2C_Read... [10:45:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:45:55]Read from MH i2c: E2 [10:45:55]MH_I2C_Read... [10:45:55]Read from MH i2c: E2 03 00 [10:45:55]MH_I2C_Read... [10:45:55]Read from MH i2c: E2 03 00 A3 07 00 90 00 1E [10:45:55]RAPDU: 90 00 [10:45:55]wFMCommunicate OK [10:45:55]SAM_PROTO_ClearQueue done [10:45:55]KKMCreateOFDPacket [10:45:55]OFDProtocolAddRootSTLVToBuf [10:45:55]FM_MakeSignedData [10:45:55]FM_MakeSignedData [10:45:55]SAM_PROTO_SignData [10:45:55]wFMCommunicate request_size=4 [10:45:55]MH_SAM_APDU [10:45:55]CAPDU: 80 0D 01 02 [10:45:55]Write to MH i2c: E2 08 00 A4 07 80 0D 01 02 00 00 00 00 24 [10:45:55]Write i2c OK [10:45:55]MH_I2C_Read... [10:45:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:45:55]Read from MH i2c: E2 [10:45:55]MH_I2C_Read... [10:45:55]Read from MH i2c: E2 03 00 [10:45:55]MH_I2C_Read... [10:45:55]Read from MH i2c: E2 03 00 A4 07 00 90 00 1F [10:45:55]RAPDU: 90 00 [10:45:55]wFMCommunicate OK [10:45:55]wFMCommunicate request_size=255 [10:45:55]MH_SAM_APDU [10:45: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 02 A3 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 07 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 62 AC 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0F 84 02 00 35 04 06 00 3F 92 99 3E [10:45:55]Write to MH i2c: E2 02 01 A5 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 02 A3 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 07 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 62 AC 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0F 84 02 00 35 04 06 00 3F 92 99 3E 00 00 97 [10:45:55]Write i2c OK [10:45:55]MH_I2C_Read... [10:45:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:55]Read from MH i2c: E2 [10:45:55]MH_I2C_Read... [10:45:55]Read from MH i2c: E2 03 00 [10:45:55]MH_I2C_Read... [10:45:55]Read from MH i2c: E2 03 00 A5 07 00 90 00 20 [10:45:55]RAPDU: 90 00 [10:45:55]wFMCommunicate OK [10:45:55]wFMCommunicate request_size=7 [10:45:55]MH_SAM_APDU [10:45:55]CAPDU: 80 0D 02 02 02 2E DC [10:45:55]Write to MH i2c: E2 0A 00 A6 07 80 0D 02 02 02 00 2E DC 00 00 35 [10:45:55]Write i2c OK [10:45:55]MH_I2C_Read... [10:45:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:55]Read from MH i2c: E2 [10:45:55]MH_I2C_Read... [10:45:55]Read from MH i2c: E2 03 00 [10:45:55]MH_I2C_Read... [10:45:55]Read from MH i2c: E2 03 00 A6 07 00 90 00 21 [10:45:55]RAPDU: 90 00 [10:45:55]wFMCommunicate OK [10:45:55]wFMCommunicate request_size=4 [10:45:55]MH_SAM_APDU [10:45:55]CAPDU: 80 0D 03 02 [10:45:55]Write to MH i2c: E2 08 00 A7 07 80 0D 03 02 00 00 00 00 29 [10:45:55]Write i2c OK [10:45:55]MH_I2C_Read... [10:45:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:45:55]Read from MH i2c: E2 [10:45:55]MH_I2C_Read... [10:45:55]Read from MH i2c: E2 0B 00 [10:45:55]MH_I2C_Read... [10:45:55]Read from MH i2c: E2 0B 00 A7 07 00 8B ED 4F DF F5 7B 4D 95 90 00 22 [10:45:55]RAPDU: 8B ED 4F DF F5 7B 4D 95 90 00 [10:45:55]wFMCommunicate OK [10:45:55]SAM_PROTO_SignData done [10:45:55]FM_MakeSignedData done [10:45:55]CreateOFDProtocolMessage [10:45:55]wFMCommunicate request_size=4 [10:45:55]MH_SAM_APDU [10:45:55]CAPDU: 80 11 00 00 [10:45:55]Write to MH i2c: E2 08 00 A8 07 80 11 00 00 00 00 00 00 29 [10:45:55]Write i2c OK [10:45:55]MH_I2C_Read... [10:45:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:55]Read from MH i2c: E2 [10:45:55]MH_I2C_Read... [10:45:55]Read from MH i2c: E2 17 00 [10:45:55]MH_I2C_Read... [10:45:55]Read from MH i2c: E2 17 00 A8 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 7F [10:45:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:45:55]wFMCommunicate OK [10:45:55]CreateOFDProtocolMessage done [10:45:55]OFDSenderStorePacket 164879 [10:45:55]StoreOFDPacket docnum=164879 [10:45:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 79 98 04 01 03 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 02 A3 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 07 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 62 AC 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0F 84 02 00 35 04 06 00 3F 92 99 3E 2E DC 8B ED 4F DF F5 7B 4D 95 [10:45:55]CheckFolder [10:45:55]dirname=/storage/ofd_packets [10:45:55]CheckFolder done [10:45:55]ProducePacketName [10:45:55]name=ofd_packets/00164879 [10:45:55]NVStorageSaveData ofd_packets/00164879 [10:45:55]File name is /storage/ofd_packets/00164879 [10:45:55]Write 298 bytes [10:45:55]NVStorageSaveData done [10:45:55]OFDSenderStorePacket done [10:45:55]KKMCreateOFDPacket done [10:45:55]NVStorageSaveData kkm_last_timestamp [10:45:55]File name is /storage/kkm_last_timestamp [10:45:55]Write 4 bytes [10:45:55]NVStorageSaveData done [10:45:55]ExternCall_PrintAddStr [10:45:55]wPrintStart [10:45:55]Write to MH i2c: 01 00 00 A9 07 B0 [10:45:55]Write i2c OK [10:45:55]MH_I2C_Read... [10:45:55]Read from MH i2c: 01 [10:45:55]MH_I2C_Read... [10:45:55]Read from MH i2c: 01 07 00 [10:45:55]MH_I2C_Read... [10:45:55]Read from MH i2c: 01 07 00 A9 07 00 00 00 00 00 FF 0F C5 [10:45:55]RasterBufferAndPrint [10:45:55]line Счет N : (1)458975 [10:45:55]line ИНН: 02508201610067 [10:45:55]line Контрольно-Кассовый Чек [10:45:55]line ПРОДАЖА [10:45:55]line ТРК (МРК, ГНК) : 11 [10:45:55]line Товар: 2710194210 [10:45:55]line ДТ-К-5 [10:45:55]line 41.730 * 71.90 [10:45:55]line = 3000.39 [10:45:55]line НДС 12% НСП 1% [10:45:55]line > о реализуемом товаре [10:45:55]line ОКРУГЛЕНИЕ: -0.39 [10:45:55]line ИТОГО: 3000.00 [10:45:55]line Внесено: 3000.00 [10:45:55]line СДАЧА: 0.00 [10:45:55]line НСП 1% : 26.55 [10:45:55]line НДС 12% : 318.62 [10:45:55]line Наличными: 3000.00 [10:45:55]line Безнал.: 0.00 [10:45:55]line Место: АЗС № 72 "Партнер Нефть" [10:45:55]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:45:55]line СНО: Общий режим [10:45:55]line Чек 77 14.07.2024 10:45 [10:45:55]line Смена: 447 ФФД: 1.0 [10:45:55]line ЗНМ: 0300000160 [10:45:55]line РНМ: 0000000000090829 [10:45:55]line Версия ККМ: 001 [10:45:55]line ФМ: 0000000000874718 [10:45:55]line ФД: 164879 [10:45:55]line ФПД: 69898868764380 [10:45:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T104554&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164879&fm=69898868764380&tin=02508201610067®Number=0000000000090829&sum=300000 [10:45:55]OFD Sender: Processing packet 164879 [packets to send 104, broken 103] [10:45:55]ProducePacketName [10:45:55]name=ofd_packets/00164879 [10:45:55]OFD Sender: To server: pG, [10:45:55]CommunicateWithHost lk.salyk.kg:30040 [10:45:55]ConnectInit lk.salyk.kg [10:45:55]written 0, free lines is 4095 [10:45:56]Connected sock=10 [10:45:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 79 98 04 01 03 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 02 A3 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 07 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 62 AC 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0F 84 02 00 35 04 06 00 3F 92 99 3E 2E DC 8B ED 4F DF F5 7B 4D 95 [10:45:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 CA 00 47 00 C1 AE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0F 84 02 00 F4 03 04 00 F0 52 93 66 B6 04 01 00 00 61 36 1C 0F BD 4C E1 BF [10:45:56]CommunicateWithHost err = 0 [10:45:56]CheckOFDResponse [10:45:56]1017 (14) - 77093643461234 [10:45:56]1041 (16) - 0000000000874718 [10:45:56]1040 (4) - 164879 [10:45:56]1012 (4) - 14.07.2024 04:24 [10:45:56]1206 (1) - 0 [10:45:56]OFD Sender: Remove packet 164879 [10:45:56]ProducePacketName [10:45:56]name=ofd_packets/00164879 [10:45:56]NVStorageDeleteData [10:45:56]Write to MH i2c: 01 00 00 D3 07 DA [10:45:56]Write i2c OK [10:45:56]MH_I2C_Read... [10:45:56]Read from MH i2c: 01 [10:45:56]MH_I2C_Read... [10:45:56]Read from MH i2c: 01 07 00 [10:45:56]MH_I2C_Read... [10:45:56]Read from MH i2c: 01 07 00 D3 07 00 00 00 00 00 F6 0C E3 [10:45:56]RasterBufferAndPrint [10:45:56]line [10:45:56]line [10:45:56]line [10:45:56]line [10:45:56]line [10:45:56]written 0, free lines is 3324 [10:45:56]MH_Cut [10:45:56]Write to MH i2c: D1 01 00 DA 07 01 B3 [10:45:56]Write i2c OK [10:45:56]MH_I2C_Read... [10:45:56]Read from MH i2c: D1 [10:45:56]MH_I2C_Read... [10:45:56]Read from MH i2c: D1 01 00 [10:45:56]MH_I2C_Read... [10:45:56]Read from MH i2c: D1 01 00 DA 07 00 B2 [10:45:56]Write to MH i2c: 01 00 00 DB 07 E2 [10:45:56]Write i2c OK [10:45:56]MH_I2C_Read... [10:45:56]OFD Sender: No OFD packet to send [10:45:57]*** Cut start [10:45:57]*** Partial cut [10:45:57]*** CUTSNS_PIN = 1 [10:45:57]*** CUTSNS_PIN = 0 [10:45:57]*** Brake cut motor [10:45:57]Read from MH i2c: 01 [10:45:57]MH_I2C_Read... [10:45:57]*** Stop cut motor [10:45:57]*** Cut end [10:45:57]Read from MH i2c: 01 07 00 [10:45:57]MH_I2C_Read... [10:45:57]Read from MH i2c: 01 07 00 DB 07 00 00 00 00 00 FF 0F F7 [10:45:57]process_action close_receipt done [10:45:57]requested_data is exist [10:45:57]produce_requested_data [10:45:57]requested_item fm.sn is exist - process it [10:45:57]wFMCommunicate request_size=4 [10:45:57]MH_SAM_APDU [10:45:57]CAPDU: 80 11 00 00 [10:45:57]Write to MH i2c: E2 08 00 DC 07 80 11 00 00 00 00 00 00 5D [10:45:57]Write i2c OK [10:45:57]MH_I2C_Read... [10:45:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:57]Read from MH i2c: E2 [10:45:57]MH_I2C_Read... [10:45:57]Read from MH i2c: E2 17 00 [10:45:57]MH_I2C_Read... [10:45:57]Read from MH i2c: E2 17 00 DC 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B3 [10:45:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:45:57]wFMCommunicate OK [10:45:57]requested_item fd.num is exist - process it [10:45:57]SAM_PROTO_GetFieldsCounters [10:45:57]wFMCommunicate request_size=4 [10:45:57]MH_SAM_APDU [10:45:57]CAPDU: 80 13 00 00 [10:45:57]Write to MH i2c: E2 08 00 DD 07 80 13 00 00 00 00 00 00 60 [10:45:57]Write i2c OK [10:45:57]MH_I2C_Read... [10:45:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:45:57]Read from MH i2c: E2 [10:45:57]MH_I2C_Read... [10:45:57]Read from MH i2c: E2 62 00 [10:45:57]MH_I2C_Read... [10:45:57]Read from MH i2c: E2 62 00 DD 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 0F 84 02 00 0E 04 04 00 BF 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 C3 [10:45:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 0F 84 02 00 0E 04 04 00 BF 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 [10:45:57]wFMCommunicate OK [10:45:57]SAM_PROTO_GetFieldsCounters done [10:45:57]requested_item shift.num is exist - process it [10:45:57]requested_item shift.opened is exist - process it [10:45:57]req_shift_opened [10:45:57]FM_GetShiftState [10:45:57]SAM_PROTO_GetShiftState [10:45:57]wFMCommunicate request_size=4 [10:45:57]MH_SAM_APDU [10:45:57]CAPDU: 80 13 01 00 [10:45:57]Write to MH i2c: E2 08 00 DE 07 80 13 01 00 00 00 00 00 62 [10:45:57]Write i2c OK [10:45:57]MH_I2C_Read... [10:45:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:57]Read from MH i2c: E2 [10:45:57]MH_I2C_Read... [10:45:57]Read from MH i2c: E2 0E 00 [10:45:57]MH_I2C_Read... [10:45:57]Read from MH i2c: E2 0E 00 DE 07 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 E2 [10:45:57]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [10:45:57]wFMCommunicate OK [10:45:57]SAM_PROTO_GetShiftState done [10:45:57]FM_GetShiftState done [10:45:57]req_shift_opened done [10:45:57]requested_item shift.open_date is exist - process it [10:45:57]req_shift_open_date [10:45:57]req_shift_open_date done [10:45:57]produce_requested_data done [10:45:57]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164879,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [10:45:57]process_action_free close_receipt [10:45:57]json_value_free [10:45:57]json_value_free done [10:45:57]process_json_proto returns [10:45:57]Send response to host [10:45:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164879,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [10:45:57]free response buf [10:45:57]execute_script done [10:45:57]execute_script returns [10:45:57]free content buf [10:45:57]Sock 7.Close socket [10:45:57]Sock 7.Thread stoped [10:46:01]OFD Sender: No OFD packet to send [10:46:06]OFD Sender: No OFD packet to send [10:46:11]OFD Sender: No OFD packet to send [10:46:16]OFD Sender: No OFD packet to send [10:46:21]OFD Sender: No OFD packet to send [10:46:26]OFD Sender: No OFD packet to send [10:46:31]OFD Sender: No OFD packet to send [10:46:36]OFD Sender: No OFD packet to send [10:46:41]OFD Sender: No OFD packet to send [10:46:46]OFD Sender: No OFD packet to send [10:46:51]OFD Sender: No OFD packet to send [10:46:56]OFD Sender: No OFD packet to send [10:47:01]OFD Sender: No OFD packet to send [10:47:06]accept exits with 9 [10:47:06]New connection [10:47:06]New thread 3067473252 created [10:47:06]Thread 3067616612 joined [10:47:06]Waiting for new connection... [10:47:06] Sock 9.Parse request [10:47:06]Sock 9.Check first char [10:47:06]Sock 9.First char is OK [10:47:06]request: POST /json_proto HTTP/1.0 [10:47:06]Method: POST [10:47:06]URL: /json_proto [10:47:06]Method is POST - this is cgi request [10:47:06]url: /json_proto [10:47:06]query_string will be loaded in cgi processing [10:47:06]execute_cgi json_proto POST (null) [10:47:06]execute_cgi path=json_proto method=POST [10:47:06]POST find Content-Length [10:47:06]Host: 172.17.56.4:8080 [10:47:06]Content-Length: 679 [10:47:06]Content-Type: application/json [10:47:06] [10:47:06]POST finish read [10:47:06]Found Content-Length = 679 [10:47:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458976", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 31.990, "sum" : 2300.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2300.00, "total" : 2300.00, "payments": [ { "type": 0, "sum" : 2300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:47:06]execute_script... [10:47: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)458976", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 31.990, "sum" : 2300.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2300.00, "total" : 2300.00, "payments": [ { "type": 0, "sum" : 2300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:47:06]POST & json_proto [10:47:06]process_json_proto [10:47:06]json parsed OK: [10:47:06]protocol is kg_v1.0 [10:47:06]action value=close_receipt [10:47:06]process_action close_receipt [10:47:06]cmd_close_receipt [10:47:06]MH_GetDate [10:47:06]Write to MH i2c: F0 00 00 DF 07 D5 [10:47:06]Write i2c OK [10:47:06]MH_I2C_Read... [10:47:06]Read from MH i2c: F0 [10:47:06]MH_I2C_Read... [10:47:06]Read from MH i2c: F0 09 00 [10:47:06]MH_I2C_Read... [10:47:06]Read from MH i2c: F0 09 00 DF 07 00 AB AC 93 66 C9 DC B2 64 E9 [10:47:06]GetLastDocTimeStamp 1720953954 [10:47:06]current date 1720954027 [10:47:06]FM_GetShiftState [10:47:06]SAM_PROTO_GetShiftState [10:47:06]wFMCommunicate request_size=4 [10:47:06]MH_SAM_APDU [10:47:06]CAPDU: 80 13 01 00 [10:47:06]Write to MH i2c: E2 08 00 E0 07 80 13 01 00 00 00 00 00 64 [10:47:06]Write i2c OK [10:47:06]MH_I2C_Read... [10:47:06]OFD Sender: No OFD packet to send [10:47:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:06]Read from MH i2c: E2 [10:47:06]MH_I2C_Read... [10:47:06]Read from MH i2c: E2 0E 00 [10:47:06]MH_I2C_Read... [10:47:06]Read from MH i2c: E2 0E 00 E0 07 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 E4 [10:47:06]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [10:47:06]wFMCommunicate OK [10:47:06]SAM_PROTO_GetShiftState done [10:47:06]FM_GetShiftState done [10:47:06]opened in 1720917342 [10:47:06]opened+sec_in_day 1721003742 [10:47:06]quantity*price = 230008 [10:47:06]sum+1 = 230009 [10:47:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 2300.00 Внесено: 2300.00 СДАЧА: 0.00 НСП 1% : 20.35 НДС 12% : 244.26 Наличными: 2300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 78 14.07.2024 10:47 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164880 ФПД: 110994538331084 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T104707&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164880&fm=110994538331084&tin=02508201610067®Number=0000000000090829&sum=230000 [10:47:07]StoreToDocumentArchive [10:47:07]shift 447 fd 164880 [10:47:07]save to /storage/0447/doc_00164880 [10:47:07]save last doc name /storage/0447/doc_00164880 to /storage/kkm_last_doc_name [10:47:07]save OK [10:47:07]Clear old archive folders... [10:47:07]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:47:07]tlvbuf is 007496E0 [10:47:07]SAM_PROTO_ClearQueue [10:47:07]wFMCommunicate request_size=4 [10:47:07]MH_SAM_APDU [10:47:07]CAPDU: 80 09 00 00 [10:47:07]Write to MH i2c: E2 08 00 ED 07 80 09 00 00 00 00 00 00 66 [10:47:07]Write i2c OK [10:47:07]MH_I2C_Read... [10:47:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:47:07]Read from MH i2c: E2 [10:47:07]MH_I2C_Read... [10:47:07]Read from MH i2c: E2 03 00 [10:47:07]MH_I2C_Read... [10:47:07]Read from MH i2c: E2 03 00 ED 07 00 90 00 68 [10:47:07]RAPDU: 90 00 [10:47:07]wFMCommunicate OK [10:47:07]SAM_PROTO_ClearQueue done [10:47:07]KKMCreateOFDPacket [10:47:07]OFDProtocolAddRootSTLVToBuf [10:47:07]FM_MakeSignedData [10:47:07]FM_MakeSignedData [10:47:07]SAM_PROTO_SignData [10:47:07]wFMCommunicate request_size=4 [10:47:07]MH_SAM_APDU [10:47:07]CAPDU: 80 0D 01 02 [10:47:07]Write to MH i2c: E2 08 00 EE 07 80 0D 01 02 00 00 00 00 6E [10:47:07]Write i2c OK [10:47:07]MH_I2C_Read... [10:47:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:47:08]Read from MH i2c: E2 [10:47:08]MH_I2C_Read... [10:47:08]Read from MH i2c: E2 03 00 [10:47:08]MH_I2C_Read... [10:47:08]Read from MH i2c: E2 03 00 EE 07 00 90 00 69 [10:47:08]RAPDU: 90 00 [10:47:08]wFMCommunicate OK [10:47:08]wFMCommunicate request_size=255 [10:47:08]MH_SAM_APDU [10:47: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 F6 7C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 78 82 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 82 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F3 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 5F 00 00 00 00 07 04 06 00 70 82 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 AB AC 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 10 84 02 00 35 04 06 00 64 F2 EE 07 [10:47:08]Write to MH i2c: E2 02 01 EF 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 F6 7C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 78 82 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 82 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F3 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 5F 00 00 00 00 07 04 06 00 70 82 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 AB AC 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 10 84 02 00 35 04 06 00 64 F2 EE 07 00 00 5E [10:47:08]Write i2c OK [10:47:08]MH_I2C_Read... [10:47:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:08]Read from MH i2c: E2 [10:47:08]MH_I2C_Read... [10:47:08]Read from MH i2c: E2 03 00 [10:47:08]MH_I2C_Read... [10:47:08]Read from MH i2c: E2 03 00 EF 07 00 90 00 6A [10:47:08]RAPDU: 90 00 [10:47:08]wFMCommunicate OK [10:47:08]wFMCommunicate request_size=7 [10:47:08]MH_SAM_APDU [10:47:08]CAPDU: 80 0D 02 02 02 7B CC [10:47:08]Write to MH i2c: E2 0A 00 F0 07 80 0D 02 02 02 00 7B CC 00 00 BC [10:47:08]Write i2c OK [10:47:08]MH_I2C_Read... [10:47:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:08]Read from MH i2c: E2 [10:47:08]MH_I2C_Read... [10:47:08]Read from MH i2c: E2 03 00 [10:47:08]MH_I2C_Read... [10:47:08]Read from MH i2c: E2 03 00 F0 07 00 90 00 6B [10:47:08]RAPDU: 90 00 [10:47:08]wFMCommunicate OK [10:47:08]wFMCommunicate request_size=4 [10:47:08]MH_SAM_APDU [10:47:08]CAPDU: 80 0D 03 02 [10:47:08]Write to MH i2c: E2 08 00 F1 07 80 0D 03 02 00 00 00 00 73 [10:47:08]Write i2c OK [10:47:08]MH_I2C_Read... [10:47:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:47:08]Read from MH i2c: E2 [10:47:08]MH_I2C_Read... [10:47:08]Read from MH i2c: E2 0B 00 [10:47:08]MH_I2C_Read... [10:47:08]Read from MH i2c: E2 0B 00 F1 07 00 7D 8E D1 C3 70 22 8A FB 90 00 2A [10:47:08]RAPDU: 7D 8E D1 C3 70 22 8A FB 90 00 [10:47:08]wFMCommunicate OK [10:47:08]SAM_PROTO_SignData done [10:47:08]FM_MakeSignedData done [10:47:08]CreateOFDProtocolMessage [10:47:08]wFMCommunicate request_size=4 [10:47:08]MH_SAM_APDU [10:47:08]CAPDU: 80 11 00 00 [10:47:08]Write to MH i2c: E2 08 00 F2 07 80 11 00 00 00 00 00 00 73 [10:47:08]Write i2c OK [10:47:08]MH_I2C_Read... [10:47:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:08]Read from MH i2c: E2 [10:47:08]MH_I2C_Read... [10:47:08]Read from MH i2c: E2 17 00 [10:47:08]MH_I2C_Read... [10:47:08]Read from MH i2c: E2 17 00 F2 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C9 [10:47:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:47:08]wFMCommunicate OK [10:47:08]CreateOFDProtocolMessage done [10:47:08]OFDSenderStorePacket 164880 [10:47:08]StoreOFDPacket docnum=164880 [10:47:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 A3 4D 04 01 FF 15 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F6 7C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 78 82 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 82 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F3 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 5F 00 00 00 00 07 04 06 00 70 82 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 AB AC 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 10 84 02 00 35 04 06 00 64 F2 EE 07 7B CC 7D 8E D1 C3 70 22 8A FB [10:47:08]CheckFolder [10:47:08]dirname=/storage/ofd_packets [10:47:08]CheckFolder done [10:47:08]ProducePacketName [10:47:08]name=ofd_packets/00164880 [10:47:08]NVStorageSaveData ofd_packets/00164880 [10:47:08]File name is /storage/ofd_packets/00164880 [10:47:08]Write 298 bytes [10:47:08]NVStorageSaveData done [10:47:08]OFDSenderStorePacket done [10:47:08]KKMCreateOFDPacket done [10:47:08]NVStorageSaveData kkm_last_timestamp [10:47:08]File name is /storage/kkm_last_timestamp [10:47:08]Write 4 bytes [10:47:08]NVStorageSaveData done [10:47:08]ExternCall_PrintAddStr [10:47:08]wPrintStart [10:47:08]Write to MH i2c: 01 00 00 F3 07 FA [10:47:08]Write i2c OK [10:47:08]MH_I2C_Read... [10:47:08]Read from MH i2c: 01 [10:47:08]MH_I2C_Read... [10:47:08]Read from MH i2c: 01 07 00 [10:47:08]MH_I2C_Read... [10:47:08]Read from MH i2c: 01 07 00 F3 07 00 00 00 00 00 FF 0F 0F [10:47:08]RasterBufferAndPrint [10:47:08]line Счет N : (1)458976 [10:47:08]line ИНН: 02508201610067 [10:47:08]line Контрольно-Кассовый Чек [10:47:08]line ПРОДАЖА [10:47:08]line ТРК (МРК, ГНК) : 11 [10:47:08]line Товар: 2710194210 [10:47:08]line ДТ-К-5 [10:47:08]line 31.990 * 71.90 [10:47:08]line = 2300.08 [10:47:08]line НДС 12% НСП 1% [10:47:08]line > о реализуемом товаре [10:47:08]line ОКРУГЛЕНИЕ: -0.08 [10:47:08]line ИТОГО: 2300.00 [10:47:08]line Внесено: 2300.00 [10:47:08]line СДАЧА: 0.00 [10:47:08]line НСП 1% : 20.35 [10:47:08]line НДС 12% : 244.26 [10:47:08]line Наличными: 2300.00 [10:47:08]line Безнал.: 0.00 [10:47:08]line Место: АЗС № 72 "Партнер Нефть" [10:47:08]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:47:08]line СНО: Общий режим [10:47:08]line Чек 78 14.07.2024 10:47 [10:47:08]line Смена: 447 ФФД: 1.0 [10:47:08]line ЗНМ: 0300000160 [10:47:08]line РНМ: 0000000000090829 [10:47:08]line Версия ККМ: 001 [10:47:08]line ФМ: 0000000000874718 [10:47:08]line ФД: 164880 [10:47:08]line ФПД: 110994538331084 [10:47:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T104707&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164880&fm=110994538331084&tin=02508201610067®Number=0000000000090829&sum=230000 [10:47:08]OFD Sender: Processing packet 164880 [packets to send 104, broken 103] [10:47:08]ProducePacketName [10:47:08]name=ofd_packets/00164880 [10:47:08]OFD Sender: To server: pG, [10:47:08]CommunicateWithHost lk.salyk.kg:30040 [10:47:08]ConnectInit lk.salyk.kg [10:47:08]written 0, free lines is 4095 [10:47:08]Connected sock=10 [10:47:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 A3 4D 04 01 FF 15 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F6 7C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 78 82 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 82 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F3 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 5F 00 00 00 00 07 04 06 00 70 82 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 AB AC 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 10 84 02 00 35 04 06 00 64 F2 EE 07 7B CC 7D 8E D1 C3 70 22 8A FB [10:47:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 5C CC 47 00 DF 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 10 84 02 00 F4 03 04 00 39 53 93 66 B6 04 01 00 00 65 52 60 BB FF FA 4A 64 [10:47:09]CommunicateWithHost err = 0 [10:47:09]CheckOFDResponse [10:47:09]1017 (14) - 77093643461234 [10:47:09]1041 (16) - 0000000000874718 [10:47:09]1040 (4) - 164880 [10:47:09]1012 (4) - 14.07.2024 04:25 [10:47:09]1206 (1) - 0 [10:47:09]OFD Sender: Remove packet 164880 [10:47:09]ProducePacketName [10:47:09]name=ofd_packets/00164880 [10:47:09]NVStorageDeleteData [10:47:09]Write to MH i2c: 01 00 00 1D 08 25 [10:47:09]Write i2c OK [10:47:09]MH_I2C_Read... [10:47:09]Read from MH i2c: 01 [10:47:09]MH_I2C_Read... [10:47:09]Read from MH i2c: 01 07 00 [10:47:09]MH_I2C_Read... [10:47:09]Read from MH i2c: 01 07 00 1D 08 00 00 00 00 00 01 0D 3A [10:47:09]RasterBufferAndPrint [10:47:09]line [10:47:09]line [10:47:09]line [10:47:09]line [10:47:09]line [10:47:09]written 0, free lines is 3335 [10:47:09]MH_Cut [10:47:09]Write to MH i2c: D1 01 00 24 08 01 FE [10:47:09]Write i2c OK [10:47:09]MH_I2C_Read... [10:47:09]Read from MH i2c: D1 [10:47:09]MH_I2C_Read... [10:47:09]Read from MH i2c: D1 01 00 [10:47:09]MH_I2C_Read... [10:47:09]Read from MH i2c: D1 01 00 24 08 00 FD [10:47:09]Write to MH i2c: 01 00 00 25 08 2D [10:47:09]Write i2c OK [10:47:09]MH_I2C_Read... [10:47:09]OFD Sender: No OFD packet to send [10:47:09]*** Cut start [10:47:09]*** Partial cut [10:47:09]*** CUTSNS_PIN = 1 [10:47:09]*** CUTSNS_PIN = 0 [10:47:10]*** Brake cut motor [10:47:10]Read from MH i2c: 01 [10:47:10]MH_I2C_Read... [10:47:10]*** Stop cut motor [10:47:10]*** Cut end [10:47:10]Read from MH i2c: 01 07 00 [10:47:10]MH_I2C_Read... [10:47:10]Read from MH i2c: 01 07 00 25 08 00 00 00 00 00 FF 0F 42 [10:47:10]process_action close_receipt done [10:47:10]requested_data is exist [10:47:10]produce_requested_data [10:47:10]requested_item fm.sn is exist - process it [10:47:10]wFMCommunicate request_size=4 [10:47:10]MH_SAM_APDU [10:47:10]CAPDU: 80 11 00 00 [10:47:10]Write to MH i2c: E2 08 00 26 08 80 11 00 00 00 00 00 00 A8 [10:47:10]Write i2c OK [10:47:10]MH_I2C_Read... [10:47:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:10]Read from MH i2c: E2 [10:47:10]MH_I2C_Read... [10:47:10]Read from MH i2c: E2 17 00 [10:47:10]MH_I2C_Read... [10:47:10]Read from MH i2c: E2 17 00 26 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 FE [10:47:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:47:10]wFMCommunicate OK [10:47:10]requested_item fd.num is exist - process it [10:47:10]SAM_PROTO_GetFieldsCounters [10:47:10]wFMCommunicate request_size=4 [10:47:10]MH_SAM_APDU [10:47:10]CAPDU: 80 13 00 00 [10:47:10]Write to MH i2c: E2 08 00 27 08 80 13 00 00 00 00 00 00 AB [10:47:10]Write i2c OK [10:47:10]MH_I2C_Read... [10:47:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:47:10]Read from MH i2c: E2 [10:47:10]MH_I2C_Read... [10:47:10]Read from MH i2c: E2 62 00 [10:47:10]MH_I2C_Read... [10:47:10]Read from MH i2c: E2 62 00 27 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 10 84 02 00 0E 04 04 00 BF 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 12 [10:47:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 10 84 02 00 0E 04 04 00 BF 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 [10:47:10]wFMCommunicate OK [10:47:10]SAM_PROTO_GetFieldsCounters done [10:47:10]requested_item shift.num is exist - process it [10:47:10]requested_item shift.opened is exist - process it [10:47:10]req_shift_opened [10:47:10]FM_GetShiftState [10:47:10]SAM_PROTO_GetShiftState [10:47:10]wFMCommunicate request_size=4 [10:47:10]MH_SAM_APDU [10:47:10]CAPDU: 80 13 01 00 [10:47:10]Write to MH i2c: E2 08 00 28 08 80 13 01 00 00 00 00 00 AD [10:47:10]Write i2c OK [10:47:10]MH_I2C_Read... [10:47:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:10]Read from MH i2c: E2 [10:47:10]MH_I2C_Read... [10:47:10]Read from MH i2c: E2 0E 00 [10:47:10]MH_I2C_Read... [10:47:10]Read from MH i2c: E2 0E 00 28 08 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 2D [10:47:10]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [10:47:10]wFMCommunicate OK [10:47:10]SAM_PROTO_GetShiftState done [10:47:10]FM_GetShiftState done [10:47:10]req_shift_opened done [10:47:10]requested_item shift.open_date is exist - process it [10:47:10]req_shift_open_date [10:47:10]req_shift_open_date done [10:47:10]produce_requested_data done [10:47:10]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164880,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [10:47:10]process_action_free close_receipt [10:47:10]json_value_free [10:47:10]json_value_free done [10:47:10]process_json_proto returns [10:47:10]Send response to host [10:47:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164880,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [10:47:10]free response buf [10:47:10]execute_script done [10:47:10]execute_script returns [10:47:10]free content buf [10:47:10]Sock 9.Close socket [10:47:10]Sock 9.Thread stoped [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:49]OFD Sender: No OFD packet to send [10:47:54]OFD Sender: No OFD packet to send [10:47:59]OFD Sender: No OFD packet to send [10:48:04]OFD Sender: No OFD packet to send [10:48:09]OFD Sender: No OFD packet to send [10:48:14]OFD Sender: No OFD packet to send [10:48:19]OFD Sender: No OFD packet to send [10:48:21]accept exits with 7 [10:48:21]New connection [10:48:21]New thread 3067616612 created [10:48:21]Thread 3067473252 joined [10:48:21]Waiting for new connection... [10:48:21] Sock 7.Parse request [10:48:21]Sock 7.Check first char [10:48:21]Sock 7.First char is OK [10:48:21]request: POST /json_proto HTTP/1.0 [10:48:21]Method: POST [10:48:21]URL: /json_proto [10:48:21]Method is POST - this is cgi request [10:48:21]url: /json_proto [10:48:21]query_string will be loaded in cgi processing [10:48:21]execute_cgi json_proto POST (null) [10:48:21]execute_cgi path=json_proto method=POST [10:48:21]POST find Content-Length [10:48:21]Host: 172.17.56.4:8080 [10:48:21]Content-Length: 790 [10:48:21]Content-Type: application/json [10:48:21] [10:48:21]POST finish read [10:48:21]Found Content-Length = 790 [10:48:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458977", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.26, "quantity" : 25.000, "sum" : 1781.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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1781.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:48:21]execute_script... [10:48:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458977", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.26, "quantity" : 25.000, "sum" : 1781.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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1781.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:48:21]POST & json_proto [10:48:21]process_json_proto [10:48:21]json parsed OK: [10:48:21]protocol is kg_v1.0 [10:48:21]action value=close_receipt [10:48:21]process_action close_receipt [10:48:21]cmd_close_receipt [10:48:21]MH_GetDate [10:48:21]Write to MH i2c: F0 00 00 29 08 20 [10:48:21]Write i2c OK [10:48:21]MH_I2C_Read... [10:48:21]Read from MH i2c: F0 [10:48:21]MH_I2C_Read... [10:48:21]Read from MH i2c: F0 09 00 [10:48:21]MH_I2C_Read... [10:48:21]Read from MH i2c: F0 09 00 29 08 00 F6 AC 93 66 C9 DC B2 64 7F [10:48:21]GetLastDocTimeStamp 1720954027 [10:48:21]current date 1720954102 [10:48:21]FM_GetShiftState [10:48:21]SAM_PROTO_GetShiftState [10:48:21]wFMCommunicate request_size=4 [10:48:21]MH_SAM_APDU [10:48:21]CAPDU: 80 13 01 00 [10:48:21]Write to MH i2c: E2 08 00 2A 08 80 13 01 00 00 00 00 00 AF [10:48:21]Write i2c OK [10:48:21]MH_I2C_Read... [10:48:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:21]Read from MH i2c: E2 [10:48:21]MH_I2C_Read... [10:48:21]Read from MH i2c: E2 0E 00 [10:48:21]MH_I2C_Read... [10:48:21]Read from MH i2c: E2 0E 00 2A 08 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 2F [10:48:21]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [10:48:21]wFMCommunicate OK [10:48:21]SAM_PROTO_GetShiftState done [10:48:21]FM_GetShiftState done [10:48:21]opened in 1720917342 [10:48:21]opened+sec_in_day 1721003742 [10:48:21]quantity*price = 178150 [10:48:21]sum+1 = 178151 [10:48:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1781.50 НСП 1% : 15.76 НДС 12% : 189.19 Наличными: 0.00 Безнал.: 1781.50 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 79 14.07.2024 10:48 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164881 ФПД: 76004145987916 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T104822&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164881&fm=76004145987916&tin=02508201610067®Number=0000000000090829&sum=178150 [10:48:22]StoreToDocumentArchive [10:48:22]shift 447 fd 164881 [10:48:22]save to /storage/0447/doc_00164881 [10:48:22]save last doc name /storage/0447/doc_00164881 to /storage/kkm_last_doc_name [10:48:22]save OK [10:48:22]Clear old archive folders... [10:48:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:48:22]tlvbuf is 0073BCD0 [10:48:22]SAM_PROTO_ClearQueue [10:48:22]wFMCommunicate request_size=4 [10:48:22]MH_SAM_APDU [10:48:22]CAPDU: 80 09 00 00 [10:48:22]Write to MH i2c: E2 08 00 37 08 80 09 00 00 00 00 00 00 B1 [10:48:22]Write i2c OK [10:48:22]MH_I2C_Read... [10:48:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:48:22]Read from MH i2c: E2 [10:48:22]MH_I2C_Read... [10:48:22]Read from MH i2c: E2 03 00 [10:48:22]MH_I2C_Read... [10:48:22]Read from MH i2c: E2 03 00 37 08 00 90 00 B3 [10:48:22]RAPDU: 90 00 [10:48:22]wFMCommunicate OK [10:48:22]SAM_PROTO_ClearQueue done [10:48:22]KKMCreateOFDPacket [10:48:22]OFDProtocolAddRootSTLVToBuf [10:48:22]FM_MakeSignedData [10:48:22]FM_MakeSignedData [10:48:22]SAM_PROTO_SignData [10:48:22]wFMCommunicate request_size=4 [10:48:22]MH_SAM_APDU [10:48:22]CAPDU: 80 0D 01 02 [10:48:22]Write to MH i2c: E2 08 00 38 08 80 0D 01 02 00 00 00 00 B9 [10:48:22]Write i2c OK [10:48:22]MH_I2C_Read... [10:48:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:48:22]Read from MH i2c: E2 [10:48:22]MH_I2C_Read... [10:48:22]Read from MH i2c: E2 03 00 [10:48:22]MH_I2C_Read... [10:48:22]Read from MH i2c: E2 03 00 38 08 00 90 00 B4 [10:48:22]RAPDU: 90 00 [10:48:22]wFMCommunicate OK [10:48:22]wFMCommunicate request_size=255 [10:48:22]MH_SAM_APDU [10:48:22]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 E6 B7 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E6 B7 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 49 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E6 B7 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 F6 AC 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 11 84 02 00 35 04 06 00 45 20 18 1F [10:48:22]Write to MH i2c: E2 02 01 39 08 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 A8 61 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 E6 B7 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E6 B7 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 49 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E6 B7 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 F6 AC 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 11 84 02 00 35 04 06 00 45 20 18 1F 00 00 2E [10:48:22]Write i2c OK [10:48:22]MH_I2C_Read... [10:48:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:23]Read from MH i2c: E2 [10:48:23]MH_I2C_Read... [10:48:23]Read from MH i2c: E2 03 00 [10:48:23]MH_I2C_Read... [10:48:23]Read from MH i2c: E2 03 00 39 08 00 90 00 B5 [10:48:23]RAPDU: 90 00 [10:48:23]wFMCommunicate OK [10:48:23]wFMCommunicate request_size=7 [10:48:23]MH_SAM_APDU [10:48:23]CAPDU: 80 0D 02 02 02 81 4C [10:48:23]Write to MH i2c: E2 0A 00 3A 08 80 0D 02 02 02 00 81 4C 00 00 8D [10:48:23]Write i2c OK [10:48:23]MH_I2C_Read... [10:48:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:23]Read from MH i2c: E2 [10:48:23]MH_I2C_Read... [10:48:23]Read from MH i2c: E2 03 00 [10:48:23]MH_I2C_Read... [10:48:23]Read from MH i2c: E2 03 00 3A 08 00 90 00 B6 [10:48:23]RAPDU: 90 00 [10:48:23]wFMCommunicate OK [10:48:23]wFMCommunicate request_size=4 [10:48:23]MH_SAM_APDU [10:48:23]CAPDU: 80 0D 03 02 [10:48:23]Write to MH i2c: E2 08 00 3B 08 80 0D 03 02 00 00 00 00 BE [10:48:23]Write i2c OK [10:48:23]MH_I2C_Read... [10:48:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:48:23]Read from MH i2c: E2 [10:48:23]MH_I2C_Read... [10:48:23]Read from MH i2c: E2 0B 00 [10:48:23]MH_I2C_Read... [10:48:23]Read from MH i2c: E2 0B 00 3B 08 00 D3 4B 69 A4 23 CF 35 5A 90 00 6B [10:48:23]RAPDU: D3 4B 69 A4 23 CF 35 5A 90 00 [10:48:23]wFMCommunicate OK [10:48:23]SAM_PROTO_SignData done [10:48:23]FM_MakeSignedData done [10:48:23]CreateOFDProtocolMessage [10:48:23]wFMCommunicate request_size=4 [10:48:23]MH_SAM_APDU [10:48:23]CAPDU: 80 11 00 00 [10:48:23]Write to MH i2c: E2 08 00 3C 08 80 11 00 00 00 00 00 00 BE [10:48:23]Write i2c OK [10:48:23]MH_I2C_Read... [10:48:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:23]Read from MH i2c: E2 [10:48:23]MH_I2C_Read... [10:48:23]Read from MH i2c: E2 17 00 [10:48:23]MH_I2C_Read... [10:48:23]Read from MH i2c: E2 17 00 3C 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 14 [10:48:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:48:23]wFMCommunicate OK [10:48:23]CreateOFDProtocolMessage done [10:48:23]OFDSenderStorePacket 164881 [10:48:23]StoreOFDPacket docnum=164881 [10:48:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 45 F8 04 01 AD F0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 E6 B7 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E6 B7 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 49 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E6 B7 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 F6 AC 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 11 84 02 00 35 04 06 00 45 20 18 1F 81 4C D3 4B 69 A4 23 CF 35 5A [10:48:23]CheckFolder [10:48:23]dirname=/storage/ofd_packets [10:48:23]CheckFolder done [10:48:23]ProducePacketName [10:48:23]name=ofd_packets/00164881 [10:48:23]NVStorageSaveData ofd_packets/00164881 [10:48:23]File name is /storage/ofd_packets/00164881 [10:48:23]Write 298 bytes [10:48:23]NVStorageSaveData done [10:48:23]OFDSenderStorePacket done [10:48:23]KKMCreateOFDPacket done [10:48:23]NVStorageSaveData kkm_last_timestamp [10:48:23]File name is /storage/kkm_last_timestamp [10:48:23]Write 4 bytes [10:48:23]NVStorageSaveData done [10:48:23]ExternCall_PrintAddStr [10:48:23]wPrintStart [10:48:23]Write to MH i2c: 01 00 00 3D 08 45 [10:48:23]Write i2c OK [10:48:23]MH_I2C_Read... [10:48:23]Read from MH i2c: 01 [10:48:23]MH_I2C_Read... [10:48:23]Read from MH i2c: 01 07 00 [10:48:23]MH_I2C_Read... [10:48:23]Read from MH i2c: 01 07 00 3D 08 00 00 00 00 00 FF 0F 5A [10:48:23]RasterBufferAndPrint [10:48:23]line Счет N : (1)458977 [10:48:23]line ИНН: 02508201610067 [10:48:23]line Контрольно-Кассовый Чек [10:48:23]line ПРОДАЖА [10:48:23]line ТРК (МРК, ГНК) : 11 [10:48:23]line Товар: 2710194210 [10:48:23]line ДТ-К-5 [10:48:23]line 25.000 * 71.26 [10:48:23]line = 1781.50 [10:48:23]line НДС 12% НСП 1% [10:48:23]line > о реализуемом товаре [10:48:23]line ИТОГО: 1781.50 [10:48:23]line НСП 1% : 15.76 [10:48:23]line НДС 12% : 189.19 [10:48:23]line Наличными: 0.00 [10:48:23]line Безнал.: 1781.50 [10:48:23]line Место: АЗС № 72 "Партнер Нефть" [10:48:23]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:48:23]line СНО: Общий режим [10:48:23]line Чек 79 14.07.2024 10:48 [10:48:23]line Смена: 447 ФФД: 1.0 [10:48:23]line ЗНМ: 0300000160 [10:48:23]line РНМ: 0000000000090829 [10:48:23]line Версия ККМ: 001 [10:48:23]line Платежная система: KICB Банк [10:48:23]line ФМ: 0000000000874718 [10:48:23]line ФД: 164881 [10:48:23]line ФПД: 76004145987916 [10:48:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T104822&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164881&fm=76004145987916&tin=02508201610067®Number=0000000000090829&sum=178150 [10:48:23]OFD Sender: Processing packet 164881 [packets to send 104, broken 103] [10:48:23]ProducePacketName [10:48:23]name=ofd_packets/00164881 [10:48:23]OFD Sender: To server: pG, [10:48:23]CommunicateWithHost lk.salyk.kg:30040 [10:48:23]ConnectInit lk.salyk.kg [10:48:23]written 0, free lines is 4095 [10:48:23]Connected sock=10 [10:48:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 45 F8 04 01 AD F0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 E6 B7 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E6 B7 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 49 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E6 B7 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 F6 AC 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 11 84 02 00 35 04 06 00 45 20 18 1F 81 4C D3 4B 69 A4 23 CF 35 5A [10:48:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 BD A9 47 00 EC B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 11 84 02 00 F4 03 04 00 84 53 93 66 B6 04 01 00 00 95 B0 80 CA A0 FE 64 0A [10:48:23]CommunicateWithHost err = 0 [10:48:23]CheckOFDResponse [10:48:23]1017 (14) - 77093643461234 [10:48:23]1041 (16) - 0000000000874718 [10:48:23]1040 (4) - 164881 [10:48:23]1012 (4) - 14.07.2024 04:26 [10:48:23]1206 (1) - 0 [10:48:23]OFD Sender: Remove packet 164881 [10:48:23]ProducePacketName [10:48:23]name=ofd_packets/00164881 [10:48:23]NVStorageDeleteData [10:48:23]Write to MH i2c: 01 00 00 66 08 6E [10:48:23]Write i2c OK [10:48:23]MH_I2C_Read... [10:48:23]Read from MH i2c: 01 [10:48:23]MH_I2C_Read... [10:48:23]Read from MH i2c: 01 07 00 [10:48:23]MH_I2C_Read... [10:48:23]Read from MH i2c: 01 07 00 66 08 00 00 00 00 00 F7 0C 78 [10:48:23]RasterBufferAndPrint [10:48:23]line [10:48:23]line [10:48:23]line [10:48:23]line [10:48:23]line [10:48:23]written 0, free lines is 3326 [10:48:24]MH_Cut [10:48:24]Write to MH i2c: D1 01 00 6D 08 01 47 [10:48:24]Write i2c OK [10:48:24]MH_I2C_Read... [10:48:24]Read from MH i2c: D1 [10:48:24]MH_I2C_Read... [10:48:24]Read from MH i2c: D1 01 00 [10:48:24]MH_I2C_Read... [10:48:24]Read from MH i2c: D1 01 00 6D 08 00 46 [10:48:24]Write to MH i2c: 01 00 00 6E 08 76 [10:48:24]Write i2c OK [10:48:24]MH_I2C_Read... [10:48:24]OFD Sender: No OFD packet to send [10:48:24]*** Cut start [10:48:24]*** Partial cut [10:48:24]*** CUTSNS_PIN = 1 [10:48:24]*** CUTSNS_PIN = 0 [10:48:24]*** Brake cut motor [10:48:25]Read from MH i2c: 01 [10:48:25]MH_I2C_Read... [10:48:25]*** Stop cut motor [10:48:25]*** Cut end [10:48:25]Read from MH i2c: 01 07 00 [10:48:25]MH_I2C_Read... [10:48:25]Read from MH i2c: 01 07 00 6E 08 00 00 00 00 00 FF 0F 8B [10:48:25]process_action close_receipt done [10:48:25]requested_data is exist [10:48:25]produce_requested_data [10:48:25]requested_item fm.sn is exist - process it [10:48:25]wFMCommunicate request_size=4 [10:48:25]MH_SAM_APDU [10:48:25]CAPDU: 80 11 00 00 [10:48:25]Write to MH i2c: E2 08 00 6F 08 80 11 00 00 00 00 00 00 F1 [10:48:25]Write i2c OK [10:48:25]MH_I2C_Read... [10:48:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:25]Read from MH i2c: E2 [10:48:25]MH_I2C_Read... [10:48:25]Read from MH i2c: E2 17 00 [10:48:25]MH_I2C_Read... [10:48:25]Read from MH i2c: E2 17 00 6F 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 47 [10:48:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:48:25]wFMCommunicate OK [10:48:25]requested_item fd.num is exist - process it [10:48:25]SAM_PROTO_GetFieldsCounters [10:48:25]wFMCommunicate request_size=4 [10:48:25]MH_SAM_APDU [10:48:25]CAPDU: 80 13 00 00 [10:48:25]Write to MH i2c: E2 08 00 70 08 80 13 00 00 00 00 00 00 F4 [10:48:25]Write i2c OK [10:48:25]MH_I2C_Read... [10:48:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:48:25]Read from MH i2c: E2 [10:48:25]MH_I2C_Read... [10:48:25]Read from MH i2c: E2 62 00 [10:48:25]MH_I2C_Read... [10:48:25]Read from MH i2c: E2 62 00 70 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 11 84 02 00 0E 04 04 00 BF 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 5F [10:48:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 11 84 02 00 0E 04 04 00 BF 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 [10:48:25]wFMCommunicate OK [10:48:25]SAM_PROTO_GetFieldsCounters done [10:48:25]requested_item shift.num is exist - process it [10:48:25]requested_item shift.opened is exist - process it [10:48:25]req_shift_opened [10:48:25]FM_GetShiftState [10:48:25]SAM_PROTO_GetShiftState [10:48:25]wFMCommunicate request_size=4 [10:48:25]MH_SAM_APDU [10:48:25]CAPDU: 80 13 01 00 [10:48:25]Write to MH i2c: E2 08 00 71 08 80 13 01 00 00 00 00 00 F6 [10:48:25]Write i2c OK [10:48:25]MH_I2C_Read... [10:48:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:25]Read from MH i2c: E2 [10:48:25]MH_I2C_Read... [10:48:25]Read from MH i2c: E2 0E 00 [10:48:25]MH_I2C_Read... [10:48:25]Read from MH i2c: E2 0E 00 71 08 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 76 [10:48:25]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [10:48:25]wFMCommunicate OK [10:48:25]SAM_PROTO_GetShiftState done [10:48:25]FM_GetShiftState done [10:48:25]req_shift_opened done [10:48:25]requested_item shift.open_date is exist - process it [10:48:25]req_shift_open_date [10:48:25]req_shift_open_date done [10:48:25]produce_requested_data done [10:48:25]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164881,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [10:48:25]process_action_free close_receipt [10:48:25]json_value_free [10:48:25]json_value_free done [10:48:25]process_json_proto returns [10:48:25]Send response to host [10:48:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164881,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [10:48:25]free response buf [10:48:25]execute_script done [10:48:25]execute_script returns [10:48:25]free content buf [10:48:25]Sock 7.Close socket [10:48:25]Sock 7.Thread stoped [10:48:29]OFD Sender: No OFD packet to send [10:48:34]OFD Sender: No OFD packet to send [10:48:39]OFD Sender: No OFD packet to send [10:48:44]OFD Sender: No OFD packet to send [10:48:49]OFD Sender: No OFD packet to send [10:48:54]OFD Sender: No OFD packet to send [10:48:59]OFD Sender: No OFD packet to send [10:49:04]OFD Sender: No OFD packet to send [10:49:09]OFD Sender: No OFD packet to send [10:49:14]OFD Sender: No OFD packet to send [10:49:19]OFD Sender: No OFD packet to send [10:49:24]OFD Sender: No OFD packet to send [10:49:29]OFD Sender: No OFD packet to send [10:49:34]OFD Sender: No OFD packet to send [10:49:39]OFD Sender: No OFD packet to send [10:49:44]OFD Sender: No OFD packet to send [10:49:49]OFD Sender: No OFD packet to send [10:49:54]OFD Sender: No OFD packet to send [10:49:59]OFD Sender: No OFD packet to send [10:50:04]OFD Sender: No OFD packet to send [10:50:05]accept exits with 9 [10:50:05]New connection [10:50:05]New thread 3067473252 created [10:50:05]Thread 3067616612 joined [10:50:05]Waiting for new connection... [10:50:05] Sock 9.Parse request [10:50:05]Sock 9.Check first char [10:50:05]Sock 9.First char is OK [10:50:05]request: POST /json_proto HTTP/1.0 [10:50:05]Method: POST [10:50:05]URL: /json_proto [10:50:05]Method is POST - this is cgi request [10:50:05]url: /json_proto [10:50:05]query_string will be loaded in cgi processing [10:50:05]execute_cgi json_proto POST (null) [10:50:05]execute_cgi path=json_proto method=POST [10:50:05]POST find Content-Length [10:50:05]Host: 172.17.56.4:8080 [10:50:05]Content-Length: 840 [10:50:05]Content-Type: application/json [10:50:05] [10:50:05]POST finish read [10:50:05]Found Content-Length = 840 [10:50:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458978", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.26, "quantity" : 25.000, "sum" : 1781.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1781.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:50:05]execute_script... [10:50: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)458978", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.26, "quantity" : 25.000, "sum" : 1781.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1781.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:50:05]POST & json_proto [10:50:05]process_json_proto [10:50:05]json parsed OK: [10:50:05]protocol is kg_v1.0 [10:50:05]action value=close_receipt [10:50:05]process_action close_receipt [10:50:05]cmd_close_receipt [10:50:05]MH_GetDate [10:50:05]Write to MH i2c: F0 00 00 72 08 69 [10:50:05]Write i2c OK [10:50:05]MH_I2C_Read... [10:50:05]Read from MH i2c: F0 [10:50:05]MH_I2C_Read... [10:50:05]Read from MH i2c: F0 09 00 [10:50:05]MH_I2C_Read... [10:50:05]Read from MH i2c: F0 09 00 72 08 00 5E AD 93 66 C9 DC B2 64 31 [10:50:05]GetLastDocTimeStamp 1720954102 [10:50:05]current date 1720954206 [10:50:05]FM_GetShiftState [10:50:05]SAM_PROTO_GetShiftState [10:50:05]wFMCommunicate request_size=4 [10:50:05]MH_SAM_APDU [10:50:05]CAPDU: 80 13 01 00 [10:50:05]Write to MH i2c: E2 08 00 73 08 80 13 01 00 00 00 00 00 F8 [10:50:05]Write i2c OK [10:50:05]MH_I2C_Read... [10:50:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:05]Read from MH i2c: E2 [10:50:05]MH_I2C_Read... [10:50:05]Read from MH i2c: E2 0E 00 [10:50:05]MH_I2C_Read... [10:50:05]Read from MH i2c: E2 0E 00 73 08 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 78 [10:50:05]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [10:50:05]wFMCommunicate OK [10:50:05]SAM_PROTO_GetShiftState done [10:50:05]FM_GetShiftState done [10:50:05]opened in 1720917342 [10:50:05]opened+sec_in_day 1721003742 [10:50:05]quantity*price = 178150 [10:50:05]sum+1 = 178151 [10:50:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1781.50 НСП 1% : 15.76 НДС 12% : 189.19 Наличными: 0.00 Безнал.: 1781.50 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 80 14.07.2024 10:50 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874718 ФД: 164882 ФПД: 236386597274009 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T105006&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164882&fm=236386597274009&tin=02508201610067®Number=0000000000090829&sum=178150 [10:50:06]StoreToDocumentArchive [10:50:06]shift 447 fd 164882 [10:50:06]save to /storage/0447/doc_00164882 [10:50:06]save last doc name /storage/0447/doc_00164882 to /storage/kkm_last_doc_name [10:50:06]save OK [10:50:06]Clear old archive folders... [10:50:06]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:50:06]tlvbuf is 0074A6C0 [10:50:06]SAM_PROTO_ClearQueue [10:50:06]wFMCommunicate request_size=4 [10:50:06]MH_SAM_APDU [10:50:06]CAPDU: 80 09 00 00 [10:50:06]Write to MH i2c: E2 08 00 80 08 80 09 00 00 00 00 00 00 FA [10:50:06]Write i2c OK [10:50:06]MH_I2C_Read... [10:50:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:50:06]Read from MH i2c: E2 [10:50:06]MH_I2C_Read... [10:50:06]Read from MH i2c: E2 03 00 [10:50:06]MH_I2C_Read... [10:50:06]Read from MH i2c: E2 03 00 80 08 00 90 00 FC [10:50:06]RAPDU: 90 00 [10:50:06]wFMCommunicate OK [10:50:06]SAM_PROTO_ClearQueue done [10:50:06]KKMCreateOFDPacket [10:50:06]OFDProtocolAddRootSTLVToBuf [10:50:06]FM_MakeSignedData [10:50:06]FM_MakeSignedData [10:50:06]SAM_PROTO_SignData [10:50:06]wFMCommunicate request_size=4 [10:50:06]MH_SAM_APDU [10:50:06]CAPDU: 80 0D 01 02 [10:50:06]Write to MH i2c: E2 08 00 81 08 80 0D 01 02 00 00 00 00 02 [10:50:06]Write i2c OK [10:50:06]MH_I2C_Read... [10:50:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:50:06]Read from MH i2c: E2 [10:50:06]MH_I2C_Read... [10:50:06]Read from MH i2c: E2 03 00 [10:50:06]MH_I2C_Read... [10:50:06]Read from MH i2c: E2 03 00 81 08 00 90 00 FD [10:50:06]RAPDU: 90 00 [10:50:06]wFMCommunicate OK [10:50:06]wFMCommunicate request_size=255 [10:50:06]MH_SAM_APDU [10:50:06]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 E6 B7 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E6 B7 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 49 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E6 B7 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 5E AD 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 12 84 02 00 35 04 06 00 D6 FE 0B 29 [10:50:06]Write to MH i2c: E2 02 01 82 08 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 A8 61 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 E6 B7 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E6 B7 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 49 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E6 B7 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 5E AD 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 12 84 02 00 35 04 06 00 D6 FE 0B 29 00 00 4E [10:50:06]Write i2c OK [10:50:06]MH_I2C_Read... [10:50:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:07]Read from MH i2c: E2 [10:50:07]MH_I2C_Read... [10:50:07]Read from MH i2c: E2 03 00 [10:50:07]MH_I2C_Read... [10:50:07]Read from MH i2c: E2 03 00 82 08 00 90 00 FE [10:50:07]RAPDU: 90 00 [10:50:07]wFMCommunicate OK [10:50:07]wFMCommunicate request_size=7 [10:50:07]MH_SAM_APDU [10:50:07]CAPDU: 80 0D 02 02 02 01 99 [10:50:07]Write to MH i2c: E2 0A 00 83 08 80 0D 02 02 02 00 01 99 00 00 A3 [10:50:07]Write i2c OK [10:50:07]MH_I2C_Read... [10:50:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:07]Read from MH i2c: E2 [10:50:07]MH_I2C_Read... [10:50:07]Read from MH i2c: E2 03 00 [10:50:07]MH_I2C_Read... [10:50:07]Read from MH i2c: E2 03 00 83 08 00 90 00 FF [10:50:07]RAPDU: 90 00 [10:50:07]wFMCommunicate OK [10:50:07]wFMCommunicate request_size=4 [10:50:07]MH_SAM_APDU [10:50:07]CAPDU: 80 0D 03 02 [10:50:07]Write to MH i2c: E2 08 00 84 08 80 0D 03 02 00 00 00 00 07 [10:50:07]Write i2c OK [10:50:07]MH_I2C_Read... [10:50:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:50:07]Read from MH i2c: E2 [10:50:07]MH_I2C_Read... [10:50:07]Read from MH i2c: E2 0B 00 [10:50:07]MH_I2C_Read... [10:50:07]Read from MH i2c: E2 0B 00 84 08 00 BC 9E 46 BA 16 DB 00 8B 90 00 DE [10:50:07]RAPDU: BC 9E 46 BA 16 DB 00 8B 90 00 [10:50:07]wFMCommunicate OK [10:50:07]SAM_PROTO_SignData done [10:50:07]FM_MakeSignedData done [10:50:07]CreateOFDProtocolMessage [10:50:07]wFMCommunicate request_size=4 [10:50:07]MH_SAM_APDU [10:50:07]CAPDU: 80 11 00 00 [10:50:07]Write to MH i2c: E2 08 00 85 08 80 11 00 00 00 00 00 00 07 [10:50:07]Write i2c OK [10:50:07]MH_I2C_Read... [10:50:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:07]Read from MH i2c: E2 [10:50:07]MH_I2C_Read... [10:50:07]Read from MH i2c: E2 17 00 [10:50:07]MH_I2C_Read... [10:50:07]Read from MH i2c: E2 17 00 85 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 5D [10:50:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:50:07]wFMCommunicate OK [10:50:07]CreateOFDProtocolMessage done [10:50:07]OFDSenderStorePacket 164882 [10:50:07]StoreOFDPacket docnum=164882 [10:50:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 D7 24 04 01 B1 75 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 E6 B7 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E6 B7 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 49 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E6 B7 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 5E AD 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 12 84 02 00 35 04 06 00 D6 FE 0B 29 01 99 BC 9E 46 BA 16 DB 00 8B [10:50:07]CheckFolder [10:50:07]dirname=/storage/ofd_packets [10:50:07]CheckFolder done [10:50:07]ProducePacketName [10:50:07]name=ofd_packets/00164882 [10:50:07]NVStorageSaveData ofd_packets/00164882 [10:50:07]File name is /storage/ofd_packets/00164882 [10:50:07]Write 298 bytes [10:50:07]NVStorageSaveData done [10:50:07]OFDSenderStorePacket done [10:50:07]KKMCreateOFDPacket done [10:50:07]NVStorageSaveData kkm_last_timestamp [10:50:07]File name is /storage/kkm_last_timestamp [10:50:07]Write 4 bytes [10:50:07]NVStorageSaveData done [10:50:07]ExternCall_PrintAddStr [10:50:07]wPrintStart [10:50:07]Write to MH i2c: 01 00 00 86 08 8E [10:50:07]Write i2c OK [10:50:07]MH_I2C_Read... [10:50:07]Read from MH i2c: 01 [10:50:07]MH_I2C_Read... [10:50:07]Read from MH i2c: 01 07 00 [10:50:07]MH_I2C_Read... [10:50:07]Read from MH i2c: 01 07 00 86 08 00 00 00 00 00 FF 0F A3 [10:50:07]RasterBufferAndPrint [10:50:07]line Счет N : (1)458978 [10:50:07]line ИНН: 02508201610067 [10:50:07]line Контрольно-Кассовый Чек [10:50:07]line ПРОДАЖА [10:50:07]line ТРК (МРК, ГНК) : 21 [10:50:07]line Товар: 2710194210 [10:50:07]line ДТ-К-5 [10:50:07]line 25.000 * 71.26 [10:50:07]line = 1781.50 [10:50:07]line НДС 12% НСП 1% [10:50:07]line > о реализуемом товаре [10:50:07]line ИТОГО: 1781.50 [10:50:07]line НСП 1% : 15.76 [10:50:07]line НДС 12% : 189.19 [10:50:07]line Наличными: 0.00 [10:50:07]line Безнал.: 1781.50 [10:50:07]line Место: АЗС № 72 "Партнер Нефть" [10:50:07]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:50:07]line СНО: Общий режим [10:50:07]line Чек 80 14.07.2024 10:50 [10:50:07]line Смена: 447 ФФД: 1.0 [10:50:07]line ЗНМ: 0300000160 [10:50:07]line РНМ: 0000000000090829 [10:50:07]line Версия ККМ: 001 [10:50:07]line Платежная система: АКБ Кыргызстан [10:50:07]line ФМ: 0000000000874718 [10:50:07]line ФД: 164882 [10:50:07]line ФПД: 236386597274009 [10:50:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T105006&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164882&fm=236386597274009&tin=02508201610067®Number=0000000000090829&sum=178150 [10:50:07]OFD Sender: Processing packet 164882 [packets to send 104, broken 103] [10:50:07]ProducePacketName [10:50:07]name=ofd_packets/00164882 [10:50:07]OFD Sender: To server: pG, [10:50:07]CommunicateWithHost lk.salyk.kg:30040 [10:50:07]ConnectInit lk.salyk.kg [10:50:07]written 0, free lines is 4095 [10:50:07]Connected sock=10 [10:50:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 D7 24 04 01 B1 75 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 E6 B7 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E6 B7 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 49 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E6 B7 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 5E AD 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 12 84 02 00 35 04 06 00 D6 FE 0B 29 01 99 BC 9E 46 BA 16 DB 00 8B [10:50:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 98 01 47 00 95 DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 12 84 02 00 F4 03 04 00 EC 53 93 66 B6 04 01 00 00 CE D5 75 7C E2 04 6F 9D [10:50:07]CommunicateWithHost err = 0 [10:50:07]CheckOFDResponse [10:50:07]1017 (14) - 77093643461234 [10:50:07]1041 (16) - 0000000000874718 [10:50:07]1040 (4) - 164882 [10:50:07]1012 (4) - 14.07.2024 04:28 [10:50:07]1206 (1) - 0 [10:50:07]OFD Sender: Remove packet 164882 [10:50:07]ProducePacketName [10:50:07]name=ofd_packets/00164882 [10:50:07]NVStorageDeleteData [10:50:07]Write to MH i2c: 01 00 00 AF 08 B7 [10:50:07]Write i2c OK [10:50:07]MH_I2C_Read... [10:50:07]Read from MH i2c: 01 [10:50:07]MH_I2C_Read... [10:50:07]Read from MH i2c: 01 07 00 [10:50:07]MH_I2C_Read... [10:50:07]Read from MH i2c: 01 07 00 AF 08 00 00 00 00 00 07 0D D2 [10:50:07]RasterBufferAndPrint [10:50:07]line [10:50:07]line [10:50:07]line [10:50:07]line [10:50:07]line [10:50:07]written 0, free lines is 3341 [10:50:07]MH_Cut [10:50:07]Write to MH i2c: D1 01 00 B6 08 01 90 [10:50:07]Write i2c OK [10:50:07]MH_I2C_Read... [10:50:07]Read from MH i2c: D1 [10:50:07]MH_I2C_Read... [10:50:07]Read from MH i2c: D1 01 00 [10:50:07]MH_I2C_Read... [10:50:07]Read from MH i2c: D1 01 00 B6 08 00 8F [10:50:07]Write to MH i2c: 01 00 00 B7 08 BF [10:50:07]Write i2c OK [10:50:07]MH_I2C_Read... [10:50:08]OFD Sender: No OFD packet to send [10:50:08]*** Cut start [10:50:08]*** Partial cut [10:50:08]*** CUTSNS_PIN = 1 [10:50:08]*** CUTSNS_PIN = 0 [10:50:08]*** Brake cut motor [10:50:09]Read from MH i2c: 01 [10:50:09]MH_I2C_Read... [10:50:09]*** Stop cut motor [10:50:09]*** Cut end [10:50:09]Read from MH i2c: 01 07 00 [10:50:09]MH_I2C_Read... [10:50:09]Read from MH i2c: 01 07 00 B7 08 00 00 00 00 00 FF 0F D4 [10:50:09]process_action close_receipt done [10:50:09]requested_data is exist [10:50:09]produce_requested_data [10:50:09]requested_item fm.sn is exist - process it [10:50:09]wFMCommunicate request_size=4 [10:50:09]MH_SAM_APDU [10:50:09]CAPDU: 80 11 00 00 [10:50:09]Write to MH i2c: E2 08 00 B8 08 80 11 00 00 00 00 00 00 3A [10:50:09]Write i2c OK [10:50:09]MH_I2C_Read... [10:50:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:09]Read from MH i2c: E2 [10:50:09]MH_I2C_Read... [10:50:09]Read from MH i2c: E2 17 00 [10:50:09]MH_I2C_Read... [10:50:09]Read from MH i2c: E2 17 00 B8 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 90 [10:50:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:50:09]wFMCommunicate OK [10:50:09]requested_item fd.num is exist - process it [10:50:09]SAM_PROTO_GetFieldsCounters [10:50:09]wFMCommunicate request_size=4 [10:50:09]MH_SAM_APDU [10:50:09]CAPDU: 80 13 00 00 [10:50:09]Write to MH i2c: E2 08 00 B9 08 80 13 00 00 00 00 00 00 3D [10:50:09]Write i2c OK [10:50:09]MH_I2C_Read... [10:50:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:50:09]Read from MH i2c: E2 [10:50:09]MH_I2C_Read... [10:50:09]Read from MH i2c: E2 62 00 [10:50:09]MH_I2C_Read... [10:50:09]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 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 12 84 02 00 0E 04 04 00 BF 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 AC [10:50:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 12 84 02 00 0E 04 04 00 BF 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 [10:50:09]wFMCommunicate OK [10:50:09]SAM_PROTO_GetFieldsCounters done [10:50:09]requested_item shift.num is exist - process it [10:50:09]requested_item shift.opened is exist - process it [10:50:09]req_shift_opened [10:50:09]FM_GetShiftState [10:50:09]SAM_PROTO_GetShiftState [10:50:09]wFMCommunicate request_size=4 [10:50:09]MH_SAM_APDU [10:50:09]CAPDU: 80 13 01 00 [10:50:09]Write to MH i2c: E2 08 00 BA 08 80 13 01 00 00 00 00 00 3F [10:50:09]Write i2c OK [10:50:09]MH_I2C_Read... [10:50:09]Read from MH i2c: E2 [10:50:09]MH_I2C_Read... [10:50:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:09]Read from MH i2c: E2 0E 00 [10:50:09]MH_I2C_Read... [10:50:09]Read from MH i2c: E2 0E 00 BA 08 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 BF [10:50:09]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [10:50:09]wFMCommunicate OK [10:50:09]SAM_PROTO_GetShiftState done [10:50:09]FM_GetShiftState done [10:50:09]req_shift_opened done [10:50:09]requested_item shift.open_date is exist - process it [10:50:09]req_shift_open_date [10:50:09]req_shift_open_date done [10:50:09]produce_requested_data done [10:50:09]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164882,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [10:50:09]process_action_free close_receipt [10:50:09]json_value_free [10:50:09]json_value_free done [10:50:09]process_json_proto returns [10:50:09]Send response to host [10:50:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164882,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [10:50:09]free response buf [10:50:09]execute_script done [10:50:09]execute_script returns [10:50:09]free content buf [10:50:09]Sock 9.Close socket [10:50:09]Sock 9.Thread stoped [10:50:13]OFD Sender: No OFD packet to send [10:50:18]OFD Sender: No OFD packet to send [10:50:23]OFD Sender: No OFD packet to send [10:50:28]OFD Sender: No OFD packet to send [10:50:33]OFD Sender: No OFD packet to send [10:50:38]OFD Sender: No OFD packet to send [10:50:43]OFD Sender: No OFD packet to send [10:50:48]OFD Sender: No OFD packet to send [10:50:50]accept exits with 7 [10:50:50]New connection [10:50:50]New thread 3067616612 created [10:50:50]Thread 3067473252 joined [10:50:50]Waiting for new connection... [10:50:50] Sock 7.Parse request [10:50:50]Sock 7.Check first char [10:50:50]Sock 7.First char is OK [10:50:50]request: POST /json_proto HTTP/1.0 [10:50:50]Method: POST [10:50:50]URL: /json_proto [10:50:50]Method is POST - this is cgi request [10:50:50]url: /json_proto [10:50:50]query_string will be loaded in cgi processing [10:50:50]execute_cgi json_proto POST (null) [10:50:50]execute_cgi path=json_proto method=POST [10:50:50]POST find Content-Length [10:50:50]Host: 172.17.56.4:8080 [10:50:50]Content-Length: 677 [10:50:50]Content-Type: application/json [10:50:50] [10:50:50]POST finish read [10:50:50]Found Content-Length = 677 [10:50:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458980", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:50:50]execute_script... [10:50: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)458980", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:50:50]POST & json_proto [10:50:50]process_json_proto [10:50:50]json parsed OK: [10:50:50]protocol is kg_v1.0 [10:50:50]action value=close_receipt [10:50:50]process_action close_receipt [10:50:50]cmd_close_receipt [10:50:50]MH_GetDate [10:50:50]Write to MH i2c: F0 00 00 BB 08 B2 [10:50:50]Write i2c OK [10:50:50]MH_I2C_Read... [10:50:50]Read from MH i2c: F0 [10:50:50]MH_I2C_Read... [10:50:50]Read from MH i2c: F0 09 00 [10:50:50]MH_I2C_Read... [10:50:50]Read from MH i2c: F0 09 00 BB 08 00 8B AD 93 66 C9 DC B2 64 A7 [10:50:50]GetLastDocTimeStamp 1720954206 [10:50:50]current date 1720954251 [10:50:50]FM_GetShiftState [10:50:50]SAM_PROTO_GetShiftState [10:50:50]wFMCommunicate request_size=4 [10:50:50]MH_SAM_APDU [10:50:50]CAPDU: 80 13 01 00 [10:50:50]Write to MH i2c: E2 08 00 BC 08 80 13 01 00 00 00 00 00 41 [10:50:50]Write i2c OK [10:50:50]MH_I2C_Read... [10:50:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:50]Read from MH i2c: E2 [10:50:50]MH_I2C_Read... [10:50:50]Read from MH i2c: E2 0E 00 [10:50:50]MH_I2C_Read... [10:50:50]Read from MH i2c: E2 0E 00 BC 08 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 C1 [10:50:50]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [10:50:50]wFMCommunicate OK [10:50:50]SAM_PROTO_GetShiftState done [10:50:50]FM_GetShiftState done [10:50:50]opened in 1720917342 [10:50:50]opened+sec_in_day 1721003742 [10:50:50]quantity*price = 50008 [10:50:50]sum+1 = 50009 [10:50:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 81 14.07.2024 10:50 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164883 ФПД: 93763996241205 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T105051&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164883&fm=93763996241205&tin=02508201610067®Number=0000000000090829&sum=50000 [10:50:52]StoreToDocumentArchive [10:50:52]shift 447 fd 164883 [10:50:52]save to /storage/0447/doc_00164883 [10:50:52]save last doc name /storage/0447/doc_00164883 to /storage/kkm_last_doc_name [10:50:52]save OK [10:50:52]Clear old archive folders... [10:50:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:50:52]tlvbuf is 0074D130 [10:50:52]SAM_PROTO_ClearQueue [10:50:52]wFMCommunicate request_size=4 [10:50:52]MH_SAM_APDU [10:50:52]CAPDU: 80 09 00 00 [10:50:52]Write to MH i2c: E2 08 00 C9 08 80 09 00 00 00 00 00 00 43 [10:50:52]Write i2c OK [10:50:52]MH_I2C_Read... [10:50:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:50:52]Read from MH i2c: E2 [10:50:52]MH_I2C_Read... [10:50:52]Read from MH i2c: E2 03 00 [10:50:52]MH_I2C_Read... [10:50:52]Read from MH i2c: E2 03 00 C9 08 00 90 00 45 [10:50:52]RAPDU: 90 00 [10:50:52]wFMCommunicate OK [10:50:52]SAM_PROTO_ClearQueue done [10:50:52]KKMCreateOFDPacket [10:50:52]OFDProtocolAddRootSTLVToBuf [10:50:52]FM_MakeSignedData [10:50:52]FM_MakeSignedData [10:50:52]SAM_PROTO_SignData [10:50:52]wFMCommunicate request_size=4 [10:50:52]MH_SAM_APDU [10:50:52]CAPDU: 80 0D 01 02 [10:50:52]Write to MH i2c: E2 08 00 CA 08 80 0D 01 02 00 00 00 00 4B [10:50:52]Write i2c OK [10:50:52]MH_I2C_Read... [10:50:52]Read from MH i2c: E2 [10:50:52]MH_I2C_Read... [10:50:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:50:52]Read from MH i2c: E2 03 00 [10:50:52]MH_I2C_Read... [10:50:52]Read from MH i2c: E2 03 00 CA 08 00 90 00 46 [10:50:52]RAPDU: 90 00 [10:50:52]wFMCommunicate OK [10:50:52]wFMCommunicate request_size=255 [10:50:52]MH_SAM_APDU [10:50:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 51 00 00 00 F4 03 04 00 8B AD 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 13 84 02 00 35 04 06 00 55 [10:50:52]Write to MH i2c: E2 02 01 CB 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 51 00 00 00 F4 03 04 00 8B AD 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 13 84 02 00 35 04 06 00 55 00 00 F4 [10:50:52]Write i2c OK [10:50:52]MH_I2C_Read... [10:50:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:52]Read from MH i2c: E2 [10:50:52]MH_I2C_Read... [10:50:52]Read from MH i2c: E2 03 00 [10:50:52]MH_I2C_Read... [10:50:52]Read from MH i2c: E2 03 00 CB 08 00 90 00 47 [10:50:52]RAPDU: 90 00 [10:50:52]wFMCommunicate OK [10:50:52]wFMCommunicate request_size=10 [10:50:52]MH_SAM_APDU [10:50:52]CAPDU: 80 0D 02 02 05 47 21 B0 4D 35 [10:50:52]Write to MH i2c: E2 0D 00 CC 08 80 0D 02 02 05 00 47 21 B0 4D 35 00 00 F2 [10:50:52]Write i2c OK [10:50:52]MH_I2C_Read... [10:50:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:52]Read from MH i2c: E2 [10:50:52]MH_I2C_Read... [10:50:52]Read from MH i2c: E2 03 00 [10:50:52]MH_I2C_Read... [10:50:52]Read from MH i2c: E2 03 00 CC 08 00 90 00 48 [10:50:52]RAPDU: 90 00 [10:50:52]wFMCommunicate OK [10:50:52]wFMCommunicate request_size=4 [10:50:52]MH_SAM_APDU [10:50:52]CAPDU: 80 0D 03 02 [10:50:52]Write to MH i2c: E2 08 00 CD 08 80 0D 03 02 00 00 00 00 50 [10:50:52]Write i2c OK [10:50:52]MH_I2C_Read... [10:50:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:50:52]Read from MH i2c: E2 [10:50:52]MH_I2C_Read... [10:50:52]Read from MH i2c: E2 0B 00 [10:50:52]MH_I2C_Read... [10:50:52]Read from MH i2c: E2 0B 00 CD 08 00 6F DA 2E FA 7D 29 AE D4 90 00 EA [10:50:52]RAPDU: 6F DA 2E FA 7D 29 AE D4 90 00 [10:50:52]wFMCommunicate OK [10:50:52]SAM_PROTO_SignData done [10:50:52]FM_MakeSignedData done [10:50:52]CreateOFDProtocolMessage [10:50:52]wFMCommunicate request_size=4 [10:50:52]MH_SAM_APDU [10:50:52]CAPDU: 80 11 00 00 [10:50:52]Write to MH i2c: E2 08 00 CE 08 80 11 00 00 00 00 00 00 50 [10:50:52]Write i2c OK [10:50:52]MH_I2C_Read... [10:50:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:52]Read from MH i2c: E2 [10:50:52]MH_I2C_Read... [10:50:52]Read from MH i2c: E2 17 00 [10:50:52]MH_I2C_Read... [10:50:52]Read from MH i2c: E2 17 00 CE 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A6 [10:50:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:50:52]wFMCommunicate OK [10:50:52]CreateOFDProtocolMessage done [10:50:52]OFDSenderStorePacket 164883 [10:50:52]StoreOFDPacket docnum=164883 [10:50:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C3 50 07 01 A3 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 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 51 00 00 00 F4 03 04 00 8B AD 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 13 84 02 00 35 04 06 00 55 47 21 B0 4D 35 6F DA 2E FA 7D 29 AE D4 [10:50:52]CheckFolder [10:50:52]dirname=/storage/ofd_packets [10:50:52]CheckFolder done [10:50:52]ProducePacketName [10:50:52]name=ofd_packets/00164883 [10:50:52]NVStorageSaveData ofd_packets/00164883 [10:50:52]File name is /storage/ofd_packets/00164883 [10:50:52]Write 301 bytes [10:50:52]NVStorageSaveData done [10:50:52]OFDSenderStorePacket done [10:50:52]KKMCreateOFDPacket done [10:50:52]NVStorageSaveData kkm_last_timestamp [10:50:52]File name is /storage/kkm_last_timestamp [10:50:52]Write 4 bytes [10:50:52]NVStorageSaveData done [10:50:52]ExternCall_PrintAddStr [10:50:52]wPrintStart [10:50:52]Write to MH i2c: 01 00 00 CF 08 D7 [10:50:52]Write i2c OK [10:50:52]MH_I2C_Read... [10:50:52]Read from MH i2c: 01 [10:50:52]MH_I2C_Read... [10:50:52]Read from MH i2c: 01 07 00 [10:50:52]MH_I2C_Read... [10:50:52]Read from MH i2c: 01 07 00 CF 08 00 00 00 00 00 FF 0F EC [10:50:52]RasterBufferAndPrint [10:50:52]line Счет N : (1)458980 [10:50:52]line ИНН: 02508201610067 [10:50:52]line Контрольно-Кассовый Чек [10:50:52]line ПРОДАЖА [10:50:52]line ТРК (МРК, ГНК) : 12 [10:50:52]line Товар: 2710124130 [10:50:52]line Аи-92-К-5 [10:50:52]line 7.600 * 65.80 [10:50:52]line = 500.08 [10:50:52]line НДС 12% НСП 1% [10:50:52]line > о реализуемом товаре [10:50:52]line ОКРУГЛЕНИЕ: -0.08 [10:50:52]line ИТОГО: 500.00 [10:50:52]line Внесено: 500.00 [10:50:52]line СДАЧА: 0.00 [10:50:52]line НСП 1% : 4.42 [10:50:52]line НДС 12% : 53.11 [10:50:52]line Наличными: 500.00 [10:50:52]line Безнал.: 0.00 [10:50:52]line Место: АЗС № 72 "Партнер Нефть" [10:50:52]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:50:52]line СНО: Общий режим [10:50:52]line Чек 81 14.07.2024 10:50 [10:50:52]line Смена: 447 ФФД: 1.0 [10:50:52]line ЗНМ: 0300000160 [10:50:52]line РНМ: 0000000000090829 [10:50:52]line Версия ККМ: 001 [10:50:52]line ФМ: 0000000000874718 [10:50:52]line ФД: 164883 [10:50:52]line ФПД: 93763996241205 [10:50:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T105051&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164883&fm=93763996241205&tin=02508201610067®Number=0000000000090829&sum=50000 [10:50:52]OFD Sender: Processing packet 164883 [packets to send 104, broken 103] [10:50:52]ProducePacketName [10:50:52]name=ofd_packets/00164883 [10:50:52]OFD Sender: To server: pG, [10:50:52]CommunicateWithHost lk.salyk.kg:30040 [10:50:52]ConnectInit lk.salyk.kg [10:50:52]written 0, free lines is 4095 [10:50:52]Connected sock=10 [10:50:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C3 50 07 01 A3 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 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 51 00 00 00 F4 03 04 00 8B AD 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 13 84 02 00 35 04 06 00 55 47 21 B0 4D 35 6F DA 2E FA 7D 29 AE D4 [10:50:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 A7 C4 47 00 14 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 13 84 02 00 F4 03 04 00 19 54 93 66 B6 04 01 00 00 BE 15 8A AC 6B 14 A8 77 [10:50:53]CommunicateWithHost err = 0 [10:50:53]CheckOFDResponse [10:50:53]1017 (14) - 77093643461234 [10:50:53]1041 (16) - 0000000000874718 [10:50:53]1040 (4) - 164883 [10:50:53]1012 (4) - 14.07.2024 04:29 [10:50:53]1206 (1) - 0 [10:50:53]OFD Sender: Remove packet 164883 [10:50:53]ProducePacketName [10:50:53]name=ofd_packets/00164883 [10:50:53]NVStorageDeleteData [10:50:53]Write to MH i2c: 01 00 00 F9 08 01 [10:50:53]Write i2c OK [10:50:53]MH_I2C_Read... [10:50:53]Read from MH i2c: 01 [10:50:53]MH_I2C_Read... [10:50:53]Read from MH i2c: 01 07 00 [10:50:53]MH_I2C_Read... [10:50:53]Read from MH i2c: 01 07 00 F9 08 00 00 00 00 00 F7 0C 0B [10:50:53]RasterBufferAndPrint [10:50:53]line [10:50:53]line [10:50:53]line [10:50:53]line [10:50:53]line [10:50:53]written 0, free lines is 3324 [10:50:53]MH_Cut [10:50:53]Write to MH i2c: D1 01 00 00 09 01 DB [10:50:53]Write i2c OK [10:50:53]MH_I2C_Read... [10:50:53]Read from MH i2c: D1 [10:50:53]MH_I2C_Read... [10:50:53]Read from MH i2c: D1 01 00 [10:50:53]MH_I2C_Read... [10:50:53]Read from MH i2c: D1 01 00 00 09 00 DA [10:50:53]Write to MH i2c: 01 00 00 01 09 0A [10:50:53]Write i2c OK [10:50:53]MH_I2C_Read... [10:50:53]OFD Sender: No OFD packet to send [10:50:53]*** Cut start [10:50:53]*** Partial cut [10:50:53]*** CUTSNS_PIN = 1 [10:50:54]*** CUTSNS_PIN = 0 [10:50:54]*** Brake cut motor [10:50:54]Read from MH i2c: 01 [10:50:54]MH_I2C_Read... [10:50:54]*** Stop cut motor [10:50:54]*** Cut end [10:50:54]Read from MH i2c: 01 07 00 [10:50:54]MH_I2C_Read... [10:50:54]Read from MH i2c: 01 07 00 01 09 00 00 00 00 00 FF 0F 1F [10:50:54]process_action close_receipt done [10:50:54]requested_data is exist [10:50:54]produce_requested_data [10:50:54]requested_item fm.sn is exist - process it [10:50:54]wFMCommunicate request_size=4 [10:50:54]MH_SAM_APDU [10:50:54]CAPDU: 80 11 00 00 [10:50:54]Write to MH i2c: E2 08 00 02 09 80 11 00 00 00 00 00 00 85 [10:50:54]Write i2c OK [10:50:54]MH_I2C_Read... [10:50:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:54]Read from MH i2c: E2 [10:50:54]MH_I2C_Read... [10:50:54]Read from MH i2c: E2 17 00 [10:50:54]MH_I2C_Read... [10:50:54]Read from MH i2c: E2 17 00 02 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DB [10:50:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:50:54]wFMCommunicate OK [10:50:54]requested_item fd.num is exist - process it [10:50:54]SAM_PROTO_GetFieldsCounters [10:50:54]wFMCommunicate request_size=4 [10:50:54]MH_SAM_APDU [10:50:54]CAPDU: 80 13 00 00 [10:50:54]Write to MH i2c: E2 08 00 03 09 80 13 00 00 00 00 00 00 88 [10:50:54]Write i2c OK [10:50:54]MH_I2C_Read... [10:50:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:50:54]Read from MH i2c: E2 [10:50:54]MH_I2C_Read... [10:50:54]Read from MH i2c: E2 62 00 [10:50:54]MH_I2C_Read... [10:50:54]Read from MH i2c: E2 62 00 03 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 13 84 02 00 0E 04 04 00 BF 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 FB [10:50:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 13 84 02 00 0E 04 04 00 BF 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 [10:50:54]wFMCommunicate OK [10:50:54]SAM_PROTO_GetFieldsCounters done [10:50:54]requested_item shift.num is exist - process it [10:50:54]requested_item shift.opened is exist - process it [10:50:54]req_shift_opened [10:50:54]FM_GetShiftState [10:50:54]SAM_PROTO_GetShiftState [10:50:54]wFMCommunicate request_size=4 [10:50:54]MH_SAM_APDU [10:50:54]CAPDU: 80 13 01 00 [10:50:54]Write to MH i2c: E2 08 00 04 09 80 13 01 00 00 00 00 00 8A [10:50:54]Write i2c OK [10:50:54]MH_I2C_Read... [10:50:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:54]Read from MH i2c: E2 [10:50:54]MH_I2C_Read... [10:50:54]Read from MH i2c: E2 0E 00 [10:50:54]MH_I2C_Read... [10:50:54]Read from MH i2c: E2 0E 00 04 09 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 0A [10:50:54]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [10:50:54]wFMCommunicate OK [10:50:54]SAM_PROTO_GetShiftState done [10:50:54]FM_GetShiftState done [10:50:54]req_shift_opened done [10:50:54]requested_item shift.open_date is exist - process it [10:50:54]req_shift_open_date [10:50:54]req_shift_open_date done [10:50:54]produce_requested_data done [10:50:54]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164883,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [10:50:54]process_action_free close_receipt [10:50:54]json_value_free [10:50:54]json_value_free done [10:50:54]process_json_proto returns [10:50:54]Send response to host [10:50:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164883,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [10:50:54]free response buf [10:50:54]execute_script done [10:50:54]execute_script returns [10:50:54]free content buf [10:50:54]Sock 7.Close socket [10:50:54]Sock 7.Thread stoped [10:50:58]OFD Sender: No OFD packet to send [10:51:03]OFD Sender: No OFD packet to send [10:51:08]OFD Sender: No OFD packet to send [10:51:13]OFD Sender: No OFD packet to send [10:51:18]OFD Sender: No OFD packet to send [10:51:23]OFD Sender: No OFD packet to send [10:51:27]accept exits with 9 [10:51:27]New connection [10:51:27]New thread 3067473252 created [10:51:27]Thread 3067616612 joined [10:51:27]Waiting for new connection... [10:51:27] Sock 9.Parse request [10:51:27]Sock 9.Check first char [10:51:27]Sock 9.First char is OK [10:51:27]request: POST /json_proto HTTP/1.0 [10:51:27]Method: POST [10:51:27]URL: /json_proto [10:51:27]Method is POST - this is cgi request [10:51:27]url: /json_proto [10:51:27]query_string will be loaded in cgi processing [10:51:27]execute_cgi json_proto POST (null) [10:51:27]execute_cgi path=json_proto method=POST [10:51:27]POST find Content-Length [10:51:27]Host: 172.17.56.4:8080 [10:51:27]Content-Length: 840 [10:51:27]Content-Type: application/json [10:51:27] [10:51:27]POST finish read [10:51:27]Found Content-Length = 840 [10:51:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458979", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.26, "quantity" : 25.000, "sum" : 1781.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1781.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:51:27]execute_script... [10:51: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)458979", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.26, "quantity" : 25.000, "sum" : 1781.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1781.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:51:27]POST & json_proto [10:51:27]process_json_proto [10:51:27]json parsed OK: [10:51:27]protocol is kg_v1.0 [10:51:27]action value=close_receipt [10:51:27]process_action close_receipt [10:51:27]cmd_close_receipt [10:51:27]MH_GetDate [10:51:27]Write to MH i2c: F0 00 00 05 09 FD [10:51:27]Write i2c OK [10:51:27]MH_I2C_Read... [10:51:27]Read from MH i2c: F0 [10:51:27]MH_I2C_Read... [10:51:27]Read from MH i2c: F0 09 00 [10:51:27]MH_I2C_Read... [10:51:27]Read from MH i2c: F0 09 00 05 09 00 B0 AD 93 66 C9 DC B2 64 17 [10:51:27]GetLastDocTimeStamp 1720954251 [10:51:27]current date 1720954288 [10:51:27]FM_GetShiftState [10:51:27]SAM_PROTO_GetShiftState [10:51:27]wFMCommunicate request_size=4 [10:51:27]MH_SAM_APDU [10:51:27]CAPDU: 80 13 01 00 [10:51:27]Write to MH i2c: E2 08 00 06 09 80 13 01 00 00 00 00 00 8C [10:51:27]Write i2c OK [10:51:27]MH_I2C_Read... [10:51:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:51:27]Read from MH i2c: E2 [10:51:27]MH_I2C_Read... [10:51:27]Read from MH i2c: E2 0E 00 [10:51:27]MH_I2C_Read... [10:51:27]Read from MH i2c: E2 0E 00 06 09 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 0C [10:51:27]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [10:51:27]wFMCommunicate OK [10:51:27]SAM_PROTO_GetShiftState done [10:51:27]FM_GetShiftState done [10:51:27]opened in 1720917342 [10:51:27]opened+sec_in_day 1721003742 [10:51:27]quantity*price = 178150 [10:51:27]sum+1 = 178151 [10:51:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1781.50 НСП 1% : 15.76 НДС 12% : 189.19 Наличными: 0.00 Безнал.: 1781.50 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 82 14.07.2024 10:51 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874718 ФД: 164884 ФПД: 249176883411607 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T105128&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164884&fm=249176883411607&tin=02508201610067®Number=0000000000090829&sum=178150 [10:51:28]StoreToDocumentArchive [10:51:28]shift 447 fd 164884 [10:51:28]save to /storage/0447/doc_00164884 [10:51:28]save last doc name /storage/0447/doc_00164884 to /storage/kkm_last_doc_name [10:51:28]save OK [10:51:28]Clear old archive folders... [10:51:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:51:28]tlvbuf is 00751590 [10:51:28]SAM_PROTO_ClearQueue [10:51:28]wFMCommunicate request_size=4 [10:51:28]MH_SAM_APDU [10:51:28]CAPDU: 80 09 00 00 [10:51:28]Write to MH i2c: E2 08 00 13 09 80 09 00 00 00 00 00 00 8E [10:51:28]Write i2c OK [10:51:28]MH_I2C_Read... [10:51:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:51:28]Read from MH i2c: E2 [10:51:28]MH_I2C_Read... [10:51:28]Read from MH i2c: E2 03 00 [10:51:28]MH_I2C_Read... [10:51:28]Read from MH i2c: E2 03 00 13 09 00 90 00 90 [10:51:28]RAPDU: 90 00 [10:51:28]wFMCommunicate OK [10:51:28]SAM_PROTO_ClearQueue done [10:51:28]KKMCreateOFDPacket [10:51:28]OFDProtocolAddRootSTLVToBuf [10:51:28]FM_MakeSignedData [10:51:28]FM_MakeSignedData [10:51:28]SAM_PROTO_SignData [10:51:28]wFMCommunicate request_size=4 [10:51:28]MH_SAM_APDU [10:51:28]CAPDU: 80 0D 01 02 [10:51:28]Write to MH i2c: E2 08 00 14 09 80 0D 01 02 00 00 00 00 96 [10:51:28]Write i2c OK [10:51:28]MH_I2C_Read... [10:51:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:51:28]Read from MH i2c: E2 [10:51:28]MH_I2C_Read... [10:51:28]Read from MH i2c: E2 03 00 [10:51:28]MH_I2C_Read... [10:51:28]Read from MH i2c: E2 03 00 14 09 00 90 00 91 [10:51:28]RAPDU: 90 00 [10:51:28]wFMCommunicate OK [10:51:28]wFMCommunicate request_size=255 [10:51:28]MH_SAM_APDU [10:51: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 A8 61 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 E6 B7 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E6 B7 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 49 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E6 B7 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 B0 AD 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 14 84 02 00 35 04 06 00 E2 A0 03 9F [10:51:28]Write to MH i2c: E2 02 01 15 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 A8 61 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 E6 B7 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E6 B7 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 49 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E6 B7 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 B0 AD 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 14 84 02 00 35 04 06 00 E2 A0 03 9F 00 00 54 [10:51:28]Write i2c OK [10:51:28]MH_I2C_Read... [10:51:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:51:29]Read from MH i2c: E2 [10:51:29]MH_I2C_Read... [10:51:29]Read from MH i2c: E2 03 00 [10:51:29]MH_I2C_Read... [10:51:29]Read from MH i2c: E2 03 00 15 09 00 90 00 92 [10:51:29]RAPDU: 90 00 [10:51:29]wFMCommunicate OK [10:51:29]wFMCommunicate request_size=7 [10:51:29]MH_SAM_APDU [10:51:29]CAPDU: 80 0D 02 02 02 3A 97 [10:51:29]Write to MH i2c: E2 0A 00 16 09 80 0D 02 02 02 00 3A 97 00 00 6E [10:51:29]Write i2c OK [10:51:29]MH_I2C_Read... [10:51:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:51:29]Read from MH i2c: E2 [10:51:29]MH_I2C_Read... [10:51:29]Read from MH i2c: E2 03 00 [10:51:29]MH_I2C_Read... [10:51:29]Read from MH i2c: E2 03 00 16 09 00 90 00 93 [10:51:29]RAPDU: 90 00 [10:51:29]wFMCommunicate OK [10:51:29]wFMCommunicate request_size=4 [10:51:29]MH_SAM_APDU [10:51:29]CAPDU: 80 0D 03 02 [10:51:29]Write to MH i2c: E2 08 00 17 09 80 0D 03 02 00 00 00 00 9B [10:51:29]Write i2c OK [10:51:29]MH_I2C_Read... [10:51:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:51:29]Read from MH i2c: E2 [10:51:29]MH_I2C_Read... [10:51:29]Read from MH i2c: E2 0B 00 [10:51:29]MH_I2C_Read... [10:51:29]Read from MH i2c: E2 0B 00 17 09 00 23 CC DB 90 D3 70 A2 CF 90 00 AA [10:51:29]RAPDU: 23 CC DB 90 D3 70 A2 CF 90 00 [10:51:29]wFMCommunicate OK [10:51:29]SAM_PROTO_SignData done [10:51:29]FM_MakeSignedData done [10:51:29]CreateOFDProtocolMessage [10:51:29]wFMCommunicate request_size=4 [10:51:29]MH_SAM_APDU [10:51:29]CAPDU: 80 11 00 00 [10:51:29]Write to MH i2c: E2 08 00 18 09 80 11 00 00 00 00 00 00 9B [10:51:29]Write i2c OK [10:51:29]MH_I2C_Read... [10:51:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:51:29]Read from MH i2c: E2 [10:51:29]MH_I2C_Read... [10:51:29]Read from MH i2c: E2 17 00 [10:51:29]MH_I2C_Read... [10:51:29]Read from MH i2c: E2 17 00 18 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F1 [10:51:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:51:29]wFMCommunicate OK [10:51:29]CreateOFDProtocolMessage done [10:51:29]OFDSenderStorePacket 164884 [10:51:29]StoreOFDPacket docnum=164884 [10:51:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 CB 1A 04 01 7C F0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 E6 B7 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E6 B7 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 49 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E6 B7 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 B0 AD 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 14 84 02 00 35 04 06 00 E2 A0 03 9F 3A 97 23 CC DB 90 D3 70 A2 CF [10:51:29]CheckFolder [10:51:29]dirname=/storage/ofd_packets [10:51:29]CheckFolder done [10:51:29]ProducePacketName [10:51:29]name=ofd_packets/00164884 [10:51:29]NVStorageSaveData ofd_packets/00164884 [10:51:29]File name is /storage/ofd_packets/00164884 [10:51:29]Write 298 bytes [10:51:29]NVStorageSaveData done [10:51:29]OFDSenderStorePacket done [10:51:29]KKMCreateOFDPacket done [10:51:29]NVStorageSaveData kkm_last_timestamp [10:51:29]File name is /storage/kkm_last_timestamp [10:51:29]Write 4 bytes [10:51:29]NVStorageSaveData done [10:51:29]ExternCall_PrintAddStr [10:51:29]wPrintStart [10:51:29]Write to MH i2c: 01 00 00 19 09 22 [10:51:29]Write i2c OK [10:51:29]MH_I2C_Read... [10:51:29]Read from MH i2c: 01 [10:51:29]MH_I2C_Read... [10:51:29]Read from MH i2c: 01 07 00 [10:51:29]MH_I2C_Read... [10:51:29]Read from MH i2c: 01 07 00 19 09 00 00 00 00 00 FF 0F 37 [10:51:29]RasterBufferAndPrint [10:51:29]line Счет N : (1)458979 [10:51:29]line ИНН: 02508201610067 [10:51:29]line Контрольно-Кассовый Чек [10:51:29]line ПРОДАЖА [10:51:29]line ТРК (МРК, ГНК) : 21 [10:51:29]line Товар: 2710194210 [10:51:29]line ДТ-К-5 [10:51:29]line 25.000 * 71.26 [10:51:29]line = 1781.50 [10:51:29]line НДС 12% НСП 1% [10:51:29]line > о реализуемом товаре [10:51:29]line ИТОГО: 1781.50 [10:51:29]line НСП 1% : 15.76 [10:51:29]line НДС 12% : 189.19 [10:51:29]line Наличными: 0.00 [10:51:29]line Безнал.: 1781.50 [10:51:29]line Место: АЗС № 72 "Партнер Нефть" [10:51:29]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:51:29]line СНО: Общий режим [10:51:29]line Чек 82 14.07.2024 10:51 [10:51:29]line Смена: 447 ФФД: 1.0 [10:51:29]line ЗНМ: 0300000160 [10:51:29]line РНМ: 0000000000090829 [10:51:29]line Версия ККМ: 001 [10:51:29]line Платежная система: АКБ Кыргызстан [10:51:29]line ФМ: 0000000000874718 [10:51:29]line ФД: 164884 [10:51:29]line ФПД: 249176883411607 [10:51:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T105128&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164884&fm=249176883411607&tin=02508201610067®Number=0000000000090829&sum=178150 [10:51:29]OFD Sender: Processing packet 164884 [packets to send 104, broken 103] [10:51:29]ProducePacketName [10:51:29]name=ofd_packets/00164884 [10:51:29]OFD Sender: To server: pG, [10:51:29]CommunicateWithHost lk.salyk.kg:30040 [10:51:29]ConnectInit lk.salyk.kg [10:51:29]written 0, free lines is 4095 [10:51:29]Connected sock=10 [10:51:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 CB 1A 04 01 7C F0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 E6 B7 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E6 B7 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 49 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E6 B7 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 B0 AD 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 14 84 02 00 35 04 06 00 E2 A0 03 9F 3A 97 23 CC DB 90 D3 70 A2 CF [10:51:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 6E 8F 47 00 64 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 14 84 02 00 F4 03 04 00 3E 54 93 66 B6 04 01 00 00 3B 74 DC 3E 2D B9 82 D1 [10:51:29]CommunicateWithHost err = 0 [10:51:29]CheckOFDResponse [10:51:29]1017 (14) - 77093643461234 [10:51:29]1041 (16) - 0000000000874718 [10:51:29]1040 (4) - 164884 [10:51:29]1012 (4) - 14.07.2024 04:29 [10:51:29]1206 (1) - 0 [10:51:29]OFD Sender: Remove packet 164884 [10:51:29]ProducePacketName [10:51:29]name=ofd_packets/00164884 [10:51:29]NVStorageDeleteData [10:51:30]Write to MH i2c: 01 00 00 42 09 4B [10:51:30]Write i2c OK [10:51:30]MH_I2C_Read... [10:51:30]Read from MH i2c: 01 [10:51:30]MH_I2C_Read... [10:51:30]Read from MH i2c: 01 07 00 [10:51:30]MH_I2C_Read... [10:51:30]Read from MH i2c: 01 07 00 42 09 00 00 00 00 00 02 0D 61 [10:51:30]RasterBufferAndPrint [10:51:30]line [10:51:30]line [10:51:30]line [10:51:30]line [10:51:30]line [10:51:30]written 0, free lines is 3336 [10:51:30]MH_Cut [10:51:30]Write to MH i2c: D1 01 00 49 09 01 24 [10:51:30]Write i2c OK [10:51:30]MH_I2C_Read... [10:51:30]Read from MH i2c: D1 [10:51:30]MH_I2C_Read... [10:51:30]Read from MH i2c: D1 01 00 [10:51:30]MH_I2C_Read... [10:51:30]Read from MH i2c: D1 01 00 49 09 00 23 [10:51:30]Write to MH i2c: 01 00 00 4A 09 53 [10:51:30]Write i2c OK [10:51:30]MH_I2C_Read... [10:51:30]OFD Sender: No OFD packet to send [10:51:30]*** Cut start [10:51:30]*** Partial cut [10:51:30]*** CUTSNS_PIN = 1 [10:51:30]*** CUTSNS_PIN = 0 [10:51:30]*** Brake cut motor [10:51:31]Read from MH i2c: 01 [10:51:31]MH_I2C_Read... [10:51:31]*** Stop cut motor [10:51:31]*** Cut end [10:51:31]Read from MH i2c: 01 07 00 [10:51:31]MH_I2C_Read... [10:51:31]Read from MH i2c: 01 07 00 4A 09 00 00 00 00 00 FF 0F 68 [10:51:31]process_action close_receipt done [10:51:31]requested_data is exist [10:51:31]produce_requested_data [10:51:31]requested_item fm.sn is exist - process it [10:51:31]wFMCommunicate request_size=4 [10:51:31]MH_SAM_APDU [10:51:31]CAPDU: 80 11 00 00 [10:51:31]Write to MH i2c: E2 08 00 4B 09 80 11 00 00 00 00 00 00 CE [10:51:31]Write i2c OK [10:51:31]MH_I2C_Read... [10:51:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:51:31]Read from MH i2c: E2 [10:51:31]MH_I2C_Read... [10:51:31]Read from MH i2c: E2 17 00 [10:51:31]MH_I2C_Read... [10:51:31]Read from MH i2c: E2 17 00 4B 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 24 [10:51:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:51:31]wFMCommunicate OK [10:51:31]requested_item fd.num is exist - process it [10:51:31]SAM_PROTO_GetFieldsCounters [10:51:31]wFMCommunicate request_size=4 [10:51:31]MH_SAM_APDU [10:51:31]CAPDU: 80 13 00 00 [10:51:31]Write to MH i2c: E2 08 00 4C 09 80 13 00 00 00 00 00 00 D1 [10:51:31]Write i2c OK [10:51:31]MH_I2C_Read... [10:51:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:51:31]Read from MH i2c: E2 [10:51:31]MH_I2C_Read... [10:51:31]Read from MH i2c: E2 62 00 [10:51:31]MH_I2C_Read... [10:51:31]Read from MH i2c: E2 62 00 4C 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 14 84 02 00 0E 04 04 00 BF 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 48 [10:51:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 14 84 02 00 0E 04 04 00 BF 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 [10:51:31]wFMCommunicate OK [10:51:31]SAM_PROTO_GetFieldsCounters done [10:51:31]requested_item shift.num is exist - process it [10:51:31]requested_item shift.opened is exist - process it [10:51:31]req_shift_opened [10:51:31]FM_GetShiftState [10:51:31]SAM_PROTO_GetShiftState [10:51:31]wFMCommunicate request_size=4 [10:51:31]MH_SAM_APDU [10:51:31]CAPDU: 80 13 01 00 [10:51:31]Write to MH i2c: E2 08 00 4D 09 80 13 01 00 00 00 00 00 D3 [10:51:31]Write i2c OK [10:51:31]MH_I2C_Read... [10:51:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:51:31]Read from MH i2c: E2 [10:51:31]MH_I2C_Read... [10:51:31]Read from MH i2c: E2 0E 00 [10:51:31]MH_I2C_Read... [10:51:31]Read from MH i2c: E2 0E 00 4D 09 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 53 [10:51:31]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [10:51:31]wFMCommunicate OK [10:51:31]SAM_PROTO_GetShiftState done [10:51:31]FM_GetShiftState done [10:51:31]req_shift_opened done [10:51:31]requested_item shift.open_date is exist - process it [10:51:31]req_shift_open_date [10:51:31]req_shift_open_date done [10:51:31]produce_requested_data done [10:51:31]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164884,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [10:51:31]process_action_free close_receipt [10:51:31]json_value_free [10:51:31]json_value_free done [10:51:31]process_json_proto returns [10:51:31]Send response to host [10:51:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164884,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [10:51:31]free response buf [10:51:31]execute_script done [10:51:31]execute_script returns [10:51:31]free content buf [10:51:31]Sock 9.Close socket [10:51:31]Sock 9.Thread stoped [10:51:35]OFD Sender: No OFD packet to send [10:51:40]OFD Sender: No OFD packet to send [10:51:45]OFD Sender: No OFD packet to send [10:51:50]OFD Sender: No OFD packet to send [10:51:55]OFD Sender: No OFD packet to send [10:52:00]OFD Sender: No OFD packet to send [10:52:05]OFD Sender: No OFD packet to send [10:52:10]OFD Sender: No OFD packet to send [10:52:15]OFD Sender: No OFD packet to send [10:52:20]OFD Sender: No OFD packet to send [10:52:25]OFD Sender: No OFD packet to send [10:52:30]OFD Sender: No OFD packet to send [10:52:35]OFD Sender: No OFD packet to send [10:52:40]OFD Sender: No OFD packet to send [10:52:45]OFD Sender: No OFD packet to send [10:52:50]OFD Sender: No OFD packet to send [10:52:55]OFD Sender: No OFD packet to send [10:53:00]OFD Sender: No OFD packet to send [10:53:05]OFD Sender: No OFD packet to send [10:53:10]OFD Sender: No OFD packet to send [10:53:15]OFD Sender: No OFD packet to send [10:53:20]OFD Sender: No OFD packet to send [10:53:25]OFD Sender: No OFD packet to send [10:53:30]OFD Sender: No OFD packet to send [10:53:35]OFD Sender: No OFD packet to send [10:53:40]OFD Sender: No OFD packet to send [10:53:45]OFD Sender: No OFD packet to send [10:53:50]OFD Sender: No OFD packet to send [10:53:55]OFD Sender: No OFD packet to send [10:54:00]OFD Sender: No OFD packet to send [10:54:05]OFD Sender: No OFD packet to send [10:54:10]OFD Sender: No OFD packet to send [10:54:15]OFD Sender: No OFD packet to send [10:54:20]OFD Sender: No OFD packet to send [10:54:25]OFD Sender: No OFD packet to send [10:54:30]OFD Sender: No OFD packet to send [10:54:35]OFD Sender: No OFD packet to send [10:54:40]OFD Sender: No OFD packet to send [10:54:45]OFD Sender: No OFD packet to send [10:54:50]OFD Sender: No OFD packet to send [10:54:55]OFD Sender: No OFD packet to send [10:55:00]OFD Sender: No OFD packet to send [10:55:05]OFD Sender: No OFD packet to send [10:55:10]OFD Sender: No OFD packet to send [10:55:15]OFD Sender: No OFD packet to send [10:55:20]OFD Sender: No OFD packet to send [10:55:25]OFD Sender: No OFD packet to send [10:55:30]OFD Sender: No OFD packet to send [10:55:35]OFD Sender: No OFD packet to send [10:55:40]OFD Sender: No OFD packet to send [10:55:45]OFD Sender: No OFD packet to send [10:55:50]OFD Sender: No OFD packet to send [10:55:55]OFD Sender: No OFD packet to send [10:56:00]OFD Sender: No OFD packet to send [10:56:05]OFD Sender: No OFD packet to send [10:56:08]accept exits with 7 [10:56:08]New connection [10:56:08]New thread 3067616612 created [10:56:08]Thread 3067473252 joined [10:56:08]Waiting for new connection... [10:56:08] Sock 7.Parse request [10:56:08]Sock 7.Check first char [10:56:08]Sock 7.First char is OK [10:56:08]request: POST /json_proto HTTP/1.0 [10:56:08]Method: POST [10:56:08]URL: /json_proto [10:56:08]Method is POST - this is cgi request [10:56:08]url: /json_proto [10:56:08]query_string will be loaded in cgi processing [10:56:08]execute_cgi json_proto POST (null) [10:56:08]execute_cgi path=json_proto method=POST [10:56:08]POST find Content-Length [10:56:08]Host: 172.17.56.4:8080 [10:56:08]Content-Length: 677 [10:56:08]Content-Type: application/json [10:56:08] [10:56:08]POST finish read [10:56:08]Found Content-Length = 677 [10:56:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458981", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:56:08]execute_script... [10:56: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)458981", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:56:08]POST & json_proto [10:56:08]process_json_proto [10:56:08]json parsed OK: [10:56:08]protocol is kg_v1.0 [10:56:08]action value=close_receipt [10:56:08]process_action close_receipt [10:56:08]cmd_close_receipt [10:56:08]MH_GetDate [10:56:08]Write to MH i2c: F0 00 00 4E 09 46 [10:56:08]Write i2c OK [10:56:08]MH_I2C_Read... [10:56:08]Read from MH i2c: F0 [10:56:08]MH_I2C_Read... [10:56:08]Read from MH i2c: F0 09 00 [10:56:08]MH_I2C_Read... [10:56:08]Read from MH i2c: F0 09 00 4E 09 00 C9 AE 93 66 C9 DC B2 64 7A [10:56:08]GetLastDocTimeStamp 1720954288 [10:56:08]current date 1720954569 [10:56:08]FM_GetShiftState [10:56:08]SAM_PROTO_GetShiftState [10:56:08]wFMCommunicate request_size=4 [10:56:08]MH_SAM_APDU [10:56:08]CAPDU: 80 13 01 00 [10:56:08]Write to MH i2c: E2 08 00 4F 09 80 13 01 00 00 00 00 00 D5 [10:56:08]Write i2c OK [10:56:08]MH_I2C_Read... [10:56:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:56:08]Read from MH i2c: E2 [10:56:08]MH_I2C_Read... [10:56:08]Read from MH i2c: E2 0E 00 [10:56:08]MH_I2C_Read... [10:56:08]Read from MH i2c: E2 0E 00 4F 09 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 55 [10:56:08]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [10:56:08]wFMCommunicate OK [10:56:08]SAM_PROTO_GetShiftState done [10:56:08]FM_GetShiftState done [10:56:08]opened in 1720917342 [10:56:08]opened+sec_in_day 1721003742 [10:56:08]quantity*price = 60009 [10:56:08]sum+1 = 60011 [10:56:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 83 14.07.2024 10:56 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164885 ФПД: 126219732850865 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T105609&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164885&fm=126219732850865&tin=02508201610067®Number=0000000000090829&sum=60000 [10:56:09]StoreToDocumentArchive [10:56:09]shift 447 fd 164885 [10:56:09]save to /storage/0447/doc_00164885 [10:56:09]save last doc name /storage/0447/doc_00164885 to /storage/kkm_last_doc_name [10:56:09]save OK [10:56:09]Clear old archive folders... [10:56:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:56:09]tlvbuf is 00782860 [10:56:09]SAM_PROTO_ClearQueue [10:56:09]wFMCommunicate request_size=4 [10:56:09]MH_SAM_APDU [10:56:09]CAPDU: 80 09 00 00 [10:56:09]Write to MH i2c: E2 08 00 5C 09 80 09 00 00 00 00 00 00 D7 [10:56:09]Write i2c OK [10:56:09]MH_I2C_Read... [10:56:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:56:09]Read from MH i2c: E2 [10:56:09]MH_I2C_Read... [10:56:09]Read from MH i2c: E2 03 00 [10:56:09]MH_I2C_Read... [10:56:09]Read from MH i2c: E2 03 00 5C 09 00 90 00 D9 [10:56:09]RAPDU: 90 00 [10:56:09]wFMCommunicate OK [10:56:09]SAM_PROTO_ClearQueue done [10:56:09]KKMCreateOFDPacket [10:56:09]OFDProtocolAddRootSTLVToBuf [10:56:09]FM_MakeSignedData [10:56:09]FM_MakeSignedData [10:56:09]SAM_PROTO_SignData [10:56:09]wFMCommunicate request_size=4 [10:56:09]MH_SAM_APDU [10:56:09]CAPDU: 80 0D 01 02 [10:56:09]Write to MH i2c: E2 08 00 5D 09 80 0D 01 02 00 00 00 00 DF [10:56:09]Write i2c OK [10:56:09]MH_I2C_Read... [10:56:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:56:10]Read from MH i2c: E2 [10:56:10]MH_I2C_Read... [10:56:10]Read from MH i2c: E2 03 00 [10:56:10]MH_I2C_Read... [10:56:10]Read from MH i2c: E2 03 00 5D 09 00 90 00 DA [10:56:10]RAPDU: 90 00 [10:56:10]wFMCommunicate OK [10:56:10]wFMCommunicate request_size=255 [10:56:10]MH_SAM_APDU [10:56:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A 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 53 00 00 00 F4 03 04 00 C9 AE 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 15 84 02 00 35 04 06 00 72 [10:56:10]Write to MH i2c: E2 02 01 5E 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A 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 53 00 00 00 F4 03 04 00 C9 AE 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 15 84 02 00 35 04 06 00 72 00 00 09 [10:56:10]Write i2c OK [10:56:10]MH_I2C_Read... [10:56:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:56:10]Read from MH i2c: E2 [10:56:10]MH_I2C_Read... [10:56:10]Read from MH i2c: E2 03 00 [10:56:10]MH_I2C_Read... [10:56:10]Read from MH i2c: E2 03 00 5E 09 00 90 00 DB [10:56:10]RAPDU: 90 00 [10:56:10]wFMCommunicate OK [10:56:10]wFMCommunicate request_size=10 [10:56:10]MH_SAM_APDU [10:56:10]CAPDU: 80 0D 02 02 05 CB D2 57 18 B1 [10:56:10]Write to MH i2c: E2 0D 00 5F 09 80 0D 02 02 05 00 CB D2 57 18 B1 00 00 A9 [10:56:10]Write i2c OK [10:56:10]MH_I2C_Read... [10:56:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:56:10]Read from MH i2c: E2 [10:56:10]MH_I2C_Read... [10:56:10]Read from MH i2c: E2 03 00 [10:56:10]MH_I2C_Read... [10:56:10]Read from MH i2c: E2 03 00 5F 09 00 90 00 DC [10:56:10]RAPDU: 90 00 [10:56:10]wFMCommunicate OK [10:56:10]wFMCommunicate request_size=4 [10:56:10]MH_SAM_APDU [10:56:10]CAPDU: 80 0D 03 02 [10:56:10]Write to MH i2c: E2 08 00 60 09 80 0D 03 02 00 00 00 00 E4 [10:56:10]Write i2c OK [10:56:10]MH_I2C_Read... [10:56:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:56:10]Read from MH i2c: E2 [10:56:10]MH_I2C_Read... [10:56:10]Read from MH i2c: E2 0B 00 [10:56:10]MH_I2C_Read... [10:56:10]Read from MH i2c: E2 0B 00 60 09 00 43 28 E4 5E 2E 78 BA DF 90 00 D1 [10:56:10]RAPDU: 43 28 E4 5E 2E 78 BA DF 90 00 [10:56:10]wFMCommunicate OK [10:56:10]SAM_PROTO_SignData done [10:56:10]FM_MakeSignedData done [10:56:10]CreateOFDProtocolMessage [10:56:10]wFMCommunicate request_size=4 [10:56:10]MH_SAM_APDU [10:56:10]CAPDU: 80 11 00 00 [10:56:10]Write to MH i2c: E2 08 00 61 09 80 11 00 00 00 00 00 00 E4 [10:56:10]Write i2c OK [10:56:10]MH_I2C_Read... [10:56:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:56:10]Read from MH i2c: E2 [10:56:10]MH_I2C_Read... [10:56:10]Read from MH i2c: E2 17 00 [10:56:10]MH_I2C_Read... [10:56:10]Read from MH i2c: E2 17 00 61 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 3A [10:56:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:56:10]wFMCommunicate OK [10:56:10]CreateOFDProtocolMessage done [10:56:10]OFDSenderStorePacket 164885 [10:56:10]StoreOFDPacket docnum=164885 [10:56:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 40 CB 07 01 B0 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A 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 53 00 00 00 F4 03 04 00 C9 AE 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 15 84 02 00 35 04 06 00 72 CB D2 57 18 B1 43 28 E4 5E 2E 78 BA DF [10:56:10]CheckFolder [10:56:10]dirname=/storage/ofd_packets [10:56:10]CheckFolder done [10:56:10]ProducePacketName [10:56:10]name=ofd_packets/00164885 [10:56:10]NVStorageSaveData ofd_packets/00164885 [10:56:10]File name is /storage/ofd_packets/00164885 [10:56:10]Write 301 bytes [10:56:10]NVStorageSaveData done [10:56:10]OFDSenderStorePacket done [10:56:10]KKMCreateOFDPacket done [10:56:10]NVStorageSaveData kkm_last_timestamp [10:56:10]File name is /storage/kkm_last_timestamp [10:56:10]Write 4 bytes [10:56:10]NVStorageSaveData done [10:56:10]OFD Sender: Processing packet 164885 [packets to send 104, broken 103] [10:56:10]ProducePacketName [10:56:10]name=ofd_packets/00164885 [10:56:10]OFD Sender: To server: pG, [10:56:10]CommunicateWithHost lk.salyk.kg:30040 [10:56:10]ConnectInit lk.salyk.kg [10:56:10]ExternCall_PrintAddStr [10:56:10]wPrintStart [10:56:10]Write to MH i2c: 01 00 00 62 09 6B [10:56:10]Write i2c OK [10:56:10]MH_I2C_Read... [10:56:10]Read from MH i2c: 01 [10:56:10]MH_I2C_Read... [10:56:10]Read from MH i2c: 01 07 00 [10:56:10]MH_I2C_Read... [10:56:10]Read from MH i2c: 01 07 00 62 09 00 00 00 00 00 FF 0F 80 [10:56:10]RasterBufferAndPrint [10:56:10]line Счет N : (1)458981 [10:56:10]line ИНН: 02508201610067 [10:56:10]line Контрольно-Кассовый Чек [10:56:10]line ПРОДАЖА [10:56:10]line ТРК (МРК, ГНК) : 22 [10:56:10]line Товар: 2710124130 [10:56:10]line Аи-92-К-5 [10:56:10]line 9.120 * 65.80 [10:56:10]line = 600.10 [10:56:10]line НДС 12% НСП 1% [10:56:10]line > о реализуемом товаре [10:56:10]line ОКРУГЛЕНИЕ: -0.10 [10:56:10]line ИТОГО: 600.00 [10:56:10]line Внесено: 600.00 [10:56:10]line СДАЧА: 0.00 [10:56:10]line НСП 1% : 5.31 [10:56:10]line НДС 12% : 63.73 [10:56:10]line Наличными: 600.00 [10:56:10]line Безнал.: 0.00 [10:56:10]line Место: АЗС № 72 "Партнер Нефть" [10:56:10]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:56:10]line СНО: Общий режим [10:56:10]line Чек 83 14.07.2024 10:56 [10:56:10]line Смена: 447 ФФД: 1.0 [10:56:10]line ЗНМ: 0300000160 [10:56:10]line РНМ: 0000000000090829 [10:56:10]line Версия ККМ: 001 [10:56:10]line ФМ: 0000000000874718 [10:56:10]line ФД: 164885 [10:56:10]line ФПД: 126219732850865 [10:56:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T105609&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164885&fm=126219732850865&tin=02508201610067®Number=0000000000090829&sum=60000 [10:56:10]Connected sock=11 [10:56:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 40 CB 07 01 B0 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A 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 53 00 00 00 F4 03 04 00 C9 AE 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 15 84 02 00 35 04 06 00 72 CB D2 57 18 B1 43 28 E4 5E 2E 78 BA DF [10:56:10]written 0, free lines is 4095 [10:56:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 3C 17 47 00 10 01 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 15 84 02 00 F4 03 04 00 57 55 93 66 B6 04 01 00 00 BA 59 91 09 BD 85 4E C5 [10:56:11]CommunicateWithHost err = 0 [10:56:11]CheckOFDResponse [10:56:11]1017 (14) - 77093643461234 [10:56:11]1041 (16) - 0000000000874718 [10:56:11]1040 (4) - 164885 [10:56:11]1012 (4) - 14.07.2024 04:34 [10:56:11]1206 (1) - 0 [10:56:11]OFD Sender: Remove packet 164885 [10:56:11]ProducePacketName [10:56:11]name=ofd_packets/00164885 [10:56:11]NVStorageDeleteData [10:56:11]Write to MH i2c: 01 00 00 8C 09 95 [10:56:11]Write i2c OK [10:56:11]MH_I2C_Read... [10:56:11]Read from MH i2c: 01 [10:56:11]MH_I2C_Read... [10:56:11]Read from MH i2c: 01 07 00 [10:56:11]MH_I2C_Read... [10:56:11]Read from MH i2c: 01 07 00 8C 09 00 00 00 00 00 F3 0C 9B [10:56:11]RasterBufferAndPrint [10:56:11]line [10:56:11]line [10:56:11]line [10:56:11]line [10:56:11]line [10:56:11]written 0, free lines is 3321 [10:56:11]MH_Cut [10:56:11]Write to MH i2c: D1 01 00 93 09 01 6E [10:56:11]Write i2c OK [10:56:11]MH_I2C_Read... [10:56:11]Read from MH i2c: D1 [10:56:11]MH_I2C_Read... [10:56:11]Read from MH i2c: D1 01 00 [10:56:11]MH_I2C_Read... [10:56:11]Read from MH i2c: D1 01 00 93 09 00 6D [10:56:11]Write to MH i2c: 01 00 00 94 09 9D [10:56:11]Write i2c OK [10:56:11]MH_I2C_Read... [10:56:11]OFD Sender: No OFD packet to send [10:56:11]*** Cut start [10:56:11]*** Partial cut [10:56:11]*** CUTSNS_PIN = 1 [10:56:11]*** CUTSNS_PIN = 0 [10:56:12]*** Brake cut motor [10:56:12]Read from MH i2c: 01 [10:56:12]MH_I2C_Read... [10:56:12]*** Stop cut motor [10:56:12]*** Cut end [10:56:12]Read from MH i2c: 01 07 00 [10:56:12]MH_I2C_Read... [10:56:12]Read from MH i2c: 01 07 00 94 09 00 00 00 00 00 FF 0F B2 [10:56:12]process_action close_receipt done [10:56:12]requested_data is exist [10:56:12]produce_requested_data [10:56:12]requested_item fm.sn is exist - process it [10:56:12]wFMCommunicate request_size=4 [10:56:12]MH_SAM_APDU [10:56:12]CAPDU: 80 11 00 00 [10:56:12]Write to MH i2c: E2 08 00 95 09 80 11 00 00 00 00 00 00 18 [10:56:12]Write i2c OK [10:56:12]MH_I2C_Read... [10:56:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:56:12]Read from MH i2c: E2 [10:56:12]MH_I2C_Read... [10:56:12]Read from MH i2c: E2 17 00 [10:56:12]MH_I2C_Read... [10:56:12]Read from MH i2c: E2 17 00 95 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 6E [10:56:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:56:12]wFMCommunicate OK [10:56:12]requested_item fd.num is exist - process it [10:56:12]SAM_PROTO_GetFieldsCounters [10:56:12]wFMCommunicate request_size=4 [10:56:12]MH_SAM_APDU [10:56:12]CAPDU: 80 13 00 00 [10:56:12]Write to MH i2c: E2 08 00 96 09 80 13 00 00 00 00 00 00 1B [10:56:12]Write i2c OK [10:56:12]MH_I2C_Read... [10:56:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:56:12]Read from MH i2c: E2 [10:56:12]MH_I2C_Read... [10:56:12]Read from MH i2c: E2 62 00 [10:56:12]MH_I2C_Read... [10:56:12]Read from MH i2c: E2 62 00 96 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 15 84 02 00 0E 04 04 00 BF 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 96 [10:56:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 15 84 02 00 0E 04 04 00 BF 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 [10:56:12]wFMCommunicate OK [10:56:12]SAM_PROTO_GetFieldsCounters done [10:56:12]requested_item shift.num is exist - process it [10:56:12]requested_item shift.opened is exist - process it [10:56:12]req_shift_opened [10:56:12]FM_GetShiftState [10:56:12]SAM_PROTO_GetShiftState [10:56:12]wFMCommunicate request_size=4 [10:56:12]MH_SAM_APDU [10:56:12]CAPDU: 80 13 01 00 [10:56:12]Write to MH i2c: E2 08 00 97 09 80 13 01 00 00 00 00 00 1D [10:56:12]Write i2c OK [10:56:12]MH_I2C_Read... [10:56:12]Read from MH i2c: E2 [10:56:12]MH_I2C_Read... [10:56:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:56:12]Read from MH i2c: E2 0E 00 [10:56:12]MH_I2C_Read... [10:56:12]Read from MH i2c: E2 0E 00 97 09 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 9D [10:56:12]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [10:56:12]wFMCommunicate OK [10:56:12]SAM_PROTO_GetShiftState done [10:56:12]FM_GetShiftState done [10:56:12]req_shift_opened done [10:56:12]requested_item shift.open_date is exist - process it [10:56:12]req_shift_open_date [10:56:12]req_shift_open_date done [10:56:12]produce_requested_data done [10:56:12]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164885,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [10:56:12]process_action_free close_receipt [10:56:12]json_value_free [10:56:12]json_value_free done [10:56:12]process_json_proto returns [10:56:12]Send response to host [10:56:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164885,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [10:56:12]free response buf [10:56:12]execute_script done [10:56:12]execute_script returns [10:56:12]free content buf [10:56:12]Sock 7.Close socket [10:56:12]Sock 7.Thread stoped [10:56:16]OFD Sender: No OFD packet to send [10:56:21]OFD Sender: No OFD packet to send [10:56:26]OFD Sender: No OFD packet to send [10:56:31]OFD Sender: No OFD packet to send [10:56:36]OFD Sender: No OFD packet to send [10:56:41]OFD Sender: No OFD packet to send [10:56:46]OFD Sender: No OFD packet to send [10:56:51]OFD Sender: No OFD packet to send [10:56:56]OFD Sender: No OFD packet to send [10:57:01]OFD Sender: No OFD packet to send [10:57:06]OFD Sender: No OFD packet to send [10:57:11]OFD Sender: No OFD packet to send [10:57:16]OFD Sender: No OFD packet to send [10:57:21]OFD Sender: No OFD packet to send [10:57:26]OFD Sender: No OFD packet to send [10:57:29]accept exits with 9 [10:57:29]New connection [10:57:29]New thread 3067473252 created [10:57:29]Thread 3067616612 joined [10:57:29]Waiting for new connection... [10:57:29] Sock 9.Parse request [10:57:29]Sock 9.Check first char [10:57:29]Sock 9.First char is OK [10:57:29]request: POST /json_proto HTTP/1.0 [10:57:29]Method: POST [10:57:29]URL: /json_proto [10:57:29]Method is POST - this is cgi request [10:57:29]url: /json_proto [10:57:29]query_string will be loaded in cgi processing [10:57:29]execute_cgi json_proto POST (null) [10:57:29]execute_cgi path=json_proto method=POST [10:57:29]POST find Content-Length [10:57:29]Host: 172.17.56.4:8080 [10:57:29]Content-Length: 840 [10:57:29]Content-Type: application/json [10:57:29] [10:57:29]POST finish read [10:57:29]Found Content-Length = 840 [10:57:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458982", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.26, "quantity" : 20.000, "sum" : 1425.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1425.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:57:29]execute_script... [10:57: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)458982", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.26, "quantity" : 20.000, "sum" : 1425.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1425.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:57:29]POST & json_proto [10:57:29]process_json_proto [10:57:29]json parsed OK: [10:57:29]protocol is kg_v1.0 [10:57:29]action value=close_receipt [10:57:29]process_action close_receipt [10:57:29]cmd_close_receipt [10:57:29]MH_GetDate [10:57:29]Write to MH i2c: F0 00 00 98 09 90 [10:57:29]Write i2c OK [10:57:29]MH_I2C_Read... [10:57:29]Read from MH i2c: F0 [10:57:29]MH_I2C_Read... [10:57:29]Read from MH i2c: F0 09 00 [10:57:29]MH_I2C_Read... [10:57:29]Read from MH i2c: F0 09 00 98 09 00 1A AF 93 66 C9 DC B2 64 16 [10:57:29]GetLastDocTimeStamp 1720954569 [10:57:29]current date 1720954650 [10:57:29]FM_GetShiftState [10:57:29]SAM_PROTO_GetShiftState [10:57:29]wFMCommunicate request_size=4 [10:57:29]MH_SAM_APDU [10:57:29]CAPDU: 80 13 01 00 [10:57:29]Write to MH i2c: E2 08 00 99 09 80 13 01 00 00 00 00 00 1F [10:57:29]Write i2c OK [10:57:29]MH_I2C_Read... [10:57:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:57:29]Read from MH i2c: E2 [10:57:29]MH_I2C_Read... [10:57:29]Read from MH i2c: E2 0E 00 [10:57:29]MH_I2C_Read... [10:57:29]Read from MH i2c: E2 0E 00 99 09 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 9F [10:57:29]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [10:57:29]wFMCommunicate OK [10:57:29]SAM_PROTO_GetShiftState done [10:57:29]FM_GetShiftState done [10:57:29]opened in 1720917342 [10:57:29]opened+sec_in_day 1721003742 [10:57:29]quantity*price = 142520 [10:57:29]sum+1 = 142521 [10:57:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1425.20 НСП 1% : 12.61 НДС 12% : 151.35 Наличными: 0.00 Безнал.: 1425.20 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 84 14.07.2024 10:57 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874718 ФД: 164886 ФПД: 8061166589998 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T105730&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164886&fm=8061166589998&tin=02508201610067®Number=0000000000090829&sum=142520 [10:57:30]StoreToDocumentArchive [10:57:30]shift 447 fd 164886 [10:57:30]save to /storage/0447/doc_00164886 [10:57:30]save last doc name /storage/0447/doc_00164886 to /storage/kkm_last_doc_name [10:57:30]save OK [10:57:30]Clear old archive folders... [10:57:30]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:57:30]tlvbuf is 007820E0 [10:57:30]SAM_PROTO_ClearQueue [10:57:30]wFMCommunicate request_size=4 [10:57:30]MH_SAM_APDU [10:57:30]CAPDU: 80 09 00 00 [10:57:30]Write to MH i2c: E2 08 00 A6 09 80 09 00 00 00 00 00 00 21 [10:57:30]Write i2c OK [10:57:30]MH_I2C_Read... [10:57:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:57:31]Read from MH i2c: E2 [10:57:31]MH_I2C_Read... [10:57:31]Read from MH i2c: E2 03 00 [10:57:31]MH_I2C_Read... [10:57:31]Read from MH i2c: E2 03 00 A6 09 00 90 00 23 [10:57:31]RAPDU: 90 00 [10:57:31]wFMCommunicate OK [10:57:31]SAM_PROTO_ClearQueue done [10:57:31]KKMCreateOFDPacket [10:57:31]OFDProtocolAddRootSTLVToBuf [10:57:31]FM_MakeSignedData [10:57:31]FM_MakeSignedData [10:57:31]SAM_PROTO_SignData [10:57:31]wFMCommunicate request_size=4 [10:57:31]MH_SAM_APDU [10:57:31]CAPDU: 80 0D 01 02 [10:57:31]Write to MH i2c: E2 08 00 A7 09 80 0D 01 02 00 00 00 00 29 [10:57:31]Write i2c OK [10:57:31]MH_I2C_Read... [10:57:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:57:31]Read from MH i2c: E2 [10:57:31]MH_I2C_Read... [10:57:31]Read from MH i2c: E2 03 00 [10:57:31]MH_I2C_Read... [10:57:31]Read from MH i2c: E2 03 00 A7 09 00 90 00 24 [10:57:31]RAPDU: 90 00 [10:57:31]wFMCommunicate OK [10:57:31]wFMCommunicate request_size=255 [10:57:31]MH_SAM_APDU [10:57:31]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 B8 2C 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 2C 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 3B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 2C 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 1A AF 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 16 84 02 00 35 04 06 00 07 54 E2 F8 [10:57:31]Write to MH i2c: E2 02 01 A8 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 20 4E 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 B8 2C 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 2C 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 3B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 2C 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 1A AF 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 16 84 02 00 35 04 06 00 07 54 E2 F8 00 00 8F [10:57:31]Write i2c OK [10:57:31]MH_I2C_Read... [10:57:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:57:31]Read from MH i2c: E2 [10:57:31]MH_I2C_Read... [10:57:31]Read from MH i2c: E2 03 00 [10:57:31]MH_I2C_Read... [10:57:31]Read from MH i2c: E2 03 00 A8 09 00 90 00 25 [10:57:31]RAPDU: 90 00 [10:57:31]wFMCommunicate OK [10:57:31]wFMCommunicate request_size=7 [10:57:31]MH_SAM_APDU [10:57:31]CAPDU: 80 0D 02 02 02 98 2E [10:57:31]Write to MH i2c: E2 0A 00 A9 09 80 0D 02 02 02 00 98 2E 00 00 F6 [10:57:31]Write i2c OK [10:57:31]MH_I2C_Read... [10:57:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:57:31]Read from MH i2c: E2 [10:57:31]MH_I2C_Read... [10:57:31]Read from MH i2c: E2 03 00 [10:57:31]MH_I2C_Read... [10:57:31]Read from MH i2c: E2 03 00 A9 09 00 90 00 26 [10:57:31]RAPDU: 90 00 [10:57:31]wFMCommunicate OK [10:57:31]wFMCommunicate request_size=4 [10:57:31]MH_SAM_APDU [10:57:31]CAPDU: 80 0D 03 02 [10:57:31]Write to MH i2c: E2 08 00 AA 09 80 0D 03 02 00 00 00 00 2E [10:57:31]Write i2c OK [10:57:31]MH_I2C_Read... [10:57:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:57:31]Read from MH i2c: E2 [10:57:31]MH_I2C_Read... [10:57:31]Read from MH i2c: E2 0B 00 [10:57:31]MH_I2C_Read... [10:57:31]Read from MH i2c: E2 0B 00 AA 09 00 FD DC FC 1E B1 B3 77 6D 90 00 6A [10:57:31]RAPDU: FD DC FC 1E B1 B3 77 6D 90 00 [10:57:31]wFMCommunicate OK [10:57:31]SAM_PROTO_SignData done [10:57:31]FM_MakeSignedData done [10:57:31]CreateOFDProtocolMessage [10:57:31]wFMCommunicate request_size=4 [10:57:31]MH_SAM_APDU [10:57:31]CAPDU: 80 11 00 00 [10:57:31]Write to MH i2c: E2 08 00 AB 09 80 11 00 00 00 00 00 00 2E [10:57:31]Write i2c OK [10:57:31]MH_I2C_Read... [10:57:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:57:31]Read from MH i2c: E2 [10:57:31]MH_I2C_Read... [10:57:31]Read from MH i2c: E2 17 00 [10:57:31]MH_I2C_Read... [10:57:31]Read from MH i2c: E2 17 00 AB 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 84 [10:57:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:57:31]wFMCommunicate OK [10:57:31]CreateOFDProtocolMessage done [10:57:31]OFDSenderStorePacket 164886 [10:57:31]StoreOFDPacket docnum=164886 [10:57:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 BC 86 04 01 4C 53 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 B8 2C 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 2C 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 3B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 2C 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 1A AF 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 16 84 02 00 35 04 06 00 07 54 E2 F8 98 2E FD DC FC 1E B1 B3 77 6D [10:57:31]CheckFolder [10:57:31]dirname=/storage/ofd_packets [10:57:31]CheckFolder done [10:57:31]ProducePacketName [10:57:31]name=ofd_packets/00164886 [10:57:31]NVStorageSaveData ofd_packets/00164886 [10:57:31]File name is /storage/ofd_packets/00164886 [10:57:31]Write 298 bytes [10:57:31]NVStorageSaveData done [10:57:31]OFDSenderStorePacket done [10:57:31]KKMCreateOFDPacket done [10:57:31]NVStorageSaveData kkm_last_timestamp [10:57:31]File name is /storage/kkm_last_timestamp [10:57:31]Write 4 bytes [10:57:31]NVStorageSaveData done [10:57:31]ExternCall_PrintAddStr [10:57:31]wPrintStart [10:57:31]Write to MH i2c: 01 00 00 AC 09 B5 [10:57:31]Write i2c OK [10:57:31]MH_I2C_Read... [10:57:31]Read from MH i2c: 01 [10:57:31]MH_I2C_Read... [10:57:31]Read from MH i2c: 01 07 00 [10:57:31]MH_I2C_Read... [10:57:31]Read from MH i2c: 01 07 00 AC 09 00 00 00 00 00 FF 0F CA [10:57:31]RasterBufferAndPrint [10:57:31]line Счет N : (1)458982 [10:57:31]line ИНН: 02508201610067 [10:57:31]line Контрольно-Кассовый Чек [10:57:31]line ПРОДАЖА [10:57:31]line ТРК (МРК, ГНК) : 11 [10:57:31]line Товар: 2710194210 [10:57:31]line ДТ-К-5 [10:57:31]line 20.000 * 71.26 [10:57:31]line = 1425.20 [10:57:31]line НДС 12% НСП 1% [10:57:31]line > о реализуемом товаре [10:57:31]line ИТОГО: 1425.20 [10:57:31]line НСП 1% : 12.61 [10:57:31]line НДС 12% : 151.35 [10:57:31]line Наличными: 0.00 [10:57:31]line Безнал.: 1425.20 [10:57:31]line Место: АЗС № 72 "Партнер Нефть" [10:57:31]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:57:31]line СНО: Общий режим [10:57:31]line Чек 84 14.07.2024 10:57 [10:57:31]line Смена: 447 ФФД: 1.0 [10:57:31]line ЗНМ: 0300000160 [10:57:31]line РНМ: 0000000000090829 [10:57:31]line Версия ККМ: 001 [10:57:31]line Платежная система: АКБ Кыргызстан [10:57:31]line ФМ: 0000000000874718 [10:57:31]line ФД: 164886 [10:57:31]line ФПД: 8061166589998 [10:57:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T105730&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164886&fm=8061166589998&tin=02508201610067®Number=0000000000090829&sum=142520 [10:57:31]OFD Sender: Processing packet 164886 [packets to send 104, broken 103] [10:57:31]ProducePacketName [10:57:31]name=ofd_packets/00164886 [10:57:31]OFD Sender: To server: pG, [10:57:31]CommunicateWithHost lk.salyk.kg:30040 [10:57:31]ConnectInit lk.salyk.kg [10:57:31]written 0, free lines is 4095 [10:57:31]Connected sock=10 [10:57:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 BC 86 04 01 4C 53 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 B8 2C 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 2C 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 3B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 2C 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 1A AF 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 16 84 02 00 35 04 06 00 07 54 E2 F8 98 2E FD DC FC 1E B1 B3 77 6D [10:57:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 73 AE 47 00 59 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 16 84 02 00 F4 03 04 00 A8 55 93 66 B6 04 01 00 00 20 29 05 B0 16 FC 69 47 [10:57:32]CommunicateWithHost err = 0 [10:57:32]CheckOFDResponse [10:57:32]1017 (14) - 77093643461234 [10:57:32]1041 (16) - 0000000000874718 [10:57:32]1040 (4) - 164886 [10:57:32]1012 (4) - 14.07.2024 04:35 [10:57:32]1206 (1) - 0 [10:57:32]OFD Sender: Remove packet 164886 [10:57:32]ProducePacketName [10:57:32]name=ofd_packets/00164886 [10:57:32]NVStorageDeleteData [10:57:32]Write to MH i2c: 01 00 00 D5 09 DE [10:57:32]Write i2c OK [10:57:32]MH_I2C_Read... [10:57:32]Read from MH i2c: 01 [10:57:32]MH_I2C_Read... [10:57:32]Read from MH i2c: 01 07 00 [10:57:32]MH_I2C_Read... [10:57:32]Read from MH i2c: 01 07 00 D5 09 00 00 00 00 00 05 0D F7 [10:57:32]RasterBufferAndPrint [10:57:32]line [10:57:32]line [10:57:32]line [10:57:32]line [10:57:32]line [10:57:32]written 0, free lines is 3340 [10:57:32]MH_Cut [10:57:32]Write to MH i2c: D1 01 00 DC 09 01 B7 [10:57:32]Write i2c OK [10:57:32]MH_I2C_Read... [10:57:32]Read from MH i2c: D1 [10:57:32]MH_I2C_Read... [10:57:32]Read from MH i2c: D1 01 00 [10:57:32]MH_I2C_Read... [10:57:32]Read from MH i2c: D1 01 00 DC 09 00 B6 [10:57:32]Write to MH i2c: 01 00 00 DD 09 E6 [10:57:32]Write i2c OK [10:57:32]MH_I2C_Read... [10:57:32]OFD Sender: No OFD packet to send [10:57:32]*** Cut start [10:57:32]*** Partial cut [10:57:32]*** CUTSNS_PIN = 1 [10:57:32]*** CUTSNS_PIN = 0 [10:57:33]*** Brake cut motor [10:57:33]Read from MH i2c: 01 [10:57:33]MH_I2C_Read... [10:57:33]*** Stop cut motor [10:57:33]*** Cut end [10:57:33]Read from MH i2c: 01 07 00 [10:57:33]MH_I2C_Read... [10:57:33]Read from MH i2c: 01 07 00 DD 09 00 00 00 00 00 FF 0F FB [10:57:33]process_action close_receipt done [10:57:33]requested_data is exist [10:57:33]produce_requested_data [10:57:33]requested_item fm.sn is exist - process it [10:57:33]wFMCommunicate request_size=4 [10:57:33]MH_SAM_APDU [10:57:33]CAPDU: 80 11 00 00 [10:57:33]Write to MH i2c: E2 08 00 DE 09 80 11 00 00 00 00 00 00 61 [10:57:33]Write i2c OK [10:57:33]MH_I2C_Read... [10:57:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:57:33]Read from MH i2c: E2 [10:57:33]MH_I2C_Read... [10:57:33]Read from MH i2c: E2 17 00 [10:57:33]MH_I2C_Read... [10:57:33]Read from MH i2c: E2 17 00 DE 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B7 [10:57:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:57:33]wFMCommunicate OK [10:57:33]requested_item fd.num is exist - process it [10:57:33]SAM_PROTO_GetFieldsCounters [10:57:33]wFMCommunicate request_size=4 [10:57:33]MH_SAM_APDU [10:57:33]CAPDU: 80 13 00 00 [10:57:33]Write to MH i2c: E2 08 00 DF 09 80 13 00 00 00 00 00 00 64 [10:57:33]Write i2c OK [10:57:33]MH_I2C_Read... [10:57:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:57:33]Read from MH i2c: E2 [10:57:33]MH_I2C_Read... [10:57:33]Read from MH i2c: E2 62 00 [10:57:33]MH_I2C_Read... [10:57:33]Read from MH i2c: E2 62 00 DF 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 16 84 02 00 0E 04 04 00 BF 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 E3 [10:57:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 16 84 02 00 0E 04 04 00 BF 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 [10:57:33]wFMCommunicate OK [10:57:33]SAM_PROTO_GetFieldsCounters done [10:57:33]requested_item shift.num is exist - process it [10:57:33]requested_item shift.opened is exist - process it [10:57:33]req_shift_opened [10:57:33]FM_GetShiftState [10:57:33]SAM_PROTO_GetShiftState [10:57:33]wFMCommunicate request_size=4 [10:57:33]MH_SAM_APDU [10:57:33]CAPDU: 80 13 01 00 [10:57:33]Write to MH i2c: E2 08 00 E0 09 80 13 01 00 00 00 00 00 66 [10:57:33]Write i2c OK [10:57:33]MH_I2C_Read... [10:57:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:57:33]Read from MH i2c: E2 [10:57:33]MH_I2C_Read... [10:57:33]Read from MH i2c: E2 0E 00 [10:57:33]MH_I2C_Read... [10:57:33]Read from MH i2c: E2 0E 00 E0 09 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 E6 [10:57:33]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [10:57:33]wFMCommunicate OK [10:57:33]SAM_PROTO_GetShiftState done [10:57:33]FM_GetShiftState done [10:57:33]req_shift_opened done [10:57:33]requested_item shift.open_date is exist - process it [10:57:33]req_shift_open_date [10:57:33]req_shift_open_date done [10:57:33]produce_requested_data done [10:57:33]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164886,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [10:57:33]process_action_free close_receipt [10:57:33]json_value_free [10:57:33]json_value_free done [10:57:33]process_json_proto returns [10:57:33]Send response to host [10:57:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164886,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [10:57:33]free response buf [10:57:33]execute_script done [10:57:33]execute_script returns [10:57:33]free content buf [10:57:33]Sock 9.Close socket [10:57:33]Sock 9.Thread stoped [10:57:37]OFD Sender: No OFD packet to send [10:57:42]OFD Sender: No OFD packet to send [10:57:47]OFD Sender: No OFD packet to send [10:57:52]OFD Sender: No OFD packet to send [10:57:57]OFD Sender: No OFD packet to send [10:58:02]OFD Sender: No OFD packet to send [10:58:05]accept exits with 7 [10:58:05]New connection [10:58:05]New thread 3067616612 created [10:58:05]Thread 3067473252 joined [10:58:05]Waiting for new connection... [10:58:05] Sock 7.Parse request [10:58:05]Sock 7.Check first char [10:58:05]Sock 7.First char is OK [10:58:05]request: POST /json_proto HTTP/1.0 [10:58:05]Method: POST [10:58:05]URL: /json_proto [10:58:05]Method is POST - this is cgi request [10:58:05]url: /json_proto [10:58:05]query_string will be loaded in cgi processing [10:58:05]execute_cgi json_proto POST (null) [10:58:05]execute_cgi path=json_proto method=POST [10:58:05]POST find Content-Length [10:58:05]Host: 172.17.56.4:8080 [10:58:05]Content-Length: 674 [10:58:05]Content-Type: application/json [10:58:05] [10:58:05]POST finish read [10:58:05]Found Content-Length = 674 [10:58:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458983", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 5.000, "sum" : 359.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 359.00, "total" : 359.00, "payments": [ { "type": 0, "sum" : 359.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:58:05]execute_script... [10:58: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)458983", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 5.000, "sum" : 359.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 359.00, "total" : 359.00, "payments": [ { "type": 0, "sum" : 359.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:58:05]POST & json_proto [10:58:05]process_json_proto [10:58:05]json parsed OK: [10:58:05]protocol is kg_v1.0 [10:58:05]action value=close_receipt [10:58:05]process_action close_receipt [10:58:05]cmd_close_receipt [10:58:05]MH_GetDate [10:58:05]Write to MH i2c: F0 00 00 E1 09 D9 [10:58:05]Write i2c OK [10:58:05]MH_I2C_Read... [10:58:05]Read from MH i2c: F0 [10:58:05]MH_I2C_Read... [10:58:05]Read from MH i2c: F0 09 00 [10:58:05]MH_I2C_Read... [10:58:05]Read from MH i2c: F0 09 00 E1 09 00 3E AF 93 66 C9 DC B2 64 83 [10:58:05]GetLastDocTimeStamp 1720954650 [10:58:05]current date 1720954686 [10:58:05]FM_GetShiftState [10:58:05]SAM_PROTO_GetShiftState [10:58:05]wFMCommunicate request_size=4 [10:58:05]MH_SAM_APDU [10:58:05]CAPDU: 80 13 01 00 [10:58:05]Write to MH i2c: E2 08 00 E2 09 80 13 01 00 00 00 00 00 68 [10:58:05]Write i2c OK [10:58:05]MH_I2C_Read... [10:58:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:05]Read from MH i2c: E2 [10:58:05]MH_I2C_Read... [10:58:05]Read from MH i2c: E2 0E 00 [10:58:05]MH_I2C_Read... [10:58:05]Read from MH i2c: E2 0E 00 E2 09 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 E8 [10:58:05]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [10:58:05]wFMCommunicate OK [10:58:05]SAM_PROTO_GetShiftState done [10:58:05]FM_GetShiftState done [10:58:05]opened in 1720917342 [10:58:05]opened+sec_in_day 1721003742 [10:58:05]quantity*price = 35950 [10:58:05]sum+1 = 35951 [10:58:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 359.00 Внесено: 359.00 СДАЧА: 0.00 НСП 1% : 3.18 НДС 12% : 38.18 Наличными: 359.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 85 14.07.2024 10:58 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164887 ФПД: 222065962188959 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T105806&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164887&fm=222065962188959&tin=02508201610067®Number=0000000000090829&sum=35900 [10:58:07]StoreToDocumentArchive [10:58:07]shift 447 fd 164887 [10:58:07]save to /storage/0447/doc_00164887 [10:58:07]save last doc name /storage/0447/doc_00164887 to /storage/kkm_last_doc_name [10:58:07]save OK [10:58:07]Clear old archive folders... [10:58:07]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:58:07]tlvbuf is 00738860 [10:58:07]SAM_PROTO_ClearQueue [10:58:07]wFMCommunicate request_size=4 [10:58:07]MH_SAM_APDU [10:58:07]CAPDU: 80 09 00 00 [10:58:07]Write to MH i2c: E2 08 00 EF 09 80 09 00 00 00 00 00 00 6A [10:58:07]Write i2c OK [10:58:07]MH_I2C_Read... [10:58:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:58:07]Read from MH i2c: E2 [10:58:07]MH_I2C_Read... [10:58:07]Read from MH i2c: E2 03 00 [10:58:07]MH_I2C_Read... [10:58:07]Read from MH i2c: E2 03 00 EF 09 00 90 00 6C [10:58:07]RAPDU: 90 00 [10:58:07]wFMCommunicate OK [10:58:07]SAM_PROTO_ClearQueue done [10:58:07]KKMCreateOFDPacket [10:58:07]OFDProtocolAddRootSTLVToBuf [10:58:07]FM_MakeSignedData [10:58:07]FM_MakeSignedData [10:58:07]SAM_PROTO_SignData [10:58:07]wFMCommunicate request_size=4 [10:58:07]MH_SAM_APDU [10:58:07]CAPDU: 80 0D 01 02 [10:58:07]Write to MH i2c: E2 08 00 F0 09 80 0D 01 02 00 00 00 00 72 [10:58:07]Write i2c OK [10:58:07]MH_I2C_Read... [10:58:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:58:07]Read from MH i2c: E2 [10:58:07]MH_I2C_Read... [10:58:07]Read from MH i2c: E2 03 00 [10:58:07]MH_I2C_Read... [10:58:07]Read from MH i2c: E2 03 00 F0 09 00 90 00 6D [10:58:07]RAPDU: 90 00 [10:58:07]wFMCommunicate OK [10:58:07]wFMCommunicate request_size=255 [10:58:07]MH_SAM_APDU [10:58: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 88 13 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 6E 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 0E 00 00 00 00 07 04 06 00 3C 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 3E AF 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 17 84 02 00 35 04 06 00 C9 F7 C2 CB [10:58:07]Write to MH i2c: E2 02 01 F1 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 88 13 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 6E 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 0E 00 00 00 00 07 04 06 00 3C 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 3E AF 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 17 84 02 00 35 04 06 00 C9 F7 C2 CB 00 00 48 [10:58:07]Write i2c OK [10:58:07]MH_I2C_Read... [10:58:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:07]Read from MH i2c: E2 [10:58:07]MH_I2C_Read... [10:58:07]Read from MH i2c: E2 03 00 [10:58:07]MH_I2C_Read... [10:58:07]Read from MH i2c: E2 03 00 F1 09 00 90 00 6E [10:58:07]RAPDU: 90 00 [10:58:07]wFMCommunicate OK [10:58:07]wFMCommunicate request_size=7 [10:58:07]MH_SAM_APDU [10:58:07]CAPDU: 80 0D 02 02 02 00 9F [10:58:07]Write to MH i2c: E2 0A 00 F2 09 80 0D 02 02 02 00 00 9F 00 00 18 [10:58:07]Write i2c OK [10:58:07]MH_I2C_Read... [10:58:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:07]Read from MH i2c: E2 [10:58:07]MH_I2C_Read... [10:58:07]Read from MH i2c: E2 03 00 [10:58:07]MH_I2C_Read... [10:58:07]Read from MH i2c: E2 03 00 F2 09 00 90 00 6F [10:58:07]RAPDU: 90 00 [10:58:07]wFMCommunicate OK [10:58:07]wFMCommunicate request_size=4 [10:58:07]MH_SAM_APDU [10:58:07]CAPDU: 80 0D 03 02 [10:58:07]Write to MH i2c: E2 08 00 F3 09 80 0D 03 02 00 00 00 00 77 [10:58:07]Write i2c OK [10:58:07]MH_I2C_Read... [10:58:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:58:07]Read from MH i2c: E2 [10:58:07]MH_I2C_Read... [10:58:07]Read from MH i2c: E2 0B 00 [10:58:07]MH_I2C_Read... [10:58:07]Read from MH i2c: E2 0B 00 F3 09 00 BC C4 10 4A CD 45 A2 B1 90 00 B7 [10:58:07]RAPDU: BC C4 10 4A CD 45 A2 B1 90 00 [10:58:07]wFMCommunicate OK [10:58:07]SAM_PROTO_SignData done [10:58:07]FM_MakeSignedData done [10:58:07]CreateOFDProtocolMessage [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 F4 09 80 11 00 00 00 00 00 00 77 [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 F4 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 CD [10:58:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:58:07]wFMCommunicate OK [10:58:07]CreateOFDProtocolMessage done [10:58:07]OFDSenderStorePacket 164887 [10:58:07]StoreOFDPacket docnum=164887 [10:58:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 DA B6 04 01 87 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 88 13 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 6E 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 0E 00 00 00 00 07 04 06 00 3C 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 3E AF 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 17 84 02 00 35 04 06 00 C9 F7 C2 CB 00 9F BC C4 10 4A CD 45 A2 B1 [10:58:07]CheckFolder [10:58:07]dirname=/storage/ofd_packets [10:58:07]CheckFolder done [10:58:07]ProducePacketName [10:58:07]name=ofd_packets/00164887 [10:58:07]NVStorageSaveData ofd_packets/00164887 [10:58:07]File name is /storage/ofd_packets/00164887 [10:58:07]Write 298 bytes [10:58:07]NVStorageSaveData done [10:58:07]OFDSenderStorePacket done [10:58:07]KKMCreateOFDPacket done [10:58:07]NVStorageSaveData kkm_last_timestamp [10:58:07]File name is /storage/kkm_last_timestamp [10:58:07]Write 4 bytes [10:58:07]NVStorageSaveData done [10:58:07]ExternCall_PrintAddStr [10:58:07]wPrintStart [10:58:07]Write to MH i2c: 01 00 00 F5 09 FE [10:58:07]Write i2c OK [10:58:07]MH_I2C_Read... [10:58:07]Read from MH i2c: 01 [10:58:07]MH_I2C_Read... [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 F5 09 00 00 00 00 00 FF 0F 13 [10:58:07]RasterBufferAndPrint [10:58:07]line Счет N : (1)458983 [10:58:07]line ИНН: 02508201610067 [10:58:07]line Контрольно-Кассовый Чек [10:58:07]line ПРОДАЖА [10:58:07]line ТРК (МРК, ГНК) : 21 [10:58:07]line Товар: 2710194210 [10:58:07]line ДТ-К-5 [10:58:07]line 5.000 * 71.90 [10:58:07]line = 359.50 [10:58:07]line НДС 12% НСП 1% [10:58:07]line > о реализуемом товаре [10:58:07]line ОКРУГЛЕНИЕ: -0.50 [10:58:07]line ИТОГО: 359.00 [10:58:07]line Внесено: 359.00 [10:58:07]line СДАЧА: 0.00 [10:58:07]line НСП 1% : 3.18 [10:58:07]line НДС 12% : 38.18 [10:58:07]line Наличными: 359.00 [10:58:07]line Безнал.: 0.00 [10:58:07]line Место: АЗС № 72 "Партнер Нефть" [10:58:07]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:58:07]line СНО: Общий режим [10:58:07]line Чек 85 14.07.2024 10:58 [10:58:07]line Смена: 447 ФФД: 1.0 [10:58:07]line ЗНМ: 0300000160 [10:58:07]line РНМ: 0000000000090829 [10:58:07]line Версия ККМ: 001 [10:58:07]line ФМ: 0000000000874718 [10:58:07]line ФД: 164887 [10:58:07]line ФПД: 222065962188959 [10:58:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T105806&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164887&fm=222065962188959&tin=02508201610067®Number=0000000000090829&sum=35900 [10:58:07]OFD Sender: Processing packet 164887 [packets to send 104, broken 103] [10:58:07]ProducePacketName [10:58:07]name=ofd_packets/00164887 [10:58:07]OFD Sender: To server: pG, [10:58:07]CommunicateWithHost lk.salyk.kg:30040 [10:58:07]ConnectInit lk.salyk.kg [10:58:07]written 0, free lines is 4095 [10:58:08]Connected sock=10 [10:58:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 DA B6 04 01 87 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 88 13 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 6E 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 0E 00 00 00 00 07 04 06 00 3C 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 3E AF 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 17 84 02 00 35 04 06 00 C9 F7 C2 CB 00 9F BC C4 10 4A CD 45 A2 B1 [10:58:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 25 FB 47 00 3F FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 17 84 02 00 F4 03 04 00 CC 55 93 66 B6 04 01 00 00 EE 8B 83 42 9A 7A 58 FC [10:58:08]CommunicateWithHost err = 0 [10:58:08]CheckOFDResponse [10:58:08]1017 (14) - 77093643461234 [10:58:08]1041 (16) - 0000000000874718 [10:58:08]1040 (4) - 164887 [10:58:08]1012 (4) - 14.07.2024 04:36 [10:58:08]1206 (1) - 0 [10:58:08]OFD Sender: Remove packet 164887 [10:58:08]ProducePacketName [10:58:08]name=ofd_packets/00164887 [10:58:08]NVStorageDeleteData [10:58:08]Write to MH i2c: 01 00 00 1F 0A 29 [10:58:08]Write i2c OK [10:58:08]MH_I2C_Read... [10:58:08]Read from MH i2c: 01 [10:58:08]MH_I2C_Read... [10:58:08]Read from MH i2c: 01 07 00 [10:58:08]MH_I2C_Read... [10:58:08]Read from MH i2c: 01 07 00 1F 0A 00 00 00 00 00 F4 0C 30 [10:58:08]RasterBufferAndPrint [10:58:08]line [10:58:08]line [10:58:08]line [10:58:08]line [10:58:08]line [10:58:08]written 0, free lines is 3323 [10:58:08]MH_Cut [10:58:08]Write to MH i2c: D1 01 00 26 0A 01 02 [10:58:08]Write i2c OK [10:58:08]MH_I2C_Read... [10:58:08]Read from MH i2c: D1 [10:58:08]MH_I2C_Read... [10:58:08]Read from MH i2c: D1 01 00 [10:58:08]MH_I2C_Read... [10:58:08]Read from MH i2c: D1 01 00 26 0A 00 01 [10:58:08]Write to MH i2c: 01 00 00 27 0A 31 [10:58:08]Write i2c OK [10:58:08]MH_I2C_Read... [10:58:08]OFD Sender: No OFD packet to send [10:58:09]*** Cut start [10:58:09]*** Partial cut [10:58:09]*** CUTSNS_PIN = 1 [10:58:09]*** CUTSNS_PIN = 0 [10:58:09]*** Brake cut motor [10:58:09]Read from MH i2c: 01 [10:58:09]MH_I2C_Read... [10:58:09]*** Stop cut motor [10:58:09]*** Cut end [10:58:09]Read from MH i2c: 01 07 00 [10:58:09]MH_I2C_Read... [10:58:09]Read from MH i2c: 01 07 00 27 0A 00 00 00 00 00 FF 0F 46 [10:58:09]process_action close_receipt done [10:58:09]requested_data is exist [10:58:09]produce_requested_data [10:58:09]requested_item fm.sn is exist - process it [10:58:09]wFMCommunicate request_size=4 [10:58:09]MH_SAM_APDU [10:58:09]CAPDU: 80 11 00 00 [10:58:09]Write to MH i2c: E2 08 00 28 0A 80 11 00 00 00 00 00 00 AC [10:58:09]Write i2c OK [10:58:09]MH_I2C_Read... [10:58:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:09]Read from MH i2c: E2 [10:58:09]MH_I2C_Read... [10:58:09]Read from MH i2c: E2 17 00 [10:58:09]MH_I2C_Read... [10:58:09]Read from MH i2c: E2 17 00 28 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 02 [10:58:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:58:09]wFMCommunicate OK [10:58:09]requested_item fd.num is exist - process it [10:58:09]SAM_PROTO_GetFieldsCounters [10:58:09]wFMCommunicate request_size=4 [10:58:09]MH_SAM_APDU [10:58:09]CAPDU: 80 13 00 00 [10:58:09]Write to MH i2c: E2 08 00 29 0A 80 13 00 00 00 00 00 00 AF [10:58:09]Write i2c OK [10:58:09]MH_I2C_Read... [10:58:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:58:09]Read from MH i2c: E2 [10:58:09]MH_I2C_Read... [10:58:09]Read from MH i2c: E2 62 00 [10:58:09]MH_I2C_Read... [10:58:09]Read from MH i2c: E2 62 00 29 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 17 84 02 00 0E 04 04 00 BF 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 32 [10:58:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 17 84 02 00 0E 04 04 00 BF 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 [10:58:09]wFMCommunicate OK [10:58:09]SAM_PROTO_GetFieldsCounters done [10:58:09]requested_item shift.num is exist - process it [10:58:09]requested_item shift.opened is exist - process it [10:58:09]req_shift_opened [10:58:09]FM_GetShiftState [10:58:09]SAM_PROTO_GetShiftState [10:58:09]wFMCommunicate request_size=4 [10:58:09]MH_SAM_APDU [10:58:09]CAPDU: 80 13 01 00 [10:58:09]Write to MH i2c: E2 08 00 2A 0A 80 13 01 00 00 00 00 00 B1 [10:58:09]Write i2c OK [10:58:09]MH_I2C_Read... [10:58:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:09]Read from MH i2c: E2 [10:58:09]MH_I2C_Read... [10:58:09]Read from MH i2c: E2 0E 00 [10:58:09]MH_I2C_Read... [10:58:09]Read from MH i2c: E2 0E 00 2A 0A 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 31 [10:58:09]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [10:58:09]wFMCommunicate OK [10:58:09]SAM_PROTO_GetShiftState done [10:58:09]FM_GetShiftState done [10:58:09]req_shift_opened done [10:58:09]requested_item shift.open_date is exist - process it [10:58:09]req_shift_open_date [10:58:09]req_shift_open_date done [10:58:09]produce_requested_data done [10:58:09]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164887,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [10:58:09]process_action_free close_receipt [10:58:09]json_value_free [10:58:09]json_value_free done [10:58:09]process_json_proto returns [10:58:09]Send response to host [10:58:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164887,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [10:58:09]free response buf [10:58:09]execute_script done [10:58:09]execute_script returns [10:58:09]free content buf [10:58:09]Sock 7.Close socket [10:58:09]Sock 7.Thread stoped [10:58:13]OFD Sender: No OFD packet to send [10:58:18]OFD Sender: No OFD packet to send [10:58:23]OFD Sender: No OFD packet to send [10:58:28]OFD Sender: No OFD packet to send [10:58:33]OFD Sender: No OFD packet to send [10:58:38]OFD Sender: No OFD packet to send [10:58:43]OFD Sender: No OFD packet to send [10:58:48]OFD Sender: No OFD packet to send [10:58:53]OFD Sender: No OFD packet to send [10:58:58]OFD Sender: No OFD packet to send [10:59:03]OFD Sender: No OFD packet to send [10:59:08]OFD Sender: No OFD packet to send [10:59:13]OFD Sender: No OFD packet to send [10:59:18]OFD Sender: No OFD packet to send [10:59:23]OFD Sender: No OFD packet to send [10:59:28]OFD Sender: No OFD packet to send [10:59:33]OFD Sender: No OFD packet to send [10:59:38]OFD Sender: No OFD packet to send [10:59:43]OFD Sender: No OFD packet to send [10:59:48]OFD Sender: No OFD packet to send [10:59:53]OFD Sender: No OFD packet to send [10:59:58]OFD Sender: No OFD packet to send [11:00:03]OFD Sender: No OFD packet to send [11:00:08]OFD Sender: No OFD packet to send [11:00:13]OFD Sender: No OFD packet to send [11:00:18]OFD Sender: No OFD packet to send [11:00:23]OFD Sender: No OFD packet to send [11:00:28]OFD Sender: No OFD packet to send [11:00:33]OFD Sender: No OFD packet to send [11:00:38]OFD Sender: No OFD packet to send [11:00:43]OFD Sender: No OFD packet to send [11:00:48]OFD Sender: No OFD packet to send [11:00:53]OFD Sender: No OFD packet to send [11:00:58]OFD Sender: No OFD packet to send [11:01:03]OFD Sender: No OFD packet to send [11:01:08]OFD Sender: No OFD packet to send [11:01:13]OFD Sender: No OFD packet to send [11:01:18]OFD Sender: No OFD packet to send [11:01:23]OFD Sender: No OFD packet to send [11:01:26]accept exits with 9 [11:01:26]New connection [11:01:26]New thread 3067473252 created [11:01:26]Thread 3067616612 joined [11:01:26]Waiting for new connection... [11:01:26] Sock 9.Parse request [11:01:26]Sock 9.Check first char [11:01:26]Sock 9.First char is OK [11:01:26]request: POST /json_proto HTTP/1.0 [11:01:26]Method: POST [11:01:26]URL: /json_proto [11:01:26]Method is POST - this is cgi request [11:01:26]url: /json_proto [11:01:26]query_string will be loaded in cgi processing [11:01:26]execute_cgi json_proto POST (null) [11:01:26]execute_cgi path=json_proto method=POST [11:01:26]POST find Content-Length [11:01:26]Host: 172.17.56.4:8080 [11:01:26]Content-Length: 675 [11:01:26]Content-Type: application/json [11:01:26] [11:01:26]POST finish read [11:01:26]Found Content-Length = 675 [11:01:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458984", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 10.020, "sum" : 720.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 720.00, "total" : 720.00, "payments": [ { "type": 0, "sum" : 720.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:01:26]execute_script... [11:01: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)458984", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 10.020, "sum" : 720.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 720.00, "total" : 720.00, "payments": [ { "type": 0, "sum" : 720.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:01:26]POST & json_proto [11:01:26]process_json_proto [11:01:26]json parsed OK: [11:01:26]protocol is kg_v1.0 [11:01:26]action value=close_receipt [11:01:26]process_action close_receipt [11:01:26]cmd_close_receipt [11:01:26]MH_GetDate [11:01:26]Write to MH i2c: F0 00 00 2B 0A 24 [11:01:26]Write i2c OK [11:01:26]MH_I2C_Read... [11:01:26]Read from MH i2c: F0 [11:01:26]MH_I2C_Read... [11:01:26]Read from MH i2c: F0 09 00 [11:01:26]MH_I2C_Read... [11:01:26]Read from MH i2c: F0 09 00 2B 0A 00 06 B0 93 66 C9 DC B2 64 97 [11:01:26]GetLastDocTimeStamp 1720954686 [11:01:26]current date 1720954886 [11:01:26]FM_GetShiftState [11:01:26]SAM_PROTO_GetShiftState [11:01:26]wFMCommunicate request_size=4 [11:01:26]MH_SAM_APDU [11:01:26]CAPDU: 80 13 01 00 [11:01:26]Write to MH i2c: E2 08 00 2C 0A 80 13 01 00 00 00 00 00 B3 [11:01:26]Write i2c OK [11:01:26]MH_I2C_Read... [11:01:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:26]Read from MH i2c: E2 [11:01:26]MH_I2C_Read... [11:01:26]Read from MH i2c: E2 0E 00 [11:01:26]MH_I2C_Read... [11:01:26]Read from MH i2c: E2 0E 00 2C 0A 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 33 [11:01:26]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:01:26]wFMCommunicate OK [11:01:26]SAM_PROTO_GetShiftState done [11:01:26]FM_GetShiftState done [11:01:26]opened in 1720917342 [11:01:26]opened+sec_in_day 1721003742 [11:01:26]quantity*price = 72043 [11:01:26]sum+1 = 72045 [11:01:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 720.00 Внесено: 720.00 СДАЧА: 0.00 НСП 1% : 6.38 НДС 12% : 76.51 Наличными: 720.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 86 14.07.2024 11:01 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164888 ФПД: 67186392747237 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T110126&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164888&fm=67186392747237&tin=02508201610067®Number=0000000000090829&sum=72000 [11:01:27]StoreToDocumentArchive [11:01:27]shift 447 fd 164888 [11:01:27]save to /storage/0447/doc_00164888 [11:01:27]save last doc name /storage/0447/doc_00164888 to /storage/kkm_last_doc_name [11:01:27]save OK [11:01:27]Clear old archive folders... [11:01:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:01:27]tlvbuf is 00738070 [11:01:27]SAM_PROTO_ClearQueue [11:01:27]wFMCommunicate request_size=4 [11:01:27]MH_SAM_APDU [11:01:27]CAPDU: 80 09 00 00 [11:01:27]Write to MH i2c: E2 08 00 39 0A 80 09 00 00 00 00 00 00 B5 [11:01:27]Write i2c OK [11:01:27]MH_I2C_Read... [11:01:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:01:27]Read from MH i2c: E2 [11:01:27]MH_I2C_Read... [11:01:27]Read from MH i2c: E2 03 00 [11:01:27]MH_I2C_Read... [11:01:27]Read from MH i2c: E2 03 00 39 0A 00 90 00 B7 [11:01:27]RAPDU: 90 00 [11:01:27]wFMCommunicate OK [11:01:27]SAM_PROTO_ClearQueue done [11:01:27]KKMCreateOFDPacket [11:01:27]OFDProtocolAddRootSTLVToBuf [11:01:27]FM_MakeSignedData [11:01:27]FM_MakeSignedData [11:01:27]SAM_PROTO_SignData [11:01:27]wFMCommunicate request_size=4 [11:01:27]MH_SAM_APDU [11:01:27]CAPDU: 80 0D 01 02 [11:01:27]Write to MH i2c: E2 08 00 3A 0A 80 0D 01 02 00 00 00 00 BD [11:01:27]Write i2c OK [11:01:27]MH_I2C_Read... [11:01:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:01:27]Read from MH i2c: E2 [11:01:27]MH_I2C_Read... [11:01:27]Read from MH i2c: E2 03 00 [11:01:27]MH_I2C_Read... [11:01:27]Read from MH i2c: E2 03 00 3A 0A 00 90 00 B8 [11:01:27]RAPDU: 90 00 [11:01:27]wFMCommunicate OK [11:01:27]wFMCommunicate request_size=255 [11:01:27]MH_SAM_APDU [11:01: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 24 27 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 6C 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 1D 00 00 00 00 07 04 06 00 40 19 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 06 B0 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 18 84 02 00 35 04 06 00 3D 1B 0D 12 [11:01:27]Write to MH i2c: E2 02 01 3B 0A 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 24 27 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 6C 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 1D 00 00 00 00 07 04 06 00 40 19 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 06 B0 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 18 84 02 00 35 04 06 00 3D 1B 0D 12 00 00 31 [11:01:27]Write i2c OK [11:01:27]MH_I2C_Read... [11:01:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:27]Read from MH i2c: E2 [11:01:27]MH_I2C_Read... [11:01:27]Read from MH i2c: E2 03 00 [11:01:27]MH_I2C_Read... [11:01:27]Read from MH i2c: E2 03 00 3B 0A 00 90 00 B9 [11:01:27]RAPDU: 90 00 [11:01:27]wFMCommunicate OK [11:01:27]wFMCommunicate request_size=7 [11:01:27]MH_SAM_APDU [11:01:27]CAPDU: 80 0D 02 02 02 CC E5 [11:01:27]Write to MH i2c: E2 0A 00 3C 0A 80 0D 02 02 02 00 CC E5 00 00 75 [11:01:27]Write i2c OK [11:01:27]MH_I2C_Read... [11:01:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:27]Read from MH i2c: E2 [11:01:27]MH_I2C_Read... [11:01:27]Read from MH i2c: E2 03 00 [11:01:27]MH_I2C_Read... [11:01:27]Read from MH i2c: E2 03 00 3C 0A 00 90 00 BA [11:01:27]RAPDU: 90 00 [11:01:27]wFMCommunicate OK [11:01:27]wFMCommunicate request_size=4 [11:01:27]MH_SAM_APDU [11:01:27]CAPDU: 80 0D 03 02 [11:01:27]Write to MH i2c: E2 08 00 3D 0A 80 0D 03 02 00 00 00 00 C2 [11:01:27]Write i2c OK [11:01:27]MH_I2C_Read... [11:01:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:01:27]Read from MH i2c: E2 [11:01:27]MH_I2C_Read... [11:01:27]Read from MH i2c: E2 0B 00 [11:01:27]MH_I2C_Read... [11:01:27]Read from MH i2c: E2 0B 00 3D 0A 00 AD 1D E7 C1 C2 80 92 25 90 00 2E [11:01:27]RAPDU: AD 1D E7 C1 C2 80 92 25 90 00 [11:01:27]wFMCommunicate OK [11:01:27]SAM_PROTO_SignData done [11:01:27]FM_MakeSignedData done [11:01:27]CreateOFDProtocolMessage [11:01:27]wFMCommunicate request_size=4 [11:01:27]MH_SAM_APDU [11:01:27]CAPDU: 80 11 00 00 [11:01:27]Write to MH i2c: E2 08 00 3E 0A 80 11 00 00 00 00 00 00 C2 [11:01:27]Write i2c OK [11:01:27]MH_I2C_Read... [11:01:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:27]Read from MH i2c: E2 [11:01:27]MH_I2C_Read... [11:01:27]Read from MH i2c: E2 17 00 [11:01:27]MH_I2C_Read... [11:01:27]Read from MH i2c: E2 17 00 3E 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 18 [11:01:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:01:27]wFMCommunicate OK [11:01:27]CreateOFDProtocolMessage done [11:01:27]OFDSenderStorePacket 164888 [11:01:27]StoreOFDPacket docnum=164888 [11:01:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 CD B6 04 01 24 A7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 6C 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 1D 00 00 00 00 07 04 06 00 40 19 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 06 B0 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 18 84 02 00 35 04 06 00 3D 1B 0D 12 CC E5 AD 1D E7 C1 C2 80 92 25 [11:01:27]CheckFolder [11:01:27]dirname=/storage/ofd_packets [11:01:27]CheckFolder done [11:01:27]ProducePacketName [11:01:27]name=ofd_packets/00164888 [11:01:27]NVStorageSaveData ofd_packets/00164888 [11:01:27]File name is /storage/ofd_packets/00164888 [11:01:27]Write 298 bytes [11:01:27]NVStorageSaveData done [11:01:27]OFDSenderStorePacket done [11:01:27]KKMCreateOFDPacket done [11:01:27]NVStorageSaveData kkm_last_timestamp [11:01:27]File name is /storage/kkm_last_timestamp [11:01:27]Write 4 bytes [11:01:27]NVStorageSaveData done [11:01:27]ExternCall_PrintAddStr [11:01:27]wPrintStart [11:01:27]Write to MH i2c: 01 00 00 3F 0A 49 [11:01:27]Write i2c OK [11:01:27]MH_I2C_Read... [11:01:27]Read from MH i2c: 01 [11:01:27]MH_I2C_Read... [11:01:27]Read from MH i2c: 01 07 00 [11:01:27]MH_I2C_Read... [11:01:27]Read from MH i2c: 01 07 00 3F 0A 00 00 00 00 00 FF 0F 5E [11:01:27]RasterBufferAndPrint [11:01:27]line Счет N : (1)458984 [11:01:27]line ИНН: 02508201610067 [11:01:27]line Контрольно-Кассовый Чек [11:01:27]line ПРОДАЖА [11:01:27]line ТРК (МРК, ГНК) : 21 [11:01:27]line Товар: 2710194210 [11:01:27]line ДТ-К-5 [11:01:27]line 10.020 * 71.90 [11:01:27]line = 720.44 [11:01:27]line НДС 12% НСП 1% [11:01:27]line > о реализуемом товаре [11:01:27]line ОКРУГЛЕНИЕ: -0.44 [11:01:27]line ИТОГО: 720.00 [11:01:27]line Внесено: 720.00 [11:01:27]line СДАЧА: 0.00 [11:01:27]line НСП 1% : 6.38 [11:01:27]line НДС 12% : 76.51 [11:01:27]line Наличными: 720.00 [11:01:27]line Безнал.: 0.00 [11:01:27]line Место: АЗС № 72 "Партнер Нефть" [11:01:27]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:01:27]line СНО: Общий режим [11:01:27]line Чек 86 14.07.2024 11:01 [11:01:27]line Смена: 447 ФФД: 1.0 [11:01:27]line ЗНМ: 0300000160 [11:01:27]line РНМ: 0000000000090829 [11:01:27]line Версия ККМ: 001 [11:01:27]line ФМ: 0000000000874718 [11:01:27]line ФД: 164888 [11:01:27]line ФПД: 67186392747237 [11:01:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T110126&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164888&fm=67186392747237&tin=02508201610067®Number=0000000000090829&sum=72000 [11:01:28]OFD Sender: Processing packet 164888 [packets to send 104, broken 103] [11:01:28]ProducePacketName [11:01:28]name=ofd_packets/00164888 [11:01:28]OFD Sender: To server: pG, [11:01:28]CommunicateWithHost lk.salyk.kg:30040 [11:01:28]ConnectInit lk.salyk.kg [11:01:28]written 0, free lines is 4095 [11:01:28]Connected sock=10 [11:01:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 CD B6 04 01 24 A7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 6C 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 1D 00 00 00 00 07 04 06 00 40 19 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 06 B0 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 18 84 02 00 35 04 06 00 3D 1B 0D 12 CC E5 AD 1D E7 C1 C2 80 92 25 [11:01:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 40 0E 47 00 CB B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 18 84 02 00 F4 03 04 00 94 56 93 66 B6 04 01 00 00 AD 46 39 49 D8 D9 D2 77 [11:01:28]CommunicateWithHost err = 0 [11:01:28]CheckOFDResponse [11:01:28]1017 (14) - 77093643461234 [11:01:28]1041 (16) - 0000000000874718 [11:01:28]1040 (4) - 164888 [11:01:28]1012 (4) - 14.07.2024 04:39 [11:01:28]1206 (1) - 0 [11:01:28]OFD Sender: Remove packet 164888 [11:01:28]ProducePacketName [11:01:28]name=ofd_packets/00164888 [11:01:28]NVStorageDeleteData [11:01:28]Write to MH i2c: 01 00 00 69 0A 73 [11:01:28]Write i2c OK [11:01:28]MH_I2C_Read... [11:01:28]Read from MH i2c: 01 [11:01:28]MH_I2C_Read... [11:01:28]Read from MH i2c: 01 07 00 [11:01:28]MH_I2C_Read... [11:01:28]Read from MH i2c: 01 07 00 69 0A 00 00 00 00 00 EE 0C 74 [11:01:28]RasterBufferAndPrint [11:01:28]line [11:01:28]line [11:01:28]line [11:01:28]line [11:01:28]line [11:01:28]written 0, free lines is 3316 [11:01:28]MH_Cut [11:01:28]Write to MH i2c: D1 01 00 70 0A 01 4C [11:01:28]Write i2c OK [11:01:28]MH_I2C_Read... [11:01:28]Read from MH i2c: D1 [11:01:28]MH_I2C_Read... [11:01:28]Read from MH i2c: D1 01 00 [11:01:28]MH_I2C_Read... [11:01:28]Read from MH i2c: D1 01 00 70 0A 00 4B [11:01:28]Write to MH i2c: 01 00 00 71 0A 7B [11:01:28]Write i2c OK [11:01:28]MH_I2C_Read... [11:01:28]OFD Sender: No OFD packet to send [11:01:29]*** Cut start [11:01:29]*** Partial cut [11:01:29]*** CUTSNS_PIN = 1 [11:01:29]*** CUTSNS_PIN = 0 [11:01:29]*** Brake cut motor [11:01:29]Read from MH i2c: 01 [11:01:29]MH_I2C_Read... [11:01:29]*** Stop cut motor [11:01:29]*** Cut end [11:01:29]Read from MH i2c: 01 07 00 [11:01:29]MH_I2C_Read... [11:01:29]Read from MH i2c: 01 07 00 71 0A 00 00 00 00 00 FF 0F 90 [11:01:29]process_action close_receipt done [11:01:29]requested_data is exist [11:01:29]produce_requested_data [11:01:29]requested_item fm.sn is exist - process it [11:01:29]wFMCommunicate request_size=4 [11:01:29]MH_SAM_APDU [11:01:29]CAPDU: 80 11 00 00 [11:01:29]Write to MH i2c: E2 08 00 72 0A 80 11 00 00 00 00 00 00 F6 [11:01:29]Write i2c OK [11:01:29]MH_I2C_Read... [11:01:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:29]Read from MH i2c: E2 [11:01:29]MH_I2C_Read... [11:01:29]Read from MH i2c: E2 17 00 [11:01:29]MH_I2C_Read... [11:01:29]Read from MH i2c: E2 17 00 72 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 4C [11:01:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:01:29]wFMCommunicate OK [11:01:29]requested_item fd.num is exist - process it [11:01:29]SAM_PROTO_GetFieldsCounters [11:01:29]wFMCommunicate request_size=4 [11:01:29]MH_SAM_APDU [11:01:29]CAPDU: 80 13 00 00 [11:01:29]Write to MH i2c: E2 08 00 73 0A 80 13 00 00 00 00 00 00 F9 [11:01:29]Write i2c OK [11:01:29]MH_I2C_Read... [11:01:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:01:29]Read from MH i2c: E2 [11:01:29]MH_I2C_Read... [11:01:29]Read from MH i2c: E2 62 00 [11:01:29]MH_I2C_Read... [11:01:29]Read from MH i2c: E2 62 00 73 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 18 84 02 00 0E 04 04 00 BF 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 80 [11:01:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 18 84 02 00 0E 04 04 00 BF 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 [11:01:29]wFMCommunicate OK [11:01:29]SAM_PROTO_GetFieldsCounters done [11:01:29]requested_item shift.num is exist - process it [11:01:29]requested_item shift.opened is exist - process it [11:01:29]req_shift_opened [11:01:29]FM_GetShiftState [11:01:29]SAM_PROTO_GetShiftState [11:01:29]wFMCommunicate request_size=4 [11:01:29]MH_SAM_APDU [11:01:29]CAPDU: 80 13 01 00 [11:01:29]Write to MH i2c: E2 08 00 74 0A 80 13 01 00 00 00 00 00 FB [11:01:29]Write i2c OK [11:01:29]MH_I2C_Read... [11:01:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:30]Read from MH i2c: E2 [11:01:30]MH_I2C_Read... [11:01:30]Read from MH i2c: E2 0E 00 [11:01:30]MH_I2C_Read... [11:01:30]Read from MH i2c: E2 0E 00 74 0A 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 7B [11:01:30]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:01:30]wFMCommunicate OK [11:01:30]SAM_PROTO_GetShiftState done [11:01:30]FM_GetShiftState done [11:01:30]req_shift_opened done [11:01:30]requested_item shift.open_date is exist - process it [11:01:30]req_shift_open_date [11:01:30]req_shift_open_date done [11:01:30]produce_requested_data done [11:01:30]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164888,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [11:01:30]process_action_free close_receipt [11:01:30]json_value_free [11:01:30]json_value_free done [11:01:30]process_json_proto returns [11:01:30]Send response to host [11:01:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164888,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [11:01:30]free response buf [11:01:30]execute_script done [11:01:30]execute_script returns [11:01:30]free content buf [11:01:30]Sock 9.Close socket [11:01:30]Sock 9.Thread stoped [11:01:33]OFD Sender: No OFD packet to send [11:01:38]OFD Sender: No OFD packet to send [11:01:43]OFD Sender: No OFD packet to send [11:01:48]OFD Sender: No OFD packet to send [11:01:53]OFD Sender: No OFD packet to send [11:01:58]OFD Sender: No OFD packet to send [11:02:03]OFD Sender: No OFD packet to send [11:02:08]OFD Sender: No OFD packet to send [11:02:13]OFD Sender: No OFD packet to send [11:02:18]OFD Sender: No OFD packet to send [11:02:23]OFD Sender: No OFD packet to send [11:02:28]OFD Sender: No OFD packet to send [11:02:33]OFD Sender: No OFD packet to send [11:02:38]OFD Sender: No OFD packet to send [11:02:43]OFD Sender: No OFD packet to send [11:02:48]OFD Sender: No OFD packet to send [11:02:53]OFD Sender: No OFD packet to send [11:02:58]OFD Sender: No OFD packet to send [11:03:03]OFD Sender: No OFD packet to send [11:03:08]OFD Sender: No OFD packet to send [11:03:13]OFD Sender: No OFD packet to send [11:03:18]OFD Sender: No OFD packet to send [11:03:23]OFD Sender: No OFD packet to send [11:03:29]OFD Sender: No OFD packet to send [11:03:34]OFD Sender: No OFD packet to send [11:03:39]OFD Sender: No OFD packet to send [11:03:44]OFD Sender: No OFD packet to send [11:03:49]OFD Sender: No OFD packet to send [11:03:54]OFD Sender: No OFD packet to send [11:03:59]OFD Sender: No OFD packet to send [11:04:04]OFD Sender: No OFD packet to send [11:04:09]OFD Sender: No OFD packet to send [11:04:14]OFD Sender: No OFD packet to send [11:04:15]accept exits with 7 [11:04:15]New connection [11:04:15]New thread 3067616612 created [11:04:15]Thread 3067473252 joined [11:04:15]Waiting for new connection... [11:04:15] Sock 7.Parse request [11:04:15]Sock 7.Check first char [11:04:15]Sock 7.First char is OK [11:04:15]request: POST /json_proto HTTP/1.0 [11:04:15]Method: POST [11:04:15]URL: /json_proto [11:04:15]Method is POST - this is cgi request [11:04:15]url: /json_proto [11:04:15]query_string will be loaded in cgi processing [11:04:15]execute_cgi json_proto POST (null) [11:04:15]execute_cgi path=json_proto method=POST [11:04:15]POST find Content-Length [11:04:15]Host: 172.17.56.4:8080 [11:04:15]Content-Length: 677 [11:04:15]Content-Type: application/json [11:04:15] [11:04:15]POST finish read [11:04:15]Found Content-Length = 677 [11:04:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458985", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:04:15]execute_script... [11:04: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)458985", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:04:15]POST & json_proto [11:04:15]process_json_proto [11:04:15]json parsed OK: [11:04:15]protocol is kg_v1.0 [11:04:15]action value=close_receipt [11:04:15]process_action close_receipt [11:04:15]cmd_close_receipt [11:04:15]MH_GetDate [11:04:15]Write to MH i2c: F0 00 00 75 0A 6E [11:04:15]Write i2c OK [11:04:15]MH_I2C_Read... [11:04:15]Read from MH i2c: F0 [11:04:15]MH_I2C_Read... [11:04:15]Read from MH i2c: F0 09 00 [11:04:15]MH_I2C_Read... [11:04:15]Read from MH i2c: F0 09 00 75 0A 00 B0 B0 93 66 C9 DC B2 64 8B [11:04:15]GetLastDocTimeStamp 1720954886 [11:04:15]current date 1720955056 [11:04:15]FM_GetShiftState [11:04:15]SAM_PROTO_GetShiftState [11:04:15]wFMCommunicate request_size=4 [11:04:15]MH_SAM_APDU [11:04:15]CAPDU: 80 13 01 00 [11:04:15]Write to MH i2c: E2 08 00 76 0A 80 13 01 00 00 00 00 00 FD [11:04:15]Write i2c OK [11:04:15]MH_I2C_Read... [11:04:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:04:15]Read from MH i2c: E2 [11:04:15]MH_I2C_Read... [11:04:15]Read from MH i2c: E2 0E 00 [11:04:15]MH_I2C_Read... [11:04:15]Read from MH i2c: E2 0E 00 76 0A 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 7D [11:04:15]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:04:15]wFMCommunicate OK [11:04:15]SAM_PROTO_GetShiftState done [11:04:15]FM_GetShiftState done [11:04:15]opened in 1720917342 [11:04:15]opened+sec_in_day 1721003742 [11:04:15]quantity*price = 20003 [11:04:15]sum+1 = 20004 [11:04:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 87 14.07.2024 11:04 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164889 ФПД: 38818479042265 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T110416&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164889&fm=38818479042265&tin=02508201610067®Number=0000000000090829&sum=20000 [11:04:16]StoreToDocumentArchive [11:04:16]shift 447 fd 164889 [11:04:16]save to /storage/0447/doc_00164889 [11:04:16]save last doc name /storage/0447/doc_00164889 to /storage/kkm_last_doc_name [11:04:16]save OK [11:04:16]Clear old archive folders... [11:04:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:04:16]tlvbuf is 0071BD10 [11:04:16]SAM_PROTO_ClearQueue [11:04:16]wFMCommunicate request_size=4 [11:04:16]MH_SAM_APDU [11:04:16]CAPDU: 80 09 00 00 [11:04:16]Write to MH i2c: E2 08 00 83 0A 80 09 00 00 00 00 00 00 FF [11:04:16]Write i2c OK [11:04:16]MH_I2C_Read... [11:04:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:04:16]Read from MH i2c: E2 [11:04:16]MH_I2C_Read... [11:04:16]Read from MH i2c: E2 03 00 [11:04:16]MH_I2C_Read... [11:04:16]Read from MH i2c: E2 03 00 83 0A 00 90 00 01 [11:04:16]RAPDU: 90 00 [11:04:16]wFMCommunicate OK [11:04:16]SAM_PROTO_ClearQueue done [11:04:16]KKMCreateOFDPacket [11:04:16]OFDProtocolAddRootSTLVToBuf [11:04:16]FM_MakeSignedData [11:04:16]FM_MakeSignedData [11:04:16]SAM_PROTO_SignData [11:04:16]wFMCommunicate request_size=4 [11:04:16]MH_SAM_APDU [11:04:16]CAPDU: 80 0D 01 02 [11:04:16]Write to MH i2c: E2 08 00 84 0A 80 0D 01 02 00 00 00 00 07 [11:04:16]Write i2c OK [11:04:16]MH_I2C_Read... [11:04:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:04:16]Read from MH i2c: E2 [11:04:16]MH_I2C_Read... [11:04:16]Read from MH i2c: E2 03 00 [11:04:16]MH_I2C_Read... [11:04:16]Read from MH i2c: E2 03 00 84 0A 00 90 00 02 [11:04:16]RAPDU: 90 00 [11:04:16]wFMCommunicate OK [11:04:16]wFMCommunicate request_size=255 [11:04:16]MH_SAM_APDU [11:04:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 57 00 00 00 F4 03 04 00 B0 B0 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 19 84 02 00 35 04 06 00 23 [11:04:16]Write to MH i2c: E2 02 01 85 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 57 00 00 00 F4 03 04 00 B0 B0 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 19 84 02 00 35 04 06 00 23 00 00 53 [11:04:16]Write i2c OK [11:04:16]MH_I2C_Read... [11:04:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:04:17]Read from MH i2c: E2 [11:04:17]MH_I2C_Read... [11:04:17]Read from MH i2c: E2 03 00 [11:04:17]MH_I2C_Read... [11:04:17]Read from MH i2c: E2 03 00 85 0A 00 90 00 03 [11:04:17]RAPDU: 90 00 [11:04:17]wFMCommunicate OK [11:04:17]wFMCommunicate request_size=10 [11:04:17]MH_SAM_APDU [11:04:17]CAPDU: 80 0D 02 02 05 4E 21 A7 6E D9 [11:04:17]Write to MH i2c: E2 0D 00 86 0A 80 0D 02 02 05 00 4E 21 A7 6E D9 00 00 71 [11:04:17]Write i2c OK [11:04:17]MH_I2C_Read... [11:04:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:04:17]Read from MH i2c: E2 [11:04:17]MH_I2C_Read... [11:04:17]Read from MH i2c: E2 03 00 [11:04:17]MH_I2C_Read... [11:04:17]Read from MH i2c: E2 03 00 86 0A 00 90 00 04 [11:04:17]RAPDU: 90 00 [11:04:17]wFMCommunicate OK [11:04:17]wFMCommunicate request_size=4 [11:04:17]MH_SAM_APDU [11:04:17]CAPDU: 80 0D 03 02 [11:04:17]Write to MH i2c: E2 08 00 87 0A 80 0D 03 02 00 00 00 00 0C [11:04:17]Write i2c OK [11:04:17]MH_I2C_Read... [11:04:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:04:17]Read from MH i2c: E2 [11:04:17]MH_I2C_Read... [11:04:17]Read from MH i2c: E2 0B 00 [11:04:17]MH_I2C_Read... [11:04:17]Read from MH i2c: E2 0B 00 87 0A 00 4F EE 3C B2 7D 76 12 7C 90 00 B9 [11:04:17]RAPDU: 4F EE 3C B2 7D 76 12 7C 90 00 [11:04:17]wFMCommunicate OK [11:04:17]SAM_PROTO_SignData done [11:04:17]FM_MakeSignedData done [11:04:17]CreateOFDProtocolMessage [11:04:17]wFMCommunicate request_size=4 [11:04:17]MH_SAM_APDU [11:04:17]CAPDU: 80 11 00 00 [11:04:17]Write to MH i2c: E2 08 00 88 0A 80 11 00 00 00 00 00 00 0C [11:04:17]Write i2c OK [11:04:17]MH_I2C_Read... [11:04:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:04:17]Read from MH i2c: E2 [11:04:17]MH_I2C_Read... [11:04:17]Read from MH i2c: E2 17 00 [11:04:17]MH_I2C_Read... [11:04:17]Read from MH i2c: E2 17 00 88 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 62 [11:04:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:04:17]wFMCommunicate OK [11:04:17]CreateOFDProtocolMessage done [11:04:17]OFDSenderStorePacket 164889 [11:04:17]StoreOFDPacket docnum=164889 [11:04:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 17 41 07 01 A4 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 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 57 00 00 00 F4 03 04 00 B0 B0 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 19 84 02 00 35 04 06 00 23 4E 21 A7 6E D9 4F EE 3C B2 7D 76 12 7C [11:04:17]CheckFolder [11:04:17]dirname=/storage/ofd_packets [11:04:17]CheckFolder done [11:04:17]ProducePacketName [11:04:17]name=ofd_packets/00164889 [11:04:17]NVStorageSaveData ofd_packets/00164889 [11:04:17]File name is /storage/ofd_packets/00164889 [11:04:17]Write 301 bytes [11:04:17]NVStorageSaveData done [11:04:17]OFDSenderStorePacket done [11:04:17]KKMCreateOFDPacket done [11:04:17]NVStorageSaveData kkm_last_timestamp [11:04:17]File name is /storage/kkm_last_timestamp [11:04:17]Write 4 bytes [11:04:17]NVStorageSaveData done [11:04:17]ExternCall_PrintAddStr [11:04:17]wPrintStart [11:04:17]Write to MH i2c: 01 00 00 89 0A 93 [11:04:17]Write i2c OK [11:04:17]MH_I2C_Read... [11:04:17]Read from MH i2c: 01 [11:04:17]MH_I2C_Read... [11:04:17]Read from MH i2c: 01 07 00 [11:04:17]MH_I2C_Read... [11:04:17]Read from MH i2c: 01 07 00 89 0A 00 00 00 00 00 FF 0F A8 [11:04:17]RasterBufferAndPrint [11:04:17]line Счет N : (1)458985 [11:04:17]line ИНН: 02508201610067 [11:04:17]line Контрольно-Кассовый Чек [11:04:17]line ПРОДАЖА [11:04:17]line ТРК (МРК, ГНК) : 22 [11:04:17]line Товар: 2710124130 [11:04:17]line Аи-92-К-5 [11:04:17]line 3.040 * 65.80 [11:04:17]line = 200.03 [11:04:17]line НДС 12% НСП 1% [11:04:17]line > о реализуемом товаре [11:04:17]line ОКРУГЛЕНИЕ: -0.03 [11:04:17]line ИТОГО: 200.00 [11:04:17]line Внесено: 200.00 [11:04:17]line СДАЧА: 0.00 [11:04:17]line НСП 1% : 1.77 [11:04:17]line НДС 12% : 21.24 [11:04:17]line Наличными: 200.00 [11:04:17]line Безнал.: 0.00 [11:04:17]line Место: АЗС № 72 "Партнер Нефть" [11:04:17]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:04:17]line СНО: Общий режим [11:04:17]line Чек 87 14.07.2024 11:04 [11:04:17]line Смена: 447 ФФД: 1.0 [11:04:17]line ЗНМ: 0300000160 [11:04:17]line РНМ: 0000000000090829 [11:04:17]line Версия ККМ: 001 [11:04:17]line ФМ: 0000000000874718 [11:04:17]line ФД: 164889 [11:04:17]line ФПД: 38818479042265 [11:04:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T110416&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164889&fm=38818479042265&tin=02508201610067®Number=0000000000090829&sum=20000 [11:04:17]OFD Sender: Processing packet 164889 [packets to send 104, broken 103] [11:04:17]ProducePacketName [11:04:17]name=ofd_packets/00164889 [11:04:17]OFD Sender: To server: pG, [11:04:17]CommunicateWithHost lk.salyk.kg:30040 [11:04:17]ConnectInit lk.salyk.kg [11:04:17]written 0, free lines is 4095 [11:04:17]Connected sock=10 [11:04:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 17 41 07 01 A4 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 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 57 00 00 00 F4 03 04 00 B0 B0 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 19 84 02 00 35 04 06 00 23 4E 21 A7 6E D9 4F EE 3C B2 7D 76 12 7C [11:04:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 42 44 47 00 0A 3F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 19 84 02 00 F4 03 04 00 3E 57 93 66 B6 04 01 00 00 17 FB E7 2B C7 4D DF 8C [11:04:17]CommunicateWithHost err = 0 [11:04:17]CheckOFDResponse [11:04:17]1017 (14) - 77093643461234 [11:04:17]1041 (16) - 0000000000874718 [11:04:17]1040 (4) - 164889 [11:04:17]1012 (4) - 14.07.2024 04:42 [11:04:17]1206 (1) - 0 [11:04:17]OFD Sender: Remove packet 164889 [11:04:17]ProducePacketName [11:04:17]name=ofd_packets/00164889 [11:04:17]NVStorageDeleteData [11:04:17]Write to MH i2c: 01 00 00 B3 0A BD [11:04:17]Write i2c OK [11:04:17]MH_I2C_Read... [11:04:17]Read from MH i2c: 01 [11:04:17]MH_I2C_Read... [11:04:17]Read from MH i2c: 01 07 00 [11:04:17]MH_I2C_Read... [11:04:17]Read from MH i2c: 01 07 00 B3 0A 00 00 00 00 00 F3 0C C3 [11:04:17]RasterBufferAndPrint [11:04:17]line [11:04:17]line [11:04:17]line [11:04:17]line [11:04:17]line [11:04:17]written 0, free lines is 3321 [11:04:18]MH_Cut [11:04:18]Write to MH i2c: D1 01 00 BA 0A 01 96 [11:04:18]Write i2c OK [11:04:18]MH_I2C_Read... [11:04:18]Read from MH i2c: D1 [11:04:18]MH_I2C_Read... [11:04:18]Read from MH i2c: D1 01 00 [11:04:18]MH_I2C_Read... [11:04:18]Read from MH i2c: D1 01 00 BA 0A 00 95 [11:04:18]Write to MH i2c: 01 00 00 BB 0A C5 [11:04:18]Write i2c OK [11:04:18]MH_I2C_Read... [11:04:18]OFD Sender: No OFD packet to send [11:04:18]*** Cut start [11:04:18]*** Partial cut [11:04:18]*** CUTSNS_PIN = 1 [11:04:18]*** CUTSNS_PIN = 0 [11:04:18]*** Brake cut motor [11:04:19]Read from MH i2c: 01 [11:04:19]MH_I2C_Read... [11:04:19]*** Stop cut motor [11:04:19]*** Cut end [11:04:19]Read from MH i2c: 01 07 00 [11:04:19]MH_I2C_Read... [11:04:19]Read from MH i2c: 01 07 00 BB 0A 00 00 00 00 00 FF 0F DA [11:04:19]process_action close_receipt done [11:04:19]requested_data is exist [11:04:19]produce_requested_data [11:04:19]requested_item fm.sn is exist - process it [11:04:19]wFMCommunicate request_size=4 [11:04:19]MH_SAM_APDU [11:04:19]CAPDU: 80 11 00 00 [11:04:19]Write to MH i2c: E2 08 00 BC 0A 80 11 00 00 00 00 00 00 40 [11:04:19]Write i2c OK [11:04:19]MH_I2C_Read... [11:04:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:04:19]Read from MH i2c: E2 [11:04:19]MH_I2C_Read... [11:04:19]Read from MH i2c: E2 17 00 [11:04:19]MH_I2C_Read... [11:04:19]Read from MH i2c: E2 17 00 BC 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 96 [11:04:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:04:19]wFMCommunicate OK [11:04:19]requested_item fd.num is exist - process it [11:04:19]SAM_PROTO_GetFieldsCounters [11:04:19]wFMCommunicate request_size=4 [11:04:19]MH_SAM_APDU [11:04:19]CAPDU: 80 13 00 00 [11:04:19]Write to MH i2c: E2 08 00 BD 0A 80 13 00 00 00 00 00 00 43 [11:04:19]Write i2c OK [11:04:19]MH_I2C_Read... [11:04:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:04:19]Read from MH i2c: E2 [11:04:19]MH_I2C_Read... [11:04:19]Read from MH i2c: E2 62 00 [11:04:19]MH_I2C_Read... [11:04:19]Read from MH i2c: E2 62 00 BD 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 19 84 02 00 0E 04 04 00 BF 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 CE [11:04:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 19 84 02 00 0E 04 04 00 BF 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 [11:04:19]wFMCommunicate OK [11:04:19]SAM_PROTO_GetFieldsCounters done [11:04:19]requested_item shift.num is exist - process it [11:04:19]requested_item shift.opened is exist - process it [11:04:19]req_shift_opened [11:04:19]FM_GetShiftState [11:04:19]SAM_PROTO_GetShiftState [11:04:19]wFMCommunicate request_size=4 [11:04:19]MH_SAM_APDU [11:04:19]CAPDU: 80 13 01 00 [11:04:19]Write to MH i2c: E2 08 00 BE 0A 80 13 01 00 00 00 00 00 45 [11:04:19]Write i2c OK [11:04:19]MH_I2C_Read... [11:04:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:04:19]Read from MH i2c: E2 [11:04:19]MH_I2C_Read... [11:04:19]Read from MH i2c: E2 0E 00 [11:04:19]MH_I2C_Read... [11:04:19]Read from MH i2c: E2 0E 00 BE 0A 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 C5 [11:04:19]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:04:19]wFMCommunicate OK [11:04:19]SAM_PROTO_GetShiftState done [11:04:19]FM_GetShiftState done [11:04:19]req_shift_opened done [11:04:19]requested_item shift.open_date is exist - process it [11:04:19]req_shift_open_date [11:04:19]req_shift_open_date done [11:04:19]produce_requested_data done [11:04:19]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164889,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [11:04:19]process_action_free close_receipt [11:04:19]json_value_free [11:04:19]json_value_free done [11:04:19]process_json_proto returns [11:04:19]Send response to host [11:04:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164889,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [11:04:19]free response buf [11:04:19]execute_script done [11:04:19]execute_script returns [11:04:19]free content buf [11:04:19]Sock 7.Close socket [11:04:19]Sock 7.Thread stoped [11:04:23]OFD Sender: No OFD packet to send [11:04:28]OFD Sender: No OFD packet to send [11:04:33]OFD Sender: No OFD packet to send [11:04:38]OFD Sender: No OFD packet to send [11:04:43]OFD Sender: No OFD packet to send [11:04:48]OFD Sender: No OFD packet to send [11:04:53]OFD Sender: No OFD packet to send [11:04:58]OFD Sender: No OFD packet to send [11:05:03]OFD Sender: No OFD packet to send [11:05:08]OFD Sender: No OFD packet to send [11:05:13]OFD Sender: No OFD packet to send [11:05:18]OFD Sender: No OFD packet to send [11:05:23]OFD Sender: No OFD packet to send [11:05:28]OFD Sender: No OFD packet to send [11:05:33]OFD Sender: No OFD packet to send [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:03]OFD Sender: No OFD packet to send [11:06:08]OFD Sender: No OFD packet to send [11:06:13]OFD Sender: No OFD packet to send [11:06:18]OFD Sender: No OFD packet to send [11:06:23]OFD Sender: No OFD packet to send [11:06:28]accept exits with 9 [11:06:28]New connection [11:06:28]New thread 3067473252 created [11:06:28]Thread 3067616612 joined [11:06:28]Waiting for new connection... [11:06:28] Sock 9.Parse request [11:06:28]Sock 9.Check first char [11:06:28]Sock 9.First char is OK [11:06:28]request: POST /json_proto HTTP/1.0 [11:06:28]Method: POST [11:06:28]URL: /json_proto [11:06:28]Method is POST - this is cgi request [11:06:28]url: /json_proto [11:06:28]query_string will be loaded in cgi processing [11:06:28]execute_cgi json_proto POST (null) [11:06:28]execute_cgi path=json_proto method=POST [11:06:28]POST find Content-Length [11:06:28]Host: 172.17.56.4:8080 [11:06:28]Content-Length: 677 [11:06:28]Content-Type: application/json [11:06:28] [11:06:28]POST finish read [11:06:28]Found Content-Length = 677 [11:06:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458986", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:06:28]execute_script... [11:06: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)458986", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:06:28]POST & json_proto [11:06:28]process_json_proto [11:06:28]json parsed OK: [11:06:28]protocol is kg_v1.0 [11:06:28]action value=close_receipt [11:06:28]process_action close_receipt [11:06:28]cmd_close_receipt [11:06:28]MH_GetDate [11:06:28]Write to MH i2c: F0 00 00 BF 0A B8 [11:06:28]Write i2c OK [11:06:28]MH_I2C_Read... [11:06:28]Read from MH i2c: F0 [11:06:28]MH_I2C_Read... [11:06:28]Read from MH i2c: F0 09 00 [11:06:28]MH_I2C_Read... [11:06:28]Read from MH i2c: F0 09 00 BF 0A 00 35 B1 93 66 C9 DC B2 64 5B [11:06:28]GetLastDocTimeStamp 1720955056 [11:06:28]current date 1720955189 [11:06:28]FM_GetShiftState [11:06:28]SAM_PROTO_GetShiftState [11:06:28]wFMCommunicate request_size=4 [11:06:28]MH_SAM_APDU [11:06:28]CAPDU: 80 13 01 00 [11:06:28]Write to MH i2c: E2 08 00 C0 0A 80 13 01 00 00 00 00 00 47 [11:06:28]Write i2c OK [11:06:28]MH_I2C_Read... [11:06:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:28]Read from MH i2c: E2 [11:06:28]MH_I2C_Read... [11:06:28]Read from MH i2c: E2 0E 00 [11:06:28]MH_I2C_Read... [11:06:28]Read from MH i2c: E2 0E 00 C0 0A 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 C7 [11:06:28]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:06:28]wFMCommunicate OK [11:06:28]SAM_PROTO_GetShiftState done [11:06:28]FM_GetShiftState done [11:06:28]opened in 1720917342 [11:06:28]opened+sec_in_day 1721003742 [11:06:28]quantity*price = 50008 [11:06:28]sum+1 = 50009 [11:06:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 88 14.07.2024 11:06 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164890 ФПД: 238332183431373 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T110629&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164890&fm=238332183431373&tin=02508201610067®Number=0000000000090829&sum=50000 [11:06:29]StoreToDocumentArchive [11:06:29]shift 447 fd 164890 [11:06:29]save to /storage/0447/doc_00164890 [11:06:29]save last doc name /storage/0447/doc_00164890 to /storage/kkm_last_doc_name [11:06:29]save OK [11:06:29]Clear old archive folders... [11:06:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:06:29]tlvbuf is 0076A320 [11:06:29]SAM_PROTO_ClearQueue [11:06:29]wFMCommunicate request_size=4 [11:06:29]MH_SAM_APDU [11:06:29]CAPDU: 80 09 00 00 [11:06:29]Write to MH i2c: E2 08 00 CD 0A 80 09 00 00 00 00 00 00 49 [11:06:29]Write i2c OK [11:06:29]MH_I2C_Read... [11:06:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:06:29]Read from MH i2c: E2 [11:06:29]MH_I2C_Read... [11:06:29]Read from MH i2c: E2 03 00 [11:06:29]MH_I2C_Read... [11:06:29]Read from MH i2c: E2 03 00 CD 0A 00 90 00 4B [11:06:29]RAPDU: 90 00 [11:06:29]wFMCommunicate OK [11:06:29]SAM_PROTO_ClearQueue done [11:06:29]KKMCreateOFDPacket [11:06:29]OFDProtocolAddRootSTLVToBuf [11:06:29]FM_MakeSignedData [11:06:29]FM_MakeSignedData [11:06:29]SAM_PROTO_SignData [11:06:29]wFMCommunicate request_size=4 [11:06:29]MH_SAM_APDU [11:06:29]CAPDU: 80 0D 01 02 [11:06:29]Write to MH i2c: E2 08 00 CE 0A 80 0D 01 02 00 00 00 00 51 [11:06:29]Write i2c OK [11:06:29]MH_I2C_Read... [11:06:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:06:29]Read from MH i2c: E2 [11:06:29]MH_I2C_Read... [11:06:29]Read from MH i2c: E2 03 00 [11:06:29]MH_I2C_Read... [11:06:29]Read from MH i2c: E2 03 00 CE 0A 00 90 00 4C [11:06:29]RAPDU: 90 00 [11:06:29]wFMCommunicate OK [11:06:29]wFMCommunicate request_size=255 [11:06:29]MH_SAM_APDU [11:06:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 58 00 00 00 F4 03 04 00 35 B1 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1A 84 02 00 35 04 06 00 D8 [11:06:29]Write to MH i2c: E2 02 01 CF 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 58 00 00 00 F4 03 04 00 35 B1 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1A 84 02 00 35 04 06 00 D8 00 00 39 [11:06:29]Write i2c OK [11:06:29]MH_I2C_Read... [11:06:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:06:29]Read from MH i2c: E2 [11:06:29]MH_I2C_Read... [11:06:29]Read from MH i2c: E2 03 00 [11:06:29]MH_I2C_Read... [11:06:29]Read from MH i2c: E2 03 00 CF 0A 00 90 00 4D [11:06:29]RAPDU: 90 00 [11:06:29]wFMCommunicate OK [11:06:29]wFMCommunicate request_size=10 [11:06:29]MH_SAM_APDU [11:06:29]CAPDU: 80 0D 02 02 05 C3 09 21 C8 CD [11:06:29]Write to MH i2c: E2 0D 00 D0 0A 80 0D 02 02 05 00 C3 09 21 C8 CD 00 00 E0 [11:06:29]Write i2c OK [11:06:29]MH_I2C_Read... [11:06:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:06:30]Read from MH i2c: E2 [11:06:30]MH_I2C_Read... [11:06:30]Read from MH i2c: E2 03 00 [11:06:30]MH_I2C_Read... [11:06:30]Read from MH i2c: E2 03 00 D0 0A 00 90 00 4E [11:06:30]RAPDU: 90 00 [11:06:30]wFMCommunicate OK [11:06:30]wFMCommunicate request_size=4 [11:06:30]MH_SAM_APDU [11:06:30]CAPDU: 80 0D 03 02 [11:06:30]Write to MH i2c: E2 08 00 D1 0A 80 0D 03 02 00 00 00 00 56 [11:06:30]Write i2c OK [11:06:30]MH_I2C_Read... [11:06:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:06:30]Read from MH i2c: E2 [11:06:30]MH_I2C_Read... [11:06:30]Read from MH i2c: E2 0B 00 [11:06:30]MH_I2C_Read... [11:06:30]Read from MH i2c: E2 0B 00 D1 0A 00 85 3B 0F 36 27 A7 04 83 90 00 B1 [11:06:30]RAPDU: 85 3B 0F 36 27 A7 04 83 90 00 [11:06:30]wFMCommunicate OK [11:06:30]SAM_PROTO_SignData done [11:06:30]FM_MakeSignedData done [11:06:30]CreateOFDProtocolMessage [11:06:30]wFMCommunicate request_size=4 [11:06:30]MH_SAM_APDU [11:06:30]CAPDU: 80 11 00 00 [11:06:30]Write to MH i2c: E2 08 00 D2 0A 80 11 00 00 00 00 00 00 56 [11:06:30]Write i2c OK [11:06:30]MH_I2C_Read... [11:06:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:30]Read from MH i2c: E2 [11:06:30]MH_I2C_Read... [11:06:30]Read from MH i2c: E2 17 00 [11:06:30]MH_I2C_Read... [11:06:30]Read from MH i2c: E2 17 00 D2 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 AC [11:06:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:06:30]wFMCommunicate OK [11:06:30]CreateOFDProtocolMessage done [11:06:30]OFDSenderStorePacket 164890 [11:06:30]StoreOFDPacket docnum=164890 [11:06:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 05 1E 07 01 A0 BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 58 00 00 00 F4 03 04 00 35 B1 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1A 84 02 00 35 04 06 00 D8 C3 09 21 C8 CD 85 3B 0F 36 27 A7 04 83 [11:06:30]CheckFolder [11:06:30]dirname=/storage/ofd_packets [11:06:30]CheckFolder done [11:06:30]ProducePacketName [11:06:30]name=ofd_packets/00164890 [11:06:30]NVStorageSaveData ofd_packets/00164890 [11:06:30]File name is /storage/ofd_packets/00164890 [11:06:30]Write 301 bytes [11:06:30]NVStorageSaveData done [11:06:30]OFDSenderStorePacket done [11:06:30]KKMCreateOFDPacket done [11:06:30]NVStorageSaveData kkm_last_timestamp [11:06:30]File name is /storage/kkm_last_timestamp [11:06:30]Write 4 bytes [11:06:30]NVStorageSaveData done [11:06:30]ExternCall_PrintAddStr [11:06:30]wPrintStart [11:06:30]Write to MH i2c: 01 00 00 D3 0A DD [11:06:30]Write i2c OK [11:06:30]MH_I2C_Read... [11:06:30]Read from MH i2c: 01 [11:06:30]MH_I2C_Read... [11:06:30]Read from MH i2c: 01 07 00 [11:06:30]MH_I2C_Read... [11:06:30]Read from MH i2c: 01 07 00 D3 0A 00 00 00 00 00 FF 0F F2 [11:06:30]RasterBufferAndPrint [11:06:30]line Счет N : (1)458986 [11:06:30]line ИНН: 02508201610067 [11:06:30]line Контрольно-Кассовый Чек [11:06:30]line ПРОДАЖА [11:06:30]line ТРК (МРК, ГНК) : 12 [11:06:30]line Товар: 2710124130 [11:06:30]line Аи-92-К-5 [11:06:30]line 7.600 * 65.80 [11:06:30]line = 500.08 [11:06:30]line НДС 12% НСП 1% [11:06:30]line > о реализуемом товаре [11:06:30]line ОКРУГЛЕНИЕ: -0.08 [11:06:30]line ИТОГО: 500.00 [11:06:30]line Внесено: 500.00 [11:06:30]line СДАЧА: 0.00 [11:06:30]line НСП 1% : 4.42 [11:06:30]line НДС 12% : 53.11 [11:06:30]line Наличными: 500.00 [11:06:30]line Безнал.: 0.00 [11:06:30]line Место: АЗС № 72 "Партнер Нефть" [11:06:30]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:06:30]line СНО: Общий режим [11:06:30]line Чек 88 14.07.2024 11:06 [11:06:30]line Смена: 447 ФФД: 1.0 [11:06:30]line ЗНМ: 0300000160 [11:06:30]line РНМ: 0000000000090829 [11:06:30]line Версия ККМ: 001 [11:06:30]line ФМ: 0000000000874718 [11:06:30]line ФД: 164890 [11:06:30]line ФПД: 238332183431373 [11:06:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T110629&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164890&fm=238332183431373&tin=02508201610067®Number=0000000000090829&sum=50000 [11:06:30]written 0, free lines is 4095 [11:06:30]OFD Sender: Processing packet 164890 [packets to send 104, broken 103] [11:06:30]ProducePacketName [11:06:30]name=ofd_packets/00164890 [11:06:30]OFD Sender: To server: pG, [11:06:30]CommunicateWithHost lk.salyk.kg:30040 [11:06:30]ConnectInit lk.salyk.kg [11:06:30]Connected sock=11 [11:06:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 05 1E 07 01 A0 BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 58 00 00 00 F4 03 04 00 35 B1 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1A 84 02 00 35 04 06 00 D8 C3 09 21 C8 CD 85 3B 0F 36 27 A7 04 83 [11:06:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 7A CE 47 00 99 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1A 84 02 00 F4 03 04 00 C3 57 93 66 B6 04 01 00 00 EB 07 A9 5D CD FB 9E 86 [11:06:30]CommunicateWithHost err = 0 [11:06:30]CheckOFDResponse [11:06:30]1017 (14) - 77093643461234 [11:06:30]1041 (16) - 0000000000874718 [11:06:30]1040 (4) - 164890 [11:06:30]1012 (4) - 14.07.2024 04:44 [11:06:30]1206 (1) - 0 [11:06:30]OFD Sender: Remove packet 164890 [11:06:30]ProducePacketName [11:06:30]name=ofd_packets/00164890 [11:06:30]NVStorageDeleteData [11:06:30]Write to MH i2c: 01 00 00 FD 0A 07 [11:06:30]Write i2c OK [11:06:30]MH_I2C_Read... [11:06:30]Read from MH i2c: 01 [11:06:30]MH_I2C_Read... [11:06:30]Read from MH i2c: 01 07 00 [11:06:30]MH_I2C_Read... [11:06:30]Read from MH i2c: 01 07 00 FD 0A 00 00 00 00 00 FF 0C 19 [11:06:30]RasterBufferAndPrint [11:06:30]line [11:06:30]line [11:06:30]line [11:06:30]line [11:06:30]line [11:06:30]written 0, free lines is 3333 [11:06:30]MH_Cut [11:06:30]Write to MH i2c: D1 01 00 04 0B 01 E1 [11:06:30]Write i2c OK [11:06:30]MH_I2C_Read... [11:06:30]Read from MH i2c: D1 [11:06:30]MH_I2C_Read... [11:06:30]Read from MH i2c: D1 01 00 [11:06:30]MH_I2C_Read... [11:06:30]Read from MH i2c: D1 01 00 04 0B 00 E0 [11:06:30]Write to MH i2c: 01 00 00 05 0B 10 [11:06:30]Write i2c OK [11:06:30]MH_I2C_Read... [11:06:31]OFD Sender: No OFD packet to send [11:06:31]*** Cut start [11:06:31]*** Partial cut [11:06:31]*** CUTSNS_PIN = 1 [11:06:31]*** CUTSNS_PIN = 0 [11:06:31]*** Brake cut motor [11:06:32]Read from MH i2c: 01 [11:06:32]MH_I2C_Read... [11:06:32]*** Stop cut motor [11:06:32]*** Cut end [11:06:32]Read from MH i2c: 01 07 00 [11:06:32]MH_I2C_Read... [11:06:32]Read from MH i2c: 01 07 00 05 0B 00 00 00 00 00 FF 0F 25 [11:06:32]process_action close_receipt done [11:06:32]requested_data is exist [11:06:32]produce_requested_data [11:06:32]requested_item fm.sn is exist - process it [11:06:32]wFMCommunicate request_size=4 [11:06:32]MH_SAM_APDU [11:06:32]CAPDU: 80 11 00 00 [11:06:32]Write to MH i2c: E2 08 00 06 0B 80 11 00 00 00 00 00 00 8B [11:06:32]Write i2c OK [11:06:32]MH_I2C_Read... [11:06:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:32]Read from MH i2c: E2 [11:06:32]MH_I2C_Read... [11:06:32]Read from MH i2c: E2 17 00 [11:06:32]MH_I2C_Read... [11:06:32]Read from MH i2c: E2 17 00 06 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E1 [11:06:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:06:32]wFMCommunicate OK [11:06:32]requested_item fd.num is exist - process it [11:06:32]SAM_PROTO_GetFieldsCounters [11:06:32]wFMCommunicate request_size=4 [11:06:32]MH_SAM_APDU [11:06:32]CAPDU: 80 13 00 00 [11:06:32]Write to MH i2c: E2 08 00 07 0B 80 13 00 00 00 00 00 00 8E [11:06:32]Write i2c OK [11:06:32]MH_I2C_Read... [11:06:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:06:32]Read from MH i2c: E2 [11:06:32]MH_I2C_Read... [11:06:32]Read from MH i2c: E2 62 00 [11:06:32]MH_I2C_Read... [11:06:32]Read from MH i2c: E2 62 00 07 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 1A 84 02 00 0E 04 04 00 BF 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 1D [11:06:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 1A 84 02 00 0E 04 04 00 BF 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 [11:06:32]wFMCommunicate OK [11:06:32]SAM_PROTO_GetFieldsCounters done [11:06:32]requested_item shift.num is exist - process it [11:06:32]requested_item shift.opened is exist - process it [11:06:32]req_shift_opened [11:06:32]FM_GetShiftState [11:06:32]SAM_PROTO_GetShiftState [11:06:32]wFMCommunicate request_size=4 [11:06:32]MH_SAM_APDU [11:06:32]CAPDU: 80 13 01 00 [11:06:32]Write to MH i2c: E2 08 00 08 0B 80 13 01 00 00 00 00 00 90 [11:06:32]Write i2c OK [11:06:32]MH_I2C_Read... [11:06:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:32]Read from MH i2c: E2 [11:06:32]MH_I2C_Read... [11:06:32]Read from MH i2c: E2 0E 00 [11:06:32]MH_I2C_Read... [11:06:32]Read from MH i2c: E2 0E 00 08 0B 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 10 [11:06:32]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:06:32]wFMCommunicate OK [11:06:32]SAM_PROTO_GetShiftState done [11:06:32]FM_GetShiftState done [11:06:32]req_shift_opened done [11:06:32]requested_item shift.open_date is exist - process it [11:06:32]req_shift_open_date [11:06:32]req_shift_open_date done [11:06:32]produce_requested_data done [11:06:32]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164890,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [11:06:32]process_action_free close_receipt [11:06:32]json_value_free [11:06:32]json_value_free done [11:06:32]process_json_proto returns [11:06:32]Send response to host [11:06:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164890,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [11:06:32]free response buf [11:06:32]execute_script done [11:06:32]execute_script returns [11:06:32]free content buf [11:06:32]Sock 9.Close socket [11:06:32]Sock 9.Thread stoped [11:06:36]OFD Sender: No OFD packet to send [11:06:41]OFD Sender: No OFD packet to send [11:06:46]OFD Sender: No OFD packet to send [11:06:51]OFD Sender: No OFD packet to send [11:06:56]OFD Sender: No OFD packet to send [11:07:01]OFD Sender: No OFD packet to send [11:07:06]OFD Sender: No OFD packet to send [11:07:11]OFD Sender: No OFD packet to send [11:07:16]OFD Sender: No OFD packet to send [11:07:21]OFD Sender: No OFD packet to send [11:07:26]OFD Sender: No OFD packet to send [11:07:31]OFD Sender: No OFD packet to send [11:07:36]OFD Sender: No OFD packet to send [11:07:41]OFD Sender: No OFD packet to send [11:07:46]OFD Sender: No OFD packet to send [11:07:51]OFD Sender: No OFD packet to send [11:07:56]OFD Sender: No OFD packet to send [11:07:58]accept exits with 7 [11:07:58]New connection [11:07:58]New thread 3067616612 created [11:07:58]Thread 3067473252 joined [11:07:58]Waiting for new connection... [11:07:58] Sock 7.Parse request [11:07:58]Sock 7.Check first char [11:07:58]Sock 7.First char is OK [11:07:58]request: POST /json_proto HTTP/1.0 [11:07:58]Method: POST [11:07:58]URL: /json_proto [11:07:58]Method is POST - this is cgi request [11:07:58]url: /json_proto [11:07:58]query_string will be loaded in cgi processing [11:07:58]execute_cgi json_proto POST (null) [11:07:58]execute_cgi path=json_proto method=POST [11:07:58]POST find Content-Length [11:07:58]Host: 172.17.56.4:8080 [11:07:58]Content-Length: 677 [11:07:58]Content-Type: application/json [11:07:58] [11:07:58]POST finish read [11:07:58]Found Content-Length = 677 [11:07:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458987", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:07:58]execute_script... [11:07: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)458987", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:07:58]POST & json_proto [11:07:58]process_json_proto [11:07:58]json parsed OK: [11:07:58]protocol is kg_v1.0 [11:07:58]action value=close_receipt [11:07:58]process_action close_receipt [11:07:58]cmd_close_receipt [11:07:58]MH_GetDate [11:07:58]Write to MH i2c: F0 00 00 09 0B 03 [11:07:58]Write i2c OK [11:07:58]MH_I2C_Read... [11:07:58]Read from MH i2c: F0 [11:07:58]MH_I2C_Read... [11:07:58]Read from MH i2c: F0 09 00 [11:07:58]MH_I2C_Read... [11:07:58]Read from MH i2c: F0 09 00 09 0B 00 8F B1 93 66 C9 DC B2 64 00 [11:07:58]GetLastDocTimeStamp 1720955189 [11:07:58]current date 1720955279 [11:07:58]FM_GetShiftState [11:07:58]SAM_PROTO_GetShiftState [11:07:58]wFMCommunicate request_size=4 [11:07:58]MH_SAM_APDU [11:07:58]CAPDU: 80 13 01 00 [11:07:58]Write to MH i2c: E2 08 00 0A 0B 80 13 01 00 00 00 00 00 92 [11:07:58]Write i2c OK [11:07:58]MH_I2C_Read... [11:07:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:07:58]Read from MH i2c: E2 [11:07:58]MH_I2C_Read... [11:07:58]Read from MH i2c: E2 0E 00 [11:07:58]MH_I2C_Read... [11:07:58]Read from MH i2c: E2 0E 00 0A 0B 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 12 [11:07:58]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:07:58]wFMCommunicate OK [11:07:58]SAM_PROTO_GetShiftState done [11:07:58]FM_GetShiftState done [11:07:58]opened in 1720917342 [11:07:58]opened+sec_in_day 1721003742 [11:07:58]quantity*price = 30004 [11:07:58]sum+1 = 30006 [11:07:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 89 14.07.2024 11:07 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164891 ФПД: 226703741401845 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T110759&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164891&fm=226703741401845&tin=02508201610067®Number=0000000000090829&sum=30000 [11:07:59]StoreToDocumentArchive [11:07:59]shift 447 fd 164891 [11:07:59]save to /storage/0447/doc_00164891 [11:07:59]save last doc name /storage/0447/doc_00164891 to /storage/kkm_last_doc_name [11:07:59]save OK [11:07:59]Clear old archive folders... [11:07:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:07:59]tlvbuf is 0071B7F0 [11:07:59]SAM_PROTO_ClearQueue [11:07:59]wFMCommunicate request_size=4 [11:07:59]MH_SAM_APDU [11:07:59]CAPDU: 80 09 00 00 [11:07:59]Write to MH i2c: E2 08 00 17 0B 80 09 00 00 00 00 00 00 94 [11:07:59]Write i2c OK [11:07:59]MH_I2C_Read... [11:07:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:07:59]Read from MH i2c: E2 [11:07:59]MH_I2C_Read... [11:07:59]Read from MH i2c: E2 03 00 [11:07:59]MH_I2C_Read... [11:07:59]Read from MH i2c: E2 03 00 17 0B 00 90 00 96 [11:07:59]RAPDU: 90 00 [11:07:59]wFMCommunicate OK [11:07:59]SAM_PROTO_ClearQueue done [11:07:59]KKMCreateOFDPacket [11:07:59]OFDProtocolAddRootSTLVToBuf [11:07:59]FM_MakeSignedData [11:07:59]FM_MakeSignedData [11:07:59]SAM_PROTO_SignData [11:07:59]wFMCommunicate request_size=4 [11:07:59]MH_SAM_APDU [11:07:59]CAPDU: 80 0D 01 02 [11:07:59]Write to MH i2c: E2 08 00 18 0B 80 0D 01 02 00 00 00 00 9C [11:07:59]Write i2c OK [11:07:59]MH_I2C_Read... [11:07:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:07:59]Read from MH i2c: E2 [11:07:59]MH_I2C_Read... [11:07:59]Read from MH i2c: E2 03 00 [11:07:59]MH_I2C_Read... [11:07:59]Read from MH i2c: E2 03 00 18 0B 00 90 00 97 [11:07:59]RAPDU: 90 00 [11:07:59]wFMCommunicate OK [11:07:59]wFMCommunicate request_size=255 [11:07:59]MH_SAM_APDU [11:07:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 8F B1 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1B 84 02 00 35 04 06 00 CE [11:08:00]Write to MH i2c: E2 02 01 19 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 8F B1 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1B 84 02 00 35 04 06 00 CE 00 00 97 [11:08:00]Write i2c OK [11:08:00]MH_I2C_Read... [11:08:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:00]Read from MH i2c: E2 [11:08:00]MH_I2C_Read... [11:08:00]Read from MH i2c: E2 03 00 [11:08:00]MH_I2C_Read... [11:08:00]Read from MH i2c: E2 03 00 19 0B 00 90 00 98 [11:08:00]RAPDU: 90 00 [11:08:00]wFMCommunicate OK [11:08:00]wFMCommunicate request_size=10 [11:08:00]MH_SAM_APDU [11:08:00]CAPDU: 80 0D 02 02 05 2F 93 F9 BA F5 [11:08:00]Write to MH i2c: E2 0D 00 1A 0B 80 0D 02 02 05 00 2F 93 F9 BA F5 00 00 13 [11:08:00]Write i2c OK [11:08:00]MH_I2C_Read... [11:08:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:00]Read from MH i2c: E2 [11:08:00]MH_I2C_Read... [11:08:00]Read from MH i2c: E2 03 00 [11:08:00]MH_I2C_Read... [11:08:00]Read from MH i2c: E2 03 00 1A 0B 00 90 00 99 [11:08:00]RAPDU: 90 00 [11:08:00]wFMCommunicate OK [11:08:00]wFMCommunicate request_size=4 [11:08:00]MH_SAM_APDU [11:08:00]CAPDU: 80 0D 03 02 [11:08:00]Write to MH i2c: E2 08 00 1B 0B 80 0D 03 02 00 00 00 00 A1 [11:08:00]Write i2c OK [11:08:00]MH_I2C_Read... [11:08:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:08:00]Read from MH i2c: E2 [11:08:00]MH_I2C_Read... [11:08:00]Read from MH i2c: E2 0B 00 [11:08:00]MH_I2C_Read... [11:08:00]Read from MH i2c: E2 0B 00 1B 0B 00 DA 27 87 D5 BF 91 99 1A 90 00 02 [11:08:00]RAPDU: DA 27 87 D5 BF 91 99 1A 90 00 [11:08:00]wFMCommunicate OK [11:08:00]SAM_PROTO_SignData done [11:08:00]FM_MakeSignedData done [11:08:00]CreateOFDProtocolMessage [11:08:00]wFMCommunicate request_size=4 [11:08:00]MH_SAM_APDU [11:08:00]CAPDU: 80 11 00 00 [11:08:00]Write to MH i2c: E2 08 00 1C 0B 80 11 00 00 00 00 00 00 A1 [11:08:00]Write i2c OK [11:08:00]MH_I2C_Read... [11:08:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:00]Read from MH i2c: E2 [11:08:00]MH_I2C_Read... [11:08:00]Read from MH i2c: E2 17 00 [11:08:00]MH_I2C_Read... [11:08:00]Read from MH i2c: E2 17 00 1C 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F7 [11:08:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:08:00]wFMCommunicate OK [11:08:00]CreateOFDProtocolMessage done [11:08:00]OFDSenderStorePacket 164891 [11:08:00]StoreOFDPacket docnum=164891 [11:08:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 E7 1E 07 01 C0 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 8F B1 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1B 84 02 00 35 04 06 00 CE 2F 93 F9 BA F5 DA 27 87 D5 BF 91 99 1A [11:08:00]CheckFolder [11:08:00]dirname=/storage/ofd_packets [11:08:00]CheckFolder done [11:08:00]ProducePacketName [11:08:00]name=ofd_packets/00164891 [11:08:00]NVStorageSaveData ofd_packets/00164891 [11:08:00]File name is /storage/ofd_packets/00164891 [11:08:00]Write 301 bytes [11:08:00]NVStorageSaveData done [11:08:00]OFDSenderStorePacket done [11:08:00]KKMCreateOFDPacket done [11:08:00]NVStorageSaveData kkm_last_timestamp [11:08:00]File name is /storage/kkm_last_timestamp [11:08:00]Write 4 bytes [11:08:00]NVStorageSaveData done [11:08:00]ExternCall_PrintAddStr [11:08:00]wPrintStart [11:08:00]Write to MH i2c: 01 00 00 1D 0B 28 [11:08:00]Write i2c OK [11:08:00]MH_I2C_Read... [11:08:00]Read from MH i2c: 01 [11:08:00]MH_I2C_Read... [11:08:00]Read from MH i2c: 01 07 00 [11:08:00]MH_I2C_Read... [11:08:00]Read from MH i2c: 01 07 00 1D 0B 00 00 00 00 00 FF 0F 3D [11:08:00]RasterBufferAndPrint [11:08:00]line Счет N : (1)458987 [11:08:00]line ИНН: 02508201610067 [11:08:00]line Контрольно-Кассовый Чек [11:08:00]line ПРОДАЖА [11:08:00]line ТРК (МРК, ГНК) : 22 [11:08:00]line Товар: 2710124130 [11:08:00]line Аи-92-К-5 [11:08:00]line 4.560 * 65.80 [11:08:00]line = 300.05 [11:08:00]line НДС 12% НСП 1% [11:08:00]line > о реализуемом товаре [11:08:00]line ОКРУГЛЕНИЕ: -0.05 [11:08:00]line ИТОГО: 300.00 [11:08:00]line Внесено: 300.00 [11:08:00]line СДАЧА: 0.00 [11:08:00]line НСП 1% : 2.65 [11:08:00]line НДС 12% : 31.86 [11:08:00]line Наличными: 300.00 [11:08:00]line Безнал.: 0.00 [11:08:00]line Место: АЗС № 72 "Партнер Нефть" [11:08:00]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:08:00]line СНО: Общий режим [11:08:00]line Чек 89 14.07.2024 11:07 [11:08:00]line Смена: 447 ФФД: 1.0 [11:08:00]line ЗНМ: 0300000160 [11:08:00]line РНМ: 0000000000090829 [11:08:00]line Версия ККМ: 001 [11:08:00]line ФМ: 0000000000874718 [11:08:00]line ФД: 164891 [11:08:00]line ФПД: 226703741401845 [11:08:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T110759&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164891&fm=226703741401845&tin=02508201610067®Number=0000000000090829&sum=30000 [11:08:00]written 0, free lines is 4095 [11:08:00]OFD Sender: Processing packet 164891 [packets to send 104, broken 103] [11:08:00]ProducePacketName [11:08:00]name=ofd_packets/00164891 [11:08:00]OFD Sender: To server: pG, [11:08:00]CommunicateWithHost lk.salyk.kg:30040 [11:08:00]ConnectInit lk.salyk.kg [11:08:00]Connected sock=10 [11:08:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 E7 1E 07 01 C0 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 8F B1 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1B 84 02 00 35 04 06 00 CE 2F 93 F9 BA F5 DA 27 87 D5 BF 91 99 1A [11:08:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 E1 7D 47 00 66 C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1B 84 02 00 F4 03 04 00 1D 58 93 66 B6 04 01 00 00 CC FE 43 61 A5 A7 F2 E2 [11:08:01]CommunicateWithHost err = 0 [11:08:01]CheckOFDResponse [11:08:01]1017 (14) - 77093643461234 [11:08:01]1041 (16) - 0000000000874718 [11:08:01]1040 (4) - 164891 [11:08:01]1012 (4) - 14.07.2024 04:46 [11:08:01]1206 (1) - 0 [11:08:01]OFD Sender: Remove packet 164891 [11:08:01]ProducePacketName [11:08:01]name=ofd_packets/00164891 [11:08:01]NVStorageDeleteData [11:08:01]Write to MH i2c: 01 00 00 47 0B 52 [11:08:01]Write i2c OK [11:08:01]MH_I2C_Read... [11:08:01]Read from MH i2c: 01 [11:08:01]MH_I2C_Read... [11:08:01]Read from MH i2c: 01 07 00 [11:08:01]MH_I2C_Read... [11:08:01]Read from MH i2c: 01 07 00 47 0B 00 00 00 00 00 F2 0C 57 [11:08:01]RasterBufferAndPrint [11:08:01]line [11:08:01]line [11:08:01]line [11:08:01]line [11:08:01]line [11:08:01]written 0, free lines is 3320 [11:08:01]MH_Cut [11:08:01]Write to MH i2c: D1 01 00 4E 0B 01 2B [11:08:01]Write i2c OK [11:08:01]MH_I2C_Read... [11:08:01]Read from MH i2c: D1 [11:08:01]MH_I2C_Read... [11:08:01]Read from MH i2c: D1 01 00 [11:08:01]MH_I2C_Read... [11:08:01]Read from MH i2c: D1 01 00 4E 0B 00 2A [11:08:01]Write to MH i2c: 01 00 00 4F 0B 5A [11:08:01]Write i2c OK [11:08:01]MH_I2C_Read... [11:08:01]OFD Sender: No OFD packet to send [11:08:01]*** Cut start [11:08:01]*** Partial cut [11:08:01]*** CUTSNS_PIN = 1 [11:08:01]*** CUTSNS_PIN = 0 [11:08:02]*** Brake cut motor [11:08:02]Read from MH i2c: 01 [11:08:02]MH_I2C_Read... [11:08:02]*** Stop cut motor [11:08:02]*** Cut end [11:08:02]Read from MH i2c: 01 07 00 [11:08:02]MH_I2C_Read... [11:08:02]Read from MH i2c: 01 07 00 4F 0B 00 00 00 00 00 FF 0F 6F [11:08:02]process_action close_receipt done [11:08:02]requested_data is exist [11:08:02]produce_requested_data [11:08:02]requested_item fm.sn is exist - process it [11:08:02]wFMCommunicate request_size=4 [11:08:02]MH_SAM_APDU [11:08:02]CAPDU: 80 11 00 00 [11:08:02]Write to MH i2c: E2 08 00 50 0B 80 11 00 00 00 00 00 00 D5 [11:08:02]Write i2c OK [11:08:02]MH_I2C_Read... [11:08:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:02]Read from MH i2c: E2 [11:08:02]MH_I2C_Read... [11:08:02]Read from MH i2c: E2 17 00 [11:08:02]MH_I2C_Read... [11:08:02]Read from MH i2c: E2 17 00 50 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 2B [11:08:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:08:02]wFMCommunicate OK [11:08:02]requested_item fd.num is exist - process it [11:08:02]SAM_PROTO_GetFieldsCounters [11:08:02]wFMCommunicate request_size=4 [11:08:02]MH_SAM_APDU [11:08:02]CAPDU: 80 13 00 00 [11:08:02]Write to MH i2c: E2 08 00 51 0B 80 13 00 00 00 00 00 00 D8 [11:08:02]Write i2c OK [11:08:02]MH_I2C_Read... [11:08:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:08:02]Read from MH i2c: E2 [11:08:02]MH_I2C_Read... [11:08:02]Read from MH i2c: E2 62 00 [11:08:02]MH_I2C_Read... [11:08:02]Read from MH i2c: E2 62 00 51 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 1B 84 02 00 0E 04 04 00 BF 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 6B [11:08:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 1B 84 02 00 0E 04 04 00 BF 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 [11:08:02]wFMCommunicate OK [11:08:02]SAM_PROTO_GetFieldsCounters done [11:08:02]requested_item shift.num is exist - process it [11:08:02]requested_item shift.opened is exist - process it [11:08:02]req_shift_opened [11:08:02]FM_GetShiftState [11:08:02]SAM_PROTO_GetShiftState [11:08:02]wFMCommunicate request_size=4 [11:08:02]MH_SAM_APDU [11:08:02]CAPDU: 80 13 01 00 [11:08:02]Write to MH i2c: E2 08 00 52 0B 80 13 01 00 00 00 00 00 DA [11:08:02]Write i2c OK [11:08:02]MH_I2C_Read... [11:08:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:02]Read from MH i2c: E2 [11:08:02]MH_I2C_Read... [11:08:02]Read from MH i2c: E2 0E 00 [11:08:02]MH_I2C_Read... [11:08:02]Read from MH i2c: E2 0E 00 52 0B 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 5A [11:08:02]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:08:02]wFMCommunicate OK [11:08:02]SAM_PROTO_GetShiftState done [11:08:02]FM_GetShiftState done [11:08:02]req_shift_opened done [11:08:02]requested_item shift.open_date is exist - process it [11:08:02]req_shift_open_date [11:08:02]req_shift_open_date done [11:08:02]produce_requested_data done [11:08:02]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164891,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [11:08:02]process_action_free close_receipt [11:08:02]json_value_free [11:08:02]json_value_free done [11:08:02]process_json_proto returns [11:08:02]Send response to host [11:08:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164891,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [11:08:02]free response buf [11:08:02]execute_script done [11:08:02]execute_script returns [11:08:02]free content buf [11:08:02]Sock 7.Close socket [11:08:02]Sock 7.Thread stoped [11:08:06]OFD Sender: No OFD packet to send [11:08:11]OFD Sender: No OFD packet to send [11:08:16]OFD Sender: No OFD packet to send [11:08:21]OFD Sender: No OFD packet to send [11:08:26]OFD Sender: No OFD packet to send [11:08:31]OFD Sender: No OFD packet to send [11:08:36]OFD Sender: No OFD packet to send [11:08:41]OFD Sender: No OFD packet to send [11:08:46]OFD Sender: No OFD packet to send [11:08:51]OFD Sender: No OFD packet to send [11:08:56]OFD Sender: No OFD packet to send [11:09:01]OFD Sender: No OFD packet to send [11:09:06]OFD Sender: No OFD packet to send [11:09:11]OFD Sender: No OFD packet to send [11:09:16]OFD Sender: No OFD packet to send [11:09:21]OFD Sender: No OFD packet to send [11:09:26]OFD Sender: No OFD packet to send [11:09:31]OFD Sender: No OFD packet to send [11:09:36]OFD Sender: No OFD packet to send [11:09:41]OFD Sender: No OFD packet to send [11:09:46]OFD Sender: No OFD packet to send [11:09:51]accept exits with 9 [11:09:51]New connection [11:09:51]New thread 3067473252 created [11:09:51]Thread 3067616612 joined [11:09:51]Waiting for new connection... [11:09:51] Sock 9.Parse request [11:09:51]Sock 9.Check first char [11:09:51]Sock 9.First char is OK [11:09:51]request: POST /json_proto HTTP/1.0 [11:09:51]Method: POST [11:09:51]URL: /json_proto [11:09:51]Method is POST - this is cgi request [11:09:51]url: /json_proto [11:09:51]query_string will be loaded in cgi processing [11:09:51]execute_cgi json_proto POST (null) [11:09:51]execute_cgi path=json_proto method=POST [11:09:51]POST find Content-Length [11:09:51]Host: 172.17.56.4:8080 [11:09:51]Content-Length: 677 [11:09:51]Content-Type: application/json [11:09:51] [11:09:51]POST finish read [11:09:51]Found Content-Length = 677 [11:09:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458988", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:09:51]execute_script... [11:09: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)458988", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:09:51]POST & json_proto [11:09:51]process_json_proto [11:09:51]json parsed OK: [11:09:51]protocol is kg_v1.0 [11:09:51]action value=close_receipt [11:09:51]process_action close_receipt [11:09:51]cmd_close_receipt [11:09:51]MH_GetDate [11:09:51]Write to MH i2c: F0 00 00 53 0B 4D [11:09:51]OFD Sender: No OFD packet to send [11:09:51]Write i2c OK [11:09:51]MH_I2C_Read... [11:09:51]Read from MH i2c: F0 [11:09:51]MH_I2C_Read... [11:09:51]Read from MH i2c: F0 09 00 [11:09:51]MH_I2C_Read... [11:09:51]Read from MH i2c: F0 09 00 53 0B 00 00 B2 93 66 C9 DC B2 64 BC [11:09:51]GetLastDocTimeStamp 1720955279 [11:09:51]current date 1720955392 [11:09:51]FM_GetShiftState [11:09:51]SAM_PROTO_GetShiftState [11:09:51]wFMCommunicate request_size=4 [11:09:51]MH_SAM_APDU [11:09:51]CAPDU: 80 13 01 00 [11:09:51]Write to MH i2c: E2 08 00 54 0B 80 13 01 00 00 00 00 00 DC [11:09:51]Write i2c OK [11:09:51]MH_I2C_Read... [11:09:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:09:51]Read from MH i2c: E2 [11:09:51]MH_I2C_Read... [11:09:51]Read from MH i2c: E2 0E 00 [11:09:51]MH_I2C_Read... [11:09:51]Read from MH i2c: E2 0E 00 54 0B 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 5C [11:09:51]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:09:51]wFMCommunicate OK [11:09:51]SAM_PROTO_GetShiftState done [11:09:51]FM_GetShiftState done [11:09:51]opened in 1720917342 [11:09:51]opened+sec_in_day 1721003742 [11:09:51]quantity*price = 30004 [11:09:51]sum+1 = 30006 [11:09:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 90 14.07.2024 11:09 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164892 ФПД: 227743626233977 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T110952&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164892&fm=227743626233977&tin=02508201610067®Number=0000000000090829&sum=30000 [11:09:52]StoreToDocumentArchive [11:09:52]shift 447 fd 164892 [11:09:52]save to /storage/0447/doc_00164892 [11:09:52]save last doc name /storage/0447/doc_00164892 to /storage/kkm_last_doc_name [11:09:52]save OK [11:09:52]Clear old archive folders... [11:09:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:09:52]tlvbuf is 00738810 [11:09:52]SAM_PROTO_ClearQueue [11:09:52]wFMCommunicate request_size=4 [11:09:52]MH_SAM_APDU [11:09:52]CAPDU: 80 09 00 00 [11:09:52]Write to MH i2c: E2 08 00 61 0B 80 09 00 00 00 00 00 00 DE [11:09:52]Write i2c OK [11:09:52]MH_I2C_Read... [11:09:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:09:52]Read from MH i2c: E2 [11:09:52]MH_I2C_Read... [11:09:52]Read from MH i2c: E2 03 00 [11:09:52]MH_I2C_Read... [11:09:52]Read from MH i2c: E2 03 00 61 0B 00 90 00 E0 [11:09:52]RAPDU: 90 00 [11:09:52]wFMCommunicate OK [11:09:52]SAM_PROTO_ClearQueue done [11:09:52]KKMCreateOFDPacket [11:09:52]OFDProtocolAddRootSTLVToBuf [11:09:52]FM_MakeSignedData [11:09:52]FM_MakeSignedData [11:09:52]SAM_PROTO_SignData [11:09:52]wFMCommunicate request_size=4 [11:09:52]MH_SAM_APDU [11:09:52]CAPDU: 80 0D 01 02 [11:09:52]Write to MH i2c: E2 08 00 62 0B 80 0D 01 02 00 00 00 00 E6 [11:09:52]Write i2c OK [11:09:52]MH_I2C_Read... [11:09:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:09:52]Read from MH i2c: E2 [11:09:52]MH_I2C_Read... [11:09:52]Read from MH i2c: E2 03 00 [11:09:52]MH_I2C_Read... [11:09:52]Read from MH i2c: E2 03 00 62 0B 00 90 00 E1 [11:09:52]RAPDU: 90 00 [11:09:52]wFMCommunicate OK [11:09:52]wFMCommunicate request_size=255 [11:09:52]MH_SAM_APDU [11:09:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 00 B2 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1C 84 02 00 35 04 06 00 CF [11:09:52]Write to MH i2c: E2 02 01 63 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 00 B2 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1C 84 02 00 35 04 06 00 CF 00 00 56 [11:09:52]Write i2c OK [11:09:52]MH_I2C_Read... [11:09:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:09:53]Read from MH i2c: E2 [11:09:53]MH_I2C_Read... [11:09:53]Read from MH i2c: E2 03 00 [11:09:53]MH_I2C_Read... [11:09:53]Read from MH i2c: E2 03 00 63 0B 00 90 00 E2 [11:09:53]RAPDU: 90 00 [11:09:53]wFMCommunicate OK [11:09:53]wFMCommunicate request_size=10 [11:09:53]MH_SAM_APDU [11:09:53]CAPDU: 80 0D 02 02 05 21 B1 F1 08 79 [11:09:53]Write to MH i2c: E2 0D 00 64 0B 80 0D 02 02 05 00 21 B1 F1 08 79 00 00 37 [11:09:53]Write i2c OK [11:09:53]MH_I2C_Read... [11:09:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:09:53]Read from MH i2c: E2 [11:09:53]MH_I2C_Read... [11:09:53]Read from MH i2c: E2 03 00 [11:09:53]MH_I2C_Read... [11:09:53]Read from MH i2c: E2 03 00 64 0B 00 90 00 E3 [11:09:53]RAPDU: 90 00 [11:09:53]wFMCommunicate OK [11:09:53]wFMCommunicate request_size=4 [11:09:53]MH_SAM_APDU [11:09:53]CAPDU: 80 0D 03 02 [11:09:53]Write to MH i2c: E2 08 00 65 0B 80 0D 03 02 00 00 00 00 EB [11:09:53]Write i2c OK [11:09:53]MH_I2C_Read... [11:09:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:09:53]Read from MH i2c: E2 [11:09:53]MH_I2C_Read... [11:09:53]Read from MH i2c: E2 0B 00 [11:09:53]MH_I2C_Read... [11:09:53]Read from MH i2c: E2 0B 00 65 0B 00 8A BB B6 42 A6 4F A7 2D 90 00 F2 [11:09:53]RAPDU: 8A BB B6 42 A6 4F A7 2D 90 00 [11:09:53]wFMCommunicate OK [11:09:53]SAM_PROTO_SignData done [11:09:53]FM_MakeSignedData done [11:09:53]CreateOFDProtocolMessage [11:09:53]wFMCommunicate request_size=4 [11:09:53]MH_SAM_APDU [11:09:53]CAPDU: 80 11 00 00 [11:09:53]Write to MH i2c: E2 08 00 66 0B 80 11 00 00 00 00 00 00 EB [11:09:53]Write i2c OK [11:09:53]MH_I2C_Read... [11:09:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:09:53]Read from MH i2c: E2 [11:09:53]MH_I2C_Read... [11:09:53]Read from MH i2c: E2 17 00 [11:09:53]MH_I2C_Read... [11:09:53]Read from MH i2c: E2 17 00 66 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 41 [11:09:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:09:53]wFMCommunicate OK [11:09:53]CreateOFDProtocolMessage done [11:09:53]OFDSenderStorePacket 164892 [11:09:53]StoreOFDPacket docnum=164892 [11:09:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D8 3C 07 01 B1 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 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 00 B2 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1C 84 02 00 35 04 06 00 CF 21 B1 F1 08 79 8A BB B6 42 A6 4F A7 2D [11:09:53]CheckFolder [11:09:53]dirname=/storage/ofd_packets [11:09:53]CheckFolder done [11:09:53]ProducePacketName [11:09:53]name=ofd_packets/00164892 [11:09:53]NVStorageSaveData ofd_packets/00164892 [11:09:53]File name is /storage/ofd_packets/00164892 [11:09:53]Write 301 bytes [11:09:53]NVStorageSaveData done [11:09:53]OFDSenderStorePacket done [11:09:53]KKMCreateOFDPacket done [11:09:53]NVStorageSaveData kkm_last_timestamp [11:09:53]File name is /storage/kkm_last_timestamp [11:09:53]Write 4 bytes [11:09:53]NVStorageSaveData done [11:09:53]ExternCall_PrintAddStr [11:09:53]wPrintStart [11:09:53]Write to MH i2c: 01 00 00 67 0B 72 [11:09:53]Write i2c OK [11:09:53]MH_I2C_Read... [11:09:53]Read from MH i2c: 01 [11:09:53]MH_I2C_Read... [11:09:53]Read from MH i2c: 01 07 00 [11:09:53]MH_I2C_Read... [11:09:53]Read from MH i2c: 01 07 00 67 0B 00 00 00 00 00 FF 0F 87 [11:09:53]RasterBufferAndPrint [11:09:53]line Счет N : (1)458988 [11:09:53]line ИНН: 02508201610067 [11:09:53]line Контрольно-Кассовый Чек [11:09:53]line ПРОДАЖА [11:09:53]line ТРК (МРК, ГНК) : 22 [11:09:53]line Товар: 2710124130 [11:09:53]line Аи-92-К-5 [11:09:53]line 4.560 * 65.80 [11:09:53]line = 300.05 [11:09:53]line НДС 12% НСП 1% [11:09:53]line > о реализуемом товаре [11:09:53]line ОКРУГЛЕНИЕ: -0.05 [11:09:53]line ИТОГО: 300.00 [11:09:53]line Внесено: 300.00 [11:09:53]line СДАЧА: 0.00 [11:09:53]line НСП 1% : 2.65 [11:09:53]line НДС 12% : 31.86 [11:09:53]line Наличными: 300.00 [11:09:53]line Безнал.: 0.00 [11:09:53]line Место: АЗС № 72 "Партнер Нефть" [11:09:53]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:09:53]line СНО: Общий режим [11:09:53]line Чек 90 14.07.2024 11:09 [11:09:53]line Смена: 447 ФФД: 1.0 [11:09:53]line ЗНМ: 0300000160 [11:09:53]line РНМ: 0000000000090829 [11:09:53]line Версия ККМ: 001 [11:09:53]line ФМ: 0000000000874718 [11:09:53]line ФД: 164892 [11:09:53]line ФПД: 227743626233977 [11:09:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T110952&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164892&fm=227743626233977&tin=02508201610067®Number=0000000000090829&sum=30000 [11:09:53]OFD Sender: Processing packet 164892 [packets to send 104, broken 103] [11:09:53]ProducePacketName [11:09:53]name=ofd_packets/00164892 [11:09:53]OFD Sender: To server: pG, [11:09:53]CommunicateWithHost lk.salyk.kg:30040 [11:09:53]ConnectInit lk.salyk.kg [11:09:53]written 0, free lines is 4095 [11:09:53]Connected sock=10 [11:09:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D8 3C 07 01 B1 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 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 00 B2 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1C 84 02 00 35 04 06 00 CF 21 B1 F1 08 79 8A BB B6 42 A6 4F A7 2D [11:09:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 FB 9D 47 00 93 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1C 84 02 00 F4 03 04 00 8E 58 93 66 B6 04 01 00 00 20 7A D8 26 8B 9C 0C D3 [11:09:54]CommunicateWithHost err = 0 [11:09:54]CheckOFDResponse [11:09:54]1017 (14) - 77093643461234 [11:09:54]1041 (16) - 0000000000874718 [11:09:54]1040 (4) - 164892 [11:09:54]1012 (4) - 14.07.2024 04:48 [11:09:54]1206 (1) - 0 [11:09:54]OFD Sender: Remove packet 164892 [11:09:54]ProducePacketName [11:09:54]name=ofd_packets/00164892 [11:09:54]NVStorageDeleteData [11:09:54]Write to MH i2c: 01 00 00 91 0B 9C [11:09:54]Write i2c OK [11:09:54]MH_I2C_Read... [11:09:54]Read from MH i2c: 01 [11:09:54]MH_I2C_Read... [11:09:54]Read from MH i2c: 01 07 00 [11:09:54]MH_I2C_Read... [11:09:54]Read from MH i2c: 01 07 00 91 0B 00 00 00 00 00 FE 0C AD [11:09:54]RasterBufferAndPrint [11:09:54]line [11:09:54]line [11:09:54]line [11:09:54]line [11:09:54]line [11:09:54]written 0, free lines is 3332 [11:09:54]MH_Cut [11:09:54]Write to MH i2c: D1 01 00 98 0B 01 75 [11:09:54]Write i2c OK [11:09:54]MH_I2C_Read... [11:09:54]Read from MH i2c: D1 [11:09:54]MH_I2C_Read... [11:09:54]Read from MH i2c: D1 01 00 [11:09:54]MH_I2C_Read... [11:09:54]Read from MH i2c: D1 01 00 98 0B 00 74 [11:09:54]Write to MH i2c: 01 00 00 99 0B A4 [11:09:54]Write i2c OK [11:09:54]MH_I2C_Read... [11:09:54]OFD Sender: No OFD packet to send [11:09:54]*** Cut start [11:09:54]*** Partial cut [11:09:54]*** CUTSNS_PIN = 1 [11:09:54]*** CUTSNS_PIN = 0 [11:09:55]*** Brake cut motor [11:09:55]Read from MH i2c: 01 [11:09:55]MH_I2C_Read... [11:09:55]*** Stop cut motor [11:09:55]*** Cut end [11:09:55]Read from MH i2c: 01 07 00 [11:09:55]MH_I2C_Read... [11:09:55]Read from MH i2c: 01 07 00 99 0B 00 00 00 00 00 FF 0F B9 [11:09:55]process_action close_receipt done [11:09:55]requested_data is exist [11:09:55]produce_requested_data [11:09:55]requested_item fm.sn is exist - process it [11:09:55]wFMCommunicate request_size=4 [11:09:55]MH_SAM_APDU [11:09:55]CAPDU: 80 11 00 00 [11:09:55]Write to MH i2c: E2 08 00 9A 0B 80 11 00 00 00 00 00 00 1F [11:09:55]Write i2c OK [11:09:55]MH_I2C_Read... [11:09:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:09:55]Read from MH i2c: E2 [11:09:55]MH_I2C_Read... [11:09:55]Read from MH i2c: E2 17 00 [11:09:55]MH_I2C_Read... [11:09:55]Read from MH i2c: E2 17 00 9A 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 75 [11:09:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:09:55]wFMCommunicate OK [11:09:55]requested_item fd.num is exist - process it [11:09:55]SAM_PROTO_GetFieldsCounters [11:09:55]wFMCommunicate request_size=4 [11:09:55]MH_SAM_APDU [11:09:55]CAPDU: 80 13 00 00 [11:09:55]Write to MH i2c: E2 08 00 9B 0B 80 13 00 00 00 00 00 00 22 [11:09:55]Write i2c OK [11:09:55]MH_I2C_Read... [11:09:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:09:55]Read from MH i2c: E2 [11:09:55]MH_I2C_Read... [11:09:55]Read from MH i2c: E2 62 00 [11:09:55]MH_I2C_Read... [11:09:55]Read from MH i2c: E2 62 00 9B 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 1C 84 02 00 0E 04 04 00 BF 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 B9 [11:09:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 1C 84 02 00 0E 04 04 00 BF 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 [11:09:55]wFMCommunicate OK [11:09:55]SAM_PROTO_GetFieldsCounters done [11:09:55]requested_item shift.num is exist - process it [11:09:55]requested_item shift.opened is exist - process it [11:09:55]req_shift_opened [11:09:55]FM_GetShiftState [11:09:55]SAM_PROTO_GetShiftState [11:09:55]wFMCommunicate request_size=4 [11:09:55]MH_SAM_APDU [11:09:55]CAPDU: 80 13 01 00 [11:09:55]Write to MH i2c: E2 08 00 9C 0B 80 13 01 00 00 00 00 00 24 [11:09:55]Write i2c OK [11:09:55]MH_I2C_Read... [11:09:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:09:55]Read from MH i2c: E2 [11:09:55]MH_I2C_Read... [11:09:55]Read from MH i2c: E2 0E 00 [11:09:55]MH_I2C_Read... [11:09:55]Read from MH i2c: E2 0E 00 9C 0B 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 A4 [11:09:55]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:09:55]wFMCommunicate OK [11:09:55]SAM_PROTO_GetShiftState done [11:09:55]FM_GetShiftState done [11:09:55]req_shift_opened done [11:09:55]requested_item shift.open_date is exist - process it [11:09:55]req_shift_open_date [11:09:55]req_shift_open_date done [11:09:55]produce_requested_data done [11:09:55]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164892,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [11:09:55]process_action_free close_receipt [11:09:55]json_value_free [11:09:55]json_value_free done [11:09:55]process_json_proto returns [11:09:55]Send response to host [11:09:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164892,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [11:09:55]free response buf [11:09:55]execute_script done [11:09:55]execute_script returns [11:09:55]free content buf [11:09:55]Sock 9.Close socket [11:09:55]Sock 9.Thread stoped [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:24]OFD Sender: No OFD packet to send [11:11:29]OFD Sender: No OFD packet to send [11:11:33]accept exits with 7 [11:11:33]New connection [11:11:33]New thread 3067616612 created [11:11:33]Thread 3067473252 joined [11:11:33]Waiting for new connection... [11:11:33] Sock 7.Parse request [11:11:33]Sock 7.Check first char [11:11:33]Sock 7.First char is OK [11:11:33]request: POST /json_proto HTTP/1.0 [11:11:33]Method: POST [11:11:33]URL: /json_proto [11:11:33]Method is POST - this is cgi request [11:11:33]url: /json_proto [11:11:33]query_string will be loaded in cgi processing [11:11:33]execute_cgi json_proto POST (null) [11:11:33]execute_cgi path=json_proto method=POST [11:11:33]POST find Content-Length [11:11:33]Host: 172.17.56.4:8080 [11:11:33]Content-Length: 678 [11:11:33]Content-Type: application/json [11:11:33] [11:11:33]POST finish read [11:11:33]Found Content-Length = 678 [11:11:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458989", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "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" ] } } [11:11:33]execute_script... [11:11:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458989", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "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" ] } } [11:11:33]POST & json_proto [11:11:33]process_json_proto [11:11:33]json parsed OK: [11:11:33]protocol is kg_v1.0 [11:11:33]action value=close_receipt [11:11:33]process_action close_receipt [11:11:33]cmd_close_receipt [11:11:33]MH_GetDate [11:11:33]Write to MH i2c: F0 00 00 9D 0B 97 [11:11:33]Write i2c OK [11:11:33]MH_I2C_Read... [11:11:33]Read from MH i2c: F0 [11:11:33]MH_I2C_Read... [11:11:33]Read from MH i2c: F0 09 00 [11:11:33]MH_I2C_Read... [11:11:33]Read from MH i2c: F0 09 00 9D 0B 00 66 B2 93 66 C9 DC B2 64 6C [11:11:33]GetLastDocTimeStamp 1720955392 [11:11:33]current date 1720955494 [11:11:33]FM_GetShiftState [11:11:33]SAM_PROTO_GetShiftState [11:11:33]wFMCommunicate request_size=4 [11:11:33]MH_SAM_APDU [11:11:33]CAPDU: 80 13 01 00 [11:11:33]Write to MH i2c: E2 08 00 9E 0B 80 13 01 00 00 00 00 00 26 [11:11:33]Write i2c OK [11:11:33]MH_I2C_Read... [11:11:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:33]Read from MH i2c: E2 [11:11:33]MH_I2C_Read... [11:11:33]Read from MH i2c: E2 0E 00 [11:11:33]MH_I2C_Read... [11:11:33]Read from MH i2c: E2 0E 00 9E 0B 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 A6 [11:11:33]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:11:33]wFMCommunicate OK [11:11:33]SAM_PROTO_GetShiftState done [11:11:33]FM_GetShiftState done [11:11:33]opened in 1720917342 [11:11:33]opened+sec_in_day 1721003742 [11:11:33]quantity*price = 70011 [11:11:33]sum+1 = 70012 [11:11:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 91 14.07.2024 11:11 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164893 ФПД: 180020765720568 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T111134&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164893&fm=180020765720568&tin=02508201610067®Number=0000000000090829&sum=70000 [11:11:34]StoreToDocumentArchive [11:11:34]shift 447 fd 164893 [11:11:34]save to /storage/0447/doc_00164893 [11:11:34]save last doc name /storage/0447/doc_00164893 to /storage/kkm_last_doc_name [11:11:34]save OK [11:11:34]Clear old archive folders... [11:11:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:11:34]tlvbuf is 00743AC0 [11:11:34]SAM_PROTO_ClearQueue [11:11:34]wFMCommunicate request_size=4 [11:11:34]MH_SAM_APDU [11:11:34]CAPDU: 80 09 00 00 [11:11:34]Write to MH i2c: E2 08 00 AB 0B 80 09 00 00 00 00 00 00 28 [11:11:34]Write i2c OK [11:11:34]MH_I2C_Read... [11:11:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:11:34]Read from MH i2c: E2 [11:11:34]MH_I2C_Read... [11:11:34]Read from MH i2c: E2 03 00 [11:11:34]MH_I2C_Read... [11:11:34]Read from MH i2c: E2 03 00 AB 0B 00 90 00 2A [11:11:34]RAPDU: 90 00 [11:11:34]wFMCommunicate OK [11:11:34]SAM_PROTO_ClearQueue done [11:11:34]KKMCreateOFDPacket [11:11:34]OFDProtocolAddRootSTLVToBuf [11:11:34]FM_MakeSignedData [11:11:34]FM_MakeSignedData [11:11:34]SAM_PROTO_SignData [11:11:34]wFMCommunicate request_size=4 [11:11:34]MH_SAM_APDU [11:11:34]CAPDU: 80 0D 01 02 [11:11:34]Write to MH i2c: E2 08 00 AC 0B 80 0D 01 02 00 00 00 00 30 [11:11:34]Write i2c OK [11:11:34]MH_I2C_Read... [11:11:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:11:35]Read from MH i2c: E2 [11:11:35]MH_I2C_Read... [11:11:35]Read from MH i2c: E2 03 00 [11:11:35]MH_I2C_Read... [11:11:35]Read from MH i2c: E2 03 00 AC 0B 00 90 00 2B [11:11:35]RAPDU: 90 00 [11:11:35]wFMCommunicate OK [11:11:35]wFMCommunicate request_size=255 [11:11:35]MH_SAM_APDU [11:11:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 5B 00 00 00 F4 03 04 00 66 B2 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1D 84 02 00 35 04 06 00 A3 [11:11:35]Write to MH i2c: E2 02 01 AD 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 5B 00 00 00 F4 03 04 00 66 B2 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1D 84 02 00 35 04 06 00 A3 00 00 5F [11:11:35]Write i2c OK [11:11:35]MH_I2C_Read... [11:11:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:35]Read from MH i2c: E2 [11:11:35]MH_I2C_Read... [11:11:35]Read from MH i2c: E2 03 00 [11:11:35]MH_I2C_Read... [11:11:35]Read from MH i2c: E2 03 00 AD 0B 00 90 00 2C [11:11:35]RAPDU: 90 00 [11:11:35]wFMCommunicate OK [11:11:35]wFMCommunicate request_size=10 [11:11:35]MH_SAM_APDU [11:11:35]CAPDU: 80 0D 02 02 05 BA 59 CA FF F8 [11:11:35]Write to MH i2c: E2 0D 00 AE 0B 80 0D 02 02 05 00 BA 59 CA FF F8 00 00 11 [11:11:35]Write i2c OK [11:11:35]MH_I2C_Read... [11:11:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:35]Read from MH i2c: E2 [11:11:35]MH_I2C_Read... [11:11:35]Read from MH i2c: E2 03 00 [11:11:35]MH_I2C_Read... [11:11:35]Read from MH i2c: E2 03 00 AE 0B 00 90 00 2D [11:11:35]RAPDU: 90 00 [11:11:35]wFMCommunicate OK [11:11:35]wFMCommunicate request_size=4 [11:11:35]MH_SAM_APDU [11:11:35]CAPDU: 80 0D 03 02 [11:11:35]Write to MH i2c: E2 08 00 AF 0B 80 0D 03 02 00 00 00 00 35 [11:11:35]Write i2c OK [11:11:35]MH_I2C_Read... [11:11:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:11:35]Read from MH i2c: E2 [11:11:35]MH_I2C_Read... [11:11:35]Read from MH i2c: E2 0B 00 [11:11:35]MH_I2C_Read... [11:11:35]Read from MH i2c: E2 0B 00 AF 0B 00 A6 D9 71 87 6A 81 B2 73 90 00 BD [11:11:35]RAPDU: A6 D9 71 87 6A 81 B2 73 90 00 [11:11:35]wFMCommunicate OK [11:11:35]SAM_PROTO_SignData done [11:11:35]FM_MakeSignedData done [11:11:35]CreateOFDProtocolMessage [11:11:35]wFMCommunicate request_size=4 [11:11:35]MH_SAM_APDU [11:11:35]CAPDU: 80 11 00 00 [11:11:35]Write to MH i2c: E2 08 00 B0 0B 80 11 00 00 00 00 00 00 35 [11:11:35]Write i2c OK [11:11:35]MH_I2C_Read... [11:11:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:35]Read from MH i2c: E2 [11:11:35]MH_I2C_Read... [11:11:35]Read from MH i2c: E2 17 00 [11:11:35]MH_I2C_Read... [11:11:35]Read from MH i2c: E2 17 00 B0 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 8B [11:11:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:11:35]wFMCommunicate OK [11:11:35]CreateOFDProtocolMessage done [11:11:35]OFDSenderStorePacket 164893 [11:11:35]StoreOFDPacket docnum=164893 [11:11:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 96 0A 07 01 9D 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 5B 00 00 00 F4 03 04 00 66 B2 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1D 84 02 00 35 04 06 00 A3 BA 59 CA FF F8 A6 D9 71 87 6A 81 B2 73 [11:11:35]CheckFolder [11:11:35]dirname=/storage/ofd_packets [11:11:35]CheckFolder done [11:11:35]ProducePacketName [11:11:35]name=ofd_packets/00164893 [11:11:35]NVStorageSaveData ofd_packets/00164893 [11:11:35]File name is /storage/ofd_packets/00164893 [11:11:35]Write 301 bytes [11:11:35]NVStorageSaveData done [11:11:35]OFDSenderStorePacket done [11:11:35]KKMCreateOFDPacket done [11:11:35]NVStorageSaveData kkm_last_timestamp [11:11:35]File name is /storage/kkm_last_timestamp [11:11:35]Write 4 bytes [11:11:35]NVStorageSaveData done [11:11:35]ExternCall_PrintAddStr [11:11:35]wPrintStart [11:11:35]Write to MH i2c: 01 00 00 B1 0B BC [11:11:35]Write i2c OK [11:11:35]MH_I2C_Read... [11:11:35]Read from MH i2c: 01 [11:11:35]MH_I2C_Read... [11:11:35]Read from MH i2c: 01 07 00 [11:11:35]MH_I2C_Read... [11:11:35]Read from MH i2c: 01 07 00 B1 0B 00 00 00 00 00 FF 0F D1 [11:11:35]RasterBufferAndPrint [11:11:35]line Счет N : (1)458989 [11:11:35]line ИНН: 02508201610067 [11:11:35]line Контрольно-Кассовый Чек [11:11:35]line ПРОДАЖА [11:11:35]line ТРК (МРК, ГНК) : 12 [11:11:35]line Товар: 2710124130 [11:11:35]line Аи-92-К-5 [11:11:35]line 10.640 * 65.80 [11:11:35]line = 700.11 [11:11:35]line НДС 12% НСП 1% [11:11:35]line > о реализуемом товаре [11:11:35]line ОКРУГЛЕНИЕ: -0.11 [11:11:35]line ИТОГО: 700.00 [11:11:35]line Внесено: 700.00 [11:11:35]line СДАЧА: 0.00 [11:11:35]line НСП 1% : 6.20 [11:11:35]line НДС 12% : 74.35 [11:11:35]line Наличными: 700.00 [11:11:35]line Безнал.: 0.00 [11:11:35]line Место: АЗС № 72 "Партнер Нефть" [11:11:35]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:11:35]line СНО: Общий режим [11:11:35]line Чек 91 14.07.2024 11:11 [11:11:35]line Смена: 447 ФФД: 1.0 [11:11:35]line ЗНМ: 0300000160 [11:11:35]line РНМ: 0000000000090829 [11:11:35]line Версия ККМ: 001 [11:11:35]line ФМ: 0000000000874718 [11:11:35]line ФД: 164893 [11:11:35]line ФПД: 180020765720568 [11:11:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T111134&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164893&fm=180020765720568&tin=02508201610067®Number=0000000000090829&sum=70000 [11:11:35]written 0, free lines is 4095 [11:11:35]OFD Sender: Processing packet 164893 [packets to send 104, broken 103] [11:11:35]ProducePacketName [11:11:35]name=ofd_packets/00164893 [11:11:35]OFD Sender: To server: pG, [11:11:35]CommunicateWithHost lk.salyk.kg:30040 [11:11:35]ConnectInit lk.salyk.kg [11:11:35]Connected sock=10 [11:11:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 96 0A 07 01 9D 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 5B 00 00 00 F4 03 04 00 66 B2 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1D 84 02 00 35 04 06 00 A3 BA 59 CA FF F8 A6 D9 71 87 6A 81 B2 73 [11:11:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 0F 93 47 00 E0 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1D 84 02 00 F4 03 04 00 F4 58 93 66 B6 04 01 00 00 A7 C4 12 AB B8 C6 EF A6 [11:11:36]CommunicateWithHost err = 0 [11:11:36]CheckOFDResponse [11:11:36]1017 (14) - 77093643461234 [11:11:36]1041 (16) - 0000000000874718 [11:11:36]1040 (4) - 164893 [11:11:36]1012 (4) - 14.07.2024 04:49 [11:11:36]1206 (1) - 0 [11:11:36]OFD Sender: Remove packet 164893 [11:11:36]ProducePacketName [11:11:36]name=ofd_packets/00164893 [11:11:36]NVStorageDeleteData [11:11:36]Write to MH i2c: 01 00 00 DB 0B E6 [11:11:36]Write i2c OK [11:11:36]MH_I2C_Read... [11:11:36]Read from MH i2c: 01 [11:11:36]MH_I2C_Read... [11:11:36]Read from MH i2c: 01 07 00 [11:11:36]MH_I2C_Read... [11:11:36]Read from MH i2c: 01 07 00 DB 0B 00 00 00 00 00 F2 0C EB [11:11:36]RasterBufferAndPrint [11:11:36]line [11:11:36]line [11:11:36]line [11:11:36]line [11:11:36]line [11:11:36]written 0, free lines is 3320 [11:11:36]MH_Cut [11:11:36]Write to MH i2c: D1 01 00 E2 0B 01 BF [11:11:36]Write i2c OK [11:11:36]MH_I2C_Read... [11:11:36]Read from MH i2c: D1 [11:11:36]MH_I2C_Read... [11:11:36]Read from MH i2c: D1 01 00 [11:11:36]MH_I2C_Read... [11:11:36]Read from MH i2c: D1 01 00 E2 0B 00 BE [11:11:36]Write to MH i2c: 01 00 00 E3 0B EE [11:11:36]Write i2c OK [11:11:36]MH_I2C_Read... [11:11:36]OFD Sender: No OFD packet to send [11:11:36]*** Cut start [11:11:36]*** Partial cut [11:11:36]*** CUTSNS_PIN = 1 [11:11:36]*** CUTSNS_PIN = 0 [11:11:37]*** Brake cut motor [11:11:37]Read from MH i2c: 01 [11:11:37]MH_I2C_Read... [11:11:37]*** Stop cut motor [11:11:37]*** Cut end [11:11:37]Read from MH i2c: 01 07 00 [11:11:37]MH_I2C_Read... [11:11:37]Read from MH i2c: 01 07 00 E3 0B 00 00 00 00 00 FF 0F 03 [11:11:37]process_action close_receipt done [11:11:37]requested_data is exist [11:11:37]produce_requested_data [11:11:37]requested_item fm.sn is exist - process it [11:11:37]wFMCommunicate request_size=4 [11:11:37]MH_SAM_APDU [11:11:37]CAPDU: 80 11 00 00 [11:11:37]Write to MH i2c: E2 08 00 E4 0B 80 11 00 00 00 00 00 00 69 [11:11:37]Write i2c OK [11:11:37]MH_I2C_Read... [11:11:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:37]Read from MH i2c: E2 [11:11:37]MH_I2C_Read... [11:11:37]Read from MH i2c: E2 17 00 [11:11:37]MH_I2C_Read... [11:11:37]Read from MH i2c: E2 17 00 E4 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 BF [11:11:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:11:37]wFMCommunicate OK [11:11:37]requested_item fd.num is exist - process it [11:11:37]SAM_PROTO_GetFieldsCounters [11:11:37]wFMCommunicate request_size=4 [11:11:37]MH_SAM_APDU [11:11:37]CAPDU: 80 13 00 00 [11:11:37]Write to MH i2c: E2 08 00 E5 0B 80 13 00 00 00 00 00 00 6C [11:11:37]Write i2c OK [11:11:37]MH_I2C_Read... [11:11:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:11:37]Read from MH i2c: E2 [11:11:37]MH_I2C_Read... [11:11:37]Read from MH i2c: E2 62 00 [11:11:37]MH_I2C_Read... [11:11:37]Read from MH i2c: E2 62 00 E5 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 1D 84 02 00 0E 04 04 00 BF 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 07 [11:11:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 1D 84 02 00 0E 04 04 00 BF 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 [11:11:37]wFMCommunicate OK [11:11:37]SAM_PROTO_GetFieldsCounters done [11:11:37]requested_item shift.num is exist - process it [11:11:37]requested_item shift.opened is exist - process it [11:11:37]req_shift_opened [11:11:37]FM_GetShiftState [11:11:37]SAM_PROTO_GetShiftState [11:11:37]wFMCommunicate request_size=4 [11:11:37]MH_SAM_APDU [11:11:37]CAPDU: 80 13 01 00 [11:11:37]Write to MH i2c: E2 08 00 E6 0B 80 13 01 00 00 00 00 00 6E [11:11:37]Write i2c OK [11:11:37]MH_I2C_Read... [11:11:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:37]Read from MH i2c: E2 [11:11:37]MH_I2C_Read... [11:11:37]Read from MH i2c: E2 0E 00 [11:11:37]MH_I2C_Read... [11:11:37]Read from MH i2c: E2 0E 00 E6 0B 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 EE [11:11:37]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:11:37]wFMCommunicate OK [11:11:37]SAM_PROTO_GetShiftState done [11:11:37]FM_GetShiftState done [11:11:37]req_shift_opened done [11:11:37]requested_item shift.open_date is exist - process it [11:11:37]req_shift_open_date [11:11:37]req_shift_open_date done [11:11:37]produce_requested_data done [11:11:37]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164893,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [11:11:37]process_action_free close_receipt [11:11:37]json_value_free [11:11:37]json_value_free done [11:11:37]process_json_proto returns [11:11:37]Send response to host [11:11:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164893,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [11:11:37]free response buf [11:11:37]execute_script done [11:11:37]execute_script returns [11:11:37]free content buf [11:11:37]Sock 7.Close socket [11:11:37]Sock 7.Thread stoped [11:11:41]OFD Sender: No OFD packet to send [11:11:46]OFD Sender: No OFD packet to send [11:11:51]OFD Sender: No OFD packet to send [11:11:56]OFD Sender: No OFD packet to send [11:12:01]OFD Sender: No OFD packet to send [11:12:06]OFD Sender: No OFD packet to send [11:12:11]OFD Sender: No OFD packet to send [11:12:16]OFD Sender: No OFD packet to send [11:12:19]accept exits with 9 [11:12:19]New connection [11:12:19]New thread 3067473252 created [11:12:19]Thread 3067616612 joined [11:12:19]Waiting for new connection... [11:12:19] Sock 9.Parse request [11:12:19]Sock 9.Check first char [11:12:19]Sock 9.First char is OK [11:12:19]request: POST /json_proto HTTP/1.0 [11:12:19]Method: POST [11:12:19]URL: /json_proto [11:12:19]Method is POST - this is cgi request [11:12:19]url: /json_proto [11:12:19]query_string will be loaded in cgi processing [11:12:19]execute_cgi json_proto POST (null) [11:12:19]execute_cgi path=json_proto method=POST [11:12:19]POST find Content-Length [11:12:19]Host: 172.17.56.4:8080 [11:12:19]Content-Length: 640 [11:12:19]Content-Type: application/json [11:12:19] [11:12:19]POST finish read [11:12:19]Found Content-Length = 640 [11:12:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458990", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.000, "sum" : 658.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 658.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:12:19]execute_script... [11:12: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)458990", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.000, "sum" : 658.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 658.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:12:19]POST & json_proto [11:12:19]process_json_proto [11:12:19]json parsed OK: [11:12:19]protocol is kg_v1.0 [11:12:19]action value=close_receipt [11:12:19]process_action close_receipt [11:12:19]cmd_close_receipt [11:12:19]MH_GetDate [11:12:19]Write to MH i2c: F0 00 00 E7 0B E1 [11:12:19]Write i2c OK [11:12:19]MH_I2C_Read... [11:12:19]Read from MH i2c: F0 [11:12:19]MH_I2C_Read... [11:12:19]Read from MH i2c: F0 09 00 [11:12:19]MH_I2C_Read... [11:12:19]Read from MH i2c: F0 09 00 E7 0B 00 94 B2 93 66 C9 DC B2 64 E4 [11:12:19]GetLastDocTimeStamp 1720955494 [11:12:19]current date 1720955540 [11:12:19]FM_GetShiftState [11:12:19]SAM_PROTO_GetShiftState [11:12:19]wFMCommunicate request_size=4 [11:12:19]MH_SAM_APDU [11:12:19]CAPDU: 80 13 01 00 [11:12:19]Write to MH i2c: E2 08 00 E8 0B 80 13 01 00 00 00 00 00 70 [11:12:19]Write i2c OK [11:12:19]MH_I2C_Read... [11:12:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:19]Read from MH i2c: E2 [11:12:19]MH_I2C_Read... [11:12:19]Read from MH i2c: E2 0E 00 [11:12:19]MH_I2C_Read... [11:12:19]Read from MH i2c: E2 0E 00 E8 0B 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 F0 [11:12:19]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:12:19]wFMCommunicate OK [11:12:19]SAM_PROTO_GetShiftState done [11:12:19]FM_GetShiftState done [11:12:19]opened in 1720917342 [11:12:19]opened+sec_in_day 1721003742 [11:12:19]quantity*price = 65800 [11:12:19]sum+1 = 65801 [11:12:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 658.00 НСП 1% : 5.82 НДС 12% : 69.88 Наличными: 658.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 92 14.07.2024 11:12 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164894 ФПД: 198598909700885 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T111220&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164894&fm=198598909700885&tin=02508201610067®Number=0000000000090829&sum=65800 [11:12:21]StoreToDocumentArchive [11:12:21]shift 447 fd 164894 [11:12:21]save to /storage/0447/doc_00164894 [11:12:21]save last doc name /storage/0447/doc_00164894 to /storage/kkm_last_doc_name [11:12:21]save OK [11:12:21]Clear old archive folders... [11:12:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:12:21]tlvbuf is 0077A8A0 [11:12:21]SAM_PROTO_ClearQueue [11:12:21]wFMCommunicate request_size=4 [11:12:21]MH_SAM_APDU [11:12:21]CAPDU: 80 09 00 00 [11:12:21]Write to MH i2c: E2 08 00 F5 0B 80 09 00 00 00 00 00 00 72 [11:12:21]Write i2c OK [11:12:21]MH_I2C_Read... [11:12:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:12:21]Read from MH i2c: E2 [11:12:21]MH_I2C_Read... [11:12:21]Read from MH i2c: E2 03 00 [11:12:21]MH_I2C_Read... [11:12:21]Read from MH i2c: E2 03 00 F5 0B 00 90 00 74 [11:12:21]RAPDU: 90 00 [11:12:21]wFMCommunicate OK [11:12:21]SAM_PROTO_ClearQueue done [11:12:21]KKMCreateOFDPacket [11:12:21]OFDProtocolAddRootSTLVToBuf [11:12:21]FM_MakeSignedData [11:12:21]FM_MakeSignedData [11:12:21]SAM_PROTO_SignData [11:12:21]wFMCommunicate request_size=4 [11:12:21]MH_SAM_APDU [11:12:21]CAPDU: 80 0D 01 02 [11:12:21]Write to MH i2c: E2 08 00 F6 0B 80 0D 01 02 00 00 00 00 7A [11:12:21]Write i2c OK [11:12:21]MH_I2C_Read... [11:12:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:12:21]Read from MH i2c: E2 [11:12:21]MH_I2C_Read... [11:12:21]Read from MH i2c: E2 03 00 [11:12:21]MH_I2C_Read... [11:12:21]Read from MH i2c: E2 03 00 F6 0B 00 90 00 75 [11:12:21]RAPDU: 90 00 [11:12:21]wFMCommunicate OK [11:12:21]wFMCommunicate request_size=255 [11:12:21]MH_SAM_APDU [11:12:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 94 B2 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1E 84 02 00 35 04 06 00 B4 [11:12:21]Write to MH i2c: E2 02 01 F7 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 94 B2 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1E 84 02 00 35 04 06 00 B4 00 00 0E [11:12:21]Write i2c OK [11:12:21]MH_I2C_Read... [11:12:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:21]Read from MH i2c: E2 [11:12:21]MH_I2C_Read... [11:12:21]Read from MH i2c: E2 03 00 [11:12:21]MH_I2C_Read... [11:12:21]Read from MH i2c: E2 03 00 F7 0B 00 90 00 76 [11:12:21]RAPDU: 90 00 [11:12:21]wFMCommunicate OK [11:12:21]wFMCommunicate request_size=10 [11:12:21]MH_SAM_APDU [11:12:21]CAPDU: 80 0D 02 02 05 9F E9 77 2B 15 [11:12:21]Write to MH i2c: E2 0D 00 F8 0B 80 0D 02 02 05 00 9F E9 77 2B 15 00 00 C6 [11:12:21]Write i2c OK [11:12:21]MH_I2C_Read... [11:12:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:21]Read from MH i2c: E2 [11:12:21]MH_I2C_Read... [11:12:21]Read from MH i2c: E2 03 00 [11:12:21]MH_I2C_Read... [11:12:21]Read from MH i2c: E2 03 00 F8 0B 00 90 00 77 [11:12:21]RAPDU: 90 00 [11:12:21]wFMCommunicate OK [11:12:21]wFMCommunicate request_size=4 [11:12:21]MH_SAM_APDU [11:12:21]CAPDU: 80 0D 03 02 [11:12:21]Write to MH i2c: E2 08 00 F9 0B 80 0D 03 02 00 00 00 00 7F [11:12:21]Write i2c OK [11:12:21]MH_I2C_Read... [11:12:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:12:21]Read from MH i2c: E2 [11:12:21]MH_I2C_Read... [11:12:21]Read from MH i2c: E2 0B 00 [11:12:21]MH_I2C_Read... [11:12:21]Read from MH i2c: E2 0B 00 F9 0B 00 5E 0F A7 11 65 96 E5 B9 90 00 3E [11:12:21]RAPDU: 5E 0F A7 11 65 96 E5 B9 90 00 [11:12:21]wFMCommunicate OK [11:12:21]SAM_PROTO_SignData done [11:12:21]FM_MakeSignedData done [11:12:21]CreateOFDProtocolMessage [11:12:21]wFMCommunicate request_size=4 [11:12:21]MH_SAM_APDU [11:12:21]CAPDU: 80 11 00 00 [11:12:21]Write to MH i2c: E2 08 00 FA 0B 80 11 00 00 00 00 00 00 7F [11:12:21]Write i2c OK [11:12:21]MH_I2C_Read... [11:12:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:21]Read from MH i2c: E2 [11:12:21]MH_I2C_Read... [11:12:21]Read from MH i2c: E2 17 00 [11:12:21]MH_I2C_Read... [11:12:21]Read from MH i2c: E2 17 00 FA 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D5 [11:12:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:12:21]wFMCommunicate OK [11:12:21]CreateOFDProtocolMessage done [11:12:21]OFDSenderStorePacket 164894 [11:12:21]StoreOFDPacket docnum=164894 [11:12:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 36 B8 07 01 DB 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 94 B2 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1E 84 02 00 35 04 06 00 B4 9F E9 77 2B 15 5E 0F A7 11 65 96 E5 B9 [11:12:21]CheckFolder [11:12:21]dirname=/storage/ofd_packets [11:12:21]CheckFolder done [11:12:21]ProducePacketName [11:12:21]name=ofd_packets/00164894 [11:12:21]NVStorageSaveData ofd_packets/00164894 [11:12:21]File name is /storage/ofd_packets/00164894 [11:12:21]Write 301 bytes [11:12:21]NVStorageSaveData done [11:12:21]OFDSenderStorePacket done [11:12:21]KKMCreateOFDPacket done [11:12:21]NVStorageSaveData kkm_last_timestamp [11:12:21]File name is /storage/kkm_last_timestamp [11:12:21]Write 4 bytes [11:12:21]NVStorageSaveData done [11:12:21]ExternCall_PrintAddStr [11:12:21]wPrintStart [11:12:21]Write to MH i2c: 01 00 00 FB 0B 06 [11:12:21]Write i2c OK [11:12:21]MH_I2C_Read... [11:12:21]Read from MH i2c: 01 [11:12:21]MH_I2C_Read... [11:12:21]Read from MH i2c: 01 07 00 [11:12:21]MH_I2C_Read... [11:12:21]Read from MH i2c: 01 07 00 FB 0B 00 00 00 00 00 FF 0F 1B [11:12:21]RasterBufferAndPrint [11:12:21]line Счет N : (1)458990 [11:12:21]line ИНН: 02508201610067 [11:12:21]line Контрольно-Кассовый Чек [11:12:21]line ПРОДАЖА [11:12:21]line ТРК (МРК, ГНК) : 12 [11:12:21]line Товар: 2710124130 [11:12:21]line Аи-92-К-5 [11:12:21]line 10.000 * 65.80 [11:12:21]line = 658.00 [11:12:21]line НДС 12% НСП 1% [11:12:21]line > о реализуемом товаре [11:12:21]line ИТОГО: 658.00 [11:12:21]line НСП 1% : 5.82 [11:12:21]line НДС 12% : 69.88 [11:12:21]line Наличными: 658.00 [11:12:21]line Безнал.: 0.00 [11:12:21]line Место: АЗС № 72 "Партнер Нефть" [11:12:21]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:12:21]line СНО: Общий режим [11:12:21]line Чек 92 14.07.2024 11:12 [11:12:21]line Смена: 447 ФФД: 1.0 [11:12:21]line ЗНМ: 0300000160 [11:12:21]line РНМ: 0000000000090829 [11:12:21]line Версия ККМ: 001 [11:12:21]line ФМ: 0000000000874718 [11:12:21]line ФД: 164894 [11:12:21]line ФПД: 198598909700885 [11:12:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T111220&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164894&fm=198598909700885&tin=02508201610067®Number=0000000000090829&sum=65800 [11:12:21]written 0, free lines is 4095 [11:12:21]OFD Sender: Processing packet 164894 [packets to send 104, broken 103] [11:12:21]ProducePacketName [11:12:21]name=ofd_packets/00164894 [11:12:21]OFD Sender: To server: pG, [11:12:21]CommunicateWithHost lk.salyk.kg:30040 [11:12:21]ConnectInit lk.salyk.kg [11:12:22]Connected sock=10 [11:12:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 36 B8 07 01 DB 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 94 B2 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1E 84 02 00 35 04 06 00 B4 9F E9 77 2B 15 5E 0F A7 11 65 96 E5 B9 [11:12:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 11 6F 47 00 E3 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 38 37 34 37 31 38 10 04 04 00 1E 84 02 00 F4 03 04 00 22 59 93 66 B6 04 01 00 00 E9 F5 05 EF EF 53 9B 13 [11:12:22]CommunicateWithHost err = 0 [11:12:22]CheckOFDResponse [11:12:22]1017 (14) - 77093643461234 [11:12:22]1041 (16) - 0000000000874718 [11:12:22]1040 (4) - 164894 [11:12:22]1012 (4) - 14.07.2024 04:50 [11:12:22]1206 (1) - 0 [11:12:22]OFD Sender: Remove packet 164894 [11:12:22]ProducePacketName [11:12:22]name=ofd_packets/00164894 [11:12:22]NVStorageDeleteData [11:12:22]Write to MH i2c: 01 00 00 22 0C 2E [11:12:22]Write i2c OK [11:12:22]MH_I2C_Read... [11:12:22]Read from MH i2c: 01 [11:12:22]MH_I2C_Read... [11:12:22]Read from MH i2c: 01 07 00 [11:12:22]MH_I2C_Read... [11:12:22]Read from MH i2c: 01 07 00 22 0C 00 00 00 00 00 20 0D 62 [11:12:22]RasterBufferAndPrint [11:12:22]line [11:12:22]line [11:12:22]line [11:12:22]line [11:12:22]line [11:12:22]written 0, free lines is 3366 [11:12:22]MH_Cut [11:12:22]Write to MH i2c: D1 01 00 29 0C 01 07 [11:12:22]Write i2c OK [11:12:22]MH_I2C_Read... [11:12:22]Read from MH i2c: D1 [11:12:22]MH_I2C_Read... [11:12:22]Read from MH i2c: D1 01 00 [11:12:22]MH_I2C_Read... [11:12:22]Read from MH i2c: D1 01 00 29 0C 00 06 [11:12:22]Write to MH i2c: 01 00 00 2A 0C 36 [11:12:22]Write i2c OK [11:12:22]MH_I2C_Read... [11:12:22]OFD Sender: No OFD packet to send [11:12:23]*** Cut start [11:12:23]*** Partial cut [11:12:23]*** CUTSNS_PIN = 1 [11:12:23]*** CUTSNS_PIN = 0 [11:12:23]*** Brake cut motor [11:12:23]Read from MH i2c: 01 [11:12:23]MH_I2C_Read... [11:12:23]*** Stop cut motor [11:12:23]*** Cut end [11:12:23]Read from MH i2c: 01 07 00 [11:12:23]MH_I2C_Read... [11:12:23]Read from MH i2c: 01 07 00 2A 0C 00 00 00 00 00 FF 0F 4B [11:12:23]process_action close_receipt done [11:12:23]requested_data is exist [11:12:23]produce_requested_data [11:12:23]requested_item fm.sn is exist - process it [11:12:23]wFMCommunicate request_size=4 [11:12:23]MH_SAM_APDU [11:12:23]CAPDU: 80 11 00 00 [11:12:23]Write to MH i2c: E2 08 00 2B 0C 80 11 00 00 00 00 00 00 B1 [11:12:23]Write i2c OK [11:12:23]MH_I2C_Read... [11:12:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:23]Read from MH i2c: E2 [11:12:23]MH_I2C_Read... [11:12:23]Read from MH i2c: E2 17 00 [11:12:23]MH_I2C_Read... [11:12:23]Read from MH i2c: E2 17 00 2B 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 07 [11:12:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:12:23]wFMCommunicate OK [11:12:23]requested_item fd.num is exist - process it [11:12:23]SAM_PROTO_GetFieldsCounters [11:12:23]wFMCommunicate request_size=4 [11:12:23]MH_SAM_APDU [11:12:23]CAPDU: 80 13 00 00 [11:12:23]Write to MH i2c: E2 08 00 2C 0C 80 13 00 00 00 00 00 00 B4 [11:12:23]Write i2c OK [11:12:23]MH_I2C_Read... [11:12:23]Read from MH i2c: E2 [11:12:23]MH_I2C_Read... [11:12:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:12:23]Read from MH i2c: E2 62 00 [11:12:23]MH_I2C_Read... [11:12:23]Read from MH i2c: E2 62 00 2C 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 1E 84 02 00 0E 04 04 00 BF 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 53 [11:12:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 1E 84 02 00 0E 04 04 00 BF 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 [11:12:23]wFMCommunicate OK [11:12:23]SAM_PROTO_GetFieldsCounters done [11:12:23]requested_item shift.num is exist - process it [11:12:23]requested_item shift.opened is exist - process it [11:12:23]req_shift_opened [11:12:23]FM_GetShiftState [11:12:23]SAM_PROTO_GetShiftState [11:12:23]wFMCommunicate request_size=4 [11:12:23]MH_SAM_APDU [11:12:23]CAPDU: 80 13 01 00 [11:12:23]Write to MH i2c: E2 08 00 2D 0C 80 13 01 00 00 00 00 00 B6 [11:12:23]Write i2c OK [11:12:23]MH_I2C_Read... [11:12:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:23]Read from MH i2c: E2 [11:12:23]MH_I2C_Read... [11:12:23]Read from MH i2c: E2 0E 00 [11:12:23]MH_I2C_Read... [11:12:23]Read from MH i2c: E2 0E 00 2D 0C 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 36 [11:12:23]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:12:23]wFMCommunicate OK [11:12:23]SAM_PROTO_GetShiftState done [11:12:23]FM_GetShiftState done [11:12:23]req_shift_opened done [11:12:23]requested_item shift.open_date is exist - process it [11:12:23]req_shift_open_date [11:12:23]req_shift_open_date done [11:12:23]produce_requested_data done [11:12:23]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164894,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [11:12:23]process_action_free close_receipt [11:12:23]json_value_free [11:12:23]json_value_free done [11:12:23]process_json_proto returns [11:12:23]Send response to host [11:12:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164894,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [11:12:23]free response buf [11:12:23]execute_script done [11:12:23]execute_script returns [11:12:23]free content buf [11:12:23]Sock 9.Close socket [11:12:23]Sock 9.Thread stoped [11:12:27]OFD Sender: No OFD packet to send [11:12:32]OFD Sender: No OFD packet to send [11:12:37]OFD Sender: No OFD packet to send [11:12:42]OFD Sender: No OFD packet to send [11:12:47]OFD Sender: No OFD packet to send [11:12:52]OFD Sender: No OFD packet to send [11:12:57]OFD Sender: No OFD packet to send [11:13:01]accept exits with 7 [11:13:01]New connection [11:13:01]New thread 3067616612 created [11:13:01]Thread 3067473252 joined [11:13:01]Waiting for new connection... [11:13:01] Sock 7.Parse request [11:13:01]Sock 7.Check first char [11:13:01]Sock 7.First char is OK [11:13:01]request: POST /json_proto HTTP/1.0 [11:13:01]Method: POST [11:13:01]URL: /json_proto [11:13:01]Method is POST - this is cgi request [11:13:01]url: /json_proto [11:13:01]query_string will be loaded in cgi processing [11:13:01]execute_cgi json_proto POST (null) [11:13:01]execute_cgi path=json_proto method=POST [11:13:01]POST find Content-Length [11:13:01]Host: 172.17.56.4:8080 [11:13:01]Content-Length: 677 [11:13:01]Content-Type: application/json [11:13:01] [11:13:01]POST finish read [11:13:01]Found Content-Length = 677 [11:13:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458991", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.200, "sum" : 342.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 342.00, "total" : 342.00, "payments": [ { "type": 0, "sum" : 342.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:01]execute_script... [11:13:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458991", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.200, "sum" : 342.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 342.00, "total" : 342.00, "payments": [ { "type": 0, "sum" : 342.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:01]POST & json_proto [11:13:01]process_json_proto [11:13:01]json parsed OK: [11:13:01]protocol is kg_v1.0 [11:13:01]action value=close_receipt [11:13:01]process_action close_receipt [11:13:01]cmd_close_receipt [11:13:01]MH_GetDate [11:13:01]Write to MH i2c: F0 00 00 2E 0C 29 [11:13:01]Write i2c OK [11:13:01]MH_I2C_Read... [11:13:01]Read from MH i2c: F0 [11:13:01]MH_I2C_Read... [11:13:01]Read from MH i2c: F0 09 00 [11:13:01]MH_I2C_Read... [11:13:01]Read from MH i2c: F0 09 00 2E 0C 00 BE B2 93 66 C9 DC B2 64 56 [11:13:01]GetLastDocTimeStamp 1720955540 [11:13:01]current date 1720955582 [11:13:01]FM_GetShiftState [11:13:01]SAM_PROTO_GetShiftState [11:13:01]wFMCommunicate request_size=4 [11:13:01]MH_SAM_APDU [11:13:01]CAPDU: 80 13 01 00 [11:13:01]Write to MH i2c: E2 08 00 2F 0C 80 13 01 00 00 00 00 00 B8 [11:13:01]Write i2c OK [11:13:01]MH_I2C_Read... [11:13:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:01]Read from MH i2c: E2 [11:13:01]MH_I2C_Read... [11:13:01]Read from MH i2c: E2 0E 00 [11:13:01]MH_I2C_Read... [11:13:01]Read from MH i2c: E2 0E 00 2F 0C 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 38 [11:13:01]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:13:01]wFMCommunicate OK [11:13:01]SAM_PROTO_GetShiftState done [11:13:01]FM_GetShiftState done [11:13:01]opened in 1720917342 [11:13:01]opened+sec_in_day 1721003742 [11:13:01]quantity*price = 34216 [11:13:01]sum+1 = 34217 [11:13:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 342.00 Внесено: 342.00 СДАЧА: 0.00 НСП 1% : 3.03 НДС 12% : 36.34 Наличными: 342.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 93 14.07.2024 11:13 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164895 ФПД: 24537213707526 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T111302&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164895&fm=24537213707526&tin=02508201610067®Number=0000000000090829&sum=34200 [11:13:03]StoreToDocumentArchive [11:13:03]shift 447 fd 164895 [11:13:03]save to /storage/0447/doc_00164895 [11:13:03]save last doc name /storage/0447/doc_00164895 to /storage/kkm_last_doc_name [11:13:03]save OK [11:13:03]Clear old archive folders... [11:13:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:13:03]tlvbuf is 00743780 [11:13:03]SAM_PROTO_ClearQueue [11:13:03]wFMCommunicate request_size=4 [11:13:03]MH_SAM_APDU [11:13:03]CAPDU: 80 09 00 00 [11:13:03]Write to MH i2c: E2 08 00 3C 0C 80 09 00 00 00 00 00 00 BA [11:13:03]Write i2c OK [11:13:03]MH_I2C_Read... [11:13:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:13:03]Read from MH i2c: E2 [11:13:03]MH_I2C_Read... [11:13:03]Read from MH i2c: E2 03 00 [11:13:03]MH_I2C_Read... [11:13:03]Read from MH i2c: E2 03 00 3C 0C 00 90 00 BC [11:13:03]RAPDU: 90 00 [11:13:03]wFMCommunicate OK [11:13:03]SAM_PROTO_ClearQueue done [11:13:03]KKMCreateOFDPacket [11:13:03]OFDProtocolAddRootSTLVToBuf [11:13:03]FM_MakeSignedData [11:13:03]FM_MakeSignedData [11:13:03]SAM_PROTO_SignData [11:13:03]wFMCommunicate request_size=4 [11:13:03]MH_SAM_APDU [11:13:03]CAPDU: 80 0D 01 02 [11:13:03]Write to MH i2c: E2 08 00 3D 0C 80 0D 01 02 00 00 00 00 C2 [11:13:03]Write i2c OK [11:13:03]MH_I2C_Read... [11:13:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:13:03]Read from MH i2c: E2 [11:13:03]MH_I2C_Read... [11:13:03]Read from MH i2c: E2 03 00 [11:13:03]MH_I2C_Read... [11:13:03]Read from MH i2c: E2 03 00 3D 0C 00 90 00 BD [11:13:03]RAPDU: 90 00 [11:13:03]wFMCommunicate OK [11:13:03]wFMCommunicate request_size=255 [11:13:03]MH_SAM_APDU [11: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 35 FF 03 08 00 03 50 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 A8 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 85 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 0E 00 00 00 00 07 04 06 00 98 85 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 00 00 00 F4 03 04 00 BE B2 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1F 84 02 00 35 04 06 00 16 [11:13:03]Write to MH i2c: E2 02 01 3E 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 A8 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 85 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 0E 00 00 00 00 07 04 06 00 98 85 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 00 00 00 F4 03 04 00 BE B2 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1F 84 02 00 35 04 06 00 16 00 00 1B [11:13:03]Write i2c OK [11:13:03]MH_I2C_Read... [11:13:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:03]Read from MH i2c: E2 [11:13:03]MH_I2C_Read... [11:13:03]Read from MH i2c: E2 03 00 [11:13:03]MH_I2C_Read... [11:13:03]Read from MH i2c: E2 03 00 3E 0C 00 90 00 BE [11:13:03]RAPDU: 90 00 [11:13:03]wFMCommunicate OK [11:13:03]wFMCommunicate request_size=10 [11:13:03]MH_SAM_APDU [11:13:03]CAPDU: 80 0D 02 02 05 51 03 E8 25 06 [11:13:03]Write to MH i2c: E2 0D 00 3F 0C 80 0D 02 02 05 00 51 03 E8 25 06 00 00 36 [11:13:03]Write i2c OK [11:13:03]MH_I2C_Read... [11:13:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:03]Read from MH i2c: E2 [11:13:03]MH_I2C_Read... [11:13:03]Read from MH i2c: E2 03 00 [11:13:03]MH_I2C_Read... [11:13:03]Read from MH i2c: E2 03 00 3F 0C 00 90 00 BF [11:13:03]RAPDU: 90 00 [11:13:03]wFMCommunicate OK [11:13:03]wFMCommunicate request_size=4 [11:13:03]MH_SAM_APDU [11:13:03]CAPDU: 80 0D 03 02 [11:13:03]Write to MH i2c: E2 08 00 40 0C 80 0D 03 02 00 00 00 00 C7 [11:13:03]Write i2c OK [11:13:03]MH_I2C_Read... [11:13:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:13:03]Read from MH i2c: E2 [11:13:03]MH_I2C_Read... [11:13:03]Read from MH i2c: E2 0B 00 [11:13:03]MH_I2C_Read... [11:13:03]Read from MH i2c: E2 0B 00 40 0C 00 90 6F 49 46 EA 6C 17 3B 90 00 FE [11:13:03]RAPDU: 90 6F 49 46 EA 6C 17 3B 90 00 [11:13:03]wFMCommunicate OK [11:13:03]SAM_PROTO_SignData done [11:13:03]FM_MakeSignedData done [11:13:03]CreateOFDProtocolMessage [11:13:03]wFMCommunicate request_size=4 [11:13:03]MH_SAM_APDU [11:13:03]CAPDU: 80 11 00 00 [11:13:03]Write to MH i2c: E2 08 00 41 0C 80 11 00 00 00 00 00 00 C7 [11:13:03]Write i2c OK [11:13:03]MH_I2C_Read... [11:13:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:03]Read from MH i2c: E2 [11:13:03]MH_I2C_Read... [11:13:03]Read from MH i2c: E2 17 00 [11:13:03]MH_I2C_Read... [11:13:03]Read from MH i2c: E2 17 00 41 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 1D [11:13:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:13:03]wFMCommunicate OK [11:13:03]CreateOFDProtocolMessage done [11:13:03]OFDSenderStorePacket 164895 [11:13:03]StoreOFDPacket docnum=164895 [11:13:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 7E 21 07 01 B8 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 A8 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 85 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 0E 00 00 00 00 07 04 06 00 98 85 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 00 00 00 F4 03 04 00 BE B2 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1F 84 02 00 35 04 06 00 16 51 03 E8 25 06 90 6F 49 46 EA 6C 17 3B [11:13:03]CheckFolder [11:13:03]dirname=/storage/ofd_packets [11:13:03]CheckFolder done [11:13:03]ProducePacketName [11:13:03]name=ofd_packets/00164895 [11:13:03]NVStorageSaveData ofd_packets/00164895 [11:13:03]File name is /storage/ofd_packets/00164895 [11:13:03]Write 301 bytes [11:13:03]NVStorageSaveData done [11:13:03]OFDSenderStorePacket done [11:13:03]KKMCreateOFDPacket done [11:13:03]NVStorageSaveData kkm_last_timestamp [11:13:03]File name is /storage/kkm_last_timestamp [11:13:03]Write 4 bytes [11:13:03]NVStorageSaveData done [11:13:03]ExternCall_PrintAddStr [11:13:03]wPrintStart [11:13:03]Write to MH i2c: 01 00 00 42 0C 4E [11:13:03]Write i2c OK [11:13:03]MH_I2C_Read... [11:13:03]Read from MH i2c: 01 [11:13:03]MH_I2C_Read... [11:13:03]Read from MH i2c: 01 07 00 [11:13:03]MH_I2C_Read... [11:13:03]Read from MH i2c: 01 07 00 42 0C 00 00 00 00 00 FF 0F 63 [11:13:03]RasterBufferAndPrint [11:13:03]line Счет N : (1)458991 [11:13:03]line ИНН: 02508201610067 [11:13:03]line Контрольно-Кассовый Чек [11:13:03]line ПРОДАЖА [11:13:03]line ТРК (МРК, ГНК) : 12 [11:13:03]line Товар: 2710124130 [11:13:03]line Аи-92-К-5 [11:13:03]line 5.200 * 65.80 [11:13:03]line = 342.16 [11:13:03]line НДС 12% НСП 1% [11:13:03]line > о реализуемом товаре [11:13:03]line ОКРУГЛЕНИЕ: -0.16 [11:13:03]line ИТОГО: 342.00 [11:13:03]line Внесено: 342.00 [11:13:03]line СДАЧА: 0.00 [11:13:03]line НСП 1% : 3.03 [11:13:03]line НДС 12% : 36.34 [11:13:03]line Наличными: 342.00 [11:13:03]line Безнал.: 0.00 [11:13:03]line Место: АЗС № 72 "Партнер Нефть" [11:13:03]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:13:03]line СНО: Общий режим [11:13:03]line Чек 93 14.07.2024 11:13 [11:13:03]line Смена: 447 ФФД: 1.0 [11:13:03]line ЗНМ: 0300000160 [11:13:03]line РНМ: 0000000000090829 [11:13:03]line Версия ККМ: 001 [11:13:03]line ФМ: 0000000000874718 [11:13:03]line ФД: 164895 [11:13:03]line ФПД: 24537213707526 [11:13:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T111302&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164895&fm=24537213707526&tin=02508201610067®Number=0000000000090829&sum=34200 [11:13:03]written 0, free lines is 4095 [11:13:03]OFD Sender: Processing packet 164895 [packets to send 104, broken 103] [11:13:03]ProducePacketName [11:13:03]name=ofd_packets/00164895 [11:13:03]OFD Sender: To server: pG, [11:13:03]CommunicateWithHost lk.salyk.kg:30040 [11:13:03]ConnectInit lk.salyk.kg [11:13:04]Connected sock=10 [11:13:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 7E 21 07 01 B8 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 A8 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 85 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 0E 00 00 00 00 07 04 06 00 98 85 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 00 00 00 F4 03 04 00 BE B2 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1F 84 02 00 35 04 06 00 16 51 03 E8 25 06 90 6F 49 46 EA 6C 17 3B [11:13:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 38 2F 47 00 84 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1F 84 02 00 F4 03 04 00 4C 59 93 66 B6 04 01 00 00 50 16 AC D2 54 BE FD DF [11:13:04]CommunicateWithHost err = 0 [11:13:04]CheckOFDResponse [11:13:04]1017 (14) - 77093643461234 [11:13:04]1041 (16) - 0000000000874718 [11:13:04]1040 (4) - 164895 [11:13:04]1012 (4) - 14.07.2024 04:51 [11:13:04]1206 (1) - 0 [11:13:04]OFD Sender: Remove packet 164895 [11:13:04]ProducePacketName [11:13:04]name=ofd_packets/00164895 [11:13:04]NVStorageDeleteData [11:13:04]Write to MH i2c: 01 00 00 6C 0C 78 [11:13:04]Write i2c OK [11:13:04]MH_I2C_Read... [11:13:04]Read from MH i2c: 01 [11:13:04]MH_I2C_Read... [11:13:04]Read from MH i2c: 01 07 00 [11:13:04]MH_I2C_Read... [11:13:04]Read from MH i2c: 01 07 00 6C 0C 00 00 00 00 00 F2 0C 7D [11:13:04]RasterBufferAndPrint [11:13:04]line [11:13:04]line [11:13:04]line [11:13:04]line [11:13:04]line [11:13:04]written 0, free lines is 3322 [11:13:04]MH_Cut [11:13:04]Write to MH i2c: D1 01 00 73 0C 01 51 [11:13:04]Write i2c OK [11:13:04]MH_I2C_Read... [11:13:04]Read from MH i2c: D1 [11:13:04]MH_I2C_Read... [11:13:04]Read from MH i2c: D1 01 00 [11:13:04]MH_I2C_Read... [11:13:04]Read from MH i2c: D1 01 00 73 0C 00 50 [11:13:04]Write to MH i2c: 01 00 00 74 0C 80 [11:13:04]Write i2c OK [11:13:04]MH_I2C_Read... [11:13:04]OFD Sender: No OFD packet to send [11:13:05]*** Cut start [11:13:05]*** Partial cut [11:13:05]*** CUTSNS_PIN = 1 [11:13:05]*** CUTSNS_PIN = 0 [11:13:05]*** Brake cut motor [11:13:05]Read from MH i2c: 01 [11:13:05]MH_I2C_Read... [11:13:05]*** Stop cut motor [11:13:05]*** Cut end [11:13:05]Read from MH i2c: 01 07 00 [11:13:05]MH_I2C_Read... [11:13:05]Read from MH i2c: 01 07 00 74 0C 00 00 00 00 00 FF 0F 95 [11:13:05]process_action close_receipt done [11:13:05]requested_data is exist [11:13:05]produce_requested_data [11:13:05]requested_item fm.sn is exist - process it [11:13:05]wFMCommunicate request_size=4 [11:13:05]MH_SAM_APDU [11:13:05]CAPDU: 80 11 00 00 [11:13:05]Write to MH i2c: E2 08 00 75 0C 80 11 00 00 00 00 00 00 FB [11:13:05]Write i2c OK [11:13:05]MH_I2C_Read... [11:13:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:05]Read from MH i2c: E2 [11:13:05]MH_I2C_Read... [11:13:05]Read from MH i2c: E2 17 00 [11:13:05]MH_I2C_Read... [11:13:05]Read from MH i2c: E2 17 00 75 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 51 [11:13:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:13:05]wFMCommunicate OK [11:13:05]requested_item fd.num is exist - process it [11:13:05]SAM_PROTO_GetFieldsCounters [11:13:05]wFMCommunicate request_size=4 [11:13:05]MH_SAM_APDU [11:13:05]CAPDU: 80 13 00 00 [11:13:05]Write to MH i2c: E2 08 00 76 0C 80 13 00 00 00 00 00 00 FE [11:13:05]Write i2c OK [11:13:05]MH_I2C_Read... [11:13:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:13:05]Read from MH i2c: E2 [11:13:05]MH_I2C_Read... [11:13:05]Read from MH i2c: E2 62 00 [11:13:05]MH_I2C_Read... [11:13:05]Read from MH i2c: E2 62 00 76 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 1F 84 02 00 0E 04 04 00 BF 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 A1 [11:13:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 1F 84 02 00 0E 04 04 00 BF 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 [11:13:05]wFMCommunicate OK [11:13:05]SAM_PROTO_GetFieldsCounters done [11:13:05]requested_item shift.num is exist - process it [11:13:05]requested_item shift.opened is exist - process it [11:13:05]req_shift_opened [11:13:05]FM_GetShiftState [11:13:05]SAM_PROTO_GetShiftState [11:13:05]wFMCommunicate request_size=4 [11:13:05]MH_SAM_APDU [11:13:05]CAPDU: 80 13 01 00 [11:13:05]Write to MH i2c: E2 08 00 77 0C 80 13 01 00 00 00 00 00 00 [11:13:05]Write i2c OK [11:13:05]MH_I2C_Read... [11:13:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:05]Read from MH i2c: E2 [11:13:05]MH_I2C_Read... [11:13:05]Read from MH i2c: E2 0E 00 [11:13:05]MH_I2C_Read... [11:13:05]Read from MH i2c: E2 0E 00 77 0C 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 80 [11:13:05]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:13:05]wFMCommunicate OK [11:13:05]SAM_PROTO_GetShiftState done [11:13:05]FM_GetShiftState done [11:13:05]req_shift_opened done [11:13:05]requested_item shift.open_date is exist - process it [11:13:05]req_shift_open_date [11:13:05]req_shift_open_date done [11:13:05]produce_requested_data done [11:13:05]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164895,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [11:13:05]process_action_free close_receipt [11:13:05]json_value_free [11:13:05]json_value_free done [11:13:05]process_json_proto returns [11:13:05]Send response to host [11:13:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164895,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [11:13:05]free response buf [11:13:05]execute_script done [11:13:05]execute_script returns [11:13:05]free content buf [11:13:05]Sock 7.Close socket [11:13:05]Sock 7.Thread stoped [11:13:09]accept exits with 9 [11:13:09]New connection [11:13:09]New thread 3067473252 created [11:13:09]Thread 3067616612 joined [11:13:09]Waiting for new connection... [11:13:09] Sock 9.Parse request [11:13:09]Sock 9.Check first char [11:13:09]Sock 9.First char is OK [11:13:09]request: POST /json_proto HTTP/1.0 [11:13:09]Method: POST [11:13:09]URL: /json_proto [11:13:09]Method is POST - this is cgi request [11:13:09]url: /json_proto [11:13:09]query_string will be loaded in cgi processing [11:13:09]execute_cgi json_proto POST (null) [11:13:09]execute_cgi path=json_proto method=POST [11:13:09]POST find Content-Length [11:13:09]Host: 172.17.56.4:8080 [11:13:09]Content-Length: 678 [11:13:09]Content-Type: application/json [11:13:09] [11:13:09]POST finish read [11:13:09]Found Content-Length = 678 [11:13:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458992", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.040, "sum" : 660.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 660.00, "total" : 660.00, "payments": [ { "type": 0, "sum" : 660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:09]execute_script... [11: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)458992", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.040, "sum" : 660.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 660.00, "total" : 660.00, "payments": [ { "type": 0, "sum" : 660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:09]POST & json_proto [11:13:09]process_json_proto [11:13:09]json parsed OK: [11:13:09]protocol is kg_v1.0 [11:13:09]action value=close_receipt [11:13:09]process_action close_receipt [11:13:09]cmd_close_receipt [11:13:09]MH_GetDate [11:13:09]Write to MH i2c: F0 00 00 78 0C 73 [11:13:09]Write i2c OK [11:13:09]MH_I2C_Read... [11:13:09]Read from MH i2c: F0 [11:13:09]MH_I2C_Read... [11:13:09]Read from MH i2c: F0 09 00 [11:13:09]MH_I2C_Read... [11:13:09]Read from MH i2c: F0 09 00 78 0C 00 C6 B2 93 66 C9 DC B2 64 A8 [11:13:09]GetLastDocTimeStamp 1720955582 [11:13:09]current date 1720955590 [11:13:09]FM_GetShiftState [11:13:09]SAM_PROTO_GetShiftState [11:13:09]wFMCommunicate request_size=4 [11:13:09]MH_SAM_APDU [11:13:09]CAPDU: 80 13 01 00 [11:13:09]Write to MH i2c: E2 08 00 79 0C 80 13 01 00 00 00 00 00 02 [11:13:09]Write i2c OK [11:13:09]MH_I2C_Read... [11:13:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:09]Read from MH i2c: E2 [11:13:09]MH_I2C_Read... [11:13:09]Read from MH i2c: E2 0E 00 [11:13:09]MH_I2C_Read... [11:13:09]Read from MH i2c: E2 0E 00 79 0C 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 82 [11:13:09]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:13:09]wFMCommunicate OK [11:13:09]SAM_PROTO_GetShiftState done [11:13:09]FM_GetShiftState done [11:13:09]opened in 1720917342 [11:13:09]opened+sec_in_day 1721003742 [11:13:09]quantity*price = 66063 [11:13:09]sum+1 = 66064 [11:13:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 660.00 Внесено: 660.00 СДАЧА: 0.00 НСП 1% : 5.85 НДС 12% : 70.15 Наличными: 660.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 94 14.07.2024 11:13 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164896 ФПД: 3928320663565 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T111310&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164896&fm=3928320663565&tin=02508201610067®Number=0000000000090829&sum=66000 [11:13:10]StoreToDocumentArchive [11:13:10]shift 447 fd 164896 [11:13:10]save to /storage/0447/doc_00164896 [11:13:10]save last doc name /storage/0447/doc_00164896 to /storage/kkm_last_doc_name [11:13:10]save OK [11:13:10]Clear old archive folders... [11:13:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:13:10]tlvbuf is 00796050 [11:13:10]SAM_PROTO_ClearQueue [11:13:10]wFMCommunicate request_size=4 [11:13:10]MH_SAM_APDU [11:13:10]CAPDU: 80 09 00 00 [11:13:10]Write to MH i2c: E2 08 00 86 0C 80 09 00 00 00 00 00 00 04 [11:13:10]Write i2c OK [11:13:10]MH_I2C_Read... [11:13:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:13:10]Read from MH i2c: E2 [11:13:10]MH_I2C_Read... [11:13:10]Read from MH i2c: E2 03 00 [11:13:10]MH_I2C_Read... [11:13:10]Read from MH i2c: E2 03 00 86 0C 00 90 00 06 [11:13:10]RAPDU: 90 00 [11:13:10]wFMCommunicate OK [11:13:10]SAM_PROTO_ClearQueue done [11:13:10]KKMCreateOFDPacket [11:13:10]OFDProtocolAddRootSTLVToBuf [11:13:10]FM_MakeSignedData [11:13:10]FM_MakeSignedData [11:13:10]SAM_PROTO_SignData [11:13:10]wFMCommunicate request_size=4 [11:13:10]MH_SAM_APDU [11:13:10]CAPDU: 80 0D 01 02 [11:13:10]Write to MH i2c: E2 08 00 87 0C 80 0D 01 02 00 00 00 00 0C [11:13:10]Write i2c OK [11:13:10]MH_I2C_Read... [11:13:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:13:11]Read from MH i2c: E2 [11:13:11]MH_I2C_Read... [11:13:11]Read from MH i2c: E2 03 00 [11:13:11]MH_I2C_Read... [11:13:11]Read from MH i2c: E2 03 00 87 0C 00 90 00 07 [11:13:11]RAPDU: 90 00 [11:13:11]wFMCommunicate OK [11:13:11]wFMCommunicate request_size=255 [11:13:11]MH_SAM_APDU [11:13:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0F 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 C6 B2 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 20 84 02 00 35 04 06 00 03 [11:13:11]Write to MH i2c: E2 02 01 88 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0F 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 C6 B2 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 20 84 02 00 35 04 06 00 03 00 00 03 [11:13:11]Write i2c OK [11:13:11]MH_I2C_Read... [11:13:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:11]Read from MH i2c: E2 [11:13:11]MH_I2C_Read... [11:13:11]Read from MH i2c: E2 03 00 [11:13:11]MH_I2C_Read... [11:13:11]Read from MH i2c: E2 03 00 88 0C 00 90 00 08 [11:13:11]RAPDU: 90 00 [11:13:11]wFMCommunicate OK [11:13:11]wFMCommunicate request_size=10 [11:13:11]MH_SAM_APDU [11:13:11]CAPDU: 80 0D 02 02 05 92 A2 28 60 0D [11:13:11]Write to MH i2c: E2 0D 00 89 0C 80 0D 02 02 05 00 92 A2 28 60 0D 00 00 E2 [11:13:11]Write i2c OK [11:13:11]MH_I2C_Read... [11:13:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:11]Read from MH i2c: E2 [11:13:11]MH_I2C_Read... [11:13:11]Read from MH i2c: E2 03 00 [11:13:11]MH_I2C_Read... [11:13:11]Read from MH i2c: E2 03 00 89 0C 00 90 00 09 [11:13:11]RAPDU: 90 00 [11:13:11]wFMCommunicate OK [11:13:11]wFMCommunicate request_size=4 [11:13:11]MH_SAM_APDU [11:13:11]CAPDU: 80 0D 03 02 [11:13:11]Write to MH i2c: E2 08 00 8A 0C 80 0D 03 02 00 00 00 00 11 [11:13:11]Write i2c OK [11:13:11]MH_I2C_Read... [11:13:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:13:11]Read from MH i2c: E2 [11:13:11]MH_I2C_Read... [11:13:11]Read from MH i2c: E2 0B 00 [11:13:11]MH_I2C_Read... [11:13:11]Read from MH i2c: E2 0B 00 8A 0C 00 98 03 1E CA BB 2A 01 98 90 00 13 [11:13:11]RAPDU: 98 03 1E CA BB 2A 01 98 90 00 [11:13:11]wFMCommunicate OK [11:13:11]SAM_PROTO_SignData done [11:13:11]FM_MakeSignedData done [11:13:11]CreateOFDProtocolMessage [11:13:11]wFMCommunicate request_size=4 [11:13:11]MH_SAM_APDU [11:13:11]CAPDU: 80 11 00 00 [11:13:11]Write to MH i2c: E2 08 00 8B 0C 80 11 00 00 00 00 00 00 11 [11:13:11]Write i2c OK [11:13:11]MH_I2C_Read... [11:13:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:11]Read from MH i2c: E2 [11:13:11]MH_I2C_Read... [11:13:11]Read from MH i2c: E2 17 00 [11:13:11]MH_I2C_Read... [11:13:11]Read from MH i2c: E2 17 00 8B 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 67 [11:13:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:13:11]wFMCommunicate OK [11:13:11]CreateOFDProtocolMessage done [11:13:11]OFDSenderStorePacket 164896 [11:13:11]StoreOFDPacket docnum=164896 [11:13:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 7B 7D 07 01 55 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0F 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 C6 B2 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 20 84 02 00 35 04 06 00 03 92 A2 28 60 0D 98 03 1E CA BB 2A 01 98 [11:13:11]CheckFolder [11:13:11]dirname=/storage/ofd_packets [11:13:11]CheckFolder done [11:13:11]ProducePacketName [11:13:11]name=ofd_packets/00164896 [11:13:11]NVStorageSaveData ofd_packets/00164896 [11:13:11]File name is /storage/ofd_packets/00164896 [11:13:11]Write 301 bytes [11:13:11]NVStorageSaveData done [11:13:11]OFDSenderStorePacket done [11:13:11]KKMCreateOFDPacket done [11:13:11]NVStorageSaveData kkm_last_timestamp [11:13:11]File name is /storage/kkm_last_timestamp [11:13:11]Write 4 bytes [11:13:11]NVStorageSaveData done [11:13:11]ExternCall_PrintAddStr [11:13:11]wPrintStart [11:13:11]Write to MH i2c: 01 00 00 8C 0C 98 [11:13:11]Write i2c OK [11:13:11]MH_I2C_Read... [11:13:11]Read from MH i2c: 01 [11:13:11]MH_I2C_Read... [11:13:11]Read from MH i2c: 01 07 00 [11:13:11]MH_I2C_Read... [11:13:11]Read from MH i2c: 01 07 00 8C 0C 00 00 00 00 00 FF 0F AD [11:13:11]RasterBufferAndPrint [11:13:11]line Счет N : (1)458992 [11:13:11]line ИНН: 02508201610067 [11:13:11]line Контрольно-Кассовый Чек [11:13:11]line ПРОДАЖА [11:13:11]line ТРК (МРК, ГНК) : 22 [11:13:11]line Товар: 2710124130 [11:13:11]line Аи-92-К-5 [11:13:11]line 10.040 * 65.80 [11:13:11]line = 660.63 [11:13:11]line НДС 12% НСП 1% [11:13:11]line > о реализуемом товаре [11:13:11]line ОКРУГЛЕНИЕ: -0.63 [11:13:11]line ИТОГО: 660.00 [11:13:11]line Внесено: 660.00 [11:13:11]line СДАЧА: 0.00 [11:13:11]line НСП 1% : 5.85 [11:13:11]line НДС 12% : 70.15 [11:13:11]line Наличными: 660.00 [11:13:11]line Безнал.: 0.00 [11:13:11]line Место: АЗС № 72 "Партнер Нефть" [11:13:11]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:13:11]line СНО: Общий режим [11:13:11]line Чек 94 14.07.2024 11:13 [11:13:11]line Смена: 447 ФФД: 1.0 [11:13:11]line ЗНМ: 0300000160 [11:13:11]line РНМ: 0000000000090829 [11:13:11]line Версия ККМ: 001 [11:13:11]line ФМ: 0000000000874718 [11:13:11]line ФД: 164896 [11:13:11]line ФПД: 3928320663565 [11:13:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T111310&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164896&fm=3928320663565&tin=02508201610067®Number=0000000000090829&sum=66000 [11:13:11]written 0, free lines is 4095 [11:13:11]OFD Sender: Processing packet 164896 [packets to send 104, broken 103] [11:13:11]ProducePacketName [11:13:11]name=ofd_packets/00164896 [11:13:11]OFD Sender: To server: pG, [11:13:11]CommunicateWithHost lk.salyk.kg:30040 [11:13:11]ConnectInit lk.salyk.kg [11:13:11]Connected sock=10 [11:13:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 7B 7D 07 01 55 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0F 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 C6 B2 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 20 84 02 00 35 04 06 00 03 92 A2 28 60 0D 98 03 1E CA BB 2A 01 98 [11:13:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 91 6E 47 00 BA 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 38 37 34 37 31 38 10 04 04 00 20 84 02 00 F4 03 04 00 54 59 93 66 B6 04 01 00 00 B5 CC F0 B1 DB 9E 37 87 [11:13:11]CommunicateWithHost err = 0 [11:13:11]CheckOFDResponse [11:13:11]1017 (14) - 77093643461234 [11:13:11]1041 (16) - 0000000000874718 [11:13:11]1040 (4) - 164896 [11:13:11]1012 (4) - 14.07.2024 04:51 [11:13:11]1206 (1) - 0 [11:13:11]OFD Sender: Remove packet 164896 [11:13:11]ProducePacketName [11:13:11]name=ofd_packets/00164896 [11:13:11]NVStorageDeleteData [11:13:11]Write to MH i2c: 01 00 00 B6 0C C2 [11:13:11]Write i2c OK [11:13:11]MH_I2C_Read... [11:13:11]Read from MH i2c: 01 [11:13:11]MH_I2C_Read... [11:13:11]Read from MH i2c: 01 07 00 [11:13:11]MH_I2C_Read... [11:13:11]Read from MH i2c: 01 07 00 B6 0C 00 00 00 00 00 0C 0D E2 [11:13:11]RasterBufferAndPrint [11:13:11]line [11:13:11]line [11:13:11]line [11:13:11]line [11:13:11]line [11:13:11]written 0, free lines is 3349 [11:13:11]MH_Cut [11:13:11]Write to MH i2c: D1 01 00 BD 0C 01 9B [11:13:11]Write i2c OK [11:13:11]MH_I2C_Read... [11:13:11]Read from MH i2c: D1 [11:13:11]MH_I2C_Read... [11:13:11]Read from MH i2c: D1 01 00 [11:13:11]MH_I2C_Read... [11:13:11]Read from MH i2c: D1 01 00 BD 0C 00 9A [11:13:11]Write to MH i2c: 01 00 00 BE 0C CA [11:13:11]Write i2c OK [11:13:11]MH_I2C_Read... [11:13:12]OFD Sender: No OFD packet to send [11:13:12]*** Cut start [11:13:12]*** Partial cut [11:13:12]*** CUTSNS_PIN = 1 [11:13:12]*** CUTSNS_PIN = 0 [11:13:12]*** Brake cut motor [11:13:13]Read from MH i2c: 01 [11:13:13]MH_I2C_Read... [11:13:13]*** Stop cut motor [11:13:13]*** Cut end [11:13:13]Read from MH i2c: 01 07 00 [11:13:13]MH_I2C_Read... [11:13:13]Read from MH i2c: 01 07 00 BE 0C 00 00 00 00 00 FF 0F DF [11:13:13]process_action close_receipt done [11:13:13]requested_data is exist [11:13:13]produce_requested_data [11:13:13]requested_item fm.sn is exist - process it [11:13:13]wFMCommunicate request_size=4 [11:13:13]MH_SAM_APDU [11:13:13]CAPDU: 80 11 00 00 [11:13:13]Write to MH i2c: E2 08 00 BF 0C 80 11 00 00 00 00 00 00 45 [11:13:13]Write i2c OK [11:13:13]MH_I2C_Read... [11:13:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:13]Read from MH i2c: E2 [11:13:13]MH_I2C_Read... [11:13:13]Read from MH i2c: E2 17 00 [11:13:13]MH_I2C_Read... [11:13:13]Read from MH i2c: E2 17 00 BF 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 9B [11:13:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:13:13]wFMCommunicate OK [11:13:13]requested_item fd.num is exist - process it [11:13:13]SAM_PROTO_GetFieldsCounters [11:13:13]wFMCommunicate request_size=4 [11:13:13]MH_SAM_APDU [11:13:13]CAPDU: 80 13 00 00 [11:13:13]Write to MH i2c: E2 08 00 C0 0C 80 13 00 00 00 00 00 00 48 [11:13:13]Write i2c OK [11:13:13]MH_I2C_Read... [11:13:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:13:13]Read from MH i2c: E2 [11:13:13]MH_I2C_Read... [11:13:13]Read from MH i2c: E2 62 00 [11:13:13]MH_I2C_Read... [11:13:13]Read from MH i2c: E2 62 00 C0 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 20 84 02 00 0E 04 04 00 BF 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 EF [11:13:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 20 84 02 00 0E 04 04 00 BF 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 [11:13:13]wFMCommunicate OK [11:13:13]SAM_PROTO_GetFieldsCounters done [11:13:13]requested_item shift.num is exist - process it [11:13:13]requested_item shift.opened is exist - process it [11:13:13]req_shift_opened [11:13:13]FM_GetShiftState [11:13:13]SAM_PROTO_GetShiftState [11:13:13]wFMCommunicate request_size=4 [11:13:13]MH_SAM_APDU [11:13:13]CAPDU: 80 13 01 00 [11:13:13]Write to MH i2c: E2 08 00 C1 0C 80 13 01 00 00 00 00 00 4A [11:13:13]Write i2c OK [11:13:13]MH_I2C_Read... [11:13:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:13]Read from MH i2c: E2 [11:13:13]MH_I2C_Read... [11:13:13]Read from MH i2c: E2 0E 00 [11:13:13]MH_I2C_Read... [11:13:13]Read from MH i2c: E2 0E 00 C1 0C 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 CA [11:13:13]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:13:13]wFMCommunicate OK [11:13:13]SAM_PROTO_GetShiftState done [11:13:13]FM_GetShiftState done [11:13:13]req_shift_opened done [11:13:13]requested_item shift.open_date is exist - process it [11:13:13]req_shift_open_date [11:13:13]req_shift_open_date done [11:13:13]produce_requested_data done [11:13:13]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164896,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [11:13:13]process_action_free close_receipt [11:13:13]json_value_free [11:13:13]json_value_free done [11:13:13]process_json_proto returns [11:13:13]Send response to host [11:13:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164896,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [11:13:13]free response buf [11:13:13]execute_script done [11:13:13]execute_script returns [11:13:13]free content buf [11:13:13]Sock 9.Close socket [11:13:13]Sock 9.Thread stoped [11:13:17]OFD Sender: No OFD packet to send [11:13:22]OFD Sender: No OFD packet to send [11:13:27]OFD Sender: No OFD packet to send [11:13:32]OFD Sender: No OFD packet to send [11:13:37]OFD Sender: No OFD packet to send [11:13:42]OFD Sender: No OFD packet to send [11:13:47]OFD Sender: No OFD packet to send [11:13:52]OFD Sender: No OFD packet to send [11:13:57]OFD Sender: No OFD packet to send [11:14:02]OFD Sender: No OFD packet to send [11:14:07]OFD Sender: No OFD packet to send [11:14:12]OFD Sender: No OFD packet to send [11:14:17]OFD Sender: No OFD packet to send [11:14:22]OFD Sender: No OFD packet to send [11:14:27]OFD Sender: No OFD packet to send [11:14:32]OFD Sender: No OFD packet to send [11:14:37]OFD Sender: No OFD packet to send [11:14:42]OFD Sender: No OFD packet to send [11:14:47]OFD Sender: No OFD packet to send [11:14:52]OFD Sender: No OFD packet to send [11:14:57]OFD Sender: No OFD packet to send [11:15:02]OFD Sender: No OFD packet to send [11:15:07]OFD Sender: No OFD packet to send [11:15:12]OFD Sender: No OFD packet to send [11:15:17]OFD Sender: No OFD packet to send [11:15:22]OFD Sender: No OFD packet to send [11:15:27]OFD Sender: No OFD packet to send [11:15:32]OFD Sender: No OFD packet to send [11:15:37]OFD Sender: No OFD packet to send [11:15:42]OFD Sender: No OFD packet to send [11:15:47]OFD Sender: No OFD packet to send [11:15:50]accept exits with 7 [11:15:50]New connection [11:15:50]New thread 3067616612 created [11:15:50]Thread 3067473252 joined [11:15:50]Waiting for new connection... [11:15:50] Sock 7.Parse request [11:15:50]Sock 7.Check first char [11:15:50]Sock 7.First char is OK [11:15:50]request: POST /json_proto HTTP/1.0 [11:15:50]Method: POST [11:15:50]URL: /json_proto [11:15:50]Method is POST - this is cgi request [11:15:50]url: /json_proto [11:15:50]query_string will be loaded in cgi processing [11:15:50]execute_cgi json_proto POST (null) [11:15:50]execute_cgi path=json_proto method=POST [11:15:50]POST find Content-Length [11:15:50]Host: 172.17.56.4:8080 [11:15:50]Content-Length: 840 [11:15:50]Content-Type: application/json [11:15:50] [11:15:50]POST finish read [11:15:50]Found Content-Length = 840 [11:15:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458993", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 2.000, "sum" : 130.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 130.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:15:50]execute_script... [11:15: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)458993", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 2.000, "sum" : 130.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 130.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:15:50]POST & json_proto [11:15:50]process_json_proto [11:15:50]json parsed OK: [11:15:50]protocol is kg_v1.0 [11:15:50]action value=close_receipt [11:15:50]process_action close_receipt [11:15:50]cmd_close_receipt [11:15:50]MH_GetDate [11:15:50]Write to MH i2c: F0 00 00 C2 0C BD [11:15:50]Write i2c OK [11:15:50]MH_I2C_Read... [11:15:50]Read from MH i2c: F0 [11:15:50]MH_I2C_Read... [11:15:50]Read from MH i2c: F0 09 00 [11:15:50]MH_I2C_Read... [11:15:50]Read from MH i2c: F0 09 00 C2 0C 00 67 B3 93 66 C9 DC B2 64 94 [11:15:50]GetLastDocTimeStamp 1720955590 [11:15:50]current date 1720955751 [11:15:50]FM_GetShiftState [11:15:50]SAM_PROTO_GetShiftState [11:15:50]wFMCommunicate request_size=4 [11:15:50]MH_SAM_APDU [11:15:50]CAPDU: 80 13 01 00 [11:15:50]Write to MH i2c: E2 08 00 C3 0C 80 13 01 00 00 00 00 00 4C [11:15:50]Write i2c OK [11:15:50]MH_I2C_Read... [11:15:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:50]Read from MH i2c: E2 [11:15:50]MH_I2C_Read... [11:15:50]Read from MH i2c: E2 0E 00 [11:15:50]MH_I2C_Read... [11:15:50]Read from MH i2c: E2 0E 00 C3 0C 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 CC [11:15:50]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:15:50]wFMCommunicate OK [11:15:50]SAM_PROTO_GetShiftState done [11:15:50]FM_GetShiftState done [11:15:50]opened in 1720917342 [11:15:50]opened+sec_in_day 1721003742 [11:15:50]quantity*price = 13044 [11:15:50]sum+1 = 13045 [11:15:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.44 НСП 1% : 1.15 НДС 12% : 13.85 Наличными: 0.00 Безнал.: 130.44 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 95 14.07.2024 11:15 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874718 ФД: 164897 ФПД: 93337118894358 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T111551&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164897&fm=93337118894358&tin=02508201610067®Number=0000000000090829&sum=13044 [11:15:51]StoreToDocumentArchive [11:15:51]shift 447 fd 164897 [11:15:51]save to /storage/0447/doc_00164897 [11:15:51]save last doc name /storage/0447/doc_00164897 to /storage/kkm_last_doc_name [11:15:51]save OK [11:15:51]Clear old archive folders... [11:15:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:15:51]tlvbuf is 00738850 [11:15:51]SAM_PROTO_ClearQueue [11:15:51]wFMCommunicate request_size=4 [11:15:51]MH_SAM_APDU [11:15:51]CAPDU: 80 09 00 00 [11:15:51]Write to MH i2c: E2 08 00 D0 0C 80 09 00 00 00 00 00 00 4E [11:15:51]Write i2c OK [11:15:51]MH_I2C_Read... [11:15:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:15:51]Read from MH i2c: E2 [11:15:51]MH_I2C_Read... [11:15:51]Read from MH i2c: E2 03 00 [11:15:51]MH_I2C_Read... [11:15:51]Read from MH i2c: E2 03 00 D0 0C 00 90 00 50 [11:15:51]RAPDU: 90 00 [11:15:51]wFMCommunicate OK [11:15:51]SAM_PROTO_ClearQueue done [11:15:51]KKMCreateOFDPacket [11:15:51]OFDProtocolAddRootSTLVToBuf [11:15:51]FM_MakeSignedData [11:15:51]FM_MakeSignedData [11:15:51]SAM_PROTO_SignData [11:15:51]wFMCommunicate request_size=4 [11:15:51]MH_SAM_APDU [11:15:51]CAPDU: 80 0D 01 02 [11:15:51]Write to MH i2c: E2 08 00 D1 0C 80 0D 01 02 00 00 00 00 56 [11:15:51]Write i2c OK [11:15:51]MH_I2C_Read... [11:15:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:15:52]Read from MH i2c: E2 [11:15:52]MH_I2C_Read... [11:15:52]Read from MH i2c: E2 03 00 [11:15:52]MH_I2C_Read... [11:15:52]Read from MH i2c: E2 03 00 D1 0C 00 90 00 51 [11:15:52]RAPDU: 90 00 [11:15:52]wFMCommunicate OK [11:15:52]wFMCommunicate request_size=255 [11:15:52]MH_SAM_APDU [11:15:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 F4 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 67 B3 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 21 84 02 00 35 04 06 00 54 [11:15:52]Write to MH i2c: E2 02 01 D2 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 F4 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 67 B3 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 21 84 02 00 35 04 06 00 54 00 00 50 [11:15:52]Write i2c OK [11:15:52]MH_I2C_Read... [11:15:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:15:52]Read from MH i2c: E2 [11:15:52]MH_I2C_Read... [11:15:52]Read from MH i2c: E2 03 00 [11:15:52]MH_I2C_Read... [11:15:52]Read from MH i2c: E2 03 00 D2 0C 00 90 00 52 [11:15:52]RAPDU: 90 00 [11:15:52]wFMCommunicate OK [11:15:52]wFMCommunicate request_size=10 [11:15:52]MH_SAM_APDU [11:15:52]CAPDU: 80 0D 02 02 05 E3 BD D0 E9 16 [11:15:52]Write to MH i2c: E2 0D 00 D3 0C 80 0D 02 02 05 00 E3 BD D0 E9 16 00 00 D2 [11:15:52]Write i2c OK [11:15:52]MH_I2C_Read... [11:15:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:15:52]Read from MH i2c: E2 [11:15:52]MH_I2C_Read... [11:15:52]Read from MH i2c: E2 03 00 [11:15:52]MH_I2C_Read... [11:15:52]Read from MH i2c: E2 03 00 D3 0C 00 90 00 53 [11:15:52]RAPDU: 90 00 [11:15:52]wFMCommunicate OK [11:15:52]wFMCommunicate request_size=4 [11:15:52]MH_SAM_APDU [11:15:52]CAPDU: 80 0D 03 02 [11:15:52]Write to MH i2c: E2 08 00 D4 0C 80 0D 03 02 00 00 00 00 5B [11:15:52]Write i2c OK [11:15:52]MH_I2C_Read... [11:15:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:15:52]Read from MH i2c: E2 [11:15:52]MH_I2C_Read... [11:15:52]Read from MH i2c: E2 0B 00 [11:15:52]MH_I2C_Read... [11:15:52]Read from MH i2c: E2 0B 00 D4 0C 00 C9 FA CC 0F 13 0F 57 91 90 00 04 [11:15:52]RAPDU: C9 FA CC 0F 13 0F 57 91 90 00 [11:15:52]wFMCommunicate OK [11:15:52]SAM_PROTO_SignData done [11:15:52]FM_MakeSignedData done [11:15:52]CreateOFDProtocolMessage [11:15:52]wFMCommunicate request_size=4 [11:15:52]MH_SAM_APDU [11:15:52]CAPDU: 80 11 00 00 [11:15:52]Write to MH i2c: E2 08 00 D5 0C 80 11 00 00 00 00 00 00 5B [11:15:52]Write i2c OK [11:15:52]MH_I2C_Read... [11:15:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:52]Read from MH i2c: E2 [11:15:52]MH_I2C_Read... [11:15:52]Read from MH i2c: E2 17 00 [11:15:52]MH_I2C_Read... [11:15:52]Read from MH i2c: E2 17 00 D5 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B1 [11:15:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:15:52]wFMCommunicate OK [11:15:52]CreateOFDProtocolMessage done [11:15:52]OFDSenderStorePacket 164897 [11:15:52]StoreOFDPacket docnum=164897 [11:15:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 8A D5 07 01 70 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 F4 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 67 B3 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 21 84 02 00 35 04 06 00 54 E3 BD D0 E9 16 C9 FA CC 0F 13 0F 57 91 [11:15:52]CheckFolder [11:15:52]dirname=/storage/ofd_packets [11:15:52]CheckFolder done [11:15:52]ProducePacketName [11:15:52]name=ofd_packets/00164897 [11:15:52]NVStorageSaveData ofd_packets/00164897 [11:15:52]File name is /storage/ofd_packets/00164897 [11:15:52]Write 301 bytes [11:15:52]NVStorageSaveData done [11:15:52]OFDSenderStorePacket done [11:15:52]KKMCreateOFDPacket done [11:15:52]NVStorageSaveData kkm_last_timestamp [11:15:52]File name is /storage/kkm_last_timestamp [11:15:52]Write 4 bytes [11:15:52]NVStorageSaveData done [11:15:52]ExternCall_PrintAddStr [11:15:52]wPrintStart [11:15:52]Write to MH i2c: 01 00 00 D6 0C E2 [11:15:52]Write i2c OK [11:15:52]MH_I2C_Read... [11:15:52]Read from MH i2c: 01 [11:15:52]MH_I2C_Read... [11:15:52]Read from MH i2c: 01 07 00 [11:15:52]MH_I2C_Read... [11:15:52]Read from MH i2c: 01 07 00 D6 0C 00 00 00 00 00 FF 0F F7 [11:15:52]RasterBufferAndPrint [11:15:52]line Счет N : (1)458993 [11:15:52]line ИНН: 02508201610067 [11:15:52]line Контрольно-Кассовый Чек [11:15:52]line ПРОДАЖА [11:15:52]line ТРК (МРК, ГНК) : 22 [11:15:52]line Товар: 2710124130 [11:15:52]line Аи-92-К-5 [11:15:52]line 2.000 * 65.22 [11:15:52]line = 130.44 [11:15:52]line НДС 12% НСП 1% [11:15:52]line > о реализуемом товаре [11:15:52]line ИТОГО: 130.44 [11:15:52]line НСП 1% : 1.15 [11:15:52]line НДС 12% : 13.85 [11:15:52]line Наличными: 0.00 [11:15:52]line Безнал.: 130.44 [11:15:52]line Место: АЗС № 72 "Партнер Нефть" [11:15:52]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:15:52]line СНО: Общий режим [11:15:52]line Чек 95 14.07.2024 11:15 [11:15:52]line Смена: 447 ФФД: 1.0 [11:15:52]line ЗНМ: 0300000160 [11:15:52]line РНМ: 0000000000090829 [11:15:52]line Версия ККМ: 001 [11:15:52]line Платежная система: АКБ Кыргызстан [11:15:52]line ФМ: 0000000000874718 [11:15:52]line ФД: 164897 [11:15:52]line ФПД: 93337118894358 [11:15:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T111551&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164897&fm=93337118894358&tin=02508201610067®Number=0000000000090829&sum=13044 [11:15:52]written 0, free lines is 4095 [11:15:52]OFD Sender: Processing packet 164897 [packets to send 104, broken 103] [11:15:52]ProducePacketName [11:15:52]name=ofd_packets/00164897 [11:15:52]OFD Sender: To server: pG, [11:15:52]CommunicateWithHost lk.salyk.kg:30040 [11:15:52]ConnectInit lk.salyk.kg [11:15:52]Connected sock=10 [11:15:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 8A D5 07 01 70 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 F4 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 67 B3 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 21 84 02 00 35 04 06 00 54 E3 BD D0 E9 16 C9 FA CC 0F 13 0F 57 91 [11:15:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 54 AD 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 38 37 34 37 31 38 10 04 04 00 21 84 02 00 F4 03 04 00 F5 59 93 66 B6 04 01 00 00 A3 B7 10 3B 2A BE B0 8A [11:15:53]CommunicateWithHost err = 0 [11:15:53]CheckOFDResponse [11:15:53]1017 (14) - 77093643461234 [11:15:53]1041 (16) - 0000000000874718 [11:15:53]1040 (4) - 164897 [11:15:53]1012 (4) - 14.07.2024 04:54 [11:15:53]1206 (1) - 0 [11:15:53]OFD Sender: Remove packet 164897 [11:15:53]ProducePacketName [11:15:53]name=ofd_packets/00164897 [11:15:53]NVStorageDeleteData [11:15:53]Write to MH i2c: 01 00 00 FF 0C 0B [11:15:53]Write i2c OK [11:15:53]MH_I2C_Read... [11:15:53]Read from MH i2c: 01 [11:15:53]MH_I2C_Read... [11:15:53]Read from MH i2c: 01 07 00 [11:15:53]MH_I2C_Read... [11:15:53]Read from MH i2c: 01 07 00 FF 0C 00 00 00 00 00 05 0D 24 [11:15:53]RasterBufferAndPrint [11:15:53]line [11:15:53]line [11:15:53]line [11:15:53]line [11:15:53]line [11:15:53]written 0, free lines is 3340 [11:15:53]MH_Cut [11:15:53]Write to MH i2c: D1 01 00 06 0D 01 E5 [11:15:53]Write i2c OK [11:15:53]MH_I2C_Read... [11:15:53]Read from MH i2c: D1 [11:15:53]MH_I2C_Read... [11:15:53]Read from MH i2c: D1 01 00 [11:15:53]MH_I2C_Read... [11:15:53]Read from MH i2c: D1 01 00 06 0D 00 E4 [11:15:53]Write to MH i2c: 01 00 00 07 0D 14 [11:15:53]Write i2c OK [11:15:53]MH_I2C_Read... [11:15:53]OFD Sender: No OFD packet to send [11:15:53]*** Cut start [11:15:53]*** Partial cut [11:15:53]*** CUTSNS_PIN = 1 [11:15:53]*** CUTSNS_PIN = 0 [11:15:54]*** Brake cut motor [11:15:54]Read from MH i2c: 01 [11:15:54]MH_I2C_Read... [11:15:54]*** Stop cut motor [11:15:54]*** Cut end [11:15:54]Read from MH i2c: 01 07 00 [11:15:54]MH_I2C_Read... [11:15:54]Read from MH i2c: 01 07 00 07 0D 00 00 00 00 00 FF 0F 29 [11:15:54]process_action close_receipt done [11:15:54]requested_data is exist [11:15:54]produce_requested_data [11:15:54]requested_item fm.sn is exist - process it [11:15:54]wFMCommunicate request_size=4 [11:15:54]MH_SAM_APDU [11:15:54]CAPDU: 80 11 00 00 [11:15:54]Write to MH i2c: E2 08 00 08 0D 80 11 00 00 00 00 00 00 8F [11:15:54]Write i2c OK [11:15:54]MH_I2C_Read... [11:15:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:54]Read from MH i2c: E2 [11:15:54]MH_I2C_Read... [11:15:54]Read from MH i2c: E2 17 00 [11:15:54]MH_I2C_Read... [11:15:54]Read from MH i2c: E2 17 00 08 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E5 [11:15:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:15:54]wFMCommunicate OK [11:15:54]requested_item fd.num is exist - process it [11:15:54]SAM_PROTO_GetFieldsCounters [11:15:54]wFMCommunicate request_size=4 [11:15:54]MH_SAM_APDU [11:15:54]CAPDU: 80 13 00 00 [11:15:54]Write to MH i2c: E2 08 00 09 0D 80 13 00 00 00 00 00 00 92 [11:15:54]Write i2c OK [11:15:54]MH_I2C_Read... [11:15:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:15:54]Read from MH i2c: E2 [11:15:54]MH_I2C_Read... [11:15:54]Read from MH i2c: E2 62 00 [11:15:54]MH_I2C_Read... [11:15:54]Read from MH i2c: E2 62 00 09 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 21 84 02 00 0E 04 04 00 BF 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 3D [11:15:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 21 84 02 00 0E 04 04 00 BF 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 [11:15:54]wFMCommunicate OK [11:15:54]SAM_PROTO_GetFieldsCounters done [11:15:54]requested_item shift.num is exist - process it [11:15:54]requested_item shift.opened is exist - process it [11:15:54]req_shift_opened [11:15:54]FM_GetShiftState [11:15:54]SAM_PROTO_GetShiftState [11:15:54]wFMCommunicate request_size=4 [11:15:54]MH_SAM_APDU [11:15:54]CAPDU: 80 13 01 00 [11:15:54]Write to MH i2c: E2 08 00 0A 0D 80 13 01 00 00 00 00 00 94 [11:15:54]Write i2c OK [11:15:54]MH_I2C_Read... [11:15:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:54]Read from MH i2c: E2 [11:15:54]MH_I2C_Read... [11:15:54]Read from MH i2c: E2 0E 00 [11:15:54]MH_I2C_Read... [11:15:54]Read from MH i2c: E2 0E 00 0A 0D 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 14 [11:15:54]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:15:54]wFMCommunicate OK [11:15:54]SAM_PROTO_GetShiftState done [11:15:54]FM_GetShiftState done [11:15:54]req_shift_opened done [11:15:54]requested_item shift.open_date is exist - process it [11:15:54]req_shift_open_date [11:15:54]req_shift_open_date done [11:15:54]produce_requested_data done [11:15:54]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164897,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [11:15:54]process_action_free close_receipt [11:15:54]json_value_free [11:15:54]json_value_free done [11:15:54]process_json_proto returns [11:15:54]Send response to host [11:15:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164897,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [11:15:54]free response buf [11:15:54]execute_script done [11:15:54]execute_script returns [11:15:54]free content buf [11:15:54]Sock 7.Close socket [11:15:54]Sock 7.Thread stoped [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:47]accept exits with 9 [11:16:47]New connection [11:16:47]New thread 3067473252 created [11:16:47]Thread 3067616612 joined [11:16:47]Waiting for new connection... [11:16:47] Sock 9.Parse request [11:16:47]Sock 9.Check first char [11:16:47]Sock 9.First char is OK [11:16:47]request: POST /json_proto HTTP/1.0 [11:16:47]Method: POST [11:16:47]URL: /json_proto [11:16:47]Method is POST - this is cgi request [11:16:47]url: /json_proto [11:16:47]query_string will be loaded in cgi processing [11:16:47]execute_cgi json_proto POST (null) [11:16:47]execute_cgi path=json_proto method=POST [11:16:47]POST find Content-Length [11:16:47]Host: 172.17.56.4:8080 [11:16:47]Content-Length: 677 [11:16:47]Content-Type: application/json [11:16:47] [11:16:47]POST finish read [11:16:47]Found Content-Length = 677 [11:16:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458994", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.400, "sum" : 289.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 289.00, "payments": [ { "type": 0, "sum" : 289.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:47]execute_script... [11: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)458994", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.400, "sum" : 289.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 289.00, "payments": [ { "type": 0, "sum" : 289.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:47]POST & json_proto [11:16:47]process_json_proto [11:16:47]json parsed OK: [11:16:47]protocol is kg_v1.0 [11:16:47]action value=close_receipt [11:16:47]process_action close_receipt [11:16:47]cmd_close_receipt [11:16:47]MH_GetDate [11:16:47]Write to MH i2c: F0 00 00 0B 0D 07 [11:16:47]Write i2c OK [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: F0 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: F0 09 00 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: F0 09 00 0B 0D 00 9F B3 93 66 C9 DC B2 64 16 [11:16:47]GetLastDocTimeStamp 1720955751 [11:16:47]current date 1720955807 [11:16:47]FM_GetShiftState [11:16:47]SAM_PROTO_GetShiftState [11:16:47]wFMCommunicate request_size=4 [11:16:47]MH_SAM_APDU [11:16:47]CAPDU: 80 13 01 00 [11:16:47]Write to MH i2c: E2 08 00 0C 0D 80 13 01 00 00 00 00 00 96 [11:16:47]Write i2c OK [11:16:47]MH_I2C_Read... [11:16:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:47]Read from MH i2c: E2 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: E2 0E 00 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: E2 0E 00 0C 0D 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 16 [11:16:47]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:16:47]wFMCommunicate OK [11:16:47]SAM_PROTO_GetShiftState done [11:16:47]FM_GetShiftState done [11:16:47]opened in 1720917342 [11:16:47]opened+sec_in_day 1721003742 [11:16:47]quantity*price = 28952 [11:16:47]sum+1 = 28953 [11:16:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 289.00 Внесено: 300.00 СДАЧА: 11.00 НСП 1% : 2.56 НДС 12% : 30.74 Наличными: 289.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 96 14.07.2024 11:16 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164898 ФПД: 90511146216058 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T111648&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164898&fm=90511146216058&tin=02508201610067®Number=0000000000090829&sum=28900 [11:16:48]StoreToDocumentArchive [11:16:48]shift 447 fd 164898 [11:16:48]save to /storage/0447/doc_00164898 [11:16:48]save last doc name /storage/0447/doc_00164898 to /storage/kkm_last_doc_name [11:16:48]save OK [11:16:48]Clear old archive folders... [11:16:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:16:48]tlvbuf is 0073F850 [11:16:48]SAM_PROTO_ClearQueue [11:16:48]wFMCommunicate request_size=4 [11:16:48]MH_SAM_APDU [11:16:48]CAPDU: 80 09 00 00 [11:16:48]Write to MH i2c: E2 08 00 19 0D 80 09 00 00 00 00 00 00 98 [11:16:48]Write i2c OK [11:16:48]MH_I2C_Read... [11:16:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:16:48]Read from MH i2c: E2 [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: E2 03 00 [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: E2 03 00 19 0D 00 90 00 9A [11:16:48]RAPDU: 90 00 [11:16:48]wFMCommunicate OK [11:16:48]SAM_PROTO_ClearQueue done [11:16:48]KKMCreateOFDPacket [11:16:48]OFDProtocolAddRootSTLVToBuf [11:16:48]FM_MakeSignedData [11:16:48]FM_MakeSignedData [11:16:48]SAM_PROTO_SignData [11:16:48]wFMCommunicate request_size=4 [11:16:48]MH_SAM_APDU [11:16:48]CAPDU: 80 0D 01 02 [11:16:48]Write to MH i2c: E2 08 00 1A 0D 80 0D 01 02 00 00 00 00 A0 [11:16:48]Write i2c OK [11:16:48]MH_I2C_Read... [11:16:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:16:48]Read from MH i2c: E2 [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: E2 03 00 [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: E2 03 00 1A 0D 00 90 00 9B [11:16:48]RAPDU: 90 00 [11:16:48]wFMCommunicate OK [11:16:48]wFMCommunicate request_size=255 [11:16:48]MH_SAM_APDU [11: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 35 FF 03 08 00 03 30 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 18 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 0C 00 00 00 00 07 04 06 00 E4 70 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 A0 B3 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 22 84 02 00 35 04 06 00 52 [11:16:48]Write to MH i2c: E2 02 01 1B 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 18 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 0C 00 00 00 00 07 04 06 00 E4 70 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 A0 B3 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 22 84 02 00 35 04 06 00 52 00 00 64 [11:16:48]Write i2c OK [11:16:48]MH_I2C_Read... [11:16:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:48]Read from MH i2c: E2 [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: E2 03 00 [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: E2 03 00 1B 0D 00 90 00 9C [11:16:48]RAPDU: 90 00 [11:16:48]wFMCommunicate OK [11:16:48]wFMCommunicate request_size=10 [11:16:48]MH_SAM_APDU [11:16:48]CAPDU: 80 0D 02 02 05 51 C4 B7 EA 7A [11:16:48]Write to MH i2c: E2 0D 00 1C 0D 80 0D 02 02 05 00 51 C4 B7 EA 7A 00 00 DD [11:16:48]Write i2c OK [11:16:48]MH_I2C_Read... [11:16:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:48]Read from MH i2c: E2 [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: E2 03 00 [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: E2 03 00 1C 0D 00 90 00 9D [11:16:48]RAPDU: 90 00 [11:16:48]wFMCommunicate OK [11:16:48]wFMCommunicate request_size=4 [11:16:48]MH_SAM_APDU [11:16:48]CAPDU: 80 0D 03 02 [11:16:48]Write to MH i2c: E2 08 00 1D 0D 80 0D 03 02 00 00 00 00 A5 [11:16:48]Write i2c OK [11:16:48]MH_I2C_Read... [11:16:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:16:48]OFD Sender: No OFD packet to send [11:16:48]Read from MH i2c: E2 [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: E2 0B 00 [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: E2 0B 00 1D 0D 00 58 0C 0D 7B DC C1 08 FB 90 00 32 [11:16:48]RAPDU: 58 0C 0D 7B DC C1 08 FB 90 00 [11:16:48]wFMCommunicate OK [11:16:48]SAM_PROTO_SignData done [11:16:48]FM_MakeSignedData done [11:16:48]CreateOFDProtocolMessage [11:16:48]wFMCommunicate request_size=4 [11:16:48]MH_SAM_APDU [11:16:48]CAPDU: 80 11 00 00 [11:16:48]Write to MH i2c: E2 08 00 1E 0D 80 11 00 00 00 00 00 00 A5 [11:16:48]Write i2c OK [11:16:48]MH_I2C_Read... [11:16:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:48]Read from MH i2c: E2 [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: E2 17 00 [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: E2 17 00 1E 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 FB [11:16:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:16:48]wFMCommunicate OK [11:16:48]CreateOFDProtocolMessage done [11:16:48]OFDSenderStorePacket 164898 [11:16:48]StoreOFDPacket docnum=164898 [11:16:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 83 94 07 01 6E A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 18 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 0C 00 00 00 00 07 04 06 00 E4 70 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 A0 B3 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 22 84 02 00 35 04 06 00 52 51 C4 B7 EA 7A 58 0C 0D 7B DC C1 08 FB [11:16:48]CheckFolder [11:16:48]dirname=/storage/ofd_packets [11:16:48]CheckFolder done [11:16:48]ProducePacketName [11:16:48]name=ofd_packets/00164898 [11:16:48]NVStorageSaveData ofd_packets/00164898 [11:16:48]File name is /storage/ofd_packets/00164898 [11:16:48]Write 301 bytes [11:16:48]NVStorageSaveData done [11:16:48]OFDSenderStorePacket done [11:16:48]KKMCreateOFDPacket done [11:16:48]NVStorageSaveData kkm_last_timestamp [11:16:48]File name is /storage/kkm_last_timestamp [11:16:48]Write 4 bytes [11:16:48]NVStorageSaveData done [11:16:48]ExternCall_PrintAddStr [11:16:48]wPrintStart [11:16:48]Write to MH i2c: 01 00 00 1F 0D 2C [11:16:48]Write i2c OK [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: 01 [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: 01 07 00 [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: 01 07 00 1F 0D 00 00 00 00 00 FF 0F 41 [11:16:48]RasterBufferAndPrint [11:16:48]line Счет N : (1)458994 [11:16:48]line ИНН: 02508201610067 [11:16:48]line Контрольно-Кассовый Чек [11:16:48]line ПРОДАЖА [11:16:48]line ТРК (МРК, ГНК) : 12 [11:16:48]line Товар: 2710124130 [11:16:48]line Аи-92-К-5 [11:16:48]line 4.400 * 65.80 [11:16:48]line = 289.52 [11:16:48]line НДС 12% НСП 1% [11:16:48]line > о реализуемом товаре [11:16:48]line ОКРУГЛЕНИЕ: -0.52 [11:16:48]line ИТОГО: 289.00 [11:16:48]line Внесено: 300.00 [11:16:48]line СДАЧА: 11.00 [11:16:48]line НСП 1% : 2.56 [11:16:48]line НДС 12% : 30.74 [11:16:48]line Наличными: 289.00 [11:16:48]line Безнал.: 0.00 [11:16:48]line Место: АЗС № 72 "Партнер Нефть" [11:16:48]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:16:48]line СНО: Общий режим [11:16:48]line Чек 96 14.07.2024 11:16 [11:16:48]line Смена: 447 ФФД: 1.0 [11:16:48]line ЗНМ: 0300000160 [11:16:48]line РНМ: 0000000000090829 [11:16:48]line Версия ККМ: 001 [11:16:48]line ФМ: 0000000000874718 [11:16:48]line ФД: 164898 [11:16:48]line ФПД: 90511146216058 [11:16:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T111648&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164898&fm=90511146216058&tin=02508201610067®Number=0000000000090829&sum=28900 [11:16:49]OFD Sender: Processing packet 164898 [packets to send 104, broken 103] [11:16:49]ProducePacketName [11:16:49]name=ofd_packets/00164898 [11:16:49]OFD Sender: To server: pG, [11:16:49]CommunicateWithHost lk.salyk.kg:30040 [11:16:49]ConnectInit lk.salyk.kg [11:16:49]written 0, free lines is 4095 [11:16:49]Connected sock=10 [11:16:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 83 94 07 01 6E A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 18 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 0C 00 00 00 00 07 04 06 00 E4 70 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 A0 B3 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 22 84 02 00 35 04 06 00 52 51 C4 B7 EA 7A 58 0C 0D 7B DC C1 08 FB [11:16:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 EB 11 47 00 3A A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 22 84 02 00 F4 03 04 00 2D 5A 93 66 B6 04 01 00 00 E1 64 E6 67 D7 2F 6F D0 [11:16:49]CommunicateWithHost err = 0 [11:16:49]CheckOFDResponse [11:16:49]1017 (14) - 77093643461234 [11:16:49]1041 (16) - 0000000000874718 [11:16:49]1040 (4) - 164898 [11:16:49]1012 (4) - 14.07.2024 04:55 [11:16:49]1206 (1) - 0 [11:16:49]OFD Sender: Remove packet 164898 [11:16:49]ProducePacketName [11:16:49]name=ofd_packets/00164898 [11:16:49]NVStorageDeleteData [11:16:49]Write to MH i2c: 01 00 00 49 0D 56 [11:16:49]Write i2c OK [11:16:49]MH_I2C_Read... [11:16:49]Read from MH i2c: 01 [11:16:49]MH_I2C_Read... [11:16:49]Read from MH i2c: 01 07 00 [11:16:49]MH_I2C_Read... [11:16:49]Read from MH i2c: 01 07 00 49 0D 00 00 00 00 00 03 0D 6D [11:16:49]RasterBufferAndPrint [11:16:49]line [11:16:49]line [11:16:49]line [11:16:49]line [11:16:49]line [11:16:49]written 0, free lines is 3337 [11:16:49]MH_Cut [11:16:49]Write to MH i2c: D1 01 00 50 0D 01 2F [11:16:49]Write i2c OK [11:16:49]MH_I2C_Read... [11:16:49]Read from MH i2c: D1 [11:16:49]MH_I2C_Read... [11:16:49]Read from MH i2c: D1 01 00 [11:16:49]MH_I2C_Read... [11:16:49]Read from MH i2c: D1 01 00 50 0D 00 2E [11:16:49]Write to MH i2c: 01 00 00 51 0D 5E [11:16:49]Write i2c OK [11:16:49]MH_I2C_Read... [11:16:49]OFD Sender: No OFD packet to send [11:16:50]*** Cut start [11:16:50]*** Partial cut [11:16:50]*** CUTSNS_PIN = 1 [11:16:50]*** CUTSNS_PIN = 0 [11:16:50]*** Brake cut motor [11:16:50]Read from MH i2c: 01 [11:16:50]MH_I2C_Read... [11:16:50]*** Stop cut motor [11:16:50]*** Cut end [11:16:50]Read from MH i2c: 01 07 00 [11:16:50]MH_I2C_Read... [11:16:50]Read from MH i2c: 01 07 00 51 0D 00 00 00 00 00 FF 0F 73 [11:16:50]process_action close_receipt done [11:16:50]requested_data is exist [11:16:50]produce_requested_data [11:16:50]requested_item fm.sn is exist - process it [11:16:50]wFMCommunicate request_size=4 [11:16:50]MH_SAM_APDU [11:16:50]CAPDU: 80 11 00 00 [11:16:50]Write to MH i2c: E2 08 00 52 0D 80 11 00 00 00 00 00 00 D9 [11:16:50]Write i2c OK [11:16:50]MH_I2C_Read... [11:16:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:50]Read from MH i2c: E2 [11:16:50]MH_I2C_Read... [11:16:50]Read from MH i2c: E2 17 00 [11:16:50]MH_I2C_Read... [11:16:50]Read from MH i2c: E2 17 00 52 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 2F [11:16:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:16:50]wFMCommunicate OK [11:16:50]requested_item fd.num is exist - process it [11:16:50]SAM_PROTO_GetFieldsCounters [11:16:50]wFMCommunicate request_size=4 [11:16:50]MH_SAM_APDU [11:16:50]CAPDU: 80 13 00 00 [11:16:50]Write to MH i2c: E2 08 00 53 0D 80 13 00 00 00 00 00 00 DC [11:16:50]Write i2c OK [11:16:50]MH_I2C_Read... [11:16:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:16:50]Read from MH i2c: E2 [11:16:50]MH_I2C_Read... [11:16:50]Read from MH i2c: E2 62 00 [11:16:50]MH_I2C_Read... [11:16:50]Read from MH i2c: E2 62 00 53 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 22 84 02 00 0E 04 04 00 BF 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 8B [11:16:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 22 84 02 00 0E 04 04 00 BF 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 [11:16:50]wFMCommunicate OK [11:16:50]SAM_PROTO_GetFieldsCounters done [11:16:50]requested_item shift.num is exist - process it [11:16:50]requested_item shift.opened is exist - process it [11:16:50]req_shift_opened [11:16:50]FM_GetShiftState [11:16:50]SAM_PROTO_GetShiftState [11:16:50]wFMCommunicate request_size=4 [11:16:50]MH_SAM_APDU [11:16:50]CAPDU: 80 13 01 00 [11:16:50]Write to MH i2c: E2 08 00 54 0D 80 13 01 00 00 00 00 00 DE [11:16:50]Write i2c OK [11:16:50]MH_I2C_Read... [11:16:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:51]Read from MH i2c: E2 [11:16:51]MH_I2C_Read... [11:16:51]Read from MH i2c: E2 0E 00 [11:16:51]MH_I2C_Read... [11:16:51]Read from MH i2c: E2 0E 00 54 0D 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 5E [11:16:51]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:16:51]wFMCommunicate OK [11:16:51]SAM_PROTO_GetShiftState done [11:16:51]FM_GetShiftState done [11:16:51]req_shift_opened done [11:16:51]requested_item shift.open_date is exist - process it [11:16:51]req_shift_open_date [11:16:51]req_shift_open_date done [11:16:51]produce_requested_data done [11:16:51]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164898,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [11:16:51]process_action_free close_receipt [11:16:51]json_value_free [11:16:51]json_value_free done [11:16:51]process_json_proto returns [11:16:51]Send response to host [11:16:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164898,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [11:16:51]free response buf [11:16:51]execute_script done [11:16:51]execute_script returns [11:16:51]free content buf [11:16:51]Sock 9.Close socket [11:16:51]Sock 9.Thread stoped [11:16:54]OFD Sender: No OFD packet to send [11:16:59]OFD Sender: No OFD packet to send [11:17:04]OFD Sender: No OFD packet to send [11:17:09]OFD Sender: No OFD packet to send [11:17:10]accept exits with 7 [11:17:10]New connection [11:17:10]New thread 3067616612 created [11:17:10]Thread 3067473252 joined [11:17:10]Waiting for new connection... [11:17:10] Sock 7.Parse request [11:17:10]Sock 7.Check first char [11:17:10]Sock 7.First char is OK [11:17:10]request: POST /json_proto HTTP/1.0 [11:17:10]Method: POST [11:17:10]URL: /json_proto [11:17:10]Method is POST - this is cgi request [11:17:10]url: /json_proto [11:17:10]query_string will be loaded in cgi processing [11:17:10]execute_cgi json_proto POST (null) [11:17:10]execute_cgi path=json_proto method=POST [11:17:10]POST find Content-Length [11:17:10]Host: 172.17.56.4:8080 [11:17:10]Content-Length: 677 [11:17:10]Content-Type: application/json [11:17:10] [11:17:10]POST finish read [11:17:10]Found Content-Length = 677 [11:17:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458996", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.650, "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" ] } } [11:17:10]execute_script... [11:17:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458996", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.650, "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" ] } } [11:17:10]POST & json_proto [11:17:10]process_json_proto [11:17:10]json parsed OK: [11:17:10]protocol is kg_v1.0 [11:17:10]action value=close_receipt [11:17:10]process_action close_receipt [11:17:10]cmd_close_receipt [11:17:10]MH_GetDate [11:17:10]Write to MH i2c: F0 00 00 55 0D 51 [11:17:10]Write i2c OK [11:17:10]MH_I2C_Read... [11:17:10]Read from MH i2c: F0 [11:17:10]MH_I2C_Read... [11:17:10]Read from MH i2c: F0 09 00 [11:17:10]MH_I2C_Read... [11:17:10]Read from MH i2c: F0 09 00 55 0D 00 B7 B3 93 66 C9 DC B2 64 78 [11:17:10]GetLastDocTimeStamp 1720955808 [11:17:10]current date 1720955831 [11:17:10]FM_GetShiftState [11:17:10]SAM_PROTO_GetShiftState [11:17:10]wFMCommunicate request_size=4 [11:17:10]MH_SAM_APDU [11:17:10]CAPDU: 80 13 01 00 [11:17:10]Write to MH i2c: E2 08 00 56 0D 80 13 01 00 00 00 00 00 E0 [11:17:10]Write i2c OK [11:17:10]MH_I2C_Read... [11:17:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:10]Read from MH i2c: E2 [11:17:10]MH_I2C_Read... [11:17:10]Read from MH i2c: E2 0E 00 [11:17:10]MH_I2C_Read... [11:17:10]Read from MH i2c: E2 0E 00 56 0D 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 60 [11:17:10]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:17:10]wFMCommunicate OK [11:17:10]SAM_PROTO_GetShiftState done [11:17:10]FM_GetShiftState done [11:17:10]opened in 1720917342 [11:17:10]opened+sec_in_day 1721003742 [11:17:10]quantity*price = 24017 [11:17:10]sum+1 = 24018 [11:17:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 240.00 Внесено: 240.00 СДАЧА: 0.00 НСП 1% : 2.12 НДС 12% : 25.50 Наличными: 240.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 97 14.07.2024 11:17 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164899 ФПД: 69627005276683 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T111711&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164899&fm=69627005276683&tin=02508201610067®Number=0000000000090829&sum=24000 [11:17:11]StoreToDocumentArchive [11:17:11]shift 447 fd 164899 [11:17:11]save to /storage/0447/doc_00164899 [11:17:11]save last doc name /storage/0447/doc_00164899 to /storage/kkm_last_doc_name [11:17:11]save OK [11:17:11]Clear old archive folders... [11:17:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:17:11]tlvbuf is 007A42E0 [11:17:11]SAM_PROTO_ClearQueue [11:17:11]wFMCommunicate request_size=4 [11:17:11]MH_SAM_APDU [11:17:11]CAPDU: 80 09 00 00 [11:17:11]Write to MH i2c: E2 08 00 63 0D 80 09 00 00 00 00 00 00 E2 [11:17:11]Write i2c OK [11:17:11]MH_I2C_Read... [11:17:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:17:11]Read from MH i2c: E2 [11:17:11]MH_I2C_Read... [11:17:11]Read from MH i2c: E2 03 00 [11:17:11]MH_I2C_Read... [11:17:11]Read from MH i2c: E2 03 00 63 0D 00 90 00 E4 [11:17:11]RAPDU: 90 00 [11:17:11]wFMCommunicate OK [11:17:11]SAM_PROTO_ClearQueue done [11:17:11]KKMCreateOFDPacket [11:17:11]OFDProtocolAddRootSTLVToBuf [11:17:11]FM_MakeSignedData [11:17:11]FM_MakeSignedData [11:17:11]SAM_PROTO_SignData [11:17:11]wFMCommunicate request_size=4 [11:17:11]MH_SAM_APDU [11:17:11]CAPDU: 80 0D 01 02 [11:17:11]Write to MH i2c: E2 08 00 64 0D 80 0D 01 02 00 00 00 00 EA [11:17:11]Write i2c OK [11:17:11]MH_I2C_Read... [11:17:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:17:12]Read from MH i2c: E2 [11:17:12]MH_I2C_Read... [11:17:12]Read from MH i2c: E2 03 00 [11:17:12]MH_I2C_Read... [11:17:12]Read from MH i2c: E2 03 00 64 0D 00 90 00 E5 [11:17:12]RAPDU: 90 00 [11:17:12]wFMCommunicate OK [11:17:12]wFMCommunicate request_size=255 [11:17:12]MH_SAM_APDU [11:17:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 0E 00 00 00 00 00 37 04 06 00 B4 19 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 61 00 00 00 F4 03 04 00 B7 B3 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 23 84 02 00 35 04 06 00 3F [11:17:12]Write to MH i2c: E2 02 01 65 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 0E 00 00 00 00 00 37 04 06 00 B4 19 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 61 00 00 00 F4 03 04 00 B7 B3 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 23 84 02 00 35 04 06 00 3F 00 00 BE [11:17:12]Write i2c OK [11:17:12]MH_I2C_Read... [11:17:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:12]Read from MH i2c: E2 [11:17:12]MH_I2C_Read... [11:17:12]Read from MH i2c: E2 03 00 [11:17:12]MH_I2C_Read... [11:17:12]Read from MH i2c: E2 03 00 65 0D 00 90 00 E6 [11:17:12]RAPDU: 90 00 [11:17:12]wFMCommunicate OK [11:17:12]wFMCommunicate request_size=10 [11:17:12]MH_SAM_APDU [11:17:12]CAPDU: 80 0D 02 02 05 53 4C EA 92 0B [11:17:12]Write to MH i2c: E2 0D 00 66 0D 80 0D 02 02 05 00 53 4C EA 92 0B 00 00 1D [11:17:12]Write i2c OK [11:17:12]MH_I2C_Read... [11:17:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:12]Read from MH i2c: E2 [11:17:12]MH_I2C_Read... [11:17:12]Read from MH i2c: E2 03 00 [11:17:12]MH_I2C_Read... [11:17:12]Read from MH i2c: E2 03 00 66 0D 00 90 00 E7 [11:17:12]RAPDU: 90 00 [11:17:12]wFMCommunicate OK [11:17:12]wFMCommunicate request_size=4 [11:17:12]MH_SAM_APDU [11:17:12]CAPDU: 80 0D 03 02 [11:17:12]Write to MH i2c: E2 08 00 67 0D 80 0D 03 02 00 00 00 00 EF [11:17:12]Write i2c OK [11:17:12]MH_I2C_Read... [11:17:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:17:12]Read from MH i2c: E2 [11:17:12]MH_I2C_Read... [11:17:12]Read from MH i2c: E2 0B 00 [11:17:12]MH_I2C_Read... [11:17:12]Read from MH i2c: E2 0B 00 67 0D 00 DD C7 15 17 DE AC EA D4 90 00 08 [11:17:12]RAPDU: DD C7 15 17 DE AC EA D4 90 00 [11:17:12]wFMCommunicate OK [11:17:12]SAM_PROTO_SignData done [11:17:12]FM_MakeSignedData done [11:17:12]CreateOFDProtocolMessage [11:17:12]wFMCommunicate request_size=4 [11:17:12]MH_SAM_APDU [11:17:12]CAPDU: 80 11 00 00 [11:17:12]Write to MH i2c: E2 08 00 68 0D 80 11 00 00 00 00 00 00 EF [11:17:12]Write i2c OK [11:17:12]MH_I2C_Read... [11:17:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:12]Read from MH i2c: E2 [11:17:12]MH_I2C_Read... [11:17:12]Read from MH i2c: E2 17 00 [11:17:12]MH_I2C_Read... [11:17:12]Read from MH i2c: E2 17 00 68 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 45 [11:17:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:17:12]wFMCommunicate OK [11:17:12]CreateOFDProtocolMessage done [11:17:12]OFDSenderStorePacket 164899 [11:17:12]StoreOFDPacket docnum=164899 [11:17:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 CB 75 07 01 6D D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 0E 00 00 00 00 00 37 04 06 00 B4 19 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 61 00 00 00 F4 03 04 00 B7 B3 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 23 84 02 00 35 04 06 00 3F 53 4C EA 92 0B DD C7 15 17 DE AC EA D4 [11:17:12]CheckFolder [11:17:12]dirname=/storage/ofd_packets [11:17:12]CheckFolder done [11:17:12]ProducePacketName [11:17:12]name=ofd_packets/00164899 [11:17:12]NVStorageSaveData ofd_packets/00164899 [11:17:12]File name is /storage/ofd_packets/00164899 [11:17:12]Write 301 bytes [11:17:12]NVStorageSaveData done [11:17:12]OFDSenderStorePacket done [11:17:12]KKMCreateOFDPacket done [11:17:12]NVStorageSaveData kkm_last_timestamp [11:17:12]File name is /storage/kkm_last_timestamp [11:17:12]Write 4 bytes [11:17:12]NVStorageSaveData done [11:17:12]OFD Sender: Processing packet 164899 [packets to send 104, broken 103] [11:17:12]ProducePacketName [11:17:12]name=ofd_packets/00164899 [11:17:12]OFD Sender: To server: pG, [11:17:12]CommunicateWithHost lk.salyk.kg:30040 [11:17:12]ConnectInit lk.salyk.kg [11:17:12]ExternCall_PrintAddStr [11:17:12]wPrintStart [11:17:12]Write to MH i2c: 01 00 00 69 0D 76 [11:17:12]Write i2c OK [11:17:12]MH_I2C_Read... [11:17:12]Read from MH i2c: 01 [11:17:12]MH_I2C_Read... [11:17:12]Read from MH i2c: 01 07 00 [11:17:12]MH_I2C_Read... [11:17:12]Read from MH i2c: 01 07 00 69 0D 00 00 00 00 00 FF 0F 8B [11:17:12]RasterBufferAndPrint [11:17:12]line Счет N : (1)458996 [11:17:12]line ИНН: 02508201610067 [11:17:12]line Контрольно-Кассовый Чек [11:17:12]line ПРОДАЖА [11:17:12]line ТРК (МРК, ГНК) : 22 [11:17:12]line Товар: 2710124130 [11:17:12]line Аи-92-К-5 [11:17:12]line 3.650 * 65.80 [11:17:12]line = 240.17 [11:17:12]line НДС 12% НСП 1% [11:17:12]line > о реализуемом товаре [11:17:12]line ОКРУГЛЕНИЕ: -0.17 [11:17:12]line ИТОГО: 240.00 [11:17:12]line Внесено: 240.00 [11:17:12]line СДАЧА: 0.00 [11:17:12]line НСП 1% : 2.12 [11:17:12]line НДС 12% : 25.50 [11:17:12]line Наличными: 240.00 [11:17:12]line Безнал.: 0.00 [11:17:12]line Место: АЗС № 72 "Партнер Нефть" [11:17:12]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:17:12]line СНО: Общий режим [11:17:12]line Чек 97 14.07.2024 11:17 [11:17:12]line Смена: 447 ФФД: 1.0 [11:17:12]line ЗНМ: 0300000160 [11:17:12]line РНМ: 0000000000090829 [11:17:12]line Версия ККМ: 001 [11:17:12]line ФМ: 0000000000874718 [11:17:12]line ФД: 164899 [11:17:12]line ФПД: 69627005276683 [11:17:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T111711&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164899&fm=69627005276683&tin=02508201610067®Number=0000000000090829&sum=24000 [11:17:12]Connected sock=11 [11:17:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 CB 75 07 01 6D D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 0E 00 00 00 00 00 37 04 06 00 B4 19 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 61 00 00 00 F4 03 04 00 B7 B3 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 23 84 02 00 35 04 06 00 3F 53 4C EA 92 0B DD C7 15 17 DE AC EA D4 [11:17:12]written 0, free lines is 4095 [11:17:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 D5 0B 47 00 A3 F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 23 84 02 00 F4 03 04 00 45 5A 93 66 B6 04 01 00 00 33 54 85 1F C1 90 45 CA [11:17:13]CommunicateWithHost err = 0 [11:17:13]CheckOFDResponse [11:17:13]1017 (14) - 77093643461234 [11:17:13]1041 (16) - 0000000000874718 [11:17:13]1040 (4) - 164899 [11:17:13]1012 (4) - 14.07.2024 04:55 [11:17:13]1206 (1) - 0 [11:17:13]OFD Sender: Remove packet 164899 [11:17:13]ProducePacketName [11:17:13]name=ofd_packets/00164899 [11:17:13]NVStorageDeleteData [11:17:13]Write to MH i2c: 01 00 00 93 0D A0 [11:17:13]Write i2c OK [11:17:13]MH_I2C_Read... [11:17:13]Read from MH i2c: 01 [11:17:13]MH_I2C_Read... [11:17:13]Read from MH i2c: 01 07 00 [11:17:13]MH_I2C_Read... [11:17:13]Read from MH i2c: 01 07 00 93 0D 00 00 00 00 00 FB 0C AE [11:17:13]RasterBufferAndPrint [11:17:13]line [11:17:13]line [11:17:13]line [11:17:13]line [11:17:13]line [11:17:13]written 0, free lines is 3329 [11:17:13]MH_Cut [11:17:13]Write to MH i2c: D1 01 00 9A 0D 01 79 [11:17:13]Write i2c OK [11:17:13]MH_I2C_Read... [11:17:13]Read from MH i2c: D1 [11:17:13]MH_I2C_Read... [11:17:13]Read from MH i2c: D1 01 00 [11:17:13]MH_I2C_Read... [11:17:13]Read from MH i2c: D1 01 00 9A 0D 00 78 [11:17:13]Write to MH i2c: 01 00 00 9B 0D A8 [11:17:13]Write i2c OK [11:17:13]MH_I2C_Read... [11:17:13]OFD Sender: No OFD packet to send [11:17:13]*** Cut start [11:17:13]*** Partial cut [11:17:13]*** CUTSNS_PIN = 1 [11:17:13]*** CUTSNS_PIN = 0 [11:17:14]*** Brake cut motor [11:17:14]Read from MH i2c: 01 [11:17:14]MH_I2C_Read... [11:17:14]*** Stop cut motor [11:17:14]*** Cut end [11:17:14]Read from MH i2c: 01 07 00 [11:17:14]MH_I2C_Read... [11:17:14]Read from MH i2c: 01 07 00 9B 0D 00 00 00 00 00 FF 0F BD [11:17:14]process_action close_receipt done [11:17:14]requested_data is exist [11:17:14]produce_requested_data [11:17:14]requested_item fm.sn is exist - process it [11:17:14]wFMCommunicate request_size=4 [11:17:14]MH_SAM_APDU [11:17:14]CAPDU: 80 11 00 00 [11:17:14]Write to MH i2c: E2 08 00 9C 0D 80 11 00 00 00 00 00 00 23 [11:17:14]Write i2c OK [11:17:14]MH_I2C_Read... [11:17:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:14]Read from MH i2c: E2 [11:17:14]MH_I2C_Read... [11:17:14]Read from MH i2c: E2 17 00 [11:17:14]MH_I2C_Read... [11:17:14]Read from MH i2c: E2 17 00 9C 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 79 [11:17:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:17:14]wFMCommunicate OK [11:17:14]requested_item fd.num is exist - process it [11:17:14]SAM_PROTO_GetFieldsCounters [11:17:14]wFMCommunicate request_size=4 [11:17:14]MH_SAM_APDU [11:17:14]CAPDU: 80 13 00 00 [11:17:14]Write to MH i2c: E2 08 00 9D 0D 80 13 00 00 00 00 00 00 26 [11:17:14]Write i2c OK [11:17:14]MH_I2C_Read... [11:17:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:17:14]Read from MH i2c: E2 [11:17:14]MH_I2C_Read... [11:17:14]Read from MH i2c: E2 62 00 [11:17:14]MH_I2C_Read... [11:17:14]Read from MH i2c: E2 62 00 9D 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 23 84 02 00 0E 04 04 00 BF 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 D9 [11:17:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 23 84 02 00 0E 04 04 00 BF 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 [11:17:14]wFMCommunicate OK [11:17:14]SAM_PROTO_GetFieldsCounters done [11:17:14]requested_item shift.num is exist - process it [11:17:14]requested_item shift.opened is exist - process it [11:17:14]req_shift_opened [11:17:14]FM_GetShiftState [11:17:14]SAM_PROTO_GetShiftState [11:17:14]wFMCommunicate request_size=4 [11:17:14]MH_SAM_APDU [11:17:14]CAPDU: 80 13 01 00 [11:17:14]Write to MH i2c: E2 08 00 9E 0D 80 13 01 00 00 00 00 00 28 [11:17:14]Write i2c OK [11:17:14]MH_I2C_Read... [11:17:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:14]Read from MH i2c: E2 [11:17:14]MH_I2C_Read... [11:17:14]Read from MH i2c: E2 0E 00 [11:17:14]MH_I2C_Read... [11:17:14]Read from MH i2c: E2 0E 00 9E 0D 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 A8 [11:17:14]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:17:14]wFMCommunicate OK [11:17:14]SAM_PROTO_GetShiftState done [11:17:14]FM_GetShiftState done [11:17:14]req_shift_opened done [11:17:14]requested_item shift.open_date is exist - process it [11:17:14]req_shift_open_date [11:17:14]req_shift_open_date done [11:17:14]produce_requested_data done [11:17:14]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164899,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [11:17:14]process_action_free close_receipt [11:17:14]json_value_free [11:17:14]json_value_free done [11:17:14]process_json_proto returns [11:17:14]Send response to host [11:17:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164899,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [11:17:14]free response buf [11:17:14]execute_script done [11:17:14]execute_script returns [11:17:14]free content buf [11:17:14]Sock 7.Close socket [11:17:14]Sock 7.Thread stoped [11:17:15]accept exits with 9 [11:17:15]New connection [11:17:15]New thread 3067473252 created [11:17:15]Thread 3067616612 joined [11:17:15]Waiting for new connection... [11:17:15] Sock 9.Parse request [11:17:15]Sock 9.Check first char [11:17:15]Sock 9.First char is OK [11:17:15]request: POST /json_proto HTTP/1.0 [11:17:15]Method: POST [11:17:15]URL: /json_proto [11:17:15]Method is POST - this is cgi request [11:17:15]url: /json_proto [11:17:15]query_string will be loaded in cgi processing [11:17:15]execute_cgi json_proto POST (null) [11:17:15]execute_cgi path=json_proto method=POST [11:17:15]POST find Content-Length [11:17:15]Host: 172.17.56.4:8080 [11:17:15]Content-Length: 677 [11:17:15]Content-Type: application/json [11:17:15] [11:17:15]POST finish read [11:17:15]Found Content-Length = 677 [11:17:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458995", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 2.130, "sum" : 140.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 140.00, "total" : 140.00, "payments": [ { "type": 0, "sum" : 140.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:15]execute_script... [11:17: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)458995", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 2.130, "sum" : 140.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 140.00, "total" : 140.00, "payments": [ { "type": 0, "sum" : 140.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:15]POST & json_proto [11:17:15]process_json_proto [11:17:15]json parsed OK: [11:17:15]protocol is kg_v1.0 [11:17:15]action value=close_receipt [11:17:15]process_action close_receipt [11:17:15]cmd_close_receipt [11:17:15]MH_GetDate [11:17:15]Write to MH i2c: F0 00 00 9F 0D 9B [11:17:15]Write i2c OK [11:17:15]MH_I2C_Read... [11:17:15]Read from MH i2c: F0 [11:17:15]MH_I2C_Read... [11:17:15]Read from MH i2c: F0 09 00 [11:17:15]MH_I2C_Read... [11:17:15]Read from MH i2c: F0 09 00 9F 0D 00 BC B3 93 66 C9 DC B2 64 C7 [11:17:15]GetLastDocTimeStamp 1720955831 [11:17:15]current date 1720955836 [11:17:15]FM_GetShiftState [11:17:15]SAM_PROTO_GetShiftState [11:17:15]wFMCommunicate request_size=4 [11:17:15]MH_SAM_APDU [11:17:15]CAPDU: 80 13 01 00 [11:17:15]Write to MH i2c: E2 08 00 A0 0D 80 13 01 00 00 00 00 00 2A [11:17:15]Write i2c OK [11:17:15]MH_I2C_Read... [11:17:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:15]Read from MH i2c: E2 [11:17:15]MH_I2C_Read... [11:17:15]Read from MH i2c: E2 0E 00 [11:17:15]MH_I2C_Read... [11:17:15]Read from MH i2c: E2 0E 00 A0 0D 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 AA [11:17:15]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:17:15]wFMCommunicate OK [11:17:15]SAM_PROTO_GetShiftState done [11:17:15]FM_GetShiftState done [11:17:15]opened in 1720917342 [11:17:15]opened+sec_in_day 1721003742 [11:17:15]quantity*price = 14015 [11:17:15]sum+1 = 14016 [11:17:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 140.00 Внесено: 140.00 СДАЧА: 0.00 НСП 1% : 1.24 НДС 12% : 14.88 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 98 14.07.2024 11:17 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164900 ФПД: 62972166920940 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T111716&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164900&fm=62972166920940&tin=02508201610067®Number=0000000000090829&sum=14000 [11:17:16]StoreToDocumentArchive [11:17:16]shift 447 fd 164900 [11:17:16]save to /storage/0447/doc_00164900 [11:17:16]save last doc name /storage/0447/doc_00164900 to /storage/kkm_last_doc_name [11:17:16]save OK [11:17:16]Clear old archive folders... [11:17:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:17:16]tlvbuf is 007A9DF0 [11:17:16]SAM_PROTO_ClearQueue [11:17:16]wFMCommunicate request_size=4 [11:17:16]MH_SAM_APDU [11:17:16]CAPDU: 80 09 00 00 [11:17:16]Write to MH i2c: E2 08 00 AD 0D 80 09 00 00 00 00 00 00 2C [11:17:16]Write i2c OK [11:17:16]MH_I2C_Read... [11:17:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:17:16]Read from MH i2c: E2 [11:17:16]MH_I2C_Read... [11:17:16]Read from MH i2c: E2 03 00 [11:17:16]MH_I2C_Read... [11:17:16]Read from MH i2c: E2 03 00 AD 0D 00 90 00 2E [11:17:16]RAPDU: 90 00 [11:17:16]wFMCommunicate OK [11:17:16]SAM_PROTO_ClearQueue done [11:17:16]KKMCreateOFDPacket [11:17:16]OFDProtocolAddRootSTLVToBuf [11:17:16]FM_MakeSignedData [11:17:16]FM_MakeSignedData [11:17:16]SAM_PROTO_SignData [11:17:16]wFMCommunicate request_size=4 [11:17:16]MH_SAM_APDU [11:17:16]CAPDU: 80 0D 01 02 [11:17:16]Write to MH i2c: E2 08 00 AE 0D 80 0D 01 02 00 00 00 00 34 [11:17:16]Write i2c OK [11:17:16]MH_I2C_Read... [11:17:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:17:16]Read from MH i2c: E2 [11:17:16]MH_I2C_Read... [11:17:16]Read from MH i2c: E2 03 00 [11:17:16]MH_I2C_Read... [11:17:16]Read from MH i2c: E2 03 00 AE 0D 00 90 00 2F [11:17:16]RAPDU: 90 00 [11:17:16]wFMCommunicate OK [11:17:16]wFMCommunicate request_size=255 [11:17:16]MH_SAM_APDU [11:17:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 52 08 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BF 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 BC B3 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 24 84 02 00 35 04 06 00 39 [11:17:16]Write to MH i2c: E2 02 01 AF 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 52 08 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BF 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 BC B3 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 24 84 02 00 35 04 06 00 39 00 00 EA [11:17:16]Write i2c OK [11:17:16]MH_I2C_Read... [11:17:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:17]Read from MH i2c: E2 [11:17:17]MH_I2C_Read... [11:17:17]Read from MH i2c: E2 03 00 [11:17:17]MH_I2C_Read... [11:17:17]Read from MH i2c: E2 03 00 AF 0D 00 90 00 30 [11:17:17]RAPDU: 90 00 [11:17:17]wFMCommunicate OK [11:17:17]wFMCommunicate request_size=10 [11:17:17]MH_SAM_APDU [11:17:17]CAPDU: 80 0D 02 02 05 45 D9 A3 DA EC [11:17:17]Write to MH i2c: E2 0D 00 B0 0D 80 0D 02 02 05 00 45 D9 A3 DA EC 00 00 C8 [11:17:17]Write i2c OK [11:17:17]MH_I2C_Read... [11:17:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:17]Read from MH i2c: E2 [11:17:17]MH_I2C_Read... [11:17:17]Read from MH i2c: E2 03 00 [11:17:17]MH_I2C_Read... [11:17:17]Read from MH i2c: E2 03 00 B0 0D 00 90 00 31 [11:17:17]RAPDU: 90 00 [11:17:17]wFMCommunicate OK [11:17:17]wFMCommunicate request_size=4 [11:17:17]MH_SAM_APDU [11:17:17]CAPDU: 80 0D 03 02 [11:17:17]Write to MH i2c: E2 08 00 B1 0D 80 0D 03 02 00 00 00 00 39 [11:17:17]Write i2c OK [11:17:17]MH_I2C_Read... [11:17:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:17:17]Read from MH i2c: E2 [11:17:17]MH_I2C_Read... [11:17:17]Read from MH i2c: E2 0B 00 [11:17:17]MH_I2C_Read... [11:17:17]Read from MH i2c: E2 0B 00 B1 0D 00 0B 72 05 5E 2D 7E AE 83 90 00 F6 [11:17:17]RAPDU: 0B 72 05 5E 2D 7E AE 83 90 00 [11:17:17]wFMCommunicate OK [11:17:17]SAM_PROTO_SignData done [11:17:17]FM_MakeSignedData done [11:17:17]CreateOFDProtocolMessage [11:17:17]wFMCommunicate request_size=4 [11:17:17]MH_SAM_APDU [11:17:17]CAPDU: 80 11 00 00 [11:17:17]Write to MH i2c: E2 08 00 B2 0D 80 11 00 00 00 00 00 00 39 [11:17:17]Write i2c OK [11:17:17]MH_I2C_Read... [11:17:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:17]Read from MH i2c: E2 [11:17:17]MH_I2C_Read... [11:17:17]Read from MH i2c: E2 17 00 [11:17:17]MH_I2C_Read... [11:17:17]Read from MH i2c: E2 17 00 B2 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 8F [11:17:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:17:17]wFMCommunicate OK [11:17:17]CreateOFDProtocolMessage done [11:17:17]OFDSenderStorePacket 164900 [11:17:17]StoreOFDPacket docnum=164900 [11:17:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 DA 51 07 01 EC 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 52 08 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BF 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 BC B3 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 24 84 02 00 35 04 06 00 39 45 D9 A3 DA EC 0B 72 05 5E 2D 7E AE 83 [11:17:17]CheckFolder [11:17:17]dirname=/storage/ofd_packets [11:17:17]CheckFolder done [11:17:17]ProducePacketName [11:17:17]name=ofd_packets/00164900 [11:17:17]NVStorageSaveData ofd_packets/00164900 [11:17:17]File name is /storage/ofd_packets/00164900 [11:17:17]Write 301 bytes [11:17:17]NVStorageSaveData done [11:17:17]OFDSenderStorePacket done [11:17:17]KKMCreateOFDPacket done [11:17:17]NVStorageSaveData kkm_last_timestamp [11:17:17]File name is /storage/kkm_last_timestamp [11:17:17]Write 4 bytes [11:17:17]NVStorageSaveData done [11:17:17]ExternCall_PrintAddStr [11:17:17]wPrintStart [11:17:17]Write to MH i2c: 01 00 00 B3 0D C0 [11:17:17]Write i2c OK [11:17:17]MH_I2C_Read... [11:17:17]Read from MH i2c: 01 [11:17:17]MH_I2C_Read... [11:17:17]Read from MH i2c: 01 07 00 [11:17:17]MH_I2C_Read... [11:17:17]Read from MH i2c: 01 07 00 B3 0D 00 00 00 00 00 FF 0F D5 [11:17:17]RasterBufferAndPrint [11:17:17]line Счет N : (1)458995 [11:17:17]line ИНН: 02508201610067 [11:17:17]line Контрольно-Кассовый Чек [11:17:17]line ПРОДАЖА [11:17:17]line ТРК (МРК, ГНК) : 12 [11:17:17]line Товар: 2710124130 [11:17:17]line Аи-92-К-5 [11:17:17]line 2.130 * 65.80 [11:17:17]line = 140.15 [11:17:17]line НДС 12% НСП 1% [11:17:17]line > о реализуемом товаре [11:17:17]line ОКРУГЛЕНИЕ: -0.15 [11:17:17]line ИТОГО: 140.00 [11:17:17]line Внесено: 140.00 [11:17:17]line СДАЧА: 0.00 [11:17:17]line НСП 1% : 1.24 [11:17:17]line НДС 12% : 14.88 [11:17:17]line Наличными: 140.00 [11:17:17]line Безнал.: 0.00 [11:17:17]line Место: АЗС № 72 "Партнер Нефть" [11:17:17]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:17:17]line СНО: Общий режим [11:17:17]OFD Sender: Processing packet 164900 [packets to send 104, broken 103] [11:17:17]ProducePacketName [11:17:17]name=ofd_packets/00164900 [11:17:17]OFD Sender: To server: pG, [11:17:17]CommunicateWithHost lk.salyk.kg:30040 [11:17:17]ConnectInit lk.salyk.kg [11:17:17]line Чек 98 14.07.2024 11:17 [11:17:17]line Смена: 447 ФФД: 1.0 [11:17:17]line ЗНМ: 0300000160 [11:17:17]line РНМ: 0000000000090829 [11:17:17]line Версия ККМ: 001 [11:17:17]line ФМ: 0000000000874718 [11:17:17]line ФД: 164900 [11:17:17]line ФПД: 62972166920940 [11:17:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T111716&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164900&fm=62972166920940&tin=02508201610067®Number=0000000000090829&sum=14000 [11:17:17]Connected sock=10 [11:17:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 DA 51 07 01 EC 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 52 08 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BF 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 BC B3 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 24 84 02 00 35 04 06 00 39 45 D9 A3 DA EC 0B 72 05 5E 2D 7E AE 83 [11:17:17]written 0, free lines is 4095 [11:17:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 A9 72 47 00 A0 C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 24 84 02 00 F4 03 04 00 4A 5A 93 66 B6 04 01 00 00 2B 57 A8 6A 98 FC 4B 81 [11:17:17]CommunicateWithHost err = 0 [11:17:17]CheckOFDResponse [11:17:17]1017 (14) - 77093643461234 [11:17:17]1041 (16) - 0000000000874718 [11:17:17]1040 (4) - 164900 [11:17:17]1012 (4) - 14.07.2024 04:55 [11:17:17]1206 (1) - 0 [11:17:17]OFD Sender: Remove packet 164900 [11:17:17]ProducePacketName [11:17:17]name=ofd_packets/00164900 [11:17:17]NVStorageDeleteData [11:17:18]Write to MH i2c: 01 00 00 DD 0D EA [11:17:18]Write i2c OK [11:17:18]MH_I2C_Read... [11:17:18]Read from MH i2c: 01 [11:17:18]MH_I2C_Read... [11:17:18]Read from MH i2c: 01 07 00 [11:17:18]MH_I2C_Read... [11:17:18]Read from MH i2c: 01 07 00 DD 0D 00 00 00 00 00 F2 0C EF [11:17:18]RasterBufferAndPrint [11:17:18]line [11:17:18]line [11:17:18]line [11:17:18]line [11:17:18]line [11:17:18]written 0, free lines is 3328 [11:17:18]MH_Cut [11:17:18]Write to MH i2c: D1 01 00 E4 0D 01 C3 [11:17:18]Write i2c OK [11:17:18]MH_I2C_Read... [11:17:18]Read from MH i2c: D1 [11:17:18]MH_I2C_Read... [11:17:18]Read from MH i2c: D1 01 00 [11:17:18]MH_I2C_Read... [11:17:18]Read from MH i2c: D1 01 00 E4 0D 00 C2 [11:17:18]Write to MH i2c: 01 00 00 E5 0D F2 [11:17:18]Write i2c OK [11:17:18]MH_I2C_Read... [11:17:18]OFD Sender: No OFD packet to send [11:17:18]*** Cut start [11:17:18]*** Partial cut [11:17:18]*** CUTSNS_PIN = 1 [11:17:18]*** CUTSNS_PIN = 0 [11:17:19]*** Brake cut motor [11:17:19]Read from MH i2c: 01 [11:17:19]MH_I2C_Read... [11:17:19]*** Stop cut motor [11:17:19]*** Cut end [11:17:19]Read from MH i2c: 01 07 00 [11:17:19]MH_I2C_Read... [11:17:19]Read from MH i2c: 01 07 00 E5 0D 00 00 00 00 00 FF 0F 07 [11:17:19]process_action close_receipt done [11:17:19]requested_data is exist [11:17:19]produce_requested_data [11:17:19]requested_item fm.sn is exist - process it [11:17:19]wFMCommunicate request_size=4 [11:17:19]MH_SAM_APDU [11:17:19]CAPDU: 80 11 00 00 [11:17:19]Write to MH i2c: E2 08 00 E6 0D 80 11 00 00 00 00 00 00 6D [11:17:19]Write i2c OK [11:17:19]MH_I2C_Read... [11:17:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:19]Read from MH i2c: E2 [11:17:19]MH_I2C_Read... [11:17:19]Read from MH i2c: E2 17 00 [11:17:19]MH_I2C_Read... [11:17:19]Read from MH i2c: E2 17 00 E6 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C3 [11:17:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:17:19]wFMCommunicate OK [11:17:19]requested_item fd.num is exist - process it [11:17:19]SAM_PROTO_GetFieldsCounters [11:17:19]wFMCommunicate request_size=4 [11:17:19]MH_SAM_APDU [11:17:19]CAPDU: 80 13 00 00 [11:17:19]Write to MH i2c: E2 08 00 E7 0D 80 13 00 00 00 00 00 00 70 [11:17:19]Write i2c OK [11:17:19]MH_I2C_Read... [11:17:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:17:19]Read from MH i2c: E2 [11:17:19]MH_I2C_Read... [11:17:19]Read from MH i2c: E2 62 00 [11:17:19]MH_I2C_Read... [11:17:19]Read from MH i2c: E2 62 00 E7 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 24 84 02 00 0E 04 04 00 BF 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 27 [11:17:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 24 84 02 00 0E 04 04 00 BF 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 [11:17:19]wFMCommunicate OK [11:17:19]SAM_PROTO_GetFieldsCounters done [11:17:19]requested_item shift.num is exist - process it [11:17:19]requested_item shift.opened is exist - process it [11:17:19]req_shift_opened [11:17:19]FM_GetShiftState [11:17:19]SAM_PROTO_GetShiftState [11:17:19]wFMCommunicate request_size=4 [11:17:19]MH_SAM_APDU [11:17:19]CAPDU: 80 13 01 00 [11:17:19]Write to MH i2c: E2 08 00 E8 0D 80 13 01 00 00 00 00 00 72 [11:17:19]Write i2c OK [11:17:19]MH_I2C_Read... [11:17:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:19]Read from MH i2c: E2 [11:17:19]MH_I2C_Read... [11:17:19]Read from MH i2c: E2 0E 00 [11:17:19]MH_I2C_Read... [11:17:19]Read from MH i2c: E2 0E 00 E8 0D 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 F2 [11:17:19]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:17:19]wFMCommunicate OK [11:17:19]SAM_PROTO_GetShiftState done [11:17:19]FM_GetShiftState done [11:17:19]req_shift_opened done [11:17:19]requested_item shift.open_date is exist - process it [11:17:19]req_shift_open_date [11:17:19]req_shift_open_date done [11:17:19]produce_requested_data done [11:17:19]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164900,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [11:17:19]process_action_free close_receipt [11:17:19]json_value_free [11:17:19]json_value_free done [11:17:19]process_json_proto returns [11:17:19]Send response to host [11:17:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164900,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [11:17:19]free response buf [11:17:19]execute_script done [11:17:19]execute_script returns [11:17:19]free content buf [11:17:19]Sock 9.Close socket [11:17:19]Sock 9.Thread stoped [11:17:23]OFD Sender: No OFD packet to send [11:17:28]OFD Sender: No OFD packet to send [11:17:33]OFD Sender: No OFD packet to send [11:17:38]OFD Sender: No OFD packet to send [11:17:43]OFD Sender: No OFD packet to send [11:17:48]OFD Sender: No OFD packet to send [11:17:53]OFD Sender: No OFD packet to send [11:17:58]OFD Sender: No OFD packet to send [11:18:03]OFD Sender: No OFD packet to send [11:18:08]OFD Sender: No OFD packet to send [11:18:13]OFD Sender: No OFD packet to send [11:18:18]OFD Sender: No OFD packet to send [11:18:23]OFD Sender: No OFD packet to send [11:18:28]OFD Sender: No OFD packet to send [11:18:33]OFD Sender: No OFD packet to send [11:18:38]OFD Sender: No OFD packet to send [11:18:43]OFD Sender: No OFD packet to send [11:18:48]OFD Sender: No OFD packet to send [11:18:53]OFD Sender: No OFD packet to send [11:18:58]OFD Sender: No OFD packet to send [11:19:02]accept exits with 7 [11:19:02]New connection [11:19:02]New thread 3067616612 created [11:19:02]Thread 3067473252 joined [11:19:02]Waiting for new connection... [11:19:02] Sock 7.Parse request [11:19:02]Sock 7.Check first char [11:19:02]Sock 7.First char is OK [11:19:02]request: POST /json_proto HTTP/1.0 [11:19:02]Method: POST [11:19:02]URL: /json_proto [11:19:02]Method is POST - this is cgi request [11:19:02]url: /json_proto [11:19:02]query_string will be loaded in cgi processing [11:19:02]execute_cgi json_proto POST (null) [11:19:02]execute_cgi path=json_proto method=POST [11:19:02]POST find Content-Length [11:19:02]Host: 172.17.56.4:8080 [11:19:02]Content-Length: 677 [11:19:02]Content-Type: application/json [11:19:02] [11:19:02]POST finish read [11:19:02]Found Content-Length = 677 [11:19:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458997", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:19:02]execute_script... [11:19: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)458997", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:19:02]POST & json_proto [11:19:02]process_json_proto [11:19:02]json parsed OK: [11:19:02]protocol is kg_v1.0 [11:19:02]action value=close_receipt [11:19:02]process_action close_receipt [11:19:02]cmd_close_receipt [11:19:02]MH_GetDate [11:19:02]Write to MH i2c: F0 00 00 E9 0D E5 [11:19:02]Write i2c OK [11:19:02]MH_I2C_Read... [11:19:02]Read from MH i2c: F0 [11:19:02]MH_I2C_Read... [11:19:02]Read from MH i2c: F0 09 00 [11:19:02]MH_I2C_Read... [11:19:02]Read from MH i2c: F0 09 00 E9 0D 00 27 B4 93 66 C9 DC B2 64 7D [11:19:02]GetLastDocTimeStamp 1720955836 [11:19:02]current date 1720955943 [11:19:02]FM_GetShiftState [11:19:02]SAM_PROTO_GetShiftState [11:19:02]wFMCommunicate request_size=4 [11:19:02]MH_SAM_APDU [11:19:02]CAPDU: 80 13 01 00 [11:19:02]Write to MH i2c: E2 08 00 EA 0D 80 13 01 00 00 00 00 00 74 [11:19:02]Write i2c OK [11:19:02]MH_I2C_Read... [11:19:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:02]Read from MH i2c: E2 [11:19:02]MH_I2C_Read... [11:19:02]Read from MH i2c: E2 0E 00 [11:19:02]MH_I2C_Read... [11:19:02]Read from MH i2c: E2 0E 00 EA 0D 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 F4 [11:19:02]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:19:02]wFMCommunicate OK [11:19:02]SAM_PROTO_GetShiftState done [11:19:02]FM_GetShiftState done [11:19:02]opened in 1720917342 [11:19:02]opened+sec_in_day 1721003742 [11:19:02]quantity*price = 50008 [11:19:02]sum+1 = 50009 [11:19:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 99 14.07.2024 11:19 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164901 ФПД: 236286936477497 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T111903&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164901&fm=236286936477497&tin=02508201610067®Number=0000000000090829&sum=50000 [11:19:04]StoreToDocumentArchive [11:19:04]shift 447 fd 164901 [11:19:04]save to /storage/0447/doc_00164901 [11:19:04]save last doc name /storage/0447/doc_00164901 to /storage/kkm_last_doc_name [11:19:04]save OK [11:19:04]Clear old archive folders... [11:19:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:19:04]tlvbuf is 0076A6E0 [11:19:04]SAM_PROTO_ClearQueue [11:19:04]wFMCommunicate request_size=4 [11:19:04]MH_SAM_APDU [11:19:04]CAPDU: 80 09 00 00 [11:19:04]Write to MH i2c: E2 08 00 F7 0D 80 09 00 00 00 00 00 00 76 [11:19:04]Write i2c OK [11:19:04]MH_I2C_Read... [11:19:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:19:04]Read from MH i2c: E2 [11:19:04]MH_I2C_Read... [11:19:04]Read from MH i2c: E2 03 00 [11:19:04]MH_I2C_Read... [11:19:04]Read from MH i2c: E2 03 00 F7 0D 00 90 00 78 [11:19:04]RAPDU: 90 00 [11:19:04]wFMCommunicate OK [11:19:04]SAM_PROTO_ClearQueue done [11:19:04]KKMCreateOFDPacket [11:19:04]OFDProtocolAddRootSTLVToBuf [11:19:04]FM_MakeSignedData [11:19:04]FM_MakeSignedData [11:19:04]SAM_PROTO_SignData [11:19:04]wFMCommunicate request_size=4 [11:19:04]MH_SAM_APDU [11:19:04]CAPDU: 80 0D 01 02 [11:19:04]Write to MH i2c: E2 08 00 F8 0D 80 0D 01 02 00 00 00 00 7E [11:19:04]Write i2c OK [11:19:04]MH_I2C_Read... [11:19:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:19:04]Read from MH i2c: E2 [11:19:04]MH_I2C_Read... [11:19:04]Read from MH i2c: E2 03 00 [11:19:04]MH_I2C_Read... [11:19:04]Read from MH i2c: E2 03 00 F8 0D 00 90 00 79 [11:19:04]RAPDU: 90 00 [11:19:04]wFMCommunicate OK [11:19:04]wFMCommunicate request_size=255 [11:19:04]MH_SAM_APDU [11:19:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 63 00 00 00 F4 03 04 00 27 B4 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 25 84 02 00 35 04 06 00 D6 [11:19:04]Write to MH i2c: E2 02 01 F9 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 63 00 00 00 F4 03 04 00 27 B4 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 25 84 02 00 35 04 06 00 D6 00 00 6F [11:19:04]Write i2c OK [11:19:04]MH_I2C_Read... [11:19:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:04]Read from MH i2c: E2 [11:19:04]MH_I2C_Read... [11:19:04]Read from MH i2c: E2 03 00 [11:19:04]MH_I2C_Read... [11:19:04]Read from MH i2c: E2 03 00 F9 0D 00 90 00 7A [11:19:04]RAPDU: 90 00 [11:19:04]wFMCommunicate OK [11:19:04]wFMCommunicate request_size=10 [11:19:04]MH_SAM_APDU [11:19:04]CAPDU: 80 0D 02 02 05 E6 D6 E9 EF 39 [11:19:04]Write to MH i2c: E2 0D 00 FA 0D 80 0D 02 02 05 00 E6 D6 E9 EF 39 00 00 58 [11:19:04]Write i2c OK [11:19:04]MH_I2C_Read... [11:19:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:04]Read from MH i2c: E2 [11:19:04]MH_I2C_Read... [11:19:04]Read from MH i2c: E2 03 00 [11:19:04]MH_I2C_Read... [11:19:04]Read from MH i2c: E2 03 00 FA 0D 00 90 00 7B [11:19:04]RAPDU: 90 00 [11:19:04]wFMCommunicate OK [11:19:04]wFMCommunicate request_size=4 [11:19:04]MH_SAM_APDU [11:19:04]CAPDU: 80 0D 03 02 [11:19:04]Write to MH i2c: E2 08 00 FB 0D 80 0D 03 02 00 00 00 00 83 [11:19:04]Write i2c OK [11:19:04]MH_I2C_Read... [11:19:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:19:04]Read from MH i2c: E2 [11:19:04]MH_I2C_Read... [11:19:04]Read from MH i2c: E2 0B 00 [11:19:04]MH_I2C_Read... [11:19:04]Read from MH i2c: E2 0B 00 FB 0D 00 D1 CE A4 D8 92 8F 25 A9 90 00 8E [11:19:04]RAPDU: D1 CE A4 D8 92 8F 25 A9 90 00 [11:19:04]wFMCommunicate OK [11:19:04]SAM_PROTO_SignData done [11:19:04]FM_MakeSignedData done [11:19:04]CreateOFDProtocolMessage [11:19:04]wFMCommunicate request_size=4 [11:19:04]MH_SAM_APDU [11:19:04]CAPDU: 80 11 00 00 [11:19:04]Write to MH i2c: E2 08 00 FC 0D 80 11 00 00 00 00 00 00 83 [11:19:04]Write i2c OK [11:19:04]MH_I2C_Read... [11:19:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:04]Read from MH i2c: E2 [11:19:04]MH_I2C_Read... [11:19:04]Read from MH i2c: E2 17 00 [11:19:04]MH_I2C_Read... [11:19:04]Read from MH i2c: E2 17 00 FC 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D9 [11:19:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:19:04]wFMCommunicate OK [11:19:04]CreateOFDProtocolMessage done [11:19:04]OFDSenderStorePacket 164901 [11:19:04]StoreOFDPacket docnum=164901 [11:19:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 E1 E4 07 01 90 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 63 00 00 00 F4 03 04 00 27 B4 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 25 84 02 00 35 04 06 00 D6 E6 D6 E9 EF 39 D1 CE A4 D8 92 8F 25 A9 [11:19:04]CheckFolder [11:19:04]dirname=/storage/ofd_packets [11:19:04]CheckFolder done [11:19:04]ProducePacketName [11:19:04]name=ofd_packets/00164901 [11:19:04]NVStorageSaveData ofd_packets/00164901 [11:19:04]File name is /storage/ofd_packets/00164901 [11:19:04]Write 301 bytes [11:19:04]NVStorageSaveData done [11:19:04]OFDSenderStorePacket done [11:19:04]KKMCreateOFDPacket done [11:19:04]NVStorageSaveData kkm_last_timestamp [11:19:04]File name is /storage/kkm_last_timestamp [11:19:04]Write 4 bytes [11:19:04]NVStorageSaveData done [11:19:04]ExternCall_PrintAddStr [11:19:04]wPrintStart [11:19:04]Write to MH i2c: 01 00 00 FD 0D 0A [11:19:04]Write i2c OK [11:19:04]MH_I2C_Read... [11:19:04]Read from MH i2c: 01 [11:19:04]MH_I2C_Read... [11:19:04]Read from MH i2c: 01 07 00 [11:19:04]MH_I2C_Read... [11:19:04]Read from MH i2c: 01 07 00 FD 0D 00 00 00 00 00 FF 0F 1F [11:19:04]RasterBufferAndPrint [11:19:04]line Счет N : (1)458997 [11:19:04]line ИНН: 02508201610067 [11:19:04]line Контрольно-Кассовый Чек [11:19:04]line ПРОДАЖА [11:19:04]line ТРК (МРК, ГНК) : 22 [11:19:04]line Товар: 2710124130 [11:19:04]line Аи-92-К-5 [11:19:04]line 7.600 * 65.80 [11:19:04]line = 500.08 [11:19:04]line НДС 12% НСП 1% [11:19:04]line > о реализуемом товаре [11:19:04]line ОКРУГЛЕНИЕ: -0.08 [11:19:04]line ИТОГО: 500.00 [11:19:04]line Внесено: 500.00 [11:19:04]line СДАЧА: 0.00 [11:19:04]line НСП 1% : 4.42 [11:19:04]line НДС 12% : 53.11 [11:19:04]line Наличными: 500.00 [11:19:04]line Безнал.: 0.00 [11:19:04]line Место: АЗС № 72 "Партнер Нефть" [11:19:04]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:19:04]line СНО: Общий режим [11:19:04]line Чек 99 14.07.2024 11:19 [11:19:04]line Смена: 447 ФФД: 1.0 [11:19:04]line ЗНМ: 0300000160 [11:19:04]line РНМ: 0000000000090829 [11:19:04]line Версия ККМ: 001 [11:19:04]line ФМ: 0000000000874718 [11:19:04]line ФД: 164901 [11:19:04]line ФПД: 236286936477497 [11:19:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T111903&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164901&fm=236286936477497&tin=02508201610067®Number=0000000000090829&sum=50000 [11:19:04]OFD Sender: Processing packet 164901 [packets to send 104, broken 103] [11:19:04]ProducePacketName [11:19:04]name=ofd_packets/00164901 [11:19:04]OFD Sender: To server: pG, [11:19:04]CommunicateWithHost lk.salyk.kg:30040 [11:19:04]ConnectInit lk.salyk.kg [11:19:04]written 0, free lines is 4095 [11:19:05]Connected sock=10 [11:19:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 E1 E4 07 01 90 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 63 00 00 00 F4 03 04 00 27 B4 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 25 84 02 00 35 04 06 00 D6 E6 D6 E9 EF 39 D1 CE A4 D8 92 8F 25 A9 [11:19:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 64 7A 47 00 18 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 25 84 02 00 F4 03 04 00 B5 5A 93 66 B6 04 01 00 00 FE EE 6B 96 1A A1 9A ED [11:19:05]CommunicateWithHost err = 0 [11:19:05]CheckOFDResponse [11:19:05]1017 (14) - 77093643461234 [11:19:05]1041 (16) - 0000000000874718 [11:19:05]1040 (4) - 164901 [11:19:05]1012 (4) - 14.07.2024 04:57 [11:19:05]1206 (1) - 0 [11:19:05]OFD Sender: Remove packet 164901 [11:19:05]ProducePacketName [11:19:05]name=ofd_packets/00164901 [11:19:05]NVStorageDeleteData [11:19:05]Write to MH i2c: 01 00 00 27 0E 35 [11:19:05]Write i2c OK [11:19:05]MH_I2C_Read... [11:19:05]Read from MH i2c: 01 [11:19:05]MH_I2C_Read... [11:19:05]Read from MH i2c: 01 07 00 [11:19:05]MH_I2C_Read... [11:19:05]Read from MH i2c: 01 07 00 27 0E 00 00 00 00 00 F7 0C 3F [11:19:05]RasterBufferAndPrint [11:19:05]line [11:19:05]line [11:19:05]line [11:19:05]line [11:19:05]line [11:19:05]written 0, free lines is 3323 [11:19:05]MH_Cut [11:19:05]Write to MH i2c: D1 01 00 2E 0E 01 0E [11:19:05]Write i2c OK [11:19:05]MH_I2C_Read... [11:19:05]Read from MH i2c: D1 [11:19:05]MH_I2C_Read... [11:19:05]Read from MH i2c: D1 01 00 [11:19:05]MH_I2C_Read... [11:19:05]Read from MH i2c: D1 01 00 2E 0E 00 0D [11:19:05]Write to MH i2c: 01 00 00 2F 0E 3D [11:19:05]Write i2c OK [11:19:05]MH_I2C_Read... [11:19:05]OFD Sender: No OFD packet to send [11:19:06]*** Cut start [11:19:06]*** Partial cut [11:19:06]*** CUTSNS_PIN = 1 [11:19:06]*** CUTSNS_PIN = 0 [11:19:06]*** Brake cut motor [11:19:06]Read from MH i2c: 01 [11:19:06]MH_I2C_Read... [11:19:06]*** Stop cut motor [11:19:06]*** Cut end [11:19:06]Read from MH i2c: 01 07 00 [11:19:06]MH_I2C_Read... [11:19:06]Read from MH i2c: 01 07 00 2F 0E 00 00 00 00 00 FF 0F 52 [11:19:06]process_action close_receipt done [11:19:06]requested_data is exist [11:19:06]produce_requested_data [11:19:06]requested_item fm.sn is exist - process it [11:19:06]wFMCommunicate request_size=4 [11:19:06]MH_SAM_APDU [11:19:06]CAPDU: 80 11 00 00 [11:19:06]Write to MH i2c: E2 08 00 30 0E 80 11 00 00 00 00 00 00 B8 [11:19:06]Write i2c OK [11:19:06]MH_I2C_Read... [11:19:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:06]Read from MH i2c: E2 [11:19:06]MH_I2C_Read... [11:19:06]Read from MH i2c: E2 17 00 [11:19:06]MH_I2C_Read... [11:19:06]Read from MH i2c: E2 17 00 30 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 0E [11:19:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:19:06]wFMCommunicate OK [11:19:06]requested_item fd.num is exist - process it [11:19:06]SAM_PROTO_GetFieldsCounters [11:19:06]wFMCommunicate request_size=4 [11:19:06]MH_SAM_APDU [11:19:06]CAPDU: 80 13 00 00 [11:19:06]Write to MH i2c: E2 08 00 31 0E 80 13 00 00 00 00 00 00 BB [11:19:06]Write i2c OK [11:19:06]MH_I2C_Read... [11:19:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:19:06]Read from MH i2c: E2 [11:19:06]MH_I2C_Read... [11:19:06]Read from MH i2c: E2 62 00 [11:19:06]MH_I2C_Read... [11:19:06]Read from MH i2c: E2 62 00 31 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 25 84 02 00 0E 04 04 00 BF 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 76 [11:19:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 25 84 02 00 0E 04 04 00 BF 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 [11:19:06]wFMCommunicate OK [11:19:06]SAM_PROTO_GetFieldsCounters done [11:19:06]requested_item shift.num is exist - process it [11:19:06]requested_item shift.opened is exist - process it [11:19:06]req_shift_opened [11:19:06]FM_GetShiftState [11:19:06]SAM_PROTO_GetShiftState [11:19:06]wFMCommunicate request_size=4 [11:19:06]MH_SAM_APDU [11:19:06]CAPDU: 80 13 01 00 [11:19:06]Write to MH i2c: E2 08 00 32 0E 80 13 01 00 00 00 00 00 BD [11:19:06]Write i2c OK [11:19:06]MH_I2C_Read... [11:19:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:06]Read from MH i2c: E2 [11:19:06]MH_I2C_Read... [11:19:06]Read from MH i2c: E2 0E 00 [11:19:06]MH_I2C_Read... [11:19:06]Read from MH i2c: E2 0E 00 32 0E 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 3D [11:19:06]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:19:06]wFMCommunicate OK [11:19:06]SAM_PROTO_GetShiftState done [11:19:06]FM_GetShiftState done [11:19:06]req_shift_opened done [11:19:06]requested_item shift.open_date is exist - process it [11:19:06]req_shift_open_date [11:19:06]req_shift_open_date done [11:19:06]produce_requested_data done [11:19:06]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164901,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [11:19:06]process_action_free close_receipt [11:19:06]json_value_free [11:19:06]json_value_free done [11:19:06]process_json_proto returns [11:19:06]Send response to host [11:19:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164901,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [11:19:06]free response buf [11:19:06]execute_script done [11:19:06]execute_script returns [11:19:06]free content buf [11:19:06]Sock 7.Close socket [11:19:06]Sock 7.Thread stoped [11:19:10]OFD Sender: No OFD packet to send [11:19:15]OFD Sender: No OFD packet to send [11:19:20]OFD Sender: No OFD packet to send [11:19:25]OFD Sender: No OFD packet to send [11:19:30]OFD Sender: No OFD packet to send [11:19:32]accept exits with 9 [11:19:32]New connection [11:19:32]New thread 3067473252 created [11:19:32]Thread 3067616612 joined [11:19:32]Waiting for new connection... [11:19:32] Sock 9.Parse request [11:19:32]Sock 9.Check first char [11:19:32]Sock 9.First char is OK [11:19:32]request: POST /json_proto HTTP/1.0 [11:19:32]Method: POST [11:19:32]URL: /json_proto [11:19:32]Method is POST - this is cgi request [11:19:32]url: /json_proto [11:19:32]query_string will be loaded in cgi processing [11:19:32]execute_cgi json_proto POST (null) [11:19:32]execute_cgi path=json_proto method=POST [11:19:32]POST find Content-Length [11:19:32]Host: 172.17.56.4:8080 [11:19:32]Content-Length: 677 [11:19:32]Content-Type: application/json [11:19:32] [11:19:32]POST finish read [11:19:32]Found Content-Length = 677 [11:19:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458998", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:19:32]execute_script... [11:19:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458998", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:19:32]POST & json_proto [11:19:32]process_json_proto [11:19:32]json parsed OK: [11:19:32]protocol is kg_v1.0 [11:19:32]action value=close_receipt [11:19:32]process_action close_receipt [11:19:32]cmd_close_receipt [11:19:32]MH_GetDate [11:19:32]Write to MH i2c: F0 00 00 33 0E 30 [11:19:32]Write i2c OK [11:19:32]MH_I2C_Read... [11:19:32]Read from MH i2c: F0 [11:19:32]MH_I2C_Read... [11:19:32]Read from MH i2c: F0 09 00 [11:19:32]MH_I2C_Read... [11:19:32]Read from MH i2c: F0 09 00 33 0E 00 45 B4 93 66 C9 DC B2 64 E6 [11:19:32]GetLastDocTimeStamp 1720955943 [11:19:32]current date 1720955973 [11:19:32]FM_GetShiftState [11:19:32]SAM_PROTO_GetShiftState [11:19:32]wFMCommunicate request_size=4 [11:19:32]MH_SAM_APDU [11:19:32]CAPDU: 80 13 01 00 [11:19:32]Write to MH i2c: E2 08 00 34 0E 80 13 01 00 00 00 00 00 BF [11:19:32]Write i2c OK [11:19:32]MH_I2C_Read... [11:19:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:32]Read from MH i2c: E2 [11:19:32]MH_I2C_Read... [11:19:32]Read from MH i2c: E2 0E 00 [11:19:32]MH_I2C_Read... [11:19:32]Read from MH i2c: E2 0E 00 34 0E 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 3F [11:19:32]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:19:32]wFMCommunicate OK [11:19:32]SAM_PROTO_GetShiftState done [11:19:32]FM_GetShiftState done [11:19:32]opened in 1720917342 [11:19:32]opened+sec_in_day 1721003742 [11:19:32]quantity*price = 50008 [11:19:32]sum+1 = 50009 [11:19:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 100 14.07.2024 11:19 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164902 ФПД: 273549983325656 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T111933&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164902&fm=273549983325656&tin=02508201610067®Number=0000000000090829&sum=50000 [11:19:33]StoreToDocumentArchive [11:19:33]shift 447 fd 164902 [11:19:33]save to /storage/0447/doc_00164902 [11:19:33]save last doc name /storage/0447/doc_00164902 to /storage/kkm_last_doc_name [11:19:33]save OK [11:19:33]Clear old archive folders... [11:19:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:19:33]tlvbuf is 007389A0 [11:19:33]SAM_PROTO_ClearQueue [11:19:33]wFMCommunicate request_size=4 [11:19:33]MH_SAM_APDU [11:19:33]CAPDU: 80 09 00 00 [11:19:33]Write to MH i2c: E2 08 00 41 0E 80 09 00 00 00 00 00 00 C1 [11:19:33]Write i2c OK [11:19:33]MH_I2C_Read... [11:19:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:19:33]Read from MH i2c: E2 [11:19:33]MH_I2C_Read... [11:19:33]Read from MH i2c: E2 03 00 [11:19:33]MH_I2C_Read... [11:19:33]Read from MH i2c: E2 03 00 41 0E 00 90 00 C3 [11:19:33]RAPDU: 90 00 [11:19:33]wFMCommunicate OK [11:19:33]SAM_PROTO_ClearQueue done [11:19:33]KKMCreateOFDPacket [11:19:33]OFDProtocolAddRootSTLVToBuf [11:19:33]FM_MakeSignedData [11:19:33]FM_MakeSignedData [11:19:33]SAM_PROTO_SignData [11:19:33]wFMCommunicate request_size=4 [11:19:33]MH_SAM_APDU [11:19:33]CAPDU: 80 0D 01 02 [11:19:33]Write to MH i2c: E2 08 00 42 0E 80 0D 01 02 00 00 00 00 C9 [11:19:33]Write i2c OK [11:19:33]MH_I2C_Read... [11:19:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:19:33]Read from MH i2c: E2 [11:19:33]MH_I2C_Read... [11:19:33]Read from MH i2c: E2 03 00 [11:19:33]MH_I2C_Read... [11:19:33]Read from MH i2c: E2 03 00 42 0E 00 90 00 C4 [11:19:33]RAPDU: 90 00 [11:19:33]wFMCommunicate OK [11:19:33]wFMCommunicate request_size=255 [11:19:33]MH_SAM_APDU [11:19:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 64 00 00 00 F4 03 04 00 45 B4 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 26 84 02 00 35 04 06 00 F8 [11:19:33]Write to MH i2c: E2 02 01 43 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 64 00 00 00 F4 03 04 00 45 B4 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 26 84 02 00 35 04 06 00 F8 00 00 FC [11:19:33]Write i2c OK [11:19:33]MH_I2C_Read... [11:19:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:34]Read from MH i2c: E2 [11:19:34]MH_I2C_Read... [11:19:34]Read from MH i2c: E2 03 00 [11:19:34]MH_I2C_Read... [11:19:34]Read from MH i2c: E2 03 00 43 0E 00 90 00 C5 [11:19:34]RAPDU: 90 00 [11:19:34]wFMCommunicate OK [11:19:34]wFMCommunicate request_size=10 [11:19:34]MH_SAM_APDU [11:19:34]CAPDU: 80 0D 02 02 05 CA D1 95 9D D8 [11:19:34]Write to MH i2c: E2 0D 00 44 0E 80 0D 02 02 05 00 CA D1 95 9D D8 00 00 7B [11:19:34]Write i2c OK [11:19:34]MH_I2C_Read... [11:19:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:34]Read from MH i2c: E2 [11:19:34]MH_I2C_Read... [11:19:34]Read from MH i2c: E2 03 00 [11:19:34]MH_I2C_Read... [11:19:34]Read from MH i2c: E2 03 00 44 0E 00 90 00 C6 [11:19:34]RAPDU: 90 00 [11:19:34]wFMCommunicate OK [11:19:34]wFMCommunicate request_size=4 [11:19:34]MH_SAM_APDU [11:19:34]CAPDU: 80 0D 03 02 [11:19:34]Write to MH i2c: E2 08 00 45 0E 80 0D 03 02 00 00 00 00 CE [11:19:34]Write i2c OK [11:19:34]MH_I2C_Read... [11:19:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:19:34]Read from MH i2c: E2 [11:19:34]MH_I2C_Read... [11:19:34]Read from MH i2c: E2 0B 00 [11:19:34]MH_I2C_Read... [11:19:34]Read from MH i2c: E2 0B 00 45 0E 00 CB C8 6F F8 98 D1 02 48 90 00 7C [11:19:34]RAPDU: CB C8 6F F8 98 D1 02 48 90 00 [11:19:34]wFMCommunicate OK [11:19:34]SAM_PROTO_SignData done [11:19:34]FM_MakeSignedData done [11:19:34]CreateOFDProtocolMessage [11:19:34]wFMCommunicate request_size=4 [11:19:34]MH_SAM_APDU [11:19:34]CAPDU: 80 11 00 00 [11:19:34]Write to MH i2c: E2 08 00 46 0E 80 11 00 00 00 00 00 00 CE [11:19:34]Write i2c OK [11:19:34]MH_I2C_Read... [11:19:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:34]Read from MH i2c: E2 [11:19:34]MH_I2C_Read... [11:19:34]Read from MH i2c: E2 17 00 [11:19:34]MH_I2C_Read... [11:19:34]Read from MH i2c: E2 17 00 46 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 24 [11:19:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:19:34]wFMCommunicate OK [11:19:34]CreateOFDProtocolMessage done [11:19:34]OFDSenderStorePacket 164902 [11:19:34]StoreOFDPacket docnum=164902 [11:19:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 8A 29 07 01 63 D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 64 00 00 00 F4 03 04 00 45 B4 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 26 84 02 00 35 04 06 00 F8 CA D1 95 9D D8 CB C8 6F F8 98 D1 02 48 [11:19:34]CheckFolder [11:19:34]dirname=/storage/ofd_packets [11:19:34]CheckFolder done [11:19:34]ProducePacketName [11:19:34]name=ofd_packets/00164902 [11:19:34]NVStorageSaveData ofd_packets/00164902 [11:19:34]File name is /storage/ofd_packets/00164902 [11:19:34]Write 301 bytes [11:19:34]NVStorageSaveData done [11:19:34]OFDSenderStorePacket done [11:19:34]KKMCreateOFDPacket done [11:19:34]NVStorageSaveData kkm_last_timestamp [11:19:34]File name is /storage/kkm_last_timestamp [11:19:34]Write 4 bytes [11:19:34]NVStorageSaveData done [11:19:34]OFD Sender: Processing packet 164902 [packets to send 104, broken 103] [11:19:34]ProducePacketName [11:19:34]name=ofd_packets/00164902 [11:19:34]OFD Sender: To server: pG, [11:19:34]CommunicateWithHost lk.salyk.kg:30040 [11:19:34]ConnectInit lk.salyk.kg [11:19:34]ExternCall_PrintAddStr [11:19:34]wPrintStart [11:19:34]Write to MH i2c: 01 00 00 47 0E 55 [11:19:34]Write i2c OK [11:19:34]MH_I2C_Read... [11:19:34]Read from MH i2c: 01 [11:19:34]MH_I2C_Read... [11:19:34]Read from MH i2c: 01 07 00 [11:19:34]MH_I2C_Read... [11:19:34]Read from MH i2c: 01 07 00 47 0E 00 00 00 00 00 FF 0F 6A [11:19:34]RasterBufferAndPrint [11:19:34]line Счет N : (1)458998 [11:19:34]line ИНН: 02508201610067 [11:19:34]line Контрольно-Кассовый Чек [11:19:34]line ПРОДАЖА [11:19:34]line ТРК (МРК, ГНК) : 12 [11:19:34]line Товар: 2710124130 [11:19:34]line Аи-92-К-5 [11:19:34]line 7.600 * 65.80 [11:19:34]line = 500.08 [11:19:34]line НДС 12% НСП 1% [11:19:34]line > о реализуемом товаре [11:19:34]line ОКРУГЛЕНИЕ: -0.08 [11:19:34]line ИТОГО: 500.00 [11:19:34]line Внесено: 500.00 [11:19:34]line СДАЧА: 0.00 [11:19:34]line НСП 1% : 4.42 [11:19:34]line НДС 12% : 53.11 [11:19:34]line Наличными: 500.00 [11:19:34]line Безнал.: 0.00 [11:19:34]line Место: АЗС № 72 "Партнер Нефть" [11:19:34]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:19:34]line СНО: Общий режим [11:19:34]line Чек 100 14.07.2024 11:19 [11:19:34]line Смена: 447 ФФД: 1.0 [11:19:34]line ЗНМ: 0300000160 [11:19:34]line РНМ: 0000000000090829 [11:19:34]line Версия ККМ: 001 [11:19:34]line ФМ: 0000000000874718 [11:19:34]line ФД: 164902 [11:19:34]line ФПД: 273549983325656 [11:19:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T111933&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164902&fm=273549983325656&tin=02508201610067®Number=0000000000090829&sum=50000 [11:19:34]Connected sock=11 [11:19:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 8A 29 07 01 63 D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 64 00 00 00 F4 03 04 00 45 B4 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 26 84 02 00 35 04 06 00 F8 CA D1 95 9D D8 CB C8 6F F8 98 D1 02 48 [11:19:34]written 0, free lines is 4095 [11:19:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 50 FA 47 00 8C 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 38 37 34 37 31 38 10 04 04 00 26 84 02 00 F4 03 04 00 D3 5A 93 66 B6 04 01 00 00 A6 63 D5 99 BE 1E C4 A9 [11:19:34]CommunicateWithHost err = 0 [11:19:34]CheckOFDResponse [11:19:34]1017 (14) - 77093643461234 [11:19:34]1041 (16) - 0000000000874718 [11:19:34]1040 (4) - 164902 [11:19:34]1012 (4) - 14.07.2024 04:57 [11:19:34]1206 (1) - 0 [11:19:34]OFD Sender: Remove packet 164902 [11:19:34]ProducePacketName [11:19:34]name=ofd_packets/00164902 [11:19:34]NVStorageDeleteData [11:19:35]Write to MH i2c: 01 00 00 71 0E 7F [11:19:35]Write i2c OK [11:19:35]MH_I2C_Read... [11:19:35]Read from MH i2c: 01 [11:19:35]MH_I2C_Read... [11:19:35]Read from MH i2c: 01 07 00 [11:19:35]MH_I2C_Read... [11:19:35]Read from MH i2c: 01 07 00 71 0E 00 00 00 00 00 F8 0C 8A [11:19:35]RasterBufferAndPrint [11:19:35]line [11:19:35]line [11:19:35]line [11:19:35]line [11:19:35]line [11:19:35]written 0, free lines is 3327 [11:19:35]MH_Cut [11:19:35]Write to MH i2c: D1 01 00 78 0E 01 58 [11:19:35]Write i2c OK [11:19:35]MH_I2C_Read... [11:19:35]Read from MH i2c: D1 [11:19:35]MH_I2C_Read... [11:19:35]Read from MH i2c: D1 01 00 [11:19:35]MH_I2C_Read... [11:19:35]Read from MH i2c: D1 01 00 78 0E 00 57 [11:19:35]Write to MH i2c: 01 00 00 79 0E 87 [11:19:35]Write i2c OK [11:19:35]MH_I2C_Read... [11:19:35]OFD Sender: No OFD packet to send [11:19:35]*** Cut start [11:19:35]*** Partial cut [11:19:35]*** CUTSNS_PIN = 1 [11:19:35]*** CUTSNS_PIN = 0 [11:19:36]*** Brake cut motor [11:19:36]Read from MH i2c: 01 [11:19:36]MH_I2C_Read... [11:19:36]*** Stop cut motor [11:19:36]*** Cut end [11:19:36]Read from MH i2c: 01 07 00 [11:19:36]MH_I2C_Read... [11:19:36]Read from MH i2c: 01 07 00 79 0E 00 00 00 00 00 FF 0F 9C [11:19:36]process_action close_receipt done [11:19:36]requested_data is exist [11:19:36]produce_requested_data [11:19:36]requested_item fm.sn is exist - process it [11:19:36]wFMCommunicate request_size=4 [11:19:36]MH_SAM_APDU [11:19:36]CAPDU: 80 11 00 00 [11:19:36]Write to MH i2c: E2 08 00 7A 0E 80 11 00 00 00 00 00 00 02 [11:19:36]Write i2c OK [11:19:36]MH_I2C_Read... [11:19:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:36]Read from MH i2c: E2 [11:19:36]MH_I2C_Read... [11:19:36]Read from MH i2c: E2 17 00 [11:19:36]MH_I2C_Read... [11:19:36]Read from MH i2c: E2 17 00 7A 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 58 [11:19:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:19:36]wFMCommunicate OK [11:19:36]requested_item fd.num is exist - process it [11:19:36]SAM_PROTO_GetFieldsCounters [11:19:36]wFMCommunicate request_size=4 [11:19:36]MH_SAM_APDU [11:19:36]CAPDU: 80 13 00 00 [11:19:36]Write to MH i2c: E2 08 00 7B 0E 80 13 00 00 00 00 00 00 05 [11:19:36]Write i2c OK [11:19:36]MH_I2C_Read... [11:19:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:19:36]Read from MH i2c: E2 [11:19:36]MH_I2C_Read... [11:19:36]Read from MH i2c: E2 62 00 [11:19:36]MH_I2C_Read... [11:19:36]Read from MH i2c: E2 62 00 7B 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 26 84 02 00 0E 04 04 00 BF 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 C4 [11:19:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 26 84 02 00 0E 04 04 00 BF 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 [11:19:36]wFMCommunicate OK [11:19:36]SAM_PROTO_GetFieldsCounters done [11:19:36]requested_item shift.num is exist - process it [11:19:36]requested_item shift.opened is exist - process it [11:19:36]req_shift_opened [11:19:36]FM_GetShiftState [11:19:36]SAM_PROTO_GetShiftState [11:19:36]wFMCommunicate request_size=4 [11:19:36]MH_SAM_APDU [11:19:36]CAPDU: 80 13 01 00 [11:19:36]Write to MH i2c: E2 08 00 7C 0E 80 13 01 00 00 00 00 00 07 [11:19:36]Write i2c OK [11:19:36]MH_I2C_Read... [11:19:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:36]Read from MH i2c: E2 [11:19:36]MH_I2C_Read... [11:19:36]Read from MH i2c: E2 0E 00 [11:19:36]MH_I2C_Read... [11:19:36]Read from MH i2c: E2 0E 00 7C 0E 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 87 [11:19:36]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:19:36]wFMCommunicate OK [11:19:36]SAM_PROTO_GetShiftState done [11:19:36]FM_GetShiftState done [11:19:36]req_shift_opened done [11:19:36]requested_item shift.open_date is exist - process it [11:19:36]req_shift_open_date [11:19:36]req_shift_open_date done [11:19:36]produce_requested_data done [11:19:36]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164902,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [11:19:36]process_action_free close_receipt [11:19:36]json_value_free [11:19:36]json_value_free done [11:19:36]process_json_proto returns [11:19:36]Send response to host [11:19:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164902,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [11:19:36]free response buf [11:19:36]execute_script done [11:19:36]execute_script returns [11:19:36]free content buf [11:19:36]Sock 9.Close socket [11:19:36]Sock 9.Thread stoped [11:19:40]OFD Sender: No OFD packet to send [11:19:45]OFD Sender: No OFD packet to send [11:19:50]OFD Sender: No OFD packet to send [11:19:55]OFD Sender: No OFD packet to send [11:20:00]OFD Sender: No OFD packet to send [11:20:05]OFD Sender: No OFD packet to send [11:20:10]OFD Sender: No OFD packet to send [11:20:15]OFD Sender: No OFD packet to send [11:20:20]OFD Sender: No OFD packet to send [11:20:25]OFD Sender: No OFD packet to send [11:20:30]OFD Sender: No OFD packet to send [11:20:35]OFD Sender: No OFD packet to send [11:20:40]OFD Sender: No OFD packet to send [11:20:45]OFD Sender: No OFD packet to send [11:20:50]OFD Sender: No OFD packet to send [11:20:55]OFD Sender: No OFD packet to send [11:21:00]accept exits with 7 [11:21:00]New connection [11:21:00]New thread 3067616612 created [11:21:00]Thread 3067473252 joined [11:21:00]Waiting for new connection... [11:21:00] Sock 7.Parse request [11:21:00]Sock 7.Check first char [11:21:00]Sock 7.First char is OK [11:21:00]request: POST /json_proto HTTP/1.0 [11:21:00]Method: POST [11:21:00]URL: /json_proto [11:21:00]Method is POST - this is cgi request [11:21:00]url: /json_proto [11:21:00]query_string will be loaded in cgi processing [11:21:00]execute_cgi json_proto POST (null) [11:21:00]execute_cgi path=json_proto method=POST [11:21:00]POST find Content-Length [11:21:00]Host: 172.17.56.4:8080 [11:21:00]Content-Length: 677 [11:21:00]Content-Type: application/json [11:21:00] [11:21:00]POST finish read [11:21:00]Found Content-Length = 677 [11:21:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)458999", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.800, "sum" : 250.04, "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" ] } } [11:21:00]execute_script... [11:21: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)458999", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.800, "sum" : 250.04, "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" ] } } [11:21:00]POST & json_proto [11:21:00]process_json_proto [11:21:00]json parsed OK: [11:21:00]protocol is kg_v1.0 [11:21:00]action value=close_receipt [11:21:00]process_action close_receipt [11:21:00]cmd_close_receipt [11:21:00]MH_GetDate [11:21:00]Write to MH i2c: F0 00 00 7D 0E 7A [11:21:00]Write i2c OK [11:21:00]MH_I2C_Read... [11:21:00]Read from MH i2c: F0 [11:21:00]MH_I2C_Read... [11:21:00]Read from MH i2c: F0 09 00 [11:21:00]MH_I2C_Read... [11:21:00]Read from MH i2c: F0 09 00 7D 0E 00 9D B4 93 66 C9 DC B2 64 88 [11:21:00]GetLastDocTimeStamp 1720955973 [11:21:00]current date 1720956061 [11:21:00]FM_GetShiftState [11:21:00]SAM_PROTO_GetShiftState [11:21:00]wFMCommunicate request_size=4 [11:21:00]MH_SAM_APDU [11:21:00]CAPDU: 80 13 01 00 [11:21:00]Write to MH i2c: E2 08 00 7E 0E 80 13 01 00 00 00 00 00 09 [11:21:00]Write i2c OK [11:21:00]MH_I2C_Read... [11:21:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:21:00]Read from MH i2c: E2 [11:21:00]MH_I2C_Read... [11:21:00]Read from MH i2c: E2 0E 00 [11:21:00]MH_I2C_Read... [11:21:00]Read from MH i2c: E2 0E 00 7E 0E 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 89 [11:21:00]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:21:00]wFMCommunicate OK [11:21:00]SAM_PROTO_GetShiftState done [11:21:00]FM_GetShiftState done [11:21:00]opened in 1720917342 [11:21:00]opened+sec_in_day 1721003742 [11:21:00]quantity*price = 25004 [11:21:00]sum+1 = 25005 [11:21:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.55 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 101 14.07.2024 11:21 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164903 ФПД: 24227501837319 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T112101&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164903&fm=24227501837319&tin=02508201610067®Number=0000000000090829&sum=25000 [11:21:01]StoreToDocumentArchive [11:21:01]shift 447 fd 164903 [11:21:01]save to /storage/0447/doc_00164903 [11:21:01]save last doc name /storage/0447/doc_00164903 to /storage/kkm_last_doc_name [11:21:01]save OK [11:21:01]Clear old archive folders... [11:21:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:21:01]tlvbuf is 0076A8C0 [11:21:01]SAM_PROTO_ClearQueue [11:21:01]wFMCommunicate request_size=4 [11:21:01]MH_SAM_APDU [11:21:01]CAPDU: 80 09 00 00 [11:21:01]Write to MH i2c: E2 08 00 8B 0E 80 09 00 00 00 00 00 00 0B [11:21:01]Write i2c OK [11:21:01]MH_I2C_Read... [11:21:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:21:01]Read from MH i2c: E2 [11:21:01]MH_I2C_Read... [11:21:01]Read from MH i2c: E2 03 00 [11:21:01]MH_I2C_Read... [11:21:01]Read from MH i2c: E2 03 00 8B 0E 00 90 00 0D [11:21:01]RAPDU: 90 00 [11:21:01]wFMCommunicate OK [11:21:01]SAM_PROTO_ClearQueue done [11:21:01]KKMCreateOFDPacket [11:21:01]OFDProtocolAddRootSTLVToBuf [11:21:01]FM_MakeSignedData [11:21:01]FM_MakeSignedData [11:21:01]SAM_PROTO_SignData [11:21:01]wFMCommunicate request_size=4 [11:21:01]MH_SAM_APDU [11:21:01]CAPDU: 80 0D 01 02 [11:21:01]Write to MH i2c: E2 08 00 8C 0E 80 0D 01 02 00 00 00 00 13 [11:21:01]Write i2c OK [11:21:01]MH_I2C_Read... [11:21:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:21:01]Read from MH i2c: E2 [11:21:01]MH_I2C_Read... [11:21:01]Read from MH i2c: E2 03 00 [11:21:01]MH_I2C_Read... [11:21:01]Read from MH i2c: E2 03 00 8C 0E 00 90 00 0E [11:21:01]RAPDU: 90 00 [11:21:01]wFMCommunicate OK [11:21:01]wFMCommunicate request_size=255 [11:21:01]MH_SAM_APDU [11:21:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 AC 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 9D B4 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 27 84 02 00 35 04 06 00 16 [11:21:01]Write to MH i2c: E2 02 01 8D 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 AC 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 9D B4 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 27 84 02 00 35 04 06 00 16 00 00 6D [11:21:01]Write i2c OK [11:21:01]MH_I2C_Read... [11:21:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:21:02]Read from MH i2c: E2 [11:21:02]MH_I2C_Read... [11:21:02]Read from MH i2c: E2 03 00 [11:21:02]MH_I2C_Read... [11:21:02]Read from MH i2c: E2 03 00 8D 0E 00 90 00 0F [11:21:02]RAPDU: 90 00 [11:21:02]wFMCommunicate OK [11:21:02]wFMCommunicate request_size=10 [11:21:02]MH_SAM_APDU [11:21:02]CAPDU: 80 0D 02 02 05 08 E7 A4 0C 07 [11:21:02]Write to MH i2c: E2 0D 00 8E 0E 80 0D 02 02 05 00 08 E7 A4 0C 07 00 00 C6 [11:21:02]Write i2c OK [11:21:02]MH_I2C_Read... [11:21:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:21:02]Read from MH i2c: E2 [11:21:02]MH_I2C_Read... [11:21:02]Read from MH i2c: E2 03 00 [11:21:02]MH_I2C_Read... [11:21:02]Read from MH i2c: E2 03 00 8E 0E 00 90 00 10 [11:21:02]RAPDU: 90 00 [11:21:02]wFMCommunicate OK [11:21:02]wFMCommunicate request_size=4 [11:21:02]MH_SAM_APDU [11:21:02]CAPDU: 80 0D 03 02 [11:21:02]Write to MH i2c: E2 08 00 8F 0E 80 0D 03 02 00 00 00 00 18 [11:21:02]Write i2c OK [11:21:02]MH_I2C_Read... [11:21:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:21:02]Read from MH i2c: E2 [11:21:02]MH_I2C_Read... [11:21:02]Read from MH i2c: E2 0B 00 [11:21:02]MH_I2C_Read... [11:21:02]Read from MH i2c: E2 0B 00 8F 0E 00 08 7F 3E 36 3F B0 0F 60 90 00 72 [11:21:02]RAPDU: 08 7F 3E 36 3F B0 0F 60 90 00 [11:21:02]wFMCommunicate OK [11:21:02]SAM_PROTO_SignData done [11:21:02]FM_MakeSignedData done [11:21:02]CreateOFDProtocolMessage [11:21:02]wFMCommunicate request_size=4 [11:21:02]MH_SAM_APDU [11:21:02]CAPDU: 80 11 00 00 [11:21:02]Write to MH i2c: E2 08 00 90 0E 80 11 00 00 00 00 00 00 18 [11:21:02]Write i2c OK [11:21:02]MH_I2C_Read... [11:21:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:21:02]Read from MH i2c: E2 [11:21:02]MH_I2C_Read... [11:21:02]Read from MH i2c: E2 17 00 [11:21:02]MH_I2C_Read... [11:21:02]Read from MH i2c: E2 17 00 90 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 6E [11:21:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:21:02]wFMCommunicate OK [11:21:02]CreateOFDProtocolMessage done [11:21:02]OFDSenderStorePacket 164903 [11:21:02]StoreOFDPacket docnum=164903 [11:21:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 07 57 07 01 73 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 AC 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 9D B4 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 27 84 02 00 35 04 06 00 16 08 E7 A4 0C 07 08 7F 3E 36 3F B0 0F 60 [11:21:02]CheckFolder [11:21:02]dirname=/storage/ofd_packets [11:21:02]CheckFolder done [11:21:02]ProducePacketName [11:21:02]name=ofd_packets/00164903 [11:21:02]NVStorageSaveData ofd_packets/00164903 [11:21:02]File name is /storage/ofd_packets/00164903 [11:21:02]Write 301 bytes [11:21:02]NVStorageSaveData done [11:21:02]OFDSenderStorePacket done [11:21:02]KKMCreateOFDPacket done [11:21:02]NVStorageSaveData kkm_last_timestamp [11:21:02]File name is /storage/kkm_last_timestamp [11:21:02]Write 4 bytes [11:21:02]NVStorageSaveData done [11:21:02]ExternCall_PrintAddStr [11:21:02]wPrintStart [11:21:02]Write to MH i2c: 01 00 00 91 0E 9F [11:21:02]Write i2c OK [11:21:02]MH_I2C_Read... [11:21:02]Read from MH i2c: 01 [11:21:02]MH_I2C_Read... [11:21:02]Read from MH i2c: 01 07 00 [11:21:02]MH_I2C_Read... [11:21:02]Read from MH i2c: 01 07 00 91 0E 00 00 00 00 00 FF 0F B4 [11:21:02]RasterBufferAndPrint [11:21:02]line Счет N : (1)458999 [11:21:02]line ИНН: 02508201610067 [11:21:02]line Контрольно-Кассовый Чек [11:21:02]line ПРОДАЖА [11:21:02]line ТРК (МРК, ГНК) : 22 [11:21:02]line Товар: 2710124130 [11:21:02]line Аи-92-К-5 [11:21:02]line 3.800 * 65.80 [11:21:02]line = 250.04 [11:21:02]line НДС 12% НСП 1% [11:21:02]line > о реализуемом товаре [11:21:02]line ОКРУГЛЕНИЕ: -0.04 [11:21:02]line ИТОГО: 250.00 [11:21:02]line Внесено: 250.00 [11:21:02]line СДАЧА: 0.00 [11:21:02]line НСП 1% : 2.21 [11:21:02]line НДС 12% : 26.55 [11:21:02]line Наличными: 250.00 [11:21:02]line Безнал.: 0.00 [11:21:02]line Место: АЗС № 72 "Партнер Нефть" [11:21:02]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:21:02]line СНО: Общий режим [11:21:02]line Чек 101 14.07.2024 11:21 [11:21:02]line Смена: 447 ФФД: 1.0 [11:21:02]line ЗНМ: 0300000160 [11:21:02]line РНМ: 0000000000090829 [11:21:02]line Версия ККМ: 001 [11:21:02]line ФМ: 0000000000874718 [11:21:02]line ФД: 164903 [11:21:02]line ФПД: 24227501837319 [11:21:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T112101&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164903&fm=24227501837319&tin=02508201610067®Number=0000000000090829&sum=25000 [11:21:02]written 0, free lines is 4095 [11:21:02]OFD Sender: Processing packet 164903 [packets to send 104, broken 103] [11:21:02]ProducePacketName [11:21:02]name=ofd_packets/00164903 [11:21:02]OFD Sender: To server: pG, [11:21:02]CommunicateWithHost lk.salyk.kg:30040 [11:21:02]ConnectInit lk.salyk.kg [11:21:02]Connected sock=10 [11:21:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 07 57 07 01 73 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 AC 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 9D B4 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 27 84 02 00 35 04 06 00 16 08 E7 A4 0C 07 08 7F 3E 36 3F B0 0F 60 [11:21:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 63 39 47 00 74 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 27 84 02 00 F4 03 04 00 2B 5B 93 66 B6 04 01 00 00 26 26 DC 5E 5D D3 8B DF [11:21:02]CommunicateWithHost err = 0 [11:21:02]CheckOFDResponse [11:21:02]1017 (14) - 77093643461234 [11:21:02]1041 (16) - 0000000000874718 [11:21:02]1040 (4) - 164903 [11:21:02]1012 (4) - 14.07.2024 04:59 [11:21:02]1206 (1) - 0 [11:21:02]OFD Sender: Remove packet 164903 [11:21:02]ProducePacketName [11:21:02]name=ofd_packets/00164903 [11:21:02]NVStorageDeleteData [11:21:02]Write to MH i2c: 01 00 00 BB 0E C9 [11:21:02]Write i2c OK [11:21:02]MH_I2C_Read... [11:21:02]Read from MH i2c: 01 [11:21:02]MH_I2C_Read... [11:21:02]Read from MH i2c: 01 07 00 [11:21:02]MH_I2C_Read... [11:21:02]Read from MH i2c: 01 07 00 BB 0E 00 00 00 00 00 F6 0C D2 [11:21:02]RasterBufferAndPrint [11:21:02]line [11:21:02]line [11:21:02]line [11:21:02]line [11:21:02]line [11:21:02]written 0, free lines is 3324 [11:21:02]MH_Cut [11:21:02]Write to MH i2c: D1 01 00 C2 0E 01 A2 [11:21:02]Write i2c OK [11:21:02]MH_I2C_Read... [11:21:02]Read from MH i2c: D1 [11:21:02]MH_I2C_Read... [11:21:02]Read from MH i2c: D1 01 00 [11:21:02]MH_I2C_Read... [11:21:02]Read from MH i2c: D1 01 00 C2 0E 00 A1 [11:21:02]Write to MH i2c: 01 00 00 C3 0E D1 [11:21:03]Write i2c OK [11:21:03]MH_I2C_Read... [11:21:03]OFD Sender: No OFD packet to send [11:21:03]*** Cut start [11:21:03]*** Partial cut [11:21:03]*** CUTSNS_PIN = 1 [11:21:03]*** CUTSNS_PIN = 0 [11:21:03]*** Brake cut motor [11:21:04]Read from MH i2c: 01 [11:21:04]MH_I2C_Read... [11:21:04]*** Stop cut motor [11:21:04]*** Cut end [11:21:04]Read from MH i2c: 01 07 00 [11:21:04]MH_I2C_Read... [11:21:04]Read from MH i2c: 01 07 00 C3 0E 00 00 00 00 00 FF 0F E6 [11:21:04]process_action close_receipt done [11:21:04]requested_data is exist [11:21:04]produce_requested_data [11:21:04]requested_item fm.sn is exist - process it [11:21:04]wFMCommunicate request_size=4 [11:21:04]MH_SAM_APDU [11:21:04]CAPDU: 80 11 00 00 [11:21:04]Write to MH i2c: E2 08 00 C4 0E 80 11 00 00 00 00 00 00 4C [11:21:04]Write i2c OK [11:21:04]MH_I2C_Read... [11:21:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:21:04]Read from MH i2c: E2 [11:21:04]MH_I2C_Read... [11:21:04]Read from MH i2c: E2 17 00 [11:21:04]MH_I2C_Read... [11:21:04]Read from MH i2c: E2 17 00 C4 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A2 [11:21:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:21:04]wFMCommunicate OK [11:21:04]requested_item fd.num is exist - process it [11:21:04]SAM_PROTO_GetFieldsCounters [11:21:04]wFMCommunicate request_size=4 [11:21:04]MH_SAM_APDU [11:21:04]CAPDU: 80 13 00 00 [11:21:04]Write to MH i2c: E2 08 00 C5 0E 80 13 00 00 00 00 00 00 4F [11:21:04]Write i2c OK [11:21:04]MH_I2C_Read... [11:21:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:21:04]Read from MH i2c: E2 [11:21:04]MH_I2C_Read... [11:21:04]Read from MH i2c: E2 62 00 [11:21:04]MH_I2C_Read... [11:21:04]Read from MH i2c: E2 62 00 C5 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 27 84 02 00 0E 04 04 00 BF 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 12 [11:21:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 27 84 02 00 0E 04 04 00 BF 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 [11:21:04]wFMCommunicate OK [11:21:04]SAM_PROTO_GetFieldsCounters done [11:21:04]requested_item shift.num is exist - process it [11:21:04]requested_item shift.opened is exist - process it [11:21:04]req_shift_opened [11:21:04]FM_GetShiftState [11:21:04]SAM_PROTO_GetShiftState [11:21:04]wFMCommunicate request_size=4 [11:21:04]MH_SAM_APDU [11:21:04]CAPDU: 80 13 01 00 [11:21:04]Write to MH i2c: E2 08 00 C6 0E 80 13 01 00 00 00 00 00 51 [11:21:04]Write i2c OK [11:21:04]MH_I2C_Read... [11:21:04]Read from MH i2c: E2 [11:21:04]MH_I2C_Read... [11:21:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:21:04]Read from MH i2c: E2 0E 00 [11:21:04]MH_I2C_Read... [11:21:04]Read from MH i2c: E2 0E 00 C6 0E 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 D1 [11:21:04]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:21:04]wFMCommunicate OK [11:21:04]SAM_PROTO_GetShiftState done [11:21:04]FM_GetShiftState done [11:21:04]req_shift_opened done [11:21:04]requested_item shift.open_date is exist - process it [11:21:04]req_shift_open_date [11:21:04]req_shift_open_date done [11:21:04]produce_requested_data done [11:21:04]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164903,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [11:21:04]process_action_free close_receipt [11:21:04]json_value_free [11:21:04]json_value_free done [11:21:04]process_json_proto returns [11:21:04]Send response to host [11:21:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164903,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [11:21:04]free response buf [11:21:04]execute_script done [11:21:04]execute_script returns [11:21:04]free content buf [11:21:04]Sock 7.Close socket [11:21:04]Sock 7.Thread stoped [11:21:08]OFD Sender: No OFD packet to send [11:21:13]OFD Sender: No OFD packet to send [11:21:18]OFD Sender: No OFD packet to send [11:21:23]OFD Sender: No OFD packet to send [11:21:28]OFD Sender: No OFD packet to send [11:21:33]OFD Sender: No OFD packet to send [11:21:38]OFD Sender: No OFD packet to send [11:21:43]OFD Sender: No OFD packet to send [11:21:48]OFD Sender: No OFD packet to send [11:21:53]OFD Sender: No OFD packet to send [11:21:58]OFD Sender: No OFD packet to send [11:22:03]OFD Sender: No OFD packet to send [11:22:08]OFD Sender: No OFD packet to send [11:22:13]OFD Sender: No OFD packet to send [11:22:18]OFD Sender: No OFD packet to send [11:22:23]OFD Sender: No OFD packet to send [11:22:28]OFD Sender: No OFD packet to send [11:22:33]OFD Sender: No OFD packet to send [11:22:38]OFD Sender: No OFD packet to send [11:22:43]OFD Sender: No OFD packet to send [11:22:48]OFD Sender: No OFD packet to send [11:22:53]OFD Sender: No OFD packet to send [11:22:58]OFD Sender: No OFD packet to send [11:23:03]OFD Sender: No OFD packet to send [11:23:08]OFD Sender: No OFD packet to send [11:23:10]accept exits with 9 [11:23:10]New connection [11:23:10]New thread 3067473252 created [11:23:10]Thread 3067616612 joined [11:23:10]Waiting for new connection... [11:23:10] Sock 9.Parse request [11:23:10]Sock 9.Check first char [11:23:10]Sock 9.First char is OK [11:23:10]request: POST /json_proto HTTP/1.0 [11:23:10]Method: POST [11:23:10]URL: /json_proto [11:23:10]Method is POST - this is cgi request [11:23:10]url: /json_proto [11:23:10]query_string will be loaded in cgi processing [11:23:10]execute_cgi json_proto POST (null) [11:23:10]execute_cgi path=json_proto method=POST [11:23:10]POST find Content-Length [11:23:10]Host: 172.17.56.4:8080 [11:23:10]Content-Length: 682 [11:23:10]Content-Type: application/json [11:23:10] [11:23:10]POST finish read [11:23:10]Found Content-Length = 682 [11:23:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459000", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "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:23:10]execute_script... [11:23: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)459000", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "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:23:10]POST & json_proto [11:23:10]process_json_proto [11:23:10]json parsed OK: [11:23:10]protocol is kg_v1.0 [11:23:10]action value=close_receipt [11:23:10]process_action close_receipt [11:23:10]cmd_close_receipt [11:23:10]MH_GetDate [11:23:10]Write to MH i2c: F0 00 00 C7 0E C4 [11:23:10]Write i2c OK [11:23:10]MH_I2C_Read... [11:23:10]Read from MH i2c: F0 [11:23:10]MH_I2C_Read... [11:23:10]Read from MH i2c: F0 09 00 [11:23:10]MH_I2C_Read... [11:23:10]Read from MH i2c: F0 09 00 C7 0E 00 1F B5 93 66 C9 DC B2 64 55 [11:23:10]GetLastDocTimeStamp 1720956061 [11:23:10]current date 1720956191 [11:23:10]FM_GetShiftState [11:23:10]SAM_PROTO_GetShiftState [11:23:10]wFMCommunicate request_size=4 [11:23:10]MH_SAM_APDU [11:23:10]CAPDU: 80 13 01 00 [11:23:10]Write to MH i2c: E2 08 00 C8 0E 80 13 01 00 00 00 00 00 53 [11:23:10]Write i2c OK [11:23:10]MH_I2C_Read... [11:23:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:10]Read from MH i2c: E2 [11:23:10]MH_I2C_Read... [11:23:10]Read from MH i2c: E2 0E 00 [11:23:10]MH_I2C_Read... [11:23:10]Read from MH i2c: E2 0E 00 C8 0E 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 D3 [11:23:10]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:23:10]wFMCommunicate OK [11:23:10]SAM_PROTO_GetShiftState done [11:23:10]FM_GetShiftState done [11:23:10]opened in 1720917342 [11:23:10]opened+sec_in_day 1721003742 [11:23:10]quantity*price = 100016 [11:23:10]sum+1 = 100017 [11:23: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 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 102 14.07.2024 11:23 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164904 ФПД: 137717137546111 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T112311&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164904&fm=137717137546111&tin=02508201610067®Number=0000000000090829&sum=100000 [11:23:11]StoreToDocumentArchive [11:23:11]shift 447 fd 164904 [11:23:11]save to /storage/0447/doc_00164904 [11:23:11]save last doc name /storage/0447/doc_00164904 to /storage/kkm_last_doc_name [11:23:11]save OK [11:23:11]Clear old archive folders... [11:23:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:23:11]tlvbuf is 00743870 [11:23:11]SAM_PROTO_ClearQueue [11:23:11]wFMCommunicate request_size=4 [11:23:11]MH_SAM_APDU [11:23:11]CAPDU: 80 09 00 00 [11:23:11]Write to MH i2c: E2 08 00 D5 0E 80 09 00 00 00 00 00 00 55 [11:23:11]Write i2c OK [11:23:11]MH_I2C_Read... [11:23:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:23:11]Read from MH i2c: E2 [11:23:11]MH_I2C_Read... [11:23:11]Read from MH i2c: E2 03 00 [11:23:11]MH_I2C_Read... [11:23:11]Read from MH i2c: E2 03 00 D5 0E 00 90 00 57 [11:23:11]RAPDU: 90 00 [11:23:11]wFMCommunicate OK [11:23:11]SAM_PROTO_ClearQueue done [11:23:11]KKMCreateOFDPacket [11:23:11]OFDProtocolAddRootSTLVToBuf [11:23:11]FM_MakeSignedData [11:23:11]FM_MakeSignedData [11:23:11]SAM_PROTO_SignData [11:23:11]wFMCommunicate request_size=4 [11:23:11]MH_SAM_APDU [11:23:11]CAPDU: 80 0D 01 02 [11:23:11]Write to MH i2c: E2 08 00 D6 0E 80 0D 01 02 00 00 00 00 5D [11:23:11]Write i2c OK [11:23:11]MH_I2C_Read... [11:23:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:23:11]Read from MH i2c: E2 [11:23:11]MH_I2C_Read... [11:23:11]Read from MH i2c: E2 03 00 [11:23:11]MH_I2C_Read... [11:23:11]Read from MH i2c: E2 03 00 D6 0E 00 90 00 58 [11:23:11]RAPDU: 90 00 [11:23:11]wFMCommunicate OK [11:23:11]wFMCommunicate request_size=255 [11:23:11]MH_SAM_APDU [11:23:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 1F B5 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 28 84 02 00 35 04 06 00 7D [11:23:11]Write to MH i2c: E2 02 01 D7 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 1F B5 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 28 84 02 00 35 04 06 00 7D 00 00 96 [11:23:11]Write i2c OK [11:23:11]MH_I2C_Read... [11:23:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:11]Read from MH i2c: E2 [11:23:11]MH_I2C_Read... [11:23:11]Read from MH i2c: E2 03 00 [11:23:11]MH_I2C_Read... [11:23:11]Read from MH i2c: E2 03 00 D7 0E 00 90 00 59 [11:23:11]RAPDU: 90 00 [11:23:11]wFMCommunicate OK [11:23:11]wFMCommunicate request_size=10 [11:23:11]MH_SAM_APDU [11:23:11]CAPDU: 80 0D 02 02 05 40 C5 10 1B 7F [11:23:11]Write to MH i2c: E2 0D 00 D8 0E 80 0D 02 02 05 00 40 C5 10 1B 7F 00 00 19 [11:23:11]Write i2c OK [11:23:11]MH_I2C_Read... [11:23:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:11]Read from MH i2c: E2 [11:23:11]MH_I2C_Read... [11:23:11]Read from MH i2c: E2 03 00 [11:23:11]MH_I2C_Read... [11:23:11]Read from MH i2c: E2 03 00 D8 0E 00 90 00 5A [11:23:11]RAPDU: 90 00 [11:23:11]wFMCommunicate OK [11:23:11]wFMCommunicate request_size=4 [11:23:11]MH_SAM_APDU [11:23:11]CAPDU: 80 0D 03 02 [11:23:11]Write to MH i2c: E2 08 00 D9 0E 80 0D 03 02 00 00 00 00 62 [11:23:11]Write i2c OK [11:23:11]MH_I2C_Read... [11:23:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:23:11]Read from MH i2c: E2 [11:23:11]MH_I2C_Read... [11:23:11]Read from MH i2c: E2 0B 00 [11:23:11]MH_I2C_Read... [11:23:11]Read from MH i2c: E2 0B 00 D9 0E 00 41 D2 9F 11 14 39 3A 0D 90 00 BA [11:23:11]RAPDU: 41 D2 9F 11 14 39 3A 0D 90 00 [11:23:11]wFMCommunicate OK [11:23:11]SAM_PROTO_SignData done [11:23:11]FM_MakeSignedData done [11:23:11]CreateOFDProtocolMessage [11:23:11]wFMCommunicate request_size=4 [11:23:11]MH_SAM_APDU [11:23:11]CAPDU: 80 11 00 00 [11:23:11]Write to MH i2c: E2 08 00 DA 0E 80 11 00 00 00 00 00 00 62 [11:23:11]Write i2c OK [11:23:11]MH_I2C_Read... [11:23:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:11]Read from MH i2c: E2 [11:23:11]MH_I2C_Read... [11:23:11]Read from MH i2c: E2 17 00 [11:23:11]MH_I2C_Read... [11:23:11]Read from MH i2c: E2 17 00 DA 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B8 [11:23:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:23:11]wFMCommunicate OK [11:23:11]CreateOFDProtocolMessage done [11:23:11]OFDSenderStorePacket 164904 [11:23:11]StoreOFDPacket docnum=164904 [11:23:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 61 26 07 01 B4 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 1F B5 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 28 84 02 00 35 04 06 00 7D 40 C5 10 1B 7F 41 D2 9F 11 14 39 3A 0D [11:23:11]CheckFolder [11:23:11]dirname=/storage/ofd_packets [11:23:11]CheckFolder done [11:23:11]ProducePacketName [11:23:11]name=ofd_packets/00164904 [11:23:11]NVStorageSaveData ofd_packets/00164904 [11:23:11]File name is /storage/ofd_packets/00164904 [11:23:11]Write 301 bytes [11:23:11]NVStorageSaveData done [11:23:11]OFDSenderStorePacket done [11:23:11]KKMCreateOFDPacket done [11:23:11]NVStorageSaveData kkm_last_timestamp [11:23:11]File name is /storage/kkm_last_timestamp [11:23:11]Write 4 bytes [11:23:11]NVStorageSaveData done [11:23:11]ExternCall_PrintAddStr [11:23:11]wPrintStart [11:23:11]Write to MH i2c: 01 00 00 DB 0E E9 [11:23:11]Write i2c OK [11:23:11]MH_I2C_Read... [11:23:11]Read from MH i2c: 01 [11:23:11]MH_I2C_Read... [11:23:11]Read from MH i2c: 01 07 00 [11:23:11]MH_I2C_Read... [11:23:11]Read from MH i2c: 01 07 00 DB 0E 00 00 00 00 00 FF 0F FE [11:23:11]RasterBufferAndPrint [11:23:11]line Счет N : (1)459000 [11:23:11]line ИНН: 02508201610067 [11:23:11]line Контрольно-Кассовый Чек [11:23:11]line ПРОДАЖА [11:23:11]line ТРК (МРК, ГНК) : 12 [11:23:11]line Товар: 2710124130 [11:23:11]line Аи-92-К-5 [11:23:11]line 15.200 * 65.80 [11:23:11]line = 1000.16 [11:23:11]line НДС 12% НСП 1% [11:23:11]line > о реализуемом товаре [11:23:11]line ОКРУГЛЕНИЕ: -0.16 [11:23:11]line ИТОГО: 1000.00 [11:23:11]line Внесено: 1000.00 [11:23:11]line СДАЧА: 0.00 [11:23:11]line НСП 1% : 8.85 [11:23:11]line НДС 12% : 106.21 [11:23:11]line Наличными: 1000.00 [11:23:11]line Безнал.: 0.00 [11:23:11]line Место: АЗС № 72 "Партнер Нефть" [11:23:11]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:23:11]line СНО: Общий режим [11:23:11]line Чек 102 14.07.2024 11:23 [11:23:11]line Смена: 447 ФФД: 1.0 [11:23:11]line ЗНМ: 0300000160 [11:23:11]line РНМ: 0000000000090829 [11:23:11]line Версия ККМ: 001 [11:23:11]line ФМ: 0000000000874718 [11:23:11]line ФД: 164904 [11:23:11]line ФПД: 137717137546111 [11:23:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T112311&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164904&fm=137717137546111&tin=02508201610067®Number=0000000000090829&sum=100000 [11:23:12]OFD Sender: Processing packet 164904 [packets to send 104, broken 103] [11:23:12]ProducePacketName [11:23:12]name=ofd_packets/00164904 [11:23:12]OFD Sender: To server: pG, [11:23:12]CommunicateWithHost lk.salyk.kg:30040 [11:23:12]ConnectInit lk.salyk.kg [11:23:12]written 0, free lines is 4095 [11:23:12]Connected sock=11 [11:23:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 61 26 07 01 B4 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 1F B5 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 28 84 02 00 35 04 06 00 7D 40 C5 10 1B 7F 41 D2 9F 11 14 39 3A 0D [11:23:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 20 67 47 00 8A 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 28 84 02 00 F4 03 04 00 AC 5B 93 66 B6 04 01 00 00 E5 D3 6D AF EF BF 16 32 [11:23:12]CommunicateWithHost err = 0 [11:23:12]CheckOFDResponse [11:23:12]1017 (14) - 77093643461234 [11:23:12]1041 (16) - 0000000000874718 [11:23:12]1040 (4) - 164904 [11:23:12]1012 (4) - 14.07.2024 05:01 [11:23:12]1206 (1) - 0 [11:23:12]OFD Sender: Remove packet 164904 [11:23:12]ProducePacketName [11:23:12]name=ofd_packets/00164904 [11:23:12]NVStorageDeleteData [11:23:12]Write to MH i2c: 01 00 00 05 0F 14 [11:23:12]Write i2c OK [11:23:12]MH_I2C_Read... [11:23:12]Read from MH i2c: 01 [11:23:12]MH_I2C_Read... [11:23:12]Read from MH i2c: 01 07 00 [11:23:12]MH_I2C_Read... [11:23:12]Read from MH i2c: 01 07 00 05 0F 00 00 00 00 00 FE 0C 25 [11:23:12]RasterBufferAndPrint [11:23:12]line [11:23:12]line [11:23:12]line [11:23:12]line [11:23:12]line [11:23:12]written 0, free lines is 3332 [11:23:12]MH_Cut [11:23:12]Write to MH i2c: D1 01 00 0C 0F 01 ED [11:23:12]Write i2c OK [11:23:12]MH_I2C_Read... [11:23:12]Read from MH i2c: D1 [11:23:12]MH_I2C_Read... [11:23:12]Read from MH i2c: D1 01 00 [11:23:12]MH_I2C_Read... [11:23:12]Read from MH i2c: D1 01 00 0C 0F 00 EC [11:23:12]Write to MH i2c: 01 00 00 0D 0F 1C [11:23:12]Write i2c OK [11:23:12]MH_I2C_Read... [11:23:12]OFD Sender: No OFD packet to send [11:23:13]*** Cut start [11:23:13]*** Partial cut [11:23:13]*** CUTSNS_PIN = 1 [11:23:13]*** CUTSNS_PIN = 0 [11:23:13]*** Brake cut motor [11:23:13]Read from MH i2c: 01 [11:23:13]MH_I2C_Read... [11:23:13]*** Stop cut motor [11:23:13]*** Cut end [11:23:13]Read from MH i2c: 01 07 00 [11:23:13]MH_I2C_Read... [11:23:13]Read from MH i2c: 01 07 00 0D 0F 00 00 00 00 00 FF 0F 31 [11:23:13]process_action close_receipt done [11:23:13]requested_data is exist [11:23:13]produce_requested_data [11:23:13]requested_item fm.sn is exist - process it [11:23:13]wFMCommunicate request_size=4 [11:23:13]MH_SAM_APDU [11:23:13]CAPDU: 80 11 00 00 [11:23:13]Write to MH i2c: E2 08 00 0E 0F 80 11 00 00 00 00 00 00 97 [11:23:13]Write i2c OK [11:23:13]MH_I2C_Read... [11:23:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:13]Read from MH i2c: E2 [11:23:13]MH_I2C_Read... [11:23:13]Read from MH i2c: E2 17 00 [11:23:13]MH_I2C_Read... [11:23:13]Read from MH i2c: E2 17 00 0E 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 ED [11:23:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:23:13]wFMCommunicate OK [11:23:13]requested_item fd.num is exist - process it [11:23:13]SAM_PROTO_GetFieldsCounters [11:23:13]wFMCommunicate request_size=4 [11:23:13]MH_SAM_APDU [11:23:13]CAPDU: 80 13 00 00 [11:23:13]Write to MH i2c: E2 08 00 0F 0F 80 13 00 00 00 00 00 00 9A [11:23:13]Write i2c OK [11:23:13]MH_I2C_Read... [11:23:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:23:13]Read from MH i2c: E2 [11:23:13]MH_I2C_Read... [11:23:13]Read from MH i2c: E2 62 00 [11:23:13]MH_I2C_Read... [11:23:14]Read from MH i2c: E2 62 00 0F 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 28 84 02 00 0E 04 04 00 BF 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 61 [11:23:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 28 84 02 00 0E 04 04 00 BF 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 [11:23:14]wFMCommunicate OK [11:23:14]SAM_PROTO_GetFieldsCounters done [11:23:14]requested_item shift.num is exist - process it [11:23:14]requested_item shift.opened is exist - process it [11:23:14]req_shift_opened [11:23:14]FM_GetShiftState [11:23:14]SAM_PROTO_GetShiftState [11:23:14]wFMCommunicate request_size=4 [11:23:14]MH_SAM_APDU [11:23:14]CAPDU: 80 13 01 00 [11:23:14]Write to MH i2c: E2 08 00 10 0F 80 13 01 00 00 00 00 00 9C [11:23:14]Write i2c OK [11:23:14]MH_I2C_Read... [11:23:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:14]Read from MH i2c: E2 [11:23:14]MH_I2C_Read... [11:23:14]Read from MH i2c: E2 0E 00 [11:23:14]MH_I2C_Read... [11:23:14]Read from MH i2c: E2 0E 00 10 0F 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 1C [11:23:14]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:23:14]wFMCommunicate OK [11:23:14]SAM_PROTO_GetShiftState done [11:23:14]FM_GetShiftState done [11:23:14]req_shift_opened done [11:23:14]requested_item shift.open_date is exist - process it [11:23:14]req_shift_open_date [11:23:14]req_shift_open_date done [11:23:14]produce_requested_data done [11:23:14]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164904,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [11:23:14]process_action_free close_receipt [11:23:14]json_value_free [11:23:14]json_value_free done [11:23:14]process_json_proto returns [11:23:14]Send response to host [11:23:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164904,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [11:23:14]free response buf [11:23:14]execute_script done [11:23:14]execute_script returns [11:23:14]free content buf [11:23:14]Sock 9.Close socket [11:23:14]Sock 9.Thread stoped [11:23:17]OFD Sender: No OFD packet to send [11:23:22]OFD Sender: No OFD packet to send [11:23:27]OFD Sender: No OFD packet to send [11:23:32]OFD Sender: No OFD packet to send [11:23:37]OFD Sender: No OFD packet to send [11:23:42]OFD Sender: No OFD packet to send [11:23:47]OFD Sender: No OFD packet to send [11:23:52]OFD Sender: No OFD packet to send [11:23:57]OFD Sender: No OFD packet to send [11:24:02]OFD Sender: No OFD packet to send [11:24:07]OFD Sender: No OFD packet to send [11:24:12]OFD Sender: No OFD packet to send [11:24:17]OFD Sender: No OFD packet to send [11:24:22]OFD Sender: No OFD packet to send [11:24:27]OFD Sender: No OFD packet to send [11:24:32]OFD Sender: No OFD packet to send [11:24:37]OFD Sender: No OFD packet to send [11:24:42]OFD Sender: No OFD packet to send [11:24:47]OFD Sender: No OFD packet to send [11:24:52]OFD Sender: No OFD packet to send [11:24:57]OFD Sender: No OFD packet to send [11:25:02]OFD Sender: No OFD packet to send [11:25:07]OFD Sender: No OFD packet to send [11:25:12]accept exits with 7 [11:25:12]New connection [11:25:12]New thread 3067616612 created [11:25:12]Thread 3067473252 joined [11:25:12]Waiting for new connection... [11:25:12] Sock 7.Parse request [11:25:12]Sock 7.Check first char [11:25:12]Sock 7.First char is OK [11:25:12]request: POST /json_proto HTTP/1.0 [11:25:12]Method: POST [11:25:12]URL: /json_proto [11:25:12]Method is POST - this is cgi request [11:25:12]url: /json_proto [11:25:12]query_string will be loaded in cgi processing [11:25:12]execute_cgi json_proto POST (null) [11:25:12]execute_cgi path=json_proto method=POST [11:25:12]POST find Content-Length [11:25:12]Host: 172.17.56.4:8080 [11:25:12]Content-Length: 682 [11:25:12]Content-Type: application/json [11:25:12] [11:25:12]POST finish read [11:25:12]Found Content-Length = 682 [11:25:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459001", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "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:25:12]execute_script... [11:25: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)459001", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "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:25:12]POST & json_proto [11:25:12]process_json_proto [11:25:12]json parsed OK: [11:25:12]protocol is kg_v1.0 [11:25:12]action value=close_receipt [11:25:12]process_action close_receipt [11:25:12]cmd_close_receipt [11:25:12]MH_GetDate [11:25:12]Write to MH i2c: F0 00 00 11 0F 0F [11:25:12]Write i2c OK [11:25:12]MH_I2C_Read... [11:25:12]Read from MH i2c: F0 [11:25:12]MH_I2C_Read... [11:25:12]Read from MH i2c: F0 09 00 [11:25:12]MH_I2C_Read... [11:25:12]Read from MH i2c: F0 09 00 11 0F 00 99 B5 93 66 C9 DC B2 64 1A [11:25:12]GetLastDocTimeStamp 1720956191 [11:25:12]current date 1720956313 [11:25:12]FM_GetShiftState [11:25:12]SAM_PROTO_GetShiftState [11:25:12]wFMCommunicate request_size=4 [11:25:12]MH_SAM_APDU [11:25:12]CAPDU: 80 13 01 00 [11:25:12]Write to MH i2c: E2 08 00 12 0F 80 13 01 00 00 00 00 00 9E [11:25:12]Write i2c OK [11:25:12]MH_I2C_Read... [11:25:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:12]Read from MH i2c: E2 [11:25:12]MH_I2C_Read... [11:25:12]Read from MH i2c: E2 0E 00 [11:25:12]MH_I2C_Read... [11:25:12]Read from MH i2c: E2 0E 00 12 0F 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 1E [11:25:12]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:25:12]wFMCommunicate OK [11:25:12]SAM_PROTO_GetShiftState done [11:25:12]FM_GetShiftState done [11:25:12]opened in 1720917342 [11:25:12]opened+sec_in_day 1721003742 [11:25:12]quantity*price = 100016 [11:25:12]sum+1 = 100017 [11:25: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 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 103 14.07.2024 11:25 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164905 ФПД: 237221637038294 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T112513&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164905&fm=237221637038294&tin=02508201610067®Number=0000000000090829&sum=100000 [11:25:14]StoreToDocumentArchive [11:25:14]shift 447 fd 164905 [11:25:14]save to /storage/0447/doc_00164905 [11:25:14]save last doc name /storage/0447/doc_00164905 to /storage/kkm_last_doc_name [11:25:14]save OK [11:25:14]Clear old archive folders... [11:25:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:25:14]tlvbuf is B6F4A300 [11:25:14]SAM_PROTO_ClearQueue [11:25:14]wFMCommunicate request_size=4 [11:25:14]MH_SAM_APDU [11:25:14]CAPDU: 80 09 00 00 [11:25:14]Write to MH i2c: E2 08 00 1F 0F 80 09 00 00 00 00 00 00 A0 [11:25:14]Write i2c OK [11:25:14]MH_I2C_Read... [11:25:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:25:14]Read from MH i2c: E2 [11:25:14]MH_I2C_Read... [11:25:14]Read from MH i2c: E2 03 00 [11:25:14]MH_I2C_Read... [11:25:14]Read from MH i2c: E2 03 00 1F 0F 00 90 00 A2 [11:25:14]RAPDU: 90 00 [11:25:14]wFMCommunicate OK [11:25:14]SAM_PROTO_ClearQueue done [11:25:14]KKMCreateOFDPacket [11:25:14]OFDProtocolAddRootSTLVToBuf [11:25:14]FM_MakeSignedData [11:25:14]FM_MakeSignedData [11:25:14]SAM_PROTO_SignData [11:25:14]wFMCommunicate request_size=4 [11:25:14]MH_SAM_APDU [11:25:14]CAPDU: 80 0D 01 02 [11:25:14]Write to MH i2c: E2 08 00 20 0F 80 0D 01 02 00 00 00 00 A8 [11:25:14]Write i2c OK [11:25:14]MH_I2C_Read... [11:25:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:25:14]Read from MH i2c: E2 [11:25:14]MH_I2C_Read... [11:25:14]Read from MH i2c: E2 03 00 [11:25:14]MH_I2C_Read... [11:25:14]Read from MH i2c: E2 03 00 20 0F 00 90 00 A3 [11:25:14]RAPDU: 90 00 [11:25:14]wFMCommunicate OK [11:25:14]wFMCommunicate request_size=255 [11:25:14]MH_SAM_APDU [11:25:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 99 B5 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 29 84 02 00 35 04 06 00 D7 [11:25:14]Write to MH i2c: E2 02 01 21 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 99 B5 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 29 84 02 00 35 04 06 00 D7 00 00 B7 [11:25:14]Write i2c OK [11:25:14]MH_I2C_Read... [11:25:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:14]Read from MH i2c: E2 [11:25:14]MH_I2C_Read... [11:25:14]Read from MH i2c: E2 03 00 [11:25:14]MH_I2C_Read... [11:25:14]Read from MH i2c: E2 03 00 21 0F 00 90 00 A4 [11:25:14]RAPDU: 90 00 [11:25:14]wFMCommunicate OK [11:25:14]wFMCommunicate request_size=10 [11:25:14]MH_SAM_APDU [11:25:14]CAPDU: 80 0D 02 02 05 C0 77 68 A0 D6 [11:25:14]Write to MH i2c: E2 0D 00 22 0F 80 0D 02 02 05 00 C0 77 68 A0 D6 00 00 CA [11:25:14]Write i2c OK [11:25:14]MH_I2C_Read... [11:25:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:14]Read from MH i2c: E2 [11:25:14]MH_I2C_Read... [11:25:14]Read from MH i2c: E2 03 00 [11:25:14]MH_I2C_Read... [11:25:14]Read from MH i2c: E2 03 00 22 0F 00 90 00 A5 [11:25:14]RAPDU: 90 00 [11:25:14]wFMCommunicate OK [11:25:14]wFMCommunicate request_size=4 [11:25:14]MH_SAM_APDU [11:25:14]CAPDU: 80 0D 03 02 [11:25:14]Write to MH i2c: E2 08 00 23 0F 80 0D 03 02 00 00 00 00 AD [11:25:14]Write i2c OK [11:25:14]MH_I2C_Read... [11:25:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:25:14]Read from MH i2c: E2 [11:25:14]MH_I2C_Read... [11:25:14]Read from MH i2c: E2 0B 00 [11:25:14]MH_I2C_Read... [11:25:14]Read from MH i2c: E2 0B 00 23 0F 00 6A B1 85 DB A9 70 97 3C 90 00 15 [11:25:14]RAPDU: 6A B1 85 DB A9 70 97 3C 90 00 [11:25:14]wFMCommunicate OK [11:25:14]SAM_PROTO_SignData done [11:25:14]FM_MakeSignedData done [11:25:14]CreateOFDProtocolMessage [11:25:14]wFMCommunicate request_size=4 [11:25:14]MH_SAM_APDU [11:25:14]CAPDU: 80 11 00 00 [11:25:14]Write to MH i2c: E2 08 00 24 0F 80 11 00 00 00 00 00 00 AD [11:25:14]Write i2c OK [11:25:14]MH_I2C_Read... [11:25:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:14]Read from MH i2c: E2 [11:25:14]MH_I2C_Read... [11:25:14]Read from MH i2c: E2 17 00 [11:25:14]MH_I2C_Read... [11:25:14]Read from MH i2c: E2 17 00 24 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 03 [11:25:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:25:14]wFMCommunicate OK [11:25:14]CreateOFDProtocolMessage done [11:25:14]OFDSenderStorePacket 164905 [11:25:14]StoreOFDPacket docnum=164905 [11:25:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 BC 3E 07 01 38 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 99 B5 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 29 84 02 00 35 04 06 00 D7 C0 77 68 A0 D6 6A B1 85 DB A9 70 97 3C [11:25:14]CheckFolder [11:25:14]dirname=/storage/ofd_packets [11:25:14]CheckFolder done [11:25:14]ProducePacketName [11:25:14]name=ofd_packets/00164905 [11:25:14]NVStorageSaveData ofd_packets/00164905 [11:25:14]File name is /storage/ofd_packets/00164905 [11:25:14]Write 301 bytes [11:25:14]NVStorageSaveData done [11:25:14]OFDSenderStorePacket done [11:25:14]KKMCreateOFDPacket done [11:25:14]NVStorageSaveData kkm_last_timestamp [11:25:14]File name is /storage/kkm_last_timestamp [11:25:14]Write 4 bytes [11:25:14]NVStorageSaveData done [11:25:14]ExternCall_PrintAddStr [11:25:14]wPrintStart [11:25:14]Write to MH i2c: 01 00 00 25 0F 34 [11:25:14]Write i2c OK [11:25:14]MH_I2C_Read... [11:25:14]Read from MH i2c: 01 [11:25:14]MH_I2C_Read... [11:25:14]Read from MH i2c: 01 07 00 [11:25:14]MH_I2C_Read... [11:25:14]Read from MH i2c: 01 07 00 25 0F 00 00 00 00 00 FF 0F 49 [11:25:14]RasterBufferAndPrint [11:25:14]line Счет N : (1)459001 [11:25:14]line ИНН: 02508201610067 [11:25:14]line Контрольно-Кассовый Чек [11:25:14]line ПРОДАЖА [11:25:14]line ТРК (МРК, ГНК) : 12 [11:25:14]line Товар: 2710124130 [11:25:14]line Аи-92-К-5 [11:25:14]line 15.200 * 65.80 [11:25:14]line = 1000.16 [11:25:14]line НДС 12% НСП 1% [11:25:14]line > о реализуемом товаре [11:25:14]line ОКРУГЛЕНИЕ: -0.16 [11:25:14]line ИТОГО: 1000.00 [11:25:14]line Внесено: 1000.00 [11:25:14]line СДАЧА: 0.00 [11:25:14]line НСП 1% : 8.85 [11:25:14]line НДС 12% : 106.21 [11:25:14]line Наличными: 1000.00 [11:25:14]line Безнал.: 0.00 [11:25:14]line Место: АЗС № 72 "Партнер Нефть" [11:25:14]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:25:14]line СНО: Общий режим [11:25:14]line Чек 103 14.07.2024 11:25 [11:25:14]line Смена: 447 ФФД: 1.0 [11:25:14]line ЗНМ: 0300000160 [11:25:14]line РНМ: 0000000000090829 [11:25:14]line Версия ККМ: 001 [11:25:14]line ФМ: 0000000000874718 [11:25:14]line ФД: 164905 [11:25:14]line ФПД: 237221637038294 [11:25:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T112513&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164905&fm=237221637038294&tin=02508201610067®Number=0000000000090829&sum=100000 [11:25:14]OFD Sender: Processing packet 164905 [packets to send 104, broken 103] [11:25:14]ProducePacketName [11:25:14]name=ofd_packets/00164905 [11:25:14]OFD Sender: To server: pG, [11:25:14]CommunicateWithHost lk.salyk.kg:30040 [11:25:14]ConnectInit lk.salyk.kg [11:25:14]written 0, free lines is 4095 [11:25:15]Connected sock=10 [11:25:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 BC 3E 07 01 38 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 99 B5 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 29 84 02 00 35 04 06 00 D7 C0 77 68 A0 D6 6A B1 85 DB A9 70 97 3C [11:25:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 CF 88 47 00 3C 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 38 37 34 37 31 38 10 04 04 00 29 84 02 00 F4 03 04 00 27 5C 93 66 B6 04 01 00 00 C4 1C 6F F1 56 2F DF F3 [11:25:15]CommunicateWithHost err = 0 [11:25:15]CheckOFDResponse [11:25:15]1017 (14) - 77093643461234 [11:25:15]1041 (16) - 0000000000874718 [11:25:15]1040 (4) - 164905 [11:25:15]1012 (4) - 14.07.2024 05:03 [11:25:15]1206 (1) - 0 [11:25:15]OFD Sender: Remove packet 164905 [11:25:15]ProducePacketName [11:25:15]name=ofd_packets/00164905 [11:25:15]NVStorageDeleteData [11:25:15]Write to MH i2c: 01 00 00 4F 0F 5E [11:25:15]Write i2c OK [11:25:15]MH_I2C_Read... [11:25:15]Read from MH i2c: 01 [11:25:15]MH_I2C_Read... [11:25:15]Read from MH i2c: 01 07 00 [11:25:15]MH_I2C_Read... [11:25:15]Read from MH i2c: 01 07 00 4F 0F 00 00 00 00 00 F3 0C 64 [11:25:15]RasterBufferAndPrint [11:25:15]line [11:25:15]line [11:25:15]line [11:25:15]line [11:25:15]line [11:25:15]written 0, free lines is 3321 [11:25:15]MH_Cut [11:25:15]Write to MH i2c: D1 01 00 56 0F 01 37 [11:25:15]Write i2c OK [11:25:15]MH_I2C_Read... [11:25:15]Read from MH i2c: D1 [11:25:15]MH_I2C_Read... [11:25:15]Read from MH i2c: D1 01 00 [11:25:15]MH_I2C_Read... [11:25:15]Read from MH i2c: D1 01 00 56 0F 00 36 [11:25:15]Write to MH i2c: 01 00 00 57 0F 66 [11:25:15]Write i2c OK [11:25:15]MH_I2C_Read... [11:25:15]OFD Sender: No OFD packet to send [11:25:16]*** Cut start [11:25:16]*** Partial cut [11:25:16]*** CUTSNS_PIN = 1 [11:25:16]*** CUTSNS_PIN = 0 [11:25:16]*** Brake cut motor [11:25:16]Read from MH i2c: 01 [11:25:16]MH_I2C_Read... [11:25:16]*** Stop cut motor [11:25:16]*** Cut end [11:25:16]Read from MH i2c: 01 07 00 [11:25:16]MH_I2C_Read... [11:25:16]Read from MH i2c: 01 07 00 57 0F 00 00 00 00 00 FF 0F 7B [11:25:16]process_action close_receipt done [11:25:16]requested_data is exist [11:25:16]produce_requested_data [11:25:16]requested_item fm.sn is exist - process it [11:25:16]wFMCommunicate request_size=4 [11:25:16]MH_SAM_APDU [11:25:16]CAPDU: 80 11 00 00 [11:25:16]Write to MH i2c: E2 08 00 58 0F 80 11 00 00 00 00 00 00 E1 [11:25:16]Write i2c OK [11:25:16]MH_I2C_Read... [11:25:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:16]Read from MH i2c: E2 [11:25:16]MH_I2C_Read... [11:25:16]Read from MH i2c: E2 17 00 [11:25:16]MH_I2C_Read... [11:25:16]Read from MH i2c: E2 17 00 58 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 37 [11:25:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:25:16]wFMCommunicate OK [11:25:16]requested_item fd.num is exist - process it [11:25:16]SAM_PROTO_GetFieldsCounters [11:25:16]wFMCommunicate request_size=4 [11:25:16]MH_SAM_APDU [11:25:16]CAPDU: 80 13 00 00 [11:25:16]Write to MH i2c: E2 08 00 59 0F 80 13 00 00 00 00 00 00 E4 [11:25:16]Write i2c OK [11:25:16]MH_I2C_Read... [11:25:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:25:16]Read from MH i2c: E2 [11:25:16]MH_I2C_Read... [11:25:16]Read from MH i2c: E2 62 00 [11:25:16]MH_I2C_Read... [11:25:16]Read from MH i2c: E2 62 00 59 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 29 84 02 00 0E 04 04 00 BF 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 AF [11:25:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 29 84 02 00 0E 04 04 00 BF 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 [11:25:16]wFMCommunicate OK [11:25:16]SAM_PROTO_GetFieldsCounters done [11:25:16]requested_item shift.num is exist - process it [11:25:16]requested_item shift.opened is exist - process it [11:25:16]req_shift_opened [11:25:16]FM_GetShiftState [11:25:16]SAM_PROTO_GetShiftState [11:25:16]wFMCommunicate request_size=4 [11:25:16]MH_SAM_APDU [11:25:16]CAPDU: 80 13 01 00 [11:25:16]Write to MH i2c: E2 08 00 5A 0F 80 13 01 00 00 00 00 00 E6 [11:25:16]Write i2c OK [11:25:16]MH_I2C_Read... [11:25:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:16]Read from MH i2c: E2 [11:25:16]MH_I2C_Read... [11:25:16]Read from MH i2c: E2 0E 00 [11:25:16]MH_I2C_Read... [11:25:16]Read from MH i2c: E2 0E 00 5A 0F 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 66 [11:25:16]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:25:16]wFMCommunicate OK [11:25:16]SAM_PROTO_GetShiftState done [11:25:16]FM_GetShiftState done [11:25:16]req_shift_opened done [11:25:16]requested_item shift.open_date is exist - process it [11:25:16]req_shift_open_date [11:25:16]req_shift_open_date done [11:25:16]produce_requested_data done [11:25:16]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164905,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [11:25:16]process_action_free close_receipt [11:25:16]json_value_free [11:25:16]json_value_free done [11:25:16]process_json_proto returns [11:25:16]Send response to host [11:25:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164905,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [11:25:16]free response buf [11:25:16]execute_script done [11:25:16]execute_script returns [11:25:16]free content buf [11:25:16]Sock 7.Close socket [11:25:16]Sock 7.Thread stoped [11:25:20]OFD Sender: No OFD packet to send [11:25:25]OFD Sender: No OFD packet to send [11:25:30]OFD Sender: No OFD packet to send [11:25:35]OFD Sender: No OFD packet to send [11:25:40]OFD Sender: No OFD packet to send [11:25:45]OFD Sender: No OFD packet to send [11:25:50]OFD Sender: No OFD packet to send [11:25:55]OFD Sender: No OFD packet to send [11:26:00]OFD Sender: No OFD packet to send [11:26:05]OFD Sender: No OFD packet to send [11:26:10]OFD Sender: No OFD packet to send [11:26:15]OFD Sender: No OFD packet to send [11:26:20]OFD Sender: No OFD packet to send [11:26:24]accept exits with 9 [11:26:24]New connection [11:26:24]New thread 3067473252 created [11:26:24]Thread 3067616612 joined [11:26:24]Waiting for new connection... [11:26:24] Sock 9.Parse request [11:26:24]Sock 9.Check first char [11:26:24]Sock 9.First char is OK [11:26:24]request: POST /json_proto HTTP/1.0 [11:26:24]Method: POST [11:26:24]URL: /json_proto [11:26:24]Method is POST - this is cgi request [11:26:24]url: /json_proto [11:26:24]query_string will be loaded in cgi processing [11:26:24]execute_cgi json_proto POST (null) [11:26:24]execute_cgi path=json_proto method=POST [11:26:24]POST find Content-Length [11:26:24]Host: 172.17.56.4:8080 [11:26:24]Content-Length: 677 [11:26:24]Content-Type: application/json [11:26:24] [11:26:24]POST finish read [11:26:24]Found Content-Length = 677 [11:26:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459002", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.300, "sum" : 480.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 480.00, "total" : 480.00, "payments": [ { "type": 0, "sum" : 480.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:24]execute_script... [11: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)459002", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.300, "sum" : 480.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 480.00, "total" : 480.00, "payments": [ { "type": 0, "sum" : 480.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:24]POST & json_proto [11:26:24]process_json_proto [11:26:24]json parsed OK: [11:26:24]protocol is kg_v1.0 [11:26:24]action value=close_receipt [11:26:24]process_action close_receipt [11:26:24]cmd_close_receipt [11:26:24]MH_GetDate [11:26:24]Write to MH i2c: F0 00 00 5B 0F 59 [11:26:24]Write i2c OK [11:26:24]MH_I2C_Read... [11:26:24]Read from MH i2c: F0 [11:26:24]MH_I2C_Read... [11:26:24]Read from MH i2c: F0 09 00 [11:26:24]MH_I2C_Read... [11:26:24]Read from MH i2c: F0 09 00 5B 0F 00 E1 B5 93 66 C9 DC B2 64 AC [11:26:24]GetLastDocTimeStamp 1720956313 [11:26:24]current date 1720956385 [11:26:24]FM_GetShiftState [11:26:24]SAM_PROTO_GetShiftState [11:26:24]wFMCommunicate request_size=4 [11:26:24]MH_SAM_APDU [11:26:24]CAPDU: 80 13 01 00 [11:26:24]Write to MH i2c: E2 08 00 5C 0F 80 13 01 00 00 00 00 00 E8 [11:26:24]Write i2c OK [11:26:24]MH_I2C_Read... [11:26:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:24]Read from MH i2c: E2 [11:26:24]MH_I2C_Read... [11:26:24]Read from MH i2c: E2 0E 00 [11:26:24]MH_I2C_Read... [11:26:24]Read from MH i2c: E2 0E 00 5C 0F 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 68 [11:26:24]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:26:24]wFMCommunicate OK [11:26:24]SAM_PROTO_GetShiftState done [11:26:24]FM_GetShiftState done [11:26:24]opened in 1720917342 [11:26:24]opened+sec_in_day 1721003742 [11:26:24]quantity*price = 48034 [11:26:24]sum+1 = 48035 [11:26:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 480.00 Внесено: 480.00 СДАЧА: 0.00 НСП 1% : 4.25 НДС 12% : 51.01 Наличными: 480.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 104 14.07.2024 11:26 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164906 ФПД: 48824487805029 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T112625&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164906&fm=48824487805029&tin=02508201610067®Number=0000000000090829&sum=48000 [11:26:25]StoreToDocumentArchive [11:26:25]shift 447 fd 164906 [11:26:25]save to /storage/0447/doc_00164906 [11:26:25]save last doc name /storage/0447/doc_00164906 to /storage/kkm_last_doc_name [11:26:25]save OK [11:26:25]Clear old archive folders... [11:26:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:26:25]tlvbuf is 007699B0 [11:26:25]SAM_PROTO_ClearQueue [11:26:25]wFMCommunicate request_size=4 [11:26:25]MH_SAM_APDU [11:26:25]CAPDU: 80 09 00 00 [11:26:25]Write to MH i2c: E2 08 00 69 0F 80 09 00 00 00 00 00 00 EA [11:26:25]Write i2c OK [11:26:25]MH_I2C_Read... [11:26:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:26:25]Read from MH i2c: E2 [11:26:25]MH_I2C_Read... [11:26:25]Read from MH i2c: E2 03 00 [11:26:25]MH_I2C_Read... [11:26:25]Read from MH i2c: E2 03 00 69 0F 00 90 00 EC [11:26:25]RAPDU: 90 00 [11:26:25]wFMCommunicate OK [11:26:25]SAM_PROTO_ClearQueue done [11:26:25]KKMCreateOFDPacket [11:26:25]OFDProtocolAddRootSTLVToBuf [11:26:25]FM_MakeSignedData [11:26:25]FM_MakeSignedData [11:26:25]SAM_PROTO_SignData [11:26:25]wFMCommunicate request_size=4 [11:26:25]MH_SAM_APDU [11:26:25]CAPDU: 80 0D 01 02 [11:26:25]Write to MH i2c: E2 08 00 6A 0F 80 0D 01 02 00 00 00 00 F2 [11:26:25]Write i2c OK [11:26:25]MH_I2C_Read... [11:26:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:26:25]Read from MH i2c: E2 [11:26:25]MH_I2C_Read... [11:26:25]Read from MH i2c: E2 03 00 [11:26:25]MH_I2C_Read... [11:26:25]Read from MH i2c: E2 03 00 6A 0F 00 90 00 ED [11:26:25]RAPDU: 90 00 [11:26:25]wFMCommunicate OK [11:26:25]wFMCommunicate request_size=255 [11:26:25]MH_SAM_APDU [11:26:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 1C 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 A2 BB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 BB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 13 00 00 00 00 07 04 06 00 80 BB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 E1 B5 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2A 84 02 00 35 04 06 00 2C [11:26:25]Write to MH i2c: E2 02 01 6B 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 1C 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 A2 BB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 BB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 13 00 00 00 00 07 04 06 00 80 BB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 E1 B5 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2A 84 02 00 35 04 06 00 2C 00 00 7F [11:26:25]Write i2c OK [11:26:25]MH_I2C_Read... [11:26:25]OFD Sender: No OFD packet to send [11:26:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:26]Read from MH i2c: E2 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: E2 03 00 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: E2 03 00 6B 0F 00 90 00 EE [11:26:26]RAPDU: 90 00 [11:26:26]wFMCommunicate OK [11:26:26]wFMCommunicate request_size=10 [11:26:26]MH_SAM_APDU [11:26:26]CAPDU: 80 0D 02 02 05 67 D6 40 80 65 [11:26:26]Write to MH i2c: E2 0D 00 6C 0F 80 0D 02 02 05 00 67 D6 40 80 65 00 00 61 [11:26:26]Write i2c OK [11:26:26]MH_I2C_Read... [11:26:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:26]Read from MH i2c: E2 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: E2 03 00 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: E2 03 00 6C 0F 00 90 00 EF [11:26:26]RAPDU: 90 00 [11:26:26]wFMCommunicate OK [11:26:26]wFMCommunicate request_size=4 [11:26:26]MH_SAM_APDU [11:26:26]CAPDU: 80 0D 03 02 [11:26:26]Write to MH i2c: E2 08 00 6D 0F 80 0D 03 02 00 00 00 00 F7 [11:26:26]Write i2c OK [11:26:26]MH_I2C_Read... [11:26:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:26:26]Read from MH i2c: E2 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: E2 0B 00 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: E2 0B 00 6D 0F 00 C6 BC 19 E8 03 91 EF 4B 90 00 49 [11:26:26]RAPDU: C6 BC 19 E8 03 91 EF 4B 90 00 [11:26:26]wFMCommunicate OK [11:26:26]SAM_PROTO_SignData done [11:26:26]FM_MakeSignedData done [11:26:26]CreateOFDProtocolMessage [11:26:26]wFMCommunicate request_size=4 [11:26:26]MH_SAM_APDU [11:26:26]CAPDU: 80 11 00 00 [11:26:26]Write to MH i2c: E2 08 00 6E 0F 80 11 00 00 00 00 00 00 F7 [11:26:26]Write i2c OK [11:26:26]MH_I2C_Read... [11:26:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:26]Read from MH i2c: E2 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: E2 17 00 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: E2 17 00 6E 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 4D [11:26:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:26:26]wFMCommunicate OK [11:26:26]CreateOFDProtocolMessage done [11:26:26]OFDSenderStorePacket 164906 [11:26:26]StoreOFDPacket docnum=164906 [11:26:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 B7 93 07 01 AD 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 1C 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 A2 BB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 BB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 13 00 00 00 00 07 04 06 00 80 BB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 E1 B5 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2A 84 02 00 35 04 06 00 2C 67 D6 40 80 65 C6 BC 19 E8 03 91 EF 4B [11:26:26]CheckFolder [11:26:26]dirname=/storage/ofd_packets [11:26:26]CheckFolder done [11:26:26]ProducePacketName [11:26:26]name=ofd_packets/00164906 [11:26:26]NVStorageSaveData ofd_packets/00164906 [11:26:26]File name is /storage/ofd_packets/00164906 [11:26:26]Write 301 bytes [11:26:26]NVStorageSaveData done [11:26:26]OFDSenderStorePacket done [11:26:26]KKMCreateOFDPacket done [11:26:26]NVStorageSaveData kkm_last_timestamp [11:26:26]File name is /storage/kkm_last_timestamp [11:26:26]Write 4 bytes [11:26:26]NVStorageSaveData done [11:26:26]ExternCall_PrintAddStr [11:26:26]wPrintStart [11:26:26]Write to MH i2c: 01 00 00 6F 0F 7E [11:26:26]Write i2c OK [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: 01 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: 01 07 00 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: 01 07 00 6F 0F 00 00 00 00 00 FF 0F 93 [11:26:26]RasterBufferAndPrint [11:26:26]line Счет N : (1)459002 [11:26:26]line ИНН: 02508201610067 [11:26:26]line Контрольно-Кассовый Чек [11:26:26]line ПРОДАЖА [11:26:26]line ТРК (МРК, ГНК) : 12 [11:26:26]line Товар: 2710124130 [11:26:26]line Аи-92-К-5 [11:26:26]line 7.300 * 65.80 [11:26:26]line = 480.34 [11:26:26]line НДС 12% НСП 1% [11:26:26]line > о реализуемом товаре [11:26:26]line ОКРУГЛЕНИЕ: -0.34 [11:26:26]line ИТОГО: 480.00 [11:26:26]line Внесено: 480.00 [11:26:26]line СДАЧА: 0.00 [11:26:26]line НСП 1% : 4.25 [11:26:26]line НДС 12% : 51.01 [11:26:26]line Наличными: 480.00 [11:26:26]line Безнал.: 0.00 [11:26:26]line Место: АЗС № 72 "Партнер Нефть" [11:26:26]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:26:26]line СНО: Общий режим [11:26:26]line Чек 104 14.07.2024 11:26 [11:26:26]line Смена: 447 ФФД: 1.0 [11:26:26]line ЗНМ: 0300000160 [11:26:26]line РНМ: 0000000000090829 [11:26:26]line Версия ККМ: 001 [11:26:26]line ФМ: 0000000000874718 [11:26:26]line ФД: 164906 [11:26:26]line ФПД: 48824487805029 [11:26:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T112625&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164906&fm=48824487805029&tin=02508201610067®Number=0000000000090829&sum=48000 [11:26:26]OFD Sender: Processing packet 164906 [packets to send 104, broken 103] [11:26:26]ProducePacketName [11:26:26]name=ofd_packets/00164906 [11:26:26]OFD Sender: To server: pG, [11:26:26]CommunicateWithHost lk.salyk.kg:30040 [11:26:26]ConnectInit lk.salyk.kg [11:26:26]written 0, free lines is 4095 [11:26:26]Connected sock=10 [11:26:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 B7 93 07 01 AD 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 1C 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 A2 BB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 BB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 13 00 00 00 00 07 04 06 00 80 BB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 E1 B5 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2A 84 02 00 35 04 06 00 2C 67 D6 40 80 65 C6 BC 19 E8 03 91 EF 4B [11:26:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 F0 8B 47 00 E5 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2A 84 02 00 F4 03 04 00 6F 5C 93 66 B6 04 01 00 00 4E D7 BF B0 BC A9 7C 98 [11:26:26]CommunicateWithHost err = 0 [11:26:26]CheckOFDResponse [11:26:26]1017 (14) - 77093643461234 [11:26:26]1041 (16) - 0000000000874718 [11:26:26]1040 (4) - 164906 [11:26:26]1012 (4) - 14.07.2024 05:04 [11:26:26]1206 (1) - 0 [11:26:26]OFD Sender: Remove packet 164906 [11:26:26]ProducePacketName [11:26:26]name=ofd_packets/00164906 [11:26:26]NVStorageDeleteData [11:26:26]Write to MH i2c: 01 00 00 99 0F A8 [11:26:26]Write i2c OK [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: 01 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: 01 07 00 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: 01 07 00 99 0F 00 00 00 00 00 F4 0C AF [11:26:26]RasterBufferAndPrint [11:26:26]line [11:26:26]line [11:26:26]line [11:26:26]line [11:26:26]line [11:26:26]written 0, free lines is 3323 [11:26:26]MH_Cut [11:26:26]Write to MH i2c: D1 01 00 A0 0F 01 81 [11:26:26]Write i2c OK [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: D1 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: D1 01 00 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: D1 01 00 A0 0F 00 80 [11:26:26]Write to MH i2c: 01 00 00 A1 0F B0 [11:26:26]Write i2c OK [11:26:26]MH_I2C_Read... [11:26:27]OFD Sender: No OFD packet to send [11:26:27]*** Cut start [11:26:27]*** Partial cut [11:26:27]*** CUTSNS_PIN = 1 [11:26:27]*** CUTSNS_PIN = 0 [11:26:27]*** Brake cut motor [11:26:28]Read from MH i2c: 01 [11:26:28]MH_I2C_Read... [11:26:28]*** Stop cut motor [11:26:28]*** Cut end [11:26:28]Read from MH i2c: 01 07 00 [11:26:28]MH_I2C_Read... [11:26:28]Read from MH i2c: 01 07 00 A1 0F 00 00 00 00 00 FF 0F C5 [11:26:28]process_action close_receipt done [11:26:28]requested_data is exist [11:26:28]produce_requested_data [11:26:28]requested_item fm.sn is exist - process it [11:26:28]wFMCommunicate request_size=4 [11:26:28]MH_SAM_APDU [11:26:28]CAPDU: 80 11 00 00 [11:26:28]Write to MH i2c: E2 08 00 A2 0F 80 11 00 00 00 00 00 00 2B [11:26:28]Write i2c OK [11:26:28]MH_I2C_Read... [11:26:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:28]Read from MH i2c: E2 [11:26:28]MH_I2C_Read... [11:26:28]Read from MH i2c: E2 17 00 [11:26:28]MH_I2C_Read... [11:26:28]Read from MH i2c: E2 17 00 A2 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 81 [11:26:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:26:28]wFMCommunicate OK [11:26:28]requested_item fd.num is exist - process it [11:26:28]SAM_PROTO_GetFieldsCounters [11:26:28]wFMCommunicate request_size=4 [11:26:28]MH_SAM_APDU [11:26:28]CAPDU: 80 13 00 00 [11:26:28]Write to MH i2c: E2 08 00 A3 0F 80 13 00 00 00 00 00 00 2E [11:26:28]Write i2c OK [11:26:28]MH_I2C_Read... [11:26:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:26:28]Read from MH i2c: E2 [11:26:28]MH_I2C_Read... [11:26:28]Read from MH i2c: E2 62 00 [11:26:28]MH_I2C_Read... [11:26:28]Read from MH i2c: E2 62 00 A3 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 2A 84 02 00 0E 04 04 00 BF 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 FD [11:26:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 2A 84 02 00 0E 04 04 00 BF 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 [11:26:28]wFMCommunicate OK [11:26:28]SAM_PROTO_GetFieldsCounters done [11:26:28]requested_item shift.num is exist - process it [11:26:28]requested_item shift.opened is exist - process it [11:26:28]req_shift_opened [11:26:28]FM_GetShiftState [11:26:28]SAM_PROTO_GetShiftState [11:26:28]wFMCommunicate request_size=4 [11:26:28]MH_SAM_APDU [11:26:28]CAPDU: 80 13 01 00 [11:26:28]Write to MH i2c: E2 08 00 A4 0F 80 13 01 00 00 00 00 00 30 [11:26:28]Write i2c OK [11:26:28]MH_I2C_Read... [11:26:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:28]Read from MH i2c: E2 [11:26:28]MH_I2C_Read... [11:26:28]Read from MH i2c: E2 0E 00 [11:26:28]MH_I2C_Read... [11:26:28]Read from MH i2c: E2 0E 00 A4 0F 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 B0 [11:26:28]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:26:28]wFMCommunicate OK [11:26:28]SAM_PROTO_GetShiftState done [11:26:28]FM_GetShiftState done [11:26:28]req_shift_opened done [11:26:28]requested_item shift.open_date is exist - process it [11:26:28]req_shift_open_date [11:26:28]req_shift_open_date done [11:26:28]produce_requested_data done [11:26:28]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164906,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [11:26:28]process_action_free close_receipt [11:26:28]json_value_free [11:26:28]json_value_free done [11:26:28]process_json_proto returns [11:26:28]Send response to host [11:26:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164906,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [11:26:28]free response buf [11:26:28]execute_script done [11:26:28]execute_script returns [11:26:28]free content buf [11:26:28]Sock 9.Close socket [11:26:28]Sock 9.Thread stoped [11:26:32]OFD Sender: No OFD packet to send [11:26:37]OFD Sender: No OFD packet to send [11:26:42]OFD Sender: No OFD packet to send [11:26:47]OFD Sender: No OFD packet to send [11:26:51]accept exits with 7 [11:26:51]New connection [11:26:51]New thread 3067616612 created [11:26:51]Thread 3067473252 joined [11:26:51]Waiting for new connection... [11:26:51] Sock 7.Parse request [11:26:51]Sock 7.Check first char [11:26:51]Sock 7.First char is OK [11:26:51]request: POST /json_proto HTTP/1.0 [11:26:51]Method: POST [11:26:51]URL: /json_proto [11:26:51]Method is POST - this is cgi request [11:26:51]url: /json_proto [11:26:51]query_string will be loaded in cgi processing [11:26:51]execute_cgi json_proto POST (null) [11:26:51]execute_cgi path=json_proto method=POST [11:26:51]POST find Content-Length [11:26:51]Host: 172.17.56.4:8080 [11:26:51]Content-Length: 677 [11:26:51]Content-Type: application/json [11:26:51] [11:26:51]POST finish read [11:26:51]Found Content-Length = 677 [11:26:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459003", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:26:51]execute_script... [11:26:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459003", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:26:51]POST & json_proto [11:26:51]process_json_proto [11:26:51]json parsed OK: [11:26:51]protocol is kg_v1.0 [11:26:51]action value=close_receipt [11:26:51]process_action close_receipt [11:26:51]cmd_close_receipt [11:26:51]MH_GetDate [11:26:51]Write to MH i2c: F0 00 00 A5 0F A3 [11:26:51]Write i2c OK [11:26:51]MH_I2C_Read... [11:26:51]Read from MH i2c: F0 [11:26:51]MH_I2C_Read... [11:26:51]Read from MH i2c: F0 09 00 [11:26:51]MH_I2C_Read... [11:26:51]Read from MH i2c: F0 09 00 A5 0F 00 FC B5 93 66 C9 DC B2 64 11 [11:26:51]GetLastDocTimeStamp 1720956385 [11:26:51]current date 1720956412 [11:26:51]FM_GetShiftState [11:26:51]SAM_PROTO_GetShiftState [11:26:51]wFMCommunicate request_size=4 [11:26:51]MH_SAM_APDU [11:26:51]CAPDU: 80 13 01 00 [11:26:51]Write to MH i2c: E2 08 00 A6 0F 80 13 01 00 00 00 00 00 32 [11:26:51]Write i2c OK [11:26:51]MH_I2C_Read... [11:26:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:51]Read from MH i2c: E2 [11:26:51]MH_I2C_Read... [11:26:51]Read from MH i2c: E2 0E 00 [11:26:51]MH_I2C_Read... [11:26:51]Read from MH i2c: E2 0E 00 A6 0F 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 B2 [11:26:51]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:26:51]wFMCommunicate OK [11:26:51]SAM_PROTO_GetShiftState done [11:26:51]FM_GetShiftState done [11:26:51]opened in 1720917342 [11:26:51]opened+sec_in_day 1721003742 [11:26:51]quantity*price = 50008 [11:26:51]sum+1 = 50009 [11:26:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 105 14.07.2024 11:26 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164907 ФПД: 56775573118079 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T112652&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164907&fm=56775573118079&tin=02508201610067®Number=0000000000090829&sum=50000 [11:26:52]StoreToDocumentArchive [11:26:52]shift 447 fd 164907 [11:26:52]save to /storage/0447/doc_00164907 [11:26:52]save last doc name /storage/0447/doc_00164907 to /storage/kkm_last_doc_name [11:26:52]save OK [11:26:52]Clear old archive folders... [11:26:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:26:52]tlvbuf is 0071ACC0 [11:26:52]SAM_PROTO_ClearQueue [11:26:52]wFMCommunicate request_size=4 [11:26:52]MH_SAM_APDU [11:26:52]CAPDU: 80 09 00 00 [11:26:52]Write to MH i2c: E2 08 00 B3 0F 80 09 00 00 00 00 00 00 34 [11:26:52]Write i2c OK [11:26:52]MH_I2C_Read... [11:26:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:26:52]Read from MH i2c: E2 [11:26:52]MH_I2C_Read... [11:26:52]Read from MH i2c: E2 03 00 [11:26:52]MH_I2C_Read... [11:26:52]Read from MH i2c: E2 03 00 B3 0F 00 90 00 36 [11:26:52]RAPDU: 90 00 [11:26:52]wFMCommunicate OK [11:26:52]SAM_PROTO_ClearQueue done [11:26:52]KKMCreateOFDPacket [11:26:52]OFDProtocolAddRootSTLVToBuf [11:26:52]FM_MakeSignedData [11:26:52]FM_MakeSignedData [11:26:52]SAM_PROTO_SignData [11:26:52]wFMCommunicate request_size=4 [11:26:52]MH_SAM_APDU [11:26:52]CAPDU: 80 0D 01 02 [11:26:52]Write to MH i2c: E2 08 00 B4 0F 80 0D 01 02 00 00 00 00 3C [11:26:52]Write i2c OK [11:26:52]MH_I2C_Read... [11:26:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:26:52]Read from MH i2c: E2 [11:26:52]MH_I2C_Read... [11:26:52]Read from MH i2c: E2 03 00 [11:26:52]MH_I2C_Read... [11:26:52]Read from MH i2c: E2 03 00 B4 0F 00 90 00 37 [11:26:52]RAPDU: 90 00 [11:26:52]wFMCommunicate OK [11:26:52]wFMCommunicate request_size=255 [11:26:52]MH_SAM_APDU [11:26:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 69 00 00 00 F4 03 04 00 FC B5 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2B 84 02 00 35 04 06 00 33 [11:26:52]Write to MH i2c: E2 02 01 B5 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 69 00 00 00 F4 03 04 00 FC B5 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2B 84 02 00 35 04 06 00 33 00 00 6C [11:26:52]Write i2c OK [11:26:52]MH_I2C_Read... [11:26:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:53]Read from MH i2c: E2 [11:26:53]MH_I2C_Read... [11:26:53]Read from MH i2c: E2 03 00 [11:26:53]MH_I2C_Read... [11:26:53]Read from MH i2c: E2 03 00 B5 0F 00 90 00 38 [11:26:53]RAPDU: 90 00 [11:26:53]wFMCommunicate OK [11:26:53]wFMCommunicate request_size=10 [11:26:53]MH_SAM_APDU [11:26:53]CAPDU: 80 0D 02 02 05 A3 17 DE 1C 7F [11:26:53]Write to MH i2c: E2 0D 00 B6 0F 80 0D 02 02 05 00 A3 17 DE 1C 7F 00 00 7C [11:26:53]Write i2c OK [11:26:53]MH_I2C_Read... [11:26:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:53]Read from MH i2c: E2 [11:26:53]MH_I2C_Read... [11:26:53]Read from MH i2c: E2 03 00 [11:26:53]MH_I2C_Read... [11:26:53]Read from MH i2c: E2 03 00 B6 0F 00 90 00 39 [11:26:53]RAPDU: 90 00 [11:26:53]wFMCommunicate OK [11:26:53]wFMCommunicate request_size=4 [11:26:53]MH_SAM_APDU [11:26:53]CAPDU: 80 0D 03 02 [11:26:53]Write to MH i2c: E2 08 00 B7 0F 80 0D 03 02 00 00 00 00 41 [11:26:53]Write i2c OK [11:26:53]MH_I2C_Read... [11:26:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:26:53]Read from MH i2c: E2 [11:26:53]MH_I2C_Read... [11:26:53]Read from MH i2c: E2 0B 00 [11:26:53]MH_I2C_Read... [11:26:53]Read from MH i2c: E2 0B 00 B7 0F 00 6E 38 D1 32 22 DC 16 BD 90 00 BC [11:26:53]RAPDU: 6E 38 D1 32 22 DC 16 BD 90 00 [11:26:53]wFMCommunicate OK [11:26:53]SAM_PROTO_SignData done [11:26:53]FM_MakeSignedData done [11:26:53]CreateOFDProtocolMessage [11:26:53]wFMCommunicate request_size=4 [11:26:53]MH_SAM_APDU [11:26:53]CAPDU: 80 11 00 00 [11:26:53]Write to MH i2c: E2 08 00 B8 0F 80 11 00 00 00 00 00 00 41 [11:26:53]Write i2c OK [11:26:53]MH_I2C_Read... [11:26:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:53]Read from MH i2c: E2 [11:26:53]MH_I2C_Read... [11:26:53]Read from MH i2c: E2 17 00 [11:26:53]MH_I2C_Read... [11:26:53]Read from MH i2c: E2 17 00 B8 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 97 [11:26:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:26:53]wFMCommunicate OK [11:26:53]CreateOFDProtocolMessage done [11:26:53]OFDSenderStorePacket 164907 [11:26:53]StoreOFDPacket docnum=164907 [11:26:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 65 9A 07 01 7D FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 69 00 00 00 F4 03 04 00 FC B5 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2B 84 02 00 35 04 06 00 33 A3 17 DE 1C 7F 6E 38 D1 32 22 DC 16 BD [11:26:53]CheckFolder [11:26:53]dirname=/storage/ofd_packets [11:26:53]CheckFolder done [11:26:53]ProducePacketName [11:26:53]name=ofd_packets/00164907 [11:26:53]NVStorageSaveData ofd_packets/00164907 [11:26:53]File name is /storage/ofd_packets/00164907 [11:26:53]Write 301 bytes [11:26:53]NVStorageSaveData done [11:26:53]OFDSenderStorePacket done [11:26:53]KKMCreateOFDPacket done [11:26:53]NVStorageSaveData kkm_last_timestamp [11:26:53]File name is /storage/kkm_last_timestamp [11:26:53]Write 4 bytes [11:26:53]NVStorageSaveData done [11:26:53]OFD Sender: Processing packet 164907 [packets to send 104, broken 103] [11:26:53]ProducePacketName [11:26:53]name=ofd_packets/00164907 [11:26:53]OFD Sender: To server: pG, [11:26:53]CommunicateWithHost lk.salyk.kg:30040 [11:26:53]ConnectInit lk.salyk.kg [11:26:53]ExternCall_PrintAddStr [11:26:53]wPrintStart [11:26:53]Write to MH i2c: 01 00 00 B9 0F C8 [11:26:53]Write i2c OK [11:26:53]MH_I2C_Read... [11:26:53]Read from MH i2c: 01 [11:26:53]MH_I2C_Read... [11:26:53]Read from MH i2c: 01 07 00 [11:26:53]MH_I2C_Read... [11:26:53]Read from MH i2c: 01 07 00 B9 0F 00 00 00 00 00 FF 0F DD [11:26:53]RasterBufferAndPrint [11:26:53]line Счет N : (1)459003 [11:26:53]line ИНН: 02508201610067 [11:26:53]line Контрольно-Кассовый Чек [11:26:53]line ПРОДАЖА [11:26:53]line ТРК (МРК, ГНК) : 22 [11:26:53]line Товар: 2710124130 [11:26:53]line Аи-92-К-5 [11:26:53]line 7.600 * 65.80 [11:26:53]line = 500.08 [11:26:53]line НДС 12% НСП 1% [11:26:53]line > о реализуемом товаре [11:26:53]line ОКРУГЛЕНИЕ: -0.08 [11:26:53]line ИТОГО: 500.00 [11:26:53]line Внесено: 500.00 [11:26:53]line СДАЧА: 0.00 [11:26:53]line НСП 1% : 4.42 [11:26:53]line НДС 12% : 53.11 [11:26:53]line Наличными: 500.00 [11:26:53]line Безнал.: 0.00 [11:26:53]line Место: АЗС № 72 "Партнер Нефть" [11:26:53]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:26:53]line СНО: Общий режим [11:26:53]line Чек 105 14.07.2024 11:26 [11:26:53]line Смена: 447 ФФД: 1.0 [11:26:53]line ЗНМ: 0300000160 [11:26:53]line РНМ: 0000000000090829 [11:26:53]line Версия ККМ: 001 [11:26:53]line ФМ: 0000000000874718 [11:26:53]line ФД: 164907 [11:26:53]line ФПД: 56775573118079 [11:26:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T112652&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164907&fm=56775573118079&tin=02508201610067®Number=0000000000090829&sum=50000 [11:26:53]Connected sock=12 [11:26:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 65 9A 07 01 7D FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 69 00 00 00 F4 03 04 00 FC B5 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2B 84 02 00 35 04 06 00 33 A3 17 DE 1C 7F 6E 38 D1 32 22 DC 16 BD [11:26:53]written 0, free lines is 4095 [11:26:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 6A C3 47 00 26 FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2B 84 02 00 F4 03 04 00 8A 5C 93 66 B6 04 01 00 00 68 10 3A F6 79 2A 07 51 [11:26:53]CommunicateWithHost err = 0 [11:26:53]CheckOFDResponse [11:26:53]1017 (14) - 77093643461234 [11:26:53]1041 (16) - 0000000000874718 [11:26:53]1040 (4) - 164907 [11:26:53]1012 (4) - 14.07.2024 05:05 [11:26:53]1206 (1) - 0 [11:26:53]OFD Sender: Remove packet 164907 [11:26:53]ProducePacketName [11:26:53]name=ofd_packets/00164907 [11:26:53]NVStorageDeleteData [11:26:54]Write to MH i2c: 01 00 00 E3 0F F2 [11:26:54]Write i2c OK [11:26:54]MH_I2C_Read... [11:26:54]Read from MH i2c: 01 [11:26:54]MH_I2C_Read... [11:26:54]Read from MH i2c: 01 07 00 [11:26:54]MH_I2C_Read... [11:26:54]Read from MH i2c: 01 07 00 E3 0F 00 00 00 00 00 EC 0C F1 [11:26:54]RasterBufferAndPrint [11:26:54]line [11:26:54]line [11:26:54]line [11:26:54]line [11:26:54]line [11:26:54]written 0, free lines is 3315 [11:26:54]MH_Cut [11:26:54]Write to MH i2c: D1 01 00 EA 0F 01 CB [11:26:54]Write i2c OK [11:26:54]MH_I2C_Read... [11:26:54]Read from MH i2c: D1 [11:26:54]MH_I2C_Read... [11:26:54]Read from MH i2c: D1 01 00 [11:26:54]MH_I2C_Read... [11:26:54]Read from MH i2c: D1 01 00 EA 0F 00 CA [11:26:54]Write to MH i2c: 01 00 00 EB 0F FA [11:26:54]Write i2c OK [11:26:54]MH_I2C_Read... [11:26:54]OFD Sender: No OFD packet to send [11:26:54]*** Cut start [11:26:54]*** Partial cut [11:26:54]*** CUTSNS_PIN = 1 [11:26:54]*** CUTSNS_PIN = 0 [11:26:55]*** Brake cut motor [11:26:55]Read from MH i2c: 01 [11:26:55]MH_I2C_Read... [11:26:55]*** Stop cut motor [11:26:55]*** Cut end [11:26:55]Read from MH i2c: 01 07 00 [11:26:55]MH_I2C_Read... [11:26:55]Read from MH i2c: 01 07 00 EB 0F 00 00 00 00 00 FF 0F 0F [11:26:55]process_action close_receipt done [11:26:55]requested_data is exist [11:26:55]produce_requested_data [11:26:55]requested_item fm.sn is exist - process it [11:26:55]wFMCommunicate request_size=4 [11:26:55]MH_SAM_APDU [11:26:55]CAPDU: 80 11 00 00 [11:26:55]Write to MH i2c: E2 08 00 EC 0F 80 11 00 00 00 00 00 00 75 [11:26:55]Write i2c OK [11:26:55]MH_I2C_Read... [11:26:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:55]Read from MH i2c: E2 [11:26:55]MH_I2C_Read... [11:26:55]Read from MH i2c: E2 17 00 [11:26:55]MH_I2C_Read... [11:26:55]Read from MH i2c: E2 17 00 EC 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 CB [11:26:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:26:55]wFMCommunicate OK [11:26:55]requested_item fd.num is exist - process it [11:26:55]SAM_PROTO_GetFieldsCounters [11:26:55]wFMCommunicate request_size=4 [11:26:55]MH_SAM_APDU [11:26:55]CAPDU: 80 13 00 00 [11:26:55]Write to MH i2c: E2 08 00 ED 0F 80 13 00 00 00 00 00 00 78 [11:26:55]Write i2c OK [11:26:55]MH_I2C_Read... [11:26:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:26:55]Read from MH i2c: E2 [11:26:55]MH_I2C_Read... [11:26:55]Read from MH i2c: E2 62 00 [11:26:55]MH_I2C_Read... [11:26:55]Read from MH i2c: E2 62 00 ED 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 2B 84 02 00 0E 04 04 00 BF 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 4B [11:26:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 2B 84 02 00 0E 04 04 00 BF 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 [11:26:55]wFMCommunicate OK [11:26:55]SAM_PROTO_GetFieldsCounters done [11:26:55]requested_item shift.num is exist - process it [11:26:55]requested_item shift.opened is exist - process it [11:26:55]req_shift_opened [11:26:55]FM_GetShiftState [11:26:55]SAM_PROTO_GetShiftState [11:26:55]wFMCommunicate request_size=4 [11:26:55]MH_SAM_APDU [11:26:55]CAPDU: 80 13 01 00 [11:26:55]Write to MH i2c: E2 08 00 EE 0F 80 13 01 00 00 00 00 00 7A [11:26:55]Write i2c OK [11:26:55]MH_I2C_Read... [11:26:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:55]Read from MH i2c: E2 [11:26:55]MH_I2C_Read... [11:26:55]Read from MH i2c: E2 0E 00 [11:26:55]MH_I2C_Read... [11:26:55]Read from MH i2c: E2 0E 00 EE 0F 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 FA [11:26:55]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:26:55]wFMCommunicate OK [11:26:55]SAM_PROTO_GetShiftState done [11:26:55]FM_GetShiftState done [11:26:55]req_shift_opened done [11:26:55]requested_item shift.open_date is exist - process it [11:26:55]req_shift_open_date [11:26:55]req_shift_open_date done [11:26:55]produce_requested_data done [11:26:55]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164907,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [11:26:55]process_action_free close_receipt [11:26:55]json_value_free [11:26:55]json_value_free done [11:26:55]process_json_proto returns [11:26:55]Send response to host [11:26:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164907,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [11:26:55]free response buf [11:26:55]execute_script done [11:26:55]execute_script returns [11:26:55]free content buf [11:26:55]Sock 7.Close socket [11:26:55]Sock 7.Thread stoped [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:40]accept exits with 9 [11:27:40]New connection [11:27:40]New thread 3067473252 created [11:27:40]Thread 3067616612 joined [11:27:40]Waiting for new connection... [11:27:40] Sock 9.Parse request [11:27:40]Sock 9.Check first char [11:27:40]Sock 9.First char is OK [11:27:40]request: POST /json_proto HTTP/1.0 [11:27:40]Method: POST [11:27:40]URL: /json_proto [11:27:40]Method is POST - this is cgi request [11:27:40]url: /json_proto [11:27:40]query_string will be loaded in cgi processing [11:27:40]execute_cgi json_proto POST (null) [11:27:40]execute_cgi path=json_proto method=POST [11:27:40]POST find Content-Length [11:27:40]Host: 172.17.56.4:8080 [11:27:40]Content-Length: 677 [11:27:40]Content-Type: application/json [11:27:40] [11:27:40]POST finish read [11:27:40]Found Content-Length = 677 [11:27:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459004", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:27:40]execute_script... [11:27: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)459004", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:27:40]POST & json_proto [11:27:40]process_json_proto [11:27:40]json parsed OK: [11:27:40]protocol is kg_v1.0 [11:27:40]action value=close_receipt [11:27:40]process_action close_receipt [11:27:40]cmd_close_receipt [11:27:40]MH_GetDate [11:27:40]Write to MH i2c: F0 00 00 EF 0F ED [11:27:40]Write i2c OK [11:27:40]MH_I2C_Read... [11:27:40]Read from MH i2c: F0 [11:27:40]MH_I2C_Read... [11:27:40]Read from MH i2c: F0 09 00 [11:27:40]MH_I2C_Read... [11:27:40]Read from MH i2c: F0 09 00 EF 0F 00 2D B6 93 66 C9 DC B2 64 8D [11:27:40]GetLastDocTimeStamp 1720956412 [11:27:40]current date 1720956461 [11:27:40]FM_GetShiftState [11:27:40]SAM_PROTO_GetShiftState [11:27:40]wFMCommunicate request_size=4 [11:27:40]MH_SAM_APDU [11:27:40]CAPDU: 80 13 01 00 [11:27:40]Write to MH i2c: E2 08 00 F0 0F 80 13 01 00 00 00 00 00 7C [11:27:40]Write i2c OK [11:27:40]MH_I2C_Read... [11:27:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:40]Read from MH i2c: E2 [11:27:40]MH_I2C_Read... [11:27:40]Read from MH i2c: E2 0E 00 [11:27:40]MH_I2C_Read... [11:27:40]Read from MH i2c: E2 0E 00 F0 0F 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 FC [11:27:40]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:27:40]wFMCommunicate OK [11:27:40]SAM_PROTO_GetShiftState done [11:27:40]FM_GetShiftState done [11:27:40]opened in 1720917342 [11:27:40]opened+sec_in_day 1721003742 [11:27:40]quantity*price = 20003 [11:27:40]sum+1 = 20004 [11:27:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 106 14.07.2024 11:27 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164908 ФПД: 66474546578896 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T112741&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164908&fm=66474546578896&tin=02508201610067®Number=0000000000090829&sum=20000 [11:27:41]StoreToDocumentArchive [11:27:41]shift 447 fd 164908 [11:27:41]save to /storage/0447/doc_00164908 [11:27:41]save last doc name /storage/0447/doc_00164908 to /storage/kkm_last_doc_name [11:27:41]save OK [11:27:41]Clear old archive folders... [11:27:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:27:41]tlvbuf is 007648C0 [11:27:41]SAM_PROTO_ClearQueue [11:27:41]wFMCommunicate request_size=4 [11:27:41]MH_SAM_APDU [11:27:41]CAPDU: 80 09 00 00 [11:27:41]Write to MH i2c: E2 08 00 FD 0F 80 09 00 00 00 00 00 00 7E [11:27:41]Write i2c OK [11:27:41]MH_I2C_Read... [11:27:41]Read from MH i2c: E2 [11:27:41]MH_I2C_Read... [11:27:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:27:41]Read from MH i2c: E2 03 00 [11:27:41]MH_I2C_Read... [11:27:41]Read from MH i2c: E2 03 00 FD 0F 00 90 00 80 [11:27:41]RAPDU: 90 00 [11:27:41]wFMCommunicate OK [11:27:41]SAM_PROTO_ClearQueue done [11:27:41]KKMCreateOFDPacket [11:27:41]OFDProtocolAddRootSTLVToBuf [11:27:41]FM_MakeSignedData [11:27:41]FM_MakeSignedData [11:27:41]SAM_PROTO_SignData [11:27:41]wFMCommunicate request_size=4 [11:27:41]MH_SAM_APDU [11:27:41]CAPDU: 80 0D 01 02 [11:27:41]Write to MH i2c: E2 08 00 FE 0F 80 0D 01 02 00 00 00 00 86 [11:27:41]Write i2c OK [11:27:41]MH_I2C_Read... [11:27:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:27:41]Read from MH i2c: E2 [11:27:41]MH_I2C_Read... [11:27:41]Read from MH i2c: E2 03 00 [11:27:41]MH_I2C_Read... [11:27:41]Read from MH i2c: E2 03 00 FE 0F 00 90 00 81 [11:27:41]RAPDU: 90 00 [11:27:41]wFMCommunicate OK [11:27:41]wFMCommunicate request_size=255 [11:27:41]MH_SAM_APDU [11:27:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 6A 00 00 00 F4 03 04 00 2D B6 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2C 84 02 00 35 04 06 00 3C [11:27:41]Write to MH i2c: E2 02 01 FF 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 6A 00 00 00 F4 03 04 00 2D B6 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2C 84 02 00 35 04 06 00 3C 00 00 94 [11:27:41]Write i2c OK [11:27:41]MH_I2C_Read... [11:27:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:42]Read from MH i2c: E2 [11:27:42]MH_I2C_Read... [11:27:42]Read from MH i2c: E2 03 00 [11:27:42]MH_I2C_Read... [11:27:42]Read from MH i2c: E2 03 00 FF 0F 00 90 00 82 [11:27:42]RAPDU: 90 00 [11:27:42]wFMCommunicate OK [11:27:42]wFMCommunicate request_size=10 [11:27:42]MH_SAM_APDU [11:27:42]CAPDU: 80 0D 02 02 05 75 4F BC 45 D0 [11:27:42]Write to MH i2c: E2 0D 00 00 10 80 0D 02 02 05 00 75 4F BC 45 D0 00 00 29 [11:27:42]Write i2c OK [11:27:42]MH_I2C_Read... [11:27:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:42]Read from MH i2c: E2 [11:27:42]MH_I2C_Read... [11:27:42]Read from MH i2c: E2 03 00 [11:27:42]MH_I2C_Read... [11:27:42]Read from MH i2c: E2 03 00 00 10 00 90 00 84 [11:27:42]RAPDU: 90 00 [11:27:42]wFMCommunicate OK [11:27:42]wFMCommunicate request_size=4 [11:27:42]MH_SAM_APDU [11:27:42]CAPDU: 80 0D 03 02 [11:27:42]Write to MH i2c: E2 08 00 01 10 80 0D 03 02 00 00 00 00 8C [11:27:42]Write i2c OK [11:27:42]MH_I2C_Read... [11:27:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:27:42]Read from MH i2c: E2 [11:27:42]MH_I2C_Read... [11:27:42]Read from MH i2c: E2 0B 00 [11:27:42]MH_I2C_Read... [11:27:42]Read from MH i2c: E2 0B 00 01 10 00 C8 A9 4A 2D 55 74 E3 E2 90 00 03 [11:27:42]RAPDU: C8 A9 4A 2D 55 74 E3 E2 90 00 [11:27:42]wFMCommunicate OK [11:27:42]SAM_PROTO_SignData done [11:27:42]FM_MakeSignedData done [11:27:42]CreateOFDProtocolMessage [11:27:42]wFMCommunicate request_size=4 [11:27:42]MH_SAM_APDU [11:27:42]CAPDU: 80 11 00 00 [11:27:42]Write to MH i2c: E2 08 00 02 10 80 11 00 00 00 00 00 00 8C [11:27:42]Write i2c OK [11:27:42]MH_I2C_Read... [11:27:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:42]Read from MH i2c: E2 [11:27:42]MH_I2C_Read... [11:27:42]Read from MH i2c: E2 17 00 [11:27:42]MH_I2C_Read... [11:27:42]Read from MH i2c: E2 17 00 02 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E2 [11:27:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:27:42]wFMCommunicate OK [11:27:42]CreateOFDProtocolMessage done [11:27:42]OFDSenderStorePacket 164908 [11:27:42]StoreOFDPacket docnum=164908 [11:27:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D8 BD 07 01 E0 A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 6A 00 00 00 F4 03 04 00 2D B6 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2C 84 02 00 35 04 06 00 3C 75 4F BC 45 D0 C8 A9 4A 2D 55 74 E3 E2 [11:27:42]CheckFolder [11:27:42]dirname=/storage/ofd_packets [11:27:42]CheckFolder done [11:27:42]ProducePacketName [11:27:42]name=ofd_packets/00164908 [11:27:42]NVStorageSaveData ofd_packets/00164908 [11:27:42]File name is /storage/ofd_packets/00164908 [11:27:42]Write 301 bytes [11:27:42]NVStorageSaveData done [11:27:42]OFDSenderStorePacket done [11:27:42]KKMCreateOFDPacket done [11:27:42]NVStorageSaveData kkm_last_timestamp [11:27:42]File name is /storage/kkm_last_timestamp [11:27:42]Write 4 bytes [11:27:42]NVStorageSaveData done [11:27:42]ExternCall_PrintAddStr [11:27:42]wPrintStart [11:27:42]Write to MH i2c: 01 00 00 03 10 13 [11:27:42]Write i2c OK [11:27:42]MH_I2C_Read... [11:27:42]Read from MH i2c: 01 [11:27:42]MH_I2C_Read... [11:27:42]Read from MH i2c: 01 07 00 [11:27:42]MH_I2C_Read... [11:27:42]Read from MH i2c: 01 07 00 03 10 00 00 00 00 00 FF 0F 28 [11:27:42]RasterBufferAndPrint [11:27:42]line Счет N : (1)459004 [11:27:42]line ИНН: 02508201610067 [11:27:42]line Контрольно-Кассовый Чек [11:27:42]line ПРОДАЖА [11:27:42]line ТРК (МРК, ГНК) : 12 [11:27:42]line Товар: 2710124130 [11:27:42]line Аи-92-К-5 [11:27:42]line 3.040 * 65.80 [11:27:42]line = 200.03 [11:27:42]line НДС 12% НСП 1% [11:27:42]line > о реализуемом товаре [11:27:42]line ОКРУГЛЕНИЕ: -0.03 [11:27:42]line ИТОГО: 200.00 [11:27:42]line Внесено: 200.00 [11:27:42]line СДАЧА: 0.00 [11:27:42]line НСП 1% : 1.77 [11:27:42]line НДС 12% : 21.24 [11:27:42]line Наличными: 200.00 [11:27:42]line Безнал.: 0.00 [11:27:42]line Место: АЗС № 72 "Партнер Нефть" [11:27:42]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:27:42]line СНО: Общий режим [11:27:42]line Чек 106 14.07.2024 11:27 [11:27:42]line Смена: 447 ФФД: 1.0 [11:27:42]line ЗНМ: 0300000160 [11:27:42]line РНМ: 0000000000090829 [11:27:42]line Версия ККМ: 001 [11:27:42]line ФМ: 0000000000874718 [11:27:42]line ФД: 164908 [11:27:42]line ФПД: 66474546578896 [11:27:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T112741&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164908&fm=66474546578896&tin=02508201610067®Number=0000000000090829&sum=20000 [11:27:42]OFD Sender: Processing packet 164908 [packets to send 104, broken 103] [11:27:42]ProducePacketName [11:27:42]name=ofd_packets/00164908 [11:27:42]OFD Sender: To server: pG, [11:27:42]CommunicateWithHost lk.salyk.kg:30040 [11:27:42]ConnectInit lk.salyk.kg [11:27:42]written 0, free lines is 4095 [11:27:42]Connected sock=7 [11:27:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D8 BD 07 01 E0 A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 6A 00 00 00 F4 03 04 00 2D B6 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2C 84 02 00 35 04 06 00 3C 75 4F BC 45 D0 C8 A9 4A 2D 55 74 E3 E2 [11:27:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 F0 C3 47 00 44 EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2C 84 02 00 F4 03 04 00 BB 5C 93 66 B6 04 01 00 00 F0 65 FB D1 92 AE EB 74 [11:27:43]CommunicateWithHost err = 0 [11:27:43]CheckOFDResponse [11:27:43]1017 (14) - 77093643461234 [11:27:43]1041 (16) - 0000000000874718 [11:27:43]1040 (4) - 164908 [11:27:43]1012 (4) - 14.07.2024 05:06 [11:27:43]1206 (1) - 0 [11:27:43]OFD Sender: Remove packet 164908 [11:27:43]ProducePacketName [11:27:43]name=ofd_packets/00164908 [11:27:43]NVStorageDeleteData [11:27:43]Write to MH i2c: 01 00 00 2D 10 3D [11:27:43]Write i2c OK [11:27:43]MH_I2C_Read... [11:27:43]Read from MH i2c: 01 [11:27:43]MH_I2C_Read... [11:27:43]Read from MH i2c: 01 07 00 [11:27:43]MH_I2C_Read... [11:27:43]Read from MH i2c: 01 07 00 2D 10 00 00 00 00 00 05 0D 56 [11:27:43]RasterBufferAndPrint [11:27:43]line [11:27:43]line [11:27:43]line [11:27:43]line [11:27:43]line [11:27:43]written 0, free lines is 3339 [11:27:43]MH_Cut [11:27:43]Write to MH i2c: D1 01 00 34 10 01 16 [11:27:43]Write i2c OK [11:27:43]MH_I2C_Read... [11:27:43]Read from MH i2c: D1 [11:27:43]MH_I2C_Read... [11:27:43]Read from MH i2c: D1 01 00 [11:27:43]MH_I2C_Read... [11:27:43]Read from MH i2c: D1 01 00 34 10 00 15 [11:27:43]Write to MH i2c: 01 00 00 35 10 45 [11:27:43]Write i2c OK [11:27:43]MH_I2C_Read... [11:27:43]OFD Sender: No OFD packet to send [11:27:43]*** Cut start [11:27:43]*** Partial cut [11:27:43]*** CUTSNS_PIN = 1 [11:27:43]*** CUTSNS_PIN = 0 [11:27:44]*** Brake cut motor [11:27:44]Read from MH i2c: 01 [11:27:44]MH_I2C_Read... [11:27:44]*** Stop cut motor [11:27:44]*** Cut end [11:27:44]Read from MH i2c: 01 07 00 [11:27:44]MH_I2C_Read... [11:27:44]Read from MH i2c: 01 07 00 35 10 00 00 00 00 00 FF 0F 5A [11:27:44]process_action close_receipt done [11:27:44]requested_data is exist [11:27:44]produce_requested_data [11:27:44]requested_item fm.sn is exist - process it [11:27:44]wFMCommunicate request_size=4 [11:27:44]MH_SAM_APDU [11:27:44]CAPDU: 80 11 00 00 [11:27:44]Write to MH i2c: E2 08 00 36 10 80 11 00 00 00 00 00 00 C0 [11:27:44]Write i2c OK [11:27:44]MH_I2C_Read... [11:27:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:44]Read from MH i2c: E2 [11:27:44]MH_I2C_Read... [11:27:44]Read from MH i2c: E2 17 00 [11:27:44]MH_I2C_Read... [11:27:44]Read from MH i2c: E2 17 00 36 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 16 [11:27:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:27:44]wFMCommunicate OK [11:27:44]requested_item fd.num is exist - process it [11:27:44]SAM_PROTO_GetFieldsCounters [11:27:44]wFMCommunicate request_size=4 [11:27:44]MH_SAM_APDU [11:27:44]CAPDU: 80 13 00 00 [11:27:44]Write to MH i2c: E2 08 00 37 10 80 13 00 00 00 00 00 00 C3 [11:27:44]Write i2c OK [11:27:44]MH_I2C_Read... [11:27:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:27:44]Read from MH i2c: E2 [11:27:44]MH_I2C_Read... [11:27:44]Read from MH i2c: E2 62 00 [11:27:44]MH_I2C_Read... [11:27:44]Read from MH i2c: E2 62 00 37 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 2C 84 02 00 0E 04 04 00 BF 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 9A [11:27:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 2C 84 02 00 0E 04 04 00 BF 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 [11:27:44]wFMCommunicate OK [11:27:44]SAM_PROTO_GetFieldsCounters done [11:27:44]requested_item shift.num is exist - process it [11:27:44]requested_item shift.opened is exist - process it [11:27:44]req_shift_opened [11:27:44]FM_GetShiftState [11:27:44]SAM_PROTO_GetShiftState [11:27:44]wFMCommunicate request_size=4 [11:27:44]MH_SAM_APDU [11:27:44]CAPDU: 80 13 01 00 [11:27:44]Write to MH i2c: E2 08 00 38 10 80 13 01 00 00 00 00 00 C5 [11:27:44]Write i2c OK [11:27:44]MH_I2C_Read... [11:27:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:44]Read from MH i2c: E2 [11:27:44]MH_I2C_Read... [11:27:44]Read from MH i2c: E2 0E 00 [11:27:44]MH_I2C_Read... [11:27:44]Read from MH i2c: E2 0E 00 38 10 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 45 [11:27:44]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:27:44]wFMCommunicate OK [11:27:44]SAM_PROTO_GetShiftState done [11:27:44]FM_GetShiftState done [11:27:44]req_shift_opened done [11:27:44]requested_item shift.open_date is exist - process it [11:27:44]req_shift_open_date [11:27:44]req_shift_open_date done [11:27:44]produce_requested_data done [11:27:44]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164908,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [11:27:44]process_action_free close_receipt [11:27:44]json_value_free [11:27:44]json_value_free done [11:27:44]process_json_proto returns [11:27:44]Send response to host [11:27:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164908,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [11:27:44]free response buf [11:27:44]execute_script done [11:27:44]execute_script returns [11:27:44]free content buf [11:27:44]Sock 9.Close socket [11:27:44]Sock 9.Thread stoped [11:27:48]OFD Sender: No OFD packet to send [11:27:53]OFD Sender: No OFD packet to send [11:27:58]OFD Sender: No OFD packet to send [11:28:03]OFD Sender: No OFD packet to send [11:28:08]OFD Sender: No OFD packet to send [11:28:13]OFD Sender: No OFD packet to send [11:28:18]OFD Sender: No OFD packet to send [11:28:23]OFD Sender: No OFD packet to send [11:28: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:10]accept exits with 10 [11:29:10]New connection [11:29:10]New thread 3067616612 created [11:29:10]Thread 3067473252 joined [11:29:10]Waiting for new connection... [11:29:10] Sock 10.Parse request [11:29:10]Sock 10.Check first char [11:29:10]Sock 10.First char is OK [11:29:10]request: POST /json_proto HTTP/1.0 [11:29:10]Method: POST [11:29:10]URL: /json_proto [11:29:10]Method is POST - this is cgi request [11:29:10]url: /json_proto [11:29:10]query_string will be loaded in cgi processing [11:29:10]execute_cgi json_proto POST (null) [11:29:10]execute_cgi path=json_proto method=POST [11:29:10]POST find Content-Length [11:29:10]Host: 172.17.56.4:8080 [11:29:10]Content-Length: 677 [11:29:10]Content-Type: application/json [11:29:10] [11:29:10]POST finish read [11:29:10]Found Content-Length = 677 [11:29:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459005", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:29:10]execute_script... [11:29: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)459005", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:29:10]POST & json_proto [11:29:10]process_json_proto [11:29:10]json parsed OK: [11:29:10]protocol is kg_v1.0 [11:29:10]action value=close_receipt [11:29:10]process_action close_receipt [11:29:10]cmd_close_receipt [11:29:10]MH_GetDate [11:29:10]Write to MH i2c: F0 00 00 39 10 38 [11:29:10]Write i2c OK [11:29:10]MH_I2C_Read... [11:29:10]Read from MH i2c: F0 [11:29:10]MH_I2C_Read... [11:29:10]Read from MH i2c: F0 09 00 [11:29:10]MH_I2C_Read... [11:29:10]Read from MH i2c: F0 09 00 39 10 00 87 B6 93 66 C9 DC B2 64 32 [11:29:10]GetLastDocTimeStamp 1720956461 [11:29:10]current date 1720956551 [11:29:10]FM_GetShiftState [11:29:10]SAM_PROTO_GetShiftState [11:29:10]wFMCommunicate request_size=4 [11:29:10]MH_SAM_APDU [11:29:10]CAPDU: 80 13 01 00 [11:29:10]Write to MH i2c: E2 08 00 3A 10 80 13 01 00 00 00 00 00 C7 [11:29:10]Write i2c OK [11:29:10]MH_I2C_Read... [11:29:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:10]Read from MH i2c: E2 [11:29:10]MH_I2C_Read... [11:29:10]Read from MH i2c: E2 0E 00 [11:29:10]MH_I2C_Read... [11:29:10]Read from MH i2c: E2 0E 00 3A 10 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 47 [11:29:10]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:29:10]wFMCommunicate OK [11:29:10]SAM_PROTO_GetShiftState done [11:29:10]FM_GetShiftState done [11:29:10]opened in 1720917342 [11:29:10]opened+sec_in_day 1721003742 [11:29:10]quantity*price = 20003 [11:29:10]sum+1 = 20004 [11:29:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 107 14.07.2024 11:29 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164909 ФПД: 110760550006906 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T112911&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164909&fm=110760550006906&tin=02508201610067®Number=0000000000090829&sum=20000 [11:29:11]StoreToDocumentArchive [11:29:11]shift 447 fd 164909 [11:29:11]save to /storage/0447/doc_00164909 [11:29:11]save last doc name /storage/0447/doc_00164909 to /storage/kkm_last_doc_name [11:29:11]save OK [11:29:11]Clear old archive folders... [11:29:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:29:11]tlvbuf is 00743FC0 [11:29:11]SAM_PROTO_ClearQueue [11:29:11]wFMCommunicate request_size=4 [11:29:11]MH_SAM_APDU [11:29:11]CAPDU: 80 09 00 00 [11:29:11]Write to MH i2c: E2 08 00 47 10 80 09 00 00 00 00 00 00 C9 [11:29:11]Write i2c OK [11:29:11]MH_I2C_Read... [11:29:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:29:12]Read from MH i2c: E2 [11:29:12]MH_I2C_Read... [11:29:12]Read from MH i2c: E2 03 00 [11:29:12]MH_I2C_Read... [11:29:12]Read from MH i2c: E2 03 00 47 10 00 90 00 CB [11:29:12]RAPDU: 90 00 [11:29:12]wFMCommunicate OK [11:29:12]SAM_PROTO_ClearQueue done [11:29:12]KKMCreateOFDPacket [11:29:12]OFDProtocolAddRootSTLVToBuf [11:29:12]FM_MakeSignedData [11:29:12]FM_MakeSignedData [11:29:12]SAM_PROTO_SignData [11:29:12]wFMCommunicate request_size=4 [11:29:12]MH_SAM_APDU [11:29:12]CAPDU: 80 0D 01 02 [11:29:12]Write to MH i2c: E2 08 00 48 10 80 0D 01 02 00 00 00 00 D1 [11:29:12]Write i2c OK [11:29:12]MH_I2C_Read... [11:29:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:29:12]Read from MH i2c: E2 [11:29:12]MH_I2C_Read... [11:29:12]Read from MH i2c: E2 03 00 [11:29:12]MH_I2C_Read... [11:29:12]Read from MH i2c: E2 03 00 48 10 00 90 00 CC [11:29:12]RAPDU: 90 00 [11:29:12]wFMCommunicate OK [11:29:12]wFMCommunicate request_size=255 [11:29:12]MH_SAM_APDU [11:29:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 6B 00 00 00 F4 03 04 00 87 B6 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2D 84 02 00 35 04 06 00 64 [11:29:12]Write to MH i2c: E2 02 01 49 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 6B 00 00 00 F4 03 04 00 87 B6 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2D 84 02 00 35 04 06 00 64 00 00 63 [11:29:12]Write i2c OK [11:29:12]MH_I2C_Read... [11:29:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:12]Read from MH i2c: E2 [11:29:12]MH_I2C_Read... [11:29:12]Read from MH i2c: E2 03 00 [11:29:12]MH_I2C_Read... [11:29:12]Read from MH i2c: E2 03 00 49 10 00 90 00 CD [11:29:12]RAPDU: 90 00 [11:29:12]wFMCommunicate OK [11:29:12]wFMCommunicate request_size=10 [11:29:12]MH_SAM_APDU [11:29:12]CAPDU: 80 0D 02 02 05 BC 73 3D 00 7A [11:29:12]Write to MH i2c: E2 0D 00 4A 10 80 0D 02 02 05 00 BC 73 3D 00 7A 00 00 C4 [11:29:12]Write i2c OK [11:29:12]MH_I2C_Read... [11:29:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:12]Read from MH i2c: E2 [11:29:12]MH_I2C_Read... [11:29:12]Read from MH i2c: E2 03 00 [11:29:12]MH_I2C_Read... [11:29:12]Read from MH i2c: E2 03 00 4A 10 00 90 00 CE [11:29:12]RAPDU: 90 00 [11:29:12]wFMCommunicate OK [11:29:12]wFMCommunicate request_size=4 [11:29:12]MH_SAM_APDU [11:29:12]CAPDU: 80 0D 03 02 [11:29:12]Write to MH i2c: E2 08 00 4B 10 80 0D 03 02 00 00 00 00 D6 [11:29:12]Write i2c OK [11:29:12]MH_I2C_Read... [11:29:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:29:12]Read from MH i2c: E2 [11:29:12]MH_I2C_Read... [11:29:12]Read from MH i2c: E2 0B 00 [11:29:12]MH_I2C_Read... [11:29:12]Read from MH i2c: E2 0B 00 4B 10 00 9C BD A3 CE FF E3 DB CB 90 00 29 [11:29:12]RAPDU: 9C BD A3 CE FF E3 DB CB 90 00 [11:29:12]wFMCommunicate OK [11:29:12]SAM_PROTO_SignData done [11:29:12]FM_MakeSignedData done [11:29:12]CreateOFDProtocolMessage [11:29:12]wFMCommunicate request_size=4 [11:29:12]MH_SAM_APDU [11:29:12]CAPDU: 80 11 00 00 [11:29:12]Write to MH i2c: E2 08 00 4C 10 80 11 00 00 00 00 00 00 D6 [11:29:12]Write i2c OK [11:29:12]MH_I2C_Read... [11:29:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:12]Read from MH i2c: E2 [11:29:12]MH_I2C_Read... [11:29:12]Read from MH i2c: E2 17 00 [11:29:12]MH_I2C_Read... [11:29:12]Read from MH i2c: E2 17 00 4C 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 2C [11:29:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:29:12]wFMCommunicate OK [11:29:12]CreateOFDProtocolMessage done [11:29:12]OFDSenderStorePacket 164909 [11:29:12]StoreOFDPacket docnum=164909 [11:29:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 FE 4A 07 01 90 D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 6B 00 00 00 F4 03 04 00 87 B6 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2D 84 02 00 35 04 06 00 64 BC 73 3D 00 7A 9C BD A3 CE FF E3 DB CB [11:29:12]CheckFolder [11:29:12]dirname=/storage/ofd_packets [11:29:12]CheckFolder done [11:29:12]ProducePacketName [11:29:12]name=ofd_packets/00164909 [11:29:12]NVStorageSaveData ofd_packets/00164909 [11:29:12]File name is /storage/ofd_packets/00164909 [11:29:12]Write 301 bytes [11:29:12]NVStorageSaveData done [11:29:12]OFDSenderStorePacket done [11:29:12]KKMCreateOFDPacket done [11:29:12]NVStorageSaveData kkm_last_timestamp [11:29:12]File name is /storage/kkm_last_timestamp [11:29:12]Write 4 bytes [11:29:12]NVStorageSaveData done [11:29:12]ExternCall_PrintAddStr [11:29:12]wPrintStart [11:29:12]Write to MH i2c: 01 00 00 4D 10 5D [11:29:12]Write i2c OK [11:29:12]MH_I2C_Read... [11:29:12]Read from MH i2c: 01 [11:29:12]MH_I2C_Read... [11:29:12]Read from MH i2c: 01 07 00 [11:29:12]MH_I2C_Read... [11:29:12]Read from MH i2c: 01 07 00 4D 10 00 00 00 00 00 FF 0F 72 [11:29:12]RasterBufferAndPrint [11:29:12]line Счет N : (1)459005 [11:29:12]line ИНН: 02508201610067 [11:29:12]line Контрольно-Кассовый Чек [11:29:12]line ПРОДАЖА [11:29:12]line ТРК (МРК, ГНК) : 12 [11:29:12]line Товар: 2710124130 [11:29:12]line Аи-92-К-5 [11:29:12]line 3.040 * 65.80 [11:29:12]line = 200.03 [11:29:12]line НДС 12% НСП 1% [11:29:12]line > о реализуемом товаре [11:29:12]line ОКРУГЛЕНИЕ: -0.03 [11:29:12]line ИТОГО: 200.00 [11:29:12]line Внесено: 200.00 [11:29:12]line СДАЧА: 0.00 [11:29:12]line НСП 1% : 1.77 [11:29:12]line НДС 12% : 21.24 [11:29:12]line Наличными: 200.00 [11:29:12]line Безнал.: 0.00 [11:29:12]line Место: АЗС № 72 "Партнер Нефть" [11:29:12]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:29:12]line СНО: Общий режим [11:29:12]line Чек 107 14.07.2024 11:29 [11:29:12]line Смена: 447 ФФД: 1.0 [11:29:12]line ЗНМ: 0300000160 [11:29:12]line РНМ: 0000000000090829 [11:29:12]line Версия ККМ: 001 [11:29:12]line ФМ: 0000000000874718 [11:29:12]line ФД: 164909 [11:29:12]line ФПД: 110760550006906 [11:29:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T112911&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164909&fm=110760550006906&tin=02508201610067®Number=0000000000090829&sum=20000 [11:29:12]written 0, free lines is 4095 [11:29:12]OFD Sender: Processing packet 164909 [packets to send 104, broken 103] [11:29:12]ProducePacketName [11:29:12]name=ofd_packets/00164909 [11:29:12]OFD Sender: To server: pG, [11:29:12]CommunicateWithHost lk.salyk.kg:30040 [11:29:12]ConnectInit lk.salyk.kg [11:29:12]Connected sock=9 [11:29:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 FE 4A 07 01 90 D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 6B 00 00 00 F4 03 04 00 87 B6 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2D 84 02 00 35 04 06 00 64 BC 73 3D 00 7A 9C BD A3 CE FF E3 DB CB [11:29:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 12 99 47 00 35 BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2D 84 02 00 F4 03 04 00 15 5D 93 66 B6 04 01 00 00 54 D2 5B 2E CF A2 90 E6 [11:29:13]CommunicateWithHost err = 0 [11:29:13]CheckOFDResponse [11:29:13]1017 (14) - 77093643461234 [11:29:13]1041 (16) - 0000000000874718 [11:29:13]1040 (4) - 164909 [11:29:13]1012 (4) - 14.07.2024 05:07 [11:29:13]1206 (1) - 0 [11:29:13]OFD Sender: Remove packet 164909 [11:29:13]ProducePacketName [11:29:13]name=ofd_packets/00164909 [11:29:13]NVStorageDeleteData [11:29:13]Write to MH i2c: 01 00 00 77 10 87 [11:29:13]Write i2c OK [11:29:13]MH_I2C_Read... [11:29:13]Read from MH i2c: 01 [11:29:13]MH_I2C_Read... [11:29:13]Read from MH i2c: 01 07 00 [11:29:13]MH_I2C_Read... [11:29:13]Read from MH i2c: 01 07 00 77 10 00 00 00 00 00 F4 0C 8E [11:29:13]RasterBufferAndPrint [11:29:13]line [11:29:13]line [11:29:13]line [11:29:13]line [11:29:13]line [11:29:13]written 0, free lines is 3323 [11:29:13]MH_Cut [11:29:13]Write to MH i2c: D1 01 00 7E 10 01 60 [11:29:13]Write i2c OK [11:29:13]MH_I2C_Read... [11:29:13]Read from MH i2c: D1 [11:29:13]MH_I2C_Read... [11:29:13]Read from MH i2c: D1 01 00 [11:29:13]MH_I2C_Read... [11:29:13]Read from MH i2c: D1 01 00 7E 10 00 5F [11:29:13]Write to MH i2c: 01 00 00 7F 10 8F [11:29:13]Write i2c OK [11:29:13]MH_I2C_Read... [11:29:13]OFD Sender: No OFD packet to send [11:29:13]*** Cut start [11:29:13]*** Partial cut [11:29:13]*** CUTSNS_PIN = 1 [11:29:13]*** CUTSNS_PIN = 0 [11:29:14]*** Brake cut motor [11:29:14]Read from MH i2c: 01 [11:29:14]MH_I2C_Read... [11:29:14]*** Stop cut motor [11:29:14]*** Cut end [11:29:14]Read from MH i2c: 01 07 00 [11:29:14]MH_I2C_Read... [11:29:14]Read from MH i2c: 01 07 00 7F 10 00 00 00 00 00 FF 0F A4 [11:29:14]process_action close_receipt done [11:29:14]requested_data is exist [11:29:14]produce_requested_data [11:29:14]requested_item fm.sn is exist - process it [11:29:14]wFMCommunicate request_size=4 [11:29:14]MH_SAM_APDU [11:29:14]CAPDU: 80 11 00 00 [11:29:14]Write to MH i2c: E2 08 00 80 10 80 11 00 00 00 00 00 00 0A [11:29:14]Write i2c OK [11:29:14]MH_I2C_Read... [11:29:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:14]Read from MH i2c: E2 [11:29:14]MH_I2C_Read... [11:29:14]Read from MH i2c: E2 17 00 [11:29:14]MH_I2C_Read... [11:29:14]Read from MH i2c: E2 17 00 80 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 60 [11:29:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:29:14]wFMCommunicate OK [11:29:14]requested_item fd.num is exist - process it [11:29:14]SAM_PROTO_GetFieldsCounters [11:29:14]wFMCommunicate request_size=4 [11:29:14]MH_SAM_APDU [11:29:14]CAPDU: 80 13 00 00 [11:29:14]Write to MH i2c: E2 08 00 81 10 80 13 00 00 00 00 00 00 0D [11:29:14]Write i2c OK [11:29:14]MH_I2C_Read... [11:29:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:29:14]Read from MH i2c: E2 [11:29:14]MH_I2C_Read... [11:29:14]Read from MH i2c: E2 62 00 [11:29:14]MH_I2C_Read... [11:29:14]Read from MH i2c: E2 62 00 81 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 2D 84 02 00 0E 04 04 00 BF 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 E8 [11:29:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 2D 84 02 00 0E 04 04 00 BF 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 [11:29:14]wFMCommunicate OK [11:29:14]SAM_PROTO_GetFieldsCounters done [11:29:14]requested_item shift.num is exist - process it [11:29:14]requested_item shift.opened is exist - process it [11:29:14]req_shift_opened [11:29:14]FM_GetShiftState [11:29:14]SAM_PROTO_GetShiftState [11:29:14]wFMCommunicate request_size=4 [11:29:14]MH_SAM_APDU [11:29:14]CAPDU: 80 13 01 00 [11:29:14]Write to MH i2c: E2 08 00 82 10 80 13 01 00 00 00 00 00 0F [11:29:14]Write i2c OK [11:29:14]MH_I2C_Read... [11:29:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:14]Read from MH i2c: E2 [11:29:14]MH_I2C_Read... [11:29:14]Read from MH i2c: E2 0E 00 [11:29:14]MH_I2C_Read... [11:29:14]Read from MH i2c: E2 0E 00 82 10 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 8F [11:29:14]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:29:14]wFMCommunicate OK [11:29:14]SAM_PROTO_GetShiftState done [11:29:14]FM_GetShiftState done [11:29:14]req_shift_opened done [11:29:14]requested_item shift.open_date is exist - process it [11:29:14]req_shift_open_date [11:29:14]req_shift_open_date done [11:29:14]produce_requested_data done [11:29:14]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164909,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [11:29:14]process_action_free close_receipt [11:29:14]json_value_free [11:29:14]json_value_free done [11:29:14]process_json_proto returns [11:29:14]Send response to host [11:29:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164909,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [11:29:14]free response buf [11:29:14]execute_script done [11:29:14]execute_script returns [11:29:14]free content buf [11:29:14]Sock 10.Close socket [11:29:14]Sock 10.Thread stoped [11:29:18]OFD Sender: No OFD packet to send [11:29:23]OFD Sender: No OFD packet to send [11:29:26]accept exits with 7 [11:29:26]New connection [11:29:26]New thread 3067473252 created [11:29:26]Thread 3067616612 joined [11:29:26]Waiting for new connection... [11:29:26] Sock 7.Parse request [11:29:26]Sock 7.Check first char [11:29:26]Sock 7.First char is OK [11:29:26]request: POST /json_proto HTTP/1.0 [11:29:26]Method: POST [11:29:26]URL: /json_proto [11:29:26]Method is POST - this is cgi request [11:29:26]url: /json_proto [11:29:26]query_string will be loaded in cgi processing [11:29:26]execute_cgi json_proto POST (null) [11:29:26]execute_cgi path=json_proto method=POST [11:29:26]POST find Content-Length [11:29:26]Host: 172.17.56.4:8080 [11:29:26]Content-Length: 677 [11:29:26]Content-Type: application/json [11:29:26] [11:29:26]POST finish read [11:29:26]Found Content-Length = 677 [11:29:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459006", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:29:26]execute_script... [11:29: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)459006", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:29:26]POST & json_proto [11:29:26]process_json_proto [11:29:26]json parsed OK: [11:29:26]protocol is kg_v1.0 [11:29:26]action value=close_receipt [11:29:26]process_action close_receipt [11:29:26]cmd_close_receipt [11:29:26]MH_GetDate [11:29:26]Write to MH i2c: F0 00 00 83 10 82 [11:29:26]Write i2c OK [11:29:26]MH_I2C_Read... [11:29:26]Read from MH i2c: F0 [11:29:26]MH_I2C_Read... [11:29:26]Read from MH i2c: F0 09 00 [11:29:26]MH_I2C_Read... [11:29:26]Read from MH i2c: F0 09 00 83 10 00 97 B6 93 66 C9 DC B2 64 8C [11:29:26]GetLastDocTimeStamp 1720956551 [11:29:26]current date 1720956567 [11:29:26]FM_GetShiftState [11:29:26]SAM_PROTO_GetShiftState [11:29:26]wFMCommunicate request_size=4 [11:29:26]MH_SAM_APDU [11:29:26]CAPDU: 80 13 01 00 [11:29:26]Write to MH i2c: E2 08 00 84 10 80 13 01 00 00 00 00 00 11 [11:29:26]Write i2c OK [11:29:26]MH_I2C_Read... [11:29:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:26]Read from MH i2c: E2 [11:29:26]MH_I2C_Read... [11:29:26]Read from MH i2c: E2 0E 00 [11:29:26]MH_I2C_Read... [11:29:26]Read from MH i2c: E2 0E 00 84 10 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 91 [11:29:26]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:29:26]wFMCommunicate OK [11:29:26]SAM_PROTO_GetShiftState done [11:29:26]FM_GetShiftState done [11:29:26]opened in 1720917342 [11:29:26]opened+sec_in_day 1721003742 [11:29:26]quantity*price = 60009 [11:29:26]sum+1 = 60011 [11:29:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 108 14.07.2024 11:29 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164910 ФПД: 193998552466975 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T112927&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164910&fm=193998552466975&tin=02508201610067®Number=0000000000090829&sum=60000 [11:29:27]StoreToDocumentArchive [11:29:27]shift 447 fd 164910 [11:29:27]save to /storage/0447/doc_00164910 [11:29:27]save last doc name /storage/0447/doc_00164910 to /storage/kkm_last_doc_name [11:29:27]save OK [11:29:27]Clear old archive folders... [11:29:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:29:27]tlvbuf is 0073F6E0 [11:29:27]SAM_PROTO_ClearQueue [11:29:27]wFMCommunicate request_size=4 [11:29:27]MH_SAM_APDU [11:29:27]CAPDU: 80 09 00 00 [11:29:27]Write to MH i2c: E2 08 00 91 10 80 09 00 00 00 00 00 00 13 [11:29:27]Write i2c OK [11:29:27]MH_I2C_Read... [11:29:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:29:27]Read from MH i2c: E2 [11:29:27]MH_I2C_Read... [11:29:27]Read from MH i2c: E2 03 00 [11:29:27]MH_I2C_Read... [11:29:27]Read from MH i2c: E2 03 00 91 10 00 90 00 15 [11:29:27]RAPDU: 90 00 [11:29:27]wFMCommunicate OK [11:29:27]SAM_PROTO_ClearQueue done [11:29:27]KKMCreateOFDPacket [11:29:27]OFDProtocolAddRootSTLVToBuf [11:29:27]FM_MakeSignedData [11:29:27]FM_MakeSignedData [11:29:27]SAM_PROTO_SignData [11:29:27]wFMCommunicate request_size=4 [11:29:27]MH_SAM_APDU [11:29:27]CAPDU: 80 0D 01 02 [11:29:27]Write to MH i2c: E2 08 00 92 10 80 0D 01 02 00 00 00 00 1B [11:29:27]Write i2c OK [11:29:27]MH_I2C_Read... [11:29:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:29:27]Read from MH i2c: E2 [11:29:27]MH_I2C_Read... [11:29:27]Read from MH i2c: E2 03 00 [11:29:27]MH_I2C_Read... [11:29:27]Read from MH i2c: E2 03 00 92 10 00 90 00 16 [11:29:27]RAPDU: 90 00 [11:29:27]wFMCommunicate OK [11:29:27]wFMCommunicate request_size=255 [11:29:27]MH_SAM_APDU [11:29:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A 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 6C 00 00 00 F4 03 04 00 97 B6 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2E 84 02 00 35 04 06 00 B0 [11:29:27]Write to MH i2c: E2 02 01 93 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A 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 6C 00 00 00 F4 03 04 00 97 B6 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2E 84 02 00 35 04 06 00 B0 00 00 8B [11:29:27]Write i2c OK [11:29:27]MH_I2C_Read... [11:29:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:28]Read from MH i2c: E2 [11:29:28]MH_I2C_Read... [11:29:28]Read from MH i2c: E2 03 00 [11:29:28]MH_I2C_Read... [11:29:28]Read from MH i2c: E2 03 00 93 10 00 90 00 17 [11:29:28]RAPDU: 90 00 [11:29:28]wFMCommunicate OK [11:29:28]wFMCommunicate request_size=10 [11:29:28]MH_SAM_APDU [11:29:28]CAPDU: 80 0D 02 02 05 70 CE CE 86 1F [11:29:28]Write to MH i2c: E2 0D 00 94 10 80 0D 02 02 05 00 70 CE CE 86 1F 00 00 D9 [11:29:28]Write i2c OK [11:29:28]MH_I2C_Read... [11:29:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:28]Read from MH i2c: E2 [11:29:28]MH_I2C_Read... [11:29:28]Read from MH i2c: E2 03 00 [11:29:28]MH_I2C_Read... [11:29:28]Read from MH i2c: E2 03 00 94 10 00 90 00 18 [11:29:28]RAPDU: 90 00 [11:29:28]wFMCommunicate OK [11:29:28]wFMCommunicate request_size=4 [11:29:28]MH_SAM_APDU [11:29:28]CAPDU: 80 0D 03 02 [11:29:28]Write to MH i2c: E2 08 00 95 10 80 0D 03 02 00 00 00 00 20 [11:29:28]Write i2c OK [11:29:28]MH_I2C_Read... [11:29:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:29:28]Read from MH i2c: E2 [11:29:28]MH_I2C_Read... [11:29:28]Read from MH i2c: E2 0B 00 [11:29:28]MH_I2C_Read... [11:29:28]Read from MH i2c: E2 0B 00 95 10 00 8D E5 E1 2F 47 47 5B AA 90 00 36 [11:29:28]RAPDU: 8D E5 E1 2F 47 47 5B AA 90 00 [11:29:28]wFMCommunicate OK [11:29:28]SAM_PROTO_SignData done [11:29:28]FM_MakeSignedData done [11:29:28]CreateOFDProtocolMessage [11:29:28]wFMCommunicate request_size=4 [11:29:28]MH_SAM_APDU [11:29:28]CAPDU: 80 11 00 00 [11:29:28]Write to MH i2c: E2 08 00 96 10 80 11 00 00 00 00 00 00 20 [11:29:28]Write i2c OK [11:29:28]MH_I2C_Read... [11:29:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:28]Read from MH i2c: E2 [11:29:28]MH_I2C_Read... [11:29:28]Read from MH i2c: E2 17 00 [11:29:28]MH_I2C_Read... [11:29:28]Read from MH i2c: E2 17 00 96 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 76 [11:29:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:29:28]wFMCommunicate OK [11:29:28]CreateOFDProtocolMessage done [11:29:28]OFDSenderStorePacket 164910 [11:29:28]StoreOFDPacket docnum=164910 [11:29:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 52 7A 07 01 E0 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A 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 6C 00 00 00 F4 03 04 00 97 B6 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2E 84 02 00 35 04 06 00 B0 70 CE CE 86 1F 8D E5 E1 2F 47 47 5B AA [11:29:28]CheckFolder [11:29:28]dirname=/storage/ofd_packets [11:29:28]CheckFolder done [11:29:28]ProducePacketName [11:29:28]name=ofd_packets/00164910 [11:29:28]NVStorageSaveData ofd_packets/00164910 [11:29:28]File name is /storage/ofd_packets/00164910 [11:29:28]Write 301 bytes [11:29:28]NVStorageSaveData done [11:29:28]OFDSenderStorePacket done [11:29:28]KKMCreateOFDPacket done [11:29:28]NVStorageSaveData kkm_last_timestamp [11:29:28]File name is /storage/kkm_last_timestamp [11:29:28]Write 4 bytes [11:29:28]NVStorageSaveData done [11:29:28]ExternCall_PrintAddStr [11:29:28]wPrintStart [11:29:28]Write to MH i2c: 01 00 00 97 10 A7 [11:29:28]Write i2c OK [11:29:28]MH_I2C_Read... [11:29:28]Read from MH i2c: 01 [11:29:28]MH_I2C_Read... [11:29:28]Read from MH i2c: 01 07 00 [11:29:28]MH_I2C_Read... [11:29:28]Read from MH i2c: 01 07 00 97 10 00 00 00 00 00 FF 0F BC [11:29:28]RasterBufferAndPrint [11:29:28]line Счет N : (1)459006 [11:29:28]line ИНН: 02508201610067 [11:29:28]line Контрольно-Кассовый Чек [11:29:28]line ПРОДАЖА [11:29:28]line ТРК (МРК, ГНК) : 22 [11:29:28]line Товар: 2710124130 [11:29:28]line Аи-92-К-5 [11:29:28]line 9.120 * 65.80 [11:29:28]line = 600.10 [11:29:28]line НДС 12% НСП 1% [11:29:28]line > о реализуемом товаре [11:29:28]line ОКРУГЛЕНИЕ: -0.10 [11:29:28]line ИТОГО: 600.00 [11:29:28]line Внесено: 600.00 [11:29:28]line СДАЧА: 0.00 [11:29:28]line НСП 1% : 5.31 [11:29:28]line НДС 12% : 63.73 [11:29:28]line Наличными: 600.00 [11:29:28]line Безнал.: 0.00 [11:29:28]line Место: АЗС № 72 "Партнер Нефть" [11:29:28]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:29:28]line СНО: Общий режим [11:29:28]line Чек 108 14.07.2024 11:29 [11:29:28]line Смена: 447 ФФД: 1.0 [11:29:28]line ЗНМ: 0300000160 [11:29:28]line РНМ: 0000000000090829 [11:29:28]line Версия ККМ: 001 [11:29:28]line ФМ: 0000000000874718 [11:29:28]line ФД: 164910 [11:29:28]line ФПД: 193998552466975 [11:29:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T112927&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164910&fm=193998552466975&tin=02508201610067®Number=0000000000090829&sum=60000 [11:29:28]OFD Sender: Processing packet 164910 [packets to send 104, broken 103] [11:29:28]ProducePacketName [11:29:28]name=ofd_packets/00164910 [11:29:28]OFD Sender: To server: pG, [11:29:28]CommunicateWithHost lk.salyk.kg:30040 [11:29:28]ConnectInit lk.salyk.kg [11:29:28]written 0, free lines is 4095 [11:29:28]Connected sock=10 [11:29:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 52 7A 07 01 E0 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A 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 6C 00 00 00 F4 03 04 00 97 B6 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2E 84 02 00 35 04 06 00 B0 70 CE CE 86 1F 8D E5 E1 2F 47 47 5B AA [11:29:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 04 92 47 00 6C A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2E 84 02 00 F4 03 04 00 25 5D 93 66 B6 04 01 00 00 BA E5 01 36 2C 64 2C 87 [11:29:28]CommunicateWithHost err = 0 [11:29:28]CheckOFDResponse [11:29:28]1017 (14) - 77093643461234 [11:29:28]1041 (16) - 0000000000874718 [11:29:28]1040 (4) - 164910 [11:29:28]1012 (4) - 14.07.2024 05:07 [11:29:28]1206 (1) - 0 [11:29:28]OFD Sender: Remove packet 164910 [11:29:28]ProducePacketName [11:29:28]name=ofd_packets/00164910 [11:29:28]NVStorageDeleteData [11:29:29]Write to MH i2c: 01 00 00 C1 10 D1 [11:29:29]Write i2c OK [11:29:29]MH_I2C_Read... [11:29:29]Read from MH i2c: 01 [11:29:29]MH_I2C_Read... [11:29:29]Read from MH i2c: 01 07 00 [11:29:29]MH_I2C_Read... [11:29:29]Read from MH i2c: 01 07 00 C1 10 00 00 00 00 00 FC 0C E0 [11:29:29]RasterBufferAndPrint [11:29:29]line [11:29:29]line [11:29:29]line [11:29:29]line [11:29:29]line [11:29:29]written 0, free lines is 3330 [11:29:29]MH_Cut [11:29:29]Write to MH i2c: D1 01 00 C8 10 01 AA [11:29:29]Write i2c OK [11:29:29]MH_I2C_Read... [11:29:29]Read from MH i2c: D1 [11:29:29]MH_I2C_Read... [11:29:29]Read from MH i2c: D1 01 00 [11:29:29]MH_I2C_Read... [11:29:29]Read from MH i2c: D1 01 00 C8 10 00 A9 [11:29:29]Write to MH i2c: 01 00 00 C9 10 D9 [11:29:29]Write i2c OK [11:29:29]MH_I2C_Read... [11:29:29]OFD Sender: No OFD packet to send [11:29:29]*** Cut start [11:29:29]*** Partial cut [11:29:29]*** CUTSNS_PIN = 1 [11:29:29]*** CUTSNS_PIN = 0 [11:29:29]*** Brake cut motor [11:29:30]Read from MH i2c: 01 [11:29:30]MH_I2C_Read... [11:29:30]*** Stop cut motor [11:29:30]*** Cut end [11:29:30]Read from MH i2c: 01 07 00 [11:29:30]MH_I2C_Read... [11:29:30]Read from MH i2c: 01 07 00 C9 10 00 00 00 00 00 FF 0F EE [11:29:30]process_action close_receipt done [11:29:30]requested_data is exist [11:29:30]produce_requested_data [11:29:30]requested_item fm.sn is exist - process it [11:29:30]wFMCommunicate request_size=4 [11:29:30]MH_SAM_APDU [11:29:30]CAPDU: 80 11 00 00 [11:29:30]Write to MH i2c: E2 08 00 CA 10 80 11 00 00 00 00 00 00 54 [11:29:30]Write i2c OK [11:29:30]MH_I2C_Read... [11:29:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:30]Read from MH i2c: E2 [11:29:30]MH_I2C_Read... [11:29:30]Read from MH i2c: E2 17 00 [11:29:30]MH_I2C_Read... [11:29:30]Read from MH i2c: E2 17 00 CA 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 AA [11:29:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:29:30]wFMCommunicate OK [11:29:30]requested_item fd.num is exist - process it [11:29:30]SAM_PROTO_GetFieldsCounters [11:29:30]wFMCommunicate request_size=4 [11:29:30]MH_SAM_APDU [11:29:30]CAPDU: 80 13 00 00 [11:29:30]Write to MH i2c: E2 08 00 CB 10 80 13 00 00 00 00 00 00 57 [11:29:30]Write i2c OK [11:29:30]MH_I2C_Read... [11:29:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:29:30]Read from MH i2c: E2 [11:29:30]MH_I2C_Read... [11:29:30]Read from MH i2c: E2 62 00 [11:29:30]MH_I2C_Read... [11:29:30]Read from MH i2c: E2 62 00 CB 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 2E 84 02 00 0E 04 04 00 BF 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 36 [11:29:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 2E 84 02 00 0E 04 04 00 BF 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 [11:29:30]wFMCommunicate OK [11:29:30]SAM_PROTO_GetFieldsCounters done [11:29:30]requested_item shift.num is exist - process it [11:29:30]requested_item shift.opened is exist - process it [11:29:30]req_shift_opened [11:29:30]FM_GetShiftState [11:29:30]SAM_PROTO_GetShiftState [11:29:30]wFMCommunicate request_size=4 [11:29:30]MH_SAM_APDU [11:29:30]CAPDU: 80 13 01 00 [11:29:30]Write to MH i2c: E2 08 00 CC 10 80 13 01 00 00 00 00 00 59 [11:29:30]Write i2c OK [11:29:30]MH_I2C_Read... [11:29:30]Read from MH i2c: E2 [11:29:30]MH_I2C_Read... [11:29:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:30]Read from MH i2c: E2 0E 00 [11:29:30]MH_I2C_Read... [11:29:30]Read from MH i2c: E2 0E 00 CC 10 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 D9 [11:29:30]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:29:30]wFMCommunicate OK [11:29:30]SAM_PROTO_GetShiftState done [11:29:30]FM_GetShiftState done [11:29:30]req_shift_opened done [11:29:30]requested_item shift.open_date is exist - process it [11:29:30]req_shift_open_date [11:29:30]req_shift_open_date done [11:29:30]produce_requested_data done [11:29:30]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164910,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [11:29:30]process_action_free close_receipt [11:29:30]json_value_free [11:29:30]json_value_free done [11:29:30]process_json_proto returns [11:29:30]Send response to host [11:29:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164910,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [11:29:30]free response buf [11:29:30]execute_script done [11:29:30]execute_script returns [11:29:30]free content buf [11:29:30]Sock 7.Close socket [11:29:30]Sock 7.Thread stoped [11:29:34]OFD Sender: No OFD packet to send [11:29:39]OFD Sender: No OFD packet to send [11:29:44]OFD Sender: No OFD packet to send [11:29:49]OFD Sender: No OFD packet to send [11:29:54]OFD Sender: No OFD packet to send [11:29:59]OFD Sender: No OFD packet to send [11:30:04]OFD Sender: No OFD packet to send [11:30:09]OFD Sender: No OFD packet to send [11:30:14]OFD Sender: No OFD packet to send [11:30:19]OFD Sender: No OFD packet to send [11:30:24]OFD Sender: No OFD packet to send [11:30:29]OFD Sender: No OFD packet to send [11:30:32]accept exits with 9 [11:30:32]New connection [11:30:32]New thread 3067616612 created [11:30:32]Thread 3067473252 joined [11:30:32]Waiting for new connection... [11:30:32] Sock 9.Parse request [11:30:32]Sock 9.Check first char [11:30:32]Sock 9.First char is OK [11:30:32]request: POST /json_proto HTTP/1.0 [11:30:32]Method: POST [11:30:32]URL: /json_proto [11:30:32]Method is POST - this is cgi request [11:30:32]url: /json_proto [11:30:32]query_string will be loaded in cgi processing [11:30:32]execute_cgi json_proto POST (null) [11:30:32]execute_cgi path=json_proto method=POST [11:30:32]POST find Content-Length [11:30:32]Host: 172.17.56.4:8080 [11:30:32]Content-Length: 639 [11:30:32]Content-Type: application/json [11:30:32] [11:30:32]POST finish read [11:30:32]Found Content-Length = 639 [11:30:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459007", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.000, "sum" : 329.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 329.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:32]execute_script... [11:30:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459007", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.000, "sum" : 329.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 329.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:32]POST & json_proto [11:30:32]process_json_proto [11:30:32]json parsed OK: [11:30:32]protocol is kg_v1.0 [11:30:32]action value=close_receipt [11:30:32]process_action close_receipt [11:30:32]cmd_close_receipt [11:30:32]MH_GetDate [11:30:32]Write to MH i2c: F0 00 00 CD 10 CC [11:30:32]Write i2c OK [11:30:32]MH_I2C_Read... [11:30:32]Read from MH i2c: F0 [11:30:32]MH_I2C_Read... [11:30:32]Read from MH i2c: F0 09 00 [11:30:32]MH_I2C_Read... [11:30:32]Read from MH i2c: F0 09 00 CD 10 00 D9 B6 93 66 C9 DC B2 64 18 [11:30:32]GetLastDocTimeStamp 1720956567 [11:30:32]current date 1720956633 [11:30:32]FM_GetShiftState [11:30:32]SAM_PROTO_GetShiftState [11:30:32]wFMCommunicate request_size=4 [11:30:32]MH_SAM_APDU [11:30:32]CAPDU: 80 13 01 00 [11:30:32]Write to MH i2c: E2 08 00 CE 10 80 13 01 00 00 00 00 00 5B [11:30:32]Write i2c OK [11:30:32]MH_I2C_Read... [11:30:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:32]Read from MH i2c: E2 [11:30:32]MH_I2C_Read... [11:30:32]Read from MH i2c: E2 0E 00 [11:30:32]MH_I2C_Read... [11:30:32]Read from MH i2c: E2 0E 00 CE 10 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 DB [11:30:32]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:30:32]wFMCommunicate OK [11:30:32]SAM_PROTO_GetShiftState done [11:30:32]FM_GetShiftState done [11:30:32]opened in 1720917342 [11:30:32]opened+sec_in_day 1721003742 [11:30:32]quantity*price = 32900 [11:30:32]sum+1 = 32901 [11:30:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 329.00 НСП 1% : 2.91 НДС 12% : 34.94 Наличными: 329.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 109 14.07.2024 11:30 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164911 ФПД: 180375183013466 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T113033&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164911&fm=180375183013466&tin=02508201610067®Number=0000000000090829&sum=32900 [11:30:33]StoreToDocumentArchive [11:30:33]shift 447 fd 164911 [11:30:33]save to /storage/0447/doc_00164911 [11:30:33]save last doc name /storage/0447/doc_00164911 to /storage/kkm_last_doc_name [11:30:33]save OK [11:30:33]Clear old archive folders... [11:30:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:30:33]tlvbuf is 0073F5A0 [11:30:33]SAM_PROTO_ClearQueue [11:30:33]wFMCommunicate request_size=4 [11:30:33]MH_SAM_APDU [11:30:33]CAPDU: 80 09 00 00 [11:30:33]Write to MH i2c: E2 08 00 DB 10 80 09 00 00 00 00 00 00 5D [11:30:33]Write i2c OK [11:30:33]MH_I2C_Read... [11:30:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:30:33]Read from MH i2c: E2 [11:30:33]MH_I2C_Read... [11:30:33]Read from MH i2c: E2 03 00 [11:30:33]MH_I2C_Read... [11:30:33]Read from MH i2c: E2 03 00 DB 10 00 90 00 5F [11:30:33]RAPDU: 90 00 [11:30:33]wFMCommunicate OK [11:30:33]SAM_PROTO_ClearQueue done [11:30:33]KKMCreateOFDPacket [11:30:33]OFDProtocolAddRootSTLVToBuf [11:30:33]FM_MakeSignedData [11:30:33]FM_MakeSignedData [11:30:33]SAM_PROTO_SignData [11:30:33]wFMCommunicate request_size=4 [11:30:33]MH_SAM_APDU [11:30:33]CAPDU: 80 0D 01 02 [11:30:33]Write to MH i2c: E2 08 00 DC 10 80 0D 01 02 00 00 00 00 65 [11:30:33]Write i2c OK [11:30:33]MH_I2C_Read... [11:30:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:30:33]Read from MH i2c: E2 [11:30:33]MH_I2C_Read... [11:30:33]Read from MH i2c: E2 03 00 [11:30:33]MH_I2C_Read... [11:30:33]Read from MH i2c: E2 03 00 DC 10 00 90 00 60 [11:30:33]RAPDU: 90 00 [11:30:33]wFMCommunicate OK [11:30:33]wFMCommunicate request_size=255 [11:30:33]MH_SAM_APDU [11:30:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 84 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 0D 00 00 00 00 07 04 06 00 84 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 D9 B6 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2F 84 02 00 35 04 06 00 A4 [11:30:33]Write to MH i2c: E2 02 01 DD 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 84 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 0D 00 00 00 00 07 04 06 00 84 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 D9 B6 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2F 84 02 00 35 04 06 00 A4 00 00 CE [11:30:33]Write i2c OK [11:30:33]MH_I2C_Read... [11:30:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:34]Read from MH i2c: E2 [11:30:34]MH_I2C_Read... [11:30:34]Read from MH i2c: E2 03 00 [11:30:34]MH_I2C_Read... [11:30:34]Read from MH i2c: E2 03 00 DD 10 00 90 00 61 [11:30:34]RAPDU: 90 00 [11:30:34]wFMCommunicate OK [11:30:34]wFMCommunicate request_size=10 [11:30:34]MH_SAM_APDU [11:30:34]CAPDU: 80 0D 02 02 05 0C DE B5 B6 5A [11:30:34]Write to MH i2c: E2 0D 00 DE 10 80 0D 02 02 05 00 0C DE B5 B6 5A 00 00 21 [11:30:34]Write i2c OK [11:30:34]MH_I2C_Read... [11:30:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:34]Read from MH i2c: E2 [11:30:34]MH_I2C_Read... [11:30:34]Read from MH i2c: E2 03 00 [11:30:34]MH_I2C_Read... [11:30:34]Read from MH i2c: E2 03 00 DE 10 00 90 00 62 [11:30:34]RAPDU: 90 00 [11:30:34]wFMCommunicate OK [11:30:34]wFMCommunicate request_size=4 [11:30:34]MH_SAM_APDU [11:30:34]CAPDU: 80 0D 03 02 [11:30:34]Write to MH i2c: E2 08 00 DF 10 80 0D 03 02 00 00 00 00 6A [11:30:34]Write i2c OK [11:30:34]MH_I2C_Read... [11:30:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:30:34]Read from MH i2c: E2 [11:30:34]MH_I2C_Read... [11:30:34]Read from MH i2c: E2 0B 00 [11:30:34]MH_I2C_Read... [11:30:34]Read from MH i2c: E2 0B 00 DF 10 00 64 7C 76 E8 C6 CC 90 2E 90 00 F9 [11:30:34]RAPDU: 64 7C 76 E8 C6 CC 90 2E 90 00 [11:30:34]wFMCommunicate OK [11:30:34]SAM_PROTO_SignData done [11:30:34]FM_MakeSignedData done [11:30:34]CreateOFDProtocolMessage [11:30:34]wFMCommunicate request_size=4 [11:30:34]MH_SAM_APDU [11:30:34]CAPDU: 80 11 00 00 [11:30:34]Write to MH i2c: E2 08 00 E0 10 80 11 00 00 00 00 00 00 6A [11:30:34]Write i2c OK [11:30:34]MH_I2C_Read... [11:30:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:34]Read from MH i2c: E2 [11:30:34]MH_I2C_Read... [11:30:34]Read from MH i2c: E2 17 00 [11:30:34]MH_I2C_Read... [11:30:34]Read from MH i2c: E2 17 00 E0 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C0 [11:30:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:30:34]wFMCommunicate OK [11:30:34]CreateOFDProtocolMessage done [11:30:34]OFDSenderStorePacket 164911 [11:30:34]StoreOFDPacket docnum=164911 [11:30:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 DE 05 07 01 4D 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 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 84 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 0D 00 00 00 00 07 04 06 00 84 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 D9 B6 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2F 84 02 00 35 04 06 00 A4 0C DE B5 B6 5A 64 7C 76 E8 C6 CC 90 2E [11:30:34]CheckFolder [11:30:34]dirname=/storage/ofd_packets [11:30:34]CheckFolder done [11:30:34]ProducePacketName [11:30:34]name=ofd_packets/00164911 [11:30:34]NVStorageSaveData ofd_packets/00164911 [11:30:34]File name is /storage/ofd_packets/00164911 [11:30:34]Write 301 bytes [11:30:34]NVStorageSaveData done [11:30:34]OFDSenderStorePacket done [11:30:34]KKMCreateOFDPacket done [11:30:34]NVStorageSaveData kkm_last_timestamp [11:30:34]File name is /storage/kkm_last_timestamp [11:30:34]Write 4 bytes [11:30:34]NVStorageSaveData done [11:30:34]ExternCall_PrintAddStr [11:30:34]wPrintStart [11:30:34]Write to MH i2c: 01 00 00 E1 10 F1 [11:30:34]Write i2c OK [11:30:34]MH_I2C_Read... [11:30:34]Read from MH i2c: 01 [11:30:34]MH_I2C_Read... [11:30:34]Read from MH i2c: 01 07 00 [11:30:34]MH_I2C_Read... [11:30:34]Read from MH i2c: 01 07 00 E1 10 00 00 00 00 00 FF 0F 06 [11:30:34]RasterBufferAndPrint [11:30:34]line Счет N : (1)459007 [11:30:34]line ИНН: 02508201610067 [11:30:34]line Контрольно-Кассовый Чек [11:30:34]line ПРОДАЖА [11:30:34]line ТРК (МРК, ГНК) : 12 [11:30:34]line Товар: 2710124130 [11:30:34]line Аи-92-К-5 [11:30:34]line 5.000 * 65.80 [11:30:34]line = 329.00 [11:30:34]line НДС 12% НСП 1% [11:30:34]line > о реализуемом товаре [11:30:34]line ИТОГО: 329.00 [11:30:34]line НСП 1% : 2.91 [11:30:34]line НДС 12% : 34.94 [11:30:34]line Наличными: 329.00 [11:30:34]line Безнал.: 0.00 [11:30:34]line Место: АЗС № 72 "Партнер Нефть" [11:30:34]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:30:34]line СНО: Общий режим [11:30:34]line Чек 109 14.07.2024 11:30 [11:30:34]line Смена: 447 ФФД: 1.0 [11:30:34]line ЗНМ: 0300000160 [11:30:34]line РНМ: 0000000000090829 [11:30:34]line Версия ККМ: 001 [11:30:34]line ФМ: 0000000000874718 [11:30:34]line ФД: 164911 [11:30:34]line ФПД: 180375183013466 [11:30:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T113033&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164911&fm=180375183013466&tin=02508201610067®Number=0000000000090829&sum=32900 [11:30:34]written 0, free lines is 4095 [11:30:34]OFD Sender: Processing packet 164911 [packets to send 104, broken 103] [11:30:34]ProducePacketName [11:30:34]name=ofd_packets/00164911 [11:30:34]OFD Sender: To server: pG, [11:30:34]CommunicateWithHost lk.salyk.kg:30040 [11:30:34]ConnectInit lk.salyk.kg [11:30:34]Connected sock=11 [11:30:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 DE 05 07 01 4D 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 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 84 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 0D 00 00 00 00 07 04 06 00 84 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 D9 B6 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2F 84 02 00 35 04 06 00 A4 0C DE B5 B6 5A 64 7C 76 E8 C6 CC 90 2E [11:30:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 7A B6 47 00 31 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2F 84 02 00 F4 03 04 00 67 5D 93 66 B6 04 01 00 00 0E A4 2D 65 67 88 86 53 [11:30:35]CommunicateWithHost err = 0 [11:30:35]CheckOFDResponse [11:30:35]1017 (14) - 77093643461234 [11:30:35]1041 (16) - 0000000000874718 [11:30:35]1040 (4) - 164911 [11:30:35]1012 (4) - 14.07.2024 05:08 [11:30:35]1206 (1) - 0 [11:30:35]OFD Sender: Remove packet 164911 [11:30:35]ProducePacketName [11:30:35]name=ofd_packets/00164911 [11:30:35]NVStorageDeleteData [11:30:35]Write to MH i2c: 01 00 00 08 11 19 [11:30:35]Write i2c OK [11:30:35]MH_I2C_Read... [11:30:35]Read from MH i2c: 01 [11:30:35]MH_I2C_Read... [11:30:35]Read from MH i2c: 01 07 00 [11:30:35]MH_I2C_Read... [11:30:35]Read from MH i2c: 01 07 00 08 11 00 00 00 00 00 21 0D 4E [11:30:35]RasterBufferAndPrint [11:30:35]line [11:30:35]line [11:30:35]line [11:30:35]line [11:30:35]line [11:30:35]written 0, free lines is 3367 [11:30:35]MH_Cut [11:30:35]Write to MH i2c: D1 01 00 0F 11 01 F2 [11:30:35]Write i2c OK [11:30:35]MH_I2C_Read... [11:30:35]Read from MH i2c: D1 [11:30:35]MH_I2C_Read... [11:30:35]Read from MH i2c: D1 01 00 [11:30:35]MH_I2C_Read... [11:30:35]Read from MH i2c: D1 01 00 0F 11 00 F1 [11:30:35]Write to MH i2c: 01 00 00 10 11 21 [11:30:35]Write i2c OK [11:30:35]MH_I2C_Read... [11:30:35]OFD Sender: No OFD packet to send [11:30:35]*** Cut start [11:30:35]*** Partial cut [11:30:35]*** CUTSNS_PIN = 1 [11:30:35]*** CUTSNS_PIN = 0 [11:30:36]*** Brake cut motor [11:30:36]Read from MH i2c: 01 [11:30:36]MH_I2C_Read... [11:30:36]*** Stop cut motor [11:30:36]*** Cut end [11:30:36]Read from MH i2c: 01 07 00 [11:30:36]MH_I2C_Read... [11:30:36]Read from MH i2c: 01 07 00 10 11 00 00 00 00 00 FF 0F 36 [11:30:36]process_action close_receipt done [11:30:36]requested_data is exist [11:30:36]produce_requested_data [11:30:36]requested_item fm.sn is exist - process it [11:30:36]wFMCommunicate request_size=4 [11:30:36]MH_SAM_APDU [11:30:36]CAPDU: 80 11 00 00 [11:30:36]Write to MH i2c: E2 08 00 11 11 80 11 00 00 00 00 00 00 9C [11:30:36]Write i2c OK [11:30:36]MH_I2C_Read... [11:30:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:36]Read from MH i2c: E2 [11:30:36]MH_I2C_Read... [11:30:36]Read from MH i2c: E2 17 00 [11:30:36]MH_I2C_Read... [11:30:36]Read from MH i2c: E2 17 00 11 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F2 [11:30:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:30:36]wFMCommunicate OK [11:30:36]requested_item fd.num is exist - process it [11:30:36]SAM_PROTO_GetFieldsCounters [11:30:36]wFMCommunicate request_size=4 [11:30:36]MH_SAM_APDU [11:30:36]CAPDU: 80 13 00 00 [11:30:36]Write to MH i2c: E2 08 00 12 11 80 13 00 00 00 00 00 00 9F [11:30:36]Write i2c OK [11:30:36]MH_I2C_Read... [11:30:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:30:36]Read from MH i2c: E2 [11:30:36]MH_I2C_Read... [11:30:36]Read from MH i2c: E2 62 00 [11:30:36]MH_I2C_Read... [11:30:36]Read from MH i2c: E2 62 00 12 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 2F 84 02 00 0E 04 04 00 BF 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 82 [11:30:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 2F 84 02 00 0E 04 04 00 BF 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 [11:30:36]wFMCommunicate OK [11:30:36]SAM_PROTO_GetFieldsCounters done [11:30:36]requested_item shift.num is exist - process it [11:30:36]requested_item shift.opened is exist - process it [11:30:36]req_shift_opened [11:30:36]FM_GetShiftState [11:30:36]SAM_PROTO_GetShiftState [11:30:36]wFMCommunicate request_size=4 [11:30:36]MH_SAM_APDU [11:30:36]CAPDU: 80 13 01 00 [11:30:36]Write to MH i2c: E2 08 00 13 11 80 13 01 00 00 00 00 00 A1 [11:30:36]Write i2c OK [11:30:36]MH_I2C_Read... [11:30:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:36]Read from MH i2c: E2 [11:30:36]MH_I2C_Read... [11:30:36]Read from MH i2c: E2 0E 00 [11:30:36]MH_I2C_Read... [11:30:36]Read from MH i2c: E2 0E 00 13 11 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 21 [11:30:36]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:30:36]wFMCommunicate OK [11:30:36]SAM_PROTO_GetShiftState done [11:30:36]FM_GetShiftState done [11:30:36]req_shift_opened done [11:30:36]requested_item shift.open_date is exist - process it [11:30:36]req_shift_open_date [11:30:36]req_shift_open_date done [11:30:36]produce_requested_data done [11:30:36]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164911,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [11:30:36]process_action_free close_receipt [11:30:36]json_value_free [11:30:36]json_value_free done [11:30:36]process_json_proto returns [11:30:36]Send response to host [11:30:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164911,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [11:30:36]free response buf [11:30:36]execute_script done [11:30:36]execute_script returns [11:30:36]free content buf [11:30:36]Sock 9.Close socket [11:30:36]Sock 9.Thread stoped [11:30:37]accept exits with 7 [11:30:37]New connection [11:30:37]New thread 3067473252 created [11:30:37]Thread 3067616612 joined [11:30:37]Waiting for new connection... [11:30:37] Sock 7.Parse request [11:30:37]Sock 7.Check first char [11:30:37]Sock 7.First char is OK [11:30:37]request: POST /json_proto HTTP/1.0 [11:30:37]Method: POST [11:30:37]URL: /json_proto [11:30:37]Method is POST - this is cgi request [11:30:37]url: /json_proto [11:30:37]query_string will be loaded in cgi processing [11:30:37]execute_cgi json_proto POST (null) [11:30:37]execute_cgi path=json_proto method=POST [11:30:37]POST find Content-Length [11:30:37]Host: 172.17.56.4:8080 [11:30:37]Content-Length: 674 [11:30:37]Content-Type: application/json [11:30:37] [11:30:37]POST finish read [11:30:37]Found Content-Length = 674 [11:30:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459008", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 8.350, "sum" : 600.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:37]execute_script... [11:30: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)459008", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 8.350, "sum" : 600.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:37]POST & json_proto [11:30:37]process_json_proto [11:30:37]json parsed OK: [11:30:37]protocol is kg_v1.0 [11:30:37]action value=close_receipt [11:30:37]process_action close_receipt [11:30:37]cmd_close_receipt [11:30:37]MH_GetDate [11:30:37]Write to MH i2c: F0 00 00 14 11 14 [11:30:37]Write i2c OK [11:30:37]MH_I2C_Read... [11:30:37]Read from MH i2c: F0 [11:30:37]MH_I2C_Read... [11:30:37]Read from MH i2c: F0 09 00 [11:30:37]MH_I2C_Read... [11:30:37]Read from MH i2c: F0 09 00 14 11 00 DE B6 93 66 C9 DC B2 64 65 [11:30:37]GetLastDocTimeStamp 1720956633 [11:30:37]current date 1720956638 [11:30:37]FM_GetShiftState [11:30:37]SAM_PROTO_GetShiftState [11:30:37]wFMCommunicate request_size=4 [11:30:37]MH_SAM_APDU [11:30:37]CAPDU: 80 13 01 00 [11:30:37]Write to MH i2c: E2 08 00 15 11 80 13 01 00 00 00 00 00 A3 [11:30:37]Write i2c OK [11:30:37]MH_I2C_Read... [11:30:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:37]Read from MH i2c: E2 [11:30:37]MH_I2C_Read... [11:30:37]Read from MH i2c: E2 0E 00 [11:30:37]MH_I2C_Read... [11:30:37]Read from MH i2c: E2 0E 00 15 11 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 23 [11:30:37]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:30:37]wFMCommunicate OK [11:30:37]SAM_PROTO_GetShiftState done [11:30:37]FM_GetShiftState done [11:30:37]opened in 1720917342 [11:30:37]opened+sec_in_day 1721003742 [11:30:37]quantity*price = 60036 [11:30:37]sum+1 = 60038 [11:30:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.76 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 110 14.07.2024 11:30 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164912 ФПД: 182216811956587 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T113038&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164912&fm=182216811956587&tin=02508201610067®Number=0000000000090829&sum=60000 [11:30:38]StoreToDocumentArchive [11:30:38]shift 447 fd 164912 [11:30:38]save to /storage/0447/doc_00164912 [11:30:38]save last doc name /storage/0447/doc_00164912 to /storage/kkm_last_doc_name [11:30:38]save OK [11:30:38]Clear old archive folders... [11:30:38]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:30:38]tlvbuf is 007BF890 [11:30:38]SAM_PROTO_ClearQueue [11:30:38]wFMCommunicate request_size=4 [11:30:38]MH_SAM_APDU [11:30:38]CAPDU: 80 09 00 00 [11:30:38]Write to MH i2c: E2 08 00 22 11 80 09 00 00 00 00 00 00 A5 [11:30:38]Write i2c OK [11:30:38]MH_I2C_Read... [11:30:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:30:38]Read from MH i2c: E2 [11:30:38]MH_I2C_Read... [11:30:38]Read from MH i2c: E2 03 00 [11:30:38]MH_I2C_Read... [11:30:38]Read from MH i2c: E2 03 00 22 11 00 90 00 A7 [11:30:38]RAPDU: 90 00 [11:30:38]wFMCommunicate OK [11:30:38]SAM_PROTO_ClearQueue done [11:30:38]KKMCreateOFDPacket [11:30:38]OFDProtocolAddRootSTLVToBuf [11:30:38]FM_MakeSignedData [11:30:38]FM_MakeSignedData [11:30:38]SAM_PROTO_SignData [11:30:38]wFMCommunicate request_size=4 [11:30:38]MH_SAM_APDU [11:30:38]CAPDU: 80 0D 01 02 [11:30:38]Write to MH i2c: E2 08 00 23 11 80 0D 01 02 00 00 00 00 AD [11:30:38]Write i2c OK [11:30:38]MH_I2C_Read... [11:30:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:30:38]Read from MH i2c: E2 [11:30:38]MH_I2C_Read... [11:30:38]Read from MH i2c: E2 03 00 [11:30:38]MH_I2C_Read... [11:30:38]Read from MH i2c: E2 03 00 23 11 00 90 00 A8 [11:30:38]RAPDU: 90 00 [11:30:38]wFMCommunicate OK [11:30:38]wFMCommunicate request_size=255 [11:30:38]MH_SAM_APDU [11:30: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 9E 20 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 85 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 E8 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 6E 00 00 00 F4 03 04 00 DE B6 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 30 84 02 00 35 04 06 00 A5 B9 A8 59 [11:30:38]Write to MH i2c: E2 02 01 24 11 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 20 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 85 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 E8 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 6E 00 00 00 F4 03 04 00 DE B6 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 30 84 02 00 35 04 06 00 A5 B9 A8 59 00 00 E8 [11:30:38]Write i2c OK [11:30:38]MH_I2C_Read... [11:30:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:39]Read from MH i2c: E2 [11:30:39]MH_I2C_Read... [11:30:39]Read from MH i2c: E2 03 00 [11:30:39]MH_I2C_Read... [11:30:39]Read from MH i2c: E2 03 00 24 11 00 90 00 A9 [11:30:39]RAPDU: 90 00 [11:30:39]wFMCommunicate OK [11:30:39]wFMCommunicate request_size=7 [11:30:39]MH_SAM_APDU [11:30:39]CAPDU: 80 0D 02 02 02 49 6B [11:30:39]Write to MH i2c: E2 0A 00 25 11 80 0D 02 02 02 00 49 6B 00 00 68 [11:30:39]Write i2c OK [11:30:39]MH_I2C_Read... [11:30:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:39]Read from MH i2c: E2 [11:30:39]MH_I2C_Read... [11:30:39]Read from MH i2c: E2 03 00 [11:30:39]MH_I2C_Read... [11:30:39]Read from MH i2c: E2 03 00 25 11 00 90 00 AA [11:30:39]RAPDU: 90 00 [11:30:39]wFMCommunicate OK [11:30:39]wFMCommunicate request_size=4 [11:30:39]MH_SAM_APDU [11:30:39]CAPDU: 80 0D 03 02 [11:30:39]Write to MH i2c: E2 08 00 26 11 80 0D 03 02 00 00 00 00 B2 [11:30:39]Write i2c OK [11:30:39]MH_I2C_Read... [11:30:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:30:39]Read from MH i2c: E2 [11:30:39]MH_I2C_Read... [11:30:39]Read from MH i2c: E2 0B 00 [11:30:39]MH_I2C_Read... [11:30:39]Read from MH i2c: E2 0B 00 26 11 00 D5 70 A3 F7 31 F9 4C 38 90 00 40 [11:30:39]RAPDU: D5 70 A3 F7 31 F9 4C 38 90 00 [11:30:39]wFMCommunicate OK [11:30:39]SAM_PROTO_SignData done [11:30:39]FM_MakeSignedData done [11:30:39]CreateOFDProtocolMessage [11:30:39]wFMCommunicate request_size=4 [11:30:39]MH_SAM_APDU [11:30:39]CAPDU: 80 11 00 00 [11:30:39]Write to MH i2c: E2 08 00 27 11 80 11 00 00 00 00 00 00 B2 [11:30:39]Write i2c OK [11:30:39]MH_I2C_Read... [11:30:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:39]Read from MH i2c: E2 [11:30:39]MH_I2C_Read... [11:30:39]Read from MH i2c: E2 17 00 [11:30:39]MH_I2C_Read... [11:30:39]Read from MH i2c: E2 17 00 27 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 08 [11:30:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:30:39]wFMCommunicate OK [11:30:39]CreateOFDProtocolMessage done [11:30:39]OFDSenderStorePacket 164912 [11:30:39]StoreOFDPacket docnum=164912 [11:30:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 66 D1 04 01 A9 AD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 20 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 85 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 E8 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 6E 00 00 00 F4 03 04 00 DE B6 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 30 84 02 00 35 04 06 00 A5 B9 A8 59 49 6B D5 70 A3 F7 31 F9 4C 38 [11:30:39]CheckFolder [11:30:39]dirname=/storage/ofd_packets [11:30:39]CheckFolder done [11:30:39]ProducePacketName [11:30:39]name=ofd_packets/00164912 [11:30:39]NVStorageSaveData ofd_packets/00164912 [11:30:39]File name is /storage/ofd_packets/00164912 [11:30:39]Write 298 bytes [11:30:39]NVStorageSaveData done [11:30:39]OFDSenderStorePacket done [11:30:39]KKMCreateOFDPacket done [11:30:39]NVStorageSaveData kkm_last_timestamp [11:30:39]File name is /storage/kkm_last_timestamp [11:30:39]Write 4 bytes [11:30:39]NVStorageSaveData done [11:30:39]ExternCall_PrintAddStr [11:30:39]wPrintStart [11:30:39]Write to MH i2c: 01 00 00 28 11 39 [11:30:39]Write i2c OK [11:30:39]MH_I2C_Read... [11:30:39]Read from MH i2c: 01 [11:30:39]MH_I2C_Read... [11:30:39]Read from MH i2c: 01 07 00 [11:30:39]MH_I2C_Read... [11:30:39]Read from MH i2c: 01 07 00 28 11 00 00 00 00 00 FF 0F 4E [11:30:39]RasterBufferAndPrint [11:30:39]line Счет N : (1)459008 [11:30:39]line ИНН: 02508201610067 [11:30:39]line Контрольно-Кассовый Чек [11:30:39]line ПРОДАЖА [11:30:39]line ТРК (МРК, ГНК) : 21 [11:30:39]line Товар: 2710194210 [11:30:39]line ДТ-К-5 [11:30:39]line 8.350 * 71.90 [11:30:39]line = 600.37 [11:30:39]line НДС 12% НСП 1% [11:30:39]line > о реализуемом товаре [11:30:39]line ОКРУГЛЕНИЕ: -0.37 [11:30:39]line ИТОГО: 600.00 [11:30:39]line Внесено: 600.00 [11:30:39]line СДАЧА: 0.00 [11:30:39]line НСП 1% : 5.31 [11:30:39]line НДС 12% : 63.76 [11:30:39]line Наличными: 600.00 [11:30:39]line Безнал.: 0.00 [11:30:39]line Место: АЗС № 72 "Партнер Нефть" [11:30:39]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:30:39]line СНО: Общий режим [11:30:39]line Чек 110 14.07.2024 11:30 [11:30:39]line Смена: 447 ФФД: 1.0 [11:30:39]line ЗНМ: 0300000160 [11:30:39]line РНМ: 0000000000090829 [11:30:39]line Версия ККМ: 001 [11:30:39]line ФМ: 0000000000874718 [11:30:39]line ФД: 164912 [11:30:39]line ФПД: 182216811956587 [11:30:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T113038&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164912&fm=182216811956587&tin=02508201610067®Number=0000000000090829&sum=60000 [11:30:39]written 0, free lines is 4095 [11:30:39]OFD Sender: Processing packet 164912 [packets to send 104, broken 103] [11:30:39]ProducePacketName [11:30:39]name=ofd_packets/00164912 [11:30:39]OFD Sender: To server: pG, [11:30:39]CommunicateWithHost lk.salyk.kg:30040 [11:30:39]ConnectInit lk.salyk.kg [11:30:39]Connected sock=10 [11:30:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 66 D1 04 01 A9 AD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 20 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 85 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 E8 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 6E 00 00 00 F4 03 04 00 DE B6 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 30 84 02 00 35 04 06 00 A5 B9 A8 59 49 6B D5 70 A3 F7 31 F9 4C 38 [11:30:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 B8 3A 47 00 F0 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 30 84 02 00 F4 03 04 00 6C 5D 93 66 B6 04 01 00 00 38 D7 14 9C A6 8C 35 D9 [11:30:39]CommunicateWithHost err = 0 [11:30:39]CheckOFDResponse [11:30:39]1017 (14) - 77093643461234 [11:30:39]1041 (16) - 0000000000874718 [11:30:39]1040 (4) - 164912 [11:30:39]1012 (4) - 14.07.2024 05:09 [11:30:39]1206 (1) - 0 [11:30:39]OFD Sender: Remove packet 164912 [11:30:39]ProducePacketName [11:30:39]name=ofd_packets/00164912 [11:30:39]NVStorageDeleteData [11:30:39]Write to MH i2c: 01 00 00 52 11 63 [11:30:39]Write i2c OK [11:30:39]MH_I2C_Read... [11:30:39]Read from MH i2c: 01 [11:30:39]MH_I2C_Read... [11:30:39]Read from MH i2c: 01 07 00 [11:30:39]MH_I2C_Read... [11:30:39]Read from MH i2c: 01 07 00 52 11 00 00 00 00 00 01 0D 78 [11:30:39]RasterBufferAndPrint [11:30:39]line [11:30:39]line [11:30:39]line [11:30:39]line [11:30:39]line [11:30:39]written 0, free lines is 3341 [11:30:39]MH_Cut [11:30:39]Write to MH i2c: D1 01 00 59 11 01 3C [11:30:39]Write i2c OK [11:30:39]MH_I2C_Read... [11:30:39]Read from MH i2c: D1 [11:30:39]MH_I2C_Read... [11:30:39]Read from MH i2c: D1 01 00 [11:30:39]MH_I2C_Read... [11:30:39]Read from MH i2c: D1 01 00 59 11 00 3B [11:30:39]Write to MH i2c: 01 00 00 5A 11 6B [11:30:39]Write i2c OK [11:30:39]MH_I2C_Read... [11:30:40]OFD Sender: No OFD packet to send [11:30:40]*** Cut start [11:30:40]*** Partial cut [11:30:40]*** CUTSNS_PIN = 1 [11:30:40]*** CUTSNS_PIN = 0 [11:30:40]*** Brake cut motor [11:30:41]Read from MH i2c: 01 [11:30:41]MH_I2C_Read... [11:30:41]*** Stop cut motor [11:30:41]*** Cut end [11:30:41]Read from MH i2c: 01 07 00 [11:30:41]MH_I2C_Read... [11:30:41]Read from MH i2c: 01 07 00 5A 11 00 00 00 00 00 FF 0F 80 [11:30:41]process_action close_receipt done [11:30:41]requested_data is exist [11:30:41]produce_requested_data [11:30:41]requested_item fm.sn is exist - process it [11:30:41]wFMCommunicate request_size=4 [11:30:41]MH_SAM_APDU [11:30:41]CAPDU: 80 11 00 00 [11:30:41]Write to MH i2c: E2 08 00 5B 11 80 11 00 00 00 00 00 00 E6 [11:30:41]Write i2c OK [11:30:41]MH_I2C_Read... [11:30:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:41]Read from MH i2c: E2 [11:30:41]MH_I2C_Read... [11:30:41]Read from MH i2c: E2 17 00 [11:30:41]MH_I2C_Read... [11:30:41]Read from MH i2c: E2 17 00 5B 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 3C [11:30:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:30:41]wFMCommunicate OK [11:30:41]requested_item fd.num is exist - process it [11:30:41]SAM_PROTO_GetFieldsCounters [11:30:41]wFMCommunicate request_size=4 [11:30:41]MH_SAM_APDU [11:30:41]CAPDU: 80 13 00 00 [11:30:41]Write to MH i2c: E2 08 00 5C 11 80 13 00 00 00 00 00 00 E9 [11:30:41]Write i2c OK [11:30:41]MH_I2C_Read... [11:30:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:30:41]Read from MH i2c: E2 [11:30:41]MH_I2C_Read... [11:30:41]Read from MH i2c: E2 62 00 [11:30:41]MH_I2C_Read... [11:30:41]Read from MH i2c: E2 62 00 5C 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 30 84 02 00 0E 04 04 00 BF 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 D0 [11:30:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 30 84 02 00 0E 04 04 00 BF 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 [11:30:41]wFMCommunicate OK [11:30:41]SAM_PROTO_GetFieldsCounters done [11:30:41]requested_item shift.num is exist - process it [11:30:41]requested_item shift.opened is exist - process it [11:30:41]req_shift_opened [11:30:41]FM_GetShiftState [11:30:41]SAM_PROTO_GetShiftState [11:30:41]wFMCommunicate request_size=4 [11:30:41]MH_SAM_APDU [11:30:41]CAPDU: 80 13 01 00 [11:30:41]Write to MH i2c: E2 08 00 5D 11 80 13 01 00 00 00 00 00 EB [11:30:41]Write i2c OK [11:30:41]MH_I2C_Read... [11:30:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:41]Read from MH i2c: E2 [11:30:41]MH_I2C_Read... [11:30:41]Read from MH i2c: E2 0E 00 [11:30:41]MH_I2C_Read... [11:30:41]Read from MH i2c: E2 0E 00 5D 11 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 6B [11:30:41]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:30:41]wFMCommunicate OK [11:30:41]SAM_PROTO_GetShiftState done [11:30:41]FM_GetShiftState done [11:30:41]req_shift_opened done [11:30:41]requested_item shift.open_date is exist - process it [11:30:41]req_shift_open_date [11:30:41]req_shift_open_date done [11:30:41]produce_requested_data done [11:30:41]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164912,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [11:30:41]process_action_free close_receipt [11:30:41]json_value_free [11:30:41]json_value_free done [11:30:41]process_json_proto returns [11:30:41]Send response to host [11:30:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164912,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [11:30:41]free response buf [11:30:41]execute_script done [11:30:41]execute_script returns [11:30:41]free content buf [11:30:41]Sock 7.Close socket [11:30:41]Sock 7.Thread stoped [11:30:45]OFD Sender: No OFD packet to send [11:30:50]OFD Sender: No OFD packet to send [11:30:55]OFD Sender: No OFD packet to send [11:31:00]OFD Sender: No OFD packet to send [11:31:05]OFD Sender: No OFD packet to send [11:31:10]OFD Sender: No OFD packet to send [11:31:15]OFD Sender: No OFD packet to send [11:31:20]OFD Sender: No OFD packet to send [11:31:25]OFD Sender: No OFD packet to send [11:31:30]OFD Sender: No OFD packet to send [11:31:35]OFD Sender: No OFD packet to send [11:31:40]OFD Sender: No OFD packet to send [11:31:45]OFD Sender: No OFD packet to send [11:31:50]OFD Sender: No OFD packet to send [11:31:55]OFD Sender: No OFD packet to send [11:32:00]OFD Sender: No OFD packet to send [11:32:05]OFD Sender: No OFD packet to send [11:32:10]OFD Sender: No OFD packet to send [11:32:15]OFD Sender: No OFD packet to send [11:32:20]OFD Sender: No OFD packet to send [11:32:25]OFD Sender: No OFD packet to send [11:32:30]OFD Sender: No OFD packet to send [11:32:35]OFD Sender: No OFD packet to send [11:32:40]OFD Sender: No OFD packet to send [11:32:45]OFD Sender: No OFD packet to send [11:32:50]OFD Sender: No OFD packet to send [11:32:55]OFD Sender: No OFD packet to send [11:33:00]OFD Sender: No OFD packet to send [11:33:05]OFD Sender: No OFD packet to send [11:33:10]OFD Sender: No OFD packet to send [11:33:15]OFD Sender: No OFD packet to send [11:33:20]OFD Sender: No OFD packet to send [11:33:25]OFD Sender: No OFD packet to send [11:33:30]OFD Sender: No OFD packet to send [11:33:35]OFD Sender: No OFD packet to send [11:33:40]OFD Sender: No OFD packet to send [11:33:45]OFD Sender: No OFD packet to send [11:33:50]OFD Sender: No OFD packet to send [11:33:55]OFD Sender: No OFD packet to send [11:34:00]OFD Sender: No OFD packet to send [11:34:05]OFD Sender: No OFD packet to send [11:34:10]OFD Sender: No OFD packet to send [11:34:13]accept exits with 9 [11:34:13]New connection [11:34:13]New thread 3067616612 created [11:34:13]Thread 3067473252 joined [11:34:13]Waiting for new connection... [11:34:13] Sock 9.Parse request [11:34:13]Sock 9.Check first char [11:34:13]Sock 9.First char is OK [11:34:13]request: POST /json_proto HTTP/1.0 [11:34:13]Method: POST [11:34:13]URL: /json_proto [11:34:13]Method is POST - this is cgi request [11:34:13]url: /json_proto [11:34:13]query_string will be loaded in cgi processing [11:34:13]execute_cgi json_proto POST (null) [11:34:13]execute_cgi path=json_proto method=POST [11:34:13]POST find Content-Length [11:34:13]Host: 172.17.56.4:8080 [11:34:13]Content-Length: 790 [11:34:13]Content-Type: application/json [11:34:13] [11:34:13]POST finish read [11:34:13]Found Content-Length = 790 [11:34:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459009", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 5.000, "sum" : 326.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 326.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:34:13]execute_script... [11:34: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)459009", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 5.000, "sum" : 326.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 326.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:34:13]POST & json_proto [11:34:13]process_json_proto [11:34:13]json parsed OK: [11:34:13]protocol is kg_v1.0 [11:34:13]action value=close_receipt [11:34:13]process_action close_receipt [11:34:13]cmd_close_receipt [11:34:13]MH_GetDate [11:34:13]Write to MH i2c: F0 00 00 5E 11 5E [11:34:13]Write i2c OK [11:34:13]MH_I2C_Read... [11:34:13]Read from MH i2c: F0 [11:34:13]MH_I2C_Read... [11:34:13]Read from MH i2c: F0 09 00 [11:34:13]MH_I2C_Read... [11:34:13]Read from MH i2c: F0 09 00 5E 11 00 B6 B7 93 66 C9 DC B2 64 88 [11:34:13]GetLastDocTimeStamp 1720956638 [11:34:13]current date 1720956854 [11:34:13]FM_GetShiftState [11:34:13]SAM_PROTO_GetShiftState [11:34:13]wFMCommunicate request_size=4 [11:34:13]MH_SAM_APDU [11:34:13]CAPDU: 80 13 01 00 [11:34:13]Write to MH i2c: E2 08 00 5F 11 80 13 01 00 00 00 00 00 ED [11:34:13]Write i2c OK [11:34:13]MH_I2C_Read... [11:34:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:34:13]Read from MH i2c: E2 [11:34:13]MH_I2C_Read... [11:34:13]Read from MH i2c: E2 0E 00 [11:34:13]MH_I2C_Read... [11:34:13]Read from MH i2c: E2 0E 00 5F 11 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 6D [11:34:13]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:34:13]wFMCommunicate OK [11:34:13]SAM_PROTO_GetShiftState done [11:34:13]FM_GetShiftState done [11:34:13]opened in 1720917342 [11:34:13]opened+sec_in_day 1721003742 [11:34:13]quantity*price = 32610 [11:34:13]sum+1 = 32611 [11:34:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 326.10 НСП 1% : 2.89 НДС 12% : 34.63 Наличными: 0.00 Безнал.: 326.10 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 111 14.07.2024 11:34 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164913 ФПД: 148149078920979 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T113414&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164913&fm=148149078920979&tin=02508201610067®Number=0000000000090829&sum=32610 [11:34:14]StoreToDocumentArchive [11:34:14]shift 447 fd 164913 [11:34:14]save to /storage/0447/doc_00164913 [11:34:14]save last doc name /storage/0447/doc_00164913 to /storage/kkm_last_doc_name [11:34:14]save OK [11:34:14]Clear old archive folders... [11:34:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:34:14]tlvbuf is B6F4A4A0 [11:34:14]SAM_PROTO_ClearQueue [11:34:14]wFMCommunicate request_size=4 [11:34:14]MH_SAM_APDU [11:34:14]CAPDU: 80 09 00 00 [11:34:14]Write to MH i2c: E2 08 00 6C 11 80 09 00 00 00 00 00 00 EF [11:34:14]Write i2c OK [11:34:14]MH_I2C_Read... [11:34:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:34:14]Read from MH i2c: E2 [11:34:14]MH_I2C_Read... [11:34:14]Read from MH i2c: E2 03 00 [11:34:14]MH_I2C_Read... [11:34:14]Read from MH i2c: E2 03 00 6C 11 00 90 00 F1 [11:34:14]RAPDU: 90 00 [11:34:14]wFMCommunicate OK [11:34:14]SAM_PROTO_ClearQueue done [11:34:14]KKMCreateOFDPacket [11:34:14]OFDProtocolAddRootSTLVToBuf [11:34:14]FM_MakeSignedData [11:34:14]FM_MakeSignedData [11:34:14]SAM_PROTO_SignData [11:34:14]wFMCommunicate request_size=4 [11:34:14]MH_SAM_APDU [11:34:14]CAPDU: 80 0D 01 02 [11:34:14]Write to MH i2c: E2 08 00 6D 11 80 0D 01 02 00 00 00 00 F7 [11:34:14]Write i2c OK [11:34:14]MH_I2C_Read... [11:34:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:34:14]Read from MH i2c: E2 [11:34:14]MH_I2C_Read... [11:34:14]Read from MH i2c: E2 03 00 [11:34:14]MH_I2C_Read... [11:34:14]Read from MH i2c: E2 03 00 6D 11 00 90 00 F2 [11:34:14]RAPDU: 90 00 [11:34:14]wFMCommunicate OK [11:34:14]wFMCommunicate request_size=255 [11:34:14]MH_SAM_APDU [11:34:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 62 7F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 7F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 7F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 B6 B7 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 31 84 02 00 35 04 06 00 86 [11:34:14]Write to MH i2c: E2 02 01 6E 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 62 7F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 7F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 7F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 B6 B7 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 31 84 02 00 35 04 06 00 86 00 00 60 [11:34:14]Write i2c OK [11:34:14]MH_I2C_Read... [11:34:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:34:14]Read from MH i2c: E2 [11:34:14]MH_I2C_Read... [11:34:14]Read from MH i2c: E2 03 00 [11:34:14]MH_I2C_Read... [11:34:14]Read from MH i2c: E2 03 00 6E 11 00 90 00 F3 [11:34:14]RAPDU: 90 00 [11:34:14]wFMCommunicate OK [11:34:14]wFMCommunicate request_size=10 [11:34:14]MH_SAM_APDU [11:34:14]CAPDU: 80 0D 02 02 05 BD A5 39 0F 13 [11:34:14]Write to MH i2c: E2 0D 00 6F 11 80 0D 02 02 05 00 BD A5 39 0F 13 00 00 C1 [11:34:14]Write i2c OK [11:34:14]MH_I2C_Read... [11:34:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:34:14]Read from MH i2c: E2 [11:34:14]MH_I2C_Read... [11:34:14]Read from MH i2c: E2 03 00 [11:34:14]MH_I2C_Read... [11:34:14]Read from MH i2c: E2 03 00 6F 11 00 90 00 F4 [11:34:14]RAPDU: 90 00 [11:34:14]wFMCommunicate OK [11:34:14]wFMCommunicate request_size=4 [11:34:14]MH_SAM_APDU [11:34:14]CAPDU: 80 0D 03 02 [11:34:14]Write to MH i2c: E2 08 00 70 11 80 0D 03 02 00 00 00 00 FC [11:34:14]Write i2c OK [11:34:14]MH_I2C_Read... [11:34:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:34:14]Read from MH i2c: E2 [11:34:14]MH_I2C_Read... [11:34:14]Read from MH i2c: E2 0B 00 [11:34:14]MH_I2C_Read... [11:34:14]Read from MH i2c: E2 0B 00 70 11 00 86 8C D6 91 48 9B 27 CC 90 00 4C [11:34:14]RAPDU: 86 8C D6 91 48 9B 27 CC 90 00 [11:34:14]wFMCommunicate OK [11:34:14]SAM_PROTO_SignData done [11:34:14]FM_MakeSignedData done [11:34:14]CreateOFDProtocolMessage [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 71 11 80 11 00 00 00 00 00 00 FC [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 71 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 52 [11:34:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:34:14]wFMCommunicate OK [11:34:14]CreateOFDProtocolMessage done [11:34:14]OFDSenderStorePacket 164913 [11:34:14]StoreOFDPacket docnum=164913 [11:34:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 09 E4 07 01 F6 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 62 7F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 7F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 7F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 B6 B7 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 31 84 02 00 35 04 06 00 86 BD A5 39 0F 13 86 8C D6 91 48 9B 27 CC [11:34:14]CheckFolder [11:34:14]dirname=/storage/ofd_packets [11:34:14]CheckFolder done [11:34:14]ProducePacketName [11:34:14]name=ofd_packets/00164913 [11:34:14]NVStorageSaveData ofd_packets/00164913 [11:34:14]File name is /storage/ofd_packets/00164913 [11:34:14]Write 301 bytes [11:34:14]NVStorageSaveData done [11:34:14]OFDSenderStorePacket done [11:34:14]KKMCreateOFDPacket done [11:34:14]NVStorageSaveData kkm_last_timestamp [11:34:14]File name is /storage/kkm_last_timestamp [11:34:14]Write 4 bytes [11:34:14]NVStorageSaveData done [11:34:14]ExternCall_PrintAddStr [11:34:14]wPrintStart [11:34:14]Write to MH i2c: 01 00 00 72 11 83 [11:34:14]Write i2c OK [11:34:14]MH_I2C_Read... [11:34:14]Read from MH i2c: 01 [11:34:14]MH_I2C_Read... [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 72 11 00 00 00 00 00 FF 0F 98 [11:34:14]RasterBufferAndPrint [11:34:14]line Счет N : (1)459009 [11:34:14]line ИНН: 02508201610067 [11:34:14]line Контрольно-Кассовый Чек [11:34:14]line ПРОДАЖА [11:34:14]line ТРК (МРК, ГНК) : 12 [11:34:14]line Товар: 2710124130 [11:34:14]line Аи-92-К-5 [11:34:14]line 5.000 * 65.22 [11:34:14]line = 326.10 [11:34:14]line НДС 12% НСП 1% [11:34:14]line > о реализуемом товаре [11:34:14]line ИТОГО: 326.10 [11:34:14]line НСП 1% : 2.89 [11:34:14]line НДС 12% : 34.63 [11:34:14]line Наличными: 0.00 [11:34:14]line Безнал.: 326.10 [11:34:14]line Место: АЗС № 72 "Партнер Нефть" [11:34:14]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:34:14]line СНО: Общий режим [11:34:14]line Чек 111 14.07.2024 11:34 [11:34:14]line Смена: 447 ФФД: 1.0 [11:34:14]line ЗНМ: 0300000160 [11:34:14]line РНМ: 0000000000090829 [11:34:14]line Версия ККМ: 001 [11:34:14]line Платежная система: KICB Банк [11:34:14]line ФМ: 0000000000874718 [11:34:14]line ФД: 164913 [11:34:14]line ФПД: 148149078920979 [11:34:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T113414&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164913&fm=148149078920979&tin=02508201610067®Number=0000000000090829&sum=32610 [11:34:14]written 0, free lines is 4095 [11:34:14]OFD Sender: Processing packet 164913 [packets to send 104, broken 103] [11:34:14]ProducePacketName [11:34:14]name=ofd_packets/00164913 [11:34:14]OFD Sender: To server: pG, [11:34:14]CommunicateWithHost lk.salyk.kg:30040 [11:34:14]ConnectInit lk.salyk.kg [11:34:15]Connected sock=10 [11:34:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 09 E4 07 01 F6 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 62 7F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 7F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 7F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 B6 B7 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 31 84 02 00 35 04 06 00 86 BD A5 39 0F 13 86 8C D6 91 48 9B 27 CC [11:34:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 0E 07 47 00 8E F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 31 84 02 00 F4 03 04 00 43 5E 93 66 B6 04 01 00 00 78 4D 58 FF 64 8A B9 F8 [11:34:15]CommunicateWithHost err = 0 [11:34:15]CheckOFDResponse [11:34:15]1017 (14) - 77093643461234 [11:34:15]1041 (16) - 0000000000874718 [11:34:15]1040 (4) - 164913 [11:34:15]1012 (4) - 14.07.2024 05:12 [11:34:15]1206 (1) - 0 [11:34:15]OFD Sender: Remove packet 164913 [11:34:15]ProducePacketName [11:34:15]name=ofd_packets/00164913 [11:34:15]NVStorageDeleteData [11:34:15]Write to MH i2c: 01 00 00 9B 11 AC [11:34:15]Write i2c OK [11:34:15]MH_I2C_Read... [11:34:15]Read from MH i2c: 01 [11:34:15]MH_I2C_Read... [11:34:15]Read from MH i2c: 01 07 00 [11:34:15]MH_I2C_Read... [11:34:15]Read from MH i2c: 01 07 00 9B 11 00 00 00 00 00 1B 0D DB [11:34:15]RasterBufferAndPrint [11:34:15]line [11:34:15]line [11:34:15]line [11:34:15]line [11:34:15]line [11:34:15]written 0, free lines is 3361 [11:34:15]MH_Cut [11:34:15]Write to MH i2c: D1 01 00 A2 11 01 85 [11:34:15]Write i2c OK [11:34:15]MH_I2C_Read... [11:34:15]Read from MH i2c: D1 [11:34:15]MH_I2C_Read... [11:34:15]Read from MH i2c: D1 01 00 [11:34:15]MH_I2C_Read... [11:34:15]Read from MH i2c: D1 01 00 A2 11 00 84 [11:34:15]Write to MH i2c: 01 00 00 A3 11 B4 [11:34:15]Write i2c OK [11:34:15]MH_I2C_Read... [11:34:15]OFD Sender: No OFD packet to send [11:34:16]*** Cut start [11:34:16]*** Partial cut [11:34:16]*** CUTSNS_PIN = 1 [11:34:16]*** CUTSNS_PIN = 0 [11:34:16]*** Brake cut motor [11:34:16]Read from MH i2c: 01 [11:34:16]MH_I2C_Read... [11:34:16]*** Stop cut motor [11:34:16]*** Cut end [11:34:16]Read from MH i2c: 01 07 00 [11:34:16]MH_I2C_Read... [11:34:16]Read from MH i2c: 01 07 00 A3 11 00 00 00 00 00 FF 0F C9 [11:34:16]process_action close_receipt done [11:34:16]requested_data is exist [11:34:16]produce_requested_data [11:34:16]requested_item fm.sn is exist - process it [11:34:16]wFMCommunicate request_size=4 [11:34:16]MH_SAM_APDU [11:34:16]CAPDU: 80 11 00 00 [11:34:16]Write to MH i2c: E2 08 00 A4 11 80 11 00 00 00 00 00 00 2F [11:34:16]Write i2c OK [11:34:16]MH_I2C_Read... [11:34:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:34:16]Read from MH i2c: E2 [11:34:16]MH_I2C_Read... [11:34:16]Read from MH i2c: E2 17 00 [11:34:16]MH_I2C_Read... [11:34:16]Read from MH i2c: E2 17 00 A4 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 85 [11:34:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:34:16]wFMCommunicate OK [11:34:16]requested_item fd.num is exist - process it [11:34:16]SAM_PROTO_GetFieldsCounters [11:34:16]wFMCommunicate request_size=4 [11:34:16]MH_SAM_APDU [11:34:16]CAPDU: 80 13 00 00 [11:34:16]Write to MH i2c: E2 08 00 A5 11 80 13 00 00 00 00 00 00 32 [11:34:16]Write i2c OK [11:34:16]MH_I2C_Read... [11:34:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:34:16]Read from MH i2c: E2 [11:34:16]MH_I2C_Read... [11:34:16]Read from MH i2c: E2 62 00 [11:34:16]MH_I2C_Read... [11:34:16]Read from MH i2c: E2 62 00 A5 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 31 84 02 00 0E 04 04 00 BF 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 1D [11:34:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 31 84 02 00 0E 04 04 00 BF 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 [11:34:16]wFMCommunicate OK [11:34:16]SAM_PROTO_GetFieldsCounters done [11:34:16]requested_item shift.num is exist - process it [11:34:16]requested_item shift.opened is exist - process it [11:34:16]req_shift_opened [11:34:16]FM_GetShiftState [11:34:16]SAM_PROTO_GetShiftState [11:34:16]wFMCommunicate request_size=4 [11:34:16]MH_SAM_APDU [11:34:16]CAPDU: 80 13 01 00 [11:34:16]Write to MH i2c: E2 08 00 A6 11 80 13 01 00 00 00 00 00 34 [11:34:16]Write i2c OK [11:34:16]MH_I2C_Read... [11:34:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:34:16]Read from MH i2c: E2 [11:34:16]MH_I2C_Read... [11:34:16]Read from MH i2c: E2 0E 00 [11:34:16]MH_I2C_Read... [11:34:16]Read from MH i2c: E2 0E 00 A6 11 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 B4 [11:34:16]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:34:16]wFMCommunicate OK [11:34:16]SAM_PROTO_GetShiftState done [11:34:16]FM_GetShiftState done [11:34:16]req_shift_opened done [11:34:16]requested_item shift.open_date is exist - process it [11:34:16]req_shift_open_date [11:34:16]req_shift_open_date done [11:34:16]produce_requested_data done [11:34:16]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164913,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [11:34:16]process_action_free close_receipt [11:34:16]json_value_free [11:34:16]json_value_free done [11:34:16]process_json_proto returns [11:34:16]Send response to host [11:34:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164913,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [11:34:16]free response buf [11:34:16]execute_script done [11:34:16]execute_script returns [11:34:16]free content buf [11:34:16]Sock 9.Close socket [11:34:16]Sock 9.Thread stoped [11:34:20]OFD Sender: No OFD packet to send [11:34:25]OFD Sender: No OFD packet to send [11:34:30]OFD Sender: No OFD packet to send [11:34:35]OFD Sender: No OFD packet to send [11:34:40]OFD Sender: No OFD packet to send [11:34:45]OFD Sender: No OFD packet to send [11:34:50]OFD Sender: No OFD packet to send [11:34:55]OFD Sender: No OFD packet to send [11:35:00]OFD Sender: No OFD packet to send [11:35:05]OFD Sender: No OFD packet to send [11:35:10]OFD Sender: No OFD packet to send [11:35:15]OFD Sender: No OFD packet to send [11:35:20]OFD Sender: No OFD packet to send [11:35:25]OFD Sender: No OFD packet to send [11:35:30]OFD Sender: No OFD packet to send [11:35:35]OFD Sender: No OFD packet to send [11:35:40]OFD Sender: No OFD packet to send [11:35:45]OFD Sender: No OFD packet to send [11:35:50]OFD Sender: No OFD packet to send [11:35:55]OFD Sender: No OFD packet to send [11:36:00]OFD Sender: No OFD packet to send [11:36:05]OFD Sender: No OFD packet to send [11:36:10]OFD Sender: No OFD packet to send [11:36:15]OFD Sender: No OFD packet to send [11:36:20]OFD Sender: No OFD packet to send [11:36:25]OFD Sender: No OFD packet to send [11:36:30]OFD Sender: No OFD packet to send [11:36:35]OFD Sender: No OFD packet to send [11:36:40]OFD Sender: No OFD packet to send [11:36:45]OFD Sender: No OFD packet to send [11:36:50]OFD Sender: No OFD packet to send [11:36:55]OFD Sender: No OFD packet to send [11:37:00]OFD Sender: No OFD packet to send [11:37:05]OFD Sender: No OFD packet to send [11:37:10]OFD Sender: No OFD packet to send [11:37:13]accept exits with 7 [11:37:13]New connection [11:37:13]New thread 3067473252 created [11:37:13]Thread 3067616612 joined [11:37:13]Waiting for new connection... [11:37:13] Sock 7.Parse request [11:37:13]Sock 7.Check first char [11:37:13]Sock 7.First char is OK [11:37:13]request: POST /json_proto HTTP/1.0 [11:37:13]Method: POST [11:37:13]URL: /json_proto [11:37:13]Method is POST - this is cgi request [11:37:13]url: /json_proto [11:37:13]query_string will be loaded in cgi processing [11:37:13]execute_cgi json_proto POST (null) [11:37:13]execute_cgi path=json_proto method=POST [11:37:13]POST find Content-Length [11:37:13]Host: 172.17.56.4:8080 [11:37:13]Content-Length: 682 [11:37:13]Content-Type: application/json [11:37:13] [11:37:13]POST finish read [11:37:13]Found Content-Length = 682 [11:37:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459010", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "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:37:13]execute_script... [11:37: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)459010", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "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:37:13]POST & json_proto [11:37:13]process_json_proto [11:37:13]json parsed OK: [11:37:13]protocol is kg_v1.0 [11:37:13]action value=close_receipt [11:37:13]process_action close_receipt [11:37:13]cmd_close_receipt [11:37:13]MH_GetDate [11:37:13]Write to MH i2c: F0 00 00 A7 11 A7 [11:37:13]Write i2c OK [11:37:13]MH_I2C_Read... [11:37:13]Read from MH i2c: F0 [11:37:13]MH_I2C_Read... [11:37:13]Read from MH i2c: F0 09 00 [11:37:13]MH_I2C_Read... [11:37:13]Read from MH i2c: F0 09 00 A7 11 00 6A B8 93 66 C9 DC B2 64 86 [11:37:13]GetLastDocTimeStamp 1720956854 [11:37:13]current date 1720957034 [11:37:13]FM_GetShiftState [11:37:13]SAM_PROTO_GetShiftState [11:37:13]wFMCommunicate request_size=4 [11:37:13]MH_SAM_APDU [11:37:13]CAPDU: 80 13 01 00 [11:37:13]Write to MH i2c: E2 08 00 A8 11 80 13 01 00 00 00 00 00 36 [11:37:13]Write i2c OK [11:37:13]MH_I2C_Read... [11:37:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:13]Read from MH i2c: E2 [11:37:13]MH_I2C_Read... [11:37:13]Read from MH i2c: E2 0E 00 [11:37:13]MH_I2C_Read... [11:37:13]Read from MH i2c: E2 0E 00 A8 11 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 B6 [11:37:13]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:37:13]wFMCommunicate OK [11:37:13]SAM_PROTO_GetShiftState done [11:37:13]FM_GetShiftState done [11:37:13]opened in 1720917342 [11:37:13]opened+sec_in_day 1721003742 [11:37:13]quantity*price = 100016 [11:37:13]sum+1 = 100017 [11:37: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 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 112 14.07.2024 11:37 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164914 ФПД: 120900075947029 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T113714&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164914&fm=120900075947029&tin=02508201610067®Number=0000000000090829&sum=100000 [11:37:14]StoreToDocumentArchive [11:37:14]shift 447 fd 164914 [11:37:14]save to /storage/0447/doc_00164914 [11:37:14]save last doc name /storage/0447/doc_00164914 to /storage/kkm_last_doc_name [11:37:14]save OK [11:37:14]Clear old archive folders... [11:37:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:37:14]tlvbuf is B6F630E0 [11:37:14]SAM_PROTO_ClearQueue [11:37:14]wFMCommunicate request_size=4 [11:37:14]MH_SAM_APDU [11:37:14]CAPDU: 80 09 00 00 [11:37:14]Write to MH i2c: E2 08 00 B5 11 80 09 00 00 00 00 00 00 38 [11:37:14]Write i2c OK [11:37:14]MH_I2C_Read... [11:37:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:37:14]Read from MH i2c: E2 [11:37:14]MH_I2C_Read... [11:37:14]Read from MH i2c: E2 03 00 [11:37:14]MH_I2C_Read... [11:37:14]Read from MH i2c: E2 03 00 B5 11 00 90 00 3A [11:37:14]RAPDU: 90 00 [11:37:14]wFMCommunicate OK [11:37:14]SAM_PROTO_ClearQueue done [11:37:14]KKMCreateOFDPacket [11:37:14]OFDProtocolAddRootSTLVToBuf [11:37:14]FM_MakeSignedData [11:37:14]FM_MakeSignedData [11:37:14]SAM_PROTO_SignData [11:37:14]wFMCommunicate request_size=4 [11:37:14]MH_SAM_APDU [11:37:14]CAPDU: 80 0D 01 02 [11:37:14]Write to MH i2c: E2 08 00 B6 11 80 0D 01 02 00 00 00 00 40 [11:37:14]Write i2c OK [11:37:14]MH_I2C_Read... [11:37:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:37:14]Read from MH i2c: E2 [11:37:14]MH_I2C_Read... [11:37:14]Read from MH i2c: E2 03 00 [11:37:14]MH_I2C_Read... [11:37:14]Read from MH i2c: E2 03 00 B6 11 00 90 00 3B [11:37:14]RAPDU: 90 00 [11:37:14]wFMCommunicate OK [11:37:14]wFMCommunicate request_size=255 [11:37:14]MH_SAM_APDU [11:37:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 6A B8 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 32 84 02 00 35 04 06 00 6D [11:37:14]Write to MH i2c: E2 02 01 B7 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 6A B8 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 32 84 02 00 35 04 06 00 6D 00 00 CB [11:37:14]Write i2c OK [11:37:14]MH_I2C_Read... [11:37:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:15]Read from MH i2c: E2 [11:37:15]MH_I2C_Read... [11:37:15]Read from MH i2c: E2 03 00 [11:37:15]MH_I2C_Read... [11:37:15]Read from MH i2c: E2 03 00 B7 11 00 90 00 3C [11:37:15]RAPDU: 90 00 [11:37:15]wFMCommunicate OK [11:37:15]wFMCommunicate request_size=10 [11:37:15]MH_SAM_APDU [11:37:15]CAPDU: 80 0D 02 02 05 F5 3E 14 84 15 [11:37:15]Write to MH i2c: E2 0D 00 B8 11 80 0D 02 02 05 00 F5 3E 14 84 15 00 00 2D [11:37:15]Write i2c OK [11:37:15]MH_I2C_Read... [11:37:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:15]Read from MH i2c: E2 [11:37:15]MH_I2C_Read... [11:37:15]Read from MH i2c: E2 03 00 [11:37:15]MH_I2C_Read... [11:37:15]Read from MH i2c: E2 03 00 B8 11 00 90 00 3D [11:37:15]RAPDU: 90 00 [11:37:15]wFMCommunicate OK [11:37:15]wFMCommunicate request_size=4 [11:37:15]MH_SAM_APDU [11:37:15]CAPDU: 80 0D 03 02 [11:37:15]Write to MH i2c: E2 08 00 B9 11 80 0D 03 02 00 00 00 00 45 [11:37:15]Write i2c OK [11:37:15]MH_I2C_Read... [11:37:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:37:15]Read from MH i2c: E2 [11:37:15]MH_I2C_Read... [11:37:15]Read from MH i2c: E2 0B 00 [11:37:15]MH_I2C_Read... [11:37:15]Read from MH i2c: E2 0B 00 B9 11 00 58 63 66 33 7B CE 6E 28 90 00 79 [11:37:15]RAPDU: 58 63 66 33 7B CE 6E 28 90 00 [11:37:15]wFMCommunicate OK [11:37:15]SAM_PROTO_SignData done [11:37:15]FM_MakeSignedData done [11:37:15]CreateOFDProtocolMessage [11:37:15]wFMCommunicate request_size=4 [11:37:15]MH_SAM_APDU [11:37:15]CAPDU: 80 11 00 00 [11:37:15]Write to MH i2c: E2 08 00 BA 11 80 11 00 00 00 00 00 00 45 [11:37:15]Write i2c OK [11:37:15]MH_I2C_Read... [11:37:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:15]Read from MH i2c: E2 [11:37:15]MH_I2C_Read... [11:37:15]Read from MH i2c: E2 17 00 [11:37:15]MH_I2C_Read... [11:37:15]Read from MH i2c: E2 17 00 BA 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 9B [11:37:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:37:15]wFMCommunicate OK [11:37:15]CreateOFDProtocolMessage done [11:37:15]OFDSenderStorePacket 164914 [11:37:15]StoreOFDPacket docnum=164914 [11:37:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 AB F7 07 01 8C 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 6A B8 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 32 84 02 00 35 04 06 00 6D F5 3E 14 84 15 58 63 66 33 7B CE 6E 28 [11:37:15]CheckFolder [11:37:15]dirname=/storage/ofd_packets [11:37:15]CheckFolder done [11:37:15]ProducePacketName [11:37:15]name=ofd_packets/00164914 [11:37:15]NVStorageSaveData ofd_packets/00164914 [11:37:15]File name is /storage/ofd_packets/00164914 [11:37:15]Write 301 bytes [11:37:15]NVStorageSaveData done [11:37:15]OFDSenderStorePacket done [11:37:15]KKMCreateOFDPacket done [11:37:15]NVStorageSaveData kkm_last_timestamp [11:37:15]File name is /storage/kkm_last_timestamp [11:37:15]Write 4 bytes [11:37:15]NVStorageSaveData done [11:37:15]ExternCall_PrintAddStr [11:37:15]wPrintStart [11:37:15]Write to MH i2c: 01 00 00 BB 11 CC [11:37:15]Write i2c OK [11:37:15]MH_I2C_Read... [11:37:15]Read from MH i2c: 01 [11:37:15]MH_I2C_Read... [11:37:15]Read from MH i2c: 01 07 00 [11:37:15]MH_I2C_Read... [11:37:15]Read from MH i2c: 01 07 00 BB 11 00 00 00 00 00 FF 0F E1 [11:37:15]RasterBufferAndPrint [11:37:15]line Счет N : (1)459010 [11:37:15]line ИНН: 02508201610067 [11:37:15]line Контрольно-Кассовый Чек [11:37:15]line ПРОДАЖА [11:37:15]line ТРК (МРК, ГНК) : 22 [11:37:15]line Товар: 2710124130 [11:37:15]line Аи-92-К-5 [11:37:15]line 15.200 * 65.80 [11:37:15]line = 1000.16 [11:37:15]line НДС 12% НСП 1% [11:37:15]line > о реализуемом товаре [11:37:15]line ОКРУГЛЕНИЕ: -0.16 [11:37:15]line ИТОГО: 1000.00 [11:37:15]line Внесено: 1000.00 [11:37:15]line СДАЧА: 0.00 [11:37:15]line НСП 1% : 8.85 [11:37:15]line НДС 12% : 106.21 [11:37:15]line Наличными: 1000.00 [11:37:15]line Безнал.: 0.00 [11:37:15]line Место: АЗС № 72 "Партнер Нефть" [11:37:15]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:37:15]line СНО: Общий режим [11:37:15]line Чек 112 14.07.2024 11:37 [11:37:15]line Смена: 447 ФФД: 1.0 [11:37:15]line ЗНМ: 0300000160 [11:37:15]line РНМ: 0000000000090829 [11:37:15]line Версия ККМ: 001 [11:37:15]line ФМ: 0000000000874718 [11:37:15]line ФД: 164914 [11:37:15]line ФПД: 120900075947029 [11:37:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T113714&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164914&fm=120900075947029&tin=02508201610067®Number=0000000000090829&sum=100000 [11:37:15]OFD Sender: Processing packet 164914 [packets to send 104, broken 103] [11:37:15]ProducePacketName [11:37:15]name=ofd_packets/00164914 [11:37:15]OFD Sender: To server: pG, [11:37:15]CommunicateWithHost lk.salyk.kg:30040 [11:37:15]ConnectInit lk.salyk.kg [11:37:15]written 0, free lines is 4095 [11:37:15]Connected sock=10 [11:37:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 AB F7 07 01 8C 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 6A B8 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 32 84 02 00 35 04 06 00 6D F5 3E 14 84 15 58 63 66 33 7B CE 6E 28 [11:37:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 18 F5 47 00 69 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 38 37 34 37 31 38 10 04 04 00 32 84 02 00 F4 03 04 00 F8 5E 93 66 B6 04 01 00 00 69 EE CF F7 BC 7B ED A0 [11:37:15]CommunicateWithHost err = 0 [11:37:15]CheckOFDResponse [11:37:15]1017 (14) - 77093643461234 [11:37:15]1041 (16) - 0000000000874718 [11:37:15]1040 (4) - 164914 [11:37:15]1012 (4) - 14.07.2024 05:15 [11:37:15]1206 (1) - 0 [11:37:15]OFD Sender: Remove packet 164914 [11:37:15]ProducePacketName [11:37:15]name=ofd_packets/00164914 [11:37:15]NVStorageDeleteData [11:37:16]Write to MH i2c: 01 00 00 E5 11 F6 [11:37:16]Write i2c OK [11:37:16]MH_I2C_Read... [11:37:16]Read from MH i2c: 01 [11:37:16]MH_I2C_Read... [11:37:16]Read from MH i2c: 01 07 00 [11:37:16]MH_I2C_Read... [11:37:16]Read from MH i2c: 01 07 00 E5 11 00 00 00 00 00 05 0D 0F [11:37:16]RasterBufferAndPrint [11:37:16]line [11:37:16]line [11:37:16]line [11:37:16]line [11:37:16]line [11:37:16]written 0, free lines is 3339 [11:37:16]MH_Cut [11:37:16]Write to MH i2c: D1 01 00 EC 11 01 CF [11:37:16]Write i2c OK [11:37:16]MH_I2C_Read... [11:37:16]Read from MH i2c: D1 [11:37:16]MH_I2C_Read... [11:37:16]Read from MH i2c: D1 01 00 [11:37:16]MH_I2C_Read... [11:37:16]Read from MH i2c: D1 01 00 EC 11 00 CE [11:37:16]Write to MH i2c: 01 00 00 ED 11 FE [11:37:16]Write i2c OK [11:37:16]MH_I2C_Read... [11:37:16]OFD Sender: No OFD packet to send [11:37:16]*** Cut start [11:37:16]*** Partial cut [11:37:16]*** CUTSNS_PIN = 1 [11:37:16]*** CUTSNS_PIN = 0 [11:37:16]*** Brake cut motor [11:37:17]Read from MH i2c: 01 [11:37:17]MH_I2C_Read... [11:37:17]*** Stop cut motor [11:37:17]*** Cut end [11:37:17]Read from MH i2c: 01 07 00 [11:37:17]MH_I2C_Read... [11:37:17]Read from MH i2c: 01 07 00 ED 11 00 00 00 00 00 FF 0F 13 [11:37:17]process_action close_receipt done [11:37:17]requested_data is exist [11:37:17]produce_requested_data [11:37:17]requested_item fm.sn is exist - process it [11:37:17]wFMCommunicate request_size=4 [11:37:17]MH_SAM_APDU [11:37:17]CAPDU: 80 11 00 00 [11:37:17]Write to MH i2c: E2 08 00 EE 11 80 11 00 00 00 00 00 00 79 [11:37:17]Write i2c OK [11:37:17]MH_I2C_Read... [11:37:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:17]Read from MH i2c: E2 [11:37:17]MH_I2C_Read... [11:37:17]Read from MH i2c: E2 17 00 [11:37:17]MH_I2C_Read... [11:37:17]Read from MH i2c: E2 17 00 EE 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 CF [11:37:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:37:17]wFMCommunicate OK [11:37:17]requested_item fd.num is exist - process it [11:37:17]SAM_PROTO_GetFieldsCounters [11:37:17]wFMCommunicate request_size=4 [11:37:17]MH_SAM_APDU [11:37:17]CAPDU: 80 13 00 00 [11:37:17]Write to MH i2c: E2 08 00 EF 11 80 13 00 00 00 00 00 00 7C [11:37:17]Write i2c OK [11:37:17]MH_I2C_Read... [11:37:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:37:17]Read from MH i2c: E2 [11:37:17]MH_I2C_Read... [11:37:17]Read from MH i2c: E2 62 00 [11:37:17]MH_I2C_Read... [11:37:17]Read from MH i2c: E2 62 00 EF 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 32 84 02 00 0E 04 04 00 BF 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 6B [11:37:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 32 84 02 00 0E 04 04 00 BF 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 [11:37:17]wFMCommunicate OK [11:37:17]SAM_PROTO_GetFieldsCounters done [11:37:17]requested_item shift.num is exist - process it [11:37:17]requested_item shift.opened is exist - process it [11:37:17]req_shift_opened [11:37:17]FM_GetShiftState [11:37:17]SAM_PROTO_GetShiftState [11:37:17]wFMCommunicate request_size=4 [11:37:17]MH_SAM_APDU [11:37:17]CAPDU: 80 13 01 00 [11:37:17]Write to MH i2c: E2 08 00 F0 11 80 13 01 00 00 00 00 00 7E [11:37:17]Write i2c OK [11:37:17]MH_I2C_Read... [11:37:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:17]Read from MH i2c: E2 [11:37:17]MH_I2C_Read... [11:37:17]Read from MH i2c: E2 0E 00 [11:37:17]MH_I2C_Read... [11:37:17]Read from MH i2c: E2 0E 00 F0 11 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 FE [11:37:17]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:37:17]wFMCommunicate OK [11:37:17]SAM_PROTO_GetShiftState done [11:37:17]FM_GetShiftState done [11:37:17]req_shift_opened done [11:37:17]requested_item shift.open_date is exist - process it [11:37:17]req_shift_open_date [11:37:17]req_shift_open_date done [11:37:17]produce_requested_data done [11:37:17]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164914,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [11:37:17]process_action_free close_receipt [11:37:17]json_value_free [11:37:17]json_value_free done [11:37:17]process_json_proto returns [11:37:17]Send response to host [11:37:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164914,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [11:37:17]free response buf [11:37:17]execute_script done [11:37:17]execute_script returns [11:37:17]free content buf [11:37:17]Sock 7.Close socket [11:37:17]Sock 7.Thread stoped [11:37:21]OFD Sender: No OFD packet to send [11:37:26]OFD Sender: No OFD packet to send [11:37:31]OFD Sender: No OFD packet to send [11:37:36]OFD Sender: No OFD packet to send [11:37:41]OFD Sender: No OFD packet to send [11:37:46]OFD Sender: No OFD packet to send [11:37:51]OFD Sender: No OFD packet to send [11:37:56]OFD Sender: No OFD packet to send [11:38:01]OFD Sender: No OFD packet to send [11:38:06]OFD Sender: No OFD packet to send [11:38:11]OFD Sender: No OFD packet to send [11:38:16]OFD Sender: No OFD packet to send [11:38:21]OFD Sender: No OFD packet to send [11:38:26]OFD Sender: No OFD packet to send [11:38:31]OFD Sender: No OFD packet to send [11:38:36]OFD Sender: No OFD packet to send [11:38:41]OFD Sender: No OFD packet to send [11:38:46]OFD Sender: No OFD packet to send [11:38:51]OFD Sender: No OFD packet to send [11:38:56]OFD Sender: No OFD packet to send [11:39:01]OFD Sender: No OFD packet to send [11:39:06]OFD Sender: No OFD packet to send [11:39:11]OFD Sender: No OFD packet to send [11:39:16]OFD Sender: No OFD packet to send [11:39:21]OFD Sender: No OFD packet to send [11:39:26]OFD Sender: No OFD packet to send [11:39:31]OFD Sender: No OFD packet to send [11:39:36]OFD Sender: No OFD packet to send [11:39:41]OFD Sender: No OFD packet to send [11:39:46]OFD Sender: No OFD packet to send [11:39:51]OFD Sender: No OFD packet to send [11:39:56]OFD Sender: No OFD packet to send [11:40:01]OFD Sender: No OFD packet to send [11:40:06]OFD Sender: No OFD packet to send [11:40:11]OFD Sender: No OFD packet to send [11:40:16]OFD Sender: No OFD packet to send [11:40:21]OFD Sender: No OFD packet to send [11:40:26]OFD Sender: No OFD packet to send [11:40:31]OFD Sender: No OFD packet to send [11:40:36]OFD Sender: No OFD packet to send [11:40:41]OFD Sender: No OFD packet to send [11:40:46]OFD Sender: No OFD packet to send [11:40:46]accept exits with 9 [11:40:46]New connection [11:40:46]New thread 3067616612 created [11:40:46]Thread 3067473252 joined [11:40:46]Waiting for new connection... [11:40:46] Sock 9.Parse request [11:40:46]Sock 9.Check first char [11:40:46]Sock 9.First char is OK [11:40:46]request: POST /json_proto HTTP/1.0 [11:40:46]Method: POST [11:40:46]URL: /json_proto [11:40:46]Method is POST - this is cgi request [11:40:46]url: /json_proto [11:40:46]query_string will be loaded in cgi processing [11:40:46]execute_cgi json_proto POST (null) [11:40:46]execute_cgi path=json_proto method=POST [11:40:46]POST find Content-Length [11:40:46]Host: 172.17.56.4:8080 [11:40:46]Content-Length: 677 [11:40:46]Content-Type: application/json [11:40:46] [11:40:46]POST finish read [11:40:46]Found Content-Length = 677 [11:40:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459011", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.800, "sum" : 250.04, "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" ] } } [11:40:46]execute_script... [11:40: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)459011", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.800, "sum" : 250.04, "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" ] } } [11:40:46]POST & json_proto [11:40:46]process_json_proto [11:40:46]json parsed OK: [11:40:46]protocol is kg_v1.0 [11:40:46]action value=close_receipt [11:40:46]process_action close_receipt [11:40:46]cmd_close_receipt [11:40:46]MH_GetDate [11:40:46]Write to MH i2c: F0 00 00 F1 11 F1 [11:40:46]Write i2c OK [11:40:46]MH_I2C_Read... [11:40:46]Read from MH i2c: F0 [11:40:46]MH_I2C_Read... [11:40:46]Read from MH i2c: F0 09 00 [11:40:46]MH_I2C_Read... [11:40:46]Read from MH i2c: F0 09 00 F1 11 00 3F B9 93 66 C9 DC B2 64 A6 [11:40:46]GetLastDocTimeStamp 1720957034 [11:40:46]current date 1720957247 [11:40:46]FM_GetShiftState [11:40:46]SAM_PROTO_GetShiftState [11:40:46]wFMCommunicate request_size=4 [11:40:46]MH_SAM_APDU [11:40:46]CAPDU: 80 13 01 00 [11:40:46]Write to MH i2c: E2 08 00 F2 11 80 13 01 00 00 00 00 00 80 [11:40:46]Write i2c OK [11:40:46]MH_I2C_Read... [11:40:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:46]Read from MH i2c: E2 [11:40:46]MH_I2C_Read... [11:40:46]Read from MH i2c: E2 0E 00 [11:40:46]MH_I2C_Read... [11:40:46]Read from MH i2c: E2 0E 00 F2 11 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 00 [11:40:46]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:40:46]wFMCommunicate OK [11:40:46]SAM_PROTO_GetShiftState done [11:40:46]FM_GetShiftState done [11:40:46]opened in 1720917342 [11:40:46]opened+sec_in_day 1721003742 [11:40:46]quantity*price = 25004 [11:40:46]sum+1 = 25005 [11:40:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.55 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 113 14.07.2024 11:40 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164915 ФПД: 218655808522050 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T114047&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164915&fm=218655808522050&tin=02508201610067®Number=0000000000090829&sum=25000 [11:40:47]StoreToDocumentArchive [11:40:47]shift 447 fd 164915 [11:40:47]save to /storage/0447/doc_00164915 [11:40:47]save last doc name /storage/0447/doc_00164915 to /storage/kkm_last_doc_name [11:40:47]save OK [11:40:47]Clear old archive folders... [11:40:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:40:47]tlvbuf is B6FFA8F0 [11:40:47]SAM_PROTO_ClearQueue [11:40:47]wFMCommunicate request_size=4 [11:40:47]MH_SAM_APDU [11:40:47]CAPDU: 80 09 00 00 [11:40:47]Write to MH i2c: E2 08 00 FF 11 80 09 00 00 00 00 00 00 82 [11:40:47]Write i2c OK [11:40:47]MH_I2C_Read... [11:40:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:40:47]Read from MH i2c: E2 [11:40:47]MH_I2C_Read... [11:40:47]Read from MH i2c: E2 03 00 [11:40:47]MH_I2C_Read... [11:40:47]Read from MH i2c: E2 03 00 FF 11 00 90 00 84 [11:40:47]RAPDU: 90 00 [11:40:47]wFMCommunicate OK [11:40:47]SAM_PROTO_ClearQueue done [11:40:47]KKMCreateOFDPacket [11:40:47]OFDProtocolAddRootSTLVToBuf [11:40:47]FM_MakeSignedData [11:40:47]FM_MakeSignedData [11:40:47]SAM_PROTO_SignData [11:40:47]wFMCommunicate request_size=4 [11:40:47]MH_SAM_APDU [11:40:47]CAPDU: 80 0D 01 02 [11:40:47]Write to MH i2c: E2 08 00 00 12 80 0D 01 02 00 00 00 00 8B [11:40:47]Write i2c OK [11:40:47]MH_I2C_Read... [11:40:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:40:47]Read from MH i2c: E2 [11:40:47]MH_I2C_Read... [11:40:47]Read from MH i2c: E2 03 00 [11:40:47]MH_I2C_Read... [11:40:47]Read from MH i2c: E2 03 00 00 12 00 90 00 86 [11:40:47]RAPDU: 90 00 [11:40:47]wFMCommunicate OK [11:40:47]wFMCommunicate request_size=255 [11:40:47]MH_SAM_APDU [11:40:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 AC 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 3F B9 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 33 84 02 00 35 04 06 00 C6 [11:40:47]Write to MH i2c: E2 02 01 01 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 AC 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 3F B9 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 33 84 02 00 35 04 06 00 C6 00 00 54 [11:40:47]Write i2c OK [11:40:47]MH_I2C_Read... [11:40:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:40:48]Read from MH i2c: E2 [11:40:48]MH_I2C_Read... [11:40:48]Read from MH i2c: E2 03 00 [11:40:48]MH_I2C_Read... [11:40:48]Read from MH i2c: E2 03 00 01 12 00 90 00 87 [11:40:48]RAPDU: 90 00 [11:40:48]wFMCommunicate OK [11:40:48]wFMCommunicate request_size=10 [11:40:48]MH_SAM_APDU [11:40:48]CAPDU: 80 0D 02 02 05 DD C5 CB 87 42 [11:40:48]Write to MH i2c: E2 0D 00 02 12 80 0D 02 02 05 00 DD C5 CB 87 42 00 00 CE [11:40:48]Write i2c OK [11:40:48]MH_I2C_Read... [11:40:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:40:48]Read from MH i2c: E2 [11:40:48]MH_I2C_Read... [11:40:48]Read from MH i2c: E2 03 00 [11:40:48]MH_I2C_Read... [11:40:48]Read from MH i2c: E2 03 00 02 12 00 90 00 88 [11:40:48]RAPDU: 90 00 [11:40:48]wFMCommunicate OK [11:40:48]wFMCommunicate request_size=4 [11:40:48]MH_SAM_APDU [11:40:48]CAPDU: 80 0D 03 02 [11:40:48]Write to MH i2c: E2 08 00 03 12 80 0D 03 02 00 00 00 00 90 [11:40:48]Write i2c OK [11:40:48]MH_I2C_Read... [11:40:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:40:48]Read from MH i2c: E2 [11:40:48]MH_I2C_Read... [11:40:48]Read from MH i2c: E2 0B 00 [11:40:48]MH_I2C_Read... [11:40:48]Read from MH i2c: E2 0B 00 03 12 00 25 99 8E E5 6A 1D 15 19 90 00 77 [11:40:48]RAPDU: 25 99 8E E5 6A 1D 15 19 90 00 [11:40:48]wFMCommunicate OK [11:40:48]SAM_PROTO_SignData done [11:40:48]FM_MakeSignedData done [11:40:48]CreateOFDProtocolMessage [11:40:48]wFMCommunicate request_size=4 [11:40:48]MH_SAM_APDU [11:40:48]CAPDU: 80 11 00 00 [11:40:48]Write to MH i2c: E2 08 00 04 12 80 11 00 00 00 00 00 00 90 [11:40:48]Write i2c OK [11:40:48]MH_I2C_Read... [11:40:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:48]Read from MH i2c: E2 [11:40:48]MH_I2C_Read... [11:40:48]Read from MH i2c: E2 17 00 [11:40:48]MH_I2C_Read... [11:40:48]Read from MH i2c: E2 17 00 04 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E6 [11:40:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:40:48]wFMCommunicate OK [11:40:48]CreateOFDProtocolMessage done [11:40:48]OFDSenderStorePacket 164915 [11:40:48]StoreOFDPacket docnum=164915 [11:40:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 26 0D 07 01 EF 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 AC 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 3F B9 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 33 84 02 00 35 04 06 00 C6 DD C5 CB 87 42 25 99 8E E5 6A 1D 15 19 [11:40:48]CheckFolder [11:40:48]dirname=/storage/ofd_packets [11:40:48]CheckFolder done [11:40:48]ProducePacketName [11:40:48]name=ofd_packets/00164915 [11:40:48]NVStorageSaveData ofd_packets/00164915 [11:40:48]File name is /storage/ofd_packets/00164915 [11:40:48]Write 301 bytes [11:40:48]NVStorageSaveData done [11:40:48]OFDSenderStorePacket done [11:40:48]KKMCreateOFDPacket done [11:40:48]NVStorageSaveData kkm_last_timestamp [11:40:48]File name is /storage/kkm_last_timestamp [11:40:48]Write 4 bytes [11:40:48]NVStorageSaveData done [11:40:48]ExternCall_PrintAddStr [11:40:48]wPrintStart [11:40:48]Write to MH i2c: 01 00 00 05 12 17 [11:40:48]Write i2c OK [11:40:48]MH_I2C_Read... [11:40:48]Read from MH i2c: 01 [11:40:48]MH_I2C_Read... [11:40:48]Read from MH i2c: 01 07 00 [11:40:48]MH_I2C_Read... [11:40:48]Read from MH i2c: 01 07 00 05 12 00 00 00 00 00 FF 0F 2C [11:40:48]RasterBufferAndPrint [11:40:48]line Счет N : (1)459011 [11:40:48]line ИНН: 02508201610067 [11:40:48]line Контрольно-Кассовый Чек [11:40:48]line ПРОДАЖА [11:40:48]line ТРК (МРК, ГНК) : 22 [11:40:48]line Товар: 2710124130 [11:40:48]line Аи-92-К-5 [11:40:48]line 3.800 * 65.80 [11:40:48]line = 250.04 [11:40:48]line НДС 12% НСП 1% [11:40:48]line > о реализуемом товаре [11:40:48]line ОКРУГЛЕНИЕ: -0.04 [11:40:48]line ИТОГО: 250.00 [11:40:48]line Внесено: 250.00 [11:40:48]line СДАЧА: 0.00 [11:40:48]line НСП 1% : 2.21 [11:40:48]line НДС 12% : 26.55 [11:40:48]line Наличными: 250.00 [11:40:48]line Безнал.: 0.00 [11:40:48]line Место: АЗС № 72 "Партнер Нефть" [11:40:48]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:40:48]line СНО: Общий режим [11:40:48]line Чек 113 14.07.2024 11:40 [11:40:48]line Смена: 447 ФФД: 1.0 [11:40:48]line ЗНМ: 0300000160 [11:40:48]line РНМ: 0000000000090829 [11:40:48]line Версия ККМ: 001 [11:40:48]line ФМ: 0000000000874718 [11:40:48]line ФД: 164915 [11:40:48]line ФПД: 218655808522050 [11:40:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T114047&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164915&fm=218655808522050&tin=02508201610067®Number=0000000000090829&sum=25000 [11:40:48]written 0, free lines is 4095 [11:40:48]OFD Sender: Processing packet 164915 [packets to send 104, broken 103] [11:40:48]ProducePacketName [11:40:48]name=ofd_packets/00164915 [11:40:48]OFD Sender: To server: pG, [11:40:48]CommunicateWithHost lk.salyk.kg:30040 [11:40:48]ConnectInit lk.salyk.kg [11:40:48]Connected sock=10 [11:40:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 26 0D 07 01 EF 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 AC 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 3F B9 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 33 84 02 00 35 04 06 00 C6 DD C5 CB 87 42 25 99 8E E5 6A 1D 15 19 [11:40:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 AF ED 47 00 66 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 33 84 02 00 F4 03 04 00 CD 5F 93 66 B6 04 01 00 00 8E EC 1E 62 6B 40 08 6C [11:40:48]CommunicateWithHost err = 0 [11:40:48]CheckOFDResponse [11:40:48]1017 (14) - 77093643461234 [11:40:48]1041 (16) - 0000000000874718 [11:40:48]1040 (4) - 164915 [11:40:48]1012 (4) - 14.07.2024 05:19 [11:40:48]1206 (1) - 0 [11:40:48]OFD Sender: Remove packet 164915 [11:40:48]ProducePacketName [11:40:48]name=ofd_packets/00164915 [11:40:48]NVStorageDeleteData [11:40:48]Write to MH i2c: 01 00 00 2F 12 41 [11:40:48]Write i2c OK [11:40:48]MH_I2C_Read... [11:40:48]Read from MH i2c: 01 [11:40:48]MH_I2C_Read... [11:40:48]Read from MH i2c: 01 07 00 [11:40:48]MH_I2C_Read... [11:40:48]Read from MH i2c: 01 07 00 2F 12 00 00 00 00 00 06 0D 5B [11:40:48]RasterBufferAndPrint [11:40:48]line [11:40:48]line [11:40:48]line [11:40:48]line [11:40:48]line [11:40:48]written 0, free lines is 3340 [11:40:48]MH_Cut [11:40:48]Write to MH i2c: D1 01 00 36 12 01 1A [11:40:48]Write i2c OK [11:40:48]MH_I2C_Read... [11:40:48]Read from MH i2c: D1 [11:40:48]MH_I2C_Read... [11:40:48]Read from MH i2c: D1 01 00 [11:40:48]MH_I2C_Read... [11:40:48]Read from MH i2c: D1 01 00 36 12 00 19 [11:40:48]Write to MH i2c: 01 00 00 37 12 49 [11:40:48]Write i2c OK [11:40:48]MH_I2C_Read... [11:40:49]OFD Sender: No OFD packet to send [11:40:49]*** Cut start [11:40:49]*** Partial cut [11:40:49]*** CUTSNS_PIN = 1 [11:40:49]*** CUTSNS_PIN = 0 [11:40:49]*** Brake cut motor [11:40:50]Read from MH i2c: 01 [11:40:50]MH_I2C_Read... [11:40:50]*** Stop cut motor [11:40:50]*** Cut end [11:40:50]Read from MH i2c: 01 07 00 [11:40:50]MH_I2C_Read... [11:40:50]Read from MH i2c: 01 07 00 37 12 00 00 00 00 00 FF 0F 5E [11:40:50]process_action close_receipt done [11:40:50]requested_data is exist [11:40:50]produce_requested_data [11:40:50]requested_item fm.sn is exist - process it [11:40:50]wFMCommunicate request_size=4 [11:40:50]MH_SAM_APDU [11:40:50]CAPDU: 80 11 00 00 [11:40:50]Write to MH i2c: E2 08 00 38 12 80 11 00 00 00 00 00 00 C4 [11:40:50]Write i2c OK [11:40:50]MH_I2C_Read... [11:40:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:50]Read from MH i2c: E2 [11:40:50]MH_I2C_Read... [11:40:50]Read from MH i2c: E2 17 00 [11:40:50]MH_I2C_Read... [11:40:50]Read from MH i2c: E2 17 00 38 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 1A [11:40:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:40:50]wFMCommunicate OK [11:40:50]requested_item fd.num is exist - process it [11:40:50]SAM_PROTO_GetFieldsCounters [11:40:50]wFMCommunicate request_size=4 [11:40:50]MH_SAM_APDU [11:40:50]CAPDU: 80 13 00 00 [11:40:50]Write to MH i2c: E2 08 00 39 12 80 13 00 00 00 00 00 00 C7 [11:40:50]Write i2c OK [11:40:50]MH_I2C_Read... [11:40:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:40:50]Read from MH i2c: E2 [11:40:50]MH_I2C_Read... [11:40:50]Read from MH i2c: E2 62 00 [11:40:50]MH_I2C_Read... [11:40:50]Read from MH i2c: E2 62 00 39 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 33 84 02 00 0E 04 04 00 BF 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 BA [11:40:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 33 84 02 00 0E 04 04 00 BF 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 [11:40:50]wFMCommunicate OK [11:40:50]SAM_PROTO_GetFieldsCounters done [11:40:50]requested_item shift.num is exist - process it [11:40:50]requested_item shift.opened is exist - process it [11:40:50]req_shift_opened [11:40:50]FM_GetShiftState [11:40:50]SAM_PROTO_GetShiftState [11:40:50]wFMCommunicate request_size=4 [11:40:50]MH_SAM_APDU [11:40:50]CAPDU: 80 13 01 00 [11:40:50]Write to MH i2c: E2 08 00 3A 12 80 13 01 00 00 00 00 00 C9 [11:40:50]Write i2c OK [11:40:50]MH_I2C_Read... [11:40:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:50]Read from MH i2c: E2 [11:40:50]MH_I2C_Read... [11:40:50]Read from MH i2c: E2 0E 00 [11:40:50]MH_I2C_Read... [11:40:50]Read from MH i2c: E2 0E 00 3A 12 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 49 [11:40:50]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:40:50]wFMCommunicate OK [11:40:50]SAM_PROTO_GetShiftState done [11:40:50]FM_GetShiftState done [11:40:50]req_shift_opened done [11:40:50]requested_item shift.open_date is exist - process it [11:40:50]req_shift_open_date [11:40:50]req_shift_open_date done [11:40:50]produce_requested_data done [11:40:50]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164915,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [11:40:50]process_action_free close_receipt [11:40:50]json_value_free [11:40:50]json_value_free done [11:40:50]process_json_proto returns [11:40:50]Send response to host [11:40:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164915,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [11:40:50]free response buf [11:40:50]execute_script done [11:40:50]execute_script returns [11:40:50]free content buf [11:40:50]Sock 9.Close socket [11:40:50]Sock 9.Thread stoped [11:40:54]OFD Sender: No OFD packet to send [11:40:59]OFD Sender: No OFD packet to send [11:41:04]OFD Sender: No OFD packet to send [11:41:09]OFD Sender: No OFD packet to send [11:41:14]OFD Sender: No OFD packet to send [11:41:19]OFD Sender: No OFD packet to send [11:41:24]OFD Sender: No OFD packet to send [11:41:29]OFD Sender: No OFD packet to send [11:41:33]accept exits with 7 [11:41:33]New connection [11:41:33]New thread 3067473252 created [11:41:33]Thread 3067616612 joined [11:41:33]Waiting for new connection... [11:41:33] Sock 7.Parse request [11:41:33]Sock 7.Check first char [11:41:33]Sock 7.First char is OK [11:41:33]request: POST /json_proto HTTP/1.0 [11:41:33]Method: POST [11:41:33]URL: /json_proto [11:41:33]Method is POST - this is cgi request [11:41:33]url: /json_proto [11:41:33]query_string will be loaded in cgi processing [11:41:33]execute_cgi json_proto POST (null) [11:41:33]execute_cgi path=json_proto method=POST [11:41:33]POST find Content-Length [11:41:33]Host: 172.17.56.4:8080 [11:41:33]Content-Length: 640 [11:41:33]Content-Type: application/json [11:41:33] [11:41:33]POST finish read [11:41:33]Found Content-Length = 640 [11:41:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459012", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.000, "sum" : 658.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 658.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:41:33]execute_script... [11:41: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)459012", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.000, "sum" : 658.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 658.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:41:33]POST & json_proto [11:41:33]process_json_proto [11:41:33]json parsed OK: [11:41:33]protocol is kg_v1.0 [11:41:33]action value=close_receipt [11:41:33]process_action close_receipt [11:41:33]cmd_close_receipt [11:41:33]MH_GetDate [11:41:33]Write to MH i2c: F0 00 00 3B 12 3C [11:41:33]Write i2c OK [11:41:33]MH_I2C_Read... [11:41:33]Read from MH i2c: F0 [11:41:33]MH_I2C_Read... [11:41:33]Read from MH i2c: F0 09 00 [11:41:33]MH_I2C_Read... [11:41:33]Read from MH i2c: F0 09 00 3B 12 00 6E B9 93 66 C9 DC B2 64 20 [11:41:33]GetLastDocTimeStamp 1720957247 [11:41:33]current date 1720957294 [11:41:33]FM_GetShiftState [11:41:33]SAM_PROTO_GetShiftState [11:41:33]wFMCommunicate request_size=4 [11:41:33]MH_SAM_APDU [11:41:33]CAPDU: 80 13 01 00 [11:41:33]Write to MH i2c: E2 08 00 3C 12 80 13 01 00 00 00 00 00 CB [11:41:33]Write i2c OK [11:41:33]MH_I2C_Read... [11:41:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:41:33]Read from MH i2c: E2 [11:41:33]MH_I2C_Read... [11:41:33]Read from MH i2c: E2 0E 00 [11:41:33]MH_I2C_Read... [11:41:33]Read from MH i2c: E2 0E 00 3C 12 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 4B [11:41:33]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:41:33]wFMCommunicate OK [11:41:33]SAM_PROTO_GetShiftState done [11:41:33]FM_GetShiftState done [11:41:33]opened in 1720917342 [11:41:33]opened+sec_in_day 1721003742 [11:41:33]quantity*price = 65800 [11:41:33]sum+1 = 65801 [11:41:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 658.00 НСП 1% : 5.82 НДС 12% : 69.88 Наличными: 658.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 114 14.07.2024 11:41 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164916 ФПД: 236444087189554 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T114134&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164916&fm=236444087189554&tin=02508201610067®Number=0000000000090829&sum=65800 [11:41:34]StoreToDocumentArchive [11:41:34]shift 447 fd 164916 [11:41:34]save to /storage/0447/doc_00164916 [11:41:34]save last doc name /storage/0447/doc_00164916 to /storage/kkm_last_doc_name [11:41:34]save OK [11:41:34]Clear old archive folders... [11:41:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:41:34]tlvbuf is 00746AB0 [11:41:34]SAM_PROTO_ClearQueue [11:41:34]wFMCommunicate request_size=4 [11:41:34]MH_SAM_APDU [11:41:34]CAPDU: 80 09 00 00 [11:41:34]Write to MH i2c: E2 08 00 49 12 80 09 00 00 00 00 00 00 CD [11:41:34]Write i2c OK [11:41:34]MH_I2C_Read... [11:41:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:41:34]Read from MH i2c: E2 [11:41:34]MH_I2C_Read... [11:41:34]Read from MH i2c: E2 03 00 [11:41:34]MH_I2C_Read... [11:41:34]Read from MH i2c: E2 03 00 49 12 00 90 00 CF [11:41:34]RAPDU: 90 00 [11:41:34]wFMCommunicate OK [11:41:34]SAM_PROTO_ClearQueue done [11:41:34]KKMCreateOFDPacket [11:41:34]OFDProtocolAddRootSTLVToBuf [11:41:34]FM_MakeSignedData [11:41:34]FM_MakeSignedData [11:41:34]SAM_PROTO_SignData [11:41:34]wFMCommunicate request_size=4 [11:41:34]MH_SAM_APDU [11:41:34]CAPDU: 80 0D 01 02 [11:41:34]Write to MH i2c: E2 08 00 4A 12 80 0D 01 02 00 00 00 00 D5 [11:41:34]Write i2c OK [11:41:34]MH_I2C_Read... [11:41:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:41:34]Read from MH i2c: E2 [11:41:34]MH_I2C_Read... [11:41:34]Read from MH i2c: E2 03 00 [11:41:34]MH_I2C_Read... [11:41:34]Read from MH i2c: E2 03 00 4A 12 00 90 00 D0 [11:41:34]RAPDU: 90 00 [11:41:34]wFMCommunicate OK [11:41:34]wFMCommunicate request_size=255 [11:41:34]MH_SAM_APDU [11:41:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 6E B9 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 34 84 02 00 35 04 06 00 D7 [11:41:34]Write to MH i2c: E2 02 01 4B 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 6E B9 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 34 84 02 00 35 04 06 00 D7 00 00 99 [11:41:34]Write i2c OK [11:41:34]MH_I2C_Read... [11:41:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:41:35]Read from MH i2c: E2 [11:41:35]MH_I2C_Read... [11:41:35]Read from MH i2c: E2 03 00 [11:41:35]MH_I2C_Read... [11:41:35]Read from MH i2c: E2 03 00 4B 12 00 90 00 D1 [11:41:35]RAPDU: 90 00 [11:41:35]wFMCommunicate OK [11:41:35]wFMCommunicate request_size=10 [11:41:35]MH_SAM_APDU [11:41:35]CAPDU: 80 0D 02 02 05 0B 6D D3 80 32 [11:41:35]Write to MH i2c: E2 0D 00 4C 12 80 0D 02 02 05 00 0B 6D D3 80 32 00 00 DF [11:41:35]Write i2c OK [11:41:35]MH_I2C_Read... [11:41:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:41:35]Read from MH i2c: E2 [11:41:35]MH_I2C_Read... [11:41:35]Read from MH i2c: E2 03 00 [11:41:35]MH_I2C_Read... [11:41:35]Read from MH i2c: E2 03 00 4C 12 00 90 00 D2 [11:41:35]RAPDU: 90 00 [11:41:35]wFMCommunicate OK [11:41:35]wFMCommunicate request_size=4 [11:41:35]MH_SAM_APDU [11:41:35]CAPDU: 80 0D 03 02 [11:41:35]Write to MH i2c: E2 08 00 4D 12 80 0D 03 02 00 00 00 00 DA [11:41:35]Write i2c OK [11:41:35]MH_I2C_Read... [11:41:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:41:35]Read from MH i2c: E2 [11:41:35]MH_I2C_Read... [11:41:35]Read from MH i2c: E2 0B 00 [11:41:35]MH_I2C_Read... [11:41:35]Read from MH i2c: E2 0B 00 4D 12 00 8B B3 45 55 E7 79 C7 04 90 00 DE [11:41:35]RAPDU: 8B B3 45 55 E7 79 C7 04 90 00 [11:41:35]wFMCommunicate OK [11:41:35]SAM_PROTO_SignData done [11:41:35]FM_MakeSignedData done [11:41:35]CreateOFDProtocolMessage [11:41:35]wFMCommunicate request_size=4 [11:41:35]MH_SAM_APDU [11:41:35]CAPDU: 80 11 00 00 [11:41:35]Write to MH i2c: E2 08 00 4E 12 80 11 00 00 00 00 00 00 DA [11:41:35]Write i2c OK [11:41:35]MH_I2C_Read... [11:41:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:41:35]Read from MH i2c: E2 [11:41:35]MH_I2C_Read... [11:41:35]Read from MH i2c: E2 17 00 [11:41:35]MH_I2C_Read... [11:41:35]Read from MH i2c: E2 17 00 4E 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 30 [11:41:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:41:35]wFMCommunicate OK [11:41:35]CreateOFDProtocolMessage done [11:41:35]OFDSenderStorePacket 164916 [11:41:35]StoreOFDPacket docnum=164916 [11:41:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 AB 2A 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 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 6E B9 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 34 84 02 00 35 04 06 00 D7 0B 6D D3 80 32 8B B3 45 55 E7 79 C7 04 [11:41:35]CheckFolder [11:41:35]dirname=/storage/ofd_packets [11:41:35]CheckFolder done [11:41:35]ProducePacketName [11:41:35]name=ofd_packets/00164916 [11:41:35]NVStorageSaveData ofd_packets/00164916 [11:41:35]File name is /storage/ofd_packets/00164916 [11:41:35]Write 301 bytes [11:41:35]NVStorageSaveData done [11:41:35]OFDSenderStorePacket done [11:41:35]KKMCreateOFDPacket done [11:41:35]NVStorageSaveData kkm_last_timestamp [11:41:35]File name is /storage/kkm_last_timestamp [11:41:35]Write 4 bytes [11:41:35]NVStorageSaveData done [11:41:35]ExternCall_PrintAddStr [11:41:35]wPrintStart [11:41:35]Write to MH i2c: 01 00 00 4F 12 61 [11:41:35]Write i2c OK [11:41:35]MH_I2C_Read... [11:41:35]Read from MH i2c: 01 [11:41:35]MH_I2C_Read... [11:41:35]Read from MH i2c: 01 07 00 [11:41:35]MH_I2C_Read... [11:41:35]Read from MH i2c: 01 07 00 4F 12 00 00 00 00 00 FF 0F 76 [11:41:35]RasterBufferAndPrint [11:41:35]line Счет N : (1)459012 [11:41:35]line ИНН: 02508201610067 [11:41:35]line Контрольно-Кассовый Чек [11:41:35]line ПРОДАЖА [11:41:35]line ТРК (МРК, ГНК) : 12 [11:41:35]line Товар: 2710124130 [11:41:35]line Аи-92-К-5 [11:41:35]line 10.000 * 65.80 [11:41:35]line = 658.00 [11:41:35]line НДС 12% НСП 1% [11:41:35]line > о реализуемом товаре [11:41:35]line ИТОГО: 658.00 [11:41:35]line НСП 1% : 5.82 [11:41:35]line НДС 12% : 69.88 [11:41:35]line Наличными: 658.00 [11:41:35]line Безнал.: 0.00 [11:41:35]line Место: АЗС № 72 "Партнер Нефть" [11:41:35]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:41:35]line СНО: Общий режим [11:41:35]line Чек 114 14.07.2024 11:41 [11:41:35]line Смена: 447 ФФД: 1.0 [11:41:35]line ЗНМ: 0300000160 [11:41:35]line РНМ: 0000000000090829 [11:41:35]line Версия ККМ: 001 [11:41:35]line ФМ: 0000000000874718 [11:41:35]line ФД: 164916 [11:41:35]line ФПД: 236444087189554 [11:41:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T114134&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164916&fm=236444087189554&tin=02508201610067®Number=0000000000090829&sum=65800 [11:41:35]written 0, free lines is 4095 [11:41:35]OFD Sender: Processing packet 164916 [packets to send 104, broken 103] [11:41:35]ProducePacketName [11:41:35]name=ofd_packets/00164916 [11:41:35]OFD Sender: To server: pG, [11:41:35]CommunicateWithHost lk.salyk.kg:30040 [11:41:35]ConnectInit lk.salyk.kg [11:41:35]Connected sock=9 [11:41:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 AB 2A 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 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 6E B9 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 34 84 02 00 35 04 06 00 D7 0B 6D D3 80 32 8B B3 45 55 E7 79 C7 04 [11:41:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 EB 22 47 00 81 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 34 84 02 00 F4 03 04 00 FC 5F 93 66 B6 04 01 00 00 3E 76 9F A2 34 48 F4 77 [11:41:35]CommunicateWithHost err = 0 [11:41:35]CheckOFDResponse [11:41:35]1017 (14) - 77093643461234 [11:41:35]1041 (16) - 0000000000874718 [11:41:35]1040 (4) - 164916 [11:41:35]1012 (4) - 14.07.2024 05:19 [11:41:35]1206 (1) - 0 [11:41:35]OFD Sender: Remove packet 164916 [11:41:35]ProducePacketName [11:41:35]name=ofd_packets/00164916 [11:41:35]NVStorageDeleteData [11:41:35]Write to MH i2c: 01 00 00 76 12 88 [11:41:35]Write i2c OK [11:41:35]MH_I2C_Read... [11:41:35]Read from MH i2c: 01 [11:41:35]MH_I2C_Read... [11:41:35]Read from MH i2c: 01 07 00 [11:41:35]MH_I2C_Read... [11:41:35]Read from MH i2c: 01 07 00 76 12 00 00 00 00 00 25 0D C1 [11:41:35]RasterBufferAndPrint [11:41:35]line [11:41:35]line [11:41:35]line [11:41:35]line [11:41:35]line [11:41:35]written 0, free lines is 3371 [11:41:35]MH_Cut [11:41:35]Write to MH i2c: D1 01 00 7D 12 01 61 [11:41:35]Write i2c OK [11:41:35]MH_I2C_Read... [11:41:35]Read from MH i2c: D1 [11:41:35]MH_I2C_Read... [11:41:35]Read from MH i2c: D1 01 00 [11:41:35]MH_I2C_Read... [11:41:35]Read from MH i2c: D1 01 00 7D 12 00 60 [11:41:35]Write to MH i2c: 01 00 00 7E 12 90 [11:41:35]Write i2c OK [11:41:35]MH_I2C_Read... [11:41:36]OFD Sender: No OFD packet to send [11:41:36]*** Cut start [11:41:36]*** Partial cut [11:41:36]*** CUTSNS_PIN = 1 [11:41:36]*** CUTSNS_PIN = 0 [11:41:36]*** Brake cut motor [11:41:37]Read from MH i2c: 01 [11:41:37]MH_I2C_Read... [11:41:37]*** Stop cut motor [11:41:37]*** Cut end [11:41:37]Read from MH i2c: 01 07 00 [11:41:37]MH_I2C_Read... [11:41:37]Read from MH i2c: 01 07 00 7E 12 00 00 00 00 00 FF 0F A5 [11:41:37]process_action close_receipt done [11:41:37]requested_data is exist [11:41:37]produce_requested_data [11:41:37]requested_item fm.sn is exist - process it [11:41:37]wFMCommunicate request_size=4 [11:41:37]MH_SAM_APDU [11:41:37]CAPDU: 80 11 00 00 [11:41:37]Write to MH i2c: E2 08 00 7F 12 80 11 00 00 00 00 00 00 0B [11:41:37]Write i2c OK [11:41:37]MH_I2C_Read... [11:41:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:41:37]Read from MH i2c: E2 [11:41:37]MH_I2C_Read... [11:41:37]Read from MH i2c: E2 17 00 [11:41:37]MH_I2C_Read... [11:41:37]Read from MH i2c: E2 17 00 7F 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 61 [11:41:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:41:37]wFMCommunicate OK [11:41:37]requested_item fd.num is exist - process it [11:41:37]SAM_PROTO_GetFieldsCounters [11:41:37]wFMCommunicate request_size=4 [11:41:37]MH_SAM_APDU [11:41:37]CAPDU: 80 13 00 00 [11:41:37]Write to MH i2c: E2 08 00 80 12 80 13 00 00 00 00 00 00 0E [11:41:37]Write i2c OK [11:41:37]MH_I2C_Read... [11:41:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:41:37]Read from MH i2c: E2 [11:41:37]MH_I2C_Read... [11:41:37]Read from MH i2c: E2 62 00 [11:41:37]MH_I2C_Read... [11:41:37]Read from MH i2c: E2 62 00 80 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 34 84 02 00 0E 04 04 00 BF 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 05 [11:41:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 34 84 02 00 0E 04 04 00 BF 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 [11:41:37]wFMCommunicate OK [11:41:37]SAM_PROTO_GetFieldsCounters done [11:41:37]requested_item shift.num is exist - process it [11:41:37]requested_item shift.opened is exist - process it [11:41:37]req_shift_opened [11:41:37]FM_GetShiftState [11:41:37]SAM_PROTO_GetShiftState [11:41:37]wFMCommunicate request_size=4 [11:41:37]MH_SAM_APDU [11:41:37]CAPDU: 80 13 01 00 [11:41:37]Write to MH i2c: E2 08 00 81 12 80 13 01 00 00 00 00 00 10 [11:41:37]Write i2c OK [11:41:37]MH_I2C_Read... [11:41:37]Read from MH i2c: E2 [11:41:37]MH_I2C_Read... [11:41:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:41:37]Read from MH i2c: E2 0E 00 [11:41:37]MH_I2C_Read... [11:41:37]Read from MH i2c: E2 0E 00 81 12 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 90 [11:41:37]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:41:37]wFMCommunicate OK [11:41:37]SAM_PROTO_GetShiftState done [11:41:37]FM_GetShiftState done [11:41:37]req_shift_opened done [11:41:37]requested_item shift.open_date is exist - process it [11:41:37]req_shift_open_date [11:41:37]req_shift_open_date done [11:41:37]produce_requested_data done [11:41:37]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164916,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [11:41:37]process_action_free close_receipt [11:41:37]json_value_free [11:41:37]json_value_free done [11:41:37]process_json_proto returns [11:41:37]Send response to host [11:41:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164916,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [11:41:37]free response buf [11:41:37]execute_script done [11:41:37]execute_script returns [11:41:37]free content buf [11:41:37]Sock 7.Close socket [11:41:37]Sock 7.Thread stoped [11:41:41]OFD Sender: No OFD packet to send [11:41:46]OFD Sender: No OFD packet to send [11:41:51]OFD Sender: No OFD packet to send [11:41:56]OFD Sender: No OFD packet to send [11:42:01]OFD Sender: No OFD packet to send [11:42:06]OFD Sender: No OFD packet to send [11:42:11]OFD Sender: No OFD packet to send [11:42:16]OFD Sender: No OFD packet to send [11:42:21]OFD Sender: No OFD packet to send [11:42:26]OFD Sender: No OFD packet to send [11:42:31]OFD Sender: No OFD packet to send [11:42:36]OFD Sender: No OFD packet to send [11:42:41]OFD Sender: No OFD packet to send [11:42:46]OFD Sender: No OFD packet to send [11:42:51]OFD Sender: No OFD packet to send [11:42:56]OFD Sender: No OFD packet to send [11:43:01]OFD Sender: No OFD packet to send [11:43:06]OFD Sender: No OFD packet to send [11:43:11]OFD Sender: No OFD packet to send [11:43:16]OFD Sender: No OFD packet to send [11:43:21]OFD Sender: No OFD packet to send [11:43:26]OFD Sender: No OFD packet to send [11:43:31]OFD Sender: No OFD packet to send [11:43:36]OFD Sender: No OFD packet to send [11:43:41]OFD Sender: No OFD packet to send [11:43:46]OFD Sender: No OFD packet to send [11:43:51]OFD Sender: No OFD packet to send [11:43:56]OFD Sender: No OFD packet to send [11:44:01]OFD Sender: No OFD packet to send [11:44:06]OFD Sender: No OFD packet to send [11:44:11]OFD Sender: No OFD packet to send [11:44:16]OFD Sender: No OFD packet to send [11:44:21]OFD Sender: No OFD packet to send [11:44:26]OFD Sender: No OFD packet to send [11:44:31]OFD Sender: No OFD packet to send [11:44:36]OFD Sender: No OFD packet to send [11:44:41]OFD Sender: No OFD packet to send [11:44:46]OFD Sender: No OFD packet to send [11:44:51]OFD Sender: No OFD packet to send [11:44:56]OFD Sender: No OFD packet to send [11:45:01]OFD Sender: No OFD packet to send [11:45:06]OFD Sender: No OFD packet to send [11:45:11]OFD Sender: No OFD packet to send [11:45:16]OFD Sender: No OFD packet to send [11:45:21]OFD Sender: No OFD packet to send [11:45:26]OFD Sender: No OFD packet to send [11:45:31]OFD Sender: No OFD packet to send [11:45:36]OFD Sender: No OFD packet to send [11:45:41]OFD Sender: No OFD packet to send [11:45:46]OFD Sender: No OFD packet to send [11:45:51]OFD Sender: No OFD packet to send [11:45:56]OFD Sender: No OFD packet to send [11:46:01]OFD Sender: No OFD packet to send [11:46:06]OFD Sender: No OFD packet to send [11:46:11]OFD Sender: No OFD packet to send [11:46:16]OFD Sender: No OFD packet to send [11:46:21]OFD Sender: No OFD packet to send [11:46:26]OFD Sender: No OFD packet to send [11:46:31]OFD Sender: No OFD packet to send [11:46: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:15]accept exits with 10 [11:49:15]New connection [11:49:15]New thread 3067616612 created [11:49:15]Thread 3067473252 joined [11:49:15]Waiting for new connection... [11:49:15] Sock 10.Parse request [11:49:15]Sock 10.Check first char [11:49:15]Sock 10.First char is OK [11:49:15]request: POST /json_proto HTTP/1.0 [11:49:15]Method: POST [11:49:15]URL: /json_proto [11:49:15]Method is POST - this is cgi request [11:49:15]url: /json_proto [11:49:15]query_string will be loaded in cgi processing [11:49:15]execute_cgi json_proto POST (null) [11:49:15]execute_cgi path=json_proto method=POST [11:49:15]POST find Content-Length [11:49:15]Host: 172.17.56.4:8080 [11:49:15]Content-Length: 677 [11:49:15]Content-Type: application/json [11:49:15] [11:49:15]POST finish read [11:49:15]Found Content-Length = 677 [11:49:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459013", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:49:15]execute_script... [11: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)459013", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:49:15]POST & json_proto [11:49:15]process_json_proto [11:49:15]json parsed OK: [11:49:15]protocol is kg_v1.0 [11:49:15]action value=close_receipt [11:49:15]process_action close_receipt [11:49:15]cmd_close_receipt [11:49:15]MH_GetDate [11:49:15]Write to MH i2c: F0 00 00 82 12 83 [11:49:15]Write i2c OK [11:49:15]MH_I2C_Read... [11:49:15]Read from MH i2c: F0 [11:49:15]MH_I2C_Read... [11:49:15]Read from MH i2c: F0 09 00 [11:49:15]MH_I2C_Read... [11:49:15]Read from MH i2c: F0 09 00 82 12 00 3C BB 93 66 C9 DC B2 64 37 [11:49:15]GetLastDocTimeStamp 1720957294 [11:49:15]current date 1720957756 [11:49:15]FM_GetShiftState [11:49:15]SAM_PROTO_GetShiftState [11:49:15]wFMCommunicate request_size=4 [11:49:15]MH_SAM_APDU [11:49:15]CAPDU: 80 13 01 00 [11:49:15]Write to MH i2c: E2 08 00 83 12 80 13 01 00 00 00 00 00 12 [11:49:15]Write i2c OK [11:49:15]MH_I2C_Read... [11:49:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:15]Read from MH i2c: E2 [11:49:15]MH_I2C_Read... [11:49:15]Read from MH i2c: E2 0E 00 [11:49:15]MH_I2C_Read... [11:49:15]Read from MH i2c: E2 0E 00 83 12 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 92 [11:49:15]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:49:15]wFMCommunicate OK [11:49:15]SAM_PROTO_GetShiftState done [11:49:15]FM_GetShiftState done [11:49:15]opened in 1720917342 [11:49:15]opened+sec_in_day 1721003742 [11:49:15]quantity*price = 60009 [11:49:15]sum+1 = 60011 [11:49:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 115 14.07.2024 11:49 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164917 ФПД: 88802864496139 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T114916&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164917&fm=88802864496139&tin=02508201610067®Number=0000000000090829&sum=60000 [11:49:16]StoreToDocumentArchive [11:49:16]shift 447 fd 164917 [11:49:16]save to /storage/0447/doc_00164917 [11:49:16]save last doc name /storage/0447/doc_00164917 to /storage/kkm_last_doc_name [11:49:16]save OK [11:49:16]Clear old archive folders... [11:49:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:49:16]tlvbuf is B6F4A500 [11:49:16]SAM_PROTO_ClearQueue [11:49:16]wFMCommunicate request_size=4 [11:49:16]MH_SAM_APDU [11:49:16]CAPDU: 80 09 00 00 [11:49:16]Write to MH i2c: E2 08 00 90 12 80 09 00 00 00 00 00 00 14 [11:49:16]Write i2c OK [11:49:16]MH_I2C_Read... [11:49:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:49:16]Read from MH i2c: E2 [11:49:16]MH_I2C_Read... [11:49:16]Read from MH i2c: E2 03 00 [11:49:16]MH_I2C_Read... [11:49:16]Read from MH i2c: E2 03 00 90 12 00 90 00 16 [11:49:16]RAPDU: 90 00 [11:49:16]wFMCommunicate OK [11:49:16]SAM_PROTO_ClearQueue done [11:49:16]KKMCreateOFDPacket [11:49:16]OFDProtocolAddRootSTLVToBuf [11:49:16]FM_MakeSignedData [11:49:16]FM_MakeSignedData [11:49:16]SAM_PROTO_SignData [11:49:16]wFMCommunicate request_size=4 [11:49:16]MH_SAM_APDU [11:49:16]CAPDU: 80 0D 01 02 [11:49:16]Write to MH i2c: E2 08 00 91 12 80 0D 01 02 00 00 00 00 1C [11:49:16]Write i2c OK [11:49:16]MH_I2C_Read... [11:49:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:49:16]Read from MH i2c: E2 [11:49:16]MH_I2C_Read... [11:49:16]Read from MH i2c: E2 03 00 [11:49:16]MH_I2C_Read... [11:49:16]Read from MH i2c: E2 03 00 91 12 00 90 00 17 [11:49:16]RAPDU: 90 00 [11:49:16]wFMCommunicate OK [11:49:16]wFMCommunicate request_size=255 [11:49:16]MH_SAM_APDU [11:49:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A 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 73 00 00 00 F4 03 04 00 3C BB 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 35 84 02 00 35 04 06 00 50 [11:49:16]Write to MH i2c: E2 02 01 92 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A 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 73 00 00 00 F4 03 04 00 3C BB 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 35 84 02 00 35 04 06 00 50 00 00 E4 [11:49:16]Write i2c OK [11:49:16]MH_I2C_Read... [11:49:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:16]Read from MH i2c: E2 [11:49:16]MH_I2C_Read... [11:49:16]Read from MH i2c: E2 03 00 [11:49:16]MH_I2C_Read... [11:49:16]Read from MH i2c: E2 03 00 92 12 00 90 00 18 [11:49:16]RAPDU: 90 00 [11:49:16]wFMCommunicate OK [11:49:16]wFMCommunicate request_size=10 [11:49:16]MH_SAM_APDU [11:49:16]CAPDU: 80 0D 02 02 05 C4 07 31 7E 0B [11:49:16]Write to MH i2c: E2 0D 00 93 12 80 0D 02 02 05 00 C4 07 31 7E 0B 00 00 AE [11:49:16]Write i2c OK [11:49:16]MH_I2C_Read... [11:49:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:16]Read from MH i2c: E2 [11:49:16]MH_I2C_Read... [11:49:16]Read from MH i2c: E2 03 00 [11:49:16]MH_I2C_Read... [11:49:16]Read from MH i2c: E2 03 00 93 12 00 90 00 19 [11:49:16]RAPDU: 90 00 [11:49:16]wFMCommunicate OK [11:49:16]wFMCommunicate request_size=4 [11:49:16]MH_SAM_APDU [11:49:16]CAPDU: 80 0D 03 02 [11:49:16]Write to MH i2c: E2 08 00 94 12 80 0D 03 02 00 00 00 00 21 [11:49:16]Write i2c OK [11:49:16]MH_I2C_Read... [11:49:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:49:16]OFD Sender: No OFD packet to send [11:49:16]Read from MH i2c: E2 [11:49:16]MH_I2C_Read... [11:49:16]Read from MH i2c: E2 0B 00 [11:49:16]MH_I2C_Read... [11:49:16]Read from MH i2c: E2 0B 00 94 12 00 D7 85 DE 30 70 B5 05 D5 90 00 8B [11:49:16]RAPDU: D7 85 DE 30 70 B5 05 D5 90 00 [11:49:16]wFMCommunicate OK [11:49:16]SAM_PROTO_SignData done [11:49:16]FM_MakeSignedData done [11:49:16]CreateOFDProtocolMessage [11:49:16]wFMCommunicate request_size=4 [11:49:16]MH_SAM_APDU [11:49:16]CAPDU: 80 11 00 00 [11:49:16]Write to MH i2c: E2 08 00 95 12 80 11 00 00 00 00 00 00 21 [11:49:16]Write i2c OK [11:49:16]MH_I2C_Read... [11:49:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:16]Read from MH i2c: E2 [11:49:16]MH_I2C_Read... [11:49:16]Read from MH i2c: E2 17 00 [11:49:16]MH_I2C_Read... [11:49:16]Read from MH i2c: E2 17 00 95 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 77 [11:49:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:49:16]wFMCommunicate OK [11:49:16]CreateOFDProtocolMessage done [11:49:16]OFDSenderStorePacket 164917 [11:49:16]StoreOFDPacket docnum=164917 [11:49:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C8 E6 07 01 80 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A 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 73 00 00 00 F4 03 04 00 3C BB 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 35 84 02 00 35 04 06 00 50 C4 07 31 7E 0B D7 85 DE 30 70 B5 05 D5 [11:49:16]CheckFolder [11:49:16]dirname=/storage/ofd_packets [11:49:16]CheckFolder done [11:49:16]ProducePacketName [11:49:16]name=ofd_packets/00164917 [11:49:16]NVStorageSaveData ofd_packets/00164917 [11:49:16]File name is /storage/ofd_packets/00164917 [11:49:16]Write 301 bytes [11:49:16]NVStorageSaveData done [11:49:16]OFDSenderStorePacket done [11:49:16]KKMCreateOFDPacket done [11:49:16]NVStorageSaveData kkm_last_timestamp [11:49:16]File name is /storage/kkm_last_timestamp [11:49:16]Write 4 bytes [11:49:16]NVStorageSaveData done [11:49:16]ExternCall_PrintAddStr [11:49:16]wPrintStart [11:49:16]Write to MH i2c: 01 00 00 96 12 A8 [11:49:16]Write i2c OK [11:49:16]MH_I2C_Read... [11:49:16]Read from MH i2c: 01 [11:49:16]MH_I2C_Read... [11:49:16]Read from MH i2c: 01 07 00 [11:49:16]MH_I2C_Read... [11:49:16]Read from MH i2c: 01 07 00 96 12 00 00 00 00 00 FF 0F BD [11:49:16]RasterBufferAndPrint [11:49:16]line Счет N : (1)459013 [11:49:16]line ИНН: 02508201610067 [11:49:16]line Контрольно-Кассовый Чек [11:49:16]line ПРОДАЖА [11:49:16]line ТРК (МРК, ГНК) : 22 [11:49:16]line Товар: 2710124130 [11:49:16]line Аи-92-К-5 [11:49:16]line 9.120 * 65.80 [11:49:16]line = 600.10 [11:49:16]line НДС 12% НСП 1% [11:49:16]line > о реализуемом товаре [11:49:16]line ОКРУГЛЕНИЕ: -0.10 [11:49:16]line ИТОГО: 600.00 [11:49:16]line Внесено: 600.00 [11:49:16]line СДАЧА: 0.00 [11:49:16]line НСП 1% : 5.31 [11:49:16]line НДС 12% : 63.73 [11:49:16]line Наличными: 600.00 [11:49:16]line Безнал.: 0.00 [11:49:16]line Место: АЗС № 72 "Партнер Нефть" [11:49:16]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:49:16]line СНО: Общий режим [11:49:16]line Чек 115 14.07.2024 11:49 [11:49:16]line Смена: 447 ФФД: 1.0 [11:49:16]line ЗНМ: 0300000160 [11:49:16]line РНМ: 0000000000090829 [11:49:16]line Версия ККМ: 001 [11:49:16]line ФМ: 0000000000874718 [11:49:16]line ФД: 164917 [11:49:16]line ФПД: 88802864496139 [11:49:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T114916&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164917&fm=88802864496139&tin=02508201610067®Number=0000000000090829&sum=60000 [11:49:17]OFD Sender: Processing packet 164917 [packets to send 104, broken 103] [11:49:17]ProducePacketName [11:49:17]name=ofd_packets/00164917 [11:49:17]OFD Sender: To server: pG, [11:49:17]CommunicateWithHost lk.salyk.kg:30040 [11:49:17]ConnectInit lk.salyk.kg [11:49:17]written 0, free lines is 4095 [11:49:17]Connected sock=9 [11:49:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C8 E6 07 01 80 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A 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 73 00 00 00 F4 03 04 00 3C BB 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 35 84 02 00 35 04 06 00 50 C4 07 31 7E 0B D7 85 DE 30 70 B5 05 D5 [11:49:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 52 A7 47 00 D2 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 35 84 02 00 F4 03 04 00 CA 61 93 66 B6 04 01 00 00 87 34 7D 7F 88 2A DC 62 [11:49:17]CommunicateWithHost err = 0 [11:49:17]CheckOFDResponse [11:49:17]1017 (14) - 77093643461234 [11:49:17]1041 (16) - 0000000000874718 [11:49:17]1040 (4) - 164917 [11:49:17]1012 (4) - 14.07.2024 05:27 [11:49:17]1206 (1) - 0 [11:49:17]OFD Sender: Remove packet 164917 [11:49:17]ProducePacketName [11:49:17]name=ofd_packets/00164917 [11:49:17]NVStorageDeleteData [11:49:17]Write to MH i2c: 01 00 00 C0 12 D2 [11:49:17]Write i2c OK [11:49:17]MH_I2C_Read... [11:49:17]Read from MH i2c: 01 [11:49:17]MH_I2C_Read... [11:49:17]Read from MH i2c: 01 07 00 [11:49:17]MH_I2C_Read... [11:49:17]Read from MH i2c: 01 07 00 C0 12 00 00 00 00 00 FD 0C E2 [11:49:17]RasterBufferAndPrint [11:49:17]line [11:49:17]line [11:49:17]line [11:49:17]line [11:49:17]line [11:49:17]written 0, free lines is 3331 [11:49:17]MH_Cut [11:49:17]Write to MH i2c: D1 01 00 C7 12 01 AB [11:49:17]Write i2c OK [11:49:17]MH_I2C_Read... [11:49:17]Read from MH i2c: D1 [11:49:17]MH_I2C_Read... [11:49:17]Read from MH i2c: D1 01 00 [11:49:17]MH_I2C_Read... [11:49:17]Read from MH i2c: D1 01 00 C7 12 00 AA [11:49:17]Write to MH i2c: 01 00 00 C8 12 DA [11:49:17]Write i2c OK [11:49:17]MH_I2C_Read... [11:49:18]OFD Sender: No OFD packet to send [11:49:18]*** Cut start [11:49:18]*** Partial cut [11:49:18]*** CUTSNS_PIN = 1 [11:49:18]*** CUTSNS_PIN = 0 [11:49:18]*** Brake cut motor [11:49:18]Read from MH i2c: 01 [11:49:19]MH_I2C_Read... [11:49:19]*** Stop cut motor [11:49:19]*** Cut end [11:49:19]Read from MH i2c: 01 07 00 [11:49:19]MH_I2C_Read... [11:49:19]Read from MH i2c: 01 07 00 C8 12 00 00 00 00 00 FF 0F EF [11:49:19]process_action close_receipt done [11:49:19]requested_data is exist [11:49:19]produce_requested_data [11:49:19]requested_item fm.sn is exist - process it [11:49:19]wFMCommunicate request_size=4 [11:49:19]MH_SAM_APDU [11:49:19]CAPDU: 80 11 00 00 [11:49:19]Write to MH i2c: E2 08 00 C9 12 80 11 00 00 00 00 00 00 55 [11:49:19]Write i2c OK [11:49:19]MH_I2C_Read... [11:49:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:19]Read from MH i2c: E2 [11:49:19]MH_I2C_Read... [11:49:19]Read from MH i2c: E2 17 00 [11:49:19]MH_I2C_Read... [11:49:19]Read from MH i2c: E2 17 00 C9 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 AB [11:49:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:49:19]wFMCommunicate OK [11:49:19]requested_item fd.num is exist - process it [11:49:19]SAM_PROTO_GetFieldsCounters [11:49:19]wFMCommunicate request_size=4 [11:49:19]MH_SAM_APDU [11:49:19]CAPDU: 80 13 00 00 [11:49:19]Write to MH i2c: E2 08 00 CA 12 80 13 00 00 00 00 00 00 58 [11:49:19]Write i2c OK [11:49:19]MH_I2C_Read... [11:49:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:49:19]Read from MH i2c: E2 [11:49:19]MH_I2C_Read... [11:49:19]Read from MH i2c: E2 62 00 [11:49:19]MH_I2C_Read... [11:49:19]Read from MH i2c: E2 62 00 CA 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 35 84 02 00 0E 04 04 00 BF 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 53 [11:49:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 35 84 02 00 0E 04 04 00 BF 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 [11:49:19]wFMCommunicate OK [11:49:19]SAM_PROTO_GetFieldsCounters done [11:49:19]requested_item shift.num is exist - process it [11:49:19]requested_item shift.opened is exist - process it [11:49:19]req_shift_opened [11:49:19]FM_GetShiftState [11:49:19]SAM_PROTO_GetShiftState [11:49:19]wFMCommunicate request_size=4 [11:49:19]MH_SAM_APDU [11:49:19]CAPDU: 80 13 01 00 [11:49:19]Write to MH i2c: E2 08 00 CB 12 80 13 01 00 00 00 00 00 5A [11:49:19]Write i2c OK [11:49:19]MH_I2C_Read... [11:49:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:19]Read from MH i2c: E2 [11:49:19]MH_I2C_Read... [11:49:19]Read from MH i2c: E2 0E 00 [11:49:19]MH_I2C_Read... [11:49:19]Read from MH i2c: E2 0E 00 CB 12 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 DA [11:49:19]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:49:19]wFMCommunicate OK [11:49:19]SAM_PROTO_GetShiftState done [11:49:19]FM_GetShiftState done [11:49:19]req_shift_opened done [11:49:19]requested_item shift.open_date is exist - process it [11:49:19]req_shift_open_date [11:49:19]req_shift_open_date done [11:49:19]produce_requested_data done [11:49:19]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164917,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [11:49:19]process_action_free close_receipt [11:49:19]json_value_free [11:49:19]json_value_free done [11:49:19]process_json_proto returns [11:49:19]Send response to host [11:49:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164917,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [11:49:19]free response buf [11:49:19]execute_script done [11:49:19]execute_script returns [11:49:19]free content buf [11:49:19]Sock 10.Close socket [11:49:19]Sock 10.Thread stoped [11:49:23]OFD Sender: No OFD packet to send [11:49:28]OFD Sender: No OFD packet to send [11:49:33]OFD Sender: No OFD packet to send [11:49:38]OFD Sender: No OFD packet to send [11:49:43]OFD Sender: No OFD packet to send [11:49:45]accept exits with 7 [11:49:45]New connection [11:49:45]New thread 3067473252 created [11:49:45] Sock 7.Parse request [11:49:45]Thread 3067616612 joined [11:49:45]Sock 7.Check first char [11:49:45]Waiting for new connection... [11:49:45]Sock 7.First char is OK [11:49:45]request: POST /json_proto HTTP/1.0 [11:49:45]Method: POST [11:49:45]URL: /json_proto [11:49:45]Method is POST - this is cgi request [11:49:45]url: /json_proto [11:49:45]query_string will be loaded in cgi processing [11:49:45]execute_cgi json_proto POST (null) [11:49:45]execute_cgi path=json_proto method=POST [11:49:45]POST find Content-Length [11:49:45]Host: 172.17.56.4:8080 [11:49:45]Content-Length: 790 [11:49:45]Content-Type: application/json [11:49:45] [11:49:45]POST finish read [11:49:45]Found Content-Length = 790 [11:49:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459014", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 7.660, "sum" : 499.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 499.59 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:49:45]execute_script... [11:49:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459014", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 7.660, "sum" : 499.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 499.59 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:49:45]POST & json_proto [11:49:45]process_json_proto [11:49:45]json parsed OK: [11:49:45]protocol is kg_v1.0 [11:49:45]action value=close_receipt [11:49:45]process_action close_receipt [11:49:45]cmd_close_receipt [11:49:45]MH_GetDate [11:49:45]Write to MH i2c: F0 00 00 CC 12 CD [11:49:45]Write i2c OK [11:49:45]MH_I2C_Read... [11:49:45]Read from MH i2c: F0 [11:49:45]MH_I2C_Read... [11:49:45]Read from MH i2c: F0 09 00 [11:49:45]MH_I2C_Read... [11:49:45]Read from MH i2c: F0 09 00 CC 12 00 5A BB 93 66 C9 DC B2 64 9F [11:49:45]GetLastDocTimeStamp 1720957756 [11:49:45]current date 1720957786 [11:49:45]FM_GetShiftState [11:49:45]SAM_PROTO_GetShiftState [11:49:45]wFMCommunicate request_size=4 [11:49:45]MH_SAM_APDU [11:49:45]CAPDU: 80 13 01 00 [11:49:45]Write to MH i2c: E2 08 00 CD 12 80 13 01 00 00 00 00 00 5C [11:49:45]Write i2c OK [11:49:45]MH_I2C_Read... [11:49:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:45]Read from MH i2c: E2 [11:49:45]MH_I2C_Read... [11:49:45]Read from MH i2c: E2 0E 00 [11:49:45]MH_I2C_Read... [11:49:45]Read from MH i2c: E2 0E 00 CD 12 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 DC [11:49:45]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:49:45]wFMCommunicate OK [11:49:45]SAM_PROTO_GetShiftState done [11:49:45]FM_GetShiftState done [11:49:45]opened in 1720917342 [11:49:45]opened+sec_in_day 1721003742 [11:49:45]quantity*price = 49958 [11:49:45]sum+1 = 49960 [11:49:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 499.59 НСП 1% : 4.42 НДС 12% : 53.05 Наличными: 0.00 Безнал.: 499.59 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 116 14.07.2024 11:49 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164918 ФПД: 179291781675220 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T114946&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164918&fm=179291781675220&tin=02508201610067®Number=0000000000090829&sum=49959 [11:49:46]StoreToDocumentArchive [11:49:46]shift 447 fd 164918 [11:49:46]save to /storage/0447/doc_00164918 [11:49:46]save last doc name /storage/0447/doc_00164918 to /storage/kkm_last_doc_name [11:49:46]save OK [11:49:46]Clear old archive folders... [11:49:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:49:46]tlvbuf is B6F63B70 [11:49:46]SAM_PROTO_ClearQueue [11:49:46]wFMCommunicate request_size=4 [11:49:46]MH_SAM_APDU [11:49:46]CAPDU: 80 09 00 00 [11:49:46]Write to MH i2c: E2 08 00 DA 12 80 09 00 00 00 00 00 00 5E [11:49:46]Write i2c OK [11:49:46]MH_I2C_Read... [11:49:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:49:46]Read from MH i2c: E2 [11:49:46]MH_I2C_Read... [11:49:46]Read from MH i2c: E2 03 00 [11:49:46]MH_I2C_Read... [11:49:46]Read from MH i2c: E2 03 00 DA 12 00 90 00 60 [11:49:46]RAPDU: 90 00 [11:49:46]wFMCommunicate OK [11:49:46]SAM_PROTO_ClearQueue done [11:49:46]KKMCreateOFDPacket [11:49:46]OFDProtocolAddRootSTLVToBuf [11:49:46]FM_MakeSignedData [11:49:46]FM_MakeSignedData [11:49:46]SAM_PROTO_SignData [11:49:46]wFMCommunicate request_size=4 [11:49:46]MH_SAM_APDU [11:49:46]CAPDU: 80 0D 01 02 [11:49:46]Write to MH i2c: E2 08 00 DB 12 80 0D 01 02 00 00 00 00 66 [11:49:46]Write i2c OK [11:49:46]MH_I2C_Read... [11:49:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:49:46]Read from MH i2c: E2 [11:49:46]MH_I2C_Read... [11:49:46]Read from MH i2c: E2 03 00 [11:49:46]MH_I2C_Read... [11:49:46]Read from MH i2c: E2 03 00 DB 12 00 90 00 61 [11:49:46]RAPDU: 90 00 [11:49:46]wFMCommunicate OK [11:49:46]wFMCommunicate request_size=255 [11:49:46]MH_SAM_APDU [11:49:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 27 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 27 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 27 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 5A BB 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 36 84 02 00 35 04 06 00 A3 [11:49:46]Write to MH i2c: E2 02 01 DC 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 27 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 27 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 27 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 5A BB 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 36 84 02 00 35 04 06 00 A3 00 00 F9 [11:49:46]Write i2c OK [11:49:46]MH_I2C_Read... [11:49:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:46]Read from MH i2c: E2 [11:49:46]MH_I2C_Read... [11:49:46]Read from MH i2c: E2 03 00 [11:49:46]MH_I2C_Read... [11:49:46]Read from MH i2c: E2 03 00 DC 12 00 90 00 62 [11:49:46]RAPDU: 90 00 [11:49:46]wFMCommunicate OK [11:49:46]wFMCommunicate request_size=10 [11:49:46]MH_SAM_APDU [11:49:46]CAPDU: 80 0D 02 02 05 10 9E F5 38 D4 [11:49:46]Write to MH i2c: E2 0D 00 DD 12 80 0D 02 02 05 00 10 9E F5 38 D4 00 00 22 [11:49:46]Write i2c OK [11:49:46]MH_I2C_Read... [11:49:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:46]Read from MH i2c: E2 [11:49:46]MH_I2C_Read... [11:49:46]Read from MH i2c: E2 03 00 [11:49:46]MH_I2C_Read... [11:49:46]Read from MH i2c: E2 03 00 DD 12 00 90 00 63 [11:49:46]RAPDU: 90 00 [11:49:46]wFMCommunicate OK [11:49:46]wFMCommunicate request_size=4 [11:49:46]MH_SAM_APDU [11:49:46]CAPDU: 80 0D 03 02 [11:49:46]Write to MH i2c: E2 08 00 DE 12 80 0D 03 02 00 00 00 00 6B [11:49:46]Write i2c OK [11:49:46]MH_I2C_Read... [11:49:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:49:46]Read from MH i2c: E2 [11:49:46]MH_I2C_Read... [11:49:46]Read from MH i2c: E2 0B 00 [11:49:46]MH_I2C_Read... [11:49:46]Read from MH i2c: E2 0B 00 DE 12 00 78 4B 99 54 CB 65 39 52 90 00 D7 [11:49:46]RAPDU: 78 4B 99 54 CB 65 39 52 90 00 [11:49:46]wFMCommunicate OK [11:49:46]SAM_PROTO_SignData done [11:49:46]FM_MakeSignedData done [11:49:46]CreateOFDProtocolMessage [11:49:46]wFMCommunicate request_size=4 [11:49:46]MH_SAM_APDU [11:49:46]CAPDU: 80 11 00 00 [11:49:46]Write to MH i2c: E2 08 00 DF 12 80 11 00 00 00 00 00 00 6B [11:49:46]Write i2c OK [11:49:46]MH_I2C_Read... [11:49:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:46]Read from MH i2c: E2 [11:49:46]MH_I2C_Read... [11:49:46]Read from MH i2c: E2 17 00 [11:49:46]MH_I2C_Read... [11:49:46]Read from MH i2c: E2 17 00 DF 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C1 [11:49:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:49:46]wFMCommunicate OK [11:49:46]CreateOFDProtocolMessage done [11:49:46]OFDSenderStorePacket 164918 [11:49:46]StoreOFDPacket docnum=164918 [11:49:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 AA 4E 07 01 E3 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 27 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 27 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 27 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 5A BB 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 36 84 02 00 35 04 06 00 A3 10 9E F5 38 D4 78 4B 99 54 CB 65 39 52 [11:49:46]CheckFolder [11:49:46]dirname=/storage/ofd_packets [11:49:46]CheckFolder done [11:49:46]ProducePacketName [11:49:46]name=ofd_packets/00164918 [11:49:46]NVStorageSaveData ofd_packets/00164918 [11:49:46]File name is /storage/ofd_packets/00164918 [11:49:46]Write 301 bytes [11:49:46]NVStorageSaveData done [11:49:46]OFDSenderStorePacket done [11:49:46]KKMCreateOFDPacket done [11:49:46]NVStorageSaveData kkm_last_timestamp [11:49:46]File name is /storage/kkm_last_timestamp [11:49:46]Write 4 bytes [11:49:46]NVStorageSaveData done [11:49:46]ExternCall_PrintAddStr [11:49:46]wPrintStart [11:49:46]Write to MH i2c: 01 00 00 E0 12 F2 [11:49:47]Write i2c OK [11:49:47]MH_I2C_Read... [11:49:47]Read from MH i2c: 01 [11:49:47]MH_I2C_Read... [11:49:47]Read from MH i2c: 01 07 00 [11:49:47]MH_I2C_Read... [11:49:47]Read from MH i2c: 01 07 00 E0 12 00 00 00 00 00 FF 0F 07 [11:49:47]RasterBufferAndPrint [11:49:47]line Счет N : (1)459014 [11:49:47]line ИНН: 02508201610067 [11:49:47]line Контрольно-Кассовый Чек [11:49:47]line ПРОДАЖА [11:49:47]line ТРК (МРК, ГНК) : 12 [11:49:47]line Товар: 2710124130 [11:49:47]line Аи-92-К-5 [11:49:47]line 7.660 * 65.22 [11:49:47]line = 499.59 [11:49:47]line НДС 12% НСП 1% [11:49:47]line > о реализуемом товаре [11:49:47]line ИТОГО: 499.59 [11:49:47]line НСП 1% : 4.42 [11:49:47]line НДС 12% : 53.05 [11:49:47]line Наличными: 0.00 [11:49:47]line Безнал.: 499.59 [11:49:47]line Место: АЗС № 72 "Партнер Нефть" [11:49:47]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:49:47]line СНО: Общий режим [11:49:47]line Чек 116 14.07.2024 11:49 [11:49:47]line Смена: 447 ФФД: 1.0 [11:49:47]line ЗНМ: 0300000160 [11:49:47]line РНМ: 0000000000090829 [11:49:47]line Версия ККМ: 001 [11:49:47]line Платежная система: KICB Банк [11:49:47]line ФМ: 0000000000874718 [11:49:47]line ФД: 164918 [11:49:47]line ФПД: 179291781675220 [11:49:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T114946&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164918&fm=179291781675220&tin=02508201610067®Number=0000000000090829&sum=49959 [11:49:47]written 0, free lines is 4095 [11:49:47]OFD Sender: Processing packet 164918 [packets to send 104, broken 103] [11:49:47]ProducePacketName [11:49:47]name=ofd_packets/00164918 [11:49:47]OFD Sender: To server: pG, [11:49:47]CommunicateWithHost lk.salyk.kg:30040 [11:49:47]ConnectInit lk.salyk.kg [11:49:47]Connected sock=10 [11:49:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 AA 4E 07 01 E3 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 27 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 27 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 27 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 5A BB 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 36 84 02 00 35 04 06 00 A3 10 9E F5 38 D4 78 4B 99 54 CB 65 39 52 [11:49:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 9E 23 47 00 74 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 36 84 02 00 F4 03 04 00 E7 61 93 66 B6 04 01 00 00 35 25 0C B0 D3 01 8D 07 [11:49:47]CommunicateWithHost err = 0 [11:49:47]CheckOFDResponse [11:49:47]1017 (14) - 77093643461234 [11:49:47]1041 (16) - 0000000000874718 [11:49:47]1040 (4) - 164918 [11:49:47]1012 (4) - 14.07.2024 05:28 [11:49:47]1206 (1) - 0 [11:49:47]OFD Sender: Remove packet 164918 [11:49:47]ProducePacketName [11:49:47]name=ofd_packets/00164918 [11:49:47]NVStorageDeleteData [11:49:47]Write to MH i2c: 01 00 00 09 13 1C [11:49:47]Write i2c OK [11:49:47]MH_I2C_Read... [11:49:47]Read from MH i2c: 01 [11:49:47]MH_I2C_Read... [11:49:47]Read from MH i2c: 01 07 00 [11:49:47]MH_I2C_Read... [11:49:47]Read from MH i2c: 01 07 00 09 13 00 00 00 00 00 19 0D 49 [11:49:47]RasterBufferAndPrint [11:49:47]line [11:49:47]line [11:49:47]line [11:49:47]line [11:49:47]line [11:49:47]written 0, free lines is 3359 [11:49:47]MH_Cut [11:49:47]Write to MH i2c: D1 01 00 10 13 01 F5 [11:49:47]Write i2c OK [11:49:47]MH_I2C_Read... [11:49:47]Read from MH i2c: D1 [11:49:47]MH_I2C_Read... [11:49:47]Read from MH i2c: D1 01 00 [11:49:47]MH_I2C_Read... [11:49:47]Read from MH i2c: D1 01 00 10 13 00 F4 [11:49:47]Write to MH i2c: 01 00 00 11 13 24 [11:49:47]Write i2c OK [11:49:47]MH_I2C_Read... [11:49:47]OFD Sender: No OFD packet to send [11:49:48]*** Cut start [11:49:48]*** Partial cut [11:49:48]*** CUTSNS_PIN = 1 [11:49:48]*** CUTSNS_PIN = 0 [11:49:48]*** Brake cut motor [11:49:48]Read from MH i2c: 01 [11:49:48]MH_I2C_Read... [11:49:48]*** Stop cut motor [11:49:48]*** Cut end [11:49:48]Read from MH i2c: 01 07 00 [11:49:48]MH_I2C_Read... [11:49:48]Read from MH i2c: 01 07 00 11 13 00 00 00 00 00 FF 0F 39 [11:49:48]process_action close_receipt done [11:49:48]requested_data is exist [11:49:48]produce_requested_data [11:49:48]requested_item fm.sn is exist - process it [11:49:48]wFMCommunicate request_size=4 [11:49:48]MH_SAM_APDU [11:49:48]CAPDU: 80 11 00 00 [11:49:48]Write to MH i2c: E2 08 00 12 13 80 11 00 00 00 00 00 00 9F [11:49:48]Write i2c OK [11:49:48]MH_I2C_Read... [11:49:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:48]Read from MH i2c: E2 [11:49:48]MH_I2C_Read... [11:49:48]Read from MH i2c: E2 17 00 [11:49:48]MH_I2C_Read... [11:49:48]Read from MH i2c: E2 17 00 12 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F5 [11:49:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:49:48]wFMCommunicate OK [11:49:48]requested_item fd.num is exist - process it [11:49:48]SAM_PROTO_GetFieldsCounters [11:49:48]wFMCommunicate request_size=4 [11:49:48]MH_SAM_APDU [11:49:48]CAPDU: 80 13 00 00 [11:49:48]Write to MH i2c: E2 08 00 13 13 80 13 00 00 00 00 00 00 A2 [11:49:48]Write i2c OK [11:49:48]MH_I2C_Read... [11:49:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:49:48]Read from MH i2c: E2 [11:49:48]MH_I2C_Read... [11:49:48]Read from MH i2c: E2 62 00 [11:49:48]MH_I2C_Read... [11:49:48]Read from MH i2c: E2 62 00 13 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 36 84 02 00 0E 04 04 00 BF 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 A1 [11:49:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 36 84 02 00 0E 04 04 00 BF 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 [11:49:48]wFMCommunicate OK [11:49:48]SAM_PROTO_GetFieldsCounters done [11:49:48]requested_item shift.num is exist - process it [11:49:48]requested_item shift.opened is exist - process it [11:49:48]req_shift_opened [11:49:48]FM_GetShiftState [11:49:48]SAM_PROTO_GetShiftState [11:49:48]wFMCommunicate request_size=4 [11:49:48]MH_SAM_APDU [11:49:48]CAPDU: 80 13 01 00 [11:49:48]Write to MH i2c: E2 08 00 14 13 80 13 01 00 00 00 00 00 A4 [11:49:48]Write i2c OK [11:49:48]MH_I2C_Read... [11:49:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:48]Read from MH i2c: E2 [11:49:48]MH_I2C_Read... [11:49:48]Read from MH i2c: E2 0E 00 [11:49:48]MH_I2C_Read... [11:49:48]Read from MH i2c: E2 0E 00 14 13 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 24 [11:49:48]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:49:48]wFMCommunicate OK [11:49:48]SAM_PROTO_GetShiftState done [11:49:48]FM_GetShiftState done [11:49:48]req_shift_opened done [11:49:48]requested_item shift.open_date is exist - process it [11:49:48]req_shift_open_date [11:49:48]req_shift_open_date done [11:49:48]produce_requested_data done [11:49:48]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164918,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [11:49:48]process_action_free close_receipt [11:49:48]json_value_free [11:49:48]json_value_free done [11:49:48]process_json_proto returns [11:49:48]Send response to host [11:49:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164918,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [11:49:48]free response buf [11:49:48]execute_script done [11:49:48]execute_script returns [11:49:48]free content buf [11:49:48]Sock 7.Close socket [11:49:48]Sock 7.Thread stoped [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]accept exits with 9 [11:50:12]New connection [11:50:12]New thread 3067616612 created [11:50:12]Thread 3067473252 joined [11:50:12]Waiting for new connection... [11:50:12] Sock 9.Parse request [11:50:12]Sock 9.Check first char [11:50:12]Sock 9.First char is OK [11:50:12]request: POST /json_proto HTTP/1.0 [11:50:12]Method: POST [11:50:12]URL: /json_proto [11:50:12]Method is POST - this is cgi request [11:50:12]url: /json_proto [11:50:12]query_string will be loaded in cgi processing [11:50:12]execute_cgi json_proto POST (null) [11:50:12]execute_cgi path=json_proto method=POST [11:50:12]POST find Content-Length [11:50:12]Host: 172.17.56.4:8080 [11:50:12]Content-Length: 677 [11:50:12]Content-Type: application/json [11:50:12] [11:50:12]POST finish read [11:50:12]Found Content-Length = 677 [11:50:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459015", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:50:12]execute_script... [11: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)459015", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:50:12]POST & json_proto [11:50:12]process_json_proto [11:50:12]json parsed OK: [11:50:12]protocol is kg_v1.0 [11:50:12]action value=close_receipt [11:50:12]process_action close_receipt [11:50:12]cmd_close_receipt [11:50:12]MH_GetDate [11:50:12]Write to MH i2c: F0 00 00 15 13 17 [11:50:12]Write i2c OK [11:50:12]MH_I2C_Read... [11:50:12]Read from MH i2c: F0 [11:50:12]MH_I2C_Read... [11:50:12]Read from MH i2c: F0 09 00 [11:50:12]MH_I2C_Read... [11:50:12]Read from MH i2c: F0 09 00 15 13 00 75 BB 93 66 C9 DC B2 64 04 [11:50:12]GetLastDocTimeStamp 1720957786 [11:50:12]current date 1720957813 [11:50:12]FM_GetShiftState [11:50:12]SAM_PROTO_GetShiftState [11:50:12]wFMCommunicate request_size=4 [11:50:12]MH_SAM_APDU [11:50:12]CAPDU: 80 13 01 00 [11:50:12]Write to MH i2c: E2 08 00 16 13 80 13 01 00 00 00 00 00 A6 [11:50:12]Write i2c OK [11:50:12]MH_I2C_Read... [11:50:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:12]Read from MH i2c: E2 [11:50:12]MH_I2C_Read... [11:50:12]Read from MH i2c: E2 0E 00 [11:50:12]MH_I2C_Read... [11:50:12]Read from MH i2c: E2 0E 00 16 13 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 26 [11:50:12]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:50:12]wFMCommunicate OK [11:50:12]SAM_PROTO_GetShiftState done [11:50:12]FM_GetShiftState done [11:50:12]opened in 1720917342 [11:50:12]opened+sec_in_day 1721003742 [11:50:12]quantity*price = 50008 [11:50:12]sum+1 = 50009 [11:50:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 117 14.07.2024 11:50 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164919 ФПД: 202760938945615 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T115013&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164919&fm=202760938945615&tin=02508201610067®Number=0000000000090829&sum=50000 [11:50:13]StoreToDocumentArchive [11:50:13]shift 447 fd 164919 [11:50:13]save to /storage/0447/doc_00164919 [11:50:13]save last doc name /storage/0447/doc_00164919 to /storage/kkm_last_doc_name [11:50:13]save OK [11:50:13]Clear old archive folders... [11:50:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:50:13]tlvbuf is B6F63470 [11:50:13]SAM_PROTO_ClearQueue [11:50:13]wFMCommunicate request_size=4 [11:50:13]MH_SAM_APDU [11:50:13]CAPDU: 80 09 00 00 [11:50:13]Write to MH i2c: E2 08 00 23 13 80 09 00 00 00 00 00 00 A8 [11:50:13]Write i2c OK [11:50:13]MH_I2C_Read... [11:50:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:50:13]Read from MH i2c: E2 [11:50:13]MH_I2C_Read... [11:50:13]Read from MH i2c: E2 03 00 [11:50:13]MH_I2C_Read... [11:50:13]Read from MH i2c: E2 03 00 23 13 00 90 00 AA [11:50:13]RAPDU: 90 00 [11:50:13]wFMCommunicate OK [11:50:13]SAM_PROTO_ClearQueue done [11:50:13]KKMCreateOFDPacket [11:50:13]OFDProtocolAddRootSTLVToBuf [11:50:13]FM_MakeSignedData [11:50:13]FM_MakeSignedData [11:50:13]SAM_PROTO_SignData [11:50:13]wFMCommunicate request_size=4 [11:50:13]MH_SAM_APDU [11:50:13]CAPDU: 80 0D 01 02 [11:50:13]Write to MH i2c: E2 08 00 24 13 80 0D 01 02 00 00 00 00 B0 [11:50:13]Write i2c OK [11:50:13]MH_I2C_Read... [11:50:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:50:13]Read from MH i2c: E2 [11:50:13]MH_I2C_Read... [11:50:13]Read from MH i2c: E2 03 00 [11:50:13]MH_I2C_Read... [11:50:13]Read from MH i2c: E2 03 00 24 13 00 90 00 AB [11:50:13]RAPDU: 90 00 [11:50:13]wFMCommunicate OK [11:50:13]wFMCommunicate request_size=255 [11:50:13]MH_SAM_APDU [11: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 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 75 00 00 00 F4 03 04 00 75 BB 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 37 84 02 00 35 04 06 00 B8 [11:50:13]Write to MH i2c: E2 02 01 25 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 75 00 00 00 F4 03 04 00 75 BB 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 37 84 02 00 35 04 06 00 B8 00 00 FC [11:50:13]Write i2c OK [11:50:13]MH_I2C_Read... [11:50:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:14]Read from MH i2c: E2 [11:50:14]MH_I2C_Read... [11:50:14]Read from MH i2c: E2 03 00 [11:50:14]MH_I2C_Read... [11:50:14]Read from MH i2c: E2 03 00 25 13 00 90 00 AC [11:50:14]RAPDU: 90 00 [11:50:14]wFMCommunicate OK [11:50:14]wFMCommunicate request_size=10 [11:50:14]MH_SAM_APDU [11:50:14]CAPDU: 80 0D 02 02 05 68 F5 BD 7C 4F [11:50:14]Write to MH i2c: E2 0D 00 26 13 80 0D 02 02 05 00 68 F5 BD 7C 4F 00 00 A2 [11:50:14]Write i2c OK [11:50:14]MH_I2C_Read... [11:50:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:14]Read from MH i2c: E2 [11:50:14]MH_I2C_Read... [11:50:14]Read from MH i2c: E2 03 00 [11:50:14]MH_I2C_Read... [11:50:14]Read from MH i2c: E2 03 00 26 13 00 90 00 AD [11:50:14]RAPDU: 90 00 [11:50:14]wFMCommunicate OK [11:50:14]wFMCommunicate request_size=4 [11:50:14]MH_SAM_APDU [11:50:14]CAPDU: 80 0D 03 02 [11:50:14]Write to MH i2c: E2 08 00 27 13 80 0D 03 02 00 00 00 00 B5 [11:50:14]Write i2c OK [11:50:14]MH_I2C_Read... [11:50:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:50:14]Read from MH i2c: E2 [11:50:14]MH_I2C_Read... [11:50:14]Read from MH i2c: E2 0B 00 [11:50:14]MH_I2C_Read... [11:50:14]Read from MH i2c: E2 0B 00 27 13 00 19 06 FE 92 E5 81 45 E4 90 00 F4 [11:50:14]RAPDU: 19 06 FE 92 E5 81 45 E4 90 00 [11:50:14]wFMCommunicate OK [11:50:14]SAM_PROTO_SignData done [11:50:14]FM_MakeSignedData done [11:50:14]CreateOFDProtocolMessage [11:50:14]wFMCommunicate request_size=4 [11:50:14]MH_SAM_APDU [11:50:14]CAPDU: 80 11 00 00 [11:50:14]Write to MH i2c: E2 08 00 28 13 80 11 00 00 00 00 00 00 B5 [11:50:14]Write i2c OK [11:50:14]MH_I2C_Read... [11:50:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:14]Read from MH i2c: E2 [11:50:14]MH_I2C_Read... [11:50:14]Read from MH i2c: E2 17 00 [11:50:14]MH_I2C_Read... [11:50:14]Read from MH i2c: E2 17 00 28 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 0B [11:50:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:50:14]wFMCommunicate OK [11:50:14]CreateOFDProtocolMessage done [11:50:14]OFDSenderStorePacket 164919 [11:50:14]StoreOFDPacket docnum=164919 [11:50:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 80 79 07 01 DF FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 75 00 00 00 F4 03 04 00 75 BB 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 37 84 02 00 35 04 06 00 B8 68 F5 BD 7C 4F 19 06 FE 92 E5 81 45 E4 [11:50:14]CheckFolder [11:50:14]dirname=/storage/ofd_packets [11:50:14]CheckFolder done [11:50:14]ProducePacketName [11:50:14]name=ofd_packets/00164919 [11:50:14]NVStorageSaveData ofd_packets/00164919 [11:50:14]File name is /storage/ofd_packets/00164919 [11:50:14]Write 301 bytes [11:50:14]NVStorageSaveData done [11:50:14]OFDSenderStorePacket done [11:50:14]KKMCreateOFDPacket done [11:50:14]NVStorageSaveData kkm_last_timestamp [11:50:14]File name is /storage/kkm_last_timestamp [11:50:14]Write 4 bytes [11:50:14]NVStorageSaveData done [11:50:14]ExternCall_PrintAddStr [11:50:14]wPrintStart [11:50:14]Write to MH i2c: 01 00 00 29 13 3C [11:50:14]Write i2c OK [11:50:14]MH_I2C_Read... [11:50:14]Read from MH i2c: 01 [11:50:14]MH_I2C_Read... [11:50:14]Read from MH i2c: 01 07 00 [11:50:14]MH_I2C_Read... [11:50:14]Read from MH i2c: 01 07 00 29 13 00 00 00 00 00 FF 0F 51 [11:50:14]RasterBufferAndPrint [11:50:14]line Счет N : (1)459015 [11:50:14]line ИНН: 02508201610067 [11:50:14]line Контрольно-Кассовый Чек [11:50:14]line ПРОДАЖА [11:50:14]line ТРК (МРК, ГНК) : 22 [11:50:14]line Товар: 2710124130 [11:50:14]line Аи-92-К-5 [11:50:14]line 7.600 * 65.80 [11:50:14]line = 500.08 [11:50:14]line НДС 12% НСП 1% [11:50:14]line > о реализуемом товаре [11:50:14]line ОКРУГЛЕНИЕ: -0.08 [11:50:14]line ИТОГО: 500.00 [11:50:14]line Внесено: 500.00 [11:50:14]line СДАЧА: 0.00 [11:50:14]line НСП 1% : 4.42 [11:50:14]line НДС 12% : 53.11 [11:50:14]line Наличными: 500.00 [11:50:14]line Безнал.: 0.00 [11:50:14]line Место: АЗС № 72 "Партнер Нефть" [11:50:14]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:50:14]line СНО: Общий режим [11:50:14]line Чек 117 14.07.2024 11:50 [11:50:14]line Смена: 447 ФФД: 1.0 [11:50:14]line ЗНМ: 0300000160 [11:50:14]line РНМ: 0000000000090829 [11:50:14]line Версия ККМ: 001 [11:50:14]line ФМ: 0000000000874718 [11:50:14]line ФД: 164919 [11:50:14]line ФПД: 202760938945615 [11:50:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T115013&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164919&fm=202760938945615&tin=02508201610067®Number=0000000000090829&sum=50000 [11:50:14]OFD Sender: Processing packet 164919 [packets to send 104, broken 103] [11:50:14]ProducePacketName [11:50:14]name=ofd_packets/00164919 [11:50:14]OFD Sender: To server: pG, [11:50:14]CommunicateWithHost lk.salyk.kg:30040 [11:50:14]ConnectInit lk.salyk.kg [11:50:14]written 0, free lines is 4095 [11:50:14]Connected sock=10 [11:50:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 80 79 07 01 DF FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 75 00 00 00 F4 03 04 00 75 BB 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 37 84 02 00 35 04 06 00 B8 68 F5 BD 7C 4F 19 06 FE 92 E5 81 45 E4 [11:50:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 A2 F1 47 00 ED 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 38 37 34 37 31 38 10 04 04 00 37 84 02 00 F4 03 04 00 03 62 93 66 B6 04 01 00 00 4F 90 F8 C9 52 BE DC A3 [11:50:14]CommunicateWithHost err = 0 [11:50:14]CheckOFDResponse [11:50:14]1017 (14) - 77093643461234 [11:50:14]1041 (16) - 0000000000874718 [11:50:14]1040 (4) - 164919 [11:50:14]1012 (4) - 14.07.2024 05:28 [11:50:14]1206 (1) - 0 [11:50:14]OFD Sender: Remove packet 164919 [11:50:14]ProducePacketName [11:50:14]name=ofd_packets/00164919 [11:50:14]NVStorageDeleteData [11:50:15]Write to MH i2c: 01 00 00 53 13 66 [11:50:15]Write i2c OK [11:50:15]MH_I2C_Read... [11:50:15]Read from MH i2c: 01 [11:50:15]MH_I2C_Read... [11:50:15]Read from MH i2c: 01 07 00 [11:50:15]MH_I2C_Read... [11:50:15]Read from MH i2c: 01 07 00 53 13 00 00 00 00 00 02 0D 7C [11:50:15]RasterBufferAndPrint [11:50:15]line [11:50:15]line [11:50:15]line [11:50:15]line [11:50:15]line [11:50:15]written 0, free lines is 3336 [11:50:15]MH_Cut [11:50:15]Write to MH i2c: D1 01 00 5A 13 01 3F [11:50:15]Write i2c OK [11:50:15]MH_I2C_Read... [11:50:15]Read from MH i2c: D1 [11:50:15]MH_I2C_Read... [11:50:15]Read from MH i2c: D1 01 00 [11:50:15]MH_I2C_Read... [11:50:15]Read from MH i2c: D1 01 00 5A 13 00 3E [11:50:15]Write to MH i2c: 01 00 00 5B 13 6E [11:50:15]Write i2c OK [11:50:15]MH_I2C_Read... [11:50:15]OFD Sender: No OFD packet to send [11:50:15]*** Cut start [11:50:15]*** Partial cut [11:50:15]*** CUTSNS_PIN = 1 [11:50:15]*** CUTSNS_PIN = 0 [11:50:15]*** Brake cut motor [11:50:16]Read from MH i2c: 01 [11:50:16]MH_I2C_Read... [11:50:16]*** Stop cut motor [11:50:16]*** Cut end [11:50:16]Read from MH i2c: 01 07 00 [11:50:16]MH_I2C_Read... [11:50:16]Read from MH i2c: 01 07 00 5B 13 00 00 00 00 00 FF 0F 83 [11:50:16]process_action close_receipt done [11:50:16]requested_data is exist [11:50:16]produce_requested_data [11:50:16]requested_item fm.sn is exist - process it [11:50:16]wFMCommunicate request_size=4 [11:50:16]MH_SAM_APDU [11:50:16]CAPDU: 80 11 00 00 [11:50:16]Write to MH i2c: E2 08 00 5C 13 80 11 00 00 00 00 00 00 E9 [11:50:16]Write i2c OK [11:50:16]MH_I2C_Read... [11:50:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:16]Read from MH i2c: E2 [11:50:16]MH_I2C_Read... [11:50:16]Read from MH i2c: E2 17 00 [11:50:16]MH_I2C_Read... [11:50:16]Read from MH i2c: E2 17 00 5C 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 3F [11:50:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:50:16]wFMCommunicate OK [11:50:16]requested_item fd.num is exist - process it [11:50:16]SAM_PROTO_GetFieldsCounters [11:50:16]wFMCommunicate request_size=4 [11:50:16]MH_SAM_APDU [11:50:16]CAPDU: 80 13 00 00 [11:50:16]Write to MH i2c: E2 08 00 5D 13 80 13 00 00 00 00 00 00 EC [11:50:16]Write i2c OK [11:50:16]MH_I2C_Read... [11:50:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:50:16]Read from MH i2c: E2 [11:50:16]MH_I2C_Read... [11:50:16]Read from MH i2c: E2 62 00 [11:50:16]MH_I2C_Read... [11:50:16]Read from MH i2c: E2 62 00 5D 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 37 84 02 00 0E 04 04 00 BF 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 EF [11:50:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 37 84 02 00 0E 04 04 00 BF 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 [11:50:16]wFMCommunicate OK [11:50:16]SAM_PROTO_GetFieldsCounters done [11:50:16]requested_item shift.num is exist - process it [11:50:16]requested_item shift.opened is exist - process it [11:50:16]req_shift_opened [11:50:16]FM_GetShiftState [11:50:16]SAM_PROTO_GetShiftState [11:50:16]wFMCommunicate request_size=4 [11:50:16]MH_SAM_APDU [11:50:16]CAPDU: 80 13 01 00 [11:50:16]Write to MH i2c: E2 08 00 5E 13 80 13 01 00 00 00 00 00 EE [11:50:16]Write i2c OK [11:50:16]MH_I2C_Read... [11:50:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:16]Read from MH i2c: E2 [11:50:16]MH_I2C_Read... [11:50:16]Read from MH i2c: E2 0E 00 [11:50:16]MH_I2C_Read... [11:50:16]Read from MH i2c: E2 0E 00 5E 13 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 6E [11:50:16]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:50:16]wFMCommunicate OK [11:50:16]SAM_PROTO_GetShiftState done [11:50:16]FM_GetShiftState done [11:50:16]req_shift_opened done [11:50:16]requested_item shift.open_date is exist - process it [11:50:16]req_shift_open_date [11:50:16]req_shift_open_date done [11:50:16]produce_requested_data done [11:50:16]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164919,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [11:50:16]process_action_free close_receipt [11:50:16]json_value_free [11:50:16]json_value_free done [11:50:16]process_json_proto returns [11:50:16]Send response to host [11:50:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164919,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [11:50:16]free response buf [11:50:16]execute_script done [11:50:16]execute_script returns [11:50:16]free content buf [11:50:16]Sock 9.Close socket [11:50:16]Sock 9.Thread stoped [11:50:20]OFD Sender: No OFD packet to send [11:50:25]OFD Sender: No OFD packet to send [11:50:27]accept exits with 7 [11:50:27]New connection [11:50:27]New thread 3067473252 created [11:50:27]Thread 3067616612 joined [11:50:27]Waiting for new connection... [11:50:27] Sock 7.Parse request [11:50:27]Sock 7.Check first char [11:50:27]Sock 7.First char is OK [11:50:27]request: POST /json_proto HTTP/1.0 [11:50:27]Method: POST [11:50:27]URL: /json_proto [11:50:27]Method is POST - this is cgi request [11:50:27]url: /json_proto [11:50:27]query_string will be loaded in cgi processing [11:50:27]execute_cgi json_proto POST (null) [11:50:27]execute_cgi path=json_proto method=POST [11:50:27]POST find Content-Length [11:50:27]Host: 172.17.56.4:8080 [11:50:27]Content-Length: 674 [11:50:27]Content-Type: application/json [11:50:27] [11:50:27]POST finish read [11:50:27]Found Content-Length = 674 [11:50:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459016", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 4.180, "sum" : 300.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:50:27]execute_script... [11:50: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)459016", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 4.180, "sum" : 300.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:50:27]POST & json_proto [11:50:27]process_json_proto [11:50:27]json parsed OK: [11:50:27]protocol is kg_v1.0 [11:50:27]action value=close_receipt [11:50:27]process_action close_receipt [11:50:27]cmd_close_receipt [11:50:27]MH_GetDate [11:50:27]Write to MH i2c: F0 00 00 5F 13 61 [11:50:27]Write i2c OK [11:50:27]MH_I2C_Read... [11:50:27]Read from MH i2c: F0 [11:50:27]MH_I2C_Read... [11:50:27]Read from MH i2c: F0 09 00 [11:50:27]MH_I2C_Read... [11:50:27]Read from MH i2c: F0 09 00 5F 13 00 84 BB 93 66 C9 DC B2 64 5D [11:50:27]GetLastDocTimeStamp 1720957813 [11:50:27]current date 1720957828 [11:50:27]FM_GetShiftState [11:50:27]SAM_PROTO_GetShiftState [11:50:27]wFMCommunicate request_size=4 [11:50:27]MH_SAM_APDU [11:50:27]CAPDU: 80 13 01 00 [11:50:27]Write to MH i2c: E2 08 00 60 13 80 13 01 00 00 00 00 00 F0 [11:50:27]Write i2c OK [11:50:27]MH_I2C_Read... [11:50:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:27]Read from MH i2c: E2 [11:50:27]MH_I2C_Read... [11:50:27]Read from MH i2c: E2 0E 00 [11:50:27]MH_I2C_Read... [11:50:27]Read from MH i2c: E2 0E 00 60 13 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 70 [11:50:27]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:50:27]wFMCommunicate OK [11:50:27]SAM_PROTO_GetShiftState done [11:50:27]FM_GetShiftState done [11:50:27]opened in 1720917342 [11:50:27]opened+sec_in_day 1721003742 [11:50:27]quantity*price = 30054 [11:50:27]sum+1 = 30055 [11:50:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.92 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 118 14.07.2024 11:50 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164920 ФПД: 186127523630322 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T115029&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164920&fm=186127523630322&tin=02508201610067®Number=0000000000090829&sum=30000 [11:50:29]StoreToDocumentArchive [11:50:29]shift 447 fd 164920 [11:50:29]save to /storage/0447/doc_00164920 [11:50:29]save last doc name /storage/0447/doc_00164920 to /storage/kkm_last_doc_name [11:50:29]save OK [11:50:29]Clear old archive folders... [11:50:29]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:50:29]tlvbuf is 007E5860 [11:50:29]SAM_PROTO_ClearQueue [11:50:29]wFMCommunicate request_size=4 [11:50:29]MH_SAM_APDU [11:50:29]CAPDU: 80 09 00 00 [11:50:29]Write to MH i2c: E2 08 00 6D 13 80 09 00 00 00 00 00 00 F2 [11:50:29]Write i2c OK [11:50:29]MH_I2C_Read... [11:50:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:50:29]Read from MH i2c: E2 [11:50:29]MH_I2C_Read... [11:50:29]Read from MH i2c: E2 03 00 [11:50:29]MH_I2C_Read... [11:50:29]Read from MH i2c: E2 03 00 6D 13 00 90 00 F4 [11:50:29]RAPDU: 90 00 [11:50:29]wFMCommunicate OK [11:50:29]SAM_PROTO_ClearQueue done [11:50:29]KKMCreateOFDPacket [11:50:29]OFDProtocolAddRootSTLVToBuf [11:50:29]FM_MakeSignedData [11:50:29]FM_MakeSignedData [11:50:29]SAM_PROTO_SignData [11:50:29]wFMCommunicate request_size=4 [11:50:29]MH_SAM_APDU [11:50:29]CAPDU: 80 0D 01 02 [11:50:29]Write to MH i2c: E2 08 00 6E 13 80 0D 01 02 00 00 00 00 FA [11:50:29]Write i2c OK [11:50:29]MH_I2C_Read... [11:50:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:50:29]Read from MH i2c: E2 [11:50:29]MH_I2C_Read... [11:50:29]Read from MH i2c: E2 03 00 [11:50:29]MH_I2C_Read... [11:50:29]Read from MH i2c: E2 03 00 6E 13 00 90 00 F5 [11:50:29]RAPDU: 90 00 [11:50:29]wFMCommunicate OK [11:50:29]wFMCommunicate request_size=255 [11:50:29]MH_SAM_APDU [11:50:29]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 10 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 66 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 78 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 76 00 00 00 F4 03 04 00 85 BB 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 38 84 02 00 35 04 06 00 A9 48 30 ED [11:50:29]Write to MH i2c: E2 02 01 6F 13 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 10 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 66 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 78 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 76 00 00 00 F4 03 04 00 85 BB 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 38 84 02 00 35 04 06 00 A9 48 30 ED 00 00 E2 [11:50:29]Write i2c OK [11:50:29]MH_I2C_Read... [11:50:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:29]Read from MH i2c: E2 [11:50:29]MH_I2C_Read... [11:50:29]Read from MH i2c: E2 03 00 [11:50:29]MH_I2C_Read... [11:50:29]Read from MH i2c: E2 03 00 6F 13 00 90 00 F6 [11:50:29]RAPDU: 90 00 [11:50:29]wFMCommunicate OK [11:50:29]wFMCommunicate request_size=7 [11:50:29]MH_SAM_APDU [11:50:29]CAPDU: 80 0D 02 02 02 CC F2 [11:50:29]Write to MH i2c: E2 0A 00 70 13 80 0D 02 02 02 00 CC F2 00 00 BF [11:50:29]Write i2c OK [11:50:29]MH_I2C_Read... [11:50:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:29]Read from MH i2c: E2 [11:50:29]MH_I2C_Read... [11:50:29]Read from MH i2c: E2 03 00 [11:50:29]MH_I2C_Read... [11:50:29]Read from MH i2c: E2 03 00 70 13 00 90 00 F7 [11:50:29]RAPDU: 90 00 [11:50:29]wFMCommunicate OK [11:50:29]wFMCommunicate request_size=4 [11:50:29]MH_SAM_APDU [11:50:29]CAPDU: 80 0D 03 02 [11:50:29]Write to MH i2c: E2 08 00 71 13 80 0D 03 02 00 00 00 00 FF [11:50:29]Write i2c OK [11:50:29]MH_I2C_Read... [11:50:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:50:29]Read from MH i2c: E2 [11:50:29]MH_I2C_Read... [11:50:29]Read from MH i2c: E2 0B 00 [11:50:29]MH_I2C_Read... [11:50:29]Read from MH i2c: E2 0B 00 71 13 00 F2 7D F7 9F 8B AD 8A 3F 90 00 06 [11:50:29]RAPDU: F2 7D F7 9F 8B AD 8A 3F 90 00 [11:50:29]wFMCommunicate OK [11:50:29]SAM_PROTO_SignData done [11:50:29]FM_MakeSignedData done [11:50:29]CreateOFDProtocolMessage [11:50:29]wFMCommunicate request_size=4 [11:50:29]MH_SAM_APDU [11:50:29]CAPDU: 80 11 00 00 [11:50:29]Write to MH i2c: E2 08 00 72 13 80 11 00 00 00 00 00 00 FF [11:50:29]Write i2c OK [11:50:29]MH_I2C_Read... [11:50:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:29]Read from MH i2c: E2 [11:50:29]MH_I2C_Read... [11:50:29]Read from MH i2c: E2 17 00 [11:50:29]MH_I2C_Read... [11:50:29]Read from MH i2c: E2 17 00 72 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 55 [11:50:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:50:29]wFMCommunicate OK [11:50:29]CreateOFDProtocolMessage done [11:50:29]OFDSenderStorePacket 164920 [11:50:29]StoreOFDPacket docnum=164920 [11:50:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 E3 76 04 01 67 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 54 10 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 66 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 78 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 76 00 00 00 F4 03 04 00 85 BB 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 38 84 02 00 35 04 06 00 A9 48 30 ED CC F2 F2 7D F7 9F 8B AD 8A 3F [11:50:29]CheckFolder [11:50:29]dirname=/storage/ofd_packets [11:50:29]CheckFolder done [11:50:29]ProducePacketName [11:50:29]name=ofd_packets/00164920 [11:50:29]NVStorageSaveData ofd_packets/00164920 [11:50:29]File name is /storage/ofd_packets/00164920 [11:50:29]Write 298 bytes [11:50:29]NVStorageSaveData done [11:50:29]OFDSenderStorePacket done [11:50:29]KKMCreateOFDPacket done [11:50:29]NVStorageSaveData kkm_last_timestamp [11:50:29]File name is /storage/kkm_last_timestamp [11:50:29]Write 4 bytes [11:50:29]NVStorageSaveData done [11:50:29]ExternCall_PrintAddStr [11:50:29]wPrintStart [11:50:29]Write to MH i2c: 01 00 00 73 13 86 [11:50:29]Write i2c OK [11:50:29]MH_I2C_Read... [11:50:29]Read from MH i2c: 01 [11:50:29]MH_I2C_Read... [11:50:29]Read from MH i2c: 01 07 00 [11:50:29]MH_I2C_Read... [11:50:29]Read from MH i2c: 01 07 00 73 13 00 00 00 00 00 FF 0F 9B [11:50:29]RasterBufferAndPrint [11:50:29]line Счет N : (1)459016 [11:50:29]line ИНН: 02508201610067 [11:50:29]line Контрольно-Кассовый Чек [11:50:29]line ПРОДАЖА [11:50:29]line ТРК (МРК, ГНК) : 11 [11:50:29]line Товар: 2710194210 [11:50:29]line ДТ-К-5 [11:50:29]line 4.180 * 71.90 [11:50:29]line = 300.54 [11:50:29]line НДС 12% НСП 1% [11:50:29]line > о реализуемом товаре [11:50:29]line ОКРУГЛЕНИЕ: -0.54 [11:50:29]line ИТОГО: 300.00 [11:50:29]line Внесено: 300.00 [11:50:29]line СДАЧА: 0.00 [11:50:29]line НСП 1% : 2.66 [11:50:29]line НДС 12% : 31.92 [11:50:29]line Наличными: 300.00 [11:50:29]line Безнал.: 0.00 [11:50:29]line Место: АЗС № 72 "Партнер Нефть" [11:50:29]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:50:29]line СНО: Общий режим [11:50:29]line Чек 118 14.07.2024 11:50 [11:50:29]line Смена: 447 ФФД: 1.0 [11:50:29]line ЗНМ: 0300000160 [11:50:29]line РНМ: 0000000000090829 [11:50:29]line Версия ККМ: 001 [11:50:29]line ФМ: 0000000000874718 [11:50:29]line ФД: 164920 [11:50:29]line ФПД: 186127523630322 [11:50:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T115029&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164920&fm=186127523630322&tin=02508201610067®Number=0000000000090829&sum=30000 [11:50:29]OFD Sender: Processing packet 164920 [packets to send 104, broken 103] [11:50:29]ProducePacketName [11:50:29]name=ofd_packets/00164920 [11:50:29]OFD Sender: To server: pG, [11:50:29]CommunicateWithHost lk.salyk.kg:30040 [11:50:29]ConnectInit lk.salyk.kg [11:50:29]written 0, free lines is 4095 [11:50:30]Connected sock=10 [11:50:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 E3 76 04 01 67 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 54 10 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 66 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 78 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 76 00 00 00 F4 03 04 00 85 BB 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 38 84 02 00 35 04 06 00 A9 48 30 ED CC F2 F2 7D F7 9F 8B AD 8A 3F [11:50:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 63 41 47 00 FF 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 38 84 02 00 F4 03 04 00 12 62 93 66 B6 04 01 00 00 80 8A 75 B2 33 4B F4 88 [11:50:30]CommunicateWithHost err = 0 [11:50:30]CheckOFDResponse [11:50:30]1017 (14) - 77093643461234 [11:50:30]1041 (16) - 0000000000874718 [11:50:30]1040 (4) - 164920 [11:50:30]1012 (4) - 14.07.2024 05:28 [11:50:30]1206 (1) - 0 [11:50:30]OFD Sender: Remove packet 164920 [11:50:30]ProducePacketName [11:50:30]name=ofd_packets/00164920 [11:50:30]NVStorageDeleteData [11:50:30]Write to MH i2c: 01 00 00 9D 13 B0 [11:50:30]Write i2c OK [11:50:30]MH_I2C_Read... [11:50:30]Read from MH i2c: 01 [11:50:30]MH_I2C_Read... [11:50:30]Read from MH i2c: 01 07 00 [11:50:30]MH_I2C_Read... [11:50:30]Read from MH i2c: 01 07 00 9D 13 00 00 00 00 00 F7 0C BA [11:50:30]RasterBufferAndPrint [11:50:30]line [11:50:30]line [11:50:30]line [11:50:30]line [11:50:30]line [11:50:30]written 0, free lines is 3326 [11:50:30]MH_Cut [11:50:30]Write to MH i2c: D1 01 00 A4 13 01 89 [11:50:30]Write i2c OK [11:50:30]MH_I2C_Read... [11:50:30]Read from MH i2c: D1 [11:50:30]MH_I2C_Read... [11:50:30]Read from MH i2c: D1 01 00 [11:50:30]MH_I2C_Read... [11:50:30]Read from MH i2c: D1 01 00 A4 13 00 88 [11:50:30]Write to MH i2c: 01 00 00 A5 13 B8 [11:50:30]Write i2c OK [11:50:30]MH_I2C_Read... [11:50:30]OFD Sender: No OFD packet to send [11:50:31]*** Cut start [11:50:31]*** Partial cut [11:50:31]*** CUTSNS_PIN = 1 [11:50:31]*** CUTSNS_PIN = 0 [11:50:31]*** Brake cut motor [11:50:31]Read from MH i2c: 01 [11:50:31]MH_I2C_Read... [11:50:31]*** Stop cut motor [11:50:31]*** Cut end [11:50:31]Read from MH i2c: 01 07 00 [11:50:31]MH_I2C_Read... [11:50:31]Read from MH i2c: 01 07 00 A5 13 00 00 00 00 00 FF 0F CD [11:50:31]process_action close_receipt done [11:50:31]requested_data is exist [11:50:31]produce_requested_data [11:50:31]requested_item fm.sn is exist - process it [11:50:31]wFMCommunicate request_size=4 [11:50:31]MH_SAM_APDU [11:50:31]CAPDU: 80 11 00 00 [11:50:31]Write to MH i2c: E2 08 00 A6 13 80 11 00 00 00 00 00 00 33 [11:50:31]Write i2c OK [11:50:31]MH_I2C_Read... [11:50:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:31]Read from MH i2c: E2 [11:50:31]MH_I2C_Read... [11:50:31]Read from MH i2c: E2 17 00 [11:50:31]MH_I2C_Read... [11:50:31]Read from MH i2c: E2 17 00 A6 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 89 [11:50:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:50:31]wFMCommunicate OK [11:50:31]requested_item fd.num is exist - process it [11:50:31]SAM_PROTO_GetFieldsCounters [11:50:31]wFMCommunicate request_size=4 [11:50:31]MH_SAM_APDU [11:50:31]CAPDU: 80 13 00 00 [11:50:31]Write to MH i2c: E2 08 00 A7 13 80 13 00 00 00 00 00 00 36 [11:50:31]Write i2c OK [11:50:31]MH_I2C_Read... [11:50:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:50:31]Read from MH i2c: E2 [11:50:31]MH_I2C_Read... [11:50:31]Read from MH i2c: E2 62 00 [11:50:31]MH_I2C_Read... [11:50:31]Read from MH i2c: E2 62 00 A7 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 38 84 02 00 0E 04 04 00 BF 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 3D [11:50:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 38 84 02 00 0E 04 04 00 BF 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 [11:50:31]wFMCommunicate OK [11:50:31]SAM_PROTO_GetFieldsCounters done [11:50:31]requested_item shift.num is exist - process it [11:50:31]requested_item shift.opened is exist - process it [11:50:31]req_shift_opened [11:50:31]FM_GetShiftState [11:50:31]SAM_PROTO_GetShiftState [11:50:31]wFMCommunicate request_size=4 [11:50:31]MH_SAM_APDU [11:50:31]CAPDU: 80 13 01 00 [11:50:31]Write to MH i2c: E2 08 00 A8 13 80 13 01 00 00 00 00 00 38 [11:50:31]Write i2c OK [11:50:31]MH_I2C_Read... [11:50:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:31]Read from MH i2c: E2 [11:50:31]MH_I2C_Read... [11:50:31]Read from MH i2c: E2 0E 00 [11:50:31]MH_I2C_Read... [11:50:31]Read from MH i2c: E2 0E 00 A8 13 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 B8 [11:50:31]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:50:31]wFMCommunicate OK [11:50:31]SAM_PROTO_GetShiftState done [11:50:31]FM_GetShiftState done [11:50:31]req_shift_opened done [11:50:31]requested_item shift.open_date is exist - process it [11:50:31]req_shift_open_date [11:50:31]req_shift_open_date done [11:50:31]produce_requested_data done [11:50:31]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164920,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [11:50:31]process_action_free close_receipt [11:50:31]json_value_free [11:50:31]json_value_free done [11:50:31]process_json_proto returns [11:50:31]Send response to host [11:50:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164920,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [11:50:31]free response buf [11:50:31]execute_script done [11:50:31]execute_script returns [11:50:31]free content buf [11:50:31]Sock 7.Close socket [11:50:31]Sock 7.Thread stoped [11:50:35]OFD Sender: No OFD packet to send [11:50:40]OFD Sender: No OFD packet to send [11:50:45]OFD Sender: No OFD packet to send [11:50:50]OFD Sender: No OFD packet to send [11:50:55]OFD Sender: No OFD packet to send [11:51:00]OFD Sender: No OFD packet to send [11:51:05]OFD Sender: No OFD packet to send [11:51:06]accept exits with 9 [11:51:06]New connection [11:51:06]New thread 3067616612 created [11:51:06]Thread 3067473252 joined [11:51:06]Waiting for new connection... [11:51:06] Sock 9.Parse request [11:51:06]Sock 9.Check first char [11:51:06]Sock 9.First char is OK [11:51:06]request: POST /json_proto HTTP/1.0 [11:51:06]Method: POST [11:51:06]URL: /json_proto [11:51:06]Method is POST - this is cgi request [11:51:06]url: /json_proto [11:51:06]query_string will be loaded in cgi processing [11:51:06]execute_cgi json_proto POST (null) [11:51:06]execute_cgi path=json_proto method=POST [11:51:06]POST find Content-Length [11:51:06]Host: 172.17.56.4:8080 [11:51:06]Content-Length: 678 [11:51:06]Content-Type: application/json [11:51:06] [11:51:06]POST finish read [11:51:06]Found Content-Length = 678 [11:51:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459017", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "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" ] } } [11:51:06]execute_script... [11: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)459017", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "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" ] } } [11:51:06]POST & json_proto [11:51:06]process_json_proto [11:51:06]json parsed OK: [11:51:06]protocol is kg_v1.0 [11:51:06]action value=close_receipt [11:51:06]process_action close_receipt [11:51:06]cmd_close_receipt [11:51:06]MH_GetDate [11:51:06]Write to MH i2c: F0 00 00 A9 13 AB [11:51:06]Write i2c OK [11:51:06]MH_I2C_Read... [11:51:06]Read from MH i2c: F0 [11:51:06]MH_I2C_Read... [11:51:06]Read from MH i2c: F0 09 00 [11:51:06]MH_I2C_Read... [11:51:06]Read from MH i2c: F0 09 00 A9 13 00 AB BB 93 66 C9 DC B2 64 CE [11:51:06]GetLastDocTimeStamp 1720957829 [11:51:06]current date 1720957867 [11:51:06]FM_GetShiftState [11:51:06]SAM_PROTO_GetShiftState [11:51:06]wFMCommunicate request_size=4 [11:51:06]MH_SAM_APDU [11:51:06]CAPDU: 80 13 01 00 [11:51:06]Write to MH i2c: E2 08 00 AA 13 80 13 01 00 00 00 00 00 3A [11:51:06]Write i2c OK [11:51:06]MH_I2C_Read... [11:51:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:06]Read from MH i2c: E2 [11:51:06]MH_I2C_Read... [11:51:06]Read from MH i2c: E2 0E 00 [11:51:06]MH_I2C_Read... [11:51:06]Read from MH i2c: E2 0E 00 AA 13 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 BA [11:51:06]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:51:06]wFMCommunicate OK [11:51:06]SAM_PROTO_GetShiftState done [11:51:06]FM_GetShiftState done [11:51:06]opened in 1720917342 [11:51:06]opened+sec_in_day 1721003742 [11:51:06]quantity*price = 70011 [11:51:06]sum+1 = 70012 [11:51:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 119 14.07.2024 11:51 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164921 ФПД: 182694067055383 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T115107&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164921&fm=182694067055383&tin=02508201610067®Number=0000000000090829&sum=70000 [11:51:07]StoreToDocumentArchive [11:51:07]shift 447 fd 164921 [11:51:07]save to /storage/0447/doc_00164921 [11:51:07]save last doc name /storage/0447/doc_00164921 to /storage/kkm_last_doc_name [11:51:07]save OK [11:51:07]Clear old archive folders... [11:51:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:51:07]tlvbuf is 007E9840 [11:51:07]SAM_PROTO_ClearQueue [11:51:07]wFMCommunicate request_size=4 [11:51:07]MH_SAM_APDU [11:51:07]CAPDU: 80 09 00 00 [11:51:07]Write to MH i2c: E2 08 00 B7 13 80 09 00 00 00 00 00 00 3C [11:51:07]Write i2c OK [11:51:07]MH_I2C_Read... [11:51:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:51:07]Read from MH i2c: E2 [11:51:07]MH_I2C_Read... [11:51:07]Read from MH i2c: E2 03 00 [11:51:07]MH_I2C_Read... [11:51:07]Read from MH i2c: E2 03 00 B7 13 00 90 00 3E [11:51:07]RAPDU: 90 00 [11:51:07]wFMCommunicate OK [11:51:07]SAM_PROTO_ClearQueue done [11:51:07]KKMCreateOFDPacket [11:51:07]OFDProtocolAddRootSTLVToBuf [11:51:07]FM_MakeSignedData [11:51:07]FM_MakeSignedData [11:51:07]SAM_PROTO_SignData [11:51:07]wFMCommunicate request_size=4 [11:51:07]MH_SAM_APDU [11:51:07]CAPDU: 80 0D 01 02 [11:51:07]Write to MH i2c: E2 08 00 B8 13 80 0D 01 02 00 00 00 00 44 [11:51:07]Write i2c OK [11:51:07]MH_I2C_Read... [11:51:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:51:08]Read from MH i2c: E2 [11:51:08]MH_I2C_Read... [11:51:08]Read from MH i2c: E2 03 00 [11:51:08]MH_I2C_Read... [11:51:08]Read from MH i2c: E2 03 00 B8 13 00 90 00 3F [11:51:08]RAPDU: 90 00 [11:51:08]wFMCommunicate OK [11:51:08]wFMCommunicate request_size=255 [11:51:08]MH_SAM_APDU [11: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 77 00 00 00 F4 03 04 00 AB BB 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 39 84 02 00 35 04 06 00 A6 [11:51:08]Write to MH i2c: E2 02 01 B9 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 77 00 00 00 F4 03 04 00 AB BB 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 39 84 02 00 35 04 06 00 A6 00 00 FC [11:51:08]Write i2c OK [11:51:08]MH_I2C_Read... [11:51:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:08]Read from MH i2c: E2 [11:51:08]MH_I2C_Read... [11:51:08]Read from MH i2c: E2 03 00 [11:51:08]MH_I2C_Read... [11:51:08]Read from MH i2c: E2 03 00 B9 13 00 90 00 40 [11:51:08]RAPDU: 90 00 [11:51:08]wFMCommunicate OK [11:51:08]wFMCommunicate request_size=10 [11:51:08]MH_SAM_APDU [11:51:08]CAPDU: 80 0D 02 02 05 28 C6 F8 2B 17 [11:51:08]Write to MH i2c: E2 0D 00 BA 13 80 0D 02 02 05 00 28 C6 F8 2B 17 00 00 79 [11:51:08]Write i2c OK [11:51:08]MH_I2C_Read... [11:51:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:08]Read from MH i2c: E2 [11:51:08]MH_I2C_Read... [11:51:08]Read from MH i2c: E2 03 00 [11:51:08]MH_I2C_Read... [11:51:08]Read from MH i2c: E2 03 00 BA 13 00 90 00 41 [11:51:08]RAPDU: 90 00 [11:51:08]wFMCommunicate OK [11:51:08]wFMCommunicate request_size=4 [11:51:08]MH_SAM_APDU [11:51:08]CAPDU: 80 0D 03 02 [11:51:08]Write to MH i2c: E2 08 00 BB 13 80 0D 03 02 00 00 00 00 49 [11:51:08]Write i2c OK [11:51:08]MH_I2C_Read... [11:51:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:51:08]Read from MH i2c: E2 [11:51:08]MH_I2C_Read... [11:51:08]Read from MH i2c: E2 0B 00 [11:51:08]MH_I2C_Read... [11:51:08]Read from MH i2c: E2 0B 00 BB 13 00 F5 54 71 D7 77 62 81 0F 90 00 44 [11:51:08]RAPDU: F5 54 71 D7 77 62 81 0F 90 00 [11:51:08]wFMCommunicate OK [11:51:08]SAM_PROTO_SignData done [11:51:08]FM_MakeSignedData done [11:51:08]CreateOFDProtocolMessage [11:51:08]wFMCommunicate request_size=4 [11:51:08]MH_SAM_APDU [11:51:08]CAPDU: 80 11 00 00 [11:51:08]Write to MH i2c: E2 08 00 BC 13 80 11 00 00 00 00 00 00 49 [11:51:08]Write i2c OK [11:51:08]MH_I2C_Read... [11:51:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:08]Read from MH i2c: E2 [11:51:08]MH_I2C_Read... [11:51:08]Read from MH i2c: E2 17 00 [11:51:08]MH_I2C_Read... [11:51:08]Read from MH i2c: E2 17 00 BC 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 9F [11:51:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:51:08]wFMCommunicate OK [11:51:08]CreateOFDProtocolMessage done [11:51:08]OFDSenderStorePacket 164921 [11:51:08]StoreOFDPacket docnum=164921 [11:51:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 42 9A 07 01 4C E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 77 00 00 00 F4 03 04 00 AB BB 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 39 84 02 00 35 04 06 00 A6 28 C6 F8 2B 17 F5 54 71 D7 77 62 81 0F [11:51:08]CheckFolder [11:51:08]dirname=/storage/ofd_packets [11:51:08]CheckFolder done [11:51:08]ProducePacketName [11:51:08]name=ofd_packets/00164921 [11:51:08]NVStorageSaveData ofd_packets/00164921 [11:51:08]File name is /storage/ofd_packets/00164921 [11:51:08]Write 301 bytes [11:51:08]NVStorageSaveData done [11:51:08]OFDSenderStorePacket done [11:51:08]KKMCreateOFDPacket done [11:51:08]NVStorageSaveData kkm_last_timestamp [11:51:08]File name is /storage/kkm_last_timestamp [11:51:08]Write 4 bytes [11:51:08]NVStorageSaveData done [11:51:08]ExternCall_PrintAddStr [11:51:08]wPrintStart [11:51:08]Write to MH i2c: 01 00 00 BD 13 D0 [11:51:08]Write i2c OK [11:51:08]MH_I2C_Read... [11:51:08]Read from MH i2c: 01 [11:51:08]MH_I2C_Read... [11:51:08]Read from MH i2c: 01 07 00 [11:51:08]MH_I2C_Read... [11:51:08]Read from MH i2c: 01 07 00 BD 13 00 00 00 00 00 FF 0F E5 [11:51:08]RasterBufferAndPrint [11:51:08]line Счет N : (1)459017 [11:51:08]line ИНН: 02508201610067 [11:51:08]line Контрольно-Кассовый Чек [11:51:08]line ПРОДАЖА [11:51:08]line ТРК (МРК, ГНК) : 22 [11:51:08]line Товар: 2710124130 [11:51:08]line Аи-92-К-5 [11:51:08]line 10.640 * 65.80 [11:51:08]line = 700.11 [11:51:08]line НДС 12% НСП 1% [11:51:08]line > о реализуемом товаре [11:51:08]line ОКРУГЛЕНИЕ: -0.11 [11:51:08]line ИТОГО: 700.00 [11:51:08]line Внесено: 700.00 [11:51:08]line СДАЧА: 0.00 [11:51:08]line НСП 1% : 6.20 [11:51:08]line НДС 12% : 74.35 [11:51:08]line Наличными: 700.00 [11:51:08]line Безнал.: 0.00 [11:51:08]line Место: АЗС № 72 "Партнер Нефть" [11:51:08]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:51:08]line СНО: Общий режим [11:51:08]line Чек 119 14.07.2024 11:51 [11:51:08]line Смена: 447 ФФД: 1.0 [11:51:08]line ЗНМ: 0300000160 [11:51:08]line РНМ: 0000000000090829 [11:51:08]line Версия ККМ: 001 [11:51:08]line ФМ: 0000000000874718 [11:51:08]line ФД: 164921 [11:51:08]line ФПД: 182694067055383 [11:51:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T115107&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164921&fm=182694067055383&tin=02508201610067®Number=0000000000090829&sum=70000 [11:51:08]written 0, free lines is 4095 [11:51:08]OFD Sender: Processing packet 164921 [packets to send 104, broken 103] [11:51:08]ProducePacketName [11:51:08]name=ofd_packets/00164921 [11:51:08]OFD Sender: To server: pG, [11:51:08]CommunicateWithHost lk.salyk.kg:30040 [11:51:08]ConnectInit lk.salyk.kg [11:51:08]Connected sock=10 [11:51:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 42 9A 07 01 4C E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 77 00 00 00 F4 03 04 00 AB BB 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 39 84 02 00 35 04 06 00 A6 28 C6 F8 2B 17 F5 54 71 D7 77 62 81 0F [11:51:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 7F F4 47 00 C9 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 39 84 02 00 F4 03 04 00 39 62 93 66 B6 04 01 00 00 FF 2F 24 45 D9 ED 0A FA [11:51:08]CommunicateWithHost err = 0 [11:51:08]CheckOFDResponse [11:51:08]1017 (14) - 77093643461234 [11:51:08]1041 (16) - 0000000000874718 [11:51:08]1040 (4) - 164921 [11:51:08]1012 (4) - 14.07.2024 05:29 [11:51:08]1206 (1) - 0 [11:51:08]OFD Sender: Remove packet 164921 [11:51:08]ProducePacketName [11:51:08]name=ofd_packets/00164921 [11:51:08]NVStorageDeleteData [11:51:08]Write to MH i2c: 01 00 00 E7 13 FA [11:51:08]Write i2c OK [11:51:08]MH_I2C_Read... [11:51:08]Read from MH i2c: 01 [11:51:08]MH_I2C_Read... [11:51:08]Read from MH i2c: 01 07 00 [11:51:08]MH_I2C_Read... [11:51:08]Read from MH i2c: 01 07 00 E7 13 00 00 00 00 00 FB 0C 08 [11:51:08]RasterBufferAndPrint [11:51:08]line [11:51:08]line [11:51:08]line [11:51:08]line [11:51:08]line [11:51:08]written 0, free lines is 3329 [11:51:08]MH_Cut [11:51:08]Write to MH i2c: D1 01 00 EE 13 01 D3 [11:51:08]Write i2c OK [11:51:08]MH_I2C_Read... [11:51:08]Read from MH i2c: D1 [11:51:08]MH_I2C_Read... [11:51:08]Read from MH i2c: D1 01 00 [11:51:08]MH_I2C_Read... [11:51:08]Read from MH i2c: D1 01 00 EE 13 00 D2 [11:51:08]Write to MH i2c: 01 00 00 EF 13 02 [11:51:08]Write i2c OK [11:51:08]MH_I2C_Read... [11:51:09]OFD Sender: No OFD packet to send [11:51:09]*** Cut start [11:51:09]*** Partial cut [11:51:09]*** CUTSNS_PIN = 1 [11:51:09]*** CUTSNS_PIN = 0 [11:51:09]*** Brake cut motor [11:51:10]Read from MH i2c: 01 [11:51:10]MH_I2C_Read... [11:51:10]*** Stop cut motor [11:51:10]*** Cut end [11:51:10]Read from MH i2c: 01 07 00 [11:51:10]MH_I2C_Read... [11:51:10]Read from MH i2c: 01 07 00 EF 13 00 00 00 00 00 FF 0F 17 [11:51:10]process_action close_receipt done [11:51:10]requested_data is exist [11:51:10]produce_requested_data [11:51:10]requested_item fm.sn is exist - process it [11:51:10]wFMCommunicate request_size=4 [11:51:10]MH_SAM_APDU [11:51:10]CAPDU: 80 11 00 00 [11:51:10]Write to MH i2c: E2 08 00 F0 13 80 11 00 00 00 00 00 00 7D [11:51:10]Write i2c OK [11:51:10]MH_I2C_Read... [11:51:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:10]Read from MH i2c: E2 [11:51:10]MH_I2C_Read... [11:51:10]Read from MH i2c: E2 17 00 [11:51:10]MH_I2C_Read... [11:51:10]Read from MH i2c: E2 17 00 F0 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D3 [11:51:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:51:10]wFMCommunicate OK [11:51:10]requested_item fd.num is exist - process it [11:51:10]SAM_PROTO_GetFieldsCounters [11:51:10]wFMCommunicate request_size=4 [11:51:10]MH_SAM_APDU [11:51:10]CAPDU: 80 13 00 00 [11:51:10]Write to MH i2c: E2 08 00 F1 13 80 13 00 00 00 00 00 00 80 [11:51:10]Write i2c OK [11:51:10]MH_I2C_Read... [11:51:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:51:10]Read from MH i2c: E2 [11:51:10]MH_I2C_Read... [11:51:10]Read from MH i2c: E2 62 00 [11:51:10]MH_I2C_Read... [11:51:10]Read from MH i2c: E2 62 00 F1 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 39 84 02 00 0E 04 04 00 BF 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 8B [11:51:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 39 84 02 00 0E 04 04 00 BF 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 [11:51:10]wFMCommunicate OK [11:51:10]SAM_PROTO_GetFieldsCounters done [11:51:10]requested_item shift.num is exist - process it [11:51:10]requested_item shift.opened is exist - process it [11:51:10]req_shift_opened [11:51:10]FM_GetShiftState [11:51:10]SAM_PROTO_GetShiftState [11:51:10]wFMCommunicate request_size=4 [11:51:10]MH_SAM_APDU [11:51:10]CAPDU: 80 13 01 00 [11:51:10]Write to MH i2c: E2 08 00 F2 13 80 13 01 00 00 00 00 00 82 [11:51:10]Write i2c OK [11:51:10]MH_I2C_Read... [11:51:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:10]Read from MH i2c: E2 [11:51:10]MH_I2C_Read... [11:51:10]Read from MH i2c: E2 0E 00 [11:51:10]MH_I2C_Read... [11:51:10]Read from MH i2c: E2 0E 00 F2 13 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 02 [11:51:10]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:51:10]wFMCommunicate OK [11:51:10]SAM_PROTO_GetShiftState done [11:51:10]FM_GetShiftState done [11:51:10]req_shift_opened done [11:51:10]requested_item shift.open_date is exist - process it [11:51:10]req_shift_open_date [11:51:10]req_shift_open_date done [11:51:10]produce_requested_data done [11:51:10]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164921,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [11:51:10]process_action_free close_receipt [11:51:10]json_value_free [11:51:10]json_value_free done [11:51:10]process_json_proto returns [11:51:10]Send response to host [11:51:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164921,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [11:51:10]free response buf [11:51:10]execute_script done [11:51:10]execute_script returns [11:51:10]free content buf [11:51:10]Sock 9.Close socket [11:51:10]Sock 9.Thread stoped [11:51:14]OFD Sender: No OFD packet to send [11:51:19]OFD Sender: No OFD packet to send [11:51:24]OFD Sender: No OFD packet to send [11:51:29]OFD Sender: No OFD packet to send [11:51:34]OFD Sender: No OFD packet to send [11:51:39]accept exits with 7 [11:51:39]New connection [11:51:39]New thread 3067473252 created [11:51:39]Thread 3067616612 joined [11:51:39]Waiting for new connection... [11:51:39] Sock 7.Parse request [11:51:39]Sock 7.Check first char [11:51:39]Sock 7.First char is OK [11:51:39]request: POST /json_proto HTTP/1.0 [11:51:39]Method: POST [11:51:39]URL: /json_proto [11:51:39]Method is POST - this is cgi request [11:51:39]url: /json_proto [11:51:39]query_string will be loaded in cgi processing [11:51:39]execute_cgi json_proto POST (null) [11:51:39]execute_cgi path=json_proto method=POST [11:51:39]POST find Content-Length [11:51:39]Host: 172.17.56.4:8080 [11:51:39]Content-Length: 677 [11:51:39]Content-Type: application/json [11:51:39] [11:51:39]POST finish read [11:51:39]Found Content-Length = 677 [11:51:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459018", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:51:39]execute_script... [11:51: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)459018", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:51:39]POST & json_proto [11:51:39]process_json_proto [11:51:39]json parsed OK: [11:51:39]protocol is kg_v1.0 [11:51:39]action value=close_receipt [11:51:39]process_action close_receipt [11:51:39]cmd_close_receipt [11:51:39]MH_GetDate [11:51:39]Write to MH i2c: F0 00 00 F3 13 F5 [11:51:39]Write i2c OK [11:51:39]MH_I2C_Read... [11:51:39]Read from MH i2c: F0 [11:51:39]MH_I2C_Read... [11:51:39]Read from MH i2c: F0 09 00 [11:51:39]MH_I2C_Read... [11:51:39]Read from MH i2c: F0 09 00 F3 13 00 CC BB 93 66 C9 DC B2 64 39 [11:51:39]GetLastDocTimeStamp 1720957867 [11:51:39]current date 1720957900 [11:51:39]FM_GetShiftState [11:51:39]SAM_PROTO_GetShiftState [11:51:39]wFMCommunicate request_size=4 [11:51:39]MH_SAM_APDU [11:51:39]CAPDU: 80 13 01 00 [11:51:39]Write to MH i2c: E2 08 00 F4 13 80 13 01 00 00 00 00 00 84 [11:51:39]Write i2c OK [11:51:39]MH_I2C_Read... [11:51:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:39]Read from MH i2c: E2 [11:51:39]MH_I2C_Read... [11:51:39]Read from MH i2c: E2 0E 00 [11:51:39]MH_I2C_Read... [11:51:39]Read from MH i2c: E2 0E 00 F4 13 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 04 [11:51:39]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:51:39]wFMCommunicate OK [11:51:39]SAM_PROTO_GetShiftState done [11:51:39]FM_GetShiftState done [11:51:39]opened in 1720917342 [11:51:39]opened+sec_in_day 1721003742 [11:51:39]quantity*price = 50008 [11:51:39]sum+1 = 50009 [11:51:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 120 14.07.2024 11:51 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164922 ФПД: 102589710430751 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T115140&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164922&fm=102589710430751&tin=02508201610067®Number=0000000000090829&sum=50000 [11:51:40]StoreToDocumentArchive [11:51:40]shift 447 fd 164922 [11:51:40]save to /storage/0447/doc_00164922 [11:51:40]save last doc name /storage/0447/doc_00164922 to /storage/kkm_last_doc_name [11:51:40]save OK [11:51:40]Clear old archive folders... [11:51:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:51:40]tlvbuf is B6FFA360 [11:51:40]SAM_PROTO_ClearQueue [11:51:40]wFMCommunicate request_size=4 [11:51:40]MH_SAM_APDU [11:51:40]CAPDU: 80 09 00 00 [11:51:40]Write to MH i2c: E2 08 00 01 14 80 09 00 00 00 00 00 00 87 [11:51:40]Write i2c OK [11:51:40]MH_I2C_Read... [11:51:40]Read from MH i2c: E2 [11:51:40]MH_I2C_Read... [11:51:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:51:40]Read from MH i2c: E2 03 00 [11:51:40]MH_I2C_Read... [11:51:40]Read from MH i2c: E2 03 00 01 14 00 90 00 89 [11:51:40]RAPDU: 90 00 [11:51:40]wFMCommunicate OK [11:51:40]SAM_PROTO_ClearQueue done [11:51:40]KKMCreateOFDPacket [11:51:40]OFDProtocolAddRootSTLVToBuf [11:51:40]FM_MakeSignedData [11:51:40]FM_MakeSignedData [11:51:40]SAM_PROTO_SignData [11:51:40]wFMCommunicate request_size=4 [11:51:40]MH_SAM_APDU [11:51:40]CAPDU: 80 0D 01 02 [11:51:40]Write to MH i2c: E2 08 00 02 14 80 0D 01 02 00 00 00 00 8F [11:51:40]Write i2c OK [11:51:40]MH_I2C_Read... [11:51:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:51:40]Read from MH i2c: E2 [11:51:40]MH_I2C_Read... [11:51:40]Read from MH i2c: E2 03 00 [11:51:40]MH_I2C_Read... [11:51:40]Read from MH i2c: E2 03 00 02 14 00 90 00 8A [11:51:40]RAPDU: 90 00 [11:51:40]wFMCommunicate OK [11:51:40]wFMCommunicate request_size=255 [11:51:40]MH_SAM_APDU [11:51:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 78 00 00 00 F4 03 04 00 CC BB 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3A 84 02 00 35 04 06 00 5D [11:51:40]Write to MH i2c: E2 02 01 03 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 78 00 00 00 F4 03 04 00 CC BB 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3A 84 02 00 35 04 06 00 5D 00 00 DD [11:51:40]Write i2c OK [11:51:40]MH_I2C_Read... [11:51:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:40]Read from MH i2c: E2 [11:51:40]MH_I2C_Read... [11:51:40]Read from MH i2c: E2 03 00 [11:51:40]MH_I2C_Read... [11:51:40]Read from MH i2c: E2 03 00 03 14 00 90 00 8B [11:51:40]RAPDU: 90 00 [11:51:40]wFMCommunicate OK [11:51:40]wFMCommunicate request_size=10 [11:51:40]MH_SAM_APDU [11:51:40]CAPDU: 80 0D 02 02 05 4E 07 3F 72 1F [11:51:40]Write to MH i2c: E2 0D 00 04 14 80 0D 02 02 05 00 4E 07 3F 72 1F 00 00 C1 [11:51:40]Write i2c OK [11:51:40]MH_I2C_Read... [11:51:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:40]Read from MH i2c: E2 [11:51:40]MH_I2C_Read... [11:51:40]Read from MH i2c: E2 03 00 [11:51:40]MH_I2C_Read... [11:51:40]Read from MH i2c: E2 03 00 04 14 00 90 00 8C [11:51:40]RAPDU: 90 00 [11:51:40]wFMCommunicate OK [11:51:40]wFMCommunicate request_size=4 [11:51:40]MH_SAM_APDU [11:51:40]CAPDU: 80 0D 03 02 [11:51:40]Write to MH i2c: E2 08 00 05 14 80 0D 03 02 00 00 00 00 94 [11:51:40]Write i2c OK [11:51:40]MH_I2C_Read... [11:51:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:51:40]Read from MH i2c: E2 [11:51:40]MH_I2C_Read... [11:51:40]Read from MH i2c: E2 0B 00 [11:51:40]MH_I2C_Read... [11:51:40]Read from MH i2c: E2 0B 00 05 14 00 58 DE 06 00 17 85 D7 7B 90 00 BF [11:51:40]RAPDU: 58 DE 06 00 17 85 D7 7B 90 00 [11:51:40]wFMCommunicate OK [11:51:40]SAM_PROTO_SignData done [11:51:40]FM_MakeSignedData done [11:51:40]CreateOFDProtocolMessage [11:51:40]wFMCommunicate request_size=4 [11:51:40]MH_SAM_APDU [11:51:40]CAPDU: 80 11 00 00 [11:51:40]Write to MH i2c: E2 08 00 06 14 80 11 00 00 00 00 00 00 94 [11:51:40]Write i2c OK [11:51:40]MH_I2C_Read... [11:51:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:40]Read from MH i2c: E2 [11:51:40]MH_I2C_Read... [11:51:40]Read from MH i2c: E2 17 00 [11:51:40]MH_I2C_Read... [11:51:40]Read from MH i2c: E2 17 00 06 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 EA [11:51:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:51:40]wFMCommunicate OK [11:51:40]CreateOFDProtocolMessage done [11:51:40]OFDSenderStorePacket 164922 [11:51:40]StoreOFDPacket docnum=164922 [11:51:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 59 1B 07 01 93 E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 78 00 00 00 F4 03 04 00 CC BB 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3A 84 02 00 35 04 06 00 5D 4E 07 3F 72 1F 58 DE 06 00 17 85 D7 7B [11:51:40]CheckFolder [11:51:40]dirname=/storage/ofd_packets [11:51:40]CheckFolder done [11:51:40]ProducePacketName [11:51:40]name=ofd_packets/00164922 [11:51:40]NVStorageSaveData ofd_packets/00164922 [11:51:40]File name is /storage/ofd_packets/00164922 [11:51:40]Write 301 bytes [11:51:40]NVStorageSaveData done [11:51:40]OFDSenderStorePacket done [11:51:40]KKMCreateOFDPacket done [11:51:40]NVStorageSaveData kkm_last_timestamp [11:51:40]File name is /storage/kkm_last_timestamp [11:51:40]Write 4 bytes [11:51:40]NVStorageSaveData done [11:51:40]ExternCall_PrintAddStr [11:51:40]wPrintStart [11:51:40]Write to MH i2c: 01 00 00 07 14 1B [11:51:40]Write i2c OK [11:51:40]MH_I2C_Read... [11:51:40]Read from MH i2c: 01 [11:51:40]MH_I2C_Read... [11:51:40]Read from MH i2c: 01 07 00 [11:51:40]MH_I2C_Read... [11:51:40]Read from MH i2c: 01 07 00 07 14 00 00 00 00 00 FF 0F 30 [11:51:40]RasterBufferAndPrint [11:51:40]line Счет N : (1)459018 [11:51:40]line ИНН: 02508201610067 [11:51:40]line Контрольно-Кассовый Чек [11:51:40]line ПРОДАЖА [11:51:40]line ТРК (МРК, ГНК) : 12 [11:51:40]line Товар: 2710124130 [11:51:40]line Аи-92-К-5 [11:51:40]line 7.600 * 65.80 [11:51:40]line = 500.08 [11:51:40]line НДС 12% НСП 1% [11:51:40]line > о реализуемом товаре [11:51:40]line ОКРУГЛЕНИЕ: -0.08 [11:51:40]line ИТОГО: 500.00 [11:51:40]line Внесено: 500.00 [11:51:40]line СДАЧА: 0.00 [11:51:40]line НСП 1% : 4.42 [11:51:40]line НДС 12% : 53.11 [11:51:40]line Наличными: 500.00 [11:51:40]line Безнал.: 0.00 [11:51:40]line Место: АЗС № 72 "Партнер Нефть" [11:51:40]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:51:40]line СНО: Общий режим [11:51:40]line Чек 120 14.07.2024 11:51 [11:51:40]line Смена: 447 ФФД: 1.0 [11:51:40]line ЗНМ: 0300000160 [11:51:40]line РНМ: 0000000000090829 [11:51:40]line Версия ККМ: 001 [11:51:40]line ФМ: 0000000000874718 [11:51:40]line ФД: 164922 [11:51:40]line ФПД: 102589710430751 [11:51:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T115140&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164922&fm=102589710430751&tin=02508201610067®Number=0000000000090829&sum=50000 [11:51:41]OFD Sender: Processing packet 164922 [packets to send 104, broken 103] [11:51:41]ProducePacketName [11:51:41]name=ofd_packets/00164922 [11:51:41]OFD Sender: To server: pG, [11:51:41]CommunicateWithHost lk.salyk.kg:30040 [11:51:41]ConnectInit lk.salyk.kg [11:51:41]written 0, free lines is 4095 [11:51:41]Connected sock=10 [11:51:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 59 1B 07 01 93 E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 78 00 00 00 F4 03 04 00 CC BB 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3A 84 02 00 35 04 06 00 5D 4E 07 3F 72 1F 58 DE 06 00 17 85 D7 7B [11:51:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 4C 3B 47 00 4F E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3A 84 02 00 F4 03 04 00 5A 62 93 66 B6 04 01 00 00 5C 60 4C F5 73 94 D3 09 [11:51:41]CommunicateWithHost err = 0 [11:51:41]CheckOFDResponse [11:51:41]1017 (14) - 77093643461234 [11:51:41]1041 (16) - 0000000000874718 [11:51:41]1040 (4) - 164922 [11:51:41]1012 (4) - 14.07.2024 05:30 [11:51:41]1206 (1) - 0 [11:51:41]OFD Sender: Remove packet 164922 [11:51:41]ProducePacketName [11:51:41]name=ofd_packets/00164922 [11:51:41]NVStorageDeleteData [11:51:41]Write to MH i2c: 01 00 00 31 14 45 [11:51:41]Write i2c OK [11:51:41]MH_I2C_Read... [11:51:41]Read from MH i2c: 01 [11:51:41]MH_I2C_Read... [11:51:41]Read from MH i2c: 01 07 00 [11:51:41]MH_I2C_Read... [11:51:41]Read from MH i2c: 01 07 00 31 14 00 00 00 00 00 01 0D 5A [11:51:41]RasterBufferAndPrint [11:51:41]line [11:51:41]line [11:51:41]line [11:51:41]line [11:51:41]line [11:51:41]written 0, free lines is 3335 [11:51:41]MH_Cut [11:51:41]Write to MH i2c: D1 01 00 38 14 01 1E [11:51:41]Write i2c OK [11:51:41]MH_I2C_Read... [11:51:41]Read from MH i2c: D1 [11:51:41]MH_I2C_Read... [11:51:41]Read from MH i2c: D1 01 00 [11:51:41]MH_I2C_Read... [11:51:41]Read from MH i2c: D1 01 00 38 14 00 1D [11:51:41]Write to MH i2c: 01 00 00 39 14 4D [11:51:41]Write i2c OK [11:51:41]MH_I2C_Read... [11:51:42]OFD Sender: No OFD packet to send [11:51:42]*** Cut start [11:51:42]*** Partial cut [11:51:42]*** CUTSNS_PIN = 1 [11:51:42]*** CUTSNS_PIN = 0 [11:51:42]*** Brake cut motor [11:51:43]Read from MH i2c: 01 [11:51:43]MH_I2C_Read... [11:51:43]*** Stop cut motor [11:51:43]*** Cut end [11:51:43]Read from MH i2c: 01 07 00 [11:51:43]MH_I2C_Read... [11:51:43]Read from MH i2c: 01 07 00 39 14 00 00 00 00 00 FF 0F 62 [11:51:43]process_action close_receipt done [11:51:43]requested_data is exist [11:51:43]produce_requested_data [11:51:43]requested_item fm.sn is exist - process it [11:51:43]wFMCommunicate request_size=4 [11:51:43]MH_SAM_APDU [11:51:43]CAPDU: 80 11 00 00 [11:51:43]Write to MH i2c: E2 08 00 3A 14 80 11 00 00 00 00 00 00 C8 [11:51:43]Write i2c OK [11:51:43]MH_I2C_Read... [11:51:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:43]Read from MH i2c: E2 [11:51:43]MH_I2C_Read... [11:51:43]Read from MH i2c: E2 17 00 [11:51:43]MH_I2C_Read... [11:51:43]Read from MH i2c: E2 17 00 3A 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 1E [11:51:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:51:43]wFMCommunicate OK [11:51:43]requested_item fd.num is exist - process it [11:51:43]SAM_PROTO_GetFieldsCounters [11:51:43]wFMCommunicate request_size=4 [11:51:43]MH_SAM_APDU [11:51:43]CAPDU: 80 13 00 00 [11:51:43]Write to MH i2c: E2 08 00 3B 14 80 13 00 00 00 00 00 00 CB [11:51:43]Write i2c OK [11:51:43]MH_I2C_Read... [11:51:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:51:43]Read from MH i2c: E2 [11:51:43]MH_I2C_Read... [11:51:43]Read from MH i2c: E2 62 00 [11:51:43]MH_I2C_Read... [11:51:43]Read from MH i2c: E2 62 00 3B 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 3A 84 02 00 0E 04 04 00 BF 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 DA [11:51:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 3A 84 02 00 0E 04 04 00 BF 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 [11:51:43]wFMCommunicate OK [11:51:43]SAM_PROTO_GetFieldsCounters done [11:51:43]requested_item shift.num is exist - process it [11:51:43]requested_item shift.opened is exist - process it [11:51:43]req_shift_opened [11:51:43]FM_GetShiftState [11:51:43]SAM_PROTO_GetShiftState [11:51:43]wFMCommunicate request_size=4 [11:51:43]MH_SAM_APDU [11:51:43]CAPDU: 80 13 01 00 [11:51:43]Write to MH i2c: E2 08 00 3C 14 80 13 01 00 00 00 00 00 CD [11:51:43]Write i2c OK [11:51:43]MH_I2C_Read... [11:51:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:43]Read from MH i2c: E2 [11:51:43]MH_I2C_Read... [11:51:43]Read from MH i2c: E2 0E 00 [11:51:43]MH_I2C_Read... [11:51:43]Read from MH i2c: E2 0E 00 3C 14 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 4D [11:51:43]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:51:43]wFMCommunicate OK [11:51:43]SAM_PROTO_GetShiftState done [11:51:43]FM_GetShiftState done [11:51:43]req_shift_opened done [11:51:43]requested_item shift.open_date is exist - process it [11:51:43]req_shift_open_date [11:51:43]req_shift_open_date done [11:51:43]produce_requested_data done [11:51:43]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164922,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [11:51:43]process_action_free close_receipt [11:51:43]json_value_free [11:51:43]json_value_free done [11:51:43]process_json_proto returns [11:51:43]Send response to host [11:51:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164922,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [11:51:43]free response buf [11:51:43]execute_script done [11:51:43]execute_script returns [11:51:43]free content buf [11:51:43]Sock 7.Close socket [11:51:43]Sock 7.Thread stoped [11:51:47]OFD Sender: No OFD packet to send [11:51:52]OFD Sender: No OFD packet to send [11:51:57]OFD Sender: No OFD packet to send [11:52:02]OFD Sender: No OFD packet to send [11:52:07]OFD Sender: No OFD packet to send [11:52:12]OFD Sender: No OFD packet to send [11:52:17]OFD Sender: No OFD packet to send [11:52:22]OFD Sender: No OFD packet to send [11:52:27]OFD Sender: No OFD packet to send [11:52:32]OFD Sender: No OFD packet to send [11:52:37]OFD Sender: No OFD packet to send [11:52:42]OFD Sender: No OFD packet to send [11:52:47]OFD Sender: No OFD packet to send [11:52:52]OFD Sender: No OFD packet to send [11:52:57]OFD Sender: No OFD packet to send [11:53:02]OFD Sender: No OFD packet to send [11:53:07]OFD Sender: No OFD packet to send [11:53:08]accept exits with 9 [11:53:08]New connection [11:53:08]New thread 3067616612 created [11:53:08]Thread 3067473252 joined [11:53:08]Waiting for new connection... [11:53:08] Sock 9.Parse request [11:53:08]Sock 9.Check first char [11:53:08]Sock 9.First char is OK [11:53:08]request: POST /json_proto HTTP/1.0 [11:53:08]Method: POST [11:53:08]URL: /json_proto [11:53:08]Method is POST - this is cgi request [11:53:08]url: /json_proto [11:53:08]query_string will be loaded in cgi processing [11:53:08]execute_cgi json_proto POST (null) [11:53:08]execute_cgi path=json_proto method=POST [11:53:08]POST find Content-Length [11:53:08]Host: 172.17.56.4:8080 [11:53:08]Content-Length: 677 [11:53:08]Content-Type: application/json [11:53:08] [11:53:08]POST finish read [11:53:08]Found Content-Length = 677 [11:53:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459019", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:53:08]execute_script... [11: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)459019", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:53:08]POST & json_proto [11:53:08]process_json_proto [11:53:08]json parsed OK: [11:53:08]protocol is kg_v1.0 [11:53:08]action value=close_receipt [11:53:08]process_action close_receipt [11:53:08]cmd_close_receipt [11:53:08]MH_GetDate [11:53:08]Write to MH i2c: F0 00 00 3D 14 40 [11:53:08]Write i2c OK [11:53:08]MH_I2C_Read... [11:53:08]Read from MH i2c: F0 [11:53:08]MH_I2C_Read... [11:53:08]Read from MH i2c: F0 09 00 [11:53:08]MH_I2C_Read... [11:53:08]Read from MH i2c: F0 09 00 3D 14 00 25 BC 93 66 C9 DC B2 64 DE [11:53:08]GetLastDocTimeStamp 1720957900 [11:53:08]current date 1720957989 [11:53:08]FM_GetShiftState [11:53:08]SAM_PROTO_GetShiftState [11:53:08]wFMCommunicate request_size=4 [11:53:08]MH_SAM_APDU [11:53:08]CAPDU: 80 13 01 00 [11:53:08]Write to MH i2c: E2 08 00 3E 14 80 13 01 00 00 00 00 00 CF [11:53:08]Write i2c OK [11:53:08]MH_I2C_Read... [11:53:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:08]Read from MH i2c: E2 [11:53:08]MH_I2C_Read... [11:53:08]Read from MH i2c: E2 0E 00 [11:53:08]MH_I2C_Read... [11:53:08]Read from MH i2c: E2 0E 00 3E 14 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 4F [11:53:08]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:53:08]wFMCommunicate OK [11:53:08]SAM_PROTO_GetShiftState done [11:53:08]FM_GetShiftState done [11:53:08]opened in 1720917342 [11:53:08]opened+sec_in_day 1721003742 [11:53:08]quantity*price = 50008 [11:53:08]sum+1 = 50009 [11:53:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 121 14.07.2024 11:53 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164923 ФПД: 225157805561313 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T115309&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164923&fm=225157805561313&tin=02508201610067®Number=0000000000090829&sum=50000 [11:53:09]StoreToDocumentArchive [11:53:09]shift 447 fd 164923 [11:53:09]save to /storage/0447/doc_00164923 [11:53:09]save last doc name /storage/0447/doc_00164923 to /storage/kkm_last_doc_name [11:53:09]save OK [11:53:09]Clear old archive folders... [11:53:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:53:09]tlvbuf is 007A8B20 [11:53:09]SAM_PROTO_ClearQueue [11:53:09]wFMCommunicate request_size=4 [11:53:09]MH_SAM_APDU [11:53:09]CAPDU: 80 09 00 00 [11:53:09]Write to MH i2c: E2 08 00 4B 14 80 09 00 00 00 00 00 00 D1 [11:53:09]Write i2c OK [11:53:09]MH_I2C_Read... [11:53:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:53:09]Read from MH i2c: E2 [11:53:09]MH_I2C_Read... [11:53:09]Read from MH i2c: E2 03 00 [11:53:09]MH_I2C_Read... [11:53:09]Read from MH i2c: E2 03 00 4B 14 00 90 00 D3 [11:53:09]RAPDU: 90 00 [11:53:09]wFMCommunicate OK [11:53:09]SAM_PROTO_ClearQueue done [11:53:09]KKMCreateOFDPacket [11:53:09]OFDProtocolAddRootSTLVToBuf [11:53:09]FM_MakeSignedData [11:53:09]FM_MakeSignedData [11:53:09]SAM_PROTO_SignData [11:53:09]wFMCommunicate request_size=4 [11:53:09]MH_SAM_APDU [11:53:09]CAPDU: 80 0D 01 02 [11:53:09]Write to MH i2c: E2 08 00 4C 14 80 0D 01 02 00 00 00 00 D9 [11:53:09]Write i2c OK [11:53:09]MH_I2C_Read... [11:53:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:53:09]Read from MH i2c: E2 [11:53:09]MH_I2C_Read... [11:53:09]Read from MH i2c: E2 03 00 [11:53:09]MH_I2C_Read... [11:53:09]Read from MH i2c: E2 03 00 4C 14 00 90 00 D4 [11:53:09]RAPDU: 90 00 [11:53:09]wFMCommunicate OK [11:53:09]wFMCommunicate request_size=255 [11:53:09]MH_SAM_APDU [11:53:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 79 00 00 00 F4 03 04 00 25 BC 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3B 84 02 00 35 04 06 00 CC [11:53:09]Write to MH i2c: E2 02 01 4D 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 79 00 00 00 F4 03 04 00 25 BC 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3B 84 02 00 35 04 06 00 CC 00 00 F2 [11:53:09]Write i2c OK [11:53:09]MH_I2C_Read... [11:53:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:09]Read from MH i2c: E2 [11:53:09]MH_I2C_Read... [11:53:09]Read from MH i2c: E2 03 00 [11:53:09]MH_I2C_Read... [11:53:09]Read from MH i2c: E2 03 00 4D 14 00 90 00 D5 [11:53:09]RAPDU: 90 00 [11:53:09]wFMCommunicate OK [11:53:09]wFMCommunicate request_size=10 [11:53:09]MH_SAM_APDU [11:53:09]CAPDU: 80 0D 02 02 05 C7 A3 04 D5 E1 [11:53:09]Write to MH i2c: E2 0D 00 4E 14 80 0D 02 02 05 00 C7 A3 04 D5 E1 00 00 0A [11:53:09]Write i2c OK [11:53:09]MH_I2C_Read... [11:53:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:09]Read from MH i2c: E2 [11:53:09]MH_I2C_Read... [11:53:09]Read from MH i2c: E2 03 00 [11:53:09]MH_I2C_Read... [11:53:09]Read from MH i2c: E2 03 00 4E 14 00 90 00 D6 [11:53:09]RAPDU: 90 00 [11:53:09]wFMCommunicate OK [11:53:09]wFMCommunicate request_size=4 [11:53:09]MH_SAM_APDU [11:53:09]CAPDU: 80 0D 03 02 [11:53:09]Write to MH i2c: E2 08 00 4F 14 80 0D 03 02 00 00 00 00 DE [11:53:09]Write i2c OK [11:53:09]MH_I2C_Read... [11:53:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:53:09]Read from MH i2c: E2 [11:53:09]MH_I2C_Read... [11:53:09]Read from MH i2c: E2 0B 00 [11:53:09]MH_I2C_Read... [11:53:09]Read from MH i2c: E2 0B 00 4F 14 00 9B 12 A0 C1 64 15 1C E6 90 00 68 [11:53:09]RAPDU: 9B 12 A0 C1 64 15 1C E6 90 00 [11:53:09]wFMCommunicate OK [11:53:09]SAM_PROTO_SignData done [11:53:09]FM_MakeSignedData done [11:53:09]CreateOFDProtocolMessage [11:53:09]wFMCommunicate request_size=4 [11:53:09]MH_SAM_APDU [11:53:09]CAPDU: 80 11 00 00 [11:53:09]Write to MH i2c: E2 08 00 50 14 80 11 00 00 00 00 00 00 DE [11:53:09]Write i2c OK [11:53:09]MH_I2C_Read... [11:53:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:09]Read from MH i2c: E2 [11:53:09]MH_I2C_Read... [11:53:09]Read from MH i2c: E2 17 00 [11:53:09]MH_I2C_Read... [11:53:09]Read from MH i2c: E2 17 00 50 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 34 [11:53:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:53:09]wFMCommunicate OK [11:53:09]CreateOFDProtocolMessage done [11:53:09]OFDSenderStorePacket 164923 [11:53:09]StoreOFDPacket docnum=164923 [11:53:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 59 E7 07 01 07 F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 79 00 00 00 F4 03 04 00 25 BC 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3B 84 02 00 35 04 06 00 CC C7 A3 04 D5 E1 9B 12 A0 C1 64 15 1C E6 [11:53:09]CheckFolder [11:53:09]dirname=/storage/ofd_packets [11:53:09]CheckFolder done [11:53:09]ProducePacketName [11:53:09]name=ofd_packets/00164923 [11:53:09]NVStorageSaveData ofd_packets/00164923 [11:53:09]File name is /storage/ofd_packets/00164923 [11:53:09]Write 301 bytes [11:53:09]NVStorageSaveData done [11:53:09]OFDSenderStorePacket done [11:53:09]KKMCreateOFDPacket done [11:53:09]NVStorageSaveData kkm_last_timestamp [11:53:09]File name is /storage/kkm_last_timestamp [11:53:09]Write 4 bytes [11:53:09]NVStorageSaveData done [11:53:09]ExternCall_PrintAddStr [11:53:09]wPrintStart [11:53:09]Write to MH i2c: 01 00 00 51 14 65 [11:53:09]Write i2c OK [11:53:09]MH_I2C_Read... [11:53:09]Read from MH i2c: 01 [11:53:09]MH_I2C_Read... [11:53:09]Read from MH i2c: 01 07 00 [11:53:09]MH_I2C_Read... [11:53:09]Read from MH i2c: 01 07 00 51 14 00 00 00 00 00 FF 0F 7A [11:53:09]RasterBufferAndPrint [11:53:09]line Счет N : (1)459019 [11:53:09]line ИНН: 02508201610067 [11:53:09]line Контрольно-Кассовый Чек [11:53:09]line ПРОДАЖА [11:53:09]line ТРК (МРК, ГНК) : 22 [11:53:09]line Товар: 2710124130 [11:53:09]line Аи-92-К-5 [11:53:09]line 7.600 * 65.80 [11:53:09]line = 500.08 [11:53:09]line НДС 12% НСП 1% [11:53:09]line > о реализуемом товаре [11:53:09]line ОКРУГЛЕНИЕ: -0.08 [11:53:09]line ИТОГО: 500.00 [11:53:09]line Внесено: 500.00 [11:53:09]line СДАЧА: 0.00 [11:53:09]line НСП 1% : 4.42 [11:53:09]line НДС 12% : 53.11 [11:53:09]line Наличными: 500.00 [11:53:09]line Безнал.: 0.00 [11:53:09]line Место: АЗС № 72 "Партнер Нефть" [11:53:09]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:53:09]line СНО: Общий режим [11:53:09]line Чек 121 14.07.2024 11:53 [11:53:09]line Смена: 447 ФФД: 1.0 [11:53:09]line ЗНМ: 0300000160 [11:53:09]line РНМ: 0000000000090829 [11:53:09]line Версия ККМ: 001 [11:53:09]line ФМ: 0000000000874718 [11:53:09]line ФД: 164923 [11:53:09]line ФПД: 225157805561313 [11:53:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T115309&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164923&fm=225157805561313&tin=02508201610067®Number=0000000000090829&sum=50000 [11:53:10]OFD Sender: Processing packet 164923 [packets to send 104, broken 103] [11:53:10]ProducePacketName [11:53:10]name=ofd_packets/00164923 [11:53:10]OFD Sender: To server: pG, [11:53:10]CommunicateWithHost lk.salyk.kg:30040 [11:53:10]ConnectInit lk.salyk.kg [11:53:10]written 0, free lines is 4095 [11:53:10]Connected sock=10 [11:53:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 59 E7 07 01 07 F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 79 00 00 00 F4 03 04 00 25 BC 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3B 84 02 00 35 04 06 00 CC C7 A3 04 D5 E1 9B 12 A0 C1 64 15 1C E6 [11:53:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 CC 09 47 00 8E 28 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3B 84 02 00 F4 03 04 00 B3 62 93 66 B6 04 01 00 00 D8 58 E2 2A EC 86 D4 3A [11:53:10]CommunicateWithHost err = 0 [11:53:10]CheckOFDResponse [11:53:10]1017 (14) - 77093643461234 [11:53:10]1041 (16) - 0000000000874718 [11:53:10]1040 (4) - 164923 [11:53:10]1012 (4) - 14.07.2024 05:31 [11:53:10]1206 (1) - 0 [11:53:10]OFD Sender: Remove packet 164923 [11:53:10]ProducePacketName [11:53:10]name=ofd_packets/00164923 [11:53:10]NVStorageDeleteData [11:53:10]Write to MH i2c: 01 00 00 7B 14 8F [11:53:10]Write i2c OK [11:53:10]MH_I2C_Read... [11:53:10]Read from MH i2c: 01 [11:53:10]MH_I2C_Read... [11:53:10]Read from MH i2c: 01 07 00 [11:53:10]MH_I2C_Read... [11:53:10]Read from MH i2c: 01 07 00 7B 14 00 00 00 00 00 F3 0C 95 [11:53:10]RasterBufferAndPrint [11:53:10]line [11:53:10]line [11:53:10]line [11:53:10]line [11:53:10]line [11:53:10]written 0, free lines is 3322 [11:53:10]MH_Cut [11:53:10]Write to MH i2c: D1 01 00 82 14 01 68 [11:53:10]Write i2c OK [11:53:10]MH_I2C_Read... [11:53:10]Read from MH i2c: D1 [11:53:10]MH_I2C_Read... [11:53:10]Read from MH i2c: D1 01 00 [11:53:10]MH_I2C_Read... [11:53:10]Read from MH i2c: D1 01 00 82 14 00 67 [11:53:10]Write to MH i2c: 01 00 00 83 14 97 [11:53:10]Write i2c OK [11:53:10]MH_I2C_Read... [11:53:10]OFD Sender: No OFD packet to send [11:53:11]*** Cut start [11:53:11]*** Partial cut [11:53:11]*** CUTSNS_PIN = 1 [11:53:11]*** CUTSNS_PIN = 0 [11:53:11]*** Brake cut motor [11:53:11]Read from MH i2c: 01 [11:53:11]MH_I2C_Read... [11:53:11]*** Stop cut motor [11:53:11]*** Cut end [11:53:11]Read from MH i2c: 01 07 00 [11:53:11]MH_I2C_Read... [11:53:11]Read from MH i2c: 01 07 00 83 14 00 00 00 00 00 FF 0F AC [11:53:11]process_action close_receipt done [11:53:11]requested_data is exist [11:53:11]produce_requested_data [11:53:11]requested_item fm.sn is exist - process it [11:53:11]wFMCommunicate request_size=4 [11:53:11]MH_SAM_APDU [11:53:11]CAPDU: 80 11 00 00 [11:53:11]Write to MH i2c: E2 08 00 84 14 80 11 00 00 00 00 00 00 12 [11:53:11]Write i2c OK [11:53:11]MH_I2C_Read... [11:53:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:11]Read from MH i2c: E2 [11:53:11]MH_I2C_Read... [11:53:11]Read from MH i2c: E2 17 00 [11:53:11]MH_I2C_Read... [11:53:11]Read from MH i2c: E2 17 00 84 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 68 [11:53:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:53:11]wFMCommunicate OK [11:53:11]requested_item fd.num is exist - process it [11:53:11]SAM_PROTO_GetFieldsCounters [11:53:11]wFMCommunicate request_size=4 [11:53:11]MH_SAM_APDU [11:53:11]CAPDU: 80 13 00 00 [11:53:11]Write to MH i2c: E2 08 00 85 14 80 13 00 00 00 00 00 00 15 [11:53:11]Write i2c OK [11:53:11]MH_I2C_Read... [11:53:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:53:12]Read from MH i2c: E2 [11:53:12]MH_I2C_Read... [11:53:12]Read from MH i2c: E2 62 00 [11:53:12]MH_I2C_Read... [11:53:12]Read from MH i2c: E2 62 00 85 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 3B 84 02 00 0E 04 04 00 BF 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 28 [11:53:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 3B 84 02 00 0E 04 04 00 BF 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 [11:53:12]wFMCommunicate OK [11:53:12]SAM_PROTO_GetFieldsCounters done [11:53:12]requested_item shift.num is exist - process it [11:53:12]requested_item shift.opened is exist - process it [11:53:12]req_shift_opened [11:53:12]FM_GetShiftState [11:53:12]SAM_PROTO_GetShiftState [11:53:12]wFMCommunicate request_size=4 [11:53:12]MH_SAM_APDU [11:53:12]CAPDU: 80 13 01 00 [11:53:12]Write to MH i2c: E2 08 00 86 14 80 13 01 00 00 00 00 00 17 [11:53:12]Write i2c OK [11:53:12]MH_I2C_Read... [11:53:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:12]Read from MH i2c: E2 [11:53:12]MH_I2C_Read... [11:53:12]Read from MH i2c: E2 0E 00 [11:53:12]MH_I2C_Read... [11:53:12]Read from MH i2c: E2 0E 00 86 14 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 97 [11:53:12]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:53:12]wFMCommunicate OK [11:53:12]SAM_PROTO_GetShiftState done [11:53:12]FM_GetShiftState done [11:53:12]req_shift_opened done [11:53:12]requested_item shift.open_date is exist - process it [11:53:12]req_shift_open_date [11:53:12]req_shift_open_date done [11:53:12]produce_requested_data done [11:53:12]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164923,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [11:53:12]process_action_free close_receipt [11:53:12]json_value_free [11:53:12]json_value_free done [11:53:12]process_json_proto returns [11:53:12]Send response to host [11:53:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164923,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [11:53:12]free response buf [11:53:12]execute_script done [11:53:12]execute_script returns [11:53:12]free content buf [11:53:12]Sock 9.Close socket [11:53:12]Sock 9.Thread stoped [11:53:15]OFD Sender: No OFD packet to send [11:53:20]OFD Sender: No OFD packet to send [11:53:25]OFD Sender: No OFD packet to send [11:53:30]OFD Sender: No OFD packet to send [11:53:35]OFD Sender: No OFD packet to send [11:53:40]OFD Sender: No OFD packet to send [11:53:46]OFD Sender: No OFD packet to send [11:53:51]OFD Sender: No OFD packet to send [11:53:54]accept exits with 7 [11:53:54]New connection [11:53:54]New thread 3067473252 created [11:53:54]Thread 3067616612 joined [11:53:54]Waiting for new connection... [11:53:54] Sock 7.Parse request [11:53:54]Sock 7.Check first char [11:53:54]Sock 7.First char is OK [11:53:54]request: POST /json_proto HTTP/1.0 [11:53:54]Method: POST [11:53:54]URL: /json_proto [11:53:54]Method is POST - this is cgi request [11:53:54]url: /json_proto [11:53:54]query_string will be loaded in cgi processing [11:53:54]execute_cgi json_proto POST (null) [11:53:54]execute_cgi path=json_proto method=POST [11:53:54]POST find Content-Length [11:53:54]Host: 172.17.56.4:8080 [11:53:54]Content-Length: 677 [11:53:54]Content-Type: application/json [11:53:54] [11:53:54]POST finish read [11:53:54]Found Content-Length = 677 [11:53:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459020", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:53:54]execute_script... [11:53:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459020", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:53:54]POST & json_proto [11:53:54]process_json_proto [11:53:54]json parsed OK: [11:53:54]protocol is kg_v1.0 [11:53:54]action value=close_receipt [11:53:54]process_action close_receipt [11:53:54]cmd_close_receipt [11:53:54]MH_GetDate [11:53:54]Write to MH i2c: F0 00 00 87 14 8A [11:53:54]Write i2c OK [11:53:54]MH_I2C_Read... [11:53:54]Read from MH i2c: F0 [11:53:54]MH_I2C_Read... [11:53:54]Read from MH i2c: F0 09 00 [11:53:54]MH_I2C_Read... [11:53:54]Read from MH i2c: F0 09 00 87 14 00 53 BC 93 66 C9 DC B2 64 56 [11:53:54]GetLastDocTimeStamp 1720957989 [11:53:54]current date 1720958035 [11:53:54]FM_GetShiftState [11:53:54]SAM_PROTO_GetShiftState [11:53:54]wFMCommunicate request_size=4 [11:53:54]MH_SAM_APDU [11:53:54]CAPDU: 80 13 01 00 [11:53:54]Write to MH i2c: E2 08 00 88 14 80 13 01 00 00 00 00 00 19 [11:53:54]Write i2c OK [11:53:54]MH_I2C_Read... [11:53:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:54]Read from MH i2c: E2 [11:53:54]MH_I2C_Read... [11:53:54]Read from MH i2c: E2 0E 00 [11:53:54]MH_I2C_Read... [11:53:54]Read from MH i2c: E2 0E 00 88 14 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 99 [11:53:54]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:53:54]wFMCommunicate OK [11:53:54]SAM_PROTO_GetShiftState done [11:53:54]FM_GetShiftState done [11:53:54]opened in 1720917342 [11:53:54]opened+sec_in_day 1721003742 [11:53:54]quantity*price = 20003 [11:53:54]sum+1 = 20004 [11:53:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 122 14.07.2024 11:53 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164924 ФПД: 261628381457672 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T115355&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164924&fm=261628381457672&tin=02508201610067®Number=0000000000090829&sum=20000 [11:53:55]StoreToDocumentArchive [11:53:55]shift 447 fd 164924 [11:53:55]save to /storage/0447/doc_00164924 [11:53:55]save last doc name /storage/0447/doc_00164924 to /storage/kkm_last_doc_name [11:53:55]save OK [11:53:55]Clear old archive folders... [11:53:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:53:55]tlvbuf is 007E57C0 [11:53:55]SAM_PROTO_ClearQueue [11:53:55]wFMCommunicate request_size=4 [11:53:55]MH_SAM_APDU [11:53:55]CAPDU: 80 09 00 00 [11:53:55]Write to MH i2c: E2 08 00 95 14 80 09 00 00 00 00 00 00 1B [11:53:55]Write i2c OK [11:53:55]MH_I2C_Read... [11:53:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:53:55]Read from MH i2c: E2 [11:53:55]MH_I2C_Read... [11:53:55]Read from MH i2c: E2 03 00 [11:53:55]MH_I2C_Read... [11:53:55]Read from MH i2c: E2 03 00 95 14 00 90 00 1D [11:53:55]RAPDU: 90 00 [11:53:55]wFMCommunicate OK [11:53:55]SAM_PROTO_ClearQueue done [11:53:55]KKMCreateOFDPacket [11:53:55]OFDProtocolAddRootSTLVToBuf [11:53:55]FM_MakeSignedData [11:53:55]FM_MakeSignedData [11:53:55]SAM_PROTO_SignData [11:53:55]wFMCommunicate request_size=4 [11:53:55]MH_SAM_APDU [11:53:55]CAPDU: 80 0D 01 02 [11:53:55]Write to MH i2c: E2 08 00 96 14 80 0D 01 02 00 00 00 00 23 [11:53:55]Write i2c OK [11:53:55]MH_I2C_Read... [11:53:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:53:55]Read from MH i2c: E2 [11:53:55]MH_I2C_Read... [11:53:55]Read from MH i2c: E2 03 00 [11:53:55]MH_I2C_Read... [11:53:55]Read from MH i2c: E2 03 00 96 14 00 90 00 1E [11:53:55]RAPDU: 90 00 [11:53:55]wFMCommunicate OK [11:53:55]wFMCommunicate request_size=255 [11:53:55]MH_SAM_APDU [11:53:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 7A 00 00 00 F4 03 04 00 53 BC 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3C 84 02 00 35 04 06 00 ED [11:53:55]Write to MH i2c: E2 02 01 97 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 7A 00 00 00 F4 03 04 00 53 BC 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3C 84 02 00 35 04 06 00 ED 00 00 2E [11:53:55]Write i2c OK [11:53:55]MH_I2C_Read... [11:53:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:55]Read from MH i2c: E2 [11:53:55]MH_I2C_Read... [11:53:55]Read from MH i2c: E2 03 00 [11:53:55]MH_I2C_Read... [11:53:55]Read from MH i2c: E2 03 00 97 14 00 90 00 1F [11:53:55]RAPDU: 90 00 [11:53:55]wFMCommunicate OK [11:53:55]wFMCommunicate request_size=10 [11:53:55]MH_SAM_APDU [11:53:55]CAPDU: 80 0D 02 02 05 F3 1A BD 6D 08 [11:53:55]Write to MH i2c: E2 0D 00 98 14 80 0D 02 02 05 00 F3 1A BD 6D 08 00 00 6F [11:53:55]Write i2c OK [11:53:55]MH_I2C_Read... [11:53:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:55]Read from MH i2c: E2 [11:53:55]MH_I2C_Read... [11:53:55]Read from MH i2c: E2 03 00 [11:53:55]MH_I2C_Read... [11:53:55]Read from MH i2c: E2 03 00 98 14 00 90 00 20 [11:53:55]RAPDU: 90 00 [11:53:55]wFMCommunicate OK [11:53:55]wFMCommunicate request_size=4 [11:53:55]MH_SAM_APDU [11:53:55]CAPDU: 80 0D 03 02 [11:53:55]Write to MH i2c: E2 08 00 99 14 80 0D 03 02 00 00 00 00 28 [11:53:55]Write i2c OK [11:53:55]MH_I2C_Read... [11:53:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:53:55]Read from MH i2c: E2 [11:53:55]MH_I2C_Read... [11:53:55]Read from MH i2c: E2 0B 00 [11:53:55]MH_I2C_Read... [11:53:55]Read from MH i2c: E2 0B 00 99 14 00 06 EE 12 E7 3C 12 86 BC 90 00 A6 [11:53:55]RAPDU: 06 EE 12 E7 3C 12 86 BC 90 00 [11:53:55]wFMCommunicate OK [11:53:55]SAM_PROTO_SignData done [11:53:55]FM_MakeSignedData done [11:53:55]CreateOFDProtocolMessage [11:53:55]wFMCommunicate request_size=4 [11:53:55]MH_SAM_APDU [11:53:55]CAPDU: 80 11 00 00 [11:53:55]Write to MH i2c: E2 08 00 9A 14 80 11 00 00 00 00 00 00 28 [11:53:55]Write i2c OK [11:53:55]MH_I2C_Read... [11:53:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:55]Read from MH i2c: E2 [11:53:55]MH_I2C_Read... [11:53:55]Read from MH i2c: E2 17 00 [11:53:55]MH_I2C_Read... [11:53:55]Read from MH i2c: E2 17 00 9A 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 7E [11:53:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:53:55]wFMCommunicate OK [11:53:55]CreateOFDProtocolMessage done [11:53:55]OFDSenderStorePacket 164924 [11:53:55]StoreOFDPacket docnum=164924 [11:53:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 5D C2 07 01 37 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 7A 00 00 00 F4 03 04 00 53 BC 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3C 84 02 00 35 04 06 00 ED F3 1A BD 6D 08 06 EE 12 E7 3C 12 86 BC [11:53:55]CheckFolder [11:53:55]dirname=/storage/ofd_packets [11:53:55]CheckFolder done [11:53:55]ProducePacketName [11:53:55]name=ofd_packets/00164924 [11:53:55]NVStorageSaveData ofd_packets/00164924 [11:53:55]File name is /storage/ofd_packets/00164924 [11:53:55]Write 301 bytes [11:53:55]NVStorageSaveData done [11:53:55]OFDSenderStorePacket done [11:53:55]KKMCreateOFDPacket done [11:53:55]NVStorageSaveData kkm_last_timestamp [11:53:55]File name is /storage/kkm_last_timestamp [11:53:55]Write 4 bytes [11:53:55]NVStorageSaveData done [11:53:55]ExternCall_PrintAddStr [11:53:55]wPrintStart [11:53:55]Write to MH i2c: 01 00 00 9B 14 AF [11:53:55]Write i2c OK [11:53:55]MH_I2C_Read... [11:53:55]Read from MH i2c: 01 [11:53:55]MH_I2C_Read... [11:53:55]Read from MH i2c: 01 07 00 [11:53:55]MH_I2C_Read... [11:53:55]Read from MH i2c: 01 07 00 9B 14 00 00 00 00 00 FF 0F C4 [11:53:55]RasterBufferAndPrint [11:53:55]line Счет N : (1)459020 [11:53:55]line ИНН: 02508201610067 [11:53:55]line Контрольно-Кассовый Чек [11:53:55]line ПРОДАЖА [11:53:55]line ТРК (МРК, ГНК) : 22 [11:53:55]line Товар: 2710124130 [11:53:55]line Аи-92-К-5 [11:53:55]line 3.040 * 65.80 [11:53:55]line = 200.03 [11:53:55]line НДС 12% НСП 1% [11:53:55]line > о реализуемом товаре [11:53:55]line ОКРУГЛЕНИЕ: -0.03 [11:53:55]line ИТОГО: 200.00 [11:53:55]line Внесено: 200.00 [11:53:55]line СДАЧА: 0.00 [11:53:55]line НСП 1% : 1.77 [11:53:55]line НДС 12% : 21.24 [11:53:55]line Наличными: 200.00 [11:53:55]line Безнал.: 0.00 [11:53:55]line Место: АЗС № 72 "Партнер Нефть" [11:53:55]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:53:55]line СНО: Общий режим [11:53:55]line Чек 122 14.07.2024 11:53 [11:53:55]line Смена: 447 ФФД: 1.0 [11:53:55]line ЗНМ: 0300000160 [11:53:55]line РНМ: 0000000000090829 [11:53:55]line Версия ККМ: 001 [11:53:55]line ФМ: 0000000000874718 [11:53:55]line ФД: 164924 [11:53:55]line ФПД: 261628381457672 [11:53:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T115355&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164924&fm=261628381457672&tin=02508201610067®Number=0000000000090829&sum=20000 [11:53:56]written 0, free lines is 4095 [11:53:56]OFD Sender: Processing packet 164924 [packets to send 104, broken 103] [11:53:56]ProducePacketName [11:53:56]name=ofd_packets/00164924 [11:53:56]OFD Sender: To server: pG, [11:53:56]CommunicateWithHost lk.salyk.kg:30040 [11:53:56]ConnectInit lk.salyk.kg [11:53:56]Connected sock=10 [11:53:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 5D C2 07 01 37 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 7A 00 00 00 F4 03 04 00 53 BC 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3C 84 02 00 35 04 06 00 ED F3 1A BD 6D 08 06 EE 12 E7 3C 12 86 BC [11:53:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 7B D7 47 00 BC 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3C 84 02 00 F4 03 04 00 E1 62 93 66 B6 04 01 00 00 88 26 ED BF 50 1A FA 06 [11:53:56]CommunicateWithHost err = 0 [11:53:56]CheckOFDResponse [11:53:56]1017 (14) - 77093643461234 [11:53:56]1041 (16) - 0000000000874718 [11:53:56]1040 (4) - 164924 [11:53:56]1012 (4) - 14.07.2024 05:32 [11:53:56]1206 (1) - 0 [11:53:56]OFD Sender: Remove packet 164924 [11:53:56]ProducePacketName [11:53:56]name=ofd_packets/00164924 [11:53:56]NVStorageDeleteData [11:53:56]Write to MH i2c: 01 00 00 C5 14 D9 [11:53:56]Write i2c OK [11:53:56]MH_I2C_Read... [11:53:56]Read from MH i2c: 01 [11:53:56]MH_I2C_Read... [11:53:56]Read from MH i2c: 01 07 00 [11:53:56]MH_I2C_Read... [11:53:56]Read from MH i2c: 01 07 00 C5 14 00 00 00 00 00 F4 0C E0 [11:53:56]RasterBufferAndPrint [11:53:56]line [11:53:56]line [11:53:56]line [11:53:56]line [11:53:56]line [11:53:56]written 0, free lines is 3323 [11:53:56]MH_Cut [11:53:56]Write to MH i2c: D1 01 00 CC 14 01 B2 [11:53:56]Write i2c OK [11:53:56]MH_I2C_Read... [11:53:56]Read from MH i2c: D1 [11:53:56]MH_I2C_Read... [11:53:56]Read from MH i2c: D1 01 00 [11:53:56]MH_I2C_Read... [11:53:56]Read from MH i2c: D1 01 00 CC 14 00 B1 [11:53:56]Write to MH i2c: 01 00 00 CD 14 E1 [11:53:56]Write i2c OK [11:53:56]MH_I2C_Read... [11:53:56]OFD Sender: No OFD packet to send [11:53:57]*** Cut start [11:53:57]*** Partial cut [11:53:57]*** CUTSNS_PIN = 1 [11:53:57]*** CUTSNS_PIN = 0 [11:53:57]*** Brake cut motor [11:53:57]Read from MH i2c: 01 [11:53:57]MH_I2C_Read... [11:53:57]*** Stop cut motor [11:53:57]*** Cut end [11:53:57]Read from MH i2c: 01 07 00 [11:53:57]MH_I2C_Read... [11:53:57]Read from MH i2c: 01 07 00 CD 14 00 00 00 00 00 FF 0F F6 [11:53:57]process_action close_receipt done [11:53:57]requested_data is exist [11:53:57]produce_requested_data [11:53:57]requested_item fm.sn is exist - process it [11:53:57]wFMCommunicate request_size=4 [11:53:57]MH_SAM_APDU [11:53:57]CAPDU: 80 11 00 00 [11:53:57]Write to MH i2c: E2 08 00 CE 14 80 11 00 00 00 00 00 00 5C [11:53:57]Write i2c OK [11:53:57]MH_I2C_Read... [11:53:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:57]Read from MH i2c: E2 [11:53:57]MH_I2C_Read... [11:53:57]Read from MH i2c: E2 17 00 [11:53:57]MH_I2C_Read... [11:53:57]Read from MH i2c: E2 17 00 CE 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B2 [11:53:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:53:57]wFMCommunicate OK [11:53:57]requested_item fd.num is exist - process it [11:53:57]SAM_PROTO_GetFieldsCounters [11:53:57]wFMCommunicate request_size=4 [11:53:57]MH_SAM_APDU [11:53:57]CAPDU: 80 13 00 00 [11:53:57]Write to MH i2c: E2 08 00 CF 14 80 13 00 00 00 00 00 00 5F [11:53:57]Write i2c OK [11:53:57]MH_I2C_Read... [11:53:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:53:58]Read from MH i2c: E2 [11:53:58]MH_I2C_Read... [11:53:58]Read from MH i2c: E2 62 00 [11:53:58]MH_I2C_Read... [11:53:58]Read from MH i2c: E2 62 00 CF 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 3C 84 02 00 0E 04 04 00 BF 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 76 [11:53:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 3C 84 02 00 0E 04 04 00 BF 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 [11:53:58]wFMCommunicate OK [11:53:58]SAM_PROTO_GetFieldsCounters done [11:53:58]requested_item shift.num is exist - process it [11:53:58]requested_item shift.opened is exist - process it [11:53:58]req_shift_opened [11:53:58]FM_GetShiftState [11:53:58]SAM_PROTO_GetShiftState [11:53:58]wFMCommunicate request_size=4 [11:53:58]MH_SAM_APDU [11:53:58]CAPDU: 80 13 01 00 [11:53:58]Write to MH i2c: E2 08 00 D0 14 80 13 01 00 00 00 00 00 61 [11:53:58]Write i2c OK [11:53:58]MH_I2C_Read... [11:53:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:58]Read from MH i2c: E2 [11:53:58]MH_I2C_Read... [11:53:58]Read from MH i2c: E2 0E 00 [11:53:58]MH_I2C_Read... [11:53:58]Read from MH i2c: E2 0E 00 D0 14 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 E1 [11:53:58]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:53:58]wFMCommunicate OK [11:53:58]SAM_PROTO_GetShiftState done [11:53:58]FM_GetShiftState done [11:53:58]req_shift_opened done [11:53:58]requested_item shift.open_date is exist - process it [11:53:58]req_shift_open_date [11:53:58]req_shift_open_date done [11:53:58]produce_requested_data done [11:53:58]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164924,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [11:53:58]process_action_free close_receipt [11:53:58]json_value_free [11:53:58]json_value_free done [11:53:58]process_json_proto returns [11:53:58]Send response to host [11:53:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164924,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [11:53:58]free response buf [11:53:58]execute_script done [11:53:58]execute_script returns [11:53:58]free content buf [11:53:58]Sock 7.Close socket [11:53:58]Sock 7.Thread stoped [11:54:01]OFD Sender: No OFD packet to send [11:54:06]OFD Sender: No OFD packet to send [11:54:11]OFD Sender: No OFD packet to send [11:54:16]OFD Sender: No OFD packet to send [11:54:21]OFD Sender: No OFD packet to send [11:54:26]OFD Sender: No OFD packet to send [11:54:32]OFD Sender: No OFD packet to send [11:54:37]OFD Sender: No OFD packet to send [11:54:42]OFD Sender: No OFD packet to send [11:54:47]OFD Sender: No OFD packet to send [11:54:52]OFD Sender: No OFD packet to send [11:54:57]OFD Sender: No OFD packet to send [11:55:02]OFD Sender: No OFD packet to send [11:55:07]OFD Sender: No OFD packet to send [11:55:12]OFD Sender: No OFD packet to send [11:55:16]accept exits with 9 [11:55:16]New connection [11:55:16]New thread 3067616612 created [11:55:16]Thread 3067473252 joined [11:55:16]Waiting for new connection... [11:55:16] Sock 9.Parse request [11:55:16]Sock 9.Check first char [11:55:16]Sock 9.First char is OK [11:55:16]request: POST /json_proto HTTP/1.0 [11:55:16]Method: POST [11:55:16]URL: /json_proto [11:55:16]Method is POST - this is cgi request [11:55:16]url: /json_proto [11:55:16]query_string will be loaded in cgi processing [11:55:16]execute_cgi json_proto POST (null) [11:55:16]execute_cgi path=json_proto method=POST [11:55:16]POST find Content-Length [11:55:16]Host: 172.17.56.4:8080 [11:55:16]Content-Length: 791 [11:55:16]Content-Type: application/json [11:55:16] [11:55:16]POST finish read [11:55:16]Found Content-Length = 791 [11:55:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459021", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 10.000, "sum" : 652.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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 652.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:55:16]execute_script... [11:55:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459021", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 10.000, "sum" : 652.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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 652.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:55:16]POST & json_proto [11:55:16]process_json_proto [11:55:16]json parsed OK: [11:55:16]protocol is kg_v1.0 [11:55:16]action value=close_receipt [11:55:16]process_action close_receipt [11:55:16]cmd_close_receipt [11:55:16]MH_GetDate [11:55:16]Write to MH i2c: F0 00 00 D1 14 D4 [11:55:16]Write i2c OK [11:55:16]MH_I2C_Read... [11:55:16]Read from MH i2c: F0 [11:55:16]MH_I2C_Read... [11:55:16]Read from MH i2c: F0 09 00 [11:55:16]MH_I2C_Read... [11:55:16]Read from MH i2c: F0 09 00 D1 14 00 A5 BC 93 66 C9 DC B2 64 F2 [11:55:16]GetLastDocTimeStamp 1720958035 [11:55:16]current date 1720958117 [11:55:16]FM_GetShiftState [11:55:16]SAM_PROTO_GetShiftState [11:55:16]wFMCommunicate request_size=4 [11:55:16]MH_SAM_APDU [11:55:16]CAPDU: 80 13 01 00 [11:55:16]Write to MH i2c: E2 08 00 D2 14 80 13 01 00 00 00 00 00 63 [11:55:16]Write i2c OK [11:55:16]MH_I2C_Read... [11:55:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:16]Read from MH i2c: E2 [11:55:16]MH_I2C_Read... [11:55:16]Read from MH i2c: E2 0E 00 [11:55:16]MH_I2C_Read... [11:55:16]Read from MH i2c: E2 0E 00 D2 14 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 E3 [11:55:16]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:55:16]wFMCommunicate OK [11:55:16]SAM_PROTO_GetShiftState done [11:55:16]FM_GetShiftState done [11:55:16]opened in 1720917342 [11:55:16]opened+sec_in_day 1721003742 [11:55:16]quantity*price = 65220 [11:55:16]sum+1 = 65221 [11:55:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 652.20 НСП 1% : 5.77 НДС 12% : 69.26 Наличными: 0.00 Безнал.: 652.20 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 123 14.07.2024 11:55 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164925 ФПД: 30058450915579 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T115517&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164925&fm=30058450915579&tin=02508201610067®Number=0000000000090829&sum=65220 [11:55:18]StoreToDocumentArchive [11:55:18]shift 447 fd 164925 [11:55:18]save to /storage/0447/doc_00164925 [11:55:18]save last doc name /storage/0447/doc_00164925 to /storage/kkm_last_doc_name [11:55:18]save OK [11:55:18]Clear old archive folders... [11:55:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:55:18]tlvbuf is B6F4A0E0 [11:55:18]SAM_PROTO_ClearQueue [11:55:18]wFMCommunicate request_size=4 [11:55:18]MH_SAM_APDU [11:55:18]CAPDU: 80 09 00 00 [11:55:18]Write to MH i2c: E2 08 00 DF 14 80 09 00 00 00 00 00 00 65 [11:55:18]Write i2c OK [11:55:18]MH_I2C_Read... [11:55:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:55:18]Read from MH i2c: E2 [11:55:18]MH_I2C_Read... [11:55:18]Read from MH i2c: E2 03 00 [11:55:18]MH_I2C_Read... [11:55:18]Read from MH i2c: E2 03 00 DF 14 00 90 00 67 [11:55:18]RAPDU: 90 00 [11:55:18]wFMCommunicate OK [11:55:18]SAM_PROTO_ClearQueue done [11:55:18]KKMCreateOFDPacket [11:55:18]OFDProtocolAddRootSTLVToBuf [11:55:18]FM_MakeSignedData [11:55:18]FM_MakeSignedData [11:55:18]SAM_PROTO_SignData [11:55:18]wFMCommunicate request_size=4 [11:55:18]MH_SAM_APDU [11:55:18]CAPDU: 80 0D 01 02 [11:55:18]Write to MH i2c: E2 08 00 E0 14 80 0D 01 02 00 00 00 00 6D [11:55:18]Write i2c OK [11:55:18]MH_I2C_Read... [11:55:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:55:18]Read from MH i2c: E2 [11:55:18]MH_I2C_Read... [11:55:18]Read from MH i2c: E2 03 00 [11:55:18]MH_I2C_Read... [11:55:18]Read from MH i2c: E2 03 00 E0 14 00 90 00 68 [11:55:18]RAPDU: 90 00 [11:55:18]wFMCommunicate OK [11:55:18]wFMCommunicate request_size=255 [11:55:18]MH_SAM_APDU [11: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 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 C4 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 A5 BC 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3D 84 02 00 35 04 06 00 1B [11:55:18]Write to MH i2c: E2 02 01 E1 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 C4 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 A5 BC 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3D 84 02 00 35 04 06 00 1B 00 00 6C [11:55:18]Write i2c OK [11:55:18]MH_I2C_Read... [11:55:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:18]Read from MH i2c: E2 [11:55:18]MH_I2C_Read... [11:55:18]Read from MH i2c: E2 03 00 [11:55:18]MH_I2C_Read... [11:55:18]Read from MH i2c: E2 03 00 E1 14 00 90 00 69 [11:55:18]RAPDU: 90 00 [11:55:18]wFMCommunicate OK [11:55:18]wFMCommunicate request_size=10 [11:55:18]MH_SAM_APDU [11:55:18]CAPDU: 80 0D 02 02 05 56 87 4A 10 FB [11:55:18]Write to MH i2c: E2 0D 00 E2 14 80 0D 02 02 05 00 56 87 4A 10 FB 00 00 AC [11:55:18]Write i2c OK [11:55:18]MH_I2C_Read... [11:55:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:18]Read from MH i2c: E2 [11:55:18]MH_I2C_Read... [11:55:18]Read from MH i2c: E2 03 00 [11:55:18]MH_I2C_Read... [11:55:18]Read from MH i2c: E2 03 00 E2 14 00 90 00 6A [11:55:18]RAPDU: 90 00 [11:55:18]wFMCommunicate OK [11:55:18]wFMCommunicate request_size=4 [11:55:18]MH_SAM_APDU [11:55:18]CAPDU: 80 0D 03 02 [11:55:18]Write to MH i2c: E2 08 00 E3 14 80 0D 03 02 00 00 00 00 72 [11:55:18]Write i2c OK [11:55:18]MH_I2C_Read... [11:55:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:55:18]Read from MH i2c: E2 [11:55:18]MH_I2C_Read... [11:55:18]Read from MH i2c: E2 0B 00 [11:55:18]MH_I2C_Read... [11:55:18]Read from MH i2c: E2 0B 00 E3 14 00 C4 B8 6A AB 9E 94 7C 59 90 00 0B [11:55:18]RAPDU: C4 B8 6A AB 9E 94 7C 59 90 00 [11:55:18]wFMCommunicate OK [11:55:18]SAM_PROTO_SignData done [11:55:18]FM_MakeSignedData done [11:55:18]CreateOFDProtocolMessage [11:55:18]wFMCommunicate request_size=4 [11:55:18]MH_SAM_APDU [11:55:18]CAPDU: 80 11 00 00 [11:55:18]Write to MH i2c: E2 08 00 E4 14 80 11 00 00 00 00 00 00 72 [11:55:18]Write i2c OK [11:55:18]MH_I2C_Read... [11:55:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:18]Read from MH i2c: E2 [11:55:18]MH_I2C_Read... [11:55:18]Read from MH i2c: E2 17 00 [11:55:18]MH_I2C_Read... [11:55:18]Read from MH i2c: E2 17 00 E4 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C8 [11:55:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:55:18]wFMCommunicate OK [11:55:18]CreateOFDProtocolMessage done [11:55:18]OFDSenderStorePacket 164925 [11:55:18]StoreOFDPacket docnum=164925 [11:55:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 65 81 07 01 4C 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 C4 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 A5 BC 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3D 84 02 00 35 04 06 00 1B 56 87 4A 10 FB C4 B8 6A AB 9E 94 7C 59 [11:55:18]CheckFolder [11:55:18]dirname=/storage/ofd_packets [11:55:18]CheckFolder done [11:55:18]ProducePacketName [11:55:18]name=ofd_packets/00164925 [11:55:18]NVStorageSaveData ofd_packets/00164925 [11:55:18]File name is /storage/ofd_packets/00164925 [11:55:18]Write 301 bytes [11:55:18]NVStorageSaveData done [11:55:18]OFDSenderStorePacket done [11:55:18]KKMCreateOFDPacket done [11:55:18]NVStorageSaveData kkm_last_timestamp [11:55:18]File name is /storage/kkm_last_timestamp [11:55:18]Write 4 bytes [11:55:18]NVStorageSaveData done [11:55:18]ExternCall_PrintAddStr [11:55:18]wPrintStart [11:55:18]Write to MH i2c: 01 00 00 E5 14 F9 [11:55:18]Write i2c OK [11:55:18]MH_I2C_Read... [11:55:18]Read from MH i2c: 01 [11:55:18]MH_I2C_Read... [11:55:18]Read from MH i2c: 01 07 00 [11:55:18]MH_I2C_Read... [11:55:18]Read from MH i2c: 01 07 00 E5 14 00 00 00 00 00 FF 0F 0E [11:55:18]RasterBufferAndPrint [11:55:18]line Счет N : (1)459021 [11:55:18]line ИНН: 02508201610067 [11:55:18]line Контрольно-Кассовый Чек [11:55:18]line ПРОДАЖА [11:55:18]line ТРК (МРК, ГНК) : 12 [11:55:18]line Товар: 2710124130 [11:55:18]line Аи-92-К-5 [11:55:18]line 10.000 * 65.22 [11:55:18]line = 652.20 [11:55:18]line НДС 12% НСП 1% [11:55:18]line > о реализуемом товаре [11:55:18]line ИТОГО: 652.20 [11:55:18]line НСП 1% : 5.77 [11:55:18]line НДС 12% : 69.26 [11:55:18]line Наличными: 0.00 [11:55:18]line Безнал.: 652.20 [11:55:18]line Место: АЗС № 72 "Партнер Нефть" [11:55:18]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:55:18]line СНО: Общий режим [11:55:18]line Чек 123 14.07.2024 11:55 [11:55:18]line Смена: 447 ФФД: 1.0 [11:55:18]line ЗНМ: 0300000160 [11:55:18]line РНМ: 0000000000090829 [11:55:18]line Версия ККМ: 001 [11:55:18]line Платежная система: KICB Банк [11:55:18]line ФМ: 0000000000874718 [11:55:18]line ФД: 164925 [11:55:18]line ФПД: 30058450915579 [11:55:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T115517&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164925&fm=30058450915579&tin=02508201610067®Number=0000000000090829&sum=65220 [11:55:18]written 0, free lines is 4095 [11:55:18]OFD Sender: Processing packet 164925 [packets to send 104, broken 103] [11:55:18]ProducePacketName [11:55:18]name=ofd_packets/00164925 [11:55:18]OFD Sender: To server: pG, [11:55:18]CommunicateWithHost lk.salyk.kg:30040 [11:55:18]ConnectInit lk.salyk.kg [11:55:18]Connected sock=10 [11:55:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 65 81 07 01 4C 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 C4 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 A5 BC 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3D 84 02 00 35 04 06 00 1B 56 87 4A 10 FB C4 B8 6A AB 9E 94 7C 59 [11:55:18]Write to MH i2c: 01 00 00 0E 15 23 [11:55:18]Write i2c OK [11:55:18]MH_I2C_Read... [11:55:18]Read from MH i2c: 01 [11:55:18]MH_I2C_Read... [11:55:19]Read from MH i2c: 01 07 00 [11:55:19]MH_I2C_Read... [11:55:19]Read from MH i2c: 01 07 00 0E 15 00 00 00 00 00 07 0D 3E [11:55:19]RasterBufferAndPrint [11:55:19]line [11:55:19]line [11:55:19]line [11:55:19]line [11:55:19]line [11:55:19]written 0, free lines is 3341 [11:55:19]MH_Cut [11:55:19]Write to MH i2c: D1 01 00 15 15 01 FC [11:55:19]Write i2c OK [11:55:19]MH_I2C_Read... [11:55:19]Read from MH i2c: D1 [11:55:19]MH_I2C_Read... [11:55:19]Read from MH i2c: D1 01 00 [11:55:19]MH_I2C_Read... [11:55:19]Read from MH i2c: D1 01 00 15 15 00 FB [11:55:19]Write to MH i2c: 01 00 00 16 15 2B [11:55:19]Write i2c OK [11:55:19]MH_I2C_Read... [11:55:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 25 CB 47 00 15 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3D 84 02 00 F4 03 04 00 33 63 93 66 B6 04 01 00 00 D6 96 7A CA 80 2B EF 74 [11:55:19]CommunicateWithHost err = 0 [11:55:19]CheckOFDResponse [11:55:19]1017 (14) - 77093643461234 [11:55:19]1041 (16) - 0000000000874718 [11:55:19]1040 (4) - 164925 [11:55:19]1012 (4) - 14.07.2024 05:33 [11:55:19]1206 (1) - 0 [11:55:19]OFD Sender: Remove packet 164925 [11:55:19]ProducePacketName [11:55:19]name=ofd_packets/00164925 [11:55:19]NVStorageDeleteData [11:55:19]*** Cut start [11:55:19]*** Partial cut [11:55:19]*** CUTSNS_PIN = 1 [11:55:19]*** CUTSNS_PIN = 0 [11:55:19]OFD Sender: No OFD packet to send [11:55:19]*** Brake cut motor [11:55:20]Read from MH i2c: 01 [11:55:20]MH_I2C_Read... [11:55:20]*** Stop cut motor [11:55:20]*** Cut end [11:55:20]Read from MH i2c: 01 07 00 [11:55:20]MH_I2C_Read... [11:55:20]Read from MH i2c: 01 07 00 16 15 00 00 00 00 00 FF 0F 40 [11:55:20]process_action close_receipt done [11:55:20]requested_data is exist [11:55:20]produce_requested_data [11:55:20]requested_item fm.sn is exist - process it [11:55:20]wFMCommunicate request_size=4 [11:55:20]MH_SAM_APDU [11:55:20]CAPDU: 80 11 00 00 [11:55:20]Write to MH i2c: E2 08 00 17 15 80 11 00 00 00 00 00 00 A6 [11:55:20]Write i2c OK [11:55:20]MH_I2C_Read... [11:55:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:20]Read from MH i2c: E2 [11:55:20]MH_I2C_Read... [11:55:20]Read from MH i2c: E2 17 00 [11:55:20]MH_I2C_Read... [11:55:20]Read from MH i2c: E2 17 00 17 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 FC [11:55:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:55:20]wFMCommunicate OK [11:55:20]requested_item fd.num is exist - process it [11:55:20]SAM_PROTO_GetFieldsCounters [11:55:20]wFMCommunicate request_size=4 [11:55:20]MH_SAM_APDU [11:55:20]CAPDU: 80 13 00 00 [11:55:20]Write to MH i2c: E2 08 00 18 15 80 13 00 00 00 00 00 00 A9 [11:55:20]Write i2c OK [11:55:20]MH_I2C_Read... [11:55:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:55:20]Read from MH i2c: E2 [11:55:20]MH_I2C_Read... [11:55:20]Read from MH i2c: E2 62 00 [11:55:20]MH_I2C_Read... [11:55:20]Read from MH i2c: E2 62 00 18 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 3D 84 02 00 0E 04 04 00 BF 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 C4 [11:55:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 3D 84 02 00 0E 04 04 00 BF 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 [11:55:20]wFMCommunicate OK [11:55:20]SAM_PROTO_GetFieldsCounters done [11:55:20]requested_item shift.num is exist - process it [11:55:20]requested_item shift.opened is exist - process it [11:55:20]req_shift_opened [11:55:20]FM_GetShiftState [11:55:20]SAM_PROTO_GetShiftState [11:55:20]wFMCommunicate request_size=4 [11:55:20]MH_SAM_APDU [11:55:20]CAPDU: 80 13 01 00 [11:55:20]Write to MH i2c: E2 08 00 19 15 80 13 01 00 00 00 00 00 AB [11:55:20]Write i2c OK [11:55:20]MH_I2C_Read... [11:55:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:20]Read from MH i2c: E2 [11:55:20]MH_I2C_Read... [11:55:20]Read from MH i2c: E2 0E 00 [11:55:20]MH_I2C_Read... [11:55:20]Read from MH i2c: E2 0E 00 19 15 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 2B [11:55:20]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:55:20]wFMCommunicate OK [11:55:20]SAM_PROTO_GetShiftState done [11:55:20]FM_GetShiftState done [11:55:20]req_shift_opened done [11:55:20]requested_item shift.open_date is exist - process it [11:55:20]req_shift_open_date [11:55:20]req_shift_open_date done [11:55:20]produce_requested_data done [11:55:20]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164925,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [11:55:20]process_action_free close_receipt [11:55:20]json_value_free [11:55:20]json_value_free done [11:55:20]process_json_proto returns [11:55:20]Send response to host [11:55:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164925,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [11:55:20]free response buf [11:55:20]execute_script done [11:55:20]execute_script returns [11:55:20]free content buf [11:55:20]Sock 9.Close socket [11:55:20]Sock 9.Thread stoped [11:55:24]OFD Sender: No OFD packet to send [11:55:29]OFD Sender: No OFD packet to send [11:55:34]OFD Sender: No OFD packet to send [11:55:39]OFD Sender: No OFD packet to send [11:55:44]OFD Sender: No OFD packet to send [11:55:49]OFD Sender: No OFD packet to send [11:55:54]OFD Sender: No OFD packet to send [11:55:59]OFD Sender: No OFD packet to send [11:56:04]OFD Sender: No OFD packet to send [11:56:09]OFD Sender: No OFD packet to send [11:56:14]OFD Sender: No OFD packet to send [11:56:19]OFD Sender: No OFD packet to send [11:56:24]OFD Sender: No OFD packet to send [11:56:29]OFD Sender: No OFD packet to send [11:56:34]OFD Sender: No OFD packet to send [11:56:39]OFD Sender: No OFD packet to send [11:56:44]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:47]accept exits with 7 [11:57:47]New connection [11:57:47]New thread 3067473252 created [11:57:47]Thread 3067616612 joined [11:57:47]Waiting for new connection... [11:57:47] Sock 7.Parse request [11:57:47]Sock 7.Check first char [11:57:47]Sock 7.First char is OK [11:57:47]request: POST /json_proto HTTP/1.0 [11:57:47]Method: POST [11:57:47]URL: /json_proto [11:57:47]Method is POST - this is cgi request [11:57:47]url: /json_proto [11:57:47]query_string will be loaded in cgi processing [11:57:47]execute_cgi json_proto POST (null) [11:57:47]execute_cgi path=json_proto method=POST [11:57:47]POST find Content-Length [11:57:47]Host: 172.17.56.4:8080 [11:57:47]Content-Length: 677 [11:57:47]Content-Type: application/json [11:57:47] [11:57:47]POST finish read [11:57:47]Found Content-Length = 677 [11:57:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459022", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:57:47]execute_script... [11:57:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459022", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:57:47]POST & json_proto [11:57:47]process_json_proto [11:57:47]json parsed OK: [11:57:47]protocol is kg_v1.0 [11:57:47]action value=close_receipt [11:57:47]process_action close_receipt [11:57:47]cmd_close_receipt [11:57:47]MH_GetDate [11:57:47]Write to MH i2c: F0 00 00 1A 15 1E [11:57:47]Write i2c OK [11:57:47]MH_I2C_Read... [11:57:47]Read from MH i2c: F0 [11:57:47]MH_I2C_Read... [11:57:47]Read from MH i2c: F0 09 00 [11:57:47]MH_I2C_Read... [11:57:47]Read from MH i2c: F0 09 00 1A 15 00 3C BD 93 66 C9 DC B2 64 D4 [11:57:47]GetLastDocTimeStamp 1720958117 [11:57:47]current date 1720958268 [11:57:47]FM_GetShiftState [11:57:47]SAM_PROTO_GetShiftState [11:57:47]wFMCommunicate request_size=4 [11:57:47]MH_SAM_APDU [11:57:47]CAPDU: 80 13 01 00 [11:57:47]Write to MH i2c: E2 08 00 1B 15 80 13 01 00 00 00 00 00 AD [11:57:47]Write i2c OK [11:57:47]MH_I2C_Read... [11:57:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:47]Read from MH i2c: E2 [11:57:47]MH_I2C_Read... [11:57:47]Read from MH i2c: E2 0E 00 [11:57:47]MH_I2C_Read... [11:57:47]Read from MH i2c: E2 0E 00 1B 15 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 2D [11:57:47]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:57:47]wFMCommunicate OK [11:57:47]SAM_PROTO_GetShiftState done [11:57:47]FM_GetShiftState done [11:57:47]opened in 1720917342 [11:57:47]opened+sec_in_day 1721003742 [11:57:47]quantity*price = 50008 [11:57:47]sum+1 = 50009 [11:57:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 124 14.07.2024 11:57 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164926 ФПД: 253371188146896 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T115748&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164926&fm=253371188146896&tin=02508201610067®Number=0000000000090829&sum=50000 [11:57:48]StoreToDocumentArchive [11:57:48]shift 447 fd 164926 [11:57:48]save to /storage/0447/doc_00164926 [11:57:48]save last doc name /storage/0447/doc_00164926 to /storage/kkm_last_doc_name [11:57:48]save OK [11:57:48]Clear old archive folders... [11:57:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:57:48]tlvbuf is 00757CF0 [11:57:48]SAM_PROTO_ClearQueue [11:57:48]wFMCommunicate request_size=4 [11:57:48]MH_SAM_APDU [11:57:48]CAPDU: 80 09 00 00 [11:57:48]Write to MH i2c: E2 08 00 28 15 80 09 00 00 00 00 00 00 AF [11:57:48]Write i2c OK [11:57:48]MH_I2C_Read... [11:57:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:57:48]Read from MH i2c: E2 [11:57:48]MH_I2C_Read... [11:57:48]Read from MH i2c: E2 03 00 [11:57:48]MH_I2C_Read... [11:57:48]Read from MH i2c: E2 03 00 28 15 00 90 00 B1 [11:57:48]RAPDU: 90 00 [11:57:48]wFMCommunicate OK [11:57:48]SAM_PROTO_ClearQueue done [11:57:48]KKMCreateOFDPacket [11:57:48]OFDProtocolAddRootSTLVToBuf [11:57:48]FM_MakeSignedData [11:57:48]FM_MakeSignedData [11:57:48]SAM_PROTO_SignData [11:57:48]wFMCommunicate request_size=4 [11:57:48]MH_SAM_APDU [11:57:48]CAPDU: 80 0D 01 02 [11:57:48]Write to MH i2c: E2 08 00 29 15 80 0D 01 02 00 00 00 00 B7 [11:57:48]Write i2c OK [11:57:48]MH_I2C_Read... [11:57:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:57:48]Read from MH i2c: E2 [11:57:48]MH_I2C_Read... [11:57:48]Read from MH i2c: E2 03 00 [11:57:48]MH_I2C_Read... [11:57:48]Read from MH i2c: E2 03 00 29 15 00 90 00 B2 [11:57:48]RAPDU: 90 00 [11:57:48]wFMCommunicate OK [11:57:48]wFMCommunicate request_size=255 [11:57:48]MH_SAM_APDU [11:57:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 7C 00 00 00 F4 03 04 00 3C BD 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3E 84 02 00 35 04 06 00 E6 [11:57:48]Write to MH i2c: E2 02 01 2A 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 7C 00 00 00 F4 03 04 00 3C BD 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3E 84 02 00 35 04 06 00 E6 00 00 08 [11:57:48]Write i2c OK [11:57:48]MH_I2C_Read... [11:57:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:49]Read from MH i2c: E2 [11:57:49]MH_I2C_Read... [11:57:49]Read from MH i2c: E2 03 00 [11:57:49]MH_I2C_Read... [11:57:49]Read from MH i2c: E2 03 00 2A 15 00 90 00 B3 [11:57:49]RAPDU: 90 00 [11:57:49]wFMCommunicate OK [11:57:49]wFMCommunicate request_size=10 [11:57:49]MH_SAM_APDU [11:57:49]CAPDU: 80 0D 02 02 05 70 93 AA 72 D0 [11:57:49]Write to MH i2c: E2 0D 00 2B 15 80 0D 02 02 05 00 70 93 AA 72 D0 00 00 B3 [11:57:49]Write i2c OK [11:57:49]MH_I2C_Read... [11:57:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:49]Read from MH i2c: E2 [11:57:49]MH_I2C_Read... [11:57:49]Read from MH i2c: E2 03 00 [11:57:49]MH_I2C_Read... [11:57:49]Read from MH i2c: E2 03 00 2B 15 00 90 00 B4 [11:57:49]RAPDU: 90 00 [11:57:49]wFMCommunicate OK [11:57:49]wFMCommunicate request_size=4 [11:57:49]MH_SAM_APDU [11:57:49]CAPDU: 80 0D 03 02 [11:57:49]Write to MH i2c: E2 08 00 2C 15 80 0D 03 02 00 00 00 00 BC [11:57:49]Write i2c OK [11:57:49]MH_I2C_Read... [11:57:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:57:49]Read from MH i2c: E2 [11:57:49]MH_I2C_Read... [11:57:49]Read from MH i2c: E2 0B 00 [11:57:49]MH_I2C_Read... [11:57:49]Read from MH i2c: E2 0B 00 2C 15 00 33 86 BB A7 B7 FE E9 19 90 00 8F [11:57:49]RAPDU: 33 86 BB A7 B7 FE E9 19 90 00 [11:57:49]wFMCommunicate OK [11:57:49]SAM_PROTO_SignData done [11:57:49]FM_MakeSignedData done [11:57:49]CreateOFDProtocolMessage [11:57:49]wFMCommunicate request_size=4 [11:57:49]MH_SAM_APDU [11:57:49]CAPDU: 80 11 00 00 [11:57:49]Write to MH i2c: E2 08 00 2D 15 80 11 00 00 00 00 00 00 BC [11:57:49]Write i2c OK [11:57:49]MH_I2C_Read... [11:57:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:49]Read from MH i2c: E2 [11:57:49]MH_I2C_Read... [11:57:49]Read from MH i2c: E2 17 00 [11:57:49]MH_I2C_Read... [11:57:49]Read from MH i2c: E2 17 00 2D 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 12 [11:57:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:57:49]wFMCommunicate OK [11:57:49]CreateOFDProtocolMessage done [11:57:49]OFDSenderStorePacket 164926 [11:57:49]StoreOFDPacket docnum=164926 [11:57:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 18 4E 07 01 6C 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 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 7C 00 00 00 F4 03 04 00 3C BD 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3E 84 02 00 35 04 06 00 E6 70 93 AA 72 D0 33 86 BB A7 B7 FE E9 19 [11:57:49]CheckFolder [11:57:49]dirname=/storage/ofd_packets [11:57:49]CheckFolder done [11:57:49]ProducePacketName [11:57:49]name=ofd_packets/00164926 [11:57:49]NVStorageSaveData ofd_packets/00164926 [11:57:49]File name is /storage/ofd_packets/00164926 [11:57:49]Write 301 bytes [11:57:49]NVStorageSaveData done [11:57:49]OFDSenderStorePacket done [11:57:49]KKMCreateOFDPacket done [11:57:49]NVStorageSaveData kkm_last_timestamp [11:57:49]File name is /storage/kkm_last_timestamp [11:57:49]Write 4 bytes [11:57:49]NVStorageSaveData done [11:57:49]ExternCall_PrintAddStr [11:57:49]wPrintStart [11:57:49]Write to MH i2c: 01 00 00 2E 15 43 [11:57:49]Write i2c OK [11:57:49]MH_I2C_Read... [11:57:49]Read from MH i2c: 01 [11:57:49]MH_I2C_Read... [11:57:49]Read from MH i2c: 01 07 00 [11:57:49]MH_I2C_Read... [11:57:49]Read from MH i2c: 01 07 00 2E 15 00 00 00 00 00 FF 0F 58 [11:57:49]RasterBufferAndPrint [11:57:49]line Счет N : (1)459022 [11:57:49]line ИНН: 02508201610067 [11:57:49]line Контрольно-Кассовый Чек [11:57:49]line ПРОДАЖА [11:57:49]line ТРК (МРК, ГНК) : 12 [11:57:49]line Товар: 2710124130 [11:57:49]line Аи-92-К-5 [11:57:49]line 7.600 * 65.80 [11:57:49]line = 500.08 [11:57:49]line НДС 12% НСП 1% [11:57:49]line > о реализуемом товаре [11:57:49]line ОКРУГЛЕНИЕ: -0.08 [11:57:49]line ИТОГО: 500.00 [11:57:49]line Внесено: 500.00 [11:57:49]line СДАЧА: 0.00 [11:57:49]line НСП 1% : 4.42 [11:57:49]line НДС 12% : 53.11 [11:57:49]line Наличными: 500.00 [11:57:49]line Безнал.: 0.00 [11:57:49]line Место: АЗС № 72 "Партнер Нефть" [11:57:49]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:57:49]line СНО: Общий режим [11:57:49]line Чек 124 14.07.2024 11:57 [11:57:49]line Смена: 447 ФФД: 1.0 [11:57:49]line ЗНМ: 0300000160 [11:57:49]line РНМ: 0000000000090829 [11:57:49]line Версия ККМ: 001 [11:57:49]line ФМ: 0000000000874718 [11:57:49]line ФД: 164926 [11:57:49]line ФПД: 253371188146896 [11:57:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T115748&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164926&fm=253371188146896&tin=02508201610067®Number=0000000000090829&sum=50000 [11:57:49]OFD Sender: Processing packet 164926 [packets to send 104, broken 103] [11:57:49]ProducePacketName [11:57:49]name=ofd_packets/00164926 [11:57:49]OFD Sender: To server: pG, [11:57:49]CommunicateWithHost lk.salyk.kg:30040 [11:57:49]ConnectInit lk.salyk.kg [11:57:49]written 0, free lines is 4095 [11:57:49]Connected sock=10 [11:57:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 18 4E 07 01 6C 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 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 7C 00 00 00 F4 03 04 00 3C BD 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3E 84 02 00 35 04 06 00 E6 70 93 AA 72 D0 33 86 BB A7 B7 FE E9 19 [11:57:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 59 82 47 00 1F B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3E 84 02 00 F4 03 04 00 CA 63 93 66 B6 04 01 00 00 35 61 76 28 83 D1 57 C3 [11:57:49]CommunicateWithHost err = 0 [11:57:49]CheckOFDResponse [11:57:49]1017 (14) - 77093643461234 [11:57:49]1041 (16) - 0000000000874718 [11:57:49]1040 (4) - 164926 [11:57:49]1012 (4) - 14.07.2024 05:36 [11:57:49]1206 (1) - 0 [11:57:49]OFD Sender: Remove packet 164926 [11:57:49]ProducePacketName [11:57:49]name=ofd_packets/00164926 [11:57:49]NVStorageDeleteData [11:57:50]Write to MH i2c: 01 00 00 58 15 6D [11:57:50]Write i2c OK [11:57:50]MH_I2C_Read... [11:57:50]Read from MH i2c: 01 [11:57:50]MH_I2C_Read... [11:57:50]Read from MH i2c: 01 07 00 [11:57:50]MH_I2C_Read... [11:57:50]Read from MH i2c: 01 07 00 58 15 00 00 00 00 00 F6 0C 76 [11:57:50]RasterBufferAndPrint [11:57:50]line [11:57:50]line [11:57:50]line [11:57:50]line [11:57:50]line [11:57:50]written 0, free lines is 3323 [11:57:50]MH_Cut [11:57:50]Write to MH i2c: D1 01 00 5F 15 01 46 [11:57:50]Write i2c OK [11:57:50]MH_I2C_Read... [11:57:50]Read from MH i2c: D1 [11:57:50]MH_I2C_Read... [11:57:50]Read from MH i2c: D1 01 00 [11:57:50]MH_I2C_Read... [11:57:50]Read from MH i2c: D1 01 00 5F 15 00 45 [11:57:50]Write to MH i2c: 01 00 00 60 15 75 [11:57:50]Write i2c OK [11:57:50]MH_I2C_Read... [11:57:50]OFD Sender: No OFD packet to send [11:57:50]*** Cut start [11:57:50]*** Partial cut [11:57:50]*** CUTSNS_PIN = 1 [11:57:50]*** CUTSNS_PIN = 0 [11:57:50]*** Brake cut motor [11:57:51]Read from MH i2c: 01 [11:57:51]MH_I2C_Read... [11:57:51]*** Stop cut motor [11:57:51]*** Cut end [11:57:51]Read from MH i2c: 01 07 00 [11:57:51]MH_I2C_Read... [11:57:51]Read from MH i2c: 01 07 00 60 15 00 00 00 00 00 FF 0F 8A [11:57:51]process_action close_receipt done [11:57:51]requested_data is exist [11:57:51]produce_requested_data [11:57:51]requested_item fm.sn is exist - process it [11:57:51]wFMCommunicate request_size=4 [11:57:51]MH_SAM_APDU [11:57:51]CAPDU: 80 11 00 00 [11:57:51]Write to MH i2c: E2 08 00 61 15 80 11 00 00 00 00 00 00 F0 [11:57:51]Write i2c OK [11:57:51]MH_I2C_Read... [11:57:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:51]Read from MH i2c: E2 [11:57:51]MH_I2C_Read... [11:57:51]Read from MH i2c: E2 17 00 [11:57:51]MH_I2C_Read... [11:57:51]Read from MH i2c: E2 17 00 61 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 46 [11:57:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:57:51]wFMCommunicate OK [11:57:51]requested_item fd.num is exist - process it [11:57:51]SAM_PROTO_GetFieldsCounters [11:57:51]wFMCommunicate request_size=4 [11:57:51]MH_SAM_APDU [11:57:51]CAPDU: 80 13 00 00 [11:57:51]Write to MH i2c: E2 08 00 62 15 80 13 00 00 00 00 00 00 F3 [11:57:51]Write i2c OK [11:57:51]MH_I2C_Read... [11:57:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:57:51]Read from MH i2c: E2 [11:57:51]MH_I2C_Read... [11:57:51]Read from MH i2c: E2 62 00 [11:57:51]MH_I2C_Read... [11:57:51]Read from MH i2c: E2 62 00 62 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 3E 84 02 00 0E 04 04 00 BF 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 12 [11:57:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 3E 84 02 00 0E 04 04 00 BF 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 [11:57:51]wFMCommunicate OK [11:57:51]SAM_PROTO_GetFieldsCounters done [11:57:51]requested_item shift.num is exist - process it [11:57:51]requested_item shift.opened is exist - process it [11:57:51]req_shift_opened [11:57:51]FM_GetShiftState [11:57:51]SAM_PROTO_GetShiftState [11:57:51]wFMCommunicate request_size=4 [11:57:51]MH_SAM_APDU [11:57:51]CAPDU: 80 13 01 00 [11:57:51]Write to MH i2c: E2 08 00 63 15 80 13 01 00 00 00 00 00 F5 [11:57:51]Write i2c OK [11:57:51]MH_I2C_Read... [11:57:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:51]Read from MH i2c: E2 [11:57:51]MH_I2C_Read... [11:57:51]Read from MH i2c: E2 0E 00 [11:57:51]MH_I2C_Read... [11:57:51]Read from MH i2c: E2 0E 00 63 15 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 75 [11:57:51]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:57:51]wFMCommunicate OK [11:57:51]SAM_PROTO_GetShiftState done [11:57:51]FM_GetShiftState done [11:57:51]req_shift_opened done [11:57:51]requested_item shift.open_date is exist - process it [11:57:51]req_shift_open_date [11:57:51]req_shift_open_date done [11:57:51]produce_requested_data done [11:57:51]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164926,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [11:57:51]process_action_free close_receipt [11:57:51]json_value_free [11:57:51]json_value_free done [11:57:51]process_json_proto returns [11:57:51]Send response to host [11:57:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164926,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [11:57:51]free response buf [11:57:51]execute_script done [11:57:51]execute_script returns [11:57:51]free content buf [11:57:51]Sock 7.Close socket [11:57:51]Sock 7.Thread stoped [11:57:55]OFD Sender: No OFD packet to send [11:58:00]OFD Sender: No OFD packet to send [11:58:03]accept exits with 9 [11:58:03]New connection [11:58:03]New thread 3067616612 created [11:58:03]Thread 3067473252 joined [11:58:03]Waiting for new connection... [11:58:03] Sock 9.Parse request [11:58:03]Sock 9.Check first char [11:58:03]Sock 9.First char is OK [11:58:03]request: POST /json_proto HTTP/1.0 [11:58:03]Method: POST [11:58:03]URL: /json_proto [11:58:03]Method is POST - this is cgi request [11:58:03]url: /json_proto [11:58:03]query_string will be loaded in cgi processing [11:58:03]execute_cgi json_proto POST (null) [11:58:03]execute_cgi path=json_proto method=POST [11:58:03]POST find Content-Length [11:58:03]Host: 172.17.56.4:8080 [11:58:03]Content-Length: 677 [11:58:03]Content-Type: application/json [11:58:03] [11:58:03]POST finish read [11:58:03]Found Content-Length = 677 [11:58:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459023", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:58:03]execute_script... [11: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)459023", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:58:03]POST & json_proto [11:58:03]process_json_proto [11:58:03]json parsed OK: [11:58:03]protocol is kg_v1.0 [11:58:03]action value=close_receipt [11:58:03]process_action close_receipt [11:58:03]cmd_close_receipt [11:58:03]MH_GetDate [11:58:03]Write to MH i2c: F0 00 00 64 15 68 [11:58:03]Write i2c OK [11:58:03]MH_I2C_Read... [11:58:03]Read from MH i2c: F0 [11:58:03]MH_I2C_Read... [11:58:03]Read from MH i2c: F0 09 00 [11:58:03]MH_I2C_Read... [11:58:03]Read from MH i2c: F0 09 00 64 15 00 4C BD 93 66 C9 DC B2 64 2E [11:58:03]GetLastDocTimeStamp 1720958268 [11:58:03]current date 1720958284 [11:58:03]FM_GetShiftState [11:58:03]SAM_PROTO_GetShiftState [11:58:03]wFMCommunicate request_size=4 [11:58:03]MH_SAM_APDU [11:58:03]CAPDU: 80 13 01 00 [11:58:03]Write to MH i2c: E2 08 00 65 15 80 13 01 00 00 00 00 00 F7 [11:58:03]Write i2c OK [11:58:03]MH_I2C_Read... [11:58:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:03]Read from MH i2c: E2 [11:58:03]MH_I2C_Read... [11:58:03]Read from MH i2c: E2 0E 00 [11:58:03]MH_I2C_Read... [11:58:03]Read from MH i2c: E2 0E 00 65 15 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 77 [11:58:03]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:58:03]wFMCommunicate OK [11:58:03]SAM_PROTO_GetShiftState done [11:58:03]FM_GetShiftState done [11:58:03]opened in 1720917342 [11:58:03]opened+sec_in_day 1721003742 [11:58:03]quantity*price = 20003 [11:58:03]sum+1 = 20004 [11:58:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 125 14.07.2024 11:58 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164927 ФПД: 154974368041961 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T115804&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164927&fm=154974368041961&tin=02508201610067®Number=0000000000090829&sum=20000 [11:58:04]StoreToDocumentArchive [11:58:04]shift 447 fd 164927 [11:58:04]save to /storage/0447/doc_00164927 [11:58:04]save last doc name /storage/0447/doc_00164927 to /storage/kkm_last_doc_name [11:58:04]save OK [11:58:04]Clear old archive folders... [11:58:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:58:04]tlvbuf is 00746820 [11:58:04]SAM_PROTO_ClearQueue [11:58:04]wFMCommunicate request_size=4 [11:58:04]MH_SAM_APDU [11:58:04]CAPDU: 80 09 00 00 [11:58:04]Write to MH i2c: E2 08 00 72 15 80 09 00 00 00 00 00 00 F9 [11:58:04]Write i2c OK [11:58:04]MH_I2C_Read... [11:58:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:58:04]Read from MH i2c: E2 [11:58:04]MH_I2C_Read... [11:58:04]Read from MH i2c: E2 03 00 [11:58:04]MH_I2C_Read... [11:58:04]Read from MH i2c: E2 03 00 72 15 00 90 00 FB [11:58:04]RAPDU: 90 00 [11:58:04]wFMCommunicate OK [11:58:04]SAM_PROTO_ClearQueue done [11:58:04]KKMCreateOFDPacket [11:58:04]OFDProtocolAddRootSTLVToBuf [11:58:04]FM_MakeSignedData [11:58:04]FM_MakeSignedData [11:58:04]SAM_PROTO_SignData [11:58:04]wFMCommunicate request_size=4 [11:58:04]MH_SAM_APDU [11:58:04]CAPDU: 80 0D 01 02 [11:58:04]Write to MH i2c: E2 08 00 73 15 80 0D 01 02 00 00 00 00 01 [11:58:04]Write i2c OK [11:58:04]MH_I2C_Read... [11:58:04]Read from MH i2c: E2 [11:58:04]MH_I2C_Read... [11:58:04]Read from MH i2c: E2 03 00 [11:58:04]MH_I2C_Read... [11:58:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:58:04]Read from MH i2c: E2 03 00 73 15 00 90 00 FC [11:58:04]RAPDU: 90 00 [11:58:04]wFMCommunicate OK [11:58:04]wFMCommunicate request_size=255 [11:58:04]MH_SAM_APDU [11: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 7D 00 00 00 F4 03 04 00 4C BD 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3F 84 02 00 35 04 06 00 8C [11:58:04]Write to MH i2c: E2 02 01 74 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 7D 00 00 00 F4 03 04 00 4C BD 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3F 84 02 00 35 04 06 00 8C 00 00 AB [11:58:04]Write i2c OK [11:58:04]MH_I2C_Read... [11:58:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:04]Read from MH i2c: E2 [11:58:04]MH_I2C_Read... [11:58:04]Read from MH i2c: E2 03 00 [11:58:04]MH_I2C_Read... [11:58:04]Read from MH i2c: E2 03 00 74 15 00 90 00 FD [11:58:04]RAPDU: 90 00 [11:58:04]wFMCommunicate OK [11:58:04]wFMCommunicate request_size=10 [11:58:04]MH_SAM_APDU [11:58:04]CAPDU: 80 0D 02 02 05 F2 C8 28 0B E9 [11:58:04]Write to MH i2c: E2 0D 00 75 15 80 0D 02 02 05 00 F2 C8 28 0B E9 00 00 E4 [11:58:04]Write i2c OK [11:58:04]MH_I2C_Read... [11:58:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:04]Read from MH i2c: E2 [11:58:04]MH_I2C_Read... [11:58:04]Read from MH i2c: E2 03 00 [11:58:04]MH_I2C_Read... [11:58:04]Read from MH i2c: E2 03 00 75 15 00 90 00 FE [11:58:04]RAPDU: 90 00 [11:58:04]wFMCommunicate OK [11:58:04]wFMCommunicate request_size=4 [11:58:04]MH_SAM_APDU [11:58:04]CAPDU: 80 0D 03 02 [11:58:04]Write to MH i2c: E2 08 00 76 15 80 0D 03 02 00 00 00 00 06 [11:58:04]Write i2c OK [11:58:04]MH_I2C_Read... [11:58:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:58:04]Read from MH i2c: E2 [11:58:04]MH_I2C_Read... [11:58:04]Read from MH i2c: E2 0B 00 [11:58:04]MH_I2C_Read... [11:58:04]Read from MH i2c: E2 0B 00 76 15 00 3D 5E 43 D6 EA 93 FC 52 90 00 86 [11:58:04]RAPDU: 3D 5E 43 D6 EA 93 FC 52 90 00 [11:58:04]wFMCommunicate OK [11:58:04]SAM_PROTO_SignData done [11:58:04]FM_MakeSignedData done [11:58:04]CreateOFDProtocolMessage [11:58:04]wFMCommunicate request_size=4 [11:58:04]MH_SAM_APDU [11:58:04]CAPDU: 80 11 00 00 [11:58:04]Write to MH i2c: E2 08 00 77 15 80 11 00 00 00 00 00 00 06 [11:58:04]Write i2c OK [11:58:04]MH_I2C_Read... [11:58:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:05]Read from MH i2c: E2 [11:58:05]MH_I2C_Read... [11:58:05]Read from MH i2c: E2 17 00 [11:58:05]MH_I2C_Read... [11:58:05]Read from MH i2c: E2 17 00 77 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 5C [11:58:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:58:05]wFMCommunicate OK [11:58:05]CreateOFDProtocolMessage done [11:58:05]OFDSenderStorePacket 164927 [11:58:05]StoreOFDPacket docnum=164927 [11:58:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 7B F3 07 01 4E 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 7D 00 00 00 F4 03 04 00 4C BD 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3F 84 02 00 35 04 06 00 8C F2 C8 28 0B E9 3D 5E 43 D6 EA 93 FC 52 [11:58:05]CheckFolder [11:58:05]dirname=/storage/ofd_packets [11:58:05]CheckFolder done [11:58:05]ProducePacketName [11:58:05]name=ofd_packets/00164927 [11:58:05]NVStorageSaveData ofd_packets/00164927 [11:58:05]File name is /storage/ofd_packets/00164927 [11:58:05]Write 301 bytes [11:58:05]NVStorageSaveData done [11:58:05]OFDSenderStorePacket done [11:58:05]KKMCreateOFDPacket done [11:58:05]NVStorageSaveData kkm_last_timestamp [11:58:05]File name is /storage/kkm_last_timestamp [11:58:05]Write 4 bytes [11:58:05]NVStorageSaveData done [11:58:05]ExternCall_PrintAddStr [11:58:05]wPrintStart [11:58:05]Write to MH i2c: 01 00 00 78 15 8D [11:58:05]Write i2c OK [11:58:05]MH_I2C_Read... [11:58:05]Read from MH i2c: 01 [11:58:05]MH_I2C_Read... [11:58:05]Read from MH i2c: 01 07 00 [11:58:05]MH_I2C_Read... [11:58:05]Read from MH i2c: 01 07 00 78 15 00 00 00 00 00 FF 0F A2 [11:58:05]RasterBufferAndPrint [11:58:05]line Счет N : (1)459023 [11:58:05]line ИНН: 02508201610067 [11:58:05]line Контрольно-Кассовый Чек [11:58:05]line ПРОДАЖА [11:58:05]line ТРК (МРК, ГНК) : 22 [11:58:05]line Товар: 2710124130 [11:58:05]line Аи-92-К-5 [11:58:05]line 3.040 * 65.80 [11:58:05]line = 200.03 [11:58:05]line НДС 12% НСП 1% [11:58:05]line > о реализуемом товаре [11:58:05]line ОКРУГЛЕНИЕ: -0.03 [11:58:05]line ИТОГО: 200.00 [11:58:05]line Внесено: 200.00 [11:58:05]line СДАЧА: 0.00 [11:58:05]line НСП 1% : 1.77 [11:58:05]line НДС 12% : 21.24 [11:58:05]line Наличными: 200.00 [11:58:05]line Безнал.: 0.00 [11:58:05]line Место: АЗС № 72 "Партнер Нефть" [11:58:05]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:58:05]line СНО: Общий режим [11:58:05]line Чек 125 14.07.2024 11:58 [11:58:05]line Смена: 447 ФФД: 1.0 [11:58:05]line ЗНМ: 0300000160 [11:58:05]line РНМ: 0000000000090829 [11:58:05]line Версия ККМ: 001 [11:58:05]line ФМ: 0000000000874718 [11:58:05]line ФД: 164927 [11:58:05]line ФПД: 154974368041961 [11:58:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T115804&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164927&fm=154974368041961&tin=02508201610067®Number=0000000000090829&sum=20000 [11:58:05]written 0, free lines is 4095 [11:58:05]OFD Sender: Processing packet 164927 [packets to send 104, broken 103] [11:58:05]ProducePacketName [11:58:05]name=ofd_packets/00164927 [11:58:05]OFD Sender: To server: pG, [11:58:05]CommunicateWithHost lk.salyk.kg:30040 [11:58:05]ConnectInit lk.salyk.kg [11:58:05]Connected sock=10 [11:58:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 7B F3 07 01 4E 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 7D 00 00 00 F4 03 04 00 4C BD 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3F 84 02 00 35 04 06 00 8C F2 C8 28 0B E9 3D 5E 43 D6 EA 93 FC 52 [11:58:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 C6 FF 47 00 25 D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3F 84 02 00 F4 03 04 00 DA 63 93 66 B6 04 01 00 00 7B 65 D1 3A 78 8B 5A DB [11:58:05]CommunicateWithHost err = 0 [11:58:05]CheckOFDResponse [11:58:05]1017 (14) - 77093643461234 [11:58:05]1041 (16) - 0000000000874718 [11:58:05]1040 (4) - 164927 [11:58:05]1012 (4) - 14.07.2024 05:36 [11:58:05]1206 (1) - 0 [11:58:05]OFD Sender: Remove packet 164927 [11:58:05]ProducePacketName [11:58:05]name=ofd_packets/00164927 [11:58:05]NVStorageDeleteData [11:58:05]Write to MH i2c: 01 00 00 A2 15 B7 [11:58:05]Write i2c OK [11:58:05]MH_I2C_Read... [11:58:05]Read from MH i2c: 01 [11:58:05]MH_I2C_Read... [11:58:05]Read from MH i2c: 01 07 00 [11:58:05]MH_I2C_Read... [11:58:05]Read from MH i2c: 01 07 00 A2 15 00 00 00 00 00 EF 0C B9 [11:58:05]RasterBufferAndPrint [11:58:05]line [11:58:05]line [11:58:05]line [11:58:05]line [11:58:05]line [11:58:05]written 0, free lines is 3317 [11:58:05]MH_Cut [11:58:05]Write to MH i2c: D1 01 00 A9 15 01 90 [11:58:05]Write i2c OK [11:58:05]MH_I2C_Read... [11:58:05]Read from MH i2c: D1 [11:58:05]MH_I2C_Read... [11:58:05]Read from MH i2c: D1 01 00 [11:58:05]MH_I2C_Read... [11:58:05]Read from MH i2c: D1 01 00 A9 15 00 8F [11:58:05]Write to MH i2c: 01 00 00 AA 15 BF [11:58:05]Write i2c OK [11:58:05]MH_I2C_Read... [11:58:06]OFD Sender: No OFD packet to send [11:58:06]*** Cut start [11:58:06]*** Partial cut [11:58:06]*** CUTSNS_PIN = 1 [11:58:06]*** CUTSNS_PIN = 0 [11:58:06]*** Brake cut motor [11:58:07]Read from MH i2c: 01 [11:58:07]MH_I2C_Read... [11:58:07]*** Stop cut motor [11:58:07]*** Cut end [11:58:07]Read from MH i2c: 01 07 00 [11:58:07]MH_I2C_Read... [11:58:07]Read from MH i2c: 01 07 00 AA 15 00 00 00 00 00 FF 0F D4 [11:58:07]process_action close_receipt done [11:58:07]requested_data is exist [11:58:07]produce_requested_data [11:58:07]requested_item fm.sn is exist - process it [11:58:07]wFMCommunicate request_size=4 [11:58:07]MH_SAM_APDU [11:58:07]CAPDU: 80 11 00 00 [11:58:07]Write to MH i2c: E2 08 00 AB 15 80 11 00 00 00 00 00 00 3A [11:58:07]Write i2c OK [11:58:07]MH_I2C_Read... [11:58:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:07]Read from MH i2c: E2 [11:58:07]MH_I2C_Read... [11:58:07]Read from MH i2c: E2 17 00 [11:58:07]MH_I2C_Read... [11:58:07]Read from MH i2c: E2 17 00 AB 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 90 [11:58:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:58:07]wFMCommunicate OK [11:58:07]requested_item fd.num is exist - process it [11:58:07]SAM_PROTO_GetFieldsCounters [11:58:07]wFMCommunicate request_size=4 [11:58:07]MH_SAM_APDU [11:58:07]CAPDU: 80 13 00 00 [11:58:07]Write to MH i2c: E2 08 00 AC 15 80 13 00 00 00 00 00 00 3D [11:58:07]Write i2c OK [11:58:07]MH_I2C_Read... [11:58:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:58:07]Read from MH i2c: E2 [11:58:07]MH_I2C_Read... [11:58:07]Read from MH i2c: E2 62 00 [11:58:07]MH_I2C_Read... [11:58:07]Read from MH i2c: E2 62 00 AC 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 3F 84 02 00 0E 04 04 00 BF 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 60 [11:58:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 3F 84 02 00 0E 04 04 00 BF 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 [11:58:07]wFMCommunicate OK [11:58:07]SAM_PROTO_GetFieldsCounters done [11:58:07]requested_item shift.num is exist - process it [11:58:07]requested_item shift.opened is exist - process it [11:58:07]req_shift_opened [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 AD 15 80 13 01 00 00 00 00 00 3F [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 AD 15 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 BF [11:58:07]RAPDU: 09 00 01 5E 1D 93 66 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]req_shift_opened done [11:58:07]requested_item shift.open_date is exist - process it [11:58:07]req_shift_open_date [11:58:07]req_shift_open_date done [11:58:07]produce_requested_data done [11:58:07]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164927,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [11:58:07]process_action_free close_receipt [11:58:07]json_value_free [11:58:07]json_value_free done [11:58:07]process_json_proto returns [11:58:07]Send response to host [11:58:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164927,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [11:58:07]free response buf [11:58:07]execute_script done [11:58:07]execute_script returns [11:58:07]free content buf [11:58:07]Sock 9.Close socket [11:58:07]Sock 9.Thread stoped [11:58:11]OFD Sender: No OFD packet to send [11:58:16]OFD Sender: No OFD packet to send [11:58:21]OFD Sender: No OFD packet to send [11:58:26]OFD Sender: No OFD packet to send [11:58:31]OFD Sender: No OFD packet to send [11:58:36]OFD Sender: No OFD packet to send [11:58:41]accept exits with 7 [11:58:41]New connection [11:58:41]New thread 3067473252 created [11:58:41]Thread 3067616612 joined [11:58:41]Waiting for new connection... [11:58:41] Sock 7.Parse request [11:58:41]Sock 7.Check first char [11:58:41]Sock 7.First char is OK [11:58:41]request: POST /json_proto HTTP/1.0 [11:58:41]Method: POST [11:58:41]URL: /json_proto [11:58:41]Method is POST - this is cgi request [11:58:41]url: /json_proto [11:58:41]query_string will be loaded in cgi processing [11:58:41]execute_cgi json_proto POST (null) [11:58:41]execute_cgi path=json_proto method=POST [11:58:41]POST find Content-Length [11:58:41]Host: 172.17.56.4:8080 [11:58:41]Content-Length: 678 [11:58:41]Content-Type: application/json [11:58:41] [11:58:41]POST finish read [11:58:41]Found Content-Length = 678 [11:58:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459024", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "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" ] } } [11:58:41]execute_script... [11:58: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)459024", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "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" ] } } [11:58:41]POST & json_proto [11:58:41]process_json_proto [11:58:41]json parsed OK: [11:58:41]protocol is kg_v1.0 [11:58:41]action value=close_receipt [11:58:41]process_action close_receipt [11:58:41]cmd_close_receipt [11:58:41]MH_GetDate [11:58:41]Write to MH i2c: F0 00 00 AE 15 B2 [11:58:41]Write i2c OK [11:58:41]MH_I2C_Read... [11:58:41]Read from MH i2c: F0 [11:58:41]MH_I2C_Read... [11:58:41]Read from MH i2c: F0 09 00 [11:58:41]MH_I2C_Read... [11:58:41]Read from MH i2c: F0 09 00 AE 15 00 72 BD 93 66 C9 DC B2 64 9E [11:58:41]GetLastDocTimeStamp 1720958284 [11:58:41]current date 1720958322 [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 AF 15 80 13 01 00 00 00 00 00 41 [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 AF 15 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 C1 [11:58:41]RAPDU: 09 00 01 5E 1D 93 66 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]opened in 1720917342 [11:58:41]opened+sec_in_day 1721003742 [11:58:41]quantity*price = 70011 [11:58:41]sum+1 = 70012 [11:58:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 126 14.07.2024 11:58 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164928 ФПД: 265150253883707 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T115842&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164928&fm=265150253883707&tin=02508201610067®Number=0000000000090829&sum=70000 [11:58:42]StoreToDocumentArchive [11:58:42]shift 447 fd 164928 [11:58:42]save to /storage/0447/doc_00164928 [11:58:42]save last doc name /storage/0447/doc_00164928 to /storage/kkm_last_doc_name [11:58:42]save OK [11:58:42]Clear old archive folders... [11:58:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:58:42]tlvbuf is 007A90E0 [11:58:42]SAM_PROTO_ClearQueue [11:58:42]wFMCommunicate request_size=4 [11:58:42]MH_SAM_APDU [11:58:42]CAPDU: 80 09 00 00 [11:58:42]Write to MH i2c: E2 08 00 BC 15 80 09 00 00 00 00 00 00 43 [11:58:42]Write i2c OK [11:58:42]MH_I2C_Read... [11:58:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:58:42]Read from MH i2c: E2 [11:58:42]MH_I2C_Read... [11:58:42]Read from MH i2c: E2 03 00 [11:58:42]MH_I2C_Read... [11:58:42]Read from MH i2c: E2 03 00 BC 15 00 90 00 45 [11:58:42]RAPDU: 90 00 [11:58:42]wFMCommunicate OK [11:58:42]SAM_PROTO_ClearQueue done [11:58:42]KKMCreateOFDPacket [11:58:42]OFDProtocolAddRootSTLVToBuf [11:58:42]FM_MakeSignedData [11:58:42]FM_MakeSignedData [11:58:42]SAM_PROTO_SignData [11:58:42]wFMCommunicate request_size=4 [11:58:42]MH_SAM_APDU [11:58:42]CAPDU: 80 0D 01 02 [11:58:42]Write to MH i2c: E2 08 00 BD 15 80 0D 01 02 00 00 00 00 4B [11:58:42]Write i2c OK [11:58:42]MH_I2C_Read... [11:58:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:58:42]Read from MH i2c: E2 [11:58:42]MH_I2C_Read... [11:58:42]Read from MH i2c: E2 03 00 [11:58:42]MH_I2C_Read... [11:58:42]Read from MH i2c: E2 03 00 BD 15 00 90 00 46 [11:58:42]RAPDU: 90 00 [11:58:42]wFMCommunicate OK [11:58:42]wFMCommunicate request_size=255 [11:58:42]MH_SAM_APDU [11:58:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 7E 00 00 00 F4 03 04 00 72 BD 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 40 84 02 00 35 04 06 00 F1 [11:58:42]Write to MH i2c: E2 02 01 BE 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 7E 00 00 00 F4 03 04 00 72 BD 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 40 84 02 00 35 04 06 00 F1 00 00 25 [11:58:42]Write i2c OK [11:58:42]MH_I2C_Read... [11:58:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:42]Read from MH i2c: E2 [11:58:42]MH_I2C_Read... [11:58:42]Read from MH i2c: E2 03 00 [11:58:42]MH_I2C_Read... [11:58:42]Read from MH i2c: E2 03 00 BE 15 00 90 00 47 [11:58:42]RAPDU: 90 00 [11:58:42]wFMCommunicate OK [11:58:42]wFMCommunicate request_size=10 [11:58:42]MH_SAM_APDU [11:58:42]CAPDU: 80 0D 02 02 05 27 1A B1 E1 3B [11:58:42]Write to MH i2c: E2 0D 00 BF 15 80 0D 02 02 05 00 27 1A B1 E1 3B 00 00 66 [11:58:42]Write i2c OK [11:58:42]MH_I2C_Read... [11:58:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:42]Read from MH i2c: E2 [11:58:42]MH_I2C_Read... [11:58:42]Read from MH i2c: E2 03 00 [11:58:42]MH_I2C_Read... [11:58:42]Read from MH i2c: E2 03 00 BF 15 00 90 00 48 [11:58:42]RAPDU: 90 00 [11:58:42]wFMCommunicate OK [11:58:42]wFMCommunicate request_size=4 [11:58:42]MH_SAM_APDU [11:58:42]CAPDU: 80 0D 03 02 [11:58:42]Write to MH i2c: E2 08 00 C0 15 80 0D 03 02 00 00 00 00 50 [11:58:42]Write i2c OK [11:58:42]MH_I2C_Read... [11:58:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:58:42]Read from MH i2c: E2 [11:58:42]MH_I2C_Read... [11:58:42]Read from MH i2c: E2 0B 00 [11:58:42]MH_I2C_Read... [11:58:42]Read from MH i2c: E2 0B 00 C0 15 00 3E C0 2D 7D AE F2 E3 87 90 00 03 [11:58:42]RAPDU: 3E C0 2D 7D AE F2 E3 87 90 00 [11:58:42]wFMCommunicate OK [11:58:42]SAM_PROTO_SignData done [11:58:42]FM_MakeSignedData done [11:58:42]CreateOFDProtocolMessage [11:58:42]wFMCommunicate request_size=4 [11:58:42]MH_SAM_APDU [11:58:42]CAPDU: 80 11 00 00 [11:58:42]Write to MH i2c: E2 08 00 C1 15 80 11 00 00 00 00 00 00 50 [11:58:42]Write i2c OK [11:58:42]MH_I2C_Read... [11:58:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:42]Read from MH i2c: E2 [11:58:42]MH_I2C_Read... [11:58:42]Read from MH i2c: E2 17 00 [11:58:42]MH_I2C_Read... [11:58:42]Read from MH i2c: E2 17 00 C1 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A6 [11:58:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:58:42]wFMCommunicate OK [11:58:42]CreateOFDProtocolMessage done [11:58:42]OFDSenderStorePacket 164928 [11:58:42]StoreOFDPacket docnum=164928 [11:58:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C1 C2 07 01 74 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 7E 00 00 00 F4 03 04 00 72 BD 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 40 84 02 00 35 04 06 00 F1 27 1A B1 E1 3B 3E C0 2D 7D AE F2 E3 87 [11:58:42]CheckFolder [11:58:42]dirname=/storage/ofd_packets [11:58:42]CheckFolder done [11:58:42]ProducePacketName [11:58:42]name=ofd_packets/00164928 [11:58:42]NVStorageSaveData ofd_packets/00164928 [11:58:42]File name is /storage/ofd_packets/00164928 [11:58:42]Write 301 bytes [11:58:42]NVStorageSaveData done [11:58:42]OFDSenderStorePacket done [11:58:42]KKMCreateOFDPacket done [11:58:42]NVStorageSaveData kkm_last_timestamp [11:58:42]File name is /storage/kkm_last_timestamp [11:58:42]Write 4 bytes [11:58:42]NVStorageSaveData done [11:58:42]ExternCall_PrintAddStr [11:58:42]wPrintStart [11:58:42]Write to MH i2c: 01 00 00 C2 15 D7 [11:58:42]Write i2c OK [11:58:42]MH_I2C_Read... [11:58:42]Read from MH i2c: 01 [11:58:42]MH_I2C_Read... [11:58:42]Read from MH i2c: 01 07 00 [11:58:42]MH_I2C_Read... [11:58:42]Read from MH i2c: 01 07 00 C2 15 00 00 00 00 00 FF 0F EC [11:58:42]RasterBufferAndPrint [11:58:42]line Счет N : (1)459024 [11:58:42]line ИНН: 02508201610067 [11:58:42]line Контрольно-Кассовый Чек [11:58:42]line ПРОДАЖА [11:58:42]line ТРК (МРК, ГНК) : 12 [11:58:42]line Товар: 2710124130 [11:58:42]line Аи-92-К-5 [11:58:42]line 10.640 * 65.80 [11:58:42]line = 700.11 [11:58:42]line НДС 12% НСП 1% [11:58:42]line > о реализуемом товаре [11:58:42]line ОКРУГЛЕНИЕ: -0.11 [11:58:42]line ИТОГО: 700.00 [11:58:42]line Внесено: 700.00 [11:58:42]line СДАЧА: 0.00 [11:58:42]line НСП 1% : 6.20 [11:58:42]line НДС 12% : 74.35 [11:58:42]line Наличными: 700.00 [11:58:42]line Безнал.: 0.00 [11:58:42]line Место: АЗС № 72 "Партнер Нефть" [11:58:42]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:58:42]line СНО: Общий режим [11:58:42]line Чек 126 14.07.2024 11:58 [11:58:42]line Смена: 447 ФФД: 1.0 [11:58:42]line ЗНМ: 0300000160 [11:58:42]line РНМ: 0000000000090829 [11:58:42]line Версия ККМ: 001 [11:58:42]line ФМ: 0000000000874718 [11:58:42]line ФД: 164928 [11:58:42]line ФПД: 265150253883707 [11:58:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T115842&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164928&fm=265150253883707&tin=02508201610067®Number=0000000000090829&sum=70000 [11:58:43]OFD Sender: Processing packet 164928 [packets to send 104, broken 103] [11:58:43]ProducePacketName [11:58:43]name=ofd_packets/00164928 [11:58:43]OFD Sender: To server: pG, [11:58:43]CommunicateWithHost lk.salyk.kg:30040 [11:58:43]ConnectInit lk.salyk.kg [11:58:43]written 0, free lines is 4095 [11:58:43]Connected sock=10 [11:58:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C1 C2 07 01 74 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 7E 00 00 00 F4 03 04 00 72 BD 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 40 84 02 00 35 04 06 00 F1 27 1A B1 E1 3B 3E C0 2D 7D AE F2 E3 87 [11:58:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 0C 2D 47 00 B4 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 40 84 02 00 F4 03 04 00 00 64 93 66 B6 04 01 00 00 CE 51 CA 8D 96 4E 30 66 [11:58:43]CommunicateWithHost err = 0 [11:58:43]CheckOFDResponse [11:58:43]1017 (14) - 77093643461234 [11:58:43]1041 (16) - 0000000000874718 [11:58:43]1040 (4) - 164928 [11:58:43]1012 (4) - 14.07.2024 05:37 [11:58:43]1206 (1) - 0 [11:58:43]OFD Sender: Remove packet 164928 [11:58:43]ProducePacketName [11:58:43]name=ofd_packets/00164928 [11:58:43]NVStorageDeleteData [11:58:43]Write to MH i2c: 01 00 00 EC 15 01 [11:58:43]Write i2c OK [11:58:43]MH_I2C_Read... [11:58:43]Read from MH i2c: 01 [11:58:43]MH_I2C_Read... [11:58:43]Read from MH i2c: 01 07 00 [11:58:43]MH_I2C_Read... [11:58:43]Read from MH i2c: 01 07 00 EC 15 00 00 00 00 00 F5 0C 09 [11:58:43]RasterBufferAndPrint [11:58:43]line [11:58:43]line [11:58:43]line [11:58:43]line [11:58:43]line [11:58:43]written 0, free lines is 3323 [11:58:43]MH_Cut [11:58:43]Write to MH i2c: D1 01 00 F3 15 01 DA [11:58:43]Write i2c OK [11:58:43]MH_I2C_Read... [11:58:43]Read from MH i2c: D1 [11:58:43]MH_I2C_Read... [11:58:43]Read from MH i2c: D1 01 00 [11:58:43]MH_I2C_Read... [11:58:43]Read from MH i2c: D1 01 00 F3 15 00 D9 [11:58:43]Write to MH i2c: 01 00 00 F4 15 09 [11:58:43]Write i2c OK [11:58:43]MH_I2C_Read... [11:58:43]OFD Sender: No OFD packet to send [11:58:44]*** Cut start [11:58:44]*** Partial cut [11:58:44]*** CUTSNS_PIN = 1 [11:58:44]*** CUTSNS_PIN = 0 [11:58:44]*** Brake cut motor [11:58:44]Read from MH i2c: 01 [11:58:44]MH_I2C_Read... [11:58:44]*** Stop cut motor [11:58:44]*** Cut end [11:58:44]Read from MH i2c: 01 07 00 [11:58:44]MH_I2C_Read... [11:58:44]Read from MH i2c: 01 07 00 F4 15 00 00 00 00 00 FF 0F 1E [11:58:44]process_action close_receipt done [11:58:44]requested_data is exist [11:58:44]produce_requested_data [11:58:44]requested_item fm.sn is exist - process it [11:58:44]wFMCommunicate request_size=4 [11:58:44]MH_SAM_APDU [11:58:44]CAPDU: 80 11 00 00 [11:58:44]Write to MH i2c: E2 08 00 F5 15 80 11 00 00 00 00 00 00 84 [11:58:44]Write i2c OK [11:58:44]MH_I2C_Read... [11:58:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:44]Read from MH i2c: E2 [11:58:44]MH_I2C_Read... [11:58:44]Read from MH i2c: E2 17 00 [11:58:44]MH_I2C_Read... [11:58:44]Read from MH i2c: E2 17 00 F5 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DA [11:58:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:58:44]wFMCommunicate OK [11:58:44]requested_item fd.num is exist - process it [11:58:44]SAM_PROTO_GetFieldsCounters [11:58:44]wFMCommunicate request_size=4 [11:58:44]MH_SAM_APDU [11:58:44]CAPDU: 80 13 00 00 [11:58:44]Write to MH i2c: E2 08 00 F6 15 80 13 00 00 00 00 00 00 87 [11:58:44]Write i2c OK [11:58:44]MH_I2C_Read... [11:58:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:58:45]Read from MH i2c: E2 [11:58:45]MH_I2C_Read... [11:58:45]Read from MH i2c: E2 62 00 [11:58:45]MH_I2C_Read... [11:58:45]Read from MH i2c: E2 62 00 F6 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 40 84 02 00 0E 04 04 00 BF 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 AE [11:58:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 40 84 02 00 0E 04 04 00 BF 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 [11:58:45]wFMCommunicate OK [11:58:45]SAM_PROTO_GetFieldsCounters done [11:58:45]requested_item shift.num is exist - process it [11:58:45]requested_item shift.opened is exist - process it [11:58:45]req_shift_opened [11:58:45]FM_GetShiftState [11:58:45]SAM_PROTO_GetShiftState [11:58:45]wFMCommunicate request_size=4 [11:58:45]MH_SAM_APDU [11:58:45]CAPDU: 80 13 01 00 [11:58:45]Write to MH i2c: E2 08 00 F7 15 80 13 01 00 00 00 00 00 89 [11:58:45]Write i2c OK [11:58:45]MH_I2C_Read... [11:58:45]Read from MH i2c: E2 [11:58:45]MH_I2C_Read... [11:58:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:45]Read from MH i2c: E2 0E 00 [11:58:45]MH_I2C_Read... [11:58:45]Read from MH i2c: E2 0E 00 F7 15 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 09 [11:58:45]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [11:58:45]wFMCommunicate OK [11:58:45]SAM_PROTO_GetShiftState done [11:58:45]FM_GetShiftState done [11:58:45]req_shift_opened done [11:58:45]requested_item shift.open_date is exist - process it [11:58:45]req_shift_open_date [11:58:45]req_shift_open_date done [11:58:45]produce_requested_data done [11:58:45]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164928,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [11:58:45]process_action_free close_receipt [11:58:45]json_value_free [11:58:45]json_value_free done [11:58:45]process_json_proto returns [11:58:45]Send response to host [11:58:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164928,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [11:58:45]free response buf [11:58:45]execute_script done [11:58:45]execute_script returns [11:58:45]free content buf [11:58:45]Sock 7.Close socket [11:58:45]Sock 7.Thread stoped [11:58:48]OFD Sender: No OFD packet to send [11:58:53]OFD Sender: No OFD packet to send [11:58:58]OFD Sender: No OFD packet to send [11:59:03]OFD Sender: No OFD packet to send [11:59:08]OFD Sender: No OFD packet to send [11:59:14]OFD Sender: No OFD packet to send [11:59:19]OFD Sender: No OFD packet to send [11:59:24]OFD Sender: No OFD packet to send [11:59:29]OFD Sender: No OFD packet to send [11:59:34]OFD Sender: No OFD packet to send [11:59:39]OFD Sender: No OFD packet to send [11:59:44]OFD Sender: No OFD packet to send [11:59:49]OFD Sender: No OFD packet to send [11:59:54]OFD Sender: No OFD packet to send [11:59:59]OFD Sender: No OFD packet to send [12:00:04]OFD Sender: No OFD packet to send [12:00:09]OFD Sender: No OFD packet to send [12:00:14]OFD Sender: No OFD packet to send [12:00:19]OFD Sender: No OFD packet to send [12:00:24]OFD Sender: No OFD packet to send [12:00:29]OFD Sender: No OFD packet to send [12:00:34]OFD Sender: No OFD packet to send [12:00:39]OFD Sender: No OFD packet to send [12:00:44]OFD Sender: No OFD packet to send [12:00:49]OFD Sender: No OFD packet to send [12:00:54]OFD Sender: No OFD packet to send [12:00:59]OFD Sender: No OFD packet to send [12:01:04]OFD Sender: No OFD packet to send [12:01:04]accept exits with 9 [12:01:04]New connection [12:01:04]New thread 3067616612 created [12:01:04]Thread 3067473252 joined [12:01:04]Waiting for new connection... [12:01:04] Sock 9.Parse request [12:01:04]Sock 9.Check first char [12:01:04]Sock 9.First char is OK [12:01:04]request: POST /json_proto HTTP/1.0 [12:01:04]Method: POST [12:01:04]URL: /json_proto [12:01:04]Method is POST - this is cgi request [12:01:04]url: /json_proto [12:01:04]query_string will be loaded in cgi processing [12:01:04]execute_cgi json_proto POST (null) [12:01:04]execute_cgi path=json_proto method=POST [12:01:04]POST find Content-Length [12:01:04]Host: 172.17.56.4:8080 [12:01:04]Content-Length: 640 [12:01:04]Content-Type: application/json [12:01:04] [12:01:04]POST finish read [12:01:04]Found Content-Length = 640 [12:01:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459025", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.000, "sum" : 658.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 658.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:01:04]execute_script... [12:01: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)459025", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.000, "sum" : 658.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 658.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:01:04]POST & json_proto [12:01:04]process_json_proto [12:01:04]json parsed OK: [12:01:04]protocol is kg_v1.0 [12:01:04]action value=close_receipt [12:01:04]process_action close_receipt [12:01:04]cmd_close_receipt [12:01:04]MH_GetDate [12:01:04]Write to MH i2c: F0 00 00 F8 15 FC [12:01:04]Write i2c OK [12:01:04]MH_I2C_Read... [12:01:04]Read from MH i2c: F0 [12:01:04]MH_I2C_Read... [12:01:04]Read from MH i2c: F0 09 00 [12:01:04]MH_I2C_Read... [12:01:04]Read from MH i2c: F0 09 00 F8 15 00 01 BE 93 66 C9 DC B2 64 78 [12:01:04]GetLastDocTimeStamp 1720958322 [12:01:04]current date 1720958465 [12:01:04]FM_GetShiftState [12:01:04]SAM_PROTO_GetShiftState [12:01:04]wFMCommunicate request_size=4 [12:01:04]MH_SAM_APDU [12:01:04]CAPDU: 80 13 01 00 [12:01:04]Write to MH i2c: E2 08 00 F9 15 80 13 01 00 00 00 00 00 8B [12:01:04]Write i2c OK [12:01:04]MH_I2C_Read... [12:01:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:04]Read from MH i2c: E2 [12:01:04]MH_I2C_Read... [12:01:04]Read from MH i2c: E2 0E 00 [12:01:04]MH_I2C_Read... [12:01:04]Read from MH i2c: E2 0E 00 F9 15 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 0B [12:01:04]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [12:01:04]wFMCommunicate OK [12:01:04]SAM_PROTO_GetShiftState done [12:01:04]FM_GetShiftState done [12:01:04]opened in 1720917342 [12:01:04]opened+sec_in_day 1721003742 [12:01:04]quantity*price = 65800 [12:01:04]sum+1 = 65801 [12:01:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 658.00 НСП 1% : 5.82 НДС 12% : 69.88 Наличными: 658.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 127 14.07.2024 12:01 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164929 ФПД: 171928619471429 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T120105&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164929&fm=171928619471429&tin=02508201610067®Number=0000000000090829&sum=65800 [12:01:05]StoreToDocumentArchive [12:01:05]shift 447 fd 164929 [12:01:05]save to /storage/0447/doc_00164929 [12:01:05]save last doc name /storage/0447/doc_00164929 to /storage/kkm_last_doc_name [12:01:05]save OK [12:01:05]Clear old archive folders... [12:01:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:01:05]tlvbuf is 007A8AA0 [12:01:05]SAM_PROTO_ClearQueue [12:01:05]wFMCommunicate request_size=4 [12:01:05]MH_SAM_APDU [12:01:05]CAPDU: 80 09 00 00 [12:01:05]Write to MH i2c: E2 08 00 06 16 80 09 00 00 00 00 00 00 8E [12:01:05]Write i2c OK [12:01:05]MH_I2C_Read... [12:01:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:01:05]Read from MH i2c: E2 [12:01:05]MH_I2C_Read... [12:01:05]Read from MH i2c: E2 03 00 [12:01:05]MH_I2C_Read... [12:01:05]Read from MH i2c: E2 03 00 06 16 00 90 00 90 [12:01:05]RAPDU: 90 00 [12:01:05]wFMCommunicate OK [12:01:05]SAM_PROTO_ClearQueue done [12:01:05]KKMCreateOFDPacket [12:01:05]OFDProtocolAddRootSTLVToBuf [12:01:05]FM_MakeSignedData [12:01:05]FM_MakeSignedData [12:01:05]SAM_PROTO_SignData [12:01:05]wFMCommunicate request_size=4 [12:01:05]MH_SAM_APDU [12:01:05]CAPDU: 80 0D 01 02 [12:01:05]Write to MH i2c: E2 08 00 07 16 80 0D 01 02 00 00 00 00 96 [12:01:05]Write i2c OK [12:01:05]MH_I2C_Read... [12:01:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:01:05]Read from MH i2c: E2 [12:01:05]MH_I2C_Read... [12:01:05]Read from MH i2c: E2 03 00 [12:01:05]MH_I2C_Read... [12:01:05]Read from MH i2c: E2 03 00 07 16 00 90 00 91 [12:01:05]RAPDU: 90 00 [12:01:05]wFMCommunicate OK [12:01:05]wFMCommunicate request_size=255 [12:01:05]MH_SAM_APDU [12:01:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 01 BE 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 41 84 02 00 35 04 06 00 9C [12:01:05]Write to MH i2c: E2 02 01 08 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 01 BE 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 41 84 02 00 35 04 06 00 9C 00 00 D1 [12:01:05]Write i2c OK [12:01:05]MH_I2C_Read... [12:01:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:06]Read from MH i2c: E2 [12:01:06]MH_I2C_Read... [12:01:06]Read from MH i2c: E2 03 00 [12:01:06]MH_I2C_Read... [12:01:06]Read from MH i2c: E2 03 00 08 16 00 90 00 92 [12:01:06]RAPDU: 90 00 [12:01:06]wFMCommunicate OK [12:01:06]wFMCommunicate request_size=10 [12:01:06]MH_SAM_APDU [12:01:06]CAPDU: 80 0D 02 02 05 5E 40 4A 52 45 [12:01:06]Write to MH i2c: E2 0D 00 09 16 80 0D 02 02 05 00 5E 40 4A 52 45 00 00 22 [12:01:06]Write i2c OK [12:01:06]MH_I2C_Read... [12:01:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:06]Read from MH i2c: E2 [12:01:06]MH_I2C_Read... [12:01:06]Read from MH i2c: E2 03 00 [12:01:06]MH_I2C_Read... [12:01:06]Read from MH i2c: E2 03 00 09 16 00 90 00 93 [12:01:06]RAPDU: 90 00 [12:01:06]wFMCommunicate OK [12:01:06]wFMCommunicate request_size=4 [12:01:06]MH_SAM_APDU [12:01:06]CAPDU: 80 0D 03 02 [12:01:06]Write to MH i2c: E2 08 00 0A 16 80 0D 03 02 00 00 00 00 9B [12:01:06]Write i2c OK [12:01:06]MH_I2C_Read... [12:01:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:01:06]Read from MH i2c: E2 [12:01:06]MH_I2C_Read... [12:01:06]Read from MH i2c: E2 0B 00 [12:01:06]MH_I2C_Read... [12:01:06]Read from MH i2c: E2 0B 00 0A 16 00 6C 5F 60 30 CB 8B A5 02 90 00 F4 [12:01:06]RAPDU: 6C 5F 60 30 CB 8B A5 02 90 00 [12:01:06]wFMCommunicate OK [12:01:06]SAM_PROTO_SignData done [12:01:06]FM_MakeSignedData done [12:01:06]CreateOFDProtocolMessage [12:01:06]wFMCommunicate request_size=4 [12:01:06]MH_SAM_APDU [12:01:06]CAPDU: 80 11 00 00 [12:01:06]Write to MH i2c: E2 08 00 0B 16 80 11 00 00 00 00 00 00 9B [12:01:06]Write i2c OK [12:01:06]MH_I2C_Read... [12:01:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:06]Read from MH i2c: E2 [12:01:06]MH_I2C_Read... [12:01:06]Read from MH i2c: E2 17 00 [12:01:06]MH_I2C_Read... [12:01:06]Read from MH i2c: E2 17 00 0B 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F1 [12:01:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:01:06]wFMCommunicate OK [12:01:06]CreateOFDProtocolMessage done [12:01:06]OFDSenderStorePacket 164929 [12:01:06]StoreOFDPacket docnum=164929 [12:01:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D0 C1 07 01 E2 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 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 01 BE 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 41 84 02 00 35 04 06 00 9C 5E 40 4A 52 45 6C 5F 60 30 CB 8B A5 02 [12:01:06]CheckFolder [12:01:06]dirname=/storage/ofd_packets [12:01:06]CheckFolder done [12:01:06]ProducePacketName [12:01:06]name=ofd_packets/00164929 [12:01:06]NVStorageSaveData ofd_packets/00164929 [12:01:06]File name is /storage/ofd_packets/00164929 [12:01:06]Write 301 bytes [12:01:06]NVStorageSaveData done [12:01:06]OFDSenderStorePacket done [12:01:06]KKMCreateOFDPacket done [12:01:06]NVStorageSaveData kkm_last_timestamp [12:01:06]File name is /storage/kkm_last_timestamp [12:01:06]Write 4 bytes [12:01:06]NVStorageSaveData done [12:01:06]OFD Sender: Processing packet 164929 [packets to send 104, broken 103] [12:01:06]ProducePacketName [12:01:06]name=ofd_packets/00164929 [12:01:06]OFD Sender: To server: pG, [12:01:06]CommunicateWithHost lk.salyk.kg:30040 [12:01:06]ConnectInit lk.salyk.kg [12:01:06]ExternCall_PrintAddStr [12:01:06]wPrintStart [12:01:06]Write to MH i2c: 01 00 00 0C 16 22 [12:01:06]Write i2c OK [12:01:06]MH_I2C_Read... [12:01:06]Read from MH i2c: 01 [12:01:06]MH_I2C_Read... [12:01:06]Read from MH i2c: 01 07 00 [12:01:06]MH_I2C_Read... [12:01:06]Read from MH i2c: 01 07 00 0C 16 00 00 00 00 00 FF 0F 37 [12:01:06]RasterBufferAndPrint [12:01:06]line Счет N : (1)459025 [12:01:06]line ИНН: 02508201610067 [12:01:06]line Контрольно-Кассовый Чек [12:01:06]line ПРОДАЖА [12:01:06]line ТРК (МРК, ГНК) : 22 [12:01:06]line Товар: 2710124130 [12:01:06]line Аи-92-К-5 [12:01:06]line 10.000 * 65.80 [12:01:06]line = 658.00 [12:01:06]line НДС 12% НСП 1% [12:01:06]line > о реализуемом товаре [12:01:06]line ИТОГО: 658.00 [12:01:06]line НСП 1% : 5.82 [12:01:06]line НДС 12% : 69.88 [12:01:06]line Наличными: 658.00 [12:01:06]line Безнал.: 0.00 [12:01:06]line Место: АЗС № 72 "Партнер Нефть" [12:01:06]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:01:06]line СНО: Общий режим [12:01:06]line Чек 127 14.07.2024 12:01 [12:01:06]line Смена: 447 ФФД: 1.0 [12:01:06]line ЗНМ: 0300000160 [12:01:06]line РНМ: 0000000000090829 [12:01:06]line Версия ККМ: 001 [12:01:06]line ФМ: 0000000000874718 [12:01:06]line ФД: 164929 [12:01:06]line ФПД: 171928619471429 [12:01:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T120105&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164929&fm=171928619471429&tin=02508201610067®Number=0000000000090829&sum=65800 [12:01:06]Connected sock=11 [12:01:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D0 C1 07 01 E2 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 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 01 BE 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 41 84 02 00 35 04 06 00 9C 5E 40 4A 52 45 6C 5F 60 30 CB 8B A5 02 [12:01:06]written 0, free lines is 4095 [12:01:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 E3 58 47 00 B3 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 41 84 02 00 F4 03 04 00 8F 64 93 66 B6 04 01 00 00 F7 21 6E F4 AE 1F 0F 7A [12:01:06]CommunicateWithHost err = 0 [12:01:06]CheckOFDResponse [12:01:06]1017 (14) - 77093643461234 [12:01:06]1041 (16) - 0000000000874718 [12:01:06]1040 (4) - 164929 [12:01:06]1012 (4) - 14.07.2024 05:39 [12:01:06]1206 (1) - 0 [12:01:06]OFD Sender: Remove packet 164929 [12:01:06]ProducePacketName [12:01:06]name=ofd_packets/00164929 [12:01:06]NVStorageDeleteData [12:01:07]Write to MH i2c: 01 00 00 33 16 49 [12:01:07]Write i2c OK [12:01:07]MH_I2C_Read... [12:01:07]Read from MH i2c: 01 [12:01:07]MH_I2C_Read... [12:01:07]Read from MH i2c: 01 07 00 [12:01:07]MH_I2C_Read... [12:01:07]Read from MH i2c: 01 07 00 33 16 00 00 00 00 00 28 0D 85 [12:01:07]RasterBufferAndPrint [12:01:07]line [12:01:07]line [12:01:07]line [12:01:07]line [12:01:07]line [12:01:07]written 0, free lines is 3375 [12:01:07]MH_Cut [12:01:07]Write to MH i2c: D1 01 00 3A 16 01 22 [12:01:07]Write i2c OK [12:01:07]MH_I2C_Read... [12:01:07]Read from MH i2c: D1 [12:01:07]MH_I2C_Read... [12:01:07]Read from MH i2c: D1 01 00 [12:01:07]MH_I2C_Read... [12:01:07]Read from MH i2c: D1 01 00 3A 16 00 21 [12:01:07]Write to MH i2c: 01 00 00 3B 16 51 [12:01:07]Write i2c OK [12:01:07]MH_I2C_Read... [12:01:07]OFD Sender: No OFD packet to send [12:01:07]*** Cut start [12:01:07]*** Partial cut [12:01:07]*** CUTSNS_PIN = 1 [12:01:07]*** CUTSNS_PIN = 0 [12:01:07]*** Brake cut motor [12:01:08]Read from MH i2c: 01 [12:01:08]MH_I2C_Read... [12:01:08]*** Stop cut motor [12:01:08]*** Cut end [12:01:08]Read from MH i2c: 01 07 00 [12:01:08]MH_I2C_Read... [12:01:08]Read from MH i2c: 01 07 00 3B 16 00 00 00 00 00 FF 0F 66 [12:01:08]process_action close_receipt done [12:01:08]requested_data is exist [12:01:08]produce_requested_data [12:01:08]requested_item fm.sn is exist - process it [12:01:08]wFMCommunicate request_size=4 [12:01:08]MH_SAM_APDU [12:01:08]CAPDU: 80 11 00 00 [12:01:08]Write to MH i2c: E2 08 00 3C 16 80 11 00 00 00 00 00 00 CC [12:01:08]Write i2c OK [12:01:08]MH_I2C_Read... [12:01:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:08]Read from MH i2c: E2 [12:01:08]MH_I2C_Read... [12:01:08]Read from MH i2c: E2 17 00 [12:01:08]MH_I2C_Read... [12:01:08]Read from MH i2c: E2 17 00 3C 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 22 [12:01:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:01:08]wFMCommunicate OK [12:01:08]requested_item fd.num is exist - process it [12:01:08]SAM_PROTO_GetFieldsCounters [12:01:08]wFMCommunicate request_size=4 [12:01:08]MH_SAM_APDU [12:01:08]CAPDU: 80 13 00 00 [12:01:08]Write to MH i2c: E2 08 00 3D 16 80 13 00 00 00 00 00 00 CF [12:01:08]Write i2c OK [12:01:08]MH_I2C_Read... [12:01:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:01:08]Read from MH i2c: E2 [12:01:08]MH_I2C_Read... [12:01:08]Read from MH i2c: E2 62 00 [12:01:08]MH_I2C_Read... [12:01:08]Read from MH i2c: E2 62 00 3D 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 41 84 02 00 0E 04 04 00 BF 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 FA [12:01:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 41 84 02 00 0E 04 04 00 BF 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 [12:01:08]wFMCommunicate OK [12:01:08]SAM_PROTO_GetFieldsCounters done [12:01:08]requested_item shift.num is exist - process it [12:01:08]requested_item shift.opened is exist - process it [12:01:08]req_shift_opened [12:01:08]FM_GetShiftState [12:01:08]SAM_PROTO_GetShiftState [12:01:08]wFMCommunicate request_size=4 [12:01:08]MH_SAM_APDU [12:01:08]CAPDU: 80 13 01 00 [12:01:08]Write to MH i2c: E2 08 00 3E 16 80 13 01 00 00 00 00 00 D1 [12:01:08]Write i2c OK [12:01:08]MH_I2C_Read... [12:01:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:08]Read from MH i2c: E2 [12:01:08]MH_I2C_Read... [12:01:08]Read from MH i2c: E2 0E 00 [12:01:08]MH_I2C_Read... [12:01:08]Read from MH i2c: E2 0E 00 3E 16 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 51 [12:01:08]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [12:01:08]wFMCommunicate OK [12:01:08]SAM_PROTO_GetShiftState done [12:01:08]FM_GetShiftState done [12:01:08]req_shift_opened done [12:01:08]requested_item shift.open_date is exist - process it [12:01:08]req_shift_open_date [12:01:08]req_shift_open_date done [12:01:08]produce_requested_data done [12:01:08]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164929,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [12:01:08]process_action_free close_receipt [12:01:08]json_value_free [12:01:08]json_value_free done [12:01:08]process_json_proto returns [12:01:08]Send response to host [12:01:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164929,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [12:01:08]free response buf [12:01:08]execute_script done [12:01:08]execute_script returns [12:01:08]free content buf [12:01:08]Sock 9.Close socket [12:01:08]Sock 9.Thread stoped [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:04]accept exits with 7 [12:02:04]New connection [12:02:04]New thread 3067473252 created [12:02:04]Thread 3067616612 joined [12:02:04]Waiting for new connection... [12:02:04] Sock 7.Parse request [12:02:04]Sock 7.Check first char [12:02:04]Sock 7.First char is OK [12:02:04]request: POST /json_proto HTTP/1.0 [12:02:04]Method: POST [12:02:04]URL: /json_proto [12:02:04]Method is POST - this is cgi request [12:02:04]url: /json_proto [12:02:04]query_string will be loaded in cgi processing [12:02:04]execute_cgi json_proto POST (null) [12:02:04]execute_cgi path=json_proto method=POST [12:02:04]POST find Content-Length [12:02:04]Host: 172.17.56.4:8080 [12:02:04]Content-Length: 677 [12:02:04]Content-Type: application/json [12:02:04] [12:02:04]POST finish read [12:02:04]Found Content-Length = 677 [12:02:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459026", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "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:02:04]execute_script... [12:02: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)459026", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "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:02:04]POST & json_proto [12:02:04]process_json_proto [12:02:04]json parsed OK: [12:02:04]protocol is kg_v1.0 [12:02:04]action value=close_receipt [12:02:04]process_action close_receipt [12:02:04]cmd_close_receipt [12:02:04]MH_GetDate [12:02:04]Write to MH i2c: F0 00 00 3F 16 44 [12:02:04]Write i2c OK [12:02:04]MH_I2C_Read... [12:02:04]Read from MH i2c: F0 [12:02:04]MH_I2C_Read... [12:02:04]Read from MH i2c: F0 09 00 [12:02:04]MH_I2C_Read... [12:02:04]Read from MH i2c: F0 09 00 3F 16 00 3D BE 93 66 C9 DC B2 64 FC [12:02:04]GetLastDocTimeStamp 1720958465 [12:02:04]current date 1720958525 [12:02:04]FM_GetShiftState [12:02:04]SAM_PROTO_GetShiftState [12:02:04]wFMCommunicate request_size=4 [12:02:04]MH_SAM_APDU [12:02:04]CAPDU: 80 13 01 00 [12:02:04]Write to MH i2c: E2 08 00 40 16 80 13 01 00 00 00 00 00 D3 [12:02:04]Write i2c OK [12:02:04]MH_I2C_Read... [12:02:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:04]Read from MH i2c: E2 [12:02:04]MH_I2C_Read... [12:02:04]Read from MH i2c: E2 0E 00 [12:02:04]MH_I2C_Read... [12:02:04]Read from MH i2c: E2 0E 00 40 16 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 53 [12:02:04]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [12:02:04]wFMCommunicate OK [12:02:04]SAM_PROTO_GetShiftState done [12:02:04]FM_GetShiftState done [12:02:04]opened in 1720917342 [12:02:04]opened+sec_in_day 1721003742 [12:02:04]quantity*price = 30004 [12:02:04]sum+1 = 30006 [12:02:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 128 14.07.2024 12:02 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164930 ФПД: 42756462061264 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T120205&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164930&fm=42756462061264&tin=02508201610067®Number=0000000000090829&sum=30000 [12:02:05]StoreToDocumentArchive [12:02:05]shift 447 fd 164930 [12:02:05]save to /storage/0447/doc_00164930 [12:02:05]save last doc name /storage/0447/doc_00164930 to /storage/kkm_last_doc_name [12:02:05]save OK [12:02:05]Clear old archive folders... [12:02:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:02:05]tlvbuf is B6F639B0 [12:02:05]SAM_PROTO_ClearQueue [12:02:05]wFMCommunicate request_size=4 [12:02:05]MH_SAM_APDU [12:02:05]CAPDU: 80 09 00 00 [12:02:05]Write to MH i2c: E2 08 00 4D 16 80 09 00 00 00 00 00 00 D5 [12:02:05]Write i2c OK [12:02:05]MH_I2C_Read... [12:02:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:02:05]Read from MH i2c: E2 [12:02:05]MH_I2C_Read... [12:02:05]Read from MH i2c: E2 03 00 [12:02:05]MH_I2C_Read... [12:02:05]Read from MH i2c: E2 03 00 4D 16 00 90 00 D7 [12:02:05]RAPDU: 90 00 [12:02:05]wFMCommunicate OK [12:02:05]SAM_PROTO_ClearQueue done [12:02:05]KKMCreateOFDPacket [12:02:05]OFDProtocolAddRootSTLVToBuf [12:02:05]FM_MakeSignedData [12:02:05]FM_MakeSignedData [12:02:05]SAM_PROTO_SignData [12:02:05]wFMCommunicate request_size=4 [12:02:05]MH_SAM_APDU [12:02:05]CAPDU: 80 0D 01 02 [12:02:05]Write to MH i2c: E2 08 00 4E 16 80 0D 01 02 00 00 00 00 DD [12:02:05]Write i2c OK [12:02:05]MH_I2C_Read... [12:02:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:02:05]Read from MH i2c: E2 [12:02:05]MH_I2C_Read... [12:02:05]Read from MH i2c: E2 03 00 [12:02:05]MH_I2C_Read... [12:02:05]Read from MH i2c: E2 03 00 4E 16 00 90 00 D8 [12:02:05]RAPDU: 90 00 [12:02:05]wFMCommunicate OK [12:02:05]wFMCommunicate request_size=255 [12:02:05]MH_SAM_APDU [12:02:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 3D BE 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 42 84 02 00 35 04 06 00 26 [12:02:05]Write to MH i2c: E2 02 01 4F 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 3D BE 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 42 84 02 00 35 04 06 00 26 00 00 39 [12:02:05]Write i2c OK [12:02:05]MH_I2C_Read... [12:02:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:05]Read from MH i2c: E2 [12:02:05]MH_I2C_Read... [12:02:05]Read from MH i2c: E2 03 00 [12:02:05]MH_I2C_Read... [12:02:05]Read from MH i2c: E2 03 00 4F 16 00 90 00 D9 [12:02:05]RAPDU: 90 00 [12:02:05]wFMCommunicate OK [12:02:05]wFMCommunicate request_size=10 [12:02:05]MH_SAM_APDU [12:02:05]CAPDU: 80 0D 02 02 05 E3 03 BB A6 D0 [12:02:05]Write to MH i2c: E2 0D 00 50 16 80 0D 02 02 05 00 E3 03 BB A6 D0 00 00 01 [12:02:05]Write i2c OK [12:02:05]MH_I2C_Read... [12:02:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:05]Read from MH i2c: E2 [12:02:05]MH_I2C_Read... [12:02:05]Read from MH i2c: E2 03 00 [12:02:05]MH_I2C_Read... [12:02:05]Read from MH i2c: E2 03 00 50 16 00 90 00 DA [12:02:05]RAPDU: 90 00 [12:02:05]wFMCommunicate OK [12:02:05]wFMCommunicate request_size=4 [12:02:05]MH_SAM_APDU [12:02:05]CAPDU: 80 0D 03 02 [12:02:05]Write to MH i2c: E2 08 00 51 16 80 0D 03 02 00 00 00 00 E2 [12:02:05]Write i2c OK [12:02:05]MH_I2C_Read... [12:02:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:02:05]Read from MH i2c: E2 [12:02:05]MH_I2C_Read... [12:02:05]Read from MH i2c: E2 0B 00 [12:02:05]MH_I2C_Read... [12:02:05]Read from MH i2c: E2 0B 00 51 16 00 F1 5E 4A 4A A0 FD 08 F1 90 00 5C [12:02:05]RAPDU: F1 5E 4A 4A A0 FD 08 F1 90 00 [12:02:05]wFMCommunicate OK [12:02:05]SAM_PROTO_SignData done [12:02:05]FM_MakeSignedData done [12:02:05]CreateOFDProtocolMessage [12:02:05]wFMCommunicate request_size=4 [12:02:05]MH_SAM_APDU [12:02:05]CAPDU: 80 11 00 00 [12:02:05]Write to MH i2c: E2 08 00 52 16 80 11 00 00 00 00 00 00 E2 [12:02:05]Write i2c OK [12:02:05]MH_I2C_Read... [12:02:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:05]Read from MH i2c: E2 [12:02:05]MH_I2C_Read... [12:02:05]Read from MH i2c: E2 17 00 [12:02:05]MH_I2C_Read... [12:02:05]Read from MH i2c: E2 17 00 52 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 38 [12:02:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:02:05]wFMCommunicate OK [12:02:05]CreateOFDProtocolMessage done [12:02:05]OFDSenderStorePacket 164930 [12:02:05]StoreOFDPacket docnum=164930 [12:02:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 00 22 07 01 02 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 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 3D BE 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 42 84 02 00 35 04 06 00 26 E3 03 BB A6 D0 F1 5E 4A 4A A0 FD 08 F1 [12:02:05]CheckFolder [12:02:05]dirname=/storage/ofd_packets [12:02:05]CheckFolder done [12:02:05]ProducePacketName [12:02:05]name=ofd_packets/00164930 [12:02:05]NVStorageSaveData ofd_packets/00164930 [12:02:05]File name is /storage/ofd_packets/00164930 [12:02:05]Write 301 bytes [12:02:05]NVStorageSaveData done [12:02:05]OFDSenderStorePacket done [12:02:05]KKMCreateOFDPacket done [12:02:05]NVStorageSaveData kkm_last_timestamp [12:02:05]File name is /storage/kkm_last_timestamp [12:02:05]Write 4 bytes [12:02:05]NVStorageSaveData done [12:02:05]ExternCall_PrintAddStr [12:02:05]wPrintStart [12:02:05]Write to MH i2c: 01 00 00 53 16 69 [12:02:05]Write i2c OK [12:02:05]MH_I2C_Read... [12:02:05]Read from MH i2c: 01 [12:02:05]MH_I2C_Read... [12:02:05]Read from MH i2c: 01 07 00 [12:02:05]MH_I2C_Read... [12:02:05]Read from MH i2c: 01 07 00 53 16 00 00 00 00 00 FF 0F 7E [12:02:05]RasterBufferAndPrint [12:02:05]line Счет N : (1)459026 [12:02:05]line ИНН: 02508201610067 [12:02:05]line Контрольно-Кассовый Чек [12:02:05]line ПРОДАЖА [12:02:05]line ТРК (МРК, ГНК) : 12 [12:02:05]line Товар: 2710124130 [12:02:05]line Аи-92-К-5 [12:02:05]line 4.560 * 65.80 [12:02:05]line = 300.05 [12:02:05]line НДС 12% НСП 1% [12:02:05]line > о реализуемом товаре [12:02:05]line ОКРУГЛЕНИЕ: -0.05 [12:02:05]line ИТОГО: 300.00 [12:02:05]line Внесено: 300.00 [12:02:05]line СДАЧА: 0.00 [12:02:05]line НСП 1% : 2.65 [12:02:05]line НДС 12% : 31.86 [12:02:05]line Наличными: 300.00 [12:02:05]line Безнал.: 0.00 [12:02:05]line Место: АЗС № 72 "Партнер Нефть" [12:02:05]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:02:05]line СНО: Общий режим [12:02:05]line Чек 128 14.07.2024 12:02 [12:02:05]line Смена: 447 ФФД: 1.0 [12:02:05]line ЗНМ: 0300000160 [12:02:05]line РНМ: 0000000000090829 [12:02:05]line Версия ККМ: 001 [12:02:05]line ФМ: 0000000000874718 [12:02:05]line ФД: 164930 [12:02:05]line ФПД: 42756462061264 [12:02:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T120205&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164930&fm=42756462061264&tin=02508201610067®Number=0000000000090829&sum=30000 [12:02:06]OFD Sender: Processing packet 164930 [packets to send 104, broken 103] [12:02:06]ProducePacketName [12:02:06]name=ofd_packets/00164930 [12:02:06]OFD Sender: To server: pG, [12:02:06]CommunicateWithHost lk.salyk.kg:30040 [12:02:06]ConnectInit lk.salyk.kg [12:02:06]written 0, free lines is 4095 [12:02:06]Connected sock=10 [12:02:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 00 22 07 01 02 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 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 3D BE 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 42 84 02 00 35 04 06 00 26 E3 03 BB A6 D0 F1 5E 4A 4A A0 FD 08 F1 [12:02:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 D2 24 47 00 4A D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 42 84 02 00 F4 03 04 00 CB 64 93 66 B6 04 01 00 00 D3 32 30 6A B8 3A DF FD [12:02:06]CommunicateWithHost err = 0 [12:02:06]CheckOFDResponse [12:02:06]1017 (14) - 77093643461234 [12:02:06]1041 (16) - 0000000000874718 [12:02:06]1040 (4) - 164930 [12:02:06]1012 (4) - 14.07.2024 05:40 [12:02:06]1206 (1) - 0 [12:02:06]OFD Sender: Remove packet 164930 [12:02:06]ProducePacketName [12:02:06]name=ofd_packets/00164930 [12:02:06]NVStorageDeleteData [12:02:06]Write to MH i2c: 01 00 00 7D 16 93 [12:02:06]Write i2c OK [12:02:06]MH_I2C_Read... [12:02:06]Read from MH i2c: 01 [12:02:06]MH_I2C_Read... [12:02:06]Read from MH i2c: 01 07 00 [12:02:06]MH_I2C_Read... [12:02:06]Read from MH i2c: 01 07 00 7D 16 00 00 00 00 00 EE 0C 94 [12:02:06]RasterBufferAndPrint [12:02:06]line [12:02:06]line [12:02:06]line [12:02:06]line [12:02:06]line [12:02:06]written 0, free lines is 3316 [12:02:06]MH_Cut [12:02:06]Write to MH i2c: D1 01 00 84 16 01 6C [12:02:06]Write i2c OK [12:02:06]MH_I2C_Read... [12:02:06]Read from MH i2c: D1 [12:02:06]MH_I2C_Read... [12:02:06]Read from MH i2c: D1 01 00 [12:02:06]MH_I2C_Read... [12:02:06]Read from MH i2c: D1 01 00 84 16 00 6B [12:02:06]Write to MH i2c: 01 00 00 85 16 9B [12:02:06]Write i2c OK [12:02:06]MH_I2C_Read... [12:02:07]OFD Sender: No OFD packet to send [12:02:07]*** Cut start [12:02:07]*** Partial cut [12:02:07]*** CUTSNS_PIN = 1 [12:02:07]*** CUTSNS_PIN = 0 [12:02:07]*** Brake cut motor [12:02:07]Read from MH i2c: 01 [12:02:07]MH_I2C_Read... [12:02:07]*** Stop cut motor [12:02:07]*** Cut end [12:02:07]Read from MH i2c: 01 07 00 [12:02:07]MH_I2C_Read... [12:02:07]Read from MH i2c: 01 07 00 85 16 00 00 00 00 00 FF 0F B0 [12:02:07]process_action close_receipt done [12:02:07]requested_data is exist [12:02:07]produce_requested_data [12:02:07]requested_item fm.sn is exist - process it [12:02:07]wFMCommunicate request_size=4 [12:02:07]MH_SAM_APDU [12:02:07]CAPDU: 80 11 00 00 [12:02:07]Write to MH i2c: E2 08 00 86 16 80 11 00 00 00 00 00 00 16 [12:02:07]Write i2c OK [12:02:07]MH_I2C_Read... [12:02:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:07]Read from MH i2c: E2 [12:02:07]MH_I2C_Read... [12:02:07]Read from MH i2c: E2 17 00 [12:02:08]MH_I2C_Read... [12:02:08]Read from MH i2c: E2 17 00 86 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 6C [12:02:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:02:08]wFMCommunicate OK [12:02:08]requested_item fd.num is exist - process it [12:02:08]SAM_PROTO_GetFieldsCounters [12:02:08]wFMCommunicate request_size=4 [12:02:08]MH_SAM_APDU [12:02:08]CAPDU: 80 13 00 00 [12:02:08]Write to MH i2c: E2 08 00 87 16 80 13 00 00 00 00 00 00 19 [12:02:08]Write i2c OK [12:02:08]MH_I2C_Read... [12:02:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:02:08]Read from MH i2c: E2 [12:02:08]MH_I2C_Read... [12:02:08]Read from MH i2c: E2 62 00 [12:02:08]MH_I2C_Read... [12:02:08]Read from MH i2c: E2 62 00 87 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 42 84 02 00 0E 04 04 00 BF 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 48 [12:02:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 42 84 02 00 0E 04 04 00 BF 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 [12:02:08]wFMCommunicate OK [12:02:08]SAM_PROTO_GetFieldsCounters done [12:02:08]requested_item shift.num is exist - process it [12:02:08]requested_item shift.opened is exist - process it [12:02:08]req_shift_opened [12:02:08]FM_GetShiftState [12:02:08]SAM_PROTO_GetShiftState [12:02:08]wFMCommunicate request_size=4 [12:02:08]MH_SAM_APDU [12:02:08]CAPDU: 80 13 01 00 [12:02:08]Write to MH i2c: E2 08 00 88 16 80 13 01 00 00 00 00 00 1B [12:02:08]Write i2c OK [12:02:08]MH_I2C_Read... [12:02:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:08]Read from MH i2c: E2 [12:02:08]MH_I2C_Read... [12:02:08]Read from MH i2c: E2 0E 00 [12:02:08]MH_I2C_Read... [12:02:08]Read from MH i2c: E2 0E 00 88 16 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 9B [12:02:08]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [12:02:08]wFMCommunicate OK [12:02:08]SAM_PROTO_GetShiftState done [12:02:08]FM_GetShiftState done [12:02:08]req_shift_opened done [12:02:08]requested_item shift.open_date is exist - process it [12:02:08]req_shift_open_date [12:02:08]req_shift_open_date done [12:02:08]produce_requested_data done [12:02:08]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164930,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [12:02:08]process_action_free close_receipt [12:02:08]json_value_free [12:02:08]json_value_free done [12:02:08]process_json_proto returns [12:02:08]Send response to host [12:02:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164930,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [12:02:08]free response buf [12:02:08]execute_script done [12:02:08]execute_script returns [12:02:08]free content buf [12:02:08]Sock 7.Close socket [12:02:08]Sock 7.Thread stoped [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:17]accept exits with 9 [12:03:17]New connection [12:03:17]New thread 3067616612 created [12:03:17]Thread 3067473252 joined [12:03:17]Waiting for new connection... [12:03:17] Sock 9.Parse request [12:03:17]Sock 9.Check first char [12:03:17]Sock 9.First char is OK [12:03:17]request: POST /json_proto HTTP/1.0 [12:03:17]Method: POST [12:03:17]URL: /json_proto [12:03:17]Method is POST - this is cgi request [12:03:17]url: /json_proto [12:03:17]query_string will be loaded in cgi processing [12:03:17]execute_cgi json_proto POST (null) [12:03:17]execute_cgi path=json_proto method=POST [12:03:17]POST find Content-Length [12:03:17]Host: 172.17.56.4:8080 [12:03:17]Content-Length: 682 [12:03:17]Content-Type: application/json [12:03:17] [12:03:17]POST finish read [12:03:17]Found Content-Length = 682 [12:03:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459027", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "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:03:17]execute_script... [12:03:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459027", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "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:03:17]POST & json_proto [12:03:17]process_json_proto [12:03:17]json parsed OK: [12:03:17]protocol is kg_v1.0 [12:03:17]action value=close_receipt [12:03:17]process_action close_receipt [12:03:17]cmd_close_receipt [12:03:17]MH_GetDate [12:03:17]Write to MH i2c: F0 00 00 89 16 8E [12:03:17]Write i2c OK [12:03:17]MH_I2C_Read... [12:03:17]Read from MH i2c: F0 [12:03:17]MH_I2C_Read... [12:03:17]Read from MH i2c: F0 09 00 [12:03:17]MH_I2C_Read... [12:03:17]Read from MH i2c: F0 09 00 89 16 00 87 BE 93 66 C9 DC B2 64 90 [12:03:17]GetLastDocTimeStamp 1720958525 [12:03:17]current date 1720958599 [12:03:17]FM_GetShiftState [12:03:17]SAM_PROTO_GetShiftState [12:03:17]wFMCommunicate request_size=4 [12:03:17]MH_SAM_APDU [12:03:17]CAPDU: 80 13 01 00 [12:03:17]Write to MH i2c: E2 08 00 8A 16 80 13 01 00 00 00 00 00 1D [12:03:17]Write i2c OK [12:03:17]MH_I2C_Read... [12:03:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:17]Read from MH i2c: E2 [12:03:17]MH_I2C_Read... [12:03:17]Read from MH i2c: E2 0E 00 [12:03:17]MH_I2C_Read... [12:03:17]Read from MH i2c: E2 0E 00 8A 16 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 9D [12:03:17]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [12:03:17]wFMCommunicate OK [12:03:17]SAM_PROTO_GetShiftState done [12:03:17]FM_GetShiftState done [12:03:17]opened in 1720917342 [12:03:17]opened+sec_in_day 1721003742 [12:03:17]quantity*price = 100016 [12:03:17]sum+1 = 100017 [12:03:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 129 14.07.2024 12:03 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164931 ФПД: 50648755968395 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T120319&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164931&fm=50648755968395&tin=02508201610067®Number=0000000000090829&sum=100000 [12:03:19]StoreToDocumentArchive [12:03:19]shift 447 fd 164931 [12:03:19]save to /storage/0447/doc_00164931 [12:03:19]save last doc name /storage/0447/doc_00164931 to /storage/kkm_last_doc_name [12:03:19]save OK [12:03:19]Clear old archive folders... [12:03:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:03:19]tlvbuf is 007BC5E0 [12:03:19]SAM_PROTO_ClearQueue [12:03:19]wFMCommunicate request_size=4 [12:03:19]MH_SAM_APDU [12:03:19]CAPDU: 80 09 00 00 [12:03:19]Write to MH i2c: E2 08 00 97 16 80 09 00 00 00 00 00 00 1F [12:03:19]Write i2c OK [12:03:19]MH_I2C_Read... [12:03:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:03:19]Read from MH i2c: E2 [12:03:19]MH_I2C_Read... [12:03:19]Read from MH i2c: E2 03 00 [12:03:19]MH_I2C_Read... [12:03:19]Read from MH i2c: E2 03 00 97 16 00 90 00 21 [12:03:19]RAPDU: 90 00 [12:03:19]wFMCommunicate OK [12:03:19]SAM_PROTO_ClearQueue done [12:03:19]KKMCreateOFDPacket [12:03:19]OFDProtocolAddRootSTLVToBuf [12:03:19]FM_MakeSignedData [12:03:19]FM_MakeSignedData [12:03:19]SAM_PROTO_SignData [12:03:19]wFMCommunicate request_size=4 [12:03:19]MH_SAM_APDU [12:03:19]CAPDU: 80 0D 01 02 [12:03:19]Write to MH i2c: E2 08 00 98 16 80 0D 01 02 00 00 00 00 27 [12:03:19]Write i2c OK [12:03:19]MH_I2C_Read... [12:03:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:03:19]Read from MH i2c: E2 [12:03:19]MH_I2C_Read... [12:03:19]Read from MH i2c: E2 03 00 [12:03:19]MH_I2C_Read... [12:03:19]Read from MH i2c: E2 03 00 98 16 00 90 00 22 [12:03:19]RAPDU: 90 00 [12:03:19]wFMCommunicate OK [12:03:19]wFMCommunicate request_size=255 [12:03:19]MH_SAM_APDU [12:03:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 87 BE 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 43 84 02 00 35 04 06 00 2E [12:03:19]Write to MH i2c: E2 02 01 99 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 87 BE 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 43 84 02 00 35 04 06 00 2E 00 00 B8 [12:03:19]Write i2c OK [12:03:19]MH_I2C_Read... [12:03:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:19]Read from MH i2c: E2 [12:03:19]MH_I2C_Read... [12:03:19]Read from MH i2c: E2 03 00 [12:03:19]MH_I2C_Read... [12:03:19]Read from MH i2c: E2 03 00 99 16 00 90 00 23 [12:03:19]RAPDU: 90 00 [12:03:19]wFMCommunicate OK [12:03:19]wFMCommunicate request_size=10 [12:03:19]MH_SAM_APDU [12:03:19]CAPDU: 80 0D 02 02 05 10 95 1B 99 8B [12:03:19]Write to MH i2c: E2 0D 00 9A 16 80 0D 02 02 05 00 10 95 1B 99 8B 00 00 18 [12:03:19]Write i2c OK [12:03:19]MH_I2C_Read... [12:03:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:19]Read from MH i2c: E2 [12:03:19]MH_I2C_Read... [12:03:19]Read from MH i2c: E2 03 00 [12:03:19]MH_I2C_Read... [12:03:19]Read from MH i2c: E2 03 00 9A 16 00 90 00 24 [12:03:19]RAPDU: 90 00 [12:03:19]wFMCommunicate OK [12:03:19]wFMCommunicate request_size=4 [12:03:19]MH_SAM_APDU [12:03:19]CAPDU: 80 0D 03 02 [12:03:19]Write to MH i2c: E2 08 00 9B 16 80 0D 03 02 00 00 00 00 2C [12:03:19]Write i2c OK [12:03:19]MH_I2C_Read... [12:03:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:03:19]Read from MH i2c: E2 [12:03:19]MH_I2C_Read... [12:03:19]Read from MH i2c: E2 0B 00 [12:03:19]MH_I2C_Read... [12:03:19]Read from MH i2c: E2 0B 00 9B 16 00 E4 47 CC C6 F4 1A F3 31 90 00 1C [12:03:19]RAPDU: E4 47 CC C6 F4 1A F3 31 90 00 [12:03:19]wFMCommunicate OK [12:03:19]SAM_PROTO_SignData done [12:03:19]FM_MakeSignedData done [12:03:19]CreateOFDProtocolMessage [12:03:19]wFMCommunicate request_size=4 [12:03:19]MH_SAM_APDU [12:03:19]CAPDU: 80 11 00 00 [12:03:19]Write to MH i2c: E2 08 00 9C 16 80 11 00 00 00 00 00 00 2C [12:03:19]Write i2c OK [12:03:19]MH_I2C_Read... [12:03:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:19]Read from MH i2c: E2 [12:03:19]MH_I2C_Read... [12:03:19]Read from MH i2c: E2 17 00 [12:03:19]MH_I2C_Read... [12:03:19]Read from MH i2c: E2 17 00 9C 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 82 [12:03:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:03:19]wFMCommunicate OK [12:03:19]CreateOFDProtocolMessage done [12:03:19]OFDSenderStorePacket 164931 [12:03:19]StoreOFDPacket docnum=164931 [12:03:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 22 60 07 01 CD 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 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 87 BE 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 43 84 02 00 35 04 06 00 2E 10 95 1B 99 8B E4 47 CC C6 F4 1A F3 31 [12:03:19]CheckFolder [12:03:19]dirname=/storage/ofd_packets [12:03:19]CheckFolder done [12:03:19]ProducePacketName [12:03:19]name=ofd_packets/00164931 [12:03:19]NVStorageSaveData ofd_packets/00164931 [12:03:19]File name is /storage/ofd_packets/00164931 [12:03:19]Write 301 bytes [12:03:19]NVStorageSaveData done [12:03:19]OFDSenderStorePacket done [12:03:19]KKMCreateOFDPacket done [12:03:19]NVStorageSaveData kkm_last_timestamp [12:03:19]File name is /storage/kkm_last_timestamp [12:03:19]Write 4 bytes [12:03:19]NVStorageSaveData done [12:03:19]ExternCall_PrintAddStr [12:03:19]wPrintStart [12:03:19]Write to MH i2c: 01 00 00 9D 16 B3 [12:03:19]Write i2c OK [12:03:19]MH_I2C_Read... [12:03:19]Read from MH i2c: 01 [12:03:19]MH_I2C_Read... [12:03:19]Read from MH i2c: 01 07 00 [12:03:19]MH_I2C_Read... [12:03:19]Read from MH i2c: 01 07 00 9D 16 00 00 00 00 00 FF 0F C8 [12:03:19]RasterBufferAndPrint [12:03:19]line Счет N : (1)459027 [12:03:19]line ИНН: 02508201610067 [12:03:19]line Контрольно-Кассовый Чек [12:03:19]line ПРОДАЖА [12:03:19]line ТРК (МРК, ГНК) : 12 [12:03:19]line Товар: 2710124130 [12:03:19]line Аи-92-К-5 [12:03:19]line 15.200 * 65.80 [12:03:19]line = 1000.16 [12:03:19]line НДС 12% НСП 1% [12:03:19]line > о реализуемом товаре [12:03:19]line ОКРУГЛЕНИЕ: -0.16 [12:03:19]line ИТОГО: 1000.00 [12:03:19]line Внесено: 1000.00 [12:03:19]line СДАЧА: 0.00 [12:03:19]line НСП 1% : 8.85 [12:03:19]line НДС 12% : 106.21 [12:03:19]line Наличными: 1000.00 [12:03:19]line Безнал.: 0.00 [12:03:19]line Место: АЗС № 72 "Партнер Нефть" [12:03:19]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:03:19]line СНО: Общий режим [12:03:19]line Чек 129 14.07.2024 12:03 [12:03:19]line Смена: 447 ФФД: 1.0 [12:03:19]line ЗНМ: 0300000160 [12:03:19]line РНМ: 0000000000090829 [12:03:19]line Версия ККМ: 001 [12:03:19]line ФМ: 0000000000874718 [12:03:19]line ФД: 164931 [12:03:19]line ФПД: 50648755968395 [12:03:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T120319&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164931&fm=50648755968395&tin=02508201610067®Number=0000000000090829&sum=100000 [12:03:19]OFD Sender: Processing packet 164931 [packets to send 104, broken 103] [12:03:19]ProducePacketName [12:03:19]name=ofd_packets/00164931 [12:03:19]OFD Sender: To server: pG, [12:03:19]CommunicateWithHost lk.salyk.kg:30040 [12:03:19]ConnectInit lk.salyk.kg [12:03:19]written 0, free lines is 4095 [12:03:20]Connected sock=10 [12:03:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 22 60 07 01 CD 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 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 87 BE 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 43 84 02 00 35 04 06 00 2E 10 95 1B 99 8B E4 47 CC C6 F4 1A F3 31 [12:03:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 86 A2 47 00 CD 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 43 84 02 00 F4 03 04 00 14 65 93 66 B6 04 01 00 00 B0 D4 61 D6 BA D8 88 85 [12:03:20]CommunicateWithHost err = 0 [12:03:20]CheckOFDResponse [12:03:20]1017 (14) - 77093643461234 [12:03:20]1041 (16) - 0000000000874718 [12:03:20]1040 (4) - 164931 [12:03:20]1012 (4) - 14.07.2024 05:41 [12:03:20]1206 (1) - 0 [12:03:20]OFD Sender: Remove packet 164931 [12:03:20]ProducePacketName [12:03:20]name=ofd_packets/00164931 [12:03:20]NVStorageDeleteData [12:03:20]Write to MH i2c: 01 00 00 C7 16 DD [12:03:20]Write i2c OK [12:03:20]MH_I2C_Read... [12:03:20]Read from MH i2c: 01 [12:03:20]MH_I2C_Read... [12:03:20]Read from MH i2c: 01 07 00 [12:03:20]MH_I2C_Read... [12:03:20]Read from MH i2c: 01 07 00 C7 16 00 00 00 00 00 F6 0C E6 [12:03:20]RasterBufferAndPrint [12:03:20]line [12:03:20]line [12:03:20]line [12:03:20]line [12:03:20]line [12:03:20]written 0, free lines is 3325 [12:03:20]MH_Cut [12:03:20]Write to MH i2c: D1 01 00 CE 16 01 B6 [12:03:20]Write i2c OK [12:03:20]MH_I2C_Read... [12:03:20]Read from MH i2c: D1 [12:03:20]MH_I2C_Read... [12:03:20]Read from MH i2c: D1 01 00 [12:03:20]MH_I2C_Read... [12:03:20]Read from MH i2c: D1 01 00 CE 16 00 B5 [12:03:20]Write to MH i2c: 01 00 00 CF 16 E5 [12:03:20]Write i2c OK [12:03:20]MH_I2C_Read... [12:03:20]OFD Sender: No OFD packet to send [12:03:21]*** Cut start [12:03:21]*** Partial cut [12:03:21]*** CUTSNS_PIN = 1 [12:03:21]*** CUTSNS_PIN = 0 [12:03:21]*** Brake cut motor [12:03:21]Read from MH i2c: 01 [12:03:21]MH_I2C_Read... [12:03:21]*** Stop cut motor [12:03:21]*** Cut end [12:03:21]Read from MH i2c: 01 07 00 [12:03:21]MH_I2C_Read... [12:03:21]Read from MH i2c: 01 07 00 CF 16 00 00 00 00 00 FF 0F FA [12:03:21]process_action close_receipt done [12:03:21]requested_data is exist [12:03:21]produce_requested_data [12:03:21]requested_item fm.sn is exist - process it [12:03:21]wFMCommunicate request_size=4 [12:03:21]MH_SAM_APDU [12:03:21]CAPDU: 80 11 00 00 [12:03:21]Write to MH i2c: E2 08 00 D0 16 80 11 00 00 00 00 00 00 60 [12:03:21]Write i2c OK [12:03:21]MH_I2C_Read... [12:03:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:21]Read from MH i2c: E2 [12:03:21]MH_I2C_Read... [12:03:21]Read from MH i2c: E2 17 00 [12:03:21]MH_I2C_Read... [12:03:21]Read from MH i2c: E2 17 00 D0 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B6 [12:03:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:03:21]wFMCommunicate OK [12:03:21]requested_item fd.num is exist - process it [12:03:21]SAM_PROTO_GetFieldsCounters [12:03:21]wFMCommunicate request_size=4 [12:03:21]MH_SAM_APDU [12:03:21]CAPDU: 80 13 00 00 [12:03:21]Write to MH i2c: E2 08 00 D1 16 80 13 00 00 00 00 00 00 63 [12:03:21]Write i2c OK [12:03:21]MH_I2C_Read... [12:03:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:03:21]Read from MH i2c: E2 [12:03:21]MH_I2C_Read... [12:03:21]Read from MH i2c: E2 62 00 [12:03:21]MH_I2C_Read... [12:03:21]Read from MH i2c: E2 62 00 D1 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 43 84 02 00 0E 04 04 00 BF 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 96 [12:03:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 43 84 02 00 0E 04 04 00 BF 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 [12:03:21]wFMCommunicate OK [12:03:21]SAM_PROTO_GetFieldsCounters done [12:03:21]requested_item shift.num is exist - process it [12:03:21]requested_item shift.opened is exist - process it [12:03:21]req_shift_opened [12:03:21]FM_GetShiftState [12:03:21]SAM_PROTO_GetShiftState [12:03:21]wFMCommunicate request_size=4 [12:03:21]MH_SAM_APDU [12:03:21]CAPDU: 80 13 01 00 [12:03:21]Write to MH i2c: E2 08 00 D2 16 80 13 01 00 00 00 00 00 65 [12:03:21]Write i2c OK [12:03:21]MH_I2C_Read... [12:03:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:21]Read from MH i2c: E2 [12:03:21]MH_I2C_Read... [12:03:21]Read from MH i2c: E2 0E 00 [12:03:21]MH_I2C_Read... [12:03:21]Read from MH i2c: E2 0E 00 D2 16 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 E5 [12:03:21]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [12:03:21]wFMCommunicate OK [12:03:21]SAM_PROTO_GetShiftState done [12:03:21]FM_GetShiftState done [12:03:21]req_shift_opened done [12:03:21]requested_item shift.open_date is exist - process it [12:03:21]req_shift_open_date [12:03:21]req_shift_open_date done [12:03:21]produce_requested_data done [12:03:21]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164931,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [12:03:21]process_action_free close_receipt [12:03:21]json_value_free [12:03:21]json_value_free done [12:03:21]process_json_proto returns [12:03:21]Send response to host [12:03:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164931,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [12:03:21]free response buf [12:03:21]execute_script done [12:03:21]execute_script returns [12:03:21]free content buf [12:03:21]Sock 9.Close socket [12:03:21]Sock 9.Thread stoped [12:03:25]OFD Sender: No OFD packet to send [12:03:30]OFD Sender: No OFD packet to send [12:03:35]OFD Sender: No OFD packet to send [12:03:40]OFD Sender: No OFD packet to send [12:03:45]OFD Sender: No OFD packet to send [12:03:50]OFD Sender: No OFD packet to send [12:03:55]OFD Sender: No OFD packet to send [12:04:00]OFD Sender: No OFD packet to send [12:04:05]OFD Sender: No OFD packet to send [12:04:10]OFD Sender: No OFD packet to send [12:04:15]OFD Sender: No OFD packet to send [12:04:20]OFD Sender: No OFD packet to send [12:04:25]OFD Sender: No OFD packet to send [12:04:30]OFD Sender: No OFD packet to send [12:04:35]OFD Sender: No OFD packet to send [12:04:40]OFD Sender: No OFD packet to send [12:04:45]OFD Sender: No OFD packet to send [12:04:50]OFD Sender: No OFD packet to send [12:04:55]OFD Sender: No OFD packet to send [12:05:00]OFD Sender: No OFD packet to send [12:05:05]OFD Sender: No OFD packet to send [12:05:10]OFD Sender: No OFD packet to send [12:05:15]OFD Sender: No OFD packet to send [12:05:20]OFD Sender: No OFD packet to send [12:05:25]OFD Sender: No OFD packet to send [12:05:30]OFD Sender: No OFD packet to send [12:05:35]OFD Sender: No OFD packet to send [12:05:40]OFD Sender: No OFD packet to send [12:05:45]OFD Sender: No OFD packet to send [12:05:50]OFD Sender: No OFD packet to send [12:05:55]OFD Sender: No OFD packet to send [12:06:00]OFD Sender: No OFD packet to send [12:06:05]OFD Sender: No OFD packet to send [12:06:10]OFD Sender: No OFD packet to send [12:06:15]OFD Sender: No OFD packet to send [12:06:20]OFD Sender: No OFD packet to send [12:06:25]OFD Sender: No OFD packet to send [12:06:30]OFD Sender: No OFD packet to send [12:06:35]OFD Sender: No OFD packet to send [12:06:40]OFD Sender: No OFD packet to send [12:06:45]OFD Sender: No OFD packet to send [12:06:50]OFD Sender: No OFD packet to send [12:06:55]OFD Sender: No OFD packet to send [12:07:00]OFD Sender: No OFD packet to send [12:07:05]OFD Sender: No OFD packet to send [12:07:10]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:08:01]OFD Sender: No OFD packet to send [12:08:06]OFD Sender: No OFD packet to send [12:08:11]OFD Sender: No OFD packet to send [12:08:16]OFD Sender: No OFD packet to send [12:08:21]OFD Sender: No OFD packet to send [12:08:26]OFD Sender: No OFD packet to send [12:08:31]OFD Sender: No OFD packet to send [12:08:36]OFD Sender: No OFD packet to send [12:08:41]OFD Sender: No OFD packet to send [12:08:46]OFD Sender: No OFD packet to send [12:08:51]OFD Sender: No OFD packet to send [12:08:56]OFD Sender: No OFD packet to send [12:09:01]OFD Sender: No OFD packet to send [12:09:06]OFD Sender: No OFD packet to send [12:09:11]OFD Sender: No OFD packet to send [12:09:16]OFD Sender: No OFD packet to send [12:09:21]OFD Sender: No OFD packet to send [12:09:26]OFD Sender: No OFD packet to send [12:09:31]OFD Sender: No OFD packet to send [12:09:36]OFD Sender: No OFD packet to send [12:09:41]OFD Sender: No OFD packet to send [12:09:46]OFD Sender: No OFD packet to send [12:09:51]OFD Sender: No OFD packet to send [12:09:56]OFD Sender: No OFD packet to send [12:10:01]OFD Sender: No OFD packet to send [12:10:06]OFD Sender: No OFD packet to send [12:10:11]OFD Sender: No OFD packet to send [12:10:16]OFD Sender: No OFD packet to send [12:10:21]OFD Sender: No OFD packet to send [12:10:26]OFD Sender: No OFD packet to send [12:10:31]OFD Sender: No OFD packet to send [12:10:36]OFD Sender: No OFD packet to send [12:10:41]OFD Sender: No OFD packet to send [12:10:46]OFD Sender: No OFD packet to send [12:10:51]OFD Sender: No OFD packet to send [12:10:56]OFD Sender: No OFD packet to send [12:11:01]OFD Sender: No OFD packet to send [12:11:06]OFD Sender: No OFD packet to send [12:11:11]OFD Sender: No OFD packet to send [12:11:16]OFD Sender: No OFD packet to send [12:11:21]OFD Sender: No OFD packet to send [12:11:26]OFD Sender: No OFD packet to send [12:11:31]OFD Sender: No OFD packet to send [12:11:36]OFD Sender: No OFD packet to send [12:11:41]OFD Sender: No OFD packet to send [12:11:46]OFD Sender: No OFD packet to send [12:11:51]OFD Sender: No OFD packet to send [12:11:56]OFD Sender: No OFD packet to send [12:12:01]OFD Sender: No OFD packet to send [12:12:06]OFD Sender: No OFD packet to send [12:12:11]OFD Sender: No OFD packet to send [12:12:16]OFD Sender: No OFD packet to send [12:12:21]OFD Sender: No OFD packet to send [12:12:26]OFD Sender: No OFD packet to send [12:12:31]OFD Sender: No OFD packet to send [12:12:35]accept exits with 7 [12:12:35]New connection [12:12:35]New thread 3067473252 created [12:12:35]Thread 3067616612 joined [12:12:35]Waiting for new connection... [12:12:35] Sock 7.Parse request [12:12:35]Sock 7.Check first char [12:12:35]Sock 7.First char is OK [12:12:35]request: POST /json_proto HTTP/1.0 [12:12:35]Method: POST [12:12:35]URL: /json_proto [12:12:35]Method is POST - this is cgi request [12:12:35]url: /json_proto [12:12:35]query_string will be loaded in cgi processing [12:12:35]execute_cgi json_proto POST (null) [12:12:35]execute_cgi path=json_proto method=POST [12:12:35]POST find Content-Length [12:12:35]Host: 172.17.56.4:8080 [12:12:35]Content-Length: 682 [12:12:35]Content-Type: application/json [12:12:35] [12:12:35]POST finish read [12:12:35]Found Content-Length = 682 [12:12:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459028", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "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:12:35]execute_script... [12:12: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)459028", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "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:12:35]POST & json_proto [12:12:35]process_json_proto [12:12:35]json parsed OK: [12:12:35]protocol is kg_v1.0 [12:12:35]action value=close_receipt [12:12:35]process_action close_receipt [12:12:35]cmd_close_receipt [12:12:35]MH_GetDate [12:12:35]Write to MH i2c: F0 00 00 D3 16 D8 [12:12:35]Write i2c OK [12:12:35]MH_I2C_Read... [12:12:35]Read from MH i2c: F0 [12:12:35]MH_I2C_Read... [12:12:35]Read from MH i2c: F0 09 00 [12:12:35]MH_I2C_Read... [12:12:35]Read from MH i2c: F0 09 00 D3 16 00 B4 C0 93 66 C9 DC B2 64 09 [12:12:35]GetLastDocTimeStamp 1720958599 [12:12:35]current date 1720959156 [12:12:35]FM_GetShiftState [12:12:35]SAM_PROTO_GetShiftState [12:12:35]wFMCommunicate request_size=4 [12:12:35]MH_SAM_APDU [12:12:35]CAPDU: 80 13 01 00 [12:12:35]Write to MH i2c: E2 08 00 D4 16 80 13 01 00 00 00 00 00 67 [12:12:35]Write i2c OK [12:12:35]MH_I2C_Read... [12:12:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:12:35]Read from MH i2c: E2 [12:12:35]MH_I2C_Read... [12:12:35]Read from MH i2c: E2 0E 00 [12:12:35]MH_I2C_Read... [12:12:35]Read from MH i2c: E2 0E 00 D4 16 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 E7 [12:12:35]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [12:12:35]wFMCommunicate OK [12:12:35]SAM_PROTO_GetShiftState done [12:12:35]FM_GetShiftState done [12:12:35]opened in 1720917342 [12:12:35]opened+sec_in_day 1721003742 [12:12:35]quantity*price = 100016 [12:12:35]sum+1 = 100017 [12:12:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 130 14.07.2024 12:12 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164932 ФПД: 202649016972119 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T121236&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164932&fm=202649016972119&tin=02508201610067®Number=0000000000090829&sum=100000 [12:12:36]StoreToDocumentArchive [12:12:36]shift 447 fd 164932 [12:12:36]save to /storage/0447/doc_00164932 [12:12:36]save last doc name /storage/0447/doc_00164932 to /storage/kkm_last_doc_name [12:12:36]save OK [12:12:36]Clear old archive folders... [12:12:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:12:36]tlvbuf is 007BC3C0 [12:12:36]SAM_PROTO_ClearQueue [12:12:36]wFMCommunicate request_size=4 [12:12:36]MH_SAM_APDU [12:12:36]CAPDU: 80 09 00 00 [12:12:36]Write to MH i2c: E2 08 00 E1 16 80 09 00 00 00 00 00 00 69 [12:12:36]Write i2c OK [12:12:36]MH_I2C_Read... [12:12:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:12:36]Read from MH i2c: E2 [12:12:36]MH_I2C_Read... [12:12:36]Read from MH i2c: E2 03 00 [12:12:36]MH_I2C_Read... [12:12:36]Read from MH i2c: E2 03 00 E1 16 00 90 00 6B [12:12:36]RAPDU: 90 00 [12:12:36]wFMCommunicate OK [12:12:36]SAM_PROTO_ClearQueue done [12:12:36]KKMCreateOFDPacket [12:12:36]OFDProtocolAddRootSTLVToBuf [12:12:36]FM_MakeSignedData [12:12:36]FM_MakeSignedData [12:12:36]SAM_PROTO_SignData [12:12:36]wFMCommunicate request_size=4 [12:12:36]MH_SAM_APDU [12:12:36]CAPDU: 80 0D 01 02 [12:12:36]Write to MH i2c: E2 08 00 E2 16 80 0D 01 02 00 00 00 00 71 [12:12:36]Write i2c OK [12:12:36]MH_I2C_Read... [12:12:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:12:36]Read from MH i2c: E2 [12:12:36]MH_I2C_Read... [12:12:36]Read from MH i2c: E2 03 00 [12:12:36]MH_I2C_Read... [12:12:36]Read from MH i2c: E2 03 00 E2 16 00 90 00 6C [12:12:36]RAPDU: 90 00 [12:12:36]wFMCommunicate OK [12:12:36]wFMCommunicate request_size=255 [12:12:36]MH_SAM_APDU [12:12:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 B4 C0 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 44 84 02 00 35 04 06 00 B8 [12:12:36]Write to MH i2c: E2 02 01 E3 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 B4 C0 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 44 84 02 00 35 04 06 00 B8 00 00 BD [12:12:36]Write i2c OK [12:12:36]MH_I2C_Read... [12:12:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:12:36]Read from MH i2c: E2 [12:12:36]MH_I2C_Read... [12:12:36]Read from MH i2c: E2 03 00 [12:12:36]MH_I2C_Read... [12:12:36]Read from MH i2c: E2 03 00 E3 16 00 90 00 6D [12:12:36]RAPDU: 90 00 [12:12:36]wFMCommunicate OK [12:12:36]wFMCommunicate request_size=10 [12:12:36]MH_SAM_APDU [12:12:36]CAPDU: 80 0D 02 02 05 4E E6 AB B3 57 [12:12:36]Write to MH i2c: E2 0D 00 E4 16 80 0D 02 02 05 00 4E E6 AB B3 57 00 00 67 [12:12:36]Write i2c OK [12:12:36]MH_I2C_Read... [12:12:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:12:37]Read from MH i2c: E2 [12:12:37]MH_I2C_Read... [12:12:37]Read from MH i2c: E2 03 00 [12:12:37]MH_I2C_Read... [12:12:37]Read from MH i2c: E2 03 00 E4 16 00 90 00 6E [12:12:37]RAPDU: 90 00 [12:12:37]wFMCommunicate OK [12:12:37]wFMCommunicate request_size=4 [12:12:37]MH_SAM_APDU [12:12:37]CAPDU: 80 0D 03 02 [12:12:37]Write to MH i2c: E2 08 00 E5 16 80 0D 03 02 00 00 00 00 76 [12:12:37]Write i2c OK [12:12:37]MH_I2C_Read... [12:12:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:12:37]Read from MH i2c: E2 [12:12:37]MH_I2C_Read... [12:12:37]Read from MH i2c: E2 0B 00 [12:12:37]MH_I2C_Read... [12:12:37]Read from MH i2c: E2 0B 00 E5 16 00 F5 50 D4 1A CF BD CC 24 90 00 26 [12:12:37]RAPDU: F5 50 D4 1A CF BD CC 24 90 00 [12:12:37]wFMCommunicate OK [12:12:37]SAM_PROTO_SignData done [12:12:37]FM_MakeSignedData done [12:12:37]CreateOFDProtocolMessage [12:12:37]wFMCommunicate request_size=4 [12:12:37]MH_SAM_APDU [12:12:37]CAPDU: 80 11 00 00 [12:12:37]Write to MH i2c: E2 08 00 E6 16 80 11 00 00 00 00 00 00 76 [12:12:37]Write i2c OK [12:12:37]MH_I2C_Read... [12:12:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:12:37]Read from MH i2c: E2 [12:12:37]MH_I2C_Read... [12:12:37]Read from MH i2c: E2 17 00 [12:12:37]MH_I2C_Read... [12:12:37]Read from MH i2c: E2 17 00 E6 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 CC [12:12:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:12:37]wFMCommunicate OK [12:12:37]CreateOFDProtocolMessage done [12:12:37]OFDSenderStorePacket 164932 [12:12:37]StoreOFDPacket docnum=164932 [12:12:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 00 F0 07 01 70 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 B4 C0 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 44 84 02 00 35 04 06 00 B8 4E E6 AB B3 57 F5 50 D4 1A CF BD CC 24 [12:12:37]CheckFolder [12:12:37]dirname=/storage/ofd_packets [12:12:37]CheckFolder done [12:12:37]ProducePacketName [12:12:37]name=ofd_packets/00164932 [12:12:37]NVStorageSaveData ofd_packets/00164932 [12:12:37]File name is /storage/ofd_packets/00164932 [12:12:37]Write 301 bytes [12:12:37]NVStorageSaveData done [12:12:37]OFDSenderStorePacket done [12:12:37]KKMCreateOFDPacket done [12:12:37]NVStorageSaveData kkm_last_timestamp [12:12:37]File name is /storage/kkm_last_timestamp [12:12:37]Write 4 bytes [12:12:37]NVStorageSaveData done [12:12:37]ExternCall_PrintAddStr [12:12:37]wPrintStart [12:12:37]Write to MH i2c: 01 00 00 E7 16 FD [12:12:37]Write i2c OK [12:12:37]MH_I2C_Read... [12:12:37]Read from MH i2c: 01 [12:12:37]MH_I2C_Read... [12:12:37]Read from MH i2c: 01 07 00 [12:12:37]MH_I2C_Read... [12:12:37]Read from MH i2c: 01 07 00 E7 16 00 00 00 00 00 FF 0F 12 [12:12:37]RasterBufferAndPrint [12:12:37]line Счет N : (1)459028 [12:12:37]line ИНН: 02508201610067 [12:12:37]line Контрольно-Кассовый Чек [12:12:37]line ПРОДАЖА [12:12:37]line ТРК (МРК, ГНК) : 12 [12:12:37]line Товар: 2710124130 [12:12:37]line Аи-92-К-5 [12:12:37]line 15.200 * 65.80 [12:12:37]line = 1000.16 [12:12:37]line НДС 12% НСП 1% [12:12:37]line > о реализуемом товаре [12:12:37]line ОКРУГЛЕНИЕ: -0.16 [12:12:37]line ИТОГО: 1000.00 [12:12:37]line Внесено: 1000.00 [12:12:37]line СДАЧА: 0.00 [12:12:37]line НСП 1% : 8.85 [12:12:37]line НДС 12% : 106.21 [12:12:37]line Наличными: 1000.00 [12:12:37]line Безнал.: 0.00 [12:12:37]line Место: АЗС № 72 "Партнер Нефть" [12:12:37]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:12:37]line СНО: Общий режим [12:12:37]line Чек 130 14.07.2024 12:12 [12:12:37]line Смена: 447 ФФД: 1.0 [12:12:37]line ЗНМ: 0300000160 [12:12:37]line РНМ: 0000000000090829 [12:12:37]line Версия ККМ: 001 [12:12:37]line ФМ: 0000000000874718 [12:12:37]line ФД: 164932 [12:12:37]line ФПД: 202649016972119 [12:12:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T121236&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164932&fm=202649016972119&tin=02508201610067®Number=0000000000090829&sum=100000 [12:12:37]written 0, free lines is 4095 [12:12:37]OFD Sender: Processing packet 164932 [packets to send 104, broken 103] [12:12:37]ProducePacketName [12:12:37]name=ofd_packets/00164932 [12:12:37]OFD Sender: To server: pG, [12:12:37]CommunicateWithHost lk.salyk.kg:30040 [12:12:37]ConnectInit lk.salyk.kg [12:12:37]Connected sock=10 [12:12:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 00 F0 07 01 70 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 B4 C0 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 44 84 02 00 35 04 06 00 B8 4E E6 AB B3 57 F5 50 D4 1A CF BD CC 24 [12:12:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 DA D0 47 00 E4 BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 44 84 02 00 F4 03 04 00 42 67 93 66 B6 04 01 00 00 38 6D CB 52 7D 90 AB E8 [12:12:37]CommunicateWithHost err = 0 [12:12:37]CheckOFDResponse [12:12:37]1017 (14) - 77093643461234 [12:12:37]1041 (16) - 0000000000874718 [12:12:37]1040 (4) - 164932 [12:12:37]1012 (4) - 14.07.2024 05:50 [12:12:37]1206 (1) - 0 [12:12:37]OFD Sender: Remove packet 164932 [12:12:37]ProducePacketName [12:12:37]name=ofd_packets/00164932 [12:12:37]NVStorageDeleteData [12:12:37]Write to MH i2c: 01 00 00 11 17 28 [12:12:37]Write i2c OK [12:12:37]MH_I2C_Read... [12:12:37]Read from MH i2c: 01 [12:12:37]MH_I2C_Read... [12:12:37]Read from MH i2c: 01 07 00 [12:12:37]MH_I2C_Read... [12:12:37]Read from MH i2c: 01 07 00 11 17 00 00 00 00 00 F2 0C 2D [12:12:37]RasterBufferAndPrint [12:12:37]line [12:12:37]line [12:12:37]line [12:12:37]line [12:12:37]line [12:12:37]written 0, free lines is 3322 [12:12:37]MH_Cut [12:12:37]Write to MH i2c: D1 01 00 18 17 01 01 [12:12:37]Write i2c OK [12:12:37]MH_I2C_Read... [12:12:37]Read from MH i2c: D1 [12:12:37]MH_I2C_Read... [12:12:37]Read from MH i2c: D1 01 00 [12:12:37]MH_I2C_Read... [12:12:37]Read from MH i2c: D1 01 00 18 17 00 00 [12:12:37]Write to MH i2c: 01 00 00 19 17 30 [12:12:37]Write i2c OK [12:12:37]MH_I2C_Read... [12:12:38]OFD Sender: No OFD packet to send [12:12:38]*** Cut start [12:12:38]*** Partial cut [12:12:38]*** CUTSNS_PIN = 1 [12:12:38]*** CUTSNS_PIN = 0 [12:12:38]*** Brake cut motor [12:12:39]Read from MH i2c: 01 [12:12:39]MH_I2C_Read... [12:12:39]*** Stop cut motor [12:12:39]*** Cut end [12:12:39]Read from MH i2c: 01 07 00 [12:12:39]MH_I2C_Read... [12:12:39]Read from MH i2c: 01 07 00 19 17 00 00 00 00 00 FF 0F 45 [12:12:39]process_action close_receipt done [12:12:39]requested_data is exist [12:12:39]produce_requested_data [12:12:39]requested_item fm.sn is exist - process it [12:12:39]wFMCommunicate request_size=4 [12:12:39]MH_SAM_APDU [12:12:39]CAPDU: 80 11 00 00 [12:12:39]Write to MH i2c: E2 08 00 1A 17 80 11 00 00 00 00 00 00 AB [12:12:39]Write i2c OK [12:12:39]MH_I2C_Read... [12:12:39]Read from MH i2c: E2 [12:12:39]MH_I2C_Read... [12:12:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:12:39]Read from MH i2c: E2 17 00 [12:12:39]MH_I2C_Read... [12:12:39]Read from MH i2c: E2 17 00 1A 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 01 [12:12:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:12:39]wFMCommunicate OK [12:12:39]requested_item fd.num is exist - process it [12:12:39]SAM_PROTO_GetFieldsCounters [12:12:39]wFMCommunicate request_size=4 [12:12:39]MH_SAM_APDU [12:12:39]CAPDU: 80 13 00 00 [12:12:39]Write to MH i2c: E2 08 00 1B 17 80 13 00 00 00 00 00 00 AE [12:12:39]Write i2c OK [12:12:39]MH_I2C_Read... [12:12:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:12:39]Read from MH i2c: E2 [12:12:39]MH_I2C_Read... [12:12:39]Read from MH i2c: E2 62 00 [12:12:39]MH_I2C_Read... [12:12:39]Read from MH i2c: E2 62 00 1B 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 44 84 02 00 0E 04 04 00 BF 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 E5 [12:12:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 44 84 02 00 0E 04 04 00 BF 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 [12:12:39]wFMCommunicate OK [12:12:39]SAM_PROTO_GetFieldsCounters done [12:12:39]requested_item shift.num is exist - process it [12:12:39]requested_item shift.opened is exist - process it [12:12:39]req_shift_opened [12:12:39]FM_GetShiftState [12:12:39]SAM_PROTO_GetShiftState [12:12:39]wFMCommunicate request_size=4 [12:12:39]MH_SAM_APDU [12:12:39]CAPDU: 80 13 01 00 [12:12:39]Write to MH i2c: E2 08 00 1C 17 80 13 01 00 00 00 00 00 B0 [12:12:39]Write i2c OK [12:12:39]MH_I2C_Read... [12:12:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:12:39]Read from MH i2c: E2 [12:12:39]MH_I2C_Read... [12:12:39]Read from MH i2c: E2 0E 00 [12:12:39]MH_I2C_Read... [12:12:39]Read from MH i2c: E2 0E 00 1C 17 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 30 [12:12:39]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [12:12:39]wFMCommunicate OK [12:12:39]SAM_PROTO_GetShiftState done [12:12:39]FM_GetShiftState done [12:12:39]req_shift_opened done [12:12:39]requested_item shift.open_date is exist - process it [12:12:39]req_shift_open_date [12:12:39]req_shift_open_date done [12:12:39]produce_requested_data done [12:12:39]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164932,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [12:12:39]process_action_free close_receipt [12:12:39]json_value_free [12:12:39]json_value_free done [12:12:39]process_json_proto returns [12:12:39]Send response to host [12:12:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164932,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [12:12:39]free response buf [12:12:39]execute_script done [12:12:39]execute_script returns [12:12:39]free content buf [12:12:39]Sock 7.Close socket [12:12:39]Sock 7.Thread stoped [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:12:58]accept exits with 9 [12:12:58]New connection [12:12:58]New thread 3067616612 created [12:12:58]Thread 3067473252 joined [12:12:58]Waiting for new connection... [12:12:58] Sock 9.Parse request [12:12:58]Sock 9.Check first char [12:12:58]Sock 9.First char is OK [12:12:58]request: POST /json_proto HTTP/1.0 [12:12:58]Method: POST [12:12:58]URL: /json_proto [12:12:58]Method is POST - this is cgi request [12:12:58]url: /json_proto [12:12:58]query_string will be loaded in cgi processing [12:12:58]execute_cgi json_proto POST (null) [12:12:58]execute_cgi path=json_proto method=POST [12:12:58]POST find Content-Length [12:12:58]Host: 172.17.56.4:8080 [12:12:58]Content-Length: 677 [12:12:58]Content-Type: application/json [12:12:58] [12:12:58]POST finish read [12:12:58]Found Content-Length = 677 [12:12:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459029", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "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:12:58]execute_script... [12:12: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)459029", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "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:12:58]POST & json_proto [12:12:58]process_json_proto [12:12:58]json parsed OK: [12:12:58]protocol is kg_v1.0 [12:12:58]action value=close_receipt [12:12:58]process_action close_receipt [12:12:58]cmd_close_receipt [12:12:58]MH_GetDate [12:12:58]Write to MH i2c: F0 00 00 1D 17 23 [12:12:58]Write i2c OK [12:12:58]MH_I2C_Read... [12:12:58]Read from MH i2c: F0 [12:12:58]MH_I2C_Read... [12:12:58]Read from MH i2c: F0 09 00 [12:12:58]MH_I2C_Read... [12:12:58]Read from MH i2c: F0 09 00 1D 17 00 CC C0 93 66 C9 DC B2 64 6C [12:12:58]GetLastDocTimeStamp 1720959156 [12:12:58]current date 1720959180 [12:12:58]FM_GetShiftState [12:12:58]SAM_PROTO_GetShiftState [12:12:58]wFMCommunicate request_size=4 [12:12:58]MH_SAM_APDU [12:12:58]CAPDU: 80 13 01 00 [12:12:58]Write to MH i2c: E2 08 00 1E 17 80 13 01 00 00 00 00 00 B2 [12:12:58]Write i2c OK [12:12:58]MH_I2C_Read... [12:12:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:12:58]Read from MH i2c: E2 [12:12:58]MH_I2C_Read... [12:12:58]Read from MH i2c: E2 0E 00 [12:12:58]MH_I2C_Read... [12:12:58]Read from MH i2c: E2 0E 00 1E 17 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 32 [12:12:58]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [12:12:58]wFMCommunicate OK [12:12:58]SAM_PROTO_GetShiftState done [12:12:58]FM_GetShiftState done [12:12:58]opened in 1720917342 [12:12:58]opened+sec_in_day 1721003742 [12:12:58]quantity*price = 60009 [12:12:58]sum+1 = 60011 [12:12:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 131 14.07.2024 12:13 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164933 ФПД: 146276016630397 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T121300&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164933&fm=146276016630397&tin=02508201610067®Number=0000000000090829&sum=60000 [12:13:00]StoreToDocumentArchive [12:13:00]shift 447 fd 164933 [12:13:00]save to /storage/0447/doc_00164933 [12:13:00]save last doc name /storage/0447/doc_00164933 to /storage/kkm_last_doc_name [12:13:00]save OK [12:13:00]Clear old archive folders... [12:13:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:13:00]tlvbuf is 00735770 [12:13:00]SAM_PROTO_ClearQueue [12:13:00]wFMCommunicate request_size=4 [12:13:00]MH_SAM_APDU [12:13:00]CAPDU: 80 09 00 00 [12:13:00]Write to MH i2c: E2 08 00 2B 17 80 09 00 00 00 00 00 00 B4 [12:13:00]Write i2c OK [12:13:00]MH_I2C_Read... [12:13:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:13:00]Read from MH i2c: E2 [12:13:00]MH_I2C_Read... [12:13:00]Read from MH i2c: E2 03 00 [12:13:00]MH_I2C_Read... [12:13:00]Read from MH i2c: E2 03 00 2B 17 00 90 00 B6 [12:13:00]RAPDU: 90 00 [12:13:00]wFMCommunicate OK [12:13:00]SAM_PROTO_ClearQueue done [12:13:00]KKMCreateOFDPacket [12:13:00]OFDProtocolAddRootSTLVToBuf [12:13:00]FM_MakeSignedData [12:13:00]FM_MakeSignedData [12:13:00]SAM_PROTO_SignData [12:13:00]wFMCommunicate request_size=4 [12:13:00]MH_SAM_APDU [12:13:00]CAPDU: 80 0D 01 02 [12:13:00]Write to MH i2c: E2 08 00 2C 17 80 0D 01 02 00 00 00 00 BC [12:13:00]Write i2c OK [12:13:00]MH_I2C_Read... [12:13:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:13:00]Read from MH i2c: E2 [12:13:00]MH_I2C_Read... [12:13:00]Read from MH i2c: E2 03 00 [12:13:00]MH_I2C_Read... [12:13:00]Read from MH i2c: E2 03 00 2C 17 00 90 00 B7 [12:13:00]RAPDU: 90 00 [12:13:00]wFMCommunicate OK [12:13:00]wFMCommunicate request_size=255 [12:13:00]MH_SAM_APDU [12:13:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A 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 83 00 00 00 F4 03 04 00 CC C0 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 45 84 02 00 35 04 06 00 85 [12:13:00]Write to MH i2c: E2 02 01 2D 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A 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 83 00 00 00 F4 03 04 00 CC C0 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 45 84 02 00 35 04 06 00 85 00 00 6E [12:13:00]Write i2c OK [12:13:00]MH_I2C_Read... [12:13:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:13:00]Read from MH i2c: E2 [12:13:00]MH_I2C_Read... [12:13:00]Read from MH i2c: E2 03 00 [12:13:00]MH_I2C_Read... [12:13:00]Read from MH i2c: E2 03 00 2D 17 00 90 00 B8 [12:13:00]RAPDU: 90 00 [12:13:00]wFMCommunicate OK [12:13:00]wFMCommunicate request_size=10 [12:13:00]MH_SAM_APDU [12:13:00]CAPDU: 80 0D 02 02 05 09 8A 02 AA 7D [12:13:00]Write to MH i2c: E2 0D 00 2E 17 80 0D 02 02 05 00 09 8A 02 AA 7D 00 00 85 [12:13:00]Write i2c OK [12:13:00]MH_I2C_Read... [12:13:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:13:00]Read from MH i2c: E2 [12:13:00]MH_I2C_Read... [12:13:00]Read from MH i2c: E2 03 00 [12:13:00]MH_I2C_Read... [12:13:00]Read from MH i2c: E2 03 00 2E 17 00 90 00 B9 [12:13:00]RAPDU: 90 00 [12:13:00]wFMCommunicate OK [12:13:00]wFMCommunicate request_size=4 [12:13:00]MH_SAM_APDU [12:13:00]CAPDU: 80 0D 03 02 [12:13:00]Write to MH i2c: E2 08 00 2F 17 80 0D 03 02 00 00 00 00 C1 [12:13:00]Write i2c OK [12:13:00]MH_I2C_Read... [12:13:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:13:00]Read from MH i2c: E2 [12:13:00]MH_I2C_Read... [12:13:00]Read from MH i2c: E2 0B 00 [12:13:00]MH_I2C_Read... [12:13:00]Read from MH i2c: E2 0B 00 2F 17 00 3C 8E FA 28 AA 72 C9 82 90 00 15 [12:13:00]RAPDU: 3C 8E FA 28 AA 72 C9 82 90 00 [12:13:00]wFMCommunicate OK [12:13:00]SAM_PROTO_SignData done [12:13:00]FM_MakeSignedData done [12:13:00]CreateOFDProtocolMessage [12:13:00]wFMCommunicate request_size=4 [12:13:00]MH_SAM_APDU [12:13:00]CAPDU: 80 11 00 00 [12:13:00]Write to MH i2c: E2 08 00 30 17 80 11 00 00 00 00 00 00 C1 [12:13:00]Write i2c OK [12:13:00]MH_I2C_Read... [12:13:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:00]Read from MH i2c: E2 [12:13:00]MH_I2C_Read... [12:13:00]Read from MH i2c: E2 17 00 [12:13:00]MH_I2C_Read... [12:13:00]Read from MH i2c: E2 17 00 30 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 17 [12:13:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:13:00]wFMCommunicate OK [12:13:00]CreateOFDProtocolMessage done [12:13:00]OFDSenderStorePacket 164933 [12:13:00]StoreOFDPacket docnum=164933 [12:13:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 BC 6B 07 01 A0 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A 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 83 00 00 00 F4 03 04 00 CC C0 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 45 84 02 00 35 04 06 00 85 09 8A 02 AA 7D 3C 8E FA 28 AA 72 C9 82 [12:13:00]CheckFolder [12:13:00]dirname=/storage/ofd_packets [12:13:00]CheckFolder done [12:13:00]ProducePacketName [12:13:00]name=ofd_packets/00164933 [12:13:00]NVStorageSaveData ofd_packets/00164933 [12:13:00]File name is /storage/ofd_packets/00164933 [12:13:00]Write 301 bytes [12:13:00]NVStorageSaveData done [12:13:00]OFDSenderStorePacket done [12:13:00]KKMCreateOFDPacket done [12:13:00]NVStorageSaveData kkm_last_timestamp [12:13:00]File name is /storage/kkm_last_timestamp [12:13:00]Write 4 bytes [12:13:00]NVStorageSaveData done [12:13:00]ExternCall_PrintAddStr [12:13:00]wPrintStart [12:13:00]Write to MH i2c: 01 00 00 31 17 48 [12:13:00]Write i2c OK [12:13:00]MH_I2C_Read... [12:13:00]Read from MH i2c: 01 [12:13:00]MH_I2C_Read... [12:13:00]Read from MH i2c: 01 07 00 [12:13:00]MH_I2C_Read... [12:13:00]Read from MH i2c: 01 07 00 31 17 00 00 00 00 00 FF 0F 5D [12:13:00]RasterBufferAndPrint [12:13:00]line Счет N : (1)459029 [12:13:00]line ИНН: 02508201610067 [12:13:00]line Контрольно-Кассовый Чек [12:13:00]line ПРОДАЖА [12:13:00]line ТРК (МРК, ГНК) : 22 [12:13:00]line Товар: 2710124130 [12:13:00]line Аи-92-К-5 [12:13:00]line 9.120 * 65.80 [12:13:00]line = 600.10 [12:13:00]line НДС 12% НСП 1% [12:13:00]line > о реализуемом товаре [12:13:00]line ОКРУГЛЕНИЕ: -0.10 [12:13:00]line ИТОГО: 600.00 [12:13:00]line Внесено: 600.00 [12:13:00]line СДАЧА: 0.00 [12:13:00]line НСП 1% : 5.31 [12:13:00]line НДС 12% : 63.73 [12:13:00]line Наличными: 600.00 [12:13:00]line Безнал.: 0.00 [12:13:00]line Место: АЗС № 72 "Партнер Нефть" [12:13:00]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:13:00]line СНО: Общий режим [12:13:00]line Чек 131 14.07.2024 12:13 [12:13:00]line Смена: 447 ФФД: 1.0 [12:13:00]line ЗНМ: 0300000160 [12:13:00]line РНМ: 0000000000090829 [12:13:00]line Версия ККМ: 001 [12:13:00]line ФМ: 0000000000874718 [12:13:00]line ФД: 164933 [12:13:00]line ФПД: 146276016630397 [12:13:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T121300&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164933&fm=146276016630397&tin=02508201610067®Number=0000000000090829&sum=60000 [12:13:00]written 0, free lines is 4095 [12:13:00]OFD Sender: Processing packet 164933 [packets to send 104, broken 103] [12:13:00]ProducePacketName [12:13:00]name=ofd_packets/00164933 [12:13:00]OFD Sender: To server: pG, [12:13:00]CommunicateWithHost lk.salyk.kg:30040 [12:13:00]ConnectInit lk.salyk.kg [12:13:01]Connected sock=11 [12:13:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 BC 6B 07 01 A0 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A 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 83 00 00 00 F4 03 04 00 CC C0 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 45 84 02 00 35 04 06 00 85 09 8A 02 AA 7D 3C 8E FA 28 AA 72 C9 82 [12:13:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 5E 67 47 00 96 BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 45 84 02 00 F4 03 04 00 59 67 93 66 B6 04 01 00 00 2E 1F 91 D0 76 5B FB 6F [12:13:01]CommunicateWithHost err = 0 [12:13:01]CheckOFDResponse [12:13:01]1017 (14) - 77093643461234 [12:13:01]1041 (16) - 0000000000874718 [12:13:01]1040 (4) - 164933 [12:13:01]1012 (4) - 14.07.2024 05:51 [12:13:01]1206 (1) - 0 [12:13:01]OFD Sender: Remove packet 164933 [12:13:01]ProducePacketName [12:13:01]name=ofd_packets/00164933 [12:13:01]NVStorageDeleteData [12:13:01]Write to MH i2c: 01 00 00 5B 17 72 [12:13:01]Write i2c OK [12:13:01]MH_I2C_Read... [12:13:01]Read from MH i2c: 01 [12:13:01]MH_I2C_Read... [12:13:01]Read from MH i2c: 01 07 00 [12:13:01]MH_I2C_Read... [12:13:01]Read from MH i2c: 01 07 00 5B 17 00 00 00 00 00 F4 0C 79 [12:13:01]RasterBufferAndPrint [12:13:01]line [12:13:01]line [12:13:01]line [12:13:01]line [12:13:01]line [12:13:01]written 0, free lines is 3323 [12:13:01]MH_Cut [12:13:01]Write to MH i2c: D1 01 00 62 17 01 4B [12:13:01]Write i2c OK [12:13:01]MH_I2C_Read... [12:13:01]Read from MH i2c: D1 [12:13:01]MH_I2C_Read... [12:13:01]Read from MH i2c: D1 01 00 [12:13:01]MH_I2C_Read... [12:13:01]Read from MH i2c: D1 01 00 62 17 00 4A [12:13:01]Write to MH i2c: 01 00 00 63 17 7A [12:13:01]Write i2c OK [12:13:01]MH_I2C_Read... [12:13:01]OFD Sender: No OFD packet to send [12:13:02]*** Cut start [12:13:02]*** Partial cut [12:13:02]*** CUTSNS_PIN = 1 [12:13:02]*** CUTSNS_PIN = 0 [12:13:02]*** Brake cut motor [12:13:02]Read from MH i2c: 01 [12:13:02]MH_I2C_Read... [12:13:02]*** Stop cut motor [12:13:02]*** Cut end [12:13:02]Read from MH i2c: 01 07 00 [12:13:02]MH_I2C_Read... [12:13:02]Read from MH i2c: 01 07 00 63 17 00 00 00 00 00 FF 0F 8F [12:13:02]process_action close_receipt done [12:13:02]requested_data is exist [12:13:02]produce_requested_data [12:13:02]requested_item fm.sn is exist - process it [12:13:02]wFMCommunicate request_size=4 [12:13:02]MH_SAM_APDU [12:13:02]CAPDU: 80 11 00 00 [12:13:02]Write to MH i2c: E2 08 00 64 17 80 11 00 00 00 00 00 00 F5 [12:13:02]Write i2c OK [12:13:02]MH_I2C_Read... [12:13:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:02]Read from MH i2c: E2 [12:13:02]MH_I2C_Read... [12:13:02]Read from MH i2c: E2 17 00 [12:13:02]MH_I2C_Read... [12:13:02]Read from MH i2c: E2 17 00 64 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 4B [12:13:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:13:02]wFMCommunicate OK [12:13:02]requested_item fd.num is exist - process it [12:13:02]SAM_PROTO_GetFieldsCounters [12:13:02]wFMCommunicate request_size=4 [12:13:02]MH_SAM_APDU [12:13:02]CAPDU: 80 13 00 00 [12:13:02]Write to MH i2c: E2 08 00 65 17 80 13 00 00 00 00 00 00 F8 [12:13:02]Write i2c OK [12:13:02]MH_I2C_Read... [12:13:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:13:02]Read from MH i2c: E2 [12:13:02]MH_I2C_Read... [12:13:02]Read from MH i2c: E2 62 00 [12:13:02]MH_I2C_Read... [12:13:02]Read from MH i2c: E2 62 00 65 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 45 84 02 00 0E 04 04 00 BF 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 33 [12:13:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 45 84 02 00 0E 04 04 00 BF 01 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:13:02]wFMCommunicate OK [12:13:02]SAM_PROTO_GetFieldsCounters done [12:13:02]requested_item shift.num is exist - process it [12:13:02]requested_item shift.opened is exist - process it [12:13:02]req_shift_opened [12:13:02]FM_GetShiftState [12:13:02]SAM_PROTO_GetShiftState [12:13:02]wFMCommunicate request_size=4 [12:13:02]MH_SAM_APDU [12:13:02]CAPDU: 80 13 01 00 [12:13:02]Write to MH i2c: E2 08 00 66 17 80 13 01 00 00 00 00 00 FA [12:13:02]Write i2c OK [12:13:02]MH_I2C_Read... [12:13:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:02]Read from MH i2c: E2 [12:13:02]MH_I2C_Read... [12:13:02]Read from MH i2c: E2 0E 00 [12:13:02]MH_I2C_Read... [12:13:02]Read from MH i2c: E2 0E 00 66 17 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 7A [12:13:02]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [12:13:02]wFMCommunicate OK [12:13:02]SAM_PROTO_GetShiftState done [12:13:02]FM_GetShiftState done [12:13:02]req_shift_opened done [12:13:02]requested_item shift.open_date is exist - process it [12:13:02]req_shift_open_date [12:13:02]req_shift_open_date done [12:13:02]produce_requested_data done [12:13:02]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164933,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [12:13:02]process_action_free close_receipt [12:13:02]json_value_free [12:13:02]json_value_free done [12:13:02]process_json_proto returns [12:13:02]Send response to host [12:13:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164933,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [12:13:02]free response buf [12:13:02]execute_script done [12:13:02]execute_script returns [12:13:02]free content buf [12:13:02]Sock 9.Close socket [12:13:02]Sock 9.Thread stoped [12:13:06]OFD Sender: No OFD packet to send [12:13:11]OFD Sender: No OFD packet to send [12:13:16]OFD Sender: No OFD packet to send [12:13:21]OFD Sender: No OFD packet to send [12:13:26]OFD Sender: No OFD packet to send [12:13:31]OFD Sender: No OFD packet to send [12:13:36]OFD Sender: No OFD packet to send [12:13:41]OFD Sender: No OFD packet to send [12:13:43]accept exits with 7 [12:13:43]New connection [12:13:43]New thread 3067473252 created [12:13:43]Thread 3067616612 joined [12:13:43]Waiting for new connection... [12:13:43] Sock 7.Parse request [12:13:43]Sock 7.Check first char [12:13:43]Sock 7.First char is OK [12:13:43]request: POST /json_proto HTTP/1.0 [12:13:43]Method: POST [12:13:43]URL: /json_proto [12:13:43]Method is POST - this is cgi request [12:13:43]url: /json_proto [12:13:43]query_string will be loaded in cgi processing [12:13:43]execute_cgi json_proto POST (null) [12:13:43]execute_cgi path=json_proto method=POST [12:13:43]POST find Content-Length [12:13:43]Host: 172.17.56.4:8080 [12:13:43]Content-Length: 674 [12:13:43]Content-Type: application/json [12:13:43] [12:13:43]POST finish read [12:13:43]Found Content-Length = 674 [12:13:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459030", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 6.960, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:13:43]execute_script... [12:13: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)459030", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 6.960, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:13:43]POST & json_proto [12:13:43]process_json_proto [12:13:43]json parsed OK: [12:13:43]protocol is kg_v1.0 [12:13:43]action value=close_receipt [12:13:43]process_action close_receipt [12:13:43]cmd_close_receipt [12:13:43]MH_GetDate [12:13:43]Write to MH i2c: F0 00 00 67 17 6D [12:13:43]Write i2c OK [12:13:43]MH_I2C_Read... [12:13:43]Read from MH i2c: F0 [12:13:43]MH_I2C_Read... [12:13:43]Read from MH i2c: F0 09 00 [12:13:43]MH_I2C_Read... [12:13:43]Read from MH i2c: F0 09 00 67 17 00 F8 C0 93 66 C9 DC B2 64 E2 [12:13:43]GetLastDocTimeStamp 1720959180 [12:13:43]current date 1720959224 [12:13:43]FM_GetShiftState [12:13:43]SAM_PROTO_GetShiftState [12:13:43]wFMCommunicate request_size=4 [12:13:43]MH_SAM_APDU [12:13:43]CAPDU: 80 13 01 00 [12:13:43]Write to MH i2c: E2 08 00 68 17 80 13 01 00 00 00 00 00 FC [12:13:43]Write i2c OK [12:13:43]MH_I2C_Read... [12:13:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:43]Read from MH i2c: E2 [12:13:43]MH_I2C_Read... [12:13:43]Read from MH i2c: E2 0E 00 [12:13:43]MH_I2C_Read... [12:13:43]Read from MH i2c: E2 0E 00 68 17 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 7C [12:13:43]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [12:13:43]wFMCommunicate OK [12:13:43]SAM_PROTO_GetShiftState done [12:13:43]FM_GetShiftState done [12:13:43]opened in 1720917342 [12:13:43]opened+sec_in_day 1721003742 [12:13:43]quantity*price = 50042 [12:13:43]sum+1 = 50043 [12:13:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 132 14.07.2024 12:13 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164934 ФПД: 34950512403006 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T121344&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164934&fm=34950512403006&tin=02508201610067®Number=0000000000090829&sum=50000 [12:13:44]StoreToDocumentArchive [12:13:44]shift 447 fd 164934 [12:13:44]save to /storage/0447/doc_00164934 [12:13:44]save last doc name /storage/0447/doc_00164934 to /storage/kkm_last_doc_name [12:13:44]save OK [12:13:44]Clear old archive folders... [12:13:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:13:44]tlvbuf is 007E97A0 [12:13:44]SAM_PROTO_ClearQueue [12:13:44]wFMCommunicate request_size=4 [12:13:44]MH_SAM_APDU [12:13:44]CAPDU: 80 09 00 00 [12:13:44]Write to MH i2c: E2 08 00 75 17 80 09 00 00 00 00 00 00 FE [12:13:44]Write i2c OK [12:13:44]MH_I2C_Read... [12:13:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:13:44]Read from MH i2c: E2 [12:13:44]MH_I2C_Read... [12:13:44]Read from MH i2c: E2 03 00 [12:13:44]MH_I2C_Read... [12:13:44]Read from MH i2c: E2 03 00 75 17 00 90 00 00 [12:13:44]RAPDU: 90 00 [12:13:44]wFMCommunicate OK [12:13:44]SAM_PROTO_ClearQueue done [12:13:44]KKMCreateOFDPacket [12:13:44]OFDProtocolAddRootSTLVToBuf [12:13:44]FM_MakeSignedData [12:13:44]FM_MakeSignedData [12:13:44]SAM_PROTO_SignData [12:13:44]wFMCommunicate request_size=4 [12:13:44]MH_SAM_APDU [12:13:44]CAPDU: 80 0D 01 02 [12:13:44]Write to MH i2c: E2 08 00 76 17 80 0D 01 02 00 00 00 00 06 [12:13:44]Write i2c OK [12:13:44]MH_I2C_Read... [12:13:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:13:44]Read from MH i2c: E2 [12:13:44]MH_I2C_Read... [12:13:44]Read from MH i2c: E2 03 00 [12:13:44]MH_I2C_Read... [12:13:44]Read from MH i2c: E2 03 00 76 17 00 90 00 01 [12:13:44]RAPDU: 90 00 [12:13:44]wFMCommunicate OK [12:13:44]wFMCommunicate request_size=255 [12:13:44]MH_SAM_APDU [12:13:44]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 F8 C0 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 46 84 02 00 35 04 06 00 1F C9 8C E0 [12:13:44]Write to MH i2c: E2 02 01 77 17 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 F8 C0 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 46 84 02 00 35 04 06 00 1F C9 8C E0 00 00 F0 [12:13:44]Write i2c OK [12:13:44]MH_I2C_Read... [12:13:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:13:45]Read from MH i2c: E2 [12:13:45]MH_I2C_Read... [12:13:45]Read from MH i2c: E2 03 00 [12:13:45]MH_I2C_Read... [12:13:45]Read from MH i2c: E2 03 00 77 17 00 90 00 02 [12:13:45]RAPDU: 90 00 [12:13:45]wFMCommunicate OK [12:13:45]wFMCommunicate request_size=7 [12:13:45]MH_SAM_APDU [12:13:45]CAPDU: 80 0D 02 02 02 62 3E [12:13:45]Write to MH i2c: E2 0A 00 78 17 80 0D 02 02 02 00 62 3E 00 00 AD [12:13:45]Write i2c OK [12:13:45]MH_I2C_Read... [12:13:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:13:45]Read from MH i2c: E2 [12:13:45]MH_I2C_Read... [12:13:45]Read from MH i2c: E2 03 00 [12:13:45]MH_I2C_Read... [12:13:45]Read from MH i2c: E2 03 00 78 17 00 90 00 03 [12:13:45]RAPDU: 90 00 [12:13:45]wFMCommunicate OK [12:13:45]wFMCommunicate request_size=4 [12:13:45]MH_SAM_APDU [12:13:45]CAPDU: 80 0D 03 02 [12:13:45]Write to MH i2c: E2 08 00 79 17 80 0D 03 02 00 00 00 00 0B [12:13:45]Write i2c OK [12:13:45]MH_I2C_Read... [12:13:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:13:45]Read from MH i2c: E2 [12:13:45]MH_I2C_Read... [12:13:45]Read from MH i2c: E2 0B 00 [12:13:45]MH_I2C_Read... [12:13:45]Read from MH i2c: E2 0B 00 79 17 00 D8 C5 FD 24 88 17 3E 0A 90 00 B1 [12:13:45]RAPDU: D8 C5 FD 24 88 17 3E 0A 90 00 [12:13:45]wFMCommunicate OK [12:13:45]SAM_PROTO_SignData done [12:13:45]FM_MakeSignedData done [12:13:45]CreateOFDProtocolMessage [12:13:45]wFMCommunicate request_size=4 [12:13:45]MH_SAM_APDU [12:13:45]CAPDU: 80 11 00 00 [12:13:45]Write to MH i2c: E2 08 00 7A 17 80 11 00 00 00 00 00 00 0B [12:13:45]Write i2c OK [12:13:45]MH_I2C_Read... [12:13:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:45]Read from MH i2c: E2 [12:13:45]MH_I2C_Read... [12:13:45]Read from MH i2c: E2 17 00 [12:13:45]MH_I2C_Read... [12:13:45]Read from MH i2c: E2 17 00 7A 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 61 [12:13:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:13:45]wFMCommunicate OK [12:13:45]CreateOFDProtocolMessage done [12:13:45]OFDSenderStorePacket 164934 [12:13:45]StoreOFDPacket docnum=164934 [12:13:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 95 56 04 01 62 E1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 F8 C0 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 46 84 02 00 35 04 06 00 1F C9 8C E0 62 3E D8 C5 FD 24 88 17 3E 0A [12:13:45]CheckFolder [12:13:45]dirname=/storage/ofd_packets [12:13:45]CheckFolder done [12:13:45]ProducePacketName [12:13:45]name=ofd_packets/00164934 [12:13:45]NVStorageSaveData ofd_packets/00164934 [12:13:45]File name is /storage/ofd_packets/00164934 [12:13:45]Write 298 bytes [12:13:45]NVStorageSaveData done [12:13:45]OFDSenderStorePacket done [12:13:45]KKMCreateOFDPacket done [12:13:45]NVStorageSaveData kkm_last_timestamp [12:13:45]File name is /storage/kkm_last_timestamp [12:13:45]Write 4 bytes [12:13:45]NVStorageSaveData done [12:13:45]ExternCall_PrintAddStr [12:13:45]wPrintStart [12:13:45]Write to MH i2c: 01 00 00 7B 17 92 [12:13:45]Write i2c OK [12:13:45]MH_I2C_Read... [12:13:45]Read from MH i2c: 01 [12:13:45]MH_I2C_Read... [12:13:45]Read from MH i2c: 01 07 00 [12:13:45]MH_I2C_Read... [12:13:45]Read from MH i2c: 01 07 00 7B 17 00 00 00 00 00 FF 0F A7 [12:13:45]RasterBufferAndPrint [12:13:45]line Счет N : (1)459030 [12:13:45]line ИНН: 02508201610067 [12:13:45]line Контрольно-Кассовый Чек [12:13:45]line ПРОДАЖА [12:13:45]line ТРК (МРК, ГНК) : 11 [12:13:45]line Товар: 2710194210 [12:13:45]line ДТ-К-5 [12:13:45]line 6.960 * 71.90 [12:13:45]line = 500.42 [12:13:45]line НДС 12% НСП 1% [12:13:45]line > о реализуемом товаре [12:13:45]line ОКРУГЛЕНИЕ: -0.42 [12:13:45]line ИТОГО: 500.00 [12:13:45]line Внесено: 500.00 [12:13:45]line СДАЧА: 0.00 [12:13:45]line НСП 1% : 4.43 [12:13:45]line НДС 12% : 53.14 [12:13:45]line Наличными: 500.00 [12:13:45]line Безнал.: 0.00 [12:13:45]line Место: АЗС № 72 "Партнер Нефть" [12:13:45]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:13:45]line СНО: Общий режим [12:13:45]line Чек 132 14.07.2024 12:13 [12:13:45]line Смена: 447 ФФД: 1.0 [12:13:45]line ЗНМ: 0300000160 [12:13:45]line РНМ: 0000000000090829 [12:13:45]line Версия ККМ: 001 [12:13:45]line ФМ: 0000000000874718 [12:13:45]line ФД: 164934 [12:13:45]line ФПД: 34950512403006 [12:13:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T121344&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164934&fm=34950512403006&tin=02508201610067®Number=0000000000090829&sum=50000 [12:13:45]OFD Sender: Processing packet 164934 [packets to send 104, broken 103] [12:13:45]ProducePacketName [12:13:45]name=ofd_packets/00164934 [12:13:45]OFD Sender: To server: pG, [12:13:45]CommunicateWithHost lk.salyk.kg:30040 [12:13:45]ConnectInit lk.salyk.kg [12:13:45]written 0, free lines is 4095 [12:13:45]Connected sock=10 [12:13:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 95 56 04 01 62 E1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 F8 C0 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 46 84 02 00 35 04 06 00 1F C9 8C E0 62 3E D8 C5 FD 24 88 17 3E 0A [12:13:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 AC 0C 47 00 2F 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 38 37 34 37 31 38 10 04 04 00 46 84 02 00 F4 03 04 00 86 67 93 66 B6 04 01 00 00 56 80 2C 96 53 71 38 4F [12:13:45]CommunicateWithHost err = 0 [12:13:45]CheckOFDResponse [12:13:45]1017 (14) - 77093643461234 [12:13:45]1041 (16) - 0000000000874718 [12:13:45]1040 (4) - 164934 [12:13:45]1012 (4) - 14.07.2024 05:52 [12:13:45]1206 (1) - 0 [12:13:45]OFD Sender: Remove packet 164934 [12:13:45]ProducePacketName [12:13:45]name=ofd_packets/00164934 [12:13:45]NVStorageDeleteData [12:13:46]Write to MH i2c: 01 00 00 A5 17 BC [12:13:46]Write i2c OK [12:13:46]MH_I2C_Read... [12:13:46]Read from MH i2c: 01 [12:13:46]MH_I2C_Read... [12:13:46]Read from MH i2c: 01 07 00 [12:13:46]MH_I2C_Read... [12:13:46]Read from MH i2c: 01 07 00 A5 17 00 00 00 00 00 F3 0C C2 [12:13:46]RasterBufferAndPrint [12:13:46]line [12:13:46]line [12:13:46]line [12:13:46]line [12:13:46]line [12:13:46]written 0, free lines is 3322 [12:13:46]MH_Cut [12:13:46]Write to MH i2c: D1 01 00 AC 17 01 95 [12:13:46]Write i2c OK [12:13:46]MH_I2C_Read... [12:13:46]Read from MH i2c: D1 [12:13:46]MH_I2C_Read... [12:13:46]Read from MH i2c: D1 01 00 [12:13:46]MH_I2C_Read... [12:13:46]Read from MH i2c: D1 01 00 AC 17 00 94 [12:13:46]Write to MH i2c: 01 00 00 AD 17 C4 [12:13:46]Write i2c OK [12:13:46]MH_I2C_Read... [12:13:46]OFD Sender: No OFD packet to send [12:13:46]*** Cut start [12:13:46]*** Partial cut [12:13:46]*** CUTSNS_PIN = 1 [12:13:46]*** CUTSNS_PIN = 0 [12:13:47]*** Brake cut motor [12:13:47]Read from MH i2c: 01 [12:13:47]MH_I2C_Read... [12:13:47]*** Stop cut motor [12:13:47]*** Cut end [12:13:47]Read from MH i2c: 01 07 00 [12:13:47]MH_I2C_Read... [12:13:47]Read from MH i2c: 01 07 00 AD 17 00 00 00 00 00 FF 0F D9 [12:13:47]process_action close_receipt done [12:13:47]requested_data is exist [12:13:47]produce_requested_data [12:13:47]requested_item fm.sn is exist - process it [12:13:47]wFMCommunicate request_size=4 [12:13:47]MH_SAM_APDU [12:13:47]CAPDU: 80 11 00 00 [12:13:47]Write to MH i2c: E2 08 00 AE 17 80 11 00 00 00 00 00 00 3F [12:13:47]Write i2c OK [12:13:47]MH_I2C_Read... [12:13:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:47]Read from MH i2c: E2 [12:13:47]MH_I2C_Read... [12:13:47]Read from MH i2c: E2 17 00 [12:13:47]MH_I2C_Read... [12:13:47]Read from MH i2c: E2 17 00 AE 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 95 [12:13:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:13:47]wFMCommunicate OK [12:13:47]requested_item fd.num is exist - process it [12:13:47]SAM_PROTO_GetFieldsCounters [12:13:47]wFMCommunicate request_size=4 [12:13:47]MH_SAM_APDU [12:13:47]CAPDU: 80 13 00 00 [12:13:47]Write to MH i2c: E2 08 00 AF 17 80 13 00 00 00 00 00 00 42 [12:13:47]Write i2c OK [12:13:47]MH_I2C_Read... [12:13:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:13:47]Read from MH i2c: E2 [12:13:47]MH_I2C_Read... [12:13:47]Read from MH i2c: E2 62 00 [12:13:47]MH_I2C_Read... [12:13:47]Read from MH i2c: E2 62 00 AF 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 46 84 02 00 0E 04 04 00 BF 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 81 [12:13:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 46 84 02 00 0E 04 04 00 BF 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 [12:13:47]wFMCommunicate OK [12:13:47]SAM_PROTO_GetFieldsCounters done [12:13:47]requested_item shift.num is exist - process it [12:13:47]requested_item shift.opened is exist - process it [12:13:47]req_shift_opened [12:13:47]FM_GetShiftState [12:13:47]SAM_PROTO_GetShiftState [12:13:47]wFMCommunicate request_size=4 [12:13:47]MH_SAM_APDU [12:13:47]CAPDU: 80 13 01 00 [12:13:47]Write to MH i2c: E2 08 00 B0 17 80 13 01 00 00 00 00 00 44 [12:13:47]Write i2c OK [12:13:47]MH_I2C_Read... [12:13:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:47]Read from MH i2c: E2 [12:13:47]MH_I2C_Read... [12:13:47]Read from MH i2c: E2 0E 00 [12:13:47]MH_I2C_Read... [12:13:47]Read from MH i2c: E2 0E 00 B0 17 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 C4 [12:13:47]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [12:13:47]wFMCommunicate OK [12:13:47]SAM_PROTO_GetShiftState done [12:13:47]FM_GetShiftState done [12:13:47]req_shift_opened done [12:13:47]requested_item shift.open_date is exist - process it [12:13:47]req_shift_open_date [12:13:47]req_shift_open_date done [12:13:47]produce_requested_data done [12:13:47]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164934,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [12:13:47]process_action_free close_receipt [12:13:47]json_value_free [12:13:47]json_value_free done [12:13:47]process_json_proto returns [12:13:47]Send response to host [12:13:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164934,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [12:13:47]free response buf [12:13:47]execute_script done [12:13:47]execute_script returns [12:13:47]free content buf [12:13:47]Sock 7.Close socket [12:13:47]Sock 7.Thread stoped [12:13:51]OFD Sender: No OFD packet to send [12:13:56]OFD Sender: No OFD packet to send [12:14:01]OFD Sender: No OFD packet to send [12:14:06]OFD Sender: No OFD packet to send [12:14:11]OFD Sender: No OFD packet to send [12:14:16]OFD Sender: No OFD packet to send [12:14:21]OFD Sender: No OFD packet to send [12:14:26]OFD Sender: No OFD packet to send [12:14:31]OFD Sender: No OFD packet to send [12:14:36]OFD Sender: No OFD packet to send [12:14:41]OFD Sender: No OFD packet to send [12:14:46]OFD Sender: No OFD packet to send [12:14:51]OFD Sender: No OFD packet to send [12:14:56]OFD Sender: No OFD packet to send [12:15:01]OFD Sender: No OFD packet to send [12:15:01]accept exits with 9 [12:15:01]New connection [12:15:01]New thread 3067616612 created [12:15:01]Thread 3067473252 joined [12:15:01]Waiting for new connection... [12:15:01] Sock 9.Parse request [12:15:01]Sock 9.Check first char [12:15:01]Sock 9.First char is OK [12:15:01]request: POST /json_proto HTTP/1.0 [12:15:01]Method: POST [12:15:01]URL: /json_proto [12:15:01]Method is POST - this is cgi request [12:15:01]url: /json_proto [12:15:01]query_string will be loaded in cgi processing [12:15:01]execute_cgi json_proto POST (null) [12:15:01]execute_cgi path=json_proto method=POST [12:15:01]POST find Content-Length [12:15:01]Host: 172.17.56.4:8080 [12:15:01]Content-Length: 677 [12:15:01]Content-Type: application/json [12:15:01] [12:15:01]POST finish read [12:15:01]Found Content-Length = 677 [12:15:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459031", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:01]execute_script... [12:15: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)459031", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:01]POST & json_proto [12:15:01]process_json_proto [12:15:01]json parsed OK: [12:15:01]protocol is kg_v1.0 [12:15:01]action value=close_receipt [12:15:01]process_action close_receipt [12:15:01]cmd_close_receipt [12:15:01]MH_GetDate [12:15:01]Write to MH i2c: F0 00 00 B1 17 B7 [12:15:01]Write i2c OK [12:15:01]MH_I2C_Read... [12:15:01]Read from MH i2c: F0 [12:15:01]MH_I2C_Read... [12:15:01]Read from MH i2c: F0 09 00 [12:15:01]MH_I2C_Read... [12:15:01]Read from MH i2c: F0 09 00 B1 17 00 47 C1 93 66 C9 DC B2 64 7C [12:15:01]GetLastDocTimeStamp 1720959224 [12:15:01]current date 1720959303 [12:15:01]FM_GetShiftState [12:15:01]SAM_PROTO_GetShiftState [12:15:01]wFMCommunicate request_size=4 [12:15:01]MH_SAM_APDU [12:15:01]CAPDU: 80 13 01 00 [12:15:01]Write to MH i2c: E2 08 00 B2 17 80 13 01 00 00 00 00 00 46 [12:15:01]Write i2c OK [12:15:01]MH_I2C_Read... [12:15:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:02]Read from MH i2c: E2 [12:15:02]MH_I2C_Read... [12:15:02]Read from MH i2c: E2 0E 00 [12:15:02]MH_I2C_Read... [12:15:02]Read from MH i2c: E2 0E 00 B2 17 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 C6 [12:15:02]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [12:15:02]wFMCommunicate OK [12:15:02]SAM_PROTO_GetShiftState done [12:15:02]FM_GetShiftState done [12:15:02]opened in 1720917342 [12:15:02]opened+sec_in_day 1721003742 [12:15:02]quantity*price = 50008 [12:15:02]sum+1 = 50009 [12:15:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 133 14.07.2024 12:15 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164935 ФПД: 4340760561330 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T121503&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164935&fm=4340760561330&tin=02508201610067®Number=0000000000090829&sum=50000 [12:15:03]StoreToDocumentArchive [12:15:03]shift 447 fd 164935 [12:15:03]save to /storage/0447/doc_00164935 [12:15:03]save last doc name /storage/0447/doc_00164935 to /storage/kkm_last_doc_name [12:15:03]save OK [12:15:03]Clear old archive folders... [12:15:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:15:03]tlvbuf is 007BBDA0 [12:15:03]SAM_PROTO_ClearQueue [12:15:03]wFMCommunicate request_size=4 [12:15:03]MH_SAM_APDU [12:15:03]CAPDU: 80 09 00 00 [12:15:03]Write to MH i2c: E2 08 00 BF 17 80 09 00 00 00 00 00 00 48 [12:15:03]Write i2c OK [12:15:03]MH_I2C_Read... [12:15:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:15:03]Read from MH i2c: E2 [12:15:03]MH_I2C_Read... [12:15:03]Read from MH i2c: E2 03 00 [12:15:03]MH_I2C_Read... [12:15:03]Read from MH i2c: E2 03 00 BF 17 00 90 00 4A [12:15:03]RAPDU: 90 00 [12:15:03]wFMCommunicate OK [12:15:03]SAM_PROTO_ClearQueue done [12:15:03]KKMCreateOFDPacket [12:15:03]OFDProtocolAddRootSTLVToBuf [12:15:03]FM_MakeSignedData [12:15:03]FM_MakeSignedData [12:15:03]SAM_PROTO_SignData [12:15:03]wFMCommunicate request_size=4 [12:15:03]MH_SAM_APDU [12:15:03]CAPDU: 80 0D 01 02 [12:15:03]Write to MH i2c: E2 08 00 C0 17 80 0D 01 02 00 00 00 00 50 [12:15:03]Write i2c OK [12:15:03]MH_I2C_Read... [12:15:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:15:03]Read from MH i2c: E2 [12:15:03]MH_I2C_Read... [12:15:03]Read from MH i2c: E2 03 00 [12:15:03]MH_I2C_Read... [12:15:03]Read from MH i2c: E2 03 00 C0 17 00 90 00 4B [12:15:03]RAPDU: 90 00 [12:15:03]wFMCommunicate OK [12:15:03]wFMCommunicate request_size=255 [12:15:03]MH_SAM_APDU [12:15:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 85 00 00 00 F4 03 04 00 47 C1 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 47 84 02 00 35 04 06 00 03 [12:15:03]Write to MH i2c: E2 02 01 C1 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 85 00 00 00 F4 03 04 00 47 C1 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 47 84 02 00 35 04 06 00 03 00 00 DF [12:15:03]Write i2c OK [12:15:03]MH_I2C_Read... [12:15:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:03]Read from MH i2c: E2 [12:15:03]MH_I2C_Read... [12:15:03]Read from MH i2c: E2 03 00 [12:15:03]MH_I2C_Read... [12:15:03]Read from MH i2c: E2 03 00 C1 17 00 90 00 4C [12:15:03]RAPDU: 90 00 [12:15:03]wFMCommunicate OK [12:15:03]wFMCommunicate request_size=10 [12:15:03]MH_SAM_APDU [12:15:03]CAPDU: 80 0D 02 02 05 F2 A9 7D C6 B2 [12:15:03]Write to MH i2c: E2 0D 00 C2 17 80 0D 02 02 05 00 F2 A9 7D C6 B2 00 00 ED [12:15:03]Write i2c OK [12:15:03]MH_I2C_Read... [12:15:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:03]Read from MH i2c: E2 [12:15:03]MH_I2C_Read... [12:15:03]Read from MH i2c: E2 03 00 [12:15:03]MH_I2C_Read... [12:15:03]Read from MH i2c: E2 03 00 C2 17 00 90 00 4D [12:15:03]RAPDU: 90 00 [12:15:03]wFMCommunicate OK [12:15:03]wFMCommunicate request_size=4 [12:15:03]MH_SAM_APDU [12:15:03]CAPDU: 80 0D 03 02 [12:15:03]Write to MH i2c: E2 08 00 C3 17 80 0D 03 02 00 00 00 00 55 [12:15:03]Write i2c OK [12:15:03]MH_I2C_Read... [12:15:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:15:03]Read from MH i2c: E2 [12:15:03]MH_I2C_Read... [12:15:03]Read from MH i2c: E2 0B 00 [12:15:03]MH_I2C_Read... [12:15:03]Read from MH i2c: E2 0B 00 C3 17 00 9B 6A 6D B6 65 79 F8 77 90 00 CB [12:15:03]RAPDU: 9B 6A 6D B6 65 79 F8 77 90 00 [12:15:03]wFMCommunicate OK [12:15:03]SAM_PROTO_SignData done [12:15:03]FM_MakeSignedData done [12:15:03]CreateOFDProtocolMessage [12:15:03]wFMCommunicate request_size=4 [12:15:03]MH_SAM_APDU [12:15:03]CAPDU: 80 11 00 00 [12:15:03]Write to MH i2c: E2 08 00 C4 17 80 11 00 00 00 00 00 00 55 [12:15:03]Write i2c OK [12:15:03]MH_I2C_Read... [12:15:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:03]Read from MH i2c: E2 [12:15:03]MH_I2C_Read... [12:15:03]Read from MH i2c: E2 17 00 [12:15:03]MH_I2C_Read... [12:15:03]Read from MH i2c: E2 17 00 C4 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 AB [12:15:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:15:03]wFMCommunicate OK [12:15:03]CreateOFDProtocolMessage done [12:15:03]OFDSenderStorePacket 164935 [12:15:03]StoreOFDPacket docnum=164935 [12:15:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 DE 5C 07 01 06 B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 85 00 00 00 F4 03 04 00 47 C1 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 47 84 02 00 35 04 06 00 03 F2 A9 7D C6 B2 9B 6A 6D B6 65 79 F8 77 [12:15:03]CheckFolder [12:15:03]dirname=/storage/ofd_packets [12:15:03]CheckFolder done [12:15:03]ProducePacketName [12:15:03]name=ofd_packets/00164935 [12:15:03]NVStorageSaveData ofd_packets/00164935 [12:15:03]File name is /storage/ofd_packets/00164935 [12:15:03]Write 301 bytes [12:15:03]NVStorageSaveData done [12:15:03]OFDSenderStorePacket done [12:15:03]KKMCreateOFDPacket done [12:15:03]NVStorageSaveData kkm_last_timestamp [12:15:03]File name is /storage/kkm_last_timestamp [12:15:03]Write 4 bytes [12:15:03]NVStorageSaveData done [12:15:03]ExternCall_PrintAddStr [12:15:03]wPrintStart [12:15:03]Write to MH i2c: 01 00 00 C5 17 DC [12:15:03]Write i2c OK [12:15:03]MH_I2C_Read... [12:15:03]Read from MH i2c: 01 [12:15:03]MH_I2C_Read... [12:15:03]Read from MH i2c: 01 07 00 [12:15:03]MH_I2C_Read... [12:15:03]Read from MH i2c: 01 07 00 C5 17 00 00 00 00 00 FF 0F F1 [12:15:03]RasterBufferAndPrint [12:15:03]line Счет N : (1)459031 [12:15:03]line ИНН: 02508201610067 [12:15:03]line Контрольно-Кассовый Чек [12:15:03]line ПРОДАЖА [12:15:03]line ТРК (МРК, ГНК) : 12 [12:15:03]line Товар: 2710124130 [12:15:03]line Аи-92-К-5 [12:15:03]line 7.600 * 65.80 [12:15:03]line = 500.08 [12:15:03]line НДС 12% НСП 1% [12:15:03]line > о реализуемом товаре [12:15:03]line ОКРУГЛЕНИЕ: -0.08 [12:15:03]line ИТОГО: 500.00 [12:15:03]line Внесено: 500.00 [12:15:03]line СДАЧА: 0.00 [12:15:03]line НСП 1% : 4.42 [12:15:03]line НДС 12% : 53.11 [12:15:03]line Наличными: 500.00 [12:15:03]line Безнал.: 0.00 [12:15:03]line Место: АЗС № 72 "Партнер Нефть" [12:15:03]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:15:03]line СНО: Общий режим [12:15:03]line Чек 133 14.07.2024 12:15 [12:15:03]line Смена: 447 ФФД: 1.0 [12:15:03]line ЗНМ: 0300000160 [12:15:03]line РНМ: 0000000000090829 [12:15:03]line Версия ККМ: 001 [12:15:03]line ФМ: 0000000000874718 [12:15:03]line ФД: 164935 [12:15:03]line ФПД: 4340760561330 [12:15:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T121503&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164935&fm=4340760561330&tin=02508201610067®Number=0000000000090829&sum=50000 [12:15:04]OFD Sender: Processing packet 164935 [packets to send 104, broken 103] [12:15:04]ProducePacketName [12:15:04]name=ofd_packets/00164935 [12:15:04]OFD Sender: To server: pG, [12:15:04]CommunicateWithHost lk.salyk.kg:30040 [12:15:04]ConnectInit lk.salyk.kg [12:15:04]written 0, free lines is 4095 [12:15:04]Connected sock=7 [12:15:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 DE 5C 07 01 06 B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 85 00 00 00 F4 03 04 00 47 C1 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 47 84 02 00 35 04 06 00 03 F2 A9 7D C6 B2 9B 6A 6D B6 65 79 F8 77 [12:15:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 39 2E 47 00 B4 01 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 47 84 02 00 F4 03 04 00 D4 67 93 66 B6 04 01 00 00 22 B4 09 66 B4 D4 7A 14 [12:15:04]CommunicateWithHost err = 0 [12:15:04]CheckOFDResponse [12:15:04]1017 (14) - 77093643461234 [12:15:04]1041 (16) - 0000000000874718 [12:15:04]1040 (4) - 164935 [12:15:04]1012 (4) - 14.07.2024 05:53 [12:15:04]1206 (1) - 0 [12:15:04]OFD Sender: Remove packet 164935 [12:15:04]ProducePacketName [12:15:04]name=ofd_packets/00164935 [12:15:04]NVStorageDeleteData [12:15:04]Write to MH i2c: 01 00 00 EF 17 06 [12:15:04]Write i2c OK [12:15:04]MH_I2C_Read... [12:15:04]Read from MH i2c: 01 [12:15:04]MH_I2C_Read... [12:15:04]Read from MH i2c: 01 07 00 [12:15:04]MH_I2C_Read... [12:15:04]Read from MH i2c: 01 07 00 EF 17 00 00 00 00 00 EF 0C 08 [12:15:04]RasterBufferAndPrint [12:15:04]line [12:15:04]line [12:15:04]line [12:15:04]line [12:15:04]line [12:15:04]written 0, free lines is 3317 [12:15:04]MH_Cut [12:15:04]Write to MH i2c: D1 01 00 F6 17 01 DF [12:15:04]Write i2c OK [12:15:04]MH_I2C_Read... [12:15:04]Read from MH i2c: D1 [12:15:04]MH_I2C_Read... [12:15:04]Read from MH i2c: D1 01 00 [12:15:04]MH_I2C_Read... [12:15:04]Read from MH i2c: D1 01 00 F6 17 00 DE [12:15:04]Write to MH i2c: 01 00 00 F7 17 0E [12:15:04]Write i2c OK [12:15:04]MH_I2C_Read... [12:15:04]OFD Sender: No OFD packet to send [12:15:05]*** Cut start [12:15:05]*** Partial cut [12:15:05]*** CUTSNS_PIN = 1 [12:15:05]*** CUTSNS_PIN = 0 [12:15:05]*** Brake cut motor [12:15:05]Read from MH i2c: 01 [12:15:05]MH_I2C_Read... [12:15:05]*** Stop cut motor [12:15:05]*** Cut end [12:15:05]Read from MH i2c: 01 07 00 [12:15:05]MH_I2C_Read... [12:15:05]Read from MH i2c: 01 07 00 F7 17 00 00 00 00 00 FF 0F 23 [12:15:05]process_action close_receipt done [12:15:05]requested_data is exist [12:15:05]produce_requested_data [12:15:05]requested_item fm.sn is exist - process it [12:15:05]wFMCommunicate request_size=4 [12:15:05]MH_SAM_APDU [12:15:05]CAPDU: 80 11 00 00 [12:15:05]Write to MH i2c: E2 08 00 F8 17 80 11 00 00 00 00 00 00 89 [12:15:05]Write i2c OK [12:15:05]MH_I2C_Read... [12:15:05]Read from MH i2c: E2 [12:15:05]MH_I2C_Read... [12:15:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:05]Read from MH i2c: E2 17 00 [12:15:05]MH_I2C_Read... [12:15:05]Read from MH i2c: E2 17 00 F8 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DF [12:15:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:15:05]wFMCommunicate OK [12:15:05]requested_item fd.num is exist - process it [12:15:05]SAM_PROTO_GetFieldsCounters [12:15:05]wFMCommunicate request_size=4 [12:15:05]MH_SAM_APDU [12:15:05]CAPDU: 80 13 00 00 [12:15:05]Write to MH i2c: E2 08 00 F9 17 80 13 00 00 00 00 00 00 8C [12:15:05]Write i2c OK [12:15:05]MH_I2C_Read... [12:15:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:15:05]Read from MH i2c: E2 [12:15:05]MH_I2C_Read... [12:15:05]Read from MH i2c: E2 62 00 [12:15:05]MH_I2C_Read... [12:15:05]Read from MH i2c: E2 62 00 F9 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 47 84 02 00 0E 04 04 00 BF 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 CF [12:15:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 47 84 02 00 0E 04 04 00 BF 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 [12:15:05]wFMCommunicate OK [12:15:05]SAM_PROTO_GetFieldsCounters done [12:15:05]requested_item shift.num is exist - process it [12:15:05]requested_item shift.opened is exist - process it [12:15:05]req_shift_opened [12:15:05]FM_GetShiftState [12:15:05]SAM_PROTO_GetShiftState [12:15:05]wFMCommunicate request_size=4 [12:15:05]MH_SAM_APDU [12:15:05]CAPDU: 80 13 01 00 [12:15:05]Write to MH i2c: E2 08 00 FA 17 80 13 01 00 00 00 00 00 8E [12:15:05]Write i2c OK [12:15:05]MH_I2C_Read... [12:15:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:05]Read from MH i2c: E2 [12:15:05]MH_I2C_Read... [12:15:05]Read from MH i2c: E2 0E 00 [12:15:05]MH_I2C_Read... [12:15:05]Read from MH i2c: E2 0E 00 FA 17 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 0E [12:15:05]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [12:15:05]wFMCommunicate OK [12:15:05]SAM_PROTO_GetShiftState done [12:15:05]FM_GetShiftState done [12:15:05]req_shift_opened done [12:15:05]requested_item shift.open_date is exist - process it [12:15:05]req_shift_open_date [12:15:05]req_shift_open_date done [12:15:05]produce_requested_data done [12:15:05]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164935,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [12:15:05]process_action_free close_receipt [12:15:05]json_value_free [12:15:05]json_value_free done [12:15:05]process_json_proto returns [12:15:05]Send response to host [12:15:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164935,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [12:15:05]free response buf [12:15:05]execute_script done [12:15:05]execute_script returns [12:15:05]free content buf [12:15:05]Sock 9.Close socket [12:15:05]Sock 9.Thread stoped [12:15:07]accept exits with 10 [12:15:07]New connection [12:15:07]New thread 3067473252 created [12:15:07]Thread 3067616612 joined [12:15:07]Waiting for new connection... [12:15:07] Sock 10.Parse request [12:15:07]Sock 10.Check first char [12:15:07]Sock 10.First char is OK [12:15:07]request: POST /json_proto HTTP/1.0 [12:15:07]Method: POST [12:15:07]URL: /json_proto [12:15:07]Method is POST - this is cgi request [12:15:07]url: /json_proto [12:15:07]query_string will be loaded in cgi processing [12:15:07]execute_cgi json_proto POST (null) [12:15:07]execute_cgi path=json_proto method=POST [12:15:07]POST find Content-Length [12:15:07]Host: 172.17.56.4:8080 [12:15:07]Content-Length: 1194 [12:15:07]Content-Type: application/json [12:15:07] [12:15:07]POST finish read [12:15:07]Found Content-Length = 1194 [12:15:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 72\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041D\u0443\u0440\u043C\u0430\u0442\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)459032\u000A14.07.2024 11:40\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 65.80\u000A\u0418\u0422\u041E\u0413: 658.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A32594\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:15:07]execute_script... [12:15:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 72\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041D\u0443\u0440\u043C\u0430\u0442\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)459032\u000A14.07.2024 11:40\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 65.80\u000A\u0418\u0422\u041E\u0413: 658.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A32594\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:15:07]POST & json_proto [12:15:07]process_json_proto [12:15:07]json parsed OK: [12:15:07]protocol is kg_v1.0 [12:15:07]action value=print_text [12:15:07]process_action print_text [12:15:07]cmd_print_text [12:15:07]ExternCall_PrintAddStr [12:15:07]wPrintStart [12:15:07]Write to MH i2c: 01 00 00 FB 17 12 [12:15:07]Write i2c OK [12:15:07]MH_I2C_Read... [12:15:07]Read from MH i2c: 01 [12:15:07]MH_I2C_Read... [12:15:07]Read from MH i2c: 01 07 00 [12:15:07]MH_I2C_Read... [12:15:07]Read from MH i2c: 01 07 00 FB 17 00 00 00 00 00 FF 0F 27 [12:15:07]RasterBufferAndPrint [12:15:07]line *****ТОВАРНЫЙ ЧЕК***** [12:15:07]line АЗС 72 [12:15:07]line Партнер нефть [12:15:07]line 02508201610067 [12:15:07]line Кассир : Нурматов Н. [12:15:07]line Счет N : (1)459032 [12:15:07]line 14.07.2024 11:40 [12:15:07]line ПРОДАЖА [12:15:07]line ТРК (МРК, ГНК): 22 [12:15:07]line Вид ГСМ : 2710124130 [12:15:07]line Аи-92-К-5 [12:15:07]line 10.000 x 65.80 [12:15:07]line ИТОГ: 658.00 [12:15:07]line Тип оплаты: Талоны: Топливная Карта [12:15:07]line 32594 [12:15:07]line ______________________ [12:15:07]line (подпись) [12:15:07]written 0, free lines is 4095 [12:15:07]Write to MH i2c: 01 00 00 0F 18 27 [12:15:07]Write i2c OK [12:15:07]MH_I2C_Read... [12:15:07]Read from MH i2c: 01 [12:15:07]MH_I2C_Read... [12:15:07]Read from MH i2c: 01 07 00 [12:15:07]MH_I2C_Read... [12:15:07]Read from MH i2c: 01 07 00 0F 18 00 00 00 00 00 0F 0E 4B [12:15:07]RasterBufferAndPrint [12:15:07]line [12:15:07]line [12:15:07]line [12:15:07]line [12:15:07]line [12:15:07]written 0, free lines is 3601 [12:15:07]MH_Cut [12:15:07]Write to MH i2c: D1 01 00 16 18 01 00 [12:15:07]Write i2c OK [12:15:07]MH_I2C_Read... [12:15:07]Read from MH i2c: D1 [12:15:07]MH_I2C_Read... [12:15:07]Read from MH i2c: D1 01 00 [12:15:07]MH_I2C_Read... [12:15:07]Read from MH i2c: D1 01 00 16 18 00 FF [12:15:07]Write to MH i2c: 01 00 00 17 18 2F [12:15:07]Write i2c OK [12:15:07]MH_I2C_Read... [12:15:08]*** Cut start [12:15:08]*** Partial cut [12:15:08]*** CUTSNS_PIN = 1 [12:15:08]*** CUTSNS_PIN = 0 [12:15:08]*** Brake cut motor [12:15:08]Read from MH i2c: 01 [12:15:08]MH_I2C_Read... [12:15:08]*** Stop cut motor [12:15:08]*** Cut end [12:15:08]Read from MH i2c: 01 07 00 [12:15:08]MH_I2C_Read... [12:15:08]Read from MH i2c: 01 07 00 17 18 00 00 00 00 00 FF 0F 44 [12:15:08]process_action print_text done [12:15:08]requested_data is exist [12:15:08]produce_requested_data [12:15:08]requested_item fm.sn is exist - process it [12:15:08]wFMCommunicate request_size=4 [12:15:08]MH_SAM_APDU [12:15:08]CAPDU: 80 11 00 00 [12:15:08]Write to MH i2c: E2 08 00 18 18 80 11 00 00 00 00 00 00 AA [12:15:08]Write i2c OK [12:15:08]MH_I2C_Read... [12:15:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:09]Read from MH i2c: E2 [12:15:09]MH_I2C_Read... [12:15:09]Read from MH i2c: E2 17 00 [12:15:09]MH_I2C_Read... [12:15:09]Read from MH i2c: E2 17 00 18 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 00 [12:15:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:15:09]wFMCommunicate OK [12:15:09]requested_item fd.num is exist - process it [12:15:09]SAM_PROTO_GetFieldsCounters [12:15:09]wFMCommunicate request_size=4 [12:15:09]MH_SAM_APDU [12:15:09]CAPDU: 80 13 00 00 [12:15:09]Write to MH i2c: E2 08 00 19 18 80 13 00 00 00 00 00 00 AD [12:15:09]Write i2c OK [12:15:09]MH_I2C_Read... [12:15:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:15:09]Read from MH i2c: E2 [12:15:09]MH_I2C_Read... [12:15:09]Read from MH i2c: E2 62 00 [12:15:09]MH_I2C_Read... [12:15:09]Read from MH i2c: E2 62 00 19 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 47 84 02 00 0E 04 04 00 BF 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 F0 [12:15:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 47 84 02 00 0E 04 04 00 BF 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 [12:15:09]wFMCommunicate OK [12:15:09]SAM_PROTO_GetFieldsCounters done [12:15:09]requested_item shift.num is exist - process it [12:15:09]requested_item shift.opened is exist - process it [12:15:09]req_shift_opened [12:15:09]FM_GetShiftState [12:15:09]SAM_PROTO_GetShiftState [12:15:09]wFMCommunicate request_size=4 [12:15:09]MH_SAM_APDU [12:15:09]CAPDU: 80 13 01 00 [12:15:09]Write to MH i2c: E2 08 00 1A 18 80 13 01 00 00 00 00 00 AF [12:15:09]Write i2c OK [12:15:09]MH_I2C_Read... [12:15:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:09]Read from MH i2c: E2 [12:15:09]MH_I2C_Read... [12:15:09]Read from MH i2c: E2 0E 00 [12:15:09]MH_I2C_Read... [12:15:09]Read from MH i2c: E2 0E 00 1A 18 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 2F [12:15:09]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [12:15:09]wFMCommunicate OK [12:15:09]SAM_PROTO_GetShiftState done [12:15:09]FM_GetShiftState done [12:15:09]req_shift_opened done [12:15:09]requested_item shift.open_date is exist - process it [12:15:09]req_shift_open_date [12:15:09]req_shift_open_date done [12:15:09]produce_requested_data done [12:15:09]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164935,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [12:15:09]process_action_free print_text [12:15:09]json_value_free [12:15:09]json_value_free done [12:15:09]process_json_proto returns [12:15:09]Send response to host [12:15:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164935,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [12:15:09]free response buf [12:15:09]execute_script done [12:15:09]execute_script returns [12:15:09]free content buf [12:15:09]Sock 10.Close socket [12:15:09]Sock 10.Thread stoped [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:29]OFD Sender: No OFD packet to send [12:15:34]OFD Sender: No OFD packet to send [12:15:39]OFD Sender: No OFD packet to send [12:15:44]OFD Sender: No OFD packet to send [12:15:49]OFD Sender: No OFD packet to send [12:15:54]OFD Sender: No OFD packet to send [12:15:59]OFD Sender: No OFD packet to send [12:16:04]OFD Sender: No OFD packet to send [12:16:09]OFD Sender: No OFD packet to send [12:16:14]OFD Sender: No OFD packet to send [12:16:19]OFD Sender: No OFD packet to send [12:16:24]OFD Sender: No OFD packet to send [12:16:29]OFD Sender: No OFD packet to send [12:16:34]OFD Sender: No OFD packet to send [12:16:39]OFD Sender: No OFD packet to send [12:16:44]OFD Sender: No OFD packet to send [12:16:49]OFD Sender: No OFD packet to send [12:16:54]OFD Sender: No OFD packet to send [12:16:59]OFD Sender: No OFD packet to send [12:17:04]OFD Sender: No OFD packet to send [12:17:09]OFD Sender: No OFD packet to send [12:17:14]OFD Sender: No OFD packet to send [12:17:19]OFD Sender: No OFD packet to send [12:17:24]OFD Sender: No OFD packet to send [12:17:29]OFD Sender: No OFD packet to send [12:17:34]OFD Sender: No OFD packet to send [12:17:39]OFD Sender: No OFD packet to send [12:17:43]accept exits with 7 [12:17:43]New connection [12:17:43]New thread 3067616612 created [12:17:43]Thread 3067473252 joined [12:17:43]Waiting for new connection... [12:17:43] Sock 7.Parse request [12:17:43]Sock 7.Check first char [12:17:43]Sock 7.First char is OK [12:17:43]request: POST /json_proto HTTP/1.0 [12:17:43]Method: POST [12:17:43]URL: /json_proto [12:17:43]Method is POST - this is cgi request [12:17:43]url: /json_proto [12:17:43]query_string will be loaded in cgi processing [12:17:43]execute_cgi json_proto POST (null) [12:17:43]execute_cgi path=json_proto method=POST [12:17:43]POST find Content-Length [12:17:43]Host: 172.17.56.4:8080 [12:17:43]Content-Length: 1195 [12:17:43]Content-Type: application/json [12:17:43] [12:17:43]POST finish read [12:17:43]Found Content-Length = 1195 [12:17:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 72\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041D\u0443\u0440\u043C\u0430\u0442\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)459033\u000A14.07.2024 11:43\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 65.80\u000A\u0418\u0422\u041E\u0413: 1316.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A65701\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:43]execute_script... [12:17:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 72\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041D\u0443\u0440\u043C\u0430\u0442\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)459033\u000A14.07.2024 11:43\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 65.80\u000A\u0418\u0422\u041E\u0413: 1316.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A65701\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:43]POST & json_proto [12:17:43]process_json_proto [12:17:43]json parsed OK: [12:17:43]protocol is kg_v1.0 [12:17:43]action value=print_text [12:17:43]process_action print_text [12:17:43]cmd_print_text [12:17:43]ExternCall_PrintAddStr [12:17:43]wPrintStart [12:17:43]Write to MH i2c: 01 00 00 1B 18 33 [12:17:43]Write i2c OK [12:17:43]MH_I2C_Read... [12:17:43]Read from MH i2c: 01 [12:17:43]MH_I2C_Read... [12:17:43]Read from MH i2c: 01 07 00 [12:17:43]MH_I2C_Read... [12:17:43]Read from MH i2c: 01 07 00 1B 18 00 00 00 00 00 FF 0F 48 [12:17:43]RasterBufferAndPrint [12:17:43]line *****ТОВАРНЫЙ ЧЕК***** [12:17:43]line АЗС 72 [12:17:43]line Партнер нефть [12:17:43]line 02508201610067 [12:17:43]line Кассир : Нурматов Н. [12:17:43]line Счет N : (1)459033 [12:17:43]line 14.07.2024 11:43 [12:17:43]line ПРОДАЖА [12:17:43]line ТРК (МРК, ГНК): 12 [12:17:43]line Вид ГСМ : 2710124130 [12:17:43]line Аи-92-К-5 [12:17:43]line 20.000 x 65.80 [12:17:43]line ИТОГ: 1316.00 [12:17:43]line Тип оплаты: Талоны: Топливная Карта [12:17:43]line 65701 [12:17:43]line ______________________ [12:17:43]line (подпись) [12:17:43]written 0, free lines is 4095 [12:17:43]Write to MH i2c: 01 00 00 2F 18 47 [12:17:43]Write i2c OK [12:17:43]MH_I2C_Read... [12:17:43]Read from MH i2c: 01 [12:17:43]MH_I2C_Read... [12:17:43]Read from MH i2c: 01 07 00 [12:17:43]MH_I2C_Read... [12:17:43]Read from MH i2c: 01 07 00 2F 18 00 00 00 00 00 0E 0E 6A [12:17:43]RasterBufferAndPrint [12:17:43]line [12:17:43]line [12:17:43]line [12:17:43]line [12:17:43]line [12:17:43]written 0, free lines is 3600 [12:17:43]MH_Cut [12:17:43]Write to MH i2c: D1 01 00 36 18 01 20 [12:17:43]Write i2c OK [12:17:43]MH_I2C_Read... [12:17:43]Read from MH i2c: D1 [12:17:43]MH_I2C_Read... [12:17:43]Read from MH i2c: D1 01 00 [12:17:43]MH_I2C_Read... [12:17:43]Read from MH i2c: D1 01 00 36 18 00 1F [12:17:43]Write to MH i2c: 01 00 00 37 18 4F [12:17:43]Write i2c OK [12:17:43]MH_I2C_Read... [12:17:44]*** Cut start [12:17:44]*** Partial cut [12:17:44]*** CUTSNS_PIN = 1 [12:17:44]*** CUTSNS_PIN = 0 [12:17:44]*** Brake cut motor [12:17:44]Read from MH i2c: 01 [12:17:44]MH_I2C_Read... [12:17:44]Read from MH i2c: 01 07 00 [12:17:44]MH_I2C_Read... [12:17:44]*** Stop cut motor [12:17:44]*** Cut end [12:17:44]Read from MH i2c: 01 07 00 37 18 00 00 00 00 00 FF 0F 64 [12:17:44]process_action print_text done [12:17:44]requested_data is exist [12:17:44]produce_requested_data [12:17:44]requested_item fm.sn is exist - process it [12:17:44]wFMCommunicate request_size=4 [12:17:44]MH_SAM_APDU [12:17:44]CAPDU: 80 11 00 00 [12:17:44]Write to MH i2c: E2 08 00 38 18 80 11 00 00 00 00 00 00 CA [12:17:44]Write i2c OK [12:17:44]MH_I2C_Read... [12:17:44]OFD Sender: No OFD packet to send [12:17:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:45]Read from MH i2c: E2 [12:17:45]MH_I2C_Read... [12:17:45]Read from MH i2c: E2 17 00 [12:17:45]MH_I2C_Read... [12:17:45]Read from MH i2c: E2 17 00 38 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 20 [12:17:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:17:45]wFMCommunicate OK [12:17:45]requested_item fd.num is exist - process it [12:17:45]SAM_PROTO_GetFieldsCounters [12:17:45]wFMCommunicate request_size=4 [12:17:45]MH_SAM_APDU [12:17:45]CAPDU: 80 13 00 00 [12:17:45]Write to MH i2c: E2 08 00 39 18 80 13 00 00 00 00 00 00 CD [12:17:45]Write i2c OK [12:17:45]MH_I2C_Read... [12:17:45]Read from MH i2c: E2 [12:17:45]MH_I2C_Read... [12:17:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:17:45]Read from MH i2c: E2 62 00 [12:17:45]MH_I2C_Read... [12:17:45]Read from MH i2c: E2 62 00 39 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 47 84 02 00 0E 04 04 00 BF 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 [12:17:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 47 84 02 00 0E 04 04 00 BF 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 [12:17:45]wFMCommunicate OK [12:17:45]SAM_PROTO_GetFieldsCounters done [12:17:45]requested_item shift.num is exist - process it [12:17:45]requested_item shift.opened is exist - process it [12:17:45]req_shift_opened [12:17:45]FM_GetShiftState [12:17:45]SAM_PROTO_GetShiftState [12:17:45]wFMCommunicate request_size=4 [12:17:45]MH_SAM_APDU [12:17:45]CAPDU: 80 13 01 00 [12:17:45]Write to MH i2c: E2 08 00 3A 18 80 13 01 00 00 00 00 00 CF [12:17:45]Write i2c OK [12:17:45]MH_I2C_Read... [12:17:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:45]Read from MH i2c: E2 [12:17:45]MH_I2C_Read... [12:17:45]Read from MH i2c: E2 0E 00 [12:17:45]MH_I2C_Read... [12:17:45]Read from MH i2c: E2 0E 00 3A 18 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 4F [12:17:45]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [12:17:45]wFMCommunicate OK [12:17:45]SAM_PROTO_GetShiftState done [12:17:45]FM_GetShiftState done [12:17:45]req_shift_opened done [12:17:45]requested_item shift.open_date is exist - process it [12:17:45]req_shift_open_date [12:17:45]req_shift_open_date done [12:17:45]produce_requested_data done [12:17:45]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164935,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [12:17:45]process_action_free print_text [12:17:45]json_value_free [12:17:45]json_value_free done [12:17:45]process_json_proto returns [12:17:45]Send response to host [12:17:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164935,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [12:17:45]free response buf [12:17:45]execute_script done [12:17:45]execute_script returns [12:17:45]free content buf [12:17:45]Sock 7.Close socket [12:17:45]Sock 7.Thread stoped [12:17:49]OFD Sender: No OFD packet to send [12:17:54]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:00]OFD Sender: No OFD packet to send [12:19:05]OFD Sender: No OFD packet to send [12:19:10]OFD Sender: No OFD packet to send [12:19:15]OFD Sender: No OFD packet to send [12:19:20]OFD Sender: No OFD packet to send [12:19:25]OFD Sender: No OFD packet to send [12:19:26]accept exits with 9 [12:19:26]New connection [12:19:26]New thread 3067473252 created [12:19:26]Thread 3067616612 joined [12:19:26]Waiting for new connection... [12:19:26] Sock 9.Parse request [12:19:26]Sock 9.Check first char [12:19:26]Sock 9.First char is OK [12:19:26]request: POST /json_proto HTTP/1.0 [12:19:26]Method: POST [12:19:26]URL: /json_proto [12:19:26]Method is POST - this is cgi request [12:19:26]url: /json_proto [12:19:26]query_string will be loaded in cgi processing [12:19:26]execute_cgi json_proto POST (null) [12:19:26]execute_cgi path=json_proto method=POST [12:19:26]POST find Content-Length [12:19:26]Host: 172.17.56.4:8080 [12:19:26]Content-Length: 790 [12:19:26]Content-Type: application/json [12:19:26] [12:19:26]POST finish read [12:19:26]Found Content-Length = 790 [12:19:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459034", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 7.670, "sum" : 500.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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:26]execute_script... [12:19:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459034", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 7.670, "sum" : 500.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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:26]POST & json_proto [12:19:26]process_json_proto [12:19:26]json parsed OK: [12:19:26]protocol is kg_v1.0 [12:19:26]action value=close_receipt [12:19:26]process_action close_receipt [12:19:26]cmd_close_receipt [12:19:26]MH_GetDate [12:19:26]Write to MH i2c: F0 00 00 3B 18 42 [12:19:26]Write i2c OK [12:19:26]MH_I2C_Read... [12:19:26]Read from MH i2c: F0 [12:19:26]MH_I2C_Read... [12:19:26]Read from MH i2c: F0 09 00 [12:19:26]MH_I2C_Read... [12:19:26]Read from MH i2c: F0 09 00 3B 18 00 50 C2 93 66 C9 DC B2 64 11 [12:19:26]GetLastDocTimeStamp 1720959303 [12:19:26]current date 1720959568 [12:19:26]FM_GetShiftState [12:19:26]SAM_PROTO_GetShiftState [12:19:26]wFMCommunicate request_size=4 [12:19:26]MH_SAM_APDU [12:19:26]CAPDU: 80 13 01 00 [12:19:26]Write to MH i2c: E2 08 00 3C 18 80 13 01 00 00 00 00 00 D1 [12:19:26]Write i2c OK [12:19:26]MH_I2C_Read... [12:19:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:27]Read from MH i2c: E2 [12:19:27]MH_I2C_Read... [12:19:27]Read from MH i2c: E2 0E 00 [12:19:27]MH_I2C_Read... [12:19:27]Read from MH i2c: E2 0E 00 3C 18 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 51 [12:19:27]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [12:19:27]wFMCommunicate OK [12:19:27]SAM_PROTO_GetShiftState done [12:19:27]FM_GetShiftState done [12:19:27]opened in 1720917342 [12:19:27]opened+sec_in_day 1721003742 [12:19:27]quantity*price = 50023 [12:19:27]sum+1 = 50025 [12:19:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.24 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.24 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 134 14.07.2024 12:19 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164936 ФПД: 142733825235041 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T121928&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164936&fm=142733825235041&tin=02508201610067®Number=0000000000090829&sum=50024 [12:19:28]StoreToDocumentArchive [12:19:28]shift 447 fd 164936 [12:19:28]save to /storage/0447/doc_00164936 [12:19:28]save last doc name /storage/0447/doc_00164936 to /storage/kkm_last_doc_name [12:19:28]save OK [12:19:28]Clear old archive folders... [12:19:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:19:28]tlvbuf is 007A9500 [12:19:28]SAM_PROTO_ClearQueue [12:19:28]wFMCommunicate request_size=4 [12:19:28]MH_SAM_APDU [12:19:28]CAPDU: 80 09 00 00 [12:19:28]Write to MH i2c: E2 08 00 49 18 80 09 00 00 00 00 00 00 D3 [12:19:28]Write i2c OK [12:19:28]MH_I2C_Read... [12:19:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:19:28]Read from MH i2c: E2 [12:19:28]MH_I2C_Read... [12:19:28]Read from MH i2c: E2 03 00 [12:19:28]MH_I2C_Read... [12:19:28]Read from MH i2c: E2 03 00 49 18 00 90 00 D5 [12:19:28]RAPDU: 90 00 [12:19:28]wFMCommunicate OK [12:19:28]SAM_PROTO_ClearQueue done [12:19:28]KKMCreateOFDPacket [12:19:28]OFDProtocolAddRootSTLVToBuf [12:19:28]FM_MakeSignedData [12:19:28]FM_MakeSignedData [12:19:28]SAM_PROTO_SignData [12:19:28]wFMCommunicate request_size=4 [12:19:28]MH_SAM_APDU [12:19:28]CAPDU: 80 0D 01 02 [12:19:28]Write to MH i2c: E2 08 00 4A 18 80 0D 01 02 00 00 00 00 DB [12:19:28]Write i2c OK [12:19:28]MH_I2C_Read... [12:19:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:19:28]Read from MH i2c: E2 [12:19:28]MH_I2C_Read... [12:19:28]Read from MH i2c: E2 03 00 [12:19:28]MH_I2C_Read... [12:19:28]Read from MH i2c: E2 03 00 4A 18 00 90 00 D6 [12:19:28]RAPDU: 90 00 [12:19:28]wFMCommunicate OK [12:19:28]wFMCommunicate request_size=255 [12:19:28]MH_SAM_APDU [12:19:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 50 C2 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 48 84 02 00 35 04 06 00 81 [12:19:28]Write to MH i2c: E2 02 01 4B 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 50 C2 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 48 84 02 00 35 04 06 00 81 00 00 42 [12:19:28]Write i2c OK [12:19:28]MH_I2C_Read... [12:19:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:28]Read from MH i2c: E2 [12:19:28]MH_I2C_Read... [12:19:28]Read from MH i2c: E2 03 00 [12:19:28]MH_I2C_Read... [12:19:28]Read from MH i2c: E2 03 00 4B 18 00 90 00 D7 [12:19:28]RAPDU: 90 00 [12:19:28]wFMCommunicate OK [12:19:28]wFMCommunicate request_size=10 [12:19:28]MH_SAM_APDU [12:19:28]CAPDU: 80 0D 02 02 05 D0 CE F3 58 61 [12:19:28]Write to MH i2c: E2 0D 00 4C 18 80 0D 02 02 05 00 D0 CE F3 58 61 00 00 32 [12:19:28]Write i2c OK [12:19:28]MH_I2C_Read... [12:19:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:28]Read from MH i2c: E2 [12:19:28]MH_I2C_Read... [12:19:28]Read from MH i2c: E2 03 00 [12:19:28]MH_I2C_Read... [12:19:28]Read from MH i2c: E2 03 00 4C 18 00 90 00 D8 [12:19:28]RAPDU: 90 00 [12:19:28]wFMCommunicate OK [12:19:28]wFMCommunicate request_size=4 [12:19:28]MH_SAM_APDU [12:19:28]CAPDU: 80 0D 03 02 [12:19:28]Write to MH i2c: E2 08 00 4D 18 80 0D 03 02 00 00 00 00 E0 [12:19:28]Write i2c OK [12:19:28]MH_I2C_Read... [12:19:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:19:28]Read from MH i2c: E2 [12:19:28]MH_I2C_Read... [12:19:28]Read from MH i2c: E2 0B 00 [12:19:28]MH_I2C_Read... [12:19:28]Read from MH i2c: E2 0B 00 4D 18 00 68 DC F6 C4 C2 0D C1 61 90 00 D0 [12:19:28]RAPDU: 68 DC F6 C4 C2 0D C1 61 90 00 [12:19:28]wFMCommunicate OK [12:19:28]SAM_PROTO_SignData done [12:19:28]FM_MakeSignedData done [12:19:28]CreateOFDProtocolMessage [12:19:28]wFMCommunicate request_size=4 [12:19:28]MH_SAM_APDU [12:19:28]CAPDU: 80 11 00 00 [12:19:28]Write to MH i2c: E2 08 00 4E 18 80 11 00 00 00 00 00 00 E0 [12:19:28]Write i2c OK [12:19:28]MH_I2C_Read... [12:19:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:28]Read from MH i2c: E2 [12:19:28]MH_I2C_Read... [12:19:28]Read from MH i2c: E2 17 00 [12:19:28]MH_I2C_Read... [12:19:28]Read from MH i2c: E2 17 00 4E 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 36 [12:19:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:19:28]wFMCommunicate OK [12:19:28]CreateOFDProtocolMessage done [12:19:28]OFDSenderStorePacket 164936 [12:19:28]StoreOFDPacket docnum=164936 [12:19:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 08 F1 07 01 B7 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 50 C2 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 48 84 02 00 35 04 06 00 81 D0 CE F3 58 61 68 DC F6 C4 C2 0D C1 61 [12:19:28]CheckFolder [12:19:28]dirname=/storage/ofd_packets [12:19:28]CheckFolder done [12:19:28]ProducePacketName [12:19:28]name=ofd_packets/00164936 [12:19:28]NVStorageSaveData ofd_packets/00164936 [12:19:28]File name is /storage/ofd_packets/00164936 [12:19:28]Write 301 bytes [12:19:28]NVStorageSaveData done [12:19:28]OFDSenderStorePacket done [12:19:28]KKMCreateOFDPacket done [12:19:28]NVStorageSaveData kkm_last_timestamp [12:19:28]File name is /storage/kkm_last_timestamp [12:19:28]Write 4 bytes [12:19:28]NVStorageSaveData done [12:19:28]ExternCall_PrintAddStr [12:19:28]wPrintStart [12:19:28]Write to MH i2c: 01 00 00 4F 18 67 [12:19:28]Write i2c OK [12:19:28]MH_I2C_Read... [12:19:28]Read from MH i2c: 01 [12:19:28]MH_I2C_Read... [12:19:28]Read from MH i2c: 01 07 00 [12:19:28]MH_I2C_Read... [12:19:28]Read from MH i2c: 01 07 00 4F 18 00 00 00 00 00 FF 0F 7C [12:19:28]RasterBufferAndPrint [12:19:28]line Счет N : (1)459034 [12:19:28]line ИНН: 02508201610067 [12:19:28]line Контрольно-Кассовый Чек [12:19:28]line ПРОДАЖА [12:19:28]line ТРК (МРК, ГНК) : 12 [12:19:28]line Товар: 2710124130 [12:19:28]line Аи-92-К-5 [12:19:28]line 7.670 * 65.22 [12:19:28]line = 500.24 [12:19:28]line НДС 12% НСП 1% [12:19:28]line > о реализуемом товаре [12:19:28]line ИТОГО: 500.24 [12:19:28]line НСП 1% : 4.43 [12:19:28]line НДС 12% : 53.12 [12:19:28]line Наличными: 0.00 [12:19:28]line Безнал.: 500.24 [12:19:28]line Место: АЗС № 72 "Партнер Нефть" [12:19:28]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:19:28]line СНО: Общий режим [12:19:28]line Чек 134 14.07.2024 12:19 [12:19:28]line Смена: 447 ФФД: 1.0 [12:19:28]line ЗНМ: 0300000160 [12:19:28]line РНМ: 0000000000090829 [12:19:28]line Версия ККМ: 001 [12:19:28]line Платежная система: KICB Банк [12:19:28]line ФМ: 0000000000874718 [12:19:28]line ФД: 164936 [12:19:28]line ФПД: 142733825235041 [12:19:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T121928&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164936&fm=142733825235041&tin=02508201610067®Number=0000000000090829&sum=50024 [12:19:28]written 0, free lines is 4095 [12:19:28]OFD Sender: Processing packet 164936 [packets to send 104, broken 103] [12:19:28]ProducePacketName [12:19:28]name=ofd_packets/00164936 [12:19:28]OFD Sender: To server: pG, [12:19:28]CommunicateWithHost lk.salyk.kg:30040 [12:19:28]ConnectInit lk.salyk.kg [12:19:28]Connected sock=10 [12:19:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 08 F1 07 01 B7 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 50 C2 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 48 84 02 00 35 04 06 00 81 D0 CE F3 58 61 68 DC F6 C4 C2 0D C1 61 [12:19:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 B5 F4 47 00 0E DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 48 84 02 00 F4 03 04 00 DD 68 93 66 B6 04 01 00 00 4B 38 54 53 83 EB BA 45 [12:19:29]CommunicateWithHost err = 0 [12:19:29]CheckOFDResponse [12:19:29]1017 (14) - 77093643461234 [12:19:29]1041 (16) - 0000000000874718 [12:19:29]1040 (4) - 164936 [12:19:29]1012 (4) - 14.07.2024 05:57 [12:19:29]1206 (1) - 0 [12:19:29]OFD Sender: Remove packet 164936 [12:19:29]ProducePacketName [12:19:29]name=ofd_packets/00164936 [12:19:29]NVStorageDeleteData [12:19:29]Write to MH i2c: 01 00 00 78 18 90 [12:19:29]Write i2c OK [12:19:29]MH_I2C_Read... [12:19:29]Read from MH i2c: 01 [12:19:29]MH_I2C_Read... [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 78 18 00 00 00 00 00 13 0D B7 [12:19:29]RasterBufferAndPrint [12:19:29]line [12:19:29]line [12:19:29]line [12:19:29]line [12:19:29]line [12:19:29]written 0, free lines is 3354 [12:19:29]MH_Cut [12:19:29]Write to MH i2c: D1 01 00 7F 18 01 69 [12:19:29]Write i2c OK [12:19:29]MH_I2C_Read... [12:19:29]Read from MH i2c: D1 [12:19:29]MH_I2C_Read... [12:19:29]Read from MH i2c: D1 01 00 [12:19:29]MH_I2C_Read... [12:19:29]Read from MH i2c: D1 01 00 7F 18 00 68 [12:19:29]Write to MH i2c: 01 00 00 80 18 98 [12:19:29]Write i2c OK [12:19:29]MH_I2C_Read... [12:19:29]OFD Sender: No OFD packet to send [12:19:29]*** Cut start [12:19:29]*** Partial cut [12:19:29]*** CUTSNS_PIN = 1 [12:19:29]*** CUTSNS_PIN = 0 [12:19:30]*** Brake cut motor [12:19:30]Read from MH i2c: 01 [12:19:30]MH_I2C_Read... [12:19:30]*** Stop cut motor [12:19:30]*** Cut end [12:19:30]Read from MH i2c: 01 07 00 [12:19:30]MH_I2C_Read... [12:19:30]Read from MH i2c: 01 07 00 80 18 00 00 00 00 00 FF 0F AD [12:19:30]process_action close_receipt done [12:19:30]requested_data is exist [12:19:30]produce_requested_data [12:19:30]requested_item fm.sn is exist - process it [12:19:30]wFMCommunicate request_size=4 [12:19:30]MH_SAM_APDU [12:19:30]CAPDU: 80 11 00 00 [12:19:30]Write to MH i2c: E2 08 00 81 18 80 11 00 00 00 00 00 00 13 [12:19:30]Write i2c OK [12:19:30]MH_I2C_Read... [12:19:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:30]Read from MH i2c: E2 [12:19:30]MH_I2C_Read... [12:19:30]Read from MH i2c: E2 17 00 [12:19:30]MH_I2C_Read... [12:19:30]Read from MH i2c: E2 17 00 81 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 69 [12:19:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:19:30]wFMCommunicate OK [12:19:30]requested_item fd.num is exist - process it [12:19:30]SAM_PROTO_GetFieldsCounters [12:19:30]wFMCommunicate request_size=4 [12:19:30]MH_SAM_APDU [12:19:30]CAPDU: 80 13 00 00 [12:19:30]Write to MH i2c: E2 08 00 82 18 80 13 00 00 00 00 00 00 16 [12:19:30]Write i2c OK [12:19:30]MH_I2C_Read... [12:19:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:19:30]Read from MH i2c: E2 [12:19:30]MH_I2C_Read... [12:19:30]Read from MH i2c: E2 62 00 [12:19:30]MH_I2C_Read... [12:19:30]Read from MH i2c: E2 62 00 82 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 48 84 02 00 0E 04 04 00 BF 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 5D [12:19:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 48 84 02 00 0E 04 04 00 BF 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 [12:19:30]wFMCommunicate OK [12:19:30]SAM_PROTO_GetFieldsCounters done [12:19:30]requested_item shift.num is exist - process it [12:19:30]requested_item shift.opened is exist - process it [12:19:30]req_shift_opened [12:19:30]FM_GetShiftState [12:19:30]SAM_PROTO_GetShiftState [12:19:30]wFMCommunicate request_size=4 [12:19:30]MH_SAM_APDU [12:19:30]CAPDU: 80 13 01 00 [12:19:30]Write to MH i2c: E2 08 00 83 18 80 13 01 00 00 00 00 00 18 [12:19:30]Write i2c OK [12:19:30]MH_I2C_Read... [12:19:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:30]Read from MH i2c: E2 [12:19:30]MH_I2C_Read... [12:19:30]Read from MH i2c: E2 0E 00 [12:19:30]MH_I2C_Read... [12:19:30]Read from MH i2c: E2 0E 00 83 18 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 98 [12:19:30]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [12:19:30]wFMCommunicate OK [12:19:30]SAM_PROTO_GetShiftState done [12:19:30]FM_GetShiftState done [12:19:30]req_shift_opened done [12:19:30]requested_item shift.open_date is exist - process it [12:19:30]req_shift_open_date [12:19:30]req_shift_open_date done [12:19:30]produce_requested_data done [12:19:30]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164936,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [12:19:30]process_action_free close_receipt [12:19:30]json_value_free [12:19:30]json_value_free done [12:19:30]process_json_proto returns [12:19:30]Send response to host [12:19:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164936,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [12:19:30]free response buf [12:19:30]execute_script done [12:19:30]execute_script returns [12:19:30]free content buf [12:19:30]Sock 9.Close socket [12:19:30]Sock 9.Thread stoped [12:19:34]OFD Sender: No OFD packet to send [12:19:39]OFD Sender: No OFD packet to send [12:19:44]OFD Sender: No OFD packet to send [12:19:49]OFD Sender: No OFD packet to send [12:19:54]OFD Sender: No OFD packet to send [12:19:59]OFD Sender: No OFD packet to send [12:20:04]OFD Sender: No OFD packet to send [12:20:09]OFD Sender: No OFD packet to send [12:20:14]OFD Sender: No OFD packet to send [12:20:19]OFD Sender: No OFD packet to send [12:20:24]OFD Sender: No OFD packet to send [12:20:29]OFD Sender: No OFD packet to send [12:20:34]OFD Sender: No OFD packet to send [12:20:36]accept exits with 7 [12:20:36]New connection [12:20:36]New thread 3067616612 created [12:20:36]Thread 3067473252 joined [12:20:36]Waiting for new connection... [12:20:36] Sock 7.Parse request [12:20:36]Sock 7.Check first char [12:20:36]Sock 7.First char is OK [12:20:36]request: POST /json_proto HTTP/1.0 [12:20:36]Method: POST [12:20:36]URL: /json_proto [12:20:36]Method is POST - this is cgi request [12:20:36]url: /json_proto [12:20:36]query_string will be loaded in cgi processing [12:20:36]execute_cgi json_proto POST (null) [12:20:36]execute_cgi path=json_proto method=POST [12:20:36]POST find Content-Length [12:20:36]Host: 172.17.56.4:8080 [12:20:36]Content-Length: 679 [12:20:36]Content-Type: application/json [12:20:36] [12:20:36]POST finish read [12:20:36]Found Content-Length = 679 [12:20:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459035", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 20.170, "sum" : 1450.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1450.00, "total" : 1450.00, "payments": [ { "type": 0, "sum" : 1450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:36]execute_script... [12:20:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459035", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 20.170, "sum" : 1450.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1450.00, "total" : 1450.00, "payments": [ { "type": 0, "sum" : 1450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:36]POST & json_proto [12:20:36]process_json_proto [12:20:36]json parsed OK: [12:20:36]protocol is kg_v1.0 [12:20:36]action value=close_receipt [12:20:36]process_action close_receipt [12:20:36]cmd_close_receipt [12:20:36]MH_GetDate [12:20:36]Write to MH i2c: F0 00 00 84 18 8B [12:20:36]Write i2c OK [12:20:36]MH_I2C_Read... [12:20:36]Read from MH i2c: F0 [12:20:36]MH_I2C_Read... [12:20:36]Read from MH i2c: F0 09 00 [12:20:36]MH_I2C_Read... [12:20:36]Read from MH i2c: F0 09 00 84 18 00 95 C2 93 66 C9 DC B2 64 9F [12:20:36]GetLastDocTimeStamp 1720959568 [12:20:36]current date 1720959637 [12:20:36]FM_GetShiftState [12:20:36]SAM_PROTO_GetShiftState [12:20:36]wFMCommunicate request_size=4 [12:20:36]MH_SAM_APDU [12:20:36]CAPDU: 80 13 01 00 [12:20:36]Write to MH i2c: E2 08 00 85 18 80 13 01 00 00 00 00 00 1A [12:20:36]Write i2c OK [12:20:36]MH_I2C_Read... [12:20:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:36]Read from MH i2c: E2 [12:20:36]MH_I2C_Read... [12:20:36]Read from MH i2c: E2 0E 00 [12:20:36]MH_I2C_Read... [12:20:36]Read from MH i2c: E2 0E 00 85 18 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 9A [12:20:36]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [12:20:36]wFMCommunicate OK [12:20:36]SAM_PROTO_GetShiftState done [12:20:36]FM_GetShiftState done [12:20:36]opened in 1720917342 [12:20:36]opened+sec_in_day 1721003742 [12:20:36]quantity*price = 145022 [12:20:36]sum+1 = 145023 [12:20:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1450.00 Внесено: 1450.00 СДАЧА: 0.00 НСП 1% : 12.83 НДС 12% : 154.01 Наличными: 1450.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 135 14.07.2024 12:20 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164937 ФПД: 245482311294725 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T122037&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164937&fm=245482311294725&tin=02508201610067®Number=0000000000090829&sum=145000 [12:20:37]StoreToDocumentArchive [12:20:37]shift 447 fd 164937 [12:20:37]save to /storage/0447/doc_00164937 [12:20:37]save last doc name /storage/0447/doc_00164937 to /storage/kkm_last_doc_name [12:20:37]save OK [12:20:37]Clear old archive folders... [12:20:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:20:37]tlvbuf is 007B03B0 [12:20:37]SAM_PROTO_ClearQueue [12:20:37]wFMCommunicate request_size=4 [12:20:37]MH_SAM_APDU [12:20:37]CAPDU: 80 09 00 00 [12:20:37]Write to MH i2c: E2 08 00 92 18 80 09 00 00 00 00 00 00 1C [12:20:37]Write i2c OK [12:20:37]MH_I2C_Read... [12:20:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:20:37]Read from MH i2c: E2 [12:20:37]MH_I2C_Read... [12:20:37]Read from MH i2c: E2 03 00 [12:20:37]MH_I2C_Read... [12:20:37]Read from MH i2c: E2 03 00 92 18 00 90 00 1E [12:20:37]RAPDU: 90 00 [12:20:37]wFMCommunicate OK [12:20:37]SAM_PROTO_ClearQueue done [12:20:37]KKMCreateOFDPacket [12:20:37]OFDProtocolAddRootSTLVToBuf [12:20:37]FM_MakeSignedData [12:20:37]FM_MakeSignedData [12:20:37]SAM_PROTO_SignData [12:20:37]wFMCommunicate request_size=4 [12:20:37]MH_SAM_APDU [12:20:37]CAPDU: 80 0D 01 02 [12:20:37]Write to MH i2c: E2 08 00 93 18 80 0D 01 02 00 00 00 00 24 [12:20:37]Write i2c OK [12:20:37]MH_I2C_Read... [12:20:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:20:37]Read from MH i2c: E2 [12:20:37]MH_I2C_Read... [12:20:37]Read from MH i2c: E2 03 00 [12:20:37]MH_I2C_Read... [12:20:37]Read from MH i2c: E2 03 00 93 18 00 90 00 1F [12:20:37]RAPDU: 90 00 [12:20:37]wFMCommunicate OK [12:20:37]wFMCommunicate request_size=255 [12:20:37]MH_SAM_APDU [12:20:37]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CA 4E 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7E 36 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 36 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 3C 00 00 00 00 07 04 06 00 68 36 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 95 C2 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 49 84 02 00 35 04 06 00 DF 43 CD F6 [12:20:37]Write to MH i2c: E2 02 01 94 18 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CA 4E 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7E 36 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 36 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 3C 00 00 00 00 07 04 06 00 68 36 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 95 C2 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 49 84 02 00 35 04 06 00 DF 43 CD F6 00 00 7F [12:20:37]Write i2c OK [12:20:37]MH_I2C_Read... [12:20:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:38]Read from MH i2c: E2 [12:20:38]MH_I2C_Read... [12:20:38]Read from MH i2c: E2 03 00 [12:20:38]MH_I2C_Read... [12:20:38]Read from MH i2c: E2 03 00 94 18 00 90 00 20 [12:20:38]RAPDU: 90 00 [12:20:38]wFMCommunicate OK [12:20:38]wFMCommunicate request_size=7 [12:20:38]MH_SAM_APDU [12:20:38]CAPDU: 80 0D 02 02 02 9F 05 [12:20:38]Write to MH i2c: E2 0A 00 95 18 80 0D 02 02 02 00 9F 05 00 00 CF [12:20:38]Write i2c OK [12:20:38]MH_I2C_Read... [12:20:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:38]Read from MH i2c: E2 [12:20:38]MH_I2C_Read... [12:20:38]Read from MH i2c: E2 03 00 [12:20:38]MH_I2C_Read... [12:20:38]Read from MH i2c: E2 03 00 95 18 00 90 00 21 [12:20:38]RAPDU: 90 00 [12:20:38]wFMCommunicate OK [12:20:38]wFMCommunicate request_size=4 [12:20:38]MH_SAM_APDU [12:20:38]CAPDU: 80 0D 03 02 [12:20:38]Write to MH i2c: E2 08 00 96 18 80 0D 03 02 00 00 00 00 29 [12:20:38]Write i2c OK [12:20:38]MH_I2C_Read... [12:20:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:20:38]Read from MH i2c: E2 [12:20:38]MH_I2C_Read... [12:20:38]Read from MH i2c: E2 0B 00 [12:20:38]MH_I2C_Read... [12:20:38]Read from MH i2c: E2 0B 00 96 18 00 33 EE 4D 87 CE BA C8 6E 90 00 DD [12:20:38]RAPDU: 33 EE 4D 87 CE BA C8 6E 90 00 [12:20:38]wFMCommunicate OK [12:20:38]SAM_PROTO_SignData done [12:20:38]FM_MakeSignedData done [12:20:38]CreateOFDProtocolMessage [12:20:38]wFMCommunicate request_size=4 [12:20:38]MH_SAM_APDU [12:20:38]CAPDU: 80 11 00 00 [12:20:38]Write to MH i2c: E2 08 00 97 18 80 11 00 00 00 00 00 00 29 [12:20:38]Write i2c OK [12:20:38]MH_I2C_Read... [12:20:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:38]Read from MH i2c: E2 [12:20:38]MH_I2C_Read... [12:20:38]Read from MH i2c: E2 17 00 [12:20:38]MH_I2C_Read... [12:20:38]Read from MH i2c: E2 17 00 97 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 7F [12:20:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:20:38]wFMCommunicate OK [12:20:38]CreateOFDProtocolMessage done [12:20:38]OFDSenderStorePacket 164937 [12:20:38]StoreOFDPacket docnum=164937 [12:20:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 F7 D6 04 01 F7 3D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CA 4E 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7E 36 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 36 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 3C 00 00 00 00 07 04 06 00 68 36 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 95 C2 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 49 84 02 00 35 04 06 00 DF 43 CD F6 9F 05 33 EE 4D 87 CE BA C8 6E [12:20:38]CheckFolder [12:20:38]dirname=/storage/ofd_packets [12:20:38]CheckFolder done [12:20:38]ProducePacketName [12:20:38]name=ofd_packets/00164937 [12:20:38]NVStorageSaveData ofd_packets/00164937 [12:20:38]File name is /storage/ofd_packets/00164937 [12:20:38]Write 298 bytes [12:20:38]NVStorageSaveData done [12:20:38]OFDSenderStorePacket done [12:20:38]KKMCreateOFDPacket done [12:20:38]NVStorageSaveData kkm_last_timestamp [12:20:38]File name is /storage/kkm_last_timestamp [12:20:38]Write 4 bytes [12:20:38]NVStorageSaveData done [12:20:38]ExternCall_PrintAddStr [12:20:38]wPrintStart [12:20:38]Write to MH i2c: 01 00 00 98 18 B0 [12:20:38]Write i2c OK [12:20:38]MH_I2C_Read... [12:20:38]Read from MH i2c: 01 [12:20:38]MH_I2C_Read... [12:20:38]Read from MH i2c: 01 07 00 [12:20:38]MH_I2C_Read... [12:20:38]Read from MH i2c: 01 07 00 98 18 00 00 00 00 00 FF 0F C5 [12:20:38]RasterBufferAndPrint [12:20:38]line Счет N : (1)459035 [12:20:38]line ИНН: 02508201610067 [12:20:38]line Контрольно-Кассовый Чек [12:20:38]line ПРОДАЖА [12:20:38]line ТРК (МРК, ГНК) : 21 [12:20:38]line Товар: 2710194210 [12:20:38]line ДТ-К-5 [12:20:38]line 20.170 * 71.90 [12:20:38]line = 1450.22 [12:20:38]line НДС 12% НСП 1% [12:20:38]line > о реализуемом товаре [12:20:38]line ОКРУГЛЕНИЕ: -0.22 [12:20:38]line ИТОГО: 1450.00 [12:20:38]line Внесено: 1450.00 [12:20:38]line СДАЧА: 0.00 [12:20:38]line НСП 1% : 12.83 [12:20:38]line НДС 12% : 154.01 [12:20:38]line Наличными: 1450.00 [12:20:38]line Безнал.: 0.00 [12:20:38]line Место: АЗС № 72 "Партнер Нефть" [12:20:38]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:20:38]line СНО: Общий режим [12:20:38]line Чек 135 14.07.2024 12:20 [12:20:38]line Смена: 447 ФФД: 1.0 [12:20:38]line ЗНМ: 0300000160 [12:20:38]line РНМ: 0000000000090829 [12:20:38]line Версия ККМ: 001 [12:20:38]line ФМ: 0000000000874718 [12:20:38]line ФД: 164937 [12:20:38]line ФПД: 245482311294725 [12:20:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T122037&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164937&fm=245482311294725&tin=02508201610067®Number=0000000000090829&sum=145000 [12:20:38]OFD Sender: Processing packet 164937 [packets to send 104, broken 103] [12:20:38]ProducePacketName [12:20:38]name=ofd_packets/00164937 [12:20:38]OFD Sender: To server: pG, [12:20:38]CommunicateWithHost lk.salyk.kg:30040 [12:20:38]ConnectInit lk.salyk.kg [12:20:38]written 0, free lines is 4095 [12:20:38]Connected sock=10 [12:20:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 F7 D6 04 01 F7 3D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CA 4E 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7E 36 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 36 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 3C 00 00 00 00 07 04 06 00 68 36 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 95 C2 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 49 84 02 00 35 04 06 00 DF 43 CD F6 9F 05 33 EE 4D 87 CE BA C8 6E [12:20:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 63 B4 47 00 5A 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 49 84 02 00 F4 03 04 00 23 69 93 66 B6 04 01 00 00 21 7F 6F FA AF FB 00 D8 [12:20:38]CommunicateWithHost err = 0 [12:20:38]CheckOFDResponse [12:20:38]1017 (14) - 77093643461234 [12:20:38]1041 (16) - 0000000000874718 [12:20:38]1040 (4) - 164937 [12:20:38]1012 (4) - 14.07.2024 05:58 [12:20:38]1206 (1) - 0 [12:20:38]OFD Sender: Remove packet 164937 [12:20:38]ProducePacketName [12:20:38]name=ofd_packets/00164937 [12:20:38]NVStorageDeleteData [12:20:38]Write to MH i2c: 01 00 00 C2 18 DA [12:20:38]Write i2c OK [12:20:38]MH_I2C_Read... [12:20:38]Read from MH i2c: 01 [12:20:38]MH_I2C_Read... [12:20:38]Read from MH i2c: 01 07 00 [12:20:38]MH_I2C_Read... [12:20:38]Read from MH i2c: 01 07 00 C2 18 00 00 00 00 00 F2 0C DF [12:20:38]RasterBufferAndPrint [12:20:38]line [12:20:38]line [12:20:38]line [12:20:38]line [12:20:38]line [12:20:38]written 0, free lines is 3322 [12:20:38]MH_Cut [12:20:38]Write to MH i2c: D1 01 00 C9 18 01 B3 [12:20:38]Write i2c OK [12:20:38]MH_I2C_Read... [12:20:38]Read from MH i2c: D1 [12:20:38]MH_I2C_Read... [12:20:38]Read from MH i2c: D1 01 00 [12:20:38]MH_I2C_Read... [12:20:38]Read from MH i2c: D1 01 00 C9 18 00 B2 [12:20:38]Write to MH i2c: 01 00 00 CA 18 E2 [12:20:38]Write i2c OK [12:20:38]MH_I2C_Read... [12:20:39]OFD Sender: No OFD packet to send [12:20:39]*** Cut start [12:20:39]*** Partial cut [12:20:39]*** CUTSNS_PIN = 1 [12:20:39]*** CUTSNS_PIN = 0 [12:20:39]*** Brake cut motor [12:20:40]Read from MH i2c: 01 [12:20:40]MH_I2C_Read... [12:20:40]*** Stop cut motor [12:20:40]*** Cut end [12:20:40]Read from MH i2c: 01 07 00 [12:20:40]MH_I2C_Read... [12:20:40]Read from MH i2c: 01 07 00 CA 18 00 00 00 00 00 FF 0F F7 [12:20:40]process_action close_receipt done [12:20:40]requested_data is exist [12:20:40]produce_requested_data [12:20:40]requested_item fm.sn is exist - process it [12:20:40]wFMCommunicate request_size=4 [12:20:40]MH_SAM_APDU [12:20:40]CAPDU: 80 11 00 00 [12:20:40]Write to MH i2c: E2 08 00 CB 18 80 11 00 00 00 00 00 00 5D [12:20:40]Write i2c OK [12:20:40]MH_I2C_Read... [12:20:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:40]Read from MH i2c: E2 [12:20:40]MH_I2C_Read... [12:20:40]Read from MH i2c: E2 17 00 [12:20:40]MH_I2C_Read... [12:20:40]Read from MH i2c: E2 17 00 CB 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B3 [12:20:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:20:40]wFMCommunicate OK [12:20:40]requested_item fd.num is exist - process it [12:20:40]SAM_PROTO_GetFieldsCounters [12:20:40]wFMCommunicate request_size=4 [12:20:40]MH_SAM_APDU [12:20:40]CAPDU: 80 13 00 00 [12:20:40]Write to MH i2c: E2 08 00 CC 18 80 13 00 00 00 00 00 00 60 [12:20:40]Write i2c OK [12:20:40]MH_I2C_Read... [12:20:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:20:40]Read from MH i2c: E2 [12:20:40]MH_I2C_Read... [12:20:40]Read from MH i2c: E2 62 00 [12:20:40]MH_I2C_Read... [12:20:40]Read from MH i2c: E2 62 00 CC 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 49 84 02 00 0E 04 04 00 BF 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 AB [12:20:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 49 84 02 00 0E 04 04 00 BF 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 [12:20:40]wFMCommunicate OK [12:20:40]SAM_PROTO_GetFieldsCounters done [12:20:40]requested_item shift.num is exist - process it [12:20:40]requested_item shift.opened is exist - process it [12:20:40]req_shift_opened [12:20:40]FM_GetShiftState [12:20:40]SAM_PROTO_GetShiftState [12:20:40]wFMCommunicate request_size=4 [12:20:40]MH_SAM_APDU [12:20:40]CAPDU: 80 13 01 00 [12:20:40]Write to MH i2c: E2 08 00 CD 18 80 13 01 00 00 00 00 00 62 [12:20:40]Write i2c OK [12:20:40]MH_I2C_Read... [12:20:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:40]Read from MH i2c: E2 [12:20:40]MH_I2C_Read... [12:20:40]Read from MH i2c: E2 0E 00 [12:20:40]MH_I2C_Read... [12:20:40]Read from MH i2c: E2 0E 00 CD 18 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 E2 [12:20:40]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [12:20:40]wFMCommunicate OK [12:20:40]SAM_PROTO_GetShiftState done [12:20:40]FM_GetShiftState done [12:20:40]req_shift_opened done [12:20:40]requested_item shift.open_date is exist - process it [12:20:40]req_shift_open_date [12:20:40]req_shift_open_date done [12:20:40]produce_requested_data done [12:20:40]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164937,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [12:20:40]process_action_free close_receipt [12:20:40]json_value_free [12:20:40]json_value_free done [12:20:40]process_json_proto returns [12:20:40]Send response to host [12:20:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164937,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [12:20:40]free response buf [12:20:40]execute_script done [12:20:40]execute_script returns [12:20:40]free content buf [12:20:40]Sock 7.Close socket [12:20:40]Sock 7.Thread stoped [12:20:44]OFD Sender: No OFD packet to send [12:20:49]OFD Sender: No OFD packet to send [12:20:54]OFD Sender: No OFD packet to send [12:20:59]OFD Sender: No OFD packet to send [12:21:04]OFD Sender: No OFD packet to send [12:21:09]OFD Sender: No OFD packet to send [12:21:14]OFD Sender: No OFD packet to send [12:21:19]OFD Sender: No OFD packet to send [12:21:24]OFD Sender: No OFD packet to send [12:21:29]OFD Sender: No OFD packet to send [12:21:34]OFD Sender: No OFD packet to send [12:21:39]OFD Sender: No OFD packet to send [12:21:44]OFD Sender: No OFD packet to send [12:21:49]OFD Sender: No OFD packet to send [12:21:54]OFD Sender: No OFD packet to send [12:21:59]OFD Sender: No OFD packet to send [12:22:04]OFD Sender: No OFD packet to send [12:22:09]OFD Sender: No OFD packet to send [12:22:14]OFD Sender: No OFD packet to send [12:22:19]OFD Sender: No OFD packet to send [12:22:24]OFD Sender: No OFD packet to send [12:22:29]OFD Sender: No OFD packet to send [12:22:34]OFD Sender: No OFD packet to send [12:22:39]OFD Sender: No OFD packet to send [12:22:44]OFD Sender: No OFD packet to send [12:22:49]OFD Sender: No OFD packet to send [12:22:54]OFD Sender: No OFD packet to send [12:22:59]OFD Sender: No OFD packet to send [12:23:04]OFD Sender: No OFD packet to send [12:23:09]OFD Sender: No OFD packet to send [12:23:14]OFD Sender: No OFD packet to send [12:23:19]OFD Sender: No OFD packet to send [12:23:24]OFD Sender: No OFD packet to send [12:23:29]OFD Sender: No OFD packet to send [12:23:34]OFD Sender: No OFD packet to send [12:23:39]OFD Sender: No OFD packet to send [12:23:44]OFD Sender: No OFD packet to send [12:23:49]OFD Sender: No OFD packet to send [12:23:54]OFD Sender: No OFD packet to send [12:23:59]OFD Sender: No OFD packet to send [12:24:04]OFD Sender: No OFD packet to send [12:24:09]OFD Sender: No OFD packet to send [12:24:14]OFD Sender: No OFD packet to send [12:24:19]OFD Sender: No OFD packet to send [12:24:24]OFD Sender: No OFD packet to send [12:24:29]OFD Sender: No OFD packet to send [12:24:34]OFD Sender: No OFD packet to send [12:24:39]OFD Sender: No OFD packet to send [12:24:44]OFD Sender: No OFD packet to send [12:24:49]OFD Sender: No OFD packet to send [12:24:54]OFD Sender: No OFD packet to send [12:24:59]OFD Sender: No OFD packet to send [12:25:04]OFD Sender: No OFD packet to send [12:25:09]OFD Sender: No OFD packet to send [12:25:14]OFD Sender: No OFD packet to send [12:25:19]OFD Sender: No OFD packet to send [12:25:24]OFD Sender: No OFD packet to send [12:25:29]OFD Sender: No OFD packet to send [12:25:34]OFD Sender: No OFD packet to send [12:25:39]OFD Sender: No OFD packet to send [12:25:44]OFD Sender: No OFD packet to send [12:25:49]OFD Sender: No OFD packet to send [12:25:54]OFD Sender: No OFD packet to send [12:25:59]OFD Sender: No OFD packet to send [12:26:04]OFD Sender: No OFD packet to send [12:26:09]OFD Sender: No OFD packet to send [12:26:14]OFD Sender: No OFD packet to send [12:26:19]OFD Sender: No OFD packet to send [12:26:24]OFD Sender: No OFD packet to send [12:26:29]OFD Sender: No OFD packet to send [12:26:34]OFD Sender: No OFD packet to send [12:26:39]OFD Sender: No OFD packet to send [12:26:44]OFD Sender: No OFD packet to send [12:26:49]OFD Sender: No OFD packet to send [12:26:54]OFD Sender: No OFD packet to send [12:26:59]OFD Sender: No OFD packet to send [12:27:04]OFD Sender: No OFD packet to send [12:27:09]OFD Sender: No OFD packet to send [12:27:14]OFD Sender: No OFD packet to send [12:27:19]OFD Sender: No OFD packet to send [12:27:24]OFD Sender: No OFD packet to send [12:27:29]OFD Sender: No OFD packet to send [12:27:34]OFD Sender: No OFD packet to send [12:27:39]OFD Sender: No OFD packet to send [12:27:44]OFD Sender: No OFD packet to send [12:27:49]OFD Sender: No OFD packet to send [12:27:54]OFD Sender: No OFD packet to send [12:27:59]OFD Sender: No OFD packet to send [12:28:04]OFD Sender: No OFD packet to send [12:28:09]OFD Sender: No OFD packet to send [12:28:14]OFD Sender: No OFD packet to send [12:28:19]OFD Sender: No OFD packet to send [12:28:24]OFD Sender: No OFD packet to send [12:28:29]OFD Sender: No OFD packet to send [12:28:34]OFD Sender: No OFD packet to send [12:28:39]OFD Sender: No OFD packet to send [12:28:44]OFD Sender: No OFD packet to send [12:28:49]OFD Sender: No OFD packet to send [12:28:54]OFD Sender: No OFD packet to send [12:28:59]OFD Sender: No OFD packet to send [12:28:59]accept exits with 9 [12:28:59]New connection [12:28:59]New thread 3067473252 created [12:28:59]Thread 3067616612 joined [12:28:59]Waiting for new connection... [12:28:59] Sock 9.Parse request [12:28:59]Sock 9.Check first char [12:28:59]Sock 9.First char is OK [12:28:59]request: POST /json_proto HTTP/1.0 [12:28:59]Method: POST [12:28:59]URL: /json_proto [12:28:59]Method is POST - this is cgi request [12:28:59]url: /json_proto [12:28:59]query_string will be loaded in cgi processing [12:28:59]execute_cgi json_proto POST (null) [12:28:59]execute_cgi path=json_proto method=POST [12:28:59]POST find Content-Length [12:28:59]Host: 172.17.56.4:8080 [12:28:59]Content-Length: 677 [12:28:59]Content-Type: application/json [12:28:59] [12:28:59]POST finish read [12:28:59]Found Content-Length = 677 [12:29:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459036", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:29:00]execute_script... [12:29: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)459036", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:29:00]POST & json_proto [12:29:00]process_json_proto [12:29:00]json parsed OK: [12:29:00]protocol is kg_v1.0 [12:29:00]action value=close_receipt [12:29:00]process_action close_receipt [12:29:00]cmd_close_receipt [12:29:00]MH_GetDate [12:29:00]Write to MH i2c: F0 00 00 CE 18 D5 [12:29:00]Write i2c OK [12:29:00]MH_I2C_Read... [12:29:00]Read from MH i2c: F0 [12:29:00]MH_I2C_Read... [12:29:00]Read from MH i2c: F0 09 00 [12:29:00]MH_I2C_Read... [12:29:00]Read from MH i2c: F0 09 00 CE 18 00 8D C4 93 66 C9 DC B2 64 E3 [12:29:00]GetLastDocTimeStamp 1720959637 [12:29:00]current date 1720960141 [12:29:00]FM_GetShiftState [12:29:00]SAM_PROTO_GetShiftState [12:29:00]wFMCommunicate request_size=4 [12:29:00]MH_SAM_APDU [12:29:00]CAPDU: 80 13 01 00 [12:29:00]Write to MH i2c: E2 08 00 CF 18 80 13 01 00 00 00 00 00 64 [12:29:00]Write i2c OK [12:29:00]MH_I2C_Read... [12:29:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:00]Read from MH i2c: E2 [12:29:00]MH_I2C_Read... [12:29:00]Read from MH i2c: E2 0E 00 [12:29:00]MH_I2C_Read... [12:29:00]Read from MH i2c: E2 0E 00 CF 18 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 E4 [12:29:00]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [12:29:00]wFMCommunicate OK [12:29:00]SAM_PROTO_GetShiftState done [12:29:00]FM_GetShiftState done [12:29:00]opened in 1720917342 [12:29:00]opened+sec_in_day 1721003742 [12:29:00]quantity*price = 50008 [12:29:00]sum+1 = 50009 [12:29:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 136 14.07.2024 12:29 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164938 ФПД: 235462502733422 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T122901&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164938&fm=235462502733422&tin=02508201610067®Number=0000000000090829&sum=50000 [12:29:01]StoreToDocumentArchive [12:29:01]shift 447 fd 164938 [12:29:01]save to /storage/0447/doc_00164938 [12:29:01]save last doc name /storage/0447/doc_00164938 to /storage/kkm_last_doc_name [12:29:01]save OK [12:29:01]Clear old archive folders... [12:29:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:29:01]tlvbuf is B6E4A7F0 [12:29:01]SAM_PROTO_ClearQueue [12:29:01]wFMCommunicate request_size=4 [12:29:01]MH_SAM_APDU [12:29:01]CAPDU: 80 09 00 00 [12:29:01]Write to MH i2c: E2 08 00 DC 18 80 09 00 00 00 00 00 00 66 [12:29:01]Write i2c OK [12:29:01]MH_I2C_Read... [12:29:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:29:01]Read from MH i2c: E2 [12:29:01]MH_I2C_Read... [12:29:01]Read from MH i2c: E2 03 00 [12:29:01]MH_I2C_Read... [12:29:01]Read from MH i2c: E2 03 00 DC 18 00 90 00 68 [12:29:01]RAPDU: 90 00 [12:29:01]wFMCommunicate OK [12:29:01]SAM_PROTO_ClearQueue done [12:29:01]KKMCreateOFDPacket [12:29:01]OFDProtocolAddRootSTLVToBuf [12:29:01]FM_MakeSignedData [12:29:01]FM_MakeSignedData [12:29:01]SAM_PROTO_SignData [12:29:01]wFMCommunicate request_size=4 [12:29:01]MH_SAM_APDU [12:29:01]CAPDU: 80 0D 01 02 [12:29:01]Write to MH i2c: E2 08 00 DD 18 80 0D 01 02 00 00 00 00 6E [12:29:01]Write i2c OK [12:29:01]MH_I2C_Read... [12:29:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:29:01]Read from MH i2c: E2 [12:29:01]MH_I2C_Read... [12:29:01]Read from MH i2c: E2 03 00 [12:29:01]MH_I2C_Read... [12:29:01]Read from MH i2c: E2 03 00 DD 18 00 90 00 69 [12:29:01]RAPDU: 90 00 [12:29:01]wFMCommunicate OK [12:29:01]wFMCommunicate request_size=255 [12:29:01]MH_SAM_APDU [12:29:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 8D C4 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4A 84 02 00 35 04 06 00 D6 [12:29:01]Write to MH i2c: E2 02 01 DE 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 8D C4 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4A 84 02 00 35 04 06 00 D6 00 00 1F [12:29:01]Write i2c OK [12:29:01]MH_I2C_Read... [12:29:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:01]Read from MH i2c: E2 [12:29:01]MH_I2C_Read... [12:29:01]Read from MH i2c: E2 03 00 [12:29:01]MH_I2C_Read... [12:29:01]Read from MH i2c: E2 03 00 DE 18 00 90 00 6A [12:29:01]RAPDU: 90 00 [12:29:01]wFMCommunicate OK [12:29:01]wFMCommunicate request_size=10 [12:29:01]MH_SAM_APDU [12:29:01]CAPDU: 80 0D 02 02 05 26 E2 D5 56 6E [12:29:01]Write to MH i2c: E2 0D 00 DF 18 80 0D 02 02 05 00 26 E2 D5 56 6E 00 00 1C [12:29:01]Write i2c OK [12:29:01]MH_I2C_Read... [12:29:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:01]Read from MH i2c: E2 [12:29:01]MH_I2C_Read... [12:29:01]Read from MH i2c: E2 03 00 [12:29:01]MH_I2C_Read... [12:29:01]Read from MH i2c: E2 03 00 DF 18 00 90 00 6B [12:29:01]RAPDU: 90 00 [12:29:01]wFMCommunicate OK [12:29:01]wFMCommunicate request_size=4 [12:29:01]MH_SAM_APDU [12:29:01]CAPDU: 80 0D 03 02 [12:29:01]Write to MH i2c: E2 08 00 E0 18 80 0D 03 02 00 00 00 00 73 [12:29:01]Write i2c OK [12:29:01]MH_I2C_Read... [12:29:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:29:01]Read from MH i2c: E2 [12:29:01]MH_I2C_Read... [12:29:01]Read from MH i2c: E2 0B 00 [12:29:01]MH_I2C_Read... [12:29:01]Read from MH i2c: E2 0B 00 E0 18 00 CF DA 3E 02 52 CA 89 6B 90 00 6D [12:29:01]RAPDU: CF DA 3E 02 52 CA 89 6B 90 00 [12:29:01]wFMCommunicate OK [12:29:01]SAM_PROTO_SignData done [12:29:01]FM_MakeSignedData done [12:29:01]CreateOFDProtocolMessage [12:29:01]wFMCommunicate request_size=4 [12:29:01]MH_SAM_APDU [12:29:01]CAPDU: 80 11 00 00 [12:29:01]Write to MH i2c: E2 08 00 E1 18 80 11 00 00 00 00 00 00 73 [12:29:01]Write i2c OK [12:29:01]MH_I2C_Read... [12:29:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:01]Read from MH i2c: E2 [12:29:01]MH_I2C_Read... [12:29:01]Read from MH i2c: E2 17 00 [12:29:01]MH_I2C_Read... [12:29:01]Read from MH i2c: E2 17 00 E1 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C9 [12:29:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:29:01]wFMCommunicate OK [12:29:01]CreateOFDProtocolMessage done [12:29:01]OFDSenderStorePacket 164938 [12:29:01]StoreOFDPacket docnum=164938 [12:29:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 52 E3 07 01 19 AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 8D C4 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4A 84 02 00 35 04 06 00 D6 26 E2 D5 56 6E CF DA 3E 02 52 CA 89 6B [12:29:01]CheckFolder [12:29:01]dirname=/storage/ofd_packets [12:29:01]CheckFolder done [12:29:01]ProducePacketName [12:29:01]name=ofd_packets/00164938 [12:29:01]NVStorageSaveData ofd_packets/00164938 [12:29:01]File name is /storage/ofd_packets/00164938 [12:29:01]Write 301 bytes [12:29:01]NVStorageSaveData done [12:29:01]OFDSenderStorePacket done [12:29:01]KKMCreateOFDPacket done [12:29:01]NVStorageSaveData kkm_last_timestamp [12:29:01]File name is /storage/kkm_last_timestamp [12:29:01]Write 4 bytes [12:29:01]NVStorageSaveData done [12:29:01]ExternCall_PrintAddStr [12:29:01]wPrintStart [12:29:01]Write to MH i2c: 01 00 00 E2 18 FA [12:29:01]Write i2c OK [12:29:01]MH_I2C_Read... [12:29:01]Read from MH i2c: 01 [12:29:01]MH_I2C_Read... [12:29:01]Read from MH i2c: 01 07 00 [12:29:01]MH_I2C_Read... [12:29:01]Read from MH i2c: 01 07 00 E2 18 00 00 00 00 00 FF 0F 0F [12:29:01]RasterBufferAndPrint [12:29:01]line Счет N : (1)459036 [12:29:01]line ИНН: 02508201610067 [12:29:01]line Контрольно-Кассовый Чек [12:29:01]line ПРОДАЖА [12:29:01]line ТРК (МРК, ГНК) : 22 [12:29:01]line Товар: 2710124130 [12:29:01]line Аи-92-К-5 [12:29:01]line 7.600 * 65.80 [12:29:01]line = 500.08 [12:29:01]line НДС 12% НСП 1% [12:29:01]line > о реализуемом товаре [12:29:01]line ОКРУГЛЕНИЕ: -0.08 [12:29:01]line ИТОГО: 500.00 [12:29:01]line Внесено: 500.00 [12:29:01]line СДАЧА: 0.00 [12:29:01]line НСП 1% : 4.42 [12:29:01]line НДС 12% : 53.11 [12:29:01]line Наличными: 500.00 [12:29:01]line Безнал.: 0.00 [12:29:01]line Место: АЗС № 72 "Партнер Нефть" [12:29:01]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:29:01]line СНО: Общий режим [12:29:01]line Чек 136 14.07.2024 12:29 [12:29:01]line Смена: 447 ФФД: 1.0 [12:29:01]line ЗНМ: 0300000160 [12:29:01]line РНМ: 0000000000090829 [12:29:01]line Версия ККМ: 001 [12:29:01]line ФМ: 0000000000874718 [12:29:01]line ФД: 164938 [12:29:01]line ФПД: 235462502733422 [12:29:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T122901&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164938&fm=235462502733422&tin=02508201610067®Number=0000000000090829&sum=50000 [12:29:02]OFD Sender: Processing packet 164938 [packets to send 104, broken 103] [12:29:02]ProducePacketName [12:29:02]name=ofd_packets/00164938 [12:29:02]OFD Sender: To server: pG, [12:29:02]CommunicateWithHost lk.salyk.kg:30040 [12:29:02]ConnectInit lk.salyk.kg [12:29:02]written 0, free lines is 4095 [12:29:02]Connected sock=10 [12:29:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 52 E3 07 01 19 AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 8D C4 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4A 84 02 00 35 04 06 00 D6 26 E2 D5 56 6E CF DA 3E 02 52 CA 89 6B [12:29:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 14 0A 47 00 AE D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4A 84 02 00 F4 03 04 00 1B 6B 93 66 B6 04 01 00 00 D4 F5 0D 0B 34 D2 CE 77 [12:29:02]CommunicateWithHost err = 0 [12:29:02]CheckOFDResponse [12:29:02]1017 (14) - 77093643461234 [12:29:02]1041 (16) - 0000000000874718 [12:29:02]1040 (4) - 164938 [12:29:02]1012 (4) - 14.07.2024 06:07 [12:29:02]1206 (1) - 0 [12:29:02]OFD Sender: Remove packet 164938 [12:29:02]ProducePacketName [12:29:02]name=ofd_packets/00164938 [12:29:02]NVStorageDeleteData [12:29:02]Write to MH i2c: 01 00 00 0C 19 25 [12:29:02]Write i2c OK [12:29:02]MH_I2C_Read... [12:29:02]Read from MH i2c: 01 [12:29:02]MH_I2C_Read... [12:29:02]Read from MH i2c: 01 07 00 [12:29:02]MH_I2C_Read... [12:29:02]Read from MH i2c: 01 07 00 0C 19 00 00 00 00 00 01 0D 3A [12:29:02]RasterBufferAndPrint [12:29:02]line [12:29:02]line [12:29:02]line [12:29:02]line [12:29:02]line [12:29:02]written 0, free lines is 3335 [12:29:02]MH_Cut [12:29:02]Write to MH i2c: D1 01 00 13 19 01 FE [12:29:02]Write i2c OK [12:29:02]MH_I2C_Read... [12:29:02]Read from MH i2c: D1 [12:29:02]MH_I2C_Read... [12:29:02]Read from MH i2c: D1 01 00 [12:29:02]MH_I2C_Read... [12:29:02]Read from MH i2c: D1 01 00 13 19 00 FD [12:29:02]Write to MH i2c: 01 00 00 14 19 2D [12:29:02]Write i2c OK [12:29:02]MH_I2C_Read... [12:29:02]OFD Sender: No OFD packet to send [12:29:03]*** Cut start [12:29:03]*** Partial cut [12:29:03]*** CUTSNS_PIN = 1 [12:29:03]*** CUTSNS_PIN = 0 [12:29:03]*** Brake cut motor [12:29:03]Read from MH i2c: 01 [12:29:03]MH_I2C_Read... [12:29:03]*** Stop cut motor [12:29:03]*** Cut end [12:29:03]Read from MH i2c: 01 07 00 [12:29:03]MH_I2C_Read... [12:29:03]Read from MH i2c: 01 07 00 14 19 00 00 00 00 00 FF 0F 42 [12:29:03]process_action close_receipt done [12:29:03]requested_data is exist [12:29:03]produce_requested_data [12:29:03]requested_item fm.sn is exist - process it [12:29:03]wFMCommunicate request_size=4 [12:29:03]MH_SAM_APDU [12:29:03]CAPDU: 80 11 00 00 [12:29:03]Write to MH i2c: E2 08 00 15 19 80 11 00 00 00 00 00 00 A8 [12:29:03]Write i2c OK [12:29:03]MH_I2C_Read... [12:29:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:03]Read from MH i2c: E2 [12:29:03]MH_I2C_Read... [12:29:03]Read from MH i2c: E2 17 00 [12:29:03]MH_I2C_Read... [12:29:03]Read from MH i2c: E2 17 00 15 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 FE [12:29:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:29:03]wFMCommunicate OK [12:29:03]requested_item fd.num is exist - process it [12:29:03]SAM_PROTO_GetFieldsCounters [12:29:03]wFMCommunicate request_size=4 [12:29:03]MH_SAM_APDU [12:29:03]CAPDU: 80 13 00 00 [12:29:03]Write to MH i2c: E2 08 00 16 19 80 13 00 00 00 00 00 00 AB [12:29:03]Write i2c OK [12:29:03]MH_I2C_Read... [12:29:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:29:03]Read from MH i2c: E2 [12:29:03]MH_I2C_Read... [12:29:03]Read from MH i2c: E2 62 00 [12:29:03]MH_I2C_Read... [12:29:03]Read from MH i2c: E2 62 00 16 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 4A 84 02 00 0E 04 04 00 BF 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 FA [12:29:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 4A 84 02 00 0E 04 04 00 BF 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 [12:29:03]wFMCommunicate OK [12:29:03]SAM_PROTO_GetFieldsCounters done [12:29:03]requested_item shift.num is exist - process it [12:29:03]requested_item shift.opened is exist - process it [12:29:03]req_shift_opened [12:29:03]FM_GetShiftState [12:29:03]SAM_PROTO_GetShiftState [12:29:03]wFMCommunicate request_size=4 [12:29:03]MH_SAM_APDU [12:29:03]CAPDU: 80 13 01 00 [12:29:03]Write to MH i2c: E2 08 00 17 19 80 13 01 00 00 00 00 00 AD [12:29:03]Write i2c OK [12:29:03]MH_I2C_Read... [12:29:04]Read from MH i2c: E2 [12:29:04]MH_I2C_Read... [12:29:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:04]Read from MH i2c: E2 0E 00 [12:29:04]MH_I2C_Read... [12:29:04]Read from MH i2c: E2 0E 00 17 19 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 2D [12:29:04]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [12:29:04]wFMCommunicate OK [12:29:04]SAM_PROTO_GetShiftState done [12:29:04]FM_GetShiftState done [12:29:04]req_shift_opened done [12:29:04]requested_item shift.open_date is exist - process it [12:29:04]req_shift_open_date [12:29:04]req_shift_open_date done [12:29:04]produce_requested_data done [12:29:04]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164938,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [12:29:04]process_action_free close_receipt [12:29:04]json_value_free [12:29:04]json_value_free done [12:29:04]process_json_proto returns [12:29:04]Send response to host [12:29:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164938,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [12:29:04]free response buf [12:29:04]execute_script done [12:29:04]execute_script returns [12:29:04]free content buf [12:29:04]Sock 9.Close socket [12:29:04]Sock 9.Thread stoped [12:29:07]OFD Sender: No OFD packet to send [12:29:12]OFD Sender: No OFD packet to send [12:29:17]OFD Sender: No OFD packet to send [12:29:22]OFD Sender: No OFD packet to send [12:29:27]OFD Sender: No OFD packet to send [12:29:32]OFD Sender: No OFD packet to send [12:29:37]OFD Sender: No OFD packet to send [12:29:42]OFD Sender: No OFD packet to send [12:29:47]OFD Sender: No OFD packet to send [12:29:52]OFD Sender: No OFD packet to send [12:29:57]OFD Sender: No OFD packet to send [12:30:02]OFD Sender: No OFD packet to send [12:30:07]OFD Sender: No OFD packet to send [12:30:12]OFD Sender: No OFD packet to send [12:30:17]OFD Sender: No OFD packet to send [12:30:22]OFD Sender: No OFD packet to send [12:30:27]OFD Sender: No OFD packet to send [12:30:32]OFD Sender: No OFD packet to send [12:30:37]OFD Sender: No OFD packet to send [12:30:42]OFD Sender: No OFD packet to send [12:30:47]OFD Sender: No OFD packet to send [12:30:52]OFD Sender: No OFD packet to send [12:30:58]OFD Sender: No OFD packet to send [12:31:03]OFD Sender: No OFD packet to send [12:31:08]OFD Sender: No OFD packet to send [12:31:13]OFD Sender: No OFD packet to send [12:31:18]OFD Sender: No OFD packet to send [12:31:23]OFD Sender: No OFD packet to send [12:31:28]OFD Sender: No OFD packet to send [12:31:33]OFD Sender: No OFD packet to send [12:31:38]OFD Sender: No OFD packet to send [12:31:43]OFD Sender: No OFD packet to send [12:31:48]OFD Sender: No OFD packet to send [12:31:53]OFD Sender: No OFD packet to send [12:31:58]OFD Sender: No OFD packet to send [12:32:03]OFD Sender: No OFD packet to send [12:32:08]OFD Sender: No OFD packet to send [12:32:13]OFD Sender: No OFD packet to send [12:32:18]OFD Sender: No OFD packet to send [12:32:23]OFD Sender: No OFD packet to send [12:32:28]OFD Sender: No OFD packet to send [12:32:33]OFD Sender: No OFD packet to send [12:32:38]OFD Sender: No OFD packet to send [12:32:43]OFD Sender: No OFD packet to send [12:32:48]OFD Sender: No OFD packet to send [12:32:53]OFD Sender: No OFD packet to send [12:32:58]OFD Sender: No OFD packet to send [12:33:03]OFD Sender: No OFD packet to send [12:33:08]OFD Sender: No OFD packet to send [12:33:13]OFD Sender: No OFD packet to send [12:33:18]OFD Sender: No OFD packet to send [12:33:23]OFD Sender: No OFD packet to send [12:33:28]OFD Sender: No OFD packet to send [12:33:33]OFD Sender: No OFD packet to send [12:33:38]OFD Sender: No OFD packet to send [12:33:43]OFD Sender: No OFD packet to send [12:33:48]OFD Sender: No OFD packet to send [12:33:53]OFD Sender: No OFD packet to send [12:33:58]OFD Sender: No OFD packet to send [12:34:03]OFD Sender: No OFD packet to send [12:34:08]OFD Sender: No OFD packet to send [12:34:13]OFD Sender: No OFD packet to send [12:34:18]OFD Sender: No OFD packet to send [12:34:23]OFD Sender: No OFD packet to send [12:34:28]OFD Sender: No OFD packet to send [12:34:33]OFD Sender: No OFD packet to send [12:34:38]OFD Sender: No OFD packet to send [12:34:43]OFD Sender: No OFD packet to send [12:34:48]OFD Sender: No OFD packet to send [12:34:53]OFD Sender: No OFD packet to send [12:34:58]OFD Sender: No OFD packet to send [12:35:03]OFD Sender: No OFD packet to send [12:35:08]OFD Sender: No OFD packet to send [12:35:13]OFD Sender: No OFD packet to send [12:35:18]OFD Sender: No OFD packet to send [12:35:23]OFD Sender: No OFD packet to send [12:35:28]OFD Sender: No OFD packet to send [12:35:33]OFD Sender: No OFD packet to send [12:35:38]OFD Sender: No OFD packet to send [12:35:43]OFD Sender: No OFD packet to send [12:35:48]OFD Sender: No OFD packet to send [12:35:53]OFD Sender: No OFD packet to send [12:35:58]OFD Sender: No OFD packet to send [12:36:03]OFD Sender: No OFD packet to send [12:36:08]OFD Sender: No OFD packet to send [12:36:13]OFD Sender: No OFD packet to send [12:36:18]OFD Sender: No OFD packet to send [12:36:23]OFD Sender: No OFD packet to send [12:36:28]OFD Sender: No OFD packet to send [12:36:33]OFD Sender: No OFD packet to send [12:36:38]OFD Sender: No OFD packet to send [12:36:43]OFD Sender: No OFD packet to send [12:36:48]OFD Sender: No OFD packet to send [12:36:53]OFD Sender: No OFD packet to send [12:36:58]OFD Sender: No OFD packet to send [12:37:03]OFD Sender: No OFD packet to send [12:37:05]accept exits with 7 [12:37:05]New connection [12:37:05]New thread 3067616612 created [12:37:05]Thread 3067473252 joined [12:37:05]Waiting for new connection... [12:37:05] Sock 7.Parse request [12:37:05]Sock 7.Check first char [12:37:05]Sock 7.First char is OK [12:37:05]request: POST /json_proto HTTP/1.0 [12:37:05]Method: POST [12:37:05]URL: /json_proto [12:37:05]Method is POST - this is cgi request [12:37:05]url: /json_proto [12:37:05]query_string will be loaded in cgi processing [12:37:05]execute_cgi json_proto POST (null) [12:37:05]execute_cgi path=json_proto method=POST [12:37:05]POST find Content-Length [12:37:05]Host: 172.17.56.4:8080 [12:37:05]Content-Length: 677 [12:37:05]Content-Type: application/json [12:37:05] [12:37:05]POST finish read [12:37:05]Found Content-Length = 677 [12:37:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459038", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:37:05]execute_script... [12:37: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)459038", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:37:05]POST & json_proto [12:37:05]process_json_proto [12:37:05]json parsed OK: [12:37:05]protocol is kg_v1.0 [12:37:05]action value=close_receipt [12:37:05]process_action close_receipt [12:37:05]cmd_close_receipt [12:37:05]MH_GetDate [12:37:05]Write to MH i2c: F0 00 00 18 19 20 [12:37:05]Write i2c OK [12:37:05]MH_I2C_Read... [12:37:05]Read from MH i2c: F0 [12:37:05]MH_I2C_Read... [12:37:05]Read from MH i2c: F0 09 00 [12:37:05]MH_I2C_Read... [12:37:05]Read from MH i2c: F0 09 00 18 19 00 72 C6 93 66 C9 DC B2 64 15 [12:37:05]GetLastDocTimeStamp 1720960141 [12:37:05]current date 1720960626 [12:37:05]FM_GetShiftState [12:37:05]SAM_PROTO_GetShiftState [12:37:05]wFMCommunicate request_size=4 [12:37:05]MH_SAM_APDU [12:37:05]CAPDU: 80 13 01 00 [12:37:05]Write to MH i2c: E2 08 00 19 19 80 13 01 00 00 00 00 00 AF [12:37:05]Write i2c OK [12:37:05]MH_I2C_Read... [12:37:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:05]Read from MH i2c: E2 [12:37:05]MH_I2C_Read... [12:37:05]Read from MH i2c: E2 0E 00 [12:37:05]MH_I2C_Read... [12:37:05]Read from MH i2c: E2 0E 00 19 19 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 2F [12:37:05]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [12:37:05]wFMCommunicate OK [12:37:05]SAM_PROTO_GetShiftState done [12:37:05]FM_GetShiftState done [12:37:05]opened in 1720917342 [12:37:05]opened+sec_in_day 1721003742 [12:37:05]quantity*price = 50008 [12:37:05]sum+1 = 50009 [12:37:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 137 14.07.2024 12:37 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164939 ФПД: 144461304141908 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T123706&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164939&fm=144461304141908&tin=02508201610067®Number=0000000000090829&sum=50000 [12:37:06]StoreToDocumentArchive [12:37:06]shift 447 fd 164939 [12:37:06]save to /storage/0447/doc_00164939 [12:37:06]save last doc name /storage/0447/doc_00164939 to /storage/kkm_last_doc_name [12:37:06]save OK [12:37:06]Clear old archive folders... [12:37:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:37:06]tlvbuf is 007BC1C0 [12:37:06]SAM_PROTO_ClearQueue [12:37:06]wFMCommunicate request_size=4 [12:37:06]MH_SAM_APDU [12:37:06]CAPDU: 80 09 00 00 [12:37:06]Write to MH i2c: E2 08 00 26 19 80 09 00 00 00 00 00 00 B1 [12:37:06]Write i2c OK [12:37:06]MH_I2C_Read... [12:37:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:37:06]Read from MH i2c: E2 [12:37:06]MH_I2C_Read... [12:37:06]Read from MH i2c: E2 03 00 [12:37:06]MH_I2C_Read... [12:37:06]Read from MH i2c: E2 03 00 26 19 00 90 00 B3 [12:37:06]RAPDU: 90 00 [12:37:06]wFMCommunicate OK [12:37:06]SAM_PROTO_ClearQueue done [12:37:06]KKMCreateOFDPacket [12:37:06]OFDProtocolAddRootSTLVToBuf [12:37:06]FM_MakeSignedData [12:37:06]FM_MakeSignedData [12:37:06]SAM_PROTO_SignData [12:37:06]wFMCommunicate request_size=4 [12:37:06]MH_SAM_APDU [12:37:06]CAPDU: 80 0D 01 02 [12:37:06]Write to MH i2c: E2 08 00 27 19 80 0D 01 02 00 00 00 00 B9 [12:37:06]Write i2c OK [12:37:06]MH_I2C_Read... [12:37:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:37:06]Read from MH i2c: E2 [12:37:06]MH_I2C_Read... [12:37:06]Read from MH i2c: E2 03 00 [12:37:06]MH_I2C_Read... [12:37:06]Read from MH i2c: E2 03 00 27 19 00 90 00 B4 [12:37:06]RAPDU: 90 00 [12:37:06]wFMCommunicate OK [12:37:06]wFMCommunicate request_size=255 [12:37:06]MH_SAM_APDU [12:37:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 89 00 00 00 F4 03 04 00 72 C6 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4B 84 02 00 35 04 06 00 83 [12:37:06]Write to MH i2c: E2 02 01 28 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 89 00 00 00 F4 03 04 00 72 C6 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4B 84 02 00 35 04 06 00 83 00 00 00 [12:37:06]Write i2c OK [12:37:06]MH_I2C_Read... [12:37:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:07]Read from MH i2c: E2 [12:37:07]MH_I2C_Read... [12:37:07]Read from MH i2c: E2 03 00 [12:37:07]MH_I2C_Read... [12:37:07]Read from MH i2c: E2 03 00 28 19 00 90 00 B5 [12:37:07]RAPDU: 90 00 [12:37:07]wFMCommunicate OK [12:37:07]wFMCommunicate request_size=10 [12:37:07]MH_SAM_APDU [12:37:07]CAPDU: 80 0D 02 02 05 63 04 B7 98 54 [12:37:07]Write to MH i2c: E2 0D 00 29 19 80 0D 02 02 05 00 63 04 B7 98 54 00 00 D0 [12:37:07]Write i2c OK [12:37:07]MH_I2C_Read... [12:37:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:07]Read from MH i2c: E2 [12:37:07]MH_I2C_Read... [12:37:07]Read from MH i2c: E2 03 00 [12:37:07]MH_I2C_Read... [12:37:07]Read from MH i2c: E2 03 00 29 19 00 90 00 B6 [12:37:07]RAPDU: 90 00 [12:37:07]wFMCommunicate OK [12:37:07]wFMCommunicate request_size=4 [12:37:07]MH_SAM_APDU [12:37:07]CAPDU: 80 0D 03 02 [12:37:07]Write to MH i2c: E2 08 00 2A 19 80 0D 03 02 00 00 00 00 BE [12:37:07]Write i2c OK [12:37:07]MH_I2C_Read... [12:37:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:37:07]Read from MH i2c: E2 [12:37:07]MH_I2C_Read... [12:37:07]Read from MH i2c: E2 0B 00 [12:37:07]MH_I2C_Read... [12:37:07]Read from MH i2c: E2 0B 00 2A 19 00 DA 72 00 69 E8 BF CF 65 90 00 4F [12:37:07]RAPDU: DA 72 00 69 E8 BF CF 65 90 00 [12:37:07]wFMCommunicate OK [12:37:07]SAM_PROTO_SignData done [12:37:07]FM_MakeSignedData done [12:37:07]CreateOFDProtocolMessage [12:37:07]wFMCommunicate request_size=4 [12:37:07]MH_SAM_APDU [12:37:07]CAPDU: 80 11 00 00 [12:37:07]Write to MH i2c: E2 08 00 2B 19 80 11 00 00 00 00 00 00 BE [12:37:07]Write i2c OK [12:37:07]MH_I2C_Read... [12:37:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:07]Read from MH i2c: E2 [12:37:07]MH_I2C_Read... [12:37:07]Read from MH i2c: E2 17 00 [12:37:07]MH_I2C_Read... [12:37:07]Read from MH i2c: E2 17 00 2B 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 14 [12:37:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:37:07]wFMCommunicate OK [12:37:07]CreateOFDProtocolMessage done [12:37:07]OFDSenderStorePacket 164939 [12:37:07]StoreOFDPacket docnum=164939 [12:37:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 E9 CB 07 01 36 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 89 00 00 00 F4 03 04 00 72 C6 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4B 84 02 00 35 04 06 00 83 63 04 B7 98 54 DA 72 00 69 E8 BF CF 65 [12:37:07]CheckFolder [12:37:07]dirname=/storage/ofd_packets [12:37:07]CheckFolder done [12:37:07]ProducePacketName [12:37:07]name=ofd_packets/00164939 [12:37:07]NVStorageSaveData ofd_packets/00164939 [12:37:07]File name is /storage/ofd_packets/00164939 [12:37:07]Write 301 bytes [12:37:07]NVStorageSaveData done [12:37:07]OFDSenderStorePacket done [12:37:07]KKMCreateOFDPacket done [12:37:07]NVStorageSaveData kkm_last_timestamp [12:37:07]File name is /storage/kkm_last_timestamp [12:37:07]Write 4 bytes [12:37:07]NVStorageSaveData done [12:37:07]ExternCall_PrintAddStr [12:37:07]wPrintStart [12:37:07]Write to MH i2c: 01 00 00 2C 19 45 [12:37:07]Write i2c OK [12:37:07]MH_I2C_Read... [12:37:07]Read from MH i2c: 01 [12:37:07]MH_I2C_Read... [12:37:07]Read from MH i2c: 01 07 00 [12:37:07]MH_I2C_Read... [12:37:07]Read from MH i2c: 01 07 00 2C 19 00 00 00 00 00 FF 0F 5A [12:37:07]RasterBufferAndPrint [12:37:07]line Счет N : (1)459038 [12:37:07]line ИНН: 02508201610067 [12:37:07]line Контрольно-Кассовый Чек [12:37:07]line ПРОДАЖА [12:37:07]line ТРК (МРК, ГНК) : 22 [12:37:07]line Товар: 2710124130 [12:37:07]line Аи-92-К-5 [12:37:07]line 7.600 * 65.80 [12:37:07]line = 500.08 [12:37:07]line НДС 12% НСП 1% [12:37:07]line > о реализуемом товаре [12:37:07]line ОКРУГЛЕНИЕ: -0.08 [12:37:07]line ИТОГО: 500.00 [12:37:07]line Внесено: 500.00 [12:37:07]line СДАЧА: 0.00 [12:37:07]line НСП 1% : 4.42 [12:37:07]line НДС 12% : 53.11 [12:37:07]line Наличными: 500.00 [12:37:07]line Безнал.: 0.00 [12:37:07]line Место: АЗС № 72 "Партнер Нефть" [12:37:07]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:37:07]line СНО: Общий режим [12:37:07]line Чек 137 14.07.2024 12:37 [12:37:07]line Смена: 447 ФФД: 1.0 [12:37:07]line ЗНМ: 0300000160 [12:37:07]line РНМ: 0000000000090829 [12:37:07]line Версия ККМ: 001 [12:37:07]line ФМ: 0000000000874718 [12:37:07]line ФД: 164939 [12:37:07]line ФПД: 144461304141908 [12:37:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T123706&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164939&fm=144461304141908&tin=02508201610067®Number=0000000000090829&sum=50000 [12:37:07]OFD Sender: Processing packet 164939 [packets to send 104, broken 103] [12:37:07]ProducePacketName [12:37:07]name=ofd_packets/00164939 [12:37:07]OFD Sender: To server: pG, [12:37:07]CommunicateWithHost lk.salyk.kg:30040 [12:37:07]ConnectInit lk.salyk.kg [12:37:07]written 0, free lines is 4095 [12:37:07]Connected sock=10 [12:37:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 E9 CB 07 01 36 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 89 00 00 00 F4 03 04 00 72 C6 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4B 84 02 00 35 04 06 00 83 63 04 B7 98 54 DA 72 00 69 E8 BF CF 65 [12:37:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 9A 0C 47 00 1A 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 38 37 34 37 31 38 10 04 04 00 4B 84 02 00 F4 03 04 00 00 6D 93 66 B6 04 01 00 00 2D 87 FF DD B0 AB B4 CF [12:37:07]CommunicateWithHost err = 0 [12:37:07]CheckOFDResponse [12:37:07]1017 (14) - 77093643461234 [12:37:07]1041 (16) - 0000000000874718 [12:37:07]1040 (4) - 164939 [12:37:07]1012 (4) - 14.07.2024 06:15 [12:37:07]1206 (1) - 0 [12:37:07]OFD Sender: Remove packet 164939 [12:37:07]ProducePacketName [12:37:07]name=ofd_packets/00164939 [12:37:07]NVStorageDeleteData [12:37:07]Write to MH i2c: 01 00 00 56 19 6F [12:37:07]Write i2c OK [12:37:07]MH_I2C_Read... [12:37:07]Read from MH i2c: 01 [12:37:07]MH_I2C_Read... [12:37:07]Read from MH i2c: 01 07 00 [12:37:07]MH_I2C_Read... [12:37:07]Read from MH i2c: 01 07 00 56 19 00 00 00 00 00 FD 0C 7F [12:37:07]RasterBufferAndPrint [12:37:07]line [12:37:07]line [12:37:07]line [12:37:07]line [12:37:07]line [12:37:07]written 0, free lines is 3331 [12:37:07]MH_Cut [12:37:07]Write to MH i2c: D1 01 00 5D 19 01 48 [12:37:07]Write i2c OK [12:37:07]MH_I2C_Read... [12:37:07]Read from MH i2c: D1 [12:37:07]MH_I2C_Read... [12:37:07]Read from MH i2c: D1 01 00 [12:37:07]MH_I2C_Read... [12:37:07]Read from MH i2c: D1 01 00 5D 19 00 47 [12:37:07]Write to MH i2c: 01 00 00 5E 19 77 [12:37:07]Write i2c OK [12:37:07]MH_I2C_Read... [12:37:08]OFD Sender: No OFD packet to send [12:37:08]*** Cut start [12:37:08]*** Partial cut [12:37:08]*** CUTSNS_PIN = 1 [12:37:08]*** CUTSNS_PIN = 0 [12:37:08]*** Brake cut motor [12:37:09]Read from MH i2c: 01 [12:37:09]MH_I2C_Read... [12:37:09]*** Stop cut motor [12:37:09]*** Cut end [12:37:09]Read from MH i2c: 01 07 00 [12:37:09]MH_I2C_Read... [12:37:09]Read from MH i2c: 01 07 00 5E 19 00 00 00 00 00 FF 0F 8C [12:37:09]process_action close_receipt done [12:37:09]requested_data is exist [12:37:09]produce_requested_data [12:37:09]requested_item fm.sn is exist - process it [12:37:09]wFMCommunicate request_size=4 [12:37:09]MH_SAM_APDU [12:37:09]CAPDU: 80 11 00 00 [12:37:09]Write to MH i2c: E2 08 00 5F 19 80 11 00 00 00 00 00 00 F2 [12:37:09]Write i2c OK [12:37:09]MH_I2C_Read... [12:37:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:09]Read from MH i2c: E2 [12:37:09]MH_I2C_Read... [12:37:09]Read from MH i2c: E2 17 00 [12:37:09]MH_I2C_Read... [12:37:09]Read from MH i2c: E2 17 00 5F 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 48 [12:37:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:37:09]wFMCommunicate OK [12:37:09]requested_item fd.num is exist - process it [12:37:09]SAM_PROTO_GetFieldsCounters [12:37:09]wFMCommunicate request_size=4 [12:37:09]MH_SAM_APDU [12:37:09]CAPDU: 80 13 00 00 [12:37:09]Write to MH i2c: E2 08 00 60 19 80 13 00 00 00 00 00 00 F5 [12:37:09]Write i2c OK [12:37:09]MH_I2C_Read... [12:37:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:37:09]Read from MH i2c: E2 [12:37:09]MH_I2C_Read... [12:37:09]Read from MH i2c: E2 62 00 [12:37:09]MH_I2C_Read... [12:37:09]Read from MH i2c: E2 62 00 60 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 4B 84 02 00 0E 04 04 00 BF 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 48 [12:37:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 4B 84 02 00 0E 04 04 00 BF 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 [12:37:09]wFMCommunicate OK [12:37:09]SAM_PROTO_GetFieldsCounters done [12:37:09]requested_item shift.num is exist - process it [12:37:09]requested_item shift.opened is exist - process it [12:37:09]req_shift_opened [12:37:09]FM_GetShiftState [12:37:09]SAM_PROTO_GetShiftState [12:37:09]wFMCommunicate request_size=4 [12:37:09]MH_SAM_APDU [12:37:09]CAPDU: 80 13 01 00 [12:37:09]Write to MH i2c: E2 08 00 61 19 80 13 01 00 00 00 00 00 F7 [12:37:09]Write i2c OK [12:37:09]MH_I2C_Read... [12:37:09]Read from MH i2c: E2 [12:37:09]MH_I2C_Read... [12:37:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:09]Read from MH i2c: E2 0E 00 [12:37:09]MH_I2C_Read... [12:37:09]Read from MH i2c: E2 0E 00 61 19 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 77 [12:37:09]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [12:37:09]wFMCommunicate OK [12:37:09]SAM_PROTO_GetShiftState done [12:37:09]FM_GetShiftState done [12:37:09]req_shift_opened done [12:37:09]requested_item shift.open_date is exist - process it [12:37:09]req_shift_open_date [12:37:09]req_shift_open_date done [12:37:09]produce_requested_data done [12:37:09]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164939,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [12:37:09]process_action_free close_receipt [12:37:09]json_value_free [12:37:09]json_value_free done [12:37:09]process_json_proto returns [12:37:09]Send response to host [12:37:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164939,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [12:37:09]free response buf [12:37:09]execute_script done [12:37:09]execute_script returns [12:37:09]free content buf [12:37:09]Sock 7.Close socket [12:37:09]Sock 7.Thread stoped [12:37:13]OFD Sender: No OFD packet to send [12:37:18]OFD Sender: No OFD packet to send [12:37:23]OFD Sender: No OFD packet to send [12:37:28]OFD Sender: No OFD packet to send [12:37:33]OFD Sender: No OFD packet to send [12:37:38]OFD Sender: No OFD packet to send [12:37:43]OFD Sender: No OFD packet to send [12:37:48]OFD Sender: No OFD packet to send [12:37:53]OFD Sender: No OFD packet to send [12:37:58]OFD Sender: No OFD packet to send [12:38:03]OFD Sender: No OFD packet to send [12:38:08]OFD Sender: No OFD packet to send [12:38:13]OFD Sender: No OFD packet to send [12:38:18]OFD Sender: No OFD packet to send [12:38:23]OFD Sender: No OFD packet to send [12:38:28]OFD Sender: No OFD packet to send [12:38:33]OFD Sender: No OFD packet to send [12:38:38]OFD Sender: No OFD packet to send [12:38:43]OFD Sender: No OFD packet to send [12:38:48]OFD Sender: No OFD packet to send [12:38:53]OFD Sender: No OFD packet to send [12:38:53]accept exits with 9 [12:38:53]New connection [12:38:53]New thread 3067473252 created [12:38:53]Thread 3067616612 joined [12:38:53]Waiting for new connection... [12:38:53] Sock 9.Parse request [12:38:53]Sock 9.Check first char [12:38:53]Sock 9.First char is OK [12:38:53]request: POST /json_proto HTTP/1.0 [12:38:53]Method: POST [12:38:53]URL: /json_proto [12:38:53]Method is POST - this is cgi request [12:38:53]url: /json_proto [12:38:53]query_string will be loaded in cgi processing [12:38:53]execute_cgi json_proto POST (null) [12:38:53]execute_cgi path=json_proto method=POST [12:38:53]POST find Content-Length [12:38:53]Host: 172.17.56.4:8080 [12:38:53]Content-Length: 679 [12:38:53]Content-Type: application/json [12:38:53] [12:38:53]POST finish read [12:38:53]Found Content-Length = 679 [12:38:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459039", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 27.820, "sum" : 2000.26, "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:38:53]execute_script... [12:38: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)459039", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 27.820, "sum" : 2000.26, "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:38:53]POST & json_proto [12:38:53]process_json_proto [12:38:53]json parsed OK: [12:38:53]protocol is kg_v1.0 [12:38:53]action value=close_receipt [12:38:53]process_action close_receipt [12:38:53]cmd_close_receipt [12:38:53]MH_GetDate [12:38:53]Write to MH i2c: F0 00 00 62 19 6A [12:38:53]Write i2c OK [12:38:53]MH_I2C_Read... [12:38:53]Read from MH i2c: F0 [12:38:53]MH_I2C_Read... [12:38:53]Read from MH i2c: F0 09 00 [12:38:53]MH_I2C_Read... [12:38:53]Read from MH i2c: F0 09 00 62 19 00 DE C6 93 66 C9 DC B2 64 CB [12:38:53]GetLastDocTimeStamp 1720960626 [12:38:53]current date 1720960734 [12:38:53]FM_GetShiftState [12:38:53]SAM_PROTO_GetShiftState [12:38:53]wFMCommunicate request_size=4 [12:38:53]MH_SAM_APDU [12:38:53]CAPDU: 80 13 01 00 [12:38:53]Write to MH i2c: E2 08 00 63 19 80 13 01 00 00 00 00 00 F9 [12:38:53]Write i2c OK [12:38:53]MH_I2C_Read... [12:38:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:53]Read from MH i2c: E2 [12:38:53]MH_I2C_Read... [12:38:53]Read from MH i2c: E2 0E 00 [12:38:53]MH_I2C_Read... [12:38:53]Read from MH i2c: E2 0E 00 63 19 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 79 [12:38:53]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [12:38:53]wFMCommunicate OK [12:38:53]SAM_PROTO_GetShiftState done [12:38:53]FM_GetShiftState done [12:38:53]opened in 1720917342 [12:38:53]opened+sec_in_day 1721003742 [12:38:53]quantity*price = 200025 [12:38:53]sum+1 = 200027 [12:38:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 138 14.07.2024 12:38 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164940 ФПД: 19372768927984 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T123854&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164940&fm=19372768927984&tin=02508201610067®Number=0000000000090829&sum=200000 [12:38:54]StoreToDocumentArchive [12:38:54]shift 447 fd 164940 [12:38:54]save to /storage/0447/doc_00164940 [12:38:54]save last doc name /storage/0447/doc_00164940 to /storage/kkm_last_doc_name [12:38:54]save OK [12:38:54]Clear old archive folders... [12:38:54]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:38:54]tlvbuf is B6FF74D0 [12:38:54]SAM_PROTO_ClearQueue [12:38:54]wFMCommunicate request_size=4 [12:38:54]MH_SAM_APDU [12:38:54]CAPDU: 80 09 00 00 [12:38:54]Write to MH i2c: E2 08 00 70 19 80 09 00 00 00 00 00 00 FB [12:38:54]Write i2c OK [12:38:54]MH_I2C_Read... [12:38:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:38:54]Read from MH i2c: E2 [12:38:54]MH_I2C_Read... [12:38:54]Read from MH i2c: E2 03 00 [12:38:54]MH_I2C_Read... [12:38:54]Read from MH i2c: E2 03 00 70 19 00 90 00 FD [12:38:54]RAPDU: 90 00 [12:38:54]wFMCommunicate OK [12:38:54]SAM_PROTO_ClearQueue done [12:38:54]KKMCreateOFDPacket [12:38:54]OFDProtocolAddRootSTLVToBuf [12:38:54]FM_MakeSignedData [12:38:54]FM_MakeSignedData [12:38:54]SAM_PROTO_SignData [12:38:54]wFMCommunicate request_size=4 [12:38:54]MH_SAM_APDU [12:38:54]CAPDU: 80 0D 01 02 [12:38:54]Write to MH i2c: E2 08 00 71 19 80 0D 01 02 00 00 00 00 03 [12:38:54]Write i2c OK [12:38:54]MH_I2C_Read... [12:38:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:38:54]Read from MH i2c: E2 [12:38:54]MH_I2C_Read... [12:38:54]Read from MH i2c: E2 03 00 [12:38:54]MH_I2C_Read... [12:38:54]Read from MH i2c: E2 03 00 71 19 00 90 00 FE [12:38:54]RAPDU: 90 00 [12:38:54]wFMCommunicate OK [12:38:54]wFMCommunicate request_size=255 [12:38:54]MH_SAM_APDU [12:38: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 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 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 DE C6 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4C 84 02 00 35 04 06 00 11 9E 93 02 [12:38:54]Write to MH i2c: E2 02 01 72 19 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 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 DE C6 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4C 84 02 00 35 04 06 00 11 9E 93 02 00 00 F3 [12:38:54]Write i2c OK [12:38:54]MH_I2C_Read... [12:38:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:55]Read from MH i2c: E2 [12:38:55]MH_I2C_Read... [12:38:55]Read from MH i2c: E2 03 00 [12:38:55]MH_I2C_Read... [12:38:55]Read from MH i2c: E2 03 00 72 19 00 90 00 FF [12:38:55]RAPDU: 90 00 [12:38:55]wFMCommunicate OK [12:38:55]wFMCommunicate request_size=7 [12:38:55]MH_SAM_APDU [12:38:55]CAPDU: 80 0D 02 02 02 A0 F0 [12:38:55]Write to MH i2c: E2 0A 00 73 19 80 0D 02 02 02 00 A0 F0 00 00 9A [12:38:55]Write i2c OK [12:38:55]MH_I2C_Read... [12:38:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:55]Read from MH i2c: E2 [12:38:55]MH_I2C_Read... [12:38:55]Read from MH i2c: E2 03 00 [12:38:55]MH_I2C_Read... [12:38:55]Read from MH i2c: E2 03 00 73 19 00 90 00 00 [12:38:55]RAPDU: 90 00 [12:38:55]wFMCommunicate OK [12:38:55]wFMCommunicate request_size=4 [12:38:55]MH_SAM_APDU [12:38:55]CAPDU: 80 0D 03 02 [12:38:55]Write to MH i2c: E2 08 00 74 19 80 0D 03 02 00 00 00 00 08 [12:38:55]Write i2c OK [12:38:55]MH_I2C_Read... [12:38:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:38:55]Read from MH i2c: E2 [12:38:55]MH_I2C_Read... [12:38:55]Read from MH i2c: E2 0B 00 [12:38:55]MH_I2C_Read... [12:38:55]Read from MH i2c: E2 0B 00 74 19 00 45 D8 32 8C 15 5F 4E 4E 90 00 F4 [12:38:55]RAPDU: 45 D8 32 8C 15 5F 4E 4E 90 00 [12:38:55]wFMCommunicate OK [12:38:55]SAM_PROTO_SignData done [12:38:55]FM_MakeSignedData done [12:38:55]CreateOFDProtocolMessage [12:38:55]wFMCommunicate request_size=4 [12:38:55]MH_SAM_APDU [12:38:55]CAPDU: 80 11 00 00 [12:38:55]Write to MH i2c: E2 08 00 75 19 80 11 00 00 00 00 00 00 08 [12:38:55]Write i2c OK [12:38:55]MH_I2C_Read... [12:38:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:55]Read from MH i2c: E2 [12:38:55]MH_I2C_Read... [12:38:55]Read from MH i2c: E2 17 00 [12:38:55]MH_I2C_Read... [12:38:55]Read from MH i2c: E2 17 00 75 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 5E [12:38:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:38:55]wFMCommunicate OK [12:38:55]CreateOFDProtocolMessage done [12:38:55]OFDSenderStorePacket 164940 [12:38:55]StoreOFDPacket docnum=164940 [12:38:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 A3 22 04 01 AD 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 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 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 DE C6 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4C 84 02 00 35 04 06 00 11 9E 93 02 A0 F0 45 D8 32 8C 15 5F 4E 4E [12:38:55]CheckFolder [12:38:55]dirname=/storage/ofd_packets [12:38:55]CheckFolder done [12:38:55]ProducePacketName [12:38:55]name=ofd_packets/00164940 [12:38:55]NVStorageSaveData ofd_packets/00164940 [12:38:55]File name is /storage/ofd_packets/00164940 [12:38:55]Write 298 bytes [12:38:55]NVStorageSaveData done [12:38:55]OFDSenderStorePacket done [12:38:55]KKMCreateOFDPacket done [12:38:55]NVStorageSaveData kkm_last_timestamp [12:38:55]File name is /storage/kkm_last_timestamp [12:38:55]Write 4 bytes [12:38:55]NVStorageSaveData done [12:38:55]ExternCall_PrintAddStr [12:38:55]wPrintStart [12:38:55]Write to MH i2c: 01 00 00 76 19 8F [12:38:55]Write i2c OK [12:38:55]MH_I2C_Read... [12:38:55]Read from MH i2c: 01 [12:38:55]MH_I2C_Read... [12:38:55]Read from MH i2c: 01 07 00 [12:38:55]MH_I2C_Read... [12:38:55]Read from MH i2c: 01 07 00 76 19 00 00 00 00 00 FF 0F A4 [12:38:55]RasterBufferAndPrint [12:38:55]line Счет N : (1)459039 [12:38:55]line ИНН: 02508201610067 [12:38:55]line Контрольно-Кассовый Чек [12:38:55]line ПРОДАЖА [12:38:55]line ТРК (МРК, ГНК) : 21 [12:38:55]line Товар: 2710194210 [12:38:55]line ДТ-К-5 [12:38:55]line 27.820 * 71.90 [12:38:55]line = 2000.26 [12:38:55]line НДС 12% НСП 1% [12:38:55]line > о реализуемом товаре [12:38:55]line ОКРУГЛЕНИЕ: -0.26 [12:38:55]line ИТОГО: 2000.00 [12:38:55]line Внесено: 2000.00 [12:38:55]line СДАЧА: 0.00 [12:38:55]line НСП 1% : 17.70 [12:38:55]line НДС 12% : 212.42 [12:38:55]line Наличными: 2000.00 [12:38:55]line Безнал.: 0.00 [12:38:55]line Место: АЗС № 72 "Партнер Нефть" [12:38:55]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:38:55]line СНО: Общий режим [12:38:55]line Чек 138 14.07.2024 12:38 [12:38:55]line Смена: 447 ФФД: 1.0 [12:38:55]line ЗНМ: 0300000160 [12:38:55]line РНМ: 0000000000090829 [12:38:55]line Версия ККМ: 001 [12:38:55]line ФМ: 0000000000874718 [12:38:55]line ФД: 164940 [12:38:55]line ФПД: 19372768927984 [12:38:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T123854&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164940&fm=19372768927984&tin=02508201610067®Number=0000000000090829&sum=200000 [12:38:55]OFD Sender: Processing packet 164940 [packets to send 104, broken 103] [12:38:55]ProducePacketName [12:38:55]name=ofd_packets/00164940 [12:38:55]OFD Sender: To server: pG, [12:38:55]CommunicateWithHost lk.salyk.kg:30040 [12:38:55]ConnectInit lk.salyk.kg [12:38:55]written 0, free lines is 4095 [12:38:55]Connected sock=10 [12:38:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 A3 22 04 01 AD 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 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 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 DE C6 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4C 84 02 00 35 04 06 00 11 9E 93 02 A0 F0 45 D8 32 8C 15 5F 4E 4E [12:38:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 A6 DD 47 00 12 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4C 84 02 00 F4 03 04 00 6C 6D 93 66 B6 04 01 00 00 E4 7D 1F 4B 3B 51 BF 0F [12:38:55]CommunicateWithHost err = 0 [12:38:55]CheckOFDResponse [12:38:55]1017 (14) - 77093643461234 [12:38:55]1041 (16) - 0000000000874718 [12:38:55]1040 (4) - 164940 [12:38:55]1012 (4) - 14.07.2024 06:17 [12:38:55]1206 (1) - 0 [12:38:55]OFD Sender: Remove packet 164940 [12:38:55]ProducePacketName [12:38:55]name=ofd_packets/00164940 [12:38:55]NVStorageDeleteData [12:38:56]Write to MH i2c: 01 00 00 A0 19 B9 [12:38:56]Write i2c OK [12:38:56]MH_I2C_Read... [12:38:56]Read from MH i2c: 01 [12:38:56]MH_I2C_Read... [12:38:56]Read from MH i2c: 01 07 00 [12:38:56]MH_I2C_Read... [12:38:56]Read from MH i2c: 01 07 00 A0 19 00 00 00 00 00 07 0D D4 [12:38:56]RasterBufferAndPrint [12:38:56]line [12:38:56]line [12:38:56]line [12:38:56]line [12:38:56]line [12:38:56]written 0, free lines is 3341 [12:38:56]MH_Cut [12:38:56]Write to MH i2c: D1 01 00 A7 19 01 92 [12:38:56]Write i2c OK [12:38:56]MH_I2C_Read... [12:38:56]Read from MH i2c: D1 [12:38:56]MH_I2C_Read... [12:38:56]Read from MH i2c: D1 01 00 [12:38:56]MH_I2C_Read... [12:38:56]Read from MH i2c: D1 01 00 A7 19 00 91 [12:38:56]Write to MH i2c: 01 00 00 A8 19 C1 [12:38:56]Write i2c OK [12:38:56]MH_I2C_Read... [12:38:56]OFD Sender: No OFD packet to send [12:38:56]*** Cut start [12:38:56]*** Partial cut [12:38:56]*** CUTSNS_PIN = 1 [12:38:56]*** CUTSNS_PIN = 0 [12:38:57]*** Brake cut motor [12:38:57]Read from MH i2c: 01 [12:38:57]MH_I2C_Read... [12:38:57]*** Stop cut motor [12:38:57]*** Cut end [12:38:57]Read from MH i2c: 01 07 00 [12:38:57]MH_I2C_Read... [12:38:57]Read from MH i2c: 01 07 00 A8 19 00 00 00 00 00 FF 0F D6 [12:38:57]process_action close_receipt done [12:38:57]requested_data is exist [12:38:57]produce_requested_data [12:38:57]requested_item fm.sn is exist - process it [12:38:57]wFMCommunicate request_size=4 [12:38:57]MH_SAM_APDU [12:38:57]CAPDU: 80 11 00 00 [12:38:57]Write to MH i2c: E2 08 00 A9 19 80 11 00 00 00 00 00 00 3C [12:38:57]Write i2c OK [12:38:57]MH_I2C_Read... [12:38:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:57]Read from MH i2c: E2 [12:38:57]MH_I2C_Read... [12:38:57]Read from MH i2c: E2 17 00 [12:38:57]MH_I2C_Read... [12:38:57]Read from MH i2c: E2 17 00 A9 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 92 [12:38:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:38:57]wFMCommunicate OK [12:38:57]requested_item fd.num is exist - process it [12:38:57]SAM_PROTO_GetFieldsCounters [12:38:57]wFMCommunicate request_size=4 [12:38:57]MH_SAM_APDU [12:38:57]CAPDU: 80 13 00 00 [12:38:57]Write to MH i2c: E2 08 00 AA 19 80 13 00 00 00 00 00 00 3F [12:38:57]Write i2c OK [12:38:57]MH_I2C_Read... [12:38:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:38:57]Read from MH i2c: E2 [12:38:57]MH_I2C_Read... [12:38:57]Read from MH i2c: E2 62 00 [12:38:57]MH_I2C_Read... [12:38:57]Read from MH i2c: E2 62 00 AA 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 4C 84 02 00 0E 04 04 00 BF 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 96 [12:38:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 4C 84 02 00 0E 04 04 00 BF 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 [12:38:57]wFMCommunicate OK [12:38:57]SAM_PROTO_GetFieldsCounters done [12:38:57]requested_item shift.num is exist - process it [12:38:57]requested_item shift.opened is exist - process it [12:38:57]req_shift_opened [12:38:57]FM_GetShiftState [12:38:57]SAM_PROTO_GetShiftState [12:38:57]wFMCommunicate request_size=4 [12:38:57]MH_SAM_APDU [12:38:57]CAPDU: 80 13 01 00 [12:38:57]Write to MH i2c: E2 08 00 AB 19 80 13 01 00 00 00 00 00 41 [12:38:57]Write i2c OK [12:38:57]MH_I2C_Read... [12:38:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:57]Read from MH i2c: E2 [12:38:57]MH_I2C_Read... [12:38:57]Read from MH i2c: E2 0E 00 [12:38:57]MH_I2C_Read... [12:38:57]Read from MH i2c: E2 0E 00 AB 19 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 C1 [12:38:57]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [12:38:57]wFMCommunicate OK [12:38:57]SAM_PROTO_GetShiftState done [12:38:57]FM_GetShiftState done [12:38:57]req_shift_opened done [12:38:57]requested_item shift.open_date is exist - process it [12:38:57]req_shift_open_date [12:38:57]req_shift_open_date done [12:38:57]produce_requested_data done [12:38:57]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164940,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [12:38:57]process_action_free close_receipt [12:38:57]json_value_free [12:38:57]json_value_free done [12:38:57]process_json_proto returns [12:38:57]Send response to host [12:38:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164940,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [12:38:57]free response buf [12:38:57]execute_script done [12:38:57]execute_script returns [12:38:57]free content buf [12:38:57]Sock 9.Close socket [12:38:57]Sock 9.Thread stoped [12:39:01]OFD Sender: No OFD packet to send [12:39:06]OFD Sender: No OFD packet to send [12:39:07]accept exits with 7 [12:39:07]New connection [12:39:07]New thread 3067616612 created [12:39:07]Thread 3067473252 joined [12:39:07]Waiting for new connection... [12:39:07] Sock 7.Parse request [12:39:07]Sock 7.Check first char [12:39:07]Sock 7.First char is OK [12:39:07]request: POST /json_proto HTTP/1.0 [12:39:07]Method: POST [12:39:07]URL: /json_proto [12:39:07]Method is POST - this is cgi request [12:39:07]url: /json_proto [12:39:07]query_string will be loaded in cgi processing [12:39:07]execute_cgi json_proto POST (null) [12:39:07]execute_cgi path=json_proto method=POST [12:39:07]POST find Content-Length [12:39:07]Host: 172.17.56.4:8080 [12:39:07]Content-Length: 642 [12:39:07]Content-Type: application/json [12:39:07] [12:39:07]POST finish read [12:39:07]Found Content-Length = 642 [12:39:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459037", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 30.000, "sum" : 1974.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1974.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:39:07]execute_script... [12:39: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)459037", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 30.000, "sum" : 1974.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1974.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:39:07]POST & json_proto [12:39:07]process_json_proto [12:39:07]json parsed OK: [12:39:07]protocol is kg_v1.0 [12:39:07]action value=close_receipt [12:39:07]process_action close_receipt [12:39:07]cmd_close_receipt [12:39:07]MH_GetDate [12:39:07]Write to MH i2c: F0 00 00 AC 19 B4 [12:39:07]Write i2c OK [12:39:07]MH_I2C_Read... [12:39:07]Read from MH i2c: F0 [12:39:07]MH_I2C_Read... [12:39:07]Read from MH i2c: F0 09 00 [12:39:07]MH_I2C_Read... [12:39:07]Read from MH i2c: F0 09 00 AC 19 00 EC C6 93 66 C9 DC B2 64 23 [12:39:07]GetLastDocTimeStamp 1720960734 [12:39:07]current date 1720960748 [12:39:07]FM_GetShiftState [12:39:07]SAM_PROTO_GetShiftState [12:39:07]wFMCommunicate request_size=4 [12:39:07]MH_SAM_APDU [12:39:07]CAPDU: 80 13 01 00 [12:39:07]Write to MH i2c: E2 08 00 AD 19 80 13 01 00 00 00 00 00 43 [12:39:07]Write i2c OK [12:39:07]MH_I2C_Read... [12:39:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:39:07]Read from MH i2c: E2 [12:39:07]MH_I2C_Read... [12:39:07]Read from MH i2c: E2 0E 00 [12:39:07]MH_I2C_Read... [12:39:07]Read from MH i2c: E2 0E 00 AD 19 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 C3 [12:39:07]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [12:39:07]wFMCommunicate OK [12:39:07]SAM_PROTO_GetShiftState done [12:39:07]FM_GetShiftState done [12:39:07]opened in 1720917342 [12:39:07]opened+sec_in_day 1721003742 [12:39:07]quantity*price = 197400 [12:39:07]sum+1 = 197401 [12:39:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1974.00 НСП 1% : 17.47 НДС 12% : 209.63 Наличными: 1974.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 139 14.07.2024 12:39 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164941 ФПД: 199413334136936 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T123908&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164941&fm=199413334136936&tin=02508201610067®Number=0000000000090829&sum=197400 [12:39:08]StoreToDocumentArchive [12:39:08]shift 447 fd 164941 [12:39:08]save to /storage/0447/doc_00164941 [12:39:08]save last doc name /storage/0447/doc_00164941 to /storage/kkm_last_doc_name [12:39:08]save OK [12:39:08]Clear old archive folders... [12:39:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:39:08]tlvbuf is 007BC1E0 [12:39:08]SAM_PROTO_ClearQueue [12:39:08]wFMCommunicate request_size=4 [12:39:08]MH_SAM_APDU [12:39:08]CAPDU: 80 09 00 00 [12:39:08]Write to MH i2c: E2 08 00 BA 19 80 09 00 00 00 00 00 00 45 [12:39:08]Write i2c OK [12:39:08]MH_I2C_Read... [12:39:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:39:08]Read from MH i2c: E2 [12:39:08]MH_I2C_Read... [12:39:08]Read from MH i2c: E2 03 00 [12:39:08]MH_I2C_Read... [12:39:08]Read from MH i2c: E2 03 00 BA 19 00 90 00 47 [12:39:08]RAPDU: 90 00 [12:39:08]wFMCommunicate OK [12:39:08]SAM_PROTO_ClearQueue done [12:39:08]KKMCreateOFDPacket [12:39:08]OFDProtocolAddRootSTLVToBuf [12:39:08]FM_MakeSignedData [12:39:08]FM_MakeSignedData [12:39:08]SAM_PROTO_SignData [12:39:08]wFMCommunicate request_size=4 [12:39:08]MH_SAM_APDU [12:39:08]CAPDU: 80 0D 01 02 [12:39:08]Write to MH i2c: E2 08 00 BB 19 80 0D 01 02 00 00 00 00 4D [12:39:08]Write i2c OK [12:39:08]MH_I2C_Read... [12:39:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:39:08]Read from MH i2c: E2 [12:39:08]MH_I2C_Read... [12:39:08]Read from MH i2c: E2 03 00 [12:39:08]MH_I2C_Read... [12:39:08]Read from MH i2c: E2 03 00 BB 19 00 90 00 48 [12:39:08]RAPDU: 90 00 [12:39:08]wFMCommunicate OK [12:39:08]wFMCommunicate request_size=255 [12:39:08]MH_SAM_APDU [12:39:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 18 03 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 03 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 51 00 00 00 00 07 04 06 00 18 03 03 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 EC C6 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4D 84 02 00 35 04 06 00 B5 [12:39:08]Write to MH i2c: E2 02 01 BC 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 18 03 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 03 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 51 00 00 00 00 07 04 06 00 18 03 03 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 EC C6 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4D 84 02 00 35 04 06 00 B5 00 00 B4 [12:39:08]Write i2c OK [12:39:08]MH_I2C_Read... [12:39:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:39:09]Read from MH i2c: E2 [12:39:09]MH_I2C_Read... [12:39:09]Read from MH i2c: E2 03 00 [12:39:09]MH_I2C_Read... [12:39:09]Read from MH i2c: E2 03 00 BC 19 00 90 00 49 [12:39:09]RAPDU: 90 00 [12:39:09]wFMCommunicate OK [12:39:09]wFMCommunicate request_size=10 [12:39:09]MH_SAM_APDU [12:39:09]CAPDU: 80 0D 02 02 05 5D 88 F1 D8 68 [12:39:09]Write to MH i2c: E2 0D 00 BD 19 80 0D 02 02 05 00 5D 88 F1 D8 68 00 00 70 [12:39:09]Write i2c OK [12:39:09]MH_I2C_Read... [12:39:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:39:09]Read from MH i2c: E2 [12:39:09]MH_I2C_Read... [12:39:09]Read from MH i2c: E2 03 00 [12:39:09]MH_I2C_Read... [12:39:09]Read from MH i2c: E2 03 00 BD 19 00 90 00 4A [12:39:09]RAPDU: 90 00 [12:39:09]wFMCommunicate OK [12:39:09]wFMCommunicate request_size=4 [12:39:09]MH_SAM_APDU [12:39:09]CAPDU: 80 0D 03 02 [12:39:09]Write to MH i2c: E2 08 00 BE 19 80 0D 03 02 00 00 00 00 52 [12:39:09]Write i2c OK [12:39:09]MH_I2C_Read... [12:39:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:39:09]Read from MH i2c: E2 [12:39:09]MH_I2C_Read... [12:39:09]Read from MH i2c: E2 0B 00 [12:39:09]MH_I2C_Read... [12:39:09]Read from MH i2c: E2 0B 00 BE 19 00 E0 48 54 AB 9B 3B 18 42 90 00 AA [12:39:09]RAPDU: E0 48 54 AB 9B 3B 18 42 90 00 [12:39:09]wFMCommunicate OK [12:39:09]SAM_PROTO_SignData done [12:39:09]FM_MakeSignedData done [12:39:09]CreateOFDProtocolMessage [12:39:09]wFMCommunicate request_size=4 [12:39:09]MH_SAM_APDU [12:39:09]CAPDU: 80 11 00 00 [12:39:09]Write to MH i2c: E2 08 00 BF 19 80 11 00 00 00 00 00 00 52 [12:39:09]Write i2c OK [12:39:09]MH_I2C_Read... [12:39:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:39:09]Read from MH i2c: E2 [12:39:09]MH_I2C_Read... [12:39:09]Read from MH i2c: E2 17 00 [12:39:09]MH_I2C_Read... [12:39:09]Read from MH i2c: E2 17 00 BF 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A8 [12:39:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:39:09]wFMCommunicate OK [12:39:09]CreateOFDProtocolMessage done [12:39:09]OFDSenderStorePacket 164941 [12:39:09]StoreOFDPacket docnum=164941 [12:39:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 87 FC 07 01 E9 0D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 18 03 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 03 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 51 00 00 00 00 07 04 06 00 18 03 03 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 EC C6 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4D 84 02 00 35 04 06 00 B5 5D 88 F1 D8 68 E0 48 54 AB 9B 3B 18 42 [12:39:09]CheckFolder [12:39:09]dirname=/storage/ofd_packets [12:39:09]CheckFolder done [12:39:09]ProducePacketName [12:39:09]name=ofd_packets/00164941 [12:39:09]NVStorageSaveData ofd_packets/00164941 [12:39:09]File name is /storage/ofd_packets/00164941 [12:39:09]Write 301 bytes [12:39:09]NVStorageSaveData done [12:39:09]OFDSenderStorePacket done [12:39:09]KKMCreateOFDPacket done [12:39:09]NVStorageSaveData kkm_last_timestamp [12:39:09]File name is /storage/kkm_last_timestamp [12:39:09]Write 4 bytes [12:39:09]NVStorageSaveData done [12:39:09]ExternCall_PrintAddStr [12:39:09]wPrintStart [12:39:09]Write to MH i2c: 01 00 00 C0 19 D9 [12:39:09]Write i2c OK [12:39:09]MH_I2C_Read... [12:39:09]Read from MH i2c: 01 [12:39:09]MH_I2C_Read... [12:39:09]Read from MH i2c: 01 07 00 [12:39:09]MH_I2C_Read... [12:39:09]Read from MH i2c: 01 07 00 C0 19 00 00 00 00 00 FF 0F EE [12:39:09]RasterBufferAndPrint [12:39:09]line Счет N : (1)459037 [12:39:09]line ИНН: 02508201610067 [12:39:09]line Контрольно-Кассовый Чек [12:39:09]line ПРОДАЖА [12:39:09]line ТРК (МРК, ГНК) : 12 [12:39:09]line Товар: 2710124130 [12:39:09]line Аи-92-К-5 [12:39:09]line 30.000 * 65.80 [12:39:09]line = 1974.00 [12:39:09]line НДС 12% НСП 1% [12:39:09]line > о реализуемом товаре [12:39:09]line ИТОГО: 1974.00 [12:39:09]line НСП 1% : 17.47 [12:39:09]line НДС 12% : 209.63 [12:39:09]line Наличными: 1974.00 [12:39:09]line Безнал.: 0.00 [12:39:09]line Место: АЗС № 72 "Партнер Нефть" [12:39:09]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:39:09]line СНО: Общий режим [12:39:09]line Чек 139 14.07.2024 12:39 [12:39:09]line Смена: 447 ФФД: 1.0 [12:39:09]line ЗНМ: 0300000160 [12:39:09]line РНМ: 0000000000090829 [12:39:09]line Версия ККМ: 001 [12:39:09]line ФМ: 0000000000874718 [12:39:09]line ФД: 164941 [12:39:09]line ФПД: 199413334136936 [12:39:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T123908&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164941&fm=199413334136936&tin=02508201610067®Number=0000000000090829&sum=197400 [12:39:09]written 0, free lines is 4095 [12:39:09]OFD Sender: Processing packet 164941 [packets to send 104, broken 103] [12:39:09]ProducePacketName [12:39:09]name=ofd_packets/00164941 [12:39:09]OFD Sender: To server: pG, [12:39:09]CommunicateWithHost lk.salyk.kg:30040 [12:39:09]ConnectInit lk.salyk.kg [12:39:09]Connected sock=10 [12:39:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 87 FC 07 01 E9 0D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 18 03 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 03 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 51 00 00 00 00 07 04 06 00 18 03 03 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 EC C6 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4D 84 02 00 35 04 06 00 B5 5D 88 F1 D8 68 E0 48 54 AB 9B 3B 18 42 [12:39:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 CB 6E 47 00 80 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4D 84 02 00 F4 03 04 00 7A 6D 93 66 B6 04 01 00 00 29 3C 6C B2 3D BF 33 F9 [12:39:10]CommunicateWithHost err = 0 [12:39:10]CheckOFDResponse [12:39:10]1017 (14) - 77093643461234 [12:39:10]1041 (16) - 0000000000874718 [12:39:10]1040 (4) - 164941 [12:39:10]1012 (4) - 14.07.2024 06:17 [12:39:10]1206 (1) - 0 [12:39:10]OFD Sender: Remove packet 164941 [12:39:10]ProducePacketName [12:39:10]name=ofd_packets/00164941 [12:39:10]NVStorageDeleteData [12:39:10]Write to MH i2c: 01 00 00 E7 19 00 [12:39:10]Write i2c OK [12:39:10]MH_I2C_Read... [12:39:10]Read from MH i2c: 01 [12:39:10]MH_I2C_Read... [12:39:10]Read from MH i2c: 01 07 00 [12:39:10]MH_I2C_Read... [12:39:10]Read from MH i2c: 01 07 00 E7 19 00 00 00 00 00 2B 0D 3F [12:39:10]RasterBufferAndPrint [12:39:10]line [12:39:10]line [12:39:10]line [12:39:10]line [12:39:10]line [12:39:10]written 0, free lines is 3377 [12:39:10]MH_Cut [12:39:10]Write to MH i2c: D1 01 00 EE 19 01 D9 [12:39:10]Write i2c OK [12:39:10]MH_I2C_Read... [12:39:10]Read from MH i2c: D1 [12:39:10]MH_I2C_Read... [12:39:10]Read from MH i2c: D1 01 00 [12:39:10]MH_I2C_Read... [12:39:10]Read from MH i2c: D1 01 00 EE 19 00 D8 [12:39:10]Write to MH i2c: 01 00 00 EF 19 08 [12:39:10]Write i2c OK [12:39:10]MH_I2C_Read... [12:39:10]OFD Sender: No OFD packet to send [12:39:10]*** Cut start [12:39:10]*** Partial cut [12:39:10]*** CUTSNS_PIN = 1 [12:39:10]*** CUTSNS_PIN = 0 [12:39:11]*** Brake cut motor [12:39:11]Read from MH i2c: 01 [12:39:11]MH_I2C_Read... [12:39:11]*** Stop cut motor [12:39:11]*** Cut end [12:39:11]Read from MH i2c: 01 07 00 [12:39:11]MH_I2C_Read... [12:39:11]Read from MH i2c: 01 07 00 EF 19 00 00 00 00 00 FF 0F 1D [12:39:11]process_action close_receipt done [12:39:11]requested_data is exist [12:39:11]produce_requested_data [12:39:11]requested_item fm.sn is exist - process it [12:39:11]wFMCommunicate request_size=4 [12:39:11]MH_SAM_APDU [12:39:11]CAPDU: 80 11 00 00 [12:39:11]Write to MH i2c: E2 08 00 F0 19 80 11 00 00 00 00 00 00 83 [12:39:11]Write i2c OK [12:39:11]MH_I2C_Read... [12:39:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:39:11]Read from MH i2c: E2 [12:39:11]MH_I2C_Read... [12:39:11]Read from MH i2c: E2 17 00 [12:39:11]MH_I2C_Read... [12:39:11]Read from MH i2c: E2 17 00 F0 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D9 [12:39:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:39:11]wFMCommunicate OK [12:39:11]requested_item fd.num is exist - process it [12:39:11]SAM_PROTO_GetFieldsCounters [12:39:11]wFMCommunicate request_size=4 [12:39:11]MH_SAM_APDU [12:39:11]CAPDU: 80 13 00 00 [12:39:11]Write to MH i2c: E2 08 00 F1 19 80 13 00 00 00 00 00 00 86 [12:39:11]Write i2c OK [12:39:11]MH_I2C_Read... [12:39:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:39:11]Read from MH i2c: E2 [12:39:11]MH_I2C_Read... [12:39:11]Read from MH i2c: E2 62 00 [12:39:11]MH_I2C_Read... [12:39:11]Read from MH i2c: E2 62 00 F1 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 4D 84 02 00 0E 04 04 00 BF 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 E1 [12:39:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 4D 84 02 00 0E 04 04 00 BF 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 [12:39:11]wFMCommunicate OK [12:39:11]SAM_PROTO_GetFieldsCounters done [12:39:11]requested_item shift.num is exist - process it [12:39:11]requested_item shift.opened is exist - process it [12:39:11]req_shift_opened [12:39:11]FM_GetShiftState [12:39:11]SAM_PROTO_GetShiftState [12:39:11]wFMCommunicate request_size=4 [12:39:11]MH_SAM_APDU [12:39:11]CAPDU: 80 13 01 00 [12:39:11]Write to MH i2c: E2 08 00 F2 19 80 13 01 00 00 00 00 00 88 [12:39:11]Write i2c OK [12:39:11]MH_I2C_Read... [12:39:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:39:11]Read from MH i2c: E2 [12:39:11]MH_I2C_Read... [12:39:11]Read from MH i2c: E2 0E 00 [12:39:11]MH_I2C_Read... [12:39:11]Read from MH i2c: E2 0E 00 F2 19 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 08 [12:39:11]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [12:39:11]wFMCommunicate OK [12:39:11]SAM_PROTO_GetShiftState done [12:39:11]FM_GetShiftState done [12:39:11]req_shift_opened done [12:39:11]requested_item shift.open_date is exist - process it [12:39:11]req_shift_open_date [12:39:11]req_shift_open_date done [12:39:11]produce_requested_data done [12:39:11]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164941,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [12:39:11]process_action_free close_receipt [12:39:11]json_value_free [12:39:11]json_value_free done [12:39:11]process_json_proto returns [12:39:11]Send response to host [12:39:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164941,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [12:39:11]free response buf [12:39:11]execute_script done [12:39:11]execute_script returns [12:39:11]free content buf [12:39:11]Sock 7.Close socket [12:39:11]Sock 7.Thread stoped [12:39:15]OFD Sender: No OFD packet to send [12:39:20]OFD Sender: No OFD packet to send [12:39:25]OFD Sender: No OFD packet to send [12:39:30]OFD Sender: No OFD packet to send [12:39:35]OFD Sender: No OFD packet to send [12:39:40]OFD Sender: No OFD packet to send [12:39:45]accept exits with 9 [12:39:45]New connection [12:39:45]New thread 3067473252 created [12:39:45]Thread 3067616612 joined [12:39:45]Waiting for new connection... [12:39:45] Sock 9.Parse request [12:39:45]Sock 9.Check first char [12:39:45]Sock 9.First char is OK [12:39:45]request: POST /json_proto HTTP/1.0 [12:39:45]Method: POST [12:39:45]URL: /json_proto [12:39:45]Method is POST - this is cgi request [12:39:45]url: /json_proto [12:39:45]query_string will be loaded in cgi processing [12:39:45]execute_cgi json_proto POST (null) [12:39:45]execute_cgi path=json_proto method=POST [12:39:45]POST find Content-Length [12:39:45]Host: 172.17.56.4:8080 [12:39:45]Content-Length: 677 [12:39:45]Content-Type: application/json [12:39:45] [12:39:45]POST finish read [12:39:45]Found Content-Length = 677 [12:39:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459040", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:39:45]execute_script... [12:39: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)459040", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:39:45]POST & json_proto [12:39:45]process_json_proto [12:39:45]json parsed OK: [12:39:45]protocol is kg_v1.0 [12:39:45]action value=close_receipt [12:39:45]process_action close_receipt [12:39:45]cmd_close_receipt [12:39:45]MH_GetDate [12:39:45]Write to MH i2c: F0 00 00 F3 19 FB [12:39:45]Write i2c OK [12:39:45]MH_I2C_Read... [12:39:45]Read from MH i2c: F0 [12:39:45]MH_I2C_Read... [12:39:45]Read from MH i2c: F0 09 00 [12:39:45]MH_I2C_Read... [12:39:45]Read from MH i2c: F0 09 00 F3 19 00 12 C7 93 66 C9 DC B2 64 91 [12:39:45]GetLastDocTimeStamp 1720960748 [12:39:45]current date 1720960786 [12:39:45]FM_GetShiftState [12:39:45]SAM_PROTO_GetShiftState [12:39:45]wFMCommunicate request_size=4 [12:39:45]MH_SAM_APDU [12:39:45]CAPDU: 80 13 01 00 [12:39:45]Write to MH i2c: E2 08 00 F4 19 80 13 01 00 00 00 00 00 8A [12:39:45]Write i2c OK [12:39:45]MH_I2C_Read... [12:39:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:39:45]Read from MH i2c: E2 [12:39:45]MH_I2C_Read... [12:39:45]Read from MH i2c: E2 0E 00 [12:39:45]MH_I2C_Read... [12:39:45]Read from MH i2c: E2 0E 00 F4 19 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 0A [12:39:45]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [12:39:45]wFMCommunicate OK [12:39:45]SAM_PROTO_GetShiftState done [12:39:45]FM_GetShiftState done [12:39:45]opened in 1720917342 [12:39:45]opened+sec_in_day 1721003742 [12:39:45]quantity*price = 50008 [12:39:45]sum+1 = 50009 [12:39:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 140 14.07.2024 12:39 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164942 ФПД: 25531984871346 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T123946&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164942&fm=25531984871346&tin=02508201610067®Number=0000000000090829&sum=50000 [12:39:46]StoreToDocumentArchive [12:39:46]shift 447 fd 164942 [12:39:46]save to /storage/0447/doc_00164942 [12:39:46]save last doc name /storage/0447/doc_00164942 to /storage/kkm_last_doc_name [12:39:46]save OK [12:39:46]Clear old archive folders... [12:39:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:39:46]tlvbuf is B6F63580 [12:39:46]SAM_PROTO_ClearQueue [12:39:46]wFMCommunicate request_size=4 [12:39:46]MH_SAM_APDU [12:39:46]CAPDU: 80 09 00 00 [12:39:46]Write to MH i2c: E2 08 00 01 1A 80 09 00 00 00 00 00 00 8D [12:39:46]Write i2c OK [12:39:46]MH_I2C_Read... [12:39:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:39:46]Read from MH i2c: E2 [12:39:46]MH_I2C_Read... [12:39:46]Read from MH i2c: E2 03 00 [12:39:46]MH_I2C_Read... [12:39:46]Read from MH i2c: E2 03 00 01 1A 00 90 00 8F [12:39:46]RAPDU: 90 00 [12:39:46]wFMCommunicate OK [12:39:46]SAM_PROTO_ClearQueue done [12:39:46]KKMCreateOFDPacket [12:39:46]OFDProtocolAddRootSTLVToBuf [12:39:46]FM_MakeSignedData [12:39:46]FM_MakeSignedData [12:39:46]SAM_PROTO_SignData [12:39:46]wFMCommunicate request_size=4 [12:39:46]MH_SAM_APDU [12:39:46]CAPDU: 80 0D 01 02 [12:39:46]Write to MH i2c: E2 08 00 02 1A 80 0D 01 02 00 00 00 00 95 [12:39:46]Write i2c OK [12:39:46]MH_I2C_Read... [12:39:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:39:46]Read from MH i2c: E2 [12:39:46]MH_I2C_Read... [12:39:46]Read from MH i2c: E2 03 00 [12:39:46]MH_I2C_Read... [12:39:46]Read from MH i2c: E2 03 00 02 1A 00 90 00 90 [12:39:46]RAPDU: 90 00 [12:39:46]wFMCommunicate OK [12:39:46]wFMCommunicate request_size=255 [12:39:46]MH_SAM_APDU [12:39:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 8C 00 00 00 F4 03 04 00 12 C7 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4E 84 02 00 35 04 06 00 17 [12:39:46]Write to MH i2c: E2 02 01 03 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 8C 00 00 00 F4 03 04 00 12 C7 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4E 84 02 00 35 04 06 00 17 00 00 17 [12:39:46]Write i2c OK [12:39:46]MH_I2C_Read... [12:39:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:39:46]Read from MH i2c: E2 [12:39:46]MH_I2C_Read... [12:39:46]Read from MH i2c: E2 03 00 [12:39:46]MH_I2C_Read... [12:39:46]Read from MH i2c: E2 03 00 03 1A 00 90 00 91 [12:39:46]RAPDU: 90 00 [12:39:46]wFMCommunicate OK [12:39:46]wFMCommunicate request_size=10 [12:39:46]MH_SAM_APDU [12:39:46]CAPDU: 80 0D 02 02 05 38 A0 E3 7F B2 [12:39:46]Write to MH i2c: E2 0D 00 04 1A 80 0D 02 02 05 00 38 A0 E3 7F B2 00 00 8E [12:39:46]Write i2c OK [12:39:46]MH_I2C_Read... [12:39:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:39:46]Read from MH i2c: E2 [12:39:46]MH_I2C_Read... [12:39:46]Read from MH i2c: E2 03 00 [12:39:46]MH_I2C_Read... [12:39:46]Read from MH i2c: E2 03 00 04 1A 00 90 00 92 [12:39:46]RAPDU: 90 00 [12:39:46]wFMCommunicate OK [12:39:46]wFMCommunicate request_size=4 [12:39:46]MH_SAM_APDU [12:39:46]CAPDU: 80 0D 03 02 [12:39:46]Write to MH i2c: E2 08 00 05 1A 80 0D 03 02 00 00 00 00 9A [12:39:46]Write i2c OK [12:39:46]MH_I2C_Read... [12:39:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:39:46]Read from MH i2c: E2 [12:39:46]MH_I2C_Read... [12:39:46]Read from MH i2c: E2 0B 00 [12:39:46]MH_I2C_Read... [12:39:46]Read from MH i2c: E2 0B 00 05 1A 00 89 DE 7C FF 77 2F 7B 28 90 00 C6 [12:39:46]RAPDU: 89 DE 7C FF 77 2F 7B 28 90 00 [12:39:46]wFMCommunicate OK [12:39:46]SAM_PROTO_SignData done [12:39:46]FM_MakeSignedData done [12:39:46]CreateOFDProtocolMessage [12:39:46]wFMCommunicate request_size=4 [12:39:46]MH_SAM_APDU [12:39:46]CAPDU: 80 11 00 00 [12:39:46]Write to MH i2c: E2 08 00 06 1A 80 11 00 00 00 00 00 00 9A [12:39:46]Write i2c OK [12:39:46]MH_I2C_Read... [12:39:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:39:46]Read from MH i2c: E2 [12:39:46]MH_I2C_Read... [12:39:46]Read from MH i2c: E2 17 00 [12:39:46]MH_I2C_Read... [12:39:46]Read from MH i2c: E2 17 00 06 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F0 [12:39:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:39:46]wFMCommunicate OK [12:39:46]CreateOFDProtocolMessage done [12:39:46]OFDSenderStorePacket 164942 [12:39:46]StoreOFDPacket docnum=164942 [12:39:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 27 33 07 01 6A 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 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 8C 00 00 00 F4 03 04 00 12 C7 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4E 84 02 00 35 04 06 00 17 38 A0 E3 7F B2 89 DE 7C FF 77 2F 7B 28 [12:39:46]CheckFolder [12:39:46]dirname=/storage/ofd_packets [12:39:46]CheckFolder done [12:39:46]ProducePacketName [12:39:46]name=ofd_packets/00164942 [12:39:46]NVStorageSaveData ofd_packets/00164942 [12:39:46]File name is /storage/ofd_packets/00164942 [12:39:46]Write 301 bytes [12:39:46]NVStorageSaveData done [12:39:46]OFDSenderStorePacket done [12:39:46]KKMCreateOFDPacket done [12:39:46]NVStorageSaveData kkm_last_timestamp [12:39:46]File name is /storage/kkm_last_timestamp [12:39:46]Write 4 bytes [12:39:46]NVStorageSaveData done [12:39:46]ExternCall_PrintAddStr [12:39:46]wPrintStart [12:39:46]Write to MH i2c: 01 00 00 07 1A 21 [12:39:46]Write i2c OK [12:39:46]MH_I2C_Read... [12:39:46]Read from MH i2c: 01 [12:39:46]MH_I2C_Read... [12:39:46]Read from MH i2c: 01 07 00 [12:39:46]MH_I2C_Read... [12:39:46]Read from MH i2c: 01 07 00 07 1A 00 00 00 00 00 FF 0F 36 [12:39:46]RasterBufferAndPrint [12:39:46]line Счет N : (1)459040 [12:39:46]line ИНН: 02508201610067 [12:39:46]line Контрольно-Кассовый Чек [12:39:46]line ПРОДАЖА [12:39:46]line ТРК (МРК, ГНК) : 12 [12:39:46]line Товар: 2710124130 [12:39:46]line Аи-92-К-5 [12:39:46]line 7.600 * 65.80 [12:39:46]line = 500.08 [12:39:46]line НДС 12% НСП 1% [12:39:46]line > о реализуемом товаре [12:39:46]line ОКРУГЛЕНИЕ: -0.08 [12:39:46]line ИТОГО: 500.00 [12:39:46]line Внесено: 500.00 [12:39:46]line СДАЧА: 0.00 [12:39:46]line НСП 1% : 4.42 [12:39:46]line НДС 12% : 53.11 [12:39:46]line Наличными: 500.00 [12:39:46]line Безнал.: 0.00 [12:39:46]line Место: АЗС № 72 "Партнер Нефть" [12:39:46]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:39:46]line СНО: Общий режим [12:39:46]line Чек 140 14.07.2024 12:39 [12:39:46]line Смена: 447 ФФД: 1.0 [12:39:46]line ЗНМ: 0300000160 [12:39:46]line РНМ: 0000000000090829 [12:39:46]line Версия ККМ: 001 [12:39:46]line ФМ: 0000000000874718 [12:39:46]line ФД: 164942 [12:39:46]line ФПД: 25531984871346 [12:39:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T123946&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164942&fm=25531984871346&tin=02508201610067®Number=0000000000090829&sum=50000 [12:39:47]OFD Sender: Processing packet 164942 [packets to send 104, broken 103] [12:39:47]ProducePacketName [12:39:47]name=ofd_packets/00164942 [12:39:47]OFD Sender: To server: pG, [12:39:47]CommunicateWithHost lk.salyk.kg:30040 [12:39:47]ConnectInit lk.salyk.kg [12:39:47]written 0, free lines is 4095 [12:39:47]Connected sock=10 [12:39:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 27 33 07 01 6A 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 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 8C 00 00 00 F4 03 04 00 12 C7 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4E 84 02 00 35 04 06 00 17 38 A0 E3 7F B2 89 DE 7C FF 77 2F 7B 28 [12:39:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 18 99 47 00 AA 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4E 84 02 00 F4 03 04 00 A0 6D 93 66 B6 04 01 00 00 3D 02 C2 68 47 6F 74 74 [12:39:47]CommunicateWithHost err = 0 [12:39:47]CheckOFDResponse [12:39:47]1017 (14) - 77093643461234 [12:39:47]1041 (16) - 0000000000874718 [12:39:47]1040 (4) - 164942 [12:39:47]1012 (4) - 14.07.2024 06:18 [12:39:47]1206 (1) - 0 [12:39:47]OFD Sender: Remove packet 164942 [12:39:47]ProducePacketName [12:39:47]name=ofd_packets/00164942 [12:39:47]NVStorageDeleteData [12:39:47]Write to MH i2c: 01 00 00 31 1A 4B [12:39:47]Write i2c OK [12:39:47]MH_I2C_Read... [12:39:47]Read from MH i2c: 01 [12:39:47]MH_I2C_Read... [12:39:47]Read from MH i2c: 01 07 00 [12:39:47]MH_I2C_Read... [12:39:47]Read from MH i2c: 01 07 00 31 1A 00 00 00 00 00 05 0D 64 [12:39:47]RasterBufferAndPrint [12:39:47]line [12:39:47]line [12:39:47]line [12:39:47]line [12:39:47]line [12:39:47]written 0, free lines is 3339 [12:39:47]MH_Cut [12:39:47]Write to MH i2c: D1 01 00 38 1A 01 24 [12:39:47]Write i2c OK [12:39:47]MH_I2C_Read... [12:39:47]Read from MH i2c: D1 [12:39:47]MH_I2C_Read... [12:39:47]Read from MH i2c: D1 01 00 [12:39:47]MH_I2C_Read... [12:39:47]Read from MH i2c: D1 01 00 38 1A 00 23 [12:39:47]Write to MH i2c: 01 00 00 39 1A 53 [12:39:47]Write i2c OK [12:39:47]MH_I2C_Read... [12:39:47]OFD Sender: No OFD packet to send [12:39:48]*** Cut start [12:39:48]*** Partial cut [12:39:48]*** CUTSNS_PIN = 1 [12:39:48]*** CUTSNS_PIN = 0 [12:39:48]*** Brake cut motor [12:39:48]Read from MH i2c: 01 [12:39:48]MH_I2C_Read... [12:39:48]*** Stop cut motor [12:39:48]*** Cut end [12:39:48]Read from MH i2c: 01 07 00 [12:39:48]MH_I2C_Read... [12:39:48]Read from MH i2c: 01 07 00 39 1A 00 00 00 00 00 FF 0F 68 [12:39:48]process_action close_receipt done [12:39:48]requested_data is exist [12:39:48]produce_requested_data [12:39:48]requested_item fm.sn is exist - process it [12:39:48]wFMCommunicate request_size=4 [12:39:48]MH_SAM_APDU [12:39:48]CAPDU: 80 11 00 00 [12:39:48]Write to MH i2c: E2 08 00 3A 1A 80 11 00 00 00 00 00 00 CE [12:39:48]Write i2c OK [12:39:48]MH_I2C_Read... [12:39:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:39:48]Read from MH i2c: E2 [12:39:48]MH_I2C_Read... [12:39:48]Read from MH i2c: E2 17 00 [12:39:48]MH_I2C_Read... [12:39:48]Read from MH i2c: E2 17 00 3A 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 24 [12:39:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:39:48]wFMCommunicate OK [12:39:48]requested_item fd.num is exist - process it [12:39:48]SAM_PROTO_GetFieldsCounters [12:39:48]wFMCommunicate request_size=4 [12:39:48]MH_SAM_APDU [12:39:48]CAPDU: 80 13 00 00 [12:39:48]Write to MH i2c: E2 08 00 3B 1A 80 13 00 00 00 00 00 00 D1 [12:39:48]Write i2c OK [12:39:48]MH_I2C_Read... [12:39:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:39:49]Read from MH i2c: E2 [12:39:49]MH_I2C_Read... [12:39:49]Read from MH i2c: E2 62 00 [12:39:49]MH_I2C_Read... [12:39:49]Read from MH i2c: E2 62 00 3B 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 4E 84 02 00 0E 04 04 00 BF 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 30 [12:39:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 4E 84 02 00 0E 04 04 00 BF 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 [12:39:49]wFMCommunicate OK [12:39:49]SAM_PROTO_GetFieldsCounters done [12:39:49]requested_item shift.num is exist - process it [12:39:49]requested_item shift.opened is exist - process it [12:39:49]req_shift_opened [12:39:49]FM_GetShiftState [12:39:49]SAM_PROTO_GetShiftState [12:39:49]wFMCommunicate request_size=4 [12:39:49]MH_SAM_APDU [12:39:49]CAPDU: 80 13 01 00 [12:39:49]Write to MH i2c: E2 08 00 3C 1A 80 13 01 00 00 00 00 00 D3 [12:39:49]Write i2c OK [12:39:49]MH_I2C_Read... [12:39:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:39:49]Read from MH i2c: E2 [12:39:49]MH_I2C_Read... [12:39:49]Read from MH i2c: E2 0E 00 [12:39:49]MH_I2C_Read... [12:39:49]Read from MH i2c: E2 0E 00 3C 1A 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 53 [12:39:49]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [12:39:49]wFMCommunicate OK [12:39:49]SAM_PROTO_GetShiftState done [12:39:49]FM_GetShiftState done [12:39:49]req_shift_opened done [12:39:49]requested_item shift.open_date is exist - process it [12:39:49]req_shift_open_date [12:39:49]req_shift_open_date done [12:39:49]produce_requested_data done [12:39:49]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164942,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [12:39:49]process_action_free close_receipt [12:39:49]json_value_free [12:39:49]json_value_free done [12:39:49]process_json_proto returns [12:39:49]Send response to host [12:39:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164942,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [12:39:49]free response buf [12:39:49]execute_script done [12:39:49]execute_script returns [12:39:49]free content buf [12:39:49]Sock 9.Close socket [12:39:49]Sock 9.Thread stoped [12:39:52]OFD Sender: No OFD packet to send [12:39:57]OFD Sender: No OFD packet to send [12:40:02]OFD Sender: No OFD packet to send [12:40:07]OFD Sender: No OFD packet to send [12:40:12]OFD Sender: No OFD packet to send [12:40:17]OFD Sender: No OFD packet to send [12:40:22]OFD Sender: No OFD packet to send [12:40:27]OFD Sender: No OFD packet to send [12:40:32]OFD Sender: No OFD packet to send [12:40:37]OFD Sender: No OFD packet to send [12:40:42]OFD Sender: No OFD packet to send [12:40:47]OFD Sender: No OFD packet to send [12:40:52]OFD Sender: No OFD packet to send [12:40:58]OFD Sender: No OFD packet to send [12:41:03]OFD Sender: No OFD packet to send [12:41:08]OFD Sender: No OFD packet to send [12:41:13]OFD Sender: No OFD packet to send [12:41:18]OFD Sender: No OFD packet to send [12:41:23]OFD Sender: No OFD packet to send [12:41:28]OFD Sender: No OFD packet to send [12:41:33]OFD Sender: No OFD packet to send [12:41:38]OFD Sender: No OFD packet to send [12:41:43]OFD Sender: No OFD packet to send [12:41:44]accept exits with 7 [12:41:44]New connection [12:41:44]New thread 3067616612 created [12:41:44]Thread 3067473252 joined [12:41:44]Waiting for new connection... [12:41:44] Sock 7.Parse request [12:41:44]Sock 7.Check first char [12:41:44]Sock 7.First char is OK [12:41:44]request: POST /json_proto HTTP/1.0 [12:41:44]Method: POST [12:41:44]URL: /json_proto [12:41:44]Method is POST - this is cgi request [12:41:44]url: /json_proto [12:41:44]query_string will be loaded in cgi processing [12:41:44]execute_cgi json_proto POST (null) [12:41:44]execute_cgi path=json_proto method=POST [12:41:44]POST find Content-Length [12:41:44]Host: 172.17.56.4:8080 [12:41:44]Content-Length: 677 [12:41:44]Content-Type: application/json [12:41:44] [12:41:44]POST finish read [12:41:44]Found Content-Length = 677 [12:41:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459041", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:41:44]execute_script... [12:41: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)459041", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:41:44]POST & json_proto [12:41:44]process_json_proto [12:41:44]json parsed OK: [12:41:44]protocol is kg_v1.0 [12:41:44]action value=close_receipt [12:41:44]process_action close_receipt [12:41:44]cmd_close_receipt [12:41:44]MH_GetDate [12:41:44]Write to MH i2c: F0 00 00 3D 1A 46 [12:41:44]Write i2c OK [12:41:44]MH_I2C_Read... [12:41:44]Read from MH i2c: F0 [12:41:44]MH_I2C_Read... [12:41:44]Read from MH i2c: F0 09 00 [12:41:44]MH_I2C_Read... [12:41:44]Read from MH i2c: F0 09 00 3D 1A 00 8A C7 93 66 C9 DC B2 64 54 [12:41:44]GetLastDocTimeStamp 1720960786 [12:41:44]current date 1720960906 [12:41:44]FM_GetShiftState [12:41:44]SAM_PROTO_GetShiftState [12:41:44]wFMCommunicate request_size=4 [12:41:44]MH_SAM_APDU [12:41:44]CAPDU: 80 13 01 00 [12:41:44]Write to MH i2c: E2 08 00 3E 1A 80 13 01 00 00 00 00 00 D5 [12:41:44]Write i2c OK [12:41:44]MH_I2C_Read... [12:41:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:41:45]Read from MH i2c: E2 [12:41:45]MH_I2C_Read... [12:41:45]Read from MH i2c: E2 0E 00 [12:41:45]MH_I2C_Read... [12:41:45]Read from MH i2c: E2 0E 00 3E 1A 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 55 [12:41:45]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [12:41:45]wFMCommunicate OK [12:41:45]SAM_PROTO_GetShiftState done [12:41:45]FM_GetShiftState done [12:41:45]opened in 1720917342 [12:41:45]opened+sec_in_day 1721003742 [12:41:45]quantity*price = 50008 [12:41:45]sum+1 = 50009 [12:41:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 141 14.07.2024 12:41 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164943 ФПД: 135777318085873 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T124146&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164943&fm=135777318085873&tin=02508201610067®Number=0000000000090829&sum=50000 [12:41:46]StoreToDocumentArchive [12:41:46]shift 447 fd 164943 [12:41:46]save to /storage/0447/doc_00164943 [12:41:46]save last doc name /storage/0447/doc_00164943 to /storage/kkm_last_doc_name [12:41:46]save OK [12:41:46]Clear old archive folders... [12:41:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:41:46]tlvbuf is 007E9840 [12:41:46]SAM_PROTO_ClearQueue [12:41:46]wFMCommunicate request_size=4 [12:41:46]MH_SAM_APDU [12:41:46]CAPDU: 80 09 00 00 [12:41:46]Write to MH i2c: E2 08 00 4B 1A 80 09 00 00 00 00 00 00 D7 [12:41:46]Write i2c OK [12:41:46]MH_I2C_Read... [12:41:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:41:46]Read from MH i2c: E2 [12:41:46]MH_I2C_Read... [12:41:46]Read from MH i2c: E2 03 00 [12:41:46]MH_I2C_Read... [12:41:46]Read from MH i2c: E2 03 00 4B 1A 00 90 00 D9 [12:41:46]RAPDU: 90 00 [12:41:46]wFMCommunicate OK [12:41:46]SAM_PROTO_ClearQueue done [12:41:46]KKMCreateOFDPacket [12:41:46]OFDProtocolAddRootSTLVToBuf [12:41:46]FM_MakeSignedData [12:41:46]FM_MakeSignedData [12:41:46]SAM_PROTO_SignData [12:41:46]wFMCommunicate request_size=4 [12:41:46]MH_SAM_APDU [12:41:46]CAPDU: 80 0D 01 02 [12:41:46]Write to MH i2c: E2 08 00 4C 1A 80 0D 01 02 00 00 00 00 DF [12:41:46]Write i2c OK [12:41:46]MH_I2C_Read... [12:41:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:41:46]Read from MH i2c: E2 [12:41:46]MH_I2C_Read... [12:41:46]Read from MH i2c: E2 03 00 [12:41:46]MH_I2C_Read... [12:41:46]Read from MH i2c: E2 03 00 4C 1A 00 90 00 DA [12:41:46]RAPDU: 90 00 [12:41:46]wFMCommunicate OK [12:41:46]wFMCommunicate request_size=255 [12:41:46]MH_SAM_APDU [12:41:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 8D 00 00 00 F4 03 04 00 8A C7 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4F 84 02 00 35 04 06 00 7B [12:41:46]Write to MH i2c: E2 02 01 4D 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 8D 00 00 00 F4 03 04 00 8A C7 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4F 84 02 00 35 04 06 00 7B 00 00 3F [12:41:46]Write i2c OK [12:41:46]MH_I2C_Read... [12:41:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:41:46]Read from MH i2c: E2 [12:41:46]MH_I2C_Read... [12:41:46]Read from MH i2c: E2 03 00 [12:41:46]MH_I2C_Read... [12:41:46]Read from MH i2c: E2 03 00 4D 1A 00 90 00 DB [12:41:46]RAPDU: 90 00 [12:41:46]wFMCommunicate OK [12:41:46]wFMCommunicate request_size=10 [12:41:46]MH_SAM_APDU [12:41:46]CAPDU: 80 0D 02 02 05 7D 1E D0 24 F1 [12:41:46]Write to MH i2c: E2 0D 00 4E 1A 80 0D 02 02 05 00 7D 1E D0 24 F1 00 00 6C [12:41:46]Write i2c OK [12:41:46]MH_I2C_Read... [12:41:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:41:46]Read from MH i2c: E2 [12:41:46]MH_I2C_Read... [12:41:46]Read from MH i2c: E2 03 00 [12:41:46]MH_I2C_Read... [12:41:46]Read from MH i2c: E2 03 00 4E 1A 00 90 00 DC [12:41:46]RAPDU: 90 00 [12:41:46]wFMCommunicate OK [12:41:46]wFMCommunicate request_size=4 [12:41:46]MH_SAM_APDU [12:41:46]CAPDU: 80 0D 03 02 [12:41:46]Write to MH i2c: E2 08 00 4F 1A 80 0D 03 02 00 00 00 00 E4 [12:41:46]Write i2c OK [12:41:46]MH_I2C_Read... [12:41:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:41:46]Read from MH i2c: E2 [12:41:46]MH_I2C_Read... [12:41:46]Read from MH i2c: E2 0B 00 [12:41:46]MH_I2C_Read... [12:41:46]Read from MH i2c: E2 0B 00 4F 1A 00 B9 EE 06 02 EA 82 BB 6A 90 00 25 [12:41:46]RAPDU: B9 EE 06 02 EA 82 BB 6A 90 00 [12:41:46]wFMCommunicate OK [12:41:46]SAM_PROTO_SignData done [12:41:46]FM_MakeSignedData done [12:41:46]CreateOFDProtocolMessage [12:41:46]wFMCommunicate request_size=4 [12:41:46]MH_SAM_APDU [12:41:46]CAPDU: 80 11 00 00 [12:41:46]Write to MH i2c: E2 08 00 50 1A 80 11 00 00 00 00 00 00 E4 [12:41:46]Write i2c OK [12:41:46]MH_I2C_Read... [12:41:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:41:46]Read from MH i2c: E2 [12:41:46]MH_I2C_Read... [12:41:46]Read from MH i2c: E2 17 00 [12:41:46]MH_I2C_Read... [12:41:46]Read from MH i2c: E2 17 00 50 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 3A [12:41:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:41:46]wFMCommunicate OK [12:41:46]CreateOFDProtocolMessage done [12:41:46]OFDSenderStorePacket 164943 [12:41:46]StoreOFDPacket docnum=164943 [12:41:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 15 7C 07 01 43 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 8D 00 00 00 F4 03 04 00 8A C7 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4F 84 02 00 35 04 06 00 7B 7D 1E D0 24 F1 B9 EE 06 02 EA 82 BB 6A [12:41:46]CheckFolder [12:41:46]dirname=/storage/ofd_packets [12:41:46]CheckFolder done [12:41:46]ProducePacketName [12:41:46]name=ofd_packets/00164943 [12:41:46]NVStorageSaveData ofd_packets/00164943 [12:41:46]File name is /storage/ofd_packets/00164943 [12:41:46]Write 301 bytes [12:41:46]NVStorageSaveData done [12:41:46]OFDSenderStorePacket done [12:41:46]KKMCreateOFDPacket done [12:41:46]NVStorageSaveData kkm_last_timestamp [12:41:46]File name is /storage/kkm_last_timestamp [12:41:46]Write 4 bytes [12:41:46]NVStorageSaveData done [12:41:46]ExternCall_PrintAddStr [12:41:46]wPrintStart [12:41:46]Write to MH i2c: 01 00 00 51 1A 6B [12:41:46]Write i2c OK [12:41:46]MH_I2C_Read... [12:41:46]Read from MH i2c: 01 [12:41:46]MH_I2C_Read... [12:41:46]Read from MH i2c: 01 07 00 [12:41:46]MH_I2C_Read... [12:41:46]Read from MH i2c: 01 07 00 51 1A 00 00 00 00 00 FF 0F 80 [12:41:46]RasterBufferAndPrint [12:41:46]line Счет N : (1)459041 [12:41:46]line ИНН: 02508201610067 [12:41:46]line Контрольно-Кассовый Чек [12:41:46]line ПРОДАЖА [12:41:46]line ТРК (МРК, ГНК) : 12 [12:41:46]line Товар: 2710124130 [12:41:46]line Аи-92-К-5 [12:41:46]line 7.600 * 65.80 [12:41:46]line = 500.08 [12:41:46]line НДС 12% НСП 1% [12:41:46]line > о реализуемом товаре [12:41:46]line ОКРУГЛЕНИЕ: -0.08 [12:41:46]line ИТОГО: 500.00 [12:41:46]line Внесено: 500.00 [12:41:46]line СДАЧА: 0.00 [12:41:46]line НСП 1% : 4.42 [12:41:46]line НДС 12% : 53.11 [12:41:46]line Наличными: 500.00 [12:41:46]line Безнал.: 0.00 [12:41:46]line Место: АЗС № 72 "Партнер Нефть" [12:41:46]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:41:46]line СНО: Общий режим [12:41:46]line Чек 141 14.07.2024 12:41 [12:41:46]line Смена: 447 ФФД: 1.0 [12:41:46]line ЗНМ: 0300000160 [12:41:46]line РНМ: 0000000000090829 [12:41:46]line Версия ККМ: 001 [12:41:46]line ФМ: 0000000000874718 [12:41:46]line ФД: 164943 [12:41:46]line ФПД: 135777318085873 [12:41:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T124146&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164943&fm=135777318085873&tin=02508201610067®Number=0000000000090829&sum=50000 [12:41:47]OFD Sender: Processing packet 164943 [packets to send 104, broken 103] [12:41:47]ProducePacketName [12:41:47]name=ofd_packets/00164943 [12:41:47]OFD Sender: To server: pG, [12:41:47]CommunicateWithHost lk.salyk.kg:30040 [12:41:47]ConnectInit lk.salyk.kg [12:41:47]written 0, free lines is 4095 [12:41:47]Connected sock=10 [12:41:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 15 7C 07 01 43 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 8D 00 00 00 F4 03 04 00 8A C7 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4F 84 02 00 35 04 06 00 7B 7D 1E D0 24 F1 B9 EE 06 02 EA 82 BB 6A [12:41:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 CA CA 47 00 E7 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 38 37 34 37 31 38 10 04 04 00 4F 84 02 00 F4 03 04 00 18 6E 93 66 B6 04 01 00 00 81 0F 0D 29 E4 55 2F 7A [12:41:47]CommunicateWithHost err = 0 [12:41:47]CheckOFDResponse [12:41:47]1017 (14) - 77093643461234 [12:41:47]1041 (16) - 0000000000874718 [12:41:47]1040 (4) - 164943 [12:41:47]1012 (4) - 14.07.2024 06:20 [12:41:47]1206 (1) - 0 [12:41:47]OFD Sender: Remove packet 164943 [12:41:47]ProducePacketName [12:41:47]name=ofd_packets/00164943 [12:41:47]NVStorageDeleteData [12:41:47]Write to MH i2c: 01 00 00 7B 1A 95 [12:41:47]Write i2c OK [12:41:47]MH_I2C_Read... [12:41:47]Read from MH i2c: 01 [12:41:47]MH_I2C_Read... [12:41:47]Read from MH i2c: 01 07 00 [12:41:47]MH_I2C_Read... [12:41:47]Read from MH i2c: 01 07 00 7B 1A 00 00 00 00 00 FE 0C A6 [12:41:47]RasterBufferAndPrint [12:41:47]line [12:41:47]line [12:41:47]line [12:41:47]line [12:41:47]line [12:41:47]written 0, free lines is 3332 [12:41:47]MH_Cut [12:41:47]Write to MH i2c: D1 01 00 82 1A 01 6E [12:41:47]Write i2c OK [12:41:47]MH_I2C_Read... [12:41:47]Read from MH i2c: D1 [12:41:47]MH_I2C_Read... [12:41:47]Read from MH i2c: D1 01 00 [12:41:47]MH_I2C_Read... [12:41:47]Read from MH i2c: D1 01 00 82 1A 00 6D [12:41:47]Write to MH i2c: 01 00 00 83 1A 9D [12:41:47]Write i2c OK [12:41:47]MH_I2C_Read... [12:41:47]OFD Sender: No OFD packet to send [12:41:48]*** Cut start [12:41:48]*** Partial cut [12:41:48]*** CUTSNS_PIN = 1 [12:41:48]*** CUTSNS_PIN = 0 [12:41:48]*** Brake cut motor [12:41:48]Read from MH i2c: 01 [12:41:48]MH_I2C_Read... [12:41:48]*** Stop cut motor [12:41:48]*** Cut end [12:41:48]Read from MH i2c: 01 07 00 [12:41:48]MH_I2C_Read... [12:41:48]Read from MH i2c: 01 07 00 83 1A 00 00 00 00 00 FF 0F B2 [12:41:48]process_action close_receipt done [12:41:48]requested_data is exist [12:41:48]produce_requested_data [12:41:48]requested_item fm.sn is exist - process it [12:41:48]wFMCommunicate request_size=4 [12:41:48]MH_SAM_APDU [12:41:48]CAPDU: 80 11 00 00 [12:41:48]Write to MH i2c: E2 08 00 84 1A 80 11 00 00 00 00 00 00 18 [12:41:48]Write i2c OK [12:41:48]MH_I2C_Read... [12:41:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:41:48]Read from MH i2c: E2 [12:41:48]MH_I2C_Read... [12:41:48]Read from MH i2c: E2 17 00 [12:41:48]MH_I2C_Read... [12:41:48]Read from MH i2c: E2 17 00 84 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 6E [12:41:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:41:48]wFMCommunicate OK [12:41:48]requested_item fd.num is exist - process it [12:41:48]SAM_PROTO_GetFieldsCounters [12:41:48]wFMCommunicate request_size=4 [12:41:48]MH_SAM_APDU [12:41:48]CAPDU: 80 13 00 00 [12:41:48]Write to MH i2c: E2 08 00 85 1A 80 13 00 00 00 00 00 00 1B [12:41:48]Write i2c OK [12:41:48]MH_I2C_Read... [12:41:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:41:48]Read from MH i2c: E2 [12:41:48]MH_I2C_Read... [12:41:48]Read from MH i2c: E2 62 00 [12:41:48]MH_I2C_Read... [12:41:48]Read from MH i2c: E2 62 00 85 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 4F 84 02 00 0E 04 04 00 BF 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 7E [12:41:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 4F 84 02 00 0E 04 04 00 BF 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 [12:41:48]wFMCommunicate OK [12:41:48]SAM_PROTO_GetFieldsCounters done [12:41:48]requested_item shift.num is exist - process it [12:41:48]requested_item shift.opened is exist - process it [12:41:48]req_shift_opened [12:41:48]FM_GetShiftState [12:41:48]SAM_PROTO_GetShiftState [12:41:48]wFMCommunicate request_size=4 [12:41:48]MH_SAM_APDU [12:41:48]CAPDU: 80 13 01 00 [12:41:48]Write to MH i2c: E2 08 00 86 1A 80 13 01 00 00 00 00 00 1D [12:41:48]Write i2c OK [12:41:48]MH_I2C_Read... [12:41:48]Read from MH i2c: E2 [12:41:48]MH_I2C_Read... [12:41:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:41:48]Read from MH i2c: E2 0E 00 [12:41:48]MH_I2C_Read... [12:41:48]Read from MH i2c: E2 0E 00 86 1A 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 9D [12:41:48]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [12:41:48]wFMCommunicate OK [12:41:48]SAM_PROTO_GetShiftState done [12:41:48]FM_GetShiftState done [12:41:48]req_shift_opened done [12:41:48]requested_item shift.open_date is exist - process it [12:41:48]req_shift_open_date [12:41:48]req_shift_open_date done [12:41:48]produce_requested_data done [12:41:48]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164943,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [12:41:48]process_action_free close_receipt [12:41:48]json_value_free [12:41:48]json_value_free done [12:41:48]process_json_proto returns [12:41:48]Send response to host [12:41:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164943,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [12:41:48]free response buf [12:41:48]execute_script done [12:41:48]execute_script returns [12:41:48]free content buf [12:41:48]Sock 7.Close socket [12:41:48]Sock 7.Thread stoped [12:41:52]OFD Sender: No OFD packet to send [12:41:57]OFD Sender: No OFD packet to send [12:42:02]OFD Sender: No OFD packet to send [12:42:07]OFD Sender: No OFD packet to send [12:42:12]OFD Sender: No OFD packet to send [12:42:17]OFD Sender: No OFD packet to send [12:42:22]OFD Sender: No OFD packet to send [12:42:27]OFD Sender: No OFD packet to send [12:42:32]OFD Sender: No OFD packet to send [12:42:37]OFD Sender: No OFD packet to send [12:42:42]OFD Sender: No OFD packet to send [12:42:47]OFD Sender: No OFD packet to send [12:42:52]OFD Sender: No OFD packet to send [12:42:57]OFD Sender: No OFD packet to send [12:43:02]OFD Sender: No OFD packet to send [12:43:07]OFD Sender: No OFD packet to send [12:43:12]OFD Sender: No OFD packet to send [12:43:17]accept exits with 9 [12:43:17]New connection [12:43:17]New thread 3067473252 created [12:43:17]Thread 3067616612 joined [12:43:17]Waiting for new connection... [12:43:17] Sock 9.Parse request [12:43:17]Sock 9.Check first char [12:43:17]Sock 9.First char is OK [12:43:17]request: POST /json_proto HTTP/1.0 [12:43:17]Method: POST [12:43:17]URL: /json_proto [12:43:17]Method is POST - this is cgi request [12:43:17]url: /json_proto [12:43:17]query_string will be loaded in cgi processing [12:43:17]execute_cgi json_proto POST (null) [12:43:17]execute_cgi path=json_proto method=POST [12:43:17]POST find Content-Length [12:43:17]Host: 172.17.56.4:8080 [12:43:17]Content-Length: 677 [12:43:17]Content-Type: application/json [12:43:17] [12:43:17]POST finish read [12:43:17]Found Content-Length = 677 [12:43:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459042", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:43:17]execute_script... [12:43:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459042", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:43:17]POST & json_proto [12:43:17]process_json_proto [12:43:17]json parsed OK: [12:43:17]protocol is kg_v1.0 [12:43:17]action value=close_receipt [12:43:17]process_action close_receipt [12:43:17]cmd_close_receipt [12:43:17]MH_GetDate [12:43:17]Write to MH i2c: F0 00 00 87 1A 90 [12:43:17]Write i2c OK [12:43:17]MH_I2C_Read... [12:43:17]Read from MH i2c: F0 [12:43:17]MH_I2C_Read... [12:43:17]Read from MH i2c: F0 09 00 [12:43:17]MH_I2C_Read... [12:43:17]Read from MH i2c: F0 09 00 87 1A 00 E6 C7 93 66 C9 DC B2 64 FA [12:43:17]GetLastDocTimeStamp 1720960906 [12:43:17]current date 1720960998 [12:43:17]FM_GetShiftState [12:43:17]SAM_PROTO_GetShiftState [12:43:17]wFMCommunicate request_size=4 [12:43:17]MH_SAM_APDU [12:43:17]CAPDU: 80 13 01 00 [12:43:17]Write to MH i2c: E2 08 00 88 1A 80 13 01 00 00 00 00 00 1F [12:43:17]Write i2c OK [12:43:17]MH_I2C_Read... [12:43:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:17]Read from MH i2c: E2 [12:43:17]MH_I2C_Read... [12:43:17]Read from MH i2c: E2 0E 00 [12:43:17]MH_I2C_Read... [12:43:17]Read from MH i2c: E2 0E 00 88 1A 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 9F [12:43:17]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [12:43:17]wFMCommunicate OK [12:43:17]SAM_PROTO_GetShiftState done [12:43:17]FM_GetShiftState done [12:43:17]opened in 1720917342 [12:43:17]opened+sec_in_day 1721003742 [12:43:17]quantity*price = 50008 [12:43:17]sum+1 = 50009 [12:43:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 142 14.07.2024 12:43 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164944 ФПД: 191557377696102 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T124318&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164944&fm=191557377696102&tin=02508201610067®Number=0000000000090829&sum=50000 [12:43:18]StoreToDocumentArchive [12:43:18]shift 447 fd 164944 [12:43:18]save to /storage/0447/doc_00164944 [12:43:18]save last doc name /storage/0447/doc_00164944 to /storage/kkm_last_doc_name [12:43:18]save OK [12:43:18]Clear old archive folders... [12:43:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:43:18]tlvbuf is B6F7C930 [12:43:18]SAM_PROTO_ClearQueue [12:43:18]wFMCommunicate request_size=4 [12:43:18]MH_SAM_APDU [12:43:18]CAPDU: 80 09 00 00 [12:43:18]Write to MH i2c: E2 08 00 95 1A 80 09 00 00 00 00 00 00 21 [12:43:18]Write i2c OK [12:43:18]MH_I2C_Read... [12:43:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:43:18]Read from MH i2c: E2 [12:43:18]MH_I2C_Read... [12:43:18]Read from MH i2c: E2 03 00 [12:43:18]MH_I2C_Read... [12:43:18]Read from MH i2c: E2 03 00 95 1A 00 90 00 23 [12:43:18]RAPDU: 90 00 [12:43:18]wFMCommunicate OK [12:43:18]SAM_PROTO_ClearQueue done [12:43:18]KKMCreateOFDPacket [12:43:18]OFDProtocolAddRootSTLVToBuf [12:43:18]FM_MakeSignedData [12:43:18]FM_MakeSignedData [12:43:18]SAM_PROTO_SignData [12:43:18]wFMCommunicate request_size=4 [12:43:18]MH_SAM_APDU [12:43:18]CAPDU: 80 0D 01 02 [12:43:18]Write to MH i2c: E2 08 00 96 1A 80 0D 01 02 00 00 00 00 29 [12:43:18]Write i2c OK [12:43:18]MH_I2C_Read... [12:43:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:43:18]Read from MH i2c: E2 [12:43:18]MH_I2C_Read... [12:43:18]Read from MH i2c: E2 03 00 [12:43:18]MH_I2C_Read... [12:43:18]Read from MH i2c: E2 03 00 96 1A 00 90 00 24 [12:43:18]RAPDU: 90 00 [12:43:18]wFMCommunicate OK [12:43:18]wFMCommunicate request_size=255 [12:43:18]MH_SAM_APDU [12:43:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 8E 00 00 00 F4 03 04 00 E6 C7 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 50 84 02 00 35 04 06 00 AE [12:43:18]Write to MH i2c: E2 02 01 97 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 8E 00 00 00 F4 03 04 00 E6 C7 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 50 84 02 00 35 04 06 00 AE 00 00 1A [12:43:18]Write i2c OK [12:43:18]MH_I2C_Read... [12:43:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:43:19]Read from MH i2c: E2 [12:43:19]MH_I2C_Read... [12:43:19]Read from MH i2c: E2 03 00 [12:43:19]MH_I2C_Read... [12:43:19]Read from MH i2c: E2 03 00 97 1A 00 90 00 25 [12:43:19]RAPDU: 90 00 [12:43:19]wFMCommunicate OK [12:43:19]wFMCommunicate request_size=10 [12:43:19]MH_SAM_APDU [12:43:19]CAPDU: 80 0D 02 02 05 38 6D 73 A1 66 [12:43:19]Write to MH i2c: E2 0D 00 98 1A 80 0D 02 02 05 00 38 6D 73 A1 66 00 00 55 [12:43:19]Write i2c OK [12:43:19]MH_I2C_Read... [12:43:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:43:19]Read from MH i2c: E2 [12:43:19]MH_I2C_Read... [12:43:19]Read from MH i2c: E2 03 00 [12:43:19]MH_I2C_Read... [12:43:19]Read from MH i2c: E2 03 00 98 1A 00 90 00 26 [12:43:19]RAPDU: 90 00 [12:43:19]wFMCommunicate OK [12:43:19]wFMCommunicate request_size=4 [12:43:19]MH_SAM_APDU [12:43:19]CAPDU: 80 0D 03 02 [12:43:19]Write to MH i2c: E2 08 00 99 1A 80 0D 03 02 00 00 00 00 2E [12:43:19]Write i2c OK [12:43:19]MH_I2C_Read... [12:43:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:43:19]Read from MH i2c: E2 [12:43:19]MH_I2C_Read... [12:43:19]Read from MH i2c: E2 0B 00 [12:43:19]MH_I2C_Read... [12:43:19]Read from MH i2c: E2 0B 00 99 1A 00 66 CE F5 51 23 8F 6A 0E 90 00 D3 [12:43:19]RAPDU: 66 CE F5 51 23 8F 6A 0E 90 00 [12:43:19]wFMCommunicate OK [12:43:19]SAM_PROTO_SignData done [12:43:19]FM_MakeSignedData done [12:43:19]CreateOFDProtocolMessage [12:43:19]wFMCommunicate request_size=4 [12:43:19]MH_SAM_APDU [12:43:19]CAPDU: 80 11 00 00 [12:43:19]Write to MH i2c: E2 08 00 9A 1A 80 11 00 00 00 00 00 00 2E [12:43:19]Write i2c OK [12:43:19]MH_I2C_Read... [12:43:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:43:19]Read from MH i2c: E2 [12:43:19]MH_I2C_Read... [12:43:19]Read from MH i2c: E2 17 00 [12:43:19]MH_I2C_Read... [12:43:19]Read from MH i2c: E2 17 00 9A 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 84 [12:43:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:43:19]wFMCommunicate OK [12:43:19]CreateOFDProtocolMessage done [12:43:19]OFDSenderStorePacket 164944 [12:43:19]StoreOFDPacket docnum=164944 [12:43:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 4E 11 07 01 0C FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 8E 00 00 00 F4 03 04 00 E6 C7 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 50 84 02 00 35 04 06 00 AE 38 6D 73 A1 66 66 CE F5 51 23 8F 6A 0E [12:43:19]CheckFolder [12:43:19]dirname=/storage/ofd_packets [12:43:19]CheckFolder done [12:43:19]ProducePacketName [12:43:19]name=ofd_packets/00164944 [12:43:19]NVStorageSaveData ofd_packets/00164944 [12:43:19]File name is /storage/ofd_packets/00164944 [12:43:19]Write 301 bytes [12:43:19]NVStorageSaveData done [12:43:19]OFDSenderStorePacket done [12:43:19]KKMCreateOFDPacket done [12:43:19]NVStorageSaveData kkm_last_timestamp [12:43:19]File name is /storage/kkm_last_timestamp [12:43:19]Write 4 bytes [12:43:19]NVStorageSaveData done [12:43:19]ExternCall_PrintAddStr [12:43:19]wPrintStart [12:43:19]Write to MH i2c: 01 00 00 9B 1A B5 [12:43:19]Write i2c OK [12:43:19]MH_I2C_Read... [12:43:19]Read from MH i2c: 01 [12:43:19]MH_I2C_Read... [12:43:19]Read from MH i2c: 01 07 00 [12:43:19]MH_I2C_Read... [12:43:19]Read from MH i2c: 01 07 00 9B 1A 00 00 00 00 00 FF 0F CA [12:43:19]RasterBufferAndPrint [12:43:19]line Счет N : (1)459042 [12:43:19]line ИНН: 02508201610067 [12:43:19]line Контрольно-Кассовый Чек [12:43:19]line ПРОДАЖА [12:43:19]line ТРК (МРК, ГНК) : 22 [12:43:19]line Товар: 2710124130 [12:43:19]line Аи-92-К-5 [12:43:19]line 7.600 * 65.80 [12:43:19]line = 500.08 [12:43:19]line НДС 12% НСП 1% [12:43:19]line > о реализуемом товаре [12:43:19]line ОКРУГЛЕНИЕ: -0.08 [12:43:19]line ИТОГО: 500.00 [12:43:19]line Внесено: 500.00 [12:43:19]line СДАЧА: 0.00 [12:43:19]line НСП 1% : 4.42 [12:43:19]line НДС 12% : 53.11 [12:43:19]line Наличными: 500.00 [12:43:19]line Безнал.: 0.00 [12:43:19]line Место: АЗС № 72 "Партнер Нефть" [12:43:19]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:43:19]line СНО: Общий режим [12:43:19]line Чек 142 14.07.2024 12:43 [12:43:19]line Смена: 447 ФФД: 1.0 [12:43:19]line ЗНМ: 0300000160 [12:43:19]line РНМ: 0000000000090829 [12:43:19]line Версия ККМ: 001 [12:43:19]line ФМ: 0000000000874718 [12:43:19]line ФД: 164944 [12:43:19]line ФПД: 191557377696102 [12:43:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T124318&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164944&fm=191557377696102&tin=02508201610067®Number=0000000000090829&sum=50000 [12:43:19]written 0, free lines is 4095 [12:43:19]OFD Sender: Processing packet 164944 [packets to send 104, broken 103] [12:43:19]ProducePacketName [12:43:19]name=ofd_packets/00164944 [12:43:19]OFD Sender: To server: pG, [12:43:19]CommunicateWithHost lk.salyk.kg:30040 [12:43:19]ConnectInit lk.salyk.kg [12:43:19]Connected sock=10 [12:43:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 4E 11 07 01 0C FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 8E 00 00 00 F4 03 04 00 E6 C7 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 50 84 02 00 35 04 06 00 AE 38 6D 73 A1 66 66 CE F5 51 23 8F 6A 0E [12:43:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 A5 47 47 00 07 EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 50 84 02 00 F4 03 04 00 74 6E 93 66 B6 04 01 00 00 59 DE 48 76 A8 62 1E D0 [12:43:19]CommunicateWithHost err = 0 [12:43:19]CheckOFDResponse [12:43:19]1017 (14) - 77093643461234 [12:43:19]1041 (16) - 0000000000874718 [12:43:19]1040 (4) - 164944 [12:43:19]1012 (4) - 14.07.2024 06:21 [12:43:19]1206 (1) - 0 [12:43:19]OFD Sender: Remove packet 164944 [12:43:19]ProducePacketName [12:43:19]name=ofd_packets/00164944 [12:43:19]NVStorageDeleteData [12:43:20]Write to MH i2c: 01 00 00 C5 1A DF [12:43:20]Write i2c OK [12:43:20]MH_I2C_Read... [12:43:20]Read from MH i2c: 01 [12:43:20]MH_I2C_Read... [12:43:20]Read from MH i2c: 01 07 00 [12:43:20]MH_I2C_Read... [12:43:20]Read from MH i2c: 01 07 00 C5 1A 00 00 00 00 00 02 0D F5 [12:43:20]RasterBufferAndPrint [12:43:20]line [12:43:20]line [12:43:20]line [12:43:20]line [12:43:20]line [12:43:20]written 0, free lines is 3336 [12:43:20]MH_Cut [12:43:20]Write to MH i2c: D1 01 00 CC 1A 01 B8 [12:43:20]Write i2c OK [12:43:20]MH_I2C_Read... [12:43:20]Read from MH i2c: D1 [12:43:20]MH_I2C_Read... [12:43:20]Read from MH i2c: D1 01 00 [12:43:20]MH_I2C_Read... [12:43:20]Read from MH i2c: D1 01 00 CC 1A 00 B7 [12:43:20]Write to MH i2c: 01 00 00 CD 1A E7 [12:43:20]Write i2c OK [12:43:20]MH_I2C_Read... [12:43:20]OFD Sender: No OFD packet to send [12:43:20]*** Cut start [12:43:20]*** Partial cut [12:43:20]*** CUTSNS_PIN = 1 [12:43:20]*** CUTSNS_PIN = 0 [12:43:20]*** Brake cut motor [12:43:21]Read from MH i2c: 01 [12:43:21]MH_I2C_Read... [12:43:21]*** Stop cut motor [12:43:21]*** Cut end [12:43:21]Read from MH i2c: 01 07 00 [12:43:21]MH_I2C_Read... [12:43:21]Read from MH i2c: 01 07 00 CD 1A 00 00 00 00 00 FF 0F FC [12:43:21]process_action close_receipt done [12:43:21]requested_data is exist [12:43:21]produce_requested_data [12:43:21]requested_item fm.sn is exist - process it [12:43:21]wFMCommunicate request_size=4 [12:43:21]MH_SAM_APDU [12:43:21]CAPDU: 80 11 00 00 [12:43:21]Write to MH i2c: E2 08 00 CE 1A 80 11 00 00 00 00 00 00 62 [12:43:21]Write i2c OK [12:43:21]MH_I2C_Read... [12:43:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:43:21]Read from MH i2c: E2 [12:43:21]MH_I2C_Read... [12:43:21]Read from MH i2c: E2 17 00 [12:43:21]MH_I2C_Read... [12:43:21]Read from MH i2c: E2 17 00 CE 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B8 [12:43:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:43:21]wFMCommunicate OK [12:43:21]requested_item fd.num is exist - process it [12:43:21]SAM_PROTO_GetFieldsCounters [12:43:21]wFMCommunicate request_size=4 [12:43:21]MH_SAM_APDU [12:43:21]CAPDU: 80 13 00 00 [12:43:21]Write to MH i2c: E2 08 00 CF 1A 80 13 00 00 00 00 00 00 65 [12:43:21]Write i2c OK [12:43:21]MH_I2C_Read... [12:43:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:43:21]Read from MH i2c: E2 [12:43:21]MH_I2C_Read... [12:43:21]Read from MH i2c: E2 62 00 [12:43:21]MH_I2C_Read... [12:43:21]Read from MH i2c: E2 62 00 CF 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 50 84 02 00 0E 04 04 00 BF 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 CC [12:43:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 50 84 02 00 0E 04 04 00 BF 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 [12:43:21]wFMCommunicate OK [12:43:21]SAM_PROTO_GetFieldsCounters done [12:43:21]requested_item shift.num is exist - process it [12:43:21]requested_item shift.opened is exist - process it [12:43:21]req_shift_opened [12:43:21]FM_GetShiftState [12:43:21]SAM_PROTO_GetShiftState [12:43:21]wFMCommunicate request_size=4 [12:43:21]MH_SAM_APDU [12:43:21]CAPDU: 80 13 01 00 [12:43:21]Write to MH i2c: E2 08 00 D0 1A 80 13 01 00 00 00 00 00 67 [12:43:21]Write i2c OK [12:43:21]MH_I2C_Read... [12:43:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:21]Read from MH i2c: E2 [12:43:21]MH_I2C_Read... [12:43:21]Read from MH i2c: E2 0E 00 [12:43:21]MH_I2C_Read... [12:43:21]Read from MH i2c: E2 0E 00 D0 1A 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 E7 [12:43:21]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [12:43:21]wFMCommunicate OK [12:43:21]SAM_PROTO_GetShiftState done [12:43:21]FM_GetShiftState done [12:43:21]req_shift_opened done [12:43:21]requested_item shift.open_date is exist - process it [12:43:21]req_shift_open_date [12:43:21]req_shift_open_date done [12:43:21]produce_requested_data done [12:43:21]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164944,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [12:43:21]process_action_free close_receipt [12:43:21]json_value_free [12:43:21]json_value_free done [12:43:21]process_json_proto returns [12:43:21]Send response to host [12:43:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164944,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [12:43:21]free response buf [12:43:21]execute_script done [12:43:21]execute_script returns [12:43:21]free content buf [12:43:21]Sock 9.Close socket [12:43:21]Sock 9.Thread stoped [12:43:25]OFD Sender: No OFD packet to send [12:43:30]OFD Sender: No OFD packet to send [12:43:35]OFD Sender: No OFD packet to send [12:43:40]OFD Sender: No OFD packet to send [12:43:45]OFD Sender: No OFD packet to send [12:43:50]OFD Sender: No OFD packet to send [12:43:55]OFD Sender: No OFD packet to send [12:44:00]OFD Sender: No OFD packet to send [12:44:05]OFD Sender: No OFD packet to send [12:44:10]OFD Sender: No OFD packet to send [12:44:15]OFD Sender: No OFD packet to send [12:44:20]OFD Sender: No OFD packet to send [12:44:25]OFD Sender: No OFD packet to send [12:44:30]OFD Sender: No OFD packet to send [12:44:35]OFD Sender: No OFD packet to send [12:44:40]OFD Sender: No OFD packet to send [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:05]OFD Sender: No OFD packet to send [12:45:10]OFD Sender: No OFD packet to send [12:45:15]OFD Sender: No OFD packet to send [12:45:20]OFD Sender: No OFD packet to send [12:45:25]OFD Sender: No OFD packet to send [12:45:30]OFD Sender: No OFD packet to send [12:45:35]OFD Sender: No OFD packet to send [12:45:40]OFD Sender: No OFD packet to send [12:45:45]OFD Sender: No OFD packet to send [12:45:50]OFD Sender: No OFD packet to send [12:45:55]OFD Sender: No OFD packet to send [12:46:00]OFD Sender: No OFD packet to send [12:46:05]OFD Sender: No OFD packet to send [12:46:10]OFD Sender: No OFD packet to send [12:46:15]OFD Sender: No OFD packet to send [12:46:20]OFD Sender: No OFD packet to send [12:46:25]OFD Sender: No OFD packet to send [12:46:30]OFD Sender: No OFD packet to send [12:46:35]OFD Sender: No OFD packet to send [12:46:40]OFD Sender: No OFD packet to send [12:46:45]OFD Sender: No OFD packet to send [12:46:50]OFD Sender: No OFD packet to send [12:46:55]OFD Sender: No OFD packet to send [12:47:00]OFD Sender: No OFD packet to send [12:47:05]OFD Sender: No OFD packet to send [12:47:10]OFD Sender: No OFD packet to send [12:47:15]OFD Sender: No OFD packet to send [12:47:20]OFD Sender: No OFD packet to send [12:47:25]OFD Sender: No OFD packet to send [12:47:30]OFD Sender: No OFD packet to send [12:47:35]accept exits with 7 [12:47:35]New connection [12:47:35]New thread 3067616612 created [12:47:35]Thread 3067473252 joined [12:47:35]Waiting for new connection... [12:47:35] Sock 7.Parse request [12:47:35]Sock 7.Check first char [12:47:35]Sock 7.First char is OK [12:47:35]request: POST /json_proto HTTP/1.0 [12:47:35]Method: POST [12:47:35]URL: /json_proto [12:47:35]Method is POST - this is cgi request [12:47:35]url: /json_proto [12:47:35]query_string will be loaded in cgi processing [12:47:35]execute_cgi json_proto POST (null) [12:47:35]execute_cgi path=json_proto method=POST [12:47:35]POST find Content-Length [12:47:35]Host: 172.17.56.4:8080 [12:47:35]Content-Length: 682 [12:47:35]Content-Type: application/json [12:47:35] [12:47:35]POST finish read [12:47:35]Found Content-Length = 682 [12:47:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459043", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "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:47:35]execute_script... [12:47: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)459043", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "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:47:35]POST & json_proto [12:47:35]process_json_proto [12:47:35]json parsed OK: [12:47:35]protocol is kg_v1.0 [12:47:35]action value=close_receipt [12:47:35]process_action close_receipt [12:47:35]cmd_close_receipt [12:47:35]MH_GetDate [12:47:35]Write to MH i2c: F0 00 00 D1 1A DA [12:47:35]Write i2c OK [12:47:35]MH_I2C_Read... [12:47:35]Read from MH i2c: F0 [12:47:35]MH_I2C_Read... [12:47:35]Read from MH i2c: F0 09 00 [12:47:35]MH_I2C_Read... [12:47:35]Read from MH i2c: F0 09 00 D1 1A 00 E8 C8 93 66 C9 DC B2 64 47 [12:47:35]GetLastDocTimeStamp 1720960998 [12:47:35]current date 1720961256 [12:47:35]FM_GetShiftState [12:47:35]SAM_PROTO_GetShiftState [12:47:35]wFMCommunicate request_size=4 [12:47:35]MH_SAM_APDU [12:47:35]CAPDU: 80 13 01 00 [12:47:35]Write to MH i2c: E2 08 00 D2 1A 80 13 01 00 00 00 00 00 69 [12:47:35]Write i2c OK [12:47:35]MH_I2C_Read... [12:47:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:35]Read from MH i2c: E2 [12:47:35]MH_I2C_Read... [12:47:35]Read from MH i2c: E2 0E 00 [12:47:35]MH_I2C_Read... [12:47:35]Read from MH i2c: E2 0E 00 D2 1A 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 E9 [12:47:35]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [12:47:35]wFMCommunicate OK [12:47:35]SAM_PROTO_GetShiftState done [12:47:35]FM_GetShiftState done [12:47:35]opened in 1720917342 [12:47:35]opened+sec_in_day 1721003742 [12:47:35]quantity*price = 100016 [12:47:35]sum+1 = 100017 [12:47:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 143 14.07.2024 12:47 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164945 ФПД: 142635037903384 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T124736&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164945&fm=142635037903384&tin=02508201610067®Number=0000000000090829&sum=100000 [12:47:36]StoreToDocumentArchive [12:47:36]shift 447 fd 164945 [12:47:36]save to /storage/0447/doc_00164945 [12:47:36]save last doc name /storage/0447/doc_00164945 to /storage/kkm_last_doc_name [12:47:36]save OK [12:47:36]Clear old archive folders... [12:47:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:47:36]tlvbuf is B6E4A010 [12:47:36]SAM_PROTO_ClearQueue [12:47:36]wFMCommunicate request_size=4 [12:47:36]MH_SAM_APDU [12:47:36]CAPDU: 80 09 00 00 [12:47:36]Write to MH i2c: E2 08 00 DF 1A 80 09 00 00 00 00 00 00 6B [12:47:36]Write i2c OK [12:47:36]MH_I2C_Read... [12:47:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:47:36]Read from MH i2c: E2 [12:47:36]MH_I2C_Read... [12:47:36]Read from MH i2c: E2 03 00 [12:47:36]MH_I2C_Read... [12:47:36]Read from MH i2c: E2 03 00 DF 1A 00 90 00 6D [12:47:36]RAPDU: 90 00 [12:47:36]wFMCommunicate OK [12:47:36]SAM_PROTO_ClearQueue done [12:47:36]KKMCreateOFDPacket [12:47:36]OFDProtocolAddRootSTLVToBuf [12:47:36]FM_MakeSignedData [12:47:36]FM_MakeSignedData [12:47:36]SAM_PROTO_SignData [12:47:36]wFMCommunicate request_size=4 [12:47:36]MH_SAM_APDU [12:47:36]CAPDU: 80 0D 01 02 [12:47:36]Write to MH i2c: E2 08 00 E0 1A 80 0D 01 02 00 00 00 00 73 [12:47:36]Write i2c OK [12:47:36]MH_I2C_Read... [12:47:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:47:36]Read from MH i2c: E2 [12:47:36]MH_I2C_Read... [12:47:36]Read from MH i2c: E2 03 00 [12:47:36]MH_I2C_Read... [12:47:36]Read from MH i2c: E2 03 00 E0 1A 00 90 00 6E [12:47:36]RAPDU: 90 00 [12:47:36]wFMCommunicate OK [12:47:36]wFMCommunicate request_size=255 [12:47:36]MH_SAM_APDU [12:47:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 E8 C8 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 51 84 02 00 35 04 06 00 81 [12:47:36]Write to MH i2c: E2 02 01 E1 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 E8 C8 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 51 84 02 00 35 04 06 00 81 00 00 DE [12:47:36]Write i2c OK [12:47:36]MH_I2C_Read... [12:47:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:47:36]Read from MH i2c: E2 [12:47:36]MH_I2C_Read... [12:47:36]Read from MH i2c: E2 03 00 [12:47:36]MH_I2C_Read... [12:47:36]Read from MH i2c: E2 03 00 E1 1A 00 90 00 6F [12:47:36]RAPDU: 90 00 [12:47:36]wFMCommunicate OK [12:47:36]wFMCommunicate request_size=10 [12:47:36]MH_SAM_APDU [12:47:36]CAPDU: 80 0D 02 02 05 B9 CE C4 4A 18 [12:47:36]Write to MH i2c: E2 0D 00 E2 1A 80 0D 02 02 05 00 B9 CE C4 4A 18 00 00 2D [12:47:36]Write i2c OK [12:47:36]MH_I2C_Read... [12:47:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:47:37]Read from MH i2c: E2 [12:47:37]MH_I2C_Read... [12:47:37]Read from MH i2c: E2 03 00 [12:47:37]MH_I2C_Read... [12:47:37]Read from MH i2c: E2 03 00 E2 1A 00 90 00 70 [12:47:37]RAPDU: 90 00 [12:47:37]wFMCommunicate OK [12:47:37]wFMCommunicate request_size=4 [12:47:37]MH_SAM_APDU [12:47:37]CAPDU: 80 0D 03 02 [12:47:37]Write to MH i2c: E2 08 00 E3 1A 80 0D 03 02 00 00 00 00 78 [12:47:37]Write i2c OK [12:47:37]MH_I2C_Read... [12:47:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:47:37]Read from MH i2c: E2 [12:47:37]MH_I2C_Read... [12:47:37]Read from MH i2c: E2 0B 00 [12:47:37]MH_I2C_Read... [12:47:37]Read from MH i2c: E2 0B 00 E3 1A 00 E2 86 3E 91 54 E5 01 EB 90 00 D5 [12:47:37]RAPDU: E2 86 3E 91 54 E5 01 EB 90 00 [12:47:37]wFMCommunicate OK [12:47:37]SAM_PROTO_SignData done [12:47:37]FM_MakeSignedData done [12:47:37]CreateOFDProtocolMessage [12:47:37]wFMCommunicate request_size=4 [12:47:37]MH_SAM_APDU [12:47:37]CAPDU: 80 11 00 00 [12:47:37]Write to MH i2c: E2 08 00 E4 1A 80 11 00 00 00 00 00 00 78 [12:47:37]Write i2c OK [12:47:37]MH_I2C_Read... [12:47:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:37]Read from MH i2c: E2 [12:47:37]MH_I2C_Read... [12:47:37]Read from MH i2c: E2 17 00 [12:47:37]MH_I2C_Read... [12:47:37]Read from MH i2c: E2 17 00 E4 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 CE [12:47:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:47:37]wFMCommunicate OK [12:47:37]CreateOFDProtocolMessage done [12:47:37]OFDSenderStorePacket 164945 [12:47:37]StoreOFDPacket docnum=164945 [12:47:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D1 5F 07 01 9A DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 E8 C8 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 51 84 02 00 35 04 06 00 81 B9 CE C4 4A 18 E2 86 3E 91 54 E5 01 EB [12:47:37]CheckFolder [12:47:37]dirname=/storage/ofd_packets [12:47:37]CheckFolder done [12:47:37]ProducePacketName [12:47:37]name=ofd_packets/00164945 [12:47:37]NVStorageSaveData ofd_packets/00164945 [12:47:37]File name is /storage/ofd_packets/00164945 [12:47:37]Write 301 bytes [12:47:37]NVStorageSaveData done [12:47:37]OFDSenderStorePacket done [12:47:37]KKMCreateOFDPacket done [12:47:37]NVStorageSaveData kkm_last_timestamp [12:47:37]File name is /storage/kkm_last_timestamp [12:47:37]Write 4 bytes [12:47:37]NVStorageSaveData done [12:47:37]ExternCall_PrintAddStr [12:47:37]wPrintStart [12:47:37]Write to MH i2c: 01 00 00 E5 1A FF [12:47:37]Write i2c OK [12:47:37]MH_I2C_Read... [12:47:37]Read from MH i2c: 01 [12:47:37]MH_I2C_Read... [12:47:37]Read from MH i2c: 01 07 00 [12:47:37]MH_I2C_Read... [12:47:37]Read from MH i2c: 01 07 00 E5 1A 00 00 00 00 00 FF 0F 14 [12:47:37]RasterBufferAndPrint [12:47:37]line Счет N : (1)459043 [12:47:37]line ИНН: 02508201610067 [12:47:37]line Контрольно-Кассовый Чек [12:47:37]line ПРОДАЖА [12:47:37]line ТРК (МРК, ГНК) : 22 [12:47:37]line Товар: 2710124130 [12:47:37]line Аи-92-К-5 [12:47:37]line 15.200 * 65.80 [12:47:37]line = 1000.16 [12:47:37]line НДС 12% НСП 1% [12:47:37]line > о реализуемом товаре [12:47:37]line ОКРУГЛЕНИЕ: -0.16 [12:47:37]line ИТОГО: 1000.00 [12:47:37]line Внесено: 1000.00 [12:47:37]line СДАЧА: 0.00 [12:47:37]line НСП 1% : 8.85 [12:47:37]line НДС 12% : 106.21 [12:47:37]line Наличными: 1000.00 [12:47:37]line Безнал.: 0.00 [12:47:37]line Место: АЗС № 72 "Партнер Нефть" [12:47:37]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:47:37]line СНО: Общий режим [12:47:37]line Чек 143 14.07.2024 12:47 [12:47:37]line Смена: 447 ФФД: 1.0 [12:47:37]line ЗНМ: 0300000160 [12:47:37]line РНМ: 0000000000090829 [12:47:37]line Версия ККМ: 001 [12:47:37]line ФМ: 0000000000874718 [12:47:37]line ФД: 164945 [12:47:37]line ФПД: 142635037903384 [12:47:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T124736&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164945&fm=142635037903384&tin=02508201610067®Number=0000000000090829&sum=100000 [12:47:37]OFD Sender: Processing packet 164945 [packets to send 104, broken 103] [12:47:37]ProducePacketName [12:47:37]name=ofd_packets/00164945 [12:47:37]OFD Sender: To server: pG, [12:47:37]CommunicateWithHost lk.salyk.kg:30040 [12:47:37]ConnectInit lk.salyk.kg [12:47:37]written 0, free lines is 4095 [12:47:37]Connected sock=10 [12:47:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D1 5F 07 01 9A DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 E8 C8 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 51 84 02 00 35 04 06 00 81 B9 CE C4 4A 18 E2 86 3E 91 54 E5 01 EB [12:47:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 3D 8F 47 00 46 BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 51 84 02 00 F4 03 04 00 76 6F 93 66 B6 04 01 00 00 7C B3 06 74 72 21 86 A3 [12:47:37]CommunicateWithHost err = 0 [12:47:37]CheckOFDResponse [12:47:37]1017 (14) - 77093643461234 [12:47:37]1041 (16) - 0000000000874718 [12:47:37]1040 (4) - 164945 [12:47:37]1012 (4) - 14.07.2024 06:25 [12:47:37]1206 (1) - 0 [12:47:37]OFD Sender: Remove packet 164945 [12:47:37]ProducePacketName [12:47:37]name=ofd_packets/00164945 [12:47:37]NVStorageDeleteData [12:47:37]Write to MH i2c: 01 00 00 0F 1B 2A [12:47:37]Write i2c OK [12:47:37]MH_I2C_Read... [12:47:37]Read from MH i2c: 01 [12:47:37]MH_I2C_Read... [12:47:37]Read from MH i2c: 01 07 00 [12:47:37]MH_I2C_Read... [12:47:37]Read from MH i2c: 01 07 00 0F 1B 00 00 00 00 00 02 0D 40 [12:47:37]RasterBufferAndPrint [12:47:37]line [12:47:37]line [12:47:37]line [12:47:37]line [12:47:37]line [12:47:37]written 0, free lines is 3336 [12:47:37]MH_Cut [12:47:37]Write to MH i2c: D1 01 00 16 1B 01 03 [12:47:37]Write i2c OK [12:47:37]MH_I2C_Read... [12:47:37]Read from MH i2c: D1 [12:47:37]MH_I2C_Read... [12:47:37]Read from MH i2c: D1 01 00 [12:47:37]MH_I2C_Read... [12:47:37]Read from MH i2c: D1 01 00 16 1B 00 02 [12:47:37]Write to MH i2c: 01 00 00 17 1B 32 [12:47:37]Write i2c OK [12:47:37]MH_I2C_Read... [12:47:38]OFD Sender: No OFD packet to send [12:47:38]*** Cut start [12:47:38]*** Partial cut [12:47:38]*** CUTSNS_PIN = 1 [12:47:38]*** CUTSNS_PIN = 0 [12:47:38]*** Brake cut motor [12:47:39]Read from MH i2c: 01 [12:47:39]MH_I2C_Read... [12:47:39]*** Stop cut motor [12:47:39]*** Cut end [12:47:39]Read from MH i2c: 01 07 00 [12:47:39]MH_I2C_Read... [12:47:39]Read from MH i2c: 01 07 00 17 1B 00 00 00 00 00 FF 0F 47 [12:47:39]process_action close_receipt done [12:47:39]requested_data is exist [12:47:39]produce_requested_data [12:47:39]requested_item fm.sn is exist - process it [12:47:39]wFMCommunicate request_size=4 [12:47:39]MH_SAM_APDU [12:47:39]CAPDU: 80 11 00 00 [12:47:39]Write to MH i2c: E2 08 00 18 1B 80 11 00 00 00 00 00 00 AD [12:47:39]Write i2c OK [12:47:39]MH_I2C_Read... [12:47:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:39]Read from MH i2c: E2 [12:47:39]MH_I2C_Read... [12:47:39]Read from MH i2c: E2 17 00 [12:47:39]MH_I2C_Read... [12:47:39]Read from MH i2c: E2 17 00 18 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 03 [12:47:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:47:39]wFMCommunicate OK [12:47:39]requested_item fd.num is exist - process it [12:47:39]SAM_PROTO_GetFieldsCounters [12:47:39]wFMCommunicate request_size=4 [12:47:39]MH_SAM_APDU [12:47:39]CAPDU: 80 13 00 00 [12:47:39]Write to MH i2c: E2 08 00 19 1B 80 13 00 00 00 00 00 00 B0 [12:47:39]Write i2c OK [12:47:39]MH_I2C_Read... [12:47:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:47:39]Read from MH i2c: E2 [12:47:39]MH_I2C_Read... [12:47:39]Read from MH i2c: E2 62 00 [12:47:39]MH_I2C_Read... [12:47:39]Read from MH i2c: E2 62 00 19 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 51 84 02 00 0E 04 04 00 BF 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 1B [12:47:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 51 84 02 00 0E 04 04 00 BF 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 [12:47:39]wFMCommunicate OK [12:47:39]SAM_PROTO_GetFieldsCounters done [12:47:39]requested_item shift.num is exist - process it [12:47:39]requested_item shift.opened is exist - process it [12:47:39]req_shift_opened [12:47:39]FM_GetShiftState [12:47:39]SAM_PROTO_GetShiftState [12:47:39]wFMCommunicate request_size=4 [12:47:39]MH_SAM_APDU [12:47:39]CAPDU: 80 13 01 00 [12:47:39]Write to MH i2c: E2 08 00 1A 1B 80 13 01 00 00 00 00 00 B2 [12:47:39]Write i2c OK [12:47:39]MH_I2C_Read... [12:47:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:39]Read from MH i2c: E2 [12:47:39]MH_I2C_Read... [12:47:39]Read from MH i2c: E2 0E 00 [12:47:39]MH_I2C_Read... [12:47:39]Read from MH i2c: E2 0E 00 1A 1B 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 32 [12:47:39]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [12:47:39]wFMCommunicate OK [12:47:39]SAM_PROTO_GetShiftState done [12:47:39]FM_GetShiftState done [12:47:39]req_shift_opened done [12:47:39]requested_item shift.open_date is exist - process it [12:47:39]req_shift_open_date [12:47:39]req_shift_open_date done [12:47:39]produce_requested_data done [12:47:39]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164945,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [12:47:39]process_action_free close_receipt [12:47:39]json_value_free [12:47:39]json_value_free done [12:47:39]process_json_proto returns [12:47:39]Send response to host [12:47:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164945,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [12:47:39]free response buf [12:47:39]execute_script done [12:47:39]execute_script returns [12:47:39]free content buf [12:47:39]Sock 7.Close socket [12:47:39]Sock 7.Thread stoped [12:47:43]OFD Sender: No OFD packet to send [12:47:46]accept exits with 9 [12:47:46]New connection [12:47:46]New thread 3067473252 created [12:47:46]Thread 3067616612 joined [12:47:46]Waiting for new connection... [12:47:46] Sock 9.Parse request [12:47:46]Sock 9.Check first char [12:47:46]Sock 9.First char is OK [12:47:46]request: POST /json_proto HTTP/1.0 [12:47:46]Method: POST [12:47:46]URL: /json_proto [12:47:46]Method is POST - this is cgi request [12:47:46]url: /json_proto [12:47:46]query_string will be loaded in cgi processing [12:47:46]execute_cgi json_proto POST (null) [12:47:46]execute_cgi path=json_proto method=POST [12:47:46]POST find Content-Length [12:47:46]Host: 172.17.56.4:8080 [12:47:46]Content-Length: 679 [12:47:46]Content-Type: application/json [12:47:46] [12:47:46]POST finish read [12:47:46]Found Content-Length = 679 [12:47:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459044", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 16.690, "sum" : 1200.01, "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" ] } } [12:47:46]execute_script... [12:47: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)459044", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 16.690, "sum" : 1200.01, "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" ] } } [12:47:46]POST & json_proto [12:47:46]process_json_proto [12:47:46]json parsed OK: [12:47:46]protocol is kg_v1.0 [12:47:46]action value=close_receipt [12:47:46]process_action close_receipt [12:47:46]cmd_close_receipt [12:47:46]MH_GetDate [12:47:46]Write to MH i2c: F0 00 00 1B 1B 25 [12:47:46]Write i2c OK [12:47:46]MH_I2C_Read... [12:47:46]Read from MH i2c: F0 [12:47:46]MH_I2C_Read... [12:47:46]Read from MH i2c: F0 09 00 [12:47:46]MH_I2C_Read... [12:47:46]Read from MH i2c: F0 09 00 1B 1B 00 F4 C8 93 66 C9 DC B2 64 9E [12:47:46]GetLastDocTimeStamp 1720961256 [12:47:46]current date 1720961268 [12:47:46]FM_GetShiftState [12:47:46]SAM_PROTO_GetShiftState [12:47:46]wFMCommunicate request_size=4 [12:47:46]MH_SAM_APDU [12:47:46]CAPDU: 80 13 01 00 [12:47:46]Write to MH i2c: E2 08 00 1C 1B 80 13 01 00 00 00 00 00 B4 [12:47:46]Write i2c OK [12:47:46]MH_I2C_Read... [12:47:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:46]Read from MH i2c: E2 [12:47:46]MH_I2C_Read... [12:47:46]Read from MH i2c: E2 0E 00 [12:47:46]MH_I2C_Read... [12:47:46]Read from MH i2c: E2 0E 00 1C 1B 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 34 [12:47:46]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [12:47:46]wFMCommunicate OK [12:47:46]SAM_PROTO_GetShiftState done [12:47:46]FM_GetShiftState done [12:47:46]opened in 1720917342 [12:47:46]opened+sec_in_day 1721003742 [12:47:46]quantity*price = 120001 [12:47:46]sum+1 = 120002 [12:47:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.43 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 144 14.07.2024 12:47 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164946 ФПД: 26923969404585 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T124748&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164946&fm=26923969404585&tin=02508201610067®Number=0000000000090829&sum=120000 [12:47:47]StoreToDocumentArchive [12:47:47]shift 447 fd 164946 [12:47:47]save to /storage/0447/doc_00164946 [12:47:47]save last doc name /storage/0447/doc_00164946 to /storage/kkm_last_doc_name [12:47:47]save OK [12:47:47]Clear old archive folders... [12:47:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:47:47]tlvbuf is 007644A0 [12:47:47]SAM_PROTO_ClearQueue [12:47:47]wFMCommunicate request_size=4 [12:47:47]MH_SAM_APDU [12:47:47]CAPDU: 80 09 00 00 [12:47:47]Write to MH i2c: E2 08 00 29 1B 80 09 00 00 00 00 00 00 B6 [12:47:47]Write i2c OK [12:47:47]MH_I2C_Read... [12:47:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:47:48]Read from MH i2c: E2 [12:47:48]MH_I2C_Read... [12:47:48]Read from MH i2c: E2 03 00 [12:47:48]MH_I2C_Read... [12:47:48]Read from MH i2c: E2 03 00 29 1B 00 90 00 B8 [12:47:48]RAPDU: 90 00 [12:47:48]wFMCommunicate OK [12:47:48]SAM_PROTO_ClearQueue done [12:47:48]KKMCreateOFDPacket [12:47:48]OFDProtocolAddRootSTLVToBuf [12:47:48]FM_MakeSignedData [12:47:48]FM_MakeSignedData [12:47:48]SAM_PROTO_SignData [12:47:48]wFMCommunicate request_size=4 [12:47:48]MH_SAM_APDU [12:47:48]CAPDU: 80 0D 01 02 [12:47:48]Write to MH i2c: E2 08 00 2A 1B 80 0D 01 02 00 00 00 00 BE [12:47:48]Write i2c OK [12:47:48]MH_I2C_Read... [12:47:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:47:48]Read from MH i2c: E2 [12:47:48]MH_I2C_Read... [12:47:48]Read from MH i2c: E2 03 00 [12:47:48]MH_I2C_Read... [12:47:48]Read from MH i2c: E2 03 00 2A 1B 00 90 00 B9 [12:47:48]RAPDU: 90 00 [12:47:48]wFMCommunicate OK [12:47:48]wFMCommunicate request_size=255 [12:47:48]MH_SAM_APDU [12:47:48]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 32 41 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 C1 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 C7 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 90 00 00 00 F4 03 04 00 F4 C8 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 52 84 02 00 35 04 06 00 18 7C B9 A1 [12:47:48]Write to MH i2c: E2 02 01 2B 1B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 32 41 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 C1 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 C7 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 90 00 00 00 F4 03 04 00 F4 C8 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 52 84 02 00 35 04 06 00 18 7C B9 A1 00 00 73 [12:47:48]Write i2c OK [12:47:48]MH_I2C_Read... [12:47:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:47:48]Read from MH i2c: E2 [12:47:48]MH_I2C_Read... [12:47:48]Read from MH i2c: E2 03 00 [12:47:48]MH_I2C_Read... [12:47:48]Read from MH i2c: E2 03 00 2B 1B 00 90 00 BA [12:47:48]RAPDU: 90 00 [12:47:48]wFMCommunicate OK [12:47:48]wFMCommunicate request_size=7 [12:47:48]MH_SAM_APDU [12:47:48]CAPDU: 80 0D 02 02 02 DE A9 [12:47:48]Write to MH i2c: E2 0A 00 2C 1B 80 0D 02 02 02 00 DE A9 00 00 4C [12:47:48]Write i2c OK [12:47:48]MH_I2C_Read... [12:47:48]OFD Sender: No OFD packet to send [12:47:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:47:48]Read from MH i2c: E2 [12:47:48]MH_I2C_Read... [12:47:48]Read from MH i2c: E2 03 00 [12:47:48]MH_I2C_Read... [12:47:48]Read from MH i2c: E2 03 00 2C 1B 00 90 00 BB [12:47:48]RAPDU: 90 00 [12:47:48]wFMCommunicate OK [12:47:48]wFMCommunicate request_size=4 [12:47:48]MH_SAM_APDU [12:47:48]CAPDU: 80 0D 03 02 [12:47:48]Write to MH i2c: E2 08 00 2D 1B 80 0D 03 02 00 00 00 00 C3 [12:47:48]Write i2c OK [12:47:48]MH_I2C_Read... [12:47:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:47:48]Read from MH i2c: E2 [12:47:48]MH_I2C_Read... [12:47:48]Read from MH i2c: E2 0B 00 [12:47:48]MH_I2C_Read... [12:47:48]Read from MH i2c: E2 0B 00 2D 1B 00 A3 AA DE 3B DA F8 7B 37 90 00 AE [12:47:48]RAPDU: A3 AA DE 3B DA F8 7B 37 90 00 [12:47:48]wFMCommunicate OK [12:47:48]SAM_PROTO_SignData done [12:47:48]FM_MakeSignedData done [12:47:48]CreateOFDProtocolMessage [12:47:48]wFMCommunicate request_size=4 [12:47:48]MH_SAM_APDU [12:47:48]CAPDU: 80 11 00 00 [12:47:48]Write to MH i2c: E2 08 00 2E 1B 80 11 00 00 00 00 00 00 C3 [12:47:48]Write i2c OK [12:47:48]MH_I2C_Read... [12:47:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:48]Read from MH i2c: E2 [12:47:48]MH_I2C_Read... [12:47:48]Read from MH i2c: E2 17 00 [12:47:48]MH_I2C_Read... [12:47:48]Read from MH i2c: E2 17 00 2E 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 19 [12:47:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:47:48]wFMCommunicate OK [12:47:48]CreateOFDProtocolMessage done [12:47:48]OFDSenderStorePacket 164946 [12:47:48]StoreOFDPacket docnum=164946 [12:47:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 8F 68 04 01 91 01 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 32 41 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 C1 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 C7 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 90 00 00 00 F4 03 04 00 F4 C8 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 52 84 02 00 35 04 06 00 18 7C B9 A1 DE A9 A3 AA DE 3B DA F8 7B 37 [12:47:48]CheckFolder [12:47:48]dirname=/storage/ofd_packets [12:47:48]CheckFolder done [12:47:48]ProducePacketName [12:47:48]name=ofd_packets/00164946 [12:47:48]NVStorageSaveData ofd_packets/00164946 [12:47:48]File name is /storage/ofd_packets/00164946 [12:47:48]Write 298 bytes [12:47:48]NVStorageSaveData done [12:47:48]OFDSenderStorePacket done [12:47:48]KKMCreateOFDPacket done [12:47:48]NVStorageSaveData kkm_last_timestamp [12:47:48]File name is /storage/kkm_last_timestamp [12:47:48]Write 4 bytes [12:47:48]NVStorageSaveData done [12:47:48]ExternCall_PrintAddStr [12:47:48]wPrintStart [12:47:48]Write to MH i2c: 01 00 00 2F 1B 4A [12:47:48]Write i2c OK [12:47:48]MH_I2C_Read... [12:47:48]Read from MH i2c: 01 [12:47:48]MH_I2C_Read... [12:47:48]Read from MH i2c: 01 07 00 [12:47:48]MH_I2C_Read... [12:47:48]Read from MH i2c: 01 07 00 2F 1B 00 00 00 00 00 FF 0F 5F [12:47:48]RasterBufferAndPrint [12:47:48]line Счет N : (1)459044 [12:47:48]line ИНН: 02508201610067 [12:47:48]line Контрольно-Кассовый Чек [12:47:48]line ПРОДАЖА [12:47:48]line ТРК (МРК, ГНК) : 21 [12:47:48]line Товар: 2710194210 [12:47:48]line ДТ-К-5 [12:47:48]line 16.690 * 71.90 [12:47:48]line = 1200.01 [12:47:48]line НДС 12% НСП 1% [12:47:48]line > о реализуемом товаре [12:47:48]line ОКРУГЛЕНИЕ: -0.01 [12:47:48]line ИТОГО: 1200.00 [12:47:48]line Внесено: 1200.00 [12:47:48]line СДАЧА: 0.00 [12:47:48]line НСП 1% : 10.62 [12:47:48]line НДС 12% : 127.43 [12:47:48]line Наличными: 1200.00 [12:47:48]line Безнал.: 0.00 [12:47:48]line Место: АЗС № 72 "Партнер Нефть" [12:47:48]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:47:48]line СНО: Общий режим [12:47:48]line Чек 144 14.07.2024 12:47 [12:47:48]line Смена: 447 ФФД: 1.0 [12:47:48]line ЗНМ: 0300000160 [12:47:48]line РНМ: 0000000000090829 [12:47:48]line Версия ККМ: 001 [12:47:48]line ФМ: 0000000000874718 [12:47:48]line ФД: 164946 [12:47:48]line ФПД: 26923969404585 [12:47:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T124748&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164946&fm=26923969404585&tin=02508201610067®Number=0000000000090829&sum=120000 [12:47:48]written 0, free lines is 4095 [12:47:48]OFD Sender: Processing packet 164946 [packets to send 104, broken 103] [12:47:48]ProducePacketName [12:47:48]name=ofd_packets/00164946 [12:47:48]OFD Sender: To server: pG, [12:47:48]CommunicateWithHost lk.salyk.kg:30040 [12:47:48]ConnectInit lk.salyk.kg [12:47:48]Connected sock=10 [12:47:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 8F 68 04 01 91 01 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 32 41 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 C1 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 C7 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 90 00 00 00 F4 03 04 00 F4 C8 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 52 84 02 00 35 04 06 00 18 7C B9 A1 DE A9 A3 AA DE 3B DA F8 7B 37 [12:47:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 45 CD 47 00 06 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 52 84 02 00 F4 03 04 00 81 6F 93 66 B6 04 01 00 00 77 03 AC 9A 0B E8 9B E4 [12:47:48]CommunicateWithHost err = 0 [12:47:48]CheckOFDResponse [12:47:48]1017 (14) - 77093643461234 [12:47:48]1041 (16) - 0000000000874718 [12:47:48]1040 (4) - 164946 [12:47:48]1012 (4) - 14.07.2024 06:26 [12:47:48]1206 (1) - 0 [12:47:48]OFD Sender: Remove packet 164946 [12:47:48]ProducePacketName [12:47:48]name=ofd_packets/00164946 [12:47:48]NVStorageDeleteData [12:47:48]Write to MH i2c: 01 00 00 59 1B 74 [12:47:48]Write i2c OK [12:47:48]MH_I2C_Read... [12:47:48]Read from MH i2c: 01 [12:47:48]MH_I2C_Read... [12:47:48]Read from MH i2c: 01 07 00 [12:47:48]MH_I2C_Read... [12:47:48]Read from MH i2c: 01 07 00 59 1B 00 00 00 00 00 1A 0D A2 [12:47:48]RasterBufferAndPrint [12:47:48]line [12:47:48]line [12:47:48]line [12:47:48]line [12:47:48]line [12:47:48]written 0, free lines is 3366 [12:47:49]MH_Cut [12:47:49]Write to MH i2c: D1 01 00 60 1B 01 4D [12:47:49]Write i2c OK [12:47:49]MH_I2C_Read... [12:47:49]Read from MH i2c: D1 [12:47:49]MH_I2C_Read... [12:47:49]Read from MH i2c: D1 01 00 [12:47:49]MH_I2C_Read... [12:47:49]Read from MH i2c: D1 01 00 60 1B 00 4C [12:47:49]Write to MH i2c: 01 00 00 61 1B 7C [12:47:49]Write i2c OK [12:47:49]MH_I2C_Read... [12:47:49]OFD Sender: No OFD packet to send [12:47:49]*** Cut start [12:47:49]*** Partial cut [12:47:49]*** CUTSNS_PIN = 1 [12:47:49]*** CUTSNS_PIN = 0 [12:47:49]*** Brake cut motor [12:47:50]Read from MH i2c: 01 [12:47:50]MH_I2C_Read... [12:47:50]*** Stop cut motor [12:47:50]*** Cut end [12:47:50]Read from MH i2c: 01 07 00 [12:47:50]MH_I2C_Read... [12:47:50]Read from MH i2c: 01 07 00 61 1B 00 00 00 00 00 FF 0F 91 [12:47:50]process_action close_receipt done [12:47:50]requested_data is exist [12:47:50]produce_requested_data [12:47:50]requested_item fm.sn is exist - process it [12:47:50]wFMCommunicate request_size=4 [12:47:50]MH_SAM_APDU [12:47:50]CAPDU: 80 11 00 00 [12:47:50]Write to MH i2c: E2 08 00 62 1B 80 11 00 00 00 00 00 00 F7 [12:47:50]Write i2c OK [12:47:50]MH_I2C_Read... [12:47:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:50]Read from MH i2c: E2 [12:47:50]MH_I2C_Read... [12:47:50]Read from MH i2c: E2 17 00 [12:47:50]MH_I2C_Read... [12:47:50]Read from MH i2c: E2 17 00 62 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 4D [12:47:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:47:50]wFMCommunicate OK [12:47:50]requested_item fd.num is exist - process it [12:47:50]SAM_PROTO_GetFieldsCounters [12:47:50]wFMCommunicate request_size=4 [12:47:50]MH_SAM_APDU [12:47:50]CAPDU: 80 13 00 00 [12:47:50]Write to MH i2c: E2 08 00 63 1B 80 13 00 00 00 00 00 00 FA [12:47:50]Write i2c OK [12:47:50]MH_I2C_Read... [12:47:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:47:50]Read from MH i2c: E2 [12:47:50]MH_I2C_Read... [12:47:50]Read from MH i2c: E2 62 00 [12:47:50]MH_I2C_Read... [12:47:50]Read from MH i2c: E2 62 00 63 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 52 84 02 00 0E 04 04 00 BF 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 69 [12:47:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 52 84 02 00 0E 04 04 00 BF 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 [12:47:50]wFMCommunicate OK [12:47:50]SAM_PROTO_GetFieldsCounters done [12:47:50]requested_item shift.num is exist - process it [12:47:50]requested_item shift.opened is exist - process it [12:47:50]req_shift_opened [12:47:50]FM_GetShiftState [12:47:50]SAM_PROTO_GetShiftState [12:47:50]wFMCommunicate request_size=4 [12:47:50]MH_SAM_APDU [12:47:50]CAPDU: 80 13 01 00 [12:47:50]Write to MH i2c: E2 08 00 64 1B 80 13 01 00 00 00 00 00 FC [12:47:50]Write i2c OK [12:47:50]MH_I2C_Read... [12:47:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:50]Read from MH i2c: E2 [12:47:50]MH_I2C_Read... [12:47:50]Read from MH i2c: E2 0E 00 [12:47:50]MH_I2C_Read... [12:47:50]Read from MH i2c: E2 0E 00 64 1B 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 7C [12:47:50]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [12:47:50]wFMCommunicate OK [12:47:50]SAM_PROTO_GetShiftState done [12:47:50]FM_GetShiftState done [12:47:50]req_shift_opened done [12:47:50]requested_item shift.open_date is exist - process it [12:47:50]req_shift_open_date [12:47:50]req_shift_open_date done [12:47:50]produce_requested_data done [12:47:50]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164946,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [12:47:50]process_action_free close_receipt [12:47:50]json_value_free [12:47:50]json_value_free done [12:47:50]process_json_proto returns [12:47:50]Send response to host [12:47:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164946,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [12:47:50]free response buf [12:47:50]execute_script done [12:47:50]execute_script returns [12:47:50]free content buf [12:47:50]Sock 9.Close socket [12:47:50]Sock 9.Thread stoped [12:47:54]OFD Sender: No OFD packet to send [12:47:59]OFD Sender: No OFD packet to send [12:48:04]OFD Sender: No OFD packet to send [12:48:09]OFD Sender: No OFD packet to send [12:48:14]OFD Sender: No OFD packet to send [12:48:19]OFD Sender: No OFD packet to send [12:48:24]OFD Sender: No OFD packet to send [12:48:29]OFD Sender: No OFD packet to send [12:48:34]accept exits with 7 [12:48:34]New connection [12:48:34]New thread 3067616612 created [12:48:34]Thread 3067473252 joined [12:48:34]Waiting for new connection... [12:48:34] Sock 7.Parse request [12:48:34]Sock 7.Check first char [12:48:34]Sock 7.First char is OK [12:48:34]request: POST /json_proto HTTP/1.0 [12:48:34]Method: POST [12:48:34]URL: /json_proto [12:48:34]Method is POST - this is cgi request [12:48:34]url: /json_proto [12:48:34]query_string will be loaded in cgi processing [12:48:34]execute_cgi json_proto POST (null) [12:48:34]execute_cgi path=json_proto method=POST [12:48:34]POST find Content-Length [12:48:34]Host: 172.17.56.4:8080 [12:48:34]Content-Length: 675 [12:48:34]Content-Type: application/json [12:48:34] [12:48:34]POST finish read [12:48:34]Found Content-Length = 675 [12:48:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459045", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 10.440, "sum" : 750.64, "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" ] } } [12:48:34]execute_script... [12:48: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)459045", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 10.440, "sum" : 750.64, "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" ] } } [12:48:34]POST & json_proto [12:48:34]process_json_proto [12:48:34]json parsed OK: [12:48:34]protocol is kg_v1.0 [12:48:34]action value=close_receipt [12:48:34]process_action close_receipt [12:48:34]cmd_close_receipt [12:48:34]MH_GetDate [12:48:34]Write to MH i2c: F0 00 00 65 1B 6F [12:48:34]Write i2c OK [12:48:34]MH_I2C_Read... [12:48:34]Read from MH i2c: F0 [12:48:34]MH_I2C_Read... [12:48:34]Read from MH i2c: F0 09 00 [12:48:34]MH_I2C_Read... [12:48:34]Read from MH i2c: F0 09 00 65 1B 00 23 C9 93 66 C9 DC B2 64 18 [12:48:34]GetLastDocTimeStamp 1720961268 [12:48:34]current date 1720961315 [12:48:34]FM_GetShiftState [12:48:34]SAM_PROTO_GetShiftState [12:48:34]wFMCommunicate request_size=4 [12:48:34]MH_SAM_APDU [12:48:34]CAPDU: 80 13 01 00 [12:48:34]Write to MH i2c: E2 08 00 66 1B 80 13 01 00 00 00 00 00 FE [12:48:34]Write i2c OK [12:48:34]MH_I2C_Read... [12:48:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:34]Read from MH i2c: E2 [12:48:34]MH_I2C_Read... [12:48:34]Read from MH i2c: E2 0E 00 [12:48:34]MH_I2C_Read... [12:48:34]Read from MH i2c: E2 0E 00 66 1B 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 7E [12:48:34]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [12:48:34]wFMCommunicate OK [12:48:34]SAM_PROTO_GetShiftState done [12:48:34]FM_GetShiftState done [12:48:34]opened in 1720917342 [12:48:34]opened+sec_in_day 1721003742 [12:48:34]quantity*price = 75063 [12:48:34]sum+1 = 75065 [12:48:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 750.00 Внесено: 750.00 СДАЧА: 0.00 НСП 1% : 6.64 НДС 12% : 79.71 Наличными: 750.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 145 14.07.2024 12:48 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164947 ФПД: 56218335140647 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T124835&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164947&fm=56218335140647&tin=02508201610067®Number=0000000000090829&sum=75000 [12:48:35]StoreToDocumentArchive [12:48:35]shift 447 fd 164947 [12:48:35]save to /storage/0447/doc_00164947 [12:48:35]save last doc name /storage/0447/doc_00164947 to /storage/kkm_last_doc_name [12:48:35]save OK [12:48:35]Clear old archive folders... [12:48:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:48:35]tlvbuf is 00782B40 [12:48:35]SAM_PROTO_ClearQueue [12:48:35]wFMCommunicate request_size=4 [12:48:35]MH_SAM_APDU [12:48:35]CAPDU: 80 09 00 00 [12:48:35]Write to MH i2c: E2 08 00 73 1B 80 09 00 00 00 00 00 00 00 [12:48:35]Write i2c OK [12:48:35]MH_I2C_Read... [12:48:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:48:35]Read from MH i2c: E2 [12:48:35]MH_I2C_Read... [12:48:35]Read from MH i2c: E2 03 00 [12:48:35]MH_I2C_Read... [12:48:35]Read from MH i2c: E2 03 00 73 1B 00 90 00 02 [12:48:35]RAPDU: 90 00 [12:48:35]wFMCommunicate OK [12:48:35]SAM_PROTO_ClearQueue done [12:48:35]KKMCreateOFDPacket [12:48:35]OFDProtocolAddRootSTLVToBuf [12:48:35]FM_MakeSignedData [12:48:35]FM_MakeSignedData [12:48:35]SAM_PROTO_SignData [12:48:35]wFMCommunicate request_size=4 [12:48:35]MH_SAM_APDU [12:48:35]CAPDU: 80 0D 01 02 [12:48:35]Write to MH i2c: E2 08 00 74 1B 80 0D 01 02 00 00 00 00 08 [12:48:35]Write i2c OK [12:48:35]MH_I2C_Read... [12:48:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:48:35]Read from MH i2c: E2 [12:48:35]MH_I2C_Read... [12:48:35]Read from MH i2c: E2 03 00 [12:48:35]MH_I2C_Read... [12:48:35]Read from MH i2c: E2 03 00 74 1B 00 90 00 03 [12:48:35]RAPDU: 90 00 [12:48:35]wFMCommunicate OK [12:48:35]wFMCommunicate request_size=255 [12:48:35]MH_SAM_APDU [12:48:35]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 28 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 38 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 23 C9 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 53 84 02 00 35 04 06 00 33 21 59 E5 [12:48:35]Write to MH i2c: E2 02 01 75 1B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 28 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 38 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 23 C9 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 53 84 02 00 35 04 06 00 33 21 59 E5 00 00 A2 [12:48:35]Write i2c OK [12:48:35]MH_I2C_Read... [12:48:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:35]Read from MH i2c: E2 [12:48:35]MH_I2C_Read... [12:48:35]Read from MH i2c: E2 03 00 [12:48:35]MH_I2C_Read... [12:48:35]Read from MH i2c: E2 03 00 75 1B 00 90 00 04 [12:48:35]RAPDU: 90 00 [12:48:35]wFMCommunicate OK [12:48:35]wFMCommunicate request_size=7 [12:48:35]MH_SAM_APDU [12:48:35]CAPDU: 80 0D 02 02 02 5B 27 [12:48:35]Write to MH i2c: E2 0A 00 76 1B 80 0D 02 02 02 00 5B 27 00 00 91 [12:48:35]Write i2c OK [12:48:35]MH_I2C_Read... [12:48:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:35]Read from MH i2c: E2 [12:48:35]MH_I2C_Read... [12:48:35]Read from MH i2c: E2 03 00 [12:48:35]MH_I2C_Read... [12:48:35]Read from MH i2c: E2 03 00 76 1B 00 90 00 05 [12:48:35]RAPDU: 90 00 [12:48:35]wFMCommunicate OK [12:48:35]wFMCommunicate request_size=4 [12:48:35]MH_SAM_APDU [12:48:35]CAPDU: 80 0D 03 02 [12:48:35]Write to MH i2c: E2 08 00 77 1B 80 0D 03 02 00 00 00 00 0D [12:48:35]Write i2c OK [12:48:35]MH_I2C_Read... [12:48:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:48:35]Read from MH i2c: E2 [12:48:35]MH_I2C_Read... [12:48:35]Read from MH i2c: E2 0B 00 [12:48:35]MH_I2C_Read... [12:48:35]Read from MH i2c: E2 0B 00 77 1B 00 E6 56 CD C0 38 A0 88 FE 90 00 35 [12:48:35]RAPDU: E6 56 CD C0 38 A0 88 FE 90 00 [12:48:35]wFMCommunicate OK [12:48:35]SAM_PROTO_SignData done [12:48:35]FM_MakeSignedData done [12:48:35]CreateOFDProtocolMessage [12:48:35]wFMCommunicate request_size=4 [12:48:35]MH_SAM_APDU [12:48:35]CAPDU: 80 11 00 00 [12:48:35]Write to MH i2c: E2 08 00 78 1B 80 11 00 00 00 00 00 00 0D [12:48:35]Write i2c OK [12:48:35]MH_I2C_Read... [12:48:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:35]Read from MH i2c: E2 [12:48:35]MH_I2C_Read... [12:48:35]Read from MH i2c: E2 17 00 [12:48:35]MH_I2C_Read... [12:48:35]Read from MH i2c: E2 17 00 78 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 63 [12:48:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:48:35]wFMCommunicate OK [12:48:35]CreateOFDProtocolMessage done [12:48:35]OFDSenderStorePacket 164947 [12:48:35]StoreOFDPacket docnum=164947 [12:48:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 58 40 04 01 8F 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 C8 28 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 38 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 23 C9 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 53 84 02 00 35 04 06 00 33 21 59 E5 5B 27 E6 56 CD C0 38 A0 88 FE [12:48:35]CheckFolder [12:48:35]dirname=/storage/ofd_packets [12:48:35]CheckFolder done [12:48:35]ProducePacketName [12:48:35]name=ofd_packets/00164947 [12:48:35]NVStorageSaveData ofd_packets/00164947 [12:48:35]File name is /storage/ofd_packets/00164947 [12:48:35]Write 298 bytes [12:48:35]NVStorageSaveData done [12:48:35]OFDSenderStorePacket done [12:48:35]KKMCreateOFDPacket done [12:48:35]NVStorageSaveData kkm_last_timestamp [12:48:35]File name is /storage/kkm_last_timestamp [12:48:35]Write 4 bytes [12:48:35]NVStorageSaveData done [12:48:35]ExternCall_PrintAddStr [12:48:35]wPrintStart [12:48:35]Write to MH i2c: 01 00 00 79 1B 94 [12:48:35]Write i2c OK [12:48:35]MH_I2C_Read... [12:48:35]Read from MH i2c: 01 [12:48:35]MH_I2C_Read... [12:48:35]Read from MH i2c: 01 07 00 [12:48:35]MH_I2C_Read... [12:48:35]Read from MH i2c: 01 07 00 79 1B 00 00 00 00 00 FF 0F A9 [12:48:35]RasterBufferAndPrint [12:48:35]line Счет N : (1)459045 [12:48:35]line ИНН: 02508201610067 [12:48:35]line Контрольно-Кассовый Чек [12:48:35]line ПРОДАЖА [12:48:35]line ТРК (МРК, ГНК) : 11 [12:48:35]line Товар: 2710194210 [12:48:35]line ДТ-К-5 [12:48:35]line 10.440 * 71.90 [12:48:35]line = 750.64 [12:48:35]line НДС 12% НСП 1% [12:48:35]line > о реализуемом товаре [12:48:35]line ОКРУГЛЕНИЕ: -0.64 [12:48:35]line ИТОГО: 750.00 [12:48:35]line Внесено: 750.00 [12:48:35]line СДАЧА: 0.00 [12:48:35]line НСП 1% : 6.64 [12:48:35]line НДС 12% : 79.71 [12:48:35]line Наличными: 750.00 [12:48:35]line Безнал.: 0.00 [12:48:35]line Место: АЗС № 72 "Партнер Нефть" [12:48:35]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:48:35]line СНО: Общий режим [12:48:35]line Чек 145 14.07.2024 12:48 [12:48:35]line Смена: 447 ФФД: 1.0 [12:48:35]line ЗНМ: 0300000160 [12:48:35]line РНМ: 0000000000090829 [12:48:35]line Версия ККМ: 001 [12:48:35]line ФМ: 0000000000874718 [12:48:35]line ФД: 164947 [12:48:35]line ФПД: 56218335140647 [12:48:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T124835&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164947&fm=56218335140647&tin=02508201610067®Number=0000000000090829&sum=75000 [12:48:36]OFD Sender: Processing packet 164947 [packets to send 104, broken 103] [12:48:36]ProducePacketName [12:48:36]name=ofd_packets/00164947 [12:48:36]OFD Sender: To server: pG, [12:48:36]CommunicateWithHost lk.salyk.kg:30040 [12:48:36]ConnectInit lk.salyk.kg [12:48:36]written 0, free lines is 4095 [12:48:36]Connected sock=10 [12:48:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 58 40 04 01 8F 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 C8 28 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 38 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 23 C9 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 53 84 02 00 35 04 06 00 33 21 59 E5 5B 27 E6 56 CD C0 38 A0 88 FE [12:48:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 F5 C5 47 00 06 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 38 37 34 37 31 38 10 04 04 00 53 84 02 00 F4 03 04 00 B1 6F 93 66 B6 04 01 00 00 D2 7C 2E 5C 85 EB B4 D8 [12:48:36]CommunicateWithHost err = 0 [12:48:36]CheckOFDResponse [12:48:36]1017 (14) - 77093643461234 [12:48:36]1041 (16) - 0000000000874718 [12:48:36]1040 (4) - 164947 [12:48:36]1012 (4) - 14.07.2024 06:26 [12:48:36]1206 (1) - 0 [12:48:36]OFD Sender: Remove packet 164947 [12:48:36]ProducePacketName [12:48:36]name=ofd_packets/00164947 [12:48:36]NVStorageDeleteData [12:48:36]Write to MH i2c: 01 00 00 A3 1B BE [12:48:36]Write i2c OK [12:48:36]MH_I2C_Read... [12:48:36]Read from MH i2c: 01 [12:48:36]MH_I2C_Read... [12:48:36]Read from MH i2c: 01 07 00 [12:48:36]MH_I2C_Read... [12:48:36]Read from MH i2c: 01 07 00 A3 1B 00 00 00 00 00 04 0D D6 [12:48:36]RasterBufferAndPrint [12:48:36]line [12:48:36]line [12:48:36]line [12:48:36]line [12:48:36]line [12:48:36]written 0, free lines is 3339 [12:48:36]MH_Cut [12:48:36]Write to MH i2c: D1 01 00 AA 1B 01 97 [12:48:36]Write i2c OK [12:48:36]MH_I2C_Read... [12:48:36]Read from MH i2c: D1 [12:48:36]MH_I2C_Read... [12:48:36]Read from MH i2c: D1 01 00 [12:48:36]MH_I2C_Read... [12:48:36]Read from MH i2c: D1 01 00 AA 1B 00 96 [12:48:36]Write to MH i2c: 01 00 00 AB 1B C6 [12:48:36]Write i2c OK [12:48:36]MH_I2C_Read... [12:48:37]OFD Sender: No OFD packet to send [12:48:37]*** Cut start [12:48:37]*** Partial cut [12:48:37]*** CUTSNS_PIN = 1 [12:48:37]*** CUTSNS_PIN = 0 [12:48:37]*** Brake cut motor [12:48:37]Read from MH i2c: 01 [12:48:37]MH_I2C_Read... [12:48:37]*** Stop cut motor [12:48:37]*** Cut end [12:48:37]Read from MH i2c: 01 07 00 [12:48:37]MH_I2C_Read... [12:48:37]Read from MH i2c: 01 07 00 AB 1B 00 00 00 00 00 FF 0F DB [12:48:37]process_action close_receipt done [12:48:37]requested_data is exist [12:48:37]produce_requested_data [12:48:37]requested_item fm.sn is exist - process it [12:48:37]wFMCommunicate request_size=4 [12:48:37]MH_SAM_APDU [12:48:37]CAPDU: 80 11 00 00 [12:48:37]Write to MH i2c: E2 08 00 AC 1B 80 11 00 00 00 00 00 00 41 [12:48:37]Write i2c OK [12:48:37]MH_I2C_Read... [12:48:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:38]Read from MH i2c: E2 [12:48:38]MH_I2C_Read... [12:48:38]Read from MH i2c: E2 17 00 [12:48:38]MH_I2C_Read... [12:48:38]Read from MH i2c: E2 17 00 AC 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 97 [12:48:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:48:38]wFMCommunicate OK [12:48:38]requested_item fd.num is exist - process it [12:48:38]SAM_PROTO_GetFieldsCounters [12:48:38]wFMCommunicate request_size=4 [12:48:38]MH_SAM_APDU [12:48:38]CAPDU: 80 13 00 00 [12:48:38]Write to MH i2c: E2 08 00 AD 1B 80 13 00 00 00 00 00 00 44 [12:48:38]Write i2c OK [12:48:38]MH_I2C_Read... [12:48:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:48:38]Read from MH i2c: E2 [12:48:38]MH_I2C_Read... [12:48:38]Read from MH i2c: E2 62 00 [12:48:38]MH_I2C_Read... [12:48:38]Read from MH i2c: E2 62 00 AD 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 53 84 02 00 0E 04 04 00 BF 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 B7 [12:48:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 53 84 02 00 0E 04 04 00 BF 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 [12:48:38]wFMCommunicate OK [12:48:38]SAM_PROTO_GetFieldsCounters done [12:48:38]requested_item shift.num is exist - process it [12:48:38]requested_item shift.opened is exist - process it [12:48:38]req_shift_opened [12:48:38]FM_GetShiftState [12:48:38]SAM_PROTO_GetShiftState [12:48:38]wFMCommunicate request_size=4 [12:48:38]MH_SAM_APDU [12:48:38]CAPDU: 80 13 01 00 [12:48:38]Write to MH i2c: E2 08 00 AE 1B 80 13 01 00 00 00 00 00 46 [12:48:38]Write i2c OK [12:48:38]MH_I2C_Read... [12:48:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:38]Read from MH i2c: E2 [12:48:38]MH_I2C_Read... [12:48:38]Read from MH i2c: E2 0E 00 [12:48:38]MH_I2C_Read... [12:48:38]Read from MH i2c: E2 0E 00 AE 1B 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 C6 [12:48:38]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [12:48:38]wFMCommunicate OK [12:48:38]SAM_PROTO_GetShiftState done [12:48:38]FM_GetShiftState done [12:48:38]req_shift_opened done [12:48:38]requested_item shift.open_date is exist - process it [12:48:38]req_shift_open_date [12:48:38]req_shift_open_date done [12:48:38]produce_requested_data done [12:48:38]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164947,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [12:48:38]process_action_free close_receipt [12:48:38]json_value_free [12:48:38]json_value_free done [12:48:38]process_json_proto returns [12:48:38]Send response to host [12:48:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164947,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [12:48:38]free response buf [12:48:38]execute_script done [12:48:38]execute_script returns [12:48:38]free content buf [12:48:38]Sock 7.Close socket [12:48:38]Sock 7.Thread stoped [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:52]OFD Sender: No OFD packet to send [12:49:57]OFD Sender: No OFD packet to send [12:50:02]OFD Sender: No OFD packet to send [12:50:07]OFD Sender: No OFD packet to send [12:50:12]OFD Sender: No OFD packet to send [12:50:17]OFD Sender: No OFD packet to send [12:50:22]OFD Sender: No OFD packet to send [12:50:27]OFD Sender: No OFD packet to send [12:50:32]OFD Sender: No OFD packet to send [12:50:37]OFD Sender: No OFD packet to send [12:50:42]OFD Sender: No OFD packet to send [12:50:47]OFD Sender: No OFD packet to send [12:50:52]OFD Sender: No OFD packet to send [12:50:57]OFD Sender: No OFD packet to send [12:51:02]OFD Sender: No OFD packet to send [12:51:07]OFD Sender: No OFD packet to send [12:51:12]OFD Sender: No OFD packet to send [12:51:17]OFD Sender: No OFD packet to send [12:51:22]OFD Sender: No OFD packet to send [12:51:27]OFD Sender: No OFD packet to send [12:51:32]OFD Sender: No OFD packet to send [12:51:37]OFD Sender: No OFD packet to send [12:51:42]OFD Sender: No OFD packet to send [12:51:47]OFD Sender: No OFD packet to send [12:51:52]accept exits with 9 [12:51:52]New connection [12:51:52]New thread 3067473252 created [12:51:52]Thread 3067616612 joined [12:51:52]Waiting for new connection... [12:51:52] Sock 9.Parse request [12:51:52]Sock 9.Check first char [12:51:52]Sock 9.First char is OK [12:51:52]request: POST /json_proto HTTP/1.0 [12:51:52]Method: POST [12:51:52]URL: /json_proto [12:51:52]Method is POST - this is cgi request [12:51:52]url: /json_proto [12:51:52]query_string will be loaded in cgi processing [12:51:52]execute_cgi json_proto POST (null) [12:51:52]execute_cgi path=json_proto method=POST [12:51:52]POST find Content-Length [12:51:52]Host: 172.17.56.4:8080 [12:51:52]Content-Length: 640 [12:51:52]Content-Type: application/json [12:51:52] [12:51:52]POST finish read [12:51:52]Found Content-Length = 640 [12:51:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459046", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.000, "sum" : 658.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 658.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:51:52]execute_script... [12:51: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)459046", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.000, "sum" : 658.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 658.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:51:52]POST & json_proto [12:51:52]process_json_proto [12:51:52]json parsed OK: [12:51:52]protocol is kg_v1.0 [12:51:52]action value=close_receipt [12:51:52]process_action close_receipt [12:51:52]cmd_close_receipt [12:51:52]MH_GetDate [12:51:52]Write to MH i2c: F0 00 00 AF 1B B9 [12:51:52]Write i2c OK [12:51:52]MH_I2C_Read... [12:51:52]Read from MH i2c: F0 [12:51:52]MH_I2C_Read... [12:51:52]Read from MH i2c: F0 09 00 [12:51:52]MH_I2C_Read... [12:51:52]Read from MH i2c: F0 09 00 AF 1B 00 E9 C9 93 66 C9 DC B2 64 28 [12:51:52]GetLastDocTimeStamp 1720961315 [12:51:52]current date 1720961513 [12:51:52]FM_GetShiftState [12:51:52]SAM_PROTO_GetShiftState [12:51:52]wFMCommunicate request_size=4 [12:51:52]MH_SAM_APDU [12:51:52]CAPDU: 80 13 01 00 [12:51:52]Write to MH i2c: E2 08 00 B0 1B 80 13 01 00 00 00 00 00 48 [12:51:52]Write i2c OK [12:51:52]MH_I2C_Read... [12:51:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:52]Read from MH i2c: E2 [12:51:52]MH_I2C_Read... [12:51:52]Read from MH i2c: E2 0E 00 [12:51:52]MH_I2C_Read... [12:51:52]Read from MH i2c: E2 0E 00 B0 1B 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 C8 [12:51:52]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [12:51:52]wFMCommunicate OK [12:51:52]SAM_PROTO_GetShiftState done [12:51:52]FM_GetShiftState done [12:51:52]opened in 1720917342 [12:51:52]opened+sec_in_day 1721003742 [12:51:52]quantity*price = 65800 [12:51:52]sum+1 = 65801 [12:51:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 658.00 НСП 1% : 5.82 НДС 12% : 69.88 Наличными: 658.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 146 14.07.2024 12:51 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164948 ФПД: 162888518303233 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T125153&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164948&fm=162888518303233&tin=02508201610067®Number=0000000000090829&sum=65800 [12:51:53]StoreToDocumentArchive [12:51:53]shift 447 fd 164948 [12:51:53]save to /storage/0447/doc_00164948 [12:51:53]save last doc name /storage/0447/doc_00164948 to /storage/kkm_last_doc_name [12:51:53]save OK [12:51:53]Clear old archive folders... [12:51:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:51:53]tlvbuf is 00746CD0 [12:51:53]SAM_PROTO_ClearQueue [12:51:53]wFMCommunicate request_size=4 [12:51:53]MH_SAM_APDU [12:51:53]CAPDU: 80 09 00 00 [12:51:53]Write to MH i2c: E2 08 00 BD 1B 80 09 00 00 00 00 00 00 4A [12:51:53]Write i2c OK [12:51:53]MH_I2C_Read... [12:51:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:51:53]Read from MH i2c: E2 [12:51:53]MH_I2C_Read... [12:51:53]Read from MH i2c: E2 03 00 [12:51:53]MH_I2C_Read... [12:51:53]Read from MH i2c: E2 03 00 BD 1B 00 90 00 4C [12:51:53]RAPDU: 90 00 [12:51:53]wFMCommunicate OK [12:51:53]SAM_PROTO_ClearQueue done [12:51:53]KKMCreateOFDPacket [12:51:53]OFDProtocolAddRootSTLVToBuf [12:51:53]FM_MakeSignedData [12:51:53]FM_MakeSignedData [12:51:53]SAM_PROTO_SignData [12:51:53]wFMCommunicate request_size=4 [12:51:53]MH_SAM_APDU [12:51:53]CAPDU: 80 0D 01 02 [12:51:53]Write to MH i2c: E2 08 00 BE 1B 80 0D 01 02 00 00 00 00 52 [12:51:53]Write i2c OK [12:51:53]MH_I2C_Read... [12:51:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:51:53]Read from MH i2c: E2 [12:51:53]MH_I2C_Read... [12:51:53]Read from MH i2c: E2 03 00 [12:51:53]MH_I2C_Read... [12:51:53]Read from MH i2c: E2 03 00 BE 1B 00 90 00 4D [12:51:53]RAPDU: 90 00 [12:51:53]wFMCommunicate OK [12:51:53]wFMCommunicate request_size=255 [12:51:53]MH_SAM_APDU [12:51:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 E9 C9 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 54 84 02 00 35 04 06 00 94 [12:51:53]Write to MH i2c: E2 02 01 BF 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 E9 C9 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 54 84 02 00 35 04 06 00 94 00 00 9E [12:51:53]Write i2c OK [12:51:53]MH_I2C_Read... [12:51:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:53]Read from MH i2c: E2 [12:51:53]MH_I2C_Read... [12:51:53]Read from MH i2c: E2 03 00 [12:51:53]MH_I2C_Read... [12:51:53]Read from MH i2c: E2 03 00 BF 1B 00 90 00 4E [12:51:53]RAPDU: 90 00 [12:51:53]wFMCommunicate OK [12:51:53]wFMCommunicate request_size=10 [12:51:53]MH_SAM_APDU [12:51:53]CAPDU: 80 0D 02 02 05 25 70 45 7E 01 [12:51:53]Write to MH i2c: E2 0D 00 C0 1B 80 0D 02 02 05 00 25 70 45 7E 01 00 00 B8 [12:51:53]Write i2c OK [12:51:53]MH_I2C_Read... [12:51:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:53]Read from MH i2c: E2 [12:51:53]MH_I2C_Read... [12:51:53]Read from MH i2c: E2 03 00 [12:51:53]MH_I2C_Read... [12:51:53]Read from MH i2c: E2 03 00 C0 1B 00 90 00 4F [12:51:53]RAPDU: 90 00 [12:51:53]wFMCommunicate OK [12:51:53]wFMCommunicate request_size=4 [12:51:53]MH_SAM_APDU [12:51:53]CAPDU: 80 0D 03 02 [12:51:53]Write to MH i2c: E2 08 00 C1 1B 80 0D 03 02 00 00 00 00 57 [12:51:53]Write i2c OK [12:51:53]MH_I2C_Read... [12:51:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:51:53]Read from MH i2c: E2 [12:51:53]MH_I2C_Read... [12:51:53]Read from MH i2c: E2 0B 00 [12:51:53]MH_I2C_Read... [12:51:53]Read from MH i2c: E2 0B 00 C1 1B 00 63 2D E0 98 0A 99 1B 15 90 00 33 [12:51:53]RAPDU: 63 2D E0 98 0A 99 1B 15 90 00 [12:51:53]wFMCommunicate OK [12:51:53]SAM_PROTO_SignData done [12:51:53]FM_MakeSignedData done [12:51:53]CreateOFDProtocolMessage [12:51:53]wFMCommunicate request_size=4 [12:51:53]MH_SAM_APDU [12:51:53]CAPDU: 80 11 00 00 [12:51:53]Write to MH i2c: E2 08 00 C2 1B 80 11 00 00 00 00 00 00 57 [12:51:53]Write i2c OK [12:51:53]MH_I2C_Read... [12:51:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:53]Read from MH i2c: E2 [12:51:53]MH_I2C_Read... [12:51:53]Read from MH i2c: E2 17 00 [12:51:53]MH_I2C_Read... [12:51:53]Read from MH i2c: E2 17 00 C2 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 AD [12:51:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:51:53]wFMCommunicate OK [12:51:53]CreateOFDProtocolMessage done [12:51:53]OFDSenderStorePacket 164948 [12:51:53]StoreOFDPacket docnum=164948 [12:51:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 DA 6D 07 01 4D 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 E9 C9 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 54 84 02 00 35 04 06 00 94 25 70 45 7E 01 63 2D E0 98 0A 99 1B 15 [12:51:53]CheckFolder [12:51:53]dirname=/storage/ofd_packets [12:51:53]CheckFolder done [12:51:53]ProducePacketName [12:51:53]name=ofd_packets/00164948 [12:51:53]NVStorageSaveData ofd_packets/00164948 [12:51:53]File name is /storage/ofd_packets/00164948 [12:51:53]Write 301 bytes [12:51:53]NVStorageSaveData done [12:51:53]OFDSenderStorePacket done [12:51:53]KKMCreateOFDPacket done [12:51:53]NVStorageSaveData kkm_last_timestamp [12:51:53]File name is /storage/kkm_last_timestamp [12:51:53]Write 4 bytes [12:51:53]NVStorageSaveData done [12:51:53]ExternCall_PrintAddStr [12:51:53]wPrintStart [12:51:53]Write to MH i2c: 01 00 00 C3 1B DE [12:51:53]Write i2c OK [12:51:53]MH_I2C_Read... [12:51:53]Read from MH i2c: 01 [12:51:53]MH_I2C_Read... [12:51:53]Read from MH i2c: 01 07 00 [12:51:53]MH_I2C_Read... [12:51:53]Read from MH i2c: 01 07 00 C3 1B 00 00 00 00 00 FF 0F F3 [12:51:53]RasterBufferAndPrint [12:51:53]line Счет N : (1)459046 [12:51:53]line ИНН: 02508201610067 [12:51:53]line Контрольно-Кассовый Чек [12:51:53]line ПРОДАЖА [12:51:53]line ТРК (МРК, ГНК) : 12 [12:51:53]line Товар: 2710124130 [12:51:53]line Аи-92-К-5 [12:51:53]line 10.000 * 65.80 [12:51:53]line = 658.00 [12:51:53]line НДС 12% НСП 1% [12:51:53]line > о реализуемом товаре [12:51:53]line ИТОГО: 658.00 [12:51:53]line НСП 1% : 5.82 [12:51:53]line НДС 12% : 69.88 [12:51:53]line Наличными: 658.00 [12:51:53]line Безнал.: 0.00 [12:51:53]line Место: АЗС № 72 "Партнер Нефть" [12:51:53]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:51:53]line СНО: Общий режим [12:51:53]line Чек 146 14.07.2024 12:51 [12:51:53]line Смена: 447 ФФД: 1.0 [12:51:53]line ЗНМ: 0300000160 [12:51:53]line РНМ: 0000000000090829 [12:51:53]line Версия ККМ: 001 [12:51:53]line ФМ: 0000000000874718 [12:51:53]line ФД: 164948 [12:51:53]line ФПД: 162888518303233 [12:51:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T125153&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164948&fm=162888518303233&tin=02508201610067®Number=0000000000090829&sum=65800 [12:51:54]written 0, free lines is 4095 [12:51:54]OFD Sender: Processing packet 164948 [packets to send 104, broken 103] [12:51:54]ProducePacketName [12:51:54]name=ofd_packets/00164948 [12:51:54]OFD Sender: To server: pG, [12:51:54]CommunicateWithHost lk.salyk.kg:30040 [12:51:54]ConnectInit lk.salyk.kg [12:51:54]Connected sock=10 [12:51:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 DA 6D 07 01 4D 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 E9 C9 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 54 84 02 00 35 04 06 00 94 25 70 45 7E 01 63 2D E0 98 0A 99 1B 15 [12:51:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 E5 80 47 00 7D 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 54 84 02 00 F4 03 04 00 77 70 93 66 B6 04 01 00 00 C5 6C 5F 92 DC 18 C4 78 [12:51:54]CommunicateWithHost err = 0 [12:51:54]CheckOFDResponse [12:51:54]1017 (14) - 77093643461234 [12:51:54]1041 (16) - 0000000000874718 [12:51:54]1040 (4) - 164948 [12:51:54]1012 (4) - 14.07.2024 06:30 [12:51:54]1206 (1) - 0 [12:51:54]OFD Sender: Remove packet 164948 [12:51:54]ProducePacketName [12:51:54]name=ofd_packets/00164948 [12:51:54]NVStorageDeleteData [12:51:54]Write to MH i2c: 01 00 00 EA 1B 05 [12:51:54]Write i2c OK [12:51:54]MH_I2C_Read... [12:51:54]Read from MH i2c: 01 [12:51:54]MH_I2C_Read... [12:51:54]Read from MH i2c: 01 07 00 [12:51:54]MH_I2C_Read... [12:51:54]Read from MH i2c: 01 07 00 EA 1B 00 00 00 00 00 4B 0D 64 [12:51:54]RasterBufferAndPrint [12:51:54]line [12:51:54]line [12:51:54]line [12:51:54]line [12:51:54]line [12:51:54]written 0, free lines is 3409 [12:51:54]MH_Cut [12:51:54]Write to MH i2c: D1 01 00 F1 1B 01 DE [12:51:54]Write i2c OK [12:51:54]MH_I2C_Read... [12:51:54]Read from MH i2c: D1 [12:51:54]MH_I2C_Read... [12:51:54]Read from MH i2c: D1 01 00 [12:51:54]MH_I2C_Read... [12:51:54]Read from MH i2c: D1 01 00 F1 1B 00 DD [12:51:54]Write to MH i2c: 01 00 00 F2 1B 0D [12:51:54]Write i2c OK [12:51:54]MH_I2C_Read... [12:51:54]OFD Sender: No OFD packet to send [12:51:55]*** Cut start [12:51:55]*** Partial cut [12:51:55]*** CUTSNS_PIN = 1 [12:51:55]*** CUTSNS_PIN = 0 [12:51:55]*** Brake cut motor [12:51:55]Read from MH i2c: 01 [12:51:55]MH_I2C_Read... [12:51:55]*** Stop cut motor [12:51:55]*** Cut end [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 F2 1B 00 00 00 00 00 FF 0F 22 [12:51:55]process_action close_receipt done [12:51:55]requested_data is exist [12:51:55]produce_requested_data [12:51:55]requested_item fm.sn is exist - process it [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 F3 1B 80 11 00 00 00 00 00 00 88 [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 F3 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DE [12:51:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:51:55]wFMCommunicate OK [12:51:55]requested_item fd.num is exist - process it [12:51:55]SAM_PROTO_GetFieldsCounters [12:51:55]wFMCommunicate request_size=4 [12:51:55]MH_SAM_APDU [12:51:55]CAPDU: 80 13 00 00 [12:51:55]Write to MH i2c: E2 08 00 F4 1B 80 13 00 00 00 00 00 00 8B [12:51:55]Write i2c OK [12:51:55]MH_I2C_Read... [12:51:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:51:55]Read from MH i2c: E2 [12:51:55]MH_I2C_Read... [12:51:55]Read from MH i2c: E2 62 00 [12:51:55]MH_I2C_Read... [12:51:55]Read from MH i2c: E2 62 00 F4 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 54 84 02 00 0E 04 04 00 BF 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 02 [12:51:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 54 84 02 00 0E 04 04 00 BF 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 [12:51:55]wFMCommunicate OK [12:51:55]SAM_PROTO_GetFieldsCounters done [12:51:55]requested_item shift.num is exist - process it [12:51:55]requested_item shift.opened is exist - process it [12:51:55]req_shift_opened [12:51:55]FM_GetShiftState [12:51:55]SAM_PROTO_GetShiftState [12:51:55]wFMCommunicate request_size=4 [12:51:55]MH_SAM_APDU [12:51:55]CAPDU: 80 13 01 00 [12:51:55]Write to MH i2c: E2 08 00 F5 1B 80 13 01 00 00 00 00 00 8D [12:51:55]Write i2c OK [12:51:55]MH_I2C_Read... [12:51:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:55]Read from MH i2c: E2 [12:51:55]MH_I2C_Read... [12:51:55]Read from MH i2c: E2 0E 00 [12:51:55]MH_I2C_Read... [12:51:55]Read from MH i2c: E2 0E 00 F5 1B 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 0D [12:51:55]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [12:51:55]wFMCommunicate OK [12:51:55]SAM_PROTO_GetShiftState done [12:51:55]FM_GetShiftState done [12:51:55]req_shift_opened done [12:51:55]requested_item shift.open_date is exist - process it [12:51:55]req_shift_open_date [12:51:55]req_shift_open_date done [12:51:55]produce_requested_data done [12:51:55]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164948,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [12:51:55]process_action_free close_receipt [12:51:55]json_value_free [12:51:55]json_value_free done [12:51:55]process_json_proto returns [12:51:55]Send response to host [12:51:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164948,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [12:51:55]free response buf [12:51:55]execute_script done [12:51:55]execute_script returns [12:51:55]free content buf [12:51:55]Sock 9.Close socket [12:51:55]Sock 9.Thread stoped [12:51:59]OFD Sender: No OFD packet to send [12:52:04]OFD Sender: No OFD packet to send [12:52:09]OFD Sender: No OFD packet to send [12:52:14]OFD Sender: No OFD packet to send [12:52:19]OFD Sender: No OFD packet to send [12:52:24]OFD Sender: No OFD packet to send [12:52:29]OFD Sender: No OFD packet to send [12:52:34]OFD Sender: No OFD packet to send [12:52:39]OFD Sender: No OFD packet to send [12:52:44]OFD Sender: No OFD packet to send [12:52:49]OFD Sender: No OFD packet to send [12:52:54]OFD Sender: No OFD packet to send [12:52:59]OFD Sender: No OFD packet to send [12:53:04]OFD Sender: No OFD packet to send [12:53:09]OFD Sender: No OFD packet to send [12:53:14]OFD Sender: No OFD packet to send [12:53:19]OFD Sender: No OFD packet to send [12:53:24]OFD Sender: No OFD packet to send [12:53:28]accept exits with 7 [12:53:28]New connection [12:53:28]New thread 3067616612 created [12:53:28]Thread 3067473252 joined [12:53:28]Waiting for new connection... [12:53:28] Sock 7.Parse request [12:53:28]Sock 7.Check first char [12:53:28]Sock 7.First char is OK [12:53:28]request: POST /json_proto HTTP/1.0 [12:53:28]Method: POST [12:53:28]URL: /json_proto [12:53:28]Method is POST - this is cgi request [12:53:28]url: /json_proto [12:53:28]query_string will be loaded in cgi processing [12:53:28]execute_cgi json_proto POST (null) [12:53:28]execute_cgi path=json_proto method=POST [12:53:28]POST find Content-Length [12:53:28]Host: 172.17.56.4:8080 [12:53:28]Content-Length: 677 [12:53:28]Content-Type: application/json [12:53:28] [12:53:28]POST finish read [12:53:28]Found Content-Length = 677 [12:53:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459047", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:53:28]execute_script... [12:53:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459047", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:53:28]POST & json_proto [12:53:28]process_json_proto [12:53:28]json parsed OK: [12:53:28]protocol is kg_v1.0 [12:53:28]action value=close_receipt [12:53:28]process_action close_receipt [12:53:28]cmd_close_receipt [12:53:28]MH_GetDate [12:53:28]Write to MH i2c: F0 00 00 F6 1B 00 [12:53:28]Write i2c OK [12:53:28]MH_I2C_Read... [12:53:28]Read from MH i2c: F0 [12:53:28]MH_I2C_Read... [12:53:28]Read from MH i2c: F0 09 00 [12:53:28]MH_I2C_Read... [12:53:28]Read from MH i2c: F0 09 00 F6 1B 00 4A CA 93 66 C9 DC B2 64 D1 [12:53:28]GetLastDocTimeStamp 1720961513 [12:53:28]current date 1720961610 [12:53:28]FM_GetShiftState [12:53:28]SAM_PROTO_GetShiftState [12:53:28]wFMCommunicate request_size=4 [12:53:28]MH_SAM_APDU [12:53:28]CAPDU: 80 13 01 00 [12:53:28]Write to MH i2c: E2 08 00 F7 1B 80 13 01 00 00 00 00 00 8F [12:53:28]Write i2c OK [12:53:28]MH_I2C_Read... [12:53:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:28]Read from MH i2c: E2 [12:53:28]MH_I2C_Read... [12:53:28]Read from MH i2c: E2 0E 00 [12:53:28]MH_I2C_Read... [12:53:28]Read from MH i2c: E2 0E 00 F7 1B 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 0F [12:53:28]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [12:53:28]wFMCommunicate OK [12:53:28]SAM_PROTO_GetShiftState done [12:53:28]FM_GetShiftState done [12:53:28]opened in 1720917342 [12:53:28]opened+sec_in_day 1721003742 [12:53:28]quantity*price = 50008 [12:53:28]sum+1 = 50009 [12:53:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 147 14.07.2024 12:53 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164949 ФПД: 107583543491611 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T125330&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164949&fm=107583543491611&tin=02508201610067®Number=0000000000090829&sum=50000 [12:53:29]StoreToDocumentArchive [12:53:29]shift 447 fd 164949 [12:53:29]save to /storage/0447/doc_00164949 [12:53:29]save last doc name /storage/0447/doc_00164949 to /storage/kkm_last_doc_name [12:53:29]save OK [12:53:29]Clear old archive folders... [12:53:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:53:29]tlvbuf is 0073CF10 [12:53:29]SAM_PROTO_ClearQueue [12:53:29]wFMCommunicate request_size=4 [12:53:29]MH_SAM_APDU [12:53:29]CAPDU: 80 09 00 00 [12:53:29]Write to MH i2c: E2 08 00 04 1C 80 09 00 00 00 00 00 00 92 [12:53:29]Write i2c OK [12:53:29]MH_I2C_Read... [12:53:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:53:30]Read from MH i2c: E2 [12:53:30]MH_I2C_Read... [12:53:30]Read from MH i2c: E2 03 00 [12:53:30]MH_I2C_Read... [12:53:30]Read from MH i2c: E2 03 00 04 1C 00 90 00 94 [12:53:30]RAPDU: 90 00 [12:53:30]wFMCommunicate OK [12:53:30]SAM_PROTO_ClearQueue done [12:53:30]KKMCreateOFDPacket [12:53:30]OFDProtocolAddRootSTLVToBuf [12:53:30]FM_MakeSignedData [12:53:30]FM_MakeSignedData [12:53:30]SAM_PROTO_SignData [12:53:30]wFMCommunicate request_size=4 [12:53:30]MH_SAM_APDU [12:53:30]CAPDU: 80 0D 01 02 [12:53:30]Write to MH i2c: E2 08 00 05 1C 80 0D 01 02 00 00 00 00 9A [12:53:30]Write i2c OK [12:53:30]MH_I2C_Read... [12:53:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:53:30]Read from MH i2c: E2 [12:53:30]MH_I2C_Read... [12:53:30]Read from MH i2c: E2 03 00 [12:53:30]MH_I2C_Read... [12:53:30]Read from MH i2c: E2 03 00 05 1C 00 90 00 95 [12:53:30]RAPDU: 90 00 [12:53:30]wFMCommunicate OK [12:53:30]wFMCommunicate request_size=255 [12:53:30]MH_SAM_APDU [12:53:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 93 00 00 00 F4 03 04 00 4A CA 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 55 84 02 00 35 04 06 00 61 [12:53:30]Write to MH i2c: E2 02 01 06 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 93 00 00 00 F4 03 04 00 4A CA 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 55 84 02 00 35 04 06 00 61 00 00 AF [12:53:30]Write i2c OK [12:53:30]MH_I2C_Read... [12:53:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:30]Read from MH i2c: E2 [12:53:30]MH_I2C_Read... [12:53:30]Read from MH i2c: E2 03 00 [12:53:30]MH_I2C_Read... [12:53:30]Read from MH i2c: E2 03 00 06 1C 00 90 00 96 [12:53:30]RAPDU: 90 00 [12:53:30]wFMCommunicate OK [12:53:30]wFMCommunicate request_size=10 [12:53:30]MH_SAM_APDU [12:53:30]CAPDU: 80 0D 02 02 05 D8 BE E4 BC 1B [12:53:30]Write to MH i2c: E2 0D 00 07 1C 80 0D 02 02 05 00 D8 BE E4 BC 1B 00 00 F8 [12:53:30]Write i2c OK [12:53:30]MH_I2C_Read... [12:53:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:30]Read from MH i2c: E2 [12:53:30]MH_I2C_Read... [12:53:30]Read from MH i2c: E2 03 00 [12:53:30]MH_I2C_Read... [12:53:30]Read from MH i2c: E2 03 00 07 1C 00 90 00 97 [12:53:30]RAPDU: 90 00 [12:53:30]wFMCommunicate OK [12:53:30]wFMCommunicate request_size=4 [12:53:30]MH_SAM_APDU [12:53:30]CAPDU: 80 0D 03 02 [12:53:30]Write to MH i2c: E2 08 00 08 1C 80 0D 03 02 00 00 00 00 9F [12:53:30]Write i2c OK [12:53:30]MH_I2C_Read... [12:53:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:53:30]Read from MH i2c: E2 [12:53:30]MH_I2C_Read... [12:53:30]Read from MH i2c: E2 0B 00 [12:53:30]MH_I2C_Read... [12:53:30]Read from MH i2c: E2 0B 00 08 1C 00 65 13 87 8D 6D 9E B0 44 90 00 2B [12:53:30]RAPDU: 65 13 87 8D 6D 9E B0 44 90 00 [12:53:30]wFMCommunicate OK [12:53:30]SAM_PROTO_SignData done [12:53:30]FM_MakeSignedData done [12:53:30]CreateOFDProtocolMessage [12:53:30]wFMCommunicate request_size=4 [12:53:30]MH_SAM_APDU [12:53:30]CAPDU: 80 11 00 00 [12:53:30]Write to MH i2c: E2 08 00 09 1C 80 11 00 00 00 00 00 00 9F [12:53:30]Write i2c OK [12:53:30]MH_I2C_Read... [12:53:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:30]Read from MH i2c: E2 [12:53:30]MH_I2C_Read... [12:53:30]Read from MH i2c: E2 17 00 [12:53:30]MH_I2C_Read... [12:53:30]Read from MH i2c: E2 17 00 09 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F5 [12:53:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:53:30]wFMCommunicate OK [12:53:30]CreateOFDProtocolMessage done [12:53:30]OFDSenderStorePacket 164949 [12:53:30]StoreOFDPacket docnum=164949 [12:53:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 29 49 07 01 AC 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 93 00 00 00 F4 03 04 00 4A CA 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 55 84 02 00 35 04 06 00 61 D8 BE E4 BC 1B 65 13 87 8D 6D 9E B0 44 [12:53:30]CheckFolder [12:53:30]dirname=/storage/ofd_packets [12:53:30]CheckFolder done [12:53:30]ProducePacketName [12:53:30]name=ofd_packets/00164949 [12:53:30]NVStorageSaveData ofd_packets/00164949 [12:53:30]File name is /storage/ofd_packets/00164949 [12:53:30]Write 301 bytes [12:53:30]NVStorageSaveData done [12:53:30]OFDSenderStorePacket done [12:53:30]KKMCreateOFDPacket done [12:53:30]NVStorageSaveData kkm_last_timestamp [12:53:30]File name is /storage/kkm_last_timestamp [12:53:30]Write 4 bytes [12:53:30]NVStorageSaveData done [12:53:30]ExternCall_PrintAddStr [12:53:30]wPrintStart [12:53:30]Write to MH i2c: 01 00 00 0A 1C 26 [12:53:30]Write i2c OK [12:53:30]MH_I2C_Read... [12:53:30]Read from MH i2c: 01 [12:53:30]MH_I2C_Read... [12:53:30]Read from MH i2c: 01 07 00 [12:53:30]MH_I2C_Read... [12:53:30]Read from MH i2c: 01 07 00 0A 1C 00 00 00 00 00 FF 0F 3B [12:53:30]RasterBufferAndPrint [12:53:30]line Счет N : (1)459047 [12:53:30]line ИНН: 02508201610067 [12:53:30]line Контрольно-Кассовый Чек [12:53:30]line ПРОДАЖА [12:53:30]line ТРК (МРК, ГНК) : 22 [12:53:30]line Товар: 2710124130 [12:53:30]line Аи-92-К-5 [12:53:30]line 7.600 * 65.80 [12:53:30]line = 500.08 [12:53:30]line НДС 12% НСП 1% [12:53:30]line > о реализуемом товаре [12:53:30]line ОКРУГЛЕНИЕ: -0.08 [12:53:30]line ИТОГО: 500.00 [12:53:30]line Внесено: 500.00 [12:53:30]line СДАЧА: 0.00 [12:53:30]line НСП 1% : 4.42 [12:53:30]line НДС 12% : 53.11 [12:53:30]line Наличными: 500.00 [12:53:30]line Безнал.: 0.00 [12:53:30]line Место: АЗС № 72 "Партнер Нефть" [12:53:30]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:53:30]line СНО: Общий режим [12:53:30]line Чек 147 14.07.2024 12:53 [12:53:30]line Смена: 447 ФФД: 1.0 [12:53:30]line ЗНМ: 0300000160 [12:53:30]line РНМ: 0000000000090829 [12:53:30]line Версия ККМ: 001 [12:53:30]line ФМ: 0000000000874718 [12:53:30]line ФД: 164949 [12:53:30]line ФПД: 107583543491611 [12:53:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T125330&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164949&fm=107583543491611&tin=02508201610067®Number=0000000000090829&sum=50000 [12:53:30]OFD Sender: Processing packet 164949 [packets to send 104, broken 103] [12:53:30]ProducePacketName [12:53:30]name=ofd_packets/00164949 [12:53:30]OFD Sender: To server: pG, [12:53:30]CommunicateWithHost lk.salyk.kg:30040 [12:53:30]ConnectInit lk.salyk.kg [12:53:30]written 0, free lines is 4095 [12:53:30]Connected sock=10 [12:53:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 29 49 07 01 AC 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 93 00 00 00 F4 03 04 00 4A CA 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 55 84 02 00 35 04 06 00 61 D8 BE E4 BC 1B 65 13 87 8D 6D 9E B0 44 [12:53:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 7E 48 47 00 BB C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 55 84 02 00 F4 03 04 00 D7 70 93 66 B6 04 01 00 00 45 D6 C0 CD CA 17 BC 2D [12:53:31]CommunicateWithHost err = 0 [12:53:31]CheckOFDResponse [12:53:31]1017 (14) - 77093643461234 [12:53:31]1041 (16) - 0000000000874718 [12:53:31]1040 (4) - 164949 [12:53:31]1012 (4) - 14.07.2024 06:31 [12:53:31]1206 (1) - 0 [12:53:31]OFD Sender: Remove packet 164949 [12:53:31]ProducePacketName [12:53:31]name=ofd_packets/00164949 [12:53:31]NVStorageDeleteData [12:53:31]Write to MH i2c: 01 00 00 34 1C 50 [12:53:31]Write i2c OK [12:53:31]MH_I2C_Read... [12:53:31]Read from MH i2c: 01 [12:53:31]MH_I2C_Read... [12:53:31]Read from MH i2c: 01 07 00 [12:53:31]MH_I2C_Read... [12:53:31]Read from MH i2c: 01 07 00 34 1C 00 00 00 00 00 05 0D 69 [12:53:31]RasterBufferAndPrint [12:53:31]line [12:53:31]line [12:53:31]line [12:53:31]line [12:53:31]line [12:53:31]written 0, free lines is 3339 [12:53:31]MH_Cut [12:53:31]Write to MH i2c: D1 01 00 3B 1C 01 29 [12:53:31]Write i2c OK [12:53:31]MH_I2C_Read... [12:53:31]Read from MH i2c: D1 [12:53:31]MH_I2C_Read... [12:53:31]Read from MH i2c: D1 01 00 [12:53:31]MH_I2C_Read... [12:53:31]Read from MH i2c: D1 01 00 3B 1C 00 28 [12:53:31]Write to MH i2c: 01 00 00 3C 1C 58 [12:53:31]Write i2c OK [12:53:31]MH_I2C_Read... [12:53:31]OFD Sender: No OFD packet to send [12:53:31]*** Cut start [12:53:31]*** Partial cut [12:53:31]*** CUTSNS_PIN = 1 [12:53:32]*** CUTSNS_PIN = 0 [12:53:32]*** Brake cut motor [12:53:32]Read from MH i2c: 01 [12:53:32]MH_I2C_Read... [12:53:32]*** Stop cut motor [12:53:32]*** Cut end [12:53:32]Read from MH i2c: 01 07 00 [12:53:32]MH_I2C_Read... [12:53:32]Read from MH i2c: 01 07 00 3C 1C 00 00 00 00 00 FF 0F 6D [12:53:32]process_action close_receipt done [12:53:32]requested_data is exist [12:53:32]produce_requested_data [12:53:32]requested_item fm.sn is exist - process it [12:53:32]wFMCommunicate request_size=4 [12:53:32]MH_SAM_APDU [12:53:32]CAPDU: 80 11 00 00 [12:53:32]Write to MH i2c: E2 08 00 3D 1C 80 11 00 00 00 00 00 00 D3 [12:53:32]Write i2c OK [12:53:32]MH_I2C_Read... [12:53:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:32]Read from MH i2c: E2 [12:53:32]MH_I2C_Read... [12:53:32]Read from MH i2c: E2 17 00 [12:53:32]MH_I2C_Read... [12:53:32]Read from MH i2c: E2 17 00 3D 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 29 [12:53:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:53:32]wFMCommunicate OK [12:53:32]requested_item fd.num is exist - process it [12:53:32]SAM_PROTO_GetFieldsCounters [12:53:32]wFMCommunicate request_size=4 [12:53:32]MH_SAM_APDU [12:53:32]CAPDU: 80 13 00 00 [12:53:32]Write to MH i2c: E2 08 00 3E 1C 80 13 00 00 00 00 00 00 D6 [12:53:32]Write i2c OK [12:53:32]MH_I2C_Read... [12:53:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:53:32]Read from MH i2c: E2 [12:53:32]MH_I2C_Read... [12:53:32]Read from MH i2c: E2 62 00 [12:53:32]MH_I2C_Read... [12:53:32]Read from MH i2c: E2 62 00 3E 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 55 84 02 00 0E 04 04 00 BF 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 51 [12:53:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 55 84 02 00 0E 04 04 00 BF 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 [12:53:32]wFMCommunicate OK [12:53:32]SAM_PROTO_GetFieldsCounters done [12:53:32]requested_item shift.num is exist - process it [12:53:32]requested_item shift.opened is exist - process it [12:53:32]req_shift_opened [12:53:32]FM_GetShiftState [12:53:32]SAM_PROTO_GetShiftState [12:53:32]wFMCommunicate request_size=4 [12:53:32]MH_SAM_APDU [12:53:32]CAPDU: 80 13 01 00 [12:53:32]Write to MH i2c: E2 08 00 3F 1C 80 13 01 00 00 00 00 00 D8 [12:53:32]Write i2c OK [12:53:32]MH_I2C_Read... [12:53:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:32]Read from MH i2c: E2 [12:53:32]MH_I2C_Read... [12:53:32]Read from MH i2c: E2 0E 00 [12:53:32]MH_I2C_Read... [12:53:32]Read from MH i2c: E2 0E 00 3F 1C 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 58 [12:53:32]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [12:53:32]wFMCommunicate OK [12:53:32]SAM_PROTO_GetShiftState done [12:53:32]FM_GetShiftState done [12:53:32]req_shift_opened done [12:53:32]requested_item shift.open_date is exist - process it [12:53:32]req_shift_open_date [12:53:32]req_shift_open_date done [12:53:32]produce_requested_data done [12:53:32]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164949,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [12:53:32]process_action_free close_receipt [12:53:32]json_value_free [12:53:32]json_value_free done [12:53:32]process_json_proto returns [12:53:32]Send response to host [12:53:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164949,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [12:53:32]free response buf [12:53:32]execute_script done [12:53:32]execute_script returns [12:53:32]free content buf [12:53:32]Sock 7.Close socket [12:53:32]Sock 7.Thread stoped [12:53:36]OFD Sender: No OFD packet to send [12:53:41]OFD Sender: No OFD packet to send [12:53:46]OFD Sender: No OFD packet to send [12:53:51]OFD Sender: No OFD packet to send [12:53:56]OFD Sender: No OFD packet to send [12:54:01]OFD Sender: No OFD packet to send [12:54:06]OFD Sender: No OFD packet to send [12:54:11]OFD Sender: No OFD packet to send [12:54:16]OFD Sender: No OFD packet to send [12:54:21]OFD Sender: No OFD packet to send [12:54:26]OFD Sender: No OFD packet to send [12:54:31]OFD Sender: No OFD packet to send [12:54:36]OFD Sender: No OFD packet to send [12:54:41]OFD Sender: No OFD packet to send [12:54:46]OFD Sender: No OFD packet to send [12:54:51]OFD Sender: No OFD packet to send [12:54:56]OFD Sender: No OFD packet to send [12:55:01]OFD Sender: No OFD packet to send [12:55:06]OFD Sender: No OFD packet to send [12:55:11]OFD Sender: No OFD packet to send [12:55:16]OFD Sender: No OFD packet to send [12:55:21]OFD Sender: No OFD packet to send [12:55:26]OFD Sender: No OFD packet to send [12:55:31]OFD Sender: No OFD packet to send [12:55:36]OFD Sender: No OFD packet to send [12:55:41]OFD Sender: No OFD packet to send [12:55:46]OFD Sender: No OFD packet to send [12:55:51]OFD Sender: No OFD packet to send [12:55:56]OFD Sender: No OFD packet to send [12:56:01]OFD Sender: No OFD packet to send [12:56:06]OFD Sender: No OFD packet to send [12:56:11]OFD Sender: No OFD packet to send [12:56:16]OFD Sender: No OFD packet to send [12:56:21]OFD Sender: No OFD packet to send [12:56:26]OFD Sender: No OFD packet to send [12:56:31]OFD Sender: No OFD packet to send [12:56:36]OFD Sender: No OFD packet to send [12:56:41]OFD Sender: No OFD packet to send [12:56:46]OFD Sender: No OFD packet to send [12:56:51]OFD Sender: No OFD packet to send [12:56:56]OFD Sender: No OFD packet to send [12:57:01]OFD Sender: No OFD packet to send [12:57:06]OFD Sender: No OFD packet to send [12:57:11]OFD Sender: No OFD packet to send [12:57:16]OFD Sender: No OFD packet to send [12:57:21]OFD Sender: No OFD packet to send [12:57:26]OFD Sender: No OFD packet to send [12:57:31]OFD Sender: No OFD packet to send [12:57:36]OFD Sender: No OFD packet to send [12:57:41]OFD Sender: No OFD packet to send [12:57:46]OFD Sender: No OFD packet to send [12:57:51]OFD Sender: No OFD packet to send [12:57:56]OFD Sender: No OFD packet to send [12:58:01]OFD Sender: No OFD packet to send [12:58:06]OFD Sender: No OFD packet to send [12:58:11]OFD Sender: No OFD packet to send [12:58:16]OFD Sender: No OFD packet to send [12:58:22]OFD Sender: No OFD packet to send [12:58:27]OFD Sender: No OFD packet to send [12:58:32]OFD Sender: No OFD packet to send [12:58:37]OFD Sender: No OFD packet to send [12:58:42]OFD Sender: No OFD packet to send [12:58:47]OFD Sender: No OFD packet to send [12:58:52]OFD Sender: No OFD packet to send [12:58:57]OFD Sender: No OFD packet to send [12:59:02]OFD Sender: No OFD packet to send [12:59:07]OFD Sender: No OFD packet to send [12:59:12]OFD Sender: No OFD packet to send [12:59:17]OFD Sender: No OFD packet to send [12:59:22]OFD Sender: No OFD packet to send [12:59:27]OFD Sender: No OFD packet to send [12:59:32]OFD Sender: No OFD packet to send [12:59:37]OFD Sender: No OFD packet to send [12:59:42]OFD Sender: No OFD packet to send [12:59:47]OFD Sender: No OFD packet to send [12:59:52]OFD Sender: No OFD packet to send [12:59:57]OFD Sender: No OFD packet to send [13:00:02]OFD Sender: No OFD packet to send [13:00:07]OFD Sender: No OFD packet to send [13:00:12]OFD Sender: No OFD packet to send [13:00:17]OFD Sender: No OFD packet to send [13:00:22]OFD Sender: No OFD packet to send [13:00:27]OFD Sender: No OFD packet to send [13:00:32]OFD Sender: No OFD packet to send [13:00:37]OFD Sender: No OFD packet to send [13:00:42]OFD Sender: No OFD packet to send [13:00:47]OFD Sender: No OFD packet to send [13:00:52]OFD Sender: No OFD packet to send [13:00:57]OFD Sender: No OFD packet to send [13:01:02]OFD Sender: No OFD packet to send [13:01:07]OFD Sender: No OFD packet to send [13:01:12]OFD Sender: No OFD packet to send [13:01:17]OFD Sender: No OFD packet to send [13:01:22]OFD Sender: No OFD packet to send [13:01:27]OFD Sender: No OFD packet to send [13:01:32]OFD Sender: No OFD packet to send [13:01:37]OFD Sender: No OFD packet to send [13:01:42]OFD Sender: No OFD packet to send [13:01:47]OFD Sender: No OFD packet to send [13:01:52]OFD Sender: No OFD packet to send [13:01:57]OFD Sender: No OFD packet to send [13:02:02]OFD Sender: No OFD packet to send [13:02:06]accept exits with 9 [13:02:06]New connection [13:02:06]New thread 3067473252 created [13:02:06]Thread 3067616612 joined [13:02:06]Waiting for new connection... [13:02:06] Sock 9.Parse request [13:02:06]Sock 9.Check first char [13:02:06]Sock 9.First char is OK [13:02:06]request: POST /json_proto HTTP/1.0 [13:02:06]Method: POST [13:02:06]URL: /json_proto [13:02:06]Method is POST - this is cgi request [13:02:06]url: /json_proto [13:02:06]query_string will be loaded in cgi processing [13:02:06]execute_cgi json_proto POST (null) [13:02:06]execute_cgi path=json_proto method=POST [13:02:06]POST find Content-Length [13:02:06]Host: 172.17.56.4:8080 [13:02:06]Content-Length: 677 [13:02:06]Content-Type: application/json [13:02:06] [13:02:06]POST finish read [13:02:06]Found Content-Length = 677 [13:02:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459048", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:02:06]execute_script... [13:02:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459048", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:02:06]POST & json_proto [13:02:06]process_json_proto [13:02:06]json parsed OK: [13:02:06]protocol is kg_v1.0 [13:02:06]action value=close_receipt [13:02:06]process_action close_receipt [13:02:06]cmd_close_receipt [13:02:06]MH_GetDate [13:02:06]Write to MH i2c: F0 00 00 40 1C 4B [13:02:06]Write i2c OK [13:02:06]MH_I2C_Read... [13:02:06]Read from MH i2c: F0 [13:02:06]MH_I2C_Read... [13:02:06]Read from MH i2c: F0 09 00 [13:02:06]MH_I2C_Read... [13:02:06]Read from MH i2c: F0 09 00 40 1C 00 4F CC 93 66 C9 DC B2 64 23 [13:02:06]GetLastDocTimeStamp 1720961610 [13:02:06]current date 1720962127 [13:02:06]FM_GetShiftState [13:02:06]SAM_PROTO_GetShiftState [13:02:06]wFMCommunicate request_size=4 [13:02:06]MH_SAM_APDU [13:02:06]CAPDU: 80 13 01 00 [13:02:06]Write to MH i2c: E2 08 00 41 1C 80 13 01 00 00 00 00 00 DA [13:02:06]Write i2c OK [13:02:06]MH_I2C_Read... [13:02:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:06]Read from MH i2c: E2 [13:02:06]MH_I2C_Read... [13:02:06]Read from MH i2c: E2 0E 00 [13:02:06]MH_I2C_Read... [13:02:06]Read from MH i2c: E2 0E 00 41 1C 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 5A [13:02:06]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [13:02:06]wFMCommunicate OK [13:02:06]SAM_PROTO_GetShiftState done [13:02:06]FM_GetShiftState done [13:02:06]opened in 1720917342 [13:02:06]opened+sec_in_day 1721003742 [13:02:06]quantity*price = 50008 [13:02:06]sum+1 = 50009 [13:02:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 148 14.07.2024 13:02 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164950 ФПД: 196748744394658 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T130207&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164950&fm=196748744394658&tin=02508201610067®Number=0000000000090829&sum=50000 [13:02:07]StoreToDocumentArchive [13:02:07]shift 447 fd 164950 [13:02:07]save to /storage/0447/doc_00164950 [13:02:07]save last doc name /storage/0447/doc_00164950 to /storage/kkm_last_doc_name [13:02:07]save OK [13:02:07]Clear old archive folders... [13:02:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:02:07]tlvbuf is 007B01E0 [13:02:07]SAM_PROTO_ClearQueue [13:02:07]wFMCommunicate request_size=4 [13:02:07]MH_SAM_APDU [13:02:07]CAPDU: 80 09 00 00 [13:02:07]Write to MH i2c: E2 08 00 4E 1C 80 09 00 00 00 00 00 00 DC [13:02:07]Write i2c OK [13:02:07]MH_I2C_Read... [13:02:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:02:07]Read from MH i2c: E2 [13:02:07]MH_I2C_Read... [13:02:07]Read from MH i2c: E2 03 00 [13:02:07]MH_I2C_Read... [13:02:07]Read from MH i2c: E2 03 00 4E 1C 00 90 00 DE [13:02:07]RAPDU: 90 00 [13:02:07]wFMCommunicate OK [13:02:07]SAM_PROTO_ClearQueue done [13:02:07]KKMCreateOFDPacket [13:02:07]OFDProtocolAddRootSTLVToBuf [13:02:07]FM_MakeSignedData [13:02:07]FM_MakeSignedData [13:02:07]SAM_PROTO_SignData [13:02:07]wFMCommunicate request_size=4 [13:02:07]MH_SAM_APDU [13:02:07]CAPDU: 80 0D 01 02 [13:02:07]Write to MH i2c: E2 08 00 4F 1C 80 0D 01 02 00 00 00 00 E4 [13:02:07]Write i2c OK [13:02:07]MH_I2C_Read... [13:02:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:02:07]Read from MH i2c: E2 [13:02:07]MH_I2C_Read... [13:02:07]Read from MH i2c: E2 03 00 [13:02:07]MH_I2C_Read... [13:02:07]Read from MH i2c: E2 03 00 4F 1C 00 90 00 DF [13:02:07]RAPDU: 90 00 [13:02:07]wFMCommunicate OK [13:02:07]wFMCommunicate request_size=255 [13:02:07]MH_SAM_APDU [13:02:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 94 00 00 00 F4 03 04 00 4F CC 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 56 84 02 00 35 04 06 00 B2 [13:02:07]Write to MH i2c: E2 02 01 50 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 94 00 00 00 F4 03 04 00 4F CC 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 56 84 02 00 35 04 06 00 B2 00 00 53 [13:02:07]Write i2c OK [13:02:07]MH_I2C_Read... [13:02:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:07]Read from MH i2c: E2 [13:02:07]MH_I2C_Read... [13:02:07]Read from MH i2c: E2 03 00 [13:02:07]MH_I2C_Read... [13:02:07]Read from MH i2c: E2 03 00 50 1C 00 90 00 E0 [13:02:07]RAPDU: 90 00 [13:02:07]wFMCommunicate OK [13:02:07]wFMCommunicate request_size=10 [13:02:07]MH_SAM_APDU [13:02:07]CAPDU: 80 0D 02 02 05 F1 23 05 07 A2 [13:02:07]Write to MH i2c: E2 0D 00 51 1C 80 0D 02 02 05 00 F1 23 05 07 A2 00 00 B3 [13:02:07]Write i2c OK [13:02:07]MH_I2C_Read... [13:02:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:07]Read from MH i2c: E2 [13:02:07]MH_I2C_Read... [13:02:07]Read from MH i2c: E2 03 00 [13:02:07]MH_I2C_Read... [13:02:07]Read from MH i2c: E2 03 00 51 1C 00 90 00 E1 [13:02:07]RAPDU: 90 00 [13:02:07]wFMCommunicate OK [13:02:07]wFMCommunicate request_size=4 [13:02:07]MH_SAM_APDU [13:02:07]CAPDU: 80 0D 03 02 [13:02:07]Write to MH i2c: E2 08 00 52 1C 80 0D 03 02 00 00 00 00 E9 [13:02:07]Write i2c OK [13:02:07]MH_I2C_Read... [13:02:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:02:07]Read from MH i2c: E2 [13:02:07]MH_I2C_Read... [13:02:07]Read from MH i2c: E2 0B 00 [13:02:07]MH_I2C_Read... [13:02:07]Read from MH i2c: E2 0B 00 52 1C 00 35 CC 25 12 D5 7C 80 C4 90 00 B7 [13:02:07]RAPDU: 35 CC 25 12 D5 7C 80 C4 90 00 [13:02:07]wFMCommunicate OK [13:02:07]SAM_PROTO_SignData done [13:02:07]FM_MakeSignedData done [13:02:07]CreateOFDProtocolMessage [13:02:07]wFMCommunicate request_size=4 [13:02:07]MH_SAM_APDU [13:02:07]CAPDU: 80 11 00 00 [13:02:07]Write to MH i2c: E2 08 00 53 1C 80 11 00 00 00 00 00 00 E9 [13:02:07]Write i2c OK [13:02:07]MH_I2C_Read... [13:02:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:07]Read from MH i2c: E2 [13:02:07]MH_I2C_Read... [13:02:07]Read from MH i2c: E2 17 00 [13:02:07]MH_I2C_Read... [13:02:07]Read from MH i2c: E2 17 00 53 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 3F [13:02:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:02:07]wFMCommunicate OK [13:02:07]CreateOFDProtocolMessage done [13:02:07]OFDSenderStorePacket 164950 [13:02:07]StoreOFDPacket docnum=164950 [13:02:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 3B BA 07 01 86 16 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 94 00 00 00 F4 03 04 00 4F CC 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 56 84 02 00 35 04 06 00 B2 F1 23 05 07 A2 35 CC 25 12 D5 7C 80 C4 [13:02:07]CheckFolder [13:02:07]dirname=/storage/ofd_packets [13:02:07]CheckFolder done [13:02:07]ProducePacketName [13:02:07]name=ofd_packets/00164950 [13:02:07]NVStorageSaveData ofd_packets/00164950 [13:02:07]File name is /storage/ofd_packets/00164950 [13:02:07]Write 301 bytes [13:02:07]NVStorageSaveData done [13:02:07]OFDSenderStorePacket done [13:02:07]KKMCreateOFDPacket done [13:02:07]NVStorageSaveData kkm_last_timestamp [13:02:07]File name is /storage/kkm_last_timestamp [13:02:07]Write 4 bytes [13:02:07]NVStorageSaveData done [13:02:07]ExternCall_PrintAddStr [13:02:07]wPrintStart [13:02:07]Write to MH i2c: 01 00 00 54 1C 70 [13:02:07]Write i2c OK [13:02:07]MH_I2C_Read... [13:02:07]Read from MH i2c: 01 [13:02:07]MH_I2C_Read... [13:02:07]Read from MH i2c: 01 07 00 [13:02:07]MH_I2C_Read... [13:02:07]Read from MH i2c: 01 07 00 54 1C 00 00 00 00 00 FF 0F 85 [13:02:07]RasterBufferAndPrint [13:02:07]line Счет N : (1)459048 [13:02:07]line ИНН: 02508201610067 [13:02:07]line Контрольно-Кассовый Чек [13:02:07]line ПРОДАЖА [13:02:07]line ТРК (МРК, ГНК) : 12 [13:02:07]line Товар: 2710124130 [13:02:07]line Аи-92-К-5 [13:02:07]line 7.600 * 65.80 [13:02:07]line = 500.08 [13:02:07]line НДС 12% НСП 1% [13:02:07]line > о реализуемом товаре [13:02:07]line ОКРУГЛЕНИЕ: -0.08 [13:02:07]line ИТОГО: 500.00 [13:02:07]line Внесено: 500.00 [13:02:07]line СДАЧА: 0.00 [13:02:07]line НСП 1% : 4.42 [13:02:07]line НДС 12% : 53.11 [13:02:07]line Наличными: 500.00 [13:02:07]line Безнал.: 0.00 [13:02:07]line Место: АЗС № 72 "Партнер Нефть" [13:02:07]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:02:07]line СНО: Общий режим [13:02:07]line Чек 148 14.07.2024 13:02 [13:02:07]line Смена: 447 ФФД: 1.0 [13:02:07]line ЗНМ: 0300000160 [13:02:07]line РНМ: 0000000000090829 [13:02:07]line Версия ККМ: 001 [13:02:07]line ФМ: 0000000000874718 [13:02:07]line ФД: 164950 [13:02:07]line ФПД: 196748744394658 [13:02:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T130207&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164950&fm=196748744394658&tin=02508201610067®Number=0000000000090829&sum=50000 [13:02:08]written 0, free lines is 4095 [13:02:08]OFD Sender: Processing packet 164950 [packets to send 104, broken 103] [13:02:08]ProducePacketName [13:02:08]name=ofd_packets/00164950 [13:02:08]OFD Sender: To server: pG, [13:02:08]CommunicateWithHost lk.salyk.kg:30040 [13:02:08]ConnectInit lk.salyk.kg [13:02:08]Connected sock=10 [13:02:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 3B BA 07 01 86 16 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 94 00 00 00 F4 03 04 00 4F CC 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 56 84 02 00 35 04 06 00 B2 F1 23 05 07 A2 35 CC 25 12 D5 7C 80 C4 [13:02:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 19 15 47 00 D1 CF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 56 84 02 00 F4 03 04 00 DD 72 93 66 B6 04 01 00 00 2C 49 E8 61 23 30 71 D5 [13:02:08]CommunicateWithHost err = 0 [13:02:08]CheckOFDResponse [13:02:08]1017 (14) - 77093643461234 [13:02:08]1041 (16) - 0000000000874718 [13:02:08]1040 (4) - 164950 [13:02:08]1012 (4) - 14.07.2024 06:40 [13:02:08]1206 (1) - 0 [13:02:08]OFD Sender: Remove packet 164950 [13:02:08]ProducePacketName [13:02:08]name=ofd_packets/00164950 [13:02:08]NVStorageDeleteData [13:02:08]Write to MH i2c: 01 00 00 7E 1C 9A [13:02:08]Write i2c OK [13:02:08]MH_I2C_Read... [13:02:08]Read from MH i2c: 01 [13:02:08]MH_I2C_Read... [13:02:08]Read from MH i2c: 01 07 00 [13:02:08]MH_I2C_Read... [13:02:08]Read from MH i2c: 01 07 00 7E 1C 00 00 00 00 00 02 0D B0 [13:02:08]RasterBufferAndPrint [13:02:08]line [13:02:08]line [13:02:08]line [13:02:08]line [13:02:08]line [13:02:08]written 0, free lines is 3336 [13:02:08]MH_Cut [13:02:08]Write to MH i2c: D1 01 00 85 1C 01 73 [13:02:08]Write i2c OK [13:02:08]MH_I2C_Read... [13:02:08]Read from MH i2c: D1 [13:02:08]MH_I2C_Read... [13:02:08]Read from MH i2c: D1 01 00 [13:02:08]MH_I2C_Read... [13:02:08]Read from MH i2c: D1 01 00 85 1C 00 72 [13:02:08]Write to MH i2c: 01 00 00 86 1C A2 [13:02:08]Write i2c OK [13:02:08]MH_I2C_Read... [13:02:09]OFD Sender: No OFD packet to send [13:02:09]*** Cut start [13:02:09]*** Partial cut [13:02:09]*** CUTSNS_PIN = 1 [13:02:09]*** CUTSNS_PIN = 0 [13:02:09]*** Brake cut motor [13:02:09]Read from MH i2c: 01 [13:02:09]MH_I2C_Read... [13:02:09]*** Stop cut motor [13:02:09]Read from MH i2c: *** Cut end [13:02:09]01 07 00 [13:02:09]MH_I2C_Read... [13:02:09]Read from MH i2c: 01 07 00 86 1C 00 00 00 00 00 FF 0F B7 [13:02:09]process_action close_receipt done [13:02:09]requested_data is exist [13:02:09]produce_requested_data [13:02:09]requested_item fm.sn is exist - process it [13:02:09]wFMCommunicate request_size=4 [13:02:09]MH_SAM_APDU [13:02:09]CAPDU: 80 11 00 00 [13:02:09]Write to MH i2c: E2 08 00 87 1C 80 11 00 00 00 00 00 00 1D [13:02:09]Write i2c OK [13:02:09]MH_I2C_Read... [13:02:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:10]Read from MH i2c: E2 [13:02:10]MH_I2C_Read... [13:02:10]Read from MH i2c: E2 17 00 [13:02:10]MH_I2C_Read... [13:02:10]Read from MH i2c: E2 17 00 87 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 73 [13:02:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:02:10]wFMCommunicate OK [13:02:10]requested_item fd.num is exist - process it [13:02:10]SAM_PROTO_GetFieldsCounters [13:02:10]wFMCommunicate request_size=4 [13:02:10]MH_SAM_APDU [13:02:10]CAPDU: 80 13 00 00 [13:02:10]Write to MH i2c: E2 08 00 88 1C 80 13 00 00 00 00 00 00 20 [13:02:10]Write i2c OK [13:02:10]MH_I2C_Read... [13:02:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:02:10]Read from MH i2c: E2 [13:02:10]MH_I2C_Read... [13:02:10]Read from MH i2c: E2 62 00 [13:02:10]MH_I2C_Read... [13:02:10]Read from MH i2c: E2 62 00 88 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 56 84 02 00 0E 04 04 00 BF 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 9F [13:02:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 56 84 02 00 0E 04 04 00 BF 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 [13:02:10]wFMCommunicate OK [13:02:10]SAM_PROTO_GetFieldsCounters done [13:02:10]requested_item shift.num is exist - process it [13:02:10]requested_item shift.opened is exist - process it [13:02:10]req_shift_opened [13:02:10]FM_GetShiftState [13:02:10]SAM_PROTO_GetShiftState [13:02:10]wFMCommunicate request_size=4 [13:02:10]MH_SAM_APDU [13:02:10]CAPDU: 80 13 01 00 [13:02:10]Write to MH i2c: E2 08 00 89 1C 80 13 01 00 00 00 00 00 22 [13:02:10]Write i2c OK [13:02:10]MH_I2C_Read... [13:02:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:10]Read from MH i2c: E2 [13:02:10]MH_I2C_Read... [13:02:10]Read from MH i2c: E2 0E 00 [13:02:10]MH_I2C_Read... [13:02:10]Read from MH i2c: E2 0E 00 89 1C 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 A2 [13:02:10]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [13:02:10]wFMCommunicate OK [13:02:10]SAM_PROTO_GetShiftState done [13:02:10]FM_GetShiftState done [13:02:10]req_shift_opened done [13:02:10]requested_item shift.open_date is exist - process it [13:02:10]req_shift_open_date [13:02:10]req_shift_open_date done [13:02:10]produce_requested_data done [13:02:10]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164950,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [13:02:10]process_action_free close_receipt [13:02:10]json_value_free [13:02:10]json_value_free done [13:02:10]process_json_proto returns [13:02:10]Send response to host [13:02:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164950,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [13:02:10]free response buf [13:02:10]execute_script done [13:02:10]execute_script returns [13:02:10]free content buf [13:02:10]Sock 9.Close socket [13:02:10]Sock 9.Thread stoped [13:02:14]OFD Sender: No OFD packet to send [13:02:19]OFD Sender: No OFD packet to send [13:02:24]OFD Sender: No OFD packet to send [13:02:29]OFD Sender: No OFD packet to send [13:02:34]OFD Sender: No OFD packet to send [13:02:39]OFD Sender: No OFD packet to send [13:02:44]OFD Sender: No OFD packet to send [13:02:49]OFD Sender: No OFD packet to send [13:02:54]OFD Sender: No OFD packet to send [13:02:59]OFD Sender: No OFD packet to send [13:03:04]OFD Sender: No OFD packet to send [13:03:09]OFD Sender: No OFD packet to send [13:03:14]OFD Sender: No OFD packet to send [13:03:19]OFD Sender: No OFD packet to send [13:03:24]OFD Sender: No OFD packet to send [13:03:29]OFD Sender: No OFD packet to send [13:03:34]OFD Sender: No OFD packet to send [13:03:39]OFD Sender: No OFD packet to send [13:03:44]OFD Sender: No OFD packet to send [13:03:49]OFD Sender: No OFD packet to send [13:03:54]OFD Sender: No OFD packet to send [13:03:59]OFD Sender: No OFD packet to send [13:04:04]OFD Sender: No OFD packet to send [13:04:09]OFD Sender: No OFD packet to send [13:04:14]OFD Sender: No OFD packet to send [13:04:19]OFD Sender: No OFD packet to send [13:04:24]OFD Sender: No OFD packet to send [13:04:29]OFD Sender: No OFD packet to send [13:04:34]OFD Sender: No OFD packet to send [13:04:39]OFD Sender: No OFD packet to send [13:04:44]OFD Sender: No OFD packet to send [13:04:49]OFD Sender: No OFD packet to send [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:54]OFD Sender: No OFD packet to send [13:06:59]OFD Sender: No OFD packet to send [13:07:04]OFD Sender: No OFD packet to send [13:07:09]OFD Sender: No OFD packet to send [13:07:14]OFD Sender: No OFD packet to send [13:07:19]OFD Sender: No OFD packet to send [13:07:24]OFD Sender: No OFD packet to send [13:07:29]OFD Sender: No OFD packet to send [13:07:34]OFD Sender: No OFD packet to send [13:07:39]OFD Sender: No OFD packet to send [13:07:44]OFD Sender: No OFD packet to send [13:07:49]OFD Sender: No OFD packet to send [13:07:54]OFD Sender: No OFD packet to send [13:07:59]OFD Sender: No OFD packet to send [13:08:04]OFD Sender: No OFD packet to send [13:08:05]accept exits with 7 [13:08:05]New connection [13:08:05]New thread 3067616612 created [13:08:05]Thread 3067473252 joined [13:08:05]Waiting for new connection... [13:08:05] Sock 7.Parse request [13:08:05]Sock 7.Check first char [13:08:05]Sock 7.First char is OK [13:08:05]request: POST /json_proto HTTP/1.0 [13:08:05]Method: POST [13:08:05]URL: /json_proto [13:08:05]Method is POST - this is cgi request [13:08:05]url: /json_proto [13:08:05]query_string will be loaded in cgi processing [13:08:05]execute_cgi json_proto POST (null) [13:08:05]execute_cgi path=json_proto method=POST [13:08:05]POST find Content-Length [13:08:05]Host: 172.17.56.4:8080 [13:08:05]Content-Length: 682 [13:08:05]Content-Type: application/json [13:08:05] [13:08:05]POST finish read [13:08:05]Found Content-Length = 682 [13:08:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459049", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:08:05]execute_script... [13:08: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)459049", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:08:05]POST & json_proto [13:08:05]process_json_proto [13:08:05]json parsed OK: [13:08:05]protocol is kg_v1.0 [13:08:05]action value=close_receipt [13:08:05]process_action close_receipt [13:08:05]cmd_close_receipt [13:08:05]MH_GetDate [13:08:05]Write to MH i2c: F0 00 00 8A 1C 95 [13:08:05]Write i2c OK [13:08:05]MH_I2C_Read... [13:08:05]Read from MH i2c: F0 [13:08:05]MH_I2C_Read... [13:08:05]Read from MH i2c: F0 09 00 [13:08:05]MH_I2C_Read... [13:08:05]Read from MH i2c: F0 09 00 8A 1C 00 B7 CD 93 66 C9 DC B2 64 D6 [13:08:05]GetLastDocTimeStamp 1720962127 [13:08:05]current date 1720962487 [13:08:05]FM_GetShiftState [13:08:05]SAM_PROTO_GetShiftState [13:08:05]wFMCommunicate request_size=4 [13:08:05]MH_SAM_APDU [13:08:05]CAPDU: 80 13 01 00 [13:08:05]Write to MH i2c: E2 08 00 8B 1C 80 13 01 00 00 00 00 00 24 [13:08:05]Write i2c OK [13:08:05]MH_I2C_Read... [13:08:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:08:05]Read from MH i2c: E2 [13:08:05]MH_I2C_Read... [13:08:05]Read from MH i2c: E2 0E 00 [13:08:05]MH_I2C_Read... [13:08:05]Read from MH i2c: E2 0E 00 8B 1C 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 A4 [13:08:05]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [13:08:05]wFMCommunicate OK [13:08:05]SAM_PROTO_GetShiftState done [13:08:05]FM_GetShiftState done [13:08:05]opened in 1720917342 [13:08:05]opened+sec_in_day 1721003742 [13:08:05]quantity*price = 100016 [13:08:05]sum+1 = 100017 [13:08:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 149 14.07.2024 13:08 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164951 ФПД: 115736391165425 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T130807&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164951&fm=115736391165425&tin=02508201610067®Number=0000000000090829&sum=100000 [13:08:06]StoreToDocumentArchive [13:08:06]shift 447 fd 164951 [13:08:06]save to /storage/0447/doc_00164951 [13:08:06]save last doc name /storage/0447/doc_00164951 to /storage/kkm_last_doc_name [13:08:06]save OK [13:08:06]Clear old archive folders... [13:08:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:08:06]tlvbuf is 00751790 [13:08:06]SAM_PROTO_ClearQueue [13:08:06]wFMCommunicate request_size=4 [13:08:06]MH_SAM_APDU [13:08:06]CAPDU: 80 09 00 00 [13:08:06]Write to MH i2c: E2 08 00 98 1C 80 09 00 00 00 00 00 00 26 [13:08:06]Write i2c OK [13:08:06]MH_I2C_Read... [13:08:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:08:06]Read from MH i2c: E2 [13:08:06]MH_I2C_Read... [13:08:06]Read from MH i2c: E2 03 00 [13:08:06]MH_I2C_Read... [13:08:06]Read from MH i2c: E2 03 00 98 1C 00 90 00 28 [13:08:06]RAPDU: 90 00 [13:08:06]wFMCommunicate OK [13:08:06]SAM_PROTO_ClearQueue done [13:08:06]KKMCreateOFDPacket [13:08:06]OFDProtocolAddRootSTLVToBuf [13:08:06]FM_MakeSignedData [13:08:06]FM_MakeSignedData [13:08:06]SAM_PROTO_SignData [13:08:06]wFMCommunicate request_size=4 [13:08:06]MH_SAM_APDU [13:08:06]CAPDU: 80 0D 01 02 [13:08:06]Write to MH i2c: E2 08 00 99 1C 80 0D 01 02 00 00 00 00 2E [13:08:06]Write i2c OK [13:08:06]MH_I2C_Read... [13:08:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:08:06]Read from MH i2c: E2 [13:08:06]MH_I2C_Read... [13:08:06]Read from MH i2c: E2 03 00 [13:08:06]MH_I2C_Read... [13:08:06]Read from MH i2c: E2 03 00 99 1C 00 90 00 29 [13:08:06]RAPDU: 90 00 [13:08:06]wFMCommunicate OK [13:08:06]wFMCommunicate request_size=255 [13:08:06]MH_SAM_APDU [13:08:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 B7 CD 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 57 84 02 00 35 04 06 00 69 [13:08:06]Write to MH i2c: E2 02 01 9A 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 B7 CD 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 57 84 02 00 35 04 06 00 69 00 00 61 [13:08:07]Write i2c OK [13:08:07]MH_I2C_Read... [13:08:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:08:07]Read from MH i2c: E2 [13:08:07]MH_I2C_Read... [13:08:07]Read from MH i2c: E2 03 00 [13:08:07]MH_I2C_Read... [13:08:07]Read from MH i2c: E2 03 00 9A 1C 00 90 00 2A [13:08:07]RAPDU: 90 00 [13:08:07]wFMCommunicate OK [13:08:07]wFMCommunicate request_size=10 [13:08:07]MH_SAM_APDU [13:08:07]CAPDU: 80 0D 02 02 05 42 FA 7B A5 F1 [13:08:07]Write to MH i2c: E2 0D 00 9B 1C 80 0D 02 02 05 00 42 FA 7B A5 F1 00 00 88 [13:08:07]Write i2c OK [13:08:07]MH_I2C_Read... [13:08:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:08:07]Read from MH i2c: E2 [13:08:07]MH_I2C_Read... [13:08:07]Read from MH i2c: E2 03 00 [13:08:07]MH_I2C_Read... [13:08:07]Read from MH i2c: E2 03 00 9B 1C 00 90 00 2B [13:08:07]RAPDU: 90 00 [13:08:07]wFMCommunicate OK [13:08:07]wFMCommunicate request_size=4 [13:08:07]MH_SAM_APDU [13:08:07]CAPDU: 80 0D 03 02 [13:08:07]Write to MH i2c: E2 08 00 9C 1C 80 0D 03 02 00 00 00 00 33 [13:08:07]Write i2c OK [13:08:07]MH_I2C_Read... [13:08:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:08:07]Read from MH i2c: E2 [13:08:07]MH_I2C_Read... [13:08:07]Read from MH i2c: E2 0B 00 [13:08:07]MH_I2C_Read... [13:08:07]Read from MH i2c: E2 0B 00 9C 1C 00 44 1B 3D EE 6D 5E 15 1B 90 00 B9 [13:08:07]RAPDU: 44 1B 3D EE 6D 5E 15 1B 90 00 [13:08:07]wFMCommunicate OK [13:08:07]SAM_PROTO_SignData done [13:08:07]FM_MakeSignedData done [13:08:07]CreateOFDProtocolMessage [13:08:07]wFMCommunicate request_size=4 [13:08:07]MH_SAM_APDU [13:08:07]CAPDU: 80 11 00 00 [13:08:07]Write to MH i2c: E2 08 00 9D 1C 80 11 00 00 00 00 00 00 33 [13:08:07]Write i2c OK [13:08:07]MH_I2C_Read... [13:08:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:08:07]Read from MH i2c: E2 [13:08:07]MH_I2C_Read... [13:08:07]Read from MH i2c: E2 17 00 [13:08:07]MH_I2C_Read... [13:08:07]Read from MH i2c: E2 17 00 9D 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 89 [13:08:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:08:07]wFMCommunicate OK [13:08:07]CreateOFDProtocolMessage done [13:08:07]OFDSenderStorePacket 164951 [13:08:07]StoreOFDPacket docnum=164951 [13:08:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 99 14 07 01 0C 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 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 B7 CD 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 57 84 02 00 35 04 06 00 69 42 FA 7B A5 F1 44 1B 3D EE 6D 5E 15 1B [13:08:07]CheckFolder [13:08:07]dirname=/storage/ofd_packets [13:08:07]CheckFolder done [13:08:07]ProducePacketName [13:08:07]name=ofd_packets/00164951 [13:08:07]NVStorageSaveData ofd_packets/00164951 [13:08:07]File name is /storage/ofd_packets/00164951 [13:08:07]Write 301 bytes [13:08:07]NVStorageSaveData done [13:08:07]OFDSenderStorePacket done [13:08:07]KKMCreateOFDPacket done [13:08:07]NVStorageSaveData kkm_last_timestamp [13:08:07]File name is /storage/kkm_last_timestamp [13:08:07]Write 4 bytes [13:08:07]NVStorageSaveData done [13:08:07]ExternCall_PrintAddStr [13:08:07]wPrintStart [13:08:07]Write to MH i2c: 01 00 00 9E 1C BA [13:08:07]Write i2c OK [13:08:07]MH_I2C_Read... [13:08:07]Read from MH i2c: 01 [13:08:07]MH_I2C_Read... [13:08:07]Read from MH i2c: 01 07 00 [13:08:07]MH_I2C_Read... [13:08:07]Read from MH i2c: 01 07 00 9E 1C 00 00 00 00 00 FF 0F CF [13:08:07]RasterBufferAndPrint [13:08:07]line Счет N : (1)459049 [13:08:07]line ИНН: 02508201610067 [13:08:07]line Контрольно-Кассовый Чек [13:08:07]line ПРОДАЖА [13:08:07]line ТРК (МРК, ГНК) : 12 [13:08:07]line Товар: 2710124130 [13:08:07]line Аи-92-К-5 [13:08:07]line 15.200 * 65.80 [13:08:07]line = 1000.16 [13:08:07]line НДС 12% НСП 1% [13:08:07]line > о реализуемом товаре [13:08:07]line ОКРУГЛЕНИЕ: -0.16 [13:08:07]line ИТОГО: 1000.00 [13:08:07]line Внесено: 1000.00 [13:08:07]line СДАЧА: 0.00 [13:08:07]line НСП 1% : 8.85 [13:08:07]line НДС 12% : 106.21 [13:08:07]line Наличными: 1000.00 [13:08:07]line Безнал.: 0.00 [13:08:07]line Место: АЗС № 72 "Партнер Нефть" [13:08:07]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:08:07]line СНО: Общий режим [13:08:07]line Чек 149 14.07.2024 13:08 [13:08:07]line Смена: 447 ФФД: 1.0 [13:08:07]line ЗНМ: 0300000160 [13:08:07]line РНМ: 0000000000090829 [13:08:07]line Версия ККМ: 001 [13:08:07]line ФМ: 0000000000874718 [13:08:07]line ФД: 164951 [13:08:07]line ФПД: 115736391165425 [13:08:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T130807&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164951&fm=115736391165425&tin=02508201610067®Number=0000000000090829&sum=100000 [13:08:07]written 0, free lines is 4095 [13:08:07]OFD Sender: Processing packet 164951 [packets to send 104, broken 103] [13:08:07]ProducePacketName [13:08:07]name=ofd_packets/00164951 [13:08:07]OFD Sender: To server: pG, [13:08:07]CommunicateWithHost lk.salyk.kg:30040 [13:08:07]ConnectInit lk.salyk.kg [13:08:07]Connected sock=10 [13:08:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 99 14 07 01 0C 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 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 B7 CD 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 57 84 02 00 35 04 06 00 69 42 FA 7B A5 F1 44 1B 3D EE 6D 5E 15 1B [13:08:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 25 46 47 00 3B 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 57 84 02 00 F4 03 04 00 44 74 93 66 B6 04 01 00 00 F1 48 E9 F8 6B C5 D0 8A [13:08:07]CommunicateWithHost err = 0 [13:08:07]CheckOFDResponse [13:08:07]1017 (14) - 77093643461234 [13:08:07]1041 (16) - 0000000000874718 [13:08:07]1040 (4) - 164951 [13:08:07]1012 (4) - 14.07.2024 06:46 [13:08:07]1206 (1) - 0 [13:08:07]OFD Sender: Remove packet 164951 [13:08:07]ProducePacketName [13:08:07]name=ofd_packets/00164951 [13:08:07]NVStorageDeleteData [13:08:07]Write to MH i2c: 01 00 00 C8 1C E4 [13:08:07]Write i2c OK [13:08:07]MH_I2C_Read... [13:08:07]Read from MH i2c: 01 [13:08:07]MH_I2C_Read... [13:08:07]Read from MH i2c: 01 07 00 [13:08:07]MH_I2C_Read... [13:08:07]Read from MH i2c: 01 07 00 C8 1C 00 00 00 00 00 F8 0C EF [13:08:07]RasterBufferAndPrint [13:08:07]line [13:08:07]line [13:08:07]line [13:08:07]line [13:08:07]line [13:08:07]written 0, free lines is 3330 [13:08:07]MH_Cut [13:08:07]Write to MH i2c: D1 01 00 CF 1C 01 BD [13:08:07]Write i2c OK [13:08:07]MH_I2C_Read... [13:08:07]Read from MH i2c: D1 [13:08:07]MH_I2C_Read... [13:08:07]Read from MH i2c: D1 01 00 [13:08:07]MH_I2C_Read... [13:08:07]Read from MH i2c: D1 01 00 CF 1C 00 BC [13:08:07]Write to MH i2c: 01 00 00 D0 1C EC [13:08:07]Write i2c OK [13:08:07]MH_I2C_Read... [13:08:08]OFD Sender: No OFD packet to send [13:08:08]*** Cut start [13:08:08]*** Partial cut [13:08:08]*** CUTSNS_PIN = 1 [13:08:08]*** CUTSNS_PIN = 0 [13:08:08]*** Brake cut motor [13:08:09]Read from MH i2c: 01 [13:08:09]MH_I2C_Read... [13:08:09]*** Stop cut motor [13:08:09]*** Cut end [13:08:09]Read from MH i2c: 01 07 00 [13:08:09]MH_I2C_Read... [13:08:09]Read from MH i2c: 01 07 00 D0 1C 00 00 00 00 00 FF 0F 01 [13:08:09]process_action close_receipt done [13:08:09]requested_data is exist [13:08:09]produce_requested_data [13:08:09]requested_item fm.sn is exist - process it [13:08:09]wFMCommunicate request_size=4 [13:08:09]MH_SAM_APDU [13:08:09]CAPDU: 80 11 00 00 [13:08:09]Write to MH i2c: E2 08 00 D1 1C 80 11 00 00 00 00 00 00 67 [13:08:09]Write i2c OK [13:08:09]MH_I2C_Read... [13:08:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:08:09]Read from MH i2c: E2 [13:08:09]MH_I2C_Read... [13:08:09]Read from MH i2c: E2 17 00 [13:08:09]MH_I2C_Read... [13:08:09]Read from MH i2c: E2 17 00 D1 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 BD [13:08:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:08:09]wFMCommunicate OK [13:08:09]requested_item fd.num is exist - process it [13:08:09]SAM_PROTO_GetFieldsCounters [13:08:09]wFMCommunicate request_size=4 [13:08:09]MH_SAM_APDU [13:08:09]CAPDU: 80 13 00 00 [13:08:09]Write to MH i2c: E2 08 00 D2 1C 80 13 00 00 00 00 00 00 6A [13:08:09]Write i2c OK [13:08:09]MH_I2C_Read... [13:08:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:08:09]Read from MH i2c: E2 [13:08:09]MH_I2C_Read... [13:08:09]Read from MH i2c: E2 62 00 [13:08:09]MH_I2C_Read... [13:08:09]Read from MH i2c: E2 62 00 D2 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 57 84 02 00 0E 04 04 00 BF 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 ED [13:08:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 57 84 02 00 0E 04 04 00 BF 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 [13:08:09]wFMCommunicate OK [13:08:09]SAM_PROTO_GetFieldsCounters done [13:08:09]requested_item shift.num is exist - process it [13:08:09]requested_item shift.opened is exist - process it [13:08:09]req_shift_opened [13:08:09]FM_GetShiftState [13:08:09]SAM_PROTO_GetShiftState [13:08:09]wFMCommunicate request_size=4 [13:08:09]MH_SAM_APDU [13:08:09]CAPDU: 80 13 01 00 [13:08:09]Write to MH i2c: E2 08 00 D3 1C 80 13 01 00 00 00 00 00 6C [13:08:09]Write i2c OK [13:08:09]MH_I2C_Read... [13:08:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:08:09]Read from MH i2c: E2 [13:08:09]MH_I2C_Read... [13:08:09]Read from MH i2c: E2 0E 00 [13:08:09]MH_I2C_Read... [13:08:09]Read from MH i2c: E2 0E 00 D3 1C 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 EC [13:08:09]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [13:08:09]wFMCommunicate OK [13:08:09]SAM_PROTO_GetShiftState done [13:08:09]FM_GetShiftState done [13:08:09]req_shift_opened done [13:08:09]requested_item shift.open_date is exist - process it [13:08:09]req_shift_open_date [13:08:09]req_shift_open_date done [13:08:09]produce_requested_data done [13:08:09]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164951,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [13:08:09]process_action_free close_receipt [13:08:09]json_value_free [13:08:09]json_value_free done [13:08:09]process_json_proto returns [13:08:09]Send response to host [13:08:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164951,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [13:08:09]free response buf [13:08:09]execute_script done [13:08:09]execute_script returns [13:08:09]free content buf [13:08:09]Sock 7.Close socket [13:08:09]Sock 7.Thread stoped [13:08:13]OFD Sender: No OFD packet to send [13:08:18]OFD Sender: No OFD packet to send [13:08:23]OFD Sender: No OFD packet to send [13:08:28]OFD Sender: No OFD packet to send [13:08:33]OFD Sender: No OFD packet to send [13:08:38]OFD Sender: No OFD packet to send [13:08:43]OFD Sender: No OFD packet to send [13:08:48]OFD Sender: No OFD packet to send [13:08:53]OFD Sender: No OFD packet to send [13:08:58]OFD Sender: No OFD packet to send [13:09:03]OFD Sender: No OFD packet to send [13:09:08]OFD Sender: No OFD packet to send [13:09:13]OFD Sender: No OFD packet to send [13:09:18]OFD Sender: No OFD packet to send [13:09:23]OFD Sender: No OFD packet to send [13:09:28]OFD Sender: No OFD packet to send [13:09:33]OFD Sender: No OFD packet to send [13:09:38]OFD Sender: No OFD packet to send [13:09:43]OFD Sender: No OFD packet to send [13:09:48]OFD Sender: No OFD packet to send [13:09:53]OFD Sender: No OFD packet to send [13:09:58]OFD Sender: No OFD packet to send [13:10:03]OFD Sender: No OFD packet to send [13:10:08]OFD Sender: No OFD packet to send [13:10:13]OFD Sender: No OFD packet to send [13:10:18]OFD Sender: No OFD packet to send [13:10:23]OFD Sender: No OFD packet to send [13:10:28]OFD Sender: No OFD packet to send [13:10:33]OFD Sender: No OFD packet to send [13:10:38]OFD Sender: No OFD packet to send [13:10:43]OFD Sender: No OFD packet to send [13:10:48]OFD Sender: No OFD packet to send [13:10:53]OFD Sender: No OFD packet to send [13:10:58]OFD Sender: No OFD packet to send [13:11:03]OFD Sender: No OFD packet to send [13:11:08]OFD Sender: No OFD packet to send [13:11:13]OFD Sender: No OFD packet to send [13:11:18]OFD Sender: No OFD packet to send [13:11:23]OFD Sender: No OFD packet to send [13:11:28]OFD Sender: No OFD packet to send [13:11:33]OFD Sender: No OFD packet to send [13:11:38]OFD Sender: No OFD packet to send [13:11:43]OFD Sender: No OFD packet to send [13:11:48]OFD Sender: No OFD packet to send [13:11:53]OFD Sender: No OFD packet to send [13:11:58]OFD Sender: No OFD packet to send [13:12:03]OFD Sender: No OFD packet to send [13:12:08]OFD Sender: No OFD packet to send [13:12:13]OFD Sender: No OFD packet to send [13:12:18]OFD Sender: No OFD packet to send [13:12:23]OFD Sender: No OFD packet to send [13:12:28]OFD Sender: No OFD packet to send [13:12:32]accept exits with 9 [13:12:32]New connection [13:12:32]New thread 3067473252 created [13:12:32]Thread 3067616612 joined [13:12:32]Waiting for new connection... [13:12:32] Sock 9.Parse request [13:12:32]Sock 9.Check first char [13:12:32]Sock 9.First char is OK [13:12:32]request: POST /json_proto HTTP/1.0 [13:12:32]Method: POST [13:12:32]URL: /json_proto [13:12:32]Method is POST - this is cgi request [13:12:32]url: /json_proto [13:12:32]query_string will be loaded in cgi processing [13:12:32]execute_cgi json_proto POST (null) [13:12:32]execute_cgi path=json_proto method=POST [13:12:32]POST find Content-Length [13:12:32]Host: 172.17.56.4:8080 [13:12:32]Content-Length: 790 [13:12:32]Content-Type: application/json [13:12:32] [13:12:32]POST finish read [13:12:32]Found Content-Length = 790 [13:12:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459050", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.26, "quantity" : 20.000, "sum" : 1425.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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1425.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:12:32]execute_script... [13:12: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)459050", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.26, "quantity" : 20.000, "sum" : 1425.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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1425.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:12:32]POST & json_proto [13:12:32]process_json_proto [13:12:32]json parsed OK: [13:12:32]protocol is kg_v1.0 [13:12:32]action value=close_receipt [13:12:32]process_action close_receipt [13:12:32]cmd_close_receipt [13:12:32]MH_GetDate [13:12:32]Write to MH i2c: F0 00 00 D4 1C DF [13:12:32]Write i2c OK [13:12:32]MH_I2C_Read... [13:12:32]Read from MH i2c: F0 [13:12:32]MH_I2C_Read... [13:12:32]Read from MH i2c: F0 09 00 [13:12:32]MH_I2C_Read... [13:12:32]Read from MH i2c: F0 09 00 D4 1C 00 C1 CE 93 66 C9 DC B2 64 2B [13:12:32]GetLastDocTimeStamp 1720962487 [13:12:32]current date 1720962753 [13:12:32]FM_GetShiftState [13:12:32]SAM_PROTO_GetShiftState [13:12:32]wFMCommunicate request_size=4 [13:12:32]MH_SAM_APDU [13:12:32]CAPDU: 80 13 01 00 [13:12:32]Write to MH i2c: E2 08 00 D5 1C 80 13 01 00 00 00 00 00 6E [13:12:32]Write i2c OK [13:12:32]MH_I2C_Read... [13:12:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:32]Read from MH i2c: E2 [13:12:32]MH_I2C_Read... [13:12:32]Read from MH i2c: E2 0E 00 [13:12:32]MH_I2C_Read... [13:12:32]Read from MH i2c: E2 0E 00 D5 1C 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 EE [13:12:32]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [13:12:32]wFMCommunicate OK [13:12:32]SAM_PROTO_GetShiftState done [13:12:32]FM_GetShiftState done [13:12:32]opened in 1720917342 [13:12:32]opened+sec_in_day 1721003742 [13:12:32]quantity*price = 142520 [13:12:32]sum+1 = 142521 [13:12:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1425.20 НСП 1% : 12.61 НДС 12% : 151.35 Наличными: 0.00 Безнал.: 1425.20 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 150 14.07.2024 13:12 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164952 ФПД: 149146884553988 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T131233&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164952&fm=149146884553988&tin=02508201610067®Number=0000000000090829&sum=142520 [13:12:33]StoreToDocumentArchive [13:12:33]shift 447 fd 164952 [13:12:33]save to /storage/0447/doc_00164952 [13:12:33]save last doc name /storage/0447/doc_00164952 to /storage/kkm_last_doc_name [13:12:33]save OK [13:12:33]Clear old archive folders... [13:12:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:12:33]tlvbuf is 00751630 [13:12:33]SAM_PROTO_ClearQueue [13:12:33]wFMCommunicate request_size=4 [13:12:33]MH_SAM_APDU [13:12:33]CAPDU: 80 09 00 00 [13:12:33]Write to MH i2c: E2 08 00 E2 1C 80 09 00 00 00 00 00 00 70 [13:12:33]Write i2c OK [13:12:33]MH_I2C_Read... [13:12:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:12:33]Read from MH i2c: E2 [13:12:33]MH_I2C_Read... [13:12:33]Read from MH i2c: E2 03 00 [13:12:33]MH_I2C_Read... [13:12:33]Read from MH i2c: E2 03 00 E2 1C 00 90 00 72 [13:12:33]RAPDU: 90 00 [13:12:33]wFMCommunicate OK [13:12:33]SAM_PROTO_ClearQueue done [13:12:33]KKMCreateOFDPacket [13:12:33]OFDProtocolAddRootSTLVToBuf [13:12:33]FM_MakeSignedData [13:12:33]FM_MakeSignedData [13:12:33]SAM_PROTO_SignData [13:12:33]wFMCommunicate request_size=4 [13:12:33]MH_SAM_APDU [13:12:33]CAPDU: 80 0D 01 02 [13:12:33]Write to MH i2c: E2 08 00 E3 1C 80 0D 01 02 00 00 00 00 78 [13:12:33]Write i2c OK [13:12:33]MH_I2C_Read... [13:12:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:12:33]Read from MH i2c: E2 [13:12:33]MH_I2C_Read... [13:12:33]Read from MH i2c: E2 03 00 [13:12:33]MH_I2C_Read... [13:12:33]Read from MH i2c: E2 03 00 E3 1C 00 90 00 73 [13:12:33]RAPDU: 90 00 [13:12:33]wFMCommunicate OK [13:12:33]wFMCommunicate request_size=255 [13:12:33]MH_SAM_APDU [13:12: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 20 4E 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 B8 2C 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 2C 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 3B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 2C 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 C1 CE 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 58 84 02 00 35 04 06 00 87 A5 F7 12 [13:12:33]Write to MH i2c: E2 02 01 E4 1C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 B8 2C 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 2C 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 3B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 2C 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 C1 CE 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 58 84 02 00 35 04 06 00 87 A5 F7 12 00 00 28 [13:12:33]Write i2c OK [13:12:33]MH_I2C_Read... [13:12:33]OFD Sender: No OFD packet to send [13:12:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:33]Read from MH i2c: E2 [13:12:33]MH_I2C_Read... [13:12:33]Read from MH i2c: E2 03 00 [13:12:33]MH_I2C_Read... [13:12:33]Read from MH i2c: E2 03 00 E4 1C 00 90 00 74 [13:12:33]RAPDU: 90 00 [13:12:33]wFMCommunicate OK [13:12:33]wFMCommunicate request_size=7 [13:12:33]MH_SAM_APDU [13:12:33]CAPDU: 80 0D 02 02 02 BD 04 [13:12:33]Write to MH i2c: E2 0A 00 E5 1C 80 0D 02 02 02 00 BD 04 00 00 40 [13:12:33]Write i2c OK [13:12:33]MH_I2C_Read... [13:12:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:33]Read from MH i2c: E2 [13:12:33]MH_I2C_Read... [13:12:33]Read from MH i2c: E2 03 00 [13:12:33]MH_I2C_Read... [13:12:33]Read from MH i2c: E2 03 00 E5 1C 00 90 00 75 [13:12:33]RAPDU: 90 00 [13:12:33]wFMCommunicate OK [13:12:33]wFMCommunicate request_size=4 [13:12:33]MH_SAM_APDU [13:12:33]CAPDU: 80 0D 03 02 [13:12:33]Write to MH i2c: E2 08 00 E6 1C 80 0D 03 02 00 00 00 00 7D [13:12:33]Write i2c OK [13:12:33]MH_I2C_Read... [13:12:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:12:33]Read from MH i2c: E2 [13:12:33]MH_I2C_Read... [13:12:33]Read from MH i2c: E2 0B 00 [13:12:33]MH_I2C_Read... [13:12:33]Read from MH i2c: E2 0B 00 E6 1C 00 18 C3 9E 07 A7 F9 B1 C7 90 00 16 [13:12:33]RAPDU: 18 C3 9E 07 A7 F9 B1 C7 90 00 [13:12:33]wFMCommunicate OK [13:12:33]SAM_PROTO_SignData done [13:12:33]FM_MakeSignedData done [13:12:33]CreateOFDProtocolMessage [13:12:33]wFMCommunicate request_size=4 [13:12:33]MH_SAM_APDU [13:12:33]CAPDU: 80 11 00 00 [13:12:33]Write to MH i2c: E2 08 00 E7 1C 80 11 00 00 00 00 00 00 7D [13:12:33]Write i2c OK [13:12:33]MH_I2C_Read... [13:12:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:33]Read from MH i2c: E2 [13:12:33]MH_I2C_Read... [13:12:33]Read from MH i2c: E2 17 00 [13:12:33]MH_I2C_Read... [13:12:33]Read from MH i2c: E2 17 00 E7 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D3 [13:12:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:12:33]wFMCommunicate OK [13:12:33]CreateOFDProtocolMessage done [13:12:33]OFDSenderStorePacket 164952 [13:12:33]StoreOFDPacket docnum=164952 [13:12:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 A2 CE 04 01 92 4B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 D6 1B 00 00 00 00 13 04 06 00 B8 2C 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 2C 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 3B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 2C 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 C1 CE 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 58 84 02 00 35 04 06 00 87 A5 F7 12 BD 04 18 C3 9E 07 A7 F9 B1 C7 [13:12:33]CheckFolder [13:12:33]dirname=/storage/ofd_packets [13:12:33]CheckFolder done [13:12:33]ProducePacketName [13:12:33]name=ofd_packets/00164952 [13:12:33]NVStorageSaveData ofd_packets/00164952 [13:12:33]File name is /storage/ofd_packets/00164952 [13:12:33]Write 298 bytes [13:12:33]NVStorageSaveData done [13:12:33]OFDSenderStorePacket done [13:12:33]KKMCreateOFDPacket done [13:12:33]NVStorageSaveData kkm_last_timestamp [13:12:33]File name is /storage/kkm_last_timestamp [13:12:33]Write 4 bytes [13:12:33]NVStorageSaveData done [13:12:33]ExternCall_PrintAddStr [13:12:33]wPrintStart [13:12:33]Write to MH i2c: 01 00 00 E8 1C 04 [13:12:33]Write i2c OK [13:12:33]MH_I2C_Read... [13:12:33]Read from MH i2c: 01 [13:12:33]MH_I2C_Read... [13:12:33]Read from MH i2c: 01 07 00 [13:12:33]MH_I2C_Read... [13:12:33]Read from MH i2c: 01 07 00 E8 1C 00 00 00 00 00 FF 0F 19 [13:12:33]RasterBufferAndPrint [13:12:33]line Счет N : (1)459050 [13:12:33]line ИНН: 02508201610067 [13:12:33]line Контрольно-Кассовый Чек [13:12:33]line ПРОДАЖА [13:12:33]line ТРК (МРК, ГНК) : 11 [13:12:33]line Товар: 2710194210 [13:12:33]line ДТ-К-5 [13:12:33]line 20.000 * 71.26 [13:12:33]line = 1425.20 [13:12:33]line НДС 12% НСП 1% [13:12:33]line > о реализуемом товаре [13:12:33]line ИТОГО: 1425.20 [13:12:33]line НСП 1% : 12.61 [13:12:33]line НДС 12% : 151.35 [13:12:33]line Наличными: 0.00 [13:12:33]line Безнал.: 1425.20 [13:12:33]line Место: АЗС № 72 "Партнер Нефть" [13:12:33]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:12:33]line СНО: Общий режим [13:12:33]line Чек 150 14.07.2024 13:12 [13:12:33]line Смена: 447 ФФД: 1.0 [13:12:33]line ЗНМ: 0300000160 [13:12:33]line РНМ: 0000000000090829 [13:12:33]line Версия ККМ: 001 [13:12:33]line Платежная система: KICB Банк [13:12:33]line ФМ: 0000000000874718 [13:12:33]line ФД: 164952 [13:12:33]line ФПД: 149146884553988 [13:12:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T131233&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164952&fm=149146884553988&tin=02508201610067®Number=0000000000090829&sum=142520 [13:12:34]OFD Sender: Processing packet 164952 [packets to send 104, broken 103] [13:12:34]ProducePacketName [13:12:34]name=ofd_packets/00164952 [13:12:34]OFD Sender: To server: pG, [13:12:34]CommunicateWithHost lk.salyk.kg:30040 [13:12:34]ConnectInit lk.salyk.kg [13:12:34]written 0, free lines is 4095 [13:12:34]Connected sock=10 [13:12:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 A2 CE 04 01 92 4B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 D6 1B 00 00 00 00 13 04 06 00 B8 2C 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 2C 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 3B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 2C 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 C1 CE 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 58 84 02 00 35 04 06 00 87 A5 F7 12 BD 04 18 C3 9E 07 A7 F9 B1 C7 [13:12:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 67 E0 47 00 2E B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 58 84 02 00 F4 03 04 00 4F 75 93 66 B6 04 01 00 00 89 FE 81 DC BA 40 E7 39 [13:12:34]CommunicateWithHost err = 0 [13:12:34]CheckOFDResponse [13:12:34]1017 (14) - 77093643461234 [13:12:34]1041 (16) - 0000000000874718 [13:12:34]1040 (4) - 164952 [13:12:34]1012 (4) - 14.07.2024 06:50 [13:12:34]1206 (1) - 0 [13:12:34]OFD Sender: Remove packet 164952 [13:12:34]ProducePacketName [13:12:34]name=ofd_packets/00164952 [13:12:34]NVStorageDeleteData [13:12:34]Write to MH i2c: 01 00 00 11 1D 2E [13:12:34]Write i2c OK [13:12:34]MH_I2C_Read... [13:12:34]Read from MH i2c: 01 [13:12:34]MH_I2C_Read... [13:12:34]Read from MH i2c: 01 07 00 [13:12:34]MH_I2C_Read... [13:12:34]Read from MH i2c: 01 07 00 11 1D 00 00 00 00 00 1C 0D 5E [13:12:34]RasterBufferAndPrint [13:12:34]line [13:12:34]line [13:12:34]line [13:12:34]line [13:12:34]line [13:12:34]written 0, free lines is 3362 [13:12:34]MH_Cut [13:12:34]Write to MH i2c: D1 01 00 18 1D 01 07 [13:12:34]Write i2c OK [13:12:34]MH_I2C_Read... [13:12:34]Read from MH i2c: D1 [13:12:34]MH_I2C_Read... [13:12:34]Read from MH i2c: D1 01 00 [13:12:34]MH_I2C_Read... [13:12:34]Read from MH i2c: D1 01 00 18 1D 00 06 [13:12:34]Write to MH i2c: 01 00 00 19 1D 36 [13:12:34]Write i2c OK [13:12:34]MH_I2C_Read... [13:12:35]OFD Sender: No OFD packet to send [13:12:35]*** Cut start [13:12:35]*** Partial cut [13:12:35]*** CUTSNS_PIN = 1 [13:12:35]*** CUTSNS_PIN = 0 [13:12:35]*** Brake cut motor [13:12:35]Read from MH i2c: 01 [13:12:35]MH_I2C_Read... [13:12:35]*** Stop cut motor [13:12:35]*** Cut end [13:12:35]Read from MH i2c: 01 07 00 [13:12:35]MH_I2C_Read... [13:12:35]Read from MH i2c: 01 07 00 19 1D 00 00 00 00 00 FF 0F 4B [13:12:35]process_action close_receipt done [13:12:35]requested_data is exist [13:12:35]produce_requested_data [13:12:35]requested_item fm.sn is exist - process it [13:12:35]wFMCommunicate request_size=4 [13:12:35]MH_SAM_APDU [13:12:35]CAPDU: 80 11 00 00 [13:12:35]Write to MH i2c: E2 08 00 1A 1D 80 11 00 00 00 00 00 00 B1 [13:12:35]Write i2c OK [13:12:35]MH_I2C_Read... [13:12:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:35]Read from MH i2c: E2 [13:12:35]MH_I2C_Read... [13:12:35]Read from MH i2c: E2 17 00 [13:12:35]MH_I2C_Read... [13:12:35]Read from MH i2c: E2 17 00 1A 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 07 [13:12:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:12:35]wFMCommunicate OK [13:12:35]requested_item fd.num is exist - process it [13:12:35]SAM_PROTO_GetFieldsCounters [13:12:35]wFMCommunicate request_size=4 [13:12:35]MH_SAM_APDU [13:12:35]CAPDU: 80 13 00 00 [13:12:35]Write to MH i2c: E2 08 00 1B 1D 80 13 00 00 00 00 00 00 B4 [13:12:35]Write i2c OK [13:12:35]MH_I2C_Read... [13:12:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:12:36]Read from MH i2c: E2 [13:12:36]MH_I2C_Read... [13:12:36]Read from MH i2c: E2 62 00 [13:12:36]MH_I2C_Read... [13:12:36]Read from MH i2c: E2 62 00 1B 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 58 84 02 00 0E 04 04 00 BF 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 3B [13:12:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 58 84 02 00 0E 04 04 00 BF 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 [13:12:36]wFMCommunicate OK [13:12:36]SAM_PROTO_GetFieldsCounters done [13:12:36]requested_item shift.num is exist - process it [13:12:36]requested_item shift.opened is exist - process it [13:12:36]req_shift_opened [13:12:36]FM_GetShiftState [13:12:36]SAM_PROTO_GetShiftState [13:12:36]wFMCommunicate request_size=4 [13:12:36]MH_SAM_APDU [13:12:36]CAPDU: 80 13 01 00 [13:12:36]Write to MH i2c: E2 08 00 1C 1D 80 13 01 00 00 00 00 00 B6 [13:12:36]Write i2c OK [13:12:36]MH_I2C_Read... [13:12:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:36]Read from MH i2c: E2 [13:12:36]MH_I2C_Read... [13:12:36]Read from MH i2c: E2 0E 00 [13:12:36]MH_I2C_Read... [13:12:36]Read from MH i2c: E2 0E 00 1C 1D 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 36 [13:12:36]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [13:12:36]wFMCommunicate OK [13:12:36]SAM_PROTO_GetShiftState done [13:12:36]FM_GetShiftState done [13:12:36]req_shift_opened done [13:12:36]requested_item shift.open_date is exist - process it [13:12:36]req_shift_open_date [13:12:36]req_shift_open_date done [13:12:36]produce_requested_data done [13:12:36]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164952,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [13:12:36]process_action_free close_receipt [13:12:36]json_value_free [13:12:36]json_value_free done [13:12:36]process_json_proto returns [13:12:36]Send response to host [13:12:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164952,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [13:12:36]free response buf [13:12:36]execute_script done [13:12:36]execute_script returns [13:12:36]free content buf [13:12:36]Sock 9.Close socket [13:12:36]Sock 9.Thread stoped [13:12:40]OFD Sender: No OFD packet to send [13:12:45]OFD Sender: No OFD packet to send [13:12:50]OFD Sender: No OFD packet to send [13:12:55]OFD Sender: No OFD packet to send [13:13:00]OFD Sender: No OFD packet to send [13:13:04]accept exits with 7 [13:13:04]New connection [13:13:04]New thread 3067616612 created [13:13:04]Thread 3067473252 joined [13:13:04]Waiting for new connection... [13:13:04] Sock 7.Parse request [13:13:04]Sock 7.Check first char [13:13:04]Sock 7.First char is OK [13:13:04]request: POST /json_proto HTTP/1.0 [13:13:04]Method: POST [13:13:04]URL: /json_proto [13:13:04]Method is POST - this is cgi request [13:13:04]url: /json_proto [13:13:04]query_string will be loaded in cgi processing [13:13:04]execute_cgi json_proto POST (null) [13:13:04]execute_cgi path=json_proto method=POST [13:13:04]POST find Content-Length [13:13:04]Host: 172.17.56.4:8080 [13:13:04]Content-Length: 682 [13:13:04]Content-Type: application/json [13:13:04] [13:13:04]POST finish read [13:13:04]Found Content-Length = 682 [13:13:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459052", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:13:04]execute_script... [13: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)459052", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:13:04]POST & json_proto [13:13:04]process_json_proto [13:13:04]json parsed OK: [13:13:04]protocol is kg_v1.0 [13:13:04]action value=close_receipt [13:13:04]process_action close_receipt [13:13:04]cmd_close_receipt [13:13:04]MH_GetDate [13:13:04]Write to MH i2c: F0 00 00 1D 1D 29 [13:13:04]Write i2c OK [13:13:04]MH_I2C_Read... [13:13:04]Read from MH i2c: F0 [13:13:04]MH_I2C_Read... [13:13:04]Read from MH i2c: F0 09 00 [13:13:04]MH_I2C_Read... [13:13:04]Read from MH i2c: F0 09 00 1D 1D 00 E1 CE 93 66 C9 DC B2 64 95 [13:13:04]GetLastDocTimeStamp 1720962753 [13:13:04]current date 1720962785 [13:13:04]FM_GetShiftState [13:13:04]SAM_PROTO_GetShiftState [13:13:04]wFMCommunicate request_size=4 [13:13:04]MH_SAM_APDU [13:13:04]CAPDU: 80 13 01 00 [13:13:04]Write to MH i2c: E2 08 00 1E 1D 80 13 01 00 00 00 00 00 B8 [13:13:04]Write i2c OK [13:13:04]MH_I2C_Read... [13:13:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:04]Read from MH i2c: E2 [13:13:04]MH_I2C_Read... [13:13:04]Read from MH i2c: E2 0E 00 [13:13:04]MH_I2C_Read... [13:13:04]Read from MH i2c: E2 0E 00 1E 1D 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 38 [13:13:04]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [13:13:04]wFMCommunicate OK [13:13:04]SAM_PROTO_GetShiftState done [13:13:04]FM_GetShiftState done [13:13:04]opened in 1720917342 [13:13:04]opened+sec_in_day 1721003742 [13:13:04]quantity*price = 100016 [13:13:04]sum+1 = 100017 [13:13: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 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 151 14.07.2024 13:13 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164953 ФПД: 268697734444823 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T131305&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164953&fm=268697734444823&tin=02508201610067®Number=0000000000090829&sum=100000 [13:13:05]StoreToDocumentArchive [13:13:05]shift 447 fd 164953 [13:13:05]save to /storage/0447/doc_00164953 [13:13:05]save last doc name /storage/0447/doc_00164953 to /storage/kkm_last_doc_name [13:13:05]save OK [13:13:05]Clear old archive folders... [13:13:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:13:05]tlvbuf is 007E9F60 [13:13:05]SAM_PROTO_ClearQueue [13:13:05]wFMCommunicate request_size=4 [13:13:05]MH_SAM_APDU [13:13:05]CAPDU: 80 09 00 00 [13:13:05]Write to MH i2c: E2 08 00 2B 1D 80 09 00 00 00 00 00 00 BA [13:13:05]Write i2c OK [13:13:05]MH_I2C_Read... [13:13:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:13:05]Read from MH i2c: E2 [13:13:05]MH_I2C_Read... [13:13:05]Read from MH i2c: E2 03 00 [13:13:05]MH_I2C_Read... [13:13:05]Read from MH i2c: E2 03 00 2B 1D 00 90 00 BC [13:13:05]RAPDU: 90 00 [13:13:05]wFMCommunicate OK [13:13:05]SAM_PROTO_ClearQueue done [13:13:05]KKMCreateOFDPacket [13:13:05]OFDProtocolAddRootSTLVToBuf [13:13:05]FM_MakeSignedData [13:13:05]FM_MakeSignedData [13:13:05]SAM_PROTO_SignData [13:13:05]wFMCommunicate request_size=4 [13:13:05]MH_SAM_APDU [13:13:05]CAPDU: 80 0D 01 02 [13:13:05]Write to MH i2c: E2 08 00 2C 1D 80 0D 01 02 00 00 00 00 C2 [13:13:05]Write i2c OK [13:13:05]MH_I2C_Read... [13:13:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:13:05]Read from MH i2c: E2 [13:13:05]MH_I2C_Read... [13:13:05]Read from MH i2c: E2 03 00 [13:13:05]MH_I2C_Read... [13:13:05]Read from MH i2c: E2 03 00 2C 1D 00 90 00 BD [13:13:05]RAPDU: 90 00 [13:13:05]wFMCommunicate OK [13:13:05]wFMCommunicate request_size=255 [13:13:05]MH_SAM_APDU [13:13:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 E1 CE 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 59 84 02 00 35 04 06 00 F4 [13:13:05]Write to MH i2c: E2 02 01 2D 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 E1 CE 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 59 84 02 00 35 04 06 00 F4 00 00 AF [13:13:05]Write i2c OK [13:13:05]MH_I2C_Read... [13:13:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:06]Read from MH i2c: E2 [13:13:06]MH_I2C_Read... [13:13:06]Read from MH i2c: E2 03 00 [13:13:06]MH_I2C_Read... [13:13:06]Read from MH i2c: E2 03 00 2D 1D 00 90 00 BE [13:13:06]RAPDU: 90 00 [13:13:06]wFMCommunicate OK [13:13:06]wFMCommunicate request_size=10 [13:13:06]MH_SAM_APDU [13:13:06]CAPDU: 80 0D 02 02 05 61 11 03 77 17 [13:13:06]Write to MH i2c: E2 0D 00 2E 1D 80 0D 02 02 05 00 61 11 03 77 17 00 00 D2 [13:13:06]Write i2c OK [13:13:06]MH_I2C_Read... [13:13:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:06]Read from MH i2c: E2 [13:13:06]MH_I2C_Read... [13:13:06]Read from MH i2c: E2 03 00 [13:13:06]MH_I2C_Read... [13:13:06]Read from MH i2c: E2 03 00 2E 1D 00 90 00 BF [13:13:06]RAPDU: 90 00 [13:13:06]wFMCommunicate OK [13:13:06]wFMCommunicate request_size=4 [13:13:06]MH_SAM_APDU [13:13:06]CAPDU: 80 0D 03 02 [13:13:06]Write to MH i2c: E2 08 00 2F 1D 80 0D 03 02 00 00 00 00 C7 [13:13:06]Write i2c OK [13:13:06]MH_I2C_Read... [13:13:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:13:06]Read from MH i2c: E2 [13:13:06]MH_I2C_Read... [13:13:06]Read from MH i2c: E2 0B 00 [13:13:06]MH_I2C_Read... [13:13:06]Read from MH i2c: E2 0B 00 2F 1D 00 EF 56 13 E5 B3 44 51 B0 90 00 FD [13:13:06]RAPDU: EF 56 13 E5 B3 44 51 B0 90 00 [13:13:06]wFMCommunicate OK [13:13:06]SAM_PROTO_SignData done [13:13:06]FM_MakeSignedData done [13:13:06]CreateOFDProtocolMessage [13:13:06]wFMCommunicate request_size=4 [13:13:06]MH_SAM_APDU [13:13:06]CAPDU: 80 11 00 00 [13:13:06]Write to MH i2c: E2 08 00 30 1D 80 11 00 00 00 00 00 00 C7 [13:13:06]Write i2c OK [13:13:06]MH_I2C_Read... [13:13:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:06]Read from MH i2c: E2 [13:13:06]MH_I2C_Read... [13:13:06]Read from MH i2c: E2 17 00 [13:13:06]MH_I2C_Read... [13:13:06]Read from MH i2c: E2 17 00 30 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 1D [13:13:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:13:06]wFMCommunicate OK [13:13:06]CreateOFDProtocolMessage done [13:13:06]OFDSenderStorePacket 164953 [13:13:06]StoreOFDPacket docnum=164953 [13:13:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 73 04 07 01 75 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 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 E1 CE 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 59 84 02 00 35 04 06 00 F4 61 11 03 77 17 EF 56 13 E5 B3 44 51 B0 [13:13:06]CheckFolder [13:13:06]dirname=/storage/ofd_packets [13:13:06]CheckFolder done [13:13:06]ProducePacketName [13:13:06]name=ofd_packets/00164953 [13:13:06]NVStorageSaveData ofd_packets/00164953 [13:13:06]File name is /storage/ofd_packets/00164953 [13:13:06]Write 301 bytes [13:13:06]NVStorageSaveData done [13:13:06]OFDSenderStorePacket done [13:13:06]KKMCreateOFDPacket done [13:13:06]NVStorageSaveData kkm_last_timestamp [13:13:06]File name is /storage/kkm_last_timestamp [13:13:06]Write 4 bytes [13:13:06]NVStorageSaveData done [13:13:06]ExternCall_PrintAddStr [13:13:06]wPrintStart [13:13:06]Write to MH i2c: 01 00 00 31 1D 4E [13:13:06]Write i2c OK [13:13:06]MH_I2C_Read... [13:13:06]Read from MH i2c: 01 [13:13:06]MH_I2C_Read... [13:13:06]Read from MH i2c: 01 07 00 [13:13:06]MH_I2C_Read... [13:13:06]Read from MH i2c: 01 07 00 31 1D 00 00 00 00 00 FF 0F 63 [13:13:06]RasterBufferAndPrint [13:13:06]line Счет N : (1)459052 [13:13:06]line ИНН: 02508201610067 [13:13:06]line Контрольно-Кассовый Чек [13:13:06]line ПРОДАЖА [13:13:06]line ТРК (МРК, ГНК) : 22 [13:13:06]line Товар: 2710124130 [13:13:06]line Аи-92-К-5 [13:13:06]line 15.200 * 65.80 [13:13:06]line = 1000.16 [13:13:06]line НДС 12% НСП 1% [13:13:06]line > о реализуемом товаре [13:13:06]line ОКРУГЛЕНИЕ: -0.16 [13:13:06]line ИТОГО: 1000.00 [13:13:06]line Внесено: 1000.00 [13:13:06]line СДАЧА: 0.00 [13:13:06]line НСП 1% : 8.85 [13:13:06]line НДС 12% : 106.21 [13:13:06]line Наличными: 1000.00 [13:13:06]line Безнал.: 0.00 [13:13:06]line Место: АЗС № 72 "Партнер Нефть" [13:13:06]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:13:06]line СНО: Общий режим [13:13:06]line Чек 151 14.07.2024 13:13 [13:13:06]line Смена: 447 ФФД: 1.0 [13:13:06]line ЗНМ: 0300000160 [13:13:06]line РНМ: 0000000000090829 [13:13:06]line Версия ККМ: 001 [13:13:06]line ФМ: 0000000000874718 [13:13:06]line ФД: 164953 [13:13:06]line ФПД: 268697734444823 [13:13:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T131305&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164953&fm=268697734444823&tin=02508201610067®Number=0000000000090829&sum=100000 [13:13:06]written 0, free lines is 4095 [13:13:06]OFD Sender: Processing packet 164953 [packets to send 104, broken 103] [13:13:06]ProducePacketName [13:13:06]name=ofd_packets/00164953 [13:13:06]OFD Sender: To server: pG, [13:13:06]CommunicateWithHost lk.salyk.kg:30040 [13:13:06]ConnectInit lk.salyk.kg [13:13:06]Connected sock=10 [13:13:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 73 04 07 01 75 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 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 E1 CE 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 59 84 02 00 35 04 06 00 F4 61 11 03 77 17 EF 56 13 E5 B3 44 51 B0 [13:13:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 54 B6 47 00 AB EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 59 84 02 00 F4 03 04 00 6F 75 93 66 B6 04 01 00 00 2A 44 B4 DE 37 FC 6F FF [13:13:06]CommunicateWithHost err = 0 [13:13:06]CheckOFDResponse [13:13:06]1017 (14) - 77093643461234 [13:13:06]1041 (16) - 0000000000874718 [13:13:06]1040 (4) - 164953 [13:13:06]1012 (4) - 14.07.2024 06:51 [13:13:06]1206 (1) - 0 [13:13:06]OFD Sender: Remove packet 164953 [13:13:06]ProducePacketName [13:13:06]name=ofd_packets/00164953 [13:13:06]NVStorageDeleteData [13:13:06]Write to MH i2c: 01 00 00 5B 1D 78 [13:13:06]Write i2c OK [13:13:06]MH_I2C_Read... [13:13:06]Read from MH i2c: 01 [13:13:06]MH_I2C_Read... [13:13:06]Read from MH i2c: 01 07 00 [13:13:06]MH_I2C_Read... [13:13:06]Read from MH i2c: 01 07 00 5B 1D 00 00 00 00 00 0B 0D 97 [13:13:06]RasterBufferAndPrint [13:13:06]line [13:13:06]line [13:13:06]line [13:13:06]line [13:13:06]line [13:13:06]written 0, free lines is 3345 [13:13:06]MH_Cut [13:13:06]Write to MH i2c: D1 01 00 62 1D 01 51 [13:13:06]Write i2c OK [13:13:06]MH_I2C_Read... [13:13:06]Read from MH i2c: D1 [13:13:06]MH_I2C_Read... [13:13:06]Read from MH i2c: D1 01 00 [13:13:06]MH_I2C_Read... [13:13:06]Read from MH i2c: D1 01 00 62 1D 00 50 [13:13:06]Write to MH i2c: 01 00 00 63 1D 80 [13:13:06]Write i2c OK [13:13:06]MH_I2C_Read... [13:13:07]OFD Sender: No OFD packet to send [13:13:07]*** Cut start [13:13:07]*** Partial cut [13:13:07]*** CUTSNS_PIN = 1 [13:13:07]*** CUTSNS_PIN = 0 [13:13:07]*** Brake cut motor [13:13:07]Read from MH i2c: 01 [13:13:07]MH_I2C_Read... [13:13:07]*** Stop cut motor [13:13:07]*** Cut end [13:13:07]Read from MH i2c: 01 07 00 [13:13:07]MH_I2C_Read... [13:13:07]Read from MH i2c: 01 07 00 63 1D 00 00 00 00 00 FF 0F 95 [13:13:07]process_action close_receipt done [13:13:07]requested_data is exist [13:13:07]produce_requested_data [13:13:07]requested_item fm.sn is exist - process it [13:13:07]wFMCommunicate request_size=4 [13:13:07]MH_SAM_APDU [13:13:07]CAPDU: 80 11 00 00 [13:13:07]Write to MH i2c: E2 08 00 64 1D 80 11 00 00 00 00 00 00 FB [13:13:07]Write i2c OK [13:13:07]MH_I2C_Read... [13:13:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:08]Read from MH i2c: E2 [13:13:08]MH_I2C_Read... [13:13:08]Read from MH i2c: E2 17 00 [13:13:08]MH_I2C_Read... [13:13:08]Read from MH i2c: E2 17 00 64 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 51 [13:13:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:13:08]wFMCommunicate OK [13:13:08]requested_item fd.num is exist - process it [13:13:08]SAM_PROTO_GetFieldsCounters [13:13:08]wFMCommunicate request_size=4 [13:13:08]MH_SAM_APDU [13:13:08]CAPDU: 80 13 00 00 [13:13:08]Write to MH i2c: E2 08 00 65 1D 80 13 00 00 00 00 00 00 FE [13:13:08]Write i2c OK [13:13:08]MH_I2C_Read... [13:13:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:13:08]Read from MH i2c: E2 [13:13:08]MH_I2C_Read... [13:13:08]Read from MH i2c: E2 62 00 [13:13:08]MH_I2C_Read... [13:13:08]Read from MH i2c: E2 62 00 65 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 59 84 02 00 0E 04 04 00 BF 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 89 [13:13:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 59 84 02 00 0E 04 04 00 BF 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 [13:13:08]wFMCommunicate OK [13:13:08]SAM_PROTO_GetFieldsCounters done [13:13:08]requested_item shift.num is exist - process it [13:13:08]requested_item shift.opened is exist - process it [13:13:08]req_shift_opened [13:13:08]FM_GetShiftState [13:13:08]SAM_PROTO_GetShiftState [13:13:08]wFMCommunicate request_size=4 [13:13:08]MH_SAM_APDU [13:13:08]CAPDU: 80 13 01 00 [13:13:08]Write to MH i2c: E2 08 00 66 1D 80 13 01 00 00 00 00 00 00 [13:13:08]Write i2c OK [13:13:08]MH_I2C_Read... [13:13:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:08]Read from MH i2c: E2 [13:13:08]MH_I2C_Read... [13:13:08]Read from MH i2c: E2 0E 00 [13:13:08]MH_I2C_Read... [13:13:08]Read from MH i2c: E2 0E 00 66 1D 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 80 [13:13:08]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [13:13:08]wFMCommunicate OK [13:13:08]SAM_PROTO_GetShiftState done [13:13:08]FM_GetShiftState done [13:13:08]req_shift_opened done [13:13:08]requested_item shift.open_date is exist - process it [13:13:08]req_shift_open_date [13:13:08]req_shift_open_date done [13:13:08]produce_requested_data done [13:13:08]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164953,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [13:13:08]process_action_free close_receipt [13:13:08]json_value_free [13:13:08]json_value_free done [13:13:08]process_json_proto returns [13:13:08]Send response to host [13:13:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164953,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [13:13:08]free response buf [13:13:08]execute_script done [13:13:08]execute_script returns [13:13:08]free content buf [13:13:08]Sock 7.Close socket [13:13:08]Sock 7.Thread stoped [13:13:09]accept exits with 9 [13:13:09]New connection [13:13:09]New thread 3067473252 created [13:13:09]Thread 3067616612 joined [13:13:09]Waiting for new connection... [13:13:09] Sock 9.Parse request [13:13:09]Sock 9.Check first char [13:13:09]Sock 9.First char is OK [13:13:09]request: POST /json_proto HTTP/1.0 [13:13:09]Method: POST [13:13:09]URL: /json_proto [13:13:09]Method is POST - this is cgi request [13:13:09]url: /json_proto [13:13:09]query_string will be loaded in cgi processing [13:13:09]execute_cgi json_proto POST (null) [13:13:09]execute_cgi path=json_proto method=POST [13:13:09]POST find Content-Length [13:13:09]Host: 172.17.56.4:8080 [13:13:09]Content-Length: 790 [13:13:09]Content-Type: application/json [13:13:09] [13:13:09]POST finish read [13:13:09]Found Content-Length = 790 [13:13:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459051", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.26, "quantity" : 28.070, "sum" : 2000.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.27 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:13:09]execute_script... [13: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)459051", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.26, "quantity" : 28.070, "sum" : 2000.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.27 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:13:09]POST & json_proto [13:13:09]process_json_proto [13:13:09]json parsed OK: [13:13:09]protocol is kg_v1.0 [13:13:09]action value=close_receipt [13:13:09]process_action close_receipt [13:13:09]cmd_close_receipt [13:13:09]MH_GetDate [13:13:09]Write to MH i2c: F0 00 00 67 1D 73 [13:13:09]Write i2c OK [13:13:09]MH_I2C_Read... [13:13:09]Read from MH i2c: F0 [13:13:09]MH_I2C_Read... [13:13:09]Read from MH i2c: F0 09 00 [13:13:09]MH_I2C_Read... [13:13:09]Read from MH i2c: F0 09 00 67 1D 00 E6 CE 93 66 C9 DC B2 64 E4 [13:13:09]GetLastDocTimeStamp 1720962785 [13:13:09]current date 1720962790 [13:13:09]FM_GetShiftState [13:13:09]SAM_PROTO_GetShiftState [13:13:09]wFMCommunicate request_size=4 [13:13:09]MH_SAM_APDU [13:13:09]CAPDU: 80 13 01 00 [13:13:09]Write to MH i2c: E2 08 00 68 1D 80 13 01 00 00 00 00 00 02 [13:13:09]Write i2c OK [13:13:09]MH_I2C_Read... [13:13:09]Read from MH i2c: E2 [13:13:09]MH_I2C_Read... [13:13:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:09]Read from MH i2c: E2 0E 00 [13:13:09]MH_I2C_Read... [13:13:09]Read from MH i2c: E2 0E 00 68 1D 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 82 [13:13:09]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [13:13:09]wFMCommunicate OK [13:13:09]SAM_PROTO_GetShiftState done [13:13:09]FM_GetShiftState done [13:13:09]opened in 1720917342 [13:13:09]opened+sec_in_day 1721003742 [13:13:09]quantity*price = 200026 [13:13:09]sum+1 = 200028 [13:13:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.27 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.27 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 152 14.07.2024 13:13 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164954 ФПД: 6348430992780 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T131311&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164954&fm=6348430992780&tin=02508201610067®Number=0000000000090829&sum=200027 [13:13:11]StoreToDocumentArchive [13:13:11]shift 447 fd 164954 [13:13:11]save to /storage/0447/doc_00164954 [13:13:11]save last doc name /storage/0447/doc_00164954 to /storage/kkm_last_doc_name [13:13:11]save OK [13:13:11]Clear old archive folders... [13:13:11]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:13:11]tlvbuf is 00801160 [13:13:11]SAM_PROTO_ClearQueue [13:13:11]wFMCommunicate request_size=4 [13:13:11]MH_SAM_APDU [13:13:11]CAPDU: 80 09 00 00 [13:13:11]Write to MH i2c: E2 08 00 75 1D 80 09 00 00 00 00 00 00 04 [13:13:11]Write i2c OK [13:13:11]MH_I2C_Read... [13:13:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:13:11]Read from MH i2c: E2 [13:13:11]MH_I2C_Read... [13:13:11]Read from MH i2c: E2 03 00 [13:13:11]MH_I2C_Read... [13:13:11]Read from MH i2c: E2 03 00 75 1D 00 90 00 06 [13:13:11]RAPDU: 90 00 [13:13:11]wFMCommunicate OK [13:13:11]SAM_PROTO_ClearQueue done [13:13:11]KKMCreateOFDPacket [13:13:11]OFDProtocolAddRootSTLVToBuf [13:13:11]FM_MakeSignedData [13:13:11]FM_MakeSignedData [13:13:11]SAM_PROTO_SignData [13:13:11]wFMCommunicate request_size=4 [13:13:11]MH_SAM_APDU [13:13:11]CAPDU: 80 0D 01 02 [13:13:11]Write to MH i2c: E2 08 00 76 1D 80 0D 01 02 00 00 00 00 0C [13:13:11]Write i2c OK [13:13:11]MH_I2C_Read... [13:13:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:13:11]Read from MH i2c: E2 [13:13:11]MH_I2C_Read... [13:13:11]Read from MH i2c: E2 03 00 [13:13:11]MH_I2C_Read... [13:13:11]Read from MH i2c: E2 03 00 76 1D 00 90 00 07 [13:13:11]RAPDU: 90 00 [13:13:11]wFMCommunicate OK [13:13:11]wFMCommunicate request_size=255 [13:13:11]MH_SAM_APDU [13:13: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 A6 6D 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 5B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 E7 CE 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5A 84 02 00 35 04 06 00 05 C6 1B F9 [13:13:11]Write to MH i2c: E2 02 01 77 1D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A6 6D 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 5B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 E7 CE 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5A 84 02 00 35 04 06 00 05 C6 1B F9 00 00 B5 [13:13:11]Write i2c OK [13:13:11]MH_I2C_Read... [13:13:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:11]Read from MH i2c: E2 [13:13:11]MH_I2C_Read... [13:13:11]Read from MH i2c: E2 03 00 [13:13:11]MH_I2C_Read... [13:13:11]Read from MH i2c: E2 03 00 77 1D 00 90 00 08 [13:13:11]RAPDU: 90 00 [13:13:11]wFMCommunicate OK [13:13:11]wFMCommunicate request_size=7 [13:13:11]MH_SAM_APDU [13:13:11]CAPDU: 80 0D 02 02 02 65 8C [13:13:11]Write to MH i2c: E2 0A 00 78 1D 80 0D 02 02 02 00 65 8C 00 00 04 [13:13:11]Write i2c OK [13:13:11]MH_I2C_Read... [13:13:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:11]Read from MH i2c: E2 [13:13:11]MH_I2C_Read... [13:13:11]Read from MH i2c: E2 03 00 [13:13:11]MH_I2C_Read... [13:13:11]Read from MH i2c: E2 03 00 78 1D 00 90 00 09 [13:13:11]RAPDU: 90 00 [13:13:11]wFMCommunicate OK [13:13:11]wFMCommunicate request_size=4 [13:13:11]MH_SAM_APDU [13:13:11]CAPDU: 80 0D 03 02 [13:13:11]Write to MH i2c: E2 08 00 79 1D 80 0D 03 02 00 00 00 00 11 [13:13:11]Write i2c OK [13:13:11]MH_I2C_Read... [13:13:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:13:11]Read from MH i2c: E2 [13:13:11]MH_I2C_Read... [13:13:11]Read from MH i2c: E2 0B 00 [13:13:11]MH_I2C_Read... [13:13:11]Read from MH i2c: E2 0B 00 79 1D 00 6F 5D BE 01 9B D3 42 E4 90 00 31 [13:13:11]RAPDU: 6F 5D BE 01 9B D3 42 E4 90 00 [13:13:11]wFMCommunicate OK [13:13:11]SAM_PROTO_SignData done [13:13:11]FM_MakeSignedData done [13:13:11]CreateOFDProtocolMessage [13:13:11]wFMCommunicate request_size=4 [13:13:11]MH_SAM_APDU [13:13:11]CAPDU: 80 11 00 00 [13:13:11]Write to MH i2c: E2 08 00 7A 1D 80 11 00 00 00 00 00 00 11 [13:13:11]Write i2c OK [13:13:11]MH_I2C_Read... [13:13:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:11]Read from MH i2c: E2 [13:13:11]MH_I2C_Read... [13:13:11]Read from MH i2c: E2 17 00 [13:13:11]MH_I2C_Read... [13:13:11]Read from MH i2c: E2 17 00 7A 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 67 [13:13:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:13:11]wFMCommunicate OK [13:13:11]CreateOFDProtocolMessage done [13:13:11]OFDSenderStorePacket 164954 [13:13:11]StoreOFDPacket docnum=164954 [13:13:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 33 0C 04 01 04 54 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A6 6D 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 5B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 E7 CE 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5A 84 02 00 35 04 06 00 05 C6 1B F9 65 8C 6F 5D BE 01 9B D3 42 E4 [13:13:11]CheckFolder [13:13:11]dirname=/storage/ofd_packets [13:13:11]CheckFolder done [13:13:11]ProducePacketName [13:13:11]name=ofd_packets/00164954 [13:13:11]NVStorageSaveData ofd_packets/00164954 [13:13:11]File name is /storage/ofd_packets/00164954 [13:13:11]Write 298 bytes [13:13:11]NVStorageSaveData done [13:13:11]OFDSenderStorePacket done [13:13:11]KKMCreateOFDPacket done [13:13:11]NVStorageSaveData kkm_last_timestamp [13:13:11]File name is /storage/kkm_last_timestamp [13:13:11]Write 4 bytes [13:13:11]NVStorageSaveData done [13:13:11]ExternCall_PrintAddStr [13:13:11]wPrintStart [13:13:11]Write to MH i2c: 01 00 00 7B 1D 98 [13:13:11]Write i2c OK [13:13:11]MH_I2C_Read... [13:13:11]Read from MH i2c: 01 [13:13:11]MH_I2C_Read... [13:13:11]Read from MH i2c: 01 07 00 [13:13:11]MH_I2C_Read... [13:13:11]Read from MH i2c: 01 07 00 7B 1D 00 00 00 00 00 FF 0F AD [13:13:11]RasterBufferAndPrint [13:13:11]line Счет N : (1)459051 [13:13:11]line ИНН: 02508201610067 [13:13:11]line Контрольно-Кассовый Чек [13:13:11]line ПРОДАЖА [13:13:11]line ТРК (МРК, ГНК) : 21 [13:13:11]line Товар: 2710194210 [13:13:11]line ДТ-К-5 [13:13:11]line 28.070 * 71.26 [13:13:11]line = 2000.27 [13:13:11]line НДС 12% НСП 1% [13:13:11]line > о реализуемом товаре [13:13:11]line ИТОГО: 2000.27 [13:13:11]line НСП 1% : 17.70 [13:13:11]line НДС 12% : 212.42 [13:13:11]line Наличными: 0.00 [13:13:11]line Безнал.: 2000.27 [13:13:11]line Место: АЗС № 72 "Партнер Нефть" [13:13:11]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:13:11]line СНО: Общий режим [13:13:11]line Чек 152 14.07.2024 13:13 [13:13:11]line Смена: 447 ФФД: 1.0 [13:13:11]line ЗНМ: 0300000160 [13:13:11]line РНМ: 0000000000090829 [13:13:11]line Версия ККМ: 001 [13:13:11]line Платежная система: KICB Банк [13:13:11]line ФМ: 0000000000874718 [13:13:11]line ФД: 164954 [13:13:11]line ФПД: 6348430992780 [13:13:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T131311&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164954&fm=6348430992780&tin=02508201610067®Number=0000000000090829&sum=200027 [13:13:11]written 0, free lines is 4095 [13:13:11]OFD Sender: Processing packet 164954 [packets to send 104, broken 103] [13:13:11]ProducePacketName [13:13:11]name=ofd_packets/00164954 [13:13:11]OFD Sender: To server: pG, [13:13:11]CommunicateWithHost lk.salyk.kg:30040 [13:13:11]ConnectInit lk.salyk.kg [13:13:11]Connected sock=10 [13:13:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 33 0C 04 01 04 54 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A6 6D 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 5B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 E7 CE 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5A 84 02 00 35 04 06 00 05 C6 1B F9 65 8C 6F 5D BE 01 9B D3 42 E4 [13:13:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 4F C2 47 00 13 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5A 84 02 00 F4 03 04 00 74 75 93 66 B6 04 01 00 00 60 09 BF D1 2C D3 48 0C [13:13:12]CommunicateWithHost err = 0 [13:13:12]CheckOFDResponse [13:13:12]1017 (14) - 77093643461234 [13:13:12]1041 (16) - 0000000000874718 [13:13:12]1040 (4) - 164954 [13:13:12]1012 (4) - 14.07.2024 06:51 [13:13:12]1206 (1) - 0 [13:13:12]OFD Sender: Remove packet 164954 [13:13:12]ProducePacketName [13:13:12]name=ofd_packets/00164954 [13:13:12]NVStorageDeleteData [13:13:12]Write to MH i2c: 01 00 00 A4 1D C1 [13:13:12]Write i2c OK [13:13:12]MH_I2C_Read... [13:13:12]Read from MH i2c: 01 [13:13:12]MH_I2C_Read... [13:13:12]Read from MH i2c: 01 07 00 [13:13:12]MH_I2C_Read... [13:13:12]Read from MH i2c: 01 07 00 A4 1D 00 00 00 00 00 1F 0D F4 [13:13:12]RasterBufferAndPrint [13:13:12]line [13:13:12]line [13:13:12]line [13:13:12]line [13:13:12]line [13:13:12]written 0, free lines is 3374 [13:13:12]MH_Cut [13:13:12]Write to MH i2c: D1 01 00 AB 1D 01 9A [13:13:12]Write i2c OK [13:13:12]MH_I2C_Read... [13:13:12]Read from MH i2c: D1 [13:13:12]MH_I2C_Read... [13:13:12]Read from MH i2c: D1 01 00 [13:13:12]MH_I2C_Read... [13:13:12]Read from MH i2c: D1 01 00 AB 1D 00 99 [13:13:12]Write to MH i2c: 01 00 00 AC 1D C9 [13:13:12]Write i2c OK [13:13:12]MH_I2C_Read... [13:13:12]OFD Sender: No OFD packet to send [13:13:12]*** Cut start [13:13:12]*** Partial cut [13:13:12]*** CUTSNS_PIN = 1 [13:13:12]*** CUTSNS_PIN = 0 [13:13:12]*** Brake cut motor [13:13:13]Read from MH i2c: 01 [13:13:13]MH_I2C_Read... [13:13:13]*** Stop cut motor [13:13:13]*** Cut end [13:13:13]Read from MH i2c: 01 07 00 [13:13:13]MH_I2C_Read... [13:13:13]Read from MH i2c: 01 07 00 AC 1D 00 00 00 00 00 FF 0F DE [13:13:13]process_action close_receipt done [13:13:13]requested_data is exist [13:13:13]produce_requested_data [13:13:13]requested_item fm.sn is exist - process it [13:13:13]wFMCommunicate request_size=4 [13:13:13]MH_SAM_APDU [13:13:13]CAPDU: 80 11 00 00 [13:13:13]Write to MH i2c: E2 08 00 AD 1D 80 11 00 00 00 00 00 00 44 [13:13:13]Write i2c OK [13:13:13]MH_I2C_Read... [13:13:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:13]Read from MH i2c: E2 [13:13:13]MH_I2C_Read... [13:13:13]Read from MH i2c: E2 17 00 [13:13:13]MH_I2C_Read... [13:13:13]Read from MH i2c: E2 17 00 AD 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 9A [13:13:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:13:13]wFMCommunicate OK [13:13:13]requested_item fd.num is exist - process it [13:13:13]SAM_PROTO_GetFieldsCounters [13:13:13]wFMCommunicate request_size=4 [13:13:13]MH_SAM_APDU [13:13:13]CAPDU: 80 13 00 00 [13:13:13]Write to MH i2c: E2 08 00 AE 1D 80 13 00 00 00 00 00 00 47 [13:13:13]Write i2c OK [13:13:13]MH_I2C_Read... [13:13:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:13:13]Read from MH i2c: E2 [13:13:13]MH_I2C_Read... [13:13:13]Read from MH i2c: E2 62 00 [13:13:13]MH_I2C_Read... [13:13:13]Read from MH i2c: E2 62 00 AE 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 5A 84 02 00 0E 04 04 00 BF 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 D6 [13:13:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 5A 84 02 00 0E 04 04 00 BF 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 [13:13:13]wFMCommunicate OK [13:13:13]SAM_PROTO_GetFieldsCounters done [13:13:13]requested_item shift.num is exist - process it [13:13:13]requested_item shift.opened is exist - process it [13:13:13]req_shift_opened [13:13:13]FM_GetShiftState [13:13:13]SAM_PROTO_GetShiftState [13:13:13]wFMCommunicate request_size=4 [13:13:13]MH_SAM_APDU [13:13:13]CAPDU: 80 13 01 00 [13:13:13]Write to MH i2c: E2 08 00 AF 1D 80 13 01 00 00 00 00 00 49 [13:13:13]Write i2c OK [13:13:13]MH_I2C_Read... [13:13:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:13]Read from MH i2c: E2 [13:13:13]MH_I2C_Read... [13:13:13]Read from MH i2c: E2 0E 00 [13:13:13]MH_I2C_Read... [13:13:13]Read from MH i2c: E2 0E 00 AF 1D 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 C9 [13:13:13]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [13:13:13]wFMCommunicate OK [13:13:13]SAM_PROTO_GetShiftState done [13:13:13]FM_GetShiftState done [13:13:13]req_shift_opened done [13:13:13]requested_item shift.open_date is exist - process it [13:13:13]req_shift_open_date [13:13:13]req_shift_open_date done [13:13:13]produce_requested_data done [13:13:13]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164954,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [13:13:13]process_action_free close_receipt [13:13:13]json_value_free [13:13:13]json_value_free done [13:13:13]process_json_proto returns [13:13:13]Send response to host [13:13:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164954,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [13:13:13]free response buf [13:13:13]execute_script done [13:13:13]execute_script returns [13:13:13]free content buf [13:13:13]Sock 9.Close socket [13:13:13]Sock 9.Thread stoped [13:13:17]OFD Sender: No OFD packet to send [13:13:22]OFD Sender: No OFD packet to send [13:13:27]OFD Sender: No OFD packet to send [13:13:32]OFD Sender: No OFD packet to send [13:13:37]OFD Sender: No OFD packet to send [13:13:42]OFD Sender: No OFD packet to send [13:13:47]OFD Sender: No OFD packet to send [13:13:52]OFD Sender: No OFD packet to send [13:13:57]OFD Sender: No OFD packet to send [13:14:02]OFD Sender: No OFD packet to send [13:14:07]OFD Sender: No OFD packet to send [13:14:12]OFD Sender: No OFD packet to send [13:14:17]OFD Sender: No OFD packet to send [13:14:22]OFD Sender: No OFD packet to send [13:14:27]OFD Sender: No OFD packet to send [13:14:32]OFD Sender: No OFD packet to send [13:14:37]OFD Sender: No OFD packet to send [13:14:42]OFD Sender: No OFD packet to send [13:14:47]OFD Sender: No OFD packet to send [13:14:52]OFD Sender: No OFD packet to send [13:14:57]OFD Sender: No OFD packet to send [13:15:02]OFD Sender: No OFD packet to send [13:15:07]OFD Sender: No OFD packet to send [13:15:12]OFD Sender: No OFD packet to send [13:15:17]OFD Sender: No OFD packet to send [13:15:22]OFD Sender: No OFD packet to send [13:15:27]OFD Sender: No OFD packet to send [13:15:32]OFD Sender: No OFD packet to send [13:15:37]OFD Sender: No OFD packet to send [13:15:42]OFD Sender: No OFD packet to send [13:15:47]OFD Sender: No OFD packet to send [13:15:52]OFD Sender: No OFD packet to send [13:15:57]OFD Sender: No OFD packet to send [13:16:02]OFD Sender: No OFD packet to send [13:16:07]OFD Sender: No OFD packet to send [13:16:12]OFD Sender: No OFD packet to send [13:16:17]OFD Sender: No OFD packet to send [13:16:22]OFD Sender: No OFD packet to send [13:16:27]OFD Sender: No OFD packet to send [13:16:32]OFD Sender: No OFD packet to send [13:16:37]OFD Sender: No OFD packet to send [13:16:42]OFD Sender: No OFD packet to send [13:16:47]OFD Sender: No OFD packet to send [13:16:52]OFD Sender: No OFD packet to send [13:16:57]OFD Sender: No OFD packet to send [13:17:02]OFD Sender: No OFD packet to send [13:17:07]OFD Sender: No OFD packet to send [13:17:12]OFD Sender: No OFD packet to send [13:17:17]OFD Sender: No OFD packet to send [13:17:22]OFD Sender: No OFD packet to send [13:17:27]OFD Sender: No OFD packet to send [13:17:32]OFD Sender: No OFD packet to send [13:17:37]OFD Sender: No OFD packet to send [13:17:42]OFD Sender: No OFD packet to send [13:17:47]OFD Sender: No OFD packet to send [13:17:52]OFD Sender: No OFD packet to send [13:17:57]OFD Sender: No OFD packet to send [13:18:02]OFD Sender: No OFD packet to send [13:18:07]OFD Sender: No OFD packet to send [13:18:12]OFD Sender: No OFD packet to send [13:18:17]OFD Sender: No OFD packet to send [13:18:20]accept exits with 7 [13:18:20]New connection [13:18:20]New thread 3067616612 created [13:18:20]Thread 3067473252 joined [13:18:20]Waiting for new connection... [13:18:20] Sock 7.Parse request [13:18:20]Sock 7.Check first char [13:18:20]Sock 7.First char is OK [13:18:20]request: POST /json_proto HTTP/1.0 [13:18:20]Method: POST [13:18:20]URL: /json_proto [13:18:20]Method is POST - this is cgi request [13:18:20]url: /json_proto [13:18:20]query_string will be loaded in cgi processing [13:18:20]execute_cgi json_proto POST (null) [13:18:20]execute_cgi path=json_proto method=POST [13:18:20]POST find Content-Length [13:18:20]Host: 172.17.56.4:8080 [13:18:20]Content-Length: 677 [13:18:20]Content-Type: application/json [13:18:20] [13:18:20]POST finish read [13:18:20]Found Content-Length = 677 [13:18:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459053", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "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:18:20]execute_script... [13: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)459053", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "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:18:20]POST & json_proto [13:18:20]process_json_proto [13:18:20]json parsed OK: [13:18:20]protocol is kg_v1.0 [13:18:20]action value=close_receipt [13:18:20]process_action close_receipt [13:18:20]cmd_close_receipt [13:18:20]MH_GetDate [13:18:20]Write to MH i2c: F0 00 00 B0 1D BC [13:18:20]Write i2c OK [13:18:20]MH_I2C_Read... [13:18:20]Read from MH i2c: F0 [13:18:20]MH_I2C_Read... [13:18:20]Read from MH i2c: F0 09 00 [13:18:20]MH_I2C_Read... [13:18:20]Read from MH i2c: F0 09 00 B0 1D 00 1E D0 93 66 C9 DC B2 64 67 [13:18:20]GetLastDocTimeStamp 1720962791 [13:18:20]current date 1720963102 [13:18:20]FM_GetShiftState [13:18:20]SAM_PROTO_GetShiftState [13:18:20]wFMCommunicate request_size=4 [13:18:20]MH_SAM_APDU [13:18:20]CAPDU: 80 13 01 00 [13:18:20]Write to MH i2c: E2 08 00 B1 1D 80 13 01 00 00 00 00 00 4B [13:18:20]Write i2c OK [13:18:20]MH_I2C_Read... [13:18:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:18:20]Read from MH i2c: E2 [13:18:20]MH_I2C_Read... [13:18:20]Read from MH i2c: E2 0E 00 [13:18:20]MH_I2C_Read... [13:18:20]Read from MH i2c: E2 0E 00 B1 1D 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 CB [13:18:20]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [13:18:20]wFMCommunicate OK [13:18:20]SAM_PROTO_GetShiftState done [13:18:20]FM_GetShiftState done [13:18:20]opened in 1720917342 [13:18:20]opened+sec_in_day 1721003742 [13:18:20]quantity*price = 20003 [13:18:20]sum+1 = 20004 [13:18:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 153 14.07.2024 13:18 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164955 ФПД: 71792021613181 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T131822&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164955&fm=71792021613181&tin=02508201610067®Number=0000000000090829&sum=20000 [13:18:21]StoreToDocumentArchive [13:18:21]shift 447 fd 164955 [13:18:21]save to /storage/0447/doc_00164955 [13:18:21]save last doc name /storage/0447/doc_00164955 to /storage/kkm_last_doc_name [13:18:21]save OK [13:18:21]Clear old archive folders... [13:18:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:18:21]tlvbuf is 00782BF0 [13:18:21]SAM_PROTO_ClearQueue [13:18:21]wFMCommunicate request_size=4 [13:18:21]MH_SAM_APDU [13:18:21]CAPDU: 80 09 00 00 [13:18:21]Write to MH i2c: E2 08 00 BE 1D 80 09 00 00 00 00 00 00 4D [13:18:21]Write i2c OK [13:18:21]MH_I2C_Read... [13:18:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:18:21]Read from MH i2c: E2 [13:18:21]MH_I2C_Read... [13:18:21]Read from MH i2c: E2 03 00 [13:18:21]MH_I2C_Read... [13:18:21]Read from MH i2c: E2 03 00 BE 1D 00 90 00 4F [13:18:21]RAPDU: 90 00 [13:18:21]wFMCommunicate OK [13:18:21]SAM_PROTO_ClearQueue done [13:18:21]KKMCreateOFDPacket [13:18:21]OFDProtocolAddRootSTLVToBuf [13:18:21]FM_MakeSignedData [13:18:21]FM_MakeSignedData [13:18:21]SAM_PROTO_SignData [13:18:21]wFMCommunicate request_size=4 [13:18:21]MH_SAM_APDU [13:18:21]CAPDU: 80 0D 01 02 [13:18:21]Write to MH i2c: E2 08 00 BF 1D 80 0D 01 02 00 00 00 00 55 [13:18:21]Write i2c OK [13:18:21]MH_I2C_Read... [13:18:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:18:22]Read from MH i2c: E2 [13:18:22]MH_I2C_Read... [13:18:22]Read from MH i2c: E2 03 00 [13:18:22]MH_I2C_Read... [13:18:22]Read from MH i2c: E2 03 00 BF 1D 00 90 00 50 [13:18:22]RAPDU: 90 00 [13:18:22]wFMCommunicate OK [13:18:22]wFMCommunicate request_size=255 [13:18:22]MH_SAM_APDU [13:18:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 99 00 00 00 F4 03 04 00 1E D0 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5B 84 02 00 35 04 06 00 41 [13:18:22]Write to MH i2c: E2 02 01 C0 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 99 00 00 00 F4 03 04 00 1E D0 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5B 84 02 00 35 04 06 00 41 00 00 D1 [13:18:22]Write i2c OK [13:18:22]MH_I2C_Read... [13:18:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:18:22]Read from MH i2c: E2 [13:18:22]MH_I2C_Read... [13:18:22]Read from MH i2c: E2 03 00 [13:18:22]MH_I2C_Read... [13:18:22]Read from MH i2c: E2 03 00 C0 1D 00 90 00 51 [13:18:22]RAPDU: 90 00 [13:18:22]wFMCommunicate OK [13:18:22]wFMCommunicate request_size=10 [13:18:22]MH_SAM_APDU [13:18:22]CAPDU: 80 0D 02 02 05 4B 61 F2 2A 7D [13:18:22]Write to MH i2c: E2 0D 00 C1 1D 80 0D 02 02 05 00 4B 61 F2 2A 7D 00 00 A7 [13:18:22]Write i2c OK [13:18:22]MH_I2C_Read... [13:18:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:18:22]Read from MH i2c: E2 [13:18:22]MH_I2C_Read... [13:18:22]Read from MH i2c: E2 03 00 [13:18:22]MH_I2C_Read... [13:18:22]Read from MH i2c: E2 03 00 C1 1D 00 90 00 52 [13:18:22]RAPDU: 90 00 [13:18:22]wFMCommunicate OK [13:18:22]wFMCommunicate request_size=4 [13:18:22]MH_SAM_APDU [13:18:22]CAPDU: 80 0D 03 02 [13:18:22]Write to MH i2c: E2 08 00 C2 1D 80 0D 03 02 00 00 00 00 5A [13:18:22]Write i2c OK [13:18:22]MH_I2C_Read... [13:18:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:18:22]Read from MH i2c: E2 [13:18:22]MH_I2C_Read... [13:18:22]Read from MH i2c: E2 0B 00 [13:18:22]MH_I2C_Read... [13:18:22]Read from MH i2c: E2 0B 00 C2 1D 00 FB 1F 9A 24 DF 75 2C C6 90 00 79 [13:18:22]RAPDU: FB 1F 9A 24 DF 75 2C C6 90 00 [13:18:22]wFMCommunicate OK [13:18:22]SAM_PROTO_SignData done [13:18:22]FM_MakeSignedData done [13:18:22]CreateOFDProtocolMessage [13:18:22]wFMCommunicate request_size=4 [13:18:22]MH_SAM_APDU [13:18:22]CAPDU: 80 11 00 00 [13:18:22]Write to MH i2c: E2 08 00 C3 1D 80 11 00 00 00 00 00 00 5A [13:18:22]Write i2c OK [13:18:22]MH_I2C_Read... [13:18:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:18:22]Read from MH i2c: E2 [13:18:22]MH_I2C_Read... [13:18:22]Read from MH i2c: E2 17 00 [13:18:22]MH_I2C_Read... [13:18:22]Read from MH i2c: E2 17 00 C3 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B0 [13:18:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:18:22]wFMCommunicate OK [13:18:22]CreateOFDProtocolMessage done [13:18:22]OFDSenderStorePacket 164955 [13:18:22]StoreOFDPacket docnum=164955 [13:18:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 4C 38 07 01 90 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 99 00 00 00 F4 03 04 00 1E D0 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5B 84 02 00 35 04 06 00 41 4B 61 F2 2A 7D FB 1F 9A 24 DF 75 2C C6 [13:18:22]CheckFolder [13:18:22]dirname=/storage/ofd_packets [13:18:22]CheckFolder done [13:18:22]ProducePacketName [13:18:22]name=ofd_packets/00164955 [13:18:22]NVStorageSaveData ofd_packets/00164955 [13:18:22]File name is /storage/ofd_packets/00164955 [13:18:22]Write 301 bytes [13:18:22]NVStorageSaveData done [13:18:22]OFDSenderStorePacket done [13:18:22]KKMCreateOFDPacket done [13:18:22]NVStorageSaveData kkm_last_timestamp [13:18:22]File name is /storage/kkm_last_timestamp [13:18:22]Write 4 bytes [13:18:22]NVStorageSaveData done [13:18:22]ExternCall_PrintAddStr [13:18:22]wPrintStart [13:18:22]Write to MH i2c: 01 00 00 C4 1D E1 [13:18:22]Write i2c OK [13:18:22]MH_I2C_Read... [13:18:22]Read from MH i2c: 01 [13:18:22]MH_I2C_Read... [13:18:22]Read from MH i2c: 01 07 00 [13:18:22]MH_I2C_Read... [13:18:22]Read from MH i2c: 01 07 00 C4 1D 00 00 00 00 00 FF 0F F6 [13:18:22]RasterBufferAndPrint [13:18:22]line Счет N : (1)459053 [13:18:22]line ИНН: 02508201610067 [13:18:22]line Контрольно-Кассовый Чек [13:18:22]line ПРОДАЖА [13:18:22]line ТРК (МРК, ГНК) : 22 [13:18:22]line Товар: 2710124130 [13:18:22]line Аи-92-К-5 [13:18:22]line 3.040 * 65.80 [13:18:22]line = 200.03 [13:18:22]line НДС 12% НСП 1% [13:18:22]line > о реализуемом товаре [13:18:22]line ОКРУГЛЕНИЕ: -0.03 [13:18:22]line ИТОГО: 200.00 [13:18:22]line Внесено: 200.00 [13:18:22]line СДАЧА: 0.00 [13:18:22]line НСП 1% : 1.77 [13:18:22]line НДС 12% : 21.24 [13:18:22]line Наличными: 200.00 [13:18:22]line Безнал.: 0.00 [13:18:22]line Место: АЗС № 72 "Партнер Нефть" [13:18:22]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:18:22]line СНО: Общий режим [13:18:22]line Чек 153 14.07.2024 13:18 [13:18:22]line Смена: 447 ФФД: 1.0 [13:18:22]line ЗНМ: 0300000160 [13:18:22]line РНМ: 0000000000090829 [13:18:22]line Версия ККМ: 001 [13:18:22]line ФМ: 0000000000874718 [13:18:22]line ФД: 164955 [13:18:22]line ФПД: 71792021613181 [13:18:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T131822&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164955&fm=71792021613181&tin=02508201610067®Number=0000000000090829&sum=20000 [13:18:22]written 0, free lines is 4095 [13:18:22]OFD Sender: Processing packet 164955 [packets to send 104, broken 103] [13:18:22]ProducePacketName [13:18:22]name=ofd_packets/00164955 [13:18:22]OFD Sender: To server: pG, [13:18:22]CommunicateWithHost lk.salyk.kg:30040 [13:18:22]ConnectInit lk.salyk.kg [13:18:22]Connected sock=10 [13:18:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 4C 38 07 01 90 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 99 00 00 00 F4 03 04 00 1E D0 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5B 84 02 00 35 04 06 00 41 4B 61 F2 2A 7D FB 1F 9A 24 DF 75 2C C6 [13:18:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 BB 06 47 00 65 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5B 84 02 00 F4 03 04 00 AB 76 93 66 B6 04 01 00 00 29 C3 E5 29 97 4B C2 93 [13:18:23]CommunicateWithHost err = 0 [13:18:23]CheckOFDResponse [13:18:23]1017 (14) - 77093643461234 [13:18:23]1041 (16) - 0000000000874718 [13:18:23]1040 (4) - 164955 [13:18:23]1012 (4) - 14.07.2024 06:56 [13:18:23]1206 (1) - 0 [13:18:23]OFD Sender: Remove packet 164955 [13:18:23]ProducePacketName [13:18:23]name=ofd_packets/00164955 [13:18:23]NVStorageDeleteData [13:18:23]Write to MH i2c: 01 00 00 EE 1D 0B [13:18:23]Write i2c OK [13:18:23]MH_I2C_Read... [13:18:23]Read from MH i2c: 01 [13:18:23]MH_I2C_Read... [13:18:23]Read from MH i2c: 01 07 00 [13:18:23]MH_I2C_Read... [13:18:23]Read from MH i2c: 01 07 00 EE 1D 00 00 00 00 00 02 0D 21 [13:18:23]RasterBufferAndPrint [13:18:23]line [13:18:23]line [13:18:23]line [13:18:23]line [13:18:23]line [13:18:23]written 0, free lines is 3336 [13:18:23]MH_Cut [13:18:23]Write to MH i2c: D1 01 00 F5 1D 01 E4 [13:18:23]Write i2c OK [13:18:23]MH_I2C_Read... [13:18:23]Read from MH i2c: D1 [13:18:23]MH_I2C_Read... [13:18:23]Read from MH i2c: D1 01 00 [13:18:23]MH_I2C_Read... [13:18:23]Read from MH i2c: D1 01 00 F5 1D 00 E3 [13:18:23]Write to MH i2c: 01 00 00 F6 1D 13 [13:18:23]Write i2c OK [13:18:23]MH_I2C_Read... [13:18:23]OFD Sender: No OFD packet to send [13:18:23]*** Cut start [13:18:23]*** Partial cut [13:18:23]*** CUTSNS_PIN = 1 [13:18:23]*** CUTSNS_PIN = 0 [13:18:24]*** Brake cut motor [13:18:24]Read from MH i2c: 01 [13:18:24]MH_I2C_Read... [13:18:24]*** Stop cut motor [13:18:24]*** Cut end [13:18:24]Read from MH i2c: 01 07 00 [13:18:24]MH_I2C_Read... [13:18:24]Read from MH i2c: 01 07 00 F6 1D 00 00 00 00 00 FF 0F 28 [13:18:24]process_action close_receipt done [13:18:24]requested_data is exist [13:18:24]produce_requested_data [13:18:24]requested_item fm.sn is exist - process it [13:18:24]wFMCommunicate request_size=4 [13:18:24]MH_SAM_APDU [13:18:24]CAPDU: 80 11 00 00 [13:18:24]Write to MH i2c: E2 08 00 F7 1D 80 11 00 00 00 00 00 00 8E [13:18:24]Write i2c OK [13:18:24]MH_I2C_Read... [13:18:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:18:24]Read from MH i2c: E2 [13:18:24]MH_I2C_Read... [13:18:24]Read from MH i2c: E2 17 00 [13:18:24]MH_I2C_Read... [13:18:24]Read from MH i2c: E2 17 00 F7 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E4 [13:18:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:18:24]wFMCommunicate OK [13:18:24]requested_item fd.num is exist - process it [13:18:24]SAM_PROTO_GetFieldsCounters [13:18:24]wFMCommunicate request_size=4 [13:18:24]MH_SAM_APDU [13:18:24]CAPDU: 80 13 00 00 [13:18:24]Write to MH i2c: E2 08 00 F8 1D 80 13 00 00 00 00 00 00 91 [13:18:24]Write i2c OK [13:18:24]MH_I2C_Read... [13:18:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:18:24]Read from MH i2c: E2 [13:18:24]MH_I2C_Read... [13:18:24]Read from MH i2c: E2 62 00 [13:18:24]MH_I2C_Read... [13:18:24]Read from MH i2c: E2 62 00 F8 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 5B 84 02 00 0E 04 04 00 BF 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 24 [13:18:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 5B 84 02 00 0E 04 04 00 BF 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 [13:18:24]wFMCommunicate OK [13:18:24]SAM_PROTO_GetFieldsCounters done [13:18:24]requested_item shift.num is exist - process it [13:18:24]requested_item shift.opened is exist - process it [13:18:24]req_shift_opened [13:18:24]FM_GetShiftState [13:18:24]SAM_PROTO_GetShiftState [13:18:24]wFMCommunicate request_size=4 [13:18:24]MH_SAM_APDU [13:18:24]CAPDU: 80 13 01 00 [13:18:24]Write to MH i2c: E2 08 00 F9 1D 80 13 01 00 00 00 00 00 93 [13:18:24]Write i2c OK [13:18:24]MH_I2C_Read... [13:18:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:18:24]Read from MH i2c: E2 [13:18:24]MH_I2C_Read... [13:18:24]Read from MH i2c: E2 0E 00 [13:18:24]MH_I2C_Read... [13:18:24]Read from MH i2c: E2 0E 00 F9 1D 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 13 [13:18:24]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [13:18:24]wFMCommunicate OK [13:18:24]SAM_PROTO_GetShiftState done [13:18:24]FM_GetShiftState done [13:18:24]req_shift_opened done [13:18:24]requested_item shift.open_date is exist - process it [13:18:24]req_shift_open_date [13:18:24]req_shift_open_date done [13:18:24]produce_requested_data done [13:18:24]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164955,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [13:18:24]process_action_free close_receipt [13:18:24]json_value_free [13:18:24]json_value_free done [13:18:24]process_json_proto returns [13:18:24]Send response to host [13:18:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164955,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [13:18:24]free response buf [13:18:24]execute_script done [13:18:24]execute_script returns [13:18:24]free content buf [13:18:24]Sock 7.Close socket [13:18:24]Sock 7.Thread stoped [13:18:28]OFD Sender: No OFD packet to send [13:18:33]OFD Sender: No OFD packet to send [13:18:38]OFD Sender: No OFD packet to send [13:18:43]OFD Sender: No OFD packet to send [13:18:48]OFD Sender: No OFD packet to send [13:18:53]OFD Sender: No OFD packet to send [13:18:58]OFD Sender: No OFD packet to send [13:19:03]OFD Sender: No OFD packet to send [13:19:08]OFD Sender: No OFD packet to send [13:19:13]OFD Sender: No OFD packet to send [13:19:18]OFD Sender: No OFD packet to send [13:19:23]OFD Sender: No OFD packet to send [13:19:28]OFD Sender: No OFD packet to send [13:19:33]OFD Sender: No OFD packet to send [13:19:38]OFD Sender: No OFD packet to send [13:19:43]OFD Sender: No OFD packet to send [13:19:48]OFD Sender: No OFD packet to send [13:19:53]OFD Sender: No OFD packet to send [13:19:58]OFD Sender: No OFD packet to send [13:20:03]OFD Sender: No OFD packet to send [13:20:08]OFD Sender: No OFD packet to send [13:20:13]OFD Sender: No OFD packet to send [13:20:18]OFD Sender: No OFD packet to send [13:20:23]OFD Sender: No OFD packet to send [13:20:28]OFD Sender: No OFD packet to send [13:20:33]OFD Sender: No OFD packet to send [13:20:38]OFD Sender: No OFD packet to send [13:20:43]OFD Sender: No OFD packet to send [13:20:48]OFD Sender: No OFD packet to send [13:20:53]OFD Sender: No OFD packet to send [13:20:58]OFD Sender: No OFD packet to send [13:21:03]OFD Sender: No OFD packet to send [13:21:08]accept exits with 9 [13:21:08]New connection [13:21:08]New thread 3067473252 created [13:21:08]Thread 3067616612 joined [13:21:08]Waiting for new connection... [13:21:08] Sock 9.Parse request [13:21:08]Sock 9.Check first char [13:21:08]Sock 9.First char is OK [13:21:08]request: POST /json_proto HTTP/1.0 [13:21:08]Method: POST [13:21:08]URL: /json_proto [13:21:08]Method is POST - this is cgi request [13:21:08]url: /json_proto [13:21:08]query_string will be loaded in cgi processing [13:21:08]execute_cgi json_proto POST (null) [13:21:08]execute_cgi path=json_proto method=POST [13:21:08]POST find Content-Length [13:21:08]Host: 172.17.56.4:8080 [13:21:08]Content-Length: 677 [13:21:08]Content-Type: application/json [13:21:08] [13:21:08]POST finish read [13:21:08]Found Content-Length = 677 [13:21:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459054", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.320, "sum" : 350.06, "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" ] } } [13:21:08]execute_script... [13:21: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)459054", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.320, "sum" : 350.06, "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" ] } } [13:21:08]POST & json_proto [13:21:08]process_json_proto [13:21:08]json parsed OK: [13:21:08]protocol is kg_v1.0 [13:21:08]action value=close_receipt [13:21:08]process_action close_receipt [13:21:08]cmd_close_receipt [13:21:08]MH_GetDate [13:21:08]Write to MH i2c: F0 00 00 FA 1D 06 [13:21:08]Write i2c OK [13:21:08]MH_I2C_Read... [13:21:08]Read from MH i2c: F0 [13:21:08]MH_I2C_Read... [13:21:08]Read from MH i2c: F0 09 00 [13:21:08]MH_I2C_Read... [13:21:08]Read from MH i2c: F0 09 00 FA 1D 00 C5 D0 93 66 C9 DC B2 64 58 [13:21:08]GetLastDocTimeStamp 1720963102 [13:21:08]current date 1720963269 [13:21:08]FM_GetShiftState [13:21:08]SAM_PROTO_GetShiftState [13:21:08]wFMCommunicate request_size=4 [13:21:08]MH_SAM_APDU [13:21:08]CAPDU: 80 13 01 00 [13:21:08]Write to MH i2c: E2 08 00 FB 1D 80 13 01 00 00 00 00 00 95 [13:21:08]Write i2c OK [13:21:08]MH_I2C_Read... [13:21:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:21:08]Read from MH i2c: E2 [13:21:08]MH_I2C_Read... [13:21:08]Read from MH i2c: E2 0E 00 [13:21:08]MH_I2C_Read... [13:21:08]Read from MH i2c: E2 0E 00 FB 1D 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 15 [13:21:08]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [13:21:08]wFMCommunicate OK [13:21:08]SAM_PROTO_GetShiftState done [13:21:08]FM_GetShiftState done [13:21:08]opened in 1720917342 [13:21:08]opened+sec_in_day 1721003742 [13:21:08]quantity*price = 35005 [13:21:08]sum+1 = 35007 [13:21:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.17 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 154 14.07.2024 13:21 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164956 ФПД: 101294265340021 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T132109&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164956&fm=101294265340021&tin=02508201610067®Number=0000000000090829&sum=35000 [13:21:09]StoreToDocumentArchive [13:21:09]shift 447 fd 164956 [13:21:09]save to /storage/0447/doc_00164956 [13:21:09]save last doc name /storage/0447/doc_00164956 to /storage/kkm_last_doc_name [13:21:09]save OK [13:21:09]Clear old archive folders... [13:21:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:21:09]tlvbuf is 007E9AE0 [13:21:09]SAM_PROTO_ClearQueue [13:21:09]wFMCommunicate request_size=4 [13:21:09]MH_SAM_APDU [13:21:09]CAPDU: 80 09 00 00 [13:21:09]Write to MH i2c: E2 08 00 08 1E 80 09 00 00 00 00 00 00 98 [13:21:09]Write i2c OK [13:21:09]MH_I2C_Read... [13:21:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:21:09]Read from MH i2c: E2 [13:21:09]MH_I2C_Read... [13:21:09]Read from MH i2c: E2 03 00 [13:21:09]MH_I2C_Read... [13:21:09]Read from MH i2c: E2 03 00 08 1E 00 90 00 9A [13:21:09]RAPDU: 90 00 [13:21:09]wFMCommunicate OK [13:21:09]SAM_PROTO_ClearQueue done [13:21:09]KKMCreateOFDPacket [13:21:09]OFDProtocolAddRootSTLVToBuf [13:21:09]FM_MakeSignedData [13:21:09]FM_MakeSignedData [13:21:09]SAM_PROTO_SignData [13:21:09]wFMCommunicate request_size=4 [13:21:09]MH_SAM_APDU [13:21:09]CAPDU: 80 0D 01 02 [13:21:09]Write to MH i2c: E2 08 00 09 1E 80 0D 01 02 00 00 00 00 A0 [13:21:09]Write i2c OK [13:21:09]MH_I2C_Read... [13:21:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:21:09]Read from MH i2c: E2 [13:21:09]MH_I2C_Read... [13:21:09]Read from MH i2c: E2 03 00 [13:21:09]MH_I2C_Read... [13:21:09]Read from MH i2c: E2 03 00 09 1E 00 90 00 9B [13:21:09]RAPDU: 90 00 [13:21:09]wFMCommunicate OK [13:21:09]wFMCommunicate request_size=255 [13:21:09]MH_SAM_APDU [13:21:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BE 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 85 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 9A 00 00 00 F4 03 04 00 C5 D0 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5C 84 02 00 35 04 06 00 5C [13:21:09]Write to MH i2c: E2 02 01 0A 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BE 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 85 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 9A 00 00 00 F4 03 04 00 C5 D0 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5C 84 02 00 35 04 06 00 5C 00 00 0F [13:21:09]Write i2c OK [13:21:09]MH_I2C_Read... [13:21:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:21:09]Read from MH i2c: E2 [13:21:09]MH_I2C_Read... [13:21:09]Read from MH i2c: E2 03 00 [13:21:09]MH_I2C_Read... [13:21:09]Read from MH i2c: E2 03 00 0A 1E 00 90 00 9C [13:21:09]RAPDU: 90 00 [13:21:09]wFMCommunicate OK [13:21:09]wFMCommunicate request_size=10 [13:21:09]MH_SAM_APDU [13:21:09]CAPDU: 80 0D 02 02 05 20 68 B4 10 75 [13:21:09]Write to MH i2c: E2 0D 00 0B 1E 80 0D 02 02 05 00 20 68 B4 10 75 00 00 6E [13:21:09]Write i2c OK [13:21:09]MH_I2C_Read... [13:21:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:21:09]Read from MH i2c: E2 [13:21:09]MH_I2C_Read... [13:21:09]Read from MH i2c: E2 03 00 [13:21:09]MH_I2C_Read... [13:21:09]Read from MH i2c: E2 03 00 0B 1E 00 90 00 9D [13:21:09]RAPDU: 90 00 [13:21:09]wFMCommunicate OK [13:21:09]wFMCommunicate request_size=4 [13:21:09]MH_SAM_APDU [13:21:09]CAPDU: 80 0D 03 02 [13:21:09]Write to MH i2c: E2 08 00 0C 1E 80 0D 03 02 00 00 00 00 A5 [13:21:09]Write i2c OK [13:21:09]MH_I2C_Read... [13:21:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:21:09]Read from MH i2c: E2 [13:21:09]MH_I2C_Read... [13:21:09]Read from MH i2c: E2 0B 00 [13:21:09]MH_I2C_Read... [13:21:09]Read from MH i2c: E2 0B 00 0C 1E 00 8C 96 8E 46 21 11 D9 8E 90 00 35 [13:21:09]RAPDU: 8C 96 8E 46 21 11 D9 8E 90 00 [13:21:09]wFMCommunicate OK [13:21:09]SAM_PROTO_SignData done [13:21:09]FM_MakeSignedData done [13:21:09]CreateOFDProtocolMessage [13:21:09]wFMCommunicate request_size=4 [13:21:09]MH_SAM_APDU [13:21:09]CAPDU: 80 11 00 00 [13:21:09]Write to MH i2c: E2 08 00 0D 1E 80 11 00 00 00 00 00 00 A5 [13:21:09]Write i2c OK [13:21:09]MH_I2C_Read... [13:21:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:21:09]Read from MH i2c: E2 [13:21:09]MH_I2C_Read... [13:21:09]Read from MH i2c: E2 17 00 [13:21:09]MH_I2C_Read... [13:21:09]Read from MH i2c: E2 17 00 0D 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 FB [13:21:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:21:09]wFMCommunicate OK [13:21:09]CreateOFDProtocolMessage done [13:21:09]OFDSenderStorePacket 164956 [13:21:09]StoreOFDPacket docnum=164956 [13:21:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 B7 E2 07 01 BB 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BE 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 85 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 9A 00 00 00 F4 03 04 00 C5 D0 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5C 84 02 00 35 04 06 00 5C 20 68 B4 10 75 8C 96 8E 46 21 11 D9 8E [13:21:09]CheckFolder [13:21:09]dirname=/storage/ofd_packets [13:21:09]CheckFolder done [13:21:09]ProducePacketName [13:21:09]name=ofd_packets/00164956 [13:21:09]NVStorageSaveData ofd_packets/00164956 [13:21:09]File name is /storage/ofd_packets/00164956 [13:21:09]Write 301 bytes [13:21:09]NVStorageSaveData done [13:21:09]OFDSenderStorePacket done [13:21:09]KKMCreateOFDPacket done [13:21:09]NVStorageSaveData kkm_last_timestamp [13:21:09]File name is /storage/kkm_last_timestamp [13:21:09]Write 4 bytes [13:21:09]NVStorageSaveData done [13:21:09]ExternCall_PrintAddStr [13:21:09]wPrintStart [13:21:09]Write to MH i2c: 01 00 00 0E 1E 2C [13:21:09]Write i2c OK [13:21:09]MH_I2C_Read... [13:21:09]Read from MH i2c: 01 [13:21:09]MH_I2C_Read... [13:21:09]Read from MH i2c: 01 07 00 [13:21:09]MH_I2C_Read... [13:21:09]Read from MH i2c: 01 07 00 0E 1E 00 00 00 00 00 FF 0F 41 [13:21:09]RasterBufferAndPrint [13:21:09]line Счет N : (1)459054 [13:21:09]line ИНН: 02508201610067 [13:21:09]line Контрольно-Кассовый Чек [13:21:09]line ПРОДАЖА [13:21:09]line ТРК (МРК, ГНК) : 22 [13:21:09]line Товар: 2710124130 [13:21:09]line Аи-92-К-5 [13:21:09]line 5.320 * 65.80 [13:21:09]line = 350.06 [13:21:09]line НДС 12% НСП 1% [13:21:09]line > о реализуемом товаре [13:21:09]line ОКРУГЛЕНИЕ: -0.06 [13:21:09]line ИТОГО: 350.00 [13:21:09]line Внесено: 350.00 [13:21:09]line СДАЧА: 0.00 [13:21:09]line НСП 1% : 3.10 [13:21:09]line НДС 12% : 37.17 [13:21:09]line Наличными: 350.00 [13:21:09]line Безнал.: 0.00 [13:21:09]line Место: АЗС № 72 "Партнер Нефть" [13:21:09]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:21:09]line СНО: Общий режим [13:21:09]line Чек 154 14.07.2024 13:21 [13:21:09]line Смена: 447 ФФД: 1.0 [13:21:09]line ЗНМ: 0300000160 [13:21:09]line РНМ: 0000000000090829 [13:21:09]line Версия ККМ: 001 [13:21:09]line ФМ: 0000000000874718 [13:21:09]line ФД: 164956 [13:21:09]line ФПД: 101294265340021 [13:21:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T132109&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164956&fm=101294265340021&tin=02508201610067®Number=0000000000090829&sum=35000 [13:21:10]OFD Sender: Processing packet 164956 [packets to send 104, broken 103] [13:21:10]ProducePacketName [13:21:10]name=ofd_packets/00164956 [13:21:10]OFD Sender: To server: pG, [13:21:10]CommunicateWithHost lk.salyk.kg:30040 [13:21:10]ConnectInit lk.salyk.kg [13:21:10]written 0, free lines is 4095 [13:21:10]Connected sock=10 [13:21:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 B7 E2 07 01 BB 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BE 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 85 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 9A 00 00 00 F4 03 04 00 C5 D0 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5C 84 02 00 35 04 06 00 5C 20 68 B4 10 75 8C 96 8E 46 21 11 D9 8E [13:21:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 43 16 47 00 7A 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5C 84 02 00 F4 03 04 00 53 77 93 66 B6 04 01 00 00 79 71 D1 32 22 2A D6 DD [13:21:10]CommunicateWithHost err = 0 [13:21:10]CheckOFDResponse [13:21:10]1017 (14) - 77093643461234 [13:21:10]1041 (16) - 0000000000874718 [13:21:10]1040 (4) - 164956 [13:21:10]1012 (4) - 14.07.2024 06:59 [13:21:10]1206 (1) - 0 [13:21:10]OFD Sender: Remove packet 164956 [13:21:10]ProducePacketName [13:21:10]name=ofd_packets/00164956 [13:21:10]NVStorageDeleteData [13:21:10]Write to MH i2c: 01 00 00 38 1E 56 [13:21:10]Write i2c OK [13:21:10]MH_I2C_Read... [13:21:10]Read from MH i2c: 01 [13:21:10]MH_I2C_Read... [13:21:10]Read from MH i2c: 01 07 00 [13:21:10]MH_I2C_Read... [13:21:10]Read from MH i2c: 01 07 00 38 1E 00 00 00 00 00 0A 0D 74 [13:21:10]RasterBufferAndPrint [13:21:10]line [13:21:10]line [13:21:10]line [13:21:10]line [13:21:10]line [13:21:10]written 0, free lines is 3344 [13:21:10]MH_Cut [13:21:10]Write to MH i2c: D1 01 00 3F 1E 01 2F [13:21:10]Write i2c OK [13:21:10]MH_I2C_Read... [13:21:10]Read from MH i2c: D1 [13:21:10]MH_I2C_Read... [13:21:10]Read from MH i2c: D1 01 00 [13:21:10]MH_I2C_Read... [13:21:10]Read from MH i2c: D1 01 00 3F 1E 00 2E [13:21:10]Write to MH i2c: 01 00 00 40 1E 5E [13:21:10]Write i2c OK [13:21:10]MH_I2C_Read... [13:21:10]OFD Sender: No OFD packet to send [13:21:11]*** Cut start [13:21:11]*** Partial cut [13:21:11]*** CUTSNS_PIN = 1 [13:21:11]*** CUTSNS_PIN = 0 [13:21:11]*** Brake cut motor [13:21:11]Read from MH i2c: 01 [13:21:11]MH_I2C_Read... [13:21:11]Read from MH i2c: 01 07 00 [13:21:11]MH_I2C_Read... [13:21:11]*** Stop cut motor [13:21:11]*** Cut end [13:21:11]Read from MH i2c: 01 07 00 40 1E 00 00 00 00 00 FF 0F 73 [13:21:11]process_action close_receipt done [13:21:11]requested_data is exist [13:21:11]produce_requested_data [13:21:11]requested_item fm.sn is exist - process it [13:21:11]wFMCommunicate request_size=4 [13:21:11]MH_SAM_APDU [13:21:11]CAPDU: 80 11 00 00 [13:21:11]Write to MH i2c: E2 08 00 41 1E 80 11 00 00 00 00 00 00 D9 [13:21:11]Write i2c OK [13:21:11]MH_I2C_Read... [13:21:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:21:11]Read from MH i2c: E2 [13:21:11]MH_I2C_Read... [13:21:11]Read from MH i2c: E2 17 00 [13:21:11]MH_I2C_Read... [13:21:11]Read from MH i2c: E2 17 00 41 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 2F [13:21:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:21:11]wFMCommunicate OK [13:21:11]requested_item fd.num is exist - process it [13:21:11]SAM_PROTO_GetFieldsCounters [13:21:11]wFMCommunicate request_size=4 [13:21:11]MH_SAM_APDU [13:21:11]CAPDU: 80 13 00 00 [13:21:11]Write to MH i2c: E2 08 00 42 1E 80 13 00 00 00 00 00 00 DC [13:21:11]Write i2c OK [13:21:11]MH_I2C_Read... [13:21:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:21:12]Read from MH i2c: E2 [13:21:12]MH_I2C_Read... [13:21:12]Read from MH i2c: E2 62 00 [13:21:12]MH_I2C_Read... [13:21:12]Read from MH i2c: E2 62 00 42 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 5C 84 02 00 0E 04 04 00 BF 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 73 [13:21:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 5C 84 02 00 0E 04 04 00 BF 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 [13:21:12]wFMCommunicate OK [13:21:12]SAM_PROTO_GetFieldsCounters done [13:21:12]requested_item shift.num is exist - process it [13:21:12]requested_item shift.opened is exist - process it [13:21:12]req_shift_opened [13:21:12]FM_GetShiftState [13:21:12]SAM_PROTO_GetShiftState [13:21:12]wFMCommunicate request_size=4 [13:21:12]MH_SAM_APDU [13:21:12]CAPDU: 80 13 01 00 [13:21:12]Write to MH i2c: E2 08 00 43 1E 80 13 01 00 00 00 00 00 DE [13:21:12]Write i2c OK [13:21:12]MH_I2C_Read... [13:21:12]Read from MH i2c: E2 [13:21:12]MH_I2C_Read... [13:21:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:21:12]Read from MH i2c: E2 0E 00 [13:21:12]MH_I2C_Read... [13:21:12]Read from MH i2c: E2 0E 00 43 1E 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 5E [13:21:12]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [13:21:12]wFMCommunicate OK [13:21:12]SAM_PROTO_GetShiftState done [13:21:12]FM_GetShiftState done [13:21:12]req_shift_opened done [13:21:12]requested_item shift.open_date is exist - process it [13:21:12]req_shift_open_date [13:21:12]req_shift_open_date done [13:21:12]produce_requested_data done [13:21:12]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164956,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [13:21:12]process_action_free close_receipt [13:21:12]json_value_free [13:21:12]json_value_free done [13:21:12]process_json_proto returns [13:21:12]Send response to host [13:21:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164956,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [13:21:12]free response buf [13:21:12]execute_script done [13:21:12]execute_script returns [13:21:12]free content buf [13:21:12]Sock 9.Close socket [13:21:12]Sock 9.Thread stoped [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:01]OFD Sender: No OFD packet to send [13:22:06]OFD Sender: No OFD packet to send [13:22:11]OFD Sender: No OFD packet to send [13:22:16]OFD Sender: No OFD packet to send [13:22:21]OFD Sender: No OFD packet to send [13:22:26]OFD Sender: No OFD packet to send [13:22:31]OFD Sender: No OFD packet to send [13:22:36]OFD Sender: No OFD packet to send [13:22:39]accept exits with 7 [13:22:39]New connection [13:22:39]New thread 3067616612 created [13:22:39]Thread 3067473252 joined [13:22:39]Waiting for new connection... [13:22:39] Sock 7.Parse request [13:22:39]Sock 7.Check first char [13:22:39]Sock 7.First char is OK [13:22:39]request: POST /json_proto HTTP/1.0 [13:22:39]Method: POST [13:22:39]URL: /json_proto [13:22:39]Method is POST - this is cgi request [13:22:39]url: /json_proto [13:22:39]query_string will be loaded in cgi processing [13:22:39]execute_cgi json_proto POST (null) [13:22:39]execute_cgi path=json_proto method=POST [13:22:39]POST find Content-Length [13:22:39]Host: 172.17.56.4:8080 [13:22:39]Content-Length: 677 [13:22:39]Content-Type: application/json [13:22:39] [13:22:39]POST finish read [13:22:39]Found Content-Length = 677 [13:22:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459055", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:22:39]execute_script... [13:22: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)459055", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:22:39]POST & json_proto [13:22:39]process_json_proto [13:22:39]json parsed OK: [13:22:39]protocol is kg_v1.0 [13:22:39]action value=close_receipt [13:22:39]process_action close_receipt [13:22:39]cmd_close_receipt [13:22:39]MH_GetDate [13:22:39]Write to MH i2c: F0 00 00 44 1E 51 [13:22:39]Write i2c OK [13:22:39]MH_I2C_Read... [13:22:39]Read from MH i2c: F0 [13:22:39]MH_I2C_Read... [13:22:39]Read from MH i2c: F0 09 00 [13:22:39]MH_I2C_Read... [13:22:39]Read from MH i2c: F0 09 00 44 1E 00 21 D1 93 66 C9 DC B2 64 00 [13:22:39]GetLastDocTimeStamp 1720963269 [13:22:39]current date 1720963361 [13:22:39]FM_GetShiftState [13:22:39]SAM_PROTO_GetShiftState [13:22:39]wFMCommunicate request_size=4 [13:22:39]MH_SAM_APDU [13:22:39]CAPDU: 80 13 01 00 [13:22:39]Write to MH i2c: E2 08 00 45 1E 80 13 01 00 00 00 00 00 E0 [13:22:39]Write i2c OK [13:22:39]MH_I2C_Read... [13:22:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:39]Read from MH i2c: E2 [13:22:39]MH_I2C_Read... [13:22:39]Read from MH i2c: E2 0E 00 [13:22:39]MH_I2C_Read... [13:22:39]Read from MH i2c: E2 0E 00 45 1E 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 60 [13:22:39]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [13:22:39]wFMCommunicate OK [13:22:39]SAM_PROTO_GetShiftState done [13:22:39]FM_GetShiftState done [13:22:39]opened in 1720917342 [13:22:39]opened+sec_in_day 1721003742 [13:22:39]quantity*price = 30004 [13:22:39]sum+1 = 30006 [13:22:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 155 14.07.2024 13:22 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164957 ФПД: 2965844334711 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T132241&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164957&fm=2965844334711&tin=02508201610067®Number=0000000000090829&sum=30000 [13:22:41]StoreToDocumentArchive [13:22:41]shift 447 fd 164957 [13:22:41]save to /storage/0447/doc_00164957 [13:22:41]save last doc name /storage/0447/doc_00164957 to /storage/kkm_last_doc_name [13:22:41]save OK [13:22:41]Clear old archive folders... [13:22:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:22:41]tlvbuf is 00735610 [13:22:41]SAM_PROTO_ClearQueue [13:22:41]wFMCommunicate request_size=4 [13:22:41]MH_SAM_APDU [13:22:41]CAPDU: 80 09 00 00 [13:22:41]Write to MH i2c: E2 08 00 52 1E 80 09 00 00 00 00 00 00 E2 [13:22:41]Write i2c OK [13:22:41]MH_I2C_Read... [13:22:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:22:41]Read from MH i2c: E2 [13:22:41]MH_I2C_Read... [13:22:41]Read from MH i2c: E2 03 00 [13:22:41]MH_I2C_Read... [13:22:41]Read from MH i2c: E2 03 00 52 1E 00 90 00 E4 [13:22:41]RAPDU: 90 00 [13:22:41]wFMCommunicate OK [13:22:41]SAM_PROTO_ClearQueue done [13:22:41]KKMCreateOFDPacket [13:22:41]OFDProtocolAddRootSTLVToBuf [13:22:41]FM_MakeSignedData [13:22:41]FM_MakeSignedData [13:22:41]SAM_PROTO_SignData [13:22:41]wFMCommunicate request_size=4 [13:22:41]MH_SAM_APDU [13:22:41]CAPDU: 80 0D 01 02 [13:22:41]Write to MH i2c: E2 08 00 53 1E 80 0D 01 02 00 00 00 00 EA [13:22:41]Write i2c OK [13:22:41]MH_I2C_Read... [13:22:41]OFD Sender: No OFD packet to send [13:22:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:22:41]Read from MH i2c: E2 [13:22:41]MH_I2C_Read... [13:22:41]Read from MH i2c: E2 03 00 [13:22:41]MH_I2C_Read... [13:22:41]Read from MH i2c: E2 03 00 53 1E 00 90 00 E5 [13:22:41]RAPDU: 90 00 [13:22:41]wFMCommunicate OK [13:22:41]wFMCommunicate request_size=255 [13:22:41]MH_SAM_APDU [13:22:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 21 D1 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5D 84 02 00 35 04 06 00 02 [13:22:41]Write to MH i2c: E2 02 01 54 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 21 D1 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5D 84 02 00 35 04 06 00 02 00 00 4F [13:22:41]Write i2c OK [13:22:41]MH_I2C_Read... [13:22:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:41]Read from MH i2c: E2 [13:22:41]MH_I2C_Read... [13:22:41]Read from MH i2c: E2 03 00 [13:22:41]MH_I2C_Read... [13:22:41]Read from MH i2c: E2 03 00 54 1E 00 90 00 E6 [13:22:41]RAPDU: 90 00 [13:22:41]wFMCommunicate OK [13:22:41]wFMCommunicate request_size=10 [13:22:41]MH_SAM_APDU [13:22:41]CAPDU: 80 0D 02 02 05 B2 8A 19 18 77 [13:22:41]Write to MH i2c: E2 0D 00 55 1E 80 0D 02 02 05 00 B2 8A 19 18 77 00 00 DB [13:22:41]Write i2c OK [13:22:41]MH_I2C_Read... [13:22:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:41]Read from MH i2c: E2 [13:22:41]MH_I2C_Read... [13:22:41]Read from MH i2c: E2 03 00 [13:22:41]MH_I2C_Read... [13:22:41]Read from MH i2c: E2 03 00 55 1E 00 90 00 E7 [13:22:41]RAPDU: 90 00 [13:22:41]wFMCommunicate OK [13:22:41]wFMCommunicate request_size=4 [13:22:41]MH_SAM_APDU [13:22:41]CAPDU: 80 0D 03 02 [13:22:41]Write to MH i2c: E2 08 00 56 1E 80 0D 03 02 00 00 00 00 EF [13:22:41]Write i2c OK [13:22:41]MH_I2C_Read... [13:22:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:22:41]Read from MH i2c: E2 [13:22:41]MH_I2C_Read... [13:22:41]Read from MH i2c: E2 0B 00 [13:22:41]MH_I2C_Read... [13:22:41]Read from MH i2c: E2 0B 00 56 1E 00 63 31 DF 0F 1B 6E 30 EE 90 00 19 [13:22:41]RAPDU: 63 31 DF 0F 1B 6E 30 EE 90 00 [13:22:41]wFMCommunicate OK [13:22:41]SAM_PROTO_SignData done [13:22:41]FM_MakeSignedData done [13:22:41]CreateOFDProtocolMessage [13:22:41]wFMCommunicate request_size=4 [13:22:41]MH_SAM_APDU [13:22:41]CAPDU: 80 11 00 00 [13:22:41]Write to MH i2c: E2 08 00 57 1E 80 11 00 00 00 00 00 00 EF [13:22:41]Write i2c OK [13:22:41]MH_I2C_Read... [13:22:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:41]Read from MH i2c: E2 [13:22:41]MH_I2C_Read... [13:22:41]Read from MH i2c: E2 17 00 [13:22:41]MH_I2C_Read... [13:22:41]Read from MH i2c: E2 17 00 57 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 45 [13:22:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:22:41]wFMCommunicate OK [13:22:41]CreateOFDProtocolMessage done [13:22:41]OFDSenderStorePacket 164957 [13:22:41]StoreOFDPacket docnum=164957 [13:22:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 E3 AE 07 01 DA BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 21 D1 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5D 84 02 00 35 04 06 00 02 B2 8A 19 18 77 63 31 DF 0F 1B 6E 30 EE [13:22:41]CheckFolder [13:22:41]dirname=/storage/ofd_packets [13:22:41]CheckFolder done [13:22:41]ProducePacketName [13:22:41]name=ofd_packets/00164957 [13:22:41]NVStorageSaveData ofd_packets/00164957 [13:22:41]File name is /storage/ofd_packets/00164957 [13:22:41]Write 301 bytes [13:22:41]NVStorageSaveData done [13:22:41]OFDSenderStorePacket done [13:22:41]KKMCreateOFDPacket done [13:22:41]NVStorageSaveData kkm_last_timestamp [13:22:41]File name is /storage/kkm_last_timestamp [13:22:41]Write 4 bytes [13:22:41]NVStorageSaveData done [13:22:41]ExternCall_PrintAddStr [13:22:41]wPrintStart [13:22:41]Write to MH i2c: 01 00 00 58 1E 76 [13:22:41]Write i2c OK [13:22:41]MH_I2C_Read... [13:22:41]Read from MH i2c: 01 [13:22:41]MH_I2C_Read... [13:22:41]Read from MH i2c: 01 07 00 [13:22:41]MH_I2C_Read... [13:22:41]Read from MH i2c: 01 07 00 58 1E 00 00 00 00 00 FF 0F 8B [13:22:41]RasterBufferAndPrint [13:22:41]line Счет N : (1)459055 [13:22:41]line ИНН: 02508201610067 [13:22:41]line Контрольно-Кассовый Чек [13:22:41]line ПРОДАЖА [13:22:41]line ТРК (МРК, ГНК) : 22 [13:22:41]line Товар: 2710124130 [13:22:41]line Аи-92-К-5 [13:22:41]line 4.560 * 65.80 [13:22:41]line = 300.05 [13:22:41]line НДС 12% НСП 1% [13:22:41]line > о реализуемом товаре [13:22:41]line ОКРУГЛЕНИЕ: -0.05 [13:22:41]line ИТОГО: 300.00 [13:22:41]line Внесено: 300.00 [13:22:41]line СДАЧА: 0.00 [13:22:41]line НСП 1% : 2.65 [13:22:41]line НДС 12% : 31.86 [13:22:41]line Наличными: 300.00 [13:22:41]line Безнал.: 0.00 [13:22:41]line Место: АЗС № 72 "Партнер Нефть" [13:22:41]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:22:41]line СНО: Общий режим [13:22:41]line Чек 155 14.07.2024 13:22 [13:22:41]line Смена: 447 ФФД: 1.0 [13:22:41]line ЗНМ: 0300000160 [13:22:41]line РНМ: 0000000000090829 [13:22:41]line Версия ККМ: 001 [13:22:41]line ФМ: 0000000000874718 [13:22:41]line ФД: 164957 [13:22:41]line ФПД: 2965844334711 [13:22:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T132241&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164957&fm=2965844334711&tin=02508201610067®Number=0000000000090829&sum=30000 [13:22:41]OFD Sender: Processing packet 164957 [packets to send 104, broken 103] [13:22:41]ProducePacketName [13:22:41]name=ofd_packets/00164957 [13:22:41]OFD Sender: To server: pG, [13:22:41]CommunicateWithHost lk.salyk.kg:30040 [13:22:41]ConnectInit lk.salyk.kg [13:22:41]written 0, free lines is 4095 [13:22:41]Connected sock=10 [13:22:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 E3 AE 07 01 DA BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 21 D1 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5D 84 02 00 35 04 06 00 02 B2 8A 19 18 77 63 31 DF 0F 1B 6E 30 EE [13:22:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 D5 23 47 00 F9 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5D 84 02 00 F4 03 04 00 AE 77 93 66 B6 04 01 00 00 D6 21 37 8F B5 7B E6 28 [13:22:42]CommunicateWithHost err = 0 [13:22:42]CheckOFDResponse [13:22:42]1017 (14) - 77093643461234 [13:22:42]1041 (16) - 0000000000874718 [13:22:42]1040 (4) - 164957 [13:22:42]1012 (4) - 14.07.2024 07:01 [13:22:42]1206 (1) - 0 [13:22:42]OFD Sender: Remove packet 164957 [13:22:42]ProducePacketName [13:22:42]name=ofd_packets/00164957 [13:22:42]NVStorageDeleteData [13:22:42]Write to MH i2c: 01 00 00 82 1E A0 [13:22:42]Write i2c OK [13:22:42]MH_I2C_Read... [13:22:42]Read from MH i2c: 01 [13:22:42]MH_I2C_Read... [13:22:42]Read from MH i2c: 01 07 00 [13:22:42]MH_I2C_Read... [13:22:42]Read from MH i2c: 01 07 00 82 1E 00 00 00 00 00 0A 0D BE [13:22:42]RasterBufferAndPrint [13:22:42]line [13:22:42]line [13:22:42]line [13:22:42]line [13:22:42]line [13:22:42]written 0, free lines is 3344 [13:22:42]MH_Cut [13:22:42]Write to MH i2c: D1 01 00 89 1E 01 79 [13:22:42]Write i2c OK [13:22:42]MH_I2C_Read... [13:22:42]Read from MH i2c: D1 [13:22:42]MH_I2C_Read... [13:22:42]Read from MH i2c: D1 01 00 [13:22:42]MH_I2C_Read... [13:22:42]Read from MH i2c: D1 01 00 89 1E 00 78 [13:22:42]Write to MH i2c: 01 00 00 8A 1E A8 [13:22:42]Write i2c OK [13:22:42]MH_I2C_Read... [13:22:42]OFD Sender: No OFD packet to send [13:22:42]*** Cut start [13:22:42]*** Partial cut [13:22:42]*** CUTSNS_PIN = 1 [13:22:43]*** CUTSNS_PIN = 0 [13:22:43]*** Brake cut motor [13:22:43]Read from MH i2c: 01 [13:22:43]MH_I2C_Read... [13:22:43]*** Stop cut motor [13:22:43]*** Cut end [13:22:43]Read from MH i2c: 01 07 00 [13:22:43]MH_I2C_Read... [13:22:43]Read from MH i2c: 01 07 00 8A 1E 00 00 00 00 00 FF 0F BD [13:22:43]process_action close_receipt done [13:22:43]requested_data is exist [13:22:43]produce_requested_data [13:22:43]requested_item fm.sn is exist - process it [13:22:43]wFMCommunicate request_size=4 [13:22:43]MH_SAM_APDU [13:22:43]CAPDU: 80 11 00 00 [13:22:43]Write to MH i2c: E2 08 00 8B 1E 80 11 00 00 00 00 00 00 23 [13:22:43]Write i2c OK [13:22:43]MH_I2C_Read... [13:22:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:43]Read from MH i2c: E2 [13:22:43]MH_I2C_Read... [13:22:43]Read from MH i2c: E2 17 00 [13:22:43]MH_I2C_Read... [13:22:43]Read from MH i2c: E2 17 00 8B 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 79 [13:22:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:22:43]wFMCommunicate OK [13:22:43]requested_item fd.num is exist - process it [13:22:43]SAM_PROTO_GetFieldsCounters [13:22:43]wFMCommunicate request_size=4 [13:22:43]MH_SAM_APDU [13:22:43]CAPDU: 80 13 00 00 [13:22:43]Write to MH i2c: E2 08 00 8C 1E 80 13 00 00 00 00 00 00 26 [13:22:43]Write i2c OK [13:22:43]MH_I2C_Read... [13:22:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:22:43]Read from MH i2c: E2 [13:22:43]MH_I2C_Read... [13:22:43]Read from MH i2c: E2 62 00 [13:22:43]MH_I2C_Read... [13:22:43]Read from MH i2c: E2 62 00 8C 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 5D 84 02 00 0E 04 04 00 BF 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 C1 [13:22:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 5D 84 02 00 0E 04 04 00 BF 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 [13:22:43]wFMCommunicate OK [13:22:43]SAM_PROTO_GetFieldsCounters done [13:22:43]requested_item shift.num is exist - process it [13:22:43]requested_item shift.opened is exist - process it [13:22:43]req_shift_opened [13:22:43]FM_GetShiftState [13:22:43]SAM_PROTO_GetShiftState [13:22:43]wFMCommunicate request_size=4 [13:22:43]MH_SAM_APDU [13:22:43]CAPDU: 80 13 01 00 [13:22:43]Write to MH i2c: E2 08 00 8D 1E 80 13 01 00 00 00 00 00 28 [13:22:43]Write i2c OK [13:22:43]MH_I2C_Read... [13:22:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:43]Read from MH i2c: E2 [13:22:43]MH_I2C_Read... [13:22:43]Read from MH i2c: E2 0E 00 [13:22:43]MH_I2C_Read... [13:22:43]Read from MH i2c: E2 0E 00 8D 1E 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 A8 [13:22:43]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [13:22:43]wFMCommunicate OK [13:22:43]SAM_PROTO_GetShiftState done [13:22:43]FM_GetShiftState done [13:22:43]req_shift_opened done [13:22:43]requested_item shift.open_date is exist - process it [13:22:43]req_shift_open_date [13:22:43]req_shift_open_date done [13:22:43]produce_requested_data done [13:22:43]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164957,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [13:22:43]process_action_free close_receipt [13:22:43]json_value_free [13:22:43]json_value_free done [13:22:43]process_json_proto returns [13:22:43]Send response to host [13:22:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164957,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [13:22:43]free response buf [13:22:43]execute_script done [13:22:43]execute_script returns [13:22:43]free content buf [13:22:43]Sock 7.Close socket [13:22:43]Sock 7.Thread stoped [13:22:47]OFD Sender: No OFD packet to send [13:22:52]OFD Sender: No OFD packet to send [13:22:57]OFD Sender: No OFD packet to send [13:23:02]OFD Sender: No OFD packet to send [13:23:07]OFD Sender: No OFD packet to send [13:23:12]OFD Sender: No OFD packet to send [13:23:17]OFD Sender: No OFD packet to send [13:23:22]OFD Sender: No OFD packet to send [13:23:27]OFD Sender: No OFD packet to send [13:23:32]OFD Sender: No OFD packet to send [13:23:37]OFD Sender: No OFD packet to send [13:23:42]OFD Sender: No OFD packet to send [13:23:43]accept exits with 9 [13:23:43]New connection [13:23:43]New thread 3067473252 created [13:23:43]Thread 3067616612 joined [13:23:43]Waiting for new connection... [13:23:43] Sock 9.Parse request [13:23:43]Sock 9.Check first char [13:23:43]Sock 9.First char is OK [13:23:43]request: POST /json_proto HTTP/1.0 [13:23:43]Method: POST [13:23:43]URL: /json_proto [13:23:43]Method is POST - this is cgi request [13:23:43]url: /json_proto [13:23:43]query_string will be loaded in cgi processing [13:23:43]execute_cgi json_proto POST (null) [13:23:43]execute_cgi path=json_proto method=POST [13:23:43]POST find Content-Length [13:23:43]Host: 172.17.56.4:8080 [13:23:43]Content-Length: 682 [13:23:43]Content-Type: application/json [13:23:43] [13:23:43]POST finish read [13:23:43]Found Content-Length = 682 [13:23:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459056", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:23:43]execute_script... [13:23: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)459056", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:23:43]POST & json_proto [13:23:43]process_json_proto [13:23:43]json parsed OK: [13:23:43]protocol is kg_v1.0 [13:23:43]action value=close_receipt [13:23:43]process_action close_receipt [13:23:43]cmd_close_receipt [13:23:43]MH_GetDate [13:23:43]Write to MH i2c: F0 00 00 8E 1E 9B [13:23:43]Write i2c OK [13:23:43]MH_I2C_Read... [13:23:43]Read from MH i2c: F0 [13:23:43]MH_I2C_Read... [13:23:43]Read from MH i2c: F0 09 00 [13:23:43]MH_I2C_Read... [13:23:43]Read from MH i2c: F0 09 00 8E 1E 00 60 D1 93 66 C9 DC B2 64 89 [13:23:43]GetLastDocTimeStamp 1720963361 [13:23:43]current date 1720963424 [13:23:43]FM_GetShiftState [13:23:43]SAM_PROTO_GetShiftState [13:23:43]wFMCommunicate request_size=4 [13:23:43]MH_SAM_APDU [13:23:43]CAPDU: 80 13 01 00 [13:23:43]Write to MH i2c: E2 08 00 8F 1E 80 13 01 00 00 00 00 00 2A [13:23:43]Write i2c OK [13:23:43]MH_I2C_Read... [13:23:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:23:43]Read from MH i2c: E2 [13:23:43]MH_I2C_Read... [13:23:43]Read from MH i2c: E2 0E 00 [13:23:43]MH_I2C_Read... [13:23:43]Read from MH i2c: E2 0E 00 8F 1E 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 AA [13:23:43]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [13:23:43]wFMCommunicate OK [13:23:43]SAM_PROTO_GetShiftState done [13:23:43]FM_GetShiftState done [13:23:43]opened in 1720917342 [13:23:43]opened+sec_in_day 1721003742 [13:23:43]quantity*price = 100016 [13:23:43]sum+1 = 100017 [13:23:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 156 14.07.2024 13:23 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164958 ФПД: 210656701139478 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T132344&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164958&fm=210656701139478&tin=02508201610067®Number=0000000000090829&sum=100000 [13:23:44]StoreToDocumentArchive [13:23:44]shift 447 fd 164958 [13:23:44]save to /storage/0447/doc_00164958 [13:23:44]save last doc name /storage/0447/doc_00164958 to /storage/kkm_last_doc_name [13:23:44]save OK [13:23:44]Clear old archive folders... [13:23:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:23:44]tlvbuf is 0073CC10 [13:23:44]SAM_PROTO_ClearQueue [13:23:44]wFMCommunicate request_size=4 [13:23:44]MH_SAM_APDU [13:23:44]CAPDU: 80 09 00 00 [13:23:44]Write to MH i2c: E2 08 00 9C 1E 80 09 00 00 00 00 00 00 2C [13:23:44]Write i2c OK [13:23:44]MH_I2C_Read... [13:23:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:23:44]Read from MH i2c: E2 [13:23:44]MH_I2C_Read... [13:23:44]Read from MH i2c: E2 03 00 [13:23:44]MH_I2C_Read... [13:23:44]Read from MH i2c: E2 03 00 9C 1E 00 90 00 2E [13:23:44]RAPDU: 90 00 [13:23:44]wFMCommunicate OK [13:23:44]SAM_PROTO_ClearQueue done [13:23:44]KKMCreateOFDPacket [13:23:44]OFDProtocolAddRootSTLVToBuf [13:23:44]FM_MakeSignedData [13:23:44]FM_MakeSignedData [13:23:44]SAM_PROTO_SignData [13:23:44]wFMCommunicate request_size=4 [13:23:44]MH_SAM_APDU [13:23:44]CAPDU: 80 0D 01 02 [13:23:44]Write to MH i2c: E2 08 00 9D 1E 80 0D 01 02 00 00 00 00 34 [13:23:44]Write i2c OK [13:23:44]MH_I2C_Read... [13:23:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:23:44]Read from MH i2c: E2 [13:23:44]MH_I2C_Read... [13:23:44]Read from MH i2c: E2 03 00 [13:23:44]MH_I2C_Read... [13:23:44]Read from MH i2c: E2 03 00 9D 1E 00 90 00 2F [13:23:44]RAPDU: 90 00 [13:23:44]wFMCommunicate OK [13:23:44]wFMCommunicate request_size=255 [13:23:44]MH_SAM_APDU [13:23:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 60 D1 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5E 84 02 00 35 04 06 00 BF [13:23:44]Write to MH i2c: E2 02 01 9E 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 60 D1 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5E 84 02 00 35 04 06 00 BF 00 00 78 [13:23:44]Write i2c OK [13:23:44]MH_I2C_Read... [13:23:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:44]Read from MH i2c: E2 [13:23:44]MH_I2C_Read... [13:23:44]Read from MH i2c: E2 03 00 [13:23:44]MH_I2C_Read... [13:23:44]Read from MH i2c: E2 03 00 9E 1E 00 90 00 30 [13:23:44]RAPDU: 90 00 [13:23:44]wFMCommunicate OK [13:23:44]wFMCommunicate request_size=10 [13:23:44]MH_SAM_APDU [13:23:44]CAPDU: 80 0D 02 02 05 97 55 D7 4A 16 [13:23:44]Write to MH i2c: E2 0D 00 9F 1E 80 0D 02 02 05 00 97 55 D7 4A 16 00 00 64 [13:23:44]Write i2c OK [13:23:44]MH_I2C_Read... [13:23:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:44]Read from MH i2c: E2 [13:23:44]MH_I2C_Read... [13:23:44]Read from MH i2c: E2 03 00 [13:23:44]MH_I2C_Read... [13:23:44]Read from MH i2c: E2 03 00 9F 1E 00 90 00 31 [13:23:44]RAPDU: 90 00 [13:23:44]wFMCommunicate OK [13:23:44]wFMCommunicate request_size=4 [13:23:44]MH_SAM_APDU [13:23:44]CAPDU: 80 0D 03 02 [13:23:44]Write to MH i2c: E2 08 00 A0 1E 80 0D 03 02 00 00 00 00 39 [13:23:44]Write i2c OK [13:23:44]MH_I2C_Read... [13:23:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:23:44]Read from MH i2c: E2 [13:23:44]MH_I2C_Read... [13:23:44]Read from MH i2c: E2 0B 00 [13:23:44]MH_I2C_Read... [13:23:44]Read from MH i2c: E2 0B 00 A0 1E 00 56 57 48 FA BF FA 81 4D 90 00 B0 [13:23:44]RAPDU: 56 57 48 FA BF FA 81 4D 90 00 [13:23:44]wFMCommunicate OK [13:23:44]SAM_PROTO_SignData done [13:23:44]FM_MakeSignedData done [13:23:44]CreateOFDProtocolMessage [13:23:44]wFMCommunicate request_size=4 [13:23:44]MH_SAM_APDU [13:23:44]CAPDU: 80 11 00 00 [13:23:44]Write to MH i2c: E2 08 00 A1 1E 80 11 00 00 00 00 00 00 39 [13:23:44]Write i2c OK [13:23:44]MH_I2C_Read... [13:23:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:44]Read from MH i2c: E2 [13:23:44]MH_I2C_Read... [13:23:44]Read from MH i2c: E2 17 00 [13:23:44]MH_I2C_Read... [13:23:44]Read from MH i2c: E2 17 00 A1 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 8F [13:23:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:23:44]wFMCommunicate OK [13:23:44]CreateOFDProtocolMessage done [13:23:44]OFDSenderStorePacket 164958 [13:23:44]StoreOFDPacket docnum=164958 [13:23:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 9E 23 07 01 80 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 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 60 D1 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5E 84 02 00 35 04 06 00 BF 97 55 D7 4A 16 56 57 48 FA BF FA 81 4D [13:23:44]CheckFolder [13:23:44]dirname=/storage/ofd_packets [13:23:44]CheckFolder done [13:23:44]ProducePacketName [13:23:44]name=ofd_packets/00164958 [13:23:44]NVStorageSaveData ofd_packets/00164958 [13:23:44]File name is /storage/ofd_packets/00164958 [13:23:44]Write 301 bytes [13:23:44]NVStorageSaveData done [13:23:44]OFDSenderStorePacket done [13:23:44]KKMCreateOFDPacket done [13:23:44]NVStorageSaveData kkm_last_timestamp [13:23:44]File name is /storage/kkm_last_timestamp [13:23:44]Write 4 bytes [13:23:44]NVStorageSaveData done [13:23:44]ExternCall_PrintAddStr [13:23:44]wPrintStart [13:23:44]Write to MH i2c: 01 00 00 A2 1E C0 [13:23:44]Write i2c OK [13:23:44]MH_I2C_Read... [13:23:44]Read from MH i2c: 01 [13:23:44]MH_I2C_Read... [13:23:44]Read from MH i2c: 01 07 00 [13:23:44]MH_I2C_Read... [13:23:44]Read from MH i2c: 01 07 00 A2 1E 00 00 00 00 00 FF 0F D5 [13:23:44]RasterBufferAndPrint [13:23:44]line Счет N : (1)459056 [13:23:44]line ИНН: 02508201610067 [13:23:44]line Контрольно-Кассовый Чек [13:23:44]line ПРОДАЖА [13:23:44]line ТРК (МРК, ГНК) : 12 [13:23:44]line Товар: 2710124130 [13:23:44]line Аи-92-К-5 [13:23:44]line 15.200 * 65.80 [13:23:44]line = 1000.16 [13:23:44]line НДС 12% НСП 1% [13:23:44]line > о реализуемом товаре [13:23:44]line ОКРУГЛЕНИЕ: -0.16 [13:23:44]line ИТОГО: 1000.00 [13:23:44]line Внесено: 1000.00 [13:23:44]line СДАЧА: 0.00 [13:23:44]line НСП 1% : 8.85 [13:23:44]line НДС 12% : 106.21 [13:23:44]line Наличными: 1000.00 [13:23:44]line Безнал.: 0.00 [13:23:44]line Место: АЗС № 72 "Партнер Нефть" [13:23:44]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:23:44]line СНО: Общий режим [13:23:44]line Чек 156 14.07.2024 13:23 [13:23:44]line Смена: 447 ФФД: 1.0 [13:23:44]line ЗНМ: 0300000160 [13:23:44]line РНМ: 0000000000090829 [13:23:44]line Версия ККМ: 001 [13:23:44]line ФМ: 0000000000874718 [13:23:44]line ФД: 164958 [13:23:44]line ФПД: 210656701139478 [13:23:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T132344&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164958&fm=210656701139478&tin=02508201610067®Number=0000000000090829&sum=100000 [13:23:45]written 0, free lines is 4095 [13:23:45]OFD Sender: Processing packet 164958 [packets to send 104, broken 103] [13:23:45]ProducePacketName [13:23:45]name=ofd_packets/00164958 [13:23:45]OFD Sender: To server: pG, [13:23:45]CommunicateWithHost lk.salyk.kg:30040 [13:23:45]ConnectInit lk.salyk.kg [13:23:45]Connected sock=10 [13:23:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 9E 23 07 01 80 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 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 60 D1 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5E 84 02 00 35 04 06 00 BF 97 55 D7 4A 16 56 57 48 FA BF FA 81 4D [13:23:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 E8 C0 47 00 3C BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5E 84 02 00 F4 03 04 00 EE 77 93 66 B6 04 01 00 00 E6 89 29 A9 18 91 63 31 [13:23:45]CommunicateWithHost err = 0 [13:23:45]CheckOFDResponse [13:23:45]1017 (14) - 77093643461234 [13:23:45]1041 (16) - 0000000000874718 [13:23:45]1040 (4) - 164958 [13:23:45]1012 (4) - 14.07.2024 07:02 [13:23:45]1206 (1) - 0 [13:23:45]OFD Sender: Remove packet 164958 [13:23:45]ProducePacketName [13:23:45]name=ofd_packets/00164958 [13:23:45]NVStorageDeleteData [13:23:45]Write to MH i2c: 01 00 00 CC 1E EA [13:23:45]Write i2c OK [13:23:45]MH_I2C_Read... [13:23:45]Read from MH i2c: 01 [13:23:45]MH_I2C_Read... [13:23:45]Read from MH i2c: 01 07 00 [13:23:45]MH_I2C_Read... [13:23:45]Read from MH i2c: 01 07 00 CC 1E 00 00 00 00 00 07 0D 05 [13:23:45]RasterBufferAndPrint [13:23:45]line [13:23:45]line [13:23:45]line [13:23:45]line [13:23:45]line [13:23:45]written 0, free lines is 3341 [13:23:45]MH_Cut [13:23:45]Write to MH i2c: D1 01 00 D3 1E 01 C3 [13:23:45]Write i2c OK [13:23:45]MH_I2C_Read... [13:23:45]Read from MH i2c: D1 [13:23:45]MH_I2C_Read... [13:23:45]Read from MH i2c: D1 01 00 [13:23:45]MH_I2C_Read... [13:23:45]Read from MH i2c: D1 01 00 D3 1E 00 C2 [13:23:45]Write to MH i2c: 01 00 00 D4 1E F2 [13:23:45]Write i2c OK [13:23:45]MH_I2C_Read... [13:23:46]OFD Sender: No OFD packet to send [13:23:46]*** Cut start [13:23:46]*** Partial cut [13:23:46]*** CUTSNS_PIN = 1 [13:23:46]*** CUTSNS_PIN = 0 [13:23:46]*** Brake cut motor [13:23:46]Read from MH i2c: 01 [13:23:47]MH_I2C_Read... [13:23:47]*** Stop cut motor [13:23:47]*** Cut end [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 D4 1E 00 00 00 00 00 FF 0F 07 [13:23:47]process_action close_receipt done [13:23:47]requested_data is exist [13:23:47]produce_requested_data [13:23:47]requested_item fm.sn is exist - process it [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 D5 1E 80 11 00 00 00 00 00 00 6D [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 D5 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C3 [13:23:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:23:47]wFMCommunicate OK [13:23:47]requested_item fd.num is exist - process it [13:23:47]SAM_PROTO_GetFieldsCounters [13:23:47]wFMCommunicate request_size=4 [13:23:47]MH_SAM_APDU [13:23:47]CAPDU: 80 13 00 00 [13:23:47]Write to MH i2c: E2 08 00 D6 1E 80 13 00 00 00 00 00 00 70 [13:23:47]Write i2c OK [13:23:47]MH_I2C_Read... [13:23:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:23:47]Read from MH i2c: E2 [13:23:47]MH_I2C_Read... [13:23:47]Read from MH i2c: E2 62 00 [13:23:47]MH_I2C_Read... [13:23:47]Read from MH i2c: E2 62 00 D6 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 5E 84 02 00 0E 04 04 00 BF 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 0F [13:23:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 5E 84 02 00 0E 04 04 00 BF 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 [13:23:47]wFMCommunicate OK [13:23:47]SAM_PROTO_GetFieldsCounters done [13:23:47]requested_item shift.num is exist - process it [13:23:47]requested_item shift.opened is exist - process it [13:23:47]req_shift_opened [13:23:47]FM_GetShiftState [13:23:47]SAM_PROTO_GetShiftState [13:23:47]wFMCommunicate request_size=4 [13:23:47]MH_SAM_APDU [13:23:47]CAPDU: 80 13 01 00 [13:23:47]Write to MH i2c: E2 08 00 D7 1E 80 13 01 00 00 00 00 00 72 [13:23:47]Write i2c OK [13:23:47]MH_I2C_Read... [13:23:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:23:47]Read from MH i2c: E2 [13:23:47]MH_I2C_Read... [13:23:47]Read from MH i2c: E2 0E 00 [13:23:47]MH_I2C_Read... [13:23:47]Read from MH i2c: E2 0E 00 D7 1E 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 F2 [13:23:47]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [13:23:47]wFMCommunicate OK [13:23:47]SAM_PROTO_GetShiftState done [13:23:47]FM_GetShiftState done [13:23:47]req_shift_opened done [13:23:47]requested_item shift.open_date is exist - process it [13:23:47]req_shift_open_date [13:23:47]req_shift_open_date done [13:23:47]produce_requested_data done [13:23:47]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164958,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [13:23:47]process_action_free close_receipt [13:23:47]json_value_free [13:23:47]json_value_free done [13:23:47]process_json_proto returns [13:23:47]Send response to host [13:23:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164958,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [13:23:47]free response buf [13:23:47]execute_script done [13:23:47]execute_script returns [13:23:47]free content buf [13:23:47]Sock 9.Close socket [13:23:47]Sock 9.Thread stoped [13:23:51]OFD Sender: No OFD packet to send [13:23:56]OFD Sender: No OFD packet to send [13:24:01]OFD Sender: No OFD packet to send [13:24:06]OFD Sender: No OFD packet to send [13:24:11]OFD Sender: No OFD packet to send [13:24:16]OFD Sender: No OFD packet to send [13:24:21]OFD Sender: No OFD packet to send [13:24:26]OFD Sender: No OFD packet to send [13:24:31]OFD Sender: No OFD packet to send [13:24:36]OFD Sender: No OFD packet to send [13:24:41]OFD Sender: No OFD packet to send [13:24:46]OFD Sender: No OFD packet to send [13:24:51]OFD Sender: No OFD packet to send [13:24:56]OFD Sender: No OFD packet to send [13:25:01]OFD Sender: No OFD packet to send [13:25:06]OFD Sender: No OFD packet to send [13:25:11]OFD Sender: No OFD packet to send [13:25:16]OFD Sender: No OFD packet to send [13:25:21]OFD Sender: No OFD packet to send [13:25:26]OFD Sender: No OFD packet to send [13:25:31]OFD Sender: No OFD packet to send [13:25:36]OFD Sender: No OFD packet to send [13:25:41]OFD Sender: No OFD packet to send [13:25:46]OFD Sender: No OFD packet to send [13:25:51]OFD Sender: No OFD packet to send [13:25:56]OFD Sender: No OFD packet to send [13:26:01]OFD Sender: No OFD packet to send [13:26:06]OFD Sender: No OFD packet to send [13:26:11]OFD Sender: No OFD packet to send [13:26:16]OFD Sender: No OFD packet to send [13:26:21]OFD Sender: No OFD packet to send [13:26:26]OFD Sender: No OFD packet to send [13:26:31]OFD Sender: No OFD packet to send [13:26:36]OFD Sender: No OFD packet to send [13:26:41]OFD Sender: No OFD packet to send [13:26:46]OFD Sender: No OFD packet to send [13:26:51]accept exits with 7 [13:26:51]New connection [13:26:51]New thread 3067616612 created [13:26:51]Thread 3067473252 joined [13:26:51]Waiting for new connection... [13:26:51] Sock 7.Parse request [13:26:51]Sock 7.Check first char [13:26:51]Sock 7.First char is OK [13:26:51]request: POST /json_proto HTTP/1.0 [13:26:51]Method: POST [13:26:51]URL: /json_proto [13:26:51]Method is POST - this is cgi request [13:26:51]url: /json_proto [13:26:51]query_string will be loaded in cgi processing [13:26:51]execute_cgi json_proto POST (null) [13:26:51]execute_cgi path=json_proto method=POST [13:26:51]POST find Content-Length [13:26:51]Host: 172.17.56.4:8080 [13:26:51]Content-Length: 679 [13:26:51]Content-Type: application/json [13:26:51] [13:26:51]POST finish read [13:26:51]Found Content-Length = 679 [13:26:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459057", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 15.000, "sum" : 1078.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1078.00, "total" : 1078.00, "payments": [ { "type": 0, "sum" : 1078.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:26:51]execute_script... [13:26:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459057", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 15.000, "sum" : 1078.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1078.00, "total" : 1078.00, "payments": [ { "type": 0, "sum" : 1078.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:26:51]POST & json_proto [13:26:51]process_json_proto [13:26:51]json parsed OK: [13:26:51]protocol is kg_v1.0 [13:26:51]action value=close_receipt [13:26:51]process_action close_receipt [13:26:51]cmd_close_receipt [13:26:51]MH_GetDate [13:26:51]Write to MH i2c: F0 00 00 D8 1E E5 [13:26:51]Write i2c OK [13:26:51]MH_I2C_Read... [13:26:51]Read from MH i2c: F0 [13:26:51]MH_I2C_Read... [13:26:51]Read from MH i2c: F0 09 00 [13:26:51]MH_I2C_Read... [13:26:51]Read from MH i2c: F0 09 00 D8 1E 00 1C D2 93 66 C9 DC B2 64 90 [13:26:51]GetLastDocTimeStamp 1720963424 [13:26:51]current date 1720963612 [13:26:51]FM_GetShiftState [13:26:51]SAM_PROTO_GetShiftState [13:26:51]wFMCommunicate request_size=4 [13:26:51]MH_SAM_APDU [13:26:51]CAPDU: 80 13 01 00 [13:26:51]Write to MH i2c: E2 08 00 D9 1E 80 13 01 00 00 00 00 00 74 [13:26:51]Write i2c OK [13:26:51]MH_I2C_Read... [13:26:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:51]Read from MH i2c: E2 [13:26:51]MH_I2C_Read... [13:26:51]Read from MH i2c: E2 0E 00 [13:26:51]MH_I2C_Read... [13:26:51]Read from MH i2c: E2 0E 00 D9 1E 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 F4 [13:26:51]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [13:26:51]wFMCommunicate OK [13:26:51]SAM_PROTO_GetShiftState done [13:26:51]FM_GetShiftState done [13:26:51]opened in 1720917342 [13:26:51]opened+sec_in_day 1721003742 [13:26:51]quantity*price = 107850 [13:26:51]sum+1 = 107851 [13:26:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 1078.00 Внесено: 1078.00 СДАЧА: 0.00 НСП 1% : 9.54 НДС 12% : 114.53 Наличными: 1078.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 157 14.07.2024 13:26 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164959 ФПД: 234611811348365 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T132652&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164959&fm=234611811348365&tin=02508201610067®Number=0000000000090829&sum=107800 [13:26:52]StoreToDocumentArchive [13:26:52]shift 447 fd 164959 [13:26:52]save to /storage/0447/doc_00164959 [13:26:52]save last doc name /storage/0447/doc_00164959 to /storage/kkm_last_doc_name [13:26:52]save OK [13:26:52]Clear old archive folders... [13:26:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:26:52]tlvbuf is B6F7C930 [13:26:52]SAM_PROTO_ClearQueue [13:26:52]wFMCommunicate request_size=4 [13:26:52]MH_SAM_APDU [13:26:52]CAPDU: 80 09 00 00 [13:26:52]Write to MH i2c: E2 08 00 E6 1E 80 09 00 00 00 00 00 00 76 [13:26:52]Write i2c OK [13:26:52]MH_I2C_Read... [13:26:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:26:52]Read from MH i2c: E2 [13:26:52]MH_I2C_Read... [13:26:52]Read from MH i2c: E2 03 00 [13:26:52]MH_I2C_Read... [13:26:52]Read from MH i2c: E2 03 00 E6 1E 00 90 00 78 [13:26:52]RAPDU: 90 00 [13:26:52]wFMCommunicate OK [13:26:52]SAM_PROTO_ClearQueue done [13:26:52]KKMCreateOFDPacket [13:26:52]OFDProtocolAddRootSTLVToBuf [13:26:52]FM_MakeSignedData [13:26:52]FM_MakeSignedData [13:26:52]SAM_PROTO_SignData [13:26:52]wFMCommunicate request_size=4 [13:26:52]MH_SAM_APDU [13:26:52]CAPDU: 80 0D 01 02 [13:26:52]Write to MH i2c: E2 08 00 E7 1E 80 0D 01 02 00 00 00 00 7E [13:26:52]Write i2c OK [13:26:52]MH_I2C_Read... [13:26:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:26:52]Read from MH i2c: E2 [13:26:52]MH_I2C_Read... [13:26:52]Read from MH i2c: E2 03 00 [13:26:52]MH_I2C_Read... [13:26:52]Read from MH i2c: E2 03 00 E7 1E 00 90 00 79 [13:26:52]RAPDU: 90 00 [13:26:52]wFMCommunicate OK [13:26:52]wFMCommunicate request_size=255 [13:26:52]MH_SAM_APDU [13:26:52]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 4A A5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 A5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 2C 00 00 00 00 07 04 06 00 18 A5 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 1C D2 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5F 84 02 00 35 04 06 00 D5 60 D1 AC [13:26:52]Write to MH i2c: E2 02 01 E8 1E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 4A A5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 A5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 2C 00 00 00 00 07 04 06 00 18 A5 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 1C D2 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5F 84 02 00 35 04 06 00 D5 60 D1 AC 00 00 D2 [13:26:52]Write i2c OK [13:26:52]MH_I2C_Read... [13:26:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:52]Read from MH i2c: E2 [13:26:52]MH_I2C_Read... [13:26:52]Read from MH i2c: E2 03 00 [13:26:52]MH_I2C_Read... [13:26:52]Read from MH i2c: E2 03 00 E8 1E 00 90 00 7A [13:26:52]RAPDU: 90 00 [13:26:52]wFMCommunicate OK [13:26:52]wFMCommunicate request_size=7 [13:26:52]MH_SAM_APDU [13:26:52]CAPDU: 80 0D 02 02 02 EF 8D [13:26:52]Write to MH i2c: E2 0A 00 E9 1E 80 0D 02 02 02 00 EF 8D 00 00 01 [13:26:52]Write i2c OK [13:26:52]MH_I2C_Read... [13:26:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:52]Read from MH i2c: E2 [13:26:52]MH_I2C_Read... [13:26:52]Read from MH i2c: E2 03 00 [13:26:52]MH_I2C_Read... [13:26:52]Read from MH i2c: E2 03 00 E9 1E 00 90 00 7B [13:26:52]RAPDU: 90 00 [13:26:52]wFMCommunicate OK [13:26:52]wFMCommunicate request_size=4 [13:26:52]MH_SAM_APDU [13:26:52]CAPDU: 80 0D 03 02 [13:26:52]Write to MH i2c: E2 08 00 EA 1E 80 0D 03 02 00 00 00 00 83 [13:26:52]Write i2c OK [13:26:52]MH_I2C_Read... [13:26:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:26:52]Read from MH i2c: E2 [13:26:52]MH_I2C_Read... [13:26:52]Read from MH i2c: E2 0B 00 [13:26:52]MH_I2C_Read... [13:26:52]Read from MH i2c: E2 0B 00 EA 1E 00 09 53 AD F9 39 AA 80 3C 90 00 25 [13:26:52]RAPDU: 09 53 AD F9 39 AA 80 3C 90 00 [13:26:52]wFMCommunicate OK [13:26:52]SAM_PROTO_SignData done [13:26:52]FM_MakeSignedData done [13:26:52]CreateOFDProtocolMessage [13:26:52]wFMCommunicate request_size=4 [13:26:52]MH_SAM_APDU [13:26:52]CAPDU: 80 11 00 00 [13:26:52]Write to MH i2c: E2 08 00 EB 1E 80 11 00 00 00 00 00 00 83 [13:26:52]Write i2c OK [13:26:52]MH_I2C_Read... [13:26:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:52]Read from MH i2c: E2 [13:26:52]MH_I2C_Read... [13:26:52]Read from MH i2c: E2 17 00 [13:26:52]MH_I2C_Read... [13:26:52]Read from MH i2c: E2 17 00 EB 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D9 [13:26:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:26:52]wFMCommunicate OK [13:26:52]CreateOFDProtocolMessage done [13:26:52]OFDSenderStorePacket 164959 [13:26:52]StoreOFDPacket docnum=164959 [13:26:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 CA CF 04 01 22 B7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 4A A5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 A5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 2C 00 00 00 00 07 04 06 00 18 A5 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 1C D2 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5F 84 02 00 35 04 06 00 D5 60 D1 AC EF 8D 09 53 AD F9 39 AA 80 3C [13:26:52]CheckFolder [13:26:52]dirname=/storage/ofd_packets [13:26:52]CheckFolder done [13:26:52]ProducePacketName [13:26:52]name=ofd_packets/00164959 [13:26:52]NVStorageSaveData ofd_packets/00164959 [13:26:52]File name is /storage/ofd_packets/00164959 [13:26:52]Write 298 bytes [13:26:52]NVStorageSaveData done [13:26:52]OFDSenderStorePacket done [13:26:52]KKMCreateOFDPacket done [13:26:52]NVStorageSaveData kkm_last_timestamp [13:26:52]File name is /storage/kkm_last_timestamp [13:26:52]Write 4 bytes [13:26:52]NVStorageSaveData done [13:26:52]ExternCall_PrintAddStr [13:26:52]wPrintStart [13:26:52]Write to MH i2c: 01 00 00 EC 1E 0A [13:26:52]Write i2c OK [13:26:52]MH_I2C_Read... [13:26:52]Read from MH i2c: 01 [13:26:52]MH_I2C_Read... [13:26:52]Read from MH i2c: 01 07 00 [13:26:52]MH_I2C_Read... [13:26:52]Read from MH i2c: 01 07 00 EC 1E 00 00 00 00 00 FF 0F 1F [13:26:52]RasterBufferAndPrint [13:26:52]line Счет N : (1)459057 [13:26:52]line ИНН: 02508201610067 [13:26:52]line Контрольно-Кассовый Чек [13:26:52]line ПРОДАЖА [13:26:52]line ТРК (МРК, ГНК) : 11 [13:26:52]line Товар: 2710194210 [13:26:52]line ДТ-К-5 [13:26:52]line 15.000 * 71.90 [13:26:52]line = 1078.50 [13:26:52]line НДС 12% НСП 1% [13:26:52]line > о реализуемом товаре [13:26:52]line ОКРУГЛЕНИЕ: -0.50 [13:26:52]line ИТОГО: 1078.00 [13:26:52]line Внесено: 1078.00 [13:26:52]line СДАЧА: 0.00 [13:26:52]line НСП 1% : 9.54 [13:26:52]line НДС 12% : 114.53 [13:26:52]line Наличными: 1078.00 [13:26:52]line Безнал.: 0.00 [13:26:52]line Место: АЗС № 72 "Партнер Нефть" [13:26:52]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:26:52]line СНО: Общий режим [13:26:52]line Чек 157 14.07.2024 13:26 [13:26:52]line Смена: 447 ФФД: 1.0 [13:26:52]line ЗНМ: 0300000160 [13:26:52]line РНМ: 0000000000090829 [13:26:52]line Версия ККМ: 001 [13:26:52]line ФМ: 0000000000874718 [13:26:52]line ФД: 164959 [13:26:52]line ФПД: 234611811348365 [13:26:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T132652&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164959&fm=234611811348365&tin=02508201610067®Number=0000000000090829&sum=107800 [13:26:53]OFD Sender: Processing packet 164959 [packets to send 104, broken 103] [13:26:53]ProducePacketName [13:26:53]name=ofd_packets/00164959 [13:26:53]OFD Sender: To server: pG, [13:26:53]CommunicateWithHost lk.salyk.kg:30040 [13:26:53]ConnectInit lk.salyk.kg [13:26:53]written 0, free lines is 4095 [13:26:53]Connected sock=9 [13:26:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 CA CF 04 01 22 B7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 4A A5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 A5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 2C 00 00 00 00 07 04 06 00 18 A5 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 1C D2 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5F 84 02 00 35 04 06 00 D5 60 D1 AC EF 8D 09 53 AD F9 39 AA 80 3C [13:26:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 63 B7 47 00 8D 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5F 84 02 00 F4 03 04 00 AA 78 93 66 B6 04 01 00 00 AB 11 10 16 95 EC 96 00 [13:26:53]CommunicateWithHost err = 0 [13:26:53]CheckOFDResponse [13:26:53]1017 (14) - 77093643461234 [13:26:53]1041 (16) - 0000000000874718 [13:26:53]1040 (4) - 164959 [13:26:53]1012 (4) - 14.07.2024 07:05 [13:26:53]1206 (1) - 0 [13:26:53]OFD Sender: Remove packet 164959 [13:26:53]ProducePacketName [13:26:53]name=ofd_packets/00164959 [13:26:53]NVStorageDeleteData [13:26:53]Write to MH i2c: 01 00 00 16 1F 35 [13:26:53]Write i2c OK [13:26:53]MH_I2C_Read... [13:26:53]Read from MH i2c: 01 [13:26:53]MH_I2C_Read... [13:26:53]Read from MH i2c: 01 07 00 [13:26:53]MH_I2C_Read... [13:26:53]Read from MH i2c: 01 07 00 16 1F 00 00 00 00 00 0A 0D 53 [13:26:53]RasterBufferAndPrint [13:26:53]line [13:26:53]line [13:26:53]line [13:26:53]line [13:26:53]line [13:26:53]written 0, free lines is 3344 [13:26:53]MH_Cut [13:26:53]Write to MH i2c: D1 01 00 1D 1F 01 0E [13:26:53]Write i2c OK [13:26:53]MH_I2C_Read... [13:26:53]Read from MH i2c: D1 [13:26:53]MH_I2C_Read... [13:26:53]Read from MH i2c: D1 01 00 [13:26:53]MH_I2C_Read... [13:26:53]Read from MH i2c: D1 01 00 1D 1F 00 0D [13:26:53]Write to MH i2c: 01 00 00 1E 1F 3D [13:26:53]Write i2c OK [13:26:53]MH_I2C_Read... [13:26:54]OFD Sender: No OFD packet to send [13:26:54]*** Cut start [13:26:54]*** Partial cut [13:26:54]*** CUTSNS_PIN = 1 [13:26:54]*** CUTSNS_PIN = 0 [13:26:54]*** Brake cut motor [13:26:54]Read from MH i2c: 01 [13:26:54]MH_I2C_Read... [13:26:54]*** Stop cut motor [13:26:54]*** Cut end [13:26:54]Read from MH i2c: 01 07 00 [13:26:54]MH_I2C_Read... [13:26:54]Read from MH i2c: 01 07 00 1E 1F 00 00 00 00 00 FF 0F 52 [13:26:54]process_action close_receipt done [13:26:54]requested_data is exist [13:26:54]produce_requested_data [13:26:54]requested_item fm.sn is exist - process it [13:26:54]wFMCommunicate request_size=4 [13:26:54]MH_SAM_APDU [13:26:54]CAPDU: 80 11 00 00 [13:26:54]Write to MH i2c: E2 08 00 1F 1F 80 11 00 00 00 00 00 00 B8 [13:26:54]Write i2c OK [13:26:54]MH_I2C_Read... [13:26:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:54]Read from MH i2c: E2 [13:26:54]MH_I2C_Read... [13:26:54]Read from MH i2c: E2 17 00 [13:26:54]MH_I2C_Read... [13:26:54]Read from MH i2c: E2 17 00 1F 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 0E [13:26:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:26:54]wFMCommunicate OK [13:26:54]requested_item fd.num is exist - process it [13:26:54]SAM_PROTO_GetFieldsCounters [13:26:54]wFMCommunicate request_size=4 [13:26:54]MH_SAM_APDU [13:26:54]CAPDU: 80 13 00 00 [13:26:54]Write to MH i2c: E2 08 00 20 1F 80 13 00 00 00 00 00 00 BB [13:26:54]Write i2c OK [13:26:54]MH_I2C_Read... [13:26:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:26:55]Read from MH i2c: E2 [13:26:55]MH_I2C_Read... [13:26:55]Read from MH i2c: E2 62 00 [13:26:55]MH_I2C_Read... [13:26:55]Read from MH i2c: E2 62 00 20 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 5F 84 02 00 0E 04 04 00 BF 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 5E [13:26:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 5F 84 02 00 0E 04 04 00 BF 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 [13:26:55]wFMCommunicate OK [13:26:55]SAM_PROTO_GetFieldsCounters done [13:26:55]requested_item shift.num is exist - process it [13:26:55]requested_item shift.opened is exist - process it [13:26:55]req_shift_opened [13:26:55]FM_GetShiftState [13:26:55]SAM_PROTO_GetShiftState [13:26:55]wFMCommunicate request_size=4 [13:26:55]MH_SAM_APDU [13:26:55]CAPDU: 80 13 01 00 [13:26:55]Write to MH i2c: E2 08 00 21 1F 80 13 01 00 00 00 00 00 BD [13:26:55]Write i2c OK [13:26:55]MH_I2C_Read... [13:26:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:55]Read from MH i2c: E2 [13:26:55]MH_I2C_Read... [13:26:55]Read from MH i2c: E2 0E 00 [13:26:55]MH_I2C_Read... [13:26:55]Read from MH i2c: E2 0E 00 21 1F 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 3D [13:26:55]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [13:26:55]wFMCommunicate OK [13:26:55]SAM_PROTO_GetShiftState done [13:26:55]FM_GetShiftState done [13:26:55]req_shift_opened done [13:26:55]requested_item shift.open_date is exist - process it [13:26:55]req_shift_open_date [13:26:55]req_shift_open_date done [13:26:55]produce_requested_data done [13:26:55]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164959,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [13:26:55]process_action_free close_receipt [13:26:55]json_value_free [13:26:55]json_value_free done [13:26:55]process_json_proto returns [13:26:55]Send response to host [13:26:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164959,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [13:26:55]free response buf [13:26:55]execute_script done [13:26:55]execute_script returns [13:26:55]free content buf [13:26:55]Sock 7.Close socket [13:26:55]Sock 7.Thread stoped [13:26:59]OFD Sender: No OFD packet to send [13:27:04]OFD Sender: No OFD packet to send [13:27:09]OFD Sender: No OFD packet to send [13:27:14]OFD Sender: No OFD packet to send [13:27:19]OFD Sender: No OFD packet to send [13:27:24]OFD Sender: No OFD packet to send [13:27:29]OFD Sender: No OFD packet to send [13:27:34]OFD Sender: No OFD packet to send [13:27:39]OFD Sender: No OFD packet to send [13:27:44]OFD Sender: No OFD packet to send [13:27:49]OFD Sender: No OFD packet to send [13:27:54]OFD Sender: No OFD packet to send [13:27:59]OFD Sender: No OFD packet to send [13:28:04]OFD Sender: No OFD packet to send [13:28:09]OFD Sender: No OFD packet to send [13:28:14]OFD Sender: No OFD packet to send [13:28:19]OFD Sender: No OFD packet to send [13:28:24]OFD Sender: No OFD packet to send [13:28:29]OFD Sender: No OFD packet to send [13:28:34]OFD Sender: No OFD packet to send [13:28:35]accept exits with 10 [13:28:35]New connection [13:28:35]New thread 3067473252 created [13:28:35]Thread 3067616612 joined [13:28:35]Waiting for new connection... [13:28:35] Sock 10.Parse request [13:28:35]Sock 10.Check first char [13:28:35]Sock 10.First char is OK [13:28:35]request: POST /json_proto HTTP/1.0 [13:28:35]Method: POST [13:28:35]URL: /json_proto [13:28:35]Method is POST - this is cgi request [13:28:35]url: /json_proto [13:28:35]query_string will be loaded in cgi processing [13:28:35]execute_cgi json_proto POST (null) [13:28:35]execute_cgi path=json_proto method=POST [13:28:35]POST find Content-Length [13:28:35]Host: 172.17.56.4:8080 [13:28:35]Content-Length: 677 [13:28:35]Content-Type: application/json [13:28:35] [13:28:35]POST finish read [13:28:35]Found Content-Length = 677 [13:28:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459058", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 2.000, "sum" : 131.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 131.00, "total" : 131.00, "payments": [ { "type": 0, "sum" : 131.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:28:35]execute_script... [13: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)459058", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 2.000, "sum" : 131.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 131.00, "total" : 131.00, "payments": [ { "type": 0, "sum" : 131.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:28:35]POST & json_proto [13:28:35]process_json_proto [13:28:35]json parsed OK: [13:28:35]protocol is kg_v1.0 [13:28:35]action value=close_receipt [13:28:35]process_action close_receipt [13:28:35]cmd_close_receipt [13:28:35]MH_GetDate [13:28:35]Write to MH i2c: F0 00 00 22 1F 30 [13:28:35]Write i2c OK [13:28:35]MH_I2C_Read... [13:28:35]Read from MH i2c: F0 [13:28:35]MH_I2C_Read... [13:28:35]Read from MH i2c: F0 09 00 [13:28:35]MH_I2C_Read... [13:28:35]Read from MH i2c: F0 09 00 22 1F 00 85 D2 93 66 C9 DC B2 64 44 [13:28:35]GetLastDocTimeStamp 1720963612 [13:28:35]current date 1720963717 [13:28:35]FM_GetShiftState [13:28:35]SAM_PROTO_GetShiftState [13:28:35]wFMCommunicate request_size=4 [13:28:35]MH_SAM_APDU [13:28:35]CAPDU: 80 13 01 00 [13:28:35]Write to MH i2c: E2 08 00 23 1F 80 13 01 00 00 00 00 00 BF [13:28:35]Write i2c OK [13:28:35]MH_I2C_Read... [13:28:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:28:35]Read from MH i2c: E2 [13:28:35]MH_I2C_Read... [13:28:35]Read from MH i2c: E2 0E 00 [13:28:35]MH_I2C_Read... [13:28:35]Read from MH i2c: E2 0E 00 23 1F 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 3F [13:28:35]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [13:28:35]wFMCommunicate OK [13:28:35]SAM_PROTO_GetShiftState done [13:28:35]FM_GetShiftState done [13:28:35]opened in 1720917342 [13:28:35]opened+sec_in_day 1721003742 [13:28:35]quantity*price = 13160 [13:28:35]sum+1 = 13161 [13:28:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 131.00 Внесено: 131.00 СДАЧА: 0.00 НСП 1% : 1.16 НДС 12% : 13.97 Наличными: 131.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 158 14.07.2024 13:28 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164960 ФПД: 242913657649382 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T132837&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164960&fm=242913657649382&tin=02508201610067®Number=0000000000090829&sum=13100 [13:28:36]StoreToDocumentArchive [13:28:36]shift 447 fd 164960 [13:28:36]save to /storage/0447/doc_00164960 [13:28:36]save last doc name /storage/0447/doc_00164960 to /storage/kkm_last_doc_name [13:28:36]save OK [13:28:36]Clear old archive folders... [13:28:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:28:36]tlvbuf is 0074EE90 [13:28:36]SAM_PROTO_ClearQueue [13:28:36]wFMCommunicate request_size=4 [13:28:36]MH_SAM_APDU [13:28:36]CAPDU: 80 09 00 00 [13:28:36]Write to MH i2c: E2 08 00 30 1F 80 09 00 00 00 00 00 00 C1 [13:28:36]Write i2c OK [13:28:36]MH_I2C_Read... [13:28:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:28:36]Read from MH i2c: E2 [13:28:36]MH_I2C_Read... [13:28:36]Read from MH i2c: E2 03 00 [13:28:36]MH_I2C_Read... [13:28:36]Read from MH i2c: E2 03 00 30 1F 00 90 00 C3 [13:28:36]RAPDU: 90 00 [13:28:36]wFMCommunicate OK [13:28:36]SAM_PROTO_ClearQueue done [13:28:36]KKMCreateOFDPacket [13:28:36]OFDProtocolAddRootSTLVToBuf [13:28:36]FM_MakeSignedData [13:28:36]FM_MakeSignedData [13:28:36]SAM_PROTO_SignData [13:28:36]wFMCommunicate request_size=4 [13:28:36]MH_SAM_APDU [13:28:36]CAPDU: 80 0D 01 02 [13:28:36]Write to MH i2c: E2 08 00 31 1F 80 0D 01 02 00 00 00 00 C9 [13:28:36]Write i2c OK [13:28:36]MH_I2C_Read... [13:28:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:28:37]Read from MH i2c: E2 [13:28:37]MH_I2C_Read... [13:28:37]Read from MH i2c: E2 03 00 [13:28:37]MH_I2C_Read... [13:28:37]Read from MH i2c: E2 03 00 31 1F 00 90 00 C4 [13:28:37]RAPDU: 90 00 [13:28:37]wFMCommunicate OK [13:28:37]wFMCommunicate request_size=255 [13:28:37]MH_SAM_APDU [13:28:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 68 33 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 05 00 00 00 00 07 04 06 00 2C 33 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 85 D2 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 60 84 02 00 35 04 06 00 DC [13:28:37]Write to MH i2c: E2 02 01 32 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 68 33 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 05 00 00 00 00 07 04 06 00 2C 33 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 85 D2 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 60 84 02 00 35 04 06 00 DC 00 00 34 [13:28:37]Write i2c OK [13:28:37]MH_I2C_Read... [13:28:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:28:37]Read from MH i2c: E2 [13:28:37]MH_I2C_Read... [13:28:37]Read from MH i2c: E2 03 00 [13:28:37]MH_I2C_Read... [13:28:37]Read from MH i2c: E2 03 00 32 1F 00 90 00 C5 [13:28:37]RAPDU: 90 00 [13:28:37]wFMCommunicate OK [13:28:37]wFMCommunicate request_size=10 [13:28:37]MH_SAM_APDU [13:28:37]CAPDU: 80 0D 02 02 05 ED BE 46 78 E6 [13:28:37]Write to MH i2c: E2 0D 00 33 1F 80 0D 02 02 05 00 ED BE 46 78 E6 00 00 25 [13:28:37]Write i2c OK [13:28:37]MH_I2C_Read... [13:28:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:28:37]Read from MH i2c: E2 [13:28:37]MH_I2C_Read... [13:28:37]Read from MH i2c: E2 03 00 [13:28:37]MH_I2C_Read... [13:28:37]Read from MH i2c: E2 03 00 33 1F 00 90 00 C6 [13:28:37]RAPDU: 90 00 [13:28:37]wFMCommunicate OK [13:28:37]wFMCommunicate request_size=4 [13:28:37]MH_SAM_APDU [13:28:37]CAPDU: 80 0D 03 02 [13:28:37]Write to MH i2c: E2 08 00 34 1F 80 0D 03 02 00 00 00 00 CE [13:28:37]Write i2c OK [13:28:37]MH_I2C_Read... [13:28:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:28:37]Read from MH i2c: E2 [13:28:37]MH_I2C_Read... [13:28:37]Read from MH i2c: E2 0B 00 [13:28:37]MH_I2C_Read... [13:28:37]Read from MH i2c: E2 0B 00 34 1F 00 E3 C1 D3 CF 8B F3 F6 EC 90 00 75 [13:28:37]RAPDU: E3 C1 D3 CF 8B F3 F6 EC 90 00 [13:28:37]wFMCommunicate OK [13:28:37]SAM_PROTO_SignData done [13:28:37]FM_MakeSignedData done [13:28:37]CreateOFDProtocolMessage [13:28:37]wFMCommunicate request_size=4 [13:28:37]MH_SAM_APDU [13:28:37]CAPDU: 80 11 00 00 [13:28:37]Write to MH i2c: E2 08 00 35 1F 80 11 00 00 00 00 00 00 CE [13:28:37]Write i2c OK [13:28:37]MH_I2C_Read... [13:28:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:28:37]Read from MH i2c: E2 [13:28:37]MH_I2C_Read... [13:28:37]Read from MH i2c: E2 17 00 [13:28:37]MH_I2C_Read... [13:28:37]Read from MH i2c: E2 17 00 35 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 24 [13:28:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:28:37]wFMCommunicate OK [13:28:37]CreateOFDProtocolMessage done [13:28:37]OFDSenderStorePacket 164960 [13:28:37]StoreOFDPacket docnum=164960 [13:28:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 22 78 07 01 E2 E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 68 33 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 05 00 00 00 00 07 04 06 00 2C 33 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 85 D2 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 60 84 02 00 35 04 06 00 DC ED BE 46 78 E6 E3 C1 D3 CF 8B F3 F6 EC [13:28:37]CheckFolder [13:28:37]dirname=/storage/ofd_packets [13:28:37]CheckFolder done [13:28:37]ProducePacketName [13:28:37]name=ofd_packets/00164960 [13:28:37]NVStorageSaveData ofd_packets/00164960 [13:28:37]File name is /storage/ofd_packets/00164960 [13:28:37]Write 301 bytes [13:28:37]NVStorageSaveData done [13:28:37]OFDSenderStorePacket done [13:28:37]KKMCreateOFDPacket done [13:28:37]NVStorageSaveData kkm_last_timestamp [13:28:37]File name is /storage/kkm_last_timestamp [13:28:37]Write 4 bytes [13:28:37]NVStorageSaveData done [13:28:37]ExternCall_PrintAddStr [13:28:37]wPrintStart [13:28:37]Write to MH i2c: 01 00 00 36 1F 55 [13:28:37]Write i2c OK [13:28:37]MH_I2C_Read... [13:28:37]Read from MH i2c: 01 [13:28:37]MH_I2C_Read... [13:28:37]Read from MH i2c: 01 07 00 [13:28:37]MH_I2C_Read... [13:28:37]Read from MH i2c: 01 07 00 36 1F 00 00 00 00 00 FF 0F 6A [13:28:37]RasterBufferAndPrint [13:28:37]line Счет N : (1)459058 [13:28:37]line ИНН: 02508201610067 [13:28:37]line Контрольно-Кассовый Чек [13:28:37]line ПРОДАЖА [13:28:37]line ТРК (МРК, ГНК) : 12 [13:28:37]line Товар: 2710124130 [13:28:37]line Аи-92-К-5 [13:28:37]line 2.000 * 65.80 [13:28:37]line = 131.60 [13:28:37]line НДС 12% НСП 1% [13:28:37]line > о реализуемом товаре [13:28:37]line ОКРУГЛЕНИЕ: -0.60 [13:28:37]line ИТОГО: 131.00 [13:28:37]line Внесено: 131.00 [13:28:37]line СДАЧА: 0.00 [13:28:37]line НСП 1% : 1.16 [13:28:37]line НДС 12% : 13.97 [13:28:37]line Наличными: 131.00 [13:28:37]line Безнал.: 0.00 [13:28:37]line Место: АЗС № 72 "Партнер Нефть" [13:28:37]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:28:37]line СНО: Общий режим [13:28:37]line Чек 158 14.07.2024 13:28 [13:28:37]line Смена: 447 ФФД: 1.0 [13:28:37]line ЗНМ: 0300000160 [13:28:37]line РНМ: 0000000000090829 [13:28:37]line Версия ККМ: 001 [13:28:37]line ФМ: 0000000000874718 [13:28:37]line ФД: 164960 [13:28:37]line ФПД: 242913657649382 [13:28:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T132837&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164960&fm=242913657649382&tin=02508201610067®Number=0000000000090829&sum=13100 [13:28:37]OFD Sender: Processing packet 164960 [packets to send 104, broken 103] [13:28:37]ProducePacketName [13:28:37]name=ofd_packets/00164960 [13:28:37]OFD Sender: To server: pG, [13:28:37]CommunicateWithHost lk.salyk.kg:30040 [13:28:37]ConnectInit lk.salyk.kg [13:28:37]written 0, free lines is 4095 [13:28:37]Connected sock=9 [13:28:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 22 78 07 01 E2 E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 68 33 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 05 00 00 00 00 07 04 06 00 2C 33 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 85 D2 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 60 84 02 00 35 04 06 00 DC ED BE 46 78 E6 E3 C1 D3 CF 8B F3 F6 EC [13:28:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 AE 61 47 00 1D 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 38 37 34 37 31 38 10 04 04 00 60 84 02 00 F4 03 04 00 12 79 93 66 B6 04 01 00 00 28 36 25 7E 67 48 E6 F9 [13:28:38]CommunicateWithHost err = 0 [13:28:38]CheckOFDResponse [13:28:38]1017 (14) - 77093643461234 [13:28:38]1041 (16) - 0000000000874718 [13:28:38]1040 (4) - 164960 [13:28:38]1012 (4) - 14.07.2024 07:06 [13:28:38]1206 (1) - 0 [13:28:38]OFD Sender: Remove packet 164960 [13:28:38]ProducePacketName [13:28:38]name=ofd_packets/00164960 [13:28:38]NVStorageDeleteData [13:28:38]Write to MH i2c: 01 00 00 60 1F 7F [13:28:38]Write i2c OK [13:28:38]MH_I2C_Read... [13:28:38]Read from MH i2c: 01 [13:28:38]MH_I2C_Read... [13:28:38]Read from MH i2c: 01 07 00 [13:28:38]MH_I2C_Read... [13:28:38]Read from MH i2c: 01 07 00 60 1F 00 00 00 00 00 F5 0C 87 [13:28:38]RasterBufferAndPrint [13:28:38]line [13:28:38]line [13:28:38]line [13:28:38]line [13:28:38]line [13:28:38]written 0, free lines is 3324 [13:28:38]MH_Cut [13:28:38]Write to MH i2c: D1 01 00 67 1F 01 58 [13:28:38]Write i2c OK [13:28:38]MH_I2C_Read... [13:28:38]Read from MH i2c: D1 [13:28:38]MH_I2C_Read... [13:28:38]Read from MH i2c: D1 01 00 [13:28:38]MH_I2C_Read... [13:28:38]Read from MH i2c: D1 01 00 67 1F 00 57 [13:28:38]Write to MH i2c: 01 00 00 68 1F 87 [13:28:38]Write i2c OK [13:28:38]MH_I2C_Read... [13:28:38]OFD Sender: No OFD packet to send [13:28:38]*** Cut start [13:28:38]*** Partial cut [13:28:38]*** CUTSNS_PIN = 1 [13:28:38]*** CUTSNS_PIN = 0 [13:28:39]*** Brake cut motor [13:28:39]Read from MH i2c: 01 [13:28:39]MH_I2C_Read... [13:28:39]*** Stop cut motor [13:28:39]*** Cut end [13:28:39]Read from MH i2c: 01 07 00 [13:28:39]MH_I2C_Read... [13:28:39]Read from MH i2c: 01 07 00 68 1F 00 00 00 00 00 FF 0F 9C [13:28:39]process_action close_receipt done [13:28:39]requested_data is exist [13:28:39]produce_requested_data [13:28:39]requested_item fm.sn is exist - process it [13:28:39]wFMCommunicate request_size=4 [13:28:39]MH_SAM_APDU [13:28:39]CAPDU: 80 11 00 00 [13:28:39]Write to MH i2c: E2 08 00 69 1F 80 11 00 00 00 00 00 00 02 [13:28:39]Write i2c OK [13:28:39]MH_I2C_Read... [13:28:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:28:39]Read from MH i2c: E2 [13:28:39]MH_I2C_Read... [13:28:39]Read from MH i2c: E2 17 00 [13:28:39]MH_I2C_Read... [13:28:39]Read from MH i2c: E2 17 00 69 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 58 [13:28:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:28:39]wFMCommunicate OK [13:28:39]requested_item fd.num is exist - process it [13:28:39]SAM_PROTO_GetFieldsCounters [13:28:39]wFMCommunicate request_size=4 [13:28:39]MH_SAM_APDU [13:28:39]CAPDU: 80 13 00 00 [13:28:39]Write to MH i2c: E2 08 00 6A 1F 80 13 00 00 00 00 00 00 05 [13:28:39]Write i2c OK [13:28:39]MH_I2C_Read... [13:28:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:28:39]Read from MH i2c: E2 [13:28:39]MH_I2C_Read... [13:28:39]Read from MH i2c: E2 62 00 [13:28:39]MH_I2C_Read... [13:28:39]Read from MH i2c: E2 62 00 6A 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 60 84 02 00 0E 04 04 00 BF 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 AC [13:28:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 60 84 02 00 0E 04 04 00 BF 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 [13:28:39]wFMCommunicate OK [13:28:39]SAM_PROTO_GetFieldsCounters done [13:28:39]requested_item shift.num is exist - process it [13:28:39]requested_item shift.opened is exist - process it [13:28:39]req_shift_opened [13:28:39]FM_GetShiftState [13:28:39]SAM_PROTO_GetShiftState [13:28:39]wFMCommunicate request_size=4 [13:28:39]MH_SAM_APDU [13:28:39]CAPDU: 80 13 01 00 [13:28:39]Write to MH i2c: E2 08 00 6B 1F 80 13 01 00 00 00 00 00 07 [13:28:39]Write i2c OK [13:28:39]MH_I2C_Read... [13:28:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:28:39]Read from MH i2c: E2 [13:28:39]MH_I2C_Read... [13:28:39]Read from MH i2c: E2 0E 00 [13:28:39]MH_I2C_Read... [13:28:39]Read from MH i2c: E2 0E 00 6B 1F 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 87 [13:28:39]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [13:28:39]wFMCommunicate OK [13:28:39]SAM_PROTO_GetShiftState done [13:28:39]FM_GetShiftState done [13:28:39]req_shift_opened done [13:28:39]requested_item shift.open_date is exist - process it [13:28:39]req_shift_open_date [13:28:39]req_shift_open_date done [13:28:39]produce_requested_data done [13:28:39]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164960,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [13:28:39]process_action_free close_receipt [13:28:39]json_value_free [13:28:39]json_value_free done [13:28:39]process_json_proto returns [13:28:39]Send response to host [13:28:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164960,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [13:28:39]free response buf [13:28:39]execute_script done [13:28:39]execute_script returns [13:28:39]free content buf [13:28:39]Sock 10.Close socket [13:28:39]Sock 10.Thread stoped [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:48]OFD Sender: No OFD packet to send [13:30:53]OFD Sender: No OFD packet to send [13:30:58]OFD Sender: No OFD packet to send [13:31:03]OFD Sender: No OFD packet to send [13:31:08]OFD Sender: No OFD packet to send [13:31:13]OFD Sender: No OFD packet to send [13:31:16]accept exits with 7 [13:31:16]New connection [13:31:16]New thread 3067616612 created [13:31:16]Thread 3067473252 joined [13:31:16]Waiting for new connection... [13:31:16] Sock 7.Parse request [13:31:16]Sock 7.Check first char [13:31:16]Sock 7.First char is OK [13:31:16]request: POST /json_proto HTTP/1.0 [13:31:16]Method: POST [13:31:16]URL: /json_proto [13:31:16]Method is POST - this is cgi request [13:31:16]url: /json_proto [13:31:16]query_string will be loaded in cgi processing [13:31:16]execute_cgi json_proto POST (null) [13:31:16]execute_cgi path=json_proto method=POST [13:31:16]POST find Content-Length [13:31:16]Host: 172.17.56.4:8080 [13:31:16]Content-Length: 674 [13:31:16]Content-Type: application/json [13:31:16] [13:31:16]POST finish read [13:31:16]Found Content-Length = 674 [13:31:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459060", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 4.180, "sum" : 300.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:31:16]execute_script... [13:31:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459060", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 4.180, "sum" : 300.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:31:16]POST & json_proto [13:31:16]process_json_proto [13:31:16]json parsed OK: [13:31:16]protocol is kg_v1.0 [13:31:16]action value=close_receipt [13:31:16]process_action close_receipt [13:31:16]cmd_close_receipt [13:31:16]MH_GetDate [13:31:16]Write to MH i2c: F0 00 00 6C 1F 7A [13:31:16]Write i2c OK [13:31:16]MH_I2C_Read... [13:31:16]Read from MH i2c: F0 [13:31:16]MH_I2C_Read... [13:31:16]Read from MH i2c: F0 09 00 [13:31:16]MH_I2C_Read... [13:31:16]Read from MH i2c: F0 09 00 6C 1F 00 26 D3 93 66 C9 DC B2 64 30 [13:31:16]GetLastDocTimeStamp 1720963717 [13:31:16]current date 1720963878 [13:31:16]FM_GetShiftState [13:31:16]SAM_PROTO_GetShiftState [13:31:16]wFMCommunicate request_size=4 [13:31:16]MH_SAM_APDU [13:31:16]CAPDU: 80 13 01 00 [13:31:16]Write to MH i2c: E2 08 00 6D 1F 80 13 01 00 00 00 00 00 09 [13:31:16]Write i2c OK [13:31:16]MH_I2C_Read... [13:31:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:31:16]Read from MH i2c: E2 [13:31:16]MH_I2C_Read... [13:31:16]Read from MH i2c: E2 0E 00 [13:31:16]MH_I2C_Read... [13:31:16]Read from MH i2c: E2 0E 00 6D 1F 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 89 [13:31:16]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [13:31:16]wFMCommunicate OK [13:31:16]SAM_PROTO_GetShiftState done [13:31:16]FM_GetShiftState done [13:31:16]opened in 1720917342 [13:31:16]opened+sec_in_day 1721003742 [13:31:16]quantity*price = 30054 [13:31:16]sum+1 = 30055 [13:31:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.92 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 159 14.07.2024 13:31 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164961 ФПД: 219351573105521 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T133118&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164961&fm=219351573105521&tin=02508201610067®Number=0000000000090829&sum=30000 [13:31:17]StoreToDocumentArchive [13:31:17]shift 447 fd 164961 [13:31:17]save to /storage/0447/doc_00164961 [13:31:17]save last doc name /storage/0447/doc_00164961 to /storage/kkm_last_doc_name [13:31:17]save OK [13:31:17]Clear old archive folders... [13:31:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:31:17]tlvbuf is B6E4A920 [13:31:17]SAM_PROTO_ClearQueue [13:31:17]wFMCommunicate request_size=4 [13:31:17]MH_SAM_APDU [13:31:17]CAPDU: 80 09 00 00 [13:31:17]Write to MH i2c: E2 08 00 7A 1F 80 09 00 00 00 00 00 00 0B [13:31:17]Write i2c OK [13:31:17]MH_I2C_Read... [13:31:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:31:18]Read from MH i2c: E2 [13:31:18]MH_I2C_Read... [13:31:18]Read from MH i2c: E2 03 00 [13:31:18]MH_I2C_Read... [13:31:18]Read from MH i2c: E2 03 00 7A 1F 00 90 00 0D [13:31:18]RAPDU: 90 00 [13:31:18]wFMCommunicate OK [13:31:18]SAM_PROTO_ClearQueue done [13:31:18]KKMCreateOFDPacket [13:31:18]OFDProtocolAddRootSTLVToBuf [13:31:18]FM_MakeSignedData [13:31:18]FM_MakeSignedData [13:31:18]SAM_PROTO_SignData [13:31:18]wFMCommunicate request_size=4 [13:31:18]MH_SAM_APDU [13:31:18]CAPDU: 80 0D 01 02 [13:31:18]Write to MH i2c: E2 08 00 7B 1F 80 0D 01 02 00 00 00 00 13 [13:31:18]Write i2c OK [13:31:18]MH_I2C_Read... [13:31:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:31:18]Read from MH i2c: E2 [13:31:18]MH_I2C_Read... [13:31:18]Read from MH i2c: E2 03 00 [13:31:18]MH_I2C_Read... [13:31:18]Read from MH i2c: E2 03 00 7B 1F 00 90 00 0E [13:31:18]RAPDU: 90 00 [13:31:18]wFMCommunicate OK [13:31:18]wFMCommunicate request_size=255 [13:31:18]MH_SAM_APDU [13:31:18]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 10 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 66 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 78 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 9F 00 00 00 F4 03 04 00 26 D3 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 61 84 02 00 35 04 06 00 C7 7F C4 98 [13:31:18]Write to MH i2c: E2 02 01 7C 1F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 10 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 66 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 78 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 9F 00 00 00 F4 03 04 00 26 D3 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 61 84 02 00 35 04 06 00 C7 7F C4 98 00 00 9A [13:31:18]Write i2c OK [13:31:18]MH_I2C_Read... [13:31:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:31:18]Read from MH i2c: E2 [13:31:18]MH_I2C_Read... [13:31:18]Read from MH i2c: E2 03 00 [13:31:18]MH_I2C_Read... [13:31:18]Read from MH i2c: E2 03 00 7C 1F 00 90 00 0F [13:31:18]RAPDU: 90 00 [13:31:18]wFMCommunicate OK [13:31:18]wFMCommunicate request_size=7 [13:31:18]MH_SAM_APDU [13:31:18]CAPDU: 80 0D 02 02 02 8B 71 [13:31:18]Write to MH i2c: E2 0A 00 7D 1F 80 0D 02 02 02 00 8B 71 00 00 16 [13:31:18]Write i2c OK [13:31:18]MH_I2C_Read... [13:31:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:31:18]Read from MH i2c: E2 [13:31:18]MH_I2C_Read... [13:31:18]Read from MH i2c: E2 03 00 [13:31:18]MH_I2C_Read... [13:31:18]Read from MH i2c: E2 03 00 7D 1F 00 90 00 10 [13:31:18]RAPDU: 90 00 [13:31:18]wFMCommunicate OK [13:31:18]wFMCommunicate request_size=4 [13:31:18]MH_SAM_APDU [13:31:18]CAPDU: 80 0D 03 02 [13:31:18]Write to MH i2c: E2 08 00 7E 1F 80 0D 03 02 00 00 00 00 18 [13:31:18]Write i2c OK [13:31:18]MH_I2C_Read... [13:31:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:31:18]Read from MH i2c: E2 [13:31:18]MH_I2C_Read... [13:31:18]Read from MH i2c: E2 0B 00 [13:31:18]MH_I2C_Read... [13:31:18]Read from MH i2c: E2 0B 00 7E 1F 00 CB 24 1E 1D 1E 17 FF 87 90 00 FE [13:31:18]RAPDU: CB 24 1E 1D 1E 17 FF 87 90 00 [13:31:18]wFMCommunicate OK [13:31:18]SAM_PROTO_SignData done [13:31:18]FM_MakeSignedData done [13:31:18]CreateOFDProtocolMessage [13:31:18]wFMCommunicate request_size=4 [13:31:18]MH_SAM_APDU [13:31:18]CAPDU: 80 11 00 00 [13:31:18]Write to MH i2c: E2 08 00 7F 1F 80 11 00 00 00 00 00 00 18 [13:31:18]Write i2c OK [13:31:18]MH_I2C_Read... [13:31:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:31:18]Read from MH i2c: E2 [13:31:18]MH_I2C_Read... [13:31:18]Read from MH i2c: E2 17 00 [13:31:18]MH_I2C_Read... [13:31:18]Read from MH i2c: E2 17 00 7F 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 6E [13:31:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:31:18]wFMCommunicate OK [13:31:18]CreateOFDProtocolMessage done [13:31:18]OFDSenderStorePacket 164961 [13:31:18]StoreOFDPacket docnum=164961 [13:31:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 75 CD 04 01 F7 78 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 10 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 66 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 78 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 9F 00 00 00 F4 03 04 00 26 D3 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 61 84 02 00 35 04 06 00 C7 7F C4 98 8B 71 CB 24 1E 1D 1E 17 FF 87 [13:31:18]CheckFolder [13:31:18]dirname=/storage/ofd_packets [13:31:18]CheckFolder done [13:31:18]ProducePacketName [13:31:18]name=ofd_packets/00164961 [13:31:18]NVStorageSaveData ofd_packets/00164961 [13:31:18]File name is /storage/ofd_packets/00164961 [13:31:18]Write 298 bytes [13:31:18]NVStorageSaveData done [13:31:18]OFDSenderStorePacket done [13:31:18]KKMCreateOFDPacket done [13:31:18]NVStorageSaveData kkm_last_timestamp [13:31:18]File name is /storage/kkm_last_timestamp [13:31:18]Write 4 bytes [13:31:18]NVStorageSaveData done [13:31:18]ExternCall_PrintAddStr [13:31:18]wPrintStart [13:31:18]Write to MH i2c: 01 00 00 80 1F 9F [13:31:18]Write i2c OK [13:31:18]MH_I2C_Read... [13:31:18]Read from MH i2c: 01 [13:31:18]MH_I2C_Read... [13:31:18]Read from MH i2c: 01 07 00 [13:31:18]MH_I2C_Read... [13:31:18]Read from MH i2c: 01 07 00 80 1F 00 00 00 00 00 FF 0F B4 [13:31:18]RasterBufferAndPrint [13:31:18]line Счет N : (1)459060 [13:31:18]line ИНН: 02508201610067 [13:31:18]line Контрольно-Кассовый Чек [13:31:18]line ПРОДАЖА [13:31:18]line ТРК (МРК, ГНК) : 21 [13:31:18]line Товар: 2710194210 [13:31:18]line ДТ-К-5 [13:31:18]line 4.180 * 71.90 [13:31:18]line = 300.54 [13:31:18]line НДС 12% НСП 1% [13:31:18]line > о реализуемом товаре [13:31:18]line ОКРУГЛЕНИЕ: -0.54 [13:31:18]line ИТОГО: 300.00 [13:31:18]line Внесено: 300.00 [13:31:18]line СДАЧА: 0.00 [13:31:18]line НСП 1% : 2.66 [13:31:18]line НДС 12% : 31.92 [13:31:18]line Наличными: 300.00 [13:31:18]line Безнал.: 0.00 [13:31:18]line Место: АЗС № 72 "Партнер Нефть" [13:31:18]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:31:18]line СНО: Общий режим [13:31:18]line Чек 159 14.07.2024 13:31 [13:31:18]line Смена: 447 ФФД: 1.0 [13:31:18]line ЗНМ: 0300000160 [13:31:18]line РНМ: 0000000000090829 [13:31:18]line Версия ККМ: 001 [13:31:18]line ФМ: 0000000000874718 [13:31:18]line ФД: 164961 [13:31:18]line ФПД: 219351573105521 [13:31:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T133118&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164961&fm=219351573105521&tin=02508201610067®Number=0000000000090829&sum=30000 [13:31:18]OFD Sender: Processing packet 164961 [packets to send 104, broken 103] [13:31:18]ProducePacketName [13:31:18]name=ofd_packets/00164961 [13:31:18]OFD Sender: To server: pG, [13:31:18]CommunicateWithHost lk.salyk.kg:30040 [13:31:18]ConnectInit lk.salyk.kg [13:31:18]written 0, free lines is 4095 [13:31:18]Connected sock=10 [13:31:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 75 CD 04 01 F7 78 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 10 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 66 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 78 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 9F 00 00 00 F4 03 04 00 26 D3 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 61 84 02 00 35 04 06 00 C7 7F C4 98 8B 71 CB 24 1E 1D 1E 17 FF 87 [13:31:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 32 86 47 00 32 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 61 84 02 00 F4 03 04 00 B3 79 93 66 B6 04 01 00 00 4B 62 70 58 5D 8D E0 5B [13:31:19]CommunicateWithHost err = 0 [13:31:19]CheckOFDResponse [13:31:19]1017 (14) - 77093643461234 [13:31:19]1041 (16) - 0000000000874718 [13:31:19]1040 (4) - 164961 [13:31:19]1012 (4) - 14.07.2024 07:09 [13:31:19]1206 (1) - 0 [13:31:19]OFD Sender: Remove packet 164961 [13:31:19]ProducePacketName [13:31:19]name=ofd_packets/00164961 [13:31:19]NVStorageDeleteData [13:31:19]Write to MH i2c: 01 00 00 AA 1F C9 [13:31:19]Write i2c OK [13:31:19]MH_I2C_Read... [13:31:19]Read from MH i2c: 01 [13:31:19]MH_I2C_Read... [13:31:19]Read from MH i2c: 01 07 00 [13:31:19]MH_I2C_Read... [13:31:19]Read from MH i2c: 01 07 00 AA 1F 00 00 00 00 00 F3 0C CF [13:31:19]RasterBufferAndPrint [13:31:19]line [13:31:19]line [13:31:19]line [13:31:19]line [13:31:19]line [13:31:19]written 0, free lines is 3321 [13:31:19]MH_Cut [13:31:19]Write to MH i2c: D1 01 00 B1 1F 01 A2 [13:31:19]Write i2c OK [13:31:19]MH_I2C_Read... [13:31:19]Read from MH i2c: D1 [13:31:19]MH_I2C_Read... [13:31:19]Read from MH i2c: D1 01 00 [13:31:19]MH_I2C_Read... [13:31:19]Read from MH i2c: D1 01 00 B1 1F 00 A1 [13:31:19]Write to MH i2c: 01 00 00 B2 1F D1 [13:31:19]Write i2c OK [13:31:19]MH_I2C_Read... [13:31:19]OFD Sender: No OFD packet to send [13:31:19]*** Cut start [13:31:19]*** Partial cut [13:31:19]*** CUTSNS_PIN = 1 [13:31:19]*** CUTSNS_PIN = 0 [13:31:20]*** Brake cut motor [13:31:20]Read from MH i2c: 01 [13:31:20]MH_I2C_Read... [13:31:20]*** Stop cut motor [13:31:20]*** Cut end [13:31:20]Read from MH i2c: 01 07 00 [13:31:20]MH_I2C_Read... [13:31:20]Read from MH i2c: 01 07 00 B2 1F 00 00 00 00 00 FF 0F E6 [13:31:20]process_action close_receipt done [13:31:20]requested_data is exist [13:31:20]produce_requested_data [13:31:20]requested_item fm.sn is exist - process it [13:31:20]wFMCommunicate request_size=4 [13:31:20]MH_SAM_APDU [13:31:20]CAPDU: 80 11 00 00 [13:31:20]Write to MH i2c: E2 08 00 B3 1F 80 11 00 00 00 00 00 00 4C [13:31:20]Write i2c OK [13:31:20]MH_I2C_Read... [13:31:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:31:20]Read from MH i2c: E2 [13:31:20]MH_I2C_Read... [13:31:20]Read from MH i2c: E2 17 00 [13:31:20]MH_I2C_Read... [13:31:20]Read from MH i2c: E2 17 00 B3 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A2 [13:31:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:31:20]wFMCommunicate OK [13:31:20]requested_item fd.num is exist - process it [13:31:20]SAM_PROTO_GetFieldsCounters [13:31:20]wFMCommunicate request_size=4 [13:31:20]MH_SAM_APDU [13:31:20]CAPDU: 80 13 00 00 [13:31:20]Write to MH i2c: E2 08 00 B4 1F 80 13 00 00 00 00 00 00 4F [13:31:20]Write i2c OK [13:31:20]MH_I2C_Read... [13:31:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:31:20]Read from MH i2c: E2 [13:31:20]MH_I2C_Read... [13:31:20]Read from MH i2c: E2 62 00 [13:31:20]MH_I2C_Read... [13:31:20]Read from MH i2c: E2 62 00 B4 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 61 84 02 00 0E 04 04 00 BF 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 FA [13:31:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 61 84 02 00 0E 04 04 00 BF 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 [13:31:20]wFMCommunicate OK [13:31:20]SAM_PROTO_GetFieldsCounters done [13:31:20]requested_item shift.num is exist - process it [13:31:20]requested_item shift.opened is exist - process it [13:31:20]req_shift_opened [13:31:20]FM_GetShiftState [13:31:20]SAM_PROTO_GetShiftState [13:31:20]wFMCommunicate request_size=4 [13:31:20]MH_SAM_APDU [13:31:20]CAPDU: 80 13 01 00 [13:31:20]Write to MH i2c: E2 08 00 B5 1F 80 13 01 00 00 00 00 00 51 [13:31:20]Write i2c OK [13:31:20]MH_I2C_Read... [13:31:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:31:20]Read from MH i2c: E2 [13:31:20]MH_I2C_Read... [13:31:20]Read from MH i2c: E2 0E 00 [13:31:20]MH_I2C_Read... [13:31:20]Read from MH i2c: E2 0E 00 B5 1F 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 D1 [13:31:20]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [13:31:20]wFMCommunicate OK [13:31:20]SAM_PROTO_GetShiftState done [13:31:20]FM_GetShiftState done [13:31:20]req_shift_opened done [13:31:20]requested_item shift.open_date is exist - process it [13:31:20]req_shift_open_date [13:31:20]req_shift_open_date done [13:31:20]produce_requested_data done [13:31:20]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164961,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [13:31:20]process_action_free close_receipt [13:31:20]json_value_free [13:31:20]json_value_free done [13:31:20]process_json_proto returns [13:31:20]Send response to host [13:31:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164961,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [13:31:20]free response buf [13:31:20]execute_script done [13:31:20]execute_script returns [13:31:20]free content buf [13:31:20]Sock 7.Close socket [13:31:20]Sock 7.Thread stoped [13:31:21]accept exits with 9 [13:31:21]New connection [13:31:21]New thread 3067473252 created [13:31:21]Thread 3067616612 joined [13:31:21]Waiting for new connection... [13:31:21] Sock 9.Parse request [13:31:21]Sock 9.Check first char [13:31:21]Sock 9.First char is OK [13:31:21]request: POST /json_proto HTTP/1.0 [13:31:21]Method: POST [13:31:21]URL: /json_proto [13:31:21]Method is POST - this is cgi request [13:31:21]url: /json_proto [13:31:21]query_string will be loaded in cgi processing [13:31:21]execute_cgi json_proto POST (null) [13:31:21]execute_cgi path=json_proto method=POST [13:31:21]POST find Content-Length [13:31:21]Host: 172.17.56.4:8080 [13:31:21]Content-Length: 790 [13:31:21]Content-Type: application/json [13:31:21] [13:31:21]POST finish read [13:31:21]Found Content-Length = 790 [13:31:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459059", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.26, "quantity" : 14.040, "sum" : 1000.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:31:21]execute_script... [13:31: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)459059", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.26, "quantity" : 14.040, "sum" : 1000.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:31:21]POST & json_proto [13:31:21]process_json_proto [13:31:21]json parsed OK: [13:31:21]protocol is kg_v1.0 [13:31:21]action value=close_receipt [13:31:21]process_action close_receipt [13:31:21]cmd_close_receipt [13:31:21]MH_GetDate [13:31:21]Write to MH i2c: F0 00 00 B6 1F C4 [13:31:21]Write i2c OK [13:31:21]MH_I2C_Read... [13:31:21]Read from MH i2c: F0 [13:31:21]MH_I2C_Read... [13:31:21]Read from MH i2c: F0 09 00 [13:31:21]MH_I2C_Read... [13:31:21]Read from MH i2c: F0 09 00 B6 1F 00 2A D3 93 66 C9 DC B2 64 7E [13:31:21]GetLastDocTimeStamp 1720963878 [13:31:21]current date 1720963882 [13:31:21]FM_GetShiftState [13:31:21]SAM_PROTO_GetShiftState [13:31:21]wFMCommunicate request_size=4 [13:31:21]MH_SAM_APDU [13:31:21]CAPDU: 80 13 01 00 [13:31:21]Write to MH i2c: E2 08 00 B7 1F 80 13 01 00 00 00 00 00 53 [13:31:21]Write i2c OK [13:31:21]MH_I2C_Read... [13:31:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:31:21]Read from MH i2c: E2 [13:31:21]MH_I2C_Read... [13:31:21]Read from MH i2c: E2 0E 00 [13:31:21]MH_I2C_Read... [13:31:21]Read from MH i2c: E2 0E 00 B7 1F 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 D3 [13:31:21]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [13:31:21]wFMCommunicate OK [13:31:21]SAM_PROTO_GetShiftState done [13:31:21]FM_GetShiftState done [13:31:21]opened in 1720917342 [13:31:21]opened+sec_in_day 1721003742 [13:31:21]quantity*price = 100049 [13:31:21]sum+1 = 100050 [13:31:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.49 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.49 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 160 14.07.2024 13:31 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 164962 ФПД: 154150655937083 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T133122&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164962&fm=154150655937083&tin=02508201610067®Number=0000000000090829&sum=100049 [13:31:22]StoreToDocumentArchive [13:31:22]shift 447 fd 164962 [13:31:22]save to /storage/0447/doc_00164962 [13:31:22]save last doc name /storage/0447/doc_00164962 to /storage/kkm_last_doc_name [13:31:22]save OK [13:31:22]Clear old archive folders... [13:31:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:31:22]tlvbuf is 0081DF50 [13:31:22]SAM_PROTO_ClearQueue [13:31:22]wFMCommunicate request_size=4 [13:31:22]MH_SAM_APDU [13:31:22]CAPDU: 80 09 00 00 [13:31:22]Write to MH i2c: E2 08 00 C4 1F 80 09 00 00 00 00 00 00 55 [13:31:22]Write i2c OK [13:31:22]MH_I2C_Read... [13:31:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:31:22]Read from MH i2c: E2 [13:31:22]MH_I2C_Read... [13:31:22]Read from MH i2c: E2 03 00 [13:31:22]MH_I2C_Read... [13:31:22]Read from MH i2c: E2 03 00 C4 1F 00 90 00 57 [13:31:22]RAPDU: 90 00 [13:31:22]wFMCommunicate OK [13:31:22]SAM_PROTO_ClearQueue done [13:31:22]KKMCreateOFDPacket [13:31:22]OFDProtocolAddRootSTLVToBuf [13:31:22]FM_MakeSignedData [13:31:22]FM_MakeSignedData [13:31:22]SAM_PROTO_SignData [13:31:22]wFMCommunicate request_size=4 [13:31:22]MH_SAM_APDU [13:31:22]CAPDU: 80 0D 01 02 [13:31:22]Write to MH i2c: E2 08 00 C5 1F 80 0D 01 02 00 00 00 00 5D [13:31:22]Write i2c OK [13:31:22]MH_I2C_Read... [13:31:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:31:22]Read from MH i2c: E2 [13:31:22]MH_I2C_Read... [13:31:22]Read from MH i2c: E2 03 00 [13:31:22]MH_I2C_Read... [13:31:22]Read from MH i2c: E2 03 00 C5 1F 00 90 00 58 [13:31:22]RAPDU: 90 00 [13:31:22]wFMCommunicate OK [13:31:22]wFMCommunicate request_size=255 [13:31:22]MH_SAM_APDU [13:31: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 D8 36 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 D1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 D1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 2A D3 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 62 84 02 00 35 04 06 00 8C 32 FF 16 [13:31:22]Write to MH i2c: E2 02 01 C6 1F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D8 36 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 D1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 D1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 2A D3 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 62 84 02 00 35 04 06 00 8C 32 FF 16 00 00 FA [13:31:22]Write i2c OK [13:31:22]MH_I2C_Read... [13:31:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:31:22]Read from MH i2c: E2 [13:31:22]MH_I2C_Read... [13:31:22]Read from MH i2c: E2 03 00 [13:31:22]MH_I2C_Read... [13:31:22]Read from MH i2c: E2 03 00 C6 1F 00 90 00 59 [13:31:22]RAPDU: 90 00 [13:31:22]wFMCommunicate OK [13:31:22]wFMCommunicate request_size=7 [13:31:22]MH_SAM_APDU [13:31:22]CAPDU: 80 0D 02 02 02 CA 3B [13:31:22]Write to MH i2c: E2 0A 00 C7 1F 80 0D 02 02 02 00 CA 3B 00 00 69 [13:31:22]Write i2c OK [13:31:22]MH_I2C_Read... [13:31:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:31:22]Read from MH i2c: E2 [13:31:22]MH_I2C_Read... [13:31:22]Read from MH i2c: E2 03 00 [13:31:22]MH_I2C_Read... [13:31:22]Read from MH i2c: E2 03 00 C7 1F 00 90 00 5A [13:31:22]RAPDU: 90 00 [13:31:22]wFMCommunicate OK [13:31:22]wFMCommunicate request_size=4 [13:31:22]MH_SAM_APDU [13:31:22]CAPDU: 80 0D 03 02 [13:31:22]Write to MH i2c: E2 08 00 C8 1F 80 0D 03 02 00 00 00 00 62 [13:31:22]Write i2c OK [13:31:22]MH_I2C_Read... [13:31:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:31:22]Read from MH i2c: E2 [13:31:22]MH_I2C_Read... [13:31:22]Read from MH i2c: E2 0B 00 [13:31:22]MH_I2C_Read... [13:31:22]Read from MH i2c: E2 0B 00 C8 1F 00 E5 7B 14 D4 18 47 BD FF 90 00 C6 [13:31:22]RAPDU: E5 7B 14 D4 18 47 BD FF 90 00 [13:31:22]wFMCommunicate OK [13:31:22]SAM_PROTO_SignData done [13:31:22]FM_MakeSignedData done [13:31:22]CreateOFDProtocolMessage [13:31:22]wFMCommunicate request_size=4 [13:31:22]MH_SAM_APDU [13:31:22]CAPDU: 80 11 00 00 [13:31:22]Write to MH i2c: E2 08 00 C9 1F 80 11 00 00 00 00 00 00 62 [13:31:22]Write i2c OK [13:31:22]MH_I2C_Read... [13:31:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:31:23]Read from MH i2c: E2 [13:31:23]MH_I2C_Read... [13:31:23]Read from MH i2c: E2 17 00 [13:31:23]MH_I2C_Read... [13:31:23]Read from MH i2c: E2 17 00 C9 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B8 [13:31:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:31:23]wFMCommunicate OK [13:31:23]CreateOFDProtocolMessage done [13:31:23]OFDSenderStorePacket 164962 [13:31:23]StoreOFDPacket docnum=164962 [13:31:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 6B 2C 04 01 08 EF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D8 36 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 D1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 D1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 2A D3 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 62 84 02 00 35 04 06 00 8C 32 FF 16 CA 3B E5 7B 14 D4 18 47 BD FF [13:31:23]CheckFolder [13:31:23]dirname=/storage/ofd_packets [13:31:23]CheckFolder done [13:31:23]ProducePacketName [13:31:23]name=ofd_packets/00164962 [13:31:23]NVStorageSaveData ofd_packets/00164962 [13:31:23]File name is /storage/ofd_packets/00164962 [13:31:23]Write 298 bytes [13:31:23]NVStorageSaveData done [13:31:23]OFDSenderStorePacket done [13:31:23]KKMCreateOFDPacket done [13:31:23]NVStorageSaveData kkm_last_timestamp [13:31:23]File name is /storage/kkm_last_timestamp [13:31:23]Write 4 bytes [13:31:23]NVStorageSaveData done [13:31:23]ExternCall_PrintAddStr [13:31:23]wPrintStart [13:31:23]Write to MH i2c: 01 00 00 CA 1F E9 [13:31:23]Write i2c OK [13:31:23]MH_I2C_Read... [13:31:23]Read from MH i2c: 01 [13:31:23]MH_I2C_Read... [13:31:23]Read from MH i2c: 01 07 00 [13:31:23]MH_I2C_Read... [13:31:23]Read from MH i2c: 01 07 00 CA 1F 00 00 00 00 00 FF 0F FE [13:31:23]RasterBufferAndPrint [13:31:23]line Счет N : (1)459059 [13:31:23]line ИНН: 02508201610067 [13:31:23]line Контрольно-Кассовый Чек [13:31:23]line ПРОДАЖА [13:31:23]line ТРК (МРК, ГНК) : 11 [13:31:23]line Товар: 2710194210 [13:31:23]line ДТ-К-5 [13:31:23]line 14.040 * 71.26 [13:31:23]line = 1000.49 [13:31:23]line НДС 12% НСП 1% [13:31:23]line > о реализуемом товаре [13:31:23]line ИТОГО: 1000.49 [13:31:23]line НСП 1% : 8.85 [13:31:23]line НДС 12% : 106.25 [13:31:23]line Наличными: 0.00 [13:31:23]line Безнал.: 1000.49 [13:31:23]line Место: АЗС № 72 "Партнер Нефть" [13:31:23]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:31:23]line СНО: Общий режим [13:31:23]line Чек 160 14.07.2024 13:31 [13:31:23]line Смена: 447 ФФД: 1.0 [13:31:23]line ЗНМ: 0300000160 [13:31:23]line РНМ: 0000000000090829 [13:31:23]line Версия ККМ: 001 [13:31:23]line Платежная система: KICB Банк [13:31:23]line ФМ: 0000000000874718 [13:31:23]line ФД: 164962 [13:31:23]line ФПД: 154150655937083 [13:31:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T133122&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164962&fm=154150655937083&tin=02508201610067®Number=0000000000090829&sum=100049 [13:31:23]written 0, free lines is 4095 [13:31:23]OFD Sender: Processing packet 164962 [packets to send 104, broken 103] [13:31:23]ProducePacketName [13:31:23]name=ofd_packets/00164962 [13:31:23]OFD Sender: To server: pG, [13:31:23]CommunicateWithHost lk.salyk.kg:30040 [13:31:23]ConnectInit lk.salyk.kg [13:31:23]Connected sock=10 [13:31:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 6B 2C 04 01 08 EF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D8 36 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 D1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 D1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 2A D3 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 62 84 02 00 35 04 06 00 8C 32 FF 16 CA 3B E5 7B 14 D4 18 47 BD FF [13:31:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 0B CB 47 00 C9 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 62 84 02 00 F4 03 04 00 B8 79 93 66 B6 04 01 00 00 04 1D E2 8B FB 62 41 45 [13:31:23]CommunicateWithHost err = 0 [13:31:23]CheckOFDResponse [13:31:23]1017 (14) - 77093643461234 [13:31:23]1041 (16) - 0000000000874718 [13:31:23]1040 (4) - 164962 [13:31:23]1012 (4) - 14.07.2024 07:09 [13:31:23]1206 (1) - 0 [13:31:23]OFD Sender: Remove packet 164962 [13:31:23]ProducePacketName [13:31:23]name=ofd_packets/00164962 [13:31:23]NVStorageDeleteData [13:31:23]Write to MH i2c: 01 00 00 F3 1F 12 [13:31:23]Write i2c OK [13:31:23]MH_I2C_Read... [13:31:23]Read from MH i2c: 01 [13:31:23]MH_I2C_Read... [13:31:23]Read from MH i2c: 01 07 00 [13:31:23]MH_I2C_Read... [13:31:23]Read from MH i2c: 01 07 00 F3 1F 00 00 00 00 00 04 0D 2A [13:31:23]RasterBufferAndPrint [13:31:23]line [13:31:23]line [13:31:23]line [13:31:23]line [13:31:23]line [13:31:23]written 0, free lines is 3344 [13:31:23]MH_Cut [13:31:23]Write to MH i2c: D1 01 00 FA 1F 01 EB [13:31:23]Write i2c OK [13:31:23]MH_I2C_Read... [13:31:23]Read from MH i2c: D1 [13:31:23]MH_I2C_Read... [13:31:23]Read from MH i2c: D1 01 00 [13:31:23]MH_I2C_Read... [13:31:23]Read from MH i2c: D1 01 00 FA 1F 00 EA [13:31:23]Write to MH i2c: 01 00 00 FB 1F 1A [13:31:23]Write i2c OK [13:31:23]MH_I2C_Read... [13:31:24]OFD Sender: No OFD packet to send [13:31:24]*** Cut start [13:31:24]*** Partial cut [13:31:24]*** CUTSNS_PIN = 1 [13:31:24]*** CUTSNS_PIN = 0 [13:31:24]*** Brake cut motor [13:31:25]Read from MH i2c: 01 [13:31:25]MH_I2C_Read... [13:31:25]*** Stop cut motor [13:31:25]*** Cut end [13:31:25]Read from MH i2c: 01 07 00 [13:31:25]MH_I2C_Read... [13:31:25]Read from MH i2c: 01 07 00 FB 1F 00 00 00 00 00 FF 0F 2F [13:31:25]process_action close_receipt done [13:31:25]requested_data is exist [13:31:25]produce_requested_data [13:31:25]requested_item fm.sn is exist - process it [13:31:25]wFMCommunicate request_size=4 [13:31:25]MH_SAM_APDU [13:31:25]CAPDU: 80 11 00 00 [13:31:25]Write to MH i2c: E2 08 00 FC 1F 80 11 00 00 00 00 00 00 95 [13:31:25]Write i2c OK [13:31:25]MH_I2C_Read... [13:31:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:31:25]Read from MH i2c: E2 [13:31:25]MH_I2C_Read... [13:31:25]Read from MH i2c: E2 17 00 [13:31:25]MH_I2C_Read... [13:31:25]Read from MH i2c: E2 17 00 FC 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 EB [13:31:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:31:25]wFMCommunicate OK [13:31:25]requested_item fd.num is exist - process it [13:31:25]SAM_PROTO_GetFieldsCounters [13:31:25]wFMCommunicate request_size=4 [13:31:25]MH_SAM_APDU [13:31:25]CAPDU: 80 13 00 00 [13:31:25]Write to MH i2c: E2 08 00 FD 1F 80 13 00 00 00 00 00 00 98 [13:31:25]Write i2c OK [13:31:25]MH_I2C_Read... [13:31:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:31:25]Read from MH i2c: E2 [13:31:25]MH_I2C_Read... [13:31:25]Read from MH i2c: E2 62 00 [13:31:25]MH_I2C_Read... [13:31:25]Read from MH i2c: E2 62 00 FD 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 62 84 02 00 0E 04 04 00 BF 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 47 [13:31:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 62 84 02 00 0E 04 04 00 BF 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 [13:31:25]wFMCommunicate OK [13:31:25]SAM_PROTO_GetFieldsCounters done [13:31:25]requested_item shift.num is exist - process it [13:31:25]requested_item shift.opened is exist - process it [13:31:25]req_shift_opened [13:31:25]FM_GetShiftState [13:31:25]SAM_PROTO_GetShiftState [13:31:25]wFMCommunicate request_size=4 [13:31:25]MH_SAM_APDU [13:31:25]CAPDU: 80 13 01 00 [13:31:25]Write to MH i2c: E2 08 00 FE 1F 80 13 01 00 00 00 00 00 9A [13:31:25]Write i2c OK [13:31:25]MH_I2C_Read... [13:31:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:31:25]Read from MH i2c: E2 [13:31:25]MH_I2C_Read... [13:31:25]Read from MH i2c: E2 0E 00 [13:31:25]MH_I2C_Read... [13:31:25]Read from MH i2c: E2 0E 00 FE 1F 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 1A [13:31:25]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [13:31:25]wFMCommunicate OK [13:31:25]SAM_PROTO_GetShiftState done [13:31:25]FM_GetShiftState done [13:31:25]req_shift_opened done [13:31:25]requested_item shift.open_date is exist - process it [13:31:25]req_shift_open_date [13:31:25]req_shift_open_date done [13:31:25]produce_requested_data done [13:31:25]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164962,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [13:31:25]process_action_free close_receipt [13:31:25]json_value_free [13:31:25]json_value_free done [13:31:25]process_json_proto returns [13:31:25]Send response to host [13:31:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164962,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [13:31:25]free response buf [13:31:25]execute_script done [13:31:25]execute_script returns [13:31:25]free content buf [13:31:25]Sock 9.Close socket [13:31:25]Sock 9.Thread stoped [13:31:29]OFD Sender: No OFD packet to send [13:31:34]OFD Sender: No OFD packet to send [13:31:39]OFD Sender: No OFD packet to send [13:31:44]OFD Sender: No OFD packet to send [13:31:49]OFD Sender: No OFD packet to send [13:31:54]OFD Sender: No OFD packet to send [13:31:57]accept exits with 7 [13:31:57]New connection [13:31:57]New thread 3067616612 created [13:31:57]Thread 3067473252 joined [13:31:57]Waiting for new connection... [13:31:57] Sock 7.Parse request [13:31:57]Sock 7.Check first char [13:31:57]Sock 7.First char is OK [13:31:57]request: POST /json_proto HTTP/1.0 [13:31:57]Method: POST [13:31:57]URL: /json_proto [13:31:57]Method is POST - this is cgi request [13:31:57]url: /json_proto [13:31:57]query_string will be loaded in cgi processing [13:31:57]execute_cgi json_proto POST (null) [13:31:57]execute_cgi path=json_proto method=POST [13:31:57]POST find Content-Length [13:31:57]Host: 172.17.56.4:8080 [13:31:57]Content-Length: 677 [13:31:57]Content-Type: application/json [13:31:57] [13:31:57]POST finish read [13:31:57]Found Content-Length = 677 [13:31:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459061", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:31:57]execute_script... [13: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)459061", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:31:57]POST & json_proto [13:31:57]process_json_proto [13:31:57]json parsed OK: [13:31:57]protocol is kg_v1.0 [13:31:57]action value=close_receipt [13:31:57]process_action close_receipt [13:31:57]cmd_close_receipt [13:31:57]MH_GetDate [13:31:57]Write to MH i2c: F0 00 00 FF 1F 0D [13:31:57]Write i2c OK [13:31:57]MH_I2C_Read... [13:31:57]Read from MH i2c: F0 [13:31:57]MH_I2C_Read... [13:31:57]Read from MH i2c: F0 09 00 [13:31:57]MH_I2C_Read... [13:31:57]Read from MH i2c: F0 09 00 FF 1F 00 4F D3 93 66 C9 DC B2 64 EC [13:31:57]GetLastDocTimeStamp 1720963882 [13:31:57]current date 1720963919 [13:31:57]FM_GetShiftState [13:31:57]SAM_PROTO_GetShiftState [13:31:57]wFMCommunicate request_size=4 [13:31:57]MH_SAM_APDU [13:31:57]CAPDU: 80 13 01 00 [13:31:57]Write to MH i2c: E2 08 00 00 20 80 13 01 00 00 00 00 00 9D [13:31:57]Write i2c OK [13:31:57]MH_I2C_Read... [13:31:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:31:58]Read from MH i2c: E2 [13:31:58]MH_I2C_Read... [13:31:58]Read from MH i2c: E2 0E 00 [13:31:58]MH_I2C_Read... [13:31:58]Read from MH i2c: E2 0E 00 00 20 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 1D [13:31:58]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [13:31:58]wFMCommunicate OK [13:31:58]SAM_PROTO_GetShiftState done [13:31:58]FM_GetShiftState done [13:31:58]opened in 1720917342 [13:31:58]opened+sec_in_day 1721003742 [13:31:58]quantity*price = 50008 [13:31:58]sum+1 = 50009 [13:31:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 161 14.07.2024 13:31 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164963 ФПД: 169528922089123 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T133159&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164963&fm=169528922089123&tin=02508201610067®Number=0000000000090829&sum=50000 [13:31:59]StoreToDocumentArchive [13:31:59]shift 447 fd 164963 [13:31:59]save to /storage/0447/doc_00164963 [13:31:59]save last doc name /storage/0447/doc_00164963 to /storage/kkm_last_doc_name [13:31:59]save OK [13:31:59]Clear old archive folders... [13:31:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:31:59]tlvbuf is 007BC640 [13:31:59]SAM_PROTO_ClearQueue [13:31:59]wFMCommunicate request_size=4 [13:31:59]MH_SAM_APDU [13:31:59]CAPDU: 80 09 00 00 [13:31:59]Write to MH i2c: E2 08 00 0D 20 80 09 00 00 00 00 00 00 9F [13:31:59]Write i2c OK [13:31:59]MH_I2C_Read... [13:31:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:31:59]Read from MH i2c: E2 [13:31:59]MH_I2C_Read... [13:31:59]Read from MH i2c: E2 03 00 [13:31:59]MH_I2C_Read... [13:31:59]Read from MH i2c: E2 03 00 0D 20 00 90 00 A1 [13:31:59]RAPDU: 90 00 [13:31:59]wFMCommunicate OK [13:31:59]SAM_PROTO_ClearQueue done [13:31:59]KKMCreateOFDPacket [13:31:59]OFDProtocolAddRootSTLVToBuf [13:31:59]FM_MakeSignedData [13:31:59]FM_MakeSignedData [13:31:59]SAM_PROTO_SignData [13:31:59]wFMCommunicate request_size=4 [13:31:59]MH_SAM_APDU [13:31:59]CAPDU: 80 0D 01 02 [13:31:59]Write to MH i2c: E2 08 00 0E 20 80 0D 01 02 00 00 00 00 A7 [13:31:59]Write i2c OK [13:31:59]MH_I2C_Read... [13:31:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:31:59]Read from MH i2c: E2 [13:31:59]MH_I2C_Read... [13:31:59]Read from MH i2c: E2 03 00 [13:31:59]MH_I2C_Read... [13:31:59]Read from MH i2c: E2 03 00 0E 20 00 90 00 A2 [13:31:59]RAPDU: 90 00 [13:31:59]wFMCommunicate OK [13:31:59]wFMCommunicate request_size=255 [13:31:59]MH_SAM_APDU [13:31:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 A1 00 00 00 F4 03 04 00 4F D3 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 63 84 02 00 35 04 06 00 9A [13:31:59]Write to MH i2c: E2 02 01 0F 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 A1 00 00 00 F4 03 04 00 4F D3 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 63 84 02 00 35 04 06 00 9A 00 00 1F [13:31:59]Write i2c OK [13:31:59]MH_I2C_Read... [13:31:59]OFD Sender: No OFD packet to send [13:31:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:31:59]Read from MH i2c: E2 [13:31:59]MH_I2C_Read... [13:31:59]Read from MH i2c: E2 03 00 [13:31:59]MH_I2C_Read... [13:31:59]Read from MH i2c: E2 03 00 0F 20 00 90 00 A3 [13:31:59]RAPDU: 90 00 [13:31:59]wFMCommunicate OK [13:31:59]wFMCommunicate request_size=10 [13:31:59]MH_SAM_APDU [13:31:59]CAPDU: 80 0D 02 02 05 2F 87 2E 26 A3 [13:31:59]Write to MH i2c: E2 0D 00 10 20 80 0D 02 02 05 00 2F 87 2E 26 A3 00 00 61 [13:31:59]Write i2c OK [13:31:59]MH_I2C_Read... [13:31:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:31:59]Read from MH i2c: E2 [13:31:59]MH_I2C_Read... [13:31:59]Read from MH i2c: E2 03 00 [13:31:59]MH_I2C_Read... [13:31:59]Read from MH i2c: E2 03 00 10 20 00 90 00 A4 [13:31:59]RAPDU: 90 00 [13:31:59]wFMCommunicate OK [13:31:59]wFMCommunicate request_size=4 [13:31:59]MH_SAM_APDU [13:31:59]CAPDU: 80 0D 03 02 [13:31:59]Write to MH i2c: E2 08 00 11 20 80 0D 03 02 00 00 00 00 AC [13:31:59]Write i2c OK [13:31:59]MH_I2C_Read... [13:31:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:31:59]Read from MH i2c: E2 [13:31:59]MH_I2C_Read... [13:31:59]Read from MH i2c: E2 0B 00 [13:31:59]MH_I2C_Read... [13:31:59]Read from MH i2c: E2 0B 00 11 20 00 4C 13 96 23 B7 25 2B 3E 90 00 0A [13:31:59]RAPDU: 4C 13 96 23 B7 25 2B 3E 90 00 [13:31:59]wFMCommunicate OK [13:31:59]SAM_PROTO_SignData done [13:31:59]FM_MakeSignedData done [13:31:59]CreateOFDProtocolMessage [13:31:59]wFMCommunicate request_size=4 [13:31:59]MH_SAM_APDU [13:31:59]CAPDU: 80 11 00 00 [13:31:59]Write to MH i2c: E2 08 00 12 20 80 11 00 00 00 00 00 00 AC [13:31:59]Write i2c OK [13:31:59]MH_I2C_Read... [13:31:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:31:59]Read from MH i2c: E2 [13:31:59]MH_I2C_Read... [13:31:59]Read from MH i2c: E2 17 00 [13:31:59]MH_I2C_Read... [13:31:59]Read from MH i2c: E2 17 00 12 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 02 [13:31:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:31:59]wFMCommunicate OK [13:31:59]CreateOFDProtocolMessage done [13:31:59]OFDSenderStorePacket 164963 [13:31:59]StoreOFDPacket docnum=164963 [13:31:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 1F 4C 07 01 B0 DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 A1 00 00 00 F4 03 04 00 4F D3 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 63 84 02 00 35 04 06 00 9A 2F 87 2E 26 A3 4C 13 96 23 B7 25 2B 3E [13:31:59]CheckFolder [13:31:59]dirname=/storage/ofd_packets [13:31:59]CheckFolder done [13:31:59]ProducePacketName [13:31:59]name=ofd_packets/00164963 [13:31:59]NVStorageSaveData ofd_packets/00164963 [13:31:59]File name is /storage/ofd_packets/00164963 [13:31:59]Write 301 bytes [13:31:59]NVStorageSaveData done [13:31:59]OFDSenderStorePacket done [13:31:59]KKMCreateOFDPacket done [13:31:59]NVStorageSaveData kkm_last_timestamp [13:31:59]File name is /storage/kkm_last_timestamp [13:31:59]Write 4 bytes [13:31:59]NVStorageSaveData done [13:31:59]ExternCall_PrintAddStr [13:31:59]wPrintStart [13:31:59]Write to MH i2c: 01 00 00 13 20 33 [13:31:59]Write i2c OK [13:31:59]MH_I2C_Read... [13:31:59]Read from MH i2c: 01 [13:31:59]MH_I2C_Read... [13:31:59]Read from MH i2c: 01 07 00 [13:31:59]MH_I2C_Read... [13:31:59]Read from MH i2c: 01 07 00 13 20 00 00 00 00 00 FF 0F 48 [13:31:59]RasterBufferAndPrint [13:31:59]line Счет N : (1)459061 [13:31:59]line ИНН: 02508201610067 [13:31:59]line Контрольно-Кассовый Чек [13:31:59]line ПРОДАЖА [13:31:59]line ТРК (МРК, ГНК) : 22 [13:31:59]line Товар: 2710124130 [13:31:59]line Аи-92-К-5 [13:31:59]line 7.600 * 65.80 [13:31:59]line = 500.08 [13:31:59]line НДС 12% НСП 1% [13:31:59]line > о реализуемом товаре [13:31:59]line ОКРУГЛЕНИЕ: -0.08 [13:31:59]line ИТОГО: 500.00 [13:31:59]line Внесено: 500.00 [13:31:59]line СДАЧА: 0.00 [13:31:59]line НСП 1% : 4.42 [13:31:59]line НДС 12% : 53.11 [13:31:59]line Наличными: 500.00 [13:31:59]line Безнал.: 0.00 [13:31:59]line Место: АЗС № 72 "Партнер Нефть" [13:31:59]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:31:59]line СНО: Общий режим [13:31:59]line Чек 161 14.07.2024 13:31 [13:31:59]line Смена: 447 ФФД: 1.0 [13:31:59]line ЗНМ: 0300000160 [13:31:59]line РНМ: 0000000000090829 [13:31:59]line Версия ККМ: 001 [13:31:59]line ФМ: 0000000000874718 [13:31:59]line ФД: 164963 [13:31:59]line ФПД: 169528922089123 [13:31:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T133159&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164963&fm=169528922089123&tin=02508201610067®Number=0000000000090829&sum=50000 [13:32:00]OFD Sender: Processing packet 164963 [packets to send 104, broken 103] [13:32:00]ProducePacketName [13:32:00]name=ofd_packets/00164963 [13:32:00]OFD Sender: To server: pG, [13:32:00]CommunicateWithHost lk.salyk.kg:30040 [13:32:00]ConnectInit lk.salyk.kg [13:32:00]written 0, free lines is 4095 [13:32:00]Connected sock=10 [13:32:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 1F 4C 07 01 B0 DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 A1 00 00 00 F4 03 04 00 4F D3 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 63 84 02 00 35 04 06 00 9A 2F 87 2E 26 A3 4C 13 96 23 B7 25 2B 3E [13:32:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 97 57 47 00 FC 92 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 63 84 02 00 F4 03 04 00 DD 79 93 66 B6 04 01 00 00 C4 5A 92 72 70 70 F4 F0 [13:32:00]CommunicateWithHost err = 0 [13:32:00]CheckOFDResponse [13:32:00]1017 (14) - 77093643461234 [13:32:00]1041 (16) - 0000000000874718 [13:32:00]1040 (4) - 164963 [13:32:00]1012 (4) - 14.07.2024 07:10 [13:32:00]1206 (1) - 0 [13:32:00]OFD Sender: Remove packet 164963 [13:32:00]ProducePacketName [13:32:00]name=ofd_packets/00164963 [13:32:00]NVStorageDeleteData [13:32:00]Write to MH i2c: 01 00 00 3D 20 5D [13:32:00]Write i2c OK [13:32:00]MH_I2C_Read... [13:32:00]Read from MH i2c: 01 [13:32:00]MH_I2C_Read... [13:32:00]Read from MH i2c: 01 07 00 [13:32:00]MH_I2C_Read... [13:32:00]Read from MH i2c: 01 07 00 3D 20 00 00 00 00 00 F0 0C 60 [13:32:00]RasterBufferAndPrint [13:32:00]line [13:32:00]line [13:32:00]line [13:32:00]line [13:32:00]line [13:32:00]written 0, free lines is 3322 [13:32:00]MH_Cut [13:32:00]Write to MH i2c: D1 01 00 44 20 01 36 [13:32:00]Write i2c OK [13:32:00]MH_I2C_Read... [13:32:00]Read from MH i2c: D1 [13:32:00]MH_I2C_Read... [13:32:00]Read from MH i2c: D1 01 00 [13:32:00]MH_I2C_Read... [13:32:00]Read from MH i2c: D1 01 00 44 20 00 35 [13:32:00]Write to MH i2c: 01 00 00 45 20 65 [13:32:00]Write i2c OK [13:32:00]MH_I2C_Read... [13:32:00]OFD Sender: No OFD packet to send [13:32:01]*** Cut start [13:32:01]*** Partial cut [13:32:01]*** CUTSNS_PIN = 1 [13:32:01]*** CUTSNS_PIN = 0 [13:32:01]*** Brake cut motor [13:32:01]Read from MH i2c: 01 [13:32:01]MH_I2C_Read... [13:32:01]*** Stop cut motor [13:32:01]*** Cut end [13:32:01]Read from MH i2c: 01 07 00 [13:32:01]MH_I2C_Read... [13:32:01]Read from MH i2c: 01 07 00 45 20 00 00 00 00 00 FF 0F 7A [13:32:01]process_action close_receipt done [13:32:01]requested_data is exist [13:32:01]produce_requested_data [13:32:01]requested_item fm.sn is exist - process it [13:32:01]wFMCommunicate request_size=4 [13:32:01]MH_SAM_APDU [13:32:01]CAPDU: 80 11 00 00 [13:32:01]Write to MH i2c: E2 08 00 46 20 80 11 00 00 00 00 00 00 E0 [13:32:01]Write i2c OK [13:32:01]MH_I2C_Read... [13:32:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:01]Read from MH i2c: E2 [13:32:01]MH_I2C_Read... [13:32:01]Read from MH i2c: E2 17 00 [13:32:01]MH_I2C_Read... [13:32:01]Read from MH i2c: E2 17 00 46 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 36 [13:32:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:32:01]wFMCommunicate OK [13:32:01]requested_item fd.num is exist - process it [13:32:01]SAM_PROTO_GetFieldsCounters [13:32:01]wFMCommunicate request_size=4 [13:32:01]MH_SAM_APDU [13:32:01]CAPDU: 80 13 00 00 [13:32:01]Write to MH i2c: E2 08 00 47 20 80 13 00 00 00 00 00 00 E3 [13:32:01]Write i2c OK [13:32:01]MH_I2C_Read... [13:32:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:32:01]Read from MH i2c: E2 [13:32:01]MH_I2C_Read... [13:32:01]Read from MH i2c: E2 62 00 [13:32:01]MH_I2C_Read... [13:32:01]Read from MH i2c: E2 62 00 47 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 63 84 02 00 0E 04 04 00 BF 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 96 [13:32:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 63 84 02 00 0E 04 04 00 BF 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 [13:32:01]wFMCommunicate OK [13:32:01]SAM_PROTO_GetFieldsCounters done [13:32:01]requested_item shift.num is exist - process it [13:32:01]requested_item shift.opened is exist - process it [13:32:01]req_shift_opened [13:32:01]FM_GetShiftState [13:32:01]SAM_PROTO_GetShiftState [13:32:01]wFMCommunicate request_size=4 [13:32:01]MH_SAM_APDU [13:32:01]CAPDU: 80 13 01 00 [13:32:01]Write to MH i2c: E2 08 00 48 20 80 13 01 00 00 00 00 00 E5 [13:32:01]Write i2c OK [13:32:01]MH_I2C_Read... [13:32:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:01]Read from MH i2c: E2 [13:32:01]MH_I2C_Read... [13:32:01]Read from MH i2c: E2 0E 00 [13:32:01]MH_I2C_Read... [13:32:01]Read from MH i2c: E2 0E 00 48 20 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 65 [13:32:01]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [13:32:01]wFMCommunicate OK [13:32:01]SAM_PROTO_GetShiftState done [13:32:01]FM_GetShiftState done [13:32:01]req_shift_opened done [13:32:01]requested_item shift.open_date is exist - process it [13:32:01]req_shift_open_date [13:32:02]req_shift_open_date done [13:32:02]produce_requested_data done [13:32:02]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164963,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [13:32:02]process_action_free close_receipt [13:32:02]json_value_free [13:32:02]json_value_free done [13:32:02]process_json_proto returns [13:32:02]Send response to host [13:32:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164963,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [13:32:02]free response buf [13:32:02]execute_script done [13:32:02]execute_script returns [13:32:02]free content buf [13:32:02]Sock 7.Close socket [13:32:02]Sock 7.Thread stoped [13:32:05]OFD Sender: No OFD packet to send [13:32:10]OFD Sender: No OFD packet to send [13:32:15]OFD Sender: No OFD packet to send [13:32:20]OFD Sender: No OFD packet to send [13:32:25]OFD Sender: No OFD packet to send [13:32:30]OFD Sender: No OFD packet to send [13:32:35]OFD Sender: No OFD packet to send [13:32:40]OFD Sender: No OFD packet to send [13:32:45]OFD Sender: No OFD packet to send [13:32:50]OFD Sender: No OFD packet to send [13:32:55]OFD Sender: No OFD packet to send [13:33:00]OFD Sender: No OFD packet to send [13:33:05]OFD Sender: No OFD packet to send [13:33:10]OFD Sender: No OFD packet to send [13:33:15]OFD Sender: No OFD packet to send [13:33:20]OFD Sender: No OFD packet to send [13:33:25]OFD Sender: No OFD packet to send [13:33:30]OFD Sender: No OFD packet to send [13:33:35]OFD Sender: No OFD packet to send [13:33:40]OFD Sender: No OFD packet to send [13:33:45]OFD Sender: No OFD packet to send [13:33:50]OFD Sender: No OFD packet to send [13:33:55]OFD Sender: No OFD packet to send [13:34:00]OFD Sender: No OFD packet to send [13:34:05]OFD Sender: No OFD packet to send [13:34:10]OFD Sender: No OFD packet to send [13:34:15]OFD Sender: No OFD packet to send [13:34:20]OFD Sender: No OFD packet to send [13:34:25]OFD Sender: No OFD packet to send [13:34:30]OFD Sender: No OFD packet to send [13:34:35]OFD Sender: No OFD packet to send [13:34:40]OFD Sender: No OFD packet to send [13:34:45]OFD Sender: No OFD packet to send [13:34:51]OFD Sender: No OFD packet to send [13:34:53]accept exits with 9 [13:34:53]New connection [13:34:53]New thread 3067473252 created [13:34:53]Thread 3067616612 joined [13:34:53]Waiting for new connection... [13:34:53] Sock 9.Parse request [13:34:53]Sock 9.Check first char [13:34:53]Sock 9.First char is OK [13:34:53]request: POST /json_proto HTTP/1.0 [13:34:53]Method: POST [13:34:53]URL: /json_proto [13:34:53]Method is POST - this is cgi request [13:34:53]url: /json_proto [13:34:53]query_string will be loaded in cgi processing [13:34:53]execute_cgi json_proto POST (null) [13:34:53]execute_cgi path=json_proto method=POST [13:34:53]POST find Content-Length [13:34:53]Host: 172.17.56.4:8080 [13:34:53]Content-Length: 674 [13:34:53]Content-Type: application/json [13:34:53] [13:34:53]POST finish read [13:34:53]Found Content-Length = 674 [13:34:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459062", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 5.570, "sum" : 400.48, "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:34:53]execute_script... [13:34: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)459062", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 5.570, "sum" : 400.48, "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:34:53]POST & json_proto [13:34:53]process_json_proto [13:34:53]json parsed OK: [13:34:53]protocol is kg_v1.0 [13:34:53]action value=close_receipt [13:34:53]process_action close_receipt [13:34:53]cmd_close_receipt [13:34:53]MH_GetDate [13:34:53]Write to MH i2c: F0 00 00 49 20 58 [13:34:53]Write i2c OK [13:34:53]MH_I2C_Read... [13:34:53]Read from MH i2c: F0 [13:34:53]MH_I2C_Read... [13:34:53]Read from MH i2c: F0 09 00 [13:34:53]MH_I2C_Read... [13:34:53]Read from MH i2c: F0 09 00 49 20 00 FF D3 93 66 C9 DC B2 64 E7 [13:34:53]GetLastDocTimeStamp 1720963919 [13:34:53]current date 1720964095 [13:34:53]FM_GetShiftState [13:34:53]SAM_PROTO_GetShiftState [13:34:53]wFMCommunicate request_size=4 [13:34:53]MH_SAM_APDU [13:34:53]CAPDU: 80 13 01 00 [13:34:53]Write to MH i2c: E2 08 00 4A 20 80 13 01 00 00 00 00 00 E7 [13:34:53]Write i2c OK [13:34:53]MH_I2C_Read... [13:34:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:34:53]Read from MH i2c: E2 [13:34:53]MH_I2C_Read... [13:34:53]Read from MH i2c: E2 0E 00 [13:34:53]MH_I2C_Read... [13:34:53]Read from MH i2c: E2 0E 00 4A 20 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 67 [13:34:53]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [13:34:53]wFMCommunicate OK [13:34:53]SAM_PROTO_GetShiftState done [13:34:53]FM_GetShiftState done [13:34:53]opened in 1720917342 [13:34:53]opened+sec_in_day 1721003742 [13:34:53]quantity*price = 40048 [13:34:53]sum+1 = 40049 [13:34:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.48 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.53 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 162 14.07.2024 13:34 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164964 ФПД: 219485196681722 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T133455&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164964&fm=219485196681722&tin=02508201610067®Number=0000000000090829&sum=40000 [13:34:54]StoreToDocumentArchive [13:34:54]shift 447 fd 164964 [13:34:54]save to /storage/0447/doc_00164964 [13:34:54]save last doc name /storage/0447/doc_00164964 to /storage/kkm_last_doc_name [13:34:54]save OK [13:34:54]Clear old archive folders... [13:34:54]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:34:54]tlvbuf is 00746DC0 [13:34:54]SAM_PROTO_ClearQueue [13:34:54]wFMCommunicate request_size=4 [13:34:54]MH_SAM_APDU [13:34:54]CAPDU: 80 09 00 00 [13:34:54]Write to MH i2c: E2 08 00 57 20 80 09 00 00 00 00 00 00 E9 [13:34:54]Write i2c OK [13:34:54]MH_I2C_Read... [13:34:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:34:54]Read from MH i2c: E2 [13:34:54]MH_I2C_Read... [13:34:54]Read from MH i2c: E2 03 00 [13:34:54]MH_I2C_Read... [13:34:54]Read from MH i2c: E2 03 00 57 20 00 90 00 EB [13:34:54]RAPDU: 90 00 [13:34:54]wFMCommunicate OK [13:34:54]SAM_PROTO_ClearQueue done [13:34:54]KKMCreateOFDPacket [13:34:54]OFDProtocolAddRootSTLVToBuf [13:34:54]FM_MakeSignedData [13:34:54]FM_MakeSignedData [13:34:54]SAM_PROTO_SignData [13:34:54]wFMCommunicate request_size=4 [13:34:54]MH_SAM_APDU [13:34:54]CAPDU: 80 0D 01 02 [13:34:54]Write to MH i2c: E2 08 00 58 20 80 0D 01 02 00 00 00 00 F1 [13:34:54]Write i2c OK [13:34:54]MH_I2C_Read... [13:34:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:34:54]Read from MH i2c: E2 [13:34:54]MH_I2C_Read... [13:34:54]Read from MH i2c: E2 03 00 [13:34:54]MH_I2C_Read... [13:34:54]Read from MH i2c: E2 03 00 58 20 00 90 00 EC [13:34:54]RAPDU: 90 00 [13:34:54]wFMCommunicate OK [13:34:54]wFMCommunicate request_size=255 [13:34:54]MH_SAM_APDU [13:34: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 C2 15 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 70 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 9D 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 A2 00 00 00 F4 03 04 00 FF D3 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 64 84 02 00 35 04 06 00 C7 9E E1 2E [13:34:54]Write to MH i2c: E2 02 01 59 20 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C2 15 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 70 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 9D 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 A2 00 00 00 F4 03 04 00 FF D3 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 64 84 02 00 35 04 06 00 C7 9E E1 2E 00 00 BC [13:34:54]Write i2c OK [13:34:54]MH_I2C_Read... [13:34:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:34:55]Read from MH i2c: E2 [13:34:55]MH_I2C_Read... [13:34:55]Read from MH i2c: E2 03 00 [13:34:55]MH_I2C_Read... [13:34:55]Read from MH i2c: E2 03 00 59 20 00 90 00 ED [13:34:55]RAPDU: 90 00 [13:34:55]wFMCommunicate OK [13:34:55]wFMCommunicate request_size=7 [13:34:55]MH_SAM_APDU [13:34:55]CAPDU: 80 0D 02 02 02 81 FA [13:34:55]Write to MH i2c: E2 0A 00 5A 20 80 0D 02 02 02 00 81 FA 00 00 73 [13:34:55]Write i2c OK [13:34:55]MH_I2C_Read... [13:34:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:34:55]Read from MH i2c: E2 [13:34:55]MH_I2C_Read... [13:34:55]Read from MH i2c: E2 03 00 [13:34:55]MH_I2C_Read... [13:34:55]Read from MH i2c: E2 03 00 5A 20 00 90 00 EE [13:34:55]RAPDU: 90 00 [13:34:55]wFMCommunicate OK [13:34:55]wFMCommunicate request_size=4 [13:34:55]MH_SAM_APDU [13:34:55]CAPDU: 80 0D 03 02 [13:34:55]Write to MH i2c: E2 08 00 5B 20 80 0D 03 02 00 00 00 00 F6 [13:34:55]Write i2c OK [13:34:55]MH_I2C_Read... [13:34:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:34:55]Read from MH i2c: E2 [13:34:55]MH_I2C_Read... [13:34:55]Read from MH i2c: E2 0B 00 [13:34:55]MH_I2C_Read... [13:34:55]Read from MH i2c: E2 0B 00 5B 20 00 04 FE F0 EC 38 F7 AF 54 90 00 07 [13:34:55]RAPDU: 04 FE F0 EC 38 F7 AF 54 90 00 [13:34:55]wFMCommunicate OK [13:34:55]SAM_PROTO_SignData done [13:34:55]FM_MakeSignedData done [13:34:55]CreateOFDProtocolMessage [13:34:55]wFMCommunicate request_size=4 [13:34:55]MH_SAM_APDU [13:34:55]CAPDU: 80 11 00 00 [13:34:55]Write to MH i2c: E2 08 00 5C 20 80 11 00 00 00 00 00 00 F6 [13:34:55]Write i2c OK [13:34:55]MH_I2C_Read... [13:34:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:34:55]Read from MH i2c: E2 [13:34:55]MH_I2C_Read... [13:34:55]Read from MH i2c: E2 17 00 [13:34:55]MH_I2C_Read... [13:34:55]Read from MH i2c: E2 17 00 5C 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 4C [13:34:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:34:55]wFMCommunicate OK [13:34:55]CreateOFDProtocolMessage done [13:34:55]OFDSenderStorePacket 164964 [13:34:55]StoreOFDPacket docnum=164964 [13:34:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 79 25 04 01 C4 0A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C2 15 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 70 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 9D 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 A2 00 00 00 F4 03 04 00 FF D3 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 64 84 02 00 35 04 06 00 C7 9E E1 2E 81 FA 04 FE F0 EC 38 F7 AF 54 [13:34:55]CheckFolder [13:34:55]dirname=/storage/ofd_packets [13:34:55]CheckFolder done [13:34:55]ProducePacketName [13:34:55]name=ofd_packets/00164964 [13:34:55]NVStorageSaveData ofd_packets/00164964 [13:34:55]File name is /storage/ofd_packets/00164964 [13:34:55]Write 298 bytes [13:34:55]NVStorageSaveData done [13:34:55]OFDSenderStorePacket done [13:34:55]KKMCreateOFDPacket done [13:34:55]NVStorageSaveData kkm_last_timestamp [13:34:55]File name is /storage/kkm_last_timestamp [13:34:55]Write 4 bytes [13:34:55]NVStorageSaveData done [13:34:55]ExternCall_PrintAddStr [13:34:55]wPrintStart [13:34:55]Write to MH i2c: 01 00 00 5D 20 7D [13:34:55]Write i2c OK [13:34:55]MH_I2C_Read... [13:34:55]Read from MH i2c: 01 [13:34:55]MH_I2C_Read... [13:34:55]Read from MH i2c: 01 07 00 [13:34:55]MH_I2C_Read... [13:34:55]Read from MH i2c: 01 07 00 5D 20 00 00 00 00 00 FF 0F 92 [13:34:55]RasterBufferAndPrint [13:34:55]line Счет N : (1)459062 [13:34:55]line ИНН: 02508201610067 [13:34:55]line Контрольно-Кассовый Чек [13:34:55]line ПРОДАЖА [13:34:55]line ТРК (МРК, ГНК) : 21 [13:34:55]line Товар: 2710194210 [13:34:55]line ДТ-К-5 [13:34:55]line 5.570 * 71.90 [13:34:55]line = 400.48 [13:34:55]line НДС 12% НСП 1% [13:34:55]line > о реализуемом товаре [13:34:55]line ОКРУГЛЕНИЕ: -0.48 [13:34:55]line ИТОГО: 400.00 [13:34:55]line Внесено: 400.00 [13:34:55]line СДАЧА: 0.00 [13:34:55]line НСП 1% : 3.54 [13:34:55]line НДС 12% : 42.53 [13:34:55]line Наличными: 400.00 [13:34:55]line Безнал.: 0.00 [13:34:55]line Место: АЗС № 72 "Партнер Нефть" [13:34:55]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:34:55]line СНО: Общий режим [13:34:55]line Чек 162 14.07.2024 13:34 [13:34:55]line Смена: 447 ФФД: 1.0 [13:34:55]line ЗНМ: 0300000160 [13:34:55]line РНМ: 0000000000090829 [13:34:55]line Версия ККМ: 001 [13:34:55]line ФМ: 0000000000874718 [13:34:55]line ФД: 164964 [13:34:55]line ФПД: 219485196681722 [13:34:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T133455&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164964&fm=219485196681722&tin=02508201610067®Number=0000000000090829&sum=40000 [13:34:55]OFD Sender: Processing packet 164964 [packets to send 104, broken 103] [13:34:55]ProducePacketName [13:34:55]name=ofd_packets/00164964 [13:34:55]OFD Sender: To server: pG, [13:34:55]CommunicateWithHost lk.salyk.kg:30040 [13:34:55]ConnectInit lk.salyk.kg [13:34:55]written 0, free lines is 4095 [13:34:55]Connected sock=10 [13:34:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 79 25 04 01 C4 0A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C2 15 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 70 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 9D 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 A2 00 00 00 F4 03 04 00 FF D3 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 64 84 02 00 35 04 06 00 C7 9E E1 2E 81 FA 04 FE F0 EC 38 F7 AF 54 [13:34:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 F3 90 47 00 A0 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 38 37 34 37 31 38 10 04 04 00 64 84 02 00 F4 03 04 00 8C 7A 93 66 B6 04 01 00 00 7B E3 45 D8 E0 2C 95 16 [13:34:55]CommunicateWithHost err = 0 [13:34:55]CheckOFDResponse [13:34:55]1017 (14) - 77093643461234 [13:34:55]1041 (16) - 0000000000874718 [13:34:55]1040 (4) - 164964 [13:34:55]1012 (4) - 14.07.2024 07:13 [13:34:55]1206 (1) - 0 [13:34:55]OFD Sender: Remove packet 164964 [13:34:55]ProducePacketName [13:34:55]name=ofd_packets/00164964 [13:34:55]NVStorageDeleteData [13:34:55]Write to MH i2c: 01 00 00 87 20 A7 [13:34:55]Write i2c OK [13:34:55]MH_I2C_Read... [13:34:55]Read from MH i2c: 01 [13:34:55]MH_I2C_Read... [13:34:55]Read from MH i2c: 01 07 00 [13:34:55]MH_I2C_Read... [13:34:55]Read from MH i2c: 01 07 00 87 20 00 00 00 00 00 F2 0C AC [13:34:55]RasterBufferAndPrint [13:34:55]line [13:34:55]line [13:34:55]line [13:34:55]line [13:34:55]line [13:34:55]written 0, free lines is 3321 [13:34:56]MH_Cut [13:34:56]Write to MH i2c: D1 01 00 8E 20 01 80 [13:34:56]Write i2c OK [13:34:56]MH_I2C_Read... [13:34:56]Read from MH i2c: D1 [13:34:56]MH_I2C_Read... [13:34:56]Read from MH i2c: D1 01 00 [13:34:56]MH_I2C_Read... [13:34:56]Read from MH i2c: D1 01 00 8E 20 00 7F [13:34:56]Write to MH i2c: 01 00 00 8F 20 AF [13:34:56]Write i2c OK [13:34:56]MH_I2C_Read... [13:34:56]OFD Sender: No OFD packet to send [13:34:56]*** Cut start [13:34:56]*** Partial cut [13:34:56]*** CUTSNS_PIN = 1 [13:34:56]*** CUTSNS_PIN = 0 [13:34:56]*** Brake cut motor [13:34:57]Read from MH i2c: 01 [13:34:57]MH_I2C_Read... [13:34:57]*** Stop cut motor [13:34:57]*** Cut end [13:34:57]Read from MH i2c: 01 07 00 [13:34:57]MH_I2C_Read... [13:34:57]Read from MH i2c: 01 07 00 8F 20 00 00 00 00 00 FF 0F C4 [13:34:57]process_action close_receipt done [13:34:57]requested_data is exist [13:34:57]produce_requested_data [13:34:57]requested_item fm.sn is exist - process it [13:34:57]wFMCommunicate request_size=4 [13:34:57]MH_SAM_APDU [13:34:57]CAPDU: 80 11 00 00 [13:34:57]Write to MH i2c: E2 08 00 90 20 80 11 00 00 00 00 00 00 2A [13:34:57]Write i2c OK [13:34:57]MH_I2C_Read... [13:34:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:34:57]Read from MH i2c: E2 [13:34:57]MH_I2C_Read... [13:34:57]Read from MH i2c: E2 17 00 [13:34:57]MH_I2C_Read... [13:34:57]Read from MH i2c: E2 17 00 90 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 80 [13:34:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:34:57]wFMCommunicate OK [13:34:57]requested_item fd.num is exist - process it [13:34:57]SAM_PROTO_GetFieldsCounters [13:34:57]wFMCommunicate request_size=4 [13:34:57]MH_SAM_APDU [13:34:57]CAPDU: 80 13 00 00 [13:34:57]Write to MH i2c: E2 08 00 91 20 80 13 00 00 00 00 00 00 2D [13:34:57]Write i2c OK [13:34:57]MH_I2C_Read... [13:34:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:34:57]Read from MH i2c: E2 [13:34:57]MH_I2C_Read... [13:34:57]Read from MH i2c: E2 62 00 [13:34:57]MH_I2C_Read... [13:34:57]Read from MH i2c: E2 62 00 91 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 64 84 02 00 0E 04 04 00 BF 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 E4 [13:34:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 64 84 02 00 0E 04 04 00 BF 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 [13:34:57]wFMCommunicate OK [13:34:57]SAM_PROTO_GetFieldsCounters done [13:34:57]requested_item shift.num is exist - process it [13:34:57]requested_item shift.opened is exist - process it [13:34:57]req_shift_opened [13:34:57]FM_GetShiftState [13:34:57]SAM_PROTO_GetShiftState [13:34:57]wFMCommunicate request_size=4 [13:34:57]MH_SAM_APDU [13:34:57]CAPDU: 80 13 01 00 [13:34:57]Write to MH i2c: E2 08 00 92 20 80 13 01 00 00 00 00 00 2F [13:34:57]Write i2c OK [13:34:57]MH_I2C_Read... [13:34:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:34:57]Read from MH i2c: E2 [13:34:57]MH_I2C_Read... [13:34:57]Read from MH i2c: E2 0E 00 [13:34:57]MH_I2C_Read... [13:34:57]Read from MH i2c: E2 0E 00 92 20 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 AF [13:34:57]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [13:34:57]wFMCommunicate OK [13:34:57]SAM_PROTO_GetShiftState done [13:34:57]FM_GetShiftState done [13:34:57]req_shift_opened done [13:34:57]requested_item shift.open_date is exist - process it [13:34:57]req_shift_open_date [13:34:57]req_shift_open_date done [13:34:57]produce_requested_data done [13:34:57]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164964,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [13:34:57]process_action_free close_receipt [13:34:57]json_value_free [13:34:57]json_value_free done [13:34:57]process_json_proto returns [13:34:57]Send response to host [13:34:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164964,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [13:34:57]free response buf [13:34:57]execute_script done [13:34:57]execute_script returns [13:34:57]free content buf [13:34:57]Sock 9.Close socket [13:34:57]Sock 9.Thread stoped [13:35:01]OFD Sender: No OFD packet to send [13:35:06]OFD Sender: No OFD packet to send [13:35:11]OFD Sender: No OFD packet to send [13:35:16]OFD Sender: No OFD packet to send [13:35:21]OFD Sender: No OFD packet to send [13:35:26]OFD Sender: No OFD packet to send [13:35:31]OFD Sender: No OFD packet to send [13:35:36]OFD Sender: No OFD packet to send [13:35:41]OFD Sender: No OFD packet to send [13:35:46]OFD Sender: No OFD packet to send [13:35:51]OFD Sender: No OFD packet to send [13:35:56]OFD Sender: No OFD packet to send [13:36:01]OFD Sender: No OFD packet to send [13:36:06]OFD Sender: No OFD packet to send [13:36:11]OFD Sender: No OFD packet to send [13:36:16]OFD Sender: No OFD packet to send [13:36:21]OFD Sender: No OFD packet to send [13:36:26]OFD Sender: No OFD packet to send [13:36:31]OFD Sender: No OFD packet to send [13:36:36]OFD Sender: No OFD packet to send [13:36:41]OFD Sender: No OFD packet to send [13:36:46]OFD Sender: No OFD packet to send [13:36:51]OFD Sender: No OFD packet to send [13:36:56]OFD Sender: No OFD packet to send [13:37:01]OFD Sender: No OFD packet to send [13:37:06]OFD Sender: No OFD packet to send [13:37:11]OFD Sender: No OFD packet to send [13:37:16]OFD Sender: No OFD packet to send [13:37:21]OFD Sender: No OFD packet to send [13:37:26]OFD Sender: No OFD packet to send [13:37:31]OFD Sender: No OFD packet to send [13:37:36]OFD Sender: No OFD packet to send [13:37:41]OFD Sender: No OFD packet to send [13:37:46]OFD Sender: No OFD packet to send [13:37:51]OFD Sender: No OFD packet to send [13:37:56]OFD Sender: No OFD packet to send [13:38:01]OFD Sender: No OFD packet to send [13:38:06]OFD Sender: No OFD packet to send [13:38:11]OFD Sender: No OFD packet to send [13:38:16]OFD Sender: No OFD packet to send [13:38:21]OFD Sender: No OFD packet to send [13:38:26]OFD Sender: No OFD packet to send [13:38:31]OFD Sender: No OFD packet to send [13:38:36]OFD Sender: No OFD packet to send [13:38:41]OFD Sender: No OFD packet to send [13:38:46]OFD Sender: No OFD packet to send [13:38:51]OFD Sender: No OFD packet to send [13:38:56]OFD Sender: No OFD packet to send [13:39:01]OFD Sender: No OFD packet to send [13:39:06]OFD Sender: No OFD packet to send [13:39:11]OFD Sender: No OFD packet to send [13:39:16]OFD Sender: No OFD packet to send [13:39:21]OFD Sender: No OFD packet to send [13:39:26]OFD Sender: No OFD packet to send [13:39:31]OFD Sender: No OFD packet to send [13:39:36]OFD Sender: No OFD packet to send [13:39:41]OFD Sender: No OFD packet to send [13:39:46]OFD Sender: No OFD packet to send [13:39:51]OFD Sender: No OFD packet to send [13:39:56]OFD Sender: No OFD packet to send [13:40:01]OFD Sender: No OFD packet to send [13:40:06]OFD Sender: No OFD packet to send [13:40:11]OFD Sender: No OFD packet to send [13:40:16]OFD Sender: No OFD packet to send [13:40:21]OFD Sender: No OFD packet to send [13:40:26]OFD Sender: No OFD packet to send [13:40:31]OFD Sender: No OFD packet to send [13:40:36]OFD Sender: No OFD packet to send [13:40:41]OFD Sender: No OFD packet to send [13:40:46]OFD Sender: No OFD packet to send [13:40:51]OFD Sender: No OFD packet to send [13:40:56]OFD Sender: No OFD packet to send [13:41:01]OFD Sender: No OFD packet to send [13:41:06]OFD Sender: No OFD packet to send [13:41:11]OFD Sender: No OFD packet to send [13:41:16]OFD Sender: No OFD packet to send [13:41:21]OFD Sender: No OFD packet to send [13:41:26]OFD Sender: No OFD packet to send [13:41:31]OFD Sender: No OFD packet to send [13:41:36]OFD Sender: No OFD packet to send [13:41:41]OFD Sender: No OFD packet to send [13:41:46]OFD Sender: No OFD packet to send [13:41:51]OFD Sender: No OFD packet to send [13:41:53]accept exits with 7 [13:41:53]New connection [13:41:53]New thread 3067616612 created [13:41:53]Thread 3067473252 joined [13:41:53]Waiting for new connection... [13:41:53] Sock 7.Parse request [13:41:53]Sock 7.Check first char [13:41:53]Sock 7.First char is OK [13:41:53]request: POST /json_proto HTTP/1.0 [13:41:53]Method: POST [13:41:53]URL: /json_proto [13:41:53]Method is POST - this is cgi request [13:41:53]url: /json_proto [13:41:53]query_string will be loaded in cgi processing [13:41:53]execute_cgi json_proto POST (null) [13:41:53]execute_cgi path=json_proto method=POST [13:41:53]POST find Content-Length [13:41:53]Host: 172.17.56.4:8080 [13:41:53]Content-Length: 682 [13:41:53]Content-Type: application/json [13:41:53] [13:41:53]POST finish read [13:41:53]Found Content-Length = 682 [13:41:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459063", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:53]execute_script... [13:41:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459063", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:53]POST & json_proto [13:41:53]process_json_proto [13:41:53]json parsed OK: [13:41:53]protocol is kg_v1.0 [13:41:53]action value=close_receipt [13:41:53]process_action close_receipt [13:41:53]cmd_close_receipt [13:41:53]MH_GetDate [13:41:53]Write to MH i2c: F0 00 00 93 20 A2 [13:41:53]Write i2c OK [13:41:53]MH_I2C_Read... [13:41:53]Read from MH i2c: F0 [13:41:53]MH_I2C_Read... [13:41:53]Read from MH i2c: F0 09 00 [13:41:53]MH_I2C_Read... [13:41:53]Read from MH i2c: F0 09 00 93 20 00 A2 D5 93 66 C9 DC B2 64 D6 [13:41:53]GetLastDocTimeStamp 1720964095 [13:41:53]current date 1720964514 [13:41:53]FM_GetShiftState [13:41:53]SAM_PROTO_GetShiftState [13:41:53]wFMCommunicate request_size=4 [13:41:53]MH_SAM_APDU [13:41:53]CAPDU: 80 13 01 00 [13:41:53]Write to MH i2c: E2 08 00 94 20 80 13 01 00 00 00 00 00 31 [13:41:53]Write i2c OK [13:41:53]MH_I2C_Read... [13:41:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:53]Read from MH i2c: E2 [13:41:53]MH_I2C_Read... [13:41:53]Read from MH i2c: E2 0E 00 [13:41:53]MH_I2C_Read... [13:41:53]Read from MH i2c: E2 0E 00 94 20 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 B1 [13:41:53]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [13:41:53]wFMCommunicate OK [13:41:53]SAM_PROTO_GetShiftState done [13:41:53]FM_GetShiftState done [13:41:53]opened in 1720917342 [13:41:53]opened+sec_in_day 1721003742 [13:41:53]quantity*price = 100016 [13:41:53]sum+1 = 100017 [13:41: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 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 163 14.07.2024 13:41 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164965 ФПД: 234718726715013 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T134154&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164965&fm=234718726715013&tin=02508201610067®Number=0000000000090829&sum=100000 [13:41:54]StoreToDocumentArchive [13:41:54]shift 447 fd 164965 [13:41:54]save to /storage/0447/doc_00164965 [13:41:54]save last doc name /storage/0447/doc_00164965 to /storage/kkm_last_doc_name [13:41:54]save OK [13:41:54]Clear old archive folders... [13:41:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:41:54]tlvbuf is 007B9F50 [13:41:54]SAM_PROTO_ClearQueue [13:41:54]wFMCommunicate request_size=4 [13:41:54]MH_SAM_APDU [13:41:54]CAPDU: 80 09 00 00 [13:41:54]Write to MH i2c: E2 08 00 A1 20 80 09 00 00 00 00 00 00 33 [13:41:54]Write i2c OK [13:41:54]MH_I2C_Read... [13:41:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:41:54]Read from MH i2c: E2 [13:41:54]MH_I2C_Read... [13:41:54]Read from MH i2c: E2 03 00 [13:41:54]MH_I2C_Read... [13:41:54]Read from MH i2c: E2 03 00 A1 20 00 90 00 35 [13:41:54]RAPDU: 90 00 [13:41:54]wFMCommunicate OK [13:41:54]SAM_PROTO_ClearQueue done [13:41:54]KKMCreateOFDPacket [13:41:54]OFDProtocolAddRootSTLVToBuf [13:41:54]FM_MakeSignedData [13:41:54]FM_MakeSignedData [13:41:54]SAM_PROTO_SignData [13:41:54]wFMCommunicate request_size=4 [13:41:54]MH_SAM_APDU [13:41:54]CAPDU: 80 0D 01 02 [13:41:54]Write to MH i2c: E2 08 00 A2 20 80 0D 01 02 00 00 00 00 3B [13:41:54]Write i2c OK [13:41:54]MH_I2C_Read... [13:41:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:41:54]Read from MH i2c: E2 [13:41:54]MH_I2C_Read... [13:41:54]Read from MH i2c: E2 03 00 [13:41:54]MH_I2C_Read... [13:41:54]Read from MH i2c: E2 03 00 A2 20 00 90 00 36 [13:41:54]RAPDU: 90 00 [13:41:54]wFMCommunicate OK [13:41:54]wFMCommunicate request_size=255 [13:41:54]MH_SAM_APDU [13:41:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 A2 D5 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 65 84 02 00 35 04 06 00 D5 [13:41:54]Write to MH i2c: E2 02 01 A3 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 A2 D5 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 65 84 02 00 35 04 06 00 D5 00 00 E9 [13:41:54]Write i2c OK [13:41:54]MH_I2C_Read... [13:41:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:54]Read from MH i2c: E2 [13:41:54]MH_I2C_Read... [13:41:54]Read from MH i2c: E2 03 00 [13:41:54]MH_I2C_Read... [13:41:54]Read from MH i2c: E2 03 00 A3 20 00 90 00 37 [13:41:54]RAPDU: 90 00 [13:41:54]wFMCommunicate OK [13:41:54]wFMCommunicate request_size=10 [13:41:54]MH_SAM_APDU [13:41:54]CAPDU: 80 0D 02 02 05 79 B6 53 F6 85 [13:41:54]Write to MH i2c: E2 0D 00 A4 20 80 0D 02 02 05 00 79 B6 53 F6 85 00 00 45 [13:41:54]Write i2c OK [13:41:54]MH_I2C_Read... [13:41:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:54]Read from MH i2c: E2 [13:41:54]MH_I2C_Read... [13:41:54]Read from MH i2c: E2 03 00 [13:41:54]MH_I2C_Read... [13:41:54]Read from MH i2c: E2 03 00 A4 20 00 90 00 38 [13:41:54]RAPDU: 90 00 [13:41:54]wFMCommunicate OK [13:41:54]wFMCommunicate request_size=4 [13:41:54]MH_SAM_APDU [13:41:54]CAPDU: 80 0D 03 02 [13:41:54]Write to MH i2c: E2 08 00 A5 20 80 0D 03 02 00 00 00 00 40 [13:41:54]Write i2c OK [13:41:54]MH_I2C_Read... [13:41:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:41:54]Read from MH i2c: E2 [13:41:54]MH_I2C_Read... [13:41:54]Read from MH i2c: E2 0B 00 [13:41:54]MH_I2C_Read... [13:41:54]Read from MH i2c: E2 0B 00 A5 20 00 DD 67 C7 48 95 FA 86 50 90 00 F9 [13:41:54]RAPDU: DD 67 C7 48 95 FA 86 50 90 00 [13:41:54]wFMCommunicate OK [13:41:54]SAM_PROTO_SignData done [13:41:54]FM_MakeSignedData done [13:41:54]CreateOFDProtocolMessage [13:41:54]wFMCommunicate request_size=4 [13:41:54]MH_SAM_APDU [13:41:54]CAPDU: 80 11 00 00 [13:41:54]Write to MH i2c: E2 08 00 A6 20 80 11 00 00 00 00 00 00 40 [13:41:54]Write i2c OK [13:41:54]MH_I2C_Read... [13:41:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:54]Read from MH i2c: E2 [13:41:54]MH_I2C_Read... [13:41:54]Read from MH i2c: E2 17 00 [13:41:54]MH_I2C_Read... [13:41:54]Read from MH i2c: E2 17 00 A6 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 96 [13:41:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:41:54]wFMCommunicate OK [13:41:54]CreateOFDProtocolMessage done [13:41:54]OFDSenderStorePacket 164965 [13:41:54]StoreOFDPacket docnum=164965 [13:41:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 E3 31 07 01 1F 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 A2 D5 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 65 84 02 00 35 04 06 00 D5 79 B6 53 F6 85 DD 67 C7 48 95 FA 86 50 [13:41:54]CheckFolder [13:41:54]dirname=/storage/ofd_packets [13:41:54]CheckFolder done [13:41:54]ProducePacketName [13:41:54]name=ofd_packets/00164965 [13:41:54]NVStorageSaveData ofd_packets/00164965 [13:41:54]File name is /storage/ofd_packets/00164965 [13:41:54]Write 301 bytes [13:41:54]NVStorageSaveData done [13:41:54]OFDSenderStorePacket done [13:41:54]KKMCreateOFDPacket done [13:41:54]NVStorageSaveData kkm_last_timestamp [13:41:54]File name is /storage/kkm_last_timestamp [13:41:54]Write 4 bytes [13:41:54]NVStorageSaveData done [13:41:54]OFD Sender: Processing packet 164965 [packets to send 104, broken 103] [13:41:54]ProducePacketName [13:41:54]name=ofd_packets/00164965 [13:41:54]OFD Sender: To server: pG, [13:41:54]CommunicateWithHost lk.salyk.kg:30040 [13:41:54]ConnectInit lk.salyk.kg [13:41:54]ExternCall_PrintAddStr [13:41:54]wPrintStart [13:41:54]Write to MH i2c: 01 00 00 A7 20 C7 [13:41:54]Write i2c OK [13:41:54]MH_I2C_Read... [13:41:54]Read from MH i2c: 01 [13:41:54]MH_I2C_Read... [13:41:54]Read from MH i2c: 01 07 00 [13:41:54]MH_I2C_Read... [13:41:54]Read from MH i2c: 01 07 00 A7 20 00 00 00 00 00 FF 0F DC [13:41:54]RasterBufferAndPrint [13:41:54]line Счет N : (1)459063 [13:41:54]line ИНН: 02508201610067 [13:41:54]line Контрольно-Кассовый Чек [13:41:54]line ПРОДАЖА [13:41:54]line ТРК (МРК, ГНК) : 22 [13:41:54]line Товар: 2710124130 [13:41:54]line Аи-92-К-5 [13:41:54]line 15.200 * 65.80 [13:41:54]line = 1000.16 [13:41:54]line НДС 12% НСП 1% [13:41:54]line > о реализуемом товаре [13:41:54]line ОКРУГЛЕНИЕ: -0.16 [13:41:54]line ИТОГО: 1000.00 [13:41:54]line Внесено: 1000.00 [13:41:54]line СДАЧА: 0.00 [13:41:54]line НСП 1% : 8.85 [13:41:54]line НДС 12% : 106.21 [13:41:54]line Наличными: 1000.00 [13:41:54]line Безнал.: 0.00 [13:41:54]line Место: АЗС № 72 "Партнер Нефть" [13:41:54]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:41:54]line СНО: Общий режим [13:41:54]line Чек 163 14.07.2024 13:41 [13:41:54]line Смена: 447 ФФД: 1.0 [13:41:54]line ЗНМ: 0300000160 [13:41:54]line РНМ: 0000000000090829 [13:41:54]line Версия ККМ: 001 [13:41:54]line ФМ: 0000000000874718 [13:41:54]line ФД: 164965 [13:41:54]line ФПД: 234718726715013 [13:41:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T134154&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164965&fm=234718726715013&tin=02508201610067®Number=0000000000090829&sum=100000 [13:41:55]Connected sock=11 [13:41:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 E3 31 07 01 1F 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 A2 D5 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 65 84 02 00 35 04 06 00 D5 79 B6 53 F6 85 DD 67 C7 48 95 FA 86 50 [13:41:55]written 0, free lines is 4095 [13:41:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 46 D5 47 00 D2 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 65 84 02 00 F4 03 04 00 30 7C 93 66 B6 04 01 00 00 37 7C DD 80 29 B4 94 53 [13:41:55]CommunicateWithHost err = 0 [13:41:55]CheckOFDResponse [13:41:55]1017 (14) - 77093643461234 [13:41:55]1041 (16) - 0000000000874718 [13:41:55]1040 (4) - 164965 [13:41:55]1012 (4) - 14.07.2024 07:20 [13:41:55]1206 (1) - 0 [13:41:55]OFD Sender: Remove packet 164965 [13:41:55]ProducePacketName [13:41:55]name=ofd_packets/00164965 [13:41:55]NVStorageDeleteData [13:41:55]Write to MH i2c: 01 00 00 D1 20 F1 [13:41:55]Write i2c OK [13:41:55]MH_I2C_Read... [13:41:55]Read from MH i2c: 01 [13:41:55]MH_I2C_Read... [13:41:55]Read from MH i2c: 01 07 00 [13:41:55]MH_I2C_Read... [13:41:55]Read from MH i2c: 01 07 00 D1 20 00 00 00 00 00 F1 0C F5 [13:41:55]RasterBufferAndPrint [13:41:55]line [13:41:55]line [13:41:55]line [13:41:55]line [13:41:55]line [13:41:55]written 0, free lines is 3320 [13:41:55]MH_Cut [13:41:55]Write to MH i2c: D1 01 00 D8 20 01 CA [13:41:55]Write i2c OK [13:41:55]MH_I2C_Read... [13:41:55]Read from MH i2c: D1 [13:41:55]MH_I2C_Read... [13:41:55]Read from MH i2c: D1 01 00 [13:41:55]MH_I2C_Read... [13:41:55]Read from MH i2c: D1 01 00 D8 20 00 C9 [13:41:55]Write to MH i2c: 01 00 00 D9 20 F9 [13:41:55]Write i2c OK [13:41:55]MH_I2C_Read... [13:41:55]OFD Sender: No OFD packet to send [13:41:56]*** Cut start [13:41:56]*** Partial cut [13:41:56]*** CUTSNS_PIN = 1 [13:41:56]*** CUTSNS_PIN = 0 [13:41:56]*** Brake cut motor [13:41:56]Read from MH i2c: 01 [13:41:56]MH_I2C_Read... [13:41:56]*** Stop cut motor [13:41:56]*** Cut end [13:41:56]Read from MH i2c: 01 07 00 [13:41:56]MH_I2C_Read... [13:41:56]Read from MH i2c: 01 07 00 D9 20 00 00 00 00 00 FF 0F 0E [13:41:56]process_action close_receipt done [13:41:56]requested_data is exist [13:41:56]produce_requested_data [13:41:56]requested_item fm.sn is exist - process it [13:41:56]wFMCommunicate request_size=4 [13:41:56]MH_SAM_APDU [13:41:56]CAPDU: 80 11 00 00 [13:41:56]Write to MH i2c: E2 08 00 DA 20 80 11 00 00 00 00 00 00 74 [13:41:56]Write i2c OK [13:41:56]MH_I2C_Read... [13:41:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:56]Read from MH i2c: E2 [13:41:56]MH_I2C_Read... [13:41:56]Read from MH i2c: E2 17 00 [13:41:56]MH_I2C_Read... [13:41:56]Read from MH i2c: E2 17 00 DA 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 CA [13:41:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:41:56]wFMCommunicate OK [13:41:56]requested_item fd.num is exist - process it [13:41:56]SAM_PROTO_GetFieldsCounters [13:41:56]wFMCommunicate request_size=4 [13:41:56]MH_SAM_APDU [13:41:56]CAPDU: 80 13 00 00 [13:41:56]Write to MH i2c: E2 08 00 DB 20 80 13 00 00 00 00 00 00 77 [13:41:56]Write i2c OK [13:41:56]MH_I2C_Read... [13:41:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:41:57]Read from MH i2c: E2 [13:41:57]MH_I2C_Read... [13:41:57]Read from MH i2c: E2 62 00 [13:41:57]MH_I2C_Read... [13:41:57]Read from MH i2c: E2 62 00 DB 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 65 84 02 00 0E 04 04 00 BF 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 32 [13:41:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 65 84 02 00 0E 04 04 00 BF 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 [13:41:57]wFMCommunicate OK [13:41:57]SAM_PROTO_GetFieldsCounters done [13:41:57]requested_item shift.num is exist - process it [13:41:57]requested_item shift.opened is exist - process it [13:41:57]req_shift_opened [13:41:57]FM_GetShiftState [13:41:57]SAM_PROTO_GetShiftState [13:41:57]wFMCommunicate request_size=4 [13:41:57]MH_SAM_APDU [13:41:57]CAPDU: 80 13 01 00 [13:41:57]Write to MH i2c: E2 08 00 DC 20 80 13 01 00 00 00 00 00 79 [13:41:57]Write i2c OK [13:41:57]MH_I2C_Read... [13:41:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:57]Read from MH i2c: E2 [13:41:57]MH_I2C_Read... [13:41:57]Read from MH i2c: E2 0E 00 [13:41:57]MH_I2C_Read... [13:41:57]Read from MH i2c: E2 0E 00 DC 20 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 F9 [13:41:57]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [13:41:57]wFMCommunicate OK [13:41:57]SAM_PROTO_GetShiftState done [13:41:57]FM_GetShiftState done [13:41:57]req_shift_opened done [13:41:57]requested_item shift.open_date is exist - process it [13:41:57]req_shift_open_date [13:41:57]req_shift_open_date done [13:41:57]produce_requested_data done [13:41:57]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164965,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [13:41:57]process_action_free close_receipt [13:41:57]json_value_free [13:41:57]json_value_free done [13:41:57]process_json_proto returns [13:41:57]Send response to host [13:41:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164965,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [13:41:57]free response buf [13:41:57]execute_script done [13:41:57]execute_script returns [13:41:57]free content buf [13:41:57]Sock 7.Close socket [13:41:57]Sock 7.Thread stoped [13:42:00]OFD Sender: No OFD packet to send [13:42:05]OFD Sender: No OFD packet to send [13:42:10]OFD Sender: No OFD packet to send [13:42:15]OFD Sender: No OFD packet to send [13:42:20]OFD Sender: No OFD packet to send [13:42:25]OFD Sender: No OFD packet to send [13:42:30]OFD Sender: No OFD packet to send [13:42:35]OFD Sender: No OFD packet to send [13:42:40]OFD Sender: No OFD packet to send [13:42:45]OFD Sender: No OFD packet to send [13:42:50]OFD Sender: No OFD packet to send [13:42:55]OFD Sender: No OFD packet to send [13:43:00]OFD Sender: No OFD packet to send [13:43:05]OFD Sender: No OFD packet to send [13:43:10]OFD Sender: No OFD packet to send [13:43:15]OFD Sender: No OFD packet to send [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:01]OFD Sender: No OFD packet to send [13:45:06]OFD Sender: No OFD packet to send [13:45:11]OFD Sender: No OFD packet to send [13:45:16]OFD Sender: No OFD packet to send [13:45:20]accept exits with 9 [13:45:20]New connection [13:45:20]New thread 3067473252 created [13:45:20]Thread 3067616612 joined [13:45:20]Waiting for new connection... [13:45:20] Sock 9.Parse request [13:45:20]Sock 9.Check first char [13:45:20]Sock 9.First char is OK [13:45:20]request: POST /json_proto HTTP/1.0 [13:45:20]Method: POST [13:45:20]URL: /json_proto [13:45:20]Method is POST - this is cgi request [13:45:20]url: /json_proto [13:45:20]query_string will be loaded in cgi processing [13:45:20]execute_cgi json_proto POST (null) [13:45:20]execute_cgi path=json_proto method=POST [13:45:20]POST find Content-Length [13:45:20]Host: 172.17.56.4:8080 [13:45:20]Content-Length: 677 [13:45:20]Content-Type: application/json [13:45:20] [13:45:20]POST finish read [13:45:20]Found Content-Length = 677 [13:45:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459065", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:45:20]execute_script... [13:45: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)459065", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:45:20]POST & json_proto [13:45:20]process_json_proto [13:45:20]json parsed OK: [13:45:20]protocol is kg_v1.0 [13:45:20]action value=close_receipt [13:45:20]process_action close_receipt [13:45:20]cmd_close_receipt [13:45:20]MH_GetDate [13:45:20]Write to MH i2c: F0 00 00 DD 20 EC [13:45:20]Write i2c OK [13:45:20]MH_I2C_Read... [13:45:20]Read from MH i2c: F0 [13:45:20]MH_I2C_Read... [13:45:20]Read from MH i2c: F0 09 00 [13:45:20]MH_I2C_Read... [13:45:20]Read from MH i2c: F0 09 00 DD 20 00 72 D6 93 66 C9 DC B2 64 F1 [13:45:20]GetLastDocTimeStamp 1720964514 [13:45:20]current date 1720964722 [13:45:20]FM_GetShiftState [13:45:20]SAM_PROTO_GetShiftState [13:45:20]wFMCommunicate request_size=4 [13:45:20]MH_SAM_APDU [13:45:20]CAPDU: 80 13 01 00 [13:45:20]Write to MH i2c: E2 08 00 DE 20 80 13 01 00 00 00 00 00 7B [13:45:20]Write i2c OK [13:45:20]MH_I2C_Read... [13:45:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:45:20]Read from MH i2c: E2 [13:45:20]MH_I2C_Read... [13:45:20]Read from MH i2c: E2 0E 00 [13:45:20]MH_I2C_Read... [13:45:20]Read from MH i2c: E2 0E 00 DE 20 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 FB [13:45:20]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [13:45:20]wFMCommunicate OK [13:45:20]SAM_PROTO_GetShiftState done [13:45:20]FM_GetShiftState done [13:45:20]opened in 1720917342 [13:45:20]opened+sec_in_day 1721003742 [13:45:20]quantity*price = 30004 [13:45:20]sum+1 = 30006 [13:45:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 164 14.07.2024 13:45 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164966 ФПД: 6081912008598 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T134522&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164966&fm=6081912008598&tin=02508201610067®Number=0000000000090829&sum=30000 [13:45:21]StoreToDocumentArchive [13:45:21]shift 447 fd 164966 [13:45:21]save to /storage/0447/doc_00164966 [13:45:21]save last doc name /storage/0447/doc_00164966 to /storage/kkm_last_doc_name [13:45:21]save OK [13:45:21]Clear old archive folders... [13:45:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:45:21]tlvbuf is 007B9760 [13:45:21]SAM_PROTO_ClearQueue [13:45:21]wFMCommunicate request_size=4 [13:45:21]MH_SAM_APDU [13:45:21]CAPDU: 80 09 00 00 [13:45:21]Write to MH i2c: E2 08 00 EB 20 80 09 00 00 00 00 00 00 7D [13:45:21]Write i2c OK [13:45:21]MH_I2C_Read... [13:45:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:45:21]Read from MH i2c: E2 [13:45:21]MH_I2C_Read... [13:45:21]Read from MH i2c: E2 03 00 [13:45:21]MH_I2C_Read... [13:45:21]Read from MH i2c: E2 03 00 EB 20 00 90 00 7F [13:45:21]RAPDU: 90 00 [13:45:21]wFMCommunicate OK [13:45:21]SAM_PROTO_ClearQueue done [13:45:21]KKMCreateOFDPacket [13:45:21]OFDProtocolAddRootSTLVToBuf [13:45:21]FM_MakeSignedData [13:45:21]FM_MakeSignedData [13:45:21]SAM_PROTO_SignData [13:45:21]wFMCommunicate request_size=4 [13:45:21]MH_SAM_APDU [13:45:21]CAPDU: 80 0D 01 02 [13:45:21]Write to MH i2c: E2 08 00 EC 20 80 0D 01 02 00 00 00 00 85 [13:45:21]Write i2c OK [13:45:21]MH_I2C_Read... [13:45:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:45:21]Read from MH i2c: E2 [13:45:21]MH_I2C_Read... [13:45:21]Read from MH i2c: E2 03 00 [13:45:21]MH_I2C_Read... [13:45:21]Read from MH i2c: E2 03 00 EC 20 00 90 00 80 [13:45:21]RAPDU: 90 00 [13:45:21]wFMCommunicate OK [13:45:21]wFMCommunicate request_size=255 [13:45:21]MH_SAM_APDU [13:45:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 72 D6 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 66 84 02 00 35 04 06 00 05 [13:45:21]Write to MH i2c: E2 02 01 ED 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 72 D6 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 66 84 02 00 35 04 06 00 05 00 00 55 [13:45:21]Write i2c OK [13:45:21]MH_I2C_Read... [13:45:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:45:22]Read from MH i2c: E2 [13:45:22]MH_I2C_Read... [13:45:22]Read from MH i2c: E2 03 00 [13:45:22]MH_I2C_Read... [13:45:22]Read from MH i2c: E2 03 00 ED 20 00 90 00 81 [13:45:22]RAPDU: 90 00 [13:45:22]wFMCommunicate OK [13:45:22]wFMCommunicate request_size=10 [13:45:22]MH_SAM_APDU [13:45:22]CAPDU: 80 0D 02 02 05 88 0E 34 6F 96 [13:45:22]Write to MH i2c: E2 0D 00 EE 20 80 0D 02 02 05 00 88 0E 34 6F 96 00 00 61 [13:45:22]Write i2c OK [13:45:22]MH_I2C_Read... [13:45:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:45:22]Read from MH i2c: E2 [13:45:22]MH_I2C_Read... [13:45:22]Read from MH i2c: E2 03 00 [13:45:22]MH_I2C_Read... [13:45:22]Read from MH i2c: E2 03 00 EE 20 00 90 00 82 [13:45:22]RAPDU: 90 00 [13:45:22]wFMCommunicate OK [13:45:22]wFMCommunicate request_size=4 [13:45:22]MH_SAM_APDU [13:45:22]CAPDU: 80 0D 03 02 [13:45:22]Write to MH i2c: E2 08 00 EF 20 80 0D 03 02 00 00 00 00 8A [13:45:22]Write i2c OK [13:45:22]MH_I2C_Read... [13:45:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:45:22]Read from MH i2c: E2 [13:45:22]MH_I2C_Read... [13:45:22]Read from MH i2c: E2 0B 00 [13:45:22]MH_I2C_Read... [13:45:22]Read from MH i2c: E2 0B 00 EF 20 00 2E 2A 81 F2 E7 29 91 92 90 00 89 [13:45:22]RAPDU: 2E 2A 81 F2 E7 29 91 92 90 00 [13:45:22]wFMCommunicate OK [13:45:22]SAM_PROTO_SignData done [13:45:22]FM_MakeSignedData done [13:45:22]CreateOFDProtocolMessage [13:45:22]wFMCommunicate request_size=4 [13:45:22]MH_SAM_APDU [13:45:22]CAPDU: 80 11 00 00 [13:45:22]Write to MH i2c: E2 08 00 F0 20 80 11 00 00 00 00 00 00 8A [13:45:22]Write i2c OK [13:45:22]MH_I2C_Read... [13:45:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:45:22]Read from MH i2c: E2 [13:45:22]MH_I2C_Read... [13:45:22]Read from MH i2c: E2 17 00 [13:45:22]MH_I2C_Read... [13:45:22]Read from MH i2c: E2 17 00 F0 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E0 [13:45:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:45:22]wFMCommunicate OK [13:45:22]CreateOFDProtocolMessage done [13:45:22]OFDSenderStorePacket 164966 [13:45:22]StoreOFDPacket docnum=164966 [13:45:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 A5 41 07 01 2B 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 72 D6 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 66 84 02 00 35 04 06 00 05 88 0E 34 6F 96 2E 2A 81 F2 E7 29 91 92 [13:45:22]CheckFolder [13:45:22]dirname=/storage/ofd_packets [13:45:22]CheckFolder done [13:45:22]ProducePacketName [13:45:22]name=ofd_packets/00164966 [13:45:22]NVStorageSaveData ofd_packets/00164966 [13:45:22]File name is /storage/ofd_packets/00164966 [13:45:22]Write 301 bytes [13:45:22]NVStorageSaveData done [13:45:22]OFDSenderStorePacket done [13:45:22]KKMCreateOFDPacket done [13:45:22]NVStorageSaveData kkm_last_timestamp [13:45:22]File name is /storage/kkm_last_timestamp [13:45:22]Write 4 bytes [13:45:22]NVStorageSaveData done [13:45:22]ExternCall_PrintAddStr [13:45:22]wPrintStart [13:45:22]Write to MH i2c: 01 00 00 F1 20 11 [13:45:22]Write i2c OK [13:45:22]MH_I2C_Read... [13:45:22]Read from MH i2c: 01 [13:45:22]MH_I2C_Read... [13:45:22]Read from MH i2c: 01 07 00 [13:45:22]MH_I2C_Read... [13:45:22]Read from MH i2c: 01 07 00 F1 20 00 00 00 00 00 FF 0F 26 [13:45:22]RasterBufferAndPrint [13:45:22]line Счет N : (1)459065 [13:45:22]line ИНН: 02508201610067 [13:45:22]line Контрольно-Кассовый Чек [13:45:22]line ПРОДАЖА [13:45:22]line ТРК (МРК, ГНК) : 22 [13:45:22]line Товар: 2710124130 [13:45:22]line Аи-92-К-5 [13:45:22]line 4.560 * 65.80 [13:45:22]line = 300.05 [13:45:22]line НДС 12% НСП 1% [13:45:22]line > о реализуемом товаре [13:45:22]line ОКРУГЛЕНИЕ: -0.05 [13:45:22]line ИТОГО: 300.00 [13:45:22]line Внесено: 300.00 [13:45:22]line СДАЧА: 0.00 [13:45:22]line НСП 1% : 2.65 [13:45:22]line НДС 12% : 31.86 [13:45:22]line Наличными: 300.00 [13:45:22]line Безнал.: 0.00 [13:45:22]line Место: АЗС № 72 "Партнер Нефть" [13:45:22]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:45:22]line СНО: Общий режим [13:45:22]line Чек 164 14.07.2024 13:45 [13:45:22]line Смена: 447 ФФД: 1.0 [13:45:22]line ЗНМ: 0300000160 [13:45:22]line РНМ: 0000000000090829 [13:45:22]line Версия ККМ: 001 [13:45:22]line ФМ: 0000000000874718 [13:45:22]line ФД: 164966 [13:45:22]line ФПД: 6081912008598 [13:45:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T134522&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164966&fm=6081912008598&tin=02508201610067®Number=0000000000090829&sum=30000 [13:45:22]written 0, free lines is 4095 [13:45:22]OFD Sender: Processing packet 164966 [packets to send 104, broken 103] [13:45:22]ProducePacketName [13:45:22]name=ofd_packets/00164966 [13:45:22]OFD Sender: To server: pG, [13:45:22]CommunicateWithHost lk.salyk.kg:30040 [13:45:22]ConnectInit lk.salyk.kg [13:45:22]Connected sock=10 [13:45:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 A5 41 07 01 2B 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 72 D6 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 66 84 02 00 35 04 06 00 05 88 0E 34 6F 96 2E 2A 81 F2 E7 29 91 92 [13:45:22]Write to MH i2c: 01 00 00 1B 21 3C [13:45:22]Write i2c OK [13:45:22]MH_I2C_Read... [13:45:22]Read from MH i2c: 01 [13:45:22]MH_I2C_Read... [13:45:22]Read from MH i2c: 01 07 00 [13:45:22]MH_I2C_Read... [13:45:22]Read from MH i2c: 01 07 00 1B 21 00 00 00 00 00 FD 0C 4C [13:45:22]RasterBufferAndPrint [13:45:22]line [13:45:22]line [13:45:22]line [13:45:22]line [13:45:22]line [13:45:22]written 0, free lines is 3331 [13:45:22]MH_Cut [13:45:22]Write to MH i2c: D1 01 00 22 21 01 15 [13:45:22]Write i2c OK [13:45:22]MH_I2C_Read... [13:45:22]Read from MH i2c: D1 [13:45:22]MH_I2C_Read... [13:45:22]Read from MH i2c: D1 01 00 [13:45:22]MH_I2C_Read... [13:45:22]Read from MH i2c: D1 01 00 22 21 00 14 [13:45:22]Write to MH i2c: 01 00 00 23 21 44 [13:45:22]Write i2c OK [13:45:22]MH_I2C_Read... [13:45:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 EB 39 47 00 05 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 66 84 02 00 F4 03 04 00 FF 7C 93 66 B6 04 01 00 00 06 3F 99 52 C8 7C 3E 47 [13:45:22]CommunicateWithHost err = 0 [13:45:22]CheckOFDResponse [13:45:22]1017 (14) - 77093643461234 [13:45:22]1041 (16) - 0000000000874718 [13:45:22]1040 (4) - 164966 [13:45:22]1012 (4) - 14.07.2024 07:23 [13:45:22]1206 (1) - 0 [13:45:22]OFD Sender: Remove packet 164966 [13:45:22]ProducePacketName [13:45:22]name=ofd_packets/00164966 [13:45:22]NVStorageDeleteData [13:45:23]*** Cut start [13:45:23]*** Partial cut [13:45:23]*** CUTSNS_PIN = 1 [13:45:23]OFD Sender: No OFD packet to send [13:45:23]*** CUTSNS_PIN = 0 [13:45:23]*** Brake cut motor [13:45:23]Read from MH i2c: 01 [13:45:23]MH_I2C_Read... [13:45:23]*** Stop cut motor [13:45:23]*** Cut end [13:45:23]Read from MH i2c: 01 07 00 [13:45:23]MH_I2C_Read... [13:45:23]Read from MH i2c: 01 07 00 23 21 00 00 00 00 00 FF 0F 59 [13:45:23]process_action close_receipt done [13:45:23]requested_data is exist [13:45:23]produce_requested_data [13:45:23]requested_item fm.sn is exist - process it [13:45:23]wFMCommunicate request_size=4 [13:45:23]MH_SAM_APDU [13:45:23]CAPDU: 80 11 00 00 [13:45:23]Write to MH i2c: E2 08 00 24 21 80 11 00 00 00 00 00 00 BF [13:45:23]Write i2c OK [13:45:23]MH_I2C_Read... [13:45:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:45:23]Read from MH i2c: E2 [13:45:23]MH_I2C_Read... [13:45:23]Read from MH i2c: E2 17 00 [13:45:23]MH_I2C_Read... [13:45:23]Read from MH i2c: E2 17 00 24 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 15 [13:45:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:45:23]wFMCommunicate OK [13:45:23]requested_item fd.num is exist - process it [13:45:23]SAM_PROTO_GetFieldsCounters [13:45:23]wFMCommunicate request_size=4 [13:45:23]MH_SAM_APDU [13:45:23]CAPDU: 80 13 00 00 [13:45:23]Write to MH i2c: E2 08 00 25 21 80 13 00 00 00 00 00 00 C2 [13:45:23]Write i2c OK [13:45:23]MH_I2C_Read... [13:45:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:45:24]Read from MH i2c: E2 [13:45:24]MH_I2C_Read... [13:45:24]Read from MH i2c: E2 62 00 [13:45:24]MH_I2C_Read... [13:45:24]Read from MH i2c: E2 62 00 25 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 66 84 02 00 0E 04 04 00 BF 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 81 [13:45:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 66 84 02 00 0E 04 04 00 BF 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 [13:45:24]wFMCommunicate OK [13:45:24]SAM_PROTO_GetFieldsCounters done [13:45:24]requested_item shift.num is exist - process it [13:45:24]requested_item shift.opened is exist - process it [13:45:24]req_shift_opened [13:45:24]FM_GetShiftState [13:45:24]SAM_PROTO_GetShiftState [13:45:24]wFMCommunicate request_size=4 [13:45:24]MH_SAM_APDU [13:45:24]CAPDU: 80 13 01 00 [13:45:24]Write to MH i2c: E2 08 00 26 21 80 13 01 00 00 00 00 00 C4 [13:45:24]Write i2c OK [13:45:24]MH_I2C_Read... [13:45:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:45:24]Read from MH i2c: E2 [13:45:24]MH_I2C_Read... [13:45:24]Read from MH i2c: E2 0E 00 [13:45:24]MH_I2C_Read... [13:45:24]Read from MH i2c: E2 0E 00 26 21 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 44 [13:45:24]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [13:45:24]wFMCommunicate OK [13:45:24]SAM_PROTO_GetShiftState done [13:45:24]FM_GetShiftState done [13:45:24]req_shift_opened done [13:45:24]requested_item shift.open_date is exist - process it [13:45:24]req_shift_open_date [13:45:24]req_shift_open_date done [13:45:24]produce_requested_data done [13:45:24]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164966,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [13:45:24]process_action_free close_receipt [13:45:24]json_value_free [13:45:24]json_value_free done [13:45:24]process_json_proto returns [13:45:24]Send response to host [13:45:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164966,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [13:45:24]free response buf [13:45:24]execute_script done [13:45:24]execute_script returns [13:45:24]free content buf [13:45:24]Sock 9.Close socket [13:45:24]Sock 9.Thread stoped [13:45:28]OFD Sender: No OFD packet to send [13:45:29]accept exits with 7 [13:45:29]New connection [13:45:29]New thread 3067616612 created [13:45:29]Thread 3067473252 joined [13:45:29]Waiting for new connection... [13:45:29] Sock 7.Parse request [13:45:29]Sock 7.Check first char [13:45:29]Sock 7.First char is OK [13:45:29]request: POST /json_proto HTTP/1.0 [13:45:29]Method: POST [13:45:29]URL: /json_proto [13:45:29]Method is POST - this is cgi request [13:45:29]url: /json_proto [13:45:29]query_string will be loaded in cgi processing [13:45:29]execute_cgi json_proto POST (null) [13:45:29]execute_cgi path=json_proto method=POST [13:45:29]POST find Content-Length [13:45:29]Host: 172.17.56.4:8080 [13:45:29]Content-Length: 682 [13:45:29]Content-Type: application/json [13:45:29] [13:45:29]POST finish read [13:45:29]Found Content-Length = 682 [13:45:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459064", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:45:29]execute_script... [13:45:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459064", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:45:29]POST & json_proto [13:45:29]process_json_proto [13:45:29]json parsed OK: [13:45:29]protocol is kg_v1.0 [13:45:29]action value=close_receipt [13:45:29]process_action close_receipt [13:45:29]cmd_close_receipt [13:45:29]MH_GetDate [13:45:29]Write to MH i2c: F0 00 00 27 21 37 [13:45:29]Write i2c OK [13:45:29]MH_I2C_Read... [13:45:29]Read from MH i2c: F0 [13:45:29]MH_I2C_Read... [13:45:29]Read from MH i2c: F0 09 00 [13:45:29]MH_I2C_Read... [13:45:29]Read from MH i2c: F0 09 00 27 21 00 7B D6 93 66 C9 DC B2 64 45 [13:45:29]GetLastDocTimeStamp 1720964722 [13:45:29]current date 1720964731 [13:45:29]FM_GetShiftState [13:45:29]SAM_PROTO_GetShiftState [13:45:29]wFMCommunicate request_size=4 [13:45:29]MH_SAM_APDU [13:45:29]CAPDU: 80 13 01 00 [13:45:29]Write to MH i2c: E2 08 00 28 21 80 13 01 00 00 00 00 00 C6 [13:45:29]Write i2c OK [13:45:29]MH_I2C_Read... [13:45:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:45:30]Read from MH i2c: E2 [13:45:30]MH_I2C_Read... [13:45:30]Read from MH i2c: E2 0E 00 [13:45:30]MH_I2C_Read... [13:45:30]Read from MH i2c: E2 0E 00 28 21 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 46 [13:45:30]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [13:45:30]wFMCommunicate OK [13:45:30]SAM_PROTO_GetShiftState done [13:45:30]FM_GetShiftState done [13:45:30]opened in 1720917342 [13:45:30]opened+sec_in_day 1721003742 [13:45:30]quantity*price = 100016 [13:45:30]sum+1 = 100017 [13:45: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 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 165 14.07.2024 13:45 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164967 ФПД: 6480373179393 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T134531&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164967&fm=6480373179393&tin=02508201610067®Number=0000000000090829&sum=100000 [13:45:31]StoreToDocumentArchive [13:45:31]shift 447 fd 164967 [13:45:31]save to /storage/0447/doc_00164967 [13:45:31]save last doc name /storage/0447/doc_00164967 to /storage/kkm_last_doc_name [13:45:31]save OK [13:45:31]Clear old archive folders... [13:45:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:45:31]tlvbuf is B6F4A9B0 [13:45:31]SAM_PROTO_ClearQueue [13:45:31]wFMCommunicate request_size=4 [13:45:31]MH_SAM_APDU [13:45:31]CAPDU: 80 09 00 00 [13:45:31]Write to MH i2c: E2 08 00 35 21 80 09 00 00 00 00 00 00 C8 [13:45:31]Write i2c OK [13:45:31]MH_I2C_Read... [13:45:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:45:31]Read from MH i2c: E2 [13:45:31]MH_I2C_Read... [13:45:31]Read from MH i2c: E2 03 00 [13:45:31]MH_I2C_Read... [13:45:31]Read from MH i2c: E2 03 00 35 21 00 90 00 CA [13:45:31]RAPDU: 90 00 [13:45:31]wFMCommunicate OK [13:45:31]SAM_PROTO_ClearQueue done [13:45:31]KKMCreateOFDPacket [13:45:31]OFDProtocolAddRootSTLVToBuf [13:45:31]FM_MakeSignedData [13:45:31]FM_MakeSignedData [13:45:31]SAM_PROTO_SignData [13:45:31]wFMCommunicate request_size=4 [13:45:31]MH_SAM_APDU [13:45:31]CAPDU: 80 0D 01 02 [13:45:31]Write to MH i2c: E2 08 00 36 21 80 0D 01 02 00 00 00 00 D0 [13:45:31]Write i2c OK [13:45:31]MH_I2C_Read... [13:45:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:45:31]Read from MH i2c: E2 [13:45:31]MH_I2C_Read... [13:45:31]Read from MH i2c: E2 03 00 [13:45:31]MH_I2C_Read... [13:45:31]Read from MH i2c: E2 03 00 36 21 00 90 00 CB [13:45:31]RAPDU: 90 00 [13:45:31]wFMCommunicate OK [13:45:31]wFMCommunicate request_size=255 [13:45:31]MH_SAM_APDU [13:45:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 7B D6 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 67 84 02 00 35 04 06 00 05 [13:45:31]Write to MH i2c: E2 02 01 37 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 7B D6 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 67 84 02 00 35 04 06 00 05 00 00 8C [13:45:31]Write i2c OK [13:45:31]MH_I2C_Read... [13:45:31]Read from MH i2c: E2 [13:45:31]MH_I2C_Read... [13:45:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:45:31]Read from MH i2c: E2 03 00 [13:45:31]MH_I2C_Read... [13:45:31]Read from MH i2c: E2 03 00 37 21 00 90 00 CC [13:45:31]RAPDU: 90 00 [13:45:31]wFMCommunicate OK [13:45:31]wFMCommunicate request_size=10 [13:45:31]MH_SAM_APDU [13:45:31]CAPDU: 80 0D 02 02 05 E4 D4 57 64 01 [13:45:31]Write to MH i2c: E2 0D 00 38 21 80 0D 02 02 05 00 E4 D4 57 64 01 00 00 51 [13:45:31]Write i2c OK [13:45:31]MH_I2C_Read... [13:45:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:45:31]Read from MH i2c: E2 [13:45:31]MH_I2C_Read... [13:45:31]Read from MH i2c: E2 03 00 [13:45:31]MH_I2C_Read... [13:45:31]Read from MH i2c: E2 03 00 38 21 00 90 00 CD [13:45:31]RAPDU: 90 00 [13:45:31]wFMCommunicate OK [13:45:31]wFMCommunicate request_size=4 [13:45:31]MH_SAM_APDU [13:45:31]CAPDU: 80 0D 03 02 [13:45:31]Write to MH i2c: E2 08 00 39 21 80 0D 03 02 00 00 00 00 D5 [13:45:31]Write i2c OK [13:45:31]MH_I2C_Read... [13:45:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:45:31]Read from MH i2c: E2 [13:45:31]MH_I2C_Read... [13:45:31]Read from MH i2c: E2 0B 00 [13:45:31]MH_I2C_Read... [13:45:31]Read from MH i2c: E2 0B 00 39 21 00 77 F4 69 67 32 7E F4 2A 90 00 DF [13:45:31]RAPDU: 77 F4 69 67 32 7E F4 2A 90 00 [13:45:31]wFMCommunicate OK [13:45:31]SAM_PROTO_SignData done [13:45:31]FM_MakeSignedData done [13:45:31]CreateOFDProtocolMessage [13:45:31]wFMCommunicate request_size=4 [13:45:31]MH_SAM_APDU [13:45:31]CAPDU: 80 11 00 00 [13:45:31]Write to MH i2c: E2 08 00 3A 21 80 11 00 00 00 00 00 00 D5 [13:45:31]Write i2c OK [13:45:31]MH_I2C_Read... [13:45:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:45:31]Read from MH i2c: E2 [13:45:31]MH_I2C_Read... [13:45:31]Read from MH i2c: E2 17 00 [13:45:31]MH_I2C_Read... [13:45:31]Read from MH i2c: E2 17 00 3A 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 2B [13:45:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:45:31]wFMCommunicate OK [13:45:31]CreateOFDProtocolMessage done [13:45:31]OFDSenderStorePacket 164967 [13:45:31]StoreOFDPacket docnum=164967 [13:45:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 0F 12 07 01 F2 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 7B D6 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 67 84 02 00 35 04 06 00 05 E4 D4 57 64 01 77 F4 69 67 32 7E F4 2A [13:45:31]CheckFolder [13:45:31]dirname=/storage/ofd_packets [13:45:31]CheckFolder done [13:45:31]ProducePacketName [13:45:31]name=ofd_packets/00164967 [13:45:31]NVStorageSaveData ofd_packets/00164967 [13:45:31]File name is /storage/ofd_packets/00164967 [13:45:31]Write 301 bytes [13:45:31]NVStorageSaveData done [13:45:31]OFDSenderStorePacket done [13:45:31]KKMCreateOFDPacket done [13:45:31]NVStorageSaveData kkm_last_timestamp [13:45:31]File name is /storage/kkm_last_timestamp [13:45:31]Write 4 bytes [13:45:31]NVStorageSaveData done [13:45:31]ExternCall_PrintAddStr [13:45:31]wPrintStart [13:45:31]Write to MH i2c: 01 00 00 3B 21 5C [13:45:31]Write i2c OK [13:45:31]MH_I2C_Read... [13:45:31]Read from MH i2c: 01 [13:45:31]MH_I2C_Read... [13:45:31]Read from MH i2c: 01 07 00 [13:45:31]MH_I2C_Read... [13:45:31]Read from MH i2c: 01 07 00 3B 21 00 00 00 00 00 FF 0F 71 [13:45:31]RasterBufferAndPrint [13:45:31]line Счет N : (1)459064 [13:45:31]line ИНН: 02508201610067 [13:45:31]line Контрольно-Кассовый Чек [13:45:31]line ПРОДАЖА [13:45:31]line ТРК (МРК, ГНК) : 12 [13:45:31]line Товар: 2710124130 [13:45:31]line Аи-92-К-5 [13:45:31]line 15.200 * 65.80 [13:45:31]line = 1000.16 [13:45:31]line НДС 12% НСП 1% [13:45:31]line > о реализуемом товаре [13:45:31]line ОКРУГЛЕНИЕ: -0.16 [13:45:31]line ИТОГО: 1000.00 [13:45:31]line Внесено: 1000.00 [13:45:31]line СДАЧА: 0.00 [13:45:31]line НСП 1% : 8.85 [13:45:31]line НДС 12% : 106.21 [13:45:31]line Наличными: 1000.00 [13:45:31]line Безнал.: 0.00 [13:45:31]line Место: АЗС № 72 "Партнер Нефть" [13:45:31]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:45:31]line СНО: Общий режим [13:45:31]line Чек 165 14.07.2024 13:45 [13:45:31]line Смена: 447 ФФД: 1.0 [13:45:31]line ЗНМ: 0300000160 [13:45:31]line РНМ: 0000000000090829 [13:45:31]line Версия ККМ: 001 [13:45:31]line ФМ: 0000000000874718 [13:45:31]line ФД: 164967 [13:45:31]line ФПД: 6480373179393 [13:45:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T134531&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164967&fm=6480373179393&tin=02508201610067®Number=0000000000090829&sum=100000 [13:45:31]written 0, free lines is 4095 [13:45:31]OFD Sender: Processing packet 164967 [packets to send 104, broken 103] [13:45:31]ProducePacketName [13:45:31]name=ofd_packets/00164967 [13:45:31]OFD Sender: To server: pG, [13:45:31]CommunicateWithHost lk.salyk.kg:30040 [13:45:31]ConnectInit lk.salyk.kg [13:45:31]Connected sock=10 [13:45:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 0F 12 07 01 F2 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 7B D6 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 67 84 02 00 35 04 06 00 05 E4 D4 57 64 01 77 F4 69 67 32 7E F4 2A [13:45:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 BB 93 47 00 7D 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 67 84 02 00 F4 03 04 00 08 7D 93 66 B6 04 01 00 00 A4 80 FC A8 52 3E CB 15 [13:45:32]CommunicateWithHost err = 0 [13:45:32]CheckOFDResponse [13:45:32]1017 (14) - 77093643461234 [13:45:32]1041 (16) - 0000000000874718 [13:45:32]1040 (4) - 164967 [13:45:32]1012 (4) - 14.07.2024 07:23 [13:45:32]1206 (1) - 0 [13:45:32]OFD Sender: Remove packet 164967 [13:45:32]ProducePacketName [13:45:32]name=ofd_packets/00164967 [13:45:32]NVStorageDeleteData [13:45:32]Write to MH i2c: 01 00 00 65 21 86 [13:45:32]Write i2c OK [13:45:32]MH_I2C_Read... [13:45:32]Read from MH i2c: 01 [13:45:32]MH_I2C_Read... [13:45:32]Read from MH i2c: 01 07 00 [13:45:32]MH_I2C_Read... [13:45:32]Read from MH i2c: 01 07 00 65 21 00 00 00 00 00 FD 0C 96 [13:45:32]RasterBufferAndPrint [13:45:32]line [13:45:32]line [13:45:32]line [13:45:32]line [13:45:32]line [13:45:32]written 0, free lines is 3337 [13:45:32]MH_Cut [13:45:32]Write to MH i2c: D1 01 00 6C 21 01 5F [13:45:32]Write i2c OK [13:45:32]MH_I2C_Read... [13:45:32]Read from MH i2c: D1 [13:45:32]MH_I2C_Read... [13:45:32]Read from MH i2c: D1 01 00 [13:45:32]MH_I2C_Read... [13:45:32]Read from MH i2c: D1 01 00 6C 21 00 5E [13:45:32]Write to MH i2c: 01 00 00 6D 21 8E [13:45:32]Write i2c OK [13:45:32]MH_I2C_Read... [13:45:32]OFD Sender: No OFD packet to send [13:45:32]*** Cut start [13:45:32]*** Partial cut [13:45:32]*** CUTSNS_PIN = 1 [13:45:32]*** CUTSNS_PIN = 0 [13:45:33]*** Brake cut motor [13:45:33]Read from MH i2c: 01 [13:45:33]MH_I2C_Read... [13:45:33]*** Stop cut motor [13:45:33]*** Cut end [13:45:33]Read from MH i2c: 01 07 00 [13:45:33]MH_I2C_Read... [13:45:33]Read from MH i2c: 01 07 00 6D 21 00 00 00 00 00 FF 0F A3 [13:45:33]process_action close_receipt done [13:45:33]requested_data is exist [13:45:33]produce_requested_data [13:45:33]requested_item fm.sn is exist - process it [13:45:33]wFMCommunicate request_size=4 [13:45:33]MH_SAM_APDU [13:45:33]CAPDU: 80 11 00 00 [13:45:33]Write to MH i2c: E2 08 00 6E 21 80 11 00 00 00 00 00 00 09 [13:45:33]Write i2c OK [13:45:33]MH_I2C_Read... [13:45:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:45:33]Read from MH i2c: E2 [13:45:33]MH_I2C_Read... [13:45:33]Read from MH i2c: E2 17 00 [13:45:33]MH_I2C_Read... [13:45:33]Read from MH i2c: E2 17 00 6E 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 5F [13:45:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:45:33]wFMCommunicate OK [13:45:33]requested_item fd.num is exist - process it [13:45:33]SAM_PROTO_GetFieldsCounters [13:45:33]wFMCommunicate request_size=4 [13:45:33]MH_SAM_APDU [13:45:33]CAPDU: 80 13 00 00 [13:45:33]Write to MH i2c: E2 08 00 6F 21 80 13 00 00 00 00 00 00 0C [13:45:33]Write i2c OK [13:45:33]MH_I2C_Read... [13:45:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:45:33]Read from MH i2c: E2 [13:45:33]MH_I2C_Read... [13:45:33]Read from MH i2c: E2 62 00 [13:45:33]MH_I2C_Read... [13:45:33]Read from MH i2c: E2 62 00 6F 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 67 84 02 00 0E 04 04 00 BF 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 CF [13:45:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 67 84 02 00 0E 04 04 00 BF 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 [13:45:33]wFMCommunicate OK [13:45:33]SAM_PROTO_GetFieldsCounters done [13:45:33]requested_item shift.num is exist - process it [13:45:33]requested_item shift.opened is exist - process it [13:45:33]req_shift_opened [13:45:33]FM_GetShiftState [13:45:33]SAM_PROTO_GetShiftState [13:45:33]wFMCommunicate request_size=4 [13:45:33]MH_SAM_APDU [13:45:33]CAPDU: 80 13 01 00 [13:45:33]Write to MH i2c: E2 08 00 70 21 80 13 01 00 00 00 00 00 0E [13:45:33]Write i2c OK [13:45:33]MH_I2C_Read... [13:45:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:45:33]Read from MH i2c: E2 [13:45:33]MH_I2C_Read... [13:45:33]Read from MH i2c: E2 0E 00 [13:45:33]MH_I2C_Read... [13:45:33]Read from MH i2c: E2 0E 00 70 21 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 8E [13:45:33]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [13:45:33]wFMCommunicate OK [13:45:33]SAM_PROTO_GetShiftState done [13:45:33]FM_GetShiftState done [13:45:33]req_shift_opened done [13:45:33]requested_item shift.open_date is exist - process it [13:45:33]req_shift_open_date [13:45:33]req_shift_open_date done [13:45:33]produce_requested_data done [13:45:33]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164967,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [13:45:33]process_action_free close_receipt [13:45:33]json_value_free [13:45:33]json_value_free done [13:45:33]process_json_proto returns [13:45:33]Send response to host [13:45:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164967,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [13:45:33]free response buf [13:45:33]execute_script done [13:45:33]execute_script returns [13:45:33]free content buf [13:45:33]Sock 7.Close socket [13:45:33]Sock 7.Thread stoped [13:45:37]OFD Sender: No OFD packet to send [13:45:42]OFD Sender: No OFD packet to send [13:45:47]OFD Sender: No OFD packet to send [13:45:52]OFD Sender: No OFD packet to send [13:45:57]OFD Sender: No OFD packet to send [13:46:02]OFD Sender: No OFD packet to send [13:46:07]OFD Sender: No OFD packet to send [13:46:08]accept exits with 9 [13:46:08]New connection [13:46:08]New thread 3067473252 created [13:46:08]Thread 3067616612 joined [13:46:08]Waiting for new connection... [13:46:08] Sock 9.Parse request [13:46:08]Sock 9.Check first char [13:46:08]Sock 9.First char is OK [13:46:08]request: POST /json_proto HTTP/1.0 [13:46:08]Method: POST [13:46:08]URL: /json_proto [13:46:08]Method is POST - this is cgi request [13:46:08]url: /json_proto [13:46:08]query_string will be loaded in cgi processing [13:46:08]execute_cgi json_proto POST (null) [13:46:08]execute_cgi path=json_proto method=POST [13:46:08]POST find Content-Length [13:46:08]Host: 172.17.56.4:8080 [13:46:08]Content-Length: 674 [13:46:08]Content-Type: application/json [13:46:08] [13:46:08]POST finish read [13:46:08]Found Content-Length = 674 [13:46:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459066", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 6.960, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:46:08]execute_script... [13:46: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)459066", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 6.960, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:46:08]POST & json_proto [13:46:08]process_json_proto [13:46:08]json parsed OK: [13:46:08]protocol is kg_v1.0 [13:46:08]action value=close_receipt [13:46:08]process_action close_receipt [13:46:08]cmd_close_receipt [13:46:08]MH_GetDate [13:46:08]Write to MH i2c: F0 00 00 71 21 81 [13:46:08]Write i2c OK [13:46:08]MH_I2C_Read... [13:46:08]Read from MH i2c: F0 [13:46:08]MH_I2C_Read... [13:46:08]Read from MH i2c: F0 09 00 [13:46:08]MH_I2C_Read... [13:46:08]Read from MH i2c: F0 09 00 71 21 00 A1 D6 93 66 C9 DC B2 64 B5 [13:46:08]GetLastDocTimeStamp 1720964731 [13:46:08]current date 1720964769 [13:46:08]FM_GetShiftState [13:46:08]SAM_PROTO_GetShiftState [13:46:08]wFMCommunicate request_size=4 [13:46:08]MH_SAM_APDU [13:46:08]CAPDU: 80 13 01 00 [13:46:08]Write to MH i2c: E2 08 00 72 21 80 13 01 00 00 00 00 00 10 [13:46:08]Write i2c OK [13:46:08]MH_I2C_Read... [13:46:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:46:08]Read from MH i2c: E2 [13:46:08]MH_I2C_Read... [13:46:08]Read from MH i2c: E2 0E 00 [13:46:08]MH_I2C_Read... [13:46:08]Read from MH i2c: E2 0E 00 72 21 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 90 [13:46:08]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [13:46:08]wFMCommunicate OK [13:46:08]SAM_PROTO_GetShiftState done [13:46:08]FM_GetShiftState done [13:46:08]opened in 1720917342 [13:46:08]opened+sec_in_day 1721003742 [13:46:08]quantity*price = 50042 [13:46:08]sum+1 = 50043 [13:46:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 166 14.07.2024 13:46 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164968 ФПД: 211496744736261 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T134609&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164968&fm=211496744736261&tin=02508201610067®Number=0000000000090829&sum=50000 [13:46:09]StoreToDocumentArchive [13:46:09]shift 447 fd 164968 [13:46:09]save to /storage/0447/doc_00164968 [13:46:09]save last doc name /storage/0447/doc_00164968 to /storage/kkm_last_doc_name [13:46:09]save OK [13:46:09]Clear old archive folders... [13:46:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:46:09]tlvbuf is 00735090 [13:46:09]SAM_PROTO_ClearQueue [13:46:09]wFMCommunicate request_size=4 [13:46:09]MH_SAM_APDU [13:46:09]CAPDU: 80 09 00 00 [13:46:09]Write to MH i2c: E2 08 00 7F 21 80 09 00 00 00 00 00 00 12 [13:46:09]Write i2c OK [13:46:09]MH_I2C_Read... [13:46:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:46:09]Read from MH i2c: E2 [13:46:09]MH_I2C_Read... [13:46:09]Read from MH i2c: E2 03 00 [13:46:09]MH_I2C_Read... [13:46:09]Read from MH i2c: E2 03 00 7F 21 00 90 00 14 [13:46:09]RAPDU: 90 00 [13:46:09]wFMCommunicate OK [13:46:09]SAM_PROTO_ClearQueue done [13:46:09]KKMCreateOFDPacket [13:46:09]OFDProtocolAddRootSTLVToBuf [13:46:09]FM_MakeSignedData [13:46:09]FM_MakeSignedData [13:46:09]SAM_PROTO_SignData [13:46:09]wFMCommunicate request_size=4 [13:46:09]MH_SAM_APDU [13:46:09]CAPDU: 80 0D 01 02 [13:46:09]Write to MH i2c: E2 08 00 80 21 80 0D 01 02 00 00 00 00 1A [13:46:09]Write i2c OK [13:46:09]MH_I2C_Read... [13:46:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:46:09]Read from MH i2c: E2 [13:46:09]MH_I2C_Read... [13:46:09]Read from MH i2c: E2 03 00 [13:46:09]MH_I2C_Read... [13:46:09]Read from MH i2c: E2 03 00 80 21 00 90 00 15 [13:46:09]RAPDU: 90 00 [13:46:09]wFMCommunicate OK [13:46:09]wFMCommunicate request_size=255 [13:46:09]MH_SAM_APDU [13:46:09]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 A1 D6 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 68 84 02 00 35 04 06 00 C0 5A EC 57 [13:46:09]Write to MH i2c: E2 02 01 81 21 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 A1 D6 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 68 84 02 00 35 04 06 00 C0 5A EC 57 00 00 10 [13:46:09]Write i2c OK [13:46:09]MH_I2C_Read... [13:46:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:46:09]Read from MH i2c: E2 [13:46:09]MH_I2C_Read... [13:46:09]Read from MH i2c: E2 03 00 [13:46:09]MH_I2C_Read... [13:46:09]Read from MH i2c: E2 03 00 81 21 00 90 00 16 [13:46:09]RAPDU: 90 00 [13:46:09]wFMCommunicate OK [13:46:09]wFMCommunicate request_size=7 [13:46:09]MH_SAM_APDU [13:46:09]CAPDU: 80 0D 02 02 02 56 05 [13:46:09]Write to MH i2c: E2 0A 00 82 21 80 0D 02 02 02 00 56 05 00 00 7C [13:46:09]Write i2c OK [13:46:09]MH_I2C_Read... [13:46:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:46:09]Read from MH i2c: E2 [13:46:09]MH_I2C_Read... [13:46:09]Read from MH i2c: E2 03 00 [13:46:09]MH_I2C_Read... [13:46:09]Read from MH i2c: E2 03 00 82 21 00 90 00 17 [13:46:09]RAPDU: 90 00 [13:46:09]wFMCommunicate OK [13:46:09]wFMCommunicate request_size=4 [13:46:09]MH_SAM_APDU [13:46:09]CAPDU: 80 0D 03 02 [13:46:09]Write to MH i2c: E2 08 00 83 21 80 0D 03 02 00 00 00 00 1F [13:46:09]Write i2c OK [13:46:09]MH_I2C_Read... [13:46:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:46:09]Read from MH i2c: E2 [13:46:09]MH_I2C_Read... [13:46:09]Read from MH i2c: E2 0B 00 [13:46:09]MH_I2C_Read... [13:46:09]Read from MH i2c: E2 0B 00 83 21 00 69 B9 42 63 E8 EC 44 2C 90 00 2B [13:46:09]RAPDU: 69 B9 42 63 E8 EC 44 2C 90 00 [13:46:09]wFMCommunicate OK [13:46:09]SAM_PROTO_SignData done [13:46:09]FM_MakeSignedData done [13:46:09]CreateOFDProtocolMessage [13:46:09]wFMCommunicate request_size=4 [13:46:09]MH_SAM_APDU [13:46:09]CAPDU: 80 11 00 00 [13:46:09]Write to MH i2c: E2 08 00 84 21 80 11 00 00 00 00 00 00 1F [13:46:09]Write i2c OK [13:46:09]MH_I2C_Read... [13:46:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:46:09]Read from MH i2c: E2 [13:46:09]MH_I2C_Read... [13:46:09]Read from MH i2c: E2 17 00 [13:46:09]MH_I2C_Read... [13:46:09]Read from MH i2c: E2 17 00 84 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 75 [13:46:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:46:09]wFMCommunicate OK [13:46:09]CreateOFDProtocolMessage done [13:46:09]OFDSenderStorePacket 164968 [13:46:09]StoreOFDPacket docnum=164968 [13:46:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 D6 49 04 01 6F CF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 A1 D6 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 68 84 02 00 35 04 06 00 C0 5A EC 57 56 05 69 B9 42 63 E8 EC 44 2C [13:46:09]CheckFolder [13:46:09]dirname=/storage/ofd_packets [13:46:09]CheckFolder done [13:46:09]ProducePacketName [13:46:09]name=ofd_packets/00164968 [13:46:09]NVStorageSaveData ofd_packets/00164968 [13:46:09]File name is /storage/ofd_packets/00164968 [13:46:09]Write 298 bytes [13:46:09]NVStorageSaveData done [13:46:09]OFDSenderStorePacket done [13:46:09]KKMCreateOFDPacket done [13:46:09]NVStorageSaveData kkm_last_timestamp [13:46:09]File name is /storage/kkm_last_timestamp [13:46:09]Write 4 bytes [13:46:09]NVStorageSaveData done [13:46:09]ExternCall_PrintAddStr [13:46:09]wPrintStart [13:46:09]Write to MH i2c: 01 00 00 85 21 A6 [13:46:09]Write i2c OK [13:46:09]MH_I2C_Read... [13:46:09]Read from MH i2c: 01 [13:46:09]MH_I2C_Read... [13:46:09]Read from MH i2c: 01 07 00 [13:46:09]MH_I2C_Read... [13:46:09]Read from MH i2c: 01 07 00 85 21 00 00 00 00 00 FF 0F BB [13:46:09]RasterBufferAndPrint [13:46:09]line Счет N : (1)459066 [13:46:09]line ИНН: 02508201610067 [13:46:09]line Контрольно-Кассовый Чек [13:46:09]line ПРОДАЖА [13:46:09]line ТРК (МРК, ГНК) : 21 [13:46:09]line Товар: 2710194210 [13:46:09]line ДТ-К-5 [13:46:09]line 6.960 * 71.90 [13:46:09]line = 500.42 [13:46:09]line НДС 12% НСП 1% [13:46:09]line > о реализуемом товаре [13:46:09]line ОКРУГЛЕНИЕ: -0.42 [13:46:09]line ИТОГО: 500.00 [13:46:09]line Внесено: 500.00 [13:46:09]line СДАЧА: 0.00 [13:46:09]line НСП 1% : 4.43 [13:46:09]line НДС 12% : 53.14 [13:46:09]line Наличными: 500.00 [13:46:09]line Безнал.: 0.00 [13:46:09]line Место: АЗС № 72 "Партнер Нефть" [13:46:09]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:46:09]line СНО: Общий режим [13:46:09]line Чек 166 14.07.2024 13:46 [13:46:09]line Смена: 447 ФФД: 1.0 [13:46:09]line ЗНМ: 0300000160 [13:46:09]line РНМ: 0000000000090829 [13:46:09]line Версия ККМ: 001 [13:46:09]line ФМ: 0000000000874718 [13:46:09]line ФД: 164968 [13:46:09]line ФПД: 211496744736261 [13:46:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T134609&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164968&fm=211496744736261&tin=02508201610067®Number=0000000000090829&sum=50000 [13:46:10]OFD Sender: Processing packet 164968 [packets to send 104, broken 103] [13:46:10]ProducePacketName [13:46:10]name=ofd_packets/00164968 [13:46:10]OFD Sender: To server: pG, [13:46:10]CommunicateWithHost lk.salyk.kg:30040 [13:46:10]ConnectInit lk.salyk.kg [13:46:10]written 0, free lines is 4095 [13:46:10]Connected sock=10 [13:46:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 D6 49 04 01 6F CF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 A1 D6 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 68 84 02 00 35 04 06 00 C0 5A EC 57 56 05 69 B9 42 63 E8 EC 44 2C [13:46:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 3E 98 47 00 3B 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 38 37 34 37 31 38 10 04 04 00 68 84 02 00 F4 03 04 00 2F 7D 93 66 B6 04 01 00 00 F2 8D D6 D1 20 44 A5 BE [13:46:10]CommunicateWithHost err = 0 [13:46:10]CheckOFDResponse [13:46:10]1017 (14) - 77093643461234 [13:46:10]1041 (16) - 0000000000874718 [13:46:10]1040 (4) - 164968 [13:46:10]1012 (4) - 14.07.2024 07:24 [13:46:10]1206 (1) - 0 [13:46:10]OFD Sender: Remove packet 164968 [13:46:10]ProducePacketName [13:46:10]name=ofd_packets/00164968 [13:46:10]NVStorageDeleteData [13:46:10]Write to MH i2c: 01 00 00 AF 21 D0 [13:46:10]Write i2c OK [13:46:10]MH_I2C_Read... [13:46:10]Read from MH i2c: 01 [13:46:10]MH_I2C_Read... [13:46:10]Read from MH i2c: 01 07 00 [13:46:10]MH_I2C_Read... [13:46:10]Read from MH i2c: 01 07 00 AF 21 00 00 00 00 00 F3 0C D6 [13:46:10]RasterBufferAndPrint [13:46:10]line [13:46:10]line [13:46:10]line [13:46:10]line [13:46:10]line [13:46:10]written 0, free lines is 3321 [13:46:10]MH_Cut [13:46:10]Write to MH i2c: D1 01 00 B6 21 01 A9 [13:46:10]Write i2c OK [13:46:10]MH_I2C_Read... [13:46:10]Read from MH i2c: D1 [13:46:10]MH_I2C_Read... [13:46:10]Read from MH i2c: D1 01 00 [13:46:10]MH_I2C_Read... [13:46:10]Read from MH i2c: D1 01 00 B6 21 00 A8 [13:46:10]Write to MH i2c: 01 00 00 B7 21 D8 [13:46:10]Write i2c OK [13:46:10]MH_I2C_Read... [13:46:10]OFD Sender: No OFD packet to send [13:46:11]*** Cut start [13:46:11]*** Partial cut [13:46:11]*** CUTSNS_PIN = 1 [13:46:11]*** CUTSNS_PIN = 0 [13:46:11]*** Brake cut motor [13:46:11]Read from MH i2c: 01 [13:46:11]MH_I2C_Read... [13:46:11]*** Stop cut motor [13:46:11]*** Cut end [13:46:11]Read from MH i2c: 01 07 00 [13:46:11]MH_I2C_Read... [13:46:11]Read from MH i2c: 01 07 00 B7 21 00 00 00 00 00 FF 0F ED [13:46:11]process_action close_receipt done [13:46:11]requested_data is exist [13:46:11]produce_requested_data [13:46:11]requested_item fm.sn is exist - process it [13:46:11]wFMCommunicate request_size=4 [13:46:11]MH_SAM_APDU [13:46:11]CAPDU: 80 11 00 00 [13:46:11]Write to MH i2c: E2 08 00 B8 21 80 11 00 00 00 00 00 00 53 [13:46:11]Write i2c OK [13:46:11]MH_I2C_Read... [13:46:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:46:11]Read from MH i2c: E2 [13:46:11]MH_I2C_Read... [13:46:11]Read from MH i2c: E2 17 00 [13:46:11]MH_I2C_Read... [13:46:11]Read from MH i2c: E2 17 00 B8 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A9 [13:46:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:46:11]wFMCommunicate OK [13:46:11]requested_item fd.num is exist - process it [13:46:11]SAM_PROTO_GetFieldsCounters [13:46:11]wFMCommunicate request_size=4 [13:46:11]MH_SAM_APDU [13:46:11]CAPDU: 80 13 00 00 [13:46:11]Write to MH i2c: E2 08 00 B9 21 80 13 00 00 00 00 00 00 56 [13:46:11]Write i2c OK [13:46:11]MH_I2C_Read... [13:46:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:46:12]Read from MH i2c: E2 [13:46:12]MH_I2C_Read... [13:46:12]Read from MH i2c: E2 62 00 [13:46:12]MH_I2C_Read... [13:46:12]Read from MH i2c: E2 62 00 B9 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 68 84 02 00 0E 04 04 00 BF 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 1D [13:46:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 68 84 02 00 0E 04 04 00 BF 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 [13:46:12]wFMCommunicate OK [13:46:12]SAM_PROTO_GetFieldsCounters done [13:46:12]requested_item shift.num is exist - process it [13:46:12]requested_item shift.opened is exist - process it [13:46:12]req_shift_opened [13:46:12]FM_GetShiftState [13:46:12]SAM_PROTO_GetShiftState [13:46:12]wFMCommunicate request_size=4 [13:46:12]MH_SAM_APDU [13:46:12]CAPDU: 80 13 01 00 [13:46:12]Write to MH i2c: E2 08 00 BA 21 80 13 01 00 00 00 00 00 58 [13:46:12]Write i2c OK [13:46:12]MH_I2C_Read... [13:46:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:46:12]Read from MH i2c: E2 [13:46:12]MH_I2C_Read... [13:46:12]Read from MH i2c: E2 0E 00 [13:46:12]MH_I2C_Read... [13:46:12]Read from MH i2c: E2 0E 00 BA 21 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 D8 [13:46:12]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [13:46:12]wFMCommunicate OK [13:46:12]SAM_PROTO_GetShiftState done [13:46:12]FM_GetShiftState done [13:46:12]req_shift_opened done [13:46:12]requested_item shift.open_date is exist - process it [13:46:12]req_shift_open_date [13:46:12]req_shift_open_date done [13:46:12]produce_requested_data done [13:46:12]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164968,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [13:46:12]process_action_free close_receipt [13:46:12]json_value_free [13:46:12]json_value_free done [13:46:12]process_json_proto returns [13:46:12]Send response to host [13:46:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164968,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [13:46:12]free response buf [13:46:12]execute_script done [13:46:12]execute_script returns [13:46:12]free content buf [13:46:12]Sock 9.Close socket [13:46:12]Sock 9.Thread stoped [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:21]OFD Sender: No OFD packet to send [13:47:25]accept exits with 7 [13:47:25]New connection [13:47:25]New thread 3067616612 created [13:47:25]Thread 3067473252 joined [13:47:25]Waiting for new connection... [13:47:25] Sock 7.Parse request [13:47:25]Sock 7.Check first char [13:47:25]Sock 7.First char is OK [13:47:25]request: POST /json_proto HTTP/1.0 [13:47:25]Method: POST [13:47:25]URL: /json_proto [13:47:25]Method is POST - this is cgi request [13:47:25]url: /json_proto [13:47:25]query_string will be loaded in cgi processing [13:47:25]execute_cgi json_proto POST (null) [13:47:25]execute_cgi path=json_proto method=POST [13:47:25]POST find Content-Length [13:47:25]Host: 172.17.56.4:8080 [13:47:25]Content-Length: 677 [13:47:25]Content-Type: application/json [13:47:25] [13:47:25]POST finish read [13:47:25]Found Content-Length = 677 [13:47:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459067", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:47:25]execute_script... [13:47:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459067", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:47:25]POST & json_proto [13:47:25]process_json_proto [13:47:25]json parsed OK: [13:47:25]protocol is kg_v1.0 [13:47:25]action value=close_receipt [13:47:25]process_action close_receipt [13:47:25]cmd_close_receipt [13:47:25]MH_GetDate [13:47:25]Write to MH i2c: F0 00 00 BB 21 CB [13:47:25]Write i2c OK [13:47:25]MH_I2C_Read... [13:47:25]Read from MH i2c: F0 [13:47:25]MH_I2C_Read... [13:47:25]Read from MH i2c: F0 09 00 [13:47:25]MH_I2C_Read... [13:47:25]Read from MH i2c: F0 09 00 BB 21 00 EF D6 93 66 C9 DC B2 64 4D [13:47:25]GetLastDocTimeStamp 1720964769 [13:47:25]current date 1720964847 [13:47:25]FM_GetShiftState [13:47:25]SAM_PROTO_GetShiftState [13:47:25]wFMCommunicate request_size=4 [13:47:25]MH_SAM_APDU [13:47:25]CAPDU: 80 13 01 00 [13:47:25]Write to MH i2c: E2 08 00 BC 21 80 13 01 00 00 00 00 00 5A [13:47:25]Write i2c OK [13:47:25]MH_I2C_Read... [13:47:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:47:25]Read from MH i2c: E2 [13:47:25]MH_I2C_Read... [13:47:25]Read from MH i2c: E2 0E 00 [13:47:25]MH_I2C_Read... [13:47:25]Read from MH i2c: E2 0E 00 BC 21 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 DA [13:47:25]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [13:47:25]wFMCommunicate OK [13:47:25]SAM_PROTO_GetShiftState done [13:47:25]FM_GetShiftState done [13:47:25]opened in 1720917342 [13:47:25]opened+sec_in_day 1721003742 [13:47:25]quantity*price = 50008 [13:47:25]sum+1 = 50009 [13:47:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 167 14.07.2024 13:47 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164969 ФПД: 106225014195857 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T134727&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164969&fm=106225014195857&tin=02508201610067®Number=0000000000090829&sum=50000 [13:47:27]StoreToDocumentArchive [13:47:27]shift 447 fd 164969 [13:47:27]save to /storage/0447/doc_00164969 [13:47:27]save last doc name /storage/0447/doc_00164969 to /storage/kkm_last_doc_name [13:47:27]save OK [13:47:27]Clear old archive folders... [13:47:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:47:27]tlvbuf is 007461F0 [13:47:27]SAM_PROTO_ClearQueue [13:47:27]wFMCommunicate request_size=4 [13:47:27]MH_SAM_APDU [13:47:27]CAPDU: 80 09 00 00 [13:47:27]Write to MH i2c: E2 08 00 C9 21 80 09 00 00 00 00 00 00 5C [13:47:27]Write i2c OK [13:47:27]MH_I2C_Read... [13:47:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:47:27]Read from MH i2c: E2 [13:47:27]MH_I2C_Read... [13:47:27]Read from MH i2c: E2 03 00 [13:47:27]MH_I2C_Read... [13:47:27]Read from MH i2c: E2 03 00 C9 21 00 90 00 5E [13:47:27]RAPDU: 90 00 [13:47:27]wFMCommunicate OK [13:47:27]SAM_PROTO_ClearQueue done [13:47:27]KKMCreateOFDPacket [13:47:27]OFDProtocolAddRootSTLVToBuf [13:47:27]FM_MakeSignedData [13:47:27]FM_MakeSignedData [13:47:27]SAM_PROTO_SignData [13:47:27]wFMCommunicate request_size=4 [13:47:27]MH_SAM_APDU [13:47:27]CAPDU: 80 0D 01 02 [13:47:27]Write to MH i2c: E2 08 00 CA 21 80 0D 01 02 00 00 00 00 64 [13:47:27]Write i2c OK [13:47:27]MH_I2C_Read... [13:47:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:47:27]Read from MH i2c: E2 [13:47:27]MH_I2C_Read... [13:47:27]Read from MH i2c: E2 03 00 [13:47:27]MH_I2C_Read... [13:47:27]Read from MH i2c: E2 03 00 CA 21 00 90 00 5F [13:47:27]RAPDU: 90 00 [13:47:27]wFMCommunicate OK [13:47:27]wFMCommunicate request_size=255 [13:47:27]MH_SAM_APDU [13:47:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 A7 00 00 00 F4 03 04 00 EF D6 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 69 84 02 00 35 04 06 00 60 [13:47:27]Write to MH i2c: E2 02 01 CB 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 A7 00 00 00 F4 03 04 00 EF D6 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 69 84 02 00 35 04 06 00 60 00 00 51 [13:47:27]Write i2c OK [13:47:27]MH_I2C_Read... [13:47:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:47:27]Read from MH i2c: E2 [13:47:27]MH_I2C_Read... [13:47:27]Read from MH i2c: E2 03 00 [13:47:27]MH_I2C_Read... [13:47:27]Read from MH i2c: E2 03 00 CB 21 00 90 00 60 [13:47:27]RAPDU: 90 00 [13:47:27]wFMCommunicate OK [13:47:27]wFMCommunicate request_size=10 [13:47:27]MH_SAM_APDU [13:47:27]CAPDU: 80 0D 02 02 05 9C 70 3C C6 91 [13:47:27]Write to MH i2c: E2 0D 00 CC 21 80 0D 02 02 05 00 9C 70 3C C6 91 00 00 10 [13:47:27]Write i2c OK [13:47:27]MH_I2C_Read... [13:47:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:47:27]Read from MH i2c: E2 [13:47:27]MH_I2C_Read... [13:47:27]Read from MH i2c: E2 03 00 [13:47:27]MH_I2C_Read... [13:47:27]Read from MH i2c: E2 03 00 CC 21 00 90 00 61 [13:47:27]RAPDU: 90 00 [13:47:27]wFMCommunicate OK [13:47:27]wFMCommunicate request_size=4 [13:47:27]MH_SAM_APDU [13:47:27]CAPDU: 80 0D 03 02 [13:47:27]Write to MH i2c: E2 08 00 CD 21 80 0D 03 02 00 00 00 00 69 [13:47:27]Write i2c OK [13:47:27]MH_I2C_Read... [13:47:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:47:27]Read from MH i2c: E2 [13:47:27]MH_I2C_Read... [13:47:27]Read from MH i2c: E2 0B 00 [13:47:27]MH_I2C_Read... [13:47:27]Read from MH i2c: E2 0B 00 CD 21 00 61 77 9F 0B 37 64 49 72 90 00 42 [13:47:27]RAPDU: 61 77 9F 0B 37 64 49 72 90 00 [13:47:27]wFMCommunicate OK [13:47:27]SAM_PROTO_SignData done [13:47:27]FM_MakeSignedData done [13:47:27]CreateOFDProtocolMessage [13:47:27]wFMCommunicate request_size=4 [13:47:27]MH_SAM_APDU [13:47:27]CAPDU: 80 11 00 00 [13:47:27]Write to MH i2c: E2 08 00 CE 21 80 11 00 00 00 00 00 00 69 [13:47:27]Write i2c OK [13:47:27]MH_I2C_Read... [13:47:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:47:27]Read from MH i2c: E2 [13:47:27]MH_I2C_Read... [13:47:27]Read from MH i2c: E2 17 00 [13:47:27]MH_I2C_Read... [13:47:27]Read from MH i2c: E2 17 00 CE 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 BF [13:47:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:47:27]wFMCommunicate OK [13:47:27]CreateOFDProtocolMessage done [13:47:27]OFDSenderStorePacket 164969 [13:47:27]StoreOFDPacket docnum=164969 [13:47:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 1E 8E 07 01 26 DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 A7 00 00 00 F4 03 04 00 EF D6 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 69 84 02 00 35 04 06 00 60 9C 70 3C C6 91 61 77 9F 0B 37 64 49 72 [13:47:27]CheckFolder [13:47:27]dirname=/storage/ofd_packets [13:47:27]CheckFolder done [13:47:27]ProducePacketName [13:47:27]name=ofd_packets/00164969 [13:47:27]NVStorageSaveData ofd_packets/00164969 [13:47:27]File name is /storage/ofd_packets/00164969 [13:47:27]Write 301 bytes [13:47:27]NVStorageSaveData done [13:47:27]OFDSenderStorePacket done [13:47:27]KKMCreateOFDPacket done [13:47:27]NVStorageSaveData kkm_last_timestamp [13:47:27]File name is /storage/kkm_last_timestamp [13:47:27]Write 4 bytes [13:47:27]NVStorageSaveData done [13:47:27]ExternCall_PrintAddStr [13:47:27]wPrintStart [13:47:27]Write to MH i2c: 01 00 00 CF 21 F0 [13:47:27]Write i2c OK [13:47:27]MH_I2C_Read... [13:47:27]Read from MH i2c: 01 [13:47:27]MH_I2C_Read... [13:47:27]Read from MH i2c: 01 07 00 [13:47:27]MH_I2C_Read... [13:47:27]Read from MH i2c: 01 07 00 CF 21 00 00 00 00 00 FF 0F 05 [13:47:27]RasterBufferAndPrint [13:47:27]line Счет N : (1)459067 [13:47:27]line ИНН: 02508201610067 [13:47:27]line Контрольно-Кассовый Чек [13:47:27]line ПРОДАЖА [13:47:27]line ТРК (МРК, ГНК) : 12 [13:47:27]line Товар: 2710124130 [13:47:27]line Аи-92-К-5 [13:47:27]line 7.600 * 65.80 [13:47:27]line = 500.08 [13:47:27]line НДС 12% НСП 1% [13:47:27]line > о реализуемом товаре [13:47:27]line ОКРУГЛЕНИЕ: -0.08 [13:47:27]line ИТОГО: 500.00 [13:47:27]line Внесено: 500.00 [13:47:27]line СДАЧА: 0.00 [13:47:27]line НСП 1% : 4.42 [13:47:27]line НДС 12% : 53.11 [13:47:27]line Наличными: 500.00 [13:47:27]line Безнал.: 0.00 [13:47:27]line Место: АЗС № 72 "Партнер Нефть" [13:47:27]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:47:27]line СНО: Общий режим [13:47:27]line Чек 167 14.07.2024 13:47 [13:47:27]line Смена: 447 ФФД: 1.0 [13:47:27]line ЗНМ: 0300000160 [13:47:27]line РНМ: 0000000000090829 [13:47:27]line Версия ККМ: 001 [13:47:27]line ФМ: 0000000000874718 [13:47:27]line ФД: 164969 [13:47:27]line ФПД: 106225014195857 [13:47:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T134727&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164969&fm=106225014195857&tin=02508201610067®Number=0000000000090829&sum=50000 [13:47:27]OFD Sender: Processing packet 164969 [packets to send 104, broken 103] [13:47:27]ProducePacketName [13:47:27]name=ofd_packets/00164969 [13:47:27]OFD Sender: To server: pG, [13:47:27]CommunicateWithHost lk.salyk.kg:30040 [13:47:27]ConnectInit lk.salyk.kg [13:47:27]written 0, free lines is 4095 [13:47:27]Connected sock=10 [13:47:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 1E 8E 07 01 26 DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 A7 00 00 00 F4 03 04 00 EF D6 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 69 84 02 00 35 04 06 00 60 9C 70 3C C6 91 61 77 9F 0B 37 64 49 72 [13:47:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 A9 CC 47 00 35 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 69 84 02 00 F4 03 04 00 7D 7D 93 66 B6 04 01 00 00 63 ED EF EB 0B F8 A5 12 [13:47:28]CommunicateWithHost err = 0 [13:47:28]CheckOFDResponse [13:47:28]1017 (14) - 77093643461234 [13:47:28]1041 (16) - 0000000000874718 [13:47:28]1040 (4) - 164969 [13:47:28]1012 (4) - 14.07.2024 07:25 [13:47:28]1206 (1) - 0 [13:47:28]OFD Sender: Remove packet 164969 [13:47:28]ProducePacketName [13:47:28]name=ofd_packets/00164969 [13:47:28]NVStorageDeleteData [13:47:28]Write to MH i2c: 01 00 00 F9 21 1A [13:47:28]Write i2c OK [13:47:28]MH_I2C_Read... [13:47:28]Read from MH i2c: 01 [13:47:28]MH_I2C_Read... [13:47:28]Read from MH i2c: 01 07 00 [13:47:28]MH_I2C_Read... [13:47:28]Read from MH i2c: 01 07 00 F9 21 00 00 00 00 00 F3 0C 20 [13:47:28]RasterBufferAndPrint [13:47:28]line [13:47:28]line [13:47:28]line [13:47:28]line [13:47:28]line [13:47:28]written 0, free lines is 3321 [13:47:28]MH_Cut [13:47:28]Write to MH i2c: D1 01 00 00 22 01 F4 [13:47:28]Write i2c OK [13:47:28]MH_I2C_Read... [13:47:28]Read from MH i2c: D1 [13:47:28]MH_I2C_Read... [13:47:28]Read from MH i2c: D1 01 00 [13:47:28]MH_I2C_Read... [13:47:28]Read from MH i2c: D1 01 00 00 22 00 F3 [13:47:28]Write to MH i2c: 01 00 00 01 22 23 [13:47:28]Write i2c OK [13:47:28]MH_I2C_Read... [13:47:28]OFD Sender: No OFD packet to send [13:47:29]*** Cut start [13:47:29]*** Partial cut [13:47:29]*** CUTSNS_PIN = 1 [13:47:29]*** CUTSNS_PIN = 0 [13:47:29]*** Brake cut motor [13:47:29]Read from MH i2c: 01 [13:47:29]MH_I2C_Read... [13:47:29]*** Stop cut motor [13:47:29]*** Cut end [13:47:29]Read from MH i2c: 01 07 00 [13:47:29]MH_I2C_Read... [13:47:29]Read from MH i2c: 01 07 00 01 22 00 00 00 00 00 FF 0F 38 [13:47:29]process_action close_receipt done [13:47:29]requested_data is exist [13:47:29]produce_requested_data [13:47:29]requested_item fm.sn is exist - process it [13:47:29]wFMCommunicate request_size=4 [13:47:29]MH_SAM_APDU [13:47:29]CAPDU: 80 11 00 00 [13:47:29]Write to MH i2c: E2 08 00 02 22 80 11 00 00 00 00 00 00 9E [13:47:29]Write i2c OK [13:47:29]MH_I2C_Read... [13:47:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:47:29]Read from MH i2c: E2 [13:47:29]MH_I2C_Read... [13:47:29]Read from MH i2c: E2 17 00 [13:47:29]MH_I2C_Read... [13:47:29]Read from MH i2c: E2 17 00 02 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F4 [13:47:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:47:29]wFMCommunicate OK [13:47:29]requested_item fd.num is exist - process it [13:47:29]SAM_PROTO_GetFieldsCounters [13:47:29]wFMCommunicate request_size=4 [13:47:29]MH_SAM_APDU [13:47:29]CAPDU: 80 13 00 00 [13:47:29]Write to MH i2c: E2 08 00 03 22 80 13 00 00 00 00 00 00 A1 [13:47:29]Write i2c OK [13:47:29]MH_I2C_Read... [13:47:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:47:29]Read from MH i2c: E2 [13:47:29]MH_I2C_Read... [13:47:29]Read from MH i2c: E2 62 00 [13:47:29]MH_I2C_Read... [13:47:29]Read from MH i2c: E2 62 00 03 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 69 84 02 00 0E 04 04 00 BF 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 6C [13:47:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 69 84 02 00 0E 04 04 00 BF 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 [13:47:29]wFMCommunicate OK [13:47:29]SAM_PROTO_GetFieldsCounters done [13:47:29]requested_item shift.num is exist - process it [13:47:29]requested_item shift.opened is exist - process it [13:47:29]req_shift_opened [13:47:29]FM_GetShiftState [13:47:29]SAM_PROTO_GetShiftState [13:47:29]wFMCommunicate request_size=4 [13:47:29]MH_SAM_APDU [13:47:29]CAPDU: 80 13 01 00 [13:47:29]Write to MH i2c: E2 08 00 04 22 80 13 01 00 00 00 00 00 A3 [13:47:29]Write i2c OK [13:47:29]MH_I2C_Read... [13:47:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:47:29]Read from MH i2c: E2 [13:47:29]MH_I2C_Read... [13:47:29]Read from MH i2c: E2 0E 00 [13:47:29]MH_I2C_Read... [13:47:29]Read from MH i2c: E2 0E 00 04 22 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 23 [13:47:29]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [13:47:29]wFMCommunicate OK [13:47:29]SAM_PROTO_GetShiftState done [13:47:29]FM_GetShiftState done [13:47:29]req_shift_opened done [13:47:29]requested_item shift.open_date is exist - process it [13:47:29]req_shift_open_date [13:47:29]req_shift_open_date done [13:47:29]produce_requested_data done [13:47:29]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164969,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [13:47:29]process_action_free close_receipt [13:47:29]json_value_free [13:47:29]json_value_free done [13:47:29]process_json_proto returns [13:47:29]Send response to host [13:47:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164969,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [13:47:29]free response buf [13:47:29]execute_script done [13:47:29]execute_script returns [13:47:29]free content buf [13:47:29]Sock 7.Close socket [13:47:29]Sock 7.Thread stoped [13:47:33]OFD Sender: No OFD packet to send [13:47:38]OFD Sender: No OFD packet to send [13:47:43]OFD Sender: No OFD packet to send [13:47:48]OFD Sender: No OFD packet to send [13:47:53]OFD Sender: No OFD packet to send [13:47:58]OFD Sender: No OFD packet to send [13:48:03]OFD Sender: No OFD packet to send [13:48:08]OFD Sender: No OFD packet to send [13:48:13]OFD Sender: No OFD packet to send [13:48:18]OFD Sender: No OFD packet to send [13:48:23]OFD Sender: No OFD packet to send [13:48:28]OFD Sender: No OFD packet to send [13:48:33]OFD Sender: No OFD packet to send [13:48:38]OFD Sender: No OFD packet to send [13:48:43]OFD Sender: No OFD packet to send [13:48:48]OFD Sender: No OFD packet to send [13:48:53]OFD Sender: No OFD packet to send [13:48:58]OFD Sender: No OFD packet to send [13:49:03]OFD Sender: No OFD packet to send [13:49:08]OFD Sender: No OFD packet to send [13:49:13]OFD Sender: No OFD packet to send [13:49:18]OFD Sender: No OFD packet to send [13:49:23]OFD Sender: No OFD packet to send [13:49:28]OFD Sender: No OFD packet to send [13:49:33]OFD Sender: No OFD packet to send [13:49:38]OFD Sender: No OFD packet to send [13:49:43]OFD Sender: No OFD packet to send [13:49:48]OFD Sender: No OFD packet to send [13:49:53]OFD Sender: No OFD packet to send [13:49:58]OFD Sender: No OFD packet to send [13:50:03]OFD Sender: No OFD packet to send [13:50:08]OFD Sender: No OFD packet to send [13:50:13]OFD Sender: No OFD packet to send [13:50:18]OFD Sender: No OFD packet to send [13:50:23]OFD Sender: No OFD packet to send [13:50:28]OFD Sender: No OFD packet to send [13:50:33]OFD Sender: No OFD packet to send [13:50:38]OFD Sender: No OFD packet to send [13:50:43]OFD Sender: No OFD packet to send [13:50:48]OFD Sender: No OFD packet to send [13:50:53]OFD Sender: No OFD packet to send [13:50:58]OFD Sender: No OFD packet to send [13:51:03]OFD Sender: No OFD packet to send [13:51:08]OFD Sender: No OFD packet to send [13:51:13]OFD Sender: No OFD packet to send [13:51:18]OFD Sender: No OFD packet to send [13:51:23]OFD Sender: No OFD packet to send [13:51:28]OFD Sender: No OFD packet to send [13:51:33]OFD Sender: No OFD packet to send [13:51:39]OFD Sender: No OFD packet to send [13:51:44]OFD Sender: No OFD packet to send [13:51:49]OFD Sender: No OFD packet to send [13:51:54]OFD Sender: No OFD packet to send [13:51:59]OFD Sender: No OFD packet to send [13:52:04]OFD Sender: No OFD packet to send [13:52:09]OFD Sender: No OFD packet to send [13:52:14]OFD Sender: No OFD packet to send [13:52:19]OFD Sender: No OFD packet to send [13:52:24]OFD Sender: No OFD packet to send [13:52:29]OFD Sender: No OFD packet to send [13:52:34]OFD Sender: No OFD packet to send [13:52:39]OFD Sender: No OFD packet to send [13:52:44]OFD Sender: No OFD packet to send [13:52:49]OFD Sender: No OFD packet to send [13:52:54]OFD Sender: No OFD packet to send [13:52:59]OFD Sender: No OFD packet to send [13:53:04]OFD Sender: No OFD packet to send [13:53:09]OFD Sender: No OFD packet to send [13:53:14]OFD Sender: No OFD packet to send [13:53:19]OFD Sender: No OFD packet to send [13:53:24]OFD Sender: No OFD packet to send [13:53:29]OFD Sender: No OFD packet to send [13:53:34]OFD Sender: No OFD packet to send [13:53:39]OFD Sender: No OFD packet to send [13:53:44]OFD Sender: No OFD packet to send [13:53:49]OFD Sender: No OFD packet to send [13:53:54]OFD Sender: No OFD packet to send [13:53:59]OFD Sender: No OFD packet to send [13:54:04]OFD Sender: No OFD packet to send [13:54:09]OFD Sender: No OFD packet to send [13:54:14]OFD Sender: No OFD packet to send [13:54:19]OFD Sender: No OFD packet to send [13:54:24]OFD Sender: No OFD packet to send [13:54:29]OFD Sender: No OFD packet to send [13:54:34]OFD Sender: No OFD packet to send [13:54:39]OFD Sender: No OFD packet to send [13:54:44]OFD Sender: No OFD packet to send [13:54:49]OFD Sender: No OFD packet to send [13:54:54]OFD Sender: No OFD packet to send [13:54:59]OFD Sender: No OFD packet to send [13:55:04]OFD Sender: No OFD packet to send [13:55:09]OFD Sender: No OFD packet to send [13:55:14]OFD Sender: No OFD packet to send [13:55:19]OFD Sender: No OFD packet to send [13:55:24]OFD Sender: No OFD packet to send [13:55:29]OFD Sender: No OFD packet to send [13:55:34]OFD Sender: No OFD packet to send [13:55:39]OFD Sender: No OFD packet to send [13:55:44]OFD Sender: No OFD packet to send [13:55:49]OFD Sender: No OFD packet to send [13:55:54]OFD Sender: No OFD packet to send [13:55:59]OFD Sender: No OFD packet to send [13:56:04]OFD Sender: No OFD packet to send [13:56:09]OFD Sender: No OFD packet to send [13:56:14]OFD Sender: No OFD packet to send [13:56:19]OFD Sender: No OFD packet to send [13:56:24]OFD Sender: No OFD packet to send [13:56:29]OFD Sender: No OFD packet to send [13:56:34]OFD Sender: No OFD packet to send [13:56:39]OFD Sender: No OFD packet to send [13:56:44]OFD Sender: No OFD packet to send [13:56:49]OFD Sender: No OFD packet to send [13:56:54]OFD Sender: No OFD packet to send [13:56:59]OFD Sender: No OFD packet to send [13:57:04]OFD Sender: No OFD packet to send [13:57:09]OFD Sender: No OFD packet to send [13:57:14]OFD Sender: No OFD packet to send [13:57:19]OFD Sender: No OFD packet to send [13:57:24]OFD Sender: No OFD packet to send [13:57:29]OFD Sender: No OFD packet to send [13:57:34]OFD Sender: No OFD packet to send [13:57:39]OFD Sender: No OFD packet to send [13:57:44]OFD Sender: No OFD packet to send [13:57:49]OFD Sender: No OFD packet to send [13:57:54]OFD Sender: No OFD packet to send [13:57:59]OFD Sender: No OFD packet to send [13:58:04]OFD Sender: No OFD packet to send [13:58:09]OFD Sender: No OFD packet to send [13:58:14]OFD Sender: No OFD packet to send [13:58:19]OFD Sender: No OFD packet to send [13:58:24]OFD Sender: No OFD packet to send [13:58:29]OFD Sender: No OFD packet to send [13:58:34]OFD Sender: No OFD packet to send [13:58:39]OFD Sender: No OFD packet to send [13:58:42]accept exits with 9 [13:58:42]New connection [13:58:42]New thread 3067473252 created [13:58:42]Thread 3067616612 joined [13:58:42]Waiting for new connection... [13:58:42] Sock 9.Parse request [13:58:42]Sock 9.Check first char [13:58:42]Sock 9.First char is OK [13:58:42]request: POST /json_proto HTTP/1.0 [13:58:42]Method: POST [13:58:42]URL: /json_proto [13:58:42]Method is POST - this is cgi request [13:58:42]url: /json_proto [13:58:42]query_string will be loaded in cgi processing [13:58:42]execute_cgi json_proto POST (null) [13:58:42]execute_cgi path=json_proto method=POST [13:58:42]POST find Content-Length [13:58:42]Host: 172.17.56.4:8080 [13:58:42]Content-Length: 677 [13:58:42]Content-Type: application/json [13:58:42] [13:58:42]POST finish read [13:58:42]Found Content-Length = 677 [13:58:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459069", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:58:42]execute_script... [13:58: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)459069", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:58:42]POST & json_proto [13:58:42]process_json_proto [13:58:42]json parsed OK: [13:58:42]protocol is kg_v1.0 [13:58:42]action value=close_receipt [13:58:42]process_action close_receipt [13:58:42]cmd_close_receipt [13:58:42]MH_GetDate [13:58:42]Write to MH i2c: F0 00 00 05 22 16 [13:58:42]Write i2c OK [13:58:42]MH_I2C_Read... [13:58:42]Read from MH i2c: F0 [13:58:42]MH_I2C_Read... [13:58:42]Read from MH i2c: F0 09 00 [13:58:42]MH_I2C_Read... [13:58:42]Read from MH i2c: F0 09 00 05 22 00 94 D9 93 66 C9 DC B2 64 40 [13:58:42]GetLastDocTimeStamp 1720964847 [13:58:42]current date 1720965524 [13:58:42]FM_GetShiftState [13:58:42]SAM_PROTO_GetShiftState [13:58:42]wFMCommunicate request_size=4 [13:58:42]MH_SAM_APDU [13:58:42]CAPDU: 80 13 01 00 [13:58:42]Write to MH i2c: E2 08 00 06 22 80 13 01 00 00 00 00 00 A5 [13:58:42]Write i2c OK [13:58:42]MH_I2C_Read... [13:58:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:42]Read from MH i2c: E2 [13:58:42]MH_I2C_Read... [13:58:42]Read from MH i2c: E2 0E 00 [13:58:42]MH_I2C_Read... [13:58:42]Read from MH i2c: E2 0E 00 06 22 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 25 [13:58:42]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [13:58:42]wFMCommunicate OK [13:58:42]SAM_PROTO_GetShiftState done [13:58:42]FM_GetShiftState done [13:58:42]opened in 1720917342 [13:58:42]opened+sec_in_day 1721003742 [13:58:42]quantity*price = 50008 [13:58:42]sum+1 = 50009 [13:58:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 168 14.07.2024 13:58 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164970 ФПД: 14939114317898 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T135844&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164970&fm=14939114317898&tin=02508201610067®Number=0000000000090829&sum=50000 [13:58:43]StoreToDocumentArchive [13:58:43]shift 447 fd 164970 [13:58:43]save to /storage/0447/doc_00164970 [13:58:43]save last doc name /storage/0447/doc_00164970 to /storage/kkm_last_doc_name [13:58:43]save OK [13:58:43]Clear old archive folders... [13:58:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:58:43]tlvbuf is 007E9840 [13:58:43]SAM_PROTO_ClearQueue [13:58:43]wFMCommunicate request_size=4 [13:58:43]MH_SAM_APDU [13:58:43]CAPDU: 80 09 00 00 [13:58:43]Write to MH i2c: E2 08 00 13 22 80 09 00 00 00 00 00 00 A7 [13:58:43]Write i2c OK [13:58:43]MH_I2C_Read... [13:58:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:58:43]Read from MH i2c: E2 [13:58:43]MH_I2C_Read... [13:58:43]Read from MH i2c: E2 03 00 [13:58:43]MH_I2C_Read... [13:58:43]Read from MH i2c: E2 03 00 13 22 00 90 00 A9 [13:58:43]RAPDU: 90 00 [13:58:43]wFMCommunicate OK [13:58:43]SAM_PROTO_ClearQueue done [13:58:43]KKMCreateOFDPacket [13:58:43]OFDProtocolAddRootSTLVToBuf [13:58:43]FM_MakeSignedData [13:58:43]FM_MakeSignedData [13:58:43]SAM_PROTO_SignData [13:58:43]wFMCommunicate request_size=4 [13:58:43]MH_SAM_APDU [13:58:43]CAPDU: 80 0D 01 02 [13:58:43]Write to MH i2c: E2 08 00 14 22 80 0D 01 02 00 00 00 00 AF [13:58:43]Write i2c OK [13:58:43]MH_I2C_Read... [13:58:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:58:43]Read from MH i2c: E2 [13:58:43]MH_I2C_Read... [13:58:43]Read from MH i2c: E2 03 00 [13:58:43]MH_I2C_Read... [13:58:43]Read from MH i2c: E2 03 00 14 22 00 90 00 AA [13:58:43]RAPDU: 90 00 [13:58:43]wFMCommunicate OK [13:58:43]wFMCommunicate request_size=255 [13:58:43]MH_SAM_APDU [13:58:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 00 00 00 F4 03 04 00 94 D9 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6A 84 02 00 35 04 06 00 0D [13:58:43]Write to MH i2c: E2 02 01 15 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 00 00 00 F4 03 04 00 94 D9 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6A 84 02 00 35 04 06 00 0D 00 00 F3 [13:58:43]Write i2c OK [13:58:43]MH_I2C_Read... [13:58:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:44]Read from MH i2c: E2 [13:58:44]MH_I2C_Read... [13:58:44]Read from MH i2c: E2 03 00 [13:58:44]MH_I2C_Read... [13:58:44]Read from MH i2c: E2 03 00 15 22 00 90 00 AB [13:58:44]RAPDU: 90 00 [13:58:44]wFMCommunicate OK [13:58:44]wFMCommunicate request_size=10 [13:58:44]MH_SAM_APDU [13:58:44]CAPDU: 80 0D 02 02 05 96 48 9A 28 4A [13:58:44]Write to MH i2c: E2 0D 00 16 22 80 0D 02 02 05 00 96 48 9A 28 4A 00 00 A6 [13:58:44]Write i2c OK [13:58:44]MH_I2C_Read... [13:58:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:44]Read from MH i2c: E2 [13:58:44]MH_I2C_Read... [13:58:44]Read from MH i2c: E2 03 00 [13:58:44]MH_I2C_Read... [13:58:44]Read from MH i2c: E2 03 00 16 22 00 90 00 AC [13:58:44]RAPDU: 90 00 [13:58:44]wFMCommunicate OK [13:58:44]wFMCommunicate request_size=4 [13:58:44]MH_SAM_APDU [13:58:44]CAPDU: 80 0D 03 02 [13:58:44]Write to MH i2c: E2 08 00 17 22 80 0D 03 02 00 00 00 00 B4 [13:58:44]Write i2c OK [13:58:44]MH_I2C_Read... [13:58:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:58:44]Read from MH i2c: E2 [13:58:44]MH_I2C_Read... [13:58:44]Read from MH i2c: E2 0B 00 [13:58:44]MH_I2C_Read... [13:58:44]Read from MH i2c: E2 0B 00 17 22 00 BA 39 6F 74 45 7F 2E 78 90 00 F5 [13:58:44]RAPDU: BA 39 6F 74 45 7F 2E 78 90 00 [13:58:44]wFMCommunicate OK [13:58:44]SAM_PROTO_SignData done [13:58:44]FM_MakeSignedData done [13:58:44]CreateOFDProtocolMessage [13:58:44]wFMCommunicate request_size=4 [13:58:44]MH_SAM_APDU [13:58:44]CAPDU: 80 11 00 00 [13:58:44]Write to MH i2c: E2 08 00 18 22 80 11 00 00 00 00 00 00 B4 [13:58:44]Write i2c OK [13:58:44]MH_I2C_Read... [13:58:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:44]Read from MH i2c: E2 [13:58:44]MH_I2C_Read... [13:58:44]Read from MH i2c: E2 17 00 [13:58:44]MH_I2C_Read... [13:58:44]Read from MH i2c: E2 17 00 18 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 0A [13:58:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:58:44]wFMCommunicate OK [13:58:44]CreateOFDProtocolMessage done [13:58:44]OFDSenderStorePacket 164970 [13:58:44]StoreOFDPacket docnum=164970 [13:58:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 BA B5 07 01 F9 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 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 00 00 00 F4 03 04 00 94 D9 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6A 84 02 00 35 04 06 00 0D 96 48 9A 28 4A BA 39 6F 74 45 7F 2E 78 [13:58:44]CheckFolder [13:58:44]dirname=/storage/ofd_packets [13:58:44]CheckFolder done [13:58:44]ProducePacketName [13:58:44]name=ofd_packets/00164970 [13:58:44]NVStorageSaveData ofd_packets/00164970 [13:58:44]File name is /storage/ofd_packets/00164970 [13:58:44]Write 301 bytes [13:58:44]NVStorageSaveData done [13:58:44]OFDSenderStorePacket done [13:58:44]KKMCreateOFDPacket done [13:58:44]NVStorageSaveData kkm_last_timestamp [13:58:44]File name is /storage/kkm_last_timestamp [13:58:44]Write 4 bytes [13:58:44]NVStorageSaveData done [13:58:44]ExternCall_PrintAddStr [13:58:44]wPrintStart [13:58:44]Write to MH i2c: 01 00 00 19 22 3B [13:58:44]Write i2c OK [13:58:44]MH_I2C_Read... [13:58:44]Read from MH i2c: 01 [13:58:44]MH_I2C_Read... [13:58:44]Read from MH i2c: 01 07 00 [13:58:44]MH_I2C_Read... [13:58:44]Read from MH i2c: 01 07 00 19 22 00 00 00 00 00 FF 0F 50 [13:58:44]RasterBufferAndPrint [13:58:44]line Счет N : (1)459069 [13:58:44]line ИНН: 02508201610067 [13:58:44]line Контрольно-Кассовый Чек [13:58:44]line ПРОДАЖА [13:58:44]line ТРК (МРК, ГНК) : 12 [13:58:44]line Товар: 2710124130 [13:58:44]line Аи-92-К-5 [13:58:44]line 7.600 * 65.80 [13:58:44]line = 500.08 [13:58:44]line НДС 12% НСП 1% [13:58:44]line > о реализуемом товаре [13:58:44]line ОКРУГЛЕНИЕ: -0.08 [13:58:44]line ИТОГО: 500.00 [13:58:44]line Внесено: 500.00 [13:58:44]line СДАЧА: 0.00 [13:58:44]line НСП 1% : 4.42 [13:58:44]line НДС 12% : 53.11 [13:58:44]line Наличными: 500.00 [13:58:44]line Безнал.: 0.00 [13:58:44]line Место: АЗС № 72 "Партнер Нефть" [13:58:44]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:58:44]line СНО: Общий режим [13:58:44]line Чек 168 14.07.2024 13:58 [13:58:44]line Смена: 447 ФФД: 1.0 [13:58:44]line ЗНМ: 0300000160 [13:58:44]line РНМ: 0000000000090829 [13:58:44]line Версия ККМ: 001 [13:58:44]line ФМ: 0000000000874718 [13:58:44]line ФД: 164970 [13:58:44]line ФПД: 14939114317898 [13:58:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T135844&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164970&fm=14939114317898&tin=02508201610067®Number=0000000000090829&sum=50000 [13:58:44]written 0, free lines is 4095 [13:58:44]OFD Sender: Processing packet 164970 [packets to send 104, broken 103] [13:58:44]ProducePacketName [13:58:44]name=ofd_packets/00164970 [13:58:44]OFD Sender: To server: pG, [13:58:44]CommunicateWithHost lk.salyk.kg:30040 [13:58:44]ConnectInit lk.salyk.kg [13:58:44]Connected sock=10 [13:58:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 BA B5 07 01 F9 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 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 00 00 00 F4 03 04 00 94 D9 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6A 84 02 00 35 04 06 00 0D 96 48 9A 28 4A BA 39 6F 74 45 7F 2E 78 [13:58:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 7D D2 47 00 CB 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6A 84 02 00 F4 03 04 00 21 80 93 66 B6 04 01 00 00 15 BE 6E 33 E4 AE 16 76 [13:58:44]CommunicateWithHost err = 0 [13:58:44]CheckOFDResponse [13:58:44]1017 (14) - 77093643461234 [13:58:44]1041 (16) - 0000000000874718 [13:58:44]1040 (4) - 164970 [13:58:44]1012 (4) - 14.07.2024 07:37 [13:58:44]1206 (1) - 0 [13:58:44]OFD Sender: Remove packet 164970 [13:58:44]ProducePacketName [13:58:44]name=ofd_packets/00164970 [13:58:44]NVStorageDeleteData [13:58:45]Write to MH i2c: 01 00 00 43 22 65 [13:58:45]Write i2c OK [13:58:45]MH_I2C_Read... [13:58:45]Read from MH i2c: 01 [13:58:45]MH_I2C_Read... [13:58:45]Read from MH i2c: 01 07 00 [13:58:45]MH_I2C_Read... [13:58:45]Read from MH i2c: 01 07 00 43 22 00 00 00 00 00 F1 0C 69 [13:58:45]RasterBufferAndPrint [13:58:45]line [13:58:45]line [13:58:45]line [13:58:45]line [13:58:45]line [13:58:45]written 0, free lines is 3323 [13:58:45]MH_Cut [13:58:45]Write to MH i2c: D1 01 00 4A 22 01 3E [13:58:45]Write i2c OK [13:58:45]MH_I2C_Read... [13:58:45]Read from MH i2c: D1 [13:58:45]MH_I2C_Read... [13:58:45]Read from MH i2c: D1 01 00 [13:58:45]MH_I2C_Read... [13:58:45]Read from MH i2c: D1 01 00 4A 22 00 3D [13:58:45]Write to MH i2c: 01 00 00 4B 22 6D [13:58:45]Write i2c OK [13:58:45]MH_I2C_Read... [13:58:45]OFD Sender: No OFD packet to send [13:58:45]*** Cut start [13:58:45]*** Partial cut [13:58:45]*** CUTSNS_PIN = 1 [13:58:45]*** CUTSNS_PIN = 0 [13:58:46]*** Brake cut motor [13:58:46]Read from MH i2c: 01 [13:58:46]MH_I2C_Read... [13:58:46]*** Stop cut motor [13:58:46]*** Cut end [13:58:46]Read from MH i2c: 01 07 00 [13:58:46]MH_I2C_Read... [13:58:46]Read from MH i2c: 01 07 00 4B 22 00 00 00 00 00 FF 0F 82 [13:58:46]process_action close_receipt done [13:58:46]requested_data is exist [13:58:46]produce_requested_data [13:58:46]requested_item fm.sn is exist - process it [13:58:46]wFMCommunicate request_size=4 [13:58:46]MH_SAM_APDU [13:58:46]CAPDU: 80 11 00 00 [13:58:46]Write to MH i2c: E2 08 00 4C 22 80 11 00 00 00 00 00 00 E8 [13:58:46]Write i2c OK [13:58:46]MH_I2C_Read... [13:58:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:46]Read from MH i2c: E2 [13:58:46]MH_I2C_Read... [13:58:46]Read from MH i2c: E2 17 00 [13:58:46]MH_I2C_Read... [13:58:46]Read from MH i2c: E2 17 00 4C 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 3E [13:58:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:58:46]wFMCommunicate OK [13:58:46]requested_item fd.num is exist - process it [13:58:46]SAM_PROTO_GetFieldsCounters [13:58:46]wFMCommunicate request_size=4 [13:58:46]MH_SAM_APDU [13:58:46]CAPDU: 80 13 00 00 [13:58:46]Write to MH i2c: E2 08 00 4D 22 80 13 00 00 00 00 00 00 EB [13:58:46]Write i2c OK [13:58:46]MH_I2C_Read... [13:58:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:58:46]Read from MH i2c: E2 [13:58:46]MH_I2C_Read... [13:58:46]Read from MH i2c: E2 62 00 [13:58:46]MH_I2C_Read... [13:58:46]Read from MH i2c: E2 62 00 4D 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 6A 84 02 00 0E 04 04 00 BF 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 BA [13:58:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 6A 84 02 00 0E 04 04 00 BF 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 [13:58:46]wFMCommunicate OK [13:58:46]SAM_PROTO_GetFieldsCounters done [13:58:46]requested_item shift.num is exist - process it [13:58:46]requested_item shift.opened is exist - process it [13:58:46]req_shift_opened [13:58:46]FM_GetShiftState [13:58:46]SAM_PROTO_GetShiftState [13:58:46]wFMCommunicate request_size=4 [13:58:46]MH_SAM_APDU [13:58:46]CAPDU: 80 13 01 00 [13:58:46]Write to MH i2c: E2 08 00 4E 22 80 13 01 00 00 00 00 00 ED [13:58:46]Write i2c OK [13:58:46]MH_I2C_Read... [13:58:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:46]Read from MH i2c: E2 [13:58:46]MH_I2C_Read... [13:58:46]Read from MH i2c: E2 0E 00 [13:58:46]MH_I2C_Read... [13:58:46]Read from MH i2c: E2 0E 00 4E 22 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 6D [13:58:46]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [13:58:46]wFMCommunicate OK [13:58:46]SAM_PROTO_GetShiftState done [13:58:46]FM_GetShiftState done [13:58:46]req_shift_opened done [13:58:46]requested_item shift.open_date is exist - process it [13:58:46]req_shift_open_date [13:58:46]req_shift_open_date done [13:58:46]produce_requested_data done [13:58:46]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164970,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [13:58:46]process_action_free close_receipt [13:58:46]json_value_free [13:58:46]json_value_free done [13:58:46]process_json_proto returns [13:58:46]Send response to host [13:58:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164970,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [13:58:46]free response buf [13:58:46]execute_script done [13:58:46]execute_script returns [13:58:46]free content buf [13:58:46]Sock 9.Close socket [13:58:46]Sock 9.Thread stoped [13:58:50]accept exits with 7 [13:58:50]New connection [13:58:50]New thread 3067616612 created [13:58:50]Thread 3067473252 joined [13:58:50]Waiting for new connection... [13:58:50] Sock 7.Parse request [13:58:50]Sock 7.Check first char [13:58:50]Sock 7.First char is OK [13:58:50]request: POST /json_proto HTTP/1.0 [13:58:50]Method: POST [13:58:50]URL: /json_proto [13:58:50]Method is POST - this is cgi request [13:58:50]url: /json_proto [13:58:50]query_string will be loaded in cgi processing [13:58:50]execute_cgi json_proto POST (null) [13:58:50]execute_cgi path=json_proto method=POST [13:58:50]POST find Content-Length [13:58:50]Host: 172.17.56.4:8080 [13:58:50]Content-Length: 682 [13:58:50]Content-Type: application/json [13:58:50] [13:58:50]POST finish read [13:58:50]Found Content-Length = 682 [13:58:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459068", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 22.800, "sum" : 1500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:58:50]execute_script... [13:58: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)459068", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 22.800, "sum" : 1500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:58:50]POST & json_proto [13:58:50]process_json_proto [13:58:50]json parsed OK: [13:58:50]protocol is kg_v1.0 [13:58:50]action value=close_receipt [13:58:50]process_action close_receipt [13:58:50]cmd_close_receipt [13:58:50]MH_GetDate [13:58:50]Write to MH i2c: F0 00 00 4F 22 60 [13:58:50]Write i2c OK [13:58:50]MH_I2C_Read... [13:58:50]Read from MH i2c: F0 [13:58:50]MH_I2C_Read... [13:58:50]Read from MH i2c: F0 09 00 [13:58:50]MH_I2C_Read... [13:58:50]Read from MH i2c: F0 09 00 4F 22 00 9B D9 93 66 C9 DC B2 64 91 [13:58:50]GetLastDocTimeStamp 1720965524 [13:58:50]current date 1720965531 [13:58:50]FM_GetShiftState [13:58:50]SAM_PROTO_GetShiftState [13:58:50]wFMCommunicate request_size=4 [13:58:50]MH_SAM_APDU [13:58:50]CAPDU: 80 13 01 00 [13:58:50]Write to MH i2c: E2 08 00 50 22 80 13 01 00 00 00 00 00 EF [13:58:50]Write i2c OK [13:58:50]MH_I2C_Read... [13:58:50]Read from MH i2c: E2 [13:58:50]MH_I2C_Read... [13:58:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:50]Read from MH i2c: E2 0E 00 [13:58:50]MH_I2C_Read... [13:58:50]Read from MH i2c: E2 0E 00 50 22 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 6F [13:58:50]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [13:58:50]wFMCommunicate OK [13:58:50]SAM_PROTO_GetShiftState done [13:58:50]FM_GetShiftState done [13:58:50]opened in 1720917342 [13:58:50]opened+sec_in_day 1721003742 [13:58:50]quantity*price = 150024 [13:58:50]sum+1 = 150025 [13:58:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.32 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 169 14.07.2024 13:58 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164971 ФПД: 186797136186072 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T135851&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164971&fm=186797136186072&tin=02508201610067®Number=0000000000090829&sum=150000 [13:58:51]StoreToDocumentArchive [13:58:51]shift 447 fd 164971 [13:58:51]save to /storage/0447/doc_00164971 [13:58:51]save last doc name /storage/0447/doc_00164971 to /storage/kkm_last_doc_name [13:58:51]save OK [13:58:51]Clear old archive folders... [13:58:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:58:51]tlvbuf is 0073F9E0 [13:58:51]SAM_PROTO_ClearQueue [13:58:51]wFMCommunicate request_size=4 [13:58:51]MH_SAM_APDU [13:58:51]CAPDU: 80 09 00 00 [13:58:51]Write to MH i2c: E2 08 00 5D 22 80 09 00 00 00 00 00 00 F1 [13:58:51]Write i2c OK [13:58:51]MH_I2C_Read... [13:58:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:58:51]Read from MH i2c: E2 [13:58:51]MH_I2C_Read... [13:58:51]Read from MH i2c: E2 03 00 [13:58:51]MH_I2C_Read... [13:58:51]Read from MH i2c: E2 03 00 5D 22 00 90 00 F3 [13:58:51]RAPDU: 90 00 [13:58:51]wFMCommunicate OK [13:58:51]SAM_PROTO_ClearQueue done [13:58:51]KKMCreateOFDPacket [13:58:51]OFDProtocolAddRootSTLVToBuf [13:58:51]FM_MakeSignedData [13:58:51]FM_MakeSignedData [13:58:51]SAM_PROTO_SignData [13:58:51]wFMCommunicate request_size=4 [13:58:51]MH_SAM_APDU [13:58:51]CAPDU: 80 0D 01 02 [13:58:51]Write to MH i2c: E2 08 00 5E 22 80 0D 01 02 00 00 00 00 F9 [13:58:51]Write i2c OK [13:58:51]MH_I2C_Read... [13:58:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:58:51]Read from MH i2c: E2 [13:58:51]MH_I2C_Read... [13:58:51]Read from MH i2c: E2 03 00 [13:58:51]MH_I2C_Read... [13:58:51]Read from MH i2c: E2 03 00 5E 22 00 90 00 F4 [13:58:51]RAPDU: 90 00 [13:58:51]wFMCommunicate OK [13:58:51]wFMCommunicate request_size=255 [13:58:51]MH_SAM_APDU [13:58:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 59 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 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 3C 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 A9 00 00 00 F4 03 04 00 9B D9 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6B 84 02 00 35 04 06 00 A9 [13:58:51]Write to MH i2c: E2 02 01 5F 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 59 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 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 3C 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 A9 00 00 00 F4 03 04 00 9B D9 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6B 84 02 00 35 04 06 00 A9 00 00 28 [13:58:51]Write i2c OK [13:58:51]MH_I2C_Read... [13:58:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:51]Read from MH i2c: E2 [13:58:51]MH_I2C_Read... [13:58:51]Read from MH i2c: E2 03 00 [13:58:51]MH_I2C_Read... [13:58:51]Read from MH i2c: E2 03 00 5F 22 00 90 00 F5 [13:58:51]RAPDU: 90 00 [13:58:51]wFMCommunicate OK [13:58:51]wFMCommunicate request_size=10 [13:58:51]MH_SAM_APDU [13:58:51]CAPDU: 80 0D 02 02 05 E4 18 F2 8A D8 [13:58:51]Write to MH i2c: E2 0D 00 60 22 80 0D 02 02 05 00 E4 18 F2 8A D8 00 00 56 [13:58:51]Write i2c OK [13:58:51]MH_I2C_Read... [13:58:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:51]Read from MH i2c: E2 [13:58:51]MH_I2C_Read... [13:58:51]Read from MH i2c: E2 03 00 [13:58:51]MH_I2C_Read... [13:58:51]Read from MH i2c: E2 03 00 60 22 00 90 00 F6 [13:58:51]RAPDU: 90 00 [13:58:51]wFMCommunicate OK [13:58:51]wFMCommunicate request_size=4 [13:58:51]MH_SAM_APDU [13:58:51]CAPDU: 80 0D 03 02 [13:58:51]Write to MH i2c: E2 08 00 61 22 80 0D 03 02 00 00 00 00 FE [13:58:51]Write i2c OK [13:58:51]MH_I2C_Read... [13:58:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:58:51]Read from MH i2c: E2 [13:58:51]MH_I2C_Read... [13:58:51]Read from MH i2c: E2 0B 00 [13:58:51]MH_I2C_Read... [13:58:51]Read from MH i2c: E2 0B 00 61 22 00 1C 20 56 D2 DC BD 4C EB 90 00 33 [13:58:51]RAPDU: 1C 20 56 D2 DC BD 4C EB 90 00 [13:58:51]wFMCommunicate OK [13:58:51]SAM_PROTO_SignData done [13:58:51]FM_MakeSignedData done [13:58:51]CreateOFDProtocolMessage [13:58:51]wFMCommunicate request_size=4 [13:58:51]MH_SAM_APDU [13:58:51]CAPDU: 80 11 00 00 [13:58:51]Write to MH i2c: E2 08 00 62 22 80 11 00 00 00 00 00 00 FE [13:58:51]Write i2c OK [13:58:51]MH_I2C_Read... [13:58:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:51]Read from MH i2c: E2 [13:58:51]MH_I2C_Read... [13:58:51]Read from MH i2c: E2 17 00 [13:58:51]MH_I2C_Read... [13:58:51]Read from MH i2c: E2 17 00 62 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 54 [13:58:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:58:51]wFMCommunicate OK [13:58:51]CreateOFDProtocolMessage done [13:58:51]OFDSenderStorePacket 164971 [13:58:51]StoreOFDPacket docnum=164971 [13:58:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 18 33 07 01 2E FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 59 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 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 3C 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 A9 00 00 00 F4 03 04 00 9B D9 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6B 84 02 00 35 04 06 00 A9 E4 18 F2 8A D8 1C 20 56 D2 DC BD 4C EB [13:58:51]CheckFolder [13:58:51]dirname=/storage/ofd_packets [13:58:51]CheckFolder done [13:58:51]ProducePacketName [13:58:51]name=ofd_packets/00164971 [13:58:51]NVStorageSaveData ofd_packets/00164971 [13:58:51]File name is /storage/ofd_packets/00164971 [13:58:51]Write 301 bytes [13:58:51]NVStorageSaveData done [13:58:51]OFDSenderStorePacket done [13:58:51]KKMCreateOFDPacket done [13:58:51]NVStorageSaveData kkm_last_timestamp [13:58:51]File name is /storage/kkm_last_timestamp [13:58:51]Write 4 bytes [13:58:51]NVStorageSaveData done [13:58:51]ExternCall_PrintAddStr [13:58:51]wPrintStart [13:58:51]Write to MH i2c: 01 00 00 63 22 85 [13:58:51]Write i2c OK [13:58:51]MH_I2C_Read... [13:58:51]Read from MH i2c: 01 [13:58:51]MH_I2C_Read... [13:58:51]Read from MH i2c: 01 07 00 [13:58:51]MH_I2C_Read... [13:58:51]Read from MH i2c: 01 07 00 63 22 00 00 00 00 00 FF 0F 9A [13:58:51]RasterBufferAndPrint [13:58:51]line Счет N : (1)459068 [13:58:51]line ИНН: 02508201610067 [13:58:51]line Контрольно-Кассовый Чек [13:58:51]line ПРОДАЖА [13:58:51]line ТРК (МРК, ГНК) : 22 [13:58:51]line Товар: 2710124130 [13:58:51]line Аи-92-К-5 [13:58:51]line 22.800 * 65.80 [13:58:51]line = 1500.24 [13:58:51]line НДС 12% НСП 1% [13:58:51]line > о реализуемом товаре [13:58:51]line ОКРУГЛЕНИЕ: -0.24 [13:58:51]line ИТОГО: 1500.00 [13:58:51]line Внесено: 1500.00 [13:58:51]line СДАЧА: 0.00 [13:58:51]line НСП 1% : 13.28 [13:58:51]line НДС 12% : 159.32 [13:58:51]line Наличными: 1500.00 [13:58:51]line Безнал.: 0.00 [13:58:51]line Место: АЗС № 72 "Партнер Нефть" [13:58:51]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:58:51]line СНО: Общий режим [13:58:51]line Чек 169 14.07.2024 13:58 [13:58:51]line Смена: 447 ФФД: 1.0 [13:58:51]line ЗНМ: 0300000160 [13:58:51]line РНМ: 0000000000090829 [13:58:51]line Версия ККМ: 001 [13:58:51]line ФМ: 0000000000874718 [13:58:51]line ФД: 164971 [13:58:51]line ФПД: 186797136186072 [13:58:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T135851&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164971&fm=186797136186072&tin=02508201610067®Number=0000000000090829&sum=150000 [13:58:51]written 0, free lines is 4095 [13:58:52]OFD Sender: Processing packet 164971 [packets to send 104, broken 103] [13:58:52]ProducePacketName [13:58:52]name=ofd_packets/00164971 [13:58:52]OFD Sender: To server: pG, [13:58:52]CommunicateWithHost lk.salyk.kg:30040 [13:58:52]ConnectInit lk.salyk.kg [13:58:52]Connected sock=10 [13:58:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 18 33 07 01 2E FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 59 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 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 3C 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 A9 00 00 00 F4 03 04 00 9B D9 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6B 84 02 00 35 04 06 00 A9 E4 18 F2 8A D8 1C 20 56 D2 DC BD 4C EB [13:58:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 86 DA 47 00 46 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6B 84 02 00 F4 03 04 00 29 80 93 66 B6 04 01 00 00 9E 95 03 D3 72 D5 8F D9 [13:58:52]CommunicateWithHost err = 0 [13:58:52]CheckOFDResponse [13:58:52]1017 (14) - 77093643461234 [13:58:52]1041 (16) - 0000000000874718 [13:58:52]1040 (4) - 164971 [13:58:52]1012 (4) - 14.07.2024 07:37 [13:58:52]1206 (1) - 0 [13:58:52]OFD Sender: Remove packet 164971 [13:58:52]ProducePacketName [13:58:52]name=ofd_packets/00164971 [13:58:52]NVStorageDeleteData [13:58:52]Write to MH i2c: 01 00 00 8D 22 AF [13:58:52]Write i2c OK [13:58:52]MH_I2C_Read... [13:58:52]Read from MH i2c: 01 [13:58:52]MH_I2C_Read... [13:58:52]Read from MH i2c: 01 07 00 [13:58:52]MH_I2C_Read... [13:58:52]Read from MH i2c: 01 07 00 8D 22 00 00 00 00 00 07 0D CA [13:58:52]RasterBufferAndPrint [13:58:52]line [13:58:52]line [13:58:52]line [13:58:52]line [13:58:52]line [13:58:52]written 0, free lines is 3344 [13:58:52]MH_Cut [13:58:52]Write to MH i2c: D1 01 00 94 22 01 88 [13:58:52]Write i2c OK [13:58:52]MH_I2C_Read... [13:58:52]Read from MH i2c: D1 [13:58:52]MH_I2C_Read... [13:58:52]Read from MH i2c: D1 01 00 [13:58:52]MH_I2C_Read... [13:58:52]Read from MH i2c: D1 01 00 94 22 00 87 [13:58:52]Write to MH i2c: 01 00 00 95 22 B7 [13:58:52]Write i2c OK [13:58:52]MH_I2C_Read... [13:58:52]OFD Sender: No OFD packet to send [13:58:53]*** Cut start [13:58:53]*** Partial cut [13:58:53]*** CUTSNS_PIN = 1 [13:58:53]*** CUTSNS_PIN = 0 [13:58:53]*** Brake cut motor [13:58:53]Read from MH i2c: 01 [13:58:53]MH_I2C_Read... [13:58:53]*** Stop cut motor [13:58:53]*** Cut end [13:58:53]Read from MH i2c: 01 07 00 [13:58:53]MH_I2C_Read... [13:58:53]Read from MH i2c: 01 07 00 95 22 00 00 00 00 00 FF 0F CC [13:58:53]process_action close_receipt done [13:58:53]requested_data is exist [13:58:53]produce_requested_data [13:58:53]requested_item fm.sn is exist - process it [13:58:53]wFMCommunicate request_size=4 [13:58:53]MH_SAM_APDU [13:58:53]CAPDU: 80 11 00 00 [13:58:53]Write to MH i2c: E2 08 00 96 22 80 11 00 00 00 00 00 00 32 [13:58:53]Write i2c OK [13:58:53]MH_I2C_Read... [13:58:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:53]Read from MH i2c: E2 [13:58:53]MH_I2C_Read... [13:58:53]Read from MH i2c: E2 17 00 [13:58:53]MH_I2C_Read... [13:58:53]Read from MH i2c: E2 17 00 96 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 88 [13:58:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:58:53]wFMCommunicate OK [13:58:53]requested_item fd.num is exist - process it [13:58:53]SAM_PROTO_GetFieldsCounters [13:58:53]wFMCommunicate request_size=4 [13:58:53]MH_SAM_APDU [13:58:53]CAPDU: 80 13 00 00 [13:58:53]Write to MH i2c: E2 08 00 97 22 80 13 00 00 00 00 00 00 35 [13:58:53]Write i2c OK [13:58:53]MH_I2C_Read... [13:58:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:58:53]Read from MH i2c: E2 [13:58:53]MH_I2C_Read... [13:58:53]Read from MH i2c: E2 62 00 [13:58:53]MH_I2C_Read... [13:58:53]Read from MH i2c: E2 62 00 97 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 6B 84 02 00 0E 04 04 00 BF 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 08 [13:58:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 6B 84 02 00 0E 04 04 00 BF 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 [13:58:53]wFMCommunicate OK [13:58:53]SAM_PROTO_GetFieldsCounters done [13:58:53]requested_item shift.num is exist - process it [13:58:53]requested_item shift.opened is exist - process it [13:58:53]req_shift_opened [13:58:53]FM_GetShiftState [13:58:53]SAM_PROTO_GetShiftState [13:58:53]wFMCommunicate request_size=4 [13:58:53]MH_SAM_APDU [13:58:53]CAPDU: 80 13 01 00 [13:58:53]Write to MH i2c: E2 08 00 98 22 80 13 01 00 00 00 00 00 37 [13:58:53]Write i2c OK [13:58:53]MH_I2C_Read... [13:58:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:53]Read from MH i2c: E2 [13:58:53]MH_I2C_Read... [13:58:53]Read from MH i2c: E2 0E 00 [13:58:53]MH_I2C_Read... [13:58:53]Read from MH i2c: E2 0E 00 98 22 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 B7 [13:58:53]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [13:58:53]wFMCommunicate OK [13:58:53]SAM_PROTO_GetShiftState done [13:58:53]FM_GetShiftState done [13:58:53]req_shift_opened done [13:58:53]requested_item shift.open_date is exist - process it [13:58:53]req_shift_open_date [13:58:53]req_shift_open_date done [13:58:53]produce_requested_data done [13:58:53]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164971,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [13:58:53]process_action_free close_receipt [13:58:53]json_value_free [13:58:53]json_value_free done [13:58:53]process_json_proto returns [13:58:53]Send response to host [13:58:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164971,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [13:58:53]free response buf [13:58:53]execute_script done [13:58:53]execute_script returns [13:58:53]free content buf [13:58:53]Sock 7.Close socket [13:58:53]Sock 7.Thread stoped [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:28]accept exits with 9 [13:59:28]New connection [13:59:28]New thread 3067473252 created [13:59:28]Thread 3067616612 joined [13:59:28]Waiting for new connection... [13:59:28] Sock 9.Parse request [13:59:28]Sock 9.Check first char [13:59:28]Sock 9.First char is OK [13:59:28]request: POST /json_proto HTTP/1.0 [13:59:28]Method: POST [13:59:28]URL: /json_proto [13:59:28]Method is POST - this is cgi request [13:59:28]url: /json_proto [13:59:28]query_string will be loaded in cgi processing [13:59:28]execute_cgi json_proto POST (null) [13:59:28]execute_cgi path=json_proto method=POST [13:59:28]POST find Content-Length [13:59:28]Host: 172.17.56.4:8080 [13:59:28]Content-Length: 677 [13:59:28]Content-Type: application/json [13:59:28] [13:59:28]POST finish read [13:59:28]Found Content-Length = 677 [13:59:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459070", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.800, "sum" : 250.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:59:28]execute_script... [13:59: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)459070", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.800, "sum" : 250.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:59:28]POST & json_proto [13:59:28]process_json_proto [13:59:28]json parsed OK: [13:59:28]protocol is kg_v1.0 [13:59:28]action value=close_receipt [13:59:28]process_action close_receipt [13:59:28]cmd_close_receipt [13:59:28]MH_GetDate [13:59:28]Write to MH i2c: F0 00 00 99 22 AA [13:59:28]Write i2c OK [13:59:28]MH_I2C_Read... [13:59:28]Read from MH i2c: F0 [13:59:28]MH_I2C_Read... [13:59:28]Read from MH i2c: F0 09 00 [13:59:28]MH_I2C_Read... [13:59:28]Read from MH i2c: F0 09 00 99 22 00 C2 D9 93 66 C9 DC B2 64 02 [13:59:28]GetLastDocTimeStamp 1720965531 [13:59:28]current date 1720965570 [13:59:28]FM_GetShiftState [13:59:28]SAM_PROTO_GetShiftState [13:59:28]wFMCommunicate request_size=4 [13:59:28]MH_SAM_APDU [13:59:28]CAPDU: 80 13 01 00 [13:59:28]Write to MH i2c: E2 08 00 9A 22 80 13 01 00 00 00 00 00 39 [13:59:28]Write i2c OK [13:59:28]MH_I2C_Read... [13:59:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:59:28]Read from MH i2c: E2 [13:59:28]MH_I2C_Read... [13:59:28]Read from MH i2c: E2 0E 00 [13:59:28]MH_I2C_Read... [13:59:28]Read from MH i2c: E2 0E 00 9A 22 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 B9 [13:59:28]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [13:59:28]wFMCommunicate OK [13:59:28]SAM_PROTO_GetShiftState done [13:59:28]FM_GetShiftState done [13:59:28]opened in 1720917342 [13:59:28]opened+sec_in_day 1721003742 [13:59:28]quantity*price = 25004 [13:59:28]sum+1 = 25005 [13:59:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.55 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 170 14.07.2024 13:59 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164972 ФПД: 145390190948080 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T135930&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164972&fm=145390190948080&tin=02508201610067®Number=0000000000090829&sum=25000 [13:59:29]StoreToDocumentArchive [13:59:29]shift 447 fd 164972 [13:59:29]save to /storage/0447/doc_00164972 [13:59:29]save last doc name /storage/0447/doc_00164972 to /storage/kkm_last_doc_name [13:59:29]save OK [13:59:29]Clear old archive folders... [13:59:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:59:30]tlvbuf is 0079B4D0 [13:59:30]SAM_PROTO_ClearQueue [13:59:30]wFMCommunicate request_size=4 [13:59:30]MH_SAM_APDU [13:59:30]CAPDU: 80 09 00 00 [13:59:30]Write to MH i2c: E2 08 00 A7 22 80 09 00 00 00 00 00 00 3B [13:59:30]Write i2c OK [13:59:30]MH_I2C_Read... [13:59:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:59:30]Read from MH i2c: E2 [13:59:30]MH_I2C_Read... [13:59:30]Read from MH i2c: E2 03 00 [13:59:30]MH_I2C_Read... [13:59:30]Read from MH i2c: E2 03 00 A7 22 00 90 00 3D [13:59:30]RAPDU: 90 00 [13:59:30]wFMCommunicate OK [13:59:30]SAM_PROTO_ClearQueue done [13:59:30]KKMCreateOFDPacket [13:59:30]OFDProtocolAddRootSTLVToBuf [13:59:30]FM_MakeSignedData [13:59:30]FM_MakeSignedData [13:59:30]SAM_PROTO_SignData [13:59:30]wFMCommunicate request_size=4 [13:59:30]MH_SAM_APDU [13:59:30]CAPDU: 80 0D 01 02 [13:59:30]Write to MH i2c: E2 08 00 A8 22 80 0D 01 02 00 00 00 00 43 [13:59:30]Write i2c OK [13:59:30]MH_I2C_Read... [13:59:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:59:30]Read from MH i2c: E2 [13:59:30]MH_I2C_Read... [13:59:30]Read from MH i2c: E2 03 00 [13:59:30]MH_I2C_Read... [13:59:30]Read from MH i2c: E2 03 00 A8 22 00 90 00 3E [13:59:30]RAPDU: 90 00 [13:59:30]wFMCommunicate OK [13:59:30]wFMCommunicate request_size=255 [13:59:30]MH_SAM_APDU [13:59:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 AC 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 C2 D9 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6C 84 02 00 35 04 06 00 84 [13:59:30]Write to MH i2c: E2 02 01 A9 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 AC 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 C2 D9 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6C 84 02 00 35 04 06 00 84 00 00 DF [13:59:30]Write i2c OK [13:59:30]MH_I2C_Read... [13:59:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:59:30]Read from MH i2c: E2 [13:59:30]MH_I2C_Read... [13:59:30]Read from MH i2c: E2 03 00 [13:59:30]MH_I2C_Read... [13:59:30]Read from MH i2c: E2 03 00 A9 22 00 90 00 3F [13:59:30]RAPDU: 90 00 [13:59:30]wFMCommunicate OK [13:59:30]wFMCommunicate request_size=10 [13:59:30]MH_SAM_APDU [13:59:30]CAPDU: 80 0D 02 02 05 3B 4A AF 6E F0 [13:59:30]Write to MH i2c: E2 0D 00 AA 22 80 0D 02 02 05 00 3B 4A AF 6E F0 00 00 E2 [13:59:30]Write i2c OK [13:59:30]MH_I2C_Read... [13:59:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:59:30]Read from MH i2c: E2 [13:59:30]MH_I2C_Read... [13:59:30]Read from MH i2c: E2 03 00 [13:59:30]MH_I2C_Read... [13:59:30]Read from MH i2c: E2 03 00 AA 22 00 90 00 40 [13:59:30]RAPDU: 90 00 [13:59:30]wFMCommunicate OK [13:59:30]wFMCommunicate request_size=4 [13:59:30]MH_SAM_APDU [13:59:30]CAPDU: 80 0D 03 02 [13:59:30]Write to MH i2c: E2 08 00 AB 22 80 0D 03 02 00 00 00 00 48 [13:59:30]Write i2c OK [13:59:30]MH_I2C_Read... [13:59:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:59:30]Read from MH i2c: E2 [13:59:30]MH_I2C_Read... [13:59:30]Read from MH i2c: E2 0B 00 [13:59:30]MH_I2C_Read... [13:59:30]Read from MH i2c: E2 0B 00 AB 22 00 A1 45 27 4C AC 89 2D 8B 90 00 8F [13:59:30]RAPDU: A1 45 27 4C AC 89 2D 8B 90 00 [13:59:30]wFMCommunicate OK [13:59:30]SAM_PROTO_SignData done [13:59:30]FM_MakeSignedData done [13:59:30]CreateOFDProtocolMessage [13:59:30]wFMCommunicate request_size=4 [13:59:30]MH_SAM_APDU [13:59:30]CAPDU: 80 11 00 00 [13:59:30]Write to MH i2c: E2 08 00 AC 22 80 11 00 00 00 00 00 00 48 [13:59:30]Write i2c OK [13:59:30]MH_I2C_Read... [13:59:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:59:30]Read from MH i2c: E2 [13:59:30]MH_I2C_Read... [13:59:30]Read from MH i2c: E2 17 00 [13:59:30]MH_I2C_Read... [13:59:30]Read from MH i2c: E2 17 00 AC 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 9E [13:59:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:59:30]wFMCommunicate OK [13:59:30]CreateOFDProtocolMessage done [13:59:30]OFDSenderStorePacket 164972 [13:59:30]StoreOFDPacket docnum=164972 [13:59:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 64 73 07 01 2F ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 AC 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 C2 D9 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6C 84 02 00 35 04 06 00 84 3B 4A AF 6E F0 A1 45 27 4C AC 89 2D 8B [13:59:30]CheckFolder [13:59:30]dirname=/storage/ofd_packets [13:59:30]CheckFolder done [13:59:30]ProducePacketName [13:59:30]name=ofd_packets/00164972 [13:59:30]NVStorageSaveData ofd_packets/00164972 [13:59:30]File name is /storage/ofd_packets/00164972 [13:59:30]Write 301 bytes [13:59:30]NVStorageSaveData done [13:59:30]OFDSenderStorePacket done [13:59:30]KKMCreateOFDPacket done [13:59:30]NVStorageSaveData kkm_last_timestamp [13:59:30]File name is /storage/kkm_last_timestamp [13:59:30]Write 4 bytes [13:59:30]NVStorageSaveData done [13:59:30]OFD Sender: Processing packet 164972 [packets to send 104, broken 103] [13:59:30]ProducePacketName [13:59:30]name=ofd_packets/00164972 [13:59:30]OFD Sender: To server: pG, [13:59:30]CommunicateWithHost lk.salyk.kg:30040 [13:59:30]ConnectInit lk.salyk.kg [13:59:30]ExternCall_PrintAddStr [13:59:30]wPrintStart [13:59:30]Write to MH i2c: 01 00 00 AD 22 CF [13:59:30]Write i2c OK [13:59:30]MH_I2C_Read... [13:59:30]Read from MH i2c: 01 [13:59:30]MH_I2C_Read... [13:59:30]Read from MH i2c: 01 07 00 [13:59:30]MH_I2C_Read... [13:59:30]Read from MH i2c: 01 07 00 AD 22 00 00 00 00 00 FF 0F E4 [13:59:30]RasterBufferAndPrint [13:59:30]line Счет N : (1)459070 [13:59:30]line ИНН: 02508201610067 [13:59:30]line Контрольно-Кассовый Чек [13:59:30]line ПРОДАЖА [13:59:30]line ТРК (МРК, ГНК) : 12 [13:59:30]line Товар: 2710124130 [13:59:30]line Аи-92-К-5 [13:59:30]line 3.800 * 65.80 [13:59:30]line = 250.04 [13:59:30]line НДС 12% НСП 1% [13:59:30]line > о реализуемом товаре [13:59:30]line ОКРУГЛЕНИЕ: -0.04 [13:59:30]line ИТОГО: 250.00 [13:59:30]line Внесено: 250.00 [13:59:30]line СДАЧА: 0.00 [13:59:30]line НСП 1% : 2.21 [13:59:30]line НДС 12% : 26.55 [13:59:30]line Наличными: 250.00 [13:59:30]line Безнал.: 0.00 [13:59:30]line Место: АЗС № 72 "Партнер Нефть" [13:59:30]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:59:30]line СНО: Общий режим [13:59:30]line Чек 170 14.07.2024 13:59 [13:59:30]line Смена: 447 ФФД: 1.0 [13:59:30]line ЗНМ: 0300000160 [13:59:30]line РНМ: 0000000000090829 [13:59:30]line Версия ККМ: 001 [13:59:30]line ФМ: 0000000000874718 [13:59:30]line ФД: 164972 [13:59:30]line ФПД: 145390190948080 [13:59:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T135930&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164972&fm=145390190948080&tin=02508201610067®Number=0000000000090829&sum=25000 [13:59:30]Connected sock=11 [13:59:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 64 73 07 01 2F ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 AC 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 C2 D9 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6C 84 02 00 35 04 06 00 84 3B 4A AF 6E F0 A1 45 27 4C AC 89 2D 8B [13:59:30]written 0, free lines is 4095 [13:59:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 17 DB 47 00 EE 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6C 84 02 00 F4 03 04 00 4F 80 93 66 B6 04 01 00 00 1E AE 9F 28 B4 8F 5F 21 [13:59:31]CommunicateWithHost err = 0 [13:59:31]CheckOFDResponse [13:59:31]1017 (14) - 77093643461234 [13:59:31]1041 (16) - 0000000000874718 [13:59:31]1040 (4) - 164972 [13:59:31]1012 (4) - 14.07.2024 07:37 [13:59:31]1206 (1) - 0 [13:59:31]OFD Sender: Remove packet 164972 [13:59:31]ProducePacketName [13:59:31]name=ofd_packets/00164972 [13:59:31]NVStorageDeleteData [13:59:31]Write to MH i2c: 01 00 00 D7 22 F9 [13:59:31]Write i2c OK [13:59:31]MH_I2C_Read... [13:59:31]Read from MH i2c: 01 [13:59:31]MH_I2C_Read... [13:59:31]Read from MH i2c: 01 07 00 [13:59:31]MH_I2C_Read... [13:59:31]Read from MH i2c: 01 07 00 D7 22 00 00 00 00 00 F6 0C 02 [13:59:31]RasterBufferAndPrint [13:59:31]line [13:59:31]line [13:59:31]line [13:59:31]line [13:59:31]line [13:59:31]written 0, free lines is 3326 [13:59:31]MH_Cut [13:59:31]Write to MH i2c: D1 01 00 DE 22 01 D2 [13:59:31]Write i2c OK [13:59:31]MH_I2C_Read... [13:59:31]Read from MH i2c: D1 [13:59:31]MH_I2C_Read... [13:59:31]Read from MH i2c: D1 01 00 [13:59:31]MH_I2C_Read... [13:59:31]Read from MH i2c: D1 01 00 DE 22 00 D1 [13:59:31]Write to MH i2c: 01 00 00 DF 22 01 [13:59:31]Write i2c OK [13:59:31]MH_I2C_Read... [13:59:31]OFD Sender: No OFD packet to send [13:59:32]*** Cut start [13:59:32]*** Partial cut [13:59:32]*** CUTSNS_PIN = 1 [13:59:32]*** CUTSNS_PIN = 0 [13:59:32]*** Brake cut motor [13:59:32]Read from MH i2c: 01 [13:59:32]MH_I2C_Read... [13:59:32]*** Stop cut motor [13:59:32]*** Cut end [13:59:32]Read from MH i2c: 01 07 00 [13:59:32]MH_I2C_Read... [13:59:32]Read from MH i2c: 01 07 00 DF 22 00 00 00 00 00 FF 0F 16 [13:59:32]process_action close_receipt done [13:59:32]requested_data is exist [13:59:32]produce_requested_data [13:59:32]requested_item fm.sn is exist - process it [13:59:32]wFMCommunicate request_size=4 [13:59:32]MH_SAM_APDU [13:59:32]CAPDU: 80 11 00 00 [13:59:32]Write to MH i2c: E2 08 00 E0 22 80 11 00 00 00 00 00 00 7C [13:59:32]Write i2c OK [13:59:32]MH_I2C_Read... [13:59:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:59:32]Read from MH i2c: E2 [13:59:32]MH_I2C_Read... [13:59:32]Read from MH i2c: E2 17 00 [13:59:32]MH_I2C_Read... [13:59:32]Read from MH i2c: E2 17 00 E0 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D2 [13:59:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:59:32]wFMCommunicate OK [13:59:32]requested_item fd.num is exist - process it [13:59:32]SAM_PROTO_GetFieldsCounters [13:59:32]wFMCommunicate request_size=4 [13:59:32]MH_SAM_APDU [13:59:32]CAPDU: 80 13 00 00 [13:59:32]Write to MH i2c: E2 08 00 E1 22 80 13 00 00 00 00 00 00 7F [13:59:32]Write i2c OK [13:59:32]MH_I2C_Read... [13:59:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:59:32]Read from MH i2c: E2 [13:59:32]MH_I2C_Read... [13:59:32]Read from MH i2c: E2 62 00 [13:59:32]MH_I2C_Read... [13:59:32]Read from MH i2c: E2 62 00 E1 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 6C 84 02 00 0E 04 04 00 BF 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 56 [13:59:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 6C 84 02 00 0E 04 04 00 BF 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 [13:59:32]wFMCommunicate OK [13:59:32]SAM_PROTO_GetFieldsCounters done [13:59:32]requested_item shift.num is exist - process it [13:59:32]requested_item shift.opened is exist - process it [13:59:32]req_shift_opened [13:59:32]FM_GetShiftState [13:59:32]SAM_PROTO_GetShiftState [13:59:32]wFMCommunicate request_size=4 [13:59:32]MH_SAM_APDU [13:59:32]CAPDU: 80 13 01 00 [13:59:32]Write to MH i2c: E2 08 00 E2 22 80 13 01 00 00 00 00 00 81 [13:59:32]Write i2c OK [13:59:32]MH_I2C_Read... [13:59:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:59:32]Read from MH i2c: E2 [13:59:32]MH_I2C_Read... [13:59:32]Read from MH i2c: E2 0E 00 [13:59:32]MH_I2C_Read... [13:59:32]Read from MH i2c: E2 0E 00 E2 22 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 01 [13:59:32]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [13:59:32]wFMCommunicate OK [13:59:32]SAM_PROTO_GetShiftState done [13:59:32]FM_GetShiftState done [13:59:32]req_shift_opened done [13:59:32]requested_item shift.open_date is exist - process it [13:59:32]req_shift_open_date [13:59:32]req_shift_open_date done [13:59:32]produce_requested_data done [13:59:32]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164972,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [13:59:32]process_action_free close_receipt [13:59:32]json_value_free [13:59:32]json_value_free done [13:59:32]process_json_proto returns [13:59:32]Send response to host [13:59:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164972,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [13:59:32]free response buf [13:59:32]execute_script done [13:59:32]execute_script returns [13:59:32]free content buf [13:59:32]Sock 9.Close socket [13:59:32]Sock 9.Thread stoped [13:59:36]OFD Sender: No OFD packet to send [13:59:41]OFD Sender: No OFD packet to send [13:59:46]OFD Sender: No OFD packet to send [13:59:51]OFD Sender: No OFD packet to send [13:59:56]OFD Sender: No OFD packet to send [14:00:01]OFD Sender: No OFD packet to send [14:00:06]OFD Sender: No OFD packet to send [14:00:11]OFD Sender: No OFD packet to send [14:00:16]OFD Sender: No OFD packet to send [14:00:21]OFD Sender: No OFD packet to send [14:00:26]OFD Sender: No OFD packet to send [14:00:31]OFD Sender: No OFD packet to send [14:00:36]OFD Sender: No OFD packet to send [14:00:41]OFD Sender: No OFD packet to send [14:00:46]OFD Sender: No OFD packet to send [14:00:51]OFD Sender: No OFD packet to send [14:00:56]OFD Sender: No OFD packet to send [14:01:01]OFD Sender: No OFD packet to send [14:01:06]OFD Sender: No OFD packet to send [14:01:11]OFD Sender: No OFD packet to send [14:01:16]OFD Sender: No OFD packet to send [14:01:21]OFD Sender: No OFD packet to send [14:01:26]OFD Sender: No OFD packet to send [14:01:31]OFD Sender: No OFD packet to send [14:01:36]OFD Sender: No OFD packet to send [14:01:41]OFD Sender: No OFD packet to send [14:01:46]OFD Sender: No OFD packet to send [14:01:51]OFD Sender: No OFD packet to send [14:01:56]OFD Sender: No OFD packet to send [14:02:01]OFD Sender: No OFD packet to send [14:02:06]OFD Sender: No OFD packet to send [14:02:11]OFD Sender: No OFD packet to send [14:02:16]OFD Sender: No OFD packet to send [14:02:21]OFD Sender: No OFD packet to send [14:02:26]OFD Sender: No OFD packet to send [14:02:31]OFD Sender: No OFD packet to send [14:02:36]OFD Sender: No OFD packet to send [14:02:41]OFD Sender: No OFD packet to send [14:02:44]accept exits with 7 [14:02:44]New connection [14:02:44]New thread 3067616612 created [14:02:44]Thread 3067473252 joined [14:02:44]Waiting for new connection... [14:02:44] Sock 7.Parse request [14:02:44]Sock 7.Check first char [14:02:44]Sock 7.First char is OK [14:02:44]request: POST /json_proto HTTP/1.0 [14:02:44]Method: POST [14:02:44]URL: /json_proto [14:02:44]Method is POST - this is cgi request [14:02:44]url: /json_proto [14:02:44]query_string will be loaded in cgi processing [14:02:44]execute_cgi json_proto POST (null) [14:02:44]execute_cgi path=json_proto method=POST [14:02:44]POST find Content-Length [14:02:44]Host: 172.17.56.4:8080 [14:02:44]Content-Length: 675 [14:02:44]Content-Type: application/json [14:02:44] [14:02:44]POST finish read [14:02:44]Found Content-Length = 675 [14:02:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459071", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 11.130, "sum" : 800.25, "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" ] } } [14:02:44]execute_script... [14:02: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)459071", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 11.130, "sum" : 800.25, "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" ] } } [14:02:44]POST & json_proto [14:02:44]process_json_proto [14:02:44]json parsed OK: [14:02:44]protocol is kg_v1.0 [14:02:44]action value=close_receipt [14:02:44]process_action close_receipt [14:02:44]cmd_close_receipt [14:02:44]MH_GetDate [14:02:44]Write to MH i2c: F0 00 00 E3 22 F4 [14:02:44]Write i2c OK [14:02:44]MH_I2C_Read... [14:02:44]Read from MH i2c: F0 [14:02:44]MH_I2C_Read... [14:02:44]Read from MH i2c: F0 09 00 [14:02:44]MH_I2C_Read... [14:02:44]Read from MH i2c: F0 09 00 E3 22 00 85 DA 93 66 C9 DC B2 64 10 [14:02:44]GetLastDocTimeStamp 1720965570 [14:02:44]current date 1720965765 [14:02:44]FM_GetShiftState [14:02:44]SAM_PROTO_GetShiftState [14:02:44]wFMCommunicate request_size=4 [14:02:44]MH_SAM_APDU [14:02:44]CAPDU: 80 13 01 00 [14:02:44]Write to MH i2c: E2 08 00 E4 22 80 13 01 00 00 00 00 00 83 [14:02:44]Write i2c OK [14:02:44]MH_I2C_Read... [14:02:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:44]Read from MH i2c: E2 [14:02:44]MH_I2C_Read... [14:02:44]Read from MH i2c: E2 0E 00 [14:02:44]MH_I2C_Read... [14:02:44]Read from MH i2c: E2 0E 00 E4 22 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 03 [14:02:44]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [14:02:44]wFMCommunicate OK [14:02:44]SAM_PROTO_GetShiftState done [14:02:44]FM_GetShiftState done [14:02:44]opened in 1720917342 [14:02:44]opened+sec_in_day 1721003742 [14:02:44]quantity*price = 80024 [14:02:44]sum+1 = 80026 [14:02:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.98 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 171 14.07.2024 14:02 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164973 ФПД: 101099568075678 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T140245&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164973&fm=101099568075678&tin=02508201610067®Number=0000000000090829&sum=80000 [14:02:45]StoreToDocumentArchive [14:02:45]shift 447 fd 164973 [14:02:45]save to /storage/0447/doc_00164973 [14:02:45]save last doc name /storage/0447/doc_00164973 to /storage/kkm_last_doc_name [14:02:45]save OK [14:02:45]Clear old archive folders... [14:02:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:02:45]tlvbuf is B6F7C350 [14:02:45]SAM_PROTO_ClearQueue [14:02:45]wFMCommunicate request_size=4 [14:02:45]MH_SAM_APDU [14:02:45]CAPDU: 80 09 00 00 [14:02:45]Write to MH i2c: E2 08 00 F1 22 80 09 00 00 00 00 00 00 85 [14:02:45]Write i2c OK [14:02:45]MH_I2C_Read... [14:02:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:02:45]Read from MH i2c: E2 [14:02:45]MH_I2C_Read... [14:02:45]Read from MH i2c: E2 03 00 [14:02:45]MH_I2C_Read... [14:02:45]Read from MH i2c: E2 03 00 F1 22 00 90 00 87 [14:02:45]RAPDU: 90 00 [14:02:45]wFMCommunicate OK [14:02:45]SAM_PROTO_ClearQueue done [14:02:45]KKMCreateOFDPacket [14:02:45]OFDProtocolAddRootSTLVToBuf [14:02:45]FM_MakeSignedData [14:02:45]FM_MakeSignedData [14:02:45]SAM_PROTO_SignData [14:02:45]wFMCommunicate request_size=4 [14:02:45]MH_SAM_APDU [14:02:45]CAPDU: 80 0D 01 02 [14:02:45]Write to MH i2c: E2 08 00 F2 22 80 0D 01 02 00 00 00 00 8D [14:02:45]Write i2c OK [14:02:45]MH_I2C_Read... [14:02:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:02:45]Read from MH i2c: E2 [14:02:45]MH_I2C_Read... [14:02:45]Read from MH i2c: E2 03 00 [14:02:45]MH_I2C_Read... [14:02:45]Read from MH i2c: E2 03 00 F2 22 00 90 00 88 [14:02:45]RAPDU: 90 00 [14:02:45]wFMCommunicate OK [14:02:45]wFMCommunicate request_size=255 [14:02:45]MH_SAM_APDU [14:02: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 7A 2B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 99 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 85 DA 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6D 84 02 00 35 04 06 00 5B F3 13 D7 [14:02:45]Write to MH i2c: E2 02 01 F3 22 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 99 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 85 DA 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6D 84 02 00 35 04 06 00 5B F3 13 D7 00 00 12 [14:02:45]Write i2c OK [14:02:45]MH_I2C_Read... [14:02:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:45]Read from MH i2c: E2 [14:02:45]MH_I2C_Read... [14:02:45]Read from MH i2c: E2 03 00 [14:02:45]MH_I2C_Read... [14:02:45]Read from MH i2c: E2 03 00 F3 22 00 90 00 89 [14:02:45]RAPDU: 90 00 [14:02:45]wFMCommunicate OK [14:02:45]wFMCommunicate request_size=7 [14:02:45]MH_SAM_APDU [14:02:45]CAPDU: 80 0D 02 02 02 93 9E [14:02:45]Write to MH i2c: E2 0A 00 F4 22 80 0D 02 02 02 00 93 9E 00 00 C5 [14:02:45]Write i2c OK [14:02:45]MH_I2C_Read... [14:02:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:45]Read from MH i2c: E2 [14:02:45]MH_I2C_Read... [14:02:45]Read from MH i2c: E2 03 00 [14:02:45]MH_I2C_Read... [14:02:45]Read from MH i2c: E2 03 00 F4 22 00 90 00 8A [14:02:45]RAPDU: 90 00 [14:02:45]wFMCommunicate OK [14:02:45]wFMCommunicate request_size=4 [14:02:45]MH_SAM_APDU [14:02:45]CAPDU: 80 0D 03 02 [14:02:45]Write to MH i2c: E2 08 00 F5 22 80 0D 03 02 00 00 00 00 92 [14:02:45]Write i2c OK [14:02:45]MH_I2C_Read... [14:02:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:02:45]Read from MH i2c: E2 [14:02:45]MH_I2C_Read... [14:02:45]Read from MH i2c: E2 0B 00 [14:02:45]MH_I2C_Read... [14:02:45]Read from MH i2c: E2 0B 00 F5 22 00 26 5B E4 2E AB F9 D3 2F 90 00 CC [14:02:45]RAPDU: 26 5B E4 2E AB F9 D3 2F 90 00 [14:02:45]wFMCommunicate OK [14:02:45]SAM_PROTO_SignData done [14:02:45]FM_MakeSignedData done [14:02:45]CreateOFDProtocolMessage [14:02:45]wFMCommunicate request_size=4 [14:02:45]MH_SAM_APDU [14:02:45]CAPDU: 80 11 00 00 [14:02:45]Write to MH i2c: E2 08 00 F6 22 80 11 00 00 00 00 00 00 92 [14:02:45]Write i2c OK [14:02:45]MH_I2C_Read... [14:02:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:45]Read from MH i2c: E2 [14:02:45]MH_I2C_Read... [14:02:45]Read from MH i2c: E2 17 00 [14:02:45]MH_I2C_Read... [14:02:45]Read from MH i2c: E2 17 00 F6 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E8 [14:02:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:02:45]wFMCommunicate OK [14:02:45]CreateOFDProtocolMessage done [14:02:45]OFDSenderStorePacket 164973 [14:02:45]StoreOFDPacket docnum=164973 [14:02:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 F9 5C 04 01 B7 97 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 99 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 85 DA 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6D 84 02 00 35 04 06 00 5B F3 13 D7 93 9E 26 5B E4 2E AB F9 D3 2F [14:02:45]CheckFolder [14:02:45]dirname=/storage/ofd_packets [14:02:45]CheckFolder done [14:02:45]ProducePacketName [14:02:45]name=ofd_packets/00164973 [14:02:45]NVStorageSaveData ofd_packets/00164973 [14:02:45]File name is /storage/ofd_packets/00164973 [14:02:45]Write 298 bytes [14:02:45]NVStorageSaveData done [14:02:45]OFDSenderStorePacket done [14:02:45]KKMCreateOFDPacket done [14:02:45]NVStorageSaveData kkm_last_timestamp [14:02:45]File name is /storage/kkm_last_timestamp [14:02:45]Write 4 bytes [14:02:45]NVStorageSaveData done [14:02:45]ExternCall_PrintAddStr [14:02:46]wPrintStart [14:02:46]Write to MH i2c: 01 00 00 F7 22 19 [14:02:46]Write i2c OK [14:02:46]MH_I2C_Read... [14:02:46]Read from MH i2c: 01 [14:02:46]MH_I2C_Read... [14:02:46]Read from MH i2c: 01 07 00 [14:02:46]MH_I2C_Read... [14:02:46]Read from MH i2c: 01 07 00 F7 22 00 00 00 00 00 FF 0F 2E [14:02:46]RasterBufferAndPrint [14:02:46]line Счет N : (1)459071 [14:02:46]line ИНН: 02508201610067 [14:02:46]line Контрольно-Кассовый Чек [14:02:46]line ПРОДАЖА [14:02:46]line ТРК (МРК, ГНК) : 11 [14:02:46]line Товар: 2710194210 [14:02:46]line ДТ-К-5 [14:02:46]line 11.130 * 71.90 [14:02:46]line = 800.25 [14:02:46]line НДС 12% НСП 1% [14:02:46]line > о реализуемом товаре [14:02:46]line ОКРУГЛЕНИЕ: -0.25 [14:02:46]line ИТОГО: 800.00 [14:02:46]line Внесено: 800.00 [14:02:46]line СДАЧА: 0.00 [14:02:46]line НСП 1% : 7.08 [14:02:46]line НДС 12% : 84.98 [14:02:46]line Наличными: 800.00 [14:02:46]line Безнал.: 0.00 [14:02:46]line Место: АЗС № 72 "Партнер Нефть" [14:02:46]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:02:46]line СНО: Общий режим [14:02:46]line Чек 171 14.07.2024 14:02 [14:02:46]line Смена: 447 ФФД: 1.0 [14:02:46]line ЗНМ: 0300000160 [14:02:46]line РНМ: 0000000000090829 [14:02:46]line Версия ККМ: 001 [14:02:46]line ФМ: 0000000000874718 [14:02:46]line ФД: 164973 [14:02:46]line ФПД: 101099568075678 [14:02:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T140245&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164973&fm=101099568075678&tin=02508201610067®Number=0000000000090829&sum=80000 [14:02:46]OFD Sender: Processing packet 164973 [packets to send 104, broken 103] [14:02:46]ProducePacketName [14:02:46]name=ofd_packets/00164973 [14:02:46]OFD Sender: To server: pG, [14:02:46]CommunicateWithHost lk.salyk.kg:30040 [14:02:46]ConnectInit lk.salyk.kg [14:02:46]written 0, free lines is 4095 [14:02:46]Connected sock=10 [14:02:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 F9 5C 04 01 B7 97 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 99 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 85 DA 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6D 84 02 00 35 04 06 00 5B F3 13 D7 93 9E 26 5B E4 2E AB F9 D3 2F [14:02:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 45 34 47 00 9B 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6D 84 02 00 F4 03 04 00 13 81 93 66 B6 04 01 00 00 81 3F 2D 2F 8F 97 ED C0 [14:02:46]CommunicateWithHost err = 0 [14:02:46]CheckOFDResponse [14:02:46]1017 (14) - 77093643461234 [14:02:46]1041 (16) - 0000000000874718 [14:02:46]1040 (4) - 164973 [14:02:46]1012 (4) - 14.07.2024 07:41 [14:02:46]1206 (1) - 0 [14:02:46]OFD Sender: Remove packet 164973 [14:02:46]ProducePacketName [14:02:46]name=ofd_packets/00164973 [14:02:46]NVStorageDeleteData [14:02:46]Write to MH i2c: 01 00 00 21 23 44 [14:02:46]Write i2c OK [14:02:46]MH_I2C_Read... [14:02:46]Read from MH i2c: 01 [14:02:46]MH_I2C_Read... [14:02:46]Read from MH i2c: 01 07 00 [14:02:46]MH_I2C_Read... [14:02:46]Read from MH i2c: 01 07 00 21 23 00 00 00 00 00 FE 0C 55 [14:02:46]RasterBufferAndPrint [14:02:46]line [14:02:46]line [14:02:46]line [14:02:46]line [14:02:46]line [14:02:46]written 0, free lines is 3332 [14:02:46]MH_Cut [14:02:46]Write to MH i2c: D1 01 00 28 23 01 1D [14:02:46]Write i2c OK [14:02:46]MH_I2C_Read... [14:02:46]Read from MH i2c: D1 [14:02:46]MH_I2C_Read... [14:02:46]Read from MH i2c: D1 01 00 [14:02:46]MH_I2C_Read... [14:02:46]Read from MH i2c: D1 01 00 28 23 00 1C [14:02:46]Write to MH i2c: 01 00 00 29 23 4C [14:02:46]Write i2c OK [14:02:46]MH_I2C_Read... [14:02:47]OFD Sender: No OFD packet to send [14:02:47]*** Cut start [14:02:47]*** Partial cut [14:02:47]*** CUTSNS_PIN = 1 [14:02:47]*** CUTSNS_PIN = 0 [14:02:47]*** Brake cut motor [14:02:48]Read from MH i2c: 01 [14:02:48]MH_I2C_Read... [14:02:48]*** Stop cut motor [14:02:48]*** Cut end [14:02:48]Read from MH i2c: 01 07 00 [14:02:48]MH_I2C_Read... [14:02:48]Read from MH i2c: 01 07 00 29 23 00 00 00 00 00 FF 0F 61 [14:02:48]process_action close_receipt done [14:02:48]requested_data is exist [14:02:48]produce_requested_data [14:02:48]requested_item fm.sn is exist - process it [14:02:48]wFMCommunicate request_size=4 [14:02:48]MH_SAM_APDU [14:02:48]CAPDU: 80 11 00 00 [14:02:48]Write to MH i2c: E2 08 00 2A 23 80 11 00 00 00 00 00 00 C7 [14:02:48]Write i2c OK [14:02:48]MH_I2C_Read... [14:02:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:48]Read from MH i2c: E2 [14:02:48]MH_I2C_Read... [14:02:48]Read from MH i2c: E2 17 00 [14:02:48]MH_I2C_Read... [14:02:48]Read from MH i2c: E2 17 00 2A 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 1D [14:02:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:02:48]wFMCommunicate OK [14:02:48]requested_item fd.num is exist - process it [14:02:48]SAM_PROTO_GetFieldsCounters [14:02:48]wFMCommunicate request_size=4 [14:02:48]MH_SAM_APDU [14:02:48]CAPDU: 80 13 00 00 [14:02:48]Write to MH i2c: E2 08 00 2B 23 80 13 00 00 00 00 00 00 CA [14:02:48]Write i2c OK [14:02:48]MH_I2C_Read... [14:02:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:02:48]Read from MH i2c: E2 [14:02:48]MH_I2C_Read... [14:02:48]Read from MH i2c: E2 62 00 [14:02:48]MH_I2C_Read... [14:02:48]Read from MH i2c: E2 62 00 2B 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 6D 84 02 00 0E 04 04 00 BF 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 A5 [14:02:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 6D 84 02 00 0E 04 04 00 BF 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 [14:02:48]wFMCommunicate OK [14:02:48]SAM_PROTO_GetFieldsCounters done [14:02:48]requested_item shift.num is exist - process it [14:02:48]requested_item shift.opened is exist - process it [14:02:48]req_shift_opened [14:02:48]FM_GetShiftState [14:02:48]SAM_PROTO_GetShiftState [14:02:48]wFMCommunicate request_size=4 [14:02:48]MH_SAM_APDU [14:02:48]CAPDU: 80 13 01 00 [14:02:48]Write to MH i2c: E2 08 00 2C 23 80 13 01 00 00 00 00 00 CC [14:02:48]Write i2c OK [14:02:48]MH_I2C_Read... [14:02:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:48]Read from MH i2c: E2 [14:02:48]MH_I2C_Read... [14:02:48]Read from MH i2c: E2 0E 00 [14:02:48]MH_I2C_Read... [14:02:48]Read from MH i2c: E2 0E 00 2C 23 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 4C [14:02:48]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [14:02:48]wFMCommunicate OK [14:02:48]SAM_PROTO_GetShiftState done [14:02:48]FM_GetShiftState done [14:02:48]req_shift_opened done [14:02:48]requested_item shift.open_date is exist - process it [14:02:48]req_shift_open_date [14:02:48]req_shift_open_date done [14:02:48]produce_requested_data done [14:02:48]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164973,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [14:02:48]process_action_free close_receipt [14:02:48]json_value_free [14:02:48]json_value_free done [14:02:48]process_json_proto returns [14:02:48]Send response to host [14:02:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164973,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [14:02:48]free response buf [14:02:48]execute_script done [14:02:48]execute_script returns [14:02:48]free content buf [14:02:48]Sock 7.Close socket [14:02:48]Sock 7.Thread stoped [14:02:52]OFD Sender: No OFD packet to send [14:02:57]OFD Sender: No OFD packet to send [14:03:02]OFD Sender: No OFD packet to send [14:03:07]OFD Sender: No OFD packet to send [14:03:12]OFD Sender: No OFD packet to send [14:03:17]OFD Sender: No OFD packet to send [14:03:22]OFD Sender: No OFD packet to send [14:03:27]OFD Sender: No OFD packet to send [14:03:28]accept exits with 9 [14:03:28]New connection [14:03:28]New thread 3067473252 created [14:03:28]Thread 3067616612 joined [14:03:28]Waiting for new connection... [14:03:28] Sock 9.Parse request [14:03:28]Sock 9.Check first char [14:03:28]Sock 9.First char is OK [14:03:28]request: POST /json_proto HTTP/1.0 [14:03:28]Method: POST [14:03:28]URL: /json_proto [14:03:28]Method is POST - this is cgi request [14:03:28]url: /json_proto [14:03:28]query_string will be loaded in cgi processing [14:03:28]execute_cgi json_proto POST (null) [14:03:28]execute_cgi path=json_proto method=POST [14:03:28]POST find Content-Length [14:03:28]Host: 172.17.56.4:8080 [14:03:28]Content-Length: 790 [14:03:28]Content-Type: application/json [14:03:28] [14:03:28]POST finish read [14:03:28]Found Content-Length = 790 [14:03:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459072", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 7.670, "sum" : 500.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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:03:28]execute_script... [14:03: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)459072", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 7.670, "sum" : 500.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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:03:28]POST & json_proto [14:03:28]process_json_proto [14:03:28]json parsed OK: [14:03:28]protocol is kg_v1.0 [14:03:28]action value=close_receipt [14:03:28]process_action close_receipt [14:03:28]cmd_close_receipt [14:03:28]MH_GetDate [14:03:28]Write to MH i2c: F0 00 00 2D 23 3F [14:03:28]Write i2c OK [14:03:28]MH_I2C_Read... [14:03:28]Read from MH i2c: F0 [14:03:28]MH_I2C_Read... [14:03:28]Read from MH i2c: F0 09 00 [14:03:28]MH_I2C_Read... [14:03:28]Read from MH i2c: F0 09 00 2D 23 00 B2 DA 93 66 C9 DC B2 64 88 [14:03:28]GetLastDocTimeStamp 1720965765 [14:03:28]current date 1720965810 [14:03:28]FM_GetShiftState [14:03:28]SAM_PROTO_GetShiftState [14:03:28]wFMCommunicate request_size=4 [14:03:28]MH_SAM_APDU [14:03:28]CAPDU: 80 13 01 00 [14:03:28]Write to MH i2c: E2 08 00 2E 23 80 13 01 00 00 00 00 00 CE [14:03:28]Write i2c OK [14:03:28]MH_I2C_Read... [14:03:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:03:28]Read from MH i2c: E2 [14:03:28]MH_I2C_Read... [14:03:28]Read from MH i2c: E2 0E 00 [14:03:28]MH_I2C_Read... [14:03:28]Read from MH i2c: E2 0E 00 2E 23 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 4E [14:03:28]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [14:03:28]wFMCommunicate OK [14:03:28]SAM_PROTO_GetShiftState done [14:03:28]FM_GetShiftState done [14:03:28]opened in 1720917342 [14:03:28]opened+sec_in_day 1721003742 [14:03:28]quantity*price = 50023 [14:03:28]sum+1 = 50025 [14:03:28]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 173 14.07.2024 14:05 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164975 ФПД: 42231693846826 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T140525&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164975&fm=42231693846826&tin=02508201610067®Number=0000000000090829&sum=20000 [14:05:26]StoreToDocumentArchive [14:05:26]shift 447 fd 164975 [14:05:26]save to /storage/0447/doc_00164975 [14:05:26]save last doc name /storage/0447/doc_00164975 to /storage/kkm_last_doc_name [14:05:26]save OK [14:05:26]Clear old archive folders... [14:05:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:05:26]tlvbuf is 012E8DA0 [14:05:26]SAM_PROTO_ClearQueue [14:05:26]wFMCommunicate request_size=4 [14:05:26]MH_SAM_APDU [14:05:26]CAPDU: 80 09 00 00 [14:05:26]Write to MH i2c: E2 08 00 38 00 80 09 00 00 00 00 00 00 AA [14:05:26]Write i2c OK [14:05:26]MH_I2C_Read... [14:05:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:05:26]Read from MH i2c: E2 [14:05:26]MH_I2C_Read... [14:05:26]Read from MH i2c: E2 03 00 [14:05:26]MH_I2C_Read... [14:05:26]Read from MH i2c: E2 03 00 38 00 00 90 00 AC [14:05:26]RAPDU: 90 00 [14:05:26]wFMCommunicate OK [14:05:26]SAM_PROTO_ClearQueue done [14:05:26]KKMCreateOFDPacket [14:05:26]OFDProtocolAddRootSTLVToBuf [14:05:26]FM_MakeSignedData [14:05:26]FM_MakeSignedData [14:05:26]SAM_PROTO_SignData [14:05:26]wFMCommunicate request_size=4 [14:05:26]MH_SAM_APDU [14:05:26]CAPDU: 80 0D 01 02 [14:05:26]Write to MH i2c: E2 08 00 39 00 80 0D 01 02 00 00 00 00 B2 [14:05:26]Write i2c OK [14:05:26]MH_I2C_Read... [14:05:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:05:26]Read from MH i2c: E2 [14:05:26]MH_I2C_Read... [14:05:26]Read from MH i2c: E2 03 00 [14:05:26]MH_I2C_Read... [14:05:26]Read from MH i2c: E2 03 00 39 00 00 90 00 AD [14:05:26]RAPDU: 90 00 [14:05:26]wFMCommunicate OK [14:05:26]wFMCommunicate request_size=255 [14:05:26]MH_SAM_APDU [14:05:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 AD 00 00 00 F4 03 04 00 25 DB 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6F 84 02 00 35 04 06 00 26 [14:05:26]Write to MH i2c: E2 02 01 3A 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 AD 00 00 00 F4 03 04 00 25 DB 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6F 84 02 00 35 04 06 00 26 00 00 4D [14:05:26]Write i2c OK [14:05:26]MH_I2C_Read... [14:05:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:26]Read from MH i2c: E2 [14:05:26]MH_I2C_Read... [14:05:26]Read from MH i2c: E2 03 00 [14:05:26]MH_I2C_Read... [14:05:26]Read from MH i2c: E2 03 00 3A 00 00 90 00 AE [14:05:26]RAPDU: 90 00 [14:05:26]wFMCommunicate OK [14:05:26]wFMCommunicate request_size=10 [14:05:26]MH_SAM_APDU [14:05:26]CAPDU: 80 0D 02 02 05 68 D5 1C 29 2A [14:05:26]Write to MH i2c: E2 0D 00 3B 00 80 0D 02 02 05 00 68 D5 1C 29 2A 00 00 6B [14:05:26]OFD Sender: No OFD packet to send [14:05:26]Write i2c OK [14:05:26]MH_I2C_Read... [14:05:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:26]Read from MH i2c: E2 [14:05:26]MH_I2C_Read... [14:05:26]Read from MH i2c: E2 03 00 [14:05:26]MH_I2C_Read... [14:05:26]Read from MH i2c: E2 03 00 3B 00 00 90 00 AF [14:05:26]RAPDU: 90 00 [14:05:26]wFMCommunicate OK [14:05:26]wFMCommunicate request_size=4 [14:05:26]MH_SAM_APDU [14:05:26]CAPDU: 80 0D 03 02 [14:05:26]Write to MH i2c: E2 08 00 3C 00 80 0D 03 02 00 00 00 00 B7 [14:05:26]Write i2c OK [14:05:26]MH_I2C_Read... [14:05:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:05:26]Read from MH i2c: E2 [14:05:26]MH_I2C_Read... [14:05:26]Read from MH i2c: E2 0B 00 [14:05:26]MH_I2C_Read... [14:05:26]Read from MH i2c: E2 0B 00 3C 00 00 64 25 67 1F D8 99 36 AD 90 00 1B [14:05:26]RAPDU: 64 25 67 1F D8 99 36 AD 90 00 [14:05:26]wFMCommunicate OK [14:05:26]SAM_PROTO_SignData done [14:05:26]FM_MakeSignedData done [14:05:26]CreateOFDProtocolMessage [14:05:26]wFMCommunicate request_size=4 [14:05:26]MH_SAM_APDU [14:05:26]CAPDU: 80 11 00 00 [14:05:26]Write to MH i2c: E2 08 00 3D 00 80 11 00 00 00 00 00 00 B7 [14:05:26]Write i2c OK [14:05:26]MH_I2C_Read... [14:05:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:26]Read from MH i2c: E2 [14:05:26]MH_I2C_Read... [14:05:26]Read from MH i2c: E2 17 00 [14:05:26]MH_I2C_Read... [14:05:26]Read from MH i2c: E2 17 00 3D 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 0D [14:05:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:05:27]wFMCommunicate OK [14:05:27]CreateOFDProtocolMessage done [14:05:27]OFDSenderStorePacket 164975 [14:05:27]StoreOFDPacket docnum=164975 [14:05:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 29 6E 07 01 BB B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 AD 00 00 00 F4 03 04 00 25 DB 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6F 84 02 00 35 04 06 00 26 68 D5 1C 29 2A 64 25 67 1F D8 99 36 AD [14:05:27]CheckFolder [14:05:27]dirname=/storage/ofd_packets [14:05:27]CheckFolder done [14:05:27]ProducePacketName [14:05:27]name=ofd_packets/00164975 [14:05:27]NVStorageSaveData ofd_packets/00164975 [14:05:27]File name is /storage/ofd_packets/00164975 [14:05:27]Write 301 bytes [14:05:27]NVStorageSaveData done [14:05:27]OFDSenderStorePacket done [14:05:27]KKMCreateOFDPacket done [14:05:27]NVStorageSaveData kkm_last_timestamp [14:05:27]File name is /storage/kkm_last_timestamp [14:05:27]Write 4 bytes [14:05:27]NVStorageSaveData done [14:05:27]ExternCall_PrintAddStr [14:05:27]wPrintStart [14:05:27]Write to MH i2c: 01 00 00 3E 00 3E [14:05:27]Write i2c OK [14:05:27]MH_I2C_Read... [14:05:27]Read from MH i2c: 01 [14:05:27]MH_I2C_Read... [14:05:27]Read from MH i2c: 01 07 00 [14:05:27]MH_I2C_Read... [14:05:27]Read from MH i2c: 01 07 00 3E 00 00 00 00 00 00 FF 0F 53 [14:05:27]RasterBufferAndPrint [14:05:27]line Счет N : (1)459074 [14:05:27]line ИНН: 02508201610067 [14:05:27]line Контрольно-Кассовый Чек [14:05:27]line ПРОДАЖА [14:05:27]line ТРК (МРК, ГНК) : 12 [14:05:27]line Товар: 2710124130 [14:05:27]line Аи-92-К-5 [14:05:27]line 3.040 * 65.80 [14:05:27]line = 200.03 [14:05:27]line НДС 12% НСП 1% [14:05:27]line > о реализуемом товаре [14:05:27]line ОКРУГЛЕНИЕ: -0.03 [14:05:27]line ИТОГО: 200.00 [14:05:27]line Внесено: 200.00 [14:05:27]line СДАЧА: 0.00 [14:05:27]line НСП 1% : 1.77 [14:05:27]line НДС 12% : 21.24 [14:05:27]line Наличными: 200.00 [14:05:27]line Безнал.: 0.00 [14:05:27]line Место: АЗС № 72 "Партнер Нефть" [14:05:27]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:05:27]line СНО: Общий режим [14:05:27]line Чек 173 14.07.2024 14:05 [14:05:27]line Смена: 447 ФФД: 1.0 [14:05:27]line ЗНМ: 0300000160 [14:05:27]line РНМ: 0000000000090829 [14:05:27]line Версия ККМ: 001 [14:05:27]line ФМ: 0000000000874718 [14:05:27]line ФД: 164975 [14:05:27]line ФПД: 42231693846826 [14:05:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T140525&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164975&fm=42231693846826&tin=02508201610067®Number=0000000000090829&sum=20000 [14:05:27]written 0, free lines is 4095 [14:05:27]OFD Sender: Processing packet 164975 [packets to send 105, broken 104] [14:05:27]ProducePacketName [14:05:27]name=ofd_packets/00164975 [14:05:27]OFD Sender: To server: pG, [14:05:27]CommunicateWithHost lk.salyk.kg:30040 [14:05:27]ConnectInit lk.salyk.kg [14:05:27]Connected sock=10 [14:05:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 29 6E 07 01 BB B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 AD 00 00 00 F4 03 04 00 25 DB 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6F 84 02 00 35 04 06 00 26 68 D5 1C 29 2A 64 25 67 1F D8 99 36 AD [14:05:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 7F 80 47 00 3C 3F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6F 84 02 00 F4 03 04 00 B3 81 93 66 B6 04 01 00 00 3A 62 4B 64 E4 0D 38 87 [14:05:27]CommunicateWithHost err = 0 [14:05:27]CheckOFDResponse [14:05:27]1017 (14) - 77093643461234 [14:05:27]1041 (16) - 0000000000874718 [14:05:27]1040 (4) - 164975 [14:05:27]1012 (4) - 14.07.2024 07:43 [14:05:27]1206 (1) - 0 [14:05:27]OFD Sender: Remove packet 164975 [14:05:27]ProducePacketName [14:05:27]name=ofd_packets/00164975 [14:05:27]NVStorageDeleteData [14:05:27]Write to MH i2c: 01 00 00 68 00 68 [14:05:27]Write i2c OK [14:05:27]MH_I2C_Read... [14:05:27]Read from MH i2c: 01 [14:05:27]MH_I2C_Read... [14:05:27]Read from MH i2c: 01 07 00 [14:05:27]MH_I2C_Read... [14:05:27]Read from MH i2c: 01 07 00 68 00 00 00 00 00 00 10 0D 8C [14:05:27]RasterBufferAndPrint [14:05:27]line [14:05:27]line [14:05:27]line [14:05:27]line [14:05:27]line [14:05:27]written 0, free lines is 3365 [14:05:27]MH_Cut [14:05:27]Write to MH i2c: D1 01 00 6F 00 01 41 [14:05:27]Write i2c OK [14:05:27]MH_I2C_Read... [14:05:27]Read from MH i2c: D1 [14:05:27]MH_I2C_Read... [14:05:27]Read from MH i2c: D1 01 00 [14:05:27]MH_I2C_Read... [14:05:27]Read from MH i2c: D1 01 00 6F 00 00 40 [14:05:27]Write to MH i2c: 01 00 00 70 00 70 [14:05:27]Write i2c OK [14:05:27]MH_I2C_Read... [14:05:28]OFD Sender: No OFD packet to send [14:05:28]*** Cut start [14:05:28]*** Partial cut [14:05:28]*** CUTSNS_PIN = 1 [14:05:28]*** CUTSNS_PIN = 0 [14:05:28]*** Brake cut motor [14:05:29]Read from MH i2c: 01 [14:05:29]MH_I2C_Read... [14:05:29]*** Stop cut motor [14:05:29]*** Cut end [14:05:29]Read from MH i2c: 01 07 00 [14:05:29]MH_I2C_Read... [14:05:29]Read from MH i2c: 01 07 00 70 00 00 00 00 00 00 FF 0F 85 [14:05:29]process_action close_receipt done [14:05:29]requested_data is exist [14:05:29]produce_requested_data [14:05:29]requested_item fm.sn is exist - process it [14:05:29]wFMCommunicate request_size=4 [14:05:29]MH_SAM_APDU [14:05:29]CAPDU: 80 11 00 00 [14:05:29]Write to MH i2c: E2 08 00 71 00 80 11 00 00 00 00 00 00 EB [14:05:29]Write i2c OK [14:05:29]MH_I2C_Read... [14:05:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:29]Read from MH i2c: E2 [14:05:29]MH_I2C_Read... [14:05:29]Read from MH i2c: E2 17 00 [14:05:29]MH_I2C_Read... [14:05:29]Read from MH i2c: E2 17 00 71 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 41 [14:05:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:05:29]wFMCommunicate OK [14:05:29]requested_item fd.num is exist - process it [14:05:29]SAM_PROTO_GetFieldsCounters [14:05:29]wFMCommunicate request_size=4 [14:05:29]MH_SAM_APDU [14:05:29]CAPDU: 80 13 00 00 [14:05:29]Write to MH i2c: E2 08 00 72 00 80 13 00 00 00 00 00 00 EE [14:05:29]Write i2c OK [14:05:29]MH_I2C_Read... [14:05:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:05:29]Read from MH i2c: E2 [14:05:29]MH_I2C_Read... [14:05:29]Read from MH i2c: E2 62 00 [14:05:29]MH_I2C_Read... [14:05:29]Read from MH i2c: E2 62 00 72 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 6F 84 02 00 0E 04 04 00 BF 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 D1 [14:05:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 6F 84 02 00 0E 04 04 00 BF 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 [14:05:29]wFMCommunicate OK [14:05:29]SAM_PROTO_GetFieldsCounters done [14:05:29]requested_item shift.num is exist - process it [14:05:29]requested_item shift.opened is exist - process it [14:05:29]req_shift_opened [14:05:29]FM_GetShiftState [14:05:29]SAM_PROTO_GetShiftState [14:05:29]wFMCommunicate request_size=4 [14:05:29]MH_SAM_APDU [14:05:29]CAPDU: 80 13 01 00 [14:05:29]Write to MH i2c: E2 08 00 73 00 80 13 01 00 00 00 00 00 F0 [14:05:29]Write i2c OK [14:05:29]MH_I2C_Read... [14:05:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:29]Read from MH i2c: E2 [14:05:29]MH_I2C_Read... [14:05:29]Read from MH i2c: E2 0E 00 [14:05:29]MH_I2C_Read... [14:05:29]Read from MH i2c: E2 0E 00 73 00 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 70 [14:05:29]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [14:05:29]wFMCommunicate OK [14:05:29]SAM_PROTO_GetShiftState done [14:05:29]FM_GetShiftState done [14:05:29]req_shift_opened done [14:05:29]requested_item shift.open_date is exist - process it [14:05:29]req_shift_open_date [14:05:29]req_shift_open_date done [14:05:29]produce_requested_data done [14:05:29]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164975,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [14:05:29]process_action_free close_receipt [14:05:29]json_value_free [14:05:29]json_value_free done [14:05:29]process_json_proto returns [14:05:29]Send response to host [14:05:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164975,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [14:05:29]free response buf [14:05:29]execute_script done [14:05:29]execute_script returns [14:05:29]free content buf [14:05:29]Sock 7.Close socket [14:05:29]Sock 7.Thread stoped [14:05:33]OFD Sender: No OFD packet to send [14:05:38]OFD Sender: No OFD packet to send [14:05:43]OFD Sender: No OFD packet to send [14:05:48]OFD Sender: No OFD packet to send [14:05:53]OFD Sender: No OFD packet to send [14:05:58]OFD Sender: No OFD packet to send [14:05:59]accept exits with 9 [14:05:59]New connection [14:05:59]New thread 3066948964 created [14:05:59]Thread 3066805604 joined [14:05:59]Waiting for new connection... [14:05:59] Sock 9.Parse request [14:05:59]Sock 9.Check first char [14:05:59]Sock 9.First char is OK [14:05:59]request: POST /json_proto HTTP/1.0 [14:05:59]Method: POST [14:05:59]URL: /json_proto [14:05:59]Method is POST - this is cgi request [14:05:59]url: /json_proto [14:05:59]query_string will be loaded in cgi processing [14:05:59]execute_cgi json_proto POST (null) [14:05:59]execute_cgi path=json_proto method=POST [14:05:59]POST find Content-Length [14:05:59]Host: 172.17.56.4:8080 [14:05:59]Content-Length: 678 [14:05:59]Content-Type: application/json [14:05:59] [14:05:59]POST finish read [14:05:59]Found Content-Length = 678 [14:05:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459076", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "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:05:59]execute_script... [14:05: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)459076", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "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:05:59]POST & json_proto [14:05:59]process_json_proto [14:05:59]json parsed OK: [14:05:59]protocol is kg_v1.0 [14:05:59]action value=close_receipt [14:05:59]process_action close_receipt [14:05:59]cmd_close_receipt [14:05:59]MH_GetDate [14:05:59]Write to MH i2c: F0 00 00 74 00 63 [14:05:59]Write i2c OK [14:05:59]MH_I2C_Read... [14:05:59]Read from MH i2c: F0 [14:05:59]MH_I2C_Read... [14:05:59]Read from MH i2c: F0 09 00 [14:05:59]MH_I2C_Read... [14:05:59]Read from MH i2c: F0 09 00 74 00 00 47 DB 93 66 C9 DC B2 64 42 [14:05:59]GetLastDocTimeStamp 1720965925 [14:05:59]current date 1720965959 [14:05:59]FM_GetShiftState [14:05:59]SAM_PROTO_GetShiftState [14:05:59]wFMCommunicate request_size=4 [14:05:59]MH_SAM_APDU [14:05:59]CAPDU: 80 13 01 00 [14:05:59]Write to MH i2c: E2 08 00 75 00 80 13 01 00 00 00 00 00 F2 [14:05:59]Write i2c OK [14:05:59]MH_I2C_Read... [14:05:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:59]Read from MH i2c: E2 [14:05:59]MH_I2C_Read... [14:05:59]Read from MH i2c: E2 0E 00 [14:05:59]MH_I2C_Read... [14:05:59]Read from MH i2c: E2 0E 00 75 00 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 72 [14:05:59]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [14:05:59]wFMCommunicate OK [14:05:59]SAM_PROTO_GetShiftState done [14:05:59]FM_GetShiftState done [14:05:59]opened in 1720917342 [14:05:59]opened+sec_in_day 1721003742 [14:05:59]quantity*price = 70011 [14:05:59]sum+1 = 70012 [14:05:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 174 14.07.2024 14:05 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164976 ФПД: 266111725937459 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T140559&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164976&fm=266111725937459&tin=02508201610067®Number=0000000000090829&sum=70000 [14:06:00]StoreToDocumentArchive [14:06:00]shift 447 fd 164976 [14:06:00]save to /storage/0447/doc_00164976 [14:06:00]save last doc name /storage/0447/doc_00164976 to /storage/kkm_last_doc_name [14:06:00]save OK [14:06:00]Clear old archive folders... [14:06:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:06:00]tlvbuf is B6DA7870 [14:06:00]SAM_PROTO_ClearQueue [14:06:00]wFMCommunicate request_size=4 [14:06:00]MH_SAM_APDU [14:06:00]CAPDU: 80 09 00 00 [14:06:00]Write to MH i2c: E2 08 00 82 00 80 09 00 00 00 00 00 00 F4 [14:06:00]Write i2c OK [14:06:00]MH_I2C_Read... [14:06:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:06:00]Read from MH i2c: E2 [14:06:00]MH_I2C_Read... [14:06:00]Read from MH i2c: E2 03 00 [14:06:00]MH_I2C_Read... [14:06:00]Read from MH i2c: E2 03 00 82 00 00 90 00 F6 [14:06:00]RAPDU: 90 00 [14:06:00]wFMCommunicate OK [14:06:00]SAM_PROTO_ClearQueue done [14:06:00]KKMCreateOFDPacket [14:06:00]OFDProtocolAddRootSTLVToBuf [14:06:00]FM_MakeSignedData [14:06:00]FM_MakeSignedData [14:06:00]SAM_PROTO_SignData [14:06:00]wFMCommunicate request_size=4 [14:06:00]MH_SAM_APDU [14:06:00]CAPDU: 80 0D 01 02 [14:06:00]Write to MH i2c: E2 08 00 83 00 80 0D 01 02 00 00 00 00 FC [14:06:00]Write i2c OK [14:06:00]MH_I2C_Read... [14:06:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:06:00]Read from MH i2c: E2 [14:06:00]MH_I2C_Read... [14:06:00]Read from MH i2c: E2 03 00 [14:06:00]MH_I2C_Read... [14:06:00]Read from MH i2c: E2 03 00 83 00 00 90 00 F7 [14:06:00]RAPDU: 90 00 [14:06:00]wFMCommunicate OK [14:06:00]wFMCommunicate request_size=255 [14:06:00]MH_SAM_APDU [14:06:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 AE 00 00 00 F4 03 04 00 47 DB 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 70 84 02 00 35 04 06 00 F2 [14:06:00]Write to MH i2c: E2 02 01 84 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 AE 00 00 00 F4 03 04 00 47 DB 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 70 84 02 00 35 04 06 00 F2 00 00 2A [14:06:00]Write i2c OK [14:06:00]MH_I2C_Read... [14:06:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:06:00]Read from MH i2c: E2 [14:06:00]MH_I2C_Read... [14:06:00]Read from MH i2c: E2 03 00 [14:06:00]MH_I2C_Read... [14:06:00]Read from MH i2c: E2 03 00 84 00 00 90 00 F8 [14:06:00]RAPDU: 90 00 [14:06:00]wFMCommunicate OK [14:06:00]wFMCommunicate request_size=10 [14:06:00]MH_SAM_APDU [14:06:00]CAPDU: 80 0D 02 02 05 06 F6 E5 23 33 [14:06:00]Write to MH i2c: E2 0D 00 85 00 80 0D 02 02 05 00 06 F6 E5 23 33 00 00 40 [14:06:00]Write i2c OK [14:06:00]MH_I2C_Read... [14:06:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:06:00]Read from MH i2c: E2 [14:06:00]MH_I2C_Read... [14:06:00]Read from MH i2c: E2 03 00 [14:06:00]MH_I2C_Read... [14:06:00]Read from MH i2c: E2 03 00 85 00 00 90 00 F9 [14:06:00]RAPDU: 90 00 [14:06:00]wFMCommunicate OK [14:06:00]wFMCommunicate request_size=4 [14:06:00]MH_SAM_APDU [14:06:00]CAPDU: 80 0D 03 02 [14:06:00]Write to MH i2c: E2 08 00 86 00 80 0D 03 02 00 00 00 00 01 [14:06:00]Write i2c OK [14:06:00]MH_I2C_Read... [14:06:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:06:00]Read from MH i2c: E2 [14:06:00]MH_I2C_Read... [14:06:00]Read from MH i2c: E2 0B 00 [14:06:00]MH_I2C_Read... [14:06:00]Read from MH i2c: E2 0B 00 86 00 00 BE 15 1D BC 85 12 94 2C 90 00 05 [14:06:00]RAPDU: BE 15 1D BC 85 12 94 2C 90 00 [14:06:00]wFMCommunicate OK [14:06:00]SAM_PROTO_SignData done [14:06:00]FM_MakeSignedData done [14:06:00]CreateOFDProtocolMessage [14:06:00]wFMCommunicate request_size=4 [14:06:00]MH_SAM_APDU [14:06:00]CAPDU: 80 11 00 00 [14:06:00]Write to MH i2c: E2 08 00 87 00 80 11 00 00 00 00 00 00 01 [14:06:00]Write i2c OK [14:06:00]MH_I2C_Read... [14:06:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:06:00]Read from MH i2c: E2 [14:06:00]MH_I2C_Read... [14:06:00]Read from MH i2c: E2 17 00 [14:06:00]MH_I2C_Read... [14:06:00]Read from MH i2c: E2 17 00 87 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 57 [14:06:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:06:00]wFMCommunicate OK [14:06:00]CreateOFDProtocolMessage done [14:06:00]OFDSenderStorePacket 164976 [14:06:00]StoreOFDPacket docnum=164976 [14:06:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 76 3E 07 01 EB 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 AE 00 00 00 F4 03 04 00 47 DB 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 70 84 02 00 35 04 06 00 F2 06 F6 E5 23 33 BE 15 1D BC 85 12 94 2C [14:06:00]CheckFolder [14:06:00]dirname=/storage/ofd_packets [14:06:00]CheckFolder done [14:06:00]ProducePacketName [14:06:00]name=ofd_packets/00164976 [14:06:00]NVStorageSaveData ofd_packets/00164976 [14:06:00]File name is /storage/ofd_packets/00164976 [14:06:00]Write 301 bytes [14:06:00]NVStorageSaveData done [14:06:00]OFDSenderStorePacket done [14:06:00]KKMCreateOFDPacket done [14:06:00]NVStorageSaveData kkm_last_timestamp [14:06:00]File name is /storage/kkm_last_timestamp [14:06:00]Write 4 bytes [14:06:00]NVStorageSaveData done [14:06:00]ExternCall_PrintAddStr [14:06:00]wPrintStart [14:06:00]Write to MH i2c: 01 00 00 88 00 88 [14:06:00]Write i2c OK [14:06:00]MH_I2C_Read... [14:06:00]Read from MH i2c: 01 [14:06:00]MH_I2C_Read... [14:06:00]Read from MH i2c: 01 07 00 [14:06:00]MH_I2C_Read... [14:06:00]Read from MH i2c: 01 07 00 88 00 00 00 00 00 00 FF 0F 9D [14:06:00]RasterBufferAndPrint [14:06:00]line Счет N : (1)459076 [14:06:00]line ИНН: 02508201610067 [14:06:00]line Контрольно-Кассовый Чек [14:06:00]line ПРОДАЖА [14:06:00]line ТРК (МРК, ГНК) : 22 [14:06:00]line Товар: 2710124130 [14:06:00]line Аи-92-К-5 [14:06:00]line 10.640 * 65.80 [14:06:00]line = 700.11 [14:06:00]line НДС 12% НСП 1% [14:06:00]line > о реализуемом товаре [14:06:00]line ОКРУГЛЕНИЕ: -0.11 [14:06:00]line ИТОГО: 700.00 [14:06:00]line Внесено: 700.00 [14:06:00]line СДАЧА: 0.00 [14:06:00]line НСП 1% : 6.20 [14:06:00]line НДС 12% : 74.35 [14:06:00]line Наличными: 700.00 [14:06:00]line Безнал.: 0.00 [14:06:00]line Место: АЗС № 72 "Партнер Нефть" [14:06:00]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:06:00]line СНО: Общий режим [14:06:00]line Чек 174 14.07.2024 14:05 [14:06:00]line Смена: 447 ФФД: 1.0 [14:06:00]line ЗНМ: 0300000160 [14:06:00]line РНМ: 0000000000090829 [14:06:00]line Версия ККМ: 001 [14:06:00]line ФМ: 0000000000874718 [14:06:00]line ФД: 164976 [14:06:01]line ФПД: 266111725937459 [14:06:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T140559&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164976&fm=266111725937459&tin=02508201610067®Number=0000000000090829&sum=70000 [14:06:01]OFD Sender: Processing packet 164976 [packets to send 105, broken 104] [14:06:01]ProducePacketName [14:06:01]name=ofd_packets/00164976 [14:06:01]OFD Sender: To server: pG, [14:06:01]CommunicateWithHost lk.salyk.kg:30040 [14:06:01]ConnectInit lk.salyk.kg [14:06:01]written 0, free lines is 4095 [14:06:01]Connected sock=10 [14:06:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 76 3E 07 01 EB 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 AE 00 00 00 F4 03 04 00 47 DB 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 70 84 02 00 35 04 06 00 F2 06 F6 E5 23 33 BE 15 1D BC 85 12 94 2C [14:06:01]Write to MH i2c: 01 00 00 B2 00 B2 [14:06:01]Write i2c OK [14:06:01]MH_I2C_Read... [14:06:01]Read from MH i2c: 01 [14:06:01]MH_I2C_Read... [14:06:01]Read from MH i2c: 01 07 00 [14:06:01]MH_I2C_Read... [14:06:01]Read from MH i2c: 01 07 00 B2 00 00 00 00 00 00 F2 0C B7 [14:06:01]RasterBufferAndPrint [14:06:01]line [14:06:01]line [14:06:01]line [14:06:01]line [14:06:01]line [14:06:01]written 0, free lines is 3320 [14:06:01]MH_Cut [14:06:01]Write to MH i2c: D1 01 00 B9 00 01 8B [14:06:01]Write i2c OK [14:06:01]MH_I2C_Read... [14:06:01]Read from MH i2c: D1 [14:06:01]MH_I2C_Read... [14:06:01]Read from MH i2c: D1 01 00 [14:06:01]MH_I2C_Read... [14:06:01]Read from MH i2c: D1 01 00 B9 00 00 8A [14:06:01]Write to MH i2c: 01 00 00 BA 00 BA [14:06:01]Write i2c OK [14:06:01]MH_I2C_Read... [14:06:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 C3 E1 47 00 72 FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 70 84 02 00 F4 03 04 00 D5 81 93 66 B6 04 01 00 00 52 9D 01 80 8E F0 87 64 [14:06:01]CommunicateWithHost err = 0 [14:06:01]CheckOFDResponse [14:06:01]1017 (14) - 77093643461234 [14:06:01]1041 (16) - 0000000000874718 [14:06:01]1040 (4) - 164976 [14:06:01]1012 (4) - 14.07.2024 07:44 [14:06:01]1206 (1) - 0 [14:06:01]OFD Sender: Remove packet 164976 [14:06:01]ProducePacketName [14:06:01]name=ofd_packets/00164976 [14:06:01]NVStorageDeleteData [14:06:02]OFD Sender: No OFD packet to send [14:06:02]*** Cut start [14:06:02]*** Partial cut [14:06:02]*** CUTSNS_PIN = 1 [14:06:02]*** CUTSNS_PIN = 0 [14:06:02]*** Brake cut motor [14:06:03]Read from MH i2c: 01 [14:06:03]MH_I2C_Read... [14:06:03]*** Stop cut motor [14:06:03]*** Cut end [14:06:03]Read from MH i2c: 01 07 00 [14:06:03]MH_I2C_Read... [14:06:03]Read from MH i2c: 01 07 00 BA 00 00 00 00 00 00 FF 0F CF [14:06:03]process_action close_receipt done [14:06:03]requested_data is exist [14:06:03]produce_requested_data [14:06:03]requested_item fm.sn is exist - process it [14:06:03]wFMCommunicate request_size=4 [14:06:03]MH_SAM_APDU [14:06:03]CAPDU: 80 11 00 00 [14:06:03]Write to MH i2c: E2 08 00 BB 00 80 11 00 00 00 00 00 00 35 [14:06:03]Write i2c OK [14:06:03]MH_I2C_Read... [14:06:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:06:03]Read from MH i2c: E2 [14:06:03]MH_I2C_Read... [14:06:03]Read from MH i2c: E2 17 00 [14:06:03]MH_I2C_Read... [14:06:03]Read from MH i2c: E2 17 00 BB 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 8B [14:06:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:06:03]wFMCommunicate OK [14:06:03]requested_item fd.num is exist - process it [14:06:03]SAM_PROTO_GetFieldsCounters [14:06:03]wFMCommunicate request_size=4 [14:06:03]MH_SAM_APDU [14:06:03]CAPDU: 80 13 00 00 [14:06:03]Write to MH i2c: E2 08 00 BC 00 80 13 00 00 00 00 00 00 38 [14:06:03]Write i2c OK [14:06:03]MH_I2C_Read... [14:06:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:06:03]Read from MH i2c: E2 [14:06:03]MH_I2C_Read... [14:06:03]Read from MH i2c: E2 62 00 [14:06:03]MH_I2C_Read... [14:06:03]Read from MH i2c: E2 62 00 BC 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 70 84 02 00 0E 04 04 00 BF 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 1F [14:06:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 70 84 02 00 0E 04 04 00 BF 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 [14:06:03]wFMCommunicate OK [14:06:03]SAM_PROTO_GetFieldsCounters done [14:06:03]requested_item shift.num is exist - process it [14:06:03]requested_item shift.opened is exist - process it [14:06:03]req_shift_opened [14:06:03]FM_GetShiftState [14:06:03]SAM_PROTO_GetShiftState [14:06:03]wFMCommunicate request_size=4 [14:06:03]MH_SAM_APDU [14:06:03]CAPDU: 80 13 01 00 [14:06:03]Write to MH i2c: E2 08 00 BD 00 80 13 01 00 00 00 00 00 3A [14:06:03]Write i2c OK [14:06:03]MH_I2C_Read... [14:06:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:06:03]Read from MH i2c: E2 [14:06:03]MH_I2C_Read... [14:06:03]Read from MH i2c: E2 0E 00 [14:06:03]MH_I2C_Read... [14:06:03]Read from MH i2c: E2 0E 00 BD 00 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 BA [14:06:03]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [14:06:03]wFMCommunicate OK [14:06:03]SAM_PROTO_GetShiftState done [14:06:03]FM_GetShiftState done [14:06:03]req_shift_opened done [14:06:03]requested_item shift.open_date is exist - process it [14:06:03]req_shift_open_date [14:06:03]req_shift_open_date done [14:06:03]produce_requested_data done [14:06:03]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164976,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [14:06:03]process_action_free close_receipt [14:06:03]json_value_free [14:06:03]json_value_free done [14:06:03]process_json_proto returns [14:06:03]Send response to host [14:06:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164976,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [14:06:03]free response buf [14:06:03]execute_script done [14:06:03]execute_script returns [14:06:03]free content buf [14:06:03]Sock 9.Close socket [14:06:03]Sock 9.Thread stoped [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:07]OFD Sender: No OFD packet to send [14:09:12]OFD Sender: No OFD packet to send [14:09:17]OFD Sender: No OFD packet to send [14:09:22]OFD Sender: No OFD packet to send [14:09:27]OFD Sender: No OFD packet to send [14:09:32]OFD Sender: No OFD packet to send [14:09:37]OFD Sender: No OFD packet to send [14:09:42]OFD Sender: No OFD packet to send [14:09:47]OFD Sender: No OFD packet to send [14:09:52]OFD Sender: No OFD packet to send [14:09:57]OFD Sender: No OFD packet to send [14:10:02]OFD Sender: No OFD packet to send [14:10:07]OFD Sender: No OFD packet to send [14:10:12]OFD Sender: No OFD packet to send [14:10:17]OFD Sender: No OFD packet to send [14:10:22]OFD Sender: No OFD packet to send [14:10:27]OFD Sender: No OFD packet to send [14:10:32]OFD Sender: No OFD packet to send [14:10:37]OFD Sender: No OFD packet to send [14:10:42]OFD Sender: No OFD packet to send [14:10:47]OFD Sender: No OFD packet to send [14:10:52]OFD Sender: No OFD packet to send [14:10:57]OFD Sender: No OFD packet to send [14:11:02]OFD Sender: No OFD packet to send [14:11:07]OFD Sender: No OFD packet to send [14:11:12]OFD Sender: No OFD packet to send [14:11:17]OFD Sender: No OFD packet to send [14:11:22]OFD Sender: No OFD packet to send [14:11:27]OFD Sender: No OFD packet to send [14:11:32]OFD Sender: No OFD packet to send [14:11:37]OFD Sender: No OFD packet to send [14:11:42]OFD Sender: No OFD packet to send [14:11:47]OFD Sender: No OFD packet to send [14:11:52]OFD Sender: No OFD packet to send [14:11:55]accept exits with 7 [14:11:55]New connection [14:11:55]New thread 3066805604 created [14:11:55]Thread 3066948964 joined [14:11:55]Waiting for new connection... [14:11:55] Sock 7.Parse request [14:11:55]Sock 7.Check first char [14:11:55]Sock 7.First char is OK [14:11:55]request: POST /json_proto HTTP/1.0 [14:11:55]Method: POST [14:11:55]URL: /json_proto [14:11:55]Method is POST - this is cgi request [14:11:55]url: /json_proto [14:11:55]query_string will be loaded in cgi processing [14:11:55]execute_cgi json_proto POST (null) [14:11:55]execute_cgi path=json_proto method=POST [14:11:55]POST find Content-Length [14:11:55]Host: 172.17.56.4:8080 [14:11:55]Content-Length: 674 [14:11:55]Content-Type: application/json [14:11:55] [14:11:55]POST finish read [14:11:55]Found Content-Length = 674 [14:11:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459077", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 8.350, "sum" : 600.37, "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:11:55]execute_script... [14:11:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459077", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 8.350, "sum" : 600.37, "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:11:55]POST & json_proto [14:11:55]process_json_proto [14:11:55]json parsed OK: [14:11:55]protocol is kg_v1.0 [14:11:55]action value=close_receipt [14:11:55]process_action close_receipt [14:11:55]cmd_close_receipt [14:11:55]MH_GetDate [14:11:55]Write to MH i2c: F0 00 00 BE 00 AD [14:11:55]Write i2c OK [14:11:55]MH_I2C_Read... [14:11:55]Read from MH i2c: F0 [14:11:55]MH_I2C_Read... [14:11:55]Read from MH i2c: F0 09 00 [14:11:55]MH_I2C_Read... [14:11:55]Read from MH i2c: F0 09 00 BE 00 00 AB DC 93 66 C9 DC B2 64 F1 [14:11:55]GetLastDocTimeStamp 1720965959 [14:11:55]current date 1720966315 [14:11:55]FM_GetShiftState [14:11:55]SAM_PROTO_GetShiftState [14:11:55]wFMCommunicate request_size=4 [14:11:55]MH_SAM_APDU [14:11:55]CAPDU: 80 13 01 00 [14:11:55]Write to MH i2c: E2 08 00 BF 00 80 13 01 00 00 00 00 00 3C [14:11:55]Write i2c OK [14:11:55]MH_I2C_Read... [14:11:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:11:55]Read from MH i2c: E2 [14:11:55]MH_I2C_Read... [14:11:55]Read from MH i2c: E2 0E 00 [14:11:55]MH_I2C_Read... [14:11:55]Read from MH i2c: E2 0E 00 BF 00 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 BC [14:11:55]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [14:11:55]wFMCommunicate OK [14:11:55]SAM_PROTO_GetShiftState done [14:11:55]FM_GetShiftState done [14:11:55]opened in 1720917342 [14:11:55]opened+sec_in_day 1721003742 [14:11:55]quantity*price = 60036 [14:11:55]sum+1 = 60038 [14:11:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.76 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 175 14.07.2024 14:11 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164977 ФПД: 248634274713014 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T141155&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164977&fm=248634274713014&tin=02508201610067®Number=0000000000090829&sum=60000 [14:11:56]StoreToDocumentArchive [14:11:56]shift 447 fd 164977 [14:11:56]save to /storage/0447/doc_00164977 [14:11:56]save last doc name /storage/0447/doc_00164977 to /storage/kkm_last_doc_name [14:11:56]save OK [14:11:56]Clear old archive folders... [14:11:56]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:11:56]tlvbuf is 012FF660 [14:11:56]SAM_PROTO_ClearQueue [14:11:56]wFMCommunicate request_size=4 [14:11:56]MH_SAM_APDU [14:11:56]CAPDU: 80 09 00 00 [14:11:56]Write to MH i2c: E2 08 00 CC 00 80 09 00 00 00 00 00 00 3E [14:11:56]Write i2c OK [14:11:56]MH_I2C_Read... [14:11:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:11:56]Read from MH i2c: E2 [14:11:56]MH_I2C_Read... [14:11:56]Read from MH i2c: E2 03 00 [14:11:56]MH_I2C_Read... [14:11:56]Read from MH i2c: E2 03 00 CC 00 00 90 00 40 [14:11:56]RAPDU: 90 00 [14:11:56]wFMCommunicate OK [14:11:56]SAM_PROTO_ClearQueue done [14:11:56]KKMCreateOFDPacket [14:11:56]OFDProtocolAddRootSTLVToBuf [14:11:56]FM_MakeSignedData [14:11:56]FM_MakeSignedData [14:11:56]SAM_PROTO_SignData [14:11:56]wFMCommunicate request_size=4 [14:11:56]MH_SAM_APDU [14:11:56]CAPDU: 80 0D 01 02 [14:11:56]Write to MH i2c: E2 08 00 CD 00 80 0D 01 02 00 00 00 00 46 [14:11:56]Write i2c OK [14:11:56]MH_I2C_Read... [14:11:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:11:56]Read from MH i2c: E2 [14:11:56]MH_I2C_Read... [14:11:56]Read from MH i2c: E2 03 00 [14:11:56]MH_I2C_Read... [14:11:56]Read from MH i2c: E2 03 00 CD 00 00 90 00 41 [14:11:56]RAPDU: 90 00 [14:11:56]wFMCommunicate OK [14:11:56]wFMCommunicate request_size=255 [14:11:56]MH_SAM_APDU [14:11:56]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 20 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 85 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 E8 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 AF 00 00 00 F4 03 04 00 AB DC 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 71 84 02 00 35 04 06 00 E2 21 AD 9F [14:11:56]Write to MH i2c: E2 02 01 CE 00 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 20 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 85 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 E8 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 AF 00 00 00 F4 03 04 00 AB DC 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 71 84 02 00 35 04 06 00 E2 21 AD 9F 00 00 E6 [14:11:56]Write i2c OK [14:11:56]MH_I2C_Read... [14:11:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:11:56]Read from MH i2c: E2 [14:11:56]MH_I2C_Read... [14:11:56]Read from MH i2c: E2 03 00 [14:11:56]MH_I2C_Read... [14:11:56]Read from MH i2c: E2 03 00 CE 00 00 90 00 42 [14:11:56]RAPDU: 90 00 [14:11:56]wFMCommunicate OK [14:11:56]wFMCommunicate request_size=7 [14:11:56]MH_SAM_APDU [14:11:56]CAPDU: 80 0D 02 02 02 8D B6 [14:11:56]Write to MH i2c: E2 0A 00 CF 00 80 0D 02 02 02 00 8D B6 00 00 90 [14:11:56]Write i2c OK [14:11:56]MH_I2C_Read... [14:11:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:11:57]Read from MH i2c: E2 [14:11:57]MH_I2C_Read... [14:11:57]Read from MH i2c: E2 03 00 [14:11:57]MH_I2C_Read... [14:11:57]Read from MH i2c: E2 03 00 CF 00 00 90 00 43 [14:11:57]RAPDU: 90 00 [14:11:57]wFMCommunicate OK [14:11:57]wFMCommunicate request_size=4 [14:11:57]MH_SAM_APDU [14:11:57]CAPDU: 80 0D 03 02 [14:11:57]Write to MH i2c: E2 08 00 D0 00 80 0D 03 02 00 00 00 00 4B [14:11:57]Write i2c OK [14:11:57]MH_I2C_Read... [14:11:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:11:57]Read from MH i2c: E2 [14:11:57]MH_I2C_Read... [14:11:57]Read from MH i2c: E2 0B 00 [14:11:57]MH_I2C_Read... [14:11:57]Read from MH i2c: E2 0B 00 D0 00 00 C0 A5 9A CB 71 6C D1 F8 90 00 BC [14:11:57]RAPDU: C0 A5 9A CB 71 6C D1 F8 90 00 [14:11:57]wFMCommunicate OK [14:11:57]SAM_PROTO_SignData done [14:11:57]FM_MakeSignedData done [14:11:57]CreateOFDProtocolMessage [14:11:57]wFMCommunicate request_size=4 [14:11:57]MH_SAM_APDU [14:11:57]CAPDU: 80 11 00 00 [14:11:57]Write to MH i2c: E2 08 00 D1 00 80 11 00 00 00 00 00 00 4B [14:11:57]Write i2c OK [14:11:57]MH_I2C_Read... [14:11:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:11:57]Read from MH i2c: E2 [14:11:57]MH_I2C_Read... [14:11:57]Read from MH i2c: E2 17 00 [14:11:57]MH_I2C_Read... [14:11:57]Read from MH i2c: E2 17 00 D1 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A1 [14:11:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:11:57]wFMCommunicate OK [14:11:57]CreateOFDProtocolMessage done [14:11:57]OFDSenderStorePacket 164977 [14:11:57]StoreOFDPacket docnum=164977 [14:11:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 EA 38 04 01 A5 C8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 20 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 85 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 E8 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 AF 00 00 00 F4 03 04 00 AB DC 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 71 84 02 00 35 04 06 00 E2 21 AD 9F 8D B6 C0 A5 9A CB 71 6C D1 F8 [14:11:57]CheckFolder [14:11:57]dirname=/storage/ofd_packets [14:11:57]CheckFolder done [14:11:57]ProducePacketName [14:11:57]name=ofd_packets/00164977 [14:11:57]NVStorageSaveData ofd_packets/00164977 [14:11:57]File name is /storage/ofd_packets/00164977 [14:11:57]Write 298 bytes [14:11:57]NVStorageSaveData done [14:11:57]OFDSenderStorePacket done [14:11:57]KKMCreateOFDPacket done [14:11:57]NVStorageSaveData kkm_last_timestamp [14:11:57]File name is /storage/kkm_last_timestamp [14:11:57]Write 4 bytes [14:11:57]NVStorageSaveData done [14:11:57]ExternCall_PrintAddStr [14:11:57]wPrintStart [14:11:57]Write to MH i2c: 01 00 00 D2 00 D2 [14:11:57]Write i2c OK [14:11:57]MH_I2C_Read... [14:11:57]Read from MH i2c: 01 [14:11:57]MH_I2C_Read... [14:11:57]Read from MH i2c: 01 07 00 [14:11:57]MH_I2C_Read... [14:11:57]Read from MH i2c: 01 07 00 D2 00 00 00 00 00 00 FF 0F E7 [14:11:57]RasterBufferAndPrint [14:11:57]line Счет N : (1)459077 [14:11:57]line ИНН: 02508201610067 [14:11:57]line Контрольно-Кассовый Чек [14:11:57]line ПРОДАЖА [14:11:57]line ТРК (МРК, ГНК) : 11 [14:11:57]line Товар: 2710194210 [14:11:57]line ДТ-К-5 [14:11:57]line 8.350 * 71.90 [14:11:57]line = 600.37 [14:11:57]line НДС 12% НСП 1% [14:11:57]line > о реализуемом товаре [14:11:57]line ОКРУГЛЕНИЕ: -0.37 [14:11:57]line ИТОГО: 600.00 [14:11:57]line Внесено: 600.00 [14:11:57]line СДАЧА: 0.00 [14:11:57]line НСП 1% : 5.31 [14:11:57]line НДС 12% : 63.76 [14:11:57]line Наличными: 600.00 [14:11:57]line Безнал.: 0.00 [14:11:57]line Место: АЗС № 72 "Партнер Нефть" [14:11:57]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:11:57]line СНО: Общий режим [14:11:57]line Чек 175 14.07.2024 14:11 [14:11:57]line Смена: 447 ФФД: 1.0 [14:11:57]line ЗНМ: 0300000160 [14:11:57]line РНМ: 0000000000090829 [14:11:57]line Версия ККМ: 001 [14:11:57]line ФМ: 0000000000874718 [14:11:57]line ФД: 164977 [14:11:57]line ФПД: 248634274713014 [14:11:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T141155&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164977&fm=248634274713014&tin=02508201610067®Number=0000000000090829&sum=60000 [14:11:57]OFD Sender: Processing packet 164977 [packets to send 105, broken 104] [14:11:57]ProducePacketName [14:11:57]name=ofd_packets/00164977 [14:11:57]OFD Sender: To server: pG, [14:11:57]CommunicateWithHost lk.salyk.kg:30040 [14:11:57]ConnectInit lk.salyk.kg [14:11:57]written 0, free lines is 4095 [14:11:57]Connected sock=10 [14:11:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 EA 38 04 01 A5 C8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 20 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 85 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 E8 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 AF 00 00 00 F4 03 04 00 AB DC 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 71 84 02 00 35 04 06 00 E2 21 AD 9F 8D B6 C0 A5 9A CB 71 6C D1 F8 [14:11:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 41 63 47 00 38 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 71 84 02 00 F4 03 04 00 39 83 93 66 B6 04 01 00 00 10 D3 68 D5 33 14 45 F1 [14:11:57]CommunicateWithHost err = 0 [14:11:57]CheckOFDResponse [14:11:57]1017 (14) - 77093643461234 [14:11:57]1041 (16) - 0000000000874718 [14:11:57]1040 (4) - 164977 [14:11:57]1012 (4) - 14.07.2024 07:50 [14:11:57]1206 (1) - 0 [14:11:57]OFD Sender: Remove packet 164977 [14:11:57]ProducePacketName [14:11:57]name=ofd_packets/00164977 [14:11:57]NVStorageDeleteData [14:11:57]Write to MH i2c: 01 00 00 FC 00 FC [14:11:57]Write i2c OK [14:11:57]MH_I2C_Read... [14:11:57]Read from MH i2c: 01 [14:11:57]MH_I2C_Read... [14:11:57]Read from MH i2c: 01 07 00 [14:11:57]MH_I2C_Read... [14:11:57]Read from MH i2c: 01 07 00 FC 00 00 00 00 00 00 F2 0C 01 [14:11:57]RasterBufferAndPrint [14:11:57]line [14:11:57]line [14:11:57]line [14:11:57]line [14:11:57]line [14:11:57]written 0, free lines is 3320 [14:11:57]MH_Cut [14:11:57]Write to MH i2c: D1 01 00 03 01 01 D6 [14:11:57]Write i2c OK [14:11:57]MH_I2C_Read... [14:11:57]Read from MH i2c: D1 [14:11:57]MH_I2C_Read... [14:11:57]Read from MH i2c: D1 01 00 [14:11:57]MH_I2C_Read... [14:11:57]Read from MH i2c: D1 01 00 03 01 00 D5 [14:11:57]Write to MH i2c: 01 00 00 04 01 05 [14:11:57]Write i2c OK [14:11:57]MH_I2C_Read... [14:11:58]OFD Sender: No OFD packet to send [14:11:58]*** Cut start [14:11:58]*** Partial cut [14:11:58]*** CUTSNS_PIN = 1 [14:11:58]*** CUTSNS_PIN = 0 [14:11:58]*** Brake cut motor [14:11:59]Read from MH i2c: 01 [14:11:59]MH_I2C_Read... [14:11:59]*** Stop cut motor [14:11:59]*** Cut end [14:11:59]Read from MH i2c: 01 07 00 [14:11:59]MH_I2C_Read... [14:11:59]Read from MH i2c: 01 07 00 04 01 00 00 00 00 00 FF 0F 1A [14:11:59]process_action close_receipt done [14:11:59]requested_data is exist [14:11:59]produce_requested_data [14:11:59]requested_item fm.sn is exist - process it [14:11:59]wFMCommunicate request_size=4 [14:11:59]MH_SAM_APDU [14:11:59]CAPDU: 80 11 00 00 [14:11:59]Write to MH i2c: E2 08 00 05 01 80 11 00 00 00 00 00 00 80 [14:11:59]Write i2c OK [14:11:59]MH_I2C_Read... [14:11:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:11:59]Read from MH i2c: E2 [14:11:59]MH_I2C_Read... [14:11:59]Read from MH i2c: E2 17 00 [14:11:59]MH_I2C_Read... [14:11:59]Read from MH i2c: E2 17 00 05 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D6 [14:11:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:11:59]wFMCommunicate OK [14:11:59]requested_item fd.num is exist - process it [14:11:59]SAM_PROTO_GetFieldsCounters [14:11:59]wFMCommunicate request_size=4 [14:11:59]MH_SAM_APDU [14:11:59]CAPDU: 80 13 00 00 [14:11:59]Write to MH i2c: E2 08 00 06 01 80 13 00 00 00 00 00 00 83 [14:11:59]Write i2c OK [14:11:59]MH_I2C_Read... [14:11:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:11:59]Read from MH i2c: E2 [14:11:59]MH_I2C_Read... [14:11:59]Read from MH i2c: E2 62 00 [14:11:59]MH_I2C_Read... [14:11:59]Read from MH i2c: E2 62 00 06 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 71 84 02 00 0E 04 04 00 BF 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 6E [14:11:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 71 84 02 00 0E 04 04 00 BF 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 [14:11:59]wFMCommunicate OK [14:11:59]SAM_PROTO_GetFieldsCounters done [14:11:59]requested_item shift.num is exist - process it [14:11:59]requested_item shift.opened is exist - process it [14:11:59]req_shift_opened [14:11:59]FM_GetShiftState [14:11:59]SAM_PROTO_GetShiftState [14:11:59]wFMCommunicate request_size=4 [14:11:59]MH_SAM_APDU [14:11:59]CAPDU: 80 13 01 00 [14:11:59]Write to MH i2c: E2 08 00 07 01 80 13 01 00 00 00 00 00 85 [14:11:59]Write i2c OK [14:11:59]MH_I2C_Read... [14:11:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:11:59]Read from MH i2c: E2 [14:11:59]MH_I2C_Read... [14:11:59]Read from MH i2c: E2 0E 00 [14:11:59]MH_I2C_Read... [14:11:59]Read from MH i2c: E2 0E 00 07 01 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 05 [14:11:59]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [14:11:59]wFMCommunicate OK [14:11:59]SAM_PROTO_GetShiftState done [14:11:59]FM_GetShiftState done [14:11:59]req_shift_opened done [14:11:59]requested_item shift.open_date is exist - process it [14:11:59]req_shift_open_date [14:11:59]req_shift_open_date done [14:11:59]produce_requested_data done [14:11:59]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164977,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [14:11:59]process_action_free close_receipt [14:11:59]json_value_free [14:11:59]json_value_free done [14:11:59]process_json_proto returns [14:11:59]Send response to host [14:11:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164977,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [14:11:59]free response buf [14:11:59]execute_script done [14:11:59]execute_script returns [14:11:59]free content buf [14:11:59]Sock 7.Close socket [14:11:59]Sock 7.Thread stoped [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:58]OFD Sender: No OFD packet to send [14:13:03]OFD Sender: No OFD packet to send [14:13:08]OFD Sender: No OFD packet to send [14:13:13]OFD Sender: No OFD packet to send [14:13:18]OFD Sender: No OFD packet to send [14:13:23]OFD Sender: No OFD packet to send [14:13:28]OFD Sender: No OFD packet to send [14:13:33]OFD Sender: No OFD packet to send [14:13:38]OFD Sender: No OFD packet to send [14:13:43]accept exits with 9 [14:13:43]New connection [14:13:43]New thread 3066948964 created [14:13:43]Thread 3066805604 joined [14:13:43]Waiting for new connection... [14:13:43] Sock 9.Parse request [14:13:43]Sock 9.Check first char [14:13:43]Sock 9.First char is OK [14:13:43]request: POST /json_proto HTTP/1.0 [14:13:43]Method: POST [14:13:43]URL: /json_proto [14:13:43]Method is POST - this is cgi request [14:13:43]url: /json_proto [14:13:43]query_string will be loaded in cgi processing [14:13:43]execute_cgi json_proto POST (null) [14:13:43]execute_cgi path=json_proto method=POST [14:13:43]POST find Content-Length [14:13:43]Host: 172.17.56.4:8080 [14:13:43]Content-Length: 677 [14:13:43]Content-Type: application/json [14:13:43] [14:13:43]POST finish read [14:13:43]Found Content-Length = 677 [14:13:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459078", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:43]execute_script... [14:13: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)459078", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:43]POST & json_proto [14:13:43]process_json_proto [14:13:43]json parsed OK: [14:13:43]protocol is kg_v1.0 [14:13:43]action value=close_receipt [14:13:43]process_action close_receipt [14:13:43]cmd_close_receipt [14:13:43]MH_GetDate [14:13:43]Write to MH i2c: F0 00 00 08 01 F8 [14:13:43]Write i2c OK [14:13:43]MH_I2C_Read... [14:13:43]Read from MH i2c: F0 [14:13:43]MH_I2C_Read... [14:13:43]Read from MH i2c: F0 09 00 [14:13:43]MH_I2C_Read... [14:13:43]Read from MH i2c: F0 09 00 08 01 00 17 DD 93 66 C9 DC B2 64 A9 [14:13:43]GetLastDocTimeStamp 1720966315 [14:13:43]current date 1720966423 [14:13:43]FM_GetShiftState [14:13:43]SAM_PROTO_GetShiftState [14:13:43]wFMCommunicate request_size=4 [14:13:43]MH_SAM_APDU [14:13:43]CAPDU: 80 13 01 00 [14:13:43]Write to MH i2c: E2 08 00 09 01 80 13 01 00 00 00 00 00 87 [14:13:43]Write i2c OK [14:13:43]MH_I2C_Read... [14:13:43]OFD Sender: No OFD packet to send [14:13:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:43]Read from MH i2c: E2 [14:13:43]MH_I2C_Read... [14:13:43]Read from MH i2c: E2 0E 00 [14:13:43]MH_I2C_Read... [14:13:43]Read from MH i2c: E2 0E 00 09 01 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 07 [14:13:43]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [14:13:43]wFMCommunicate OK [14:13:43]SAM_PROTO_GetShiftState done [14:13:43]FM_GetShiftState done [14:13:43]opened in 1720917342 [14:13:43]opened+sec_in_day 1721003742 [14:13:43]quantity*price = 50008 [14:13:43]sum+1 = 50009 [14:13:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 176 14.07.2024 14:13 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164978 ФПД: 52331454327708 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T141343&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164978&fm=52331454327708&tin=02508201610067®Number=0000000000090829&sum=50000 [14:13:44]StoreToDocumentArchive [14:13:44]shift 447 fd 164978 [14:13:44]save to /storage/0447/doc_00164978 [14:13:44]save last doc name /storage/0447/doc_00164978 to /storage/kkm_last_doc_name [14:13:44]save OK [14:13:44]Clear old archive folders... [14:13:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:13:44]tlvbuf is 0129CF20 [14:13:44]SAM_PROTO_ClearQueue [14:13:44]wFMCommunicate request_size=4 [14:13:44]MH_SAM_APDU [14:13:44]CAPDU: 80 09 00 00 [14:13:44]Write to MH i2c: E2 08 00 16 01 80 09 00 00 00 00 00 00 89 [14:13:44]Write i2c OK [14:13:44]MH_I2C_Read... [14:13:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:13:44]Read from MH i2c: E2 [14:13:44]MH_I2C_Read... [14:13:44]Read from MH i2c: E2 03 00 [14:13:44]MH_I2C_Read... [14:13:44]Read from MH i2c: E2 03 00 16 01 00 90 00 8B [14:13:44]RAPDU: 90 00 [14:13:44]wFMCommunicate OK [14:13:44]SAM_PROTO_ClearQueue done [14:13:44]KKMCreateOFDPacket [14:13:44]OFDProtocolAddRootSTLVToBuf [14:13:44]FM_MakeSignedData [14:13:44]FM_MakeSignedData [14:13:44]SAM_PROTO_SignData [14:13:44]wFMCommunicate request_size=4 [14:13:44]MH_SAM_APDU [14:13:44]CAPDU: 80 0D 01 02 [14:13:44]Write to MH i2c: E2 08 00 17 01 80 0D 01 02 00 00 00 00 91 [14:13:44]Write i2c OK [14:13:44]MH_I2C_Read... [14:13:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:13:44]Read from MH i2c: E2 [14:13:44]MH_I2C_Read... [14:13:44]Read from MH i2c: E2 03 00 [14:13:44]MH_I2C_Read... [14:13:44]Read from MH i2c: E2 03 00 17 01 00 90 00 8C [14:13:44]RAPDU: 90 00 [14:13:44]wFMCommunicate OK [14:13:44]wFMCommunicate request_size=255 [14:13:44]MH_SAM_APDU [14: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 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 B0 00 00 00 F4 03 04 00 17 DD 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 72 84 02 00 35 04 06 00 2F [14:13:44]Write to MH i2c: E2 02 01 18 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 B0 00 00 00 F4 03 04 00 17 DD 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 72 84 02 00 35 04 06 00 2F 00 00 8E [14:13:44]Write i2c OK [14:13:44]MH_I2C_Read... [14:13:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:44]Read from MH i2c: E2 [14:13:44]MH_I2C_Read... [14:13:44]Read from MH i2c: E2 03 00 [14:13:44]MH_I2C_Read... [14:13:44]Read from MH i2c: E2 03 00 18 01 00 90 00 8D [14:13:44]RAPDU: 90 00 [14:13:44]wFMCommunicate OK [14:13:44]wFMCommunicate request_size=10 [14:13:44]MH_SAM_APDU [14:13:44]CAPDU: 80 0D 02 02 05 98 5D BE EB 9C [14:13:44]Write to MH i2c: E2 0D 00 19 01 80 0D 02 02 05 00 98 5D BE EB 9C 00 00 D8 [14:13:44]Write i2c OK [14:13:44]MH_I2C_Read... [14:13:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:44]Read from MH i2c: E2 [14:13:44]MH_I2C_Read... [14:13:44]Read from MH i2c: E2 03 00 [14:13:44]MH_I2C_Read... [14:13:44]Read from MH i2c: E2 03 00 19 01 00 90 00 8E [14:13:44]RAPDU: 90 00 [14:13:44]wFMCommunicate OK [14:13:44]wFMCommunicate request_size=4 [14:13:44]MH_SAM_APDU [14:13:44]CAPDU: 80 0D 03 02 [14:13:44]Write to MH i2c: E2 08 00 1A 01 80 0D 03 02 00 00 00 00 96 [14:13:44]Write i2c OK [14:13:44]MH_I2C_Read... [14:13:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:13:44]Read from MH i2c: E2 [14:13:44]MH_I2C_Read... [14:13:44]Read from MH i2c: E2 0B 00 [14:13:44]MH_I2C_Read... [14:13:44]Read from MH i2c: E2 0B 00 1A 01 00 7B 4C F7 50 AB 71 36 DE 90 00 D5 [14:13:44]RAPDU: 7B 4C F7 50 AB 71 36 DE 90 00 [14:13:44]wFMCommunicate OK [14:13:44]SAM_PROTO_SignData done [14:13:44]FM_MakeSignedData done [14:13:44]CreateOFDProtocolMessage [14:13:44]wFMCommunicate request_size=4 [14:13:44]MH_SAM_APDU [14:13:44]CAPDU: 80 11 00 00 [14:13:44]Write to MH i2c: E2 08 00 1B 01 80 11 00 00 00 00 00 00 96 [14:13:44]Write i2c OK [14:13:44]MH_I2C_Read... [14:13:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:45]Read from MH i2c: E2 [14:13:45]MH_I2C_Read... [14:13:45]Read from MH i2c: E2 17 00 [14:13:45]MH_I2C_Read... [14:13:45]Read from MH i2c: E2 17 00 1B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 EC [14:13:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:13:45]wFMCommunicate OK [14:13:45]CreateOFDProtocolMessage done [14:13:45]OFDSenderStorePacket 164978 [14:13:45]StoreOFDPacket docnum=164978 [14:13:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 B8 D4 07 01 77 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 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 B0 00 00 00 F4 03 04 00 17 DD 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 72 84 02 00 35 04 06 00 2F 98 5D BE EB 9C 7B 4C F7 50 AB 71 36 DE [14:13:45]CheckFolder [14:13:45]dirname=/storage/ofd_packets [14:13:45]CheckFolder done [14:13:45]ProducePacketName [14:13:45]name=ofd_packets/00164978 [14:13:45]NVStorageSaveData ofd_packets/00164978 [14:13:45]File name is /storage/ofd_packets/00164978 [14:13:45]Write 301 bytes [14:13:45]NVStorageSaveData done [14:13:45]OFDSenderStorePacket done [14:13:45]KKMCreateOFDPacket done [14:13:45]NVStorageSaveData kkm_last_timestamp [14:13:45]File name is /storage/kkm_last_timestamp [14:13:45]Write 4 bytes [14:13:45]NVStorageSaveData done [14:13:45]ExternCall_PrintAddStr [14:13:45]wPrintStart [14:13:45]Write to MH i2c: 01 00 00 1C 01 1D [14:13:45]Write i2c OK [14:13:45]MH_I2C_Read... [14:13:45]Read from MH i2c: 01 [14:13:45]MH_I2C_Read... [14:13:45]Read from MH i2c: 01 07 00 [14:13:45]MH_I2C_Read... [14:13:45]Read from MH i2c: 01 07 00 1C 01 00 00 00 00 00 FF 0F 32 [14:13:45]RasterBufferAndPrint [14:13:45]line Счет N : (1)459078 [14:13:45]line ИНН: 02508201610067 [14:13:45]line Контрольно-Кассовый Чек [14:13:45]line ПРОДАЖА [14:13:45]line ТРК (МРК, ГНК) : 12 [14:13:45]line Товар: 2710124130 [14:13:45]line Аи-92-К-5 [14:13:45]line 7.600 * 65.80 [14:13:45]line = 500.08 [14:13:45]line НДС 12% НСП 1% [14:13:45]line > о реализуемом товаре [14:13:45]line ОКРУГЛЕНИЕ: -0.08 [14:13:45]line ИТОГО: 500.00 [14:13:45]line Внесено: 500.00 [14:13:45]line СДАЧА: 0.00 [14:13:45]line НСП 1% : 4.42 [14:13:45]line НДС 12% : 53.11 [14:13:45]line Наличными: 500.00 [14:13:45]line Безнал.: 0.00 [14:13:45]line Место: АЗС № 72 "Партнер Нефть" [14:13:45]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:13:45]line СНО: Общий режим [14:13:45]line Чек 176 14.07.2024 14:13 [14:13:45]line Смена: 447 ФФД: 1.0 [14:13:45]line ЗНМ: 0300000160 [14:13:45]line РНМ: 0000000000090829 [14:13:45]line Версия ККМ: 001 [14:13:45]line ФМ: 0000000000874718 [14:13:45]line ФД: 164978 [14:13:45]line ФПД: 52331454327708 [14:13:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T141343&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164978&fm=52331454327708&tin=02508201610067®Number=0000000000090829&sum=50000 [14:13:45]OFD Sender: Processing packet 164978 [packets to send 105, broken 104] [14:13:45]ProducePacketName [14:13:45]name=ofd_packets/00164978 [14:13:45]OFD Sender: To server: pG, [14:13:45]CommunicateWithHost lk.salyk.kg:30040 [14:13:45]ConnectInit lk.salyk.kg [14:13:45]written 0, free lines is 4095 [14:13:45]Connected sock=10 [14:13:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 B8 D4 07 01 77 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 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 B0 00 00 00 F4 03 04 00 17 DD 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 72 84 02 00 35 04 06 00 2F 98 5D BE EB 9C 7B 4C F7 50 AB 71 36 DE [14:13:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 E3 07 47 00 AE 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 72 84 02 00 F4 03 04 00 A5 83 93 66 B6 04 01 00 00 7D BE 39 CE 38 F0 FC A9 [14:13:45]CommunicateWithHost err = 0 [14:13:45]CheckOFDResponse [14:13:45]1017 (14) - 77093643461234 [14:13:45]1041 (16) - 0000000000874718 [14:13:45]1040 (4) - 164978 [14:13:45]1012 (4) - 14.07.2024 07:52 [14:13:45]1206 (1) - 0 [14:13:45]OFD Sender: Remove packet 164978 [14:13:45]ProducePacketName [14:13:45]name=ofd_packets/00164978 [14:13:45]NVStorageDeleteData [14:13:45]Write to MH i2c: 01 00 00 46 01 47 [14:13:45]Write i2c OK [14:13:45]MH_I2C_Read... [14:13:45]Read from MH i2c: 01 [14:13:45]MH_I2C_Read... [14:13:45]Read from MH i2c: 01 07 00 [14:13:45]MH_I2C_Read... [14:13:45]Read from MH i2c: 01 07 00 46 01 00 00 00 00 00 FD 0C 57 [14:13:45]RasterBufferAndPrint [14:13:45]line [14:13:45]line [14:13:45]line [14:13:45]line [14:13:45]line [14:13:45]written 0, free lines is 3331 [14:13:45]MH_Cut [14:13:45]Write to MH i2c: D1 01 00 4D 01 01 20 [14:13:45]Write i2c OK [14:13:45]MH_I2C_Read... [14:13:45]Read from MH i2c: D1 [14:13:45]MH_I2C_Read... [14:13:45]Read from MH i2c: D1 01 00 [14:13:45]MH_I2C_Read... [14:13:45]Read from MH i2c: D1 01 00 4D 01 00 1F [14:13:45]Write to MH i2c: 01 00 00 4E 01 4F [14:13:45]Write i2c OK [14:13:45]MH_I2C_Read... [14:13:46]OFD Sender: No OFD packet to send [14:13:46]*** Cut start [14:13:46]*** Partial cut [14:13:46]*** CUTSNS_PIN = 1 [14:13:46]*** CUTSNS_PIN = 0 [14:13:46]*** Brake cut motor [14:13:47]Read from MH i2c: 01 [14:13:47]MH_I2C_Read... [14:13:47]*** Stop cut motor [14:13:47]*** Cut end [14:13:47]Read from MH i2c: 01 07 00 [14:13:47]MH_I2C_Read... [14:13:47]Read from MH i2c: 01 07 00 4E 01 00 00 00 00 00 FF 0F 64 [14:13:47]process_action close_receipt done [14:13:47]requested_data is exist [14:13:47]produce_requested_data [14:13:47]requested_item fm.sn is exist - process it [14:13:47]wFMCommunicate request_size=4 [14:13:47]MH_SAM_APDU [14:13:47]CAPDU: 80 11 00 00 [14:13:47]Write to MH i2c: E2 08 00 4F 01 80 11 00 00 00 00 00 00 CA [14:13:47]Write i2c OK [14:13:47]MH_I2C_Read... [14:13:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:47]Read from MH i2c: E2 [14:13:47]MH_I2C_Read... [14:13:47]Read from MH i2c: E2 17 00 [14:13:47]MH_I2C_Read... [14:13:47]Read from MH i2c: E2 17 00 4F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 20 [14:13:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:13:47]wFMCommunicate OK [14:13:47]requested_item fd.num is exist - process it [14:13:47]SAM_PROTO_GetFieldsCounters [14:13:47]wFMCommunicate request_size=4 [14:13:47]MH_SAM_APDU [14:13:47]CAPDU: 80 13 00 00 [14:13:47]Write to MH i2c: E2 08 00 50 01 80 13 00 00 00 00 00 00 CD [14:13:47]Write i2c OK [14:13:47]MH_I2C_Read... [14:13:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:13:47]Read from MH i2c: E2 [14:13:47]MH_I2C_Read... [14:13:47]Read from MH i2c: E2 62 00 [14:13:47]MH_I2C_Read... [14:13:47]Read from MH i2c: E2 62 00 50 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 72 84 02 00 0E 04 04 00 BF 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 BC [14:13:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 72 84 02 00 0E 04 04 00 BF 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 [14:13:47]wFMCommunicate OK [14:13:47]SAM_PROTO_GetFieldsCounters done [14:13:47]requested_item shift.num is exist - process it [14:13:47]requested_item shift.opened is exist - process it [14:13:47]req_shift_opened [14:13:47]FM_GetShiftState [14:13:47]SAM_PROTO_GetShiftState [14:13:47]wFMCommunicate request_size=4 [14:13:47]MH_SAM_APDU [14:13:47]CAPDU: 80 13 01 00 [14:13:47]Write to MH i2c: E2 08 00 51 01 80 13 01 00 00 00 00 00 CF [14:13:47]Write i2c OK [14:13:47]MH_I2C_Read... [14:13:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:47]Read from MH i2c: E2 [14:13:47]MH_I2C_Read... [14:13:47]Read from MH i2c: E2 0E 00 [14:13:47]MH_I2C_Read... [14:13:47]Read from MH i2c: E2 0E 00 51 01 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 4F [14:13:47]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [14:13:47]wFMCommunicate OK [14:13:47]SAM_PROTO_GetShiftState done [14:13:47]FM_GetShiftState done [14:13:47]req_shift_opened done [14:13:47]requested_item shift.open_date is exist - process it [14:13:47]req_shift_open_date [14:13:47]req_shift_open_date done [14:13:47]produce_requested_data done [14:13:47]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164978,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [14:13:47]process_action_free close_receipt [14:13:47]json_value_free [14:13:47]json_value_free done [14:13:47]process_json_proto returns [14:13:47]Send response to host [14:13:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164978,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [14:13:47]free response buf [14:13:47]execute_script done [14:13:47]execute_script returns [14:13:47]free content buf [14:13:47]Sock 9.Close socket [14:13:47]Sock 9.Thread stoped [14:13:51]OFD Sender: No OFD packet to send [14:13:56]OFD Sender: No OFD packet to send [14:14:01]OFD Sender: No OFD packet to send [14:14:06]OFD Sender: No OFD packet to send [14:14:11]OFD Sender: No OFD packet to send [14:14:16]OFD Sender: No OFD packet to send [14:14:21]OFD Sender: No OFD packet to send [14:14:26]OFD Sender: No OFD packet to send [14:14:31]OFD Sender: No OFD packet to send [14:14:36]OFD Sender: No OFD packet to send [14:14:41]OFD Sender: No OFD packet to send [14:14:46]OFD Sender: No OFD packet to send [14:14:51]OFD Sender: No OFD packet to send [14:14:56]OFD Sender: No OFD packet to send [14:15:01]OFD Sender: No OFD packet to send [14:15:06]OFD Sender: No OFD packet to send [14:15:11]OFD Sender: No OFD packet to send [14:15:16]OFD Sender: No OFD packet to send [14:15:21]OFD Sender: No OFD packet to send [14:15:26]OFD Sender: No OFD packet to send [14:15:31]OFD Sender: No OFD packet to send [14:15:36]OFD Sender: No OFD packet to send [14:15:41]OFD Sender: No OFD packet to send [14:15:46]OFD Sender: No OFD packet to send [14:15:51]OFD Sender: No OFD packet to send [14:15:56]OFD Sender: No OFD packet to send [14:16:01]OFD Sender: No OFD packet to send [14:16:06]OFD Sender: No OFD packet to send [14:16:11]OFD Sender: No OFD packet to send [14:16:16]OFD Sender: No OFD packet to send [14:16:21]OFD Sender: No OFD packet to send [14:16:26]OFD Sender: No OFD packet to send [14:16:31]OFD Sender: No OFD packet to send [14:16:36]OFD Sender: No OFD packet to send [14:16:41]OFD Sender: No OFD packet to send [14:16:46]OFD Sender: No OFD packet to send [14:16:51]OFD Sender: No OFD packet to send [14:16:56]OFD Sender: No OFD packet to send [14:17:01]OFD Sender: No OFD packet to send [14:17:06]OFD Sender: No OFD packet to send [14:17:11]OFD Sender: No OFD packet to send [14:17:16]OFD Sender: No OFD packet to send [14:17:21]OFD Sender: No OFD packet to send [14:17:26]OFD Sender: No OFD packet to send [14:17:31]OFD Sender: No OFD packet to send [14:17:36]OFD Sender: No OFD packet to send [14:17:41]OFD Sender: No OFD packet to send [14:17:46]OFD Sender: No OFD packet to send [14:17:51]OFD Sender: No OFD packet to send [14:17:56]OFD Sender: No OFD packet to send [14:18:01]OFD Sender: No OFD packet to send [14:18:06]OFD Sender: No OFD packet to send [14:18:11]OFD Sender: No OFD packet to send [14:18:16]OFD Sender: No OFD packet to send [14:18:21]OFD Sender: No OFD packet to send [14:18:26]OFD Sender: No OFD packet to send [14:18:31]OFD Sender: No OFD packet to send [14:18:36]OFD Sender: No OFD packet to send [14:18:41]OFD Sender: No OFD packet to send [14:18:46]OFD Sender: No OFD packet to send [14:18:51]OFD Sender: No OFD packet to send [14:18:56]OFD Sender: No OFD packet to send [14:19:01]OFD Sender: No OFD packet to send [14:19:06]OFD Sender: No OFD packet to send [14:19:11]OFD Sender: No OFD packet to send [14:19:16]OFD Sender: No OFD packet to send [14:19:21]OFD Sender: No OFD packet to send [14:19:26]OFD Sender: No OFD packet to send [14:19:31]OFD Sender: No OFD packet to send [14:19:36]OFD Sender: No OFD packet to send [14:19:41]OFD Sender: No OFD packet to send [14:19:46]OFD Sender: No OFD packet to send [14:19:51]OFD Sender: No OFD packet to send [14:19:56]OFD Sender: No OFD packet to send [14:20:01]OFD Sender: No OFD packet to send [14:20:06]OFD Sender: No OFD packet to send [14:20:11]OFD Sender: No OFD packet to send [14:20:16]OFD Sender: No OFD packet to send [14:20:21]OFD Sender: No OFD packet to send [14:20:26]OFD Sender: No OFD packet to send [14:20:31]OFD Sender: No OFD packet to send [14:20:36]OFD Sender: No OFD packet to send [14:20:41]OFD Sender: No OFD packet to send [14:20:46]OFD Sender: No OFD packet to send [14:20:51]OFD Sender: No OFD packet to send [14:20:56]OFD Sender: No OFD packet to send [14:21:01]OFD Sender: No OFD packet to send [14:21:06]OFD Sender: No OFD packet to send [14:21:11]OFD Sender: No OFD packet to send [14:21:16]OFD Sender: No OFD packet to send [14:21:21]OFD Sender: No OFD packet to send [14:21:26]OFD Sender: No OFD packet to send [14:21:31]OFD Sender: No OFD packet to send [14:21:36]OFD Sender: No OFD packet to send [14:21:41]OFD Sender: No OFD packet to send [14:21:46]OFD Sender: No OFD packet to send [14:21:51]OFD Sender: No OFD packet to send [14:21:56]OFD Sender: No OFD packet to send [14:22:01]OFD Sender: No OFD packet to send [14:22:06]OFD Sender: No OFD packet to send [14:22:11]OFD Sender: No OFD packet to send [14:22:16]OFD Sender: No OFD packet to send [14:22:21]OFD Sender: No OFD packet to send [14:22:26]OFD Sender: No OFD packet to send [14:22:31]OFD Sender: No OFD packet to send [14:22:36]OFD Sender: No OFD packet to send [14:22:41]OFD Sender: No OFD packet to send [14:22:46]OFD Sender: No OFD packet to send [14:22:51]OFD Sender: No OFD packet to send [14:22:56]OFD Sender: No OFD packet to send [14:23:01]OFD Sender: No OFD packet to send [14:23:06]OFD Sender: No OFD packet to send [14:23:11]OFD Sender: No OFD packet to send [14:23:16]OFD Sender: No OFD packet to send [14:23:21]OFD Sender: No OFD packet to send [14:23:26]OFD Sender: No OFD packet to send [14:23:31]OFD Sender: No OFD packet to send [14:23:36]OFD Sender: No OFD packet to send [14:23:41]OFD Sender: No OFD packet to send [14:23:46]OFD Sender: No OFD packet to send [14:23:51]OFD Sender: No OFD packet to send [14:23:56]OFD Sender: No OFD packet to send [14:24:01]OFD Sender: No OFD packet to send [14:24:06]OFD Sender: No OFD packet to send [14:24:10]accept exits with 7 [14:24:10]New connection [14:24:10]New thread 3066805604 created [14:24:10]Thread 3066948964 joined [14:24:10]Waiting for new connection... [14:24:10] Sock 7.Parse request [14:24:10]Sock 7.Check first char [14:24:10]Sock 7.First char is OK [14:24:10]request: POST /json_proto HTTP/1.0 [14:24:10]Method: POST [14:24:10]URL: /json_proto [14:24:10]Method is POST - this is cgi request [14:24:10]url: /json_proto [14:24:10]query_string will be loaded in cgi processing [14:24:10]execute_cgi json_proto POST (null) [14:24:10]execute_cgi path=json_proto method=POST [14:24:10]POST find Content-Length [14:24:10]Host: 172.17.56.4:8080 [14:24:10]Content-Length: 678 [14:24:10]Content-Type: application/json [14:24:10] [14:24:10]POST finish read [14:24:10]Found Content-Length = 678 [14:24:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459079", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "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:24:10]execute_script... [14:24: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)459079", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "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:24:10]POST & json_proto [14:24:10]process_json_proto [14:24:10]json parsed OK: [14:24:10]protocol is kg_v1.0 [14:24:10]action value=close_receipt [14:24:10]process_action close_receipt [14:24:10]cmd_close_receipt [14:24:10]MH_GetDate [14:24:10]Write to MH i2c: F0 00 00 52 01 42 [14:24:10]Write i2c OK [14:24:10]MH_I2C_Read... [14:24:10]Read from MH i2c: F0 [14:24:10]MH_I2C_Read... [14:24:10]Read from MH i2c: F0 09 00 [14:24:10]MH_I2C_Read... [14:24:10]Read from MH i2c: F0 09 00 52 01 00 8B DF 93 66 C9 DC B2 64 69 [14:24:10]GetLastDocTimeStamp 1720966423 [14:24:10]current date 1720967051 [14:24:10]FM_GetShiftState [14:24:10]SAM_PROTO_GetShiftState [14:24:10]wFMCommunicate request_size=4 [14:24:10]MH_SAM_APDU [14:24:10]CAPDU: 80 13 01 00 [14:24:10]Write to MH i2c: E2 08 00 53 01 80 13 01 00 00 00 00 00 D1 [14:24:10]Write i2c OK [14:24:10]MH_I2C_Read... [14:24:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:10]Read from MH i2c: E2 [14:24:10]MH_I2C_Read... [14:24:10]Read from MH i2c: E2 0E 00 [14:24:10]MH_I2C_Read... [14:24:10]Read from MH i2c: E2 0E 00 53 01 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 51 [14:24:10]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [14:24:10]wFMCommunicate OK [14:24:10]SAM_PROTO_GetShiftState done [14:24:10]FM_GetShiftState done [14:24:10]opened in 1720917342 [14:24:10]opened+sec_in_day 1721003742 [14:24:10]quantity*price = 70011 [14:24:10]sum+1 = 70012 [14:24:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 177 14.07.2024 14:24 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164979 ФПД: 106057871742042 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T142411&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164979&fm=106057871742042&tin=02508201610067®Number=0000000000090829&sum=70000 [14:24:11]StoreToDocumentArchive [14:24:11]shift 447 fd 164979 [14:24:11]save to /storage/0447/doc_00164979 [14:24:11]save last doc name /storage/0447/doc_00164979 to /storage/kkm_last_doc_name [14:24:11]save OK [14:24:11]Clear old archive folders... [14:24:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:24:11]tlvbuf is 01298010 [14:24:11]SAM_PROTO_ClearQueue [14:24:11]wFMCommunicate request_size=4 [14:24:11]MH_SAM_APDU [14:24:11]CAPDU: 80 09 00 00 [14:24:11]Write to MH i2c: E2 08 00 60 01 80 09 00 00 00 00 00 00 D3 [14:24:11]Write i2c OK [14:24:11]MH_I2C_Read... [14:24:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:24:12]Read from MH i2c: E2 [14:24:12]MH_I2C_Read... [14:24:12]Read from MH i2c: E2 03 00 [14:24:12]MH_I2C_Read... [14:24:12]Read from MH i2c: E2 03 00 60 01 00 90 00 D5 [14:24:12]RAPDU: 90 00 [14:24:12]wFMCommunicate OK [14:24:12]SAM_PROTO_ClearQueue done [14:24:12]KKMCreateOFDPacket [14:24:12]OFDProtocolAddRootSTLVToBuf [14:24:12]FM_MakeSignedData [14:24:12]FM_MakeSignedData [14:24:12]SAM_PROTO_SignData [14:24:12]wFMCommunicate request_size=4 [14:24:12]MH_SAM_APDU [14:24:12]CAPDU: 80 0D 01 02 [14:24:12]Write to MH i2c: E2 08 00 61 01 80 0D 01 02 00 00 00 00 DB [14:24:12]Write i2c OK [14:24:12]MH_I2C_Read... [14:24:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:24:12]Read from MH i2c: E2 [14:24:12]MH_I2C_Read... [14:24:12]Read from MH i2c: E2 03 00 [14:24:12]MH_I2C_Read... [14:24:12]Read from MH i2c: E2 03 00 61 01 00 90 00 D6 [14:24:12]RAPDU: 90 00 [14:24:12]wFMCommunicate OK [14:24:12]wFMCommunicate request_size=255 [14:24:12]MH_SAM_APDU [14:24:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 B1 00 00 00 F4 03 04 00 8B DF 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 73 84 02 00 35 04 06 00 60 [14:24:12]Write to MH i2c: E2 02 01 62 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 B1 00 00 00 F4 03 04 00 8B DF 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 73 84 02 00 35 04 06 00 60 00 00 C5 [14:24:12]Write i2c OK [14:24:12]MH_I2C_Read... [14:24:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:12]Read from MH i2c: E2 [14:24:12]MH_I2C_Read... [14:24:12]Read from MH i2c: E2 03 00 [14:24:12]MH_I2C_Read... [14:24:12]Read from MH i2c: E2 03 00 62 01 00 90 00 D7 [14:24:12]RAPDU: 90 00 [14:24:12]wFMCommunicate OK [14:24:12]wFMCommunicate request_size=10 [14:24:12]MH_SAM_APDU [14:24:12]CAPDU: 80 0D 02 02 05 75 85 C5 54 5A [14:24:12]Write to MH i2c: E2 0D 00 63 01 80 0D 02 02 05 00 75 85 C5 54 5A 00 00 55 [14:24:12]Write i2c OK [14:24:12]MH_I2C_Read... [14:24:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:12]Read from MH i2c: E2 [14:24:12]MH_I2C_Read... [14:24:12]Read from MH i2c: E2 03 00 [14:24:12]MH_I2C_Read... [14:24:12]Read from MH i2c: E2 03 00 63 01 00 90 00 D8 [14:24:12]RAPDU: 90 00 [14:24:12]wFMCommunicate OK [14:24:12]wFMCommunicate request_size=4 [14:24:12]MH_SAM_APDU [14:24:12]CAPDU: 80 0D 03 02 [14:24:12]Write to MH i2c: E2 08 00 64 01 80 0D 03 02 00 00 00 00 E0 [14:24:12]Write i2c OK [14:24:12]MH_I2C_Read... [14:24:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:24:12]Read from MH i2c: E2 [14:24:12]MH_I2C_Read... [14:24:12]Read from MH i2c: E2 0B 00 [14:24:12]MH_I2C_Read... [14:24:12]Read from MH i2c: E2 0B 00 64 01 00 51 66 7D F1 AF E9 63 AB 90 00 AC [14:24:12]RAPDU: 51 66 7D F1 AF E9 63 AB 90 00 [14:24:12]wFMCommunicate OK [14:24:12]SAM_PROTO_SignData done [14:24:12]FM_MakeSignedData done [14:24:12]CreateOFDProtocolMessage [14:24:12]wFMCommunicate request_size=4 [14:24:12]MH_SAM_APDU [14:24:12]CAPDU: 80 11 00 00 [14:24:12]Write to MH i2c: E2 08 00 65 01 80 11 00 00 00 00 00 00 E0 [14:24:12]Write i2c OK [14:24:12]MH_I2C_Read... [14:24:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:12]Read from MH i2c: E2 [14:24:12]MH_I2C_Read... [14:24:12]Read from MH i2c: E2 17 00 [14:24:12]MH_I2C_Read... [14:24:12]Read from MH i2c: E2 17 00 65 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 36 [14:24:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:24:12]wFMCommunicate OK [14:24:12]CreateOFDProtocolMessage done [14:24:12]OFDSenderStorePacket 164979 [14:24:12]StoreOFDPacket docnum=164979 [14:24:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C3 AA 07 01 0B D1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 B1 00 00 00 F4 03 04 00 8B DF 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 73 84 02 00 35 04 06 00 60 75 85 C5 54 5A 51 66 7D F1 AF E9 63 AB [14:24:12]CheckFolder [14:24:12]dirname=/storage/ofd_packets [14:24:12]CheckFolder done [14:24:12]ProducePacketName [14:24:12]name=ofd_packets/00164979 [14:24:12]NVStorageSaveData ofd_packets/00164979 [14:24:12]File name is /storage/ofd_packets/00164979 [14:24:12]Write 301 bytes [14:24:12]NVStorageSaveData done [14:24:12]OFDSenderStorePacket done [14:24:12]KKMCreateOFDPacket done [14:24:12]NVStorageSaveData kkm_last_timestamp [14:24:12]File name is /storage/kkm_last_timestamp [14:24:12]Write 4 bytes [14:24:12]NVStorageSaveData done [14:24:12]ExternCall_PrintAddStr [14:24:12]wPrintStart [14:24:12]Write to MH i2c: 01 00 00 66 01 67 [14:24:12]Write i2c OK [14:24:12]MH_I2C_Read... [14:24:12]Read from MH i2c: 01 [14:24:12]MH_I2C_Read... [14:24:12]Read from MH i2c: 01 07 00 [14:24:12]MH_I2C_Read... [14:24:12]Read from MH i2c: 01 07 00 66 01 00 00 00 00 00 FF 0F 7C [14:24:12]RasterBufferAndPrint [14:24:12]line Счет N : (1)459079 [14:24:12]line ИНН: 02508201610067 [14:24:12]line Контрольно-Кассовый Чек [14:24:12]line ПРОДАЖА [14:24:12]line ТРК (МРК, ГНК) : 22 [14:24:12]line Товар: 2710124130 [14:24:12]line Аи-92-К-5 [14:24:12]line 10.640 * 65.80 [14:24:12]line = 700.11 [14:24:12]line НДС 12% НСП 1% [14:24:12]line > о реализуемом товаре [14:24:12]line ОКРУГЛЕНИЕ: -0.11 [14:24:12]line ИТОГО: 700.00 [14:24:12]line Внесено: 700.00 [14:24:12]line СДАЧА: 0.00 [14:24:12]line НСП 1% : 6.20 [14:24:12]line НДС 12% : 74.35 [14:24:12]line Наличными: 700.00 [14:24:12]line Безнал.: 0.00 [14:24:12]line Место: АЗС № 72 "Партнер Нефть" [14:24:12]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:24:12]line СНО: Общий режим [14:24:12]line Чек 177 14.07.2024 14:24 [14:24:12]line Смена: 447 ФФД: 1.0 [14:24:12]line ЗНМ: 0300000160 [14:24:12]line РНМ: 0000000000090829 [14:24:12]line Версия ККМ: 001 [14:24:12]line ФМ: 0000000000874718 [14:24:12]line ФД: 164979 [14:24:12]line ФПД: 106057871742042 [14:24:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T142411&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164979&fm=106057871742042&tin=02508201610067®Number=0000000000090829&sum=70000 [14:24:12]OFD Sender: Processing packet 164979 [packets to send 105, broken 104] [14:24:12]ProducePacketName [14:24:12]name=ofd_packets/00164979 [14:24:12]OFD Sender: To server: pG, [14:24:12]CommunicateWithHost lk.salyk.kg:30040 [14:24:12]ConnectInit lk.salyk.kg [14:24:12]written 0, free lines is 4095 [14:24:12]Connected sock=10 [14:24:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C3 AA 07 01 0B D1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 B1 00 00 00 F4 03 04 00 8B DF 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 73 84 02 00 35 04 06 00 60 75 85 C5 54 5A 51 66 7D F1 AF E9 63 AB [14:24:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 49 FB 47 00 76 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 38 37 34 37 31 38 10 04 04 00 73 84 02 00 F4 03 04 00 18 86 93 66 B6 04 01 00 00 51 98 15 A4 9E BE 9D 41 [14:24:13]CommunicateWithHost err = 0 [14:24:13]CheckOFDResponse [14:24:13]1017 (14) - 77093643461234 [14:24:13]1041 (16) - 0000000000874718 [14:24:13]1040 (4) - 164979 [14:24:13]1012 (4) - 14.07.2024 08:02 [14:24:13]1206 (1) - 0 [14:24:13]OFD Sender: Remove packet 164979 [14:24:13]ProducePacketName [14:24:13]name=ofd_packets/00164979 [14:24:13]NVStorageDeleteData [14:24:13]Write to MH i2c: 01 00 00 90 01 91 [14:24:13]Write i2c OK [14:24:13]MH_I2C_Read... [14:24:13]Read from MH i2c: 01 [14:24:13]MH_I2C_Read... [14:24:13]Read from MH i2c: 01 07 00 [14:24:13]MH_I2C_Read... [14:24:13]Read from MH i2c: 01 07 00 90 01 00 00 00 00 00 F0 0C 94 [14:24:13]RasterBufferAndPrint [14:24:13]line [14:24:13]line [14:24:13]line [14:24:13]line [14:24:13]line [14:24:13]written 0, free lines is 3318 [14:24:13]MH_Cut [14:24:13]Write to MH i2c: D1 01 00 97 01 01 6A [14:24:13]Write i2c OK [14:24:13]MH_I2C_Read... [14:24:13]Read from MH i2c: D1 [14:24:13]MH_I2C_Read... [14:24:13]Read from MH i2c: D1 01 00 [14:24:13]MH_I2C_Read... [14:24:13]Read from MH i2c: D1 01 00 97 01 00 69 [14:24:13]Write to MH i2c: 01 00 00 98 01 99 [14:24:13]Write i2c OK [14:24:13]MH_I2C_Read... [14:24:13]OFD Sender: No OFD packet to send [14:24:13]*** Cut start [14:24:13]*** Partial cut [14:24:13]*** CUTSNS_PIN = 1 [14:24:13]*** CUTSNS_PIN = 0 [14:24:14]*** Brake cut motor [14:24:14]Read from MH i2c: 01 [14:24:14]MH_I2C_Read... [14:24:14]*** Stop cut motor [14:24:14]*** Cut end [14:24:14]Read from MH i2c: 01 07 00 [14:24:14]MH_I2C_Read... [14:24:14]Read from MH i2c: 01 07 00 98 01 00 00 00 00 00 FF 0F AE [14:24:14]process_action close_receipt done [14:24:14]requested_data is exist [14:24:14]produce_requested_data [14:24:14]requested_item fm.sn is exist - process it [14:24:14]wFMCommunicate request_size=4 [14:24:14]MH_SAM_APDU [14:24:14]CAPDU: 80 11 00 00 [14:24:14]Write to MH i2c: E2 08 00 99 01 80 11 00 00 00 00 00 00 14 [14:24:14]Write i2c OK [14:24:14]MH_I2C_Read... [14:24:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:14]Read from MH i2c: E2 [14:24:14]MH_I2C_Read... [14:24:14]Read from MH i2c: E2 17 00 [14:24:14]MH_I2C_Read... [14:24:14]Read from MH i2c: E2 17 00 99 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 6A [14:24:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:24:14]wFMCommunicate OK [14:24:14]requested_item fd.num is exist - process it [14:24:14]SAM_PROTO_GetFieldsCounters [14:24:14]wFMCommunicate request_size=4 [14:24:14]MH_SAM_APDU [14:24:14]CAPDU: 80 13 00 00 [14:24:14]Write to MH i2c: E2 08 00 9A 01 80 13 00 00 00 00 00 00 17 [14:24:14]Write i2c OK [14:24:14]MH_I2C_Read... [14:24:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:24:14]Read from MH i2c: E2 [14:24:14]MH_I2C_Read... [14:24:14]Read from MH i2c: E2 62 00 [14:24:14]MH_I2C_Read... [14:24:14]Read from MH i2c: E2 62 00 9A 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 73 84 02 00 0E 04 04 00 BF 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 0A [14:24:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 73 84 02 00 0E 04 04 00 BF 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 [14:24:14]wFMCommunicate OK [14:24:14]SAM_PROTO_GetFieldsCounters done [14:24:14]requested_item shift.num is exist - process it [14:24:14]requested_item shift.opened is exist - process it [14:24:14]req_shift_opened [14:24:14]FM_GetShiftState [14:24:14]SAM_PROTO_GetShiftState [14:24:14]wFMCommunicate request_size=4 [14:24:14]MH_SAM_APDU [14:24:14]CAPDU: 80 13 01 00 [14:24:14]Write to MH i2c: E2 08 00 9B 01 80 13 01 00 00 00 00 00 19 [14:24:14]Write i2c OK [14:24:14]MH_I2C_Read... [14:24:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:14]Read from MH i2c: E2 [14:24:14]MH_I2C_Read... [14:24:14]Read from MH i2c: E2 0E 00 [14:24:14]MH_I2C_Read... [14:24:14]Read from MH i2c: E2 0E 00 9B 01 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 99 [14:24:14]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [14:24:14]wFMCommunicate OK [14:24:14]SAM_PROTO_GetShiftState done [14:24:14]FM_GetShiftState done [14:24:14]req_shift_opened done [14:24:14]requested_item shift.open_date is exist - process it [14:24:14]req_shift_open_date [14:24:14]req_shift_open_date done [14:24:14]produce_requested_data done [14:24:14]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164979,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [14:24:14]process_action_free close_receipt [14:24:14]json_value_free [14:24:14]json_value_free done [14:24:14]process_json_proto returns [14:24:14]Send response to host [14:24:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164979,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [14:24:14]free response buf [14:24:14]execute_script done [14:24:14]execute_script returns [14:24:14]free content buf [14:24:14]Sock 7.Close socket [14:24:14]Sock 7.Thread stoped [14:24:18]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:53]OFD Sender: No OFD packet to send [14:26:58]OFD Sender: No OFD packet to send [14:27:03]OFD Sender: No OFD packet to send [14:27:08]OFD Sender: No OFD packet to send [14:27:13]OFD Sender: No OFD packet to send [14:27:18]OFD Sender: No OFD packet to send [14:27:23]OFD Sender: No OFD packet to send [14:27:28]OFD Sender: No OFD packet to send [14:27:33]OFD Sender: No OFD packet to send [14:27:38]OFD Sender: No OFD packet to send [14:27:43]OFD Sender: No OFD packet to send [14:27:48]OFD Sender: No OFD packet to send [14:27:53]OFD Sender: No OFD packet to send [14:27:58]OFD Sender: No OFD packet to send [14:28:03]OFD Sender: No OFD packet to send [14:28:08]OFD Sender: No OFD packet to send [14:28:13]OFD Sender: No OFD packet to send [14:28:18]OFD Sender: No OFD packet to send [14:28:23]OFD Sender: No OFD packet to send [14:28:28]OFD Sender: No OFD packet to send [14:28:33]OFD Sender: No OFD packet to send [14:28:38]OFD Sender: No OFD packet to send [14:28:39]accept exits with 9 [14:28:39]New connection [14:28:39]New thread 3066948964 created [14:28:39]Thread 3066805604 joined [14:28:39]Waiting for new connection... [14:28:39] Sock 9.Parse request [14:28:39]Sock 9.Check first char [14:28:39]Sock 9.First char is OK [14:28:39]request: POST /json_proto HTTP/1.0 [14:28:39]Method: POST [14:28:39]URL: /json_proto [14:28:39]Method is POST - this is cgi request [14:28:39]url: /json_proto [14:28:39]query_string will be loaded in cgi processing [14:28:39]execute_cgi json_proto POST (null) [14:28:39]execute_cgi path=json_proto method=POST [14:28:39]POST find Content-Length [14:28:39]Host: 172.17.56.4:8080 [14:28:39]Content-Length: 840 [14:28:39]Content-Type: application/json [14:28:39] [14:28:39]POST finish read [14:28:39]Found Content-Length = 840 [14:28:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459080", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.26, "quantity" : 19.090, "sum" : 1360.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1360.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:28:39]execute_script... [14:28: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)459080", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.26, "quantity" : 19.090, "sum" : 1360.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1360.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:28:39]POST & json_proto [14:28:39]process_json_proto [14:28:39]json parsed OK: [14:28:39]protocol is kg_v1.0 [14:28:39]action value=close_receipt [14:28:39]process_action close_receipt [14:28:39]cmd_close_receipt [14:28:39]MH_GetDate [14:28:39]Write to MH i2c: F0 00 00 9C 01 8C [14:28:39]Write i2c OK [14:28:39]MH_I2C_Read... [14:28:39]Read from MH i2c: F0 [14:28:39]MH_I2C_Read... [14:28:39]Read from MH i2c: F0 09 00 [14:28:39]MH_I2C_Read... [14:28:39]Read from MH i2c: F0 09 00 9C 01 00 98 E0 93 66 C9 DC B2 64 C1 [14:28:39]GetLastDocTimeStamp 1720967051 [14:28:39]current date 1720967320 [14:28:39]FM_GetShiftState [14:28:39]SAM_PROTO_GetShiftState [14:28:39]wFMCommunicate request_size=4 [14:28:39]MH_SAM_APDU [14:28:39]CAPDU: 80 13 01 00 [14:28:39]Write to MH i2c: E2 08 00 9D 01 80 13 01 00 00 00 00 00 1B [14:28:39]Write i2c OK [14:28:39]MH_I2C_Read... [14:28:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:28:39]Read from MH i2c: E2 [14:28:39]MH_I2C_Read... [14:28:39]Read from MH i2c: E2 0E 00 [14:28:39]MH_I2C_Read... [14:28:39]Read from MH i2c: E2 0E 00 9D 01 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 9B [14:28:39]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [14:28:39]wFMCommunicate OK [14:28:39]SAM_PROTO_GetShiftState done [14:28:39]FM_GetShiftState done [14:28:39]opened in 1720917342 [14:28:39]opened+sec_in_day 1721003742 [14:28:39]quantity*price = 136035 [14:28:39]sum+1 = 136036 [14:28:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1360.35 НСП 1% : 12.04 НДС 12% : 144.46 Наличными: 0.00 Безнал.: 1360.35 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 178 14.07.2024 14:28 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874718 ФД: 164980 ФПД: 101197817631213 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T142840&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164980&fm=101197817631213&tin=02508201610067®Number=0000000000090829&sum=136035 [14:28:40]StoreToDocumentArchive [14:28:40]shift 447 fd 164980 [14:28:40]save to /storage/0447/doc_00164980 [14:28:40]save last doc name /storage/0447/doc_00164980 to /storage/kkm_last_doc_name [14:28:40]save OK [14:28:40]Clear old archive folders... [14:28:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:28:40]tlvbuf is 012FE930 [14:28:40]SAM_PROTO_ClearQueue [14:28:40]wFMCommunicate request_size=4 [14:28:40]MH_SAM_APDU [14:28:40]CAPDU: 80 09 00 00 [14:28:40]Write to MH i2c: E2 08 00 AA 01 80 09 00 00 00 00 00 00 1D [14:28:40]Write i2c OK [14:28:40]MH_I2C_Read... [14:28:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:28:41]Read from MH i2c: E2 [14:28:41]MH_I2C_Read... [14:28:41]Read from MH i2c: E2 03 00 [14:28:41]MH_I2C_Read... [14:28:41]Read from MH i2c: E2 03 00 AA 01 00 90 00 1F [14:28:41]RAPDU: 90 00 [14:28:41]wFMCommunicate OK [14:28:41]SAM_PROTO_ClearQueue done [14:28:41]KKMCreateOFDPacket [14:28:41]OFDProtocolAddRootSTLVToBuf [14:28:41]FM_MakeSignedData [14:28:41]FM_MakeSignedData [14:28:41]SAM_PROTO_SignData [14:28:41]wFMCommunicate request_size=4 [14:28:41]MH_SAM_APDU [14:28:41]CAPDU: 80 0D 01 02 [14:28:41]Write to MH i2c: E2 08 00 AB 01 80 0D 01 02 00 00 00 00 25 [14:28:41]Write i2c OK [14:28:41]MH_I2C_Read... [14:28:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:28:41]Read from MH i2c: E2 [14:28:41]MH_I2C_Read... [14:28:41]Read from MH i2c: E2 03 00 [14:28:41]MH_I2C_Read... [14:28:41]Read from MH i2c: E2 03 00 AB 01 00 90 00 20 [14:28:41]RAPDU: 90 00 [14:28:41]wFMCommunicate OK [14:28:41]wFMCommunicate request_size=255 [14:28:41]MH_SAM_APDU [14:28: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 92 4A 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 63 13 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 13 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 38 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 13 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 98 E0 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 74 84 02 00 35 04 06 00 5C 09 F3 F8 [14:28:41]Write to MH i2c: E2 02 01 AC 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 92 4A 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 63 13 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 13 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 38 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 13 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 98 E0 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 74 84 02 00 35 04 06 00 5C 09 F3 F8 00 00 48 [14:28:41]Write i2c OK [14:28:41]MH_I2C_Read... [14:28:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:28:41]Read from MH i2c: E2 [14:28:41]MH_I2C_Read... [14:28:41]Read from MH i2c: E2 03 00 [14:28:41]MH_I2C_Read... [14:28:41]Read from MH i2c: E2 03 00 AC 01 00 90 00 21 [14:28:41]RAPDU: 90 00 [14:28:41]wFMCommunicate OK [14:28:41]wFMCommunicate request_size=7 [14:28:41]MH_SAM_APDU [14:28:41]CAPDU: 80 0D 02 02 02 D1 ED [14:28:41]Write to MH i2c: E2 0A 00 AD 01 80 0D 02 02 02 00 D1 ED 00 00 EA [14:28:41]Write i2c OK [14:28:41]MH_I2C_Read... [14:28:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:28:41]Read from MH i2c: E2 [14:28:41]MH_I2C_Read... [14:28:41]Read from MH i2c: E2 03 00 [14:28:41]MH_I2C_Read... [14:28:41]Read from MH i2c: E2 03 00 AD 01 00 90 00 22 [14:28:41]RAPDU: 90 00 [14:28:41]wFMCommunicate OK [14:28:41]wFMCommunicate request_size=4 [14:28:41]MH_SAM_APDU [14:28:41]CAPDU: 80 0D 03 02 [14:28:41]Write to MH i2c: E2 08 00 AE 01 80 0D 03 02 00 00 00 00 2A [14:28:41]Write i2c OK [14:28:41]MH_I2C_Read... [14:28:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:28:41]Read from MH i2c: E2 [14:28:41]MH_I2C_Read... [14:28:41]Read from MH i2c: E2 0B 00 [14:28:41]MH_I2C_Read... [14:28:41]Read from MH i2c: E2 0B 00 AE 01 00 4C 2E A7 F5 5D 3D 10 D6 90 00 C1 [14:28:41]RAPDU: 4C 2E A7 F5 5D 3D 10 D6 90 00 [14:28:41]wFMCommunicate OK [14:28:41]SAM_PROTO_SignData done [14:28:41]FM_MakeSignedData done [14:28:41]CreateOFDProtocolMessage [14:28:41]wFMCommunicate request_size=4 [14:28:41]MH_SAM_APDU [14:28:41]CAPDU: 80 11 00 00 [14:28:41]Write to MH i2c: E2 08 00 AF 01 80 11 00 00 00 00 00 00 2A [14:28:41]Write i2c OK [14:28:41]MH_I2C_Read... [14:28:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:28:41]Read from MH i2c: E2 [14:28:41]MH_I2C_Read... [14:28:41]Read from MH i2c: E2 17 00 [14:28:41]MH_I2C_Read... [14:28:41]Read from MH i2c: E2 17 00 AF 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 80 [14:28:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:28:41]wFMCommunicate OK [14:28:41]CreateOFDProtocolMessage done [14:28:41]OFDSenderStorePacket 164980 [14:28:41]StoreOFDPacket docnum=164980 [14:28:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 CB 49 04 01 8E DE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 92 4A 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 63 13 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 13 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 38 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 13 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 98 E0 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 74 84 02 00 35 04 06 00 5C 09 F3 F8 D1 ED 4C 2E A7 F5 5D 3D 10 D6 [14:28:41]CheckFolder [14:28:41]dirname=/storage/ofd_packets [14:28:41]CheckFolder done [14:28:41]ProducePacketName [14:28:41]name=ofd_packets/00164980 [14:28:41]NVStorageSaveData ofd_packets/00164980 [14:28:41]File name is /storage/ofd_packets/00164980 [14:28:41]Write 298 bytes [14:28:41]NVStorageSaveData done [14:28:41]OFDSenderStorePacket done [14:28:41]KKMCreateOFDPacket done [14:28:41]NVStorageSaveData kkm_last_timestamp [14:28:41]File name is /storage/kkm_last_timestamp [14:28:41]Write 4 bytes [14:28:41]NVStorageSaveData done [14:28:41]ExternCall_PrintAddStr [14:28:41]wPrintStart [14:28:41]Write to MH i2c: 01 00 00 B0 01 B1 [14:28:41]Write i2c OK [14:28:41]MH_I2C_Read... [14:28:41]Read from MH i2c: 01 [14:28:41]MH_I2C_Read... [14:28:41]Read from MH i2c: 01 07 00 [14:28:41]MH_I2C_Read... [14:28:41]Read from MH i2c: 01 07 00 B0 01 00 00 00 00 00 FF 0F C6 [14:28:41]RasterBufferAndPrint [14:28:41]line Счет N : (1)459080 [14:28:41]line ИНН: 02508201610067 [14:28:41]line Контрольно-Кассовый Чек [14:28:41]line ПРОДАЖА [14:28:41]line ТРК (МРК, ГНК) : 21 [14:28:41]line Товар: 2710194210 [14:28:41]line ДТ-К-5 [14:28:41]line 19.090 * 71.26 [14:28:41]line = 1360.35 [14:28:41]line НДС 12% НСП 1% [14:28:41]line > о реализуемом товаре [14:28:41]line ИТОГО: 1360.35 [14:28:41]line НСП 1% : 12.04 [14:28:41]line НДС 12% : 144.46 [14:28:41]line Наличными: 0.00 [14:28:41]line Безнал.: 1360.35 [14:28:41]line Место: АЗС № 72 "Партнер Нефть" [14:28:41]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:28:41]line СНО: Общий режим [14:28:41]line Чек 178 14.07.2024 14:28 [14:28:41]line Смена: 447 ФФД: 1.0 [14:28:41]line ЗНМ: 0300000160 [14:28:41]line РНМ: 0000000000090829 [14:28:41]line Версия ККМ: 001 [14:28:41]line Платежная система: АКБ Кыргызстан [14:28:41]line ФМ: 0000000000874718 [14:28:41]line ФД: 164980 [14:28:41]line ФПД: 101197817631213 [14:28:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T142840&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164980&fm=101197817631213&tin=02508201610067®Number=0000000000090829&sum=136035 [14:28:41]written 0, free lines is 4095 [14:28:41]OFD Sender: Processing packet 164980 [packets to send 105, broken 104] [14:28:41]ProducePacketName [14:28:41]name=ofd_packets/00164980 [14:28:41]OFD Sender: To server: pG, [14:28:41]CommunicateWithHost lk.salyk.kg:30040 [14:28:41]ConnectInit lk.salyk.kg [14:28:41]Connected sock=11 [14:28:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 CB 49 04 01 8E DE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 92 4A 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 63 13 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 13 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 38 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 13 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 98 E0 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 74 84 02 00 35 04 06 00 5C 09 F3 F8 D1 ED 4C 2E A7 F5 5D 3D 10 D6 [14:28:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 AF 24 47 00 97 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 74 84 02 00 F4 03 04 00 25 87 93 66 B6 04 01 00 00 82 4A 3F 44 48 D4 7E 79 [14:28:41]CommunicateWithHost err = 0 [14:28:41]CheckOFDResponse [14:28:41]1017 (14) - 77093643461234 [14:28:41]1041 (16) - 0000000000874718 [14:28:41]1040 (4) - 164980 [14:28:41]1012 (4) - 14.07.2024 08:07 [14:28:41]1206 (1) - 0 [14:28:41]OFD Sender: Remove packet 164980 [14:28:41]ProducePacketName [14:28:41]name=ofd_packets/00164980 [14:28:41]NVStorageDeleteData [14:28:41]Write to MH i2c: 01 00 00 D9 01 DA [14:28:41]Write i2c OK [14:28:41]MH_I2C_Read... [14:28:41]Read from MH i2c: 01 [14:28:41]MH_I2C_Read... [14:28:41]Read from MH i2c: 01 07 00 [14:28:41]MH_I2C_Read... [14:28:41]Read from MH i2c: 01 07 00 D9 01 00 00 00 00 00 08 0D F6 [14:28:41]RasterBufferAndPrint [14:28:41]line [14:28:41]line [14:28:41]line [14:28:41]line [14:28:41]line [14:28:41]written 0, free lines is 3342 [14:28:41]MH_Cut [14:28:41]Write to MH i2c: D1 01 00 E0 01 01 B3 [14:28:41]Write i2c OK [14:28:41]MH_I2C_Read... [14:28:41]Read from MH i2c: D1 [14:28:41]MH_I2C_Read... [14:28:41]Read from MH i2c: D1 01 00 [14:28:41]MH_I2C_Read... [14:28:41]Read from MH i2c: D1 01 00 E0 01 00 B2 [14:28:41]Write to MH i2c: 01 00 00 E1 01 E2 [14:28:41]Write i2c OK [14:28:41]MH_I2C_Read... [14:28:42]OFD Sender: No OFD packet to send [14:28:42]*** Cut start [14:28:42]*** Partial cut [14:28:42]*** CUTSNS_PIN = 1 [14:28:42]*** CUTSNS_PIN = 0 [14:28:42]*** Brake cut motor [14:28:43]Read from MH i2c: 01 [14:28:43]MH_I2C_Read... [14:28:43]*** Stop cut motor [14:28:43]*** Cut end [14:28:43]Read from MH i2c: 01 07 00 [14:28:43]MH_I2C_Read... [14:28:43]Read from MH i2c: 01 07 00 E1 01 00 00 00 00 00 FF 0F F7 [14:28:43]process_action close_receipt done [14:28:43]requested_data is exist [14:28:43]produce_requested_data [14:28:43]requested_item fm.sn is exist - process it [14:28:43]wFMCommunicate request_size=4 [14:28:43]MH_SAM_APDU [14:28:43]CAPDU: 80 11 00 00 [14:28:43]Write to MH i2c: E2 08 00 E2 01 80 11 00 00 00 00 00 00 5D [14:28:43]Write i2c OK [14:28:43]MH_I2C_Read... [14:28:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:28:43]Read from MH i2c: E2 [14:28:43]MH_I2C_Read... [14:28:43]Read from MH i2c: E2 17 00 [14:28:43]MH_I2C_Read... [14:28:43]Read from MH i2c: E2 17 00 E2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B3 [14:28:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:28:43]wFMCommunicate OK [14:28:43]requested_item fd.num is exist - process it [14:28:43]SAM_PROTO_GetFieldsCounters [14:28:43]wFMCommunicate request_size=4 [14:28:43]MH_SAM_APDU [14:28:43]CAPDU: 80 13 00 00 [14:28:43]Write to MH i2c: E2 08 00 E3 01 80 13 00 00 00 00 00 00 60 [14:28:43]Write i2c OK [14:28:43]MH_I2C_Read... [14:28:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:28:43]Read from MH i2c: E2 [14:28:43]MH_I2C_Read... [14:28:43]Read from MH i2c: E2 62 00 [14:28:43]MH_I2C_Read... [14:28:43]Read from MH i2c: E2 62 00 E3 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 74 84 02 00 0E 04 04 00 BF 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 57 [14:28:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 74 84 02 00 0E 04 04 00 BF 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 [14:28:43]wFMCommunicate OK [14:28:43]SAM_PROTO_GetFieldsCounters done [14:28:43]requested_item shift.num is exist - process it [14:28:43]requested_item shift.opened is exist - process it [14:28:43]req_shift_opened [14:28:43]FM_GetShiftState [14:28:43]SAM_PROTO_GetShiftState [14:28:43]wFMCommunicate request_size=4 [14:28:43]MH_SAM_APDU [14:28:43]CAPDU: 80 13 01 00 [14:28:43]Write to MH i2c: E2 08 00 E4 01 80 13 01 00 00 00 00 00 62 [14:28:43]Write i2c OK [14:28:43]MH_I2C_Read... [14:28:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:28:43]Read from MH i2c: E2 [14:28:43]MH_I2C_Read... [14:28:43]Read from MH i2c: E2 0E 00 [14:28:43]MH_I2C_Read... [14:28:43]Read from MH i2c: E2 0E 00 E4 01 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 E2 [14:28:43]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [14:28:43]wFMCommunicate OK [14:28:43]SAM_PROTO_GetShiftState done [14:28:43]FM_GetShiftState done [14:28:43]req_shift_opened done [14:28:43]requested_item shift.open_date is exist - process it [14:28:43]req_shift_open_date [14:28:43]req_shift_open_date done [14:28:43]produce_requested_data done [14:28:43]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164980,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [14:28:43]process_action_free close_receipt [14:28:43]json_value_free [14:28:43]json_value_free done [14:28:43]process_json_proto returns [14:28:43]Send response to host [14:28:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164980,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [14:28:43]free response buf [14:28:43]execute_script done [14:28:43]execute_script returns [14:28:43]free content buf [14:28:43]Sock 9.Close socket [14:28:43]Sock 9.Thread stoped [14:28:47]OFD Sender: No OFD packet to send [14:28:52]OFD Sender: No OFD packet to send [14:28:57]OFD Sender: No OFD packet to send [14:29:02]OFD Sender: No OFD packet to send [14:29:07]OFD Sender: No OFD packet to send [14:29:12]OFD Sender: No OFD packet to send [14:29:17]OFD Sender: No OFD packet to send [14:29:22]OFD Sender: No OFD packet to send [14:29:27]OFD Sender: No OFD packet to send [14:29:32]OFD Sender: No OFD packet to send [14:29:37]OFD Sender: No OFD packet to send [14:29:42]OFD Sender: No OFD packet to send [14:29:47]OFD Sender: No OFD packet to send [14:29:52]OFD Sender: No OFD packet to send [14:29:57]OFD Sender: No OFD packet to send [14:30:02]OFD Sender: No OFD packet to send [14:30:07]OFD Sender: No OFD packet to send [14:30:12]OFD Sender: No OFD packet to send [14:30:17]OFD Sender: No OFD packet to send [14:30:22]OFD Sender: No OFD packet to send [14:30:27]OFD Sender: No OFD packet to send [14:30:32]OFD Sender: No OFD packet to send [14:30:37]OFD Sender: No OFD packet to send [14:30:41]accept exits with 7 [14:30:41]New connection [14:30:41]New thread 3066805604 created [14:30:41]Thread 3066948964 joined [14:30:41]Waiting for new connection... [14:30:41] Sock 7.Parse request [14:30:41]Sock 7.Check first char [14:30:41]Sock 7.First char is OK [14:30:41]request: POST /json_proto HTTP/1.0 [14:30:41]Method: POST [14:30:41]URL: /json_proto [14:30:41]Method is POST - this is cgi request [14:30:41]url: /json_proto [14:30:41]query_string will be loaded in cgi processing [14:30:41]execute_cgi json_proto POST (null) [14:30:41]execute_cgi path=json_proto method=POST [14:30:41]POST find Content-Length [14:30:41]Host: 172.17.56.4:8080 [14:30:41]Content-Length: 677 [14:30:41]Content-Type: application/json [14:30:41] [14:30:41]POST finish read [14:30:41]Found Content-Length = 677 [14:30:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459081", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:30:41]execute_script... [14:30: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)459081", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:30:41]POST & json_proto [14:30:41]process_json_proto [14:30:41]json parsed OK: [14:30:41]protocol is kg_v1.0 [14:30:41]action value=close_receipt [14:30:41]process_action close_receipt [14:30:41]cmd_close_receipt [14:30:41]MH_GetDate [14:30:41]Write to MH i2c: F0 00 00 E5 01 D5 [14:30:41]Write i2c OK [14:30:41]MH_I2C_Read... [14:30:41]Read from MH i2c: F0 [14:30:41]MH_I2C_Read... [14:30:41]Read from MH i2c: F0 09 00 [14:30:41]MH_I2C_Read... [14:30:41]Read from MH i2c: F0 09 00 E5 01 00 12 E1 93 66 C9 DC B2 64 85 [14:30:41]GetLastDocTimeStamp 1720967320 [14:30:41]current date 1720967442 [14:30:41]FM_GetShiftState [14:30:41]SAM_PROTO_GetShiftState [14:30:41]wFMCommunicate request_size=4 [14:30:41]MH_SAM_APDU [14:30:41]CAPDU: 80 13 01 00 [14:30:41]Write to MH i2c: E2 08 00 E6 01 80 13 01 00 00 00 00 00 64 [14:30:41]Write i2c OK [14:30:41]MH_I2C_Read... [14:30:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:41]Read from MH i2c: E2 [14:30:41]MH_I2C_Read... [14:30:41]Read from MH i2c: E2 0E 00 [14:30:41]MH_I2C_Read... [14:30:41]Read from MH i2c: E2 0E 00 E6 01 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 E4 [14:30:41]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [14:30:41]wFMCommunicate OK [14:30:41]SAM_PROTO_GetShiftState done [14:30:41]FM_GetShiftState done [14:30:41]opened in 1720917342 [14:30:41]opened+sec_in_day 1721003742 [14:30:41]quantity*price = 50008 [14:30:41]sum+1 = 50009 [14:30:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 179 14.07.2024 14:30 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164981 ФПД: 220267562060266 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T143042&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164981&fm=220267562060266&tin=02508201610067®Number=0000000000090829&sum=50000 [14:30:42]StoreToDocumentArchive [14:30:42]shift 447 fd 164981 [14:30:42]save to /storage/0447/doc_00164981 [14:30:42]save last doc name /storage/0447/doc_00164981 to /storage/kkm_last_doc_name [14:30:42]save OK [14:30:42]Clear old archive folders... [14:30:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:30:42]tlvbuf is 012969D0 [14:30:42]SAM_PROTO_ClearQueue [14:30:42]wFMCommunicate request_size=4 [14:30:42]MH_SAM_APDU [14:30:42]CAPDU: 80 09 00 00 [14:30:42]Write to MH i2c: E2 08 00 F3 01 80 09 00 00 00 00 00 00 66 [14:30:42]Write i2c OK [14:30:42]MH_I2C_Read... [14:30:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:30:42]Read from MH i2c: E2 [14:30:42]MH_I2C_Read... [14:30:42]Read from MH i2c: E2 03 00 [14:30:42]MH_I2C_Read... [14:30:42]Read from MH i2c: E2 03 00 F3 01 00 90 00 68 [14:30:42]RAPDU: 90 00 [14:30:42]wFMCommunicate OK [14:30:42]SAM_PROTO_ClearQueue done [14:30:42]KKMCreateOFDPacket [14:30:42]OFDProtocolAddRootSTLVToBuf [14:30:42]FM_MakeSignedData [14:30:42]FM_MakeSignedData [14:30:42]SAM_PROTO_SignData [14:30:42]wFMCommunicate request_size=4 [14:30:42]MH_SAM_APDU [14:30:42]CAPDU: 80 0D 01 02 [14:30:42]Write to MH i2c: E2 08 00 F4 01 80 0D 01 02 00 00 00 00 6E [14:30:42]Write i2c OK [14:30:42]MH_I2C_Read... [14:30:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:30:43]Read from MH i2c: E2 [14:30:43]MH_I2C_Read... [14:30:43]Read from MH i2c: E2 03 00 [14:30:43]MH_I2C_Read... [14:30:43]Read from MH i2c: E2 03 00 F4 01 00 90 00 69 [14:30:43]RAPDU: 90 00 [14:30:43]wFMCommunicate OK [14:30:43]wFMCommunicate request_size=255 [14:30:43]MH_SAM_APDU [14: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 B3 00 00 00 F4 03 04 00 12 E1 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 75 84 02 00 35 04 06 00 C8 [14:30:43]Write to MH i2c: E2 02 01 F5 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 B3 00 00 00 F4 03 04 00 12 E1 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 75 84 02 00 35 04 06 00 C8 00 00 09 [14:30:43]Write i2c OK [14:30:43]MH_I2C_Read... [14:30:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:43]Read from MH i2c: E2 [14:30:43]MH_I2C_Read... [14:30:43]Read from MH i2c: E2 03 00 [14:30:43]MH_I2C_Read... [14:30:43]Read from MH i2c: E2 03 00 F5 01 00 90 00 6A [14:30:43]RAPDU: 90 00 [14:30:43]wFMCommunicate OK [14:30:43]wFMCommunicate request_size=10 [14:30:43]MH_SAM_APDU [14:30:43]CAPDU: 80 0D 02 02 05 55 09 CA C9 EA [14:30:43]Write to MH i2c: E2 0D 00 F6 01 80 0D 02 02 05 00 55 09 CA C9 EA 00 00 56 [14:30:43]Write i2c OK [14:30:43]MH_I2C_Read... [14:30:43]Read from MH i2c: E2 [14:30:43]MH_I2C_Read... [14:30:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:43]Read from MH i2c: E2 03 00 [14:30:43]MH_I2C_Read... [14:30:43]Read from MH i2c: E2 03 00 F6 01 00 90 00 6B [14:30:43]RAPDU: 90 00 [14:30:43]wFMCommunicate OK [14:30:43]wFMCommunicate request_size=4 [14:30:43]MH_SAM_APDU [14:30:43]CAPDU: 80 0D 03 02 [14:30:43]Write to MH i2c: E2 08 00 F7 01 80 0D 03 02 00 00 00 00 73 [14:30:43]Write i2c OK [14:30:43]MH_I2C_Read... [14:30:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:30:43]Read from MH i2c: E2 [14:30:43]MH_I2C_Read... [14:30:43]Read from MH i2c: E2 0B 00 [14:30:43]MH_I2C_Read... [14:30:43]Read from MH i2c: E2 0B 00 F7 01 00 AF AB 5E DD DC E5 D7 43 90 00 E4 [14:30:43]RAPDU: AF AB 5E DD DC E5 D7 43 90 00 [14:30:43]wFMCommunicate OK [14:30:43]SAM_PROTO_SignData done [14:30:43]FM_MakeSignedData done [14:30:43]CreateOFDProtocolMessage [14:30:43]wFMCommunicate request_size=4 [14:30:43]MH_SAM_APDU [14:30:43]CAPDU: 80 11 00 00 [14:30:43]Write to MH i2c: E2 08 00 F8 01 80 11 00 00 00 00 00 00 73 [14:30:43]Write i2c OK [14:30:43]MH_I2C_Read... [14:30:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:43]Read from MH i2c: E2 [14:30:43]MH_I2C_Read... [14:30:43]Read from MH i2c: E2 17 00 [14:30:43]MH_I2C_Read... [14:30:43]Read from MH i2c: E2 17 00 F8 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C9 [14:30:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:30:43]wFMCommunicate OK [14:30:43]CreateOFDProtocolMessage done [14:30:43]OFDSenderStorePacket 164981 [14:30:43]StoreOFDPacket docnum=164981 [14:30:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 5E 32 07 01 8B 41 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 B3 00 00 00 F4 03 04 00 12 E1 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 75 84 02 00 35 04 06 00 C8 55 09 CA C9 EA AF AB 5E DD DC E5 D7 43 [14:30:43]CheckFolder [14:30:43]dirname=/storage/ofd_packets [14:30:43]CheckFolder done [14:30:43]ProducePacketName [14:30:43]name=ofd_packets/00164981 [14:30:43]NVStorageSaveData ofd_packets/00164981 [14:30:43]File name is /storage/ofd_packets/00164981 [14:30:43]Write 301 bytes [14:30:43]NVStorageSaveData done [14:30:43]OFDSenderStorePacket done [14:30:43]KKMCreateOFDPacket done [14:30:43]NVStorageSaveData kkm_last_timestamp [14:30:43]File name is /storage/kkm_last_timestamp [14:30:43]Write 4 bytes [14:30:43]NVStorageSaveData done [14:30:43]ExternCall_PrintAddStr [14:30:43]wPrintStart [14:30:43]Write to MH i2c: 01 00 00 F9 01 FA [14:30:43]Write i2c OK [14:30:43]MH_I2C_Read... [14:30:43]Read from MH i2c: 01 [14:30:43]MH_I2C_Read... [14:30:43]Read from MH i2c: 01 07 00 [14:30:43]MH_I2C_Read... [14:30:43]Read from MH i2c: 01 07 00 F9 01 00 00 00 00 00 FF 0F 0F [14:30:43]RasterBufferAndPrint [14:30:43]line Счет N : (1)459081 [14:30:43]line ИНН: 02508201610067 [14:30:43]line Контрольно-Кассовый Чек [14:30:43]line ПРОДАЖА [14:30:43]line ТРК (МРК, ГНК) : 22 [14:30:43]line Товар: 2710124130 [14:30:43]line Аи-92-К-5 [14:30:43]line 7.600 * 65.80 [14:30:43]line = 500.08 [14:30:43]line НДС 12% НСП 1% [14:30:43]line > о реализуемом товаре [14:30:43]line ОКРУГЛЕНИЕ: -0.08 [14:30:43]line ИТОГО: 500.00 [14:30:43]line Внесено: 500.00 [14:30:43]line СДАЧА: 0.00 [14:30:43]line НСП 1% : 4.42 [14:30:43]line НДС 12% : 53.11 [14:30:43]line Наличными: 500.00 [14:30:43]line Безнал.: 0.00 [14:30:43]line Место: АЗС № 72 "Партнер Нефть" [14:30:43]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:30:43]line СНО: Общий режим [14:30:43]line Чек 179 14.07.2024 14:30 [14:30:43]line Смена: 447 ФФД: 1.0 [14:30:43]line ЗНМ: 0300000160 [14:30:43]line РНМ: 0000000000090829 [14:30:43]line Версия ККМ: 001 [14:30:43]line ФМ: 0000000000874718 [14:30:43]line ФД: 164981 [14:30:43]line ФПД: 220267562060266 [14:30:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T143042&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164981&fm=220267562060266&tin=02508201610067®Number=0000000000090829&sum=50000 [14:30:43]OFD Sender: Processing packet 164981 [packets to send 105, broken 104] [14:30:43]ProducePacketName [14:30:43]name=ofd_packets/00164981 [14:30:43]OFD Sender: To server: pG, [14:30:43]CommunicateWithHost lk.salyk.kg:30040 [14:30:43]ConnectInit lk.salyk.kg [14:30:43]written 0, free lines is 4095 [14:30:43]Connected sock=10 [14:30:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 5E 32 07 01 8B 41 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 B3 00 00 00 F4 03 04 00 12 E1 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 75 84 02 00 35 04 06 00 C8 55 09 CA C9 EA AF AB 5E DD DC E5 D7 43 [14:30:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 7B D4 47 00 48 DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 75 84 02 00 F4 03 04 00 9F 87 93 66 B6 04 01 00 00 46 F8 2A D5 FE DE DA 48 [14:30:44]CommunicateWithHost err = 0 [14:30:44]CheckOFDResponse [14:30:44]1017 (14) - 77093643461234 [14:30:44]1041 (16) - 0000000000874718 [14:30:44]1040 (4) - 164981 [14:30:44]1012 (4) - 14.07.2024 08:09 [14:30:44]1206 (1) - 0 [14:30:44]OFD Sender: Remove packet 164981 [14:30:44]ProducePacketName [14:30:44]name=ofd_packets/00164981 [14:30:44]NVStorageDeleteData [14:30:44]Write to MH i2c: 01 00 00 23 02 25 [14:30:44]Write i2c OK [14:30:44]MH_I2C_Read... [14:30:44]Read from MH i2c: 01 [14:30:44]MH_I2C_Read... [14:30:44]Read from MH i2c: 01 07 00 [14:30:44]MH_I2C_Read... [14:30:44]Read from MH i2c: 01 07 00 23 02 00 00 00 00 00 09 0D 42 [14:30:44]RasterBufferAndPrint [14:30:44]line [14:30:44]line [14:30:44]line [14:30:44]line [14:30:44]line [14:30:44]written 0, free lines is 3343 [14:30:44]MH_Cut [14:30:44]Write to MH i2c: D1 01 00 2A 02 01 FE [14:30:44]Write i2c OK [14:30:44]MH_I2C_Read... [14:30:44]Read from MH i2c: D1 [14:30:44]MH_I2C_Read... [14:30:44]Read from MH i2c: D1 01 00 [14:30:44]MH_I2C_Read... [14:30:44]Read from MH i2c: D1 01 00 2A 02 00 FD [14:30:44]Write to MH i2c: 01 00 00 2B 02 2D [14:30:44]Write i2c OK [14:30:44]MH_I2C_Read... [14:30:44]OFD Sender: No OFD packet to send [14:30:44]*** Cut start [14:30:44]*** Partial cut [14:30:44]*** CUTSNS_PIN = 1 [14:30:44]*** CUTSNS_PIN = 0 [14:30:45]*** Brake cut motor [14:30:45]Read from MH i2c: 01 [14:30:45]MH_I2C_Read... [14:30:45]*** Stop cut motor [14:30:45]*** Cut end [14:30:45]Read from MH i2c: 01 07 00 [14:30:45]MH_I2C_Read... [14:30:45]Read from MH i2c: 01 07 00 2B 02 00 00 00 00 00 FF 0F 42 [14:30:45]process_action close_receipt done [14:30:45]requested_data is exist [14:30:45]produce_requested_data [14:30:45]requested_item fm.sn is exist - process it [14:30:45]wFMCommunicate request_size=4 [14:30:45]MH_SAM_APDU [14:30:45]CAPDU: 80 11 00 00 [14:30:45]Write to MH i2c: E2 08 00 2C 02 80 11 00 00 00 00 00 00 A8 [14:30:45]Write i2c OK [14:30:45]MH_I2C_Read... [14:30:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:45]Read from MH i2c: E2 [14:30:45]MH_I2C_Read... [14:30:45]Read from MH i2c: E2 17 00 [14:30:45]MH_I2C_Read... [14:30:45]Read from MH i2c: E2 17 00 2C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 FE [14:30:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:30:45]wFMCommunicate OK [14:30:45]requested_item fd.num is exist - process it [14:30:45]SAM_PROTO_GetFieldsCounters [14:30:45]wFMCommunicate request_size=4 [14:30:45]MH_SAM_APDU [14:30:45]CAPDU: 80 13 00 00 [14:30:45]Write to MH i2c: E2 08 00 2D 02 80 13 00 00 00 00 00 00 AB [14:30:45]Write i2c OK [14:30:45]MH_I2C_Read... [14:30:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:30:45]Read from MH i2c: E2 [14:30:45]MH_I2C_Read... [14:30:45]Read from MH i2c: E2 62 00 [14:30:45]MH_I2C_Read... [14:30:45]Read from MH i2c: E2 62 00 2D 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 75 84 02 00 0E 04 04 00 BF 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 A6 [14:30:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 75 84 02 00 0E 04 04 00 BF 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 [14:30:45]wFMCommunicate OK [14:30:45]SAM_PROTO_GetFieldsCounters done [14:30:45]requested_item shift.num is exist - process it [14:30:45]requested_item shift.opened is exist - process it [14:30:45]req_shift_opened [14:30:45]FM_GetShiftState [14:30:45]SAM_PROTO_GetShiftState [14:30:45]wFMCommunicate request_size=4 [14:30:45]MH_SAM_APDU [14:30:45]CAPDU: 80 13 01 00 [14:30:45]Write to MH i2c: E2 08 00 2E 02 80 13 01 00 00 00 00 00 AD [14:30:45]Write i2c OK [14:30:45]MH_I2C_Read... [14:30:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:45]Read from MH i2c: E2 [14:30:45]MH_I2C_Read... [14:30:45]Read from MH i2c: E2 0E 00 [14:30:45]MH_I2C_Read... [14:30:45]Read from MH i2c: E2 0E 00 2E 02 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 2D [14:30:45]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [14:30:45]wFMCommunicate OK [14:30:45]SAM_PROTO_GetShiftState done [14:30:45]FM_GetShiftState done [14:30:45]req_shift_opened done [14:30:45]requested_item shift.open_date is exist - process it [14:30:45]req_shift_open_date [14:30:45]req_shift_open_date done [14:30:45]produce_requested_data done [14:30:45]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164981,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [14:30:45]process_action_free close_receipt [14:30:45]json_value_free [14:30:45]json_value_free done [14:30:45]process_json_proto returns [14:30:45]Send response to host [14:30:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164981,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [14:30:45]free response buf [14:30:45]execute_script done [14:30:45]execute_script returns [14:30:45]free content buf [14:30:45]Sock 7.Close socket [14:30:45]Sock 7.Thread stoped [14:30:49]OFD Sender: No OFD packet to send [14:30:54]OFD Sender: No OFD packet to send [14:30:59]OFD Sender: No OFD packet to send [14:31:04]OFD Sender: No OFD packet to send [14:31:09]OFD Sender: No OFD packet to send [14:31:14]OFD Sender: No OFD packet to send [14:31:19]OFD Sender: No OFD packet to send [14:31:24]OFD Sender: No OFD packet to send [14:31:29]OFD Sender: No OFD packet to send [14:31:34]OFD Sender: No OFD packet to send [14:31:39]OFD Sender: No OFD packet to send [14:31:41]accept exits with 9 [14:31:41]New connection [14:31:41]New thread 3066948964 created [14:31:41]Thread 3066805604 joined [14:31:41]Waiting for new connection... [14:31:41] Sock 9.Parse request [14:31:41]Sock 9.Check first char [14:31:41]Sock 9.First char is OK [14:31:41]request: POST /json_proto HTTP/1.0 [14:31:41]Method: POST [14:31:41]URL: /json_proto [14:31:41]Method is POST - this is cgi request [14:31:41]url: /json_proto [14:31:41]query_string will be loaded in cgi processing [14:31:41]execute_cgi json_proto POST (null) [14:31:41]execute_cgi path=json_proto method=POST [14:31:41]POST find Content-Length [14:31:41]Host: 172.17.56.4:8080 [14:31:41]Content-Length: 677 [14:31:41]Content-Type: application/json [14:31:41] [14:31:41]POST finish read [14:31:41]Found Content-Length = 677 [14:31:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459082", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:31:41]execute_script... [14:31:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459082", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:31:41]POST & json_proto [14:31:41]process_json_proto [14:31:41]json parsed OK: [14:31:41]protocol is kg_v1.0 [14:31:41]action value=close_receipt [14:31:41]process_action close_receipt [14:31:41]cmd_close_receipt [14:31:41]MH_GetDate [14:31:41]Write to MH i2c: F0 00 00 2F 02 20 [14:31:41]Write i2c OK [14:31:41]MH_I2C_Read... [14:31:41]Read from MH i2c: F0 [14:31:41]MH_I2C_Read... [14:31:41]Read from MH i2c: F0 09 00 [14:31:41]MH_I2C_Read... [14:31:41]Read from MH i2c: F0 09 00 2F 02 00 4E E1 93 66 C9 DC B2 64 0C [14:31:41]GetLastDocTimeStamp 1720967442 [14:31:41]current date 1720967502 [14:31:41]FM_GetShiftState [14:31:41]SAM_PROTO_GetShiftState [14:31:41]wFMCommunicate request_size=4 [14:31:41]MH_SAM_APDU [14:31:41]CAPDU: 80 13 01 00 [14:31:41]Write to MH i2c: E2 08 00 30 02 80 13 01 00 00 00 00 00 AF [14:31:41]Write i2c OK [14:31:41]MH_I2C_Read... [14:31:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:41]Read from MH i2c: E2 [14:31:41]MH_I2C_Read... [14:31:41]Read from MH i2c: E2 0E 00 [14:31:41]MH_I2C_Read... [14:31:41]Read from MH i2c: E2 0E 00 30 02 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 2F [14:31:41]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [14:31:41]wFMCommunicate OK [14:31:41]SAM_PROTO_GetShiftState done [14:31:41]FM_GetShiftState done [14:31:41]opened in 1720917342 [14:31:41]opened+sec_in_day 1721003742 [14:31:41]quantity*price = 50008 [14:31:41]sum+1 = 50009 [14:31:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 180 14.07.2024 14:31 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164982 ФПД: 583332033770 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T143142&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164982&fm=583332033770&tin=02508201610067®Number=0000000000090829&sum=50000 [14:31:42]StoreToDocumentArchive [14:31:42]shift 447 fd 164982 [14:31:42]save to /storage/0447/doc_00164982 [14:31:42]save last doc name /storage/0447/doc_00164982 to /storage/kkm_last_doc_name [14:31:42]save OK [14:31:42]Clear old archive folders... [14:31:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:31:43]tlvbuf is 012A0660 [14:31:43]SAM_PROTO_ClearQueue [14:31:43]wFMCommunicate request_size=4 [14:31:43]MH_SAM_APDU [14:31:43]CAPDU: 80 09 00 00 [14:31:43]Write to MH i2c: E2 08 00 3D 02 80 09 00 00 00 00 00 00 B1 [14:31:43]Write i2c OK [14:31:43]MH_I2C_Read... [14:31:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:31:43]Read from MH i2c: E2 [14:31:43]MH_I2C_Read... [14:31:43]Read from MH i2c: E2 03 00 [14:31:43]MH_I2C_Read... [14:31:43]Read from MH i2c: E2 03 00 3D 02 00 90 00 B3 [14:31:43]RAPDU: 90 00 [14:31:43]wFMCommunicate OK [14:31:43]SAM_PROTO_ClearQueue done [14:31:43]KKMCreateOFDPacket [14:31:43]OFDProtocolAddRootSTLVToBuf [14:31:43]FM_MakeSignedData [14:31:43]FM_MakeSignedData [14:31:43]SAM_PROTO_SignData [14:31:43]wFMCommunicate request_size=4 [14:31:43]MH_SAM_APDU [14:31:43]CAPDU: 80 0D 01 02 [14:31:43]Write to MH i2c: E2 08 00 3E 02 80 0D 01 02 00 00 00 00 B9 [14:31:43]Write i2c OK [14:31:43]MH_I2C_Read... [14:31:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:31:43]Read from MH i2c: E2 [14:31:43]MH_I2C_Read... [14:31:43]Read from MH i2c: E2 03 00 [14:31:43]MH_I2C_Read... [14:31:43]Read from MH i2c: E2 03 00 3E 02 00 90 00 B4 [14:31:43]RAPDU: 90 00 [14:31:43]wFMCommunicate OK [14:31:43]wFMCommunicate request_size=255 [14:31:43]MH_SAM_APDU [14:31:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 B4 00 00 00 F4 03 04 00 4E E1 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 76 84 02 00 35 04 06 00 00 [14:31:43]Write to MH i2c: E2 02 01 3F 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 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 B4 00 00 00 F4 03 04 00 4E E1 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 76 84 02 00 35 04 06 00 00 00 00 CA [14:31:43]Write i2c OK [14:31:43]MH_I2C_Read... [14:31:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:43]Read from MH i2c: E2 [14:31:43]MH_I2C_Read... [14:31:43]Read from MH i2c: E2 03 00 [14:31:43]MH_I2C_Read... [14:31:43]Read from MH i2c: E2 03 00 3F 02 00 90 00 B5 [14:31:43]RAPDU: 90 00 [14:31:43]wFMCommunicate OK [14:31:43]wFMCommunicate request_size=10 [14:31:43]MH_SAM_APDU [14:31:43]CAPDU: 80 0D 02 02 05 87 D1 4C 74 EA [14:31:43]Write to MH i2c: E2 0D 00 40 02 80 0D 02 02 05 00 87 D1 4C 74 EA 00 00 C8 [14:31:43]Write i2c OK [14:31:43]MH_I2C_Read... [14:31:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:43]Read from MH i2c: E2 [14:31:43]MH_I2C_Read... [14:31:43]Read from MH i2c: E2 03 00 [14:31:43]MH_I2C_Read... [14:31:43]Read from MH i2c: E2 03 00 40 02 00 90 00 B6 [14:31:43]RAPDU: 90 00 [14:31:43]wFMCommunicate OK [14:31:43]wFMCommunicate request_size=4 [14:31:43]MH_SAM_APDU [14:31:43]CAPDU: 80 0D 03 02 [14:31:43]Write to MH i2c: E2 08 00 41 02 80 0D 03 02 00 00 00 00 BE [14:31:43]Write i2c OK [14:31:43]MH_I2C_Read... [14:31:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:31:43]Read from MH i2c: E2 [14:31:43]MH_I2C_Read... [14:31:43]Read from MH i2c: E2 0B 00 [14:31:43]MH_I2C_Read... [14:31:43]Read from MH i2c: E2 0B 00 41 02 00 ED 06 4E E8 BC 34 12 D8 90 00 C2 [14:31:43]RAPDU: ED 06 4E E8 BC 34 12 D8 90 00 [14:31:43]wFMCommunicate OK [14:31:43]SAM_PROTO_SignData done [14:31:43]FM_MakeSignedData done [14:31:43]CreateOFDProtocolMessage [14:31:43]wFMCommunicate request_size=4 [14:31:43]MH_SAM_APDU [14:31:43]CAPDU: 80 11 00 00 [14:31:43]Write to MH i2c: E2 08 00 42 02 80 11 00 00 00 00 00 00 BE [14:31:43]Write i2c OK [14:31:43]MH_I2C_Read... [14:31:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:43]Read from MH i2c: E2 [14:31:43]MH_I2C_Read... [14:31:43]Read from MH i2c: E2 17 00 [14:31:43]MH_I2C_Read... [14:31:43]Read from MH i2c: E2 17 00 42 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 14 [14:31:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:31:43]wFMCommunicate OK [14:31:43]CreateOFDProtocolMessage done [14:31:43]OFDSenderStorePacket 164982 [14:31:43]StoreOFDPacket docnum=164982 [14:31:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 B4 BB 07 01 0B 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 B4 00 00 00 F4 03 04 00 4E E1 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 76 84 02 00 35 04 06 00 00 87 D1 4C 74 EA ED 06 4E E8 BC 34 12 D8 [14:31:43]CheckFolder [14:31:43]dirname=/storage/ofd_packets [14:31:43]CheckFolder done [14:31:43]ProducePacketName [14:31:43]name=ofd_packets/00164982 [14:31:43]NVStorageSaveData ofd_packets/00164982 [14:31:43]File name is /storage/ofd_packets/00164982 [14:31:43]Write 301 bytes [14:31:43]NVStorageSaveData done [14:31:43]OFDSenderStorePacket done [14:31:43]KKMCreateOFDPacket done [14:31:43]NVStorageSaveData kkm_last_timestamp [14:31:43]File name is /storage/kkm_last_timestamp [14:31:43]Write 4 bytes [14:31:43]NVStorageSaveData done [14:31:43]ExternCall_PrintAddStr [14:31:43]wPrintStart [14:31:43]Write to MH i2c: 01 00 00 43 02 45 [14:31:43]Write i2c OK [14:31:43]MH_I2C_Read... [14:31:43]Read from MH i2c: 01 [14:31:43]MH_I2C_Read... [14:31:43]Read from MH i2c: 01 07 00 [14:31:43]MH_I2C_Read... [14:31:43]Read from MH i2c: 01 07 00 43 02 00 00 00 00 00 FF 0F 5A [14:31:43]RasterBufferAndPrint [14:31:43]line Счет N : (1)459082 [14:31:43]line ИНН: 02508201610067 [14:31:43]line Контрольно-Кассовый Чек [14:31:43]line ПРОДАЖА [14:31:43]line ТРК (МРК, ГНК) : 22 [14:31:43]line Товар: 2710124130 [14:31:43]line Аи-92-К-5 [14:31:43]line 7.600 * 65.80 [14:31:43]line = 500.08 [14:31:43]line НДС 12% НСП 1% [14:31:43]line > о реализуемом товаре [14:31:43]line ОКРУГЛЕНИЕ: -0.08 [14:31:43]line ИТОГО: 500.00 [14:31:43]line Внесено: 500.00 [14:31:43]line СДАЧА: 0.00 [14:31:43]line НСП 1% : 4.42 [14:31:43]line НДС 12% : 53.11 [14:31:43]line Наличными: 500.00 [14:31:43]line Безнал.: 0.00 [14:31:43]line Место: АЗС № 72 "Партнер Нефть" [14:31:43]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:31:43]line СНО: Общий режим [14:31:43]line Чек 180 14.07.2024 14:31 [14:31:43]line Смена: 447 ФФД: 1.0 [14:31:43]line ЗНМ: 0300000160 [14:31:43]line РНМ: 0000000000090829 [14:31:43]line Версия ККМ: 001 [14:31:43]line ФМ: 0000000000874718 [14:31:43]line ФД: 164982 [14:31:43]line ФПД: 583332033770 [14:31:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T143142&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164982&fm=583332033770&tin=02508201610067®Number=0000000000090829&sum=50000 [14:31:43]written 0, free lines is 4095 [14:31:43]OFD Sender: Processing packet 164982 [packets to send 105, broken 104] [14:31:43]ProducePacketName [14:31:43]name=ofd_packets/00164982 [14:31:43]OFD Sender: To server: pG, [14:31:43]CommunicateWithHost lk.salyk.kg:30040 [14:31:43]ConnectInit lk.salyk.kg [14:31:43]Connected sock=10 [14:31:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 B4 BB 07 01 0B 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 B4 00 00 00 F4 03 04 00 4E E1 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 76 84 02 00 35 04 06 00 00 87 D1 4C 74 EA ED 06 4E E8 BC 34 12 D8 [14:31:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 0E D6 47 00 49 D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 76 84 02 00 F4 03 04 00 DB 87 93 66 B6 04 01 00 00 11 C5 31 10 91 1B BD 09 [14:31:43]CommunicateWithHost err = 0 [14:31:43]CheckOFDResponse [14:31:43]1017 (14) - 77093643461234 [14:31:43]1041 (16) - 0000000000874718 [14:31:43]1040 (4) - 164982 [14:31:43]1012 (4) - 14.07.2024 08:10 [14:31:43]1206 (1) - 0 [14:31:43]OFD Sender: Remove packet 164982 [14:31:43]ProducePacketName [14:31:43]name=ofd_packets/00164982 [14:31:43]NVStorageDeleteData [14:31:43]Write to MH i2c: 01 00 00 6D 02 6F [14:31:43]Write i2c OK [14:31:43]MH_I2C_Read... [14:31:43]Read from MH i2c: 01 [14:31:43]MH_I2C_Read... [14:31:43]Read from MH i2c: 01 07 00 [14:31:43]MH_I2C_Read... [14:31:44]Read from MH i2c: 01 07 00 6D 02 00 00 00 00 00 02 0D 85 [14:31:44]RasterBufferAndPrint [14:31:44]line [14:31:44]line [14:31:44]line [14:31:44]line [14:31:44]line [14:31:44]written 0, free lines is 3336 [14:31:44]MH_Cut [14:31:44]Write to MH i2c: D1 01 00 74 02 01 48 [14:31:44]Write i2c OK [14:31:44]MH_I2C_Read... [14:31:44]Read from MH i2c: D1 [14:31:44]MH_I2C_Read... [14:31:44]Read from MH i2c: D1 01 00 [14:31:44]MH_I2C_Read... [14:31:44]Read from MH i2c: D1 01 00 74 02 00 47 [14:31:44]Write to MH i2c: 01 00 00 75 02 77 [14:31:44]Write i2c OK [14:31:44]MH_I2C_Read... [14:31:44]OFD Sender: No OFD packet to send [14:31:44]*** Cut start [14:31:44]*** Partial cut [14:31:44]*** CUTSNS_PIN = 1 [14:31:44]*** CUTSNS_PIN = 0 [14:31:44]*** Brake cut motor [14:31:45]Read from MH i2c: 01 [14:31:45]MH_I2C_Read... [14:31:45]*** Stop cut motor [14:31:45]*** Cut end [14:31:45]Read from MH i2c: 01 07 00 [14:31:45]MH_I2C_Read... [14:31:45]Read from MH i2c: 01 07 00 75 02 00 00 00 00 00 FF 0F 8C [14:31:45]process_action close_receipt done [14:31:45]requested_data is exist [14:31:45]produce_requested_data [14:31:45]requested_item fm.sn is exist - process it [14:31:45]wFMCommunicate request_size=4 [14:31:45]MH_SAM_APDU [14:31:45]CAPDU: 80 11 00 00 [14:31:45]Write to MH i2c: E2 08 00 76 02 80 11 00 00 00 00 00 00 F2 [14:31:45]Write i2c OK [14:31:45]MH_I2C_Read... [14:31:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:45]Read from MH i2c: E2 [14:31:45]MH_I2C_Read... [14:31:45]Read from MH i2c: E2 17 00 [14:31:45]MH_I2C_Read... [14:31:45]Read from MH i2c: E2 17 00 76 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 48 [14:31:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:31:45]wFMCommunicate OK [14:31:45]requested_item fd.num is exist - process it [14:31:45]SAM_PROTO_GetFieldsCounters [14:31:45]wFMCommunicate request_size=4 [14:31:45]MH_SAM_APDU [14:31:45]CAPDU: 80 13 00 00 [14:31:45]Write to MH i2c: E2 08 00 77 02 80 13 00 00 00 00 00 00 F5 [14:31:45]Write i2c OK [14:31:45]MH_I2C_Read... [14:31:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:31:45]Read from MH i2c: E2 [14:31:45]MH_I2C_Read... [14:31:45]Read from MH i2c: E2 62 00 [14:31:45]MH_I2C_Read... [14:31:45]Read from MH i2c: E2 62 00 77 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 76 84 02 00 0E 04 04 00 BF 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 F4 [14:31:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 76 84 02 00 0E 04 04 00 BF 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 [14:31:45]wFMCommunicate OK [14:31:45]SAM_PROTO_GetFieldsCounters done [14:31:45]requested_item shift.num is exist - process it [14:31:45]requested_item shift.opened is exist - process it [14:31:45]req_shift_opened [14:31:45]FM_GetShiftState [14:31:45]SAM_PROTO_GetShiftState [14:31:45]wFMCommunicate request_size=4 [14:31:45]MH_SAM_APDU [14:31:45]CAPDU: 80 13 01 00 [14:31:45]Write to MH i2c: E2 08 00 78 02 80 13 01 00 00 00 00 00 F7 [14:31:45]Write i2c OK [14:31:45]MH_I2C_Read... [14:31:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:45]Read from MH i2c: E2 [14:31:45]MH_I2C_Read... [14:31:45]Read from MH i2c: E2 0E 00 [14:31:45]MH_I2C_Read... [14:31:45]Read from MH i2c: E2 0E 00 78 02 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 77 [14:31:45]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [14:31:45]wFMCommunicate OK [14:31:45]SAM_PROTO_GetShiftState done [14:31:45]FM_GetShiftState done [14:31:45]req_shift_opened done [14:31:45]requested_item shift.open_date is exist - process it [14:31:45]req_shift_open_date [14:31:45]req_shift_open_date done [14:31:45]produce_requested_data done [14:31:45]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164982,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [14:31:45]process_action_free close_receipt [14:31:45]json_value_free [14:31:45]json_value_free done [14:31:45]process_json_proto returns [14:31:45]Send response to host [14:31:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164982,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [14:31:45]free response buf [14:31:45]execute_script done [14:31:45]execute_script returns [14:31:45]free content buf [14:31:45]Sock 9.Close socket [14:31:45]Sock 9.Thread stoped [14:31:49]OFD Sender: No OFD packet to send [14:31:54]OFD Sender: No OFD packet to send [14:31:59]OFD Sender: No OFD packet to send [14:32:04]OFD Sender: No OFD packet to send [14:32:05]accept exits with 7 [14:32:05]New connection [14:32:05]New thread 3066805604 created [14:32:05]Thread 3066948964 joined [14:32:05]Waiting for new connection... [14:32:05] Sock 7.Parse request [14:32:05]Sock 7.Check first char [14:32:05]Sock 7.First char is OK [14:32:05]request: POST /json_proto HTTP/1.0 [14:32:05]Method: POST [14:32:05]URL: /json_proto [14:32:05]Method is POST - this is cgi request [14:32:05]url: /json_proto [14:32:05]query_string will be loaded in cgi processing [14:32:05]execute_cgi json_proto POST (null) [14:32:05]execute_cgi path=json_proto method=POST [14:32:05]POST find Content-Length [14:32:05]Host: 172.17.56.4:8080 [14:32:05]Content-Length: 677 [14:32:05]Content-Type: application/json [14:32:05] [14:32:05]POST finish read [14:32:05]Found Content-Length = 677 [14:32:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459083", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.800, "sum" : 250.04, "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" ] } } [14:32:05]execute_script... [14:32: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)459083", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.800, "sum" : 250.04, "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" ] } } [14:32:05]POST & json_proto [14:32:05]process_json_proto [14:32:05]json parsed OK: [14:32:05]protocol is kg_v1.0 [14:32:05]action value=close_receipt [14:32:05]process_action close_receipt [14:32:05]cmd_close_receipt [14:32:05]MH_GetDate [14:32:05]Write to MH i2c: F0 00 00 79 02 6A [14:32:05]Write i2c OK [14:32:05]MH_I2C_Read... [14:32:05]Read from MH i2c: F0 [14:32:05]MH_I2C_Read... [14:32:05]Read from MH i2c: F0 09 00 [14:32:05]MH_I2C_Read... [14:32:05]Read from MH i2c: F0 09 00 79 02 00 66 E1 93 66 C9 DC B2 64 6E [14:32:05]GetLastDocTimeStamp 1720967502 [14:32:05]current date 1720967526 [14:32:05]FM_GetShiftState [14:32:05]SAM_PROTO_GetShiftState [14:32:05]wFMCommunicate request_size=4 [14:32:05]MH_SAM_APDU [14:32:05]CAPDU: 80 13 01 00 [14:32:05]Write to MH i2c: E2 08 00 7A 02 80 13 01 00 00 00 00 00 F9 [14:32:05]Write i2c OK [14:32:05]MH_I2C_Read... [14:32:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:32:06]Read from MH i2c: E2 [14:32:06]MH_I2C_Read... [14:32:06]Read from MH i2c: E2 0E 00 [14:32:06]MH_I2C_Read... [14:32:06]Read from MH i2c: E2 0E 00 7A 02 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 79 [14:32:06]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [14:32:06]wFMCommunicate OK [14:32:06]SAM_PROTO_GetShiftState done [14:32:06]FM_GetShiftState done [14:32:06]opened in 1720917342 [14:32:06]opened+sec_in_day 1721003742 [14:32:06]quantity*price = 25004 [14:32:06]sum+1 = 25005 [14:32:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.55 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 181 14.07.2024 14:32 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164983 ФПД: 56722894248100 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T143206&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164983&fm=56722894248100&tin=02508201610067®Number=0000000000090829&sum=25000 [14:32:07]StoreToDocumentArchive [14:32:07]shift 447 fd 164983 [14:32:07]save to /storage/0447/doc_00164983 [14:32:07]save last doc name /storage/0447/doc_00164983 to /storage/kkm_last_doc_name [14:32:07]save OK [14:32:07]Clear old archive folders... [14:32:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:32:07]tlvbuf is 01298440 [14:32:07]SAM_PROTO_ClearQueue [14:32:07]wFMCommunicate request_size=4 [14:32:07]MH_SAM_APDU [14:32:07]CAPDU: 80 09 00 00 [14:32:07]Write to MH i2c: E2 08 00 87 02 80 09 00 00 00 00 00 00 FB [14:32:07]Write i2c OK [14:32:07]MH_I2C_Read... [14:32:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:32:07]Read from MH i2c: E2 [14:32:07]MH_I2C_Read... [14:32:07]Read from MH i2c: E2 03 00 [14:32:07]MH_I2C_Read... [14:32:07]Read from MH i2c: E2 03 00 87 02 00 90 00 FD [14:32:07]RAPDU: 90 00 [14:32:07]wFMCommunicate OK [14:32:07]SAM_PROTO_ClearQueue done [14:32:07]KKMCreateOFDPacket [14:32:07]OFDProtocolAddRootSTLVToBuf [14:32:07]FM_MakeSignedData [14:32:07]FM_MakeSignedData [14:32:07]SAM_PROTO_SignData [14:32:07]wFMCommunicate request_size=4 [14:32:07]MH_SAM_APDU [14:32:07]CAPDU: 80 0D 01 02 [14:32:07]Write to MH i2c: E2 08 00 88 02 80 0D 01 02 00 00 00 00 03 [14:32:07]Write i2c OK [14:32:07]MH_I2C_Read... [14:32:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:32:07]Read from MH i2c: E2 [14:32:07]MH_I2C_Read... [14:32:07]Read from MH i2c: E2 03 00 [14:32:07]MH_I2C_Read... [14:32:07]Read from MH i2c: E2 03 00 88 02 00 90 00 FE [14:32:07]RAPDU: 90 00 [14:32:07]wFMCommunicate OK [14:32:07]wFMCommunicate request_size=255 [14:32:07]MH_SAM_APDU [14:32:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 AC 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 66 E1 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 77 84 02 00 35 04 06 00 33 [14:32:07]Write to MH i2c: E2 02 01 89 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 35 FF 03 08 00 03 D8 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 AC 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 66 E1 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 77 84 02 00 35 04 06 00 33 00 00 10 [14:32:07]Write i2c OK [14:32:07]MH_I2C_Read... [14:32:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:32:07]Read from MH i2c: E2 [14:32:07]MH_I2C_Read... [14:32:07]Read from MH i2c: E2 03 00 [14:32:07]MH_I2C_Read... [14:32:07]Read from MH i2c: E2 03 00 89 02 00 90 00 FF [14:32:07]RAPDU: 90 00 [14:32:07]wFMCommunicate OK [14:32:07]wFMCommunicate request_size=10 [14:32:07]MH_SAM_APDU [14:32:07]CAPDU: 80 0D 02 02 05 96 D3 F6 58 A4 [14:32:07]Write to MH i2c: E2 0D 00 8A 02 80 0D 02 02 05 00 96 D3 F6 58 A4 00 00 6B [14:32:07]Write i2c OK [14:32:07]MH_I2C_Read... [14:32:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:32:07]Read from MH i2c: E2 [14:32:07]MH_I2C_Read... [14:32:07]Read from MH i2c: E2 03 00 [14:32:07]MH_I2C_Read... [14:32:07]Read from MH i2c: E2 03 00 8A 02 00 90 00 00 [14:32:07]RAPDU: 90 00 [14:32:07]wFMCommunicate OK [14:32:07]wFMCommunicate request_size=4 [14:32:07]MH_SAM_APDU [14:32:07]CAPDU: 80 0D 03 02 [14:32:07]Write to MH i2c: E2 08 00 8B 02 80 0D 03 02 00 00 00 00 08 [14:32:07]Write i2c OK [14:32:07]MH_I2C_Read... [14:32:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:32:07]Read from MH i2c: E2 [14:32:07]MH_I2C_Read... [14:32:07]Read from MH i2c: E2 0B 00 [14:32:07]MH_I2C_Read... [14:32:07]Read from MH i2c: E2 0B 00 8B 02 00 48 E4 F8 5A B3 52 AE A7 90 00 E1 [14:32:07]RAPDU: 48 E4 F8 5A B3 52 AE A7 90 00 [14:32:07]wFMCommunicate OK [14:32:07]SAM_PROTO_SignData done [14:32:07]FM_MakeSignedData done [14:32:07]CreateOFDProtocolMessage [14:32:07]wFMCommunicate request_size=4 [14:32:07]MH_SAM_APDU [14:32:07]CAPDU: 80 11 00 00 [14:32:07]Write to MH i2c: E2 08 00 8C 02 80 11 00 00 00 00 00 00 08 [14:32:07]Write i2c OK [14:32:07]MH_I2C_Read... [14:32:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:32:07]Read from MH i2c: E2 [14:32:07]MH_I2C_Read... [14:32:07]Read from MH i2c: E2 17 00 [14:32:07]MH_I2C_Read... [14:32:07]Read from MH i2c: E2 17 00 8C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 5E [14:32:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:32:07]wFMCommunicate OK [14:32:07]CreateOFDProtocolMessage done [14:32:07]OFDSenderStorePacket 164983 [14:32:07]StoreOFDPacket docnum=164983 [14:32:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 7A 7A 07 01 D4 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 AC 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 66 E1 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 77 84 02 00 35 04 06 00 33 96 D3 F6 58 A4 48 E4 F8 5A B3 52 AE A7 [14:32:07]CheckFolder [14:32:07]dirname=/storage/ofd_packets [14:32:07]CheckFolder done [14:32:07]ProducePacketName [14:32:07]name=ofd_packets/00164983 [14:32:07]NVStorageSaveData ofd_packets/00164983 [14:32:07]File name is /storage/ofd_packets/00164983 [14:32:07]Write 301 bytes [14:32:07]NVStorageSaveData done [14:32:07]OFDSenderStorePacket done [14:32:07]KKMCreateOFDPacket done [14:32:07]NVStorageSaveData kkm_last_timestamp [14:32:07]File name is /storage/kkm_last_timestamp [14:32:07]Write 4 bytes [14:32:07]NVStorageSaveData done [14:32:07]ExternCall_PrintAddStr [14:32:07]wPrintStart [14:32:07]Write to MH i2c: 01 00 00 8D 02 8F [14:32:07]Write i2c OK [14:32:07]MH_I2C_Read... [14:32:07]Read from MH i2c: 01 [14:32:07]MH_I2C_Read... [14:32:07]Read from MH i2c: 01 07 00 [14:32:07]MH_I2C_Read... [14:32:07]Read from MH i2c: 01 07 00 8D 02 00 00 00 00 00 FF 0F A4 [14:32:07]RasterBufferAndPrint [14:32:07]line Счет N : (1)459083 [14:32:07]line ИНН: 02508201610067 [14:32:07]line Контрольно-Кассовый Чек [14:32:07]line ПРОДАЖА [14:32:07]line ТРК (МРК, ГНК) : 22 [14:32:07]line Товар: 2710124130 [14:32:07]line Аи-92-К-5 [14:32:07]line 3.800 * 65.80 [14:32:07]line = 250.04 [14:32:07]line НДС 12% НСП 1% [14:32:07]line > о реализуемом товаре [14:32:07]line ОКРУГЛЕНИЕ: -0.04 [14:32:07]line ИТОГО: 250.00 [14:32:07]line Внесено: 250.00 [14:32:07]line СДАЧА: 0.00 [14:32:07]line НСП 1% : 2.21 [14:32:07]line НДС 12% : 26.55 [14:32:07]line Наличными: 250.00 [14:32:07]line Безнал.: 0.00 [14:32:07]line Место: АЗС № 72 "Партнер Нефть" [14:32:07]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:32:07]line СНО: Общий режим [14:32:07]line Чек 181 14.07.2024 14:32 [14:32:07]line Смена: 447 ФФД: 1.0 [14:32:07]line ЗНМ: 0300000160 [14:32:07]line РНМ: 0000000000090829 [14:32:07]line Версия ККМ: 001 [14:32:07]line ФМ: 0000000000874718 [14:32:07]line ФД: 164983 [14:32:07]line ФПД: 56722894248100 [14:32:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T143206&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164983&fm=56722894248100&tin=02508201610067®Number=0000000000090829&sum=25000 [14:32:07]written 0, free lines is 4095 [14:32:07]OFD Sender: Processing packet 164983 [packets to send 105, broken 104] [14:32:07]ProducePacketName [14:32:07]name=ofd_packets/00164983 [14:32:07]OFD Sender: To server: pG, [14:32:07]CommunicateWithHost lk.salyk.kg:30040 [14:32:07]ConnectInit lk.salyk.kg [14:32:07]Connected sock=11 [14:32:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 7A 7A 07 01 D4 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 AC 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 66 E1 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 77 84 02 00 35 04 06 00 33 96 D3 F6 58 A4 48 E4 F8 5A B3 52 AE A7 [14:32:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 BA 43 47 00 8A 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 38 37 34 37 31 38 10 04 04 00 77 84 02 00 F4 03 04 00 F3 87 93 66 B6 04 01 00 00 D4 E6 20 4A 52 00 B1 E6 [14:32:08]CommunicateWithHost err = 0 [14:32:08]CheckOFDResponse [14:32:08]1017 (14) - 77093643461234 [14:32:08]1041 (16) - 0000000000874718 [14:32:08]1040 (4) - 164983 [14:32:08]1012 (4) - 14.07.2024 08:10 [14:32:08]1206 (1) - 0 [14:32:08]OFD Sender: Remove packet 164983 [14:32:08]ProducePacketName [14:32:08]name=ofd_packets/00164983 [14:32:08]NVStorageDeleteData [14:32:08]Write to MH i2c: 01 00 00 B7 02 B9 [14:32:08]Write i2c OK [14:32:08]MH_I2C_Read... [14:32:08]Read from MH i2c: 01 [14:32:08]MH_I2C_Read... [14:32:08]Read from MH i2c: 01 07 00 [14:32:08]MH_I2C_Read... [14:32:08]Read from MH i2c: 01 07 00 B7 02 00 00 00 00 00 0A 0D D7 [14:32:08]RasterBufferAndPrint [14:32:08]line [14:32:08]line [14:32:08]line [14:32:08]line [14:32:08]line [14:32:08]written 0, free lines is 3344 [14:32:08]MH_Cut [14:32:08]Write to MH i2c: D1 01 00 BE 02 01 92 [14:32:08]Write i2c OK [14:32:08]MH_I2C_Read... [14:32:08]Read from MH i2c: D1 [14:32:08]MH_I2C_Read... [14:32:08]Read from MH i2c: D1 01 00 [14:32:08]MH_I2C_Read... [14:32:08]Read from MH i2c: D1 01 00 BE 02 00 91 [14:32:08]Write to MH i2c: 01 00 00 BF 02 C1 [14:32:08]Write i2c OK [14:32:08]MH_I2C_Read... [14:32:08]OFD Sender: No OFD packet to send [14:32:08]*** Cut start [14:32:08]*** Partial cut [14:32:08]*** CUTSNS_PIN = 1 [14:32:08]*** CUTSNS_PIN = 0 [14:32:09]*** Brake cut motor [14:32:09]Read from MH i2c: 01 [14:32:09]MH_I2C_Read... [14:32:09]*** Stop cut motor [14:32:09]*** Cut end [14:32:09]Read from MH i2c: 01 07 00 [14:32:09]MH_I2C_Read... [14:32:09]Read from MH i2c: 01 07 00 BF 02 00 00 00 00 00 FF 0F D6 [14:32:09]process_action close_receipt done [14:32:09]requested_data is exist [14:32:09]produce_requested_data [14:32:09]requested_item fm.sn is exist - process it [14:32:09]wFMCommunicate request_size=4 [14:32:09]MH_SAM_APDU [14:32:09]CAPDU: 80 11 00 00 [14:32:09]Write to MH i2c: E2 08 00 C0 02 80 11 00 00 00 00 00 00 3C [14:32:09]Write i2c OK [14:32:09]MH_I2C_Read... [14:32:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:32:09]Read from MH i2c: E2 [14:32:09]MH_I2C_Read... [14:32:09]Read from MH i2c: E2 17 00 [14:32:09]MH_I2C_Read... [14:32:09]Read from MH i2c: E2 17 00 C0 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 92 [14:32:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:32:09]wFMCommunicate OK [14:32:09]requested_item fd.num is exist - process it [14:32:09]SAM_PROTO_GetFieldsCounters [14:32:09]wFMCommunicate request_size=4 [14:32:09]MH_SAM_APDU [14:32:09]CAPDU: 80 13 00 00 [14:32:09]Write to MH i2c: E2 08 00 C1 02 80 13 00 00 00 00 00 00 3F [14:32:09]Write i2c OK [14:32:09]MH_I2C_Read... [14:32:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:32:09]Read from MH i2c: E2 [14:32:09]MH_I2C_Read... [14:32:09]Read from MH i2c: E2 62 00 [14:32:09]MH_I2C_Read... [14:32:09]Read from MH i2c: E2 62 00 C1 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 77 84 02 00 0E 04 04 00 BF 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 42 [14:32:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 77 84 02 00 0E 04 04 00 BF 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 [14:32:09]wFMCommunicate OK [14:32:09]SAM_PROTO_GetFieldsCounters done [14:32:09]requested_item shift.num is exist - process it [14:32:09]requested_item shift.opened is exist - process it [14:32:09]req_shift_opened [14:32:09]FM_GetShiftState [14:32:09]SAM_PROTO_GetShiftState [14:32:09]wFMCommunicate request_size=4 [14:32:09]MH_SAM_APDU [14:32:09]CAPDU: 80 13 01 00 [14:32:09]Write to MH i2c: E2 08 00 C2 02 80 13 01 00 00 00 00 00 41 [14:32:09]Write i2c OK [14:32:09]MH_I2C_Read... [14:32:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:32:09]Read from MH i2c: E2 [14:32:09]MH_I2C_Read... [14:32:09]Read from MH i2c: E2 0E 00 [14:32:09]MH_I2C_Read... [14:32:09]Read from MH i2c: E2 0E 00 C2 02 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 C1 [14:32:09]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [14:32:09]wFMCommunicate OK [14:32:09]SAM_PROTO_GetShiftState done [14:32:09]FM_GetShiftState done [14:32:09]req_shift_opened done [14:32:09]requested_item shift.open_date is exist - process it [14:32:09]req_shift_open_date [14:32:09]req_shift_open_date done [14:32:09]produce_requested_data done [14:32:09]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164983,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [14:32:09]process_action_free close_receipt [14:32:09]json_value_free [14:32:09]json_value_free done [14:32:09]process_json_proto returns [14:32:09]Send response to host [14:32:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164983,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [14:32:09]free response buf [14:32:09]execute_script done [14:32:09]execute_script returns [14:32:09]free content buf [14:32:09]Sock 7.Close socket [14:32:09]Sock 7.Thread stoped [14:32:13]OFD Sender: No OFD packet to send [14:32:18]OFD Sender: No OFD packet to send [14:32:23]OFD Sender: No OFD packet to send [14:32:28]OFD Sender: No OFD packet to send [14:32:33]OFD Sender: No OFD packet to send [14:32:38]OFD Sender: No OFD packet to send [14:32:43]OFD Sender: No OFD packet to send [14:32:48]OFD Sender: No OFD packet to send [14:32:53]OFD Sender: No OFD packet to send [14:32:58]OFD Sender: No OFD packet to send [14:33:03]OFD Sender: No OFD packet to send [14:33:08]OFD Sender: No OFD packet to send [14:33:13]OFD Sender: No OFD packet to send [14:33:18]OFD Sender: No OFD packet to send [14:33:23]OFD Sender: No OFD packet to send [14:33:28]OFD Sender: No OFD packet to send [14:33:33]OFD Sender: No OFD packet to send [14:33:38]OFD Sender: No OFD packet to send [14:33:40]accept exits with 9 [14:33:40]New connection [14:33:40]New thread 3066948964 created [14:33:40]Thread 3066805604 joined [14:33:40]Waiting for new connection... [14:33:40] Sock 9.Parse request [14:33:40]Sock 9.Check first char [14:33:40]Sock 9.First char is OK [14:33:40]request: POST /json_proto HTTP/1.0 [14:33:40]Method: POST [14:33:40]URL: /json_proto [14:33:40]Method is POST - this is cgi request [14:33:40]url: /json_proto [14:33:40]query_string will be loaded in cgi processing [14:33:40]execute_cgi json_proto POST (null) [14:33:40]execute_cgi path=json_proto method=POST [14:33:40]POST find Content-Length [14:33:40]Host: 172.17.56.4:8080 [14:33:40]Content-Length: 677 [14:33:40]Content-Type: application/json [14:33:40] [14:33:40]POST finish read [14:33:40]Found Content-Length = 677 [14:33:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459084", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "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:33:40]execute_script... [14:33: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)459084", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "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:33:40]POST & json_proto [14:33:40]process_json_proto [14:33:40]json parsed OK: [14:33:40]protocol is kg_v1.0 [14:33:40]action value=close_receipt [14:33:40]process_action close_receipt [14:33:40]cmd_close_receipt [14:33:40]MH_GetDate [14:33:40]Write to MH i2c: F0 00 00 C3 02 B4 [14:33:40]Write i2c OK [14:33:40]MH_I2C_Read... [14:33:40]Read from MH i2c: F0 [14:33:40]MH_I2C_Read... [14:33:40]Read from MH i2c: F0 09 00 [14:33:40]MH_I2C_Read... [14:33:40]Read from MH i2c: F0 09 00 C3 02 00 C4 E1 93 66 C9 DC B2 64 16 [14:33:40]GetLastDocTimeStamp 1720967526 [14:33:40]current date 1720967620 [14:33:40]FM_GetShiftState [14:33:40]SAM_PROTO_GetShiftState [14:33:40]wFMCommunicate request_size=4 [14:33:40]MH_SAM_APDU [14:33:40]CAPDU: 80 13 01 00 [14:33:40]Write to MH i2c: E2 08 00 C4 02 80 13 01 00 00 00 00 00 43 [14:33:40]Write i2c OK [14:33:40]MH_I2C_Read... [14:33:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:40]Read from MH i2c: E2 [14:33:40]MH_I2C_Read... [14:33:40]Read from MH i2c: E2 0E 00 [14:33:40]MH_I2C_Read... [14:33:40]Read from MH i2c: E2 0E 00 C4 02 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 C3 [14:33:40]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [14:33:40]wFMCommunicate OK [14:33:40]SAM_PROTO_GetShiftState done [14:33:40]FM_GetShiftState done [14:33:40]opened in 1720917342 [14:33:40]opened+sec_in_day 1721003742 [14:33:40]quantity*price = 30004 [14:33:40]sum+1 = 30006 [14:33:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 182 14.07.2024 14:33 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164984 ФПД: 211420712926777 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T143340&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164984&fm=211420712926777&tin=02508201610067®Number=0000000000090829&sum=30000 [14:33:41]StoreToDocumentArchive [14:33:41]shift 447 fd 164984 [14:33:41]save to /storage/0447/doc_00164984 [14:33:41]save last doc name /storage/0447/doc_00164984 to /storage/kkm_last_doc_name [14:33:41]save OK [14:33:41]Clear old archive folders... [14:33:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:33:41]tlvbuf is 01295B30 [14:33:41]SAM_PROTO_ClearQueue [14:33:41]wFMCommunicate request_size=4 [14:33:41]MH_SAM_APDU [14:33:41]CAPDU: 80 09 00 00 [14:33:41]Write to MH i2c: E2 08 00 D1 02 80 09 00 00 00 00 00 00 45 [14:33:41]Write i2c OK [14:33:41]MH_I2C_Read... [14:33:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:33:41]Read from MH i2c: E2 [14:33:41]MH_I2C_Read... [14:33:41]Read from MH i2c: E2 03 00 [14:33:41]MH_I2C_Read... [14:33:41]Read from MH i2c: E2 03 00 D1 02 00 90 00 47 [14:33:41]RAPDU: 90 00 [14:33:41]wFMCommunicate OK [14:33:41]SAM_PROTO_ClearQueue done [14:33:41]KKMCreateOFDPacket [14:33:41]OFDProtocolAddRootSTLVToBuf [14:33:41]FM_MakeSignedData [14:33:41]FM_MakeSignedData [14:33:41]SAM_PROTO_SignData [14:33:41]wFMCommunicate request_size=4 [14:33:41]MH_SAM_APDU [14:33:41]CAPDU: 80 0D 01 02 [14:33:41]Write to MH i2c: E2 08 00 D2 02 80 0D 01 02 00 00 00 00 4D [14:33:41]Write i2c OK [14:33:41]MH_I2C_Read... [14:33:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:33:41]Read from MH i2c: E2 [14:33:41]MH_I2C_Read... [14:33:41]Read from MH i2c: E2 03 00 [14:33:41]MH_I2C_Read... [14:33:41]Read from MH i2c: E2 03 00 D2 02 00 90 00 48 [14:33:41]RAPDU: 90 00 [14:33:41]wFMCommunicate OK [14:33:41]wFMCommunicate request_size=255 [14:33:41]MH_SAM_APDU [14:33:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 C4 E1 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 78 84 02 00 35 04 06 00 C0 [14:33:41]Write to MH i2c: E2 02 01 D3 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 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 C4 E1 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 78 84 02 00 35 04 06 00 C0 00 00 59 [14:33:41]Write i2c OK [14:33:41]MH_I2C_Read... [14:33:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:41]Read from MH i2c: E2 [14:33:41]MH_I2C_Read... [14:33:41]Read from MH i2c: E2 03 00 [14:33:41]MH_I2C_Read... [14:33:41]Read from MH i2c: E2 03 00 D3 02 00 90 00 49 [14:33:41]RAPDU: 90 00 [14:33:41]wFMCommunicate OK [14:33:41]wFMCommunicate request_size=10 [14:33:41]MH_SAM_APDU [14:33:41]CAPDU: 80 0D 02 02 05 49 38 7D FE 39 [14:33:41]Write to MH i2c: E2 0D 00 D4 02 80 0D 02 02 05 00 49 38 7D FE 39 00 00 8F [14:33:41]Write i2c OK [14:33:41]MH_I2C_Read... [14:33:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:41]Read from MH i2c: E2 [14:33:41]MH_I2C_Read... [14:33:41]Read from MH i2c: E2 03 00 [14:33:41]MH_I2C_Read... [14:33:41]Read from MH i2c: E2 03 00 D4 02 00 90 00 4A [14:33:41]RAPDU: 90 00 [14:33:41]wFMCommunicate OK [14:33:41]wFMCommunicate request_size=4 [14:33:41]MH_SAM_APDU [14:33:41]CAPDU: 80 0D 03 02 [14:33:41]Write to MH i2c: E2 08 00 D5 02 80 0D 03 02 00 00 00 00 52 [14:33:41]Write i2c OK [14:33:41]MH_I2C_Read... [14:33:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:33:41]Read from MH i2c: E2 [14:33:41]MH_I2C_Read... [14:33:41]Read from MH i2c: E2 0B 00 [14:33:41]MH_I2C_Read... [14:33:41]Read from MH i2c: E2 0B 00 D5 02 00 B7 44 36 8F F4 A4 CB 59 90 00 CF [14:33:41]RAPDU: B7 44 36 8F F4 A4 CB 59 90 00 [14:33:41]wFMCommunicate OK [14:33:41]SAM_PROTO_SignData done [14:33:41]FM_MakeSignedData done [14:33:41]CreateOFDProtocolMessage [14:33:41]wFMCommunicate request_size=4 [14:33:41]MH_SAM_APDU [14:33:41]CAPDU: 80 11 00 00 [14:33:41]Write to MH i2c: E2 08 00 D6 02 80 11 00 00 00 00 00 00 52 [14:33:41]Write i2c OK [14:33:41]MH_I2C_Read... [14:33:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:41]Read from MH i2c: E2 [14:33:41]MH_I2C_Read... [14:33:41]Read from MH i2c: E2 17 00 [14:33:41]MH_I2C_Read... [14:33:41]Read from MH i2c: E2 17 00 D6 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A8 [14:33:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:33:41]wFMCommunicate OK [14:33:41]CreateOFDProtocolMessage done [14:33:41]OFDSenderStorePacket 164984 [14:33:41]StoreOFDPacket docnum=164984 [14:33:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D6 89 07 01 08 0D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 C4 E1 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 78 84 02 00 35 04 06 00 C0 49 38 7D FE 39 B7 44 36 8F F4 A4 CB 59 [14:33:41]CheckFolder [14:33:41]dirname=/storage/ofd_packets [14:33:41]CheckFolder done [14:33:41]ProducePacketName [14:33:41]name=ofd_packets/00164984 [14:33:41]NVStorageSaveData ofd_packets/00164984 [14:33:41]File name is /storage/ofd_packets/00164984 [14:33:41]Write 301 bytes [14:33:41]NVStorageSaveData done [14:33:41]OFDSenderStorePacket done [14:33:41]KKMCreateOFDPacket done [14:33:41]NVStorageSaveData kkm_last_timestamp [14:33:41]File name is /storage/kkm_last_timestamp [14:33:41]Write 4 bytes [14:33:41]NVStorageSaveData done [14:33:41]OFD Sender: Processing packet 164984 [packets to send 105, broken 104] [14:33:41]ProducePacketName [14:33:41]name=ofd_packets/00164984 [14:33:41]OFD Sender: To server: pG, [14:33:41]CommunicateWithHost lk.salyk.kg:30040 [14:33:41]ConnectInit lk.salyk.kg [14:33:41]ExternCall_PrintAddStr [14:33:41]wPrintStart [14:33:41]Write to MH i2c: 01 00 00 D7 02 D9 [14:33:41]Write i2c OK [14:33:41]MH_I2C_Read... [14:33:41]Read from MH i2c: 01 [14:33:41]MH_I2C_Read... [14:33:41]Read from MH i2c: 01 07 00 [14:33:41]MH_I2C_Read... [14:33:41]Read from MH i2c: 01 07 00 D7 02 00 00 00 00 00 FF 0F EE [14:33:41]RasterBufferAndPrint [14:33:41]line Счет N : (1)459084 [14:33:41]line ИНН: 02508201610067 [14:33:41]line Контрольно-Кассовый Чек [14:33:41]line ПРОДАЖА [14:33:41]line ТРК (МРК, ГНК) : 22 [14:33:41]line Товар: 2710124130 [14:33:41]line Аи-92-К-5 [14:33:41]line 4.560 * 65.80 [14:33:41]line = 300.05 [14:33:41]line НДС 12% НСП 1% [14:33:41]line > о реализуемом товаре [14:33:41]line ОКРУГЛЕНИЕ: -0.05 [14:33:41]line ИТОГО: 300.00 [14:33:41]line Внесено: 300.00 [14:33:41]line СДАЧА: 0.00 [14:33:41]line НСП 1% : 2.65 [14:33:41]line НДС 12% : 31.86 [14:33:41]line Наличными: 300.00 [14:33:41]line Безнал.: 0.00 [14:33:41]line Место: АЗС № 72 "Партнер Нефть" [14:33:41]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:33:41]line СНО: Общий режим [14:33:41]line Чек 182 14.07.2024 14:33 [14:33:41]line Смена: 447 ФФД: 1.0 [14:33:41]line ЗНМ: 0300000160 [14:33:41]line РНМ: 0000000000090829 [14:33:41]line Версия ККМ: 001 [14:33:41]line ФМ: 0000000000874718 [14:33:41]line ФД: 164984 [14:33:41]line ФПД: 211420712926777 [14:33:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T143340&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164984&fm=211420712926777&tin=02508201610067®Number=0000000000090829&sum=30000 [14:33:42]Connected sock=11 [14:33:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D6 89 07 01 08 0D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 C4 E1 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 78 84 02 00 35 04 06 00 C0 49 38 7D FE 39 B7 44 36 8F F4 A4 CB 59 [14:33:42]written 0, free lines is 4095 [14:33:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 C7 04 47 00 5F 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 38 37 34 37 31 38 10 04 04 00 78 84 02 00 F4 03 04 00 52 88 93 66 B6 04 01 00 00 5E 66 AA F0 51 65 D9 31 [14:33:42]CommunicateWithHost err = 0 [14:33:42]CheckOFDResponse [14:33:42]1017 (14) - 77093643461234 [14:33:42]1041 (16) - 0000000000874718 [14:33:42]1040 (4) - 164984 [14:33:42]1012 (4) - 14.07.2024 08:12 [14:33:42]1206 (1) - 0 [14:33:42]OFD Sender: Remove packet 164984 [14:33:42]ProducePacketName [14:33:42]name=ofd_packets/00164984 [14:33:42]NVStorageDeleteData [14:33:42]Write to MH i2c: 01 00 00 01 03 04 [14:33:42]Write i2c OK [14:33:42]MH_I2C_Read... [14:33:42]Read from MH i2c: 01 [14:33:42]MH_I2C_Read... [14:33:42]Read from MH i2c: 01 07 00 [14:33:42]MH_I2C_Read... [14:33:42]Read from MH i2c: 01 07 00 01 03 00 00 00 00 00 FE 0C 15 [14:33:42]RasterBufferAndPrint [14:33:42]line [14:33:42]line [14:33:42]line [14:33:42]line [14:33:42]line [14:33:42]written 0, free lines is 3332 [14:33:42]MH_Cut [14:33:42]Write to MH i2c: D1 01 00 08 03 01 DD [14:33:42]Write i2c OK [14:33:42]MH_I2C_Read... [14:33:42]Read from MH i2c: D1 [14:33:42]MH_I2C_Read... [14:33:42]Read from MH i2c: D1 01 00 [14:33:42]MH_I2C_Read... [14:33:42]Read from MH i2c: D1 01 00 08 03 00 DC [14:33:42]Write to MH i2c: 01 00 00 09 03 0C [14:33:42]Write i2c OK [14:33:42]MH_I2C_Read... [14:33:43]OFD Sender: No OFD packet to send [14:33:43]*** Cut start [14:33:43]*** Partial cut [14:33:43]*** CUTSNS_PIN = 1 [14:33:43]*** CUTSNS_PIN = 0 [14:33:43]*** Brake cut motor [14:33:44]Read from MH i2c: 01 [14:33:44]MH_I2C_Read... [14:33:44]*** Stop cut motor [14:33:44]*** Cut end [14:33:44]Read from MH i2c: 01 07 00 [14:33:44]MH_I2C_Read... [14:33:44]Read from MH i2c: 01 07 00 09 03 00 00 00 00 00 FF 0F 21 [14:33:44]process_action close_receipt done [14:33:44]requested_data is exist [14:33:44]produce_requested_data [14:33:44]requested_item fm.sn is exist - process it [14:33:44]wFMCommunicate request_size=4 [14:33:44]MH_SAM_APDU [14:33:44]CAPDU: 80 11 00 00 [14:33:44]Write to MH i2c: E2 08 00 0A 03 80 11 00 00 00 00 00 00 87 [14:33:44]Write i2c OK [14:33:44]MH_I2C_Read... [14:33:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:44]Read from MH i2c: E2 [14:33:44]MH_I2C_Read... [14:33:44]Read from MH i2c: E2 17 00 [14:33:44]MH_I2C_Read... [14:33:44]Read from MH i2c: E2 17 00 0A 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DD [14:33:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:33:44]wFMCommunicate OK [14:33:44]requested_item fd.num is exist - process it [14:33:44]SAM_PROTO_GetFieldsCounters [14:33:44]wFMCommunicate request_size=4 [14:33:44]MH_SAM_APDU [14:33:44]CAPDU: 80 13 00 00 [14:33:44]Write to MH i2c: E2 08 00 0B 03 80 13 00 00 00 00 00 00 8A [14:33:44]Write i2c OK [14:33:44]MH_I2C_Read... [14:33:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:33:44]Read from MH i2c: E2 [14:33:44]MH_I2C_Read... [14:33:44]Read from MH i2c: E2 62 00 [14:33:44]MH_I2C_Read... [14:33:44]Read from MH i2c: E2 62 00 0B 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 78 84 02 00 0E 04 04 00 BF 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 91 [14:33:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 78 84 02 00 0E 04 04 00 BF 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 [14:33:44]wFMCommunicate OK [14:33:44]SAM_PROTO_GetFieldsCounters done [14:33:44]requested_item shift.num is exist - process it [14:33:44]requested_item shift.opened is exist - process it [14:33:44]req_shift_opened [14:33:44]FM_GetShiftState [14:33:44]SAM_PROTO_GetShiftState [14:33:44]wFMCommunicate request_size=4 [14:33:44]MH_SAM_APDU [14:33:44]CAPDU: 80 13 01 00 [14:33:44]Write to MH i2c: E2 08 00 0C 03 80 13 01 00 00 00 00 00 8C [14:33:44]Write i2c OK [14:33:44]MH_I2C_Read... [14:33:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:44]Read from MH i2c: E2 [14:33:44]MH_I2C_Read... [14:33:44]Read from MH i2c: E2 0E 00 [14:33:44]MH_I2C_Read... [14:33:44]Read from MH i2c: E2 0E 00 0C 03 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 0C [14:33:44]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [14:33:44]wFMCommunicate OK [14:33:44]SAM_PROTO_GetShiftState done [14:33:44]FM_GetShiftState done [14:33:44]req_shift_opened done [14:33:44]requested_item shift.open_date is exist - process it [14:33:44]req_shift_open_date [14:33:44]req_shift_open_date done [14:33:44]produce_requested_data done [14:33:44]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164984,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [14:33:44]process_action_free close_receipt [14:33:44]json_value_free [14:33:44]json_value_free done [14:33:44]process_json_proto returns [14:33:44]Send response to host [14:33:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164984,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [14:33:44]free response buf [14:33:44]execute_script done [14:33:44]execute_script returns [14:33:44]free content buf [14:33:44]Sock 9.Close socket [14:33:44]Sock 9.Thread stoped [14:33:48]OFD Sender: No OFD packet to send [14:33:53]OFD Sender: No OFD packet to send [14:33:58]OFD Sender: No OFD packet to send [14:34:03]OFD Sender: No OFD packet to send [14:34:08]OFD Sender: No OFD packet to send [14:34:13]OFD Sender: No OFD packet to send [14:34:18]OFD Sender: No OFD packet to send [14:34:23]OFD Sender: No OFD packet to send [14:34:28]OFD Sender: No OFD packet to send [14:34:33]OFD Sender: No OFD packet to send [14:34:38]OFD Sender: No OFD packet to send [14:34:43]OFD Sender: No OFD packet to send [14:34:48]OFD Sender: No OFD packet to send [14:34:53]OFD Sender: No OFD packet to send [14:34:58]OFD Sender: No OFD packet to send [14:35:03]OFD Sender: No OFD packet to send [14:35:08]OFD Sender: No OFD packet to send [14:35:13]OFD Sender: No OFD packet to send [14:35:18]OFD Sender: No OFD packet to send [14:35:23]OFD Sender: No OFD packet to send [14:35:28]OFD Sender: No OFD packet to send [14:35:33]OFD Sender: No OFD packet to send [14:35:38]OFD Sender: No OFD packet to send [14:35:43]OFD Sender: No OFD packet to send [14:35:48]OFD Sender: No OFD packet to send [14:35:53]OFD Sender: No OFD packet to send [14:35:58]OFD Sender: No OFD packet to send [14:36:03]OFD Sender: No OFD packet to send [14:36:08]OFD Sender: No OFD packet to send [14:36:13]OFD Sender: No OFD packet to send [14:36:18]OFD Sender: No OFD packet to send [14:36:23]OFD Sender: No OFD packet to send [14:36:28]OFD Sender: No OFD packet to send [14:36:33]OFD Sender: No OFD packet to send [14:36:38]OFD Sender: No OFD packet to send [14:36:43]OFD Sender: No OFD packet to send [14:36:48]OFD Sender: No OFD packet to send [14:36:53]OFD Sender: No OFD packet to send [14:36:58]OFD Sender: No OFD packet to send [14:37:03]OFD Sender: No OFD packet to send [14:37:08]OFD Sender: No OFD packet to send [14:37:13]OFD Sender: No OFD packet to send [14:37:18]OFD Sender: No OFD packet to send [14:37:23]OFD Sender: No OFD packet to send [14:37:28]OFD Sender: No OFD packet to send [14:37:33]OFD Sender: No OFD packet to send [14:37:34]accept exits with 7 [14:37:34]New connection [14:37:34]New thread 3066805604 created [14:37:34]Thread 3066948964 joined [14:37:34]Waiting for new connection... [14:37:34] Sock 7.Parse request [14:37:34]Sock 7.Check first char [14:37:34]Sock 7.First char is OK [14:37:34]request: POST /json_proto HTTP/1.0 [14:37:34]Method: POST [14:37:34]URL: /json_proto [14:37:34]Method is POST - this is cgi request [14:37:34]url: /json_proto [14:37:34]query_string will be loaded in cgi processing [14:37:34]execute_cgi json_proto POST (null) [14:37:34]execute_cgi path=json_proto method=POST [14:37:34]POST find Content-Length [14:37:34]Host: 172.17.56.4:8080 [14:37:34]Content-Length: 682 [14:37:34]Content-Type: application/json [14:37:34] [14:37:34]POST finish read [14:37:34]Found Content-Length = 682 [14:37:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459085", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "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:37:34]execute_script... [14:37: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)459085", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "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:37:34]POST & json_proto [14:37:34]process_json_proto [14:37:34]json parsed OK: [14:37:34]protocol is kg_v1.0 [14:37:34]action value=close_receipt [14:37:34]process_action close_receipt [14:37:34]cmd_close_receipt [14:37:34]MH_GetDate [14:37:34]Write to MH i2c: F0 00 00 0D 03 FF [14:37:34]Write i2c OK [14:37:34]MH_I2C_Read... [14:37:34]Read from MH i2c: F0 [14:37:34]MH_I2C_Read... [14:37:34]Read from MH i2c: F0 09 00 [14:37:34]MH_I2C_Read... [14:37:34]Read from MH i2c: F0 09 00 0D 03 00 AE E2 93 66 C9 DC B2 64 4C [14:37:34]GetLastDocTimeStamp 1720967620 [14:37:34]current date 1720967854 [14:37:34]FM_GetShiftState [14:37:34]SAM_PROTO_GetShiftState [14:37:34]wFMCommunicate request_size=4 [14:37:34]MH_SAM_APDU [14:37:34]CAPDU: 80 13 01 00 [14:37:34]Write to MH i2c: E2 08 00 0E 03 80 13 01 00 00 00 00 00 8E [14:37:34]Write i2c OK [14:37:34]MH_I2C_Read... [14:37:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:34]Read from MH i2c: E2 [14:37:34]MH_I2C_Read... [14:37:34]Read from MH i2c: E2 0E 00 [14:37:34]MH_I2C_Read... [14:37:34]Read from MH i2c: E2 0E 00 0E 03 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 0E [14:37:34]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [14:37:34]wFMCommunicate OK [14:37:34]SAM_PROTO_GetShiftState done [14:37:34]FM_GetShiftState done [14:37:34]opened in 1720917342 [14:37:34]opened+sec_in_day 1721003742 [14:37:34]quantity*price = 100016 [14:37:34]sum+1 = 100017 [14:37: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 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 183 14.07.2024 14:37 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164985 ФПД: 267604766593990 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T143734&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164985&fm=267604766593990&tin=02508201610067®Number=0000000000090829&sum=100000 [14:37:35]StoreToDocumentArchive [14:37:35]shift 447 fd 164985 [14:37:35]save to /storage/0447/doc_00164985 [14:37:35]save last doc name /storage/0447/doc_00164985 to /storage/kkm_last_doc_name [14:37:35]save OK [14:37:35]Clear old archive folders... [14:37:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:37:35]tlvbuf is 012A96D0 [14:37:35]SAM_PROTO_ClearQueue [14:37:35]wFMCommunicate request_size=4 [14:37:35]MH_SAM_APDU [14:37:35]CAPDU: 80 09 00 00 [14:37:35]Write to MH i2c: E2 08 00 1B 03 80 09 00 00 00 00 00 00 90 [14:37:35]Write i2c OK [14:37:35]MH_I2C_Read... [14:37:35]Read from MH i2c: E2 [14:37:35]MH_I2C_Read... [14:37:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:37:35]Read from MH i2c: E2 03 00 [14:37:35]MH_I2C_Read... [14:37:35]Read from MH i2c: E2 03 00 1B 03 00 90 00 92 [14:37:35]RAPDU: 90 00 [14:37:35]wFMCommunicate OK [14:37:35]SAM_PROTO_ClearQueue done [14:37:35]KKMCreateOFDPacket [14:37:35]OFDProtocolAddRootSTLVToBuf [14:37:35]FM_MakeSignedData [14:37:35]FM_MakeSignedData [14:37:35]SAM_PROTO_SignData [14:37:35]wFMCommunicate request_size=4 [14:37:35]MH_SAM_APDU [14:37:35]CAPDU: 80 0D 01 02 [14:37:35]Write to MH i2c: E2 08 00 1C 03 80 0D 01 02 00 00 00 00 98 [14:37:35]Write i2c OK [14:37:35]MH_I2C_Read... [14:37:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:37:35]Read from MH i2c: E2 [14:37:35]MH_I2C_Read... [14:37:35]Read from MH i2c: E2 03 00 [14:37:35]MH_I2C_Read... [14:37:35]Read from MH i2c: E2 03 00 1C 03 00 90 00 93 [14:37:35]RAPDU: 90 00 [14:37:35]wFMCommunicate OK [14:37:35]wFMCommunicate request_size=255 [14:37:35]MH_SAM_APDU [14:37:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 AE E2 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 79 84 02 00 35 04 06 00 F3 [14:37:35]Write to MH i2c: E2 02 01 1D 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 AE E2 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 79 84 02 00 35 04 06 00 F3 00 00 A5 [14:37:35]Write i2c OK [14:37:35]MH_I2C_Read... [14:37:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:35]Read from MH i2c: E2 [14:37:35]MH_I2C_Read... [14:37:35]Read from MH i2c: E2 03 00 [14:37:35]MH_I2C_Read... [14:37:35]Read from MH i2c: E2 03 00 1D 03 00 90 00 94 [14:37:35]RAPDU: 90 00 [14:37:35]wFMCommunicate OK [14:37:35]wFMCommunicate request_size=10 [14:37:35]MH_SAM_APDU [14:37:35]CAPDU: 80 0D 02 02 05 62 97 0D 93 C6 [14:37:35]Write to MH i2c: E2 0D 00 1E 03 80 0D 02 02 05 00 62 97 0D 93 C6 00 00 04 [14:37:35]Write i2c OK [14:37:35]MH_I2C_Read... [14:37:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:35]Read from MH i2c: E2 [14:37:35]MH_I2C_Read... [14:37:35]Read from MH i2c: E2 03 00 [14:37:35]MH_I2C_Read... [14:37:35]Read from MH i2c: E2 03 00 1E 03 00 90 00 95 [14:37:35]RAPDU: 90 00 [14:37:35]wFMCommunicate OK [14:37:35]wFMCommunicate request_size=4 [14:37:35]MH_SAM_APDU [14:37:35]CAPDU: 80 0D 03 02 [14:37:35]Write to MH i2c: E2 08 00 1F 03 80 0D 03 02 00 00 00 00 9D [14:37:35]Write i2c OK [14:37:35]MH_I2C_Read... [14:37:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:37:35]Read from MH i2c: E2 [14:37:35]MH_I2C_Read... [14:37:35]Read from MH i2c: E2 0B 00 [14:37:35]MH_I2C_Read... [14:37:35]Read from MH i2c: E2 0B 00 1F 03 00 3F 92 A1 A4 E8 51 24 A4 90 00 B5 [14:37:35]RAPDU: 3F 92 A1 A4 E8 51 24 A4 90 00 [14:37:35]wFMCommunicate OK [14:37:35]SAM_PROTO_SignData done [14:37:35]FM_MakeSignedData done [14:37:35]CreateOFDProtocolMessage [14:37:35]wFMCommunicate request_size=4 [14:37:35]MH_SAM_APDU [14:37:35]CAPDU: 80 11 00 00 [14:37:35]Write to MH i2c: E2 08 00 20 03 80 11 00 00 00 00 00 00 9D [14:37:35]Write i2c OK [14:37:35]MH_I2C_Read... [14:37:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:35]Read from MH i2c: E2 [14:37:35]MH_I2C_Read... [14:37:35]Read from MH i2c: E2 17 00 [14:37:35]MH_I2C_Read... [14:37:35]Read from MH i2c: E2 17 00 20 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F3 [14:37:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:37:35]wFMCommunicate OK [14:37:35]CreateOFDProtocolMessage done [14:37:35]OFDSenderStorePacket 164985 [14:37:35]StoreOFDPacket docnum=164985 [14:37:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 6E 04 07 01 84 F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 AE E2 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 79 84 02 00 35 04 06 00 F3 62 97 0D 93 C6 3F 92 A1 A4 E8 51 24 A4 [14:37:35]CheckFolder [14:37:35]dirname=/storage/ofd_packets [14:37:35]CheckFolder done [14:37:35]ProducePacketName [14:37:35]name=ofd_packets/00164985 [14:37:35]NVStorageSaveData ofd_packets/00164985 [14:37:35]File name is /storage/ofd_packets/00164985 [14:37:35]Write 301 bytes [14:37:35]NVStorageSaveData done [14:37:35]OFDSenderStorePacket done [14:37:35]KKMCreateOFDPacket done [14:37:35]NVStorageSaveData kkm_last_timestamp [14:37:35]File name is /storage/kkm_last_timestamp [14:37:35]Write 4 bytes [14:37:35]NVStorageSaveData done [14:37:35]ExternCall_PrintAddStr [14:37:35]wPrintStart [14:37:35]Write to MH i2c: 01 00 00 21 03 24 [14:37:35]Write i2c OK [14:37:35]MH_I2C_Read... [14:37:35]Read from MH i2c: 01 [14:37:35]MH_I2C_Read... [14:37:35]Read from MH i2c: 01 07 00 [14:37:35]MH_I2C_Read... [14:37:35]Read from MH i2c: 01 07 00 21 03 00 00 00 00 00 FF 0F 39 [14:37:35]RasterBufferAndPrint [14:37:35]line Счет N : (1)459085 [14:37:35]line ИНН: 02508201610067 [14:37:35]line Контрольно-Кассовый Чек [14:37:35]line ПРОДАЖА [14:37:35]line ТРК (МРК, ГНК) : 22 [14:37:35]line Товар: 2710124130 [14:37:35]line Аи-92-К-5 [14:37:35]line 15.200 * 65.80 [14:37:35]line = 1000.16 [14:37:35]line НДС 12% НСП 1% [14:37:35]line > о реализуемом товаре [14:37:35]line ОКРУГЛЕНИЕ: -0.16 [14:37:35]line ИТОГО: 1000.00 [14:37:35]line Внесено: 1000.00 [14:37:35]line СДАЧА: 0.00 [14:37:35]line НСП 1% : 8.85 [14:37:35]line НДС 12% : 106.21 [14:37:35]line Наличными: 1000.00 [14:37:35]line Безнал.: 0.00 [14:37:35]line Место: АЗС № 72 "Партнер Нефть" [14:37:35]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:37:35]line СНО: Общий режим [14:37:35]line Чек 183 14.07.2024 14:37 [14:37:35]line Смена: 447 ФФД: 1.0 [14:37:35]line ЗНМ: 0300000160 [14:37:35]line РНМ: 0000000000090829 [14:37:35]line Версия ККМ: 001 [14:37:35]line ФМ: 0000000000874718 [14:37:35]line ФД: 164985 [14:37:35]line ФПД: 267604766593990 [14:37:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T143734&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164985&fm=267604766593990&tin=02508201610067®Number=0000000000090829&sum=100000 [14:37:36]OFD Sender: Processing packet 164985 [packets to send 105, broken 104] [14:37:36]ProducePacketName [14:37:36]name=ofd_packets/00164985 [14:37:36]OFD Sender: To server: pG, [14:37:36]CommunicateWithHost lk.salyk.kg:30040 [14:37:36]ConnectInit lk.salyk.kg [14:37:36]written 0, free lines is 4095 [14:37:36]Connected sock=10 [14:37:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 6E 04 07 01 84 F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 AE E2 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 79 84 02 00 35 04 06 00 F3 62 97 0D 93 C6 3F 92 A1 A4 E8 51 24 A4 [14:37:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 9E 6B 47 00 D5 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 79 84 02 00 F4 03 04 00 3C 89 93 66 B6 04 01 00 00 F2 48 48 28 DC 2D 71 CC [14:37:36]CommunicateWithHost err = 0 [14:37:36]CheckOFDResponse [14:37:36]1017 (14) - 77093643461234 [14:37:36]1041 (16) - 0000000000874718 [14:37:36]1040 (4) - 164985 [14:37:36]1012 (4) - 14.07.2024 08:15 [14:37:36]1206 (1) - 0 [14:37:36]OFD Sender: Remove packet 164985 [14:37:36]ProducePacketName [14:37:36]name=ofd_packets/00164985 [14:37:36]NVStorageDeleteData [14:37:36]Write to MH i2c: 01 00 00 4B 03 4E [14:37:36]Write i2c OK [14:37:36]MH_I2C_Read... [14:37:36]Read from MH i2c: 01 [14:37:36]MH_I2C_Read... [14:37:36]Read from MH i2c: 01 07 00 [14:37:36]MH_I2C_Read... [14:37:36]Read from MH i2c: 01 07 00 4B 03 00 00 00 00 00 09 0D 6B [14:37:36]RasterBufferAndPrint [14:37:36]line [14:37:36]line [14:37:36]line [14:37:36]line [14:37:36]line [14:37:36]written 0, free lines is 3343 [14:37:36]MH_Cut [14:37:36]Write to MH i2c: D1 01 00 52 03 01 27 [14:37:36]Write i2c OK [14:37:36]MH_I2C_Read... [14:37:36]Read from MH i2c: D1 [14:37:36]MH_I2C_Read... [14:37:36]Read from MH i2c: D1 01 00 [14:37:36]MH_I2C_Read... [14:37:36]Read from MH i2c: D1 01 00 52 03 00 26 [14:37:36]Write to MH i2c: 01 00 00 53 03 56 [14:37:36]Write i2c OK [14:37:36]MH_I2C_Read... [14:37:37]OFD Sender: No OFD packet to send [14:37:37]*** Cut start [14:37:37]*** Partial cut [14:37:37]*** CUTSNS_PIN = 1 [14:37:37]*** CUTSNS_PIN = 0 [14:37:37]*** Brake cut motor [14:37:37]Read from MH i2c: 01 [14:37:37]MH_I2C_Read... [14:37:37]*** Stop cut motor [14:37:37]*** Cut end [14:37:37]Read from MH i2c: 01 07 00 [14:37:37]MH_I2C_Read... [14:37:37]Read from MH i2c: 01 07 00 53 03 00 00 00 00 00 FF 0F 6B [14:37:37]process_action close_receipt done [14:37:37]requested_data is exist [14:37:37]produce_requested_data [14:37:37]requested_item fm.sn is exist - process it [14:37:37]wFMCommunicate request_size=4 [14:37:37]MH_SAM_APDU [14:37:37]CAPDU: 80 11 00 00 [14:37:37]Write to MH i2c: E2 08 00 54 03 80 11 00 00 00 00 00 00 D1 [14:37:37]Write i2c OK [14:37:37]MH_I2C_Read... [14:37:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:37]Read from MH i2c: E2 [14:37:37]MH_I2C_Read... [14:37:37]Read from MH i2c: E2 17 00 [14:37:37]MH_I2C_Read... [14:37:37]Read from MH i2c: E2 17 00 54 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 27 [14:37:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:37:37]wFMCommunicate OK [14:37:37]requested_item fd.num is exist - process it [14:37:37]SAM_PROTO_GetFieldsCounters [14:37:37]wFMCommunicate request_size=4 [14:37:37]MH_SAM_APDU [14:37:37]CAPDU: 80 13 00 00 [14:37:37]Write to MH i2c: E2 08 00 55 03 80 13 00 00 00 00 00 00 D4 [14:37:37]Write i2c OK [14:37:37]MH_I2C_Read... [14:37:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:37:38]Read from MH i2c: E2 [14:37:38]MH_I2C_Read... [14:37:38]Read from MH i2c: E2 62 00 [14:37:38]MH_I2C_Read... [14:37:38]Read from MH i2c: E2 62 00 55 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 79 84 02 00 0E 04 04 00 BF 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 DF [14:37:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 79 84 02 00 0E 04 04 00 BF 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 [14:37:38]wFMCommunicate OK [14:37:38]SAM_PROTO_GetFieldsCounters done [14:37:38]requested_item shift.num is exist - process it [14:37:38]requested_item shift.opened is exist - process it [14:37:38]req_shift_opened [14:37:38]FM_GetShiftState [14:37:38]SAM_PROTO_GetShiftState [14:37:38]wFMCommunicate request_size=4 [14:37:38]MH_SAM_APDU [14:37:38]CAPDU: 80 13 01 00 [14:37:38]Write to MH i2c: E2 08 00 56 03 80 13 01 00 00 00 00 00 D6 [14:37:38]Write i2c OK [14:37:38]MH_I2C_Read... [14:37:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:38]Read from MH i2c: E2 [14:37:38]MH_I2C_Read... [14:37:38]Read from MH i2c: E2 0E 00 [14:37:38]MH_I2C_Read... [14:37:38]Read from MH i2c: E2 0E 00 56 03 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 56 [14:37:38]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [14:37:38]wFMCommunicate OK [14:37:38]SAM_PROTO_GetShiftState done [14:37:38]FM_GetShiftState done [14:37:38]req_shift_opened done [14:37:38]requested_item shift.open_date is exist - process it [14:37:38]req_shift_open_date [14:37:38]req_shift_open_date done [14:37:38]produce_requested_data done [14:37:38]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164985,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [14:37:38]process_action_free close_receipt [14:37:38]json_value_free [14:37:38]json_value_free done [14:37:38]process_json_proto returns [14:37:38]Send response to host [14:37:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164985,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [14:37:38]free response buf [14:37:38]execute_script done [14:37:38]execute_script returns [14:37:38]free content buf [14:37:38]Sock 7.Close socket [14:37:38]Sock 7.Thread stoped [14:37:42]OFD Sender: No OFD packet to send [14:37:46]accept exits with 9 [14:37:46]New connection [14:37:46]New thread 3066948964 created [14:37:46]Thread 3066805604 joined [14:37:46]Waiting for new connection... [14:37:46] Sock 9.Parse request [14:37:46]Sock 9.Check first char [14:37:46]Sock 9.First char is OK [14:37:46]request: POST /json_proto HTTP/1.0 [14:37:46]Method: POST [14:37:46]URL: /json_proto [14:37:46]Method is POST - this is cgi request [14:37:46]url: /json_proto [14:37:46]query_string will be loaded in cgi processing [14:37:46]execute_cgi json_proto POST (null) [14:37:46]execute_cgi path=json_proto method=POST [14:37:46]POST find Content-Length [14:37:46]Host: 172.17.56.4:8080 [14:37:46]Content-Length: 677 [14:37:46]Content-Type: application/json [14:37:46] [14:37:46]POST finish read [14:37:46]Found Content-Length = 677 [14:37:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459086", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.840, "sum" : 450.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:37:46]execute_script... [14:37: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)459086", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.840, "sum" : 450.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:37:46]POST & json_proto [14:37:46]process_json_proto [14:37:46]json parsed OK: [14:37:46]protocol is kg_v1.0 [14:37:46]action value=close_receipt [14:37:46]process_action close_receipt [14:37:46]cmd_close_receipt [14:37:46]MH_GetDate [14:37:46]Write to MH i2c: F0 00 00 57 03 49 [14:37:46]Write i2c OK [14:37:46]MH_I2C_Read... [14:37:46]Read from MH i2c: F0 [14:37:46]MH_I2C_Read... [14:37:46]Read from MH i2c: F0 09 00 [14:37:46]MH_I2C_Read... [14:37:46]Read from MH i2c: F0 09 00 57 03 00 BA E2 93 66 C9 DC B2 64 A2 [14:37:46]GetLastDocTimeStamp 1720967854 [14:37:46]current date 1720967866 [14:37:46]FM_GetShiftState [14:37:46]SAM_PROTO_GetShiftState [14:37:46]wFMCommunicate request_size=4 [14:37:46]MH_SAM_APDU [14:37:46]CAPDU: 80 13 01 00 [14:37:46]Write to MH i2c: E2 08 00 58 03 80 13 01 00 00 00 00 00 D8 [14:37:46]Write i2c OK [14:37:46]MH_I2C_Read... [14:37:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:46]Read from MH i2c: E2 [14:37:46]MH_I2C_Read... [14:37:46]Read from MH i2c: E2 0E 00 [14:37:46]MH_I2C_Read... [14:37:46]Read from MH i2c: E2 0E 00 58 03 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 58 [14:37:46]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [14:37:46]wFMCommunicate OK [14:37:46]SAM_PROTO_GetShiftState done [14:37:46]FM_GetShiftState done [14:37:46]opened in 1720917342 [14:37:46]opened+sec_in_day 1721003742 [14:37:46]quantity*price = 45007 [14:37:46]sum+1 = 45008 [14:37:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 450.00 Внесено: 450.00 СДАЧА: 0.00 НСП 1% : 3.98 НДС 12% : 47.79 Наличными: 450.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 184 14.07.2024 14:37 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164986 ФПД: 161935619735983 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T143746&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164986&fm=161935619735983&tin=02508201610067®Number=0000000000090829&sum=45000 [14:37:47]StoreToDocumentArchive [14:37:47]shift 447 fd 164986 [14:37:47]save to /storage/0447/doc_00164986 [14:37:47]save last doc name /storage/0447/doc_00164986 to /storage/kkm_last_doc_name [14:37:47]save OK [14:37:47]Clear old archive folders... [14:37:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:37:47]tlvbuf is 01309960 [14:37:47]SAM_PROTO_ClearQueue [14:37:47]wFMCommunicate request_size=4 [14:37:47]MH_SAM_APDU [14:37:47]CAPDU: 80 09 00 00 [14:37:47]Write to MH i2c: E2 08 00 65 03 80 09 00 00 00 00 00 00 DA [14:37:47]Write i2c OK [14:37:47]MH_I2C_Read... [14:37:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:37:47]Read from MH i2c: E2 [14:37:47]MH_I2C_Read... [14:37:47]Read from MH i2c: E2 03 00 [14:37:47]MH_I2C_Read... [14:37:47]Read from MH i2c: E2 03 00 65 03 00 90 00 DC [14:37:47]RAPDU: 90 00 [14:37:47]wFMCommunicate OK [14:37:47]SAM_PROTO_ClearQueue done [14:37:47]KKMCreateOFDPacket [14:37:47]OFDProtocolAddRootSTLVToBuf [14:37:47]FM_MakeSignedData [14:37:47]FM_MakeSignedData [14:37:47]SAM_PROTO_SignData [14:37:47]wFMCommunicate request_size=4 [14:37:47]MH_SAM_APDU [14:37:47]CAPDU: 80 0D 01 02 [14:37:47]Write to MH i2c: E2 08 00 66 03 80 0D 01 02 00 00 00 00 E2 [14:37:47]Write i2c OK [14:37:47]MH_I2C_Read... [14:37:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:37:47]Read from MH i2c: E2 [14:37:47]MH_I2C_Read... [14:37:47]Read from MH i2c: E2 03 00 [14:37:47]MH_I2C_Read... [14:37:47]Read from MH i2c: E2 03 00 66 03 00 90 00 DD [14:37:47]RAPDU: 90 00 [14:37:47]wFMCommunicate OK [14:37:47]wFMCommunicate request_size=255 [14:37:47]MH_SAM_APDU [14:37:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 1A 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 CF AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 BA E2 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7A 84 02 00 35 04 06 00 93 [14:37:47]Write to MH i2c: E2 02 01 67 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 1A 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 CF AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 BA E2 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7A 84 02 00 35 04 06 00 93 00 00 E9 [14:37:47]Write i2c OK [14:37:47]MH_I2C_Read... [14:37:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:47]Read from MH i2c: E2 [14:37:47]MH_I2C_Read... [14:37:47]Read from MH i2c: E2 03 00 [14:37:47]MH_I2C_Read... [14:37:47]Read from MH i2c: E2 03 00 67 03 00 90 00 DE [14:37:47]RAPDU: 90 00 [14:37:47]wFMCommunicate OK [14:37:47]wFMCommunicate request_size=10 [14:37:47]MH_SAM_APDU [14:37:47]CAPDU: 80 0D 02 02 05 47 93 17 41 AF [14:37:47]Write to MH i2c: E2 0D 00 68 03 80 0D 02 02 05 00 47 93 17 41 AF 00 00 D0 [14:37:47]Write i2c OK [14:37:47]MH_I2C_Read... [14:37:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:47]Read from MH i2c: E2 [14:37:47]MH_I2C_Read... [14:37:47]Read from MH i2c: E2 03 00 [14:37:47]MH_I2C_Read... [14:37:47]Read from MH i2c: E2 03 00 68 03 00 90 00 DF [14:37:47]RAPDU: 90 00 [14:37:47]wFMCommunicate OK [14:37:47]wFMCommunicate request_size=4 [14:37:47]MH_SAM_APDU [14:37:47]CAPDU: 80 0D 03 02 [14:37:47]Write to MH i2c: E2 08 00 69 03 80 0D 03 02 00 00 00 00 E7 [14:37:47]Write i2c OK [14:37:47]MH_I2C_Read... [14:37:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:37:47]Read from MH i2c: E2 [14:37:47]MH_I2C_Read... [14:37:47]Read from MH i2c: E2 0B 00 [14:37:47]MH_I2C_Read... [14:37:47]Read from MH i2c: E2 0B 00 69 03 00 4E 3A DE BB 10 3E 99 04 90 00 F4 [14:37:47]RAPDU: 4E 3A DE BB 10 3E 99 04 90 00 [14:37:47]wFMCommunicate OK [14:37:47]SAM_PROTO_SignData done [14:37:47]FM_MakeSignedData done [14:37:47]CreateOFDProtocolMessage [14:37:47]wFMCommunicate request_size=4 [14:37:47]MH_SAM_APDU [14:37:47]CAPDU: 80 11 00 00 [14:37:47]Write to MH i2c: E2 08 00 6A 03 80 11 00 00 00 00 00 00 E7 [14:37:47]Write i2c OK [14:37:47]MH_I2C_Read... [14:37:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:48]Read from MH i2c: E2 [14:37:48]MH_I2C_Read... [14:37:48]Read from MH i2c: E2 17 00 [14:37:48]MH_I2C_Read... [14:37:48]Read from MH i2c: E2 17 00 6A 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 3D [14:37:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:37:48]wFMCommunicate OK [14:37:48]CreateOFDProtocolMessage done [14:37:48]OFDSenderStorePacket 164986 [14:37:48]StoreOFDPacket docnum=164986 [14:37:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 92 B6 07 01 54 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 35 FF 03 08 00 03 B8 1A 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 CF AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 BA E2 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7A 84 02 00 35 04 06 00 93 47 93 17 41 AF 4E 3A DE BB 10 3E 99 04 [14:37:48]CheckFolder [14:37:48]dirname=/storage/ofd_packets [14:37:48]CheckFolder done [14:37:48]ProducePacketName [14:37:48]name=ofd_packets/00164986 [14:37:48]NVStorageSaveData ofd_packets/00164986 [14:37:48]File name is /storage/ofd_packets/00164986 [14:37:48]Write 301 bytes [14:37:48]NVStorageSaveData done [14:37:48]OFDSenderStorePacket done [14:37:48]KKMCreateOFDPacket done [14:37:48]NVStorageSaveData kkm_last_timestamp [14:37:48]File name is /storage/kkm_last_timestamp [14:37:48]Write 4 bytes [14:37:48]NVStorageSaveData done [14:37:48]ExternCall_PrintAddStr [14:37:48]wPrintStart [14:37:48]Write to MH i2c: 01 00 00 6B 03 6E [14:37:48]Write i2c OK [14:37:48]MH_I2C_Read... [14:37:48]Read from MH i2c: 01 [14:37:48]MH_I2C_Read... [14:37:48]Read from MH i2c: 01 07 00 [14:37:48]MH_I2C_Read... [14:37:48]Read from MH i2c: 01 07 00 6B 03 00 00 00 00 00 FF 0F 83 [14:37:48]RasterBufferAndPrint [14:37:48]line Счет N : (1)459086 [14:37:48]line ИНН: 02508201610067 [14:37:48]line Контрольно-Кассовый Чек [14:37:48]line ПРОДАЖА [14:37:48]line ТРК (МРК, ГНК) : 12 [14:37:48]line Товар: 2710124130 [14:37:48]line Аи-92-К-5 [14:37:48]line 6.840 * 65.80 [14:37:48]line = 450.07 [14:37:48]line НДС 12% НСП 1% [14:37:48]line > о реализуемом товаре [14:37:48]line ОКРУГЛЕНИЕ: -0.07 [14:37:48]line ИТОГО: 450.00 [14:37:48]line Внесено: 450.00 [14:37:48]line СДАЧА: 0.00 [14:37:48]line НСП 1% : 3.98 [14:37:48]line НДС 12% : 47.79 [14:37:48]line Наличными: 450.00 [14:37:48]line Безнал.: 0.00 [14:37:48]line Место: АЗС № 72 "Партнер Нефть" [14:37:48]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:37:48]line СНО: Общий режим [14:37:48]line Чек 184 14.07.2024 14:37 [14:37:48]line Смена: 447 ФФД: 1.0 [14:37:48]line ЗНМ: 0300000160 [14:37:48]line РНМ: 0000000000090829 [14:37:48]line Версия ККМ: 001 [14:37:48]line ФМ: 0000000000874718 [14:37:48]line ФД: 164986 [14:37:48]line ФПД: 161935619735983 [14:37:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T143746&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164986&fm=161935619735983&tin=02508201610067®Number=0000000000090829&sum=45000 [14:37:48]OFD Sender: Processing packet 164986 [packets to send 105, broken 104] [14:37:48]ProducePacketName [14:37:48]name=ofd_packets/00164986 [14:37:48]OFD Sender: To server: pG, [14:37:48]CommunicateWithHost lk.salyk.kg:30040 [14:37:48]ConnectInit lk.salyk.kg [14:37:48]written 0, free lines is 4095 [14:37:48]Connected sock=10 [14:37:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 92 B6 07 01 54 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 35 FF 03 08 00 03 B8 1A 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 CF AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 BA E2 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7A 84 02 00 35 04 06 00 93 47 93 17 41 AF 4E 3A DE BB 10 3E 99 04 [14:37:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 A0 69 47 00 59 01 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7A 84 02 00 F4 03 04 00 48 89 93 66 B6 04 01 00 00 14 A3 B0 1B 3B 22 5F 7B [14:37:48]CommunicateWithHost err = 0 [14:37:48]CheckOFDResponse [14:37:48]1017 (14) - 77093643461234 [14:37:48]1041 (16) - 0000000000874718 [14:37:48]1040 (4) - 164986 [14:37:48]1012 (4) - 14.07.2024 08:16 [14:37:48]1206 (1) - 0 [14:37:48]OFD Sender: Remove packet 164986 [14:37:48]ProducePacketName [14:37:48]name=ofd_packets/00164986 [14:37:48]NVStorageDeleteData [14:37:48]Write to MH i2c: 01 00 00 95 03 98 [14:37:48]Write i2c OK [14:37:48]MH_I2C_Read... [14:37:48]Read from MH i2c: 01 [14:37:48]MH_I2C_Read... [14:37:48]Read from MH i2c: 01 07 00 [14:37:48]MH_I2C_Read... [14:37:48]Read from MH i2c: 01 07 00 95 03 00 00 00 00 00 02 0D AE [14:37:48]RasterBufferAndPrint [14:37:48]line [14:37:48]line [14:37:48]line [14:37:48]line [14:37:48]line [14:37:48]written 0, free lines is 3336 [14:37:48]MH_Cut [14:37:48]Write to MH i2c: D1 01 00 9C 03 01 71 [14:37:48]Write i2c OK [14:37:48]MH_I2C_Read... [14:37:48]Read from MH i2c: D1 [14:37:48]MH_I2C_Read... [14:37:48]Read from MH i2c: D1 01 00 [14:37:48]MH_I2C_Read... [14:37:48]Read from MH i2c: D1 01 00 9C 03 00 70 [14:37:48]Write to MH i2c: 01 00 00 9D 03 A0 [14:37:48]Write i2c OK [14:37:48]MH_I2C_Read... [14:37:49]OFD Sender: No OFD packet to send [14:37:49]*** Cut start [14:37:49]*** Partial cut [14:37:49]*** CUTSNS_PIN = 1 [14:37:49]*** CUTSNS_PIN = 0 [14:37:49]*** Brake cut motor [14:37:50]Read from MH i2c: 01 [14:37:50]MH_I2C_Read... [14:37:50]*** Stop cut motor [14:37:50]*** Cut end [14:37:50]Read from MH i2c: 01 07 00 [14:37:50]MH_I2C_Read... [14:37:50]Read from MH i2c: 01 07 00 9D 03 00 00 00 00 00 FF 0F B5 [14:37:50]process_action close_receipt done [14:37:50]requested_data is exist [14:37:50]produce_requested_data [14:37:50]requested_item fm.sn is exist - process it [14:37:50]wFMCommunicate request_size=4 [14:37:50]MH_SAM_APDU [14:37:50]CAPDU: 80 11 00 00 [14:37:50]Write to MH i2c: E2 08 00 9E 03 80 11 00 00 00 00 00 00 1B [14:37:50]Write i2c OK [14:37:50]MH_I2C_Read... [14:37:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:50]Read from MH i2c: E2 [14:37:50]MH_I2C_Read... [14:37:50]Read from MH i2c: E2 17 00 [14:37:50]MH_I2C_Read... [14:37:50]Read from MH i2c: E2 17 00 9E 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 71 [14:37:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:37:50]wFMCommunicate OK [14:37:50]requested_item fd.num is exist - process it [14:37:50]SAM_PROTO_GetFieldsCounters [14:37:50]wFMCommunicate request_size=4 [14:37:50]MH_SAM_APDU [14:37:50]CAPDU: 80 13 00 00 [14:37:50]Write to MH i2c: E2 08 00 9F 03 80 13 00 00 00 00 00 00 1E [14:37:50]Write i2c OK [14:37:50]MH_I2C_Read... [14:37:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:37:50]Read from MH i2c: E2 [14:37:50]MH_I2C_Read... [14:37:50]Read from MH i2c: E2 62 00 [14:37:50]MH_I2C_Read... [14:37:50]Read from MH i2c: E2 62 00 9F 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 7A 84 02 00 0E 04 04 00 BF 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 2D [14:37:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 7A 84 02 00 0E 04 04 00 BF 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 [14:37:50]wFMCommunicate OK [14:37:50]SAM_PROTO_GetFieldsCounters done [14:37:50]requested_item shift.num is exist - process it [14:37:50]requested_item shift.opened is exist - process it [14:37:50]req_shift_opened [14:37:50]FM_GetShiftState [14:37:50]SAM_PROTO_GetShiftState [14:37:50]wFMCommunicate request_size=4 [14:37:50]MH_SAM_APDU [14:37:50]CAPDU: 80 13 01 00 [14:37:50]Write to MH i2c: E2 08 00 A0 03 80 13 01 00 00 00 00 00 20 [14:37:50]Write i2c OK [14:37:50]MH_I2C_Read... [14:37:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:50]Read from MH i2c: E2 [14:37:50]MH_I2C_Read... [14:37:50]Read from MH i2c: E2 0E 00 [14:37:50]MH_I2C_Read... [14:37:50]Read from MH i2c: E2 0E 00 A0 03 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 A0 [14:37:50]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [14:37:50]wFMCommunicate OK [14:37:50]SAM_PROTO_GetShiftState done [14:37:50]FM_GetShiftState done [14:37:50]req_shift_opened done [14:37:50]requested_item shift.open_date is exist - process it [14:37:50]req_shift_open_date [14:37:50]req_shift_open_date done [14:37:50]produce_requested_data done [14:37:50]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164986,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [14:37:50]process_action_free close_receipt [14:37:50]json_value_free [14:37:50]json_value_free done [14:37:50]process_json_proto returns [14:37:50]Send response to host [14:37:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164986,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [14:37:50]free response buf [14:37:50]execute_script done [14:37:50]execute_script returns [14:37:50]free content buf [14:37:50]Sock 9.Close socket [14:37:50]Sock 9.Thread stoped [14:37:54]OFD Sender: No OFD packet to send [14:37:59]OFD Sender: No OFD packet to send [14:38:03]accept exits with 7 [14:38:03]New connection [14:38:03]New thread 3066805604 created [14:38:03]Thread 3066948964 joined [14:38:03]Waiting for new connection... [14:38:03] Sock 7.Parse request [14:38:03]Sock 7.Check first char [14:38:03]Sock 7.First char is OK [14:38:03]request: POST /json_proto HTTP/1.0 [14:38:03]Method: POST [14:38:03]URL: /json_proto [14:38:03]Method is POST - this is cgi request [14:38:03]url: /json_proto [14:38:03]query_string will be loaded in cgi processing [14:38:03]execute_cgi json_proto POST (null) [14:38:03]execute_cgi path=json_proto method=POST [14:38:03]POST find Content-Length [14:38:03]Host: 172.17.56.4:8080 [14:38:03]Content-Length: 674 [14:38:03]Content-Type: application/json [14:38:03] [14:38:03]POST finish read [14:38:03]Found Content-Length = 674 [14:38:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459087", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 6.960, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:03]execute_script... [14:38: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)459087", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 6.960, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:03]POST & json_proto [14:38:03]process_json_proto [14:38:03]json parsed OK: [14:38:03]protocol is kg_v1.0 [14:38:03]action value=close_receipt [14:38:03]process_action close_receipt [14:38:03]cmd_close_receipt [14:38:03]MH_GetDate [14:38:03]Write to MH i2c: F0 00 00 A1 03 93 [14:38:03]Write i2c OK [14:38:03]MH_I2C_Read... [14:38:03]Read from MH i2c: F0 [14:38:03]MH_I2C_Read... [14:38:03]Read from MH i2c: F0 09 00 [14:38:03]MH_I2C_Read... [14:38:03]Read from MH i2c: F0 09 00 A1 03 00 CB E2 93 66 C9 DC B2 64 FD [14:38:03]GetLastDocTimeStamp 1720967866 [14:38:03]current date 1720967883 [14:38:03]FM_GetShiftState [14:38:03]SAM_PROTO_GetShiftState [14:38:03]wFMCommunicate request_size=4 [14:38:03]MH_SAM_APDU [14:38:03]CAPDU: 80 13 01 00 [14:38:03]Write to MH i2c: E2 08 00 A2 03 80 13 01 00 00 00 00 00 22 [14:38:03]Write i2c OK [14:38:03]MH_I2C_Read... [14:38:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:03]Read from MH i2c: E2 [14:38:03]MH_I2C_Read... [14:38:03]Read from MH i2c: E2 0E 00 [14:38:03]MH_I2C_Read... [14:38:03]Read from MH i2c: E2 0E 00 A2 03 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 A2 [14:38:03]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [14:38:03]wFMCommunicate OK [14:38:03]SAM_PROTO_GetShiftState done [14:38:03]FM_GetShiftState done [14:38:03]opened in 1720917342 [14:38:03]opened+sec_in_day 1721003742 [14:38:03]quantity*price = 50042 [14:38:03]sum+1 = 50043 [14:38:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 185 14.07.2024 14:38 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164987 ФПД: 124365882301934 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T143803&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164987&fm=124365882301934&tin=02508201610067®Number=0000000000090829&sum=50000 [14:38:04]StoreToDocumentArchive [14:38:04]shift 447 fd 164987 [14:38:04]save to /storage/0447/doc_00164987 [14:38:04]save last doc name /storage/0447/doc_00164987 to /storage/kkm_last_doc_name [14:38:04]save OK [14:38:04]Clear old archive folders... [14:38:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:38:04]tlvbuf is 012FCB30 [14:38:04]SAM_PROTO_ClearQueue [14:38:04]wFMCommunicate request_size=4 [14:38:04]MH_SAM_APDU [14:38:04]CAPDU: 80 09 00 00 [14:38:04]Write to MH i2c: E2 08 00 AF 03 80 09 00 00 00 00 00 00 24 [14:38:04]Write i2c OK [14:38:04]MH_I2C_Read... [14:38:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:38:04]Read from MH i2c: E2 [14:38:04]MH_I2C_Read... [14:38:04]Read from MH i2c: E2 03 00 [14:38:04]MH_I2C_Read... [14:38:04]Read from MH i2c: E2 03 00 AF 03 00 90 00 26 [14:38:04]RAPDU: 90 00 [14:38:04]wFMCommunicate OK [14:38:04]SAM_PROTO_ClearQueue done [14:38:04]KKMCreateOFDPacket [14:38:04]OFDProtocolAddRootSTLVToBuf [14:38:04]FM_MakeSignedData [14:38:04]FM_MakeSignedData [14:38:04]SAM_PROTO_SignData [14:38:04]wFMCommunicate request_size=4 [14:38:04]MH_SAM_APDU [14:38:04]CAPDU: 80 0D 01 02 [14:38:04]Write to MH i2c: E2 08 00 B0 03 80 0D 01 02 00 00 00 00 2C [14:38:04]Write i2c OK [14:38:04]MH_I2C_Read... [14:38:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:38:04]Read from MH i2c: E2 [14:38:04]MH_I2C_Read... [14:38:04]Read from MH i2c: E2 03 00 [14:38:04]MH_I2C_Read... [14:38:04]Read from MH i2c: E2 03 00 B0 03 00 90 00 27 [14:38:04]RAPDU: 90 00 [14:38:04]wFMCommunicate OK [14:38:04]wFMCommunicate request_size=255 [14:38:04]MH_SAM_APDU [14:38: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 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 CB E2 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7B 84 02 00 35 04 06 00 71 1C 30 3C [14:38:04]Write to MH i2c: E2 02 01 B1 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 CB E2 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7B 84 02 00 35 04 06 00 71 1C 30 3C 00 00 1A [14:38:04]Write i2c OK [14:38:04]MH_I2C_Read... [14:38:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:04]Read from MH i2c: E2 [14:38:04]MH_I2C_Read... [14:38:04]Read from MH i2c: E2 03 00 [14:38:04]MH_I2C_Read... [14:38:04]Read from MH i2c: E2 03 00 B1 03 00 90 00 28 [14:38:04]RAPDU: 90 00 [14:38:04]wFMCommunicate OK [14:38:04]wFMCommunicate request_size=7 [14:38:04]MH_SAM_APDU [14:38:04]CAPDU: 80 0D 02 02 02 9D EE [14:38:04]Write to MH i2c: E2 0A 00 B2 03 80 0D 02 02 02 00 9D EE 00 00 BE [14:38:04]Write i2c OK [14:38:04]MH_I2C_Read... [14:38:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:04]Read from MH i2c: E2 [14:38:04]MH_I2C_Read... [14:38:04]Read from MH i2c: E2 03 00 [14:38:04]MH_I2C_Read... [14:38:04]Read from MH i2c: E2 03 00 B2 03 00 90 00 29 [14:38:04]RAPDU: 90 00 [14:38:04]wFMCommunicate OK [14:38:04]wFMCommunicate request_size=4 [14:38:04]MH_SAM_APDU [14:38:04]CAPDU: 80 0D 03 02 [14:38:04]Write to MH i2c: E2 08 00 B3 03 80 0D 03 02 00 00 00 00 31 [14:38:04]Write i2c OK [14:38:04]MH_I2C_Read... [14:38:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:38:05]Read from MH i2c: E2 [14:38:05]MH_I2C_Read... [14:38:05]Read from MH i2c: E2 0B 00 [14:38:05]MH_I2C_Read... [14:38:05]Read from MH i2c: E2 0B 00 B3 03 00 B5 C9 62 3C CA BF DD 5E 90 00 12 [14:38:05]RAPDU: B5 C9 62 3C CA BF DD 5E 90 00 [14:38:05]wFMCommunicate OK [14:38:05]SAM_PROTO_SignData done [14:38:05]FM_MakeSignedData done [14:38:05]CreateOFDProtocolMessage [14:38:05]wFMCommunicate request_size=4 [14:38:05]MH_SAM_APDU [14:38:05]CAPDU: 80 11 00 00 [14:38:05]Write to MH i2c: E2 08 00 B4 03 80 11 00 00 00 00 00 00 31 [14:38:05]Write i2c OK [14:38:05]MH_I2C_Read... [14:38:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:05]Read from MH i2c: E2 [14:38:05]MH_I2C_Read... [14:38:05]Read from MH i2c: E2 17 00 [14:38:05]MH_I2C_Read... [14:38:05]Read from MH i2c: E2 17 00 B4 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 87 [14:38:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:38:05]wFMCommunicate OK [14:38:05]CreateOFDProtocolMessage done [14:38:05]OFDSenderStorePacket 164987 [14:38:05]StoreOFDPacket docnum=164987 [14:38:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 BC 13 04 01 CD 13 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 CB E2 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7B 84 02 00 35 04 06 00 71 1C 30 3C 9D EE B5 C9 62 3C CA BF DD 5E [14:38:05]CheckFolder [14:38:05]dirname=/storage/ofd_packets [14:38:05]CheckFolder done [14:38:05]ProducePacketName [14:38:05]name=ofd_packets/00164987 [14:38:05]NVStorageSaveData ofd_packets/00164987 [14:38:05]File name is /storage/ofd_packets/00164987 [14:38:05]Write 298 bytes [14:38:05]NVStorageSaveData done [14:38:05]OFDSenderStorePacket done [14:38:05]KKMCreateOFDPacket done [14:38:05]NVStorageSaveData kkm_last_timestamp [14:38:05]File name is /storage/kkm_last_timestamp [14:38:05]Write 4 bytes [14:38:05]NVStorageSaveData done [14:38:05]ExternCall_PrintAddStr [14:38:05]wPrintStart [14:38:05]Write to MH i2c: 01 00 00 B5 03 B8 [14:38:05]Write i2c OK [14:38:05]MH_I2C_Read... [14:38:05]Read from MH i2c: 01 [14:38:05]MH_I2C_Read... [14:38:05]Read from MH i2c: 01 07 00 [14:38:05]MH_I2C_Read... [14:38:05]Read from MH i2c: 01 07 00 B5 03 00 00 00 00 00 FF 0F CD [14:38:05]RasterBufferAndPrint [14:38:05]line Счет N : (1)459087 [14:38:05]line ИНН: 02508201610067 [14:38:05]line Контрольно-Кассовый Чек [14:38:05]line ПРОДАЖА [14:38:05]line ТРК (МРК, ГНК) : 21 [14:38:05]line Товар: 2710194210 [14:38:05]line ДТ-К-5 [14:38:05]line 6.960 * 71.90 [14:38:05]line = 500.42 [14:38:05]line НДС 12% НСП 1% [14:38:05]line > о реализуемом товаре [14:38:05]line ОКРУГЛЕНИЕ: -0.42 [14:38:05]line ИТОГО: 500.00 [14:38:05]line Внесено: 500.00 [14:38:05]line СДАЧА: 0.00 [14:38:05]line НСП 1% : 4.43 [14:38:05]line НДС 12% : 53.14 [14:38:05]line Наличными: 500.00 [14:38:05]line Безнал.: 0.00 [14:38:05]line Место: АЗС № 72 "Партнер Нефть" [14:38:05]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:38:05]line СНО: Общий режим [14:38:05]line Чек 185 14.07.2024 14:38 [14:38:05]line Смена: 447 ФФД: 1.0 [14:38:05]line ЗНМ: 0300000160 [14:38:05]line РНМ: 0000000000090829 [14:38:05]line Версия ККМ: 001 [14:38:05]line ФМ: 0000000000874718 [14:38:05]line ФД: 164987 [14:38:05]line ФПД: 124365882301934 [14:38:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T143803&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164987&fm=124365882301934&tin=02508201610067®Number=0000000000090829&sum=50000 [14:38:05]OFD Sender: Processing packet 164987 [packets to send 105, broken 104] [14:38:05]ProducePacketName [14:38:05]name=ofd_packets/00164987 [14:38:05]OFD Sender: To server: pG, [14:38:05]CommunicateWithHost lk.salyk.kg:30040 [14:38:05]ConnectInit lk.salyk.kg [14:38:05]written 0, free lines is 4095 [14:38:05]Connected sock=10 [14:38:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 BC 13 04 01 CD 13 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 CB E2 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7B 84 02 00 35 04 06 00 71 1C 30 3C 9D EE B5 C9 62 3C CA BF DD 5E [14:38:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 2E B2 47 00 54 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7B 84 02 00 F4 03 04 00 59 89 93 66 B6 04 01 00 00 4E 48 8E EB 16 A7 55 EC [14:38:05]CommunicateWithHost err = 0 [14:38:05]CheckOFDResponse [14:38:05]1017 (14) - 77093643461234 [14:38:05]1041 (16) - 0000000000874718 [14:38:05]1040 (4) - 164987 [14:38:05]1012 (4) - 14.07.2024 08:16 [14:38:05]1206 (1) - 0 [14:38:05]OFD Sender: Remove packet 164987 [14:38:05]ProducePacketName [14:38:05]name=ofd_packets/00164987 [14:38:05]NVStorageDeleteData [14:38:05]Write to MH i2c: 01 00 00 DF 03 E2 [14:38:05]Write i2c OK [14:38:05]MH_I2C_Read... [14:38:05]Read from MH i2c: 01 [14:38:05]MH_I2C_Read... [14:38:05]Read from MH i2c: 01 07 00 [14:38:05]MH_I2C_Read... [14:38:05]Read from MH i2c: 01 07 00 DF 03 00 00 00 00 00 0A 0D 00 [14:38:05]RasterBufferAndPrint [14:38:05]line [14:38:05]line [14:38:05]line [14:38:05]line [14:38:05]line [14:38:05]written 0, free lines is 3344 [14:38:05]MH_Cut [14:38:05]Write to MH i2c: D1 01 00 E6 03 01 BB [14:38:05]Write i2c OK [14:38:05]MH_I2C_Read... [14:38:05]Read from MH i2c: D1 [14:38:05]MH_I2C_Read... [14:38:05]Read from MH i2c: D1 01 00 [14:38:05]MH_I2C_Read... [14:38:05]Read from MH i2c: D1 01 00 E6 03 00 BA [14:38:05]Write to MH i2c: 01 00 00 E7 03 EA [14:38:05]Write i2c OK [14:38:05]MH_I2C_Read... [14:38:06]OFD Sender: No OFD packet to send [14:38:06]*** Cut start [14:38:06]*** Partial cut [14:38:06]*** CUTSNS_PIN = 1 [14:38:06]*** CUTSNS_PIN = 0 [14:38:06]*** Brake cut motor [14:38:07]Read from MH i2c: 01 [14:38:07]MH_I2C_Read... [14:38:07]*** Stop cut motor [14:38:07]*** Cut end [14:38:07]Read from MH i2c: 01 07 00 [14:38:07]MH_I2C_Read... [14:38:07]Read from MH i2c: 01 07 00 E7 03 00 00 00 00 00 FF 0F FF [14:38:07]process_action close_receipt done [14:38:07]requested_data is exist [14:38:07]produce_requested_data [14:38:07]requested_item fm.sn is exist - process it [14:38:07]wFMCommunicate request_size=4 [14:38:07]MH_SAM_APDU [14:38:07]CAPDU: 80 11 00 00 [14:38:07]Write to MH i2c: E2 08 00 E8 03 80 11 00 00 00 00 00 00 65 [14:38:07]Write i2c OK [14:38:07]MH_I2C_Read... [14:38:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:07]Read from MH i2c: E2 [14:38:07]MH_I2C_Read... [14:38:07]Read from MH i2c: E2 17 00 [14:38:07]MH_I2C_Read... [14:38:07]Read from MH i2c: E2 17 00 E8 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 BB [14:38:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:38:07]wFMCommunicate OK [14:38:07]requested_item fd.num is exist - process it [14:38:07]SAM_PROTO_GetFieldsCounters [14:38:07]wFMCommunicate request_size=4 [14:38:07]MH_SAM_APDU [14:38:07]CAPDU: 80 13 00 00 [14:38:07]Write to MH i2c: E2 08 00 E9 03 80 13 00 00 00 00 00 00 68 [14:38:07]Write i2c OK [14:38:07]MH_I2C_Read... [14:38:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:38:07]Read from MH i2c: E2 [14:38:07]MH_I2C_Read... [14:38:07]Read from MH i2c: E2 62 00 [14:38:07]MH_I2C_Read... [14:38:07]Read from MH i2c: E2 62 00 E9 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 7B 84 02 00 0E 04 04 00 BF 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 7B [14:38:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 7B 84 02 00 0E 04 04 00 BF 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 [14:38:07]wFMCommunicate OK [14:38:07]SAM_PROTO_GetFieldsCounters done [14:38:07]requested_item shift.num is exist - process it [14:38:07]requested_item shift.opened is exist - process it [14:38:07]req_shift_opened [14:38:07]FM_GetShiftState [14:38:07]SAM_PROTO_GetShiftState [14:38:07]wFMCommunicate request_size=4 [14:38:07]MH_SAM_APDU [14:38:07]CAPDU: 80 13 01 00 [14:38:07]Write to MH i2c: E2 08 00 EA 03 80 13 01 00 00 00 00 00 6A [14:38:07]Write i2c OK [14:38:07]MH_I2C_Read... [14:38:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:07]Read from MH i2c: E2 [14:38:07]MH_I2C_Read... [14:38:07]Read from MH i2c: E2 0E 00 [14:38:07]MH_I2C_Read... [14:38:07]Read from MH i2c: E2 0E 00 EA 03 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 EA [14:38:07]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [14:38:07]wFMCommunicate OK [14:38:07]SAM_PROTO_GetShiftState done [14:38:07]FM_GetShiftState done [14:38:07]req_shift_opened done [14:38:07]requested_item shift.open_date is exist - process it [14:38:07]req_shift_open_date [14:38:07]req_shift_open_date done [14:38:07]produce_requested_data done [14:38:07]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164987,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [14:38:07]process_action_free close_receipt [14:38:07]json_value_free [14:38:07]json_value_free done [14:38:07]process_json_proto returns [14:38:07]Send response to host [14:38:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164987,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [14:38:07]free response buf [14:38:07]execute_script done [14:38:07]execute_script returns [14:38:07]free content buf [14:38:07]Sock 7.Close socket [14:38:07]Sock 7.Thread stoped [14:38:11]OFD Sender: No OFD packet to send [14:38:16]OFD Sender: No OFD packet to send [14:38:21]OFD Sender: No OFD packet to send [14:38:26]OFD Sender: No OFD packet to send [14:38:31]OFD Sender: No OFD packet to send [14:38:36]OFD Sender: No OFD packet to send [14:38:41]OFD Sender: No OFD packet to send [14:38:46]OFD Sender: No OFD packet to send [14:38:51]OFD Sender: No OFD packet to send [14:38:56]OFD Sender: No OFD packet to send [14:39:01]OFD Sender: No OFD packet to send [14:39:06]OFD Sender: No OFD packet to send [14:39:11]OFD Sender: No OFD packet to send [14:39:16]OFD Sender: No OFD packet to send [14:39:19]accept exits with 9 [14:39:19]New connection [14:39:19]New thread 3066948964 created [14:39:19]Thread 3066805604 joined [14:39:19]Waiting for new connection... [14:39:19] Sock 9.Parse request [14:39:19]Sock 9.Check first char [14:39:19]Sock 9.First char is OK [14:39:19]request: POST /json_proto HTTP/1.0 [14:39:19]Method: POST [14:39:19]URL: /json_proto [14:39:19]Method is POST - this is cgi request [14:39:19]url: /json_proto [14:39:19]query_string will be loaded in cgi processing [14:39:19]execute_cgi json_proto POST (null) [14:39:19]execute_cgi path=json_proto method=POST [14:39:19]POST find Content-Length [14:39:19]Host: 172.17.56.4:8080 [14:39:19]Content-Length: 677 [14:39:19]Content-Type: application/json [14:39:19] [14:39:19]POST finish read [14:39:19]Found Content-Length = 677 [14:39:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459088", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:39:19]execute_script... [14:39:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459088", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:39:19]POST & json_proto [14:39:19]process_json_proto [14:39:19]json parsed OK: [14:39:19]protocol is kg_v1.0 [14:39:19]action value=close_receipt [14:39:19]process_action close_receipt [14:39:19]cmd_close_receipt [14:39:19]MH_GetDate [14:39:19]Write to MH i2c: F0 00 00 EB 03 DD [14:39:19]Write i2c OK [14:39:19]MH_I2C_Read... [14:39:19]Read from MH i2c: F0 [14:39:19]MH_I2C_Read... [14:39:19]Read from MH i2c: F0 09 00 [14:39:19]MH_I2C_Read... [14:39:19]Read from MH i2c: F0 09 00 EB 03 00 17 E3 93 66 C9 DC B2 64 94 [14:39:19]GetLastDocTimeStamp 1720967883 [14:39:19]current date 1720967959 [14:39:19]FM_GetShiftState [14:39:19]SAM_PROTO_GetShiftState [14:39:19]wFMCommunicate request_size=4 [14:39:19]MH_SAM_APDU [14:39:19]CAPDU: 80 13 01 00 [14:39:19]Write to MH i2c: E2 08 00 EC 03 80 13 01 00 00 00 00 00 6C [14:39:19]Write i2c OK [14:39:19]MH_I2C_Read... [14:39:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:19]Read from MH i2c: E2 [14:39:19]MH_I2C_Read... [14:39:19]Read from MH i2c: E2 0E 00 [14:39:19]MH_I2C_Read... [14:39:19]Read from MH i2c: E2 0E 00 EC 03 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 EC [14:39:19]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [14:39:19]wFMCommunicate OK [14:39:19]SAM_PROTO_GetShiftState done [14:39:19]FM_GetShiftState done [14:39:19]opened in 1720917342 [14:39:19]opened+sec_in_day 1721003742 [14:39:19]quantity*price = 50008 [14:39:19]sum+1 = 50009 [14:39:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 186 14.07.2024 14:39 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164988 ФПД: 1432962161422 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T143919&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164988&fm=1432962161422&tin=02508201610067®Number=0000000000090829&sum=50000 [14:39:20]StoreToDocumentArchive [14:39:20]shift 447 fd 164988 [14:39:20]save to /storage/0447/doc_00164988 [14:39:20]save last doc name /storage/0447/doc_00164988 to /storage/kkm_last_doc_name [14:39:20]save OK [14:39:20]Clear old archive folders... [14:39:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:39:20]tlvbuf is 012A9720 [14:39:20]SAM_PROTO_ClearQueue [14:39:20]wFMCommunicate request_size=4 [14:39:20]MH_SAM_APDU [14:39:20]CAPDU: 80 09 00 00 [14:39:20]Write to MH i2c: E2 08 00 F9 03 80 09 00 00 00 00 00 00 6E [14:39:20]Write i2c OK [14:39:20]MH_I2C_Read... [14:39:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:39:20]Read from MH i2c: E2 [14:39:20]MH_I2C_Read... [14:39:20]Read from MH i2c: E2 03 00 [14:39:20]MH_I2C_Read... [14:39:20]Read from MH i2c: E2 03 00 F9 03 00 90 00 70 [14:39:20]RAPDU: 90 00 [14:39:20]wFMCommunicate OK [14:39:20]SAM_PROTO_ClearQueue done [14:39:20]KKMCreateOFDPacket [14:39:20]OFDProtocolAddRootSTLVToBuf [14:39:20]FM_MakeSignedData [14:39:20]FM_MakeSignedData [14:39:20]SAM_PROTO_SignData [14:39:20]wFMCommunicate request_size=4 [14:39:20]MH_SAM_APDU [14:39:20]CAPDU: 80 0D 01 02 [14:39:20]Write to MH i2c: E2 08 00 FA 03 80 0D 01 02 00 00 00 00 76 [14:39:20]Write i2c OK [14:39:20]MH_I2C_Read... [14:39:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:39:20]Read from MH i2c: E2 [14:39:20]MH_I2C_Read... [14:39:20]Read from MH i2c: E2 03 00 [14:39:20]MH_I2C_Read... [14:39:20]Read from MH i2c: E2 03 00 FA 03 00 90 00 71 [14:39:20]RAPDU: 90 00 [14:39:20]wFMCommunicate OK [14:39:20]wFMCommunicate request_size=255 [14:39:20]MH_SAM_APDU [14:39:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 BA 00 00 00 F4 03 04 00 17 E3 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7C 84 02 00 35 04 06 00 01 [14:39:20]Write to MH i2c: E2 02 01 FB 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 BA 00 00 00 F4 03 04 00 17 E3 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7C 84 02 00 35 04 06 00 01 00 00 5F [14:39:20]Write i2c OK [14:39:20]MH_I2C_Read... [14:39:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:20]Read from MH i2c: E2 [14:39:20]MH_I2C_Read... [14:39:20]Read from MH i2c: E2 03 00 [14:39:20]MH_I2C_Read... [14:39:20]Read from MH i2c: E2 03 00 FB 03 00 90 00 72 [14:39:20]RAPDU: 90 00 [14:39:20]wFMCommunicate OK [14:39:20]wFMCommunicate request_size=10 [14:39:20]MH_SAM_APDU [14:39:20]CAPDU: 80 0D 02 02 05 4D A3 33 5B 0E [14:39:20]Write to MH i2c: E2 0D 00 FC 03 80 0D 02 02 05 00 4D A3 33 5B 0E 00 00 0F [14:39:20]Write i2c OK [14:39:20]MH_I2C_Read... [14:39:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:20]Read from MH i2c: E2 [14:39:20]MH_I2C_Read... [14:39:20]Read from MH i2c: E2 03 00 [14:39:20]MH_I2C_Read... [14:39:20]Read from MH i2c: E2 03 00 FC 03 00 90 00 73 [14:39:20]RAPDU: 90 00 [14:39:20]wFMCommunicate OK [14:39:20]wFMCommunicate request_size=4 [14:39:20]MH_SAM_APDU [14:39:20]CAPDU: 80 0D 03 02 [14:39:20]Write to MH i2c: E2 08 00 FD 03 80 0D 03 02 00 00 00 00 7B [14:39:20]Write i2c OK [14:39:20]MH_I2C_Read... [14:39:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:39:20]Read from MH i2c: E2 [14:39:20]MH_I2C_Read... [14:39:20]Read from MH i2c: E2 0B 00 [14:39:20]MH_I2C_Read... [14:39:20]Read from MH i2c: E2 0B 00 FD 03 00 A7 BE 48 D8 24 7A 4B 1A 90 00 04 [14:39:20]RAPDU: A7 BE 48 D8 24 7A 4B 1A 90 00 [14:39:20]wFMCommunicate OK [14:39:20]SAM_PROTO_SignData done [14:39:20]FM_MakeSignedData done [14:39:20]CreateOFDProtocolMessage [14:39:20]wFMCommunicate request_size=4 [14:39:20]MH_SAM_APDU [14:39:20]CAPDU: 80 11 00 00 [14:39:20]Write to MH i2c: E2 08 00 FE 03 80 11 00 00 00 00 00 00 7B [14:39:20]Write i2c OK [14:39:20]MH_I2C_Read... [14:39:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:20]Read from MH i2c: E2 [14:39:20]MH_I2C_Read... [14:39:20]Read from MH i2c: E2 17 00 [14:39:20]MH_I2C_Read... [14:39:20]Read from MH i2c: E2 17 00 FE 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D1 [14:39:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:39:20]wFMCommunicate OK [14:39:20]CreateOFDProtocolMessage done [14:39:20]OFDSenderStorePacket 164988 [14:39:20]StoreOFDPacket docnum=164988 [14:39:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 81 55 07 01 9A E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 BA 00 00 00 F4 03 04 00 17 E3 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7C 84 02 00 35 04 06 00 01 4D A3 33 5B 0E A7 BE 48 D8 24 7A 4B 1A [14:39:20]CheckFolder [14:39:20]dirname=/storage/ofd_packets [14:39:20]CheckFolder done [14:39:20]ProducePacketName [14:39:20]name=ofd_packets/00164988 [14:39:20]NVStorageSaveData ofd_packets/00164988 [14:39:20]File name is /storage/ofd_packets/00164988 [14:39:20]Write 301 bytes [14:39:20]NVStorageSaveData done [14:39:20]OFDSenderStorePacket done [14:39:20]KKMCreateOFDPacket done [14:39:20]NVStorageSaveData kkm_last_timestamp [14:39:20]File name is /storage/kkm_last_timestamp [14:39:20]Write 4 bytes [14:39:20]NVStorageSaveData done [14:39:20]ExternCall_PrintAddStr [14:39:20]wPrintStart [14:39:20]Write to MH i2c: 01 00 00 FF 03 02 [14:39:20]Write i2c OK [14:39:20]MH_I2C_Read... [14:39:20]Read from MH i2c: 01 [14:39:20]MH_I2C_Read... [14:39:20]Read from MH i2c: 01 07 00 [14:39:20]MH_I2C_Read... [14:39:20]Read from MH i2c: 01 07 00 FF 03 00 00 00 00 00 FF 0F 17 [14:39:20]RasterBufferAndPrint [14:39:20]line Счет N : (1)459088 [14:39:20]line ИНН: 02508201610067 [14:39:20]line Контрольно-Кассовый Чек [14:39:20]line ПРОДАЖА [14:39:20]line ТРК (МРК, ГНК) : 12 [14:39:20]line Товар: 2710124130 [14:39:20]line Аи-92-К-5 [14:39:20]line 7.600 * 65.80 [14:39:20]line = 500.08 [14:39:20]line НДС 12% НСП 1% [14:39:20]line > о реализуемом товаре [14:39:20]line ОКРУГЛЕНИЕ: -0.08 [14:39:20]line ИТОГО: 500.00 [14:39:20]line Внесено: 500.00 [14:39:20]line СДАЧА: 0.00 [14:39:20]line НСП 1% : 4.42 [14:39:20]line НДС 12% : 53.11 [14:39:20]line Наличными: 500.00 [14:39:20]line Безнал.: 0.00 [14:39:20]line Место: АЗС № 72 "Партнер Нефть" [14:39:20]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:39:20]line СНО: Общий режим [14:39:20]line Чек 186 14.07.2024 14:39 [14:39:20]line Смена: 447 ФФД: 1.0 [14:39:20]line ЗНМ: 0300000160 [14:39:20]line РНМ: 0000000000090829 [14:39:20]line Версия ККМ: 001 [14:39:20]line ФМ: 0000000000874718 [14:39:20]line ФД: 164988 [14:39:20]line ФПД: 1432962161422 [14:39:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T143919&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164988&fm=1432962161422&tin=02508201610067®Number=0000000000090829&sum=50000 [14:39:21]OFD Sender: Processing packet 164988 [packets to send 105, broken 104] [14:39:21]ProducePacketName [14:39:21]name=ofd_packets/00164988 [14:39:21]OFD Sender: To server: pG, [14:39:21]CommunicateWithHost lk.salyk.kg:30040 [14:39:21]ConnectInit lk.salyk.kg [14:39:21]written 0, free lines is 4095 [14:39:21]Connected sock=10 [14:39:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 81 55 07 01 9A E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 BA 00 00 00 F4 03 04 00 17 E3 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7C 84 02 00 35 04 06 00 01 4D A3 33 5B 0E A7 BE 48 D8 24 7A 4B 1A [14:39:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 F5 48 47 00 6E 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7C 84 02 00 F4 03 04 00 A4 89 93 66 B6 04 01 00 00 F4 7A 96 05 F4 48 97 7E [14:39:21]CommunicateWithHost err = 0 [14:39:21]CheckOFDResponse [14:39:21]1017 (14) - 77093643461234 [14:39:21]1041 (16) - 0000000000874718 [14:39:21]1040 (4) - 164988 [14:39:21]1012 (4) - 14.07.2024 08:17 [14:39:21]1206 (1) - 0 [14:39:21]OFD Sender: Remove packet 164988 [14:39:21]ProducePacketName [14:39:21]name=ofd_packets/00164988 [14:39:21]NVStorageDeleteData [14:39:21]Write to MH i2c: 01 00 00 29 04 2D [14:39:21]Write i2c OK [14:39:21]MH_I2C_Read... [14:39:21]Read from MH i2c: 01 [14:39:21]MH_I2C_Read... [14:39:21]Read from MH i2c: 01 07 00 [14:39:21]MH_I2C_Read... [14:39:21]Read from MH i2c: 01 07 00 29 04 00 00 00 00 00 06 0D 47 [14:39:21]RasterBufferAndPrint [14:39:21]line [14:39:21]line [14:39:21]line [14:39:21]line [14:39:21]line [14:39:21]written 0, free lines is 3340 [14:39:21]MH_Cut [14:39:21]Write to MH i2c: D1 01 00 30 04 01 06 [14:39:21]Write i2c OK [14:39:21]MH_I2C_Read... [14:39:21]Read from MH i2c: D1 [14:39:21]MH_I2C_Read... [14:39:21]Read from MH i2c: D1 01 00 [14:39:21]MH_I2C_Read... [14:39:21]Read from MH i2c: D1 01 00 30 04 00 05 [14:39:21]Write to MH i2c: 01 00 00 31 04 35 [14:39:21]Write i2c OK [14:39:21]MH_I2C_Read... [14:39:21]OFD Sender: No OFD packet to send [14:39:22]*** Cut start [14:39:22]*** Partial cut [14:39:22]*** CUTSNS_PIN = 1 [14:39:22]*** CUTSNS_PIN = 0 [14:39:22]*** Brake cut motor [14:39:22]Read from MH i2c: 01 [14:39:22]MH_I2C_Read... [14:39:22]*** Stop cut motor [14:39:22]*** Cut end [14:39:22]Read from MH i2c: 01 07 00 [14:39:22]MH_I2C_Read... [14:39:22]Read from MH i2c: 01 07 00 31 04 00 00 00 00 00 FF 0F 4A [14:39:22]process_action close_receipt done [14:39:22]requested_data is exist [14:39:22]produce_requested_data [14:39:22]requested_item fm.sn is exist - process it [14:39:22]wFMCommunicate request_size=4 [14:39:22]MH_SAM_APDU [14:39:22]CAPDU: 80 11 00 00 [14:39:22]Write to MH i2c: E2 08 00 32 04 80 11 00 00 00 00 00 00 B0 [14:39:22]Write i2c OK [14:39:22]MH_I2C_Read... [14:39:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:22]Read from MH i2c: E2 [14:39:22]MH_I2C_Read... [14:39:22]Read from MH i2c: E2 17 00 [14:39:22]MH_I2C_Read... [14:39:22]Read from MH i2c: E2 17 00 32 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 06 [14:39:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:39:22]wFMCommunicate OK [14:39:22]requested_item fd.num is exist - process it [14:39:22]SAM_PROTO_GetFieldsCounters [14:39:22]wFMCommunicate request_size=4 [14:39:22]MH_SAM_APDU [14:39:22]CAPDU: 80 13 00 00 [14:39:22]Write to MH i2c: E2 08 00 33 04 80 13 00 00 00 00 00 00 B3 [14:39:22]Write i2c OK [14:39:22]MH_I2C_Read... [14:39:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:39:23]Read from MH i2c: E2 [14:39:23]MH_I2C_Read... [14:39:23]Read from MH i2c: E2 62 00 [14:39:23]MH_I2C_Read... [14:39:23]Read from MH i2c: E2 62 00 33 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 7C 84 02 00 0E 04 04 00 BF 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 CA [14:39:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 7C 84 02 00 0E 04 04 00 BF 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 [14:39:23]wFMCommunicate OK [14:39:23]SAM_PROTO_GetFieldsCounters done [14:39:23]requested_item shift.num is exist - process it [14:39:23]requested_item shift.opened is exist - process it [14:39:23]req_shift_opened [14:39:23]FM_GetShiftState [14:39:23]SAM_PROTO_GetShiftState [14:39:23]wFMCommunicate request_size=4 [14:39:23]MH_SAM_APDU [14:39:23]CAPDU: 80 13 01 00 [14:39:23]Write to MH i2c: E2 08 00 34 04 80 13 01 00 00 00 00 00 B5 [14:39:23]Write i2c OK [14:39:23]MH_I2C_Read... [14:39:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:23]Read from MH i2c: E2 [14:39:23]MH_I2C_Read... [14:39:23]Read from MH i2c: E2 0E 00 [14:39:23]MH_I2C_Read... [14:39:23]Read from MH i2c: E2 0E 00 34 04 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 35 [14:39:23]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [14:39:23]wFMCommunicate OK [14:39:23]SAM_PROTO_GetShiftState done [14:39:23]FM_GetShiftState done [14:39:23]req_shift_opened done [14:39:23]requested_item shift.open_date is exist - process it [14:39:23]req_shift_open_date [14:39:23]req_shift_open_date done [14:39:23]produce_requested_data done [14:39:23]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164988,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [14:39:23]process_action_free close_receipt [14:39:23]json_value_free [14:39:23]json_value_free done [14:39:23]process_json_proto returns [14:39:23]Send response to host [14:39:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164988,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [14:39:23]free response buf [14:39:23]execute_script done [14:39:23]execute_script returns [14:39:23]free content buf [14:39:23]Sock 9.Close socket [14:39:23]Sock 9.Thread stoped [14:39:26]OFD Sender: No OFD packet to send [14:39:31]OFD Sender: No OFD packet to send [14:39:36]OFD Sender: No OFD packet to send [14:39:41]OFD Sender: No OFD packet to send [14:39:46]OFD Sender: No OFD packet to send [14:39:52]OFD Sender: No OFD packet to send [14:39:57]OFD Sender: No OFD packet to send [14:40:02]OFD Sender: No OFD packet to send [14:40:07]OFD Sender: No OFD packet to send [14:40:12]OFD Sender: No OFD packet to send [14:40:17]OFD Sender: No OFD packet to send [14:40:22]OFD Sender: No OFD packet to send [14:40:27]OFD Sender: No OFD packet to send [14:40:32]OFD Sender: No OFD packet to send [14:40:37]OFD Sender: No OFD packet to send [14:40:42]OFD Sender: No OFD packet to send [14:40:47]OFD Sender: No OFD packet to send [14:40:52]OFD Sender: No OFD packet to send [14:40:57]OFD Sender: No OFD packet to send [14:41:02]OFD Sender: No OFD packet to send [14:41:07]OFD Sender: No OFD packet to send [14:41:12]OFD Sender: No OFD packet to send [14:41:17]OFD Sender: No OFD packet to send [14:41:22]OFD Sender: No OFD packet to send [14:41:27]OFD Sender: No OFD packet to send [14:41:32]OFD Sender: No OFD packet to send [14:41:37]OFD Sender: No OFD packet to send [14:41:42]OFD Sender: No OFD packet to send [14:41:47]OFD Sender: No OFD packet to send [14:41:52]OFD Sender: No OFD packet to send [14:41:57]OFD Sender: No OFD packet to send [14:42:02]OFD Sender: No OFD packet to send [14:42:07]OFD Sender: No OFD packet to send [14:42:12]OFD Sender: No OFD packet to send [14:42:17]OFD Sender: No OFD packet to send [14:42:22]OFD Sender: No OFD packet to send [14:42:27]OFD Sender: No OFD packet to send [14:42:32]OFD Sender: No OFD packet to send [14:42:37]OFD Sender: No OFD packet to send [14:42:42]OFD Sender: No OFD packet to send [14:42:47]OFD Sender: No OFD packet to send [14:42: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:25]accept exits with 7 [14:45:25]New connection [14:45:25]New thread 3066805604 created [14:45:25]Thread 3066948964 joined [14:45:25]Waiting for new connection... [14:45:25] Sock 7.Parse request [14:45:25]Sock 7.Check first char [14:45:25]Sock 7.First char is OK [14:45:25]request: POST /json_proto HTTP/1.0 [14:45:25]Method: POST [14:45:25]URL: /json_proto [14:45:25]Method is POST - this is cgi request [14:45:25]url: /json_proto [14:45:25]query_string will be loaded in cgi processing [14:45:25]execute_cgi json_proto POST (null) [14:45:25]execute_cgi path=json_proto method=POST [14:45:25]POST find Content-Length [14:45:25]Host: 172.17.56.4:8080 [14:45:25]Content-Length: 677 [14:45:25]Content-Type: application/json [14:45:25] [14:45:25]POST finish read [14:45:25]Found Content-Length = 677 [14:45:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459089", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:45:25]execute_script... [14:45:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459089", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:45:25]POST & json_proto [14:45:25]process_json_proto [14:45:25]json parsed OK: [14:45:25]protocol is kg_v1.0 [14:45:25]action value=close_receipt [14:45:25]process_action close_receipt [14:45:25]cmd_close_receipt [14:45:25]MH_GetDate [14:45:25]Write to MH i2c: F0 00 00 35 04 28 [14:45:25]Write i2c OK [14:45:25]MH_I2C_Read... [14:45:25]Read from MH i2c: F0 [14:45:25]MH_I2C_Read... [14:45:25]Read from MH i2c: F0 09 00 [14:45:25]MH_I2C_Read... [14:45:25]Read from MH i2c: F0 09 00 35 04 00 86 E4 93 66 C9 DC B2 64 4F [14:45:25]GetLastDocTimeStamp 1720967959 [14:45:25]current date 1720968326 [14:45:25]FM_GetShiftState [14:45:25]SAM_PROTO_GetShiftState [14:45:25]wFMCommunicate request_size=4 [14:45:25]MH_SAM_APDU [14:45:25]CAPDU: 80 13 01 00 [14:45:25]Write to MH i2c: E2 08 00 36 04 80 13 01 00 00 00 00 00 B7 [14:45:25]Write i2c OK [14:45:25]MH_I2C_Read... [14:45:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:45:25]Read from MH i2c: E2 [14:45:25]MH_I2C_Read... [14:45:25]Read from MH i2c: E2 0E 00 [14:45:25]MH_I2C_Read... [14:45:25]Read from MH i2c: E2 0E 00 36 04 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 37 [14:45:25]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [14:45:25]wFMCommunicate OK [14:45:25]SAM_PROTO_GetShiftState done [14:45:25]FM_GetShiftState done [14:45:25]opened in 1720917342 [14:45:25]opened+sec_in_day 1721003742 [14:45:25]quantity*price = 20003 [14:45:25]sum+1 = 20004 [14:45:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 187 14.07.2024 14:45 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164989 ФПД: 211450383265944 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T144526&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164989&fm=211450383265944&tin=02508201610067®Number=0000000000090829&sum=20000 [14:45:26]StoreToDocumentArchive [14:45:26]shift 447 fd 164989 [14:45:26]save to /storage/0447/doc_00164989 [14:45:26]save last doc name /storage/0447/doc_00164989 to /storage/kkm_last_doc_name [14:45:26]save OK [14:45:26]Clear old archive folders... [14:45:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:45:26]tlvbuf is 0130E780 [14:45:26]SAM_PROTO_ClearQueue [14:45:26]wFMCommunicate request_size=4 [14:45:26]MH_SAM_APDU [14:45:26]CAPDU: 80 09 00 00 [14:45:26]Write to MH i2c: E2 08 00 43 04 80 09 00 00 00 00 00 00 B9 [14:45:26]Write i2c OK [14:45:26]MH_I2C_Read... [14:45:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:45:27]Read from MH i2c: E2 [14:45:27]MH_I2C_Read... [14:45:27]Read from MH i2c: E2 03 00 [14:45:27]MH_I2C_Read... [14:45:27]Read from MH i2c: E2 03 00 43 04 00 90 00 BB [14:45:27]RAPDU: 90 00 [14:45:27]wFMCommunicate OK [14:45:27]SAM_PROTO_ClearQueue done [14:45:27]KKMCreateOFDPacket [14:45:27]OFDProtocolAddRootSTLVToBuf [14:45:27]FM_MakeSignedData [14:45:27]FM_MakeSignedData [14:45:27]SAM_PROTO_SignData [14:45:27]wFMCommunicate request_size=4 [14:45:27]MH_SAM_APDU [14:45:27]CAPDU: 80 0D 01 02 [14:45:27]Write to MH i2c: E2 08 00 44 04 80 0D 01 02 00 00 00 00 C1 [14:45:27]Write i2c OK [14:45:27]MH_I2C_Read... [14:45:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:45:27]Read from MH i2c: E2 [14:45:27]MH_I2C_Read... [14:45:27]Read from MH i2c: E2 03 00 [14:45:27]MH_I2C_Read... [14:45:27]Read from MH i2c: E2 03 00 44 04 00 90 00 BC [14:45:27]RAPDU: 90 00 [14:45:27]wFMCommunicate OK [14:45:27]wFMCommunicate request_size=255 [14:45:27]MH_SAM_APDU [14:45:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 BB 00 00 00 F4 03 04 00 86 E4 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7D 84 02 00 35 04 06 00 C0 [14:45:27]Write to MH i2c: E2 02 01 45 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 BB 00 00 00 F4 03 04 00 86 E4 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7D 84 02 00 35 04 06 00 C0 00 00 7C [14:45:27]Write i2c OK [14:45:27]MH_I2C_Read... [14:45:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:45:27]Read from MH i2c: E2 [14:45:27]MH_I2C_Read... [14:45:27]Read from MH i2c: E2 03 00 [14:45:27]MH_I2C_Read... [14:45:27]Read from MH i2c: E2 03 00 45 04 00 90 00 BD [14:45:27]RAPDU: 90 00 [14:45:27]wFMCommunicate OK [14:45:27]wFMCommunicate request_size=10 [14:45:27]MH_SAM_APDU [14:45:27]CAPDU: 80 0D 02 02 05 50 20 FB 70 98 [14:45:27]Write to MH i2c: E2 0D 00 46 04 80 0D 02 02 05 00 50 20 FB 70 98 00 00 41 [14:45:27]Write i2c OK [14:45:27]MH_I2C_Read... [14:45:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:45:27]Read from MH i2c: E2 [14:45:27]MH_I2C_Read... [14:45:27]Read from MH i2c: E2 03 00 [14:45:27]MH_I2C_Read... [14:45:27]Read from MH i2c: E2 03 00 46 04 00 90 00 BE [14:45:27]RAPDU: 90 00 [14:45:27]wFMCommunicate OK [14:45:27]wFMCommunicate request_size=4 [14:45:27]MH_SAM_APDU [14:45:27]CAPDU: 80 0D 03 02 [14:45:27]Write to MH i2c: E2 08 00 47 04 80 0D 03 02 00 00 00 00 C6 [14:45:27]Write i2c OK [14:45:27]MH_I2C_Read... [14:45:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:45:27]OFD Sender: No OFD packet to send [14:45:27]Read from MH i2c: E2 [14:45:27]MH_I2C_Read... [14:45:27]Read from MH i2c: E2 0B 00 [14:45:27]MH_I2C_Read... [14:45:27]Read from MH i2c: E2 0B 00 47 04 00 62 72 AF 53 D2 2E 03 26 90 00 C6 [14:45:27]RAPDU: 62 72 AF 53 D2 2E 03 26 90 00 [14:45:27]wFMCommunicate OK [14:45:27]SAM_PROTO_SignData done [14:45:27]FM_MakeSignedData done [14:45:27]CreateOFDProtocolMessage [14:45:27]wFMCommunicate request_size=4 [14:45:27]MH_SAM_APDU [14:45:27]CAPDU: 80 11 00 00 [14:45:27]Write to MH i2c: E2 08 00 48 04 80 11 00 00 00 00 00 00 C6 [14:45:27]Write i2c OK [14:45:27]MH_I2C_Read... [14:45:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:45:27]Read from MH i2c: E2 [14:45:27]MH_I2C_Read... [14:45:27]Read from MH i2c: E2 17 00 [14:45:27]MH_I2C_Read... [14:45:27]Read from MH i2c: E2 17 00 48 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 1C [14:45:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:45:27]wFMCommunicate OK [14:45:27]CreateOFDProtocolMessage done [14:45:27]OFDSenderStorePacket 164989 [14:45:27]StoreOFDPacket docnum=164989 [14:45:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 58 40 07 01 7B 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 BB 00 00 00 F4 03 04 00 86 E4 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7D 84 02 00 35 04 06 00 C0 50 20 FB 70 98 62 72 AF 53 D2 2E 03 26 [14:45:27]CheckFolder [14:45:27]dirname=/storage/ofd_packets [14:45:27]CheckFolder done [14:45:27]ProducePacketName [14:45:27]name=ofd_packets/00164989 [14:45:27]NVStorageSaveData ofd_packets/00164989 [14:45:27]File name is /storage/ofd_packets/00164989 [14:45:27]Write 301 bytes [14:45:27]NVStorageSaveData done [14:45:27]OFDSenderStorePacket done [14:45:27]KKMCreateOFDPacket done [14:45:27]NVStorageSaveData kkm_last_timestamp [14:45:27]File name is /storage/kkm_last_timestamp [14:45:27]Write 4 bytes [14:45:27]NVStorageSaveData done [14:45:27]ExternCall_PrintAddStr [14:45:27]wPrintStart [14:45:27]Write to MH i2c: 01 00 00 49 04 4D [14:45:27]Write i2c OK [14:45:27]MH_I2C_Read... [14:45:27]Read from MH i2c: 01 [14:45:27]MH_I2C_Read... [14:45:27]Read from MH i2c: 01 07 00 [14:45:27]MH_I2C_Read... [14:45:27]Read from MH i2c: 01 07 00 49 04 00 00 00 00 00 FF 0F 62 [14:45:27]RasterBufferAndPrint [14:45:27]line Счет N : (1)459089 [14:45:27]line ИНН: 02508201610067 [14:45:27]line Контрольно-Кассовый Чек [14:45:27]line ПРОДАЖА [14:45:27]line ТРК (МРК, ГНК) : 12 [14:45:27]line Товар: 2710124130 [14:45:27]line Аи-92-К-5 [14:45:27]line 3.040 * 65.80 [14:45:27]line = 200.03 [14:45:27]line НДС 12% НСП 1% [14:45:27]line > о реализуемом товаре [14:45:27]line ОКРУГЛЕНИЕ: -0.03 [14:45:27]line ИТОГО: 200.00 [14:45:27]line Внесено: 200.00 [14:45:27]line СДАЧА: 0.00 [14:45:27]line НСП 1% : 1.77 [14:45:27]line НДС 12% : 21.24 [14:45:27]line Наличными: 200.00 [14:45:27]line Безнал.: 0.00 [14:45:27]line Место: АЗС № 72 "Партнер Нефть" [14:45:27]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:45:27]line СНО: Общий режим [14:45:27]line Чек 187 14.07.2024 14:45 [14:45:27]line Смена: 447 ФФД: 1.0 [14:45:27]line ЗНМ: 0300000160 [14:45:27]line РНМ: 0000000000090829 [14:45:27]line Версия ККМ: 001 [14:45:27]line ФМ: 0000000000874718 [14:45:27]line ФД: 164989 [14:45:27]line ФПД: 211450383265944 [14:45:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T144526&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164989&fm=211450383265944&tin=02508201610067®Number=0000000000090829&sum=20000 [14:45:27]OFD Sender: Processing packet 164989 [packets to send 105, broken 104] [14:45:27]ProducePacketName [14:45:27]name=ofd_packets/00164989 [14:45:27]OFD Sender: To server: pG, [14:45:27]CommunicateWithHost lk.salyk.kg:30040 [14:45:27]ConnectInit lk.salyk.kg [14:45:27]written 0, free lines is 4095 [14:45:27]Connected sock=10 [14:45:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 58 40 07 01 7B 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 BB 00 00 00 F4 03 04 00 86 E4 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7D 84 02 00 35 04 06 00 C0 50 20 FB 70 98 62 72 AF 53 D2 2E 03 26 [14:45:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 CE E9 47 00 F7 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 38 37 34 37 31 38 10 04 04 00 7D 84 02 00 F4 03 04 00 13 8B 93 66 B6 04 01 00 00 09 BC 7F 97 99 8F 05 08 [14:45:28]CommunicateWithHost err = 0 [14:45:28]CheckOFDResponse [14:45:28]1017 (14) - 77093643461234 [14:45:28]1041 (16) - 0000000000874718 [14:45:28]1040 (4) - 164989 [14:45:28]1012 (4) - 14.07.2024 08:23 [14:45:28]1206 (1) - 0 [14:45:28]OFD Sender: Remove packet 164989 [14:45:28]ProducePacketName [14:45:28]name=ofd_packets/00164989 [14:45:28]NVStorageDeleteData [14:45:28]Write to MH i2c: 01 00 00 73 04 77 [14:45:28]Write i2c OK [14:45:28]MH_I2C_Read... [14:45:28]Read from MH i2c: 01 [14:45:28]MH_I2C_Read... [14:45:28]Read from MH i2c: 01 07 00 [14:45:28]MH_I2C_Read... [14:45:28]Read from MH i2c: 01 07 00 73 04 00 00 00 00 00 F3 0C 7D [14:45:28]RasterBufferAndPrint [14:45:28]line [14:45:28]line [14:45:28]line [14:45:28]line [14:45:28]line [14:45:28]written 0, free lines is 3321 [14:45:28]MH_Cut [14:45:28]Write to MH i2c: D1 01 00 7A 04 01 50 [14:45:28]Write i2c OK [14:45:28]MH_I2C_Read... [14:45:28]Read from MH i2c: D1 [14:45:28]MH_I2C_Read... [14:45:28]Read from MH i2c: D1 01 00 [14:45:28]MH_I2C_Read... [14:45:28]Read from MH i2c: D1 01 00 7A 04 00 4F [14:45:28]Write to MH i2c: 01 00 00 7B 04 7F [14:45:28]Write i2c OK [14:45:28]MH_I2C_Read... [14:45:28]OFD Sender: No OFD packet to send [14:45:28]*** Cut start [14:45:28]*** Partial cut [14:45:28]*** CUTSNS_PIN = 1 [14:45:29]*** CUTSNS_PIN = 0 [14:45:29]*** Brake cut motor [14:45:29]Read from MH i2c: 01 [14:45:29]MH_I2C_Read... [14:45:29]*** Stop cut motor [14:45:29]*** Cut end [14:45:29]Read from MH i2c: 01 07 00 [14:45:29]MH_I2C_Read... [14:45:29]Read from MH i2c: 01 07 00 7B 04 00 00 00 00 00 FF 0F 94 [14:45:29]process_action close_receipt done [14:45:29]requested_data is exist [14:45:29]produce_requested_data [14:45:29]requested_item fm.sn is exist - process it [14:45:29]wFMCommunicate request_size=4 [14:45:29]MH_SAM_APDU [14:45:29]CAPDU: 80 11 00 00 [14:45:29]Write to MH i2c: E2 08 00 7C 04 80 11 00 00 00 00 00 00 FA [14:45:29]Write i2c OK [14:45:29]MH_I2C_Read... [14:45:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:45:29]Read from MH i2c: E2 [14:45:29]MH_I2C_Read... [14:45:29]Read from MH i2c: E2 17 00 [14:45:29]MH_I2C_Read... [14:45:29]Read from MH i2c: E2 17 00 7C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 50 [14:45:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:45:29]wFMCommunicate OK [14:45:29]requested_item fd.num is exist - process it [14:45:29]SAM_PROTO_GetFieldsCounters [14:45:29]wFMCommunicate request_size=4 [14:45:29]MH_SAM_APDU [14:45:29]CAPDU: 80 13 00 00 [14:45:29]Write to MH i2c: E2 08 00 7D 04 80 13 00 00 00 00 00 00 FD [14:45:29]Write i2c OK [14:45:29]MH_I2C_Read... [14:45:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:45:29]Read from MH i2c: E2 [14:45:29]MH_I2C_Read... [14:45:29]Read from MH i2c: E2 62 00 [14:45:29]MH_I2C_Read... [14:45:29]Read from MH i2c: E2 62 00 7D 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 7D 84 02 00 0E 04 04 00 BF 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 18 [14:45:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 7D 84 02 00 0E 04 04 00 BF 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 [14:45:29]wFMCommunicate OK [14:45:29]SAM_PROTO_GetFieldsCounters done [14:45:29]requested_item shift.num is exist - process it [14:45:29]requested_item shift.opened is exist - process it [14:45:29]req_shift_opened [14:45:29]FM_GetShiftState [14:45:29]SAM_PROTO_GetShiftState [14:45:29]wFMCommunicate request_size=4 [14:45:29]MH_SAM_APDU [14:45:29]CAPDU: 80 13 01 00 [14:45:29]Write to MH i2c: E2 08 00 7E 04 80 13 01 00 00 00 00 00 FF [14:45:29]Write i2c OK [14:45:29]MH_I2C_Read... [14:45:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:45:29]Read from MH i2c: E2 [14:45:29]MH_I2C_Read... [14:45:29]Read from MH i2c: E2 0E 00 [14:45:29]MH_I2C_Read... [14:45:29]Read from MH i2c: E2 0E 00 7E 04 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 7F [14:45:29]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [14:45:29]wFMCommunicate OK [14:45:29]SAM_PROTO_GetShiftState done [14:45:29]FM_GetShiftState done [14:45:29]req_shift_opened done [14:45:29]requested_item shift.open_date is exist - process it [14:45:29]req_shift_open_date [14:45:29]req_shift_open_date done [14:45:29]produce_requested_data done [14:45:29]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164989,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [14:45:29]process_action_free close_receipt [14:45:29]json_value_free [14:45:29]json_value_free done [14:45:29]process_json_proto returns [14:45:29]Send response to host [14:45:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164989,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [14:45:29]free response buf [14:45:29]execute_script done [14:45:29]execute_script returns [14:45:29]free content buf [14:45:29]Sock 7.Close socket [14:45:29]Sock 7.Thread stoped [14:45:30]accept exits with 9 [14:45:30]New connection [14:45:30]New thread 3066948964 created [14:45:30]Thread 3066805604 joined [14:45:30]Waiting for new connection... [14:45:30] Sock 9.Parse request [14:45:30]Sock 9.Check first char [14:45:30]Sock 9.First char is OK [14:45:30]request: POST /json_proto HTTP/1.0 [14:45:30]Method: POST [14:45:30]URL: /json_proto [14:45:30]Method is POST - this is cgi request [14:45:30]url: /json_proto [14:45:30]query_string will be loaded in cgi processing [14:45:30]execute_cgi json_proto POST (null) [14:45:30]execute_cgi path=json_proto method=POST [14:45:30]POST find Content-Length [14:45:30]Host: 172.17.56.4:8080 [14:45:30]Content-Length: 677 [14:45:30]Content-Type: application/json [14:45:30] [14:45:30]POST finish read [14:45:30]Found Content-Length = 677 [14:45:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459090", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 2.210, "sum" : 145.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 145.00, "total" : 145.00, "payments": [ { "type": 0, "sum" : 145.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:45:30]execute_script... [14:45: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)459090", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 2.210, "sum" : 145.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 145.00, "total" : 145.00, "payments": [ { "type": 0, "sum" : 145.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:45:30]POST & json_proto [14:45:30]process_json_proto [14:45:30]json parsed OK: [14:45:30]protocol is kg_v1.0 [14:45:30]action value=close_receipt [14:45:30]process_action close_receipt [14:45:30]cmd_close_receipt [14:45:30]MH_GetDate [14:45:30]Write to MH i2c: F0 00 00 7F 04 72 [14:45:30]Write i2c OK [14:45:30]MH_I2C_Read... [14:45:30]Read from MH i2c: F0 [14:45:30]MH_I2C_Read... [14:45:30]Read from MH i2c: F0 09 00 [14:45:30]MH_I2C_Read... [14:45:30]Read from MH i2c: F0 09 00 7F 04 00 8A E4 93 66 C9 DC B2 64 9D [14:45:30]GetLastDocTimeStamp 1720968326 [14:45:30]current date 1720968330 [14:45:30]FM_GetShiftState [14:45:30]SAM_PROTO_GetShiftState [14:45:30]wFMCommunicate request_size=4 [14:45:30]MH_SAM_APDU [14:45:30]CAPDU: 80 13 01 00 [14:45:30]Write to MH i2c: E2 08 00 80 04 80 13 01 00 00 00 00 00 01 [14:45:30]Write i2c OK [14:45:30]MH_I2C_Read... [14:45:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:45:30]Read from MH i2c: E2 [14:45:30]MH_I2C_Read... [14:45:30]Read from MH i2c: E2 0E 00 [14:45:30]MH_I2C_Read... [14:45:30]Read from MH i2c: E2 0E 00 80 04 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 81 [14:45:30]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [14:45:30]wFMCommunicate OK [14:45:30]SAM_PROTO_GetShiftState done [14:45:30]FM_GetShiftState done [14:45:30]opened in 1720917342 [14:45:30]opened+sec_in_day 1721003742 [14:45:30]quantity*price = 14541 [14:45:30]sum+1 = 14543 [14:45:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 145.00 Внесено: 145.00 СДАЧА: 0.00 НСП 1% : 1.29 НДС 12% : 15.44 Наличными: 145.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 188 14.07.2024 14:45 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164990 ФПД: 191847536506337 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T144530&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164990&fm=191847536506337&tin=02508201610067®Number=0000000000090829&sum=14500 [14:45:31]StoreToDocumentArchive [14:45:31]shift 447 fd 164990 [14:45:31]save to /storage/0447/doc_00164990 [14:45:31]save last doc name /storage/0447/doc_00164990 to /storage/kkm_last_doc_name [14:45:31]save OK [14:45:31]Clear old archive folders... [14:45:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:45:31]tlvbuf is 012C2950 [14:45:31]SAM_PROTO_ClearQueue [14:45:31]wFMCommunicate request_size=4 [14:45:31]MH_SAM_APDU [14:45:31]CAPDU: 80 09 00 00 [14:45:31]Write to MH i2c: E2 08 00 8D 04 80 09 00 00 00 00 00 00 03 [14:45:31]Write i2c OK [14:45:31]MH_I2C_Read... [14:45:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:45:31]Read from MH i2c: E2 [14:45:31]MH_I2C_Read... [14:45:31]Read from MH i2c: E2 03 00 [14:45:31]MH_I2C_Read... [14:45:31]Read from MH i2c: E2 03 00 8D 04 00 90 00 05 [14:45:31]RAPDU: 90 00 [14:45:31]wFMCommunicate OK [14:45:31]SAM_PROTO_ClearQueue done [14:45:31]KKMCreateOFDPacket [14:45:31]OFDProtocolAddRootSTLVToBuf [14:45:31]FM_MakeSignedData [14:45:31]FM_MakeSignedData [14:45:31]SAM_PROTO_SignData [14:45:31]wFMCommunicate request_size=4 [14:45:31]MH_SAM_APDU [14:45:31]CAPDU: 80 0D 01 02 [14:45:31]Write to MH i2c: E2 08 00 8E 04 80 0D 01 02 00 00 00 00 0B [14:45:31]Write i2c OK [14:45:31]MH_I2C_Read... [14:45:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:45:31]Read from MH i2c: E2 [14:45:31]MH_I2C_Read... [14:45:31]Read from MH i2c: E2 03 00 [14:45:31]MH_I2C_Read... [14:45:31]Read from MH i2c: E2 03 00 8E 04 00 90 00 06 [14:45:31]RAPDU: 90 00 [14:45:31]wFMCommunicate OK [14:45:31]wFMCommunicate request_size=255 [14:45:31]MH_SAM_APDU [14:45:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 08 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 CE 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 81 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 06 00 00 00 00 07 04 06 00 A4 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 8A E4 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7E 84 02 00 35 04 06 00 AE [14:45:31]Write to MH i2c: E2 02 01 8F 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 08 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 CE 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 81 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 06 00 00 00 00 07 04 06 00 A4 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 8A E4 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7E 84 02 00 35 04 06 00 AE 00 00 74 [14:45:31]Write i2c OK [14:45:31]MH_I2C_Read... [14:45:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:45:32]Read from MH i2c: E2 [14:45:32]MH_I2C_Read... [14:45:32]Read from MH i2c: E2 03 00 [14:45:32]MH_I2C_Read... [14:45:32]Read from MH i2c: E2 03 00 8F 04 00 90 00 07 [14:45:32]RAPDU: 90 00 [14:45:32]wFMCommunicate OK [14:45:32]wFMCommunicate request_size=10 [14:45:32]MH_SAM_APDU [14:45:32]CAPDU: 80 0D 02 02 05 7B FC 43 B5 E1 [14:45:32]Write to MH i2c: E2 0D 00 90 04 80 0D 02 02 05 00 7B FC 43 B5 E1 00 00 68 [14:45:32]Write i2c OK [14:45:32]MH_I2C_Read... [14:45:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:45:32]Read from MH i2c: E2 [14:45:32]MH_I2C_Read... [14:45:32]Read from MH i2c: E2 03 00 [14:45:32]MH_I2C_Read... [14:45:32]Read from MH i2c: E2 03 00 90 04 00 90 00 08 [14:45:32]RAPDU: 90 00 [14:45:32]wFMCommunicate OK [14:45:32]wFMCommunicate request_size=4 [14:45:32]MH_SAM_APDU [14:45:32]CAPDU: 80 0D 03 02 [14:45:32]Write to MH i2c: E2 08 00 91 04 80 0D 03 02 00 00 00 00 10 [14:45:32]Write i2c OK [14:45:32]MH_I2C_Read... [14:45:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:45:32]Read from MH i2c: E2 [14:45:32]MH_I2C_Read... [14:45:32]Read from MH i2c: E2 0B 00 [14:45:32]MH_I2C_Read... [14:45:32]Read from MH i2c: E2 0B 00 91 04 00 A8 A5 1D E2 1F 7B BB 7E 90 00 30 [14:45:32]RAPDU: A8 A5 1D E2 1F 7B BB 7E 90 00 [14:45:32]wFMCommunicate OK [14:45:32]SAM_PROTO_SignData done [14:45:32]FM_MakeSignedData done [14:45:32]CreateOFDProtocolMessage [14:45:32]wFMCommunicate request_size=4 [14:45:32]MH_SAM_APDU [14:45:32]CAPDU: 80 11 00 00 [14:45:32]Write to MH i2c: E2 08 00 92 04 80 11 00 00 00 00 00 00 10 [14:45:32]Write i2c OK [14:45:32]MH_I2C_Read... [14:45:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:45:32]Read from MH i2c: E2 [14:45:32]MH_I2C_Read... [14:45:32]Read from MH i2c: E2 17 00 [14:45:32]MH_I2C_Read... [14:45:32]Read from MH i2c: E2 17 00 92 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 66 [14:45:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:45:32]wFMCommunicate OK [14:45:32]CreateOFDProtocolMessage done [14:45:32]OFDSenderStorePacket 164990 [14:45:32]StoreOFDPacket docnum=164990 [14:45:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 06 82 07 01 07 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 08 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 CE 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 81 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 06 00 00 00 00 07 04 06 00 A4 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 8A E4 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7E 84 02 00 35 04 06 00 AE 7B FC 43 B5 E1 A8 A5 1D E2 1F 7B BB 7E [14:45:32]CheckFolder [14:45:32]dirname=/storage/ofd_packets [14:45:32]CheckFolder done [14:45:32]ProducePacketName [14:45:32]name=ofd_packets/00164990 [14:45:32]NVStorageSaveData ofd_packets/00164990 [14:45:32]File name is /storage/ofd_packets/00164990 [14:45:32]Write 301 bytes [14:45:32]NVStorageSaveData done [14:45:32]OFDSenderStorePacket done [14:45:32]KKMCreateOFDPacket done [14:45:32]NVStorageSaveData kkm_last_timestamp [14:45:32]File name is /storage/kkm_last_timestamp [14:45:32]Write 4 bytes [14:45:32]NVStorageSaveData done [14:45:32]ExternCall_PrintAddStr [14:45:32]wPrintStart [14:45:32]Write to MH i2c: 01 00 00 93 04 97 [14:45:32]Write i2c OK [14:45:32]MH_I2C_Read... [14:45:32]Read from MH i2c: 01 [14:45:32]MH_I2C_Read... [14:45:32]Read from MH i2c: 01 07 00 [14:45:32]MH_I2C_Read... [14:45:32]Read from MH i2c: 01 07 00 93 04 00 00 00 00 00 FF 0F AC [14:45:32]RasterBufferAndPrint [14:45:32]line Счет N : (1)459090 [14:45:32]line ИНН: 02508201610067 [14:45:32]line Контрольно-Кассовый Чек [14:45:32]line ПРОДАЖА [14:45:32]line ТРК (МРК, ГНК) : 22 [14:45:32]line Товар: 2710124130 [14:45:32]line Аи-92-К-5 [14:45:32]line 2.210 * 65.80 [14:45:32]line = 145.42 [14:45:32]line НДС 12% НСП 1% [14:45:32]line > о реализуемом товаре [14:45:32]line ОКРУГЛЕНИЕ: -0.42 [14:45:32]line ИТОГО: 145.00 [14:45:32]line Внесено: 145.00 [14:45:32]line СДАЧА: 0.00 [14:45:32]line НСП 1% : 1.29 [14:45:32]line НДС 12% : 15.44 [14:45:32]line Наличными: 145.00 [14:45:32]line Безнал.: 0.00 [14:45:32]line Место: АЗС № 72 "Партнер Нефть" [14:45:32]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:45:32]line СНО: Общий режим [14:45:32]line Чек 188 14.07.2024 14:45 [14:45:32]line Смена: 447 ФФД: 1.0 [14:45:32]line ЗНМ: 0300000160 [14:45:32]line РНМ: 0000000000090829 [14:45:32]line Версия ККМ: 001 [14:45:32]line ФМ: 0000000000874718 [14:45:32]line ФД: 164990 [14:45:32]line ФПД: 191847536506337 [14:45:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T144530&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164990&fm=191847536506337&tin=02508201610067®Number=0000000000090829&sum=14500 [14:45:32]OFD Sender: Processing packet 164990 [packets to send 105, broken 104] [14:45:32]ProducePacketName [14:45:32]name=ofd_packets/00164990 [14:45:32]OFD Sender: To server: pG, [14:45:32]CommunicateWithHost lk.salyk.kg:30040 [14:45:32]ConnectInit lk.salyk.kg [14:45:32]written 0, free lines is 4095 [14:45:32]Connected sock=10 [14:45:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 06 82 07 01 07 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 08 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 CE 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 81 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 06 00 00 00 00 07 04 06 00 A4 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 8A E4 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7E 84 02 00 35 04 06 00 AE 7B FC 43 B5 E1 A8 A5 1D E2 1F 7B BB 7E [14:45:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 FC A6 47 00 32 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7E 84 02 00 F4 03 04 00 18 8B 93 66 B6 04 01 00 00 1B AE 5F E5 1E C2 57 15 [14:45:32]CommunicateWithHost err = 0 [14:45:32]CheckOFDResponse [14:45:32]1017 (14) - 77093643461234 [14:45:32]1041 (16) - 0000000000874718 [14:45:32]1040 (4) - 164990 [14:45:32]1012 (4) - 14.07.2024 08:23 [14:45:32]1206 (1) - 0 [14:45:32]OFD Sender: Remove packet 164990 [14:45:32]ProducePacketName [14:45:32]name=ofd_packets/00164990 [14:45:32]NVStorageDeleteData [14:45:32]Write to MH i2c: 01 00 00 BD 04 C1 [14:45:32]Write i2c OK [14:45:32]MH_I2C_Read... [14:45:32]Read from MH i2c: 01 [14:45:32]MH_I2C_Read... [14:45:32]Read from MH i2c: 01 07 00 [14:45:32]MH_I2C_Read... [14:45:32]Read from MH i2c: 01 07 00 BD 04 00 00 00 00 00 0B 0D E0 [14:45:32]RasterBufferAndPrint [14:45:32]line [14:45:32]line [14:45:32]line [14:45:32]line [14:45:32]line [14:45:32]written 0, free lines is 3354 [14:45:32]MH_Cut [14:45:32]Write to MH i2c: D1 01 00 C4 04 01 9A [14:45:32]Write i2c OK [14:45:32]MH_I2C_Read... [14:45:32]Read from MH i2c: D1 [14:45:32]MH_I2C_Read... [14:45:32]Read from MH i2c: D1 01 00 [14:45:32]MH_I2C_Read... [14:45:32]Read from MH i2c: D1 01 00 C4 04 00 99 [14:45:32]Write to MH i2c: 01 00 00 C5 04 C9 [14:45:32]Write i2c OK [14:45:32]MH_I2C_Read... [14:45:33]OFD Sender: No OFD packet to send [14:45:33]*** Cut start [14:45:33]*** Partial cut [14:45:33]*** CUTSNS_PIN = 1 [14:45:33]*** CUTSNS_PIN = 0 [14:45:33]*** Brake cut motor [14:45:34]Read from MH i2c: 01 [14:45:34]MH_I2C_Read... [14:45:34]*** Stop cut motor [14:45:34]*** Cut end [14:45:34]Read from MH i2c: 01 07 00 [14:45:34]MH_I2C_Read... [14:45:34]Read from MH i2c: 01 07 00 C5 04 00 00 00 00 00 FF 0F DE [14:45:34]process_action close_receipt done [14:45:34]requested_data is exist [14:45:34]produce_requested_data [14:45:34]requested_item fm.sn is exist - process it [14:45:34]wFMCommunicate request_size=4 [14:45:34]MH_SAM_APDU [14:45:34]CAPDU: 80 11 00 00 [14:45:34]Write to MH i2c: E2 08 00 C6 04 80 11 00 00 00 00 00 00 44 [14:45:34]Write i2c OK [14:45:34]MH_I2C_Read... [14:45:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:45:34]Read from MH i2c: E2 [14:45:34]MH_I2C_Read... [14:45:34]Read from MH i2c: E2 17 00 [14:45:34]MH_I2C_Read... [14:45:34]Read from MH i2c: E2 17 00 C6 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 9A [14:45:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:45:34]wFMCommunicate OK [14:45:34]requested_item fd.num is exist - process it [14:45:34]SAM_PROTO_GetFieldsCounters [14:45:34]wFMCommunicate request_size=4 [14:45:34]MH_SAM_APDU [14:45:34]CAPDU: 80 13 00 00 [14:45:34]Write to MH i2c: E2 08 00 C7 04 80 13 00 00 00 00 00 00 47 [14:45:34]Write i2c OK [14:45:34]MH_I2C_Read... [14:45:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:45:34]Read from MH i2c: E2 [14:45:34]MH_I2C_Read... [14:45:34]Read from MH i2c: E2 62 00 [14:45:34]MH_I2C_Read... [14:45:34]Read from MH i2c: E2 62 00 C7 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 7E 84 02 00 0E 04 04 00 BF 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 66 [14:45:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 7E 84 02 00 0E 04 04 00 BF 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 [14:45:34]wFMCommunicate OK [14:45:34]SAM_PROTO_GetFieldsCounters done [14:45:34]requested_item shift.num is exist - process it [14:45:34]requested_item shift.opened is exist - process it [14:45:34]req_shift_opened [14:45:34]FM_GetShiftState [14:45:34]SAM_PROTO_GetShiftState [14:45:34]wFMCommunicate request_size=4 [14:45:34]MH_SAM_APDU [14:45:34]CAPDU: 80 13 01 00 [14:45:34]Write to MH i2c: E2 08 00 C8 04 80 13 01 00 00 00 00 00 49 [14:45:34]Write i2c OK [14:45:34]MH_I2C_Read... [14:45:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:45:34]Read from MH i2c: E2 [14:45:34]MH_I2C_Read... [14:45:34]Read from MH i2c: E2 0E 00 [14:45:34]MH_I2C_Read... [14:45:34]Read from MH i2c: E2 0E 00 C8 04 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 C9 [14:45:34]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [14:45:34]wFMCommunicate OK [14:45:34]SAM_PROTO_GetShiftState done [14:45:34]FM_GetShiftState done [14:45:34]req_shift_opened done [14:45:34]requested_item shift.open_date is exist - process it [14:45:34]req_shift_open_date [14:45:34]req_shift_open_date done [14:45:34]produce_requested_data done [14:45:34]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164990,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [14:45:34]process_action_free close_receipt [14:45:34]json_value_free [14:45:34]json_value_free done [14:45:34]process_json_proto returns [14:45:34]Send response to host [14:45:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164990,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [14:45:34]free response buf [14:45:34]execute_script done [14:45:34]execute_script returns [14:45:34]free content buf [14:45:34]Sock 9.Close socket [14:45:34]Sock 9.Thread stoped [14:45:38]OFD Sender: No OFD packet to send [14:45:43]OFD Sender: No OFD packet to send [14:45:48]OFD Sender: No OFD packet to send [14:45:53]OFD Sender: No OFD packet to send [14:45:58]OFD Sender: No OFD packet to send [14:46:03]OFD Sender: No OFD packet to send [14:46:08]OFD Sender: No OFD packet to send [14:46:13]OFD Sender: No OFD packet to send [14:46:18]OFD Sender: No OFD packet to send [14:46:23]OFD Sender: No OFD packet to send [14:46:28]OFD Sender: No OFD packet to send [14:46:33]OFD Sender: No OFD packet to send [14:46:38]OFD Sender: No OFD packet to send [14:46:43]OFD Sender: No OFD packet to send [14:46:48]OFD Sender: No OFD packet to send [14:46:53]OFD Sender: No OFD packet to send [14:46:58]OFD Sender: No OFD packet to send [14:47:03]OFD Sender: No OFD packet to send [14:47:08]OFD Sender: No OFD packet to send [14:47:13]OFD Sender: No OFD packet to send [14:47:18]OFD Sender: No OFD packet to send [14:47:23]OFD Sender: No OFD packet to send [14:47:28]OFD Sender: No OFD packet to send [14:47:33]OFD Sender: No OFD packet to send [14:47:38]OFD Sender: No OFD packet to send [14:47:43]OFD Sender: No OFD packet to send [14:47:48]OFD Sender: No OFD packet to send [14:47:53]OFD Sender: No OFD packet to send [14:47:58]OFD Sender: No OFD packet to send [14:48:03]OFD Sender: No OFD packet to send [14:48:08]OFD Sender: No OFD packet to send [14:48:13]OFD Sender: No OFD packet to send [14:48:18]OFD Sender: No OFD packet to send [14:48:23]OFD Sender: No OFD packet to send [14:48:28]OFD Sender: No OFD packet to send [14:48:33]OFD Sender: No OFD packet to send [14:48:38]OFD Sender: No OFD packet to send [14:48:43]OFD Sender: No OFD packet to send [14:48:48]OFD Sender: No OFD packet to send [14:48:53]OFD Sender: No OFD packet to send [14:48:58]OFD Sender: No OFD packet to send [14:49:03]OFD Sender: No OFD packet to send [14:49:08]OFD Sender: No OFD packet to send [14:49:13]OFD Sender: No OFD packet to send [14:49:18]OFD Sender: No OFD packet to send [14:49:23]OFD Sender: No OFD packet to send [14:49:28]OFD Sender: No OFD packet to send [14:49:33]OFD Sender: No OFD packet to send [14:49:38]OFD Sender: No OFD packet to send [14:49:43]OFD Sender: No OFD packet to send [14:49:48]OFD Sender: No OFD packet to send [14:49:53]OFD Sender: No OFD packet to send [14:49:58]OFD Sender: No OFD packet to send [14:50:03]OFD Sender: No OFD packet to send [14:50:08]OFD Sender: No OFD packet to send [14:50:13]OFD Sender: No OFD packet to send [14:50:18]OFD Sender: No OFD packet to send [14:50:23]OFD Sender: No OFD packet to send [14:50:28]OFD Sender: No OFD packet to send [14:50:33]OFD Sender: No OFD packet to send [14:50:38]OFD Sender: No OFD packet to send [14:50:43]OFD Sender: No OFD packet to send [14:50:48]OFD Sender: No OFD packet to send [14:50:53]OFD Sender: No OFD packet to send [14:50:58]OFD Sender: No OFD packet to send [14:51:03]OFD Sender: No OFD packet to send [14:51:08]OFD Sender: No OFD packet to send [14:51:13]OFD Sender: No OFD packet to send [14:51:18]OFD Sender: No OFD packet to send [14:51:23]OFD Sender: No OFD packet to send [14:51:28]OFD Sender: No OFD packet to send [14:51:33]OFD Sender: No OFD packet to send [14:51:38]OFD Sender: No OFD packet to send [14:51:43]OFD Sender: No OFD packet to send [14:51:48]OFD Sender: No OFD packet to send [14:51:53]OFD Sender: No OFD packet to send [14:51:58]OFD Sender: No OFD packet to send [14:52:03]OFD Sender: No OFD packet to send [14:52:08]OFD Sender: No OFD packet to send [14:52:13]OFD Sender: No OFD packet to send [14:52:18]OFD Sender: No OFD packet to send [14:52:23]OFD Sender: No OFD packet to send [14:52:28]OFD Sender: No OFD packet to send [14:52:33]OFD Sender: No OFD packet to send [14:52:38]OFD Sender: No OFD packet to send [14:52:42]accept exits with 7 [14:52:42]New connection [14:52:42]New thread 3066805604 created [14:52:42]Thread 3066948964 joined [14:52:42]Waiting for new connection... [14:52:42] Sock 7.Parse request [14:52:42]Sock 7.Check first char [14:52:42]Sock 7.First char is OK [14:52:42]request: POST /json_proto HTTP/1.0 [14:52:42]Method: POST [14:52:42]URL: /json_proto [14:52:42]Method is POST - this is cgi request [14:52:42]url: /json_proto [14:52:42]query_string will be loaded in cgi processing [14:52:42]execute_cgi json_proto POST (null) [14:52:42]execute_cgi path=json_proto method=POST [14:52:42]POST find Content-Length [14:52:42]Host: 172.17.56.4:8080 [14:52:42]Content-Length: 677 [14:52:42]Content-Type: application/json [14:52:42] [14:52:42]POST finish read [14:52:42]Found Content-Length = 677 [14:52:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459091", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:52:42]execute_script... [14:52: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)459091", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:52:42]POST & json_proto [14:52:42]process_json_proto [14:52:42]json parsed OK: [14:52:42]protocol is kg_v1.0 [14:52:42]action value=close_receipt [14:52:42]process_action close_receipt [14:52:42]cmd_close_receipt [14:52:42]MH_GetDate [14:52:42]Write to MH i2c: F0 00 00 C9 04 BC [14:52:42]Write i2c OK [14:52:42]MH_I2C_Read... [14:52:42]Read from MH i2c: F0 [14:52:42]MH_I2C_Read... [14:52:42]Read from MH i2c: F0 09 00 [14:52:42]MH_I2C_Read... [14:52:42]Read from MH i2c: F0 09 00 C9 04 00 3B E6 93 66 C9 DC B2 64 9A [14:52:42]GetLastDocTimeStamp 1720968330 [14:52:42]current date 1720968763 [14:52:42]FM_GetShiftState [14:52:42]SAM_PROTO_GetShiftState [14:52:42]wFMCommunicate request_size=4 [14:52:42]MH_SAM_APDU [14:52:42]CAPDU: 80 13 01 00 [14:52:42]Write to MH i2c: E2 08 00 CA 04 80 13 01 00 00 00 00 00 4B [14:52:42]Write i2c OK [14:52:42]MH_I2C_Read... [14:52:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:52:43]Read from MH i2c: E2 [14:52:43]MH_I2C_Read... [14:52:43]Read from MH i2c: E2 0E 00 [14:52:43]MH_I2C_Read... [14:52:43]Read from MH i2c: E2 0E 00 CA 04 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 CB [14:52:43]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [14:52:43]wFMCommunicate OK [14:52:43]SAM_PROTO_GetShiftState done [14:52:43]FM_GetShiftState done [14:52:43]opened in 1720917342 [14:52:43]opened+sec_in_day 1721003742 [14:52:43]quantity*price = 40006 [14:52:43]sum+1 = 40007 [14:52:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 189 14.07.2024 14:52 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164991 ФПД: 113292775965990 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T145243&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164991&fm=113292775965990&tin=02508201610067®Number=0000000000090829&sum=40000 [14:52:44]StoreToDocumentArchive [14:52:44]shift 447 fd 164991 [14:52:44]save to /storage/0447/doc_00164991 [14:52:44]save last doc name /storage/0447/doc_00164991 to /storage/kkm_last_doc_name [14:52:44]save OK [14:52:44]Clear old archive folders... [14:52:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:52:44]tlvbuf is 012FBDE0 [14:52:44]SAM_PROTO_ClearQueue [14:52:44]wFMCommunicate request_size=4 [14:52:44]MH_SAM_APDU [14:52:44]CAPDU: 80 09 00 00 [14:52:44]Write to MH i2c: E2 08 00 D7 04 80 09 00 00 00 00 00 00 4D [14:52:44]Write i2c OK [14:52:44]MH_I2C_Read... [14:52:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:52:44]Read from MH i2c: E2 [14:52:44]MH_I2C_Read... [14:52:44]Read from MH i2c: E2 03 00 [14:52:44]MH_I2C_Read... [14:52:44]Read from MH i2c: E2 03 00 D7 04 00 90 00 4F [14:52:44]RAPDU: 90 00 [14:52:44]wFMCommunicate OK [14:52:44]SAM_PROTO_ClearQueue done [14:52:44]KKMCreateOFDPacket [14:52:44]OFDProtocolAddRootSTLVToBuf [14:52:44]FM_MakeSignedData [14:52:44]FM_MakeSignedData [14:52:44]SAM_PROTO_SignData [14:52:44]wFMCommunicate request_size=4 [14:52:44]MH_SAM_APDU [14:52:44]CAPDU: 80 0D 01 02 [14:52:44]Write to MH i2c: E2 08 00 D8 04 80 0D 01 02 00 00 00 00 55 [14:52:44]Write i2c OK [14:52:44]MH_I2C_Read... [14:52:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:52:44]Read from MH i2c: E2 [14:52:44]MH_I2C_Read... [14:52:44]Read from MH i2c: E2 03 00 [14:52:44]MH_I2C_Read... [14:52:44]Read from MH i2c: E2 03 00 D8 04 00 90 00 50 [14:52:44]RAPDU: 90 00 [14:52:44]wFMCommunicate OK [14:52:44]wFMCommunicate request_size=255 [14:52:44]MH_SAM_APDU [14:52:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 BD 00 00 00 F4 03 04 00 3B E6 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7F 84 02 00 35 04 06 00 67 [14:52:44]Write to MH i2c: E2 02 01 D9 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 BD 00 00 00 F4 03 04 00 3B E6 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7F 84 02 00 35 04 06 00 67 00 00 B1 [14:52:44]Write i2c OK [14:52:44]MH_I2C_Read... [14:52:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:52:44]Read from MH i2c: E2 [14:52:44]MH_I2C_Read... [14:52:44]Read from MH i2c: E2 03 00 [14:52:44]MH_I2C_Read... [14:52:44]Read from MH i2c: E2 03 00 D9 04 00 90 00 51 [14:52:44]RAPDU: 90 00 [14:52:44]wFMCommunicate OK [14:52:44]wFMCommunicate request_size=10 [14:52:44]MH_SAM_APDU [14:52:44]CAPDU: 80 0D 02 02 05 0A 07 AA C5 26 [14:52:44]Write to MH i2c: E2 0D 00 DA 04 80 0D 02 02 05 00 0A 07 AA C5 26 00 00 08 [14:52:44]Write i2c OK [14:52:44]MH_I2C_Read... [14:52:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:52:44]Read from MH i2c: E2 [14:52:44]MH_I2C_Read... [14:52:44]Read from MH i2c: E2 03 00 [14:52:44]MH_I2C_Read... [14:52:44]Read from MH i2c: E2 03 00 DA 04 00 90 00 52 [14:52:44]RAPDU: 90 00 [14:52:44]wFMCommunicate OK [14:52:44]wFMCommunicate request_size=4 [14:52:44]MH_SAM_APDU [14:52:44]CAPDU: 80 0D 03 02 [14:52:44]Write to MH i2c: E2 08 00 DB 04 80 0D 03 02 00 00 00 00 5A [14:52:44]Write i2c OK [14:52:44]MH_I2C_Read... [14:52:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:52:44]Read from MH i2c: E2 [14:52:44]MH_I2C_Read... [14:52:44]Read from MH i2c: E2 0B 00 [14:52:44]MH_I2C_Read... [14:52:44]Read from MH i2c: E2 0B 00 DB 04 00 9F 2F 92 22 86 AF A5 80 90 00 37 [14:52:44]RAPDU: 9F 2F 92 22 86 AF A5 80 90 00 [14:52:44]wFMCommunicate OK [14:52:44]SAM_PROTO_SignData done [14:52:44]FM_MakeSignedData done [14:52:44]CreateOFDProtocolMessage [14:52:44]wFMCommunicate request_size=4 [14:52:44]MH_SAM_APDU [14:52:44]CAPDU: 80 11 00 00 [14:52:44]Write to MH i2c: E2 08 00 DC 04 80 11 00 00 00 00 00 00 5A [14:52:44]Write i2c OK [14:52:44]MH_I2C_Read... [14:52:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:52:44]Read from MH i2c: E2 [14:52:44]MH_I2C_Read... [14:52:44]Read from MH i2c: E2 17 00 [14:52:44]MH_I2C_Read... [14:52:44]Read from MH i2c: E2 17 00 DC 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B0 [14:52:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:52:44]wFMCommunicate OK [14:52:44]CreateOFDProtocolMessage done [14:52:44]OFDSenderStorePacket 164991 [14:52:44]StoreOFDPacket docnum=164991 [14:52:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 37 CB 07 01 E9 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 BD 00 00 00 F4 03 04 00 3B E6 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7F 84 02 00 35 04 06 00 67 0A 07 AA C5 26 9F 2F 92 22 86 AF A5 80 [14:52:44]CheckFolder [14:52:44]dirname=/storage/ofd_packets [14:52:44]CheckFolder done [14:52:44]ProducePacketName [14:52:44]name=ofd_packets/00164991 [14:52:44]NVStorageSaveData ofd_packets/00164991 [14:52:44]File name is /storage/ofd_packets/00164991 [14:52:44]Write 301 bytes [14:52:44]NVStorageSaveData done [14:52:44]OFDSenderStorePacket done [14:52:44]KKMCreateOFDPacket done [14:52:44]NVStorageSaveData kkm_last_timestamp [14:52:44]File name is /storage/kkm_last_timestamp [14:52:44]Write 4 bytes [14:52:44]NVStorageSaveData done [14:52:44]ExternCall_PrintAddStr [14:52:44]wPrintStart [14:52:44]Write to MH i2c: 01 00 00 DD 04 E1 [14:52:44]Write i2c OK [14:52:44]MH_I2C_Read... [14:52:44]Read from MH i2c: 01 [14:52:44]MH_I2C_Read... [14:52:44]Read from MH i2c: 01 07 00 [14:52:44]MH_I2C_Read... [14:52:44]Read from MH i2c: 01 07 00 DD 04 00 00 00 00 00 FF 0F F6 [14:52:44]RasterBufferAndPrint [14:52:44]line Счет N : (1)459091 [14:52:44]line ИНН: 02508201610067 [14:52:44]line Контрольно-Кассовый Чек [14:52:44]line ПРОДАЖА [14:52:44]line ТРК (МРК, ГНК) : 22 [14:52:44]line Товар: 2710124130 [14:52:44]line Аи-92-К-5 [14:52:44]line 6.080 * 65.80 [14:52:44]line = 400.06 [14:52:44]line НДС 12% НСП 1% [14:52:44]line > о реализуемом товаре [14:52:44]line ОКРУГЛЕНИЕ: -0.06 [14:52:44]line ИТОГО: 400.00 [14:52:44]line Внесено: 400.00 [14:52:44]line СДАЧА: 0.00 [14:52:44]line НСП 1% : 3.54 [14:52:44]line НДС 12% : 42.48 [14:52:44]line Наличными: 400.00 [14:52:44]line Безнал.: 0.00 [14:52:44]line Место: АЗС № 72 "Партнер Нефть" [14:52:44]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:52:44]line СНО: Общий режим [14:52:44]line Чек 189 14.07.2024 14:52 [14:52:44]line Смена: 447 ФФД: 1.0 [14:52:44]line ЗНМ: 0300000160 [14:52:44]line РНМ: 0000000000090829 [14:52:44]line Версия ККМ: 001 [14:52:44]line ФМ: 0000000000874718 [14:52:44]line ФД: 164991 [14:52:44]line ФПД: 113292775965990 [14:52:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T145243&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164991&fm=113292775965990&tin=02508201610067®Number=0000000000090829&sum=40000 [14:52:45]written 0, free lines is 4095 [14:52:45]OFD Sender: Processing packet 164991 [packets to send 105, broken 104] [14:52:45]ProducePacketName [14:52:45]name=ofd_packets/00164991 [14:52:45]OFD Sender: To server: pG, [14:52:45]CommunicateWithHost lk.salyk.kg:30040 [14:52:45]ConnectInit lk.salyk.kg [14:52:45]Connected sock=9 [14:52:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 37 CB 07 01 E9 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 BD 00 00 00 F4 03 04 00 3B E6 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7F 84 02 00 35 04 06 00 67 0A 07 AA C5 26 9F 2F 92 22 86 AF A5 80 [14:52:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 72 9F 47 00 60 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7F 84 02 00 F4 03 04 00 C8 8C 93 66 B6 04 01 00 00 5A 03 28 CA E4 D3 E6 1E [14:52:45]CommunicateWithHost err = 0 [14:52:45]CheckOFDResponse [14:52:45]1017 (14) - 77093643461234 [14:52:45]1041 (16) - 0000000000874718 [14:52:45]1040 (4) - 164991 [14:52:45]1012 (4) - 14.07.2024 08:31 [14:52:45]1206 (1) - 0 [14:52:45]OFD Sender: Remove packet 164991 [14:52:45]ProducePacketName [14:52:45]name=ofd_packets/00164991 [14:52:45]NVStorageDeleteData [14:52:45]Write to MH i2c: 01 00 00 07 05 0C [14:52:45]Write i2c OK [14:52:45]MH_I2C_Read... [14:52:45]Read from MH i2c: 01 [14:52:45]MH_I2C_Read... [14:52:45]Read from MH i2c: 01 07 00 [14:52:45]MH_I2C_Read... [14:52:45]Read from MH i2c: 01 07 00 07 05 00 00 00 00 00 FC 0C 1B [14:52:45]RasterBufferAndPrint [14:52:45]line [14:52:45]line [14:52:45]line [14:52:45]line [14:52:45]line [14:52:45]written 0, free lines is 3333 [14:52:45]MH_Cut [14:52:45]Write to MH i2c: D1 01 00 0E 05 01 E5 [14:52:45]Write i2c OK [14:52:45]MH_I2C_Read... [14:52:45]Read from MH i2c: D1 [14:52:45]MH_I2C_Read... [14:52:45]Read from MH i2c: D1 01 00 [14:52:45]MH_I2C_Read... [14:52:45]Read from MH i2c: D1 01 00 0E 05 00 E4 [14:52:45]Write to MH i2c: 01 00 00 0F 05 14 [14:52:45]Write i2c OK [14:52:45]MH_I2C_Read... [14:52:45]OFD Sender: No OFD packet to send [14:52:46]*** Cut start [14:52:46]*** Partial cut [14:52:46]*** CUTSNS_PIN = 1 [14:52:46]*** CUTSNS_PIN = 0 [14:52:46]*** Brake cut motor [14:52:46]Read from MH i2c: 01 [14:52:46]MH_I2C_Read... [14:52:46]*** Stop cut motor [14:52:46]*** Cut end [14:52:46]Read from MH i2c: 01 07 00 [14:52:46]MH_I2C_Read... [14:52:46]Read from MH i2c: 01 07 00 0F 05 00 00 00 00 00 FF 0F 29 [14:52:46]process_action close_receipt done [14:52:46]requested_data is exist [14:52:46]produce_requested_data [14:52:46]requested_item fm.sn is exist - process it [14:52:46]wFMCommunicate request_size=4 [14:52:46]MH_SAM_APDU [14:52:46]CAPDU: 80 11 00 00 [14:52:46]Write to MH i2c: E2 08 00 10 05 80 11 00 00 00 00 00 00 8F [14:52:46]Write i2c OK [14:52:46]MH_I2C_Read... [14:52:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:52:46]Read from MH i2c: E2 [14:52:46]MH_I2C_Read... [14:52:46]Read from MH i2c: E2 17 00 [14:52:46]MH_I2C_Read... [14:52:46]Read from MH i2c: E2 17 00 10 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E5 [14:52:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:52:46]wFMCommunicate OK [14:52:46]requested_item fd.num is exist - process it [14:52:46]SAM_PROTO_GetFieldsCounters [14:52:46]wFMCommunicate request_size=4 [14:52:46]MH_SAM_APDU [14:52:46]CAPDU: 80 13 00 00 [14:52:46]Write to MH i2c: E2 08 00 11 05 80 13 00 00 00 00 00 00 92 [14:52:46]Write i2c OK [14:52:46]MH_I2C_Read... [14:52:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:52:46]Read from MH i2c: E2 [14:52:46]MH_I2C_Read... [14:52:46]Read from MH i2c: E2 62 00 [14:52:46]MH_I2C_Read... [14:52:46]Read from MH i2c: E2 62 00 11 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 7F 84 02 00 0E 04 04 00 BF 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 B5 [14:52:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 7F 84 02 00 0E 04 04 00 BF 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 [14:52:46]wFMCommunicate OK [14:52:46]SAM_PROTO_GetFieldsCounters done [14:52:46]requested_item shift.num is exist - process it [14:52:46]requested_item shift.opened is exist - process it [14:52:46]req_shift_opened [14:52:46]FM_GetShiftState [14:52:46]SAM_PROTO_GetShiftState [14:52:46]wFMCommunicate request_size=4 [14:52:46]MH_SAM_APDU [14:52:46]CAPDU: 80 13 01 00 [14:52:46]Write to MH i2c: E2 08 00 12 05 80 13 01 00 00 00 00 00 94 [14:52:46]Write i2c OK [14:52:46]MH_I2C_Read... [14:52:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:52:46]Read from MH i2c: E2 [14:52:46]MH_I2C_Read... [14:52:46]Read from MH i2c: E2 0E 00 [14:52:46]MH_I2C_Read... [14:52:46]Read from MH i2c: E2 0E 00 12 05 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 14 [14:52:46]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [14:52:46]wFMCommunicate OK [14:52:46]SAM_PROTO_GetShiftState done [14:52:46]FM_GetShiftState done [14:52:46]req_shift_opened done [14:52:46]requested_item shift.open_date is exist - process it [14:52:46]req_shift_open_date [14:52:46]req_shift_open_date done [14:52:46]produce_requested_data done [14:52:46]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164991,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [14:52:46]process_action_free close_receipt [14:52:46]json_value_free [14:52:46]json_value_free done [14:52:46]process_json_proto returns [14:52:46]Send response to host [14:52:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164991,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [14:52:46]free response buf [14:52:46]execute_script done [14:52:46]execute_script returns [14:52:46]free content buf [14:52:46]Sock 7.Close socket [14:52:46]Sock 7.Thread stoped [14:52:50]OFD Sender: No OFD packet to send [14:52:55]OFD Sender: No OFD packet to send [14:53:00]OFD Sender: No OFD packet to send [14:53:05]OFD Sender: No OFD packet to send [14:53:10]OFD Sender: No OFD packet to send [14:53:15]OFD Sender: No OFD packet to send [14:53:20]OFD Sender: No OFD packet to send [14:53:25]OFD Sender: No OFD packet to send [14:53:30]OFD Sender: No OFD packet to send [14:53:35]OFD Sender: No OFD packet to send [14:53:40]OFD Sender: No OFD packet to send [14:53:45]OFD Sender: No OFD packet to send [14:53:50]OFD Sender: No OFD packet to send [14:53:55]OFD Sender: No OFD packet to send [14:54:00]OFD Sender: No OFD packet to send [14:54:05]OFD Sender: No OFD packet to send [14:54:10]OFD Sender: No OFD packet to send [14:54:15]OFD Sender: No OFD packet to send [14:54:20]OFD Sender: No OFD packet to send [14:54:25]OFD Sender: No OFD packet to send [14:54:30]OFD Sender: No OFD packet to send [14:54:35]OFD Sender: No OFD packet to send [14:54:40]OFD Sender: No OFD packet to send [14:54:45]OFD Sender: No OFD packet to send [14:54:50]OFD Sender: No OFD packet to send [14:54:55]OFD Sender: No OFD packet to send [14:55:00]OFD Sender: No OFD packet to send [14:55:05]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:47]accept exits with 10 [14:55:47]New connection [14:55:47]New thread 3066948964 created [14:55:47]Thread 3066805604 joined [14:55:47]Waiting for new connection... [14:55:47] Sock 10.Parse request [14:55:47]Sock 10.Check first char [14:55:47]Sock 10.First char is OK [14:55:47]request: POST /json_proto HTTP/1.0 [14:55:47]Method: POST [14:55:47]URL: /json_proto [14:55:47]Method is POST - this is cgi request [14:55:47]url: /json_proto [14:55:47]query_string will be loaded in cgi processing [14:55:47]execute_cgi json_proto POST (null) [14:55:47]execute_cgi path=json_proto method=POST [14:55:47]POST find Content-Length [14:55:47]Host: 172.17.56.4:8080 [14:55:47]Content-Length: 678 [14:55:47]Content-Type: application/json [14:55:47] [14:55:47]POST finish read [14:55:47]Found Content-Length = 678 [14:55:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459092", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 12.160, "sum" : 800.13, "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" ] } } [14:55:47]execute_script... [14:55:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459092", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 12.160, "sum" : 800.13, "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" ] } } [14:55:47]POST & json_proto [14:55:47]process_json_proto [14:55:47]json parsed OK: [14:55:47]protocol is kg_v1.0 [14:55:47]action value=close_receipt [14:55:47]process_action close_receipt [14:55:47]cmd_close_receipt [14:55:47]MH_GetDate [14:55:47]Write to MH i2c: F0 00 00 13 05 07 [14:55:47]Write i2c OK [14:55:47]MH_I2C_Read... [14:55:47]Read from MH i2c: F0 [14:55:47]MH_I2C_Read... [14:55:47]Read from MH i2c: F0 09 00 [14:55:47]MH_I2C_Read... [14:55:47]Read from MH i2c: F0 09 00 13 05 00 F3 E6 93 66 C9 DC B2 64 9D [14:55:47]GetLastDocTimeStamp 1720968763 [14:55:47]current date 1720968947 [14:55:47]FM_GetShiftState [14:55:47]SAM_PROTO_GetShiftState [14:55:47]wFMCommunicate request_size=4 [14:55:47]MH_SAM_APDU [14:55:47]CAPDU: 80 13 01 00 [14:55:47]Write to MH i2c: E2 08 00 14 05 80 13 01 00 00 00 00 00 96 [14:55:47]Write i2c OK [14:55:47]MH_I2C_Read... [14:55:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:47]Read from MH i2c: E2 [14:55:47]MH_I2C_Read... [14:55:47]Read from MH i2c: E2 0E 00 [14:55:47]MH_I2C_Read... [14:55:47]Read from MH i2c: E2 0E 00 14 05 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 16 [14:55:47]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [14:55:47]wFMCommunicate OK [14:55:47]SAM_PROTO_GetShiftState done [14:55:47]FM_GetShiftState done [14:55:47]opened in 1720917342 [14:55:47]opened+sec_in_day 1721003742 [14:55:47]quantity*price = 80012 [14:55:47]sum+1 = 80014 [14:55:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 190 14.07.2024 14:55 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164992 ФПД: 205823756346632 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T145547&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164992&fm=205823756346632&tin=02508201610067®Number=0000000000090829&sum=80000 [14:55:48]StoreToDocumentArchive [14:55:48]shift 447 fd 164992 [14:55:48]save to /storage/0447/doc_00164992 [14:55:48]save last doc name /storage/0447/doc_00164992 to /storage/kkm_last_doc_name [14:55:48]save OK [14:55:48]Clear old archive folders... [14:55:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:55:48]tlvbuf is 01306370 [14:55:48]SAM_PROTO_ClearQueue [14:55:48]wFMCommunicate request_size=4 [14:55:48]MH_SAM_APDU [14:55:48]CAPDU: 80 09 00 00 [14:55:48]Write to MH i2c: E2 08 00 21 05 80 09 00 00 00 00 00 00 98 [14:55:48]Write i2c OK [14:55:48]MH_I2C_Read... [14:55:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:55:48]Read from MH i2c: E2 [14:55:48]MH_I2C_Read... [14:55:48]Read from MH i2c: E2 03 00 [14:55:48]MH_I2C_Read... [14:55:48]Read from MH i2c: E2 03 00 21 05 00 90 00 9A [14:55:48]RAPDU: 90 00 [14:55:48]wFMCommunicate OK [14:55:48]SAM_PROTO_ClearQueue done [14:55:48]KKMCreateOFDPacket [14:55:48]OFDProtocolAddRootSTLVToBuf [14:55:48]FM_MakeSignedData [14:55:48]FM_MakeSignedData [14:55:48]SAM_PROTO_SignData [14:55:48]wFMCommunicate request_size=4 [14:55:48]MH_SAM_APDU [14:55:48]CAPDU: 80 0D 01 02 [14:55:48]Write to MH i2c: E2 08 00 22 05 80 0D 01 02 00 00 00 00 A0 [14:55:48]Write i2c OK [14:55:48]MH_I2C_Read... [14:55:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:55:48]Read from MH i2c: E2 [14:55:48]MH_I2C_Read... [14:55:48]Read from MH i2c: E2 03 00 [14:55:48]MH_I2C_Read... [14:55:48]Read from MH i2c: E2 03 00 22 05 00 90 00 9B [14:55:48]RAPDU: 90 00 [14:55:48]wFMCommunicate OK [14:55:48]wFMCommunicate request_size=255 [14:55:48]MH_SAM_APDU [14:55:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 2F 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 8D 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 BE 00 00 00 F4 03 04 00 F3 E6 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 80 84 02 00 35 04 06 00 BB [14:55:48]Write to MH i2c: E2 02 01 23 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 2F 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 8D 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 BE 00 00 00 F4 03 04 00 F3 E6 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 80 84 02 00 35 04 06 00 BB 00 00 8D [14:55:48]Write i2c OK [14:55:48]MH_I2C_Read... [14:55:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:48]Read from MH i2c: E2 [14:55:48]MH_I2C_Read... [14:55:48]Read from MH i2c: E2 03 00 [14:55:48]MH_I2C_Read... [14:55:48]Read from MH i2c: E2 03 00 23 05 00 90 00 9C [14:55:48]RAPDU: 90 00 [14:55:48]wFMCommunicate OK [14:55:48]wFMCommunicate request_size=10 [14:55:48]MH_SAM_APDU [14:55:48]CAPDU: 80 0D 02 02 05 32 13 E2 25 08 [14:55:48]Write to MH i2c: E2 0D 00 24 05 80 0D 02 02 05 00 32 13 E2 25 08 00 00 01 [14:55:48]Write i2c OK [14:55:48]MH_I2C_Read... [14:55:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:48]Read from MH i2c: E2 [14:55:48]MH_I2C_Read... [14:55:48]Read from MH i2c: E2 03 00 [14:55:48]MH_I2C_Read... [14:55:48]Read from MH i2c: E2 03 00 24 05 00 90 00 9D [14:55:48]RAPDU: 90 00 [14:55:48]wFMCommunicate OK [14:55:48]wFMCommunicate request_size=4 [14:55:48]MH_SAM_APDU [14:55:48]CAPDU: 80 0D 03 02 [14:55:48]Write to MH i2c: E2 08 00 25 05 80 0D 03 02 00 00 00 00 A5 [14:55:48]Write i2c OK [14:55:48]MH_I2C_Read... [14:55:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:55:48]Read from MH i2c: E2 [14:55:48]MH_I2C_Read... [14:55:48]Read from MH i2c: E2 0B 00 [14:55:48]MH_I2C_Read... [14:55:48]Read from MH i2c: E2 0B 00 25 05 00 BD 1E CB AE 18 E4 BA 81 90 00 31 [14:55:48]RAPDU: BD 1E CB AE 18 E4 BA 81 90 00 [14:55:48]wFMCommunicate OK [14:55:48]SAM_PROTO_SignData done [14:55:48]FM_MakeSignedData done [14:55:48]CreateOFDProtocolMessage [14:55:48]wFMCommunicate request_size=4 [14:55:48]MH_SAM_APDU [14:55:48]CAPDU: 80 11 00 00 [14:55:48]Write to MH i2c: E2 08 00 26 05 80 11 00 00 00 00 00 00 A5 [14:55:48]Write i2c OK [14:55:48]MH_I2C_Read... [14:55:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:48]Read from MH i2c: E2 [14:55:48]MH_I2C_Read... [14:55:48]Read from MH i2c: E2 17 00 [14:55:48]MH_I2C_Read... [14:55:48]Read from MH i2c: E2 17 00 26 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 FB [14:55:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:55:48]wFMCommunicate OK [14:55:48]CreateOFDProtocolMessage done [14:55:48]OFDSenderStorePacket 164992 [14:55:48]StoreOFDPacket docnum=164992 [14:55:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 AE 0D 07 01 27 B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 2F 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 8D 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 BE 00 00 00 F4 03 04 00 F3 E6 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 80 84 02 00 35 04 06 00 BB 32 13 E2 25 08 BD 1E CB AE 18 E4 BA 81 [14:55:48]CheckFolder [14:55:48]dirname=/storage/ofd_packets [14:55:48]CheckFolder done [14:55:48]ProducePacketName [14:55:48]name=ofd_packets/00164992 [14:55:48]NVStorageSaveData ofd_packets/00164992 [14:55:48]File name is /storage/ofd_packets/00164992 [14:55:48]Write 301 bytes [14:55:48]NVStorageSaveData done [14:55:48]OFDSenderStorePacket done [14:55:48]KKMCreateOFDPacket done [14:55:48]NVStorageSaveData kkm_last_timestamp [14:55:48]File name is /storage/kkm_last_timestamp [14:55:48]Write 4 bytes [14:55:48]NVStorageSaveData done [14:55:48]ExternCall_PrintAddStr [14:55:48]wPrintStart [14:55:48]Write to MH i2c: 01 00 00 27 05 2C [14:55:48]Write i2c OK [14:55:48]MH_I2C_Read... [14:55:48]Read from MH i2c: 01 [14:55:48]MH_I2C_Read... [14:55:48]Read from MH i2c: 01 07 00 [14:55:48]MH_I2C_Read... [14:55:48]Read from MH i2c: 01 07 00 27 05 00 00 00 00 00 FF 0F 41 [14:55:48]RasterBufferAndPrint [14:55:48]line Счет N : (1)459092 [14:55:48]line ИНН: 02508201610067 [14:55:48]line Контрольно-Кассовый Чек [14:55:48]line ПРОДАЖА [14:55:48]line ТРК (МРК, ГНК) : 12 [14:55:48]line Товар: 2710124130 [14:55:48]line Аи-92-К-5 [14:55:48]line 12.160 * 65.80 [14:55:48]line = 800.13 [14:55:48]line НДС 12% НСП 1% [14:55:48]line > о реализуемом товаре [14:55:48]line ОКРУГЛЕНИЕ: -0.13 [14:55:48]line ИТОГО: 800.00 [14:55:48]line Внесено: 800.00 [14:55:48]line СДАЧА: 0.00 [14:55:48]line НСП 1% : 7.08 [14:55:48]line НДС 12% : 84.97 [14:55:48]line Наличными: 800.00 [14:55:48]line Безнал.: 0.00 [14:55:48]line Место: АЗС № 72 "Партнер Нефть" [14:55:48]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:55:48]line СНО: Общий режим [14:55:48]line Чек 190 14.07.2024 14:55 [14:55:48]line Смена: 447 ФФД: 1.0 [14:55:48]line ЗНМ: 0300000160 [14:55:48]line РНМ: 0000000000090829 [14:55:48]line Версия ККМ: 001 [14:55:48]line ФМ: 0000000000874718 [14:55:48]line ФД: 164992 [14:55:48]line ФПД: 205823756346632 [14:55:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T145547&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164992&fm=205823756346632&tin=02508201610067®Number=0000000000090829&sum=80000 [14:55:49]OFD Sender: Processing packet 164992 [packets to send 105, broken 104] [14:55:49]ProducePacketName [14:55:49]name=ofd_packets/00164992 [14:55:49]OFD Sender: To server: pG, [14:55:49]CommunicateWithHost lk.salyk.kg:30040 [14:55:49]ConnectInit lk.salyk.kg [14:55:49]written 0, free lines is 4095 [14:55:49]Connected sock=9 [14:55:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 AE 0D 07 01 27 B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 2F 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 8D 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 BE 00 00 00 F4 03 04 00 F3 E6 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 80 84 02 00 35 04 06 00 BB 32 13 E2 25 08 BD 1E CB AE 18 E4 BA 81 [14:55:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 09 CA 47 00 38 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 80 84 02 00 F4 03 04 00 81 8D 93 66 B6 04 01 00 00 86 BA D4 D0 CD 7B 70 0E [14:55:49]CommunicateWithHost err = 0 [14:55:49]CheckOFDResponse [14:55:49]1017 (14) - 77093643461234 [14:55:49]1041 (16) - 0000000000874718 [14:55:49]1040 (4) - 164992 [14:55:49]1012 (4) - 14.07.2024 08:34 [14:55:49]1206 (1) - 0 [14:55:49]OFD Sender: Remove packet 164992 [14:55:49]ProducePacketName [14:55:49]name=ofd_packets/00164992 [14:55:49]NVStorageDeleteData [14:55:49]Write to MH i2c: 01 00 00 51 05 56 [14:55:49]Write i2c OK [14:55:49]MH_I2C_Read... [14:55:49]Read from MH i2c: 01 [14:55:49]MH_I2C_Read... [14:55:49]Read from MH i2c: 01 07 00 [14:55:49]MH_I2C_Read... [14:55:49]Read from MH i2c: 01 07 00 51 05 00 00 00 00 00 11 0D 7B [14:55:49]RasterBufferAndPrint [14:55:49]line [14:55:49]line [14:55:49]line [14:55:49]line [14:55:49]line [14:55:49]written 0, free lines is 3351 [14:55:49]MH_Cut [14:55:49]Write to MH i2c: D1 01 00 58 05 01 2F [14:55:49]Write i2c OK [14:55:49]MH_I2C_Read... [14:55:49]Read from MH i2c: D1 [14:55:49]MH_I2C_Read... [14:55:49]Read from MH i2c: D1 01 00 [14:55:49]MH_I2C_Read... [14:55:49]Read from MH i2c: D1 01 00 58 05 00 2E [14:55:49]Write to MH i2c: 01 00 00 59 05 5E [14:55:49]Write i2c OK [14:55:49]MH_I2C_Read... [14:55:49]OFD Sender: No OFD packet to send [14:55:50]*** Cut start [14:55:50]*** Partial cut [14:55:50]*** CUTSNS_PIN = 1 [14:55:50]*** CUTSNS_PIN = 0 [14:55:50]*** Brake cut motor [14:55:50]Read from MH i2c: 01 [14:55:50]MH_I2C_Read... [14:55:50]*** Stop cut motor [14:55:50]*** Cut end [14:55:50]Read from MH i2c: 01 07 00 [14:55:50]MH_I2C_Read... [14:55:50]Read from MH i2c: 01 07 00 59 05 00 00 00 00 00 FF 0F 73 [14:55:50]process_action close_receipt done [14:55:50]requested_data is exist [14:55:50]produce_requested_data [14:55:50]requested_item fm.sn is exist - process it [14:55:50]wFMCommunicate request_size=4 [14:55:50]MH_SAM_APDU [14:55:50]CAPDU: 80 11 00 00 [14:55:50]Write to MH i2c: E2 08 00 5A 05 80 11 00 00 00 00 00 00 D9 [14:55:50]Write i2c OK [14:55:50]MH_I2C_Read... [14:55:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:50]Read from MH i2c: E2 [14:55:50]MH_I2C_Read... [14:55:50]Read from MH i2c: E2 17 00 [14:55:50]MH_I2C_Read... [14:55:50]Read from MH i2c: E2 17 00 5A 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 2F [14:55:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:55:50]wFMCommunicate OK [14:55:50]requested_item fd.num is exist - process it [14:55:50]SAM_PROTO_GetFieldsCounters [14:55:50]wFMCommunicate request_size=4 [14:55:50]MH_SAM_APDU [14:55:50]CAPDU: 80 13 00 00 [14:55:50]Write to MH i2c: E2 08 00 5B 05 80 13 00 00 00 00 00 00 DC [14:55:50]Write i2c OK [14:55:50]MH_I2C_Read... [14:55:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:55:51]Read from MH i2c: E2 [14:55:51]MH_I2C_Read... [14:55:51]Read from MH i2c: E2 62 00 [14:55:51]MH_I2C_Read... [14:55:51]Read from MH i2c: E2 62 00 5B 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 80 84 02 00 0E 04 04 00 BF 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 03 [14:55:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 80 84 02 00 0E 04 04 00 BF 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 [14:55:51]wFMCommunicate OK [14:55:51]SAM_PROTO_GetFieldsCounters done [14:55:51]requested_item shift.num is exist - process it [14:55:51]requested_item shift.opened is exist - process it [14:55:51]req_shift_opened [14:55:51]FM_GetShiftState [14:55:51]SAM_PROTO_GetShiftState [14:55:51]wFMCommunicate request_size=4 [14:55:51]MH_SAM_APDU [14:55:51]CAPDU: 80 13 01 00 [14:55:51]Write to MH i2c: E2 08 00 5C 05 80 13 01 00 00 00 00 00 DE [14:55:51]Write i2c OK [14:55:51]MH_I2C_Read... [14:55:51]Read from MH i2c: E2 [14:55:51]MH_I2C_Read... [14:55:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:51]Read from MH i2c: E2 0E 00 [14:55:51]MH_I2C_Read... [14:55:51]Read from MH i2c: E2 0E 00 5C 05 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 5E [14:55:51]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [14:55:51]wFMCommunicate OK [14:55:51]SAM_PROTO_GetShiftState done [14:55:51]FM_GetShiftState done [14:55:51]req_shift_opened done [14:55:51]requested_item shift.open_date is exist - process it [14:55:51]req_shift_open_date [14:55:51]req_shift_open_date done [14:55:51]produce_requested_data done [14:55:51]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164992,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [14:55:51]process_action_free close_receipt [14:55:51]json_value_free [14:55:51]json_value_free done [14:55:51]process_json_proto returns [14:55:51]Send response to host [14:55:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164992,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [14:55:51]free response buf [14:55:51]execute_script done [14:55:51]execute_script returns [14:55:51]free content buf [14:55:51]Sock 10.Close socket [14:55:51]Sock 10.Thread stoped [14:55:54]OFD Sender: No OFD packet to send [14:55:59]OFD Sender: No OFD packet to send [14:56:04]OFD Sender: No OFD packet to send [14:56:07]accept exits with 7 [14:56:07]New connection [14:56:07]New thread 3066805604 created [14:56:07]Thread 3066948964 joined [14:56:07]Waiting for new connection... [14:56:07] Sock 7.Parse request [14:56:07]Sock 7.Check first char [14:56:07]Sock 7.First char is OK [14:56:07]request: POST /json_proto HTTP/1.0 [14:56:07]Method: POST [14:56:07]URL: /json_proto [14:56:07]Method is POST - this is cgi request [14:56:07]url: /json_proto [14:56:07]query_string will be loaded in cgi processing [14:56:07]execute_cgi json_proto POST (null) [14:56:07]execute_cgi path=json_proto method=POST [14:56:07]POST find Content-Length [14:56:07]Host: 172.17.56.4:8080 [14:56:07]Content-Length: 682 [14:56:07]Content-Type: application/json [14:56:07] [14:56:07]POST finish read [14:56:07]Found Content-Length = 682 [14:56:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459093", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "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:56:07]execute_script... [14:56:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459093", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "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:56:07]POST & json_proto [14:56:07]process_json_proto [14:56:07]json parsed OK: [14:56:07]protocol is kg_v1.0 [14:56:07]action value=close_receipt [14:56:07]process_action close_receipt [14:56:07]cmd_close_receipt [14:56:07]MH_GetDate [14:56:07]Write to MH i2c: F0 00 00 5D 05 51 [14:56:07]Write i2c OK [14:56:07]MH_I2C_Read... [14:56:07]Read from MH i2c: F0 [14:56:07]MH_I2C_Read... [14:56:07]Read from MH i2c: F0 09 00 [14:56:07]MH_I2C_Read... [14:56:07]Read from MH i2c: F0 09 00 5D 05 00 08 E7 93 66 C9 DC B2 64 FD [14:56:07]GetLastDocTimeStamp 1720968947 [14:56:07]current date 1720968968 [14:56:07]FM_GetShiftState [14:56:07]SAM_PROTO_GetShiftState [14:56:07]wFMCommunicate request_size=4 [14:56:07]MH_SAM_APDU [14:56:07]CAPDU: 80 13 01 00 [14:56:07]Write to MH i2c: E2 08 00 5E 05 80 13 01 00 00 00 00 00 E0 [14:56:07]Write i2c OK [14:56:07]MH_I2C_Read... [14:56:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:07]Read from MH i2c: E2 [14:56:07]MH_I2C_Read... [14:56:07]Read from MH i2c: E2 0E 00 [14:56:07]MH_I2C_Read... [14:56:07]Read from MH i2c: E2 0E 00 5E 05 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 60 [14:56:07]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [14:56:07]wFMCommunicate OK [14:56:07]SAM_PROTO_GetShiftState done [14:56:07]FM_GetShiftState done [14:56:07]opened in 1720917342 [14:56:07]opened+sec_in_day 1721003742 [14:56:07]quantity*price = 100016 [14:56:07]sum+1 = 100017 [14:56: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 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 191 14.07.2024 14:56 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164993 ФПД: 225622747814632 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T145608&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164993&fm=225622747814632&tin=02508201610067®Number=0000000000090829&sum=100000 [14:56:09]StoreToDocumentArchive [14:56:09]shift 447 fd 164993 [14:56:09]save to /storage/0447/doc_00164993 [14:56:09]save last doc name /storage/0447/doc_00164993 to /storage/kkm_last_doc_name [14:56:09]save OK [14:56:09]Clear old archive folders... [14:56:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:56:09]tlvbuf is 0129C140 [14:56:09]SAM_PROTO_ClearQueue [14:56:09]wFMCommunicate request_size=4 [14:56:09]MH_SAM_APDU [14:56:09]CAPDU: 80 09 00 00 [14:56:09]Write to MH i2c: E2 08 00 6B 05 80 09 00 00 00 00 00 00 E2 [14:56:09]Write i2c OK [14:56:09]MH_I2C_Read... [14:56:09]Read from MH i2c: E2 [14:56:09]MH_I2C_Read... [14:56:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:56:09]Read from MH i2c: E2 03 00 [14:56:09]MH_I2C_Read... [14:56:09]Read from MH i2c: E2 03 00 6B 05 00 90 00 E4 [14:56:09]RAPDU: 90 00 [14:56:09]wFMCommunicate OK [14:56:09]SAM_PROTO_ClearQueue done [14:56:09]KKMCreateOFDPacket [14:56:09]OFDProtocolAddRootSTLVToBuf [14:56:09]FM_MakeSignedData [14:56:09]FM_MakeSignedData [14:56:09]SAM_PROTO_SignData [14:56:09]wFMCommunicate request_size=4 [14:56:09]MH_SAM_APDU [14:56:09]CAPDU: 80 0D 01 02 [14:56:09]Write to MH i2c: E2 08 00 6C 05 80 0D 01 02 00 00 00 00 EA [14:56:09]Write i2c OK [14:56:09]MH_I2C_Read... [14:56:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:56:09]Read from MH i2c: E2 [14:56:09]MH_I2C_Read... [14:56:09]Read from MH i2c: E2 03 00 [14:56:09]MH_I2C_Read... [14:56:09]Read from MH i2c: E2 03 00 6C 05 00 90 00 E5 [14:56:09]RAPDU: 90 00 [14:56:09]wFMCommunicate OK [14:56:09]wFMCommunicate request_size=255 [14:56:09]MH_SAM_APDU [14:56:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 08 E7 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 81 84 02 00 35 04 06 00 CD [14:56:09]Write to MH i2c: E2 02 01 6D 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 08 E7 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 81 84 02 00 35 04 06 00 CD 00 00 40 [14:56:09]Write i2c OK [14:56:09]MH_I2C_Read... [14:56:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:09]Read from MH i2c: E2 [14:56:09]MH_I2C_Read... [14:56:09]Read from MH i2c: E2 03 00 [14:56:09]MH_I2C_Read... [14:56:09]Read from MH i2c: E2 03 00 6D 05 00 90 00 E6 [14:56:09]RAPDU: 90 00 [14:56:09]wFMCommunicate OK [14:56:09]wFMCommunicate request_size=10 [14:56:09]MH_SAM_APDU [14:56:09]CAPDU: 80 0D 02 02 05 33 E3 BC 9A E8 [14:56:09]Write to MH i2c: E2 0D 00 6E 05 80 0D 02 02 05 00 33 E3 BC 9A E8 00 00 4B [14:56:09]Write i2c OK [14:56:09]MH_I2C_Read... [14:56:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:09]Read from MH i2c: E2 [14:56:09]MH_I2C_Read... [14:56:09]Read from MH i2c: E2 03 00 [14:56:09]MH_I2C_Read... [14:56:09]Read from MH i2c: E2 03 00 6E 05 00 90 00 E7 [14:56:09]RAPDU: 90 00 [14:56:09]wFMCommunicate OK [14:56:09]wFMCommunicate request_size=4 [14:56:09]MH_SAM_APDU [14:56:09]CAPDU: 80 0D 03 02 [14:56:09]Write to MH i2c: E2 08 00 6F 05 80 0D 03 02 00 00 00 00 EF [14:56:09]Write i2c OK [14:56:09]MH_I2C_Read... [14:56:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:56:09]Read from MH i2c: E2 [14:56:09]MH_I2C_Read... [14:56:09]Read from MH i2c: E2 0B 00 [14:56:09]MH_I2C_Read... [14:56:09]Read from MH i2c: E2 0B 00 6F 05 00 F6 2D 9A 5D BB 15 4C AF 90 00 D5 [14:56:09]RAPDU: F6 2D 9A 5D BB 15 4C AF 90 00 [14:56:09]wFMCommunicate OK [14:56:09]SAM_PROTO_SignData done [14:56:09]FM_MakeSignedData done [14:56:09]CreateOFDProtocolMessage [14:56:09]wFMCommunicate request_size=4 [14:56:09]MH_SAM_APDU [14:56:09]CAPDU: 80 11 00 00 [14:56:09]Write to MH i2c: E2 08 00 70 05 80 11 00 00 00 00 00 00 EF [14:56:09]Write i2c OK [14:56:09]MH_I2C_Read... [14:56:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:09]Read from MH i2c: E2 [14:56:09]MH_I2C_Read... [14:56:09]Read from MH i2c: E2 17 00 [14:56:09]MH_I2C_Read... [14:56:09]Read from MH i2c: E2 17 00 70 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 45 [14:56:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:56:09]wFMCommunicate OK [14:56:09]CreateOFDProtocolMessage done [14:56:09]OFDSenderStorePacket 164993 [14:56:09]StoreOFDPacket docnum=164993 [14:56:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 40 FE 07 01 67 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 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 08 E7 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 81 84 02 00 35 04 06 00 CD 33 E3 BC 9A E8 F6 2D 9A 5D BB 15 4C AF [14:56:09]CheckFolder [14:56:09]dirname=/storage/ofd_packets [14:56:09]CheckFolder done [14:56:09]ProducePacketName [14:56:09]name=ofd_packets/00164993 [14:56:09]NVStorageSaveData ofd_packets/00164993 [14:56:09]File name is /storage/ofd_packets/00164993 [14:56:09]Write 301 bytes [14:56:09]NVStorageSaveData done [14:56:09]OFDSenderStorePacket done [14:56:09]KKMCreateOFDPacket done [14:56:09]NVStorageSaveData kkm_last_timestamp [14:56:09]File name is /storage/kkm_last_timestamp [14:56:09]Write 4 bytes [14:56:09]NVStorageSaveData done [14:56:09]ExternCall_PrintAddStr [14:56:09]wPrintStart [14:56:09]Write to MH i2c: 01 00 00 71 05 76 [14:56:09]Write i2c OK [14:56:09]MH_I2C_Read... [14:56:09]Read from MH i2c: 01 [14:56:09]MH_I2C_Read... [14:56:09]Read from MH i2c: 01 07 00 [14:56:09]MH_I2C_Read... [14:56:09]Read from MH i2c: 01 07 00 71 05 00 00 00 00 00 FF 0F 8B [14:56:09]RasterBufferAndPrint [14:56:09]line Счет N : (1)459093 [14:56:09]line ИНН: 02508201610067 [14:56:09]line Контрольно-Кассовый Чек [14:56:09]line ПРОДАЖА [14:56:09]line ТРК (МРК, ГНК) : 22 [14:56:09]line Товар: 2710124130 [14:56:09]line Аи-92-К-5 [14:56:09]line 15.200 * 65.80 [14:56:09]line = 1000.16 [14:56:09]line НДС 12% НСП 1% [14:56:09]line > о реализуемом товаре [14:56:09]line ОКРУГЛЕНИЕ: -0.16 [14:56:09]line ИТОГО: 1000.00 [14:56:09]line Внесено: 1000.00 [14:56:09]line СДАЧА: 0.00 [14:56:09]line НСП 1% : 8.85 [14:56:09]line НДС 12% : 106.21 [14:56:09]line Наличными: 1000.00 [14:56:09]line Безнал.: 0.00 [14:56:09]line Место: АЗС № 72 "Партнер Нефть" [14:56:09]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:56:09]line СНО: Общий режим [14:56:09]line Чек 191 14.07.2024 14:56 [14:56:09]line Смена: 447 ФФД: 1.0 [14:56:09]line ЗНМ: 0300000160 [14:56:09]line РНМ: 0000000000090829 [14:56:09]line Версия ККМ: 001 [14:56:09]line ФМ: 0000000000874718 [14:56:09]line ФД: 164993 [14:56:09]line ФПД: 225622747814632 [14:56:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T145608&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164993&fm=225622747814632&tin=02508201610067®Number=0000000000090829&sum=100000 [14:56:09]OFD Sender: Processing packet 164993 [packets to send 105, broken 104] [14:56:09]ProducePacketName [14:56:09]name=ofd_packets/00164993 [14:56:09]OFD Sender: To server: pG, [14:56:09]CommunicateWithHost lk.salyk.kg:30040 [14:56:09]ConnectInit lk.salyk.kg [14:56:09]written 0, free lines is 4095 [14:56:10]Connected sock=10 [14:56:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 40 FE 07 01 67 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 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 08 E7 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 81 84 02 00 35 04 06 00 CD 33 E3 BC 9A E8 F6 2D 9A 5D BB 15 4C AF [14:56:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 AD BF 47 00 D7 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 81 84 02 00 F4 03 04 00 95 8D 93 66 B6 04 01 00 00 00 50 74 D7 92 7C 39 DB [14:56:10]CommunicateWithHost err = 0 [14:56:10]CheckOFDResponse [14:56:10]1017 (14) - 77093643461234 [14:56:10]1041 (16) - 0000000000874718 [14:56:10]1040 (4) - 164993 [14:56:10]1012 (4) - 14.07.2024 08:34 [14:56:10]1206 (1) - 0 [14:56:10]OFD Sender: Remove packet 164993 [14:56:10]ProducePacketName [14:56:10]name=ofd_packets/00164993 [14:56:10]NVStorageDeleteData [14:56:10]Write to MH i2c: 01 00 00 9B 05 A0 [14:56:10]Write i2c OK [14:56:10]MH_I2C_Read... [14:56:10]Read from MH i2c: 01 [14:56:10]MH_I2C_Read... [14:56:10]Read from MH i2c: 01 07 00 [14:56:10]MH_I2C_Read... [14:56:10]Read from MH i2c: 01 07 00 9B 05 00 00 00 00 00 FA 0C AD [14:56:10]RasterBufferAndPrint [14:56:10]line [14:56:10]line [14:56:10]line [14:56:10]line [14:56:10]line [14:56:10]written 0, free lines is 3328 [14:56:10]MH_Cut [14:56:10]Write to MH i2c: D1 01 00 A2 05 01 79 [14:56:10]Write i2c OK [14:56:10]MH_I2C_Read... [14:56:10]Read from MH i2c: D1 [14:56:10]MH_I2C_Read... [14:56:10]Read from MH i2c: D1 01 00 [14:56:10]MH_I2C_Read... [14:56:10]Read from MH i2c: D1 01 00 A2 05 00 78 [14:56:10]Write to MH i2c: 01 00 00 A3 05 A8 [14:56:10]Write i2c OK [14:56:10]MH_I2C_Read... [14:56:10]OFD Sender: No OFD packet to send [14:56:11]*** Cut start [14:56:11]*** Partial cut [14:56:11]*** CUTSNS_PIN = 1 [14:56:11]*** CUTSNS_PIN = 0 [14:56:11]*** Brake cut motor [14:56:11]Read from MH i2c: 01 [14:56:11]MH_I2C_Read... [14:56:11]*** Stop cut motor [14:56:11]*** Cut end [14:56:11]Read from MH i2c: 01 07 00 [14:56:11]MH_I2C_Read... [14:56:11]Read from MH i2c: 01 07 00 A3 05 00 00 00 00 00 FF 0F BD [14:56:11]process_action close_receipt done [14:56:11]requested_data is exist [14:56:11]produce_requested_data [14:56:11]requested_item fm.sn is exist - process it [14:56:11]wFMCommunicate request_size=4 [14:56:11]MH_SAM_APDU [14:56:11]CAPDU: 80 11 00 00 [14:56:11]Write to MH i2c: E2 08 00 A4 05 80 11 00 00 00 00 00 00 23 [14:56:11]Write i2c OK [14:56:11]MH_I2C_Read... [14:56:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:11]Read from MH i2c: E2 [14:56:11]MH_I2C_Read... [14:56:11]Read from MH i2c: E2 17 00 [14:56:11]MH_I2C_Read... [14:56:11]Read from MH i2c: E2 17 00 A4 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 79 [14:56:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:56:11]wFMCommunicate OK [14:56:11]requested_item fd.num is exist - process it [14:56:11]SAM_PROTO_GetFieldsCounters [14:56:11]wFMCommunicate request_size=4 [14:56:11]MH_SAM_APDU [14:56:11]CAPDU: 80 13 00 00 [14:56:11]Write to MH i2c: E2 08 00 A5 05 80 13 00 00 00 00 00 00 26 [14:56:11]Write i2c OK [14:56:11]MH_I2C_Read... [14:56:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:56:11]Read from MH i2c: E2 [14:56:11]MH_I2C_Read... [14:56:11]Read from MH i2c: E2 62 00 [14:56:11]MH_I2C_Read... [14:56:11]Read from MH i2c: E2 62 00 A5 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 81 84 02 00 0E 04 04 00 BF 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 51 [14:56:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 81 84 02 00 0E 04 04 00 BF 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 [14:56:11]wFMCommunicate OK [14:56:11]SAM_PROTO_GetFieldsCounters done [14:56:11]requested_item shift.num is exist - process it [14:56:11]requested_item shift.opened is exist - process it [14:56:11]req_shift_opened [14:56:11]FM_GetShiftState [14:56:11]SAM_PROTO_GetShiftState [14:56:11]wFMCommunicate request_size=4 [14:56:11]MH_SAM_APDU [14:56:11]CAPDU: 80 13 01 00 [14:56:11]Write to MH i2c: E2 08 00 A6 05 80 13 01 00 00 00 00 00 28 [14:56:11]Write i2c OK [14:56:11]MH_I2C_Read... [14:56:11]Read from MH i2c: E2 [14:56:11]MH_I2C_Read... [14:56:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:11]Read from MH i2c: E2 0E 00 [14:56:11]MH_I2C_Read... [14:56:11]Read from MH i2c: E2 0E 00 A6 05 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 A8 [14:56:11]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [14:56:11]wFMCommunicate OK [14:56:11]SAM_PROTO_GetShiftState done [14:56:11]FM_GetShiftState done [14:56:11]req_shift_opened done [14:56:11]requested_item shift.open_date is exist - process it [14:56:11]req_shift_open_date [14:56:11]req_shift_open_date done [14:56:11]produce_requested_data done [14:56:11]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164993,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [14:56:11]process_action_free close_receipt [14:56:11]json_value_free [14:56:11]json_value_free done [14:56:11]process_json_proto returns [14:56:11]Send response to host [14:56:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164993,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [14:56:11]free response buf [14:56:11]execute_script done [14:56:11]execute_script returns [14:56:11]free content buf [14:56:11]Sock 7.Close socket [14:56:11]Sock 7.Thread stoped [14:56:15]OFD Sender: No OFD packet to send [14:56:20]OFD Sender: No OFD packet to send [14:56:25]OFD Sender: No OFD packet to send [14:56:30]OFD Sender: No OFD packet to send [14:56:35]OFD Sender: No OFD packet to send [14:56:40]OFD Sender: No OFD packet to send [14:56:45]OFD Sender: No OFD packet to send [14:56:50]OFD Sender: No OFD packet to send [14:56:55]OFD Sender: No OFD packet to send [14:57:00]OFD Sender: No OFD packet to send [14:57:05]OFD Sender: No OFD packet to send [14:57:10]OFD Sender: No OFD packet to send [14:57:15]OFD Sender: No OFD packet to send [14:57:20]OFD Sender: No OFD packet to send [14:57:25]OFD Sender: No OFD packet to send [14:57:30]OFD Sender: No OFD packet to send [14:57:35]OFD Sender: No OFD packet to send [14:57:40]OFD Sender: No OFD packet to send [14:57:45]OFD Sender: No OFD packet to send [14:57:50]OFD Sender: No OFD packet to send [14:57:55]OFD Sender: No OFD packet to send [14:58:00]OFD Sender: No OFD packet to send [14:58:05]OFD Sender: No OFD packet to send [14:58:10]OFD Sender: No OFD packet to send [14:58:15]OFD Sender: No OFD packet to send [14:58:20]OFD Sender: No OFD packet to send [14:58:25]OFD Sender: No OFD packet to send [14:58:30]OFD Sender: No OFD packet to send [14:58:35]OFD Sender: No OFD packet to send [14:58:40]OFD Sender: No OFD packet to send [14:58:45]OFD Sender: No OFD packet to send [14:58:50]OFD Sender: No OFD packet to send [14:58:55]OFD Sender: No OFD packet to send [14:59:00]OFD Sender: No OFD packet to send [14:59:05]OFD Sender: No OFD packet to send [14:59:10]OFD Sender: No OFD packet to send [14:59:15]OFD Sender: No OFD packet to send [14:59:20]OFD Sender: No OFD packet to send [14:59:25]OFD Sender: No OFD packet to send [14:59:30]OFD Sender: No OFD packet to send [14:59:35]OFD Sender: No OFD packet to send [14:59:40]OFD Sender: No OFD packet to send [14:59:46]OFD Sender: No OFD packet to send [14:59:51]OFD Sender: No OFD packet to send [14:59:56]OFD Sender: No OFD packet to send [15:00:01]OFD Sender: No OFD packet to send [15:00:06]OFD Sender: No OFD packet to send [15:00:11]OFD Sender: No OFD packet to send [15:00:16]OFD Sender: No OFD packet to send [15:00:21]OFD Sender: No OFD packet to send [15:00:26]OFD Sender: No OFD packet to send [15:00:31]OFD Sender: No OFD packet to send [15:00:36]OFD Sender: No OFD packet to send [15:00:41]OFD Sender: No OFD packet to send [15:00:46]OFD Sender: No OFD packet to send [15:00:51]OFD Sender: No OFD packet to send [15:00:52]accept exits with 9 [15:00:52]New connection [15:00:52]New thread 3066948964 created [15:00:52]Thread 3066805604 joined [15:00:52]Waiting for new connection... [15:00:52] Sock 9.Parse request [15:00:52]Sock 9.Check first char [15:00:52]Sock 9.First char is OK [15:00:52]request: POST /json_proto HTTP/1.0 [15:00:52]Method: POST [15:00:52]URL: /json_proto [15:00:52]Method is POST - this is cgi request [15:00:52]url: /json_proto [15:00:52]query_string will be loaded in cgi processing [15:00:52]execute_cgi json_proto POST (null) [15:00:52]execute_cgi path=json_proto method=POST [15:00:52]POST find Content-Length [15:00:52]Host: 172.17.56.4:8080 [15:00:52]Content-Length: 677 [15:00:52]Content-Type: application/json [15:00:52] [15:00:52]POST finish read [15:00:52]Found Content-Length = 677 [15:00:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459094", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:52]execute_script... [15:00:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459094", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:52]POST & json_proto [15:00:52]process_json_proto [15:00:52]json parsed OK: [15:00:52]protocol is kg_v1.0 [15:00:52]action value=close_receipt [15:00:52]process_action close_receipt [15:00:52]cmd_close_receipt [15:00:52]MH_GetDate [15:00:52]Write to MH i2c: F0 00 00 A7 05 9B [15:00:52]Write i2c OK [15:00:52]MH_I2C_Read... [15:00:52]Read from MH i2c: F0 [15:00:52]MH_I2C_Read... [15:00:52]Read from MH i2c: F0 09 00 [15:00:52]MH_I2C_Read... [15:00:52]Read from MH i2c: F0 09 00 A7 05 00 24 E8 93 66 C9 DC B2 64 64 [15:00:52]GetLastDocTimeStamp 1720968968 [15:00:52]current date 1720969252 [15:00:52]FM_GetShiftState [15:00:52]SAM_PROTO_GetShiftState [15:00:52]wFMCommunicate request_size=4 [15:00:52]MH_SAM_APDU [15:00:52]CAPDU: 80 13 01 00 [15:00:52]Write to MH i2c: E2 08 00 A8 05 80 13 01 00 00 00 00 00 2A [15:00:52]Write i2c OK [15:00:52]MH_I2C_Read... [15:00:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:00:52]Read from MH i2c: E2 [15:00:52]MH_I2C_Read... [15:00:52]Read from MH i2c: E2 0E 00 [15:00:52]MH_I2C_Read... [15:00:52]Read from MH i2c: E2 0E 00 A8 05 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 AA [15:00:52]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [15:00:52]wFMCommunicate OK [15:00:52]SAM_PROTO_GetShiftState done [15:00:52]FM_GetShiftState done [15:00:52]opened in 1720917342 [15:00:52]opened+sec_in_day 1721003742 [15:00:52]quantity*price = 50008 [15:00:52]sum+1 = 50009 [15:00:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 192 14.07.2024 15:00 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164994 ФПД: 203637793697723 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T150052&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164994&fm=203637793697723&tin=02508201610067®Number=0000000000090829&sum=50000 [15:00:53]StoreToDocumentArchive [15:00:53]shift 447 fd 164994 [15:00:53]save to /storage/0447/doc_00164994 [15:00:53]save last doc name /storage/0447/doc_00164994 to /storage/kkm_last_doc_name [15:00:53]save OK [15:00:53]Clear old archive folders... [15:00:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:00:53]tlvbuf is 0129B760 [15:00:53]SAM_PROTO_ClearQueue [15:00:53]wFMCommunicate request_size=4 [15:00:53]MH_SAM_APDU [15:00:53]CAPDU: 80 09 00 00 [15:00:53]Write to MH i2c: E2 08 00 B5 05 80 09 00 00 00 00 00 00 2C [15:00:53]Write i2c OK [15:00:53]MH_I2C_Read... [15:00:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:00:53]Read from MH i2c: E2 [15:00:53]MH_I2C_Read... [15:00:53]Read from MH i2c: E2 03 00 [15:00:53]MH_I2C_Read... [15:00:53]Read from MH i2c: E2 03 00 B5 05 00 90 00 2E [15:00:53]RAPDU: 90 00 [15:00:53]wFMCommunicate OK [15:00:53]SAM_PROTO_ClearQueue done [15:00:53]KKMCreateOFDPacket [15:00:53]OFDProtocolAddRootSTLVToBuf [15:00:53]FM_MakeSignedData [15:00:53]FM_MakeSignedData [15:00:53]SAM_PROTO_SignData [15:00:53]wFMCommunicate request_size=4 [15:00:53]MH_SAM_APDU [15:00:53]CAPDU: 80 0D 01 02 [15:00:53]Write to MH i2c: E2 08 00 B6 05 80 0D 01 02 00 00 00 00 34 [15:00:53]Write i2c OK [15:00:53]MH_I2C_Read... [15:00:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:00:53]Read from MH i2c: E2 [15:00:53]MH_I2C_Read... [15:00:53]Read from MH i2c: E2 03 00 [15:00:53]MH_I2C_Read... [15:00:53]Read from MH i2c: E2 03 00 B6 05 00 90 00 2F [15:00:53]RAPDU: 90 00 [15:00:53]wFMCommunicate OK [15:00:53]wFMCommunicate request_size=255 [15:00:53]MH_SAM_APDU [15:00:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 C0 00 00 00 F4 03 04 00 24 E8 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 82 84 02 00 35 04 06 00 B9 [15:00:53]Write to MH i2c: E2 02 01 B7 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 C0 00 00 00 F4 03 04 00 24 E8 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 82 84 02 00 35 04 06 00 B9 00 00 F3 [15:00:53]Write i2c OK [15:00:53]MH_I2C_Read... [15:00:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:00:53]Read from MH i2c: E2 [15:00:53]MH_I2C_Read... [15:00:53]Read from MH i2c: E2 03 00 [15:00:53]MH_I2C_Read... [15:00:53]Read from MH i2c: E2 03 00 B7 05 00 90 00 30 [15:00:53]RAPDU: 90 00 [15:00:53]wFMCommunicate OK [15:00:53]wFMCommunicate request_size=10 [15:00:53]MH_SAM_APDU [15:00:53]CAPDU: 80 0D 02 02 05 35 1E 5B 2F BB [15:00:53]Write to MH i2c: E2 0D 00 B8 05 80 0D 02 02 05 00 35 1E 5B 2F BB 00 00 D9 [15:00:53]Write i2c OK [15:00:53]MH_I2C_Read... [15:00:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:00:53]Read from MH i2c: E2 [15:00:53]MH_I2C_Read... [15:00:53]Read from MH i2c: E2 03 00 [15:00:53]MH_I2C_Read... [15:00:53]Read from MH i2c: E2 03 00 B8 05 00 90 00 31 [15:00:53]RAPDU: 90 00 [15:00:53]wFMCommunicate OK [15:00:53]wFMCommunicate request_size=4 [15:00:53]MH_SAM_APDU [15:00:53]CAPDU: 80 0D 03 02 [15:00:53]Write to MH i2c: E2 08 00 B9 05 80 0D 03 02 00 00 00 00 39 [15:00:53]Write i2c OK [15:00:53]MH_I2C_Read... [15:00:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:00:53]Read from MH i2c: E2 [15:00:53]MH_I2C_Read... [15:00:53]Read from MH i2c: E2 0B 00 [15:00:53]MH_I2C_Read... [15:00:53]Read from MH i2c: E2 0B 00 B9 05 00 2C DA 57 F8 5E DF 60 A9 90 00 D5 [15:00:53]RAPDU: 2C DA 57 F8 5E DF 60 A9 90 00 [15:00:53]wFMCommunicate OK [15:00:53]SAM_PROTO_SignData done [15:00:53]FM_MakeSignedData done [15:00:53]CreateOFDProtocolMessage [15:00:53]wFMCommunicate request_size=4 [15:00:53]MH_SAM_APDU [15:00:53]CAPDU: 80 11 00 00 [15:00:53]Write to MH i2c: E2 08 00 BA 05 80 11 00 00 00 00 00 00 39 [15:00:53]Write i2c OK [15:00:53]MH_I2C_Read... [15:00:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:00:53]Read from MH i2c: E2 [15:00:53]MH_I2C_Read... [15:00:53]Read from MH i2c: E2 17 00 [15:00:53]MH_I2C_Read... [15:00:53]Read from MH i2c: E2 17 00 BA 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 8F [15:00:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:00:53]wFMCommunicate OK [15:00:53]CreateOFDProtocolMessage done [15:00:53]OFDSenderStorePacket 164994 [15:00:53]StoreOFDPacket docnum=164994 [15:00:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C0 87 07 01 08 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 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 C0 00 00 00 F4 03 04 00 24 E8 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 82 84 02 00 35 04 06 00 B9 35 1E 5B 2F BB 2C DA 57 F8 5E DF 60 A9 [15:00:53]CheckFolder [15:00:53]dirname=/storage/ofd_packets [15:00:53]CheckFolder done [15:00:53]ProducePacketName [15:00:53]name=ofd_packets/00164994 [15:00:53]NVStorageSaveData ofd_packets/00164994 [15:00:53]File name is /storage/ofd_packets/00164994 [15:00:53]Write 301 bytes [15:00:53]NVStorageSaveData done [15:00:53]OFDSenderStorePacket done [15:00:53]KKMCreateOFDPacket done [15:00:53]NVStorageSaveData kkm_last_timestamp [15:00:53]File name is /storage/kkm_last_timestamp [15:00:53]Write 4 bytes [15:00:53]NVStorageSaveData done [15:00:53]ExternCall_PrintAddStr [15:00:53]wPrintStart [15:00:53]Write to MH i2c: 01 00 00 BB 05 C0 [15:00:53]Write i2c OK [15:00:53]MH_I2C_Read... [15:00:53]Read from MH i2c: 01 [15:00:53]MH_I2C_Read... [15:00:53]Read from MH i2c: 01 07 00 [15:00:53]MH_I2C_Read... [15:00:53]Read from MH i2c: 01 07 00 BB 05 00 00 00 00 00 FF 0F D5 [15:00:53]RasterBufferAndPrint [15:00:53]line Счет N : (1)459094 [15:00:53]line ИНН: 02508201610067 [15:00:53]line Контрольно-Кассовый Чек [15:00:53]line ПРОДАЖА [15:00:53]line ТРК (МРК, ГНК) : 12 [15:00:53]line Товар: 2710124130 [15:00:53]line Аи-92-К-5 [15:00:53]line 7.600 * 65.80 [15:00:53]line = 500.08 [15:00:53]line НДС 12% НСП 1% [15:00:53]line > о реализуемом товаре [15:00:53]line ОКРУГЛЕНИЕ: -0.08 [15:00:53]line ИТОГО: 500.00 [15:00:53]line Внесено: 500.00 [15:00:53]line СДАЧА: 0.00 [15:00:53]line НСП 1% : 4.42 [15:00:53]line НДС 12% : 53.11 [15:00:53]line Наличными: 500.00 [15:00:53]line Безнал.: 0.00 [15:00:53]line Место: АЗС № 72 "Партнер Нефть" [15:00:53]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:00:53]line СНО: Общий режим [15:00:53]line Чек 192 14.07.2024 15:00 [15:00:53]line Смена: 447 ФФД: 1.0 [15:00:53]line ЗНМ: 0300000160 [15:00:53]line РНМ: 0000000000090829 [15:00:53]line Версия ККМ: 001 [15:00:53]line ФМ: 0000000000874718 [15:00:53]line ФД: 164994 [15:00:53]line ФПД: 203637793697723 [15:00:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T150052&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164994&fm=203637793697723&tin=02508201610067®Number=0000000000090829&sum=50000 [15:00:54]OFD Sender: Processing packet 164994 [packets to send 105, broken 104] [15:00:54]ProducePacketName [15:00:54]name=ofd_packets/00164994 [15:00:54]OFD Sender: To server: pG, [15:00:54]CommunicateWithHost lk.salyk.kg:30040 [15:00:54]ConnectInit lk.salyk.kg [15:00:54]written 0, free lines is 4095 [15:00:54]Connected sock=10 [15:00:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C0 87 07 01 08 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 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 C0 00 00 00 F4 03 04 00 24 E8 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 82 84 02 00 35 04 06 00 B9 35 1E 5B 2F BB 2C DA 57 F8 5E DF 60 A9 [15:00:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 66 5C 47 00 5C FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 82 84 02 00 F4 03 04 00 B2 8E 93 66 B6 04 01 00 00 EF 0C 51 2B EE 1F 20 C8 [15:00:54]CommunicateWithHost err = 0 [15:00:54]CheckOFDResponse [15:00:54]1017 (14) - 77093643461234 [15:00:54]1041 (16) - 0000000000874718 [15:00:54]1040 (4) - 164994 [15:00:54]1012 (4) - 14.07.2024 08:39 [15:00:54]1206 (1) - 0 [15:00:54]OFD Sender: Remove packet 164994 [15:00:54]ProducePacketName [15:00:54]name=ofd_packets/00164994 [15:00:54]NVStorageDeleteData [15:00:54]Write to MH i2c: 01 00 00 E5 05 EA [15:00:54]Write i2c OK [15:00:54]MH_I2C_Read... [15:00:54]Read from MH i2c: 01 [15:00:54]MH_I2C_Read... [15:00:54]Read from MH i2c: 01 07 00 [15:00:54]MH_I2C_Read... [15:00:54]Read from MH i2c: 01 07 00 E5 05 00 00 00 00 00 FE 0C FB [15:00:54]RasterBufferAndPrint [15:00:54]line [15:00:54]line [15:00:54]line [15:00:54]line [15:00:54]line [15:00:54]written 0, free lines is 3332 [15:00:54]MH_Cut [15:00:54]Write to MH i2c: D1 01 00 EC 05 01 C3 [15:00:54]Write i2c OK [15:00:54]MH_I2C_Read... [15:00:54]Read from MH i2c: D1 [15:00:54]MH_I2C_Read... [15:00:54]Read from MH i2c: D1 01 00 [15:00:54]MH_I2C_Read... [15:00:54]Read from MH i2c: D1 01 00 EC 05 00 C2 [15:00:54]Write to MH i2c: 01 00 00 ED 05 F2 [15:00:54]Write i2c OK [15:00:54]MH_I2C_Read... [15:00:55]OFD Sender: No OFD packet to send [15:00:55]*** Cut start [15:00:55]*** Partial cut [15:00:55]*** CUTSNS_PIN = 1 [15:00:55]*** CUTSNS_PIN = 0 [15:00:55]*** Brake cut motor [15:00:55]Read from MH i2c: 01 [15:00:55]MH_I2C_Read... [15:00:55]*** Stop cut motor [15:00:55]*** Cut end [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 ED 05 00 00 00 00 00 FF 0F 07 [15:00:55]process_action close_receipt done [15:00:55]requested_data is exist [15:00:55]produce_requested_data [15:00:55]requested_item fm.sn is exist - process it [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 EE 05 80 11 00 00 00 00 00 00 6D [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 EE 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C3 [15:00:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:00:55]wFMCommunicate OK [15:00:55]requested_item fd.num is exist - process it [15:00:55]SAM_PROTO_GetFieldsCounters [15:00:55]wFMCommunicate request_size=4 [15:00:55]MH_SAM_APDU [15:00:55]CAPDU: 80 13 00 00 [15:00:55]Write to MH i2c: E2 08 00 EF 05 80 13 00 00 00 00 00 00 70 [15:00:55]Write i2c OK [15:00:55]MH_I2C_Read... [15:00:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:00:56]Read from MH i2c: E2 [15:00:56]MH_I2C_Read... [15:00:56]Read from MH i2c: E2 62 00 [15:00:56]MH_I2C_Read... [15:00:56]Read from MH i2c: E2 62 00 EF 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 82 84 02 00 0E 04 04 00 BF 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 9F [15:00:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 82 84 02 00 0E 04 04 00 BF 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 [15:00:56]wFMCommunicate OK [15:00:56]SAM_PROTO_GetFieldsCounters done [15:00:56]requested_item shift.num is exist - process it [15:00:56]requested_item shift.opened is exist - process it [15:00:56]req_shift_opened [15:00:56]FM_GetShiftState [15:00:56]SAM_PROTO_GetShiftState [15:00:56]wFMCommunicate request_size=4 [15:00:56]MH_SAM_APDU [15:00:56]CAPDU: 80 13 01 00 [15:00:56]Write to MH i2c: E2 08 00 F0 05 80 13 01 00 00 00 00 00 72 [15:00:56]Write i2c OK [15:00:56]MH_I2C_Read... [15:00:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:00:56]Read from MH i2c: E2 [15:00:56]MH_I2C_Read... [15:00:56]Read from MH i2c: E2 0E 00 [15:00:56]MH_I2C_Read... [15:00:56]Read from MH i2c: E2 0E 00 F0 05 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 F2 [15:00:56]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [15:00:56]wFMCommunicate OK [15:00:56]SAM_PROTO_GetShiftState done [15:00:56]FM_GetShiftState done [15:00:56]req_shift_opened done [15:00:56]requested_item shift.open_date is exist - process it [15:00:56]req_shift_open_date [15:00:56]req_shift_open_date done [15:00:56]produce_requested_data done [15:00:56]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164994,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [15:00:56]process_action_free close_receipt [15:00:56]json_value_free [15:00:56]json_value_free done [15:00:56]process_json_proto returns [15:00:56]Send response to host [15:00:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164994,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [15:00:56]free response buf [15:00:56]execute_script done [15:00:56]execute_script returns [15:00:56]free content buf [15:00:56]Sock 9.Close socket [15:00:56]Sock 9.Thread stoped [15:01:00]OFD Sender: No OFD packet to send [15:01:05]OFD Sender: No OFD packet to send [15:01:10]OFD Sender: No OFD packet to send [15:01:15]OFD Sender: No OFD packet to send [15:01:20]OFD Sender: No OFD packet to send [15:01:25]OFD Sender: No OFD packet to send [15:01:30]OFD Sender: No OFD packet to send [15:01:35]OFD Sender: No OFD packet to send [15:01:40]OFD Sender: No OFD packet to send [15:01:45]OFD Sender: No OFD packet to send [15:01:50]OFD Sender: No OFD packet to send [15:01:55]OFD Sender: No OFD packet to send [15:02:00]OFD Sender: No OFD packet to send [15:02:05]OFD Sender: No OFD packet to send [15:02:10]OFD Sender: No OFD packet to send [15:02:15]OFD Sender: No OFD packet to send [15:02:20]OFD Sender: No OFD packet to send [15:02:23]accept exits with 7 [15:02:23]New connection [15:02:23]New thread 3066805604 created [15:02:23]Thread 3066948964 joined [15:02:23]Waiting for new connection... [15:02:23] Sock 7.Parse request [15:02:23]Sock 7.Check first char [15:02:23]Sock 7.First char is OK [15:02:23]request: POST /json_proto HTTP/1.0 [15:02:23]Method: POST [15:02:23]URL: /json_proto [15:02:23]Method is POST - this is cgi request [15:02:23]url: /json_proto [15:02:23]query_string will be loaded in cgi processing [15:02:23]execute_cgi json_proto POST (null) [15:02:23]execute_cgi path=json_proto method=POST [15:02:23]POST find Content-Length [15:02:23]Host: 172.17.56.4:8080 [15:02:23]Content-Length: 677 [15:02:23]Content-Type: application/json [15:02:23] [15:02:23]POST finish read [15:02:23]Found Content-Length = 677 [15:02:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459095", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.320, "sum" : 350.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:02:23]execute_script... [15:02: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)459095", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.320, "sum" : 350.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:02:23]POST & json_proto [15:02:23]process_json_proto [15:02:23]json parsed OK: [15:02:23]protocol is kg_v1.0 [15:02:23]action value=close_receipt [15:02:23]process_action close_receipt [15:02:23]cmd_close_receipt [15:02:23]MH_GetDate [15:02:23]Write to MH i2c: F0 00 00 F1 05 E5 [15:02:23]Write i2c OK [15:02:23]MH_I2C_Read... [15:02:23]Read from MH i2c: F0 [15:02:23]MH_I2C_Read... [15:02:23]Read from MH i2c: F0 09 00 [15:02:23]MH_I2C_Read... [15:02:23]Read from MH i2c: F0 09 00 F1 05 00 7F E8 93 66 C9 DC B2 64 09 [15:02:23]GetLastDocTimeStamp 1720969252 [15:02:23]current date 1720969343 [15:02:23]FM_GetShiftState [15:02:23]SAM_PROTO_GetShiftState [15:02:23]wFMCommunicate request_size=4 [15:02:23]MH_SAM_APDU [15:02:23]CAPDU: 80 13 01 00 [15:02:23]Write to MH i2c: E2 08 00 F2 05 80 13 01 00 00 00 00 00 74 [15:02:23]Write i2c OK [15:02:23]MH_I2C_Read... [15:02:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:02:23]Read from MH i2c: E2 [15:02:23]MH_I2C_Read... [15:02:23]Read from MH i2c: E2 0E 00 [15:02:23]MH_I2C_Read... [15:02:23]Read from MH i2c: E2 0E 00 F2 05 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 F4 [15:02:23]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [15:02:23]wFMCommunicate OK [15:02:23]SAM_PROTO_GetShiftState done [15:02:23]FM_GetShiftState done [15:02:23]opened in 1720917342 [15:02:23]opened+sec_in_day 1721003742 [15:02:23]quantity*price = 35005 [15:02:23]sum+1 = 35007 [15:02:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.17 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 193 14.07.2024 15:02 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164995 ФПД: 58282473242882 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T150223&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164995&fm=58282473242882&tin=02508201610067®Number=0000000000090829&sum=35000 [15:02:24]StoreToDocumentArchive [15:02:24]shift 447 fd 164995 [15:02:24]save to /storage/0447/doc_00164995 [15:02:24]save last doc name /storage/0447/doc_00164995 to /storage/kkm_last_doc_name [15:02:24]save OK [15:02:24]Clear old archive folders... [15:02:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:02:24]tlvbuf is 012AFAE0 [15:02:24]SAM_PROTO_ClearQueue [15:02:24]wFMCommunicate request_size=4 [15:02:24]MH_SAM_APDU [15:02:24]CAPDU: 80 09 00 00 [15:02:24]Write to MH i2c: E2 08 00 FF 05 80 09 00 00 00 00 00 00 76 [15:02:24]Write i2c OK [15:02:24]MH_I2C_Read... [15:02:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:02:24]Read from MH i2c: E2 [15:02:24]MH_I2C_Read... [15:02:24]Read from MH i2c: E2 03 00 [15:02:24]MH_I2C_Read... [15:02:24]Read from MH i2c: E2 03 00 FF 05 00 90 00 78 [15:02:24]RAPDU: 90 00 [15:02:24]wFMCommunicate OK [15:02:24]SAM_PROTO_ClearQueue done [15:02:24]KKMCreateOFDPacket [15:02:24]OFDProtocolAddRootSTLVToBuf [15:02:24]FM_MakeSignedData [15:02:24]FM_MakeSignedData [15:02:24]SAM_PROTO_SignData [15:02:24]wFMCommunicate request_size=4 [15:02:24]MH_SAM_APDU [15:02:24]CAPDU: 80 0D 01 02 [15:02:24]Write to MH i2c: E2 08 00 00 06 80 0D 01 02 00 00 00 00 7F [15:02:24]Write i2c OK [15:02:24]MH_I2C_Read... [15:02:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:02:24]Read from MH i2c: E2 [15:02:24]MH_I2C_Read... [15:02:24]Read from MH i2c: E2 03 00 [15:02:24]MH_I2C_Read... [15:02:24]Read from MH i2c: E2 03 00 00 06 00 90 00 7A [15:02:24]RAPDU: 90 00 [15:02:24]wFMCommunicate OK [15:02:24]wFMCommunicate request_size=255 [15:02:24]MH_SAM_APDU [15:02:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BE 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 85 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 C1 00 00 00 F4 03 04 00 7F E8 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 83 84 02 00 35 04 06 00 35 [15:02:24]Write to MH i2c: E2 02 01 01 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BE 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 85 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 C1 00 00 00 F4 03 04 00 7F E8 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 83 84 02 00 35 04 06 00 35 00 00 E7 [15:02:24]Write i2c OK [15:02:24]MH_I2C_Read... [15:02:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:02:24]Read from MH i2c: E2 [15:02:24]MH_I2C_Read... [15:02:24]Read from MH i2c: E2 03 00 [15:02:24]MH_I2C_Read... [15:02:24]Read from MH i2c: E2 03 00 01 06 00 90 00 7B [15:02:24]RAPDU: 90 00 [15:02:24]wFMCommunicate OK [15:02:24]wFMCommunicate request_size=10 [15:02:24]MH_SAM_APDU [15:02:24]CAPDU: 80 0D 02 02 05 01 F2 1D 41 02 [15:02:24]Write to MH i2c: E2 0D 00 02 06 80 0D 02 02 05 00 01 F2 1D 41 02 00 00 DF [15:02:24]Write i2c OK [15:02:24]MH_I2C_Read... [15:02:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:02:24]Read from MH i2c: E2 [15:02:24]MH_I2C_Read... [15:02:24]Read from MH i2c: E2 03 00 [15:02:24]MH_I2C_Read... [15:02:24]Read from MH i2c: E2 03 00 02 06 00 90 00 7C [15:02:24]RAPDU: 90 00 [15:02:24]wFMCommunicate OK [15:02:24]wFMCommunicate request_size=4 [15:02:24]MH_SAM_APDU [15:02:24]CAPDU: 80 0D 03 02 [15:02:24]Write to MH i2c: E2 08 00 03 06 80 0D 03 02 00 00 00 00 84 [15:02:24]Write i2c OK [15:02:24]MH_I2C_Read... [15:02:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:02:25]Read from MH i2c: E2 [15:02:25]MH_I2C_Read... [15:02:25]Read from MH i2c: E2 0B 00 [15:02:25]MH_I2C_Read... [15:02:25]Read from MH i2c: E2 0B 00 03 06 00 3B D8 0B CE A3 EA AB 3F 90 00 E8 [15:02:25]RAPDU: 3B D8 0B CE A3 EA AB 3F 90 00 [15:02:25]wFMCommunicate OK [15:02:25]SAM_PROTO_SignData done [15:02:25]FM_MakeSignedData done [15:02:25]CreateOFDProtocolMessage [15:02:25]wFMCommunicate request_size=4 [15:02:25]MH_SAM_APDU [15:02:25]CAPDU: 80 11 00 00 [15:02:25]Write to MH i2c: E2 08 00 04 06 80 11 00 00 00 00 00 00 84 [15:02:25]Write i2c OK [15:02:25]MH_I2C_Read... [15:02:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:02:25]Read from MH i2c: E2 [15:02:25]MH_I2C_Read... [15:02:25]Read from MH i2c: E2 17 00 [15:02:25]MH_I2C_Read... [15:02:25]Read from MH i2c: E2 17 00 04 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DA [15:02:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:02:25]wFMCommunicate OK [15:02:25]CreateOFDProtocolMessage done [15:02:25]OFDSenderStorePacket 164995 [15:02:25]StoreOFDPacket docnum=164995 [15:02:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 0A E8 07 01 DE 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BE 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 85 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 C1 00 00 00 F4 03 04 00 7F E8 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 83 84 02 00 35 04 06 00 35 01 F2 1D 41 02 3B D8 0B CE A3 EA AB 3F [15:02:25]CheckFolder [15:02:25]dirname=/storage/ofd_packets [15:02:25]CheckFolder done [15:02:25]ProducePacketName [15:02:25]name=ofd_packets/00164995 [15:02:25]NVStorageSaveData ofd_packets/00164995 [15:02:25]File name is /storage/ofd_packets/00164995 [15:02:25]Write 301 bytes [15:02:25]NVStorageSaveData done [15:02:25]OFDSenderStorePacket done [15:02:25]KKMCreateOFDPacket done [15:02:25]NVStorageSaveData kkm_last_timestamp [15:02:25]File name is /storage/kkm_last_timestamp [15:02:25]Write 4 bytes [15:02:25]NVStorageSaveData done [15:02:25]ExternCall_PrintAddStr [15:02:25]wPrintStart [15:02:25]Write to MH i2c: 01 00 00 05 06 0B [15:02:25]Write i2c OK [15:02:25]MH_I2C_Read... [15:02:25]Read from MH i2c: 01 [15:02:25]MH_I2C_Read... [15:02:25]Read from MH i2c: 01 07 00 [15:02:25]MH_I2C_Read... [15:02:25]Read from MH i2c: 01 07 00 05 06 00 00 00 00 00 FF 0F 20 [15:02:25]RasterBufferAndPrint [15:02:25]line Счет N : (1)459095 [15:02:25]line ИНН: 02508201610067 [15:02:25]line Контрольно-Кассовый Чек [15:02:25]line ПРОДАЖА [15:02:25]line ТРК (МРК, ГНК) : 22 [15:02:25]line Товар: 2710124130 [15:02:25]line Аи-92-К-5 [15:02:25]line 5.320 * 65.80 [15:02:25]line = 350.06 [15:02:25]line НДС 12% НСП 1% [15:02:25]line > о реализуемом товаре [15:02:25]line ОКРУГЛЕНИЕ: -0.06 [15:02:25]line ИТОГО: 350.00 [15:02:25]line Внесено: 350.00 [15:02:25]line СДАЧА: 0.00 [15:02:25]line НСП 1% : 3.10 [15:02:25]line НДС 12% : 37.17 [15:02:25]line Наличными: 350.00 [15:02:25]line Безнал.: 0.00 [15:02:25]line Место: АЗС № 72 "Партнер Нефть" [15:02:25]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:02:25]line СНО: Общий режим [15:02:25]line Чек 193 14.07.2024 15:02 [15:02:25]line Смена: 447 ФФД: 1.0 [15:02:25]line ЗНМ: 0300000160 [15:02:25]line РНМ: 0000000000090829 [15:02:25]line Версия ККМ: 001 [15:02:25]line ФМ: 0000000000874718 [15:02:25]line ФД: 164995 [15:02:25]line ФПД: 58282473242882 [15:02:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T150223&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164995&fm=58282473242882&tin=02508201610067®Number=0000000000090829&sum=35000 [15:02:25]written 0, free lines is 4095 [15:02:25]OFD Sender: Processing packet 164995 [packets to send 105, broken 104] [15:02:25]ProducePacketName [15:02:25]name=ofd_packets/00164995 [15:02:25]OFD Sender: To server: pG, [15:02:25]CommunicateWithHost lk.salyk.kg:30040 [15:02:25]ConnectInit lk.salyk.kg [15:02:25]Connected sock=10 [15:02:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 0A E8 07 01 DE 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BE 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 85 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 C1 00 00 00 F4 03 04 00 7F E8 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 83 84 02 00 35 04 06 00 35 01 F2 1D 41 02 3B D8 0B CE A3 EA AB 3F [15:02:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 B3 5B 47 00 87 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 38 37 34 37 31 38 10 04 04 00 83 84 02 00 F4 03 04 00 0D 8F 93 66 B6 04 01 00 00 A4 01 26 B1 37 1A 40 91 [15:02:25]CommunicateWithHost err = 0 [15:02:25]CheckOFDResponse [15:02:25]1017 (14) - 77093643461234 [15:02:25]1041 (16) - 0000000000874718 [15:02:25]1040 (4) - 164995 [15:02:25]1012 (4) - 14.07.2024 08:40 [15:02:25]1206 (1) - 0 [15:02:25]OFD Sender: Remove packet 164995 [15:02:25]ProducePacketName [15:02:25]name=ofd_packets/00164995 [15:02:25]NVStorageDeleteData [15:02:25]Write to MH i2c: 01 00 00 2F 06 35 [15:02:25]Write i2c OK [15:02:25]MH_I2C_Read... [15:02:25]Read from MH i2c: 01 [15:02:25]MH_I2C_Read... [15:02:25]Read from MH i2c: 01 07 00 [15:02:25]MH_I2C_Read... [15:02:25]Read from MH i2c: 01 07 00 2F 06 00 00 00 00 00 0D 0D 56 [15:02:25]RasterBufferAndPrint [15:02:25]line [15:02:25]line [15:02:25]line [15:02:25]line [15:02:25]line [15:02:25]written 0, free lines is 3350 [15:02:25]MH_Cut [15:02:25]Write to MH i2c: D1 01 00 36 06 01 0E [15:02:25]Write i2c OK [15:02:25]MH_I2C_Read... [15:02:25]Read from MH i2c: D1 [15:02:25]MH_I2C_Read... [15:02:25]Read from MH i2c: D1 01 00 [15:02:25]MH_I2C_Read... [15:02:25]Read from MH i2c: D1 01 00 36 06 00 0D [15:02:25]Write to MH i2c: 01 00 00 37 06 3D [15:02:25]Write i2c OK [15:02:25]MH_I2C_Read... [15:02:26]OFD Sender: No OFD packet to send [15:02:26]*** Cut start [15:02:26]*** Partial cut [15:02:26]*** CUTSNS_PIN = 1 [15:02:26]*** CUTSNS_PIN = 0 [15:02:26]*** Brake cut motor [15:02:27]Read from MH i2c: 01 [15:02:27]MH_I2C_Read... [15:02:27]*** Stop cut motor [15:02:27]*** Cut end [15:02:27]Read from MH i2c: 01 07 00 [15:02:27]MH_I2C_Read... [15:02:27]Read from MH i2c: 01 07 00 37 06 00 00 00 00 00 FF 0F 52 [15:02:27]process_action close_receipt done [15:02:27]requested_data is exist [15:02:27]produce_requested_data [15:02:27]requested_item fm.sn is exist - process it [15:02:27]wFMCommunicate request_size=4 [15:02:27]MH_SAM_APDU [15:02:27]CAPDU: 80 11 00 00 [15:02:27]Write to MH i2c: E2 08 00 38 06 80 11 00 00 00 00 00 00 B8 [15:02:27]Write i2c OK [15:02:27]MH_I2C_Read... [15:02:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:02:27]Read from MH i2c: E2 [15:02:27]MH_I2C_Read... [15:02:27]Read from MH i2c: E2 17 00 [15:02:27]MH_I2C_Read... [15:02:27]Read from MH i2c: E2 17 00 38 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 0E [15:02:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:02:27]wFMCommunicate OK [15:02:27]requested_item fd.num is exist - process it [15:02:27]SAM_PROTO_GetFieldsCounters [15:02:27]wFMCommunicate request_size=4 [15:02:27]MH_SAM_APDU [15:02:27]CAPDU: 80 13 00 00 [15:02:27]Write to MH i2c: E2 08 00 39 06 80 13 00 00 00 00 00 00 BB [15:02:27]Write i2c OK [15:02:27]MH_I2C_Read... [15:02:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:02:27]Read from MH i2c: E2 [15:02:27]MH_I2C_Read... [15:02:27]Read from MH i2c: E2 62 00 [15:02:27]MH_I2C_Read... [15:02:27]Read from MH i2c: E2 62 00 39 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 83 84 02 00 0E 04 04 00 BF 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 EE [15:02:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 83 84 02 00 0E 04 04 00 BF 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 [15:02:27]wFMCommunicate OK [15:02:27]SAM_PROTO_GetFieldsCounters done [15:02:27]requested_item shift.num is exist - process it [15:02:27]requested_item shift.opened is exist - process it [15:02:27]req_shift_opened [15:02:27]FM_GetShiftState [15:02:27]SAM_PROTO_GetShiftState [15:02:27]wFMCommunicate request_size=4 [15:02:27]MH_SAM_APDU [15:02:27]CAPDU: 80 13 01 00 [15:02:27]Write to MH i2c: E2 08 00 3A 06 80 13 01 00 00 00 00 00 BD [15:02:27]Write i2c OK [15:02:27]MH_I2C_Read... [15:02:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:02:27]Read from MH i2c: E2 [15:02:27]MH_I2C_Read... [15:02:27]Read from MH i2c: E2 0E 00 [15:02:27]MH_I2C_Read... [15:02:27]Read from MH i2c: E2 0E 00 3A 06 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 3D [15:02:27]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [15:02:27]wFMCommunicate OK [15:02:27]SAM_PROTO_GetShiftState done [15:02:27]FM_GetShiftState done [15:02:27]req_shift_opened done [15:02:27]requested_item shift.open_date is exist - process it [15:02:27]req_shift_open_date [15:02:27]req_shift_open_date done [15:02:27]produce_requested_data done [15:02:27]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164995,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [15:02:27]process_action_free close_receipt [15:02:27]json_value_free [15:02:27]json_value_free done [15:02:27]process_json_proto returns [15:02:27]Send response to host [15:02:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164995,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [15:02:27]free response buf [15:02:27]execute_script done [15:02:27]execute_script returns [15:02:27]free content buf [15:02:27]Sock 7.Close socket [15:02:27]Sock 7.Thread stoped [15:02:31]OFD Sender: No OFD packet to send [15:02:36]OFD Sender: No OFD packet to send [15:02:41]OFD Sender: No OFD packet to send [15:02:46]OFD Sender: No OFD packet to send [15:02:51]OFD Sender: No OFD packet to send [15:02:56]OFD Sender: No OFD packet to send [15:03:01]OFD Sender: No OFD packet to send [15:03:06]OFD Sender: No OFD packet to send [15:03:11]OFD Sender: No OFD packet to send [15:03:16]OFD Sender: No OFD packet to send [15:03:21]OFD Sender: No OFD packet to send [15:03:26]OFD Sender: No OFD packet to send [15:03:31]OFD Sender: No OFD packet to send [15:03:36]OFD Sender: No OFD packet to send [15:03:41]OFD Sender: No OFD packet to send [15:03:46]OFD Sender: No OFD packet to send [15:03:51]OFD Sender: No OFD packet to send [15:03:56]OFD Sender: No OFD packet to send [15:04:01]OFD Sender: No OFD packet to send [15:04:06]OFD Sender: No OFD packet to send [15:04:11]OFD Sender: No OFD packet to send [15:04:16]OFD Sender: No OFD packet to send [15:04:18]accept exits with 9 [15:04:18]New connection [15:04:18]New thread 3066948964 created [15:04:18]Thread 3066805604 joined [15:04:18]Waiting for new connection... [15:04:18] Sock 9.Parse request [15:04:18]Sock 9.Check first char [15:04:18]Sock 9.First char is OK [15:04:18]request: POST /json_proto HTTP/1.0 [15:04:18]Method: POST [15:04:18]URL: /json_proto [15:04:18]Method is POST - this is cgi request [15:04:18]url: /json_proto [15:04:18]query_string will be loaded in cgi processing [15:04:18]execute_cgi json_proto POST (null) [15:04:18]execute_cgi path=json_proto method=POST [15:04:18]POST find Content-Length [15:04:18]Host: 172.17.56.4:8080 [15:04:18]Content-Length: 677 [15:04:18]Content-Type: application/json [15:04:18] [15:04:18]POST finish read [15:04:18]Found Content-Length = 677 [15:04:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459096", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:04:18]execute_script... [15:04: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)459096", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:04:18]POST & json_proto [15:04:18]process_json_proto [15:04:18]json parsed OK: [15:04:18]protocol is kg_v1.0 [15:04:18]action value=close_receipt [15:04:18]process_action close_receipt [15:04:18]cmd_close_receipt [15:04:18]MH_GetDate [15:04:18]Write to MH i2c: F0 00 00 3B 06 30 [15:04:18]Write i2c OK [15:04:18]MH_I2C_Read... [15:04:18]Read from MH i2c: F0 [15:04:18]MH_I2C_Read... [15:04:18]Read from MH i2c: F0 09 00 [15:04:18]MH_I2C_Read... [15:04:18]Read from MH i2c: F0 09 00 3B 06 00 F3 E8 93 66 C9 DC B2 64 C8 [15:04:18]GetLastDocTimeStamp 1720969343 [15:04:18]current date 1720969459 [15:04:18]FM_GetShiftState [15:04:18]SAM_PROTO_GetShiftState [15:04:18]wFMCommunicate request_size=4 [15:04:18]MH_SAM_APDU [15:04:18]CAPDU: 80 13 01 00 [15:04:18]Write to MH i2c: E2 08 00 3C 06 80 13 01 00 00 00 00 00 BF [15:04:18]Write i2c OK [15:04:18]MH_I2C_Read... [15:04:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:04:18]Read from MH i2c: E2 [15:04:18]MH_I2C_Read... [15:04:18]Read from MH i2c: E2 0E 00 [15:04:18]MH_I2C_Read... [15:04:18]Read from MH i2c: E2 0E 00 3C 06 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 3F [15:04:18]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [15:04:18]wFMCommunicate OK [15:04:18]SAM_PROTO_GetShiftState done [15:04:18]FM_GetShiftState done [15:04:18]opened in 1720917342 [15:04:18]opened+sec_in_day 1721003742 [15:04:18]quantity*price = 50008 [15:04:18]sum+1 = 50009 [15:04:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 194 14.07.2024 15:04 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164996 ФПД: 164791809479056 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T150419&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164996&fm=164791809479056&tin=02508201610067®Number=0000000000090829&sum=50000 [15:04:19]StoreToDocumentArchive [15:04:19]shift 447 fd 164996 [15:04:19]save to /storage/0447/doc_00164996 [15:04:19]save last doc name /storage/0447/doc_00164996 to /storage/kkm_last_doc_name [15:04:19]save OK [15:04:19]Clear old archive folders... [15:04:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:04:20]tlvbuf is 012FCB50 [15:04:20]SAM_PROTO_ClearQueue [15:04:20]wFMCommunicate request_size=4 [15:04:20]MH_SAM_APDU [15:04:20]CAPDU: 80 09 00 00 [15:04:20]Write to MH i2c: E2 08 00 49 06 80 09 00 00 00 00 00 00 C1 [15:04:20]Write i2c OK [15:04:20]MH_I2C_Read... [15:04:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:04:20]Read from MH i2c: E2 [15:04:20]MH_I2C_Read... [15:04:20]Read from MH i2c: E2 03 00 [15:04:20]MH_I2C_Read... [15:04:20]Read from MH i2c: E2 03 00 49 06 00 90 00 C3 [15:04:20]RAPDU: 90 00 [15:04:20]wFMCommunicate OK [15:04:20]SAM_PROTO_ClearQueue done [15:04:20]KKMCreateOFDPacket [15:04:20]OFDProtocolAddRootSTLVToBuf [15:04:20]FM_MakeSignedData [15:04:20]FM_MakeSignedData [15:04:20]SAM_PROTO_SignData [15:04:20]wFMCommunicate request_size=4 [15:04:20]MH_SAM_APDU [15:04:20]CAPDU: 80 0D 01 02 [15:04:20]Write to MH i2c: E2 08 00 4A 06 80 0D 01 02 00 00 00 00 C9 [15:04:20]Write i2c OK [15:04:20]MH_I2C_Read... [15:04:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:04:20]Read from MH i2c: E2 [15:04:20]MH_I2C_Read... [15:04:20]Read from MH i2c: E2 03 00 [15:04:20]MH_I2C_Read... [15:04:20]Read from MH i2c: E2 03 00 4A 06 00 90 00 C4 [15:04:20]RAPDU: 90 00 [15:04:20]wFMCommunicate OK [15:04:20]wFMCommunicate request_size=255 [15:04:20]MH_SAM_APDU [15:04:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 C2 00 00 00 F4 03 04 00 F3 E8 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 84 84 02 00 35 04 06 00 95 [15:04:20]Write to MH i2c: E2 02 01 4B 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 C2 00 00 00 F4 03 04 00 F3 E8 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 84 84 02 00 35 04 06 00 95 00 00 37 [15:04:20]Write i2c OK [15:04:20]MH_I2C_Read... [15:04:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:04:20]Read from MH i2c: E2 [15:04:20]MH_I2C_Read... [15:04:20]Read from MH i2c: E2 03 00 [15:04:20]MH_I2C_Read... [15:04:20]Read from MH i2c: E2 03 00 4B 06 00 90 00 C5 [15:04:20]RAPDU: 90 00 [15:04:20]wFMCommunicate OK [15:04:20]wFMCommunicate request_size=10 [15:04:20]MH_SAM_APDU [15:04:20]CAPDU: 80 0D 02 02 05 E0 95 44 11 90 [15:04:20]Write to MH i2c: E2 0D 00 4C 06 80 0D 02 02 05 00 E0 95 44 11 90 00 00 30 [15:04:20]Write i2c OK [15:04:20]MH_I2C_Read... [15:04:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:04:20]Read from MH i2c: E2 [15:04:20]MH_I2C_Read... [15:04:20]Read from MH i2c: E2 03 00 [15:04:20]MH_I2C_Read... [15:04:20]Read from MH i2c: E2 03 00 4C 06 00 90 00 C6 [15:04:20]RAPDU: 90 00 [15:04:20]wFMCommunicate OK [15:04:20]wFMCommunicate request_size=4 [15:04:20]MH_SAM_APDU [15:04:20]CAPDU: 80 0D 03 02 [15:04:20]Write to MH i2c: E2 08 00 4D 06 80 0D 03 02 00 00 00 00 CE [15:04:20]Write i2c OK [15:04:20]MH_I2C_Read... [15:04:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:04:20]Read from MH i2c: E2 [15:04:20]MH_I2C_Read... [15:04:20]Read from MH i2c: E2 0B 00 [15:04:20]MH_I2C_Read... [15:04:20]Read from MH i2c: E2 0B 00 4D 06 00 C6 E9 05 1F E7 27 37 7A 90 00 61 [15:04:20]RAPDU: C6 E9 05 1F E7 27 37 7A 90 00 [15:04:20]wFMCommunicate OK [15:04:20]SAM_PROTO_SignData done [15:04:20]FM_MakeSignedData done [15:04:20]CreateOFDProtocolMessage [15:04:20]wFMCommunicate request_size=4 [15:04:20]MH_SAM_APDU [15:04:20]CAPDU: 80 11 00 00 [15:04:20]Write to MH i2c: E2 08 00 4E 06 80 11 00 00 00 00 00 00 CE [15:04:20]Write i2c OK [15:04:20]MH_I2C_Read... [15:04:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:04:20]Read from MH i2c: E2 [15:04:20]MH_I2C_Read... [15:04:20]Read from MH i2c: E2 17 00 [15:04:20]MH_I2C_Read... [15:04:20]Read from MH i2c: E2 17 00 4E 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 24 [15:04:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:04:20]wFMCommunicate OK [15:04:20]CreateOFDProtocolMessage done [15:04:20]OFDSenderStorePacket 164996 [15:04:20]StoreOFDPacket docnum=164996 [15:04:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 53 27 07 01 34 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 C2 00 00 00 F4 03 04 00 F3 E8 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 84 84 02 00 35 04 06 00 95 E0 95 44 11 90 C6 E9 05 1F E7 27 37 7A [15:04:20]CheckFolder [15:04:20]dirname=/storage/ofd_packets [15:04:20]CheckFolder done [15:04:20]ProducePacketName [15:04:20]name=ofd_packets/00164996 [15:04:20]NVStorageSaveData ofd_packets/00164996 [15:04:20]File name is /storage/ofd_packets/00164996 [15:04:20]Write 301 bytes [15:04:20]NVStorageSaveData done [15:04:20]OFDSenderStorePacket done [15:04:20]KKMCreateOFDPacket done [15:04:20]NVStorageSaveData kkm_last_timestamp [15:04:20]File name is /storage/kkm_last_timestamp [15:04:20]Write 4 bytes [15:04:20]NVStorageSaveData done [15:04:20]ExternCall_PrintAddStr [15:04:20]wPrintStart [15:04:20]Write to MH i2c: 01 00 00 4F 06 55 [15:04:20]Write i2c OK [15:04:20]MH_I2C_Read... [15:04:20]Read from MH i2c: 01 [15:04:20]MH_I2C_Read... [15:04:20]Read from MH i2c: 01 07 00 [15:04:20]MH_I2C_Read... [15:04:20]Read from MH i2c: 01 07 00 4F 06 00 00 00 00 00 FF 0F 6A [15:04:20]RasterBufferAndPrint [15:04:20]line Счет N : (1)459096 [15:04:20]line ИНН: 02508201610067 [15:04:20]line Контрольно-Кассовый Чек [15:04:20]line ПРОДАЖА [15:04:20]line ТРК (МРК, ГНК) : 12 [15:04:20]line Товар: 2710124130 [15:04:20]line Аи-92-К-5 [15:04:20]line 7.600 * 65.80 [15:04:20]line = 500.08 [15:04:20]line НДС 12% НСП 1% [15:04:20]line > о реализуемом товаре [15:04:20]line ОКРУГЛЕНИЕ: -0.08 [15:04:20]line ИТОГО: 500.00 [15:04:20]line Внесено: 500.00 [15:04:20]line СДАЧА: 0.00 [15:04:20]line НСП 1% : 4.42 [15:04:20]line НДС 12% : 53.11 [15:04:20]line Наличными: 500.00 [15:04:20]line Безнал.: 0.00 [15:04:20]line Место: АЗС № 72 "Партнер Нефть" [15:04:20]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:04:20]line СНО: Общий режим [15:04:20]line Чек 194 14.07.2024 15:04 [15:04:20]line Смена: 447 ФФД: 1.0 [15:04:20]line ЗНМ: 0300000160 [15:04:20]line РНМ: 0000000000090829 [15:04:20]line Версия ККМ: 001 [15:04:20]line ФМ: 0000000000874718 [15:04:20]line ФД: 164996 [15:04:20]line ФПД: 164791809479056 [15:04:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T150419&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164996&fm=164791809479056&tin=02508201610067®Number=0000000000090829&sum=50000 [15:04:20]OFD Sender: Processing packet 164996 [packets to send 105, broken 104] [15:04:20]ProducePacketName [15:04:20]name=ofd_packets/00164996 [15:04:20]OFD Sender: To server: pG, [15:04:20]CommunicateWithHost lk.salyk.kg:30040 [15:04:20]ConnectInit lk.salyk.kg [15:04:20]written 0, free lines is 4095 [15:04:21]Connected sock=10 [15:04:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 53 27 07 01 34 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 C2 00 00 00 F4 03 04 00 F3 E8 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 84 84 02 00 35 04 06 00 95 E0 95 44 11 90 C6 E9 05 1F E7 27 37 7A [15:04:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 81 0C 47 00 32 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 84 84 02 00 F4 03 04 00 80 8F 93 66 B6 04 01 00 00 24 CB CE E1 4D EF A8 61 [15:04:21]CommunicateWithHost err = 0 [15:04:21]CheckOFDResponse [15:04:21]1017 (14) - 77093643461234 [15:04:21]1041 (16) - 0000000000874718 [15:04:21]1040 (4) - 164996 [15:04:21]1012 (4) - 14.07.2024 08:42 [15:04:21]1206 (1) - 0 [15:04:21]OFD Sender: Remove packet 164996 [15:04:21]ProducePacketName [15:04:21]name=ofd_packets/00164996 [15:04:21]NVStorageDeleteData [15:04:21]Write to MH i2c: 01 00 00 79 06 7F [15:04:21]Write i2c OK [15:04:21]MH_I2C_Read... [15:04:21]Read from MH i2c: 01 [15:04:21]MH_I2C_Read... [15:04:21]Read from MH i2c: 01 07 00 [15:04:21]MH_I2C_Read... [15:04:21]Read from MH i2c: 01 07 00 79 06 00 00 00 00 00 02 0D 95 [15:04:21]RasterBufferAndPrint [15:04:21]line [15:04:21]line [15:04:21]line [15:04:21]line [15:04:21]line [15:04:21]written 0, free lines is 3336 [15:04:21]MH_Cut [15:04:21]Write to MH i2c: D1 01 00 80 06 01 58 [15:04:21]Write i2c OK [15:04:21]MH_I2C_Read... [15:04:21]Read from MH i2c: D1 [15:04:21]MH_I2C_Read... [15:04:21]Read from MH i2c: D1 01 00 [15:04:21]MH_I2C_Read... [15:04:21]Read from MH i2c: D1 01 00 80 06 00 57 [15:04:21]Write to MH i2c: 01 00 00 81 06 87 [15:04:21]Write i2c OK [15:04:21]MH_I2C_Read... [15:04:21]OFD Sender: No OFD packet to send [15:04:21]*** Cut start [15:04:21]*** Partial cut [15:04:21]*** CUTSNS_PIN = 1 [15:04:22]*** CUTSNS_PIN = 0 [15:04:22]*** Brake cut motor [15:04:22]Read from MH i2c: 01 [15:04:22]MH_I2C_Read... [15:04:22]*** Stop cut motor [15:04:22]*** Cut end [15:04:22]Read from MH i2c: 01 07 00 [15:04:22]MH_I2C_Read... [15:04:22]Read from MH i2c: 01 07 00 81 06 00 00 00 00 00 FF 0F 9C [15:04:22]process_action close_receipt done [15:04:22]requested_data is exist [15:04:22]produce_requested_data [15:04:22]requested_item fm.sn is exist - process it [15:04:22]wFMCommunicate request_size=4 [15:04:22]MH_SAM_APDU [15:04:22]CAPDU: 80 11 00 00 [15:04:22]Write to MH i2c: E2 08 00 82 06 80 11 00 00 00 00 00 00 02 [15:04:22]Write i2c OK [15:04:22]MH_I2C_Read... [15:04:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:04:22]Read from MH i2c: E2 [15:04:22]MH_I2C_Read... [15:04:22]Read from MH i2c: E2 17 00 [15:04:22]MH_I2C_Read... [15:04:22]Read from MH i2c: E2 17 00 82 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 58 [15:04:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:04:22]wFMCommunicate OK [15:04:22]requested_item fd.num is exist - process it [15:04:22]SAM_PROTO_GetFieldsCounters [15:04:22]wFMCommunicate request_size=4 [15:04:22]MH_SAM_APDU [15:04:22]CAPDU: 80 13 00 00 [15:04:22]Write to MH i2c: E2 08 00 83 06 80 13 00 00 00 00 00 00 05 [15:04:22]Write i2c OK [15:04:22]MH_I2C_Read... [15:04:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:04:22]Read from MH i2c: E2 [15:04:22]MH_I2C_Read... [15:04:22]Read from MH i2c: E2 62 00 [15:04:22]MH_I2C_Read... [15:04:22]Read from MH i2c: E2 62 00 83 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 84 84 02 00 0E 04 04 00 BF 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 3C [15:04:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 84 84 02 00 0E 04 04 00 BF 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 [15:04:22]wFMCommunicate OK [15:04:22]SAM_PROTO_GetFieldsCounters done [15:04:22]requested_item shift.num is exist - process it [15:04:22]requested_item shift.opened is exist - process it [15:04:22]req_shift_opened [15:04:22]FM_GetShiftState [15:04:22]SAM_PROTO_GetShiftState [15:04:22]wFMCommunicate request_size=4 [15:04:22]MH_SAM_APDU [15:04:22]CAPDU: 80 13 01 00 [15:04:22]Write to MH i2c: E2 08 00 84 06 80 13 01 00 00 00 00 00 07 [15:04:22]Write i2c OK [15:04:22]MH_I2C_Read... [15:04:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:04:22]Read from MH i2c: E2 [15:04:22]MH_I2C_Read... [15:04:22]Read from MH i2c: E2 0E 00 [15:04:22]MH_I2C_Read... [15:04:22]Read from MH i2c: E2 0E 00 84 06 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 87 [15:04:22]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [15:04:22]wFMCommunicate OK [15:04:22]SAM_PROTO_GetShiftState done [15:04:22]FM_GetShiftState done [15:04:22]req_shift_opened done [15:04:22]requested_item shift.open_date is exist - process it [15:04:22]req_shift_open_date [15:04:22]req_shift_open_date done [15:04:22]produce_requested_data done [15:04:22]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164996,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [15:04:22]process_action_free close_receipt [15:04:22]json_value_free [15:04:22]json_value_free done [15:04:22]process_json_proto returns [15:04:22]Send response to host [15:04:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164996,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [15:04:22]free response buf [15:04:22]execute_script done [15:04:22]execute_script returns [15:04:22]free content buf [15:04:22]Sock 9.Close socket [15:04:22]Sock 9.Thread stoped [15:04:26]OFD Sender: No OFD packet to send [15:04:31]OFD Sender: No OFD packet to send [15:04:33]accept exits with 7 [15:04:33]New connection [15:04:33]New thread 3066805604 created [15:04:33]Thread 3066948964 joined [15:04:33]Waiting for new connection... [15:04:33] Sock 7.Parse request [15:04:33]Sock 7.Check first char [15:04:33]Sock 7.First char is OK [15:04:33]request: POST /json_proto HTTP/1.0 [15:04:33]Method: POST [15:04:33]URL: /json_proto [15:04:33]Method is POST - this is cgi request [15:04:33]url: /json_proto [15:04:33]query_string will be loaded in cgi processing [15:04:33]execute_cgi json_proto POST (null) [15:04:33]execute_cgi path=json_proto method=POST [15:04:33]POST find Content-Length [15:04:33]Host: 172.17.56.4:8080 [15:04:33]Content-Length: 679 [15:04:33]Content-Type: application/json [15:04:33] [15:04:33]POST finish read [15:04:33]Found Content-Length = 679 [15:04:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459097", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:04:33]execute_script... [15:04: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)459097", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:04:33]POST & json_proto [15:04:33]process_json_proto [15:04:33]json parsed OK: [15:04:33]protocol is kg_v1.0 [15:04:33]action value=close_receipt [15:04:33]process_action close_receipt [15:04:33]cmd_close_receipt [15:04:33]MH_GetDate [15:04:33]Write to MH i2c: F0 00 00 85 06 7A [15:04:33]Write i2c OK [15:04:33]MH_I2C_Read... [15:04:33]Read from MH i2c: F0 [15:04:33]MH_I2C_Read... [15:04:33]Read from MH i2c: F0 09 00 [15:04:33]MH_I2C_Read... [15:04:33]Read from MH i2c: F0 09 00 85 06 00 02 E9 93 66 C9 DC B2 64 22 [15:04:33]GetLastDocTimeStamp 1720969459 [15:04:33]current date 1720969474 [15:04:33]FM_GetShiftState [15:04:33]SAM_PROTO_GetShiftState [15:04:33]wFMCommunicate request_size=4 [15:04:33]MH_SAM_APDU [15:04:33]CAPDU: 80 13 01 00 [15:04:33]Write to MH i2c: E2 08 00 86 06 80 13 01 00 00 00 00 00 09 [15:04:33]Write i2c OK [15:04:33]MH_I2C_Read... [15:04:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:04:33]Read from MH i2c: E2 [15:04:33]MH_I2C_Read... [15:04:33]Read from MH i2c: E2 0E 00 [15:04:33]MH_I2C_Read... [15:04:33]Read from MH i2c: E2 0E 00 86 06 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 89 [15:04:33]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [15:04:33]wFMCommunicate OK [15:04:33]SAM_PROTO_GetShiftState done [15:04:33]FM_GetShiftState done [15:04:33]opened in 1720917342 [15:04:33]opened+sec_in_day 1721003742 [15:04:33]quantity*price = 100012 [15:04:33]sum+1 = 100014 [15:04:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 195 14.07.2024 15:04 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164997 ФПД: 102449784787723 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T150434&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164997&fm=102449784787723&tin=02508201610067®Number=0000000000090829&sum=100000 [15:04:34]StoreToDocumentArchive [15:04:34]shift 447 fd 164997 [15:04:34]save to /storage/0447/doc_00164997 [15:04:34]save last doc name /storage/0447/doc_00164997 to /storage/kkm_last_doc_name [15:04:34]save OK [15:04:34]Clear old archive folders... [15:04:34]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:04:34]tlvbuf is 0130EB50 [15:04:34]SAM_PROTO_ClearQueue [15:04:34]wFMCommunicate request_size=4 [15:04:34]MH_SAM_APDU [15:04:34]CAPDU: 80 09 00 00 [15:04:34]Write to MH i2c: E2 08 00 93 06 80 09 00 00 00 00 00 00 0B [15:04:34]Write i2c OK [15:04:34]MH_I2C_Read... [15:04:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:04:34]Read from MH i2c: E2 [15:04:34]MH_I2C_Read... [15:04:34]Read from MH i2c: E2 03 00 [15:04:34]MH_I2C_Read... [15:04:34]Read from MH i2c: E2 03 00 93 06 00 90 00 0D [15:04:34]RAPDU: 90 00 [15:04:34]wFMCommunicate OK [15:04:34]SAM_PROTO_ClearQueue done [15:04:34]KKMCreateOFDPacket [15:04:34]OFDProtocolAddRootSTLVToBuf [15:04:34]FM_MakeSignedData [15:04:34]FM_MakeSignedData [15:04:34]SAM_PROTO_SignData [15:04:34]wFMCommunicate request_size=4 [15:04:34]MH_SAM_APDU [15:04:34]CAPDU: 80 0D 01 02 [15:04:34]Write to MH i2c: E2 08 00 94 06 80 0D 01 02 00 00 00 00 13 [15:04:34]Write i2c OK [15:04:34]MH_I2C_Read... [15:04:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:04:35]Read from MH i2c: E2 [15:04:35]MH_I2C_Read... [15:04:35]Read from MH i2c: E2 03 00 [15:04:35]MH_I2C_Read... [15:04:35]Read from MH i2c: E2 03 00 94 06 00 90 00 0E [15:04:35]RAPDU: 90 00 [15:04:35]wFMCommunicate OK [15:04:35]wFMCommunicate request_size=255 [15:04:35]MH_SAM_APDU [15:04:35]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 02 E9 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 85 84 02 00 35 04 06 00 5D 2D 73 07 [15:04:35]Write to MH i2c: E2 02 01 95 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 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 02 E9 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 85 84 02 00 35 04 06 00 5D 2D 73 07 00 00 4A [15:04:35]Write i2c OK [15:04:35]MH_I2C_Read... [15:04:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:04:35]Read from MH i2c: E2 [15:04:35]MH_I2C_Read... [15:04:35]Read from MH i2c: E2 03 00 [15:04:35]MH_I2C_Read... [15:04:35]Read from MH i2c: E2 03 00 95 06 00 90 00 0F [15:04:35]RAPDU: 90 00 [15:04:35]wFMCommunicate OK [15:04:35]wFMCommunicate request_size=7 [15:04:35]MH_SAM_APDU [15:04:35]CAPDU: 80 0D 02 02 02 93 0B [15:04:35]Write to MH i2c: E2 0A 00 96 06 80 0D 02 02 02 00 93 0B 00 00 B8 [15:04:35]Write i2c OK [15:04:35]MH_I2C_Read... [15:04:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:04:35]Read from MH i2c: E2 [15:04:35]MH_I2C_Read... [15:04:35]Read from MH i2c: E2 03 00 [15:04:35]MH_I2C_Read... [15:04:35]Read from MH i2c: E2 03 00 96 06 00 90 00 10 [15:04:35]RAPDU: 90 00 [15:04:35]wFMCommunicate OK [15:04:35]wFMCommunicate request_size=4 [15:04:35]MH_SAM_APDU [15:04:35]CAPDU: 80 0D 03 02 [15:04:35]Write to MH i2c: E2 08 00 97 06 80 0D 03 02 00 00 00 00 18 [15:04:35]Write i2c OK [15:04:35]MH_I2C_Read... [15:04:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:04:35]Read from MH i2c: E2 [15:04:35]MH_I2C_Read... [15:04:35]Read from MH i2c: E2 0B 00 [15:04:35]MH_I2C_Read... [15:04:35]Read from MH i2c: E2 0B 00 97 06 00 47 5A C2 03 BB 92 1A 92 90 00 78 [15:04:35]RAPDU: 47 5A C2 03 BB 92 1A 92 90 00 [15:04:35]wFMCommunicate OK [15:04:35]SAM_PROTO_SignData done [15:04:35]FM_MakeSignedData done [15:04:35]CreateOFDProtocolMessage [15:04:35]wFMCommunicate request_size=4 [15:04:35]MH_SAM_APDU [15:04:35]CAPDU: 80 11 00 00 [15:04:35]Write to MH i2c: E2 08 00 98 06 80 11 00 00 00 00 00 00 18 [15:04:35]Write i2c OK [15:04:35]MH_I2C_Read... [15:04:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:04:35]Read from MH i2c: E2 [15:04:35]MH_I2C_Read... [15:04:35]Read from MH i2c: E2 17 00 [15:04:35]MH_I2C_Read... [15:04:35]Read from MH i2c: E2 17 00 98 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 6E [15:04:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:04:35]wFMCommunicate OK [15:04:35]CreateOFDProtocolMessage done [15:04:35]OFDSenderStorePacket 164997 [15:04:35]StoreOFDPacket docnum=164997 [15:04:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 70 91 04 01 96 51 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 02 E9 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 85 84 02 00 35 04 06 00 5D 2D 73 07 93 0B 47 5A C2 03 BB 92 1A 92 [15:04:35]CheckFolder [15:04:35]dirname=/storage/ofd_packets [15:04:35]CheckFolder done [15:04:35]ProducePacketName [15:04:35]name=ofd_packets/00164997 [15:04:35]NVStorageSaveData ofd_packets/00164997 [15:04:35]File name is /storage/ofd_packets/00164997 [15:04:35]Write 298 bytes [15:04:35]NVStorageSaveData done [15:04:35]OFDSenderStorePacket done [15:04:35]KKMCreateOFDPacket done [15:04:35]NVStorageSaveData kkm_last_timestamp [15:04:35]File name is /storage/kkm_last_timestamp [15:04:35]Write 4 bytes [15:04:35]NVStorageSaveData done [15:04:35]ExternCall_PrintAddStr [15:04:35]wPrintStart [15:04:35]Write to MH i2c: 01 00 00 99 06 9F [15:04:35]Write i2c OK [15:04:35]MH_I2C_Read... [15:04:35]Read from MH i2c: 01 [15:04:35]MH_I2C_Read... [15:04:35]Read from MH i2c: 01 07 00 [15:04:35]MH_I2C_Read... [15:04:35]Read from MH i2c: 01 07 00 99 06 00 00 00 00 00 FF 0F B4 [15:04:35]RasterBufferAndPrint [15:04:35]line Счет N : (1)459097 [15:04:35]line ИНН: 02508201610067 [15:04:35]line Контрольно-Кассовый Чек [15:04:35]line ПРОДАЖА [15:04:35]line ТРК (МРК, ГНК) : 11 [15:04:35]line Товар: 2710194210 [15:04:35]line ДТ-К-5 [15:04:35]line 13.910 * 71.90 [15:04:35]line = 1000.13 [15:04:35]line НДС 12% НСП 1% [15:04:35]line > о реализуемом товаре [15:04:35]line ОКРУГЛЕНИЕ: -0.13 [15:04:35]line ИТОГО: 1000.00 [15:04:35]line Внесено: 1000.00 [15:04:35]line СДАЧА: 0.00 [15:04:35]line НСП 1% : 8.85 [15:04:35]line НДС 12% : 106.21 [15:04:35]line Наличными: 1000.00 [15:04:35]line Безнал.: 0.00 [15:04:35]line Место: АЗС № 72 "Партнер Нефть" [15:04:35]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:04:35]line СНО: Общий режим [15:04:35]line Чек 195 14.07.2024 15:04 [15:04:35]line Смена: 447 ФФД: 1.0 [15:04:35]line ЗНМ: 0300000160 [15:04:35]line РНМ: 0000000000090829 [15:04:35]line Версия ККМ: 001 [15:04:35]line ФМ: 0000000000874718 [15:04:35]line ФД: 164997 [15:04:35]line ФПД: 102449784787723 [15:04:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T150434&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164997&fm=102449784787723&tin=02508201610067®Number=0000000000090829&sum=100000 [15:04:35]OFD Sender: Processing packet 164997 [packets to send 105, broken 104] [15:04:35]ProducePacketName [15:04:35]name=ofd_packets/00164997 [15:04:35]OFD Sender: To server: pG, [15:04:35]CommunicateWithHost lk.salyk.kg:30040 [15:04:35]ConnectInit lk.salyk.kg [15:04:35]written 0, free lines is 4095 [15:04:35]Connected sock=10 [15:04:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 70 91 04 01 96 51 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 02 E9 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 85 84 02 00 35 04 06 00 5D 2D 73 07 93 0B 47 5A C2 03 BB 92 1A 92 [15:04:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 02 0E 47 00 5E 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 85 84 02 00 F4 03 04 00 8F 8F 93 66 B6 04 01 00 00 CD B9 46 EA 79 51 CD 16 [15:04:36]CommunicateWithHost err = 0 [15:04:36]CheckOFDResponse [15:04:36]1017 (14) - 77093643461234 [15:04:36]1041 (16) - 0000000000874718 [15:04:36]1040 (4) - 164997 [15:04:36]1012 (4) - 14.07.2024 08:42 [15:04:36]1206 (1) - 0 [15:04:36]OFD Sender: Remove packet 164997 [15:04:36]ProducePacketName [15:04:36]name=ofd_packets/00164997 [15:04:36]NVStorageDeleteData [15:04:36]Write to MH i2c: 01 00 00 C3 06 C9 [15:04:36]Write i2c OK [15:04:36]MH_I2C_Read... [15:04:36]Read from MH i2c: 01 [15:04:36]MH_I2C_Read... [15:04:36]Read from MH i2c: 01 07 00 [15:04:36]MH_I2C_Read... [15:04:36]Read from MH i2c: 01 07 00 C3 06 00 00 00 00 00 F3 0C CF [15:04:36]RasterBufferAndPrint [15:04:36]line [15:04:36]line [15:04:36]line [15:04:36]line [15:04:36]line [15:04:36]written 0, free lines is 3321 [15:04:36]MH_Cut [15:04:36]Write to MH i2c: D1 01 00 CA 06 01 A2 [15:04:36]Write i2c OK [15:04:36]MH_I2C_Read... [15:04:36]Read from MH i2c: D1 [15:04:36]MH_I2C_Read... [15:04:36]Read from MH i2c: D1 01 00 [15:04:36]MH_I2C_Read... [15:04:36]Read from MH i2c: D1 01 00 CA 06 00 A1 [15:04:36]Write to MH i2c: 01 00 00 CB 06 D1 [15:04:36]Write i2c OK [15:04:36]MH_I2C_Read... [15:04:36]OFD Sender: No OFD packet to send [15:04:36]*** Cut start [15:04:36]*** Partial cut [15:04:36]*** CUTSNS_PIN = 1 [15:04:36]*** CUTSNS_PIN = 0 [15:04:37]*** Brake cut motor [15:04:37]Read from MH i2c: 01 [15:04:37]MH_I2C_Read... [15:04:37]*** Stop cut motor [15:04:37]*** Cut end [15:04:37]Read from MH i2c: 01 07 00 [15:04:37]MH_I2C_Read... [15:04:37]Read from MH i2c: 01 07 00 CB 06 00 00 00 00 00 FF 0F E6 [15:04:37]process_action close_receipt done [15:04:37]requested_data is exist [15:04:37]produce_requested_data [15:04:37]requested_item fm.sn is exist - process it [15:04:37]wFMCommunicate request_size=4 [15:04:37]MH_SAM_APDU [15:04:37]CAPDU: 80 11 00 00 [15:04:37]Write to MH i2c: E2 08 00 CC 06 80 11 00 00 00 00 00 00 4C [15:04:37]Write i2c OK [15:04:37]MH_I2C_Read... [15:04:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:04:37]Read from MH i2c: E2 [15:04:37]MH_I2C_Read... [15:04:37]Read from MH i2c: E2 17 00 [15:04:37]MH_I2C_Read... [15:04:37]Read from MH i2c: E2 17 00 CC 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A2 [15:04:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:04:37]wFMCommunicate OK [15:04:37]requested_item fd.num is exist - process it [15:04:37]SAM_PROTO_GetFieldsCounters [15:04:37]wFMCommunicate request_size=4 [15:04:37]MH_SAM_APDU [15:04:37]CAPDU: 80 13 00 00 [15:04:37]Write to MH i2c: E2 08 00 CD 06 80 13 00 00 00 00 00 00 4F [15:04:37]Write i2c OK [15:04:37]MH_I2C_Read... [15:04:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:04:37]Read from MH i2c: E2 [15:04:37]MH_I2C_Read... [15:04:37]Read from MH i2c: E2 62 00 [15:04:37]MH_I2C_Read... [15:04:37]Read from MH i2c: E2 62 00 CD 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 85 84 02 00 0E 04 04 00 BF 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 8A [15:04:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 85 84 02 00 0E 04 04 00 BF 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 [15:04:37]wFMCommunicate OK [15:04:37]SAM_PROTO_GetFieldsCounters done [15:04:37]requested_item shift.num is exist - process it [15:04:37]requested_item shift.opened is exist - process it [15:04:37]req_shift_opened [15:04:37]FM_GetShiftState [15:04:37]SAM_PROTO_GetShiftState [15:04:37]wFMCommunicate request_size=4 [15:04:37]MH_SAM_APDU [15:04:37]CAPDU: 80 13 01 00 [15:04:37]Write to MH i2c: E2 08 00 CE 06 80 13 01 00 00 00 00 00 51 [15:04:37]Write i2c OK [15:04:37]MH_I2C_Read... [15:04:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:04:37]Read from MH i2c: E2 [15:04:37]MH_I2C_Read... [15:04:37]Read from MH i2c: E2 0E 00 [15:04:37]MH_I2C_Read... [15:04:37]Read from MH i2c: E2 0E 00 CE 06 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 D1 [15:04:37]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [15:04:37]wFMCommunicate OK [15:04:37]SAM_PROTO_GetShiftState done [15:04:37]FM_GetShiftState done [15:04:37]req_shift_opened done [15:04:37]requested_item shift.open_date is exist - process it [15:04:37]req_shift_open_date [15:04:37]req_shift_open_date done [15:04:37]produce_requested_data done [15:04:37]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164997,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [15:04:37]process_action_free close_receipt [15:04:37]json_value_free [15:04:37]json_value_free done [15:04:37]process_json_proto returns [15:04:37]Send response to host [15:04:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164997,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [15:04:37]free response buf [15:04:37]execute_script done [15:04:37]execute_script returns [15:04:37]free content buf [15:04:37]Sock 7.Close socket [15:04:37]Sock 7.Thread stoped [15:04:41]OFD Sender: No OFD packet to send [15:04:46]OFD Sender: No OFD packet to send [15:04:51]OFD Sender: No OFD packet to send [15:04:56]OFD Sender: No OFD packet to send [15:05:01]OFD Sender: No OFD packet to send [15:05:06]OFD Sender: No OFD packet to send [15:05:11]OFD Sender: No OFD packet to send [15:05:16]OFD Sender: No OFD packet to send [15:05:21]OFD Sender: No OFD packet to send [15:05:26]OFD Sender: No OFD packet to send [15:05:31]OFD Sender: No OFD packet to send [15:05:36]OFD Sender: No OFD packet to send [15:05:41]OFD Sender: No OFD packet to send [15:05:46]OFD Sender: No OFD packet to send [15:05:51]OFD Sender: No OFD packet to send [15:05:56]OFD Sender: No OFD packet to send [15:06:01]OFD Sender: No OFD packet to send [15:06:06]OFD Sender: No OFD packet to send [15:06:11]OFD Sender: No OFD packet to send [15:06:16]OFD Sender: No OFD packet to send [15:06:19]accept exits with 9 [15:06:19]New connection [15:06:19]New thread 3066948964 created [15:06:19]Thread 3066805604 joined [15:06:19]Waiting for new connection... [15:06:19] Sock 9.Parse request [15:06:19]Sock 9.Check first char [15:06:19]Sock 9.First char is OK [15:06:19]request: POST /json_proto HTTP/1.0 [15:06:19]Method: POST [15:06:19]URL: /json_proto [15:06:19]Method is POST - this is cgi request [15:06:19]url: /json_proto [15:06:19]query_string will be loaded in cgi processing [15:06:19]execute_cgi json_proto POST (null) [15:06:19]execute_cgi path=json_proto method=POST [15:06:19]POST find Content-Length [15:06:19]Host: 172.17.56.4:8080 [15:06:19]Content-Length: 677 [15:06:19]Content-Type: application/json [15:06:19] [15:06:19]POST finish read [15:06:19]Found Content-Length = 677 [15:06:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459098", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "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:06:19]execute_script... [15:06: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)459098", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "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:06:19]POST & json_proto [15:06:19]process_json_proto [15:06:19]json parsed OK: [15:06:19]protocol is kg_v1.0 [15:06:19]action value=close_receipt [15:06:19]process_action close_receipt [15:06:19]cmd_close_receipt [15:06:19]MH_GetDate [15:06:19]Write to MH i2c: F0 00 00 CF 06 C4 [15:06:19]Write i2c OK [15:06:19]MH_I2C_Read... [15:06:19]Read from MH i2c: F0 [15:06:19]MH_I2C_Read... [15:06:19]Read from MH i2c: F0 09 00 [15:06:19]MH_I2C_Read... [15:06:19]Read from MH i2c: F0 09 00 CF 06 00 6C E9 93 66 C9 DC B2 64 D6 [15:06:19]GetLastDocTimeStamp 1720969474 [15:06:19]current date 1720969580 [15:06:19]FM_GetShiftState [15:06:19]SAM_PROTO_GetShiftState [15:06:19]wFMCommunicate request_size=4 [15:06:19]MH_SAM_APDU [15:06:19]CAPDU: 80 13 01 00 [15:06:19]Write to MH i2c: E2 08 00 D0 06 80 13 01 00 00 00 00 00 53 [15:06:20]Write i2c OK [15:06:20]MH_I2C_Read... [15:06:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:06:20]Read from MH i2c: E2 [15:06:20]MH_I2C_Read... [15:06:20]Read from MH i2c: E2 0E 00 [15:06:20]MH_I2C_Read... [15:06:20]Read from MH i2c: E2 0E 00 D0 06 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 D3 [15:06:20]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [15:06:20]wFMCommunicate OK [15:06:20]SAM_PROTO_GetShiftState done [15:06:20]FM_GetShiftState done [15:06:20]opened in 1720917342 [15:06:20]opened+sec_in_day 1721003742 [15:06:20]quantity*price = 20003 [15:06:20]sum+1 = 20004 [15:06:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 196 14.07.2024 15:06 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164998 ФПД: 278535823921475 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T150620&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164998&fm=278535823921475&tin=02508201610067®Number=0000000000090829&sum=20000 [15:06:21]StoreToDocumentArchive [15:06:21]shift 447 fd 164998 [15:06:21]save to /storage/0447/doc_00164998 [15:06:21]save last doc name /storage/0447/doc_00164998 to /storage/kkm_last_doc_name [15:06:21]save OK [15:06:21]Clear old archive folders... [15:06:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:06:21]tlvbuf is 013096B0 [15:06:21]SAM_PROTO_ClearQueue [15:06:21]wFMCommunicate request_size=4 [15:06:21]MH_SAM_APDU [15:06:21]CAPDU: 80 09 00 00 [15:06:21]Write to MH i2c: E2 08 00 DD 06 80 09 00 00 00 00 00 00 55 [15:06:21]Write i2c OK [15:06:21]MH_I2C_Read... [15:06:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:06:21]Read from MH i2c: E2 [15:06:21]MH_I2C_Read... [15:06:21]Read from MH i2c: E2 03 00 [15:06:21]MH_I2C_Read... [15:06:21]Read from MH i2c: E2 03 00 DD 06 00 90 00 57 [15:06:21]RAPDU: 90 00 [15:06:21]wFMCommunicate OK [15:06:21]SAM_PROTO_ClearQueue done [15:06:21]KKMCreateOFDPacket [15:06:21]OFDProtocolAddRootSTLVToBuf [15:06:21]FM_MakeSignedData [15:06:21]FM_MakeSignedData [15:06:21]SAM_PROTO_SignData [15:06:21]wFMCommunicate request_size=4 [15:06:21]MH_SAM_APDU [15:06:21]CAPDU: 80 0D 01 02 [15:06:21]Write to MH i2c: E2 08 00 DE 06 80 0D 01 02 00 00 00 00 5D [15:06:21]Write i2c OK [15:06:21]MH_I2C_Read... [15:06:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:06:21]Read from MH i2c: E2 [15:06:21]MH_I2C_Read... [15:06:21]Read from MH i2c: E2 03 00 [15:06:21]MH_I2C_Read... [15:06:21]Read from MH i2c: E2 03 00 DE 06 00 90 00 58 [15:06:21]RAPDU: 90 00 [15:06:21]wFMCommunicate OK [15:06:21]wFMCommunicate request_size=255 [15:06:21]MH_SAM_APDU [15:06:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 C4 00 00 00 F4 03 04 00 6C E9 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 86 84 02 00 35 04 06 00 FD [15:06:21]Write to MH i2c: E2 02 01 DF 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 C4 00 00 00 F4 03 04 00 6C E9 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 86 84 02 00 35 04 06 00 FD 00 00 52 [15:06:21]Write i2c OK [15:06:21]MH_I2C_Read... [15:06:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:06:21]Read from MH i2c: E2 [15:06:21]MH_I2C_Read... [15:06:21]Read from MH i2c: E2 03 00 [15:06:21]MH_I2C_Read... [15:06:21]Read from MH i2c: E2 03 00 DF 06 00 90 00 59 [15:06:21]RAPDU: 90 00 [15:06:21]wFMCommunicate OK [15:06:21]wFMCommunicate request_size=10 [15:06:21]MH_SAM_APDU [15:06:21]CAPDU: 80 0D 02 02 05 53 AC D7 91 43 [15:06:21]Write to MH i2c: E2 0D 00 E0 06 80 0D 02 02 05 00 53 AC D7 91 43 00 00 14 [15:06:21]Write i2c OK [15:06:21]MH_I2C_Read... [15:06:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:06:21]Read from MH i2c: E2 [15:06:21]MH_I2C_Read... [15:06:21]Read from MH i2c: E2 03 00 [15:06:21]MH_I2C_Read... [15:06:21]Read from MH i2c: E2 03 00 E0 06 00 90 00 5A [15:06:21]RAPDU: 90 00 [15:06:21]wFMCommunicate OK [15:06:21]wFMCommunicate request_size=4 [15:06:21]MH_SAM_APDU [15:06:21]CAPDU: 80 0D 03 02 [15:06:21]Write to MH i2c: E2 08 00 E1 06 80 0D 03 02 00 00 00 00 62 [15:06:21]Write i2c OK [15:06:21]MH_I2C_Read... [15:06:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:06:21]Read from MH i2c: E2 [15:06:21]MH_I2C_Read... [15:06:21]Read from MH i2c: E2 0B 00 [15:06:21]MH_I2C_Read... [15:06:21]Read from MH i2c: E2 0B 00 E1 06 00 5B D2 80 39 25 D0 18 E1 90 00 37 [15:06:21]RAPDU: 5B D2 80 39 25 D0 18 E1 90 00 [15:06:21]wFMCommunicate OK [15:06:21]SAM_PROTO_SignData done [15:06:21]FM_MakeSignedData done [15:06:21]CreateOFDProtocolMessage [15:06:21]wFMCommunicate request_size=4 [15:06:21]MH_SAM_APDU [15:06:21]CAPDU: 80 11 00 00 [15:06:21]Write to MH i2c: E2 08 00 E2 06 80 11 00 00 00 00 00 00 62 [15:06:21]Write i2c OK [15:06:21]MH_I2C_Read... [15:06:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:06:21]Read from MH i2c: E2 [15:06:21]MH_I2C_Read... [15:06:21]Read from MH i2c: E2 17 00 [15:06:21]MH_I2C_Read... [15:06:21]Read from MH i2c: E2 17 00 E2 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B8 [15:06:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:06:21]wFMCommunicate OK [15:06:21]CreateOFDProtocolMessage done [15:06:21]OFDSenderStorePacket 164998 [15:06:21]StoreOFDPacket docnum=164998 [15:06:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C3 F6 07 01 62 B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 C4 00 00 00 F4 03 04 00 6C E9 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 86 84 02 00 35 04 06 00 FD 53 AC D7 91 43 5B D2 80 39 25 D0 18 E1 [15:06:21]CheckFolder [15:06:21]dirname=/storage/ofd_packets [15:06:21]CheckFolder done [15:06:21]ProducePacketName [15:06:21]name=ofd_packets/00164998 [15:06:21]NVStorageSaveData ofd_packets/00164998 [15:06:21]File name is /storage/ofd_packets/00164998 [15:06:21]Write 301 bytes [15:06:21]NVStorageSaveData done [15:06:21]OFDSenderStorePacket done [15:06:21]KKMCreateOFDPacket done [15:06:21]NVStorageSaveData kkm_last_timestamp [15:06:21]File name is /storage/kkm_last_timestamp [15:06:21]Write 4 bytes [15:06:21]NVStorageSaveData done [15:06:21]ExternCall_PrintAddStr [15:06:21]wPrintStart [15:06:21]Write to MH i2c: 01 00 00 E3 06 E9 [15:06:21]Write i2c OK [15:06:21]MH_I2C_Read... [15:06:21]Read from MH i2c: 01 [15:06:21]MH_I2C_Read... [15:06:21]Read from MH i2c: 01 07 00 [15:06:21]MH_I2C_Read... [15:06:21]Read from MH i2c: 01 07 00 E3 06 00 00 00 00 00 FF 0F FE [15:06:21]RasterBufferAndPrint [15:06:21]line Счет N : (1)459098 [15:06:21]line ИНН: 02508201610067 [15:06:21]line Контрольно-Кассовый Чек [15:06:21]line ПРОДАЖА [15:06:21]line ТРК (МРК, ГНК) : 12 [15:06:21]line Товар: 2710124130 [15:06:21]line Аи-92-К-5 [15:06:21]line 3.040 * 65.80 [15:06:21]line = 200.03 [15:06:21]line НДС 12% НСП 1% [15:06:21]line > о реализуемом товаре [15:06:21]line ОКРУГЛЕНИЕ: -0.03 [15:06:21]line ИТОГО: 200.00 [15:06:21]line Внесено: 200.00 [15:06:21]line СДАЧА: 0.00 [15:06:21]line НСП 1% : 1.77 [15:06:21]line НДС 12% : 21.24 [15:06:21]line Наличными: 200.00 [15:06:21]line Безнал.: 0.00 [15:06:21]line Место: АЗС № 72 "Партнер Нефть" [15:06:21]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:06:21]line СНО: Общий режим [15:06:21]line Чек 196 14.07.2024 15:06 [15:06:21]line Смена: 447 ФФД: 1.0 [15:06:21]line ЗНМ: 0300000160 [15:06:21]line РНМ: 0000000000090829 [15:06:21]line Версия ККМ: 001 [15:06:21]line ФМ: 0000000000874718 [15:06:21]line ФД: 164998 [15:06:21]line ФПД: 278535823921475 [15:06:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T150620&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164998&fm=278535823921475&tin=02508201610067®Number=0000000000090829&sum=20000 [15:06:22]OFD Sender: Processing packet 164998 [packets to send 105, broken 104] [15:06:22]ProducePacketName [15:06:22]name=ofd_packets/00164998 [15:06:22]OFD Sender: To server: pG, [15:06:22]CommunicateWithHost lk.salyk.kg:30040 [15:06:22]ConnectInit lk.salyk.kg [15:06:22]written 0, free lines is 4095 [15:06:22]Connected sock=10 [15:06:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C3 F6 07 01 62 B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 C4 00 00 00 F4 03 04 00 6C E9 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 86 84 02 00 35 04 06 00 FD 53 AC D7 91 43 5B D2 80 39 25 D0 18 E1 [15:06:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 A2 A1 47 00 1F C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 86 84 02 00 F4 03 04 00 F9 8F 93 66 B6 04 01 00 00 58 AD 34 90 BD 2B A5 7B [15:06:22]CommunicateWithHost err = 0 [15:06:22]CheckOFDResponse [15:06:22]1017 (14) - 77093643461234 [15:06:22]1041 (16) - 0000000000874718 [15:06:22]1040 (4) - 164998 [15:06:22]1012 (4) - 14.07.2024 08:44 [15:06:22]1206 (1) - 0 [15:06:22]OFD Sender: Remove packet 164998 [15:06:22]ProducePacketName [15:06:22]name=ofd_packets/00164998 [15:06:22]NVStorageDeleteData [15:06:22]Write to MH i2c: 01 00 00 0D 07 14 [15:06:22]Write i2c OK [15:06:22]MH_I2C_Read... [15:06:22]Read from MH i2c: 01 [15:06:22]MH_I2C_Read... [15:06:22]Read from MH i2c: 01 07 00 [15:06:22]MH_I2C_Read... [15:06:22]Read from MH i2c: 01 07 00 0D 07 00 00 00 00 00 0D 0D 35 [15:06:22]RasterBufferAndPrint [15:06:22]line [15:06:22]line [15:06:22]line [15:06:22]line [15:06:22]line [15:06:22]written 0, free lines is 3347 [15:06:22]MH_Cut [15:06:22]Write to MH i2c: D1 01 00 14 07 01 ED [15:06:22]Write i2c OK [15:06:22]MH_I2C_Read... [15:06:22]Read from MH i2c: D1 [15:06:22]MH_I2C_Read... [15:06:22]Read from MH i2c: D1 01 00 [15:06:22]MH_I2C_Read... [15:06:22]Read from MH i2c: D1 01 00 14 07 00 EC [15:06:22]Write to MH i2c: 01 00 00 15 07 1C [15:06:22]Write i2c OK [15:06:22]MH_I2C_Read... [15:06:22]OFD Sender: No OFD packet to send [15:06:23]*** Cut start [15:06:23]*** Partial cut [15:06:23]*** CUTSNS_PIN = 1 [15:06:23]*** CUTSNS_PIN = 0 [15:06:23]*** Brake cut motor [15:06:23]Read from MH i2c: 01 [15:06:23]MH_I2C_Read... [15:06:23]*** Stop cut motor [15:06:23]*** Cut end [15:06:23]Read from MH i2c: 01 07 00 [15:06:23]MH_I2C_Read... [15:06:23]Read from MH i2c: 01 07 00 15 07 00 00 00 00 00 FF 0F 31 [15:06:23]process_action close_receipt done [15:06:23]requested_data is exist [15:06:23]produce_requested_data [15:06:23]requested_item fm.sn is exist - process it [15:06:23]wFMCommunicate request_size=4 [15:06:23]MH_SAM_APDU [15:06:23]CAPDU: 80 11 00 00 [15:06:23]Write to MH i2c: E2 08 00 16 07 80 11 00 00 00 00 00 00 97 [15:06:23]Write i2c OK [15:06:23]MH_I2C_Read... [15:06:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:06:23]Read from MH i2c: E2 [15:06:23]MH_I2C_Read... [15:06:23]Read from MH i2c: E2 17 00 [15:06:23]MH_I2C_Read... [15:06:23]Read from MH i2c: E2 17 00 16 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 ED [15:06:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:06:23]wFMCommunicate OK [15:06:23]requested_item fd.num is exist - process it [15:06:23]SAM_PROTO_GetFieldsCounters [15:06:23]wFMCommunicate request_size=4 [15:06:23]MH_SAM_APDU [15:06:23]CAPDU: 80 13 00 00 [15:06:23]Write to MH i2c: E2 08 00 17 07 80 13 00 00 00 00 00 00 9A [15:06:23]Write i2c OK [15:06:23]MH_I2C_Read... [15:06:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:06:23]Read from MH i2c: E2 [15:06:23]MH_I2C_Read... [15:06:23]Read from MH i2c: E2 62 00 [15:06:23]MH_I2C_Read... [15:06:23]Read from MH i2c: E2 62 00 17 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 86 84 02 00 0E 04 04 00 BF 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 D9 [15:06:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 86 84 02 00 0E 04 04 00 BF 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 [15:06:23]wFMCommunicate OK [15:06:23]SAM_PROTO_GetFieldsCounters done [15:06:23]requested_item shift.num is exist - process it [15:06:23]requested_item shift.opened is exist - process it [15:06:23]req_shift_opened [15:06:23]FM_GetShiftState [15:06:23]SAM_PROTO_GetShiftState [15:06:23]wFMCommunicate request_size=4 [15:06:23]MH_SAM_APDU [15:06:24]CAPDU: 80 13 01 00 [15:06:24]Write to MH i2c: E2 08 00 18 07 80 13 01 00 00 00 00 00 9C [15:06:24]Write i2c OK [15:06:24]MH_I2C_Read... [15:06:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:06:24]Read from MH i2c: E2 [15:06:24]MH_I2C_Read... [15:06:24]Read from MH i2c: E2 0E 00 [15:06:24]MH_I2C_Read... [15:06:24]Read from MH i2c: E2 0E 00 18 07 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 1C [15:06:24]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [15:06:24]wFMCommunicate OK [15:06:24]SAM_PROTO_GetShiftState done [15:06:24]FM_GetShiftState done [15:06:24]req_shift_opened done [15:06:24]requested_item shift.open_date is exist - process it [15:06:24]req_shift_open_date [15:06:24]req_shift_open_date done [15:06:24]produce_requested_data done [15:06:24]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164998,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [15:06:24]process_action_free close_receipt [15:06:24]json_value_free [15:06:24]json_value_free done [15:06:24]process_json_proto returns [15:06:24]Send response to host [15:06:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164998,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [15:06:24]free response buf [15:06:24]execute_script done [15:06:24]execute_script returns [15:06:24]free content buf [15:06:24]Sock 9.Close socket [15:06:24]Sock 9.Thread stoped [15:06:27]OFD Sender: No OFD packet to send [15:06:32]OFD Sender: No OFD packet to send [15:06:37]OFD Sender: No OFD packet to send [15:06:42]OFD Sender: No OFD packet to send [15:06:47]OFD Sender: No OFD packet to send [15:06:52]OFD Sender: No OFD packet to send [15:06:57]OFD Sender: No OFD packet to send [15:07:00]accept exits with 7 [15:07:00]New connection [15:07:00]New thread 3066805604 created [15:07:00]Thread 3066948964 joined [15:07:00]Waiting for new connection... [15:07:00] Sock 7.Parse request [15:07:00]Sock 7.Check first char [15:07:00]Sock 7.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.56.4: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)459099", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.320, "sum" : 350.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15: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)459099", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.320, "sum" : 350.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15: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 19 07 0F [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 19 07 00 94 E9 93 66 C9 DC B2 64 49 [15:07:00]GetLastDocTimeStamp 1720969580 [15:07:00]current date 1720969620 [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 1A 07 80 13 01 00 00 00 00 00 9E [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 1A 07 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 1E [15:07:00]RAPDU: 09 00 01 5E 1D 93 66 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 1720917342 [15:07:00]opened+sec_in_day 1721003742 [15:07:00]quantity*price = 35005 [15:07:00]sum+1 = 35007 [15:07:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.17 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 197 14.07.2024 15:07 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 164999 ФПД: 171145455718967 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T150700&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164999&fm=171145455718967&tin=02508201610067®Number=0000000000090829&sum=35000 [15:07:01]StoreToDocumentArchive [15:07:01]shift 447 fd 164999 [15:07:01]save to /storage/0447/doc_00164999 [15:07:01]save last doc name /storage/0447/doc_00164999 to /storage/kkm_last_doc_name [15:07:01]save OK [15:07:01]Clear old archive folders... [15:07:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:07:01]tlvbuf is 012F25E0 [15:07:01]SAM_PROTO_ClearQueue [15:07:01]wFMCommunicate request_size=4 [15:07:01]MH_SAM_APDU [15:07:01]CAPDU: 80 09 00 00 [15:07:01]Write to MH i2c: E2 08 00 27 07 80 09 00 00 00 00 00 00 A0 [15:07:01]Write i2c OK [15:07:01]MH_I2C_Read... [15:07:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:07:01]Read from MH i2c: E2 [15:07:01]MH_I2C_Read... [15:07:01]Read from MH i2c: E2 03 00 [15:07:01]MH_I2C_Read... [15:07:01]Read from MH i2c: E2 03 00 27 07 00 90 00 A2 [15:07:01]RAPDU: 90 00 [15:07:01]wFMCommunicate OK [15:07:01]SAM_PROTO_ClearQueue done [15:07:01]KKMCreateOFDPacket [15:07:01]OFDProtocolAddRootSTLVToBuf [15:07:01]FM_MakeSignedData [15:07:01]FM_MakeSignedData [15:07:01]SAM_PROTO_SignData [15:07:01]wFMCommunicate request_size=4 [15:07:01]MH_SAM_APDU [15:07:01]CAPDU: 80 0D 01 02 [15:07:01]Write to MH i2c: E2 08 00 28 07 80 0D 01 02 00 00 00 00 A8 [15:07:01]Write i2c OK [15:07:01]MH_I2C_Read... [15:07:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:07:01]Read from MH i2c: E2 [15:07:01]MH_I2C_Read... [15:07:01]Read from MH i2c: E2 03 00 [15:07:01]MH_I2C_Read... [15:07:01]Read from MH i2c: E2 03 00 28 07 00 90 00 A3 [15:07:01]RAPDU: 90 00 [15:07:01]wFMCommunicate OK [15:07:01]wFMCommunicate request_size=255 [15:07:01]MH_SAM_APDU [15:07:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BE 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 85 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 C5 00 00 00 F4 03 04 00 94 E9 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 87 84 02 00 35 04 06 00 9B [15:07:01]Write to MH i2c: E2 02 01 29 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BE 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 85 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 C5 00 00 00 F4 03 04 00 94 E9 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 87 84 02 00 35 04 06 00 9B 00 00 94 [15:07:01]Write i2c OK [15:07:01]MH_I2C_Read... [15:07:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:07:01]Read from MH i2c: E2 [15:07:01]MH_I2C_Read... [15:07:01]Read from MH i2c: E2 03 00 [15:07:01]MH_I2C_Read... [15:07:01]Read from MH i2c: E2 03 00 29 07 00 90 00 A4 [15:07:01]RAPDU: 90 00 [15:07:01]wFMCommunicate OK [15:07:01]wFMCommunicate request_size=10 [15:07:01]MH_SAM_APDU [15:07:01]CAPDU: 80 0D 02 02 05 A7 E8 17 D2 37 [15:07:01]Write to MH i2c: E2 0D 00 2A 07 80 0D 02 02 05 00 A7 E8 17 D2 37 00 00 64 [15:07:01]Write i2c OK [15:07:01]MH_I2C_Read... [15:07:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:07:01]Read from MH i2c: E2 [15:07:01]MH_I2C_Read... [15:07:01]Read from MH i2c: E2 03 00 [15:07:01]MH_I2C_Read... [15:07:01]Read from MH i2c: E2 03 00 2A 07 00 90 00 A5 [15:07:01]RAPDU: 90 00 [15:07:01]wFMCommunicate OK [15:07:01]wFMCommunicate request_size=4 [15:07:01]MH_SAM_APDU [15:07:01]CAPDU: 80 0D 03 02 [15:07:01]Write to MH i2c: E2 08 00 2B 07 80 0D 03 02 00 00 00 00 AD [15:07:01]Write i2c OK [15:07:01]MH_I2C_Read... [15:07:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:07:01]Read from MH i2c: E2 [15:07:01]MH_I2C_Read... [15:07:01]Read from MH i2c: E2 0B 00 [15:07:01]MH_I2C_Read... [15:07:01]Read from MH i2c: E2 0B 00 2B 07 00 23 7D 09 2A 4B 45 C9 CF 90 00 A9 [15:07:01]RAPDU: 23 7D 09 2A 4B 45 C9 CF 90 00 [15:07:01]wFMCommunicate OK [15:07:01]SAM_PROTO_SignData done [15:07:01]FM_MakeSignedData done [15:07:01]CreateOFDProtocolMessage [15:07:01]wFMCommunicate request_size=4 [15:07:01]MH_SAM_APDU [15:07:01]CAPDU: 80 11 00 00 [15:07:01]Write to MH i2c: E2 08 00 2C 07 80 11 00 00 00 00 00 00 AD [15:07:01]Write i2c OK [15:07:01]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 2C 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 03 [15:07:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:07:02]wFMCommunicate OK [15:07:02]CreateOFDProtocolMessage done [15:07:02]OFDSenderStorePacket 164999 [15:07:02]StoreOFDPacket docnum=164999 [15:07:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 89 D6 07 01 12 D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BE 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 85 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 C5 00 00 00 F4 03 04 00 94 E9 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 87 84 02 00 35 04 06 00 9B A7 E8 17 D2 37 23 7D 09 2A 4B 45 C9 CF [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/00164999 [15:07:02]NVStorageSaveData ofd_packets/00164999 [15:07:02]File name is /storage/ofd_packets/00164999 [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 2D 07 34 [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 2D 07 00 00 00 00 00 FF 0F 49 [15:07:02]RasterBufferAndPrint [15:07:02]line Счет N : (1)459099 [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-К-5 [15:07:02]line 5.320 * 65.80 [15:07:02]line = 350.06 [15:07:02]line НДС 12% НСП 1% [15:07:02]line > о реализуемом товаре [15:07:02]line ОКРУГЛЕНИЕ: -0.06 [15:07:02]line ИТОГО: 350.00 [15:07:02]line Внесено: 350.00 [15:07:02]line СДАЧА: 0.00 [15:07:02]line НСП 1% : 3.10 [15:07:02]line НДС 12% : 37.17 [15:07:02]line Наличными: 350.00 [15:07:02]line Безнал.: 0.00 [15:07:02]line Место: АЗС № 72 "Партнер Нефть" [15:07:02]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:07:02]line СНО: Общий режим [15:07:02]line Чек 197 14.07.2024 15:07 [15:07:02]line Смена: 447 ФФД: 1.0 [15:07:02]line ЗНМ: 0300000160 [15:07:02]line РНМ: 0000000000090829 [15:07:02]line Версия ККМ: 001 [15:07:02]line ФМ: 0000000000874718 [15:07:02]line ФД: 164999 [15:07:02]line ФПД: 171145455718967 [15:07:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T150700&type=1&operation_type=1&fn_number=0000000000874718&fd_number=164999&fm=171145455718967&tin=02508201610067®Number=0000000000090829&sum=35000 [15:07:02]written 0, free lines is 4095 [15:07:02]OFD Sender: Processing packet 164999 [packets to send 105, broken 104] [15:07:02]ProducePacketName [15:07:02]name=ofd_packets/00164999 [15:07:02]OFD Sender: To server: pG, [15:07:02]CommunicateWithHost lk.salyk.kg:30040 [15:07:02]ConnectInit lk.salyk.kg [15:07:02]Connected sock=10 [15:07:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 89 D6 07 01 12 D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BE 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 85 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 C5 00 00 00 F4 03 04 00 94 E9 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 87 84 02 00 35 04 06 00 9B A7 E8 17 D2 37 23 7D 09 2A 4B 45 C9 CF [15:07:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 D7 11 47 00 D6 BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 87 84 02 00 F4 03 04 00 21 90 93 66 B6 04 01 00 00 E6 05 A4 3D 8D 70 94 E4 [15:07:02]CommunicateWithHost err = 0 [15:07:02]CheckOFDResponse [15:07:02]1017 (14) - 77093643461234 [15:07:02]1041 (16) - 0000000000874718 [15:07:02]1040 (4) - 164999 [15:07:02]1012 (4) - 14.07.2024 08:45 [15:07:02]1206 (1) - 0 [15:07:02]OFD Sender: Remove packet 164999 [15:07:02]ProducePacketName [15:07:02]name=ofd_packets/00164999 [15:07:02]NVStorageDeleteData [15:07:02]Write to MH i2c: 01 00 00 57 07 5E [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 57 07 00 00 00 00 00 0C 0D 7E [15:07:02]RasterBufferAndPrint [15:07:02]line [15:07:02]line [15:07:02]line [15:07:02]line [15:07:02]line [15:07:02]written 0, free lines is 3346 [15:07:02]MH_Cut [15:07:02]Write to MH i2c: D1 01 00 5E 07 01 37 [15:07:02]Write i2c OK [15:07:02]MH_I2C_Read... [15:07:02]Read from MH i2c: D1 [15:07:02]MH_I2C_Read... [15:07:02]Read from MH i2c: D1 01 00 [15:07:02]MH_I2C_Read... [15:07:02]Read from MH i2c: D1 01 00 5E 07 00 36 [15:07:02]Write to MH i2c: 01 00 00 5F 07 66 [15:07:02]Write i2c OK [15:07:02]MH_I2C_Read... [15:07:02]OFD Sender: No OFD packet to send [15:07:03]*** Cut start [15:07:03]*** Partial cut [15:07:03]*** CUTSNS_PIN = 1 [15:07:03]*** CUTSNS_PIN = 0 [15:07:03]*** Brake cut motor [15:07:03]Read from MH i2c: 01 [15:07:03]MH_I2C_Read... [15:07:03]*** Stop cut motor [15:07:03]*** Cut end [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 5F 07 00 00 00 00 00 FF 0F 7B [15:07:03]process_action close_receipt done [15:07:03]requested_data is exist [15:07:03]produce_requested_data [15:07:03]requested_item fm.sn is exist - process it [15:07:03]wFMCommunicate request_size=4 [15:07:03]MH_SAM_APDU [15:07:03]CAPDU: 80 11 00 00 [15:07:03]Write to MH i2c: E2 08 00 60 07 80 11 00 00 00 00 00 00 E1 [15:07:03]Write i2c OK [15:07:03]MH_I2C_Read... [15:07:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:07:03]Read from MH i2c: E2 [15:07:03]MH_I2C_Read... [15:07:03]Read from MH i2c: E2 17 00 [15:07:03]MH_I2C_Read... [15:07:03]Read from MH i2c: E2 17 00 60 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 37 [15:07:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:07:03]wFMCommunicate OK [15:07:03]requested_item fd.num is exist - process it [15:07:03]SAM_PROTO_GetFieldsCounters [15:07:03]wFMCommunicate request_size=4 [15:07:03]MH_SAM_APDU [15:07:03]CAPDU: 80 13 00 00 [15:07:03]Write to MH i2c: E2 08 00 61 07 80 13 00 00 00 00 00 00 E4 [15:07:03]Write i2c OK [15:07:03]MH_I2C_Read... [15:07:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:07:03]Read from MH i2c: E2 [15:07:03]MH_I2C_Read... [15:07:03]Read from MH i2c: E2 62 00 [15:07:03]MH_I2C_Read... [15:07:03]Read from MH i2c: E2 62 00 61 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 87 84 02 00 0E 04 04 00 BF 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 27 [15:07:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 87 84 02 00 0E 04 04 00 BF 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 [15:07:03]wFMCommunicate OK [15:07:03]SAM_PROTO_GetFieldsCounters done [15:07:03]requested_item shift.num is exist - process it [15:07:03]requested_item shift.opened is exist - process it [15:07:03]req_shift_opened [15:07:03]FM_GetShiftState [15:07:03]SAM_PROTO_GetShiftState [15:07:03]wFMCommunicate request_size=4 [15:07:03]MH_SAM_APDU [15:07:03]CAPDU: 80 13 01 00 [15:07:03]Write to MH i2c: E2 08 00 62 07 80 13 01 00 00 00 00 00 E6 [15:07:03]Write i2c OK [15:07:03]MH_I2C_Read... [15:07:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:07:04]Read from MH i2c: E2 [15:07:04]MH_I2C_Read... [15:07:04]Read from MH i2c: E2 0E 00 [15:07:04]MH_I2C_Read... [15:07:04]Read from MH i2c: E2 0E 00 62 07 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 66 [15:07:04]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [15:07:04]wFMCommunicate OK [15:07:04]SAM_PROTO_GetShiftState done [15:07:04]FM_GetShiftState done [15:07:04]req_shift_opened done [15:07:04]requested_item shift.open_date is exist - process it [15:07:04]req_shift_open_date [15:07:04]req_shift_open_date done [15:07:04]produce_requested_data done [15:07:04]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":164999,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [15:07:04]process_action_free close_receipt [15:07:04]json_value_free [15:07:04]json_value_free done [15:07:04]process_json_proto returns [15:07:04]Send response to host [15:07:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":164999,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [15:07:04]free response buf [15:07:04]execute_script done [15:07:04]execute_script returns [15:07:04]free content buf [15:07:04]Sock 7.Close socket [15:07:04]Sock 7.Thread stoped [15:07:07]OFD Sender: No OFD packet to send [15:07:12]OFD Sender: No OFD packet to send [15:07:17]OFD Sender: No OFD packet to send [15:07:22]OFD Sender: No OFD packet to send [15:07:27]OFD Sender: No OFD packet to send [15:07:32]OFD Sender: No OFD packet to send [15:07:37]OFD Sender: No OFD packet to send [15:07:42]OFD Sender: No OFD packet to send [15:07:47]OFD Sender: No OFD packet to send [15:07:52]OFD Sender: No OFD packet to send [15:07:53]accept exits with 9 [15:07:53]New connection [15:07:53]New thread 3066948964 created [15:07:53]Thread 3066805604 joined [15:07:53]Waiting for new connection... [15:07:53] Sock 9.Parse request [15:07:53]Sock 9.Check first char [15:07:53]Sock 9.First char is OK [15:07:53]request: POST /json_proto HTTP/1.0 [15:07:53]Method: POST [15:07:53]URL: /json_proto [15:07:53]Method is POST - this is cgi request [15:07:53]url: /json_proto [15:07:53]query_string will be loaded in cgi processing [15:07:53]execute_cgi json_proto POST (null) [15:07:53]execute_cgi path=json_proto method=POST [15:07:53]POST find Content-Length [15:07:53]Host: 172.17.56.4:8080 [15:07:53]Content-Length: 677 [15:07:53]Content-Type: application/json [15:07:53] [15:07:53]POST finish read [15:07:53]Found Content-Length = 677 [15:07:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459100", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:07:53]execute_script... [15:07: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)459100", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:07:53]POST & json_proto [15:07:53]process_json_proto [15:07:53]json parsed OK: [15:07:53]protocol is kg_v1.0 [15:07:53]action value=close_receipt [15:07:53]process_action close_receipt [15:07:53]cmd_close_receipt [15:07:53]MH_GetDate [15:07:53]Write to MH i2c: F0 00 00 63 07 59 [15:07:53]Write i2c OK [15:07:53]MH_I2C_Read... [15:07:53]Read from MH i2c: F0 [15:07:53]MH_I2C_Read... [15:07:53]Read from MH i2c: F0 09 00 [15:07:53]MH_I2C_Read... [15:07:53]Read from MH i2c: F0 09 00 63 07 00 CA E9 93 66 C9 DC B2 64 C9 [15:07:53]GetLastDocTimeStamp 1720969620 [15:07:53]current date 1720969674 [15:07:53]FM_GetShiftState [15:07:53]SAM_PROTO_GetShiftState [15:07:53]wFMCommunicate request_size=4 [15:07:53]MH_SAM_APDU [15:07:53]CAPDU: 80 13 01 00 [15:07:53]Write to MH i2c: E2 08 00 64 07 80 13 01 00 00 00 00 00 E8 [15:07:53]Write i2c OK [15:07:53]MH_I2C_Read... [15:07:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:07:53]Read from MH i2c: E2 [15:07:53]MH_I2C_Read... [15:07:53]Read from MH i2c: E2 0E 00 [15:07:53]MH_I2C_Read... [15:07:53]Read from MH i2c: E2 0E 00 64 07 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 68 [15:07:53]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [15:07:53]wFMCommunicate OK [15:07:53]SAM_PROTO_GetShiftState done [15:07:53]FM_GetShiftState done [15:07:53]opened in 1720917342 [15:07:53]opened+sec_in_day 1721003742 [15:07:53]quantity*price = 50008 [15:07:53]sum+1 = 50009 [15:07:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 198 14.07.2024 15:07 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165000 ФПД: 211445021263119 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T150754&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165000&fm=211445021263119&tin=02508201610067®Number=0000000000090829&sum=50000 [15:07:55]StoreToDocumentArchive [15:07:55]shift 447 fd 165000 [15:07:55]save to /storage/0447/doc_00165000 [15:07:55]save last doc name /storage/0447/doc_00165000 to /storage/kkm_last_doc_name [15:07:55]save OK [15:07:55]Clear old archive folders... [15:07:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:07:55]tlvbuf is B6F57C20 [15:07:55]SAM_PROTO_ClearQueue [15:07:55]wFMCommunicate request_size=4 [15:07:55]MH_SAM_APDU [15:07:55]CAPDU: 80 09 00 00 [15:07:55]Write to MH i2c: E2 08 00 71 07 80 09 00 00 00 00 00 00 EA [15:07:55]Write i2c OK [15:07:55]MH_I2C_Read... [15:07:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:07:55]Read from MH i2c: E2 [15:07:55]MH_I2C_Read... [15:07:55]Read from MH i2c: E2 03 00 [15:07:55]MH_I2C_Read... [15:07:55]Read from MH i2c: E2 03 00 71 07 00 90 00 EC [15:07:55]RAPDU: 90 00 [15:07:55]wFMCommunicate OK [15:07:55]SAM_PROTO_ClearQueue done [15:07:55]KKMCreateOFDPacket [15:07:55]OFDProtocolAddRootSTLVToBuf [15:07:55]FM_MakeSignedData [15:07:55]FM_MakeSignedData [15:07:55]SAM_PROTO_SignData [15:07:55]wFMCommunicate request_size=4 [15:07:55]MH_SAM_APDU [15:07:55]CAPDU: 80 0D 01 02 [15:07:55]Write to MH i2c: E2 08 00 72 07 80 0D 01 02 00 00 00 00 F2 [15:07:55]Write i2c OK [15:07:55]MH_I2C_Read... [15:07:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:07:55]Read from MH i2c: E2 [15:07:55]MH_I2C_Read... [15:07:55]Read from MH i2c: E2 03 00 [15:07:55]MH_I2C_Read... [15:07:55]Read from MH i2c: E2 03 00 72 07 00 90 00 ED [15:07:55]RAPDU: 90 00 [15:07:55]wFMCommunicate OK [15:07:55]wFMCommunicate request_size=255 [15:07:55]MH_SAM_APDU [15:07:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 C6 00 00 00 F4 03 04 00 CA E9 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 88 84 02 00 35 04 06 00 C0 [15:07:55]Write to MH i2c: E2 02 01 73 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 C6 00 00 00 F4 03 04 00 CA E9 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 88 84 02 00 35 04 06 00 C0 00 00 6B [15:07:55]Write i2c OK [15:07:55]MH_I2C_Read... [15:07:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:07:55]Read from MH i2c: E2 [15:07:55]MH_I2C_Read... [15:07:55]Read from MH i2c: E2 03 00 [15:07:55]MH_I2C_Read... [15:07:55]Read from MH i2c: E2 03 00 73 07 00 90 00 EE [15:07:55]RAPDU: 90 00 [15:07:55]wFMCommunicate OK [15:07:55]wFMCommunicate request_size=10 [15:07:55]MH_SAM_APDU [15:07:55]CAPDU: 80 0D 02 02 05 4E E1 61 C5 0F [15:07:55]Write to MH i2c: E2 0D 00 74 07 80 0D 02 02 05 00 4E E1 61 C5 0F 00 00 63 [15:07:55]Write i2c OK [15:07:55]MH_I2C_Read... [15:07:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:07:55]Read from MH i2c: E2 [15:07:55]MH_I2C_Read... [15:07:55]Read from MH i2c: E2 03 00 [15:07:55]MH_I2C_Read... [15:07:55]Read from MH i2c: E2 03 00 74 07 00 90 00 EF [15:07:55]RAPDU: 90 00 [15:07:55]wFMCommunicate OK [15:07:55]wFMCommunicate request_size=4 [15:07:55]MH_SAM_APDU [15:07:55]CAPDU: 80 0D 03 02 [15:07:55]Write to MH i2c: E2 08 00 75 07 80 0D 03 02 00 00 00 00 F7 [15:07:55]Write i2c OK [15:07:55]MH_I2C_Read... [15:07:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:07:55]Read from MH i2c: E2 [15:07:55]MH_I2C_Read... [15:07:55]Read from MH i2c: E2 0B 00 [15:07:55]MH_I2C_Read... [15:07:55]Read from MH i2c: E2 0B 00 75 07 00 02 DA 67 4E C1 53 67 8B 90 00 8F [15:07:55]RAPDU: 02 DA 67 4E C1 53 67 8B 90 00 [15:07:55]wFMCommunicate OK [15:07:55]SAM_PROTO_SignData done [15:07:55]FM_MakeSignedData done [15:07:55]CreateOFDProtocolMessage [15:07:55]wFMCommunicate request_size=4 [15:07:55]MH_SAM_APDU [15:07:55]CAPDU: 80 11 00 00 [15:07:55]Write to MH i2c: E2 08 00 76 07 80 11 00 00 00 00 00 00 F7 [15:07:55]Write i2c OK [15:07:55]MH_I2C_Read... [15:07:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:07:55]Read from MH i2c: E2 [15:07:55]MH_I2C_Read... [15:07:55]Read from MH i2c: E2 17 00 [15:07:55]MH_I2C_Read... [15:07:55]Read from MH i2c: E2 17 00 76 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 4D [15:07:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:07:55]wFMCommunicate OK [15:07:55]CreateOFDProtocolMessage done [15:07:55]OFDSenderStorePacket 165000 [15:07:55]StoreOFDPacket docnum=165000 [15:07:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 3C C0 07 01 BD C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 C6 00 00 00 F4 03 04 00 CA E9 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 88 84 02 00 35 04 06 00 C0 4E E1 61 C5 0F 02 DA 67 4E C1 53 67 8B [15:07:55]CheckFolder [15:07:55]dirname=/storage/ofd_packets [15:07:55]CheckFolder done [15:07:55]ProducePacketName [15:07:55]name=ofd_packets/00165000 [15:07:55]NVStorageSaveData ofd_packets/00165000 [15:07:55]File name is /storage/ofd_packets/00165000 [15:07:55]Write 301 bytes [15:07:55]NVStorageSaveData done [15:07:55]OFDSenderStorePacket done [15:07:55]KKMCreateOFDPacket done [15:07:55]NVStorageSaveData kkm_last_timestamp [15:07:55]File name is /storage/kkm_last_timestamp [15:07:55]Write 4 bytes [15:07:55]NVStorageSaveData done [15:07:55]ExternCall_PrintAddStr [15:07:55]wPrintStart [15:07:55]Write to MH i2c: 01 00 00 77 07 7E [15:07:55]Write i2c OK [15:07:55]MH_I2C_Read... [15:07:55]Read from MH i2c: 01 [15:07:55]MH_I2C_Read... [15:07:55]Read from MH i2c: 01 07 00 [15:07:55]MH_I2C_Read... [15:07:55]Read from MH i2c: 01 07 00 77 07 00 00 00 00 00 FF 0F 93 [15:07:55]RasterBufferAndPrint [15:07:55]line Счет N : (1)459100 [15:07:55]line ИНН: 02508201610067 [15:07:55]line Контрольно-Кассовый Чек [15:07:55]line ПРОДАЖА [15:07:55]line ТРК (МРК, ГНК) : 12 [15:07:55]line Товар: 2710124130 [15:07:55]line Аи-92-К-5 [15:07:55]line 7.600 * 65.80 [15:07:55]line = 500.08 [15:07:55]line НДС 12% НСП 1% [15:07:55]line > о реализуемом товаре [15:07:55]line ОКРУГЛЕНИЕ: -0.08 [15:07:55]line ИТОГО: 500.00 [15:07:55]line Внесено: 500.00 [15:07:55]line СДАЧА: 0.00 [15:07:55]line НСП 1% : 4.42 [15:07:55]line НДС 12% : 53.11 [15:07:55]line Наличными: 500.00 [15:07:55]line Безнал.: 0.00 [15:07:55]line Место: АЗС № 72 "Партнер Нефть" [15:07:55]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:07:55]line СНО: Общий режим [15:07:55]line Чек 198 14.07.2024 15:07 [15:07:55]line Смена: 447 ФФД: 1.0 [15:07:55]line ЗНМ: 0300000160 [15:07:55]line РНМ: 0000000000090829 [15:07:55]line Версия ККМ: 001 [15:07:55]line ФМ: 0000000000874718 [15:07:55]line ФД: 165000 [15:07:55]line ФПД: 211445021263119 [15:07:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T150754&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165000&fm=211445021263119&tin=02508201610067®Number=0000000000090829&sum=50000 [15:07:55]OFD Sender: Processing packet 165000 [packets to send 105, broken 104] [15:07:55]ProducePacketName [15:07:55]name=ofd_packets/00165000 [15:07:55]OFD Sender: To server: pG, [15:07:55]CommunicateWithHost lk.salyk.kg:30040 [15:07:55]ConnectInit lk.salyk.kg [15:07:55]written 0, free lines is 4095 [15:07:55]Connected sock=10 [15:07:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 3C C0 07 01 BD C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 C6 00 00 00 F4 03 04 00 CA E9 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 88 84 02 00 35 04 06 00 C0 4E E1 61 C5 0F 02 DA 67 4E C1 53 67 8B [15:07:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 A8 70 47 00 01 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 38 37 34 37 31 38 10 04 04 00 88 84 02 00 F4 03 04 00 57 90 93 66 B6 04 01 00 00 14 95 85 C1 AD 1D 30 29 [15:07:56]CommunicateWithHost err = 0 [15:07:56]CheckOFDResponse [15:07:56]1017 (14) - 77093643461234 [15:07:56]1041 (16) - 0000000000874718 [15:07:56]1040 (4) - 165000 [15:07:56]1012 (4) - 14.07.2024 08:46 [15:07:56]1206 (1) - 0 [15:07:56]OFD Sender: Remove packet 165000 [15:07:56]ProducePacketName [15:07:56]name=ofd_packets/00165000 [15:07:56]NVStorageDeleteData [15:07:56]Write to MH i2c: 01 00 00 A1 07 A8 [15:07:56]Write i2c OK [15:07:56]MH_I2C_Read... [15:07:56]Read from MH i2c: 01 [15:07:56]MH_I2C_Read... [15:07:56]Read from MH i2c: 01 07 00 [15:07:56]MH_I2C_Read... [15:07:56]Read from MH i2c: 01 07 00 A1 07 00 00 00 00 00 FE 0C B9 [15:07:56]RasterBufferAndPrint [15:07:56]line [15:07:56]line [15:07:56]line [15:07:56]line [15:07:56]line [15:07:56]written 0, free lines is 3332 [15:07:56]MH_Cut [15:07:56]Write to MH i2c: D1 01 00 A8 07 01 81 [15:07:56]Write i2c OK [15:07:56]MH_I2C_Read... [15:07:56]Read from MH i2c: D1 [15:07:56]MH_I2C_Read... [15:07:56]Read from MH i2c: D1 01 00 [15:07:56]MH_I2C_Read... [15:07:56]Read from MH i2c: D1 01 00 A8 07 00 80 [15:07:56]Write to MH i2c: 01 00 00 A9 07 B0 [15:07:56]Write i2c OK [15:07:56]MH_I2C_Read... [15:07:56]OFD Sender: No OFD packet to send [15:07:56]*** Cut start [15:07:56]*** Partial cut [15:07:56]*** CUTSNS_PIN = 1 [15:07:57]*** CUTSNS_PIN = 0 [15:07:57]*** Brake cut motor [15:07:57]Read from MH i2c: 01 [15:07:57]MH_I2C_Read... [15:07:57]*** Stop cut motor [15:07:57]*** Cut end [15:07:57]Read from MH i2c: 01 07 00 [15:07:57]MH_I2C_Read... [15:07:57]Read from MH i2c: 01 07 00 A9 07 00 00 00 00 00 FF 0F C5 [15:07:57]process_action close_receipt done [15:07:57]requested_data is exist [15:07:57]produce_requested_data [15:07:57]requested_item fm.sn is exist - process it [15:07:57]wFMCommunicate request_size=4 [15:07:57]MH_SAM_APDU [15:07:57]CAPDU: 80 11 00 00 [15:07:57]Write to MH i2c: E2 08 00 AA 07 80 11 00 00 00 00 00 00 2B [15:07:57]Write i2c OK [15:07:57]MH_I2C_Read... [15:07:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:07:57]Read from MH i2c: E2 [15:07:57]MH_I2C_Read... [15:07:57]Read from MH i2c: E2 17 00 [15:07:57]MH_I2C_Read... [15:07:57]Read from MH i2c: E2 17 00 AA 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 81 [15:07:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:07:57]wFMCommunicate OK [15:07:57]requested_item fd.num is exist - process it [15:07:57]SAM_PROTO_GetFieldsCounters [15:07:57]wFMCommunicate request_size=4 [15:07:57]MH_SAM_APDU [15:07:57]CAPDU: 80 13 00 00 [15:07:57]Write to MH i2c: E2 08 00 AB 07 80 13 00 00 00 00 00 00 2E [15:07:57]Write i2c OK [15:07:57]MH_I2C_Read... [15:07:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:07:57]Read from MH i2c: E2 [15:07:57]MH_I2C_Read... [15:07:57]Read from MH i2c: E2 62 00 [15:07:57]MH_I2C_Read... [15:07:57]Read from MH i2c: E2 62 00 AB 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 88 84 02 00 0E 04 04 00 BF 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 75 [15:07:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 88 84 02 00 0E 04 04 00 BF 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 [15:07:57]wFMCommunicate OK [15:07:57]SAM_PROTO_GetFieldsCounters done [15:07:57]requested_item shift.num is exist - process it [15:07:57]requested_item shift.opened is exist - process it [15:07:57]req_shift_opened [15:07:57]FM_GetShiftState [15:07:57]SAM_PROTO_GetShiftState [15:07:57]wFMCommunicate request_size=4 [15:07:57]MH_SAM_APDU [15:07:57]CAPDU: 80 13 01 00 [15:07:57]Write to MH i2c: E2 08 00 AC 07 80 13 01 00 00 00 00 00 30 [15:07:57]Write i2c OK [15:07:57]MH_I2C_Read... [15:07:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:07:57]Read from MH i2c: E2 [15:07:57]MH_I2C_Read... [15:07:57]Read from MH i2c: E2 0E 00 [15:07:57]MH_I2C_Read... [15:07:57]Read from MH i2c: E2 0E 00 AC 07 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 B0 [15:07:57]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [15:07:57]wFMCommunicate OK [15:07:57]SAM_PROTO_GetShiftState done [15:07:57]FM_GetShiftState done [15:07:57]req_shift_opened done [15:07:57]requested_item shift.open_date is exist - process it [15:07:57]req_shift_open_date [15:07:57]req_shift_open_date done [15:07:57]produce_requested_data done [15:07:57]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165000,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [15:07:57]process_action_free close_receipt [15:07:57]json_value_free [15:07:57]json_value_free done [15:07:57]process_json_proto returns [15:07:57]Send response to host [15:07:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165000,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [15:07:57]free response buf [15:07:57]execute_script done [15:07:57]execute_script returns [15:07:57]free content buf [15:07:57]Sock 9.Close socket [15:07:57]Sock 9.Thread stoped [15:08:01]OFD Sender: No OFD packet to send [15:08:06]OFD Sender: No OFD packet to send [15:08:11]OFD Sender: No OFD packet to send [15:08:16]OFD Sender: No OFD packet to send [15:08:21]OFD Sender: No OFD packet to send [15:08:26]OFD Sender: No OFD packet to send [15:08:31]OFD Sender: No OFD packet to send [15:08:36]OFD Sender: No OFD packet to send [15:08:41]OFD Sender: No OFD packet to send [15:08:46]OFD Sender: No OFD packet to send [15:08:51]OFD Sender: No OFD packet to send [15:08:56]OFD Sender: No OFD packet to send [15:09:01]OFD Sender: No OFD packet to send [15:09:06]OFD Sender: No OFD packet to send [15:09:11]OFD Sender: No OFD packet to send [15:09:16]OFD Sender: No OFD packet to send [15:09:21]OFD Sender: No OFD packet to send [15:09:26]OFD Sender: No OFD packet to send [15:09:31]OFD Sender: No OFD packet to send [15:09:36]OFD Sender: No OFD packet to send [15:09:41]OFD Sender: No OFD packet to send [15:09:46]OFD Sender: No OFD packet to send [15:09:51]OFD Sender: No OFD packet to send [15:09:56]OFD Sender: No OFD packet to send [15:10:01]OFD Sender: No OFD packet to send [15:10:06]OFD Sender: No OFD packet to send [15:10:11]OFD Sender: No OFD packet to send [15:10:16]OFD Sender: No OFD packet to send [15:10:21]OFD Sender: No OFD packet to send [15:10:26]OFD Sender: No OFD packet to send [15:10:31]OFD Sender: No OFD packet to send [15:10:36]OFD Sender: No OFD packet to send [15:10:41]OFD Sender: No OFD packet to send [15:10:46]OFD Sender: No OFD packet to send [15:10:51]OFD Sender: No OFD packet to send [15:10:56]OFD Sender: No OFD packet to send [15:11:01]OFD Sender: No OFD packet to send [15:11:06]OFD Sender: No OFD packet to send [15:11:11]OFD Sender: No OFD packet to send [15:11:16]OFD Sender: No OFD packet to send [15:11:21]OFD Sender: No OFD packet to send [15:11:26]OFD Sender: No OFD packet to send [15:11:31]OFD Sender: No OFD packet to send [15:11:36]OFD Sender: No OFD packet to send [15:11:38]accept exits with 7 [15:11:38]New connection [15:11:38]New thread 3066805604 created [15:11:38]Thread 3066948964 joined [15:11:38]Waiting for new connection... [15:11:38] Sock 7.Parse request [15:11:38]Sock 7.Check first char [15:11:38]Sock 7.First char is OK [15:11:38]request: POST /json_proto HTTP/1.0 [15:11:38]Method: POST [15:11:38]URL: /json_proto [15:11:38]Method is POST - this is cgi request [15:11:38]url: /json_proto [15:11:38]query_string will be loaded in cgi processing [15:11:38]execute_cgi json_proto POST (null) [15:11:38]execute_cgi path=json_proto method=POST [15:11:38]POST find Content-Length [15:11:38]Host: 172.17.56.4:8080 [15:11:38]Content-Length: 677 [15:11:38]Content-Type: application/json [15:11:38] [15:11:38]POST finish read [15:11:38]Found Content-Length = 677 [15:11:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459101", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "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:11:38]execute_script... [15:11: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)459101", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "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:11:38]POST & json_proto [15:11:38]process_json_proto [15:11:38]json parsed OK: [15:11:38]protocol is kg_v1.0 [15:11:38]action value=close_receipt [15:11:38]process_action close_receipt [15:11:38]cmd_close_receipt [15:11:38]MH_GetDate [15:11:38]Write to MH i2c: F0 00 00 AD 07 A3 [15:11:38]Write i2c OK [15:11:38]MH_I2C_Read... [15:11:38]Read from MH i2c: F0 [15:11:38]MH_I2C_Read... [15:11:38]Read from MH i2c: F0 09 00 [15:11:38]MH_I2C_Read... [15:11:38]Read from MH i2c: F0 09 00 AD 07 00 AB EA 93 66 C9 DC B2 64 F5 [15:11:38]GetLastDocTimeStamp 1720969674 [15:11:38]current date 1720969899 [15:11:38]FM_GetShiftState [15:11:38]SAM_PROTO_GetShiftState [15:11:38]wFMCommunicate request_size=4 [15:11:38]MH_SAM_APDU [15:11:38]CAPDU: 80 13 01 00 [15:11:38]Write to MH i2c: E2 08 00 AE 07 80 13 01 00 00 00 00 00 32 [15:11:38]Write i2c OK [15:11:38]MH_I2C_Read... [15:11:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:39]Read from MH i2c: E2 [15:11:39]MH_I2C_Read... [15:11:39]Read from MH i2c: E2 0E 00 [15:11:39]MH_I2C_Read... [15:11:39]Read from MH i2c: E2 0E 00 AE 07 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 B2 [15:11:39]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [15:11:39]wFMCommunicate OK [15:11:39]SAM_PROTO_GetShiftState done [15:11:39]FM_GetShiftState done [15:11:39]opened in 1720917342 [15:11:39]opened+sec_in_day 1721003742 [15:11:39]quantity*price = 20003 [15:11:39]sum+1 = 20004 [15:11:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 199 14.07.2024 15:11 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165001 ФПД: 226218826809797 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T151139&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165001&fm=226218826809797&tin=02508201610067®Number=0000000000090829&sum=20000 [15:11:40]StoreToDocumentArchive [15:11:40]shift 447 fd 165001 [15:11:40]save to /storage/0447/doc_00165001 [15:11:40]save last doc name /storage/0447/doc_00165001 to /storage/kkm_last_doc_name [15:11:40]save OK [15:11:40]Clear old archive folders... [15:11:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:11:40]tlvbuf is 01297530 [15:11:40]SAM_PROTO_ClearQueue [15:11:40]wFMCommunicate request_size=4 [15:11:40]MH_SAM_APDU [15:11:40]CAPDU: 80 09 00 00 [15:11:40]Write to MH i2c: E2 08 00 BB 07 80 09 00 00 00 00 00 00 34 [15:11:40]Write i2c OK [15:11:40]MH_I2C_Read... [15:11:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:11:40]Read from MH i2c: E2 [15:11:40]MH_I2C_Read... [15:11:40]Read from MH i2c: E2 03 00 [15:11:40]MH_I2C_Read... [15:11:40]Read from MH i2c: E2 03 00 BB 07 00 90 00 36 [15:11:40]RAPDU: 90 00 [15:11:40]wFMCommunicate OK [15:11:40]SAM_PROTO_ClearQueue done [15:11:40]KKMCreateOFDPacket [15:11:40]OFDProtocolAddRootSTLVToBuf [15:11:40]FM_MakeSignedData [15:11:40]FM_MakeSignedData [15:11:40]SAM_PROTO_SignData [15:11:40]wFMCommunicate request_size=4 [15:11:40]MH_SAM_APDU [15:11:40]CAPDU: 80 0D 01 02 [15:11:40]Write to MH i2c: E2 08 00 BC 07 80 0D 01 02 00 00 00 00 3C [15:11:40]Write i2c OK [15:11:40]MH_I2C_Read... [15:11:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:11:40]Read from MH i2c: E2 [15:11:40]MH_I2C_Read... [15:11:40]Read from MH i2c: E2 03 00 [15:11:40]MH_I2C_Read... [15:11:40]Read from MH i2c: E2 03 00 BC 07 00 90 00 37 [15:11:40]RAPDU: 90 00 [15:11:40]wFMCommunicate OK [15:11:40]wFMCommunicate request_size=255 [15:11:40]MH_SAM_APDU [15: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 C7 00 00 00 F4 03 04 00 AB EA 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 89 84 02 00 35 04 06 00 CD [15:11:40]Write to MH i2c: E2 02 01 BD 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 C7 00 00 00 F4 03 04 00 AB EA 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 89 84 02 00 35 04 06 00 CD 00 00 47 [15:11:40]Write i2c OK [15:11:40]MH_I2C_Read... [15:11:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:40]Read from MH i2c: E2 [15:11:40]MH_I2C_Read... [15:11:40]Read from MH i2c: E2 03 00 [15:11:40]MH_I2C_Read... [15:11:40]Read from MH i2c: E2 03 00 BD 07 00 90 00 38 [15:11:40]RAPDU: 90 00 [15:11:40]wFMCommunicate OK [15:11:40]wFMCommunicate request_size=10 [15:11:40]MH_SAM_APDU [15:11:40]CAPDU: 80 0D 02 02 05 BE AC D0 41 C5 [15:11:40]Write to MH i2c: E2 0D 00 BE 07 80 0D 02 02 05 00 BE AC D0 41 C5 00 00 89 [15:11:40]Write i2c OK [15:11:40]MH_I2C_Read... [15:11:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:40]Read from MH i2c: E2 [15:11:40]MH_I2C_Read... [15:11:40]Read from MH i2c: E2 03 00 [15:11:40]MH_I2C_Read... [15:11:40]Read from MH i2c: E2 03 00 BE 07 00 90 00 39 [15:11:40]RAPDU: 90 00 [15:11:40]wFMCommunicate OK [15:11:40]wFMCommunicate request_size=4 [15:11:40]MH_SAM_APDU [15:11:40]CAPDU: 80 0D 03 02 [15:11:40]Write to MH i2c: E2 08 00 BF 07 80 0D 03 02 00 00 00 00 41 [15:11:40]Write i2c OK [15:11:40]MH_I2C_Read... [15:11:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:11:40]Read from MH i2c: E2 [15:11:40]MH_I2C_Read... [15:11:40]Read from MH i2c: E2 0B 00 [15:11:40]MH_I2C_Read... [15:11:40]Read from MH i2c: E2 0B 00 BF 07 00 57 47 A0 AE 03 9F 39 E4 90 00 ED [15:11:40]RAPDU: 57 47 A0 AE 03 9F 39 E4 90 00 [15:11:40]wFMCommunicate OK [15:11:40]SAM_PROTO_SignData done [15:11:40]FM_MakeSignedData done [15:11:40]CreateOFDProtocolMessage [15:11:40]wFMCommunicate request_size=4 [15:11:40]MH_SAM_APDU [15:11:40]CAPDU: 80 11 00 00 [15:11:40]Write to MH i2c: E2 08 00 C0 07 80 11 00 00 00 00 00 00 41 [15:11:40]Write i2c OK [15:11:40]MH_I2C_Read... [15:11:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:40]Read from MH i2c: E2 [15:11:40]MH_I2C_Read... [15:11:40]Read from MH i2c: E2 17 00 [15:11:40]MH_I2C_Read... [15:11:40]Read from MH i2c: E2 17 00 C0 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 97 [15:11:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:11:40]wFMCommunicate OK [15:11:40]CreateOFDProtocolMessage done [15:11:40]OFDSenderStorePacket 165001 [15:11:40]StoreOFDPacket docnum=165001 [15:11:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 ED A3 07 01 36 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 C7 00 00 00 F4 03 04 00 AB EA 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 89 84 02 00 35 04 06 00 CD BE AC D0 41 C5 57 47 A0 AE 03 9F 39 E4 [15:11:40]CheckFolder [15:11:40]dirname=/storage/ofd_packets [15:11:40]CheckFolder done [15:11:40]ProducePacketName [15:11:40]name=ofd_packets/00165001 [15:11:40]NVStorageSaveData ofd_packets/00165001 [15:11:40]File name is /storage/ofd_packets/00165001 [15:11:40]Write 301 bytes [15:11:40]NVStorageSaveData done [15:11:40]OFDSenderStorePacket done [15:11:40]KKMCreateOFDPacket done [15:11:40]NVStorageSaveData kkm_last_timestamp [15:11:40]File name is /storage/kkm_last_timestamp [15:11:40]Write 4 bytes [15:11:40]NVStorageSaveData done [15:11:40]ExternCall_PrintAddStr [15:11:40]wPrintStart [15:11:40]Write to MH i2c: 01 00 00 C1 07 C8 [15:11:40]Write i2c OK [15:11:40]MH_I2C_Read... [15:11:40]Read from MH i2c: 01 [15:11:40]MH_I2C_Read... [15:11:40]Read from MH i2c: 01 07 00 [15:11:40]MH_I2C_Read... [15:11:40]Read from MH i2c: 01 07 00 C1 07 00 00 00 00 00 FF 0F DD [15:11:40]RasterBufferAndPrint [15:11:40]line Счет N : (1)459101 [15:11:40]line ИНН: 02508201610067 [15:11:40]line Контрольно-Кассовый Чек [15:11:40]line ПРОДАЖА [15:11:40]line ТРК (МРК, ГНК) : 22 [15:11:40]line Товар: 2710124130 [15:11:40]line Аи-92-К-5 [15:11:40]line 3.040 * 65.80 [15:11:40]line = 200.03 [15:11:40]line НДС 12% НСП 1% [15:11:40]line > о реализуемом товаре [15:11:40]line ОКРУГЛЕНИЕ: -0.03 [15:11:40]line ИТОГО: 200.00 [15:11:40]line Внесено: 200.00 [15:11:40]line СДАЧА: 0.00 [15:11:40]line НСП 1% : 1.77 [15:11:40]line НДС 12% : 21.24 [15:11:40]line Наличными: 200.00 [15:11:40]line Безнал.: 0.00 [15:11:40]line Место: АЗС № 72 "Партнер Нефть" [15:11:40]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:11:40]line СНО: Общий режим [15:11:40]line Чек 199 14.07.2024 15:11 [15:11:40]line Смена: 447 ФФД: 1.0 [15:11:40]line ЗНМ: 0300000160 [15:11:40]line РНМ: 0000000000090829 [15:11:40]line Версия ККМ: 001 [15:11:40]line ФМ: 0000000000874718 [15:11:40]line ФД: 165001 [15:11:40]line ФПД: 226218826809797 [15:11:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T151139&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165001&fm=226218826809797&tin=02508201610067®Number=0000000000090829&sum=20000 [15:11:41]written 0, free lines is 4095 [15:11:41]OFD Sender: Processing packet 165001 [packets to send 105, broken 104] [15:11:41]ProducePacketName [15:11:41]name=ofd_packets/00165001 [15:11:41]OFD Sender: To server: pG, [15:11:41]CommunicateWithHost lk.salyk.kg:30040 [15:11:41]ConnectInit lk.salyk.kg [15:11:41]Connected sock=10 [15:11:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 ED A3 07 01 36 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 C7 00 00 00 F4 03 04 00 AB EA 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 89 84 02 00 35 04 06 00 CD BE AC D0 41 C5 57 47 A0 AE 03 9F 39 E4 [15:11:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 E2 66 47 00 65 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 89 84 02 00 F4 03 04 00 38 91 93 66 B6 04 01 00 00 D5 C9 9C 87 BA BC B0 C0 [15:11:41]CommunicateWithHost err = 0 [15:11:41]CheckOFDResponse [15:11:41]1017 (14) - 77093643461234 [15:11:41]1041 (16) - 0000000000874718 [15:11:41]1040 (4) - 165001 [15:11:41]1012 (4) - 14.07.2024 08:50 [15:11:41]1206 (1) - 0 [15:11:41]OFD Sender: Remove packet 165001 [15:11:41]ProducePacketName [15:11:41]name=ofd_packets/00165001 [15:11:41]NVStorageDeleteData [15:11:41]Write to MH i2c: 01 00 00 EB 07 F2 [15:11:41]Write i2c OK [15:11:41]MH_I2C_Read... [15:11:41]Read from MH i2c: 01 [15:11:41]MH_I2C_Read... [15:11:41]Read from MH i2c: 01 07 00 [15:11:41]MH_I2C_Read... [15:11:41]Read from MH i2c: 01 07 00 EB 07 00 00 00 00 00 02 0D 08 [15:11:41]RasterBufferAndPrint [15:11:41]line [15:11:41]line [15:11:41]line [15:11:41]line [15:11:41]line [15:11:41]written 0, free lines is 3336 [15:11:41]MH_Cut [15:11:41]Write to MH i2c: D1 01 00 F2 07 01 CB [15:11:41]Write i2c OK [15:11:41]MH_I2C_Read... [15:11:41]Read from MH i2c: D1 [15:11:41]MH_I2C_Read... [15:11:41]Read from MH i2c: D1 01 00 [15:11:41]MH_I2C_Read... [15:11:41]Read from MH i2c: D1 01 00 F2 07 00 CA [15:11:41]Write to MH i2c: 01 00 00 F3 07 FA [15:11:41]Write i2c OK [15:11:41]MH_I2C_Read... [15:11:41]OFD Sender: No OFD packet to send [15:11:42]*** Cut start [15:11:42]*** Partial cut [15:11:42]*** CUTSNS_PIN = 1 [15:11:42]*** CUTSNS_PIN = 0 [15:11:42]*** Brake cut motor [15:11:42]Read from MH i2c: 01 [15:11:42]MH_I2C_Read... [15:11:42]*** Stop cut motor [15:11:42]*** Cut end [15:11:42]Read from MH i2c: 01 07 00 [15:11:42]MH_I2C_Read... [15:11:42]Read from MH i2c: 01 07 00 F3 07 00 00 00 00 00 FF 0F 0F [15:11:42]process_action close_receipt done [15:11:42]requested_data is exist [15:11:42]produce_requested_data [15:11:42]requested_item fm.sn is exist - process it [15:11:42]wFMCommunicate request_size=4 [15:11:42]MH_SAM_APDU [15:11:42]CAPDU: 80 11 00 00 [15:11:42]Write to MH i2c: E2 08 00 F4 07 80 11 00 00 00 00 00 00 75 [15:11:42]Write i2c OK [15:11:42]MH_I2C_Read... [15:11:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:42]Read from MH i2c: E2 [15:11:42]MH_I2C_Read... [15:11:42]Read from MH i2c: E2 17 00 [15:11:42]MH_I2C_Read... [15:11:42]Read from MH i2c: E2 17 00 F4 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 CB [15:11:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:11:42]wFMCommunicate OK [15:11:42]requested_item fd.num is exist - process it [15:11:42]SAM_PROTO_GetFieldsCounters [15:11:42]wFMCommunicate request_size=4 [15:11:42]MH_SAM_APDU [15:11:42]CAPDU: 80 13 00 00 [15:11:42]Write to MH i2c: E2 08 00 F5 07 80 13 00 00 00 00 00 00 78 [15:11:42]Write i2c OK [15:11:42]MH_I2C_Read... [15:11:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:11:42]Read from MH i2c: E2 [15:11:42]MH_I2C_Read... [15:11:42]Read from MH i2c: E2 62 00 [15:11:42]MH_I2C_Read... [15:11:42]Read from MH i2c: E2 62 00 F5 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 89 84 02 00 0E 04 04 00 BF 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 C3 [15:11:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 89 84 02 00 0E 04 04 00 BF 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 [15:11:42]wFMCommunicate OK [15:11:42]SAM_PROTO_GetFieldsCounters done [15:11:42]requested_item shift.num is exist - process it [15:11:42]requested_item shift.opened is exist - process it [15:11:42]req_shift_opened [15:11:42]FM_GetShiftState [15:11:42]SAM_PROTO_GetShiftState [15:11:42]wFMCommunicate request_size=4 [15:11:42]MH_SAM_APDU [15:11:42]CAPDU: 80 13 01 00 [15:11:42]Write to MH i2c: E2 08 00 F6 07 80 13 01 00 00 00 00 00 7A [15:11:42]Write i2c OK [15:11:42]MH_I2C_Read... [15:11:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:42]Read from MH i2c: E2 [15:11:42]MH_I2C_Read... [15:11:42]Read from MH i2c: E2 0E 00 [15:11:42]MH_I2C_Read... [15:11:42]Read from MH i2c: E2 0E 00 F6 07 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 FA [15:11:42]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [15:11:42]wFMCommunicate OK [15:11:42]SAM_PROTO_GetShiftState done [15:11:42]FM_GetShiftState done [15:11:42]req_shift_opened done [15:11:42]requested_item shift.open_date is exist - process it [15:11:42]req_shift_open_date [15:11:42]req_shift_open_date done [15:11:42]produce_requested_data done [15:11:42]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165001,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [15:11:42]process_action_free close_receipt [15:11:42]json_value_free [15:11:42]json_value_free done [15:11:42]process_json_proto returns [15:11:42]Send response to host [15:11:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165001,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [15:11:42]free response buf [15:11:42]execute_script done [15:11:42]execute_script returns [15:11:42]free content buf [15:11:42]Sock 7.Close socket [15:11:42]Sock 7.Thread stoped [15:11:46]OFD Sender: No OFD packet to send [15:11:51]OFD Sender: No OFD packet to send [15:11:56]OFD Sender: No OFD packet to send [15:12:01]OFD Sender: No OFD packet to send [15:12:06]OFD Sender: No OFD packet to send [15:12:11]OFD Sender: No OFD packet to send [15:12:16]OFD Sender: No OFD packet to send [15:12:21]OFD Sender: No OFD packet to send [15:12:26]OFD Sender: No OFD packet to send [15:12:31]OFD Sender: No OFD packet to send [15:12:36]OFD Sender: No OFD packet to send [15:12:41]OFD Sender: No OFD packet to send [15:12:46]OFD Sender: No OFD packet to send [15:12:51]OFD Sender: No OFD packet to send [15:12:56]OFD Sender: No OFD packet to send [15:13:01]OFD Sender: No OFD packet to send [15:13:06]OFD Sender: No OFD packet to send [15:13:09]accept exits with 9 [15:13:09]New connection [15:13:09]New thread 3066948964 created [15:13:09]Thread 3066805604 joined [15:13:09]Waiting for new connection... [15:13:09] Sock 9.Parse request [15:13:09]Sock 9.Check first char [15:13:09]Sock 9.First char is OK [15:13:09]request: POST /json_proto HTTP/1.0 [15:13:09]Method: POST [15:13:09]URL: /json_proto [15:13:09]Method is POST - this is cgi request [15:13:09]url: /json_proto [15:13:09]query_string will be loaded in cgi processing [15:13:09]execute_cgi json_proto POST (null) [15:13:09]execute_cgi path=json_proto method=POST [15:13:09]POST find Content-Length [15:13:09]Host: 172.17.56.4:8080 [15:13:09]Content-Length: 790 [15:13:09]Content-Type: application/json [15:13:09] [15:13:09]POST finish read [15:13:09]Found Content-Length = 790 [15:13:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459102", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.26, "quantity" : 42.100, "sum" : 3000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 3000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:13:09]execute_script... [15: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)459102", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.26, "quantity" : 42.100, "sum" : 3000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 3000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:13:09]POST & json_proto [15:13:09]process_json_proto [15:13:09]json parsed OK: [15:13:09]protocol is kg_v1.0 [15:13:09]action value=close_receipt [15:13:09]process_action close_receipt [15:13:09]cmd_close_receipt [15:13:09]MH_GetDate [15:13:09]Write to MH i2c: F0 00 00 F7 07 ED [15:13:09]Write i2c OK [15:13:09]MH_I2C_Read... [15:13:09]Read from MH i2c: F0 [15:13:09]MH_I2C_Read... [15:13:09]Read from MH i2c: F0 09 00 [15:13:09]MH_I2C_Read... [15:13:09]Read from MH i2c: F0 09 00 F7 07 00 05 EB 93 66 C9 DC B2 64 9A [15:13:09]GetLastDocTimeStamp 1720969899 [15:13:09]current date 1720969989 [15:13:09]FM_GetShiftState [15:13:09]SAM_PROTO_GetShiftState [15:13:09]wFMCommunicate request_size=4 [15:13:09]MH_SAM_APDU [15:13:09]CAPDU: 80 13 01 00 [15:13:09]Write to MH i2c: E2 08 00 F8 07 80 13 01 00 00 00 00 00 7C [15:13:09]Write i2c OK [15:13:09]MH_I2C_Read... [15:13:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:13:09]Read from MH i2c: E2 [15:13:09]MH_I2C_Read... [15:13:09]Read from MH i2c: E2 0E 00 [15:13:09]MH_I2C_Read... [15:13:09]Read from MH i2c: E2 0E 00 F8 07 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 FC [15:13:09]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [15:13:09]wFMCommunicate OK [15:13:09]SAM_PROTO_GetShiftState done [15:13:09]FM_GetShiftState done [15:13:09]opened in 1720917342 [15:13:09]opened+sec_in_day 1721003742 [15:13:09]quantity*price = 300004 [15:13:09]sum+1 = 300006 [15:13:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.05 НСП 1% : 26.55 НДС 12% : 318.59 Наличными: 0.00 Безнал.: 3000.05 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 200 14.07.2024 15:13 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 165002 ФПД: 264850582306545 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T151310&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165002&fm=264850582306545&tin=02508201610067®Number=0000000000090829&sum=300005 [15:13:10]StoreToDocumentArchive [15:13:10]shift 447 fd 165002 [15:13:10]save to /storage/0447/doc_00165002 [15:13:10]save last doc name /storage/0447/doc_00165002 to /storage/kkm_last_doc_name [15:13:10]save OK [15:13:10]Clear old archive folders... [15:13:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:13:10]tlvbuf is 0129D1F0 [15:13:10]SAM_PROTO_ClearQueue [15:13:10]wFMCommunicate request_size=4 [15:13:10]MH_SAM_APDU [15:13:10]CAPDU: 80 09 00 00 [15:13:10]Write to MH i2c: E2 08 00 05 08 80 09 00 00 00 00 00 00 7F [15:13:10]Write i2c OK [15:13:10]MH_I2C_Read... [15:13:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:13:10]Read from MH i2c: E2 [15:13:10]MH_I2C_Read... [15:13:10]Read from MH i2c: E2 03 00 [15:13:10]MH_I2C_Read... [15:13:10]Read from MH i2c: E2 03 00 05 08 00 90 00 81 [15:13:10]RAPDU: 90 00 [15:13:10]wFMCommunicate OK [15:13:10]SAM_PROTO_ClearQueue done [15:13:10]KKMCreateOFDPacket [15:13:10]OFDProtocolAddRootSTLVToBuf [15:13:10]FM_MakeSignedData [15:13:10]FM_MakeSignedData [15:13:10]SAM_PROTO_SignData [15:13:10]wFMCommunicate request_size=4 [15:13:10]MH_SAM_APDU [15:13:10]CAPDU: 80 0D 01 02 [15:13:10]Write to MH i2c: E2 08 00 06 08 80 0D 01 02 00 00 00 00 87 [15:13:10]Write i2c OK [15:13:10]MH_I2C_Read... [15:13:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:13:10]Read from MH i2c: E2 [15:13:10]MH_I2C_Read... [15:13:10]Read from MH i2c: E2 03 00 [15:13:10]MH_I2C_Read... [15:13:10]Read from MH i2c: E2 03 00 06 08 00 90 00 82 [15:13:10]RAPDU: 90 00 [15:13:10]wFMCommunicate OK [15:13:10]wFMCommunicate request_size=255 [15:13:10]MH_SAM_APDU [15: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 74 A4 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 E5 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E5 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 73 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E5 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 06 EB 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8A 84 02 00 35 04 06 00 F0 E1 54 E0 [15:13:10]Write to MH i2c: E2 02 01 07 08 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 A4 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 E5 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E5 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 73 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E5 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 06 EB 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8A 84 02 00 35 04 06 00 F0 E1 54 E0 00 00 46 [15:13:10]Write i2c OK [15:13:10]MH_I2C_Read... [15:13:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:13:11]Read from MH i2c: E2 [15:13:11]MH_I2C_Read... [15:13:11]Read from MH i2c: E2 03 00 [15:13:11]MH_I2C_Read... [15:13:11]Read from MH i2c: E2 03 00 07 08 00 90 00 83 [15:13:11]RAPDU: 90 00 [15:13:11]wFMCommunicate OK [15:13:11]wFMCommunicate request_size=7 [15:13:11]MH_SAM_APDU [15:13:11]CAPDU: 80 0D 02 02 02 7E F1 [15:13:11]Write to MH i2c: E2 0A 00 08 08 80 0D 02 02 02 00 7E F1 00 00 FD [15:13:11]Write i2c OK [15:13:11]MH_I2C_Read... [15:13:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:13:11]Read from MH i2c: E2 [15:13:11]MH_I2C_Read... [15:13:11]Read from MH i2c: E2 03 00 [15:13:11]MH_I2C_Read... [15:13:11]Read from MH i2c: E2 03 00 08 08 00 90 00 84 [15:13:11]RAPDU: 90 00 [15:13:11]wFMCommunicate OK [15:13:11]wFMCommunicate request_size=4 [15:13:11]MH_SAM_APDU [15:13:11]CAPDU: 80 0D 03 02 [15:13:11]Write to MH i2c: E2 08 00 09 08 80 0D 03 02 00 00 00 00 8C [15:13:11]Write i2c OK [15:13:11]MH_I2C_Read... [15:13:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:13:11]Read from MH i2c: E2 [15:13:11]MH_I2C_Read... [15:13:11]Read from MH i2c: E2 0B 00 [15:13:11]MH_I2C_Read... [15:13:11]Read from MH i2c: E2 0B 00 09 08 00 44 C2 65 0B 76 54 A9 EE 90 00 64 [15:13:11]RAPDU: 44 C2 65 0B 76 54 A9 EE 90 00 [15:13:11]wFMCommunicate OK [15:13:11]SAM_PROTO_SignData done [15:13:11]FM_MakeSignedData done [15:13:11]CreateOFDProtocolMessage [15:13:11]wFMCommunicate request_size=4 [15:13:11]MH_SAM_APDU [15:13:11]CAPDU: 80 11 00 00 [15:13:11]Write to MH i2c: E2 08 00 0A 08 80 11 00 00 00 00 00 00 8C [15:13:11]Write i2c OK [15:13:11]MH_I2C_Read... [15:13:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:13:11]Read from MH i2c: E2 [15:13:11]MH_I2C_Read... [15:13:11]Read from MH i2c: E2 17 00 [15:13:11]MH_I2C_Read... [15:13:11]Read from MH i2c: E2 17 00 0A 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E2 [15:13:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:13:11]wFMCommunicate OK [15:13:11]CreateOFDProtocolMessage done [15:13:11]OFDSenderStorePacket 165002 [15:13:11]StoreOFDPacket docnum=165002 [15:13:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 16 37 04 01 67 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 74 A4 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 E5 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E5 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 73 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E5 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 06 EB 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8A 84 02 00 35 04 06 00 F0 E1 54 E0 7E F1 44 C2 65 0B 76 54 A9 EE [15:13:11]CheckFolder [15:13:11]dirname=/storage/ofd_packets [15:13:11]CheckFolder done [15:13:11]ProducePacketName [15:13:11]name=ofd_packets/00165002 [15:13:11]NVStorageSaveData ofd_packets/00165002 [15:13:11]File name is /storage/ofd_packets/00165002 [15:13:11]Write 298 bytes [15:13:11]NVStorageSaveData done [15:13:11]OFDSenderStorePacket done [15:13:11]KKMCreateOFDPacket done [15:13:11]NVStorageSaveData kkm_last_timestamp [15:13:11]File name is /storage/kkm_last_timestamp [15:13:11]Write 4 bytes [15:13:11]NVStorageSaveData done [15:13:11]ExternCall_PrintAddStr [15:13:11]wPrintStart [15:13:11]Write to MH i2c: 01 00 00 0B 08 13 [15:13:11]Write i2c OK [15:13:11]MH_I2C_Read... [15:13:11]Read from MH i2c: 01 [15:13:11]MH_I2C_Read... [15:13:11]Read from MH i2c: 01 07 00 [15:13:11]MH_I2C_Read... [15:13:11]Read from MH i2c: 01 07 00 0B 08 00 00 00 00 00 FF 0F 28 [15:13:11]RasterBufferAndPrint [15:13:11]line Счет N : (1)459102 [15:13:11]line ИНН: 02508201610067 [15:13:11]line Контрольно-Кассовый Чек [15:13:11]line ПРОДАЖА [15:13:11]line ТРК (МРК, ГНК) : 11 [15:13:11]line Товар: 2710194210 [15:13:11]line ДТ-К-5 [15:13:11]line 42.100 * 71.26 [15:13:11]line = 3000.05 [15:13:11]line НДС 12% НСП 1% [15:13:11]line > о реализуемом товаре [15:13:11]line ИТОГО: 3000.05 [15:13:11]line НСП 1% : 26.55 [15:13:11]line НДС 12% : 318.59 [15:13:11]line Наличными: 0.00 [15:13:11]line Безнал.: 3000.05 [15:13:11]line Место: АЗС № 72 "Партнер Нефть" [15:13:11]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:13:11]line СНО: Общий режим [15:13:11]line Чек 200 14.07.2024 15:13 [15:13:11]line Смена: 447 ФФД: 1.0 [15:13:11]line ЗНМ: 0300000160 [15:13:11]line РНМ: 0000000000090829 [15:13:11]line Версия ККМ: 001 [15:13:11]line Платежная система: KICB Банк [15:13:11]line ФМ: 0000000000874718 [15:13:11]line ФД: 165002 [15:13:11]line ФПД: 264850582306545 [15:13:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T151310&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165002&fm=264850582306545&tin=02508201610067®Number=0000000000090829&sum=300005 [15:13:11]OFD Sender: Processing packet 165002 [packets to send 105, broken 104] [15:13:11]ProducePacketName [15:13:11]name=ofd_packets/00165002 [15:13:11]OFD Sender: To server: pG, [15:13:11]CommunicateWithHost lk.salyk.kg:30040 [15:13:11]ConnectInit lk.salyk.kg [15:13:11]written 0, free lines is 4095 [15:13:11]Connected sock=10 [15:13:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 16 37 04 01 67 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 74 A4 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 E5 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E5 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 73 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E5 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 06 EB 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8A 84 02 00 35 04 06 00 F0 E1 54 E0 7E F1 44 C2 65 0B 76 54 A9 EE [15:13:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 3E 5E 47 00 25 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 38 37 34 37 31 38 10 04 04 00 8A 84 02 00 F4 03 04 00 93 91 93 66 B6 04 01 00 00 EC 5E 4E A4 4E 27 B1 2A [15:13:11]CommunicateWithHost err = 0 [15:13:11]CheckOFDResponse [15:13:11]1017 (14) - 77093643461234 [15:13:11]1041 (16) - 0000000000874718 [15:13:11]1040 (4) - 165002 [15:13:11]1012 (4) - 14.07.2024 08:51 [15:13:11]1206 (1) - 0 [15:13:11]OFD Sender: Remove packet 165002 [15:13:11]ProducePacketName [15:13:11]name=ofd_packets/00165002 [15:13:11]NVStorageDeleteData [15:13:11]Write to MH i2c: 01 00 00 34 08 3C [15:13:11]Write i2c OK [15:13:11]MH_I2C_Read... [15:13:11]Read from MH i2c: 01 [15:13:11]MH_I2C_Read... [15:13:11]Read from MH i2c: 01 07 00 [15:13:11]MH_I2C_Read... [15:13:11]Read from MH i2c: 01 07 00 34 08 00 00 00 00 00 0A 0D 5A [15:13:11]RasterBufferAndPrint [15:13:11]line [15:13:11]line [15:13:11]line [15:13:11]line [15:13:11]line [15:13:11]written 0, free lines is 3345 [15:13:11]MH_Cut [15:13:11]Write to MH i2c: D1 01 00 3B 08 01 15 [15:13:11]Write i2c OK [15:13:11]MH_I2C_Read... [15:13:11]Read from MH i2c: D1 [15:13:11]MH_I2C_Read... [15:13:11]Read from MH i2c: D1 01 00 [15:13:11]MH_I2C_Read... [15:13:11]Read from MH i2c: D1 01 00 3B 08 00 14 [15:13:11]Write to MH i2c: 01 00 00 3C 08 44 [15:13:11]Write i2c OK [15:13:11]MH_I2C_Read... [15:13:12]OFD Sender: No OFD packet to send [15:13:12]*** Cut start [15:13:12]*** Partial cut [15:13:12]*** CUTSNS_PIN = 1 [15:13:12]*** CUTSNS_PIN = 0 [15:13:12]*** Brake cut motor [15:13:13]Read from MH i2c: 01 [15:13:13]MH_I2C_Read... [15:13:13]*** Stop cut motor [15:13:13]*** Cut end [15:13:13]Read from MH i2c: 01 07 00 [15:13:13]MH_I2C_Read... [15:13:13]Read from MH i2c: 01 07 00 3C 08 00 00 00 00 00 FF 0F 59 [15:13:13]process_action close_receipt done [15:13:13]requested_data is exist [15:13:13]produce_requested_data [15:13:13]requested_item fm.sn is exist - process it [15:13:13]wFMCommunicate request_size=4 [15:13:13]MH_SAM_APDU [15:13:13]CAPDU: 80 11 00 00 [15:13:13]Write to MH i2c: E2 08 00 3D 08 80 11 00 00 00 00 00 00 BF [15:13:13]Write i2c OK [15:13:13]MH_I2C_Read... [15:13:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:13:13]Read from MH i2c: E2 [15:13:13]MH_I2C_Read... [15:13:13]Read from MH i2c: E2 17 00 [15:13:13]MH_I2C_Read... [15:13:13]Read from MH i2c: E2 17 00 3D 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 15 [15:13:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:13:13]wFMCommunicate OK [15:13:13]requested_item fd.num is exist - process it [15:13:13]SAM_PROTO_GetFieldsCounters [15:13:13]wFMCommunicate request_size=4 [15:13:13]MH_SAM_APDU [15:13:13]CAPDU: 80 13 00 00 [15:13:13]Write to MH i2c: E2 08 00 3E 08 80 13 00 00 00 00 00 00 C2 [15:13:13]Write i2c OK [15:13:13]MH_I2C_Read... [15:13:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:13:13]Read from MH i2c: E2 [15:13:13]MH_I2C_Read... [15:13:13]Read from MH i2c: E2 62 00 [15:13:13]MH_I2C_Read... [15:13:13]Read from MH i2c: E2 62 00 3E 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 8A 84 02 00 0E 04 04 00 BF 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 11 [15:13:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 8A 84 02 00 0E 04 04 00 BF 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 [15:13:13]wFMCommunicate OK [15:13:13]SAM_PROTO_GetFieldsCounters done [15:13:13]requested_item shift.num is exist - process it [15:13:13]requested_item shift.opened is exist - process it [15:13:13]req_shift_opened [15:13:13]FM_GetShiftState [15:13:13]SAM_PROTO_GetShiftState [15:13:13]wFMCommunicate request_size=4 [15:13:13]MH_SAM_APDU [15:13:13]CAPDU: 80 13 01 00 [15:13:13]Write to MH i2c: E2 08 00 3F 08 80 13 01 00 00 00 00 00 C4 [15:13:13]Write i2c OK [15:13:13]MH_I2C_Read... [15:13:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:13:13]Read from MH i2c: E2 [15:13:13]MH_I2C_Read... [15:13:13]Read from MH i2c: E2 0E 00 [15:13:13]MH_I2C_Read... [15:13:13]Read from MH i2c: E2 0E 00 3F 08 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 44 [15:13:13]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [15:13:13]wFMCommunicate OK [15:13:13]SAM_PROTO_GetShiftState done [15:13:13]FM_GetShiftState done [15:13:13]req_shift_opened done [15:13:13]requested_item shift.open_date is exist - process it [15:13:13]req_shift_open_date [15:13:13]req_shift_open_date done [15:13:13]produce_requested_data done [15:13:13]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165002,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [15:13:13]process_action_free close_receipt [15:13:13]json_value_free [15:13:13]json_value_free done [15:13:13]process_json_proto returns [15:13:13]Send response to host [15:13:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165002,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [15:13:13]free response buf [15:13:13]execute_script done [15:13:13]execute_script returns [15:13:13]free content buf [15:13:13]Sock 9.Close socket [15:13:13]Sock 9.Thread stoped [15:13:13]accept exits with 7 [15:13:13]New connection [15:13:13]New thread 3066805604 created [15:13:13]Thread 3066948964 joined [15:13:13]Waiting for new connection... [15:13:13] Sock 7.Parse request [15:13:13]Sock 7.Check first char [15:13:13]Sock 7.First char is OK [15:13:13]request: POST /json_proto HTTP/1.0 [15:13:13]Method: POST [15:13:13]URL: /json_proto [15:13:13]Method is POST - this is cgi request [15:13:13]url: /json_proto [15:13:13]query_string will be loaded in cgi processing [15:13:13]execute_cgi json_proto POST (null) [15:13:13]execute_cgi path=json_proto method=POST [15:13:13]POST find Content-Length [15:13:13]Host: 172.17.56.4:8080 [15:13:13]Content-Length: 682 [15:13:13]Content-Type: application/json [15:13:13] [15:13:13]POST finish read [15:13:13]Found Content-Length = 682 [15:13:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459103", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "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:13:13]execute_script... [15:13: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)459103", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "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:13:13]POST & json_proto [15:13:13]process_json_proto [15:13:13]json parsed OK: [15:13:13]protocol is kg_v1.0 [15:13:13]action value=close_receipt [15:13:13]process_action close_receipt [15:13:13]cmd_close_receipt [15:13:13]MH_GetDate [15:13:13]Write to MH i2c: F0 00 00 40 08 37 [15:13:13]Write i2c OK [15:13:13]MH_I2C_Read... [15:13:13]Read from MH i2c: F0 [15:13:13]MH_I2C_Read... [15:13:13]Read from MH i2c: F0 09 00 [15:13:13]MH_I2C_Read... [15:13:13]Read from MH i2c: F0 09 00 40 08 00 0A EB 93 66 C9 DC B2 64 E9 [15:13:13]GetLastDocTimeStamp 1720969990 [15:13:13]current date 1720969994 [15:13:13]FM_GetShiftState [15:13:13]SAM_PROTO_GetShiftState [15:13:13]wFMCommunicate request_size=4 [15:13:13]MH_SAM_APDU [15:13:13]CAPDU: 80 13 01 00 [15:13:13]Write to MH i2c: E2 08 00 41 08 80 13 01 00 00 00 00 00 C6 [15:13:13]Write i2c OK [15:13:13]MH_I2C_Read... [15:13:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:13:13]Read from MH i2c: E2 [15:13:13]MH_I2C_Read... [15:13:13]Read from MH i2c: E2 0E 00 [15:13:13]MH_I2C_Read... [15:13:13]Read from MH i2c: E2 0E 00 41 08 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 46 [15:13:13]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [15:13:13]wFMCommunicate OK [15:13:13]SAM_PROTO_GetShiftState done [15:13:13]FM_GetShiftState done [15:13:13]opened in 1720917342 [15:13:13]opened+sec_in_day 1721003742 [15:13:13]quantity*price = 100016 [15:13:13]sum+1 = 100017 [15:13: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 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 201 14.07.2024 15:13 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165003 ФПД: 278051664869344 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T151314&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165003&fm=278051664869344&tin=02508201610067®Number=0000000000090829&sum=100000 [15:13:15]StoreToDocumentArchive [15:13:15]shift 447 fd 165003 [15:13:15]save to /storage/0447/doc_00165003 [15:13:15]save last doc name /storage/0447/doc_00165003 to /storage/kkm_last_doc_name [15:13:15]save OK [15:13:15]Clear old archive folders... [15:13:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:13:15]tlvbuf is 012BE470 [15:13:15]SAM_PROTO_ClearQueue [15:13:15]wFMCommunicate request_size=4 [15:13:15]MH_SAM_APDU [15:13:15]CAPDU: 80 09 00 00 [15:13:15]Write to MH i2c: E2 08 00 4E 08 80 09 00 00 00 00 00 00 C8 [15:13:15]Write i2c OK [15:13:15]MH_I2C_Read... [15:13:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:13:15]Read from MH i2c: E2 [15:13:15]MH_I2C_Read... [15:13:15]Read from MH i2c: E2 03 00 [15:13:15]MH_I2C_Read... [15:13:15]Read from MH i2c: E2 03 00 4E 08 00 90 00 CA [15:13:15]RAPDU: 90 00 [15:13:15]wFMCommunicate OK [15:13:15]SAM_PROTO_ClearQueue done [15:13:15]KKMCreateOFDPacket [15:13:15]OFDProtocolAddRootSTLVToBuf [15:13:15]FM_MakeSignedData [15:13:15]FM_MakeSignedData [15:13:15]SAM_PROTO_SignData [15:13:15]wFMCommunicate request_size=4 [15:13:15]MH_SAM_APDU [15:13:15]CAPDU: 80 0D 01 02 [15:13:15]Write to MH i2c: E2 08 00 4F 08 80 0D 01 02 00 00 00 00 D0 [15:13:15]Write i2c OK [15:13:15]MH_I2C_Read... [15:13:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:13:15]Read from MH i2c: E2 [15:13:15]MH_I2C_Read... [15:13:15]Read from MH i2c: E2 03 00 [15:13:15]MH_I2C_Read... [15:13:15]Read from MH i2c: E2 03 00 4F 08 00 90 00 CB [15:13:15]RAPDU: 90 00 [15:13:15]wFMCommunicate OK [15:13:15]wFMCommunicate request_size=255 [15:13:15]MH_SAM_APDU [15:13:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 0A EB 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8B 84 02 00 35 04 06 00 FC [15:13:15]Write to MH i2c: E2 02 01 50 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 0A EB 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8B 84 02 00 35 04 06 00 FC 00 00 6F [15:13:15]Write i2c OK [15:13:15]MH_I2C_Read... [15:13:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:13:15]Read from MH i2c: E2 [15:13:15]MH_I2C_Read... [15:13:15]Read from MH i2c: E2 03 00 [15:13:15]MH_I2C_Read... [15:13:15]Read from MH i2c: E2 03 00 50 08 00 90 00 CC [15:13:15]RAPDU: 90 00 [15:13:15]wFMCommunicate OK [15:13:15]wFMCommunicate request_size=10 [15:13:15]MH_SAM_APDU [15:13:15]CAPDU: 80 0D 02 02 05 E2 F2 B6 B7 E0 [15:13:15]Write to MH i2c: E2 0D 00 51 08 80 0D 02 02 05 00 E2 F2 B6 B7 E0 00 00 FE [15:13:15]Write i2c OK [15:13:15]MH_I2C_Read... [15:13:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:13:15]Read from MH i2c: E2 [15:13:15]MH_I2C_Read... [15:13:15]Read from MH i2c: E2 03 00 [15:13:15]MH_I2C_Read... [15:13:15]Read from MH i2c: E2 03 00 51 08 00 90 00 CD [15:13:15]RAPDU: 90 00 [15:13:15]wFMCommunicate OK [15:13:15]wFMCommunicate request_size=4 [15:13:15]MH_SAM_APDU [15:13:15]CAPDU: 80 0D 03 02 [15:13:15]Write to MH i2c: E2 08 00 52 08 80 0D 03 02 00 00 00 00 D5 [15:13:15]Write i2c OK [15:13:15]MH_I2C_Read... [15:13:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:13:15]Read from MH i2c: E2 [15:13:15]MH_I2C_Read... [15:13:15]Read from MH i2c: E2 0B 00 [15:13:15]MH_I2C_Read... [15:13:15]Read from MH i2c: E2 0B 00 52 08 00 99 28 15 AD B1 59 2E DD 90 00 6E [15:13:15]RAPDU: 99 28 15 AD B1 59 2E DD 90 00 [15:13:15]wFMCommunicate OK [15:13:15]SAM_PROTO_SignData done [15:13:15]FM_MakeSignedData done [15:13:15]CreateOFDProtocolMessage [15:13:15]wFMCommunicate request_size=4 [15:13:15]MH_SAM_APDU [15:13:15]CAPDU: 80 11 00 00 [15:13:15]Write to MH i2c: E2 08 00 53 08 80 11 00 00 00 00 00 00 D5 [15:13:15]Write i2c OK [15:13:15]MH_I2C_Read... [15:13:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:13:15]Read from MH i2c: E2 [15:13:15]MH_I2C_Read... [15:13:15]Read from MH i2c: E2 17 00 [15:13:15]MH_I2C_Read... [15:13:16]Read from MH i2c: E2 17 00 53 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 2B [15:13:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:13:16]wFMCommunicate OK [15:13:16]CreateOFDProtocolMessage done [15:13:16]OFDSenderStorePacket 165003 [15:13:16]StoreOFDPacket docnum=165003 [15:13:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 15 D9 07 01 9C A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 0A EB 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8B 84 02 00 35 04 06 00 FC E2 F2 B6 B7 E0 99 28 15 AD B1 59 2E DD [15:13:16]CheckFolder [15:13:16]dirname=/storage/ofd_packets [15:13:16]CheckFolder done [15:13:16]ProducePacketName [15:13:16]name=ofd_packets/00165003 [15:13:16]NVStorageSaveData ofd_packets/00165003 [15:13:16]File name is /storage/ofd_packets/00165003 [15:13:16]Write 301 bytes [15:13:16]NVStorageSaveData done [15:13:16]OFDSenderStorePacket done [15:13:16]KKMCreateOFDPacket done [15:13:16]NVStorageSaveData kkm_last_timestamp [15:13:16]File name is /storage/kkm_last_timestamp [15:13:16]Write 4 bytes [15:13:16]NVStorageSaveData done [15:13:16]ExternCall_PrintAddStr [15:13:16]wPrintStart [15:13:16]Write to MH i2c: 01 00 00 54 08 5C [15:13:16]Write i2c OK [15:13:16]MH_I2C_Read... [15:13:16]Read from MH i2c: 01 [15:13:16]MH_I2C_Read... [15:13:16]Read from MH i2c: 01 07 00 [15:13:16]MH_I2C_Read... [15:13:16]Read from MH i2c: 01 07 00 54 08 00 00 00 00 00 FF 0F 71 [15:13:16]RasterBufferAndPrint [15:13:16]line Счет N : (1)459103 [15:13:16]line ИНН: 02508201610067 [15:13:16]line Контрольно-Кассовый Чек [15:13:16]line ПРОДАЖА [15:13:16]line ТРК (МРК, ГНК) : 12 [15:13:16]line Товар: 2710124130 [15:13:16]line Аи-92-К-5 [15:13:16]line 15.200 * 65.80 [15:13:16]line = 1000.16 [15:13:16]line НДС 12% НСП 1% [15:13:16]line > о реализуемом товаре [15:13:16]line ОКРУГЛЕНИЕ: -0.16 [15:13:16]line ИТОГО: 1000.00 [15:13:16]line Внесено: 1000.00 [15:13:16]line СДАЧА: 0.00 [15:13:16]line НСП 1% : 8.85 [15:13:16]line НДС 12% : 106.21 [15:13:16]line Наличными: 1000.00 [15:13:16]line Безнал.: 0.00 [15:13:16]line Место: АЗС № 72 "Партнер Нефть" [15:13:16]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:13:16]line СНО: Общий режим [15:13:16]line Чек 201 14.07.2024 15:13 [15:13:16]line Смена: 447 ФФД: 1.0 [15:13:16]line ЗНМ: 0300000160 [15:13:16]line РНМ: 0000000000090829 [15:13:16]line Версия ККМ: 001 [15:13:16]line ФМ: 0000000000874718 [15:13:16]line ФД: 165003 [15:13:16]line ФПД: 278051664869344 [15:13:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T151314&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165003&fm=278051664869344&tin=02508201610067®Number=0000000000090829&sum=100000 [15:13:16]written 0, free lines is 4095 [15:13:16]OFD Sender: Processing packet 165003 [packets to send 105, broken 104] [15:13:16]ProducePacketName [15:13:16]name=ofd_packets/00165003 [15:13:16]OFD Sender: To server: pG, [15:13:16]CommunicateWithHost lk.salyk.kg:30040 [15:13:16]ConnectInit lk.salyk.kg [15:13:16]Connected sock=10 [15:13:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 15 D9 07 01 9C A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 0A EB 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8B 84 02 00 35 04 06 00 FC E2 F2 B6 B7 E0 99 28 15 AD B1 59 2E DD [15:13:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 C4 FE 47 00 F7 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8B 84 02 00 F4 03 04 00 97 91 93 66 B6 04 01 00 00 CB 66 C0 92 F3 F0 A9 16 [15:13:16]CommunicateWithHost err = 0 [15:13:16]CheckOFDResponse [15:13:16]1017 (14) - 77093643461234 [15:13:16]1041 (16) - 0000000000874718 [15:13:16]1040 (4) - 165003 [15:13:16]1012 (4) - 14.07.2024 08:51 [15:13:16]1206 (1) - 0 [15:13:16]OFD Sender: Remove packet 165003 [15:13:16]ProducePacketName [15:13:16]name=ofd_packets/00165003 [15:13:16]NVStorageDeleteData [15:13:16]Write to MH i2c: 01 00 00 7E 08 86 [15:13:16]Write i2c OK [15:13:16]MH_I2C_Read... [15:13:16]Read from MH i2c: 01 [15:13:16]MH_I2C_Read... [15:13:16]Read from MH i2c: 01 07 00 [15:13:16]MH_I2C_Read... [15:13:16]Read from MH i2c: 01 07 00 7E 08 00 00 00 00 00 17 0D B1 [15:13:16]RasterBufferAndPrint [15:13:16]line [15:13:16]line [15:13:16]line [15:13:16]line [15:13:16]line [15:13:16]written 0, free lines is 3361 [15:13:16]MH_Cut [15:13:16]Write to MH i2c: D1 01 00 85 08 01 5F [15:13:16]Write i2c OK [15:13:16]MH_I2C_Read... [15:13:16]Read from MH i2c: D1 [15:13:16]MH_I2C_Read... [15:13:16]Read from MH i2c: D1 01 00 [15:13:16]MH_I2C_Read... [15:13:16]Read from MH i2c: D1 01 00 85 08 00 5E [15:13:16]Write to MH i2c: 01 00 00 86 08 8E [15:13:16]Write i2c OK [15:13:16]MH_I2C_Read... [15:13:16]OFD Sender: No OFD packet to send [15:13:17]*** Cut start [15:13:17]*** Partial cut [15:13:17]*** CUTSNS_PIN = 1 [15:13:17]*** CUTSNS_PIN = 0 [15:13:17]*** Brake cut motor [15:13:17]Read from MH i2c: 01 [15:13:17]MH_I2C_Read... [15:13:17]*** Stop cut motor [15:13:17]*** Cut end [15:13:17]Read from MH i2c: 01 07 00 [15:13:17]MH_I2C_Read... [15:13:17]Read from MH i2c: 01 07 00 86 08 00 00 00 00 00 FF 0F A3 [15:13:17]process_action close_receipt done [15:13:17]requested_data is exist [15:13:17]produce_requested_data [15:13:17]requested_item fm.sn is exist - process it [15:13:17]wFMCommunicate request_size=4 [15:13:17]MH_SAM_APDU [15:13:17]CAPDU: 80 11 00 00 [15:13:17]Write to MH i2c: E2 08 00 87 08 80 11 00 00 00 00 00 00 09 [15:13:17]Write i2c OK [15:13:17]MH_I2C_Read... [15:13:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:13:17]Read from MH i2c: E2 [15:13:17]MH_I2C_Read... [15:13:17]Read from MH i2c: E2 17 00 [15:13:17]MH_I2C_Read... [15:13:17]Read from MH i2c: E2 17 00 87 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 5F [15:13:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:13:17]wFMCommunicate OK [15:13:17]requested_item fd.num is exist - process it [15:13:17]SAM_PROTO_GetFieldsCounters [15:13:17]wFMCommunicate request_size=4 [15:13:17]MH_SAM_APDU [15:13:17]CAPDU: 80 13 00 00 [15:13:17]Write to MH i2c: E2 08 00 88 08 80 13 00 00 00 00 00 00 0C [15:13:17]Write i2c OK [15:13:17]MH_I2C_Read... [15:13:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:13:17]Read from MH i2c: E2 [15:13:17]MH_I2C_Read... [15:13:17]Read from MH i2c: E2 62 00 [15:13:17]MH_I2C_Read... [15:13:17]Read from MH i2c: E2 62 00 88 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 8B 84 02 00 0E 04 04 00 BF 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 5F [15:13:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 8B 84 02 00 0E 04 04 00 BF 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 [15:13:17]wFMCommunicate OK [15:13:17]SAM_PROTO_GetFieldsCounters done [15:13:17]requested_item shift.num is exist - process it [15:13:17]requested_item shift.opened is exist - process it [15:13:17]req_shift_opened [15:13:17]FM_GetShiftState [15:13:17]SAM_PROTO_GetShiftState [15:13:17]wFMCommunicate request_size=4 [15:13:17]MH_SAM_APDU [15:13:17]CAPDU: 80 13 01 00 [15:13:17]Write to MH i2c: E2 08 00 89 08 80 13 01 00 00 00 00 00 0E [15:13:17]Write i2c OK [15:13:17]MH_I2C_Read... [15:13:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:13:18]Read from MH i2c: E2 [15:13:18]MH_I2C_Read... [15:13:18]Read from MH i2c: E2 0E 00 [15:13:18]MH_I2C_Read... [15:13:18]Read from MH i2c: E2 0E 00 89 08 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 8E [15:13:18]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [15:13:18]wFMCommunicate OK [15:13:18]SAM_PROTO_GetShiftState done [15:13:18]FM_GetShiftState done [15:13:18]req_shift_opened done [15:13:18]requested_item shift.open_date is exist - process it [15:13:18]req_shift_open_date [15:13:18]req_shift_open_date done [15:13:18]produce_requested_data done [15:13:18]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165003,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [15:13:18]process_action_free close_receipt [15:13:18]json_value_free [15:13:18]json_value_free done [15:13:18]process_json_proto returns [15:13:18]Send response to host [15:13:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165003,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [15:13:18]free response buf [15:13:18]execute_script done [15:13:18]execute_script returns [15:13:18]free content buf [15:13:18]Sock 7.Close socket [15:13:18]Sock 7.Thread stoped [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:01]OFD Sender: No OFD packet to send [15:14:06]OFD Sender: No OFD packet to send [15:14:11]OFD Sender: No OFD packet to send [15:14:16]OFD Sender: No OFD packet to send [15:14:21]OFD Sender: No OFD packet to send [15:14:26]OFD Sender: No OFD packet to send [15:14:31]OFD Sender: No OFD packet to send [15:14:36]OFD Sender: No OFD packet to send [15:14:41]OFD Sender: No OFD packet to send [15:14:46]OFD Sender: No OFD packet to send [15:14:51]OFD Sender: No OFD packet to send [15:14:56]OFD Sender: No OFD packet to send [15:15:01]OFD Sender: No OFD packet to send [15:15:06]OFD Sender: No OFD packet to send [15:15:12]OFD Sender: No OFD packet to send [15:15:17]OFD Sender: No OFD packet to send [15:15:17]accept exits with 9 [15:15:17]New connection [15:15:17]New thread 3066948964 created [15:15:17]Thread 3066805604 joined [15:15:17]Waiting for new connection... [15:15:17] Sock 9.Parse request [15:15:17]Sock 9.Check first char [15:15:17]Sock 9.First char is OK [15:15:17]request: POST /json_proto HTTP/1.0 [15:15:17]Method: POST [15:15:17]URL: /json_proto [15:15:17]Method is POST - this is cgi request [15:15:17]url: /json_proto [15:15:17]query_string will be loaded in cgi processing [15:15:17]execute_cgi json_proto POST (null) [15:15:17]execute_cgi path=json_proto method=POST [15:15:17]POST find Content-Length [15:15:17]Host: 172.17.56.4:8080 [15:15:17]Content-Length: 790 [15:15:17]Content-Type: application/json [15:15:17] [15:15:17]POST finish read [15:15:17]Found Content-Length = 790 [15:15:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459104", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 7.670, "sum" : 500.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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:15:17]execute_script... [15:15: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)459104", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 7.670, "sum" : 500.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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:15:17]POST & json_proto [15:15:17]process_json_proto [15:15:17]json parsed OK: [15:15:17]protocol is kg_v1.0 [15:15:17]action value=close_receipt [15:15:17]process_action close_receipt [15:15:17]cmd_close_receipt [15:15:17]MH_GetDate [15:15:17]Write to MH i2c: F0 00 00 8A 08 81 [15:15:17]Write i2c OK [15:15:17]MH_I2C_Read... [15:15:17]Read from MH i2c: F0 [15:15:17]MH_I2C_Read... [15:15:17]Read from MH i2c: F0 09 00 [15:15:17]MH_I2C_Read... [15:15:17]Read from MH i2c: F0 09 00 8A 08 00 85 EB 93 66 C9 DC B2 64 AE [15:15:17]GetLastDocTimeStamp 1720969994 [15:15:17]current date 1720970117 [15:15:17]FM_GetShiftState [15:15:17]SAM_PROTO_GetShiftState [15:15:17]wFMCommunicate request_size=4 [15:15:17]MH_SAM_APDU [15:15:17]CAPDU: 80 13 01 00 [15:15:17]Write to MH i2c: E2 08 00 8B 08 80 13 01 00 00 00 00 00 10 [15:15:17]Write i2c OK [15:15:17]MH_I2C_Read... [15:15:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:17]Read from MH i2c: E2 [15:15:17]MH_I2C_Read... [15:15:17]Read from MH i2c: E2 0E 00 [15:15:17]MH_I2C_Read... [15:15:17]Read from MH i2c: E2 0E 00 8B 08 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 90 [15:15:17]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [15:15:17]wFMCommunicate OK [15:15:17]SAM_PROTO_GetShiftState done [15:15:17]FM_GetShiftState done [15:15:17]opened in 1720917342 [15:15:17]opened+sec_in_day 1721003742 [15:15:17]quantity*price = 50023 [15:15:17]sum+1 = 50025 [15:15:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.24 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.24 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 202 14.07.2024 15:15 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 165004 ФПД: 189387251698913 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T151517&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165004&fm=189387251698913&tin=02508201610067®Number=0000000000090829&sum=50024 [15:15:18]StoreToDocumentArchive [15:15:18]shift 447 fd 165004 [15:15:18]save to /storage/0447/doc_00165004 [15:15:18]save last doc name /storage/0447/doc_00165004 to /storage/kkm_last_doc_name [15:15:18]save OK [15:15:18]Clear old archive folders... [15:15:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:15:18]tlvbuf is 0127CA70 [15:15:18]SAM_PROTO_ClearQueue [15:15:18]wFMCommunicate request_size=4 [15:15:18]MH_SAM_APDU [15:15:18]CAPDU: 80 09 00 00 [15:15:18]Write to MH i2c: E2 08 00 98 08 80 09 00 00 00 00 00 00 12 [15:15:18]Write i2c OK [15:15:18]MH_I2C_Read... [15:15:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:15:18]Read from MH i2c: E2 [15:15:18]MH_I2C_Read... [15:15:18]Read from MH i2c: E2 03 00 [15:15:18]MH_I2C_Read... [15:15:18]Read from MH i2c: E2 03 00 98 08 00 90 00 14 [15:15:18]RAPDU: 90 00 [15:15:18]wFMCommunicate OK [15:15:18]SAM_PROTO_ClearQueue done [15:15:18]KKMCreateOFDPacket [15:15:18]OFDProtocolAddRootSTLVToBuf [15:15:18]FM_MakeSignedData [15:15:18]FM_MakeSignedData [15:15:18]SAM_PROTO_SignData [15:15:18]wFMCommunicate request_size=4 [15:15:18]MH_SAM_APDU [15:15:18]CAPDU: 80 0D 01 02 [15:15:18]Write to MH i2c: E2 08 00 99 08 80 0D 01 02 00 00 00 00 1A [15:15:18]Write i2c OK [15:15:18]MH_I2C_Read... [15:15:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:15:18]Read from MH i2c: E2 [15:15:18]MH_I2C_Read... [15:15:18]Read from MH i2c: E2 03 00 [15:15:18]MH_I2C_Read... [15:15:18]Read from MH i2c: E2 03 00 99 08 00 90 00 15 [15:15:18]RAPDU: 90 00 [15:15:18]wFMCommunicate OK [15:15:18]wFMCommunicate request_size=255 [15:15:18]MH_SAM_APDU [15:15:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 85 EB 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8C 84 02 00 35 04 06 00 AC [15:15:18]Write to MH i2c: E2 02 01 9A 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 85 EB 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8C 84 02 00 35 04 06 00 AC 00 00 92 [15:15:18]Write i2c OK [15:15:18]MH_I2C_Read... [15:15:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:18]Read from MH i2c: E2 [15:15:18]MH_I2C_Read... [15:15:18]Read from MH i2c: E2 03 00 [15:15:18]MH_I2C_Read... [15:15:18]Read from MH i2c: E2 03 00 9A 08 00 90 00 16 [15:15:18]RAPDU: 90 00 [15:15:18]wFMCommunicate OK [15:15:18]wFMCommunicate request_size=10 [15:15:18]MH_SAM_APDU [15:15:18]CAPDU: 80 0D 02 02 05 3F 27 DC CC E1 [15:15:18]Write to MH i2c: E2 0D 00 9B 08 80 0D 02 02 05 00 3F 27 DC CC E1 00 00 16 [15:15:18]Write i2c OK [15:15:18]MH_I2C_Read... [15:15:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:18]Read from MH i2c: E2 [15:15:18]MH_I2C_Read... [15:15:18]Read from MH i2c: E2 03 00 [15:15:18]MH_I2C_Read... [15:15:18]Read from MH i2c: E2 03 00 9B 08 00 90 00 17 [15:15:18]RAPDU: 90 00 [15:15:18]wFMCommunicate OK [15:15:18]wFMCommunicate request_size=4 [15:15:18]MH_SAM_APDU [15:15:18]CAPDU: 80 0D 03 02 [15:15:18]Write to MH i2c: E2 08 00 9C 08 80 0D 03 02 00 00 00 00 1F [15:15:18]Write i2c OK [15:15:18]MH_I2C_Read... [15:15:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:15:18]Read from MH i2c: E2 [15:15:18]MH_I2C_Read... [15:15:18]Read from MH i2c: E2 0B 00 [15:15:18]MH_I2C_Read... [15:15:18]Read from MH i2c: E2 0B 00 9C 08 00 27 21 AF EB 43 49 CA 70 90 00 C8 [15:15:18]RAPDU: 27 21 AF EB 43 49 CA 70 90 00 [15:15:18]wFMCommunicate OK [15:15:18]SAM_PROTO_SignData done [15:15:18]FM_MakeSignedData done [15:15:18]CreateOFDProtocolMessage [15:15:18]wFMCommunicate request_size=4 [15:15:18]MH_SAM_APDU [15:15:18]CAPDU: 80 11 00 00 [15:15:18]Write to MH i2c: E2 08 00 9D 08 80 11 00 00 00 00 00 00 1F [15:15:18]Write i2c OK [15:15:18]MH_I2C_Read... [15:15:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:18]Read from MH i2c: E2 [15:15:18]MH_I2C_Read... [15:15:18]Read from MH i2c: E2 17 00 [15:15:18]MH_I2C_Read... [15:15:18]Read from MH i2c: E2 17 00 9D 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 75 [15:15:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:15:18]wFMCommunicate OK [15:15:18]CreateOFDProtocolMessage done [15:15:18]OFDSenderStorePacket 165004 [15:15:18]StoreOFDPacket docnum=165004 [15:15:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 6F 84 07 01 68 E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 85 EB 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8C 84 02 00 35 04 06 00 AC 3F 27 DC CC E1 27 21 AF EB 43 49 CA 70 [15:15:18]CheckFolder [15:15:18]dirname=/storage/ofd_packets [15:15:18]CheckFolder done [15:15:18]ProducePacketName [15:15:18]name=ofd_packets/00165004 [15:15:18]NVStorageSaveData ofd_packets/00165004 [15:15:18]File name is /storage/ofd_packets/00165004 [15:15:18]Write 301 bytes [15:15:18]NVStorageSaveData done [15:15:18]OFDSenderStorePacket done [15:15:18]KKMCreateOFDPacket done [15:15:18]NVStorageSaveData kkm_last_timestamp [15:15:18]File name is /storage/kkm_last_timestamp [15:15:18]Write 4 bytes [15:15:18]NVStorageSaveData done [15:15:18]ExternCall_PrintAddStr [15:15:18]wPrintStart [15:15:18]Write to MH i2c: 01 00 00 9E 08 A6 [15:15:18]Write i2c OK [15:15:18]MH_I2C_Read... [15:15:18]Read from MH i2c: 01 [15:15:18]MH_I2C_Read... [15:15:18]Read from MH i2c: 01 07 00 [15:15:18]MH_I2C_Read... [15:15:18]Read from MH i2c: 01 07 00 9E 08 00 00 00 00 00 FF 0F BB [15:15:18]RasterBufferAndPrint [15:15:18]line Счет N : (1)459104 [15:15:18]line ИНН: 02508201610067 [15:15:18]line Контрольно-Кассовый Чек [15:15:18]line ПРОДАЖА [15:15:18]line ТРК (МРК, ГНК) : 22 [15:15:18]line Товар: 2710124130 [15:15:18]line Аи-92-К-5 [15:15:18]line 7.670 * 65.22 [15:15:18]line = 500.24 [15:15:18]line НДС 12% НСП 1% [15:15:18]line > о реализуемом товаре [15:15:18]line ИТОГО: 500.24 [15:15:18]line НСП 1% : 4.43 [15:15:18]line НДС 12% : 53.12 [15:15:18]line Наличными: 0.00 [15:15:18]line Безнал.: 500.24 [15:15:18]line Место: АЗС № 72 "Партнер Нефть" [15:15:18]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:15:18]line СНО: Общий режим [15:15:18]line Чек 202 14.07.2024 15:15 [15:15:18]line Смена: 447 ФФД: 1.0 [15:15:18]line ЗНМ: 0300000160 [15:15:18]line РНМ: 0000000000090829 [15:15:18]line Версия ККМ: 001 [15:15:18]line Платежная система: KICB Банк [15:15:18]line ФМ: 0000000000874718 [15:15:18]line ФД: 165004 [15:15:18]line ФПД: 189387251698913 [15:15:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T151517&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165004&fm=189387251698913&tin=02508201610067®Number=0000000000090829&sum=50024 [15:15:19]OFD Sender: Processing packet 165004 [packets to send 105, broken 104] [15:15:19]ProducePacketName [15:15:19]name=ofd_packets/00165004 [15:15:19]OFD Sender: To server: pG, [15:15:19]CommunicateWithHost lk.salyk.kg:30040 [15:15:19]ConnectInit lk.salyk.kg [15:15:19]written 0, free lines is 4095 [15:15:19]Connected sock=10 [15:15:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 6F 84 07 01 68 E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 85 EB 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8C 84 02 00 35 04 06 00 AC 3F 27 DC CC E1 27 21 AF EB 43 49 CA 70 [15:15:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 76 DC 47 00 EE 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8C 84 02 00 F4 03 04 00 13 92 93 66 B6 04 01 00 00 48 D4 78 FB 6E 17 5C 4B [15:15:19]CommunicateWithHost err = 0 [15:15:19]CheckOFDResponse [15:15:19]1017 (14) - 77093643461234 [15:15:19]1041 (16) - 0000000000874718 [15:15:19]1040 (4) - 165004 [15:15:19]1012 (4) - 14.07.2024 08:53 [15:15:19]1206 (1) - 0 [15:15:19]OFD Sender: Remove packet 165004 [15:15:19]ProducePacketName [15:15:19]name=ofd_packets/00165004 [15:15:19]NVStorageDeleteData [15:15:19]Write to MH i2c: 01 00 00 C7 08 CF [15:15:19]Write i2c OK [15:15:19]MH_I2C_Read... [15:15:19]Read from MH i2c: 01 [15:15:19]MH_I2C_Read... [15:15:19]Read from MH i2c: 01 07 00 [15:15:19]MH_I2C_Read... [15:15:19]Read from MH i2c: 01 07 00 C7 08 00 00 00 00 00 05 0D E8 [15:15:19]RasterBufferAndPrint [15:15:19]line [15:15:19]line [15:15:19]line [15:15:19]line [15:15:19]line [15:15:19]written 0, free lines is 3340 [15:15:19]MH_Cut [15:15:19]Write to MH i2c: D1 01 00 CE 08 01 A8 [15:15:19]Write i2c OK [15:15:19]MH_I2C_Read... [15:15:19]Read from MH i2c: D1 [15:15:19]MH_I2C_Read... [15:15:19]Read from MH i2c: D1 01 00 [15:15:19]MH_I2C_Read... [15:15:19]Read from MH i2c: D1 01 00 CE 08 00 A7 [15:15:19]Write to MH i2c: 01 00 00 CF 08 D7 [15:15:19]Write i2c OK [15:15:19]MH_I2C_Read... [15:15:19]OFD Sender: No OFD packet to send [15:15:20]*** Cut start [15:15:20]*** Partial cut [15:15:20]*** CUTSNS_PIN = 1 [15:15:20]*** CUTSNS_PIN = 0 [15:15:20]*** Brake cut motor [15:15:20]Read from MH i2c: 01 [15:15:20]MH_I2C_Read... [15:15:20]*** Stop cut motor [15:15:20]*** Cut end [15:15:20]Read from MH i2c: 01 07 00 [15:15:20]MH_I2C_Read... [15:15:20]Read from MH i2c: 01 07 00 CF 08 00 00 00 00 00 FF 0F EC [15:15:20]process_action close_receipt done [15:15:20]requested_data is exist [15:15:20]produce_requested_data [15:15:20]requested_item fm.sn is exist - process it [15:15:20]wFMCommunicate request_size=4 [15:15:20]MH_SAM_APDU [15:15:20]CAPDU: 80 11 00 00 [15:15:20]Write to MH i2c: E2 08 00 D0 08 80 11 00 00 00 00 00 00 52 [15:15:20]Write i2c OK [15:15:20]MH_I2C_Read... [15:15:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:20]Read from MH i2c: E2 [15:15:20]MH_I2C_Read... [15:15:20]Read from MH i2c: E2 17 00 [15:15:20]MH_I2C_Read... [15:15:20]Read from MH i2c: E2 17 00 D0 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A8 [15:15:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:15:20]wFMCommunicate OK [15:15:20]requested_item fd.num is exist - process it [15:15:20]SAM_PROTO_GetFieldsCounters [15:15:20]wFMCommunicate request_size=4 [15:15:20]MH_SAM_APDU [15:15:20]CAPDU: 80 13 00 00 [15:15:20]Write to MH i2c: E2 08 00 D1 08 80 13 00 00 00 00 00 00 55 [15:15:20]Write i2c OK [15:15:20]MH_I2C_Read... [15:15:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:15:21]Read from MH i2c: E2 [15:15:21]MH_I2C_Read... [15:15:21]Read from MH i2c: E2 62 00 [15:15:21]MH_I2C_Read... [15:15:21]Read from MH i2c: E2 62 00 D1 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 8C 84 02 00 0E 04 04 00 BF 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 AC [15:15:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 8C 84 02 00 0E 04 04 00 BF 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 [15:15:21]wFMCommunicate OK [15:15:21]SAM_PROTO_GetFieldsCounters done [15:15:21]requested_item shift.num is exist - process it [15:15:21]requested_item shift.opened is exist - process it [15:15:21]req_shift_opened [15:15:21]FM_GetShiftState [15:15:21]SAM_PROTO_GetShiftState [15:15:21]wFMCommunicate request_size=4 [15:15:21]MH_SAM_APDU [15:15:21]CAPDU: 80 13 01 00 [15:15:21]Write to MH i2c: E2 08 00 D2 08 80 13 01 00 00 00 00 00 57 [15:15:21]Write i2c OK [15:15:21]MH_I2C_Read... [15:15:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:21]Read from MH i2c: E2 [15:15:21]MH_I2C_Read... [15:15:21]Read from MH i2c: E2 0E 00 [15:15:21]MH_I2C_Read... [15:15:21]Read from MH i2c: E2 0E 00 D2 08 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 D7 [15:15:21]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [15:15:21]wFMCommunicate OK [15:15:21]SAM_PROTO_GetShiftState done [15:15:21]FM_GetShiftState done [15:15:21]req_shift_opened done [15:15:21]requested_item shift.open_date is exist - process it [15:15:21]req_shift_open_date [15:15:21]req_shift_open_date done [15:15:21]produce_requested_data done [15:15:21]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165004,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [15:15:21]process_action_free close_receipt [15:15:21]json_value_free [15:15:21]json_value_free done [15:15:21]process_json_proto returns [15:15:21]Send response to host [15:15:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165004,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [15:15:21]free response buf [15:15:21]execute_script done [15:15:21]execute_script returns [15:15:21]free content buf [15:15:21]Sock 9.Close socket [15:15:21]Sock 9.Thread stoped [15:15:24]OFD Sender: No OFD packet to send [15:15:30]OFD Sender: No OFD packet to send [15:15:35]OFD Sender: No OFD packet to send [15:15:40]OFD Sender: No OFD packet to send [15:15:45]OFD Sender: No OFD packet to send [15:15:50]OFD Sender: No OFD packet to send [15:15:55]OFD Sender: No OFD packet to send [15:16:00]OFD Sender: No OFD packet to send [15:16:05]OFD Sender: No OFD packet to send [15:16:10]OFD Sender: No OFD packet to send [15:16:15]OFD Sender: No OFD packet to send [15:16:20]OFD Sender: No OFD packet to send [15:16:25]OFD Sender: No OFD packet to send [15:16:30]OFD Sender: No OFD packet to send [15:16:35]OFD Sender: No OFD packet to send [15:16:40]OFD Sender: No OFD packet to send [15:16:45]OFD Sender: No OFD packet to send [15:16:50]OFD Sender: No OFD packet to send [15:16:55]OFD Sender: No OFD packet to send [15:17:00]OFD Sender: No OFD packet to send [15:17:05]OFD Sender: No OFD packet to send [15:17:10]OFD Sender: No OFD packet to send [15:17:15]OFD Sender: No OFD packet to send [15:17:20]OFD Sender: No OFD packet to send [15:17:25]OFD Sender: No OFD packet to send [15:17:30]OFD Sender: No OFD packet to send [15:17:35]OFD Sender: No OFD packet to send [15:17:40]OFD Sender: No OFD packet to send [15:17:43]accept exits with 7 [15:17:43]New connection [15:17:43]New thread 3066805604 created [15:17:43]Thread 3066948964 joined [15:17:43]Waiting for new connection... [15:17:43] Sock 7.Parse request [15:17:43]Sock 7.Check first char [15:17:43]Sock 7.First char is OK [15:17:43]request: POST /json_proto HTTP/1.0 [15:17:43]Method: POST [15:17:43]URL: /json_proto [15:17:43]Method is POST - this is cgi request [15:17:43]url: /json_proto [15:17:43]query_string will be loaded in cgi processing [15:17:43]execute_cgi json_proto POST (null) [15:17:43]execute_cgi path=json_proto method=POST [15:17:43]POST find Content-Length [15:17:43]Host: 172.17.56.4:8080 [15:17:43]Content-Length: 679 [15:17:43]Content-Type: application/json [15:17:43] [15:17:43]POST finish read [15:17:43]Found Content-Length = 679 [15:17:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459105", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 27.820, "sum" : 2000.26, "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:17:43]execute_script... [15: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)459105", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 27.820, "sum" : 2000.26, "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:17:43]POST & json_proto [15:17:43]process_json_proto [15:17:43]json parsed OK: [15:17:43]protocol is kg_v1.0 [15:17:43]action value=close_receipt [15:17:43]process_action close_receipt [15:17:43]cmd_close_receipt [15:17:43]MH_GetDate [15:17:43]Write to MH i2c: F0 00 00 D3 08 CA [15:17:43]Write i2c OK [15:17:43]MH_I2C_Read... [15:17:43]Read from MH i2c: F0 [15:17:43]MH_I2C_Read... [15:17:43]Read from MH i2c: F0 09 00 [15:17:43]MH_I2C_Read... [15:17:43]Read from MH i2c: F0 09 00 D3 08 00 17 EC 93 66 C9 DC B2 64 8A [15:17:43]GetLastDocTimeStamp 1720970117 [15:17:43]current date 1720970263 [15:17:43]FM_GetShiftState [15:17:43]SAM_PROTO_GetShiftState [15:17:43]wFMCommunicate request_size=4 [15:17:43]MH_SAM_APDU [15:17:43]CAPDU: 80 13 01 00 [15:17:43]Write to MH i2c: E2 08 00 D4 08 80 13 01 00 00 00 00 00 59 [15:17:43]Write i2c OK [15:17:43]MH_I2C_Read... [15:17:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:17:43]Read from MH i2c: E2 [15:17:43]MH_I2C_Read... [15:17:43]Read from MH i2c: E2 0E 00 [15:17:43]MH_I2C_Read... [15:17:43]Read from MH i2c: E2 0E 00 D4 08 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 D9 [15:17:43]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [15:17:43]wFMCommunicate OK [15:17:43]SAM_PROTO_GetShiftState done [15:17:43]FM_GetShiftState done [15:17:43]opened in 1720917342 [15:17:43]opened+sec_in_day 1721003742 [15:17:43]quantity*price = 200025 [15:17:43]sum+1 = 200027 [15:17:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 203 14.07.2024 15:17 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165005 ФПД: 50650582031114 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T151743&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165005&fm=50650582031114&tin=02508201610067®Number=0000000000090829&sum=200000 [15:17:44]StoreToDocumentArchive [15:17:44]shift 447 fd 165005 [15:17:44]save to /storage/0447/doc_00165005 [15:17:44]save last doc name /storage/0447/doc_00165005 to /storage/kkm_last_doc_name [15:17:44]save OK [15:17:44]Clear old archive folders... [15:17:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:17:44]tlvbuf is 012B4DA0 [15:17:44]SAM_PROTO_ClearQueue [15:17:44]wFMCommunicate request_size=4 [15:17:44]MH_SAM_APDU [15:17:44]CAPDU: 80 09 00 00 [15:17:44]Write to MH i2c: E2 08 00 E1 08 80 09 00 00 00 00 00 00 5B [15:17:44]Write i2c OK [15:17:44]MH_I2C_Read... [15:17:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:17:44]Read from MH i2c: E2 [15:17:44]MH_I2C_Read... [15:17:44]Read from MH i2c: E2 03 00 [15:17:44]MH_I2C_Read... [15:17:44]Read from MH i2c: E2 03 00 E1 08 00 90 00 5D [15:17:44]RAPDU: 90 00 [15:17:44]wFMCommunicate OK [15:17:44]SAM_PROTO_ClearQueue done [15:17:44]KKMCreateOFDPacket [15:17:44]OFDProtocolAddRootSTLVToBuf [15:17:44]FM_MakeSignedData [15:17:44]FM_MakeSignedData [15:17:44]SAM_PROTO_SignData [15:17:44]wFMCommunicate request_size=4 [15:17:44]MH_SAM_APDU [15:17:44]CAPDU: 80 0D 01 02 [15:17:44]Write to MH i2c: E2 08 00 E2 08 80 0D 01 02 00 00 00 00 63 [15:17:44]Write i2c OK [15:17:44]MH_I2C_Read... [15:17:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:17:44]Read from MH i2c: E2 [15:17:44]MH_I2C_Read... [15:17:44]Read from MH i2c: E2 03 00 [15:17:44]MH_I2C_Read... [15:17:44]Read from MH i2c: E2 03 00 E2 08 00 90 00 5E [15:17:44]RAPDU: 90 00 [15:17:44]wFMCommunicate OK [15:17:44]wFMCommunicate request_size=255 [15:17:44]MH_SAM_APDU [15:17:44]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 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 CB 00 00 00 F4 03 04 00 17 EC 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8D 84 02 00 35 04 06 00 2E 11 01 F3 [15:17:44]Write to MH i2c: E2 02 01 E3 08 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 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 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 CB 00 00 00 F4 03 04 00 17 EC 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8D 84 02 00 35 04 06 00 2E 11 01 F3 00 00 23 [15:17:44]Write i2c OK [15:17:44]MH_I2C_Read... [15:17:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:17:44]Read from MH i2c: E2 [15:17:44]MH_I2C_Read... [15:17:44]Read from MH i2c: E2 03 00 [15:17:44]MH_I2C_Read... [15:17:44]Read from MH i2c: E2 03 00 E3 08 00 90 00 5F [15:17:44]RAPDU: 90 00 [15:17:44]wFMCommunicate OK [15:17:44]wFMCommunicate request_size=7 [15:17:44]MH_SAM_APDU [15:17:44]CAPDU: 80 0D 02 02 02 1B 0A [15:17:44]Write to MH i2c: E2 0A 00 E4 08 80 0D 02 02 02 00 1B 0A 00 00 8F [15:17:44]Write i2c OK [15:17:44]MH_I2C_Read... [15:17:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:17:44]Read from MH i2c: E2 [15:17:44]MH_I2C_Read... [15:17:44]Read from MH i2c: E2 03 00 [15:17:44]MH_I2C_Read... [15:17:44]Read from MH i2c: E2 03 00 E4 08 00 90 00 60 [15:17:44]RAPDU: 90 00 [15:17:44]wFMCommunicate OK [15:17:44]wFMCommunicate request_size=4 [15:17:44]MH_SAM_APDU [15:17:44]CAPDU: 80 0D 03 02 [15:17:44]Write to MH i2c: E2 08 00 E5 08 80 0D 03 02 00 00 00 00 68 [15:17:44]Write i2c OK [15:17:44]MH_I2C_Read... [15:17:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:17:44]Read from MH i2c: E2 [15:17:44]MH_I2C_Read... [15:17:44]Read from MH i2c: E2 0B 00 [15:17:44]MH_I2C_Read... [15:17:44]Read from MH i2c: E2 0B 00 E5 08 00 70 31 D2 13 89 83 A0 4D 90 00 E8 [15:17:44]RAPDU: 70 31 D2 13 89 83 A0 4D 90 00 [15:17:44]wFMCommunicate OK [15:17:44]SAM_PROTO_SignData done [15:17:44]FM_MakeSignedData done [15:17:44]CreateOFDProtocolMessage [15:17:44]wFMCommunicate request_size=4 [15:17:44]MH_SAM_APDU [15:17:44]CAPDU: 80 11 00 00 [15:17:44]Write to MH i2c: E2 08 00 E6 08 80 11 00 00 00 00 00 00 68 [15:17:44]Write i2c OK [15:17:44]MH_I2C_Read... [15:17:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:17:44]Read from MH i2c: E2 [15:17:44]MH_I2C_Read... [15:17:44]Read from MH i2c: E2 17 00 [15:17:44]MH_I2C_Read... [15:17:44]Read from MH i2c: E2 17 00 E6 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 BE [15:17:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:17:44]wFMCommunicate OK [15:17:44]CreateOFDProtocolMessage done [15:17:44]OFDSenderStorePacket 165005 [15:17:44]StoreOFDPacket docnum=165005 [15:17:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 B6 2F 04 01 6C 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 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 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 CB 00 00 00 F4 03 04 00 17 EC 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8D 84 02 00 35 04 06 00 2E 11 01 F3 1B 0A 70 31 D2 13 89 83 A0 4D [15:17:44]CheckFolder [15:17:44]dirname=/storage/ofd_packets [15:17:44]CheckFolder done [15:17:44]ProducePacketName [15:17:44]name=ofd_packets/00165005 [15:17:44]NVStorageSaveData ofd_packets/00165005 [15:17:44]File name is /storage/ofd_packets/00165005 [15:17:44]Write 298 bytes [15:17:44]NVStorageSaveData done [15:17:44]OFDSenderStorePacket done [15:17:44]KKMCreateOFDPacket done [15:17:44]NVStorageSaveData kkm_last_timestamp [15:17:44]File name is /storage/kkm_last_timestamp [15:17:44]Write 4 bytes [15:17:44]NVStorageSaveData done [15:17:44]ExternCall_PrintAddStr [15:17:44]wPrintStart [15:17:44]Write to MH i2c: 01 00 00 E7 08 EF [15:17:44]Write i2c OK [15:17:44]MH_I2C_Read... [15:17:44]Read from MH i2c: 01 [15:17:44]MH_I2C_Read... [15:17:44]Read from MH i2c: 01 07 00 [15:17:44]MH_I2C_Read... [15:17:44]Read from MH i2c: 01 07 00 E7 08 00 00 00 00 00 FF 0F 04 [15:17:44]RasterBufferAndPrint [15:17:44]line Счет N : (1)459105 [15:17:44]line ИНН: 02508201610067 [15:17:44]line Контрольно-Кассовый Чек [15:17:44]line ПРОДАЖА [15:17:44]line ТРК (МРК, ГНК) : 11 [15:17:44]line Товар: 2710194210 [15:17:44]line ДТ-К-5 [15:17:44]line 27.820 * 71.90 [15:17:44]line = 2000.26 [15:17:44]line НДС 12% НСП 1% [15:17:44]line > о реализуемом товаре [15:17:44]line ОКРУГЛЕНИЕ: -0.26 [15:17:44]line ИТОГО: 2000.00 [15:17:44]line Внесено: 2000.00 [15:17:44]line СДАЧА: 0.00 [15:17:44]line НСП 1% : 17.70 [15:17:44]line НДС 12% : 212.42 [15:17:44]line Наличными: 2000.00 [15:17:44]line Безнал.: 0.00 [15:17:44]line Место: АЗС № 72 "Партнер Нефть" [15:17:44]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:17:44]line СНО: Общий режим [15:17:44]line Чек 203 14.07.2024 15:17 [15:17:44]line Смена: 447 ФФД: 1.0 [15:17:44]line ЗНМ: 0300000160 [15:17:44]line РНМ: 0000000000090829 [15:17:44]line Версия ККМ: 001 [15:17:44]line ФМ: 0000000000874718 [15:17:44]line ФД: 165005 [15:17:44]line ФПД: 50650582031114 [15:17:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T151743&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165005&fm=50650582031114&tin=02508201610067®Number=0000000000090829&sum=200000 [15:17:45]OFD Sender: Processing packet 165005 [packets to send 105, broken 104] [15:17:45]ProducePacketName [15:17:45]name=ofd_packets/00165005 [15:17:45]OFD Sender: To server: pG, [15:17:45]CommunicateWithHost lk.salyk.kg:30040 [15:17:45]written 0, free lines is 4095 [15:17:45]ConnectInit lk.salyk.kg [15:17:45]Connected sock=10 [15:17:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 B6 2F 04 01 6C 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 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 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 CB 00 00 00 F4 03 04 00 17 EC 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8D 84 02 00 35 04 06 00 2E 11 01 F3 1B 0A 70 31 D2 13 89 83 A0 4D [15:17:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 48 28 47 00 56 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 38 37 34 37 31 38 10 04 04 00 8D 84 02 00 F4 03 04 00 A5 92 93 66 B6 04 01 00 00 5E 87 2C 46 6A 7D 55 B7 [15:17:45]CommunicateWithHost err = 0 [15:17:45]CheckOFDResponse [15:17:45]1017 (14) - 77093643461234 [15:17:45]1041 (16) - 0000000000874718 [15:17:45]1040 (4) - 165005 [15:17:45]1012 (4) - 14.07.2024 08:56 [15:17:45]1206 (1) - 0 [15:17:45]OFD Sender: Remove packet 165005 [15:17:45]ProducePacketName [15:17:45]name=ofd_packets/00165005 [15:17:45]NVStorageDeleteData [15:17:45]Write to MH i2c: 01 00 00 11 09 1A [15:17:45]Write i2c OK [15:17:45]MH_I2C_Read... [15:17:45]Read from MH i2c: 01 [15:17:45]MH_I2C_Read... [15:17:45]Read from MH i2c: 01 07 00 [15:17:45]MH_I2C_Read... [15:17:45]Read from MH i2c: 01 07 00 11 09 00 00 00 00 00 02 0D 30 [15:17:45]RasterBufferAndPrint [15:17:45]line [15:17:45]line [15:17:45]line [15:17:45]line [15:17:45]line [15:17:45]written 0, free lines is 3336 [15:17:45]MH_Cut [15:17:45]Write to MH i2c: D1 01 00 18 09 01 F3 [15:17:45]Write i2c OK [15:17:45]MH_I2C_Read... [15:17:45]Read from MH i2c: D1 [15:17:45]MH_I2C_Read... [15:17:45]Read from MH i2c: D1 01 00 [15:17:45]MH_I2C_Read... [15:17:45]Read from MH i2c: D1 01 00 18 09 00 F2 [15:17:45]Write to MH i2c: 01 00 00 19 09 22 [15:17:45]Write i2c OK [15:17:45]MH_I2C_Read... [15:17:46]OFD Sender: No OFD packet to send [15:17:46]*** Cut start [15:17:46]*** Partial cut [15:17:46]*** CUTSNS_PIN = 1 [15:17:46]*** CUTSNS_PIN = 0 [15:17:46]*** Brake cut motor [15:17:46]Read from MH i2c: 01 [15:17:46]MH_I2C_Read... [15:17:46]*** Stop cut motor [15:17:46]*** Cut end [15:17:46]Read from MH i2c: 01 07 00 [15:17:46]MH_I2C_Read... [15:17:46]Read from MH i2c: 01 07 00 19 09 00 00 00 00 00 FF 0F 37 [15:17:46]process_action close_receipt done [15:17:46]requested_data is exist [15:17:46]produce_requested_data [15:17:46]requested_item fm.sn is exist - process it [15:17:46]wFMCommunicate request_size=4 [15:17:46]MH_SAM_APDU [15:17:46]CAPDU: 80 11 00 00 [15:17:46]Write to MH i2c: E2 08 00 1A 09 80 11 00 00 00 00 00 00 9D [15:17:46]Write i2c OK [15:17:46]MH_I2C_Read... [15:17:47]Read from MH i2c: E2 [15:17:47]MH_I2C_Read... [15:17:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:17:47]Read from MH i2c: E2 17 00 [15:17:47]MH_I2C_Read... [15:17:47]Read from MH i2c: E2 17 00 1A 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F3 [15:17:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:17:47]wFMCommunicate OK [15:17:47]requested_item fd.num is exist - process it [15:17:47]SAM_PROTO_GetFieldsCounters [15:17:47]wFMCommunicate request_size=4 [15:17:47]MH_SAM_APDU [15:17:47]CAPDU: 80 13 00 00 [15:17:47]Write to MH i2c: E2 08 00 1B 09 80 13 00 00 00 00 00 00 A0 [15:17:47]Write i2c OK [15:17:47]MH_I2C_Read... [15:17:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:17:47]Read from MH i2c: E2 [15:17:47]MH_I2C_Read... [15:17:47]Read from MH i2c: E2 62 00 [15:17:47]MH_I2C_Read... [15:17:47]Read from MH i2c: E2 62 00 1B 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 8D 84 02 00 0E 04 04 00 BF 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 FB [15:17:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 8D 84 02 00 0E 04 04 00 BF 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 [15:17:47]wFMCommunicate OK [15:17:47]SAM_PROTO_GetFieldsCounters done [15:17:47]requested_item shift.num is exist - process it [15:17:47]requested_item shift.opened is exist - process it [15:17:47]req_shift_opened [15:17:47]FM_GetShiftState [15:17:47]SAM_PROTO_GetShiftState [15:17:47]wFMCommunicate request_size=4 [15:17:47]MH_SAM_APDU [15:17:47]CAPDU: 80 13 01 00 [15:17:47]Write to MH i2c: E2 08 00 1C 09 80 13 01 00 00 00 00 00 A2 [15:17:47]Write i2c OK [15:17:47]MH_I2C_Read... [15:17:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:17:47]Read from MH i2c: E2 [15:17:47]MH_I2C_Read... [15:17:47]Read from MH i2c: E2 0E 00 [15:17:47]MH_I2C_Read... [15:17:47]Read from MH i2c: E2 0E 00 1C 09 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 22 [15:17:47]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [15:17:47]wFMCommunicate OK [15:17:47]SAM_PROTO_GetShiftState done [15:17:47]FM_GetShiftState done [15:17:47]req_shift_opened done [15:17:47]requested_item shift.open_date is exist - process it [15:17:47]req_shift_open_date [15:17:47]req_shift_open_date done [15:17:47]produce_requested_data done [15:17:47]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165005,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [15:17:47]process_action_free close_receipt [15:17:47]json_value_free [15:17:47]json_value_free done [15:17:47]process_json_proto returns [15:17:47]Send response to host [15:17:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165005,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [15:17:47]free response buf [15:17:47]execute_script done [15:17:47]execute_script returns [15:17:47]free content buf [15:17:47]Sock 7.Close socket [15:17:47]Sock 7.Thread stoped [15:17:51]OFD Sender: No OFD packet to send [15:17:56]OFD Sender: No OFD packet to send [15:18:01]OFD Sender: No OFD packet to send [15:18:06]OFD Sender: No OFD packet to send [15:18:11]OFD Sender: No OFD packet to send [15:18:16]OFD Sender: No OFD packet to send [15:18:21]OFD Sender: No OFD packet to send [15:18:26]OFD Sender: No OFD packet to send [15:18:31]OFD Sender: No OFD packet to send [15:18:36]OFD Sender: No OFD packet to send [15:18:41]OFD Sender: No OFD packet to send [15:18:46]OFD Sender: No OFD packet to send [15:18:51]OFD Sender: No OFD packet to send [15:18:56]OFD Sender: No OFD packet to send [15:19:01]OFD Sender: No OFD packet to send [15:19:06]OFD Sender: No OFD packet to send [15:19:11]OFD Sender: No OFD packet to send [15:19:16]OFD Sender: No OFD packet to send [15:19:21]OFD Sender: No OFD packet to send [15:19:26]OFD Sender: No OFD packet to send [15:19:31]OFD Sender: No OFD packet to send [15:19:36]OFD Sender: No OFD packet to send [15:19:41]OFD Sender: No OFD packet to send [15:19:46]OFD Sender: No OFD packet to send [15:19:51]OFD Sender: No OFD packet to send [15:19:56]OFD Sender: No OFD packet to send [15:20:01]OFD Sender: No OFD packet to send [15:20:06]OFD Sender: No OFD packet to send [15:20:11]OFD Sender: No OFD packet to send [15:20:16]OFD Sender: No OFD packet to send [15:20:21]OFD Sender: No OFD packet to send [15:20:23]accept exits with 9 [15:20:23]New connection [15:20:23]New thread 3066948964 created [15:20:23]Thread 3066805604 joined [15:20:23]Waiting for new connection... [15:20:23] Sock 9.Parse request [15:20:23]Sock 9.Check first char [15:20:23]Sock 9.First char is OK [15:20:23]request: POST /json_proto HTTP/1.0 [15:20:23]Method: POST [15:20:23]URL: /json_proto [15:20:23]Method is POST - this is cgi request [15:20:23]url: /json_proto [15:20:23]query_string will be loaded in cgi processing [15:20:23]execute_cgi json_proto POST (null) [15:20:23]execute_cgi path=json_proto method=POST [15:20:23]POST find Content-Length [15:20:23]Host: 172.17.56.4:8080 [15:20:23]Content-Length: 677 [15:20:23]Content-Type: application/json [15:20:23] [15:20:23]POST finish read [15:20:23]Found Content-Length = 677 [15:20:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459106", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:20:23]execute_script... [15:20: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)459106", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:20:23]POST & json_proto [15:20:23]process_json_proto [15:20:23]json parsed OK: [15:20:23]protocol is kg_v1.0 [15:20:23]action value=close_receipt [15:20:23]process_action close_receipt [15:20:23]cmd_close_receipt [15:20:23]MH_GetDate [15:20:23]Write to MH i2c: F0 00 00 1D 09 15 [15:20:23]Write i2c OK [15:20:23]MH_I2C_Read... [15:20:23]Read from MH i2c: F0 [15:20:23]MH_I2C_Read... [15:20:23]Read from MH i2c: F0 09 00 [15:20:23]MH_I2C_Read... [15:20:23]Read from MH i2c: F0 09 00 1D 09 00 B8 EC 93 66 C9 DC B2 64 76 [15:20:23]GetLastDocTimeStamp 1720970263 [15:20:23]current date 1720970424 [15:20:23]FM_GetShiftState [15:20:23]SAM_PROTO_GetShiftState [15:20:23]wFMCommunicate request_size=4 [15:20:23]MH_SAM_APDU [15:20:23]CAPDU: 80 13 01 00 [15:20:23]Write to MH i2c: E2 08 00 1E 09 80 13 01 00 00 00 00 00 A4 [15:20:23]Write i2c OK [15:20:23]MH_I2C_Read... [15:20:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:20:23]Read from MH i2c: E2 [15:20:23]MH_I2C_Read... [15:20:23]Read from MH i2c: E2 0E 00 [15:20:23]MH_I2C_Read... [15:20:23]Read from MH i2c: E2 0E 00 1E 09 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 24 [15:20:23]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [15:20:23]wFMCommunicate OK [15:20:23]SAM_PROTO_GetShiftState done [15:20:23]FM_GetShiftState done [15:20:23]opened in 1720917342 [15:20:23]opened+sec_in_day 1721003742 [15:20:23]quantity*price = 40006 [15:20:23]sum+1 = 40007 [15:20:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 204 14.07.2024 15:20 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165006 ФПД: 73717942908209 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T152024&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165006&fm=73717942908209&tin=02508201610067®Number=0000000000090829&sum=40000 [15:20:25]StoreToDocumentArchive [15:20:25]shift 447 fd 165006 [15:20:25]save to /storage/0447/doc_00165006 [15:20:25]save last doc name /storage/0447/doc_00165006 to /storage/kkm_last_doc_name [15:20:25]save OK [15:20:25]Clear old archive folders... [15:20:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:20:25]tlvbuf is 0130A3B0 [15:20:25]SAM_PROTO_ClearQueue [15:20:25]wFMCommunicate request_size=4 [15:20:25]MH_SAM_APDU [15:20:25]CAPDU: 80 09 00 00 [15:20:25]Write to MH i2c: E2 08 00 2B 09 80 09 00 00 00 00 00 00 A6 [15:20:25]Write i2c OK [15:20:25]MH_I2C_Read... [15:20:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:20:25]Read from MH i2c: E2 [15:20:25]MH_I2C_Read... [15:20:25]Read from MH i2c: E2 03 00 [15:20:25]MH_I2C_Read... [15:20:25]Read from MH i2c: E2 03 00 2B 09 00 90 00 A8 [15:20:25]RAPDU: 90 00 [15:20:25]wFMCommunicate OK [15:20:25]SAM_PROTO_ClearQueue done [15:20:25]KKMCreateOFDPacket [15:20:25]OFDProtocolAddRootSTLVToBuf [15:20:25]FM_MakeSignedData [15:20:25]FM_MakeSignedData [15:20:25]SAM_PROTO_SignData [15:20:25]wFMCommunicate request_size=4 [15:20:25]MH_SAM_APDU [15:20:25]CAPDU: 80 0D 01 02 [15:20:25]Write to MH i2c: E2 08 00 2C 09 80 0D 01 02 00 00 00 00 AE [15:20:25]Write i2c OK [15:20:25]MH_I2C_Read... [15:20:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:20:25]Read from MH i2c: E2 [15:20:25]MH_I2C_Read... [15:20:25]Read from MH i2c: E2 03 00 [15:20:25]MH_I2C_Read... [15:20:25]Read from MH i2c: E2 03 00 2C 09 00 90 00 A9 [15:20:25]RAPDU: 90 00 [15:20:25]wFMCommunicate OK [15:20:25]wFMCommunicate request_size=255 [15:20:25]MH_SAM_APDU [15:20:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 CC 00 00 00 F4 03 04 00 B8 EC 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8E 84 02 00 35 04 06 00 43 [15:20:25]Write to MH i2c: E2 02 01 2D 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 CC 00 00 00 F4 03 04 00 B8 EC 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8E 84 02 00 35 04 06 00 43 00 00 87 [15:20:25]Write i2c OK [15:20:25]MH_I2C_Read... [15:20:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:20:25]Read from MH i2c: E2 [15:20:25]MH_I2C_Read... [15:20:25]Read from MH i2c: E2 03 00 [15:20:25]MH_I2C_Read... [15:20:25]Read from MH i2c: E2 03 00 2D 09 00 90 00 AA [15:20:25]RAPDU: 90 00 [15:20:25]wFMCommunicate OK [15:20:25]wFMCommunicate request_size=10 [15:20:25]MH_SAM_APDU [15:20:25]CAPDU: 80 0D 02 02 05 0B CB CC F5 31 [15:20:25]Write to MH i2c: E2 0D 00 2E 09 80 0D 02 02 05 00 0B CB CC F5 31 00 00 83 [15:20:25]Write i2c OK [15:20:25]MH_I2C_Read... [15:20:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:20:25]Read from MH i2c: E2 [15:20:25]MH_I2C_Read... [15:20:25]Read from MH i2c: E2 03 00 [15:20:25]MH_I2C_Read... [15:20:25]Read from MH i2c: E2 03 00 2E 09 00 90 00 AB [15:20:25]RAPDU: 90 00 [15:20:25]wFMCommunicate OK [15:20:25]wFMCommunicate request_size=4 [15:20:25]MH_SAM_APDU [15:20:25]CAPDU: 80 0D 03 02 [15:20:25]Write to MH i2c: E2 08 00 2F 09 80 0D 03 02 00 00 00 00 B3 [15:20:25]Write i2c OK [15:20:25]MH_I2C_Read... [15:20:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:20:25]Read from MH i2c: E2 [15:20:25]MH_I2C_Read... [15:20:25]Read from MH i2c: E2 0B 00 [15:20:25]MH_I2C_Read... [15:20:25]Read from MH i2c: E2 0B 00 2F 09 00 CE 20 17 87 B2 A3 10 E9 90 00 8E [15:20:25]RAPDU: CE 20 17 87 B2 A3 10 E9 90 00 [15:20:25]wFMCommunicate OK [15:20:25]SAM_PROTO_SignData done [15:20:25]FM_MakeSignedData done [15:20:25]CreateOFDProtocolMessage [15:20:25]wFMCommunicate request_size=4 [15:20:25]MH_SAM_APDU [15:20:25]CAPDU: 80 11 00 00 [15:20:25]Write to MH i2c: E2 08 00 30 09 80 11 00 00 00 00 00 00 B3 [15:20:25]Write i2c OK [15:20:25]MH_I2C_Read... [15:20:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:20:25]Read from MH i2c: E2 [15:20:25]MH_I2C_Read... [15:20:25]Read from MH i2c: E2 17 00 [15:20:25]MH_I2C_Read... [15:20:25]Read from MH i2c: E2 17 00 30 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 09 [15:20:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:20:25]wFMCommunicate OK [15:20:25]CreateOFDProtocolMessage done [15:20:25]OFDSenderStorePacket 165006 [15:20:25]StoreOFDPacket docnum=165006 [15:20:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 74 F5 07 01 77 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 CC 00 00 00 F4 03 04 00 B8 EC 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8E 84 02 00 35 04 06 00 43 0B CB CC F5 31 CE 20 17 87 B2 A3 10 E9 [15:20:25]CheckFolder [15:20:25]dirname=/storage/ofd_packets [15:20:25]CheckFolder done [15:20:25]ProducePacketName [15:20:25]name=ofd_packets/00165006 [15:20:25]NVStorageSaveData ofd_packets/00165006 [15:20:25]File name is /storage/ofd_packets/00165006 [15:20:25]Write 301 bytes [15:20:25]NVStorageSaveData done [15:20:25]OFDSenderStorePacket done [15:20:25]KKMCreateOFDPacket done [15:20:25]NVStorageSaveData kkm_last_timestamp [15:20:25]File name is /storage/kkm_last_timestamp [15:20:25]Write 4 bytes [15:20:25]NVStorageSaveData done [15:20:25]ExternCall_PrintAddStr [15:20:25]wPrintStart [15:20:25]Write to MH i2c: 01 00 00 31 09 3A [15:20:25]Write i2c OK [15:20:25]MH_I2C_Read... [15:20:25]Read from MH i2c: 01 [15:20:25]MH_I2C_Read... [15:20:25]Read from MH i2c: 01 07 00 [15:20:25]MH_I2C_Read... [15:20:25]Read from MH i2c: 01 07 00 31 09 00 00 00 00 00 FF 0F 4F [15:20:25]RasterBufferAndPrint [15:20:25]line Счет N : (1)459106 [15:20:25]line ИНН: 02508201610067 [15:20:25]line Контрольно-Кассовый Чек [15:20:25]line ПРОДАЖА [15:20:25]line ТРК (МРК, ГНК) : 12 [15:20:25]line Товар: 2710124130 [15:20:25]line Аи-92-К-5 [15:20:25]line 6.080 * 65.80 [15:20:25]line = 400.06 [15:20:25]line НДС 12% НСП 1% [15:20:25]line > о реализуемом товаре [15:20:25]line ОКРУГЛЕНИЕ: -0.06 [15:20:25]line ИТОГО: 400.00 [15:20:25]line Внесено: 400.00 [15:20:25]line СДАЧА: 0.00 [15:20:25]line НСП 1% : 3.54 [15:20:25]line НДС 12% : 42.48 [15:20:25]line Наличными: 400.00 [15:20:25]line Безнал.: 0.00 [15:20:25]line Место: АЗС № 72 "Партнер Нефть" [15:20:25]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:20:25]line СНО: Общий режим [15:20:25]line Чек 204 14.07.2024 15:20 [15:20:25]line Смена: 447 ФФД: 1.0 [15:20:25]line ЗНМ: 0300000160 [15:20:25]line РНМ: 0000000000090829 [15:20:25]line Версия ККМ: 001 [15:20:25]line ФМ: 0000000000874718 [15:20:25]line ФД: 165006 [15:20:25]line ФПД: 73717942908209 [15:20:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T152024&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165006&fm=73717942908209&tin=02508201610067®Number=0000000000090829&sum=40000 [15:20:25]written 0, free lines is 4095 [15:20:25]OFD Sender: Processing packet 165006 [packets to send 105, broken 104] [15:20:25]ProducePacketName [15:20:25]name=ofd_packets/00165006 [15:20:25]OFD Sender: To server: pG, [15:20:25]CommunicateWithHost lk.salyk.kg:30040 [15:20:25]ConnectInit lk.salyk.kg [15:20:26]Connected sock=7 [15:20:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 74 F5 07 01 77 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 CC 00 00 00 F4 03 04 00 B8 EC 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8E 84 02 00 35 04 06 00 43 0B CB CC F5 31 CE 20 17 87 B2 A3 10 E9 [15:20:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 6B E6 47 00 11 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8E 84 02 00 F4 03 04 00 45 93 93 66 B6 04 01 00 00 57 41 D6 3E 1D 0C 84 34 [15:20:26]CommunicateWithHost err = 0 [15:20:26]CheckOFDResponse [15:20:26]1017 (14) - 77093643461234 [15:20:26]1041 (16) - 0000000000874718 [15:20:26]1040 (4) - 165006 [15:20:26]1012 (4) - 14.07.2024 08:58 [15:20:26]1206 (1) - 0 [15:20:26]OFD Sender: Remove packet 165006 [15:20:26]ProducePacketName [15:20:26]name=ofd_packets/00165006 [15:20:26]NVStorageDeleteData [15:20:26]Write to MH i2c: 01 00 00 5B 09 64 [15:20:26]Write i2c OK [15:20:26]MH_I2C_Read... [15:20:26]Read from MH i2c: 01 [15:20:26]MH_I2C_Read... [15:20:26]Read from MH i2c: 01 07 00 [15:20:26]MH_I2C_Read... [15:20:26]Read from MH i2c: 01 07 00 5B 09 00 00 00 00 00 F4 0C 6B [15:20:26]RasterBufferAndPrint [15:20:26]line [15:20:26]line [15:20:26]line [15:20:26]line [15:20:26]line [15:20:26]written 0, free lines is 3323 [15:20:26]MH_Cut [15:20:26]Write to MH i2c: D1 01 00 62 09 01 3D [15:20:26]Write i2c OK [15:20:26]MH_I2C_Read... [15:20:26]Read from MH i2c: D1 [15:20:26]MH_I2C_Read... [15:20:26]Read from MH i2c: D1 01 00 [15:20:26]MH_I2C_Read... [15:20:26]Read from MH i2c: D1 01 00 62 09 00 3C [15:20:26]Write to MH i2c: 01 00 00 63 09 6C [15:20:26]Write i2c OK [15:20:26]MH_I2C_Read... [15:20:26]OFD Sender: No OFD packet to send [15:20:27]*** Cut start [15:20:27]*** Partial cut [15:20:27]*** CUTSNS_PIN = 1 [15:20:27]*** CUTSNS_PIN = 0 [15:20:27]*** Brake cut motor [15:20:27]Read from MH i2c: 01 [15:20:27]MH_I2C_Read... [15:20:27]*** Stop cut motor [15:20:27]*** Cut end [15:20:27]Read from MH i2c: 01 07 00 [15:20:27]MH_I2C_Read... [15:20:27]Read from MH i2c: 01 07 00 63 09 00 00 00 00 00 FF 0F 81 [15:20:27]process_action close_receipt done [15:20:27]requested_data is exist [15:20:27]produce_requested_data [15:20:27]requested_item fm.sn is exist - process it [15:20:27]wFMCommunicate request_size=4 [15:20:27]MH_SAM_APDU [15:20:27]CAPDU: 80 11 00 00 [15:20:27]Write to MH i2c: E2 08 00 64 09 80 11 00 00 00 00 00 00 E7 [15:20:27]Write i2c OK [15:20:27]MH_I2C_Read... [15:20:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:20:27]Read from MH i2c: E2 [15:20:27]MH_I2C_Read... [15:20:27]Read from MH i2c: E2 17 00 [15:20:27]MH_I2C_Read... [15:20:27]Read from MH i2c: E2 17 00 64 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 3D [15:20:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:20:27]wFMCommunicate OK [15:20:27]requested_item fd.num is exist - process it [15:20:27]SAM_PROTO_GetFieldsCounters [15:20:27]wFMCommunicate request_size=4 [15:20:27]MH_SAM_APDU [15:20:27]CAPDU: 80 13 00 00 [15:20:27]Write to MH i2c: E2 08 00 65 09 80 13 00 00 00 00 00 00 EA [15:20:27]Write i2c OK [15:20:27]MH_I2C_Read... [15:20:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:20:27]Read from MH i2c: E2 [15:20:27]MH_I2C_Read... [15:20:27]Read from MH i2c: E2 62 00 [15:20:27]MH_I2C_Read... [15:20:27]Read from MH i2c: E2 62 00 65 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 8E 84 02 00 0E 04 04 00 BF 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 49 [15:20:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 8E 84 02 00 0E 04 04 00 BF 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 [15:20:27]wFMCommunicate OK [15:20:27]SAM_PROTO_GetFieldsCounters done [15:20:27]requested_item shift.num is exist - process it [15:20:27]requested_item shift.opened is exist - process it [15:20:27]req_shift_opened [15:20:27]FM_GetShiftState [15:20:27]SAM_PROTO_GetShiftState [15:20:27]wFMCommunicate request_size=4 [15:20:27]MH_SAM_APDU [15:20:27]CAPDU: 80 13 01 00 [15:20:27]Write to MH i2c: E2 08 00 66 09 80 13 01 00 00 00 00 00 EC [15:20:27]Write i2c OK [15:20:27]MH_I2C_Read... [15:20:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:20:27]Read from MH i2c: E2 [15:20:27]MH_I2C_Read... [15:20:27]Read from MH i2c: E2 0E 00 [15:20:27]MH_I2C_Read... [15:20:27]Read from MH i2c: E2 0E 00 66 09 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 6C [15:20:27]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [15:20:27]wFMCommunicate OK [15:20:27]SAM_PROTO_GetShiftState done [15:20:27]FM_GetShiftState done [15:20:27]req_shift_opened done [15:20:27]requested_item shift.open_date is exist - process it [15:20:27]req_shift_open_date [15:20:27]req_shift_open_date done [15:20:27]produce_requested_data done [15:20:27]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165006,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [15:20:27]process_action_free close_receipt [15:20:27]json_value_free [15:20:27]json_value_free done [15:20:27]process_json_proto returns [15:20:27]Send response to host [15:20:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165006,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [15:20:27]free response buf [15:20:27]execute_script done [15:20:27]execute_script returns [15:20:27]free content buf [15:20:27]Sock 9.Close socket [15:20:27]Sock 9.Thread stoped [15:20:31]OFD Sender: No OFD packet to send [15:20:36]OFD Sender: No OFD packet to send [15:20:41]OFD Sender: No OFD packet to send [15:20:46]OFD Sender: No OFD packet to send [15:20:51]OFD Sender: No OFD packet to send [15:20:56]OFD Sender: No OFD packet to send [15:21:01]OFD Sender: No OFD packet to send [15:21:06]OFD Sender: No OFD packet to send [15:21:11]OFD Sender: No OFD packet to send [15:21:16]OFD Sender: No OFD packet to send [15:21:21]OFD Sender: No OFD packet to send [15:21:26]OFD Sender: No OFD packet to send [15:21:31]OFD Sender: No OFD packet to send [15:21:36]OFD Sender: No OFD packet to send [15:21:41]OFD Sender: No OFD packet to send [15:21:46]OFD Sender: No OFD packet to send [15:21:51]OFD Sender: No OFD packet to send [15:21:56]OFD Sender: No OFD packet to send [15:22:01]OFD Sender: No OFD packet to send [15:22:06]OFD Sender: No OFD packet to send [15:22:11]OFD Sender: No OFD packet to send [15:22:16]OFD Sender: No OFD packet to send [15:22:21]OFD Sender: No OFD packet to send [15:22:26]OFD Sender: No OFD packet to send [15:22:31]OFD Sender: No OFD packet to send [15:22:36]OFD Sender: No OFD packet to send [15:22:41]OFD Sender: No OFD packet to send [15:22:46]OFD Sender: No OFD packet to send [15:22:51]OFD Sender: No OFD packet to send [15:22:56]OFD Sender: No OFD packet to send [15:23:01]OFD Sender: No OFD packet to send [15:23:06]OFD Sender: No OFD packet to send [15:23:11]OFD Sender: No OFD packet to send [15:23:16]OFD Sender: No OFD packet to send [15:23:21]OFD Sender: No OFD packet to send [15:23:26]OFD Sender: No OFD packet to send [15:23:31]OFD Sender: No OFD packet to send [15:23:36]OFD Sender: No OFD packet to send [15:23:41]OFD Sender: No OFD packet to send [15:23:47]OFD Sender: No OFD packet to send [15:23:52]OFD Sender: No OFD packet to send [15:23:57]OFD Sender: No OFD packet to send [15:24:02]OFD Sender: No OFD packet to send [15:24:07]OFD Sender: No OFD packet to send [15:24:12]OFD Sender: No OFD packet to send [15:24:17]OFD Sender: No OFD packet to send [15:24:22]OFD Sender: No OFD packet to send [15:24:27]OFD Sender: No OFD packet to send [15:24:32]OFD Sender: No OFD packet to send [15:24:37]OFD Sender: No OFD packet to send [15:24:42]OFD Sender: No OFD packet to send [15:24:47]OFD Sender: No OFD packet to send [15:24:52]OFD Sender: No OFD packet to send [15:24:57]OFD Sender: No OFD packet to send [15:25:02]OFD Sender: No OFD packet to send [15:25:07]OFD Sender: No OFD packet to send [15:25:12]OFD Sender: No OFD packet to send [15:25:17]OFD Sender: No OFD packet to send [15:25:22]OFD Sender: No OFD packet to send [15:25:27]OFD Sender: No OFD packet to send [15:25:32]OFD Sender: No OFD packet to send [15:25:37]OFD Sender: No OFD packet to send [15:25:42]OFD Sender: No OFD packet to send [15:25:47]OFD Sender: No OFD packet to send [15:25:52]OFD Sender: No OFD packet to send [15:25:57]OFD Sender: No OFD packet to send [15:26:02]OFD Sender: No OFD packet to send [15:26:07]OFD Sender: No OFD packet to send [15:26:12]OFD Sender: No OFD packet to send [15:26:17]OFD Sender: No OFD packet to send [15:26:22]OFD Sender: No OFD packet to send [15:26:27]OFD Sender: No OFD packet to send [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:57]OFD Sender: No OFD packet to send [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:32]OFD Sender: No OFD packet to send [15:28:37]OFD Sender: No OFD packet to send [15:28:42]OFD Sender: No OFD packet to send [15:28:47]OFD Sender: No OFD packet to send [15:28:52]OFD Sender: No OFD packet to send [15:28:57]OFD Sender: No OFD packet to send [15:29:02]OFD Sender: No OFD packet to send [15:29:07]OFD Sender: No OFD packet to send [15:29:12]OFD Sender: No OFD packet to send [15:29:17]OFD Sender: No OFD packet to send [15:29:22]OFD Sender: No OFD packet to send [15:29:27]OFD Sender: No OFD packet to send [15:29:32]OFD Sender: No OFD packet to send [15:29:37]OFD Sender: No OFD packet to send [15:29:42]OFD Sender: No OFD packet to send [15:29:47]OFD Sender: No OFD packet to send [15:29:52]OFD Sender: No OFD packet to send [15:29:57]OFD Sender: No OFD packet to send [15:30:02]OFD Sender: No OFD packet to send [15:30:07]OFD Sender: No OFD packet to send [15:30:12]OFD Sender: No OFD packet to send [15:30:17]OFD Sender: No OFD packet to send [15:30:22]OFD Sender: No OFD packet to send [15:30:27]OFD Sender: No OFD packet to send [15:30:32]OFD Sender: No OFD packet to send [15:30:37]OFD Sender: No OFD packet to send [15:30:42]OFD Sender: No OFD packet to send [15:30:47]OFD Sender: No OFD packet to send [15:30:52]OFD Sender: No OFD packet to send [15:30:57]OFD Sender: No OFD packet to send [15:31:02]OFD Sender: No OFD packet to send [15:31:07]OFD Sender: No OFD packet to send [15:31:12]OFD Sender: No OFD packet to send [15:31:17]OFD Sender: No OFD packet to send [15:31:22]OFD Sender: No OFD packet to send [15:31:27]OFD Sender: No OFD packet to send [15:31:32]OFD Sender: No OFD packet to send [15:31:37]OFD Sender: No OFD packet to send [15:31:42]OFD Sender: No OFD packet to send [15:31:47]OFD Sender: No OFD packet to send [15:31:52]OFD Sender: No OFD packet to send [15:31:57]OFD Sender: No OFD packet to send [15:32:02]OFD Sender: No OFD packet to send [15:32:07]OFD Sender: No OFD packet to send [15:32:12]OFD Sender: No OFD packet to send [15:32:17]OFD Sender: No OFD packet to send [15:32:22]OFD Sender: No OFD packet to send [15:32:27]OFD Sender: No OFD packet to send [15:32:32]OFD Sender: No OFD packet to send [15:32:37]OFD Sender: No OFD packet to send [15:32:42]OFD Sender: No OFD packet to send [15:32:47]OFD Sender: No OFD packet to send [15:32:52]OFD Sender: No OFD packet to send [15:32:57]OFD Sender: No OFD packet to send [15:33:02]OFD Sender: No OFD packet to send [15:33:07]OFD Sender: No OFD packet to send [15:33:12]OFD Sender: No OFD packet to send [15:33:17]OFD Sender: No OFD packet to send [15:33:22]OFD Sender: No OFD packet to send [15:33:27]accept exits with 10 [15:33:27]New connection [15:33:27]New thread 3066805604 created [15:33:27]Thread 3066948964 joined [15:33:27]Waiting for new connection... [15:33:27] Sock 10.Parse request [15:33:27]Sock 10.Check first char [15:33:27]Sock 10.First char is OK [15:33:27]request: POST /json_proto HTTP/1.0 [15:33:27]Method: POST [15:33:27]URL: /json_proto [15:33:27]Method is POST - this is cgi request [15:33:27]url: /json_proto [15:33:27]query_string will be loaded in cgi processing [15:33:27]execute_cgi json_proto POST (null) [15:33:27]execute_cgi path=json_proto method=POST [15:33:27]POST find Content-Length [15:33:27]Host: 172.17.56.4:8080 [15:33:27]Content-Length: 677 [15:33:27]Content-Type: application/json [15:33:27] [15:33:27]POST finish read [15:33:27]Found Content-Length = 677 [15:33:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459107", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:33:27]execute_script... [15:33: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)459107", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:33:27]POST & json_proto [15:33:27]process_json_proto [15:33:27]json parsed OK: [15:33:27]protocol is kg_v1.0 [15:33:27]action value=close_receipt [15:33:27]process_action close_receipt [15:33:27]cmd_close_receipt [15:33:27]MH_GetDate [15:33:27]Write to MH i2c: F0 00 00 67 09 5F [15:33:27]Write i2c OK [15:33:27]MH_I2C_Read... [15:33:27]Read from MH i2c: F0 [15:33:27]MH_I2C_Read... [15:33:27]Read from MH i2c: F0 09 00 [15:33:27]MH_I2C_Read... [15:33:27]Read from MH i2c: F0 09 00 67 09 00 C7 EF 93 66 C9 DC B2 64 D2 [15:33:27]GetLastDocTimeStamp 1720970424 [15:33:27]current date 1720971207 [15:33:27]FM_GetShiftState [15:33:27]SAM_PROTO_GetShiftState [15:33:27]wFMCommunicate request_size=4 [15:33:27]MH_SAM_APDU [15:33:27]CAPDU: 80 13 01 00 [15:33:27]Write to MH i2c: E2 08 00 68 09 80 13 01 00 00 00 00 00 EE [15:33:27]Write i2c OK [15:33:27]MH_I2C_Read... [15:33:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:27]Read from MH i2c: E2 [15:33:27]MH_I2C_Read... [15:33:27]Read from MH i2c: E2 0E 00 [15:33:27]MH_I2C_Read... [15:33:27]Read from MH i2c: E2 0E 00 68 09 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 6E [15:33:27]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [15:33:27]wFMCommunicate OK [15:33:27]SAM_PROTO_GetShiftState done [15:33:27]FM_GetShiftState done [15:33:27]opened in 1720917342 [15:33:27]opened+sec_in_day 1721003742 [15:33:27]quantity*price = 60009 [15:33:27]sum+1 = 60011 [15:33:27]Check (price>sum+1) || (price+1 о реализуемом товаре [15:35:46]line ОКРУГЛЕНИЕ: -0.10 [15:35:46]line ИТОГО: 600.00 [15:35:46]line Внесено: 600.00 [15:35:46]line СДАЧА: 0.00 [15:35:46]line НСП 1% : 5.31 [15:35:46]line НДС 12% : 63.73 [15:35:46]line Наличными: 600.00 [15:35:46]line Безнал.: 0.00 [15:35:46]line Место: АЗС № 72 "Партнер Нефть" [15:35:46]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:35:46]line СНО: Общий режим [15:35:46]line Чек 205 14.07.2024 15:33 [15:35:46]line Смена: 447 ФФД: 1.0 [15:35:46]line ЗНМ: 0300000160 [15:35:46]line РНМ: 0000000000090829 [15:35:46]line Версия ККМ: 001 [15:35:46]line ФМ: 0000000000874718 [15:35:46]line ФД: 165007 [15:35:46]line ФПД: 88219655334880 [15:35:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T153327&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165007&fm=88219655334880&tin=02508201610067®Number=0000000000090829&sum=60000 [15:35:46]written 0, free lines is 4095 [15:35:46]OFD Sender: No OFD packet to send [15:35:46]Write to MH i2c: 01 00 00 47 00 47 [15:35:46]Write i2c OK [15:35:46]MH_I2C_Read... [15:35:46]Read from MH i2c: 01 [15:35:46]MH_I2C_Read... [15:35:46]Read from MH i2c: 01 07 00 [15:35:46]MH_I2C_Read... [15:35:46]Read from MH i2c: 01 07 00 47 00 00 00 00 00 00 FF 0C 59 [15:35:46]RasterBufferAndPrint [15:35:46]line [15:35:46]line [15:35:46]line [15:35:46]line [15:35:46]line [15:35:46]written 0, free lines is 3342 [15:35:46]MH_Cut [15:35:46]Write to MH i2c: D1 01 00 4E 00 01 20 [15:35:46]Write i2c OK [15:35:46]MH_I2C_Read... [15:35:46]Read from MH i2c: D1 [15:35:46]MH_I2C_Read... [15:35:46]Read from MH i2c: D1 01 00 [15:35:46]MH_I2C_Read... [15:35:46]Read from MH i2c: D1 01 00 4E 00 00 1F [15:35:46]Write to MH i2c: 01 00 00 4F 00 4F [15:35:46]Write i2c OK [15:35:46]MH_I2C_Read... [15:35:47]*** Cut start [15:35:47]*** Partial cut [15:35:47]*** CUTSNS_PIN = 1 [15:35:47]*** CUTSNS_PIN = 0 [15:35:47]*** Brake cut motor [15:35:48]Read from MH i2c: 01 *** Stop cut motor [15:35:48] [15:35:48]*** Cut end [15:35:48]MH_I2C_Read... [15:35:48]Read from MH i2c: 01 07 00 [15:35:48]MH_I2C_Read... [15:35:48]Read from MH i2c: 01 07 00 4F 00 00 00 00 00 00 FF 0F 64 [15:35:48]process_action print_doc done [15:35:48]requested_data is exist [15:35:48]produce_requested_data [15:35:48]produce_requested_data return (null) [15:35:48]process_action_free print_doc [15:35:48]json_value_free [15:35:48]json_value_free done [15:35:48]process_json_proto returns [15:35:48]Send response to host [15:35:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [15:35:48]free response buf [15:35:48]execute_script done [15:35:48]execute_script returns [15:35:48]free content buf [15:35:48]Sock 6.Close socket [15:35:48]Sock 6.Thread stoped [15:35:51]OFD Sender: No OFD packet to send [15:35:56]OFD Sender: No OFD packet to send [15:36:01]OFD Sender: No OFD packet to send [15:36:06]OFD Sender: No OFD packet to send [15:36:11]OFD Sender: No OFD packet to send [15:36:16]OFD Sender: No OFD packet to send [15:36:21]OFD Sender: No OFD packet to send [15:36:26]OFD Sender: No OFD packet to send [15:36:29]accept exits with 8 [15:36:29]New connection [15:36:29]New thread 3066531172 created [15:36:29]Thread 3066674532 joined [15:36:29]Waiting for new connection... [15:36:29] Sock 8.Parse request [15:36:29]Sock 8.Check first char [15:36:29]Sock 8.First char is OK [15:36:29]request: POST /json_proto HTTP/1.0 [15:36:29]Method: POST [15:36:29]URL: /json_proto [15:36:29]Method is POST - this is cgi request [15:36:29]url: /json_proto [15:36:29]query_string will be loaded in cgi processing [15:36:29]execute_cgi json_proto POST (null) [15:36:29]execute_cgi path=json_proto method=POST [15:36:29]POST find Content-Length [15:36:29]Host: 172.17.56.4:8080 [15:36:29]Content-Length: 677 [15:36:29]Content-Type: application/json [15:36:29] [15:36:29]POST finish read [15:36:29]Found Content-Length = 677 [15:36:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459109", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.000, "sum" : 592.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 592.00, "total" : 592.00, "payments": [ { "type": 0, "sum" : 592.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:36:29]execute_script... [15:36: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)459109", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.000, "sum" : 592.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 592.00, "total" : 592.00, "payments": [ { "type": 0, "sum" : 592.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:36:29]POST & json_proto [15:36:29]process_json_proto [15:36:29]json parsed OK: [15:36:29]protocol is kg_v1.0 [15:36:29]action value=close_receipt [15:36:29]process_action close_receipt [15:36:29]cmd_close_receipt [15:36:29]MH_GetDate [15:36:29]Write to MH i2c: F0 00 00 50 00 3F [15:36:29]Write i2c OK [15:36:29]MH_I2C_Read... [15:36:29]Read from MH i2c: F0 [15:36:29]MH_I2C_Read... [15:36:29]Read from MH i2c: F0 09 00 [15:36:29]MH_I2C_Read... [15:36:29]Read from MH i2c: F0 09 00 50 00 00 7E F0 93 66 C9 DC B2 64 6A [15:36:29]GetLastDocTimeStamp 1720971207 [15:36:29]current date 1720971390 [15:36:29]FM_GetShiftState [15:36:29]SAM_PROTO_GetShiftState [15:36:29]wFMCommunicate request_size=4 [15:36:29]MH_SAM_APDU [15:36:29]CAPDU: 80 13 01 00 [15:36:29]Write to MH i2c: E2 08 00 51 00 80 13 01 00 00 00 00 00 CE [15:36:29]Write i2c OK [15:36:29]MH_I2C_Read... [15:36:29]Read from MH i2c: E2 [15:36:29]MH_I2C_Read... [15:36:29]Read from MH i2c: E2 0E 00 [15:36:29]MH_I2C_Read... [15:36:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:29]Read from MH i2c: E2 0E 00 51 00 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 4E [15:36:29]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [15:36:29]wFMCommunicate OK [15:36:29]SAM_PROTO_GetShiftState done [15:36:29]FM_GetShiftState done [15:36:29]opened in 1720917342 [15:36:29]opened+sec_in_day 1721003742 [15:36:29]quantity*price = 59220 [15:36:29]sum+1 = 59221 [15:36:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 592.00 Внесено: 592.00 СДАЧА: 0.00 НСП 1% : 5.24 НДС 12% : 62.89 Наличными: 592.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 206 14.07.2024 15:36 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165008 ФПД: 71189690913795 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T153630&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165008&fm=71189690913795&tin=02508201610067®Number=0000000000090829&sum=59200 [15:36:31]StoreToDocumentArchive [15:36:31]shift 447 fd 165008 [15:36:31]save to /storage/0447/doc_00165008 [15:36:31]save last doc name /storage/0447/doc_00165008 to /storage/kkm_last_doc_name [15:36:31]save OK [15:36:31]Clear old archive folders... [15:36:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:36:31]tlvbuf is 01465260 [15:36:31]SAM_PROTO_ClearQueue [15:36:31]wFMCommunicate request_size=4 [15:36:31]MH_SAM_APDU [15:36:31]CAPDU: 80 09 00 00 [15:36:31]Write to MH i2c: E2 08 00 5E 00 80 09 00 00 00 00 00 00 D0 [15:36:31]Write i2c OK [15:36:31]MH_I2C_Read... [15:36:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:36:31]Read from MH i2c: E2 [15:36:31]MH_I2C_Read... [15:36:31]Read from MH i2c: E2 03 00 [15:36:31]MH_I2C_Read... [15:36:31]Read from MH i2c: E2 03 00 5E 00 00 90 00 D2 [15:36:31]RAPDU: 90 00 [15:36:31]wFMCommunicate OK [15:36:31]SAM_PROTO_ClearQueue done [15:36:31]KKMCreateOFDPacket [15:36:31]OFDProtocolAddRootSTLVToBuf [15:36:31]FM_MakeSignedData [15:36:31]FM_MakeSignedData [15:36:31]SAM_PROTO_SignData [15:36:31]wFMCommunicate request_size=4 [15:36:31]MH_SAM_APDU [15:36:31]CAPDU: 80 0D 01 02 [15:36:31]Write to MH i2c: E2 08 00 5F 00 80 0D 01 02 00 00 00 00 D8 [15:36:31]Write i2c OK [15:36:31]MH_I2C_Read... [15:36:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:36:31]Read from MH i2c: E2 [15:36:31]MH_I2C_Read... [15:36:31]Read from MH i2c: E2 03 00 [15:36:31]MH_I2C_Read... [15:36:31]Read from MH i2c: E2 03 00 5F 00 00 90 00 D3 [15:36:31]RAPDU: 90 00 [15:36:31]wFMCommunicate OK [15:36:31]wFMCommunicate request_size=255 [15:36:31]MH_SAM_APDU [15:36:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 54 E7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 E7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 18 00 00 00 00 07 04 06 00 40 E7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 7E F0 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 90 84 02 00 35 04 06 00 40 [15:36:31]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 35 FF 03 08 00 03 28 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 54 E7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 E7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 18 00 00 00 00 07 04 06 00 40 E7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 7E F0 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 90 84 02 00 35 04 06 00 40 00 00 8B [15:36:31]Write i2c OK [15:36:31]MH_I2C_Read... [15:36:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:31]Read from MH i2c: E2 [15:36:31]MH_I2C_Read... [15:36:31]Read from MH i2c: E2 03 00 [15:36:31]MH_I2C_Read... [15:36:31]Read from MH i2c: E2 03 00 60 00 00 90 00 D4 [15:36:31]RAPDU: 90 00 [15:36:31]wFMCommunicate OK [15:36:31]wFMCommunicate request_size=10 [15:36:31]MH_SAM_APDU [15:36:31]CAPDU: 80 0D 02 02 05 BF 24 3D 14 03 [15:36:31]Write to MH i2c: E2 0D 00 61 00 80 0D 02 02 05 00 BF 24 3D 14 03 00 00 1C [15:36:31]Write i2c OK [15:36:31]MH_I2C_Read... [15:36:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:31]Read from MH i2c: E2 [15:36:31]MH_I2C_Read... [15:36:31]Read from MH i2c: E2 03 00 [15:36:31]MH_I2C_Read... [15:36:31]Read from MH i2c: E2 03 00 61 00 00 90 00 D5 [15:36:31]RAPDU: 90 00 [15:36:31]wFMCommunicate OK [15:36:31]wFMCommunicate request_size=4 [15:36:31]MH_SAM_APDU [15:36:31]CAPDU: 80 0D 03 02 [15:36:31]Write to MH i2c: E2 08 00 62 00 80 0D 03 02 00 00 00 00 DD [15:36:31]Write i2c OK [15:36:31]MH_I2C_Read... [15:36:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:36:31]Read from MH i2c: E2 [15:36:31]MH_I2C_Read... [15:36:31]Read from MH i2c: E2 0B 00 [15:36:31]MH_I2C_Read... [15:36:31]Read from MH i2c: E2 0B 00 62 00 00 C3 00 8D D5 00 3F 90 5B 90 00 2D [15:36:31]RAPDU: C3 00 8D D5 00 3F 90 5B 90 00 [15:36:31]wFMCommunicate OK [15:36:31]SAM_PROTO_SignData done [15:36:31]FM_MakeSignedData done [15:36:31]CreateOFDProtocolMessage [15:36:31]wFMCommunicate request_size=4 [15:36:31]MH_SAM_APDU [15:36:31]CAPDU: 80 11 00 00 [15:36:31]Write to MH i2c: E2 08 00 63 00 80 11 00 00 00 00 00 00 DD [15:36:31]Write i2c OK [15:36:31]MH_I2C_Read... [15:36:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:31]Read from MH i2c: E2 [15:36:31]MH_I2C_Read... [15:36:31]Read from MH i2c: E2 17 00 [15:36:31]MH_I2C_Read... [15:36:31]Read from MH i2c: E2 17 00 63 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 33 [15:36:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:36:31]wFMCommunicate OK [15:36:31]CreateOFDProtocolMessage done [15:36:31]OFDSenderStorePacket 165008 [15:36:31]StoreOFDPacket docnum=165008 [15:36:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 25 DA 07 01 44 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 35 FF 03 08 00 03 28 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 54 E7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 E7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 18 00 00 00 00 07 04 06 00 40 E7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 7E F0 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 90 84 02 00 35 04 06 00 40 BF 24 3D 14 03 C3 00 8D D5 00 3F 90 5B [15:36:31]CheckFolder [15:36:31]dirname=/storage/ofd_packets [15:36:31]CheckFolder done [15:36:31]ProducePacketName [15:36:31]name=ofd_packets/00165008 [15:36:31]NVStorageSaveData ofd_packets/00165008 [15:36:31]File name is /storage/ofd_packets/00165008 [15:36:31]Write 301 bytes [15:36:31]NVStorageSaveData done [15:36:31]OFDSenderStorePacket done [15:36:31]KKMCreateOFDPacket done [15:36:31]NVStorageSaveData kkm_last_timestamp [15:36:31]File name is /storage/kkm_last_timestamp [15:36:31]Write 4 bytes [15:36:31]NVStorageSaveData done [15:36:31]ExternCall_PrintAddStr [15:36:31]wPrintStart [15:36:31]Write to MH i2c: 01 00 00 64 00 64 [15:36:31]Write i2c OK [15:36:31]MH_I2C_Read... [15:36:31]Read from MH i2c: 01 [15:36:31]MH_I2C_Read... [15:36:31]Read from MH i2c: 01 07 00 [15:36:31]MH_I2C_Read... [15:36:31]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [15:36:31]RasterBufferAndPrint [15:36:31]line Счет N : (1)459109 [15:36:31]line ИНН: 02508201610067 [15:36:31]line Контрольно-Кассовый Чек [15:36:31]line ПРОДАЖА [15:36:31]line ТРК (МРК, ГНК) : 12 [15:36:31]line Товар: 2710124130 [15:36:31]line Аи-92-К-5 [15:36:31]line 9.000 * 65.80 [15:36:31]line = 592.20 [15:36:31]line НДС 12% НСП 1% [15:36:31]line > о реализуемом товаре [15:36:31]line ОКРУГЛЕНИЕ: -0.20 [15:36:31]line ИТОГО: 592.00 [15:36:31]line Внесено: 592.00 [15:36:31]line СДАЧА: 0.00 [15:36:31]line НСП 1% : 5.24 [15:36:31]line НДС 12% : 62.89 [15:36:31]line Наличными: 592.00 [15:36:31]line Безнал.: 0.00 [15:36:31]line Место: АЗС № 72 "Партнер Нефть" [15:36:31]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:36:31]line СНО: Общий режим [15:36:31]line Чек 206 14.07.2024 15:36 [15:36:31]line Смена: 447 ФФД: 1.0 [15:36:31]line ЗНМ: 0300000160 [15:36:31]line РНМ: 0000000000090829 [15:36:31]line Версия ККМ: 001 [15:36:31]line ФМ: 0000000000874718 [15:36:31]line ФД: 165008 [15:36:31]line ФПД: 71189690913795 [15:36:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T153630&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165008&fm=71189690913795&tin=02508201610067®Number=0000000000090829&sum=59200 [15:36:31]OFD Sender: Processing packet 165008 [packets to send 105, broken 104] [15:36:31]ProducePacketName [15:36:31]name=ofd_packets/00165008 [15:36:31]OFD Sender: To server: pG, [15:36:31]CommunicateWithHost lk.salyk.kg:30040 [15:36:31]ConnectInit lk.salyk.kg [15:36:31]written 0, free lines is 4095 [15:36:32]Connected sock=10 [15:36:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 25 DA 07 01 44 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 35 FF 03 08 00 03 28 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 54 E7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 E7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 18 00 00 00 00 07 04 06 00 40 E7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 7E F0 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 90 84 02 00 35 04 06 00 40 BF 24 3D 14 03 C3 00 8D D5 00 3F 90 5B [15:36:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 28 E4 47 00 06 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 90 84 02 00 F4 03 04 00 0C 97 93 66 B6 04 01 00 00 D6 F6 43 C8 24 AF D2 8C [15:36:32]CommunicateWithHost err = 0 [15:36:32]CheckOFDResponse [15:36:32]1017 (14) - 77093643461234 [15:36:32]1041 (16) - 0000000000874718 [15:36:32]1040 (4) - 165008 [15:36:32]1012 (4) - 14.07.2024 09:14 [15:36:32]1206 (1) - 0 [15:36:32]OFD Sender: Remove packet 165008 [15:36:32]ProducePacketName [15:36:32]name=ofd_packets/00165008 [15:36:32]NVStorageDeleteData [15:36:32]Write to MH i2c: 01 00 00 8E 00 8E [15:36:32]Write i2c OK [15:36:32]MH_I2C_Read... [15:36:32]Read from MH i2c: 01 [15:36:32]MH_I2C_Read... [15:36:32]Read from MH i2c: 01 07 00 [15:36:32]MH_I2C_Read... [15:36:32]Read from MH i2c: 01 07 00 8E 00 00 00 00 00 00 F7 0C 98 [15:36:32]RasterBufferAndPrint [15:36:32]line [15:36:32]line [15:36:32]line [15:36:32]line [15:36:32]line [15:36:32]written 0, free lines is 3327 [15:36:32]MH_Cut [15:36:32]Write to MH i2c: D1 01 00 95 00 01 67 [15:36:32]Write i2c OK [15:36:32]MH_I2C_Read... [15:36:32]Read from MH i2c: D1 [15:36:32]MH_I2C_Read... [15:36:32]Read from MH i2c: D1 01 00 [15:36:32]MH_I2C_Read... [15:36:32]Read from MH i2c: D1 01 00 95 00 00 66 [15:36:32]Write to MH i2c: 01 00 00 96 00 96 [15:36:32]Write i2c OK [15:36:32]MH_I2C_Read... [15:36:32]OFD Sender: No OFD packet to send [15:36:33]*** Cut start [15:36:33]*** Partial cut [15:36:33]*** CUTSNS_PIN = 1 [15:36:33]*** CUTSNS_PIN = 0 [15:36:33]*** Brake cut motor [15:36:33]Read from MH i2c: 01 [15:36:33]MH_I2C_Read... [15:36:33]*** Stop cut motor [15:36:33]*** Cut end [15:36:33]Read from MH i2c: 01 07 00 [15:36:33]MH_I2C_Read... [15:36:33]Read from MH i2c: 01 07 00 96 00 00 00 00 00 00 FF 0F AB [15:36:33]process_action close_receipt done [15:36:33]requested_data is exist [15:36:33]produce_requested_data [15:36:33]requested_item fm.sn is exist - process it [15:36:33]wFMCommunicate request_size=4 [15:36:33]MH_SAM_APDU [15:36:33]CAPDU: 80 11 00 00 [15:36:33]Write to MH i2c: E2 08 00 97 00 80 11 00 00 00 00 00 00 11 [15:36:33]Write i2c OK [15:36:33]MH_I2C_Read... [15:36:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:33]Read from MH i2c: E2 [15:36:33]MH_I2C_Read... [15:36:33]Read from MH i2c: E2 17 00 [15:36:33]MH_I2C_Read... [15:36:33]Read from MH i2c: E2 17 00 97 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 67 [15:36:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:36:33]wFMCommunicate OK [15:36:33]requested_item fd.num is exist - process it [15:36:33]SAM_PROTO_GetFieldsCounters [15:36:33]wFMCommunicate request_size=4 [15:36:33]MH_SAM_APDU [15:36:33]CAPDU: 80 13 00 00 [15:36:33]Write to MH i2c: E2 08 00 98 00 80 13 00 00 00 00 00 00 14 [15:36:33]Write i2c OK [15:36:33]MH_I2C_Read... [15:36:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:36:33]Read from MH i2c: E2 [15:36:33]MH_I2C_Read... [15:36:33]Read from MH i2c: E2 62 00 [15:36:33]MH_I2C_Read... [15:36:33]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 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 90 84 02 00 0E 04 04 00 BF 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 7B [15:36:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 90 84 02 00 0E 04 04 00 BF 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 [15:36:33]wFMCommunicate OK [15:36:33]SAM_PROTO_GetFieldsCounters done [15:36:33]requested_item shift.num is exist - process it [15:36:33]requested_item shift.opened is exist - process it [15:36:33]req_shift_opened [15:36:33]FM_GetShiftState [15:36:33]SAM_PROTO_GetShiftState [15:36:33]wFMCommunicate request_size=4 [15:36:33]MH_SAM_APDU [15:36:33]CAPDU: 80 13 01 00 [15:36:33]Write to MH i2c: E2 08 00 99 00 80 13 01 00 00 00 00 00 16 [15:36:33]Write i2c OK [15:36:33]MH_I2C_Read... [15:36:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:33]Read from MH i2c: E2 [15:36:33]MH_I2C_Read... [15:36:33]Read from MH i2c: E2 0E 00 [15:36:33]MH_I2C_Read... [15:36:33]Read from MH i2c: E2 0E 00 99 00 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 96 [15:36:33]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [15:36:33]wFMCommunicate OK [15:36:33]SAM_PROTO_GetShiftState done [15:36:33]FM_GetShiftState done [15:36:33]req_shift_opened done [15:36:33]requested_item shift.open_date is exist - process it [15:36:33]req_shift_open_date [15:36:33]req_shift_open_date done [15:36:33]produce_requested_data done [15:36:33]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165008,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [15:36:33]process_action_free close_receipt [15:36:33]json_value_free [15:36:33]json_value_free done [15:36:33]process_json_proto returns [15:36:33]Send response to host [15:36:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165008,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [15:36:33]free response buf [15:36:33]execute_script done [15:36:33]execute_script returns [15:36:33]free content buf [15:36:33]Sock 8.Close socket [15:36:33]Sock 8.Thread stoped [15:36:37]OFD Sender: No OFD packet to send [15:36:42]OFD Sender: No OFD packet to send [15:36:47]OFD Sender: No OFD packet to send [15:36:52]OFD Sender: No OFD packet to send [15:36:57]OFD Sender: No OFD packet to send [15:37:02]OFD Sender: No OFD packet to send [15:37:04]accept exits with 9 [15:37:04]New connection [15:37:04]New thread 3066674532 created [15:37:04]Thread 3066531172 joined [15:37:04]Waiting for new connection... [15:37:04] Sock 9.Parse request [15:37:04]Sock 9.Check first char [15:37:04]Sock 9.First char is OK [15:37:04]request: POST /json_proto HTTP/1.0 [15:37:04]Method: POST [15:37:04]URL: /json_proto [15:37:04]Method is POST - this is cgi request [15:37:04]url: /json_proto [15:37:04]query_string will be loaded in cgi processing [15:37:04]execute_cgi json_proto POST (null) [15:37:04]execute_cgi path=json_proto method=POST [15:37:04]POST find Content-Length [15:37:04]Host: 172.17.56.4:8080 [15:37:04]Content-Length: 677 [15:37:04]Content-Type: application/json [15:37:04] [15:37:04]POST finish read [15:37:04]Found Content-Length = 677 [15:37:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459110", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:37:04]execute_script... [15:37: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)459110", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:37:04]POST & json_proto [15:37:04]process_json_proto [15:37:04]json parsed OK: [15:37:04]protocol is kg_v1.0 [15:37:04]action value=close_receipt [15:37:04]process_action close_receipt [15:37:04]cmd_close_receipt [15:37:04]MH_GetDate [15:37:04]Write to MH i2c: F0 00 00 9A 00 89 [15:37:04]Write i2c OK [15:37:04]MH_I2C_Read... [15:37:04]Read from MH i2c: F0 [15:37:04]MH_I2C_Read... [15:37:04]Read from MH i2c: F0 09 00 [15:37:04]MH_I2C_Read... [15:37:04]Read from MH i2c: F0 09 00 9A 00 00 A1 F0 93 66 C9 DC B2 64 D7 [15:37:04]GetLastDocTimeStamp 1720971390 [15:37:04]current date 1720971425 [15:37:04]FM_GetShiftState [15:37:04]SAM_PROTO_GetShiftState [15:37:04]wFMCommunicate request_size=4 [15:37:04]MH_SAM_APDU [15:37:04]CAPDU: 80 13 01 00 [15:37:04]Write to MH i2c: E2 08 00 9B 00 80 13 01 00 00 00 00 00 18 [15:37:04]Write i2c OK [15:37:04]MH_I2C_Read... [15:37:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:04]Read from MH i2c: E2 [15:37:04]MH_I2C_Read... [15:37:04]Read from MH i2c: E2 0E 00 [15:37:04]MH_I2C_Read... [15:37:04]Read from MH i2c: E2 0E 00 9B 00 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 98 [15:37:04]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [15:37:04]wFMCommunicate OK [15:37:04]SAM_PROTO_GetShiftState done [15:37:04]FM_GetShiftState done [15:37:04]opened in 1720917342 [15:37:04]opened+sec_in_day 1721003742 [15:37:04]quantity*price = 40006 [15:37:04]sum+1 = 40007 [15:37:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 207 14.07.2024 15:37 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165009 ФПД: 277478057393554 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T153705&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165009&fm=277478057393554&tin=02508201610067®Number=0000000000090829&sum=40000 [15:37:05]StoreToDocumentArchive [15:37:05]shift 447 fd 165009 [15:37:05]save to /storage/0447/doc_00165009 [15:37:05]save last doc name /storage/0447/doc_00165009 to /storage/kkm_last_doc_name [15:37:05]save OK [15:37:05]Clear old archive folders... [15:37:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:37:05]tlvbuf is 01493610 [15:37:05]SAM_PROTO_ClearQueue [15:37:05]wFMCommunicate request_size=4 [15:37:05]MH_SAM_APDU [15:37:05]CAPDU: 80 09 00 00 [15:37:05]Write to MH i2c: E2 08 00 A8 00 80 09 00 00 00 00 00 00 1A [15:37:05]Write i2c OK [15:37:05]MH_I2C_Read... [15:37:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:37:05]Read from MH i2c: E2 [15:37:05]MH_I2C_Read... [15:37:05]Read from MH i2c: E2 03 00 [15:37:05]MH_I2C_Read... [15:37:05]Read from MH i2c: E2 03 00 A8 00 00 90 00 1C [15:37:05]RAPDU: 90 00 [15:37:05]wFMCommunicate OK [15:37:05]SAM_PROTO_ClearQueue done [15:37:05]KKMCreateOFDPacket [15:37:05]OFDProtocolAddRootSTLVToBuf [15:37:05]FM_MakeSignedData [15:37:05]FM_MakeSignedData [15:37:05]SAM_PROTO_SignData [15:37:05]wFMCommunicate request_size=4 [15:37:05]MH_SAM_APDU [15:37:05]CAPDU: 80 0D 01 02 [15:37:05]Write to MH i2c: E2 08 00 A9 00 80 0D 01 02 00 00 00 00 22 [15:37:05]Write i2c OK [15:37:05]MH_I2C_Read... [15:37:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:37:05]Read from MH i2c: E2 [15:37:05]MH_I2C_Read... [15:37:05]Read from MH i2c: E2 03 00 [15:37:05]MH_I2C_Read... [15:37:05]Read from MH i2c: E2 03 00 A9 00 00 90 00 1D [15:37:05]RAPDU: 90 00 [15:37:05]wFMCommunicate OK [15:37:05]wFMCommunicate request_size=255 [15:37:05]MH_SAM_APDU [15:37:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 CF 00 00 00 F4 03 04 00 A1 F0 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 91 84 02 00 35 04 06 00 FC [15:37:05]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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 CF 00 00 00 F4 03 04 00 A1 F0 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 91 84 02 00 35 04 06 00 FC 00 00 A7 [15:37:05]Write i2c OK [15:37:05]MH_I2C_Read... [15:37:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:06]Read from MH i2c: E2 [15:37:06]MH_I2C_Read... [15:37:06]Read from MH i2c: E2 03 00 [15:37:06]MH_I2C_Read... [15:37:06]Read from MH i2c: E2 03 00 AA 00 00 90 00 1E [15:37:06]RAPDU: 90 00 [15:37:06]wFMCommunicate OK [15:37:06]wFMCommunicate request_size=10 [15:37:06]MH_SAM_APDU [15:37:06]CAPDU: 80 0D 02 02 05 5D 65 0B 3D 92 [15:37:06]Write to MH i2c: E2 0D 00 AB 00 80 0D 02 02 05 00 5D 65 0B 3D 92 00 00 CB [15:37:06]Write i2c OK [15:37:06]MH_I2C_Read... [15:37:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:06]Read from MH i2c: E2 [15:37:06]MH_I2C_Read... [15:37:06]Read from MH i2c: E2 03 00 [15:37:06]MH_I2C_Read... [15:37:06]Read from MH i2c: E2 03 00 AB 00 00 90 00 1F [15:37:06]RAPDU: 90 00 [15:37:06]wFMCommunicate OK [15:37:06]wFMCommunicate request_size=4 [15:37:06]MH_SAM_APDU [15:37:06]CAPDU: 80 0D 03 02 [15:37:06]Write to MH i2c: E2 08 00 AC 00 80 0D 03 02 00 00 00 00 27 [15:37:06]Write i2c OK [15:37:06]MH_I2C_Read... [15:37:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:37:06]Read from MH i2c: E2 [15:37:06]MH_I2C_Read... [15:37:06]Read from MH i2c: E2 0B 00 [15:37:06]MH_I2C_Read... [15:37:06]Read from MH i2c: E2 0B 00 AC 00 00 D5 2E 98 44 14 C1 F9 23 90 00 F8 [15:37:06]RAPDU: D5 2E 98 44 14 C1 F9 23 90 00 [15:37:06]wFMCommunicate OK [15:37:06]SAM_PROTO_SignData done [15:37:06]FM_MakeSignedData done [15:37:06]CreateOFDProtocolMessage [15:37:06]wFMCommunicate request_size=4 [15:37:06]MH_SAM_APDU [15:37:06]CAPDU: 80 11 00 00 [15:37:06]Write to MH i2c: E2 08 00 AD 00 80 11 00 00 00 00 00 00 27 [15:37:06]Write i2c OK [15:37:06]MH_I2C_Read... [15:37:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:06]Read from MH i2c: E2 [15:37:06]MH_I2C_Read... [15:37:06]Read from MH i2c: E2 17 00 [15:37:06]MH_I2C_Read... [15:37:06]Read from MH i2c: E2 17 00 AD 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 7D [15:37:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:37:06]wFMCommunicate OK [15:37:06]CreateOFDProtocolMessage done [15:37:06]OFDSenderStorePacket 165009 [15:37:06]StoreOFDPacket docnum=165009 [15:37:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 1C DA 07 01 7F DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 CF 00 00 00 F4 03 04 00 A1 F0 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 91 84 02 00 35 04 06 00 FC 5D 65 0B 3D 92 D5 2E 98 44 14 C1 F9 23 [15:37:06]CheckFolder [15:37:06]dirname=/storage/ofd_packets [15:37:06]CheckFolder done [15:37:06]ProducePacketName [15:37:06]name=ofd_packets/00165009 [15:37:06]NVStorageSaveData ofd_packets/00165009 [15:37:06]File name is /storage/ofd_packets/00165009 [15:37:06]Write 301 bytes [15:37:06]NVStorageSaveData done [15:37:06]OFDSenderStorePacket done [15:37:06]KKMCreateOFDPacket done [15:37:06]NVStorageSaveData kkm_last_timestamp [15:37:06]File name is /storage/kkm_last_timestamp [15:37:06]Write 4 bytes [15:37:06]NVStorageSaveData done [15:37:06]ExternCall_PrintAddStr [15:37:06]wPrintStart [15:37:06]Write to MH i2c: 01 00 00 AE 00 AE [15:37:06]Write i2c OK [15:37:06]MH_I2C_Read... [15:37:06]Read from MH i2c: 01 [15:37:06]MH_I2C_Read... [15:37:06]Read from MH i2c: 01 07 00 [15:37:06]MH_I2C_Read... [15:37:06]Read from MH i2c: 01 07 00 AE 00 00 00 00 00 00 FF 0F C3 [15:37:06]RasterBufferAndPrint [15:37:06]line Счет N : (1)459110 [15:37:06]line ИНН: 02508201610067 [15:37:06]line Контрольно-Кассовый Чек [15:37:06]line ПРОДАЖА [15:37:06]line ТРК (МРК, ГНК) : 12 [15:37:06]line Товар: 2710124130 [15:37:06]line Аи-92-К-5 [15:37:06]line 6.080 * 65.80 [15:37:06]line = 400.06 [15:37:06]line НДС 12% НСП 1% [15:37:06]line > о реализуемом товаре [15:37:06]line ОКРУГЛЕНИЕ: -0.06 [15:37:06]line ИТОГО: 400.00 [15:37:06]line Внесено: 400.00 [15:37:06]line СДАЧА: 0.00 [15:37:06]line НСП 1% : 3.54 [15:37:06]line НДС 12% : 42.48 [15:37:06]line Наличными: 400.00 [15:37:06]line Безнал.: 0.00 [15:37:06]line Место: АЗС № 72 "Партнер Нефть" [15:37:06]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:37:06]line СНО: Общий режим [15:37:06]line Чек 207 14.07.2024 15:37 [15:37:06]line Смена: 447 ФФД: 1.0 [15:37:06]line ЗНМ: 0300000160 [15:37:06]line РНМ: 0000000000090829 [15:37:06]line Версия ККМ: 001 [15:37:06]line ФМ: 0000000000874718 [15:37:06]line ФД: 165009 [15:37:06]line ФПД: 277478057393554 [15:37:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T153705&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165009&fm=277478057393554&tin=02508201610067®Number=0000000000090829&sum=40000 [15:37:06]OFD Sender: Processing packet 165009 [packets to send 105, broken 104] [15:37:06]ProducePacketName [15:37:06]name=ofd_packets/00165009 [15:37:06]OFD Sender: To server: pG, [15:37:06]CommunicateWithHost lk.salyk.kg:30040 [15:37:06]ConnectInit lk.salyk.kg [15:37:06]written 0, free lines is 4095 [15:37:06]Connected sock=10 [15:37:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 1C DA 07 01 7F DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 CF 00 00 00 F4 03 04 00 A1 F0 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 91 84 02 00 35 04 06 00 FC 5D 65 0B 3D 92 D5 2E 98 44 14 C1 F9 23 [15:37:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 05 05 47 00 F6 D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 91 84 02 00 F4 03 04 00 2E 97 93 66 B6 04 01 00 00 79 19 30 FE 66 86 93 2C [15:37:06]CommunicateWithHost err = 0 [15:37:06]CheckOFDResponse [15:37:06]1017 (14) - 77093643461234 [15:37:06]1041 (16) - 0000000000874718 [15:37:06]1040 (4) - 165009 [15:37:06]1012 (4) - 14.07.2024 09:15 [15:37:06]1206 (1) - 0 [15:37:06]OFD Sender: Remove packet 165009 [15:37:06]ProducePacketName [15:37:06]name=ofd_packets/00165009 [15:37:06]NVStorageDeleteData [15:37:07]Write to MH i2c: 01 00 00 D8 00 D8 [15:37:07]Write i2c OK [15:37:07]MH_I2C_Read... [15:37:07]Read from MH i2c: 01 [15:37:07]MH_I2C_Read... [15:37:07]Read from MH i2c: 01 07 00 [15:37:07]MH_I2C_Read... [15:37:07]Read from MH i2c: 01 07 00 D8 00 00 00 00 00 00 F0 0C DB [15:37:07]RasterBufferAndPrint [15:37:07]line [15:37:07]line [15:37:07]line [15:37:07]line [15:37:07]line [15:37:07]written 0, free lines is 3318 [15:37:07]MH_Cut [15:37:07]Write to MH i2c: D1 01 00 DF 00 01 B1 [15:37:07]Write i2c OK [15:37:07]MH_I2C_Read... [15:37:07]Read from MH i2c: D1 [15:37:07]MH_I2C_Read... [15:37:07]Read from MH i2c: D1 01 00 [15:37:07]MH_I2C_Read... [15:37:07]Read from MH i2c: D1 01 00 DF 00 00 B0 [15:37:07]Write to MH i2c: 01 00 00 E0 00 E0 [15:37:07]Write i2c OK [15:37:07]MH_I2C_Read... [15:37:07]OFD Sender: No OFD packet to send [15:37:07]*** Cut start [15:37:07]*** Partial cut [15:37:07]*** CUTSNS_PIN = 1 [15:37:07]*** CUTSNS_PIN = 0 [15:37:07]*** Brake cut motor [15:37:08]Read from MH i2c: 01 [15:37:08]MH_I2C_Read... [15:37:08]*** Stop cut motor [15:37:08]*** Cut end [15:37:08]Read from MH i2c: 01 07 00 [15:37:08]MH_I2C_Read... [15:37:08]Read from MH i2c: 01 07 00 E0 00 00 00 00 00 00 FF 0F F5 [15:37:08]process_action close_receipt done [15:37:08]requested_data is exist [15:37:08]produce_requested_data [15:37:08]requested_item fm.sn is exist - process it [15:37:08]wFMCommunicate request_size=4 [15:37:08]MH_SAM_APDU [15:37:08]CAPDU: 80 11 00 00 [15:37:08]Write to MH i2c: E2 08 00 E1 00 80 11 00 00 00 00 00 00 5B [15:37:08]Write i2c OK [15:37:08]MH_I2C_Read... [15:37:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:08]Read from MH i2c: E2 [15:37:08]MH_I2C_Read... [15:37:08]Read from MH i2c: E2 17 00 [15:37:08]MH_I2C_Read... [15:37:08]Read from MH i2c: E2 17 00 E1 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B1 [15:37:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:37:08]wFMCommunicate OK [15:37:08]requested_item fd.num is exist - process it [15:37:08]SAM_PROTO_GetFieldsCounters [15:37:08]wFMCommunicate request_size=4 [15:37:08]MH_SAM_APDU [15:37:08]CAPDU: 80 13 00 00 [15:37:08]Write to MH i2c: E2 08 00 E2 00 80 13 00 00 00 00 00 00 5E [15:37:08]Write i2c OK [15:37:08]MH_I2C_Read... [15:37:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:37:08]Read from MH i2c: E2 [15:37:08]MH_I2C_Read... [15:37:08]Read from MH i2c: E2 62 00 [15:37:08]MH_I2C_Read... [15:37:08]Read from MH i2c: E2 62 00 E2 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 91 84 02 00 0E 04 04 00 BF 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 C9 [15:37:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 91 84 02 00 0E 04 04 00 BF 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 [15:37:08]wFMCommunicate OK [15:37:08]SAM_PROTO_GetFieldsCounters done [15:37:08]requested_item shift.num is exist - process it [15:37:08]requested_item shift.opened is exist - process it [15:37:08]req_shift_opened [15:37:08]FM_GetShiftState [15:37:08]SAM_PROTO_GetShiftState [15:37:08]wFMCommunicate request_size=4 [15:37:08]MH_SAM_APDU [15:37:08]CAPDU: 80 13 01 00 [15:37:08]Write to MH i2c: E2 08 00 E3 00 80 13 01 00 00 00 00 00 60 [15:37:08]Write i2c OK [15:37:08]MH_I2C_Read... [15:37:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:08]Read from MH i2c: E2 [15:37:08]MH_I2C_Read... [15:37:08]Read from MH i2c: E2 0E 00 [15:37:08]MH_I2C_Read... [15:37:08]Read from MH i2c: E2 0E 00 E3 00 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 E0 [15:37:08]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [15:37:08]wFMCommunicate OK [15:37:08]SAM_PROTO_GetShiftState done [15:37:08]FM_GetShiftState done [15:37:08]req_shift_opened done [15:37:08]requested_item shift.open_date is exist - process it [15:37:08]req_shift_open_date [15:37:08]req_shift_open_date done [15:37:08]produce_requested_data done [15:37:08]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165009,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [15:37:08]process_action_free close_receipt [15:37:08]json_value_free [15:37:08]json_value_free done [15:37:08]process_json_proto returns [15:37:08]Send response to host [15:37:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165009,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [15:37:08]free response buf [15:37:08]execute_script done [15:37:08]execute_script returns [15:37:08]free content buf [15:37:08]Sock 9.Close socket [15:37:08]Sock 9.Thread stoped [15:37:12]OFD Sender: No OFD packet to send [15:37:17]OFD Sender: No OFD packet to send [15:37:22]OFD Sender: No OFD packet to send [15:37:27]OFD Sender: No OFD packet to send [15:37:32]OFD Sender: No OFD packet to send [15:37:37]OFD Sender: No OFD packet to send [15:37:42]OFD Sender: No OFD packet to send [15:37:47]OFD Sender: No OFD packet to send [15:37:52]OFD Sender: No OFD packet to send [15:37:57]OFD Sender: No OFD packet to send [15:38:02]OFD Sender: No OFD packet to send [15:38:07]OFD Sender: No OFD packet to send [15:38:12]OFD Sender: No OFD packet to send [15:38:17]OFD Sender: No OFD packet to send [15:38:22]OFD Sender: No OFD packet to send [15:38:27]OFD Sender: No OFD packet to send [15:38:32]OFD Sender: No OFD packet to send [15:38:37]OFD Sender: No OFD packet to send [15:38:42]OFD Sender: No OFD packet to send [15:38:47]OFD Sender: No OFD packet to send [15:38:52]OFD Sender: No OFD packet to send [15:38:57]OFD Sender: No OFD packet to send [15:39:02]OFD Sender: No OFD packet to send [15:39:07]OFD Sender: No OFD packet to send [15:39:12]OFD Sender: No OFD packet to send [15:39:17]OFD Sender: No OFD packet to send [15:39:22]OFD Sender: No OFD packet to send [15:39:27]OFD Sender: No OFD packet to send [15:39:32]OFD Sender: No OFD packet to send [15:39:37]OFD Sender: No OFD packet to send [15:39:42]OFD Sender: No OFD packet to send [15:39:47]OFD Sender: No OFD packet to send [15:39:52]OFD Sender: No OFD packet to send [15:39:57]OFD Sender: No OFD packet to send [15:40:02]OFD Sender: No OFD packet to send [15:40:07]OFD Sender: No OFD packet to send [15:40:12]OFD Sender: No OFD packet to send [15:40:17]OFD Sender: No OFD packet to send [15:40:22]OFD Sender: No OFD packet to send [15:40:27]OFD Sender: No OFD packet to send [15:40:32]OFD Sender: No OFD packet to send [15:40:37]OFD Sender: No OFD packet to send [15:40:42]OFD Sender: No OFD packet to send [15:40:47]OFD Sender: No OFD packet to send [15:40:52]OFD Sender: No OFD packet to send [15:40:57]OFD Sender: No OFD packet to send [15:41:02]OFD Sender: No OFD packet to send [15:41:07]OFD Sender: No OFD packet to send [15:41:12]OFD Sender: No OFD packet to send [15:41:17]OFD Sender: No OFD packet to send [15:41:22]OFD Sender: No OFD packet to send [15:41:27]OFD Sender: No OFD packet to send [15:41:32]OFD Sender: No OFD packet to send [15:41:37]OFD Sender: No OFD packet to send [15:41:42]OFD Sender: No OFD packet to send [15:41:47]OFD Sender: No OFD packet to send [15:41:52]OFD Sender: No OFD packet to send [15:41:57]OFD Sender: No OFD packet to send [15:42:02]OFD Sender: No OFD packet to send [15:42:07]OFD Sender: No OFD packet to send [15:42:12]OFD Sender: No OFD packet to send [15:42:14]accept exits with 8 [15:42:14]New connection [15:42:14]New thread 3066531172 created [15:42:14]Thread 3066674532 joined [15:42:14]Waiting for new connection... [15:42:14] Sock 8.Parse request [15:42:14]Sock 8.Check first char [15:42:14]Sock 8.First char is OK [15:42:14]request: POST /json_proto HTTP/1.0 [15:42:14]Method: POST [15:42:14]URL: /json_proto [15:42:14]Method is POST - this is cgi request [15:42:14]url: /json_proto [15:42:14]query_string will be loaded in cgi processing [15:42:14]execute_cgi json_proto POST (null) [15:42:14]execute_cgi path=json_proto method=POST [15:42:14]POST find Content-Length [15:42:14]Host: 172.17.56.4:8080 [15:42:14]Content-Length: 677 [15:42:14]Content-Type: application/json [15:42:14] [15:42:14]POST finish read [15:42:14]Found Content-Length = 677 [15:42:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459111", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:14]execute_script... [15:42: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)459111", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:14]POST & json_proto [15:42:14]process_json_proto [15:42:14]json parsed OK: [15:42:14]protocol is kg_v1.0 [15:42:14]action value=close_receipt [15:42:14]process_action close_receipt [15:42:14]cmd_close_receipt [15:42:14]MH_GetDate [15:42:14]Write to MH i2c: F0 00 00 E4 00 D3 [15:42:14]Write i2c OK [15:42:14]MH_I2C_Read... [15:42:14]Read from MH i2c: F0 [15:42:14]MH_I2C_Read... [15:42:14]Read from MH i2c: F0 09 00 [15:42:14]MH_I2C_Read... [15:42:14]Read from MH i2c: F0 09 00 E4 00 00 D7 F1 93 66 C9 DC B2 64 58 [15:42:14]GetLastDocTimeStamp 1720971425 [15:42:14]current date 1720971735 [15:42:14]FM_GetShiftState [15:42:14]SAM_PROTO_GetShiftState [15:42:14]wFMCommunicate request_size=4 [15:42:14]MH_SAM_APDU [15:42:14]CAPDU: 80 13 01 00 [15:42:14]Write to MH i2c: E2 08 00 E5 00 80 13 01 00 00 00 00 00 62 [15:42:14]Write i2c OK [15:42:14]MH_I2C_Read... [15:42:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:14]Read from MH i2c: E2 [15:42:14]MH_I2C_Read... [15:42:14]Read from MH i2c: E2 0E 00 [15:42:14]MH_I2C_Read... [15:42:14]Read from MH i2c: E2 0E 00 E5 00 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 E2 [15:42:14]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [15:42:14]wFMCommunicate OK [15:42:14]SAM_PROTO_GetShiftState done [15:42:14]FM_GetShiftState done [15:42:14]opened in 1720917342 [15:42:14]opened+sec_in_day 1721003742 [15:42:14]quantity*price = 50008 [15:42:14]sum+1 = 50009 [15:42:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 208 14.07.2024 15:42 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165010 ФПД: 243172673133305 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T154215&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165010&fm=243172673133305&tin=02508201610067®Number=0000000000090829&sum=50000 [15:42:15]StoreToDocumentArchive [15:42:15]shift 447 fd 165010 [15:42:15]save to /storage/0447/doc_00165010 [15:42:15]save last doc name /storage/0447/doc_00165010 to /storage/kkm_last_doc_name [15:42:15]save OK [15:42:15]Clear old archive folders... [15:42:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:42:15]tlvbuf is 014928E0 [15:42:15]SAM_PROTO_ClearQueue [15:42:15]wFMCommunicate request_size=4 [15:42:15]MH_SAM_APDU [15:42:15]CAPDU: 80 09 00 00 [15:42:15]Write to MH i2c: E2 08 00 F2 00 80 09 00 00 00 00 00 00 64 [15:42:15]Write i2c OK [15:42:15]MH_I2C_Read... [15:42:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:42:15]Read from MH i2c: E2 [15:42:15]MH_I2C_Read... [15:42:15]Read from MH i2c: E2 03 00 [15:42:15]MH_I2C_Read... [15:42:15]Read from MH i2c: E2 03 00 F2 00 00 90 00 66 [15:42:15]RAPDU: 90 00 [15:42:15]wFMCommunicate OK [15:42:15]SAM_PROTO_ClearQueue done [15:42:15]KKMCreateOFDPacket [15:42:15]OFDProtocolAddRootSTLVToBuf [15:42:15]FM_MakeSignedData [15:42:15]FM_MakeSignedData [15:42:15]SAM_PROTO_SignData [15:42:15]wFMCommunicate request_size=4 [15:42:15]MH_SAM_APDU [15:42:15]CAPDU: 80 0D 01 02 [15:42:15]Write to MH i2c: E2 08 00 F3 00 80 0D 01 02 00 00 00 00 6C [15:42:15]Write i2c OK [15:42:15]MH_I2C_Read... [15:42:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:42:15]Read from MH i2c: E2 [15:42:15]MH_I2C_Read... [15:42:15]Read from MH i2c: E2 03 00 [15:42:15]MH_I2C_Read... [15:42:15]Read from MH i2c: E2 03 00 F3 00 00 90 00 67 [15:42:15]RAPDU: 90 00 [15:42:15]wFMCommunicate OK [15:42:15]wFMCommunicate request_size=255 [15:42:15]MH_SAM_APDU [15:42:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 D0 00 00 00 F4 03 04 00 D7 F1 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 92 84 02 00 35 04 06 00 DD [15:42:15]Write to MH i2c: E2 02 01 F4 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 D0 00 00 00 F4 03 04 00 D7 F1 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 92 84 02 00 35 04 06 00 DD 00 00 2B [15:42:15]Write i2c OK [15:42:15]MH_I2C_Read... [15:42:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:16]Read from MH i2c: E2 [15:42:16]MH_I2C_Read... [15:42:16]Read from MH i2c: E2 03 00 [15:42:16]MH_I2C_Read... [15:42:16]Read from MH i2c: E2 03 00 F4 00 00 90 00 68 [15:42:16]RAPDU: 90 00 [15:42:16]wFMCommunicate OK [15:42:16]wFMCommunicate request_size=10 [15:42:16]MH_SAM_APDU [15:42:16]CAPDU: 80 0D 02 02 05 2A 0C CD 1A F9 [15:42:16]Write to MH i2c: E2 0D 00 F5 00 80 0D 02 02 05 00 2A 0C CD 1A F9 00 00 8F [15:42:16]Write i2c OK [15:42:16]MH_I2C_Read... [15:42:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:16]Read from MH i2c: E2 [15:42:16]MH_I2C_Read... [15:42:16]Read from MH i2c: E2 03 00 [15:42:16]MH_I2C_Read... [15:42:16]Read from MH i2c: E2 03 00 F5 00 00 90 00 69 [15:42:16]RAPDU: 90 00 [15:42:16]wFMCommunicate OK [15:42:16]wFMCommunicate request_size=4 [15:42:16]MH_SAM_APDU [15:42:16]CAPDU: 80 0D 03 02 [15:42:16]Write to MH i2c: E2 08 00 F6 00 80 0D 03 02 00 00 00 00 71 [15:42:16]Write i2c OK [15:42:16]MH_I2C_Read... [15:42:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:42:16]Read from MH i2c: E2 [15:42:16]MH_I2C_Read... [15:42:16]Read from MH i2c: E2 0B 00 [15:42:16]MH_I2C_Read... [15:42:16]Read from MH i2c: E2 0B 00 F6 00 00 91 9E BB A1 E5 BA 7A 47 90 00 5D [15:42:16]RAPDU: 91 9E BB A1 E5 BA 7A 47 90 00 [15:42:16]wFMCommunicate OK [15:42:16]SAM_PROTO_SignData done [15:42:16]FM_MakeSignedData done [15:42:16]CreateOFDProtocolMessage [15:42:16]wFMCommunicate request_size=4 [15:42:16]MH_SAM_APDU [15:42:16]CAPDU: 80 11 00 00 [15:42:16]Write to MH i2c: E2 08 00 F7 00 80 11 00 00 00 00 00 00 71 [15:42:16]Write i2c OK [15:42:16]MH_I2C_Read... [15:42:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:16]Read from MH i2c: E2 [15:42:16]MH_I2C_Read... [15:42:16]Read from MH i2c: E2 17 00 [15:42:16]MH_I2C_Read... [15:42:16]Read from MH i2c: E2 17 00 F7 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C7 [15:42:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:42:16]wFMCommunicate OK [15:42:16]CreateOFDProtocolMessage done [15:42:16]OFDSenderStorePacket 165010 [15:42:16]StoreOFDPacket docnum=165010 [15:42:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 71 18 07 01 3E 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 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 D0 00 00 00 F4 03 04 00 D7 F1 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 92 84 02 00 35 04 06 00 DD 2A 0C CD 1A F9 91 9E BB A1 E5 BA 7A 47 [15:42:16]CheckFolder [15:42:16]dirname=/storage/ofd_packets [15:42:16]CheckFolder done [15:42:16]ProducePacketName [15:42:16]name=ofd_packets/00165010 [15:42:16]NVStorageSaveData ofd_packets/00165010 [15:42:16]File name is /storage/ofd_packets/00165010 [15:42:16]Write 301 bytes [15:42:16]NVStorageSaveData done [15:42:16]OFDSenderStorePacket done [15:42:16]KKMCreateOFDPacket done [15:42:16]NVStorageSaveData kkm_last_timestamp [15:42:16]File name is /storage/kkm_last_timestamp [15:42:16]Write 4 bytes [15:42:16]NVStorageSaveData done [15:42:16]ExternCall_PrintAddStr [15:42:16]wPrintStart [15:42:16]Write to MH i2c: 01 00 00 F8 00 F8 [15:42:16]Write i2c OK [15:42:16]MH_I2C_Read... [15:42:16]Read from MH i2c: 01 [15:42:16]MH_I2C_Read... [15:42:16]Read from MH i2c: 01 07 00 [15:42:16]MH_I2C_Read... [15:42:16]Read from MH i2c: 01 07 00 F8 00 00 00 00 00 00 FF 0F 0D [15:42:16]RasterBufferAndPrint [15:42:16]line Счет N : (1)459111 [15:42:16]line ИНН: 02508201610067 [15:42:16]line Контрольно-Кассовый Чек [15:42:16]line ПРОДАЖА [15:42:16]line ТРК (МРК, ГНК) : 12 [15:42:16]line Товар: 2710124130 [15:42:16]line Аи-92-К-5 [15:42:16]line 7.600 * 65.80 [15:42:16]line = 500.08 [15:42:16]line НДС 12% НСП 1% [15:42:16]line > о реализуемом товаре [15:42:16]line ОКРУГЛЕНИЕ: -0.08 [15:42:16]line ИТОГО: 500.00 [15:42:16]line Внесено: 500.00 [15:42:16]line СДАЧА: 0.00 [15:42:16]line НСП 1% : 4.42 [15:42:16]line НДС 12% : 53.11 [15:42:16]line Наличными: 500.00 [15:42:16]line Безнал.: 0.00 [15:42:16]line Место: АЗС № 72 "Партнер Нефть" [15:42:16]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:42:16]line СНО: Общий режим [15:42:16]line Чек 208 14.07.2024 15:42 [15:42:16]line Смена: 447 ФФД: 1.0 [15:42:16]line ЗНМ: 0300000160 [15:42:16]line РНМ: 0000000000090829 [15:42:16]line Версия ККМ: 001 [15:42:16]line ФМ: 0000000000874718 [15:42:16]line ФД: 165010 [15:42:16]line ФПД: 243172673133305 [15:42:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T154215&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165010&fm=243172673133305&tin=02508201610067®Number=0000000000090829&sum=50000 [15:42:16]written 0, free lines is 4095 [15:42:16]OFD Sender: Processing packet 165010 [packets to send 105, broken 104] [15:42:16]ProducePacketName [15:42:16]name=ofd_packets/00165010 [15:42:16]OFD Sender: To server: pG, [15:42:16]CommunicateWithHost lk.salyk.kg:30040 [15:42:16]ConnectInit lk.salyk.kg [15:42:16]Connected sock=11 [15:42:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 71 18 07 01 3E 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 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 D0 00 00 00 F4 03 04 00 D7 F1 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 92 84 02 00 35 04 06 00 DD 2A 0C CD 1A F9 91 9E BB A1 E5 BA 7A 47 [15:42:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 59 33 47 00 46 E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 92 84 02 00 F4 03 04 00 64 98 93 66 B6 04 01 00 00 57 5D 39 CF 4C 9B 4F B0 [15:42:16]CommunicateWithHost err = 0 [15:42:16]CheckOFDResponse [15:42:16]1017 (14) - 77093643461234 [15:42:16]1041 (16) - 0000000000874718 [15:42:16]1040 (4) - 165010 [15:42:16]1012 (4) - 14.07.2024 09:20 [15:42:16]1206 (1) - 0 [15:42:16]OFD Sender: Remove packet 165010 [15:42:16]ProducePacketName [15:42:16]name=ofd_packets/00165010 [15:42:16]NVStorageDeleteData [15:42:16]Write to MH i2c: 01 00 00 22 01 23 [15:42:16]Write i2c OK [15:42:16]MH_I2C_Read... [15:42:16]Read from MH i2c: 01 [15:42:16]MH_I2C_Read... [15:42:16]Read from MH i2c: 01 07 00 [15:42:16]MH_I2C_Read... [15:42:16]Read from MH i2c: 01 07 00 22 01 00 00 00 00 00 F0 0C 26 [15:42:16]RasterBufferAndPrint [15:42:16]line [15:42:16]line [15:42:16]line [15:42:16]line [15:42:16]line [15:42:16]written 0, free lines is 3318 [15:42:16]MH_Cut [15:42:16]Write to MH i2c: D1 01 00 29 01 01 FC [15:42:16]Write i2c OK [15:42:16]MH_I2C_Read... [15:42:16]Read from MH i2c: D1 [15:42:16]MH_I2C_Read... [15:42:16]Read from MH i2c: D1 01 00 [15:42:16]MH_I2C_Read... [15:42:16]Read from MH i2c: D1 01 00 29 01 00 FB [15:42:16]Write to MH i2c: 01 00 00 2A 01 2B [15:42:16]Write i2c OK [15:42:16]MH_I2C_Read... [15:42:17]OFD Sender: No OFD packet to send [15:42:17]*** Cut start [15:42:17]*** Partial cut [15:42:17]*** CUTSNS_PIN = 1 [15:42:17]*** CUTSNS_PIN = 0 [15:42:17]*** Brake cut motor [15:42:18]Read from MH i2c: 01 [15:42:18]MH_I2C_Read... [15:42:18]*** Stop cut motor [15:42:18]*** Cut end [15:42:18]Read from MH i2c: 01 07 00 [15:42:18]MH_I2C_Read... [15:42:18]Read from MH i2c: 01 07 00 2A 01 00 00 00 00 00 FF 0F 40 [15:42:18]process_action close_receipt done [15:42:18]requested_data is exist [15:42:18]produce_requested_data [15:42:18]requested_item fm.sn is exist - process it [15:42:18]wFMCommunicate request_size=4 [15:42:18]MH_SAM_APDU [15:42:18]CAPDU: 80 11 00 00 [15:42:18]Write to MH i2c: E2 08 00 2B 01 80 11 00 00 00 00 00 00 A6 [15:42:18]Write i2c OK [15:42:18]MH_I2C_Read... [15:42:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:18]Read from MH i2c: E2 [15:42:18]MH_I2C_Read... [15:42:18]Read from MH i2c: E2 17 00 [15:42:18]MH_I2C_Read... [15:42:18]Read from MH i2c: E2 17 00 2B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 FC [15:42:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:42:18]wFMCommunicate OK [15:42:18]requested_item fd.num is exist - process it [15:42:18]SAM_PROTO_GetFieldsCounters [15:42:18]wFMCommunicate request_size=4 [15:42:18]MH_SAM_APDU [15:42:18]CAPDU: 80 13 00 00 [15:42:18]Write to MH i2c: E2 08 00 2C 01 80 13 00 00 00 00 00 00 A9 [15:42:18]Write i2c OK [15:42:18]MH_I2C_Read... [15:42:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:42:18]Read from MH i2c: E2 [15:42:18]MH_I2C_Read... [15:42:18]Read from MH i2c: E2 62 00 [15:42:18]MH_I2C_Read... [15:42:18]Read from MH i2c: E2 62 00 2C 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 92 84 02 00 0E 04 04 00 BF 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 18 [15:42:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 92 84 02 00 0E 04 04 00 BF 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 [15:42:18]wFMCommunicate OK [15:42:18]SAM_PROTO_GetFieldsCounters done [15:42:18]requested_item shift.num is exist - process it [15:42:18]requested_item shift.opened is exist - process it [15:42:18]req_shift_opened [15:42:18]FM_GetShiftState [15:42:18]SAM_PROTO_GetShiftState [15:42:18]wFMCommunicate request_size=4 [15:42:18]MH_SAM_APDU [15:42:18]CAPDU: 80 13 01 00 [15:42:18]Write to MH i2c: E2 08 00 2D 01 80 13 01 00 00 00 00 00 AB [15:42:18]Write i2c OK [15:42:18]MH_I2C_Read... [15:42:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:18]Read from MH i2c: E2 [15:42:18]MH_I2C_Read... [15:42:18]Read from MH i2c: E2 0E 00 [15:42:18]MH_I2C_Read... [15:42:18]Read from MH i2c: E2 0E 00 2D 01 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 2B [15:42:18]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [15:42:18]wFMCommunicate OK [15:42:18]SAM_PROTO_GetShiftState done [15:42:18]FM_GetShiftState done [15:42:18]req_shift_opened done [15:42:18]requested_item shift.open_date is exist - process it [15:42:18]req_shift_open_date [15:42:18]req_shift_open_date done [15:42:18]produce_requested_data done [15:42:18]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165010,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [15:42:18]process_action_free close_receipt [15:42:18]json_value_free [15:42:18]json_value_free done [15:42:18]process_json_proto returns [15:42:18]Send response to host [15:42:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165010,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [15:42:18]free response buf [15:42:18]execute_script done [15:42:18]execute_script returns [15:42:18]free content buf [15:42:18]Sock 8.Close socket [15:42:18]Sock 8.Thread stoped [15:42:22]OFD Sender: No OFD packet to send [15:42:27]OFD Sender: No OFD packet to send [15:42:32]OFD Sender: No OFD packet to send [15:42:37]OFD Sender: No OFD packet to send [15:42:42]OFD Sender: No OFD packet to send [15:42:47]OFD Sender: No OFD packet to send [15:42:52]OFD Sender: No OFD packet to send [15:42:57]OFD Sender: No OFD packet to send [15:43:02]OFD Sender: No OFD packet to send [15:43:07]OFD Sender: No OFD packet to send [15:43:12]OFD Sender: No OFD packet to send [15:43:17]OFD Sender: No OFD packet to send [15:43:22]OFD Sender: No OFD packet to send [15:43:27]OFD Sender: No OFD packet to send [15:43:32]OFD Sender: No OFD packet to send [15:43:37]OFD Sender: No OFD packet to send [15:43:42]OFD Sender: No OFD packet to send [15:43:47]OFD Sender: No OFD packet to send [15:43:52]OFD Sender: No OFD packet to send [15:43:57]OFD Sender: No OFD packet to send [15:44:02]OFD Sender: No OFD packet to send [15:44:07]OFD Sender: No OFD packet to send [15:44:12]OFD Sender: No OFD packet to send [15:44:17]OFD Sender: No OFD packet to send [15:44:22]OFD Sender: No OFD packet to send [15:44:27]OFD Sender: No OFD packet to send [15:44:32]OFD Sender: No OFD packet to send [15:44:37]OFD Sender: No OFD packet to send [15:44:42]OFD Sender: No OFD packet to send [15:44:47]OFD Sender: No OFD packet to send [15:44:52]OFD Sender: No OFD packet to send [15:44:57]OFD Sender: No OFD packet to send [15:45:02]OFD Sender: No OFD packet to send [15:45:07]OFD Sender: No OFD packet to send [15:45:12]OFD Sender: No OFD packet to send [15:45:17]OFD Sender: No OFD packet to send [15:45:22]OFD Sender: No OFD packet to send [15:45:27]OFD Sender: No OFD packet to send [15:45:32]OFD Sender: No OFD packet to send [15:45:37]OFD Sender: No OFD packet to send [15:45:42]OFD Sender: No OFD packet to send [15:45:47]OFD Sender: No OFD packet to send [15:45:52]OFD Sender: No OFD packet to send [15:45: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:04]accept exits with 9 [15:47:04]New connection [15:47:04]New thread 3066674532 created [15:47:04]Thread 3066531172 joined [15:47:04]Waiting for new connection... [15:47:04] Sock 9.Parse request [15:47:04]Sock 9.Check first char [15:47:04]Sock 9.First char is OK [15:47:04]request: POST /json_proto HTTP/1.0 [15:47:04]Method: POST [15:47:04]URL: /json_proto [15:47:04]Method is POST - this is cgi request [15:47:04]url: /json_proto [15:47:04]query_string will be loaded in cgi processing [15:47:04]execute_cgi json_proto POST (null) [15:47:04]execute_cgi path=json_proto method=POST [15:47:04]POST find Content-Length [15:47:04]Host: 172.17.56.4:8080 [15:47:04]Content-Length: 677 [15:47:04]Content-Type: application/json [15:47:04] [15:47:04]POST finish read [15:47:04]Found Content-Length = 677 [15:47:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459112", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 2.740, "sum" : 180.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 180.00, "total" : 180.00, "payments": [ { "type": 0, "sum" : 180.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:47:04]execute_script... [15:47: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)459112", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 2.740, "sum" : 180.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 180.00, "total" : 180.00, "payments": [ { "type": 0, "sum" : 180.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:47:04]POST & json_proto [15:47:04]process_json_proto [15:47:04]json parsed OK: [15:47:04]protocol is kg_v1.0 [15:47:04]action value=close_receipt [15:47:04]process_action close_receipt [15:47:04]cmd_close_receipt [15:47:04]MH_GetDate [15:47:04]Write to MH i2c: F0 00 00 2E 01 1E [15:47:04]Write i2c OK [15:47:04]MH_I2C_Read... [15:47:04]Read from MH i2c: F0 [15:47:04]MH_I2C_Read... [15:47:04]Read from MH i2c: F0 09 00 [15:47:04]MH_I2C_Read... [15:47:04]Read from MH i2c: F0 09 00 2E 01 00 F9 F2 93 66 C9 DC B2 64 C6 [15:47:04]GetLastDocTimeStamp 1720971735 [15:47:04]current date 1720972025 [15:47:04]FM_GetShiftState [15:47:04]SAM_PROTO_GetShiftState [15:47:04]wFMCommunicate request_size=4 [15:47:04]MH_SAM_APDU [15:47:04]CAPDU: 80 13 01 00 [15:47:04]Write to MH i2c: E2 08 00 2F 01 80 13 01 00 00 00 00 00 AD [15:47:04]Write i2c OK [15:47:04]MH_I2C_Read... [15:47:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:04]Read from MH i2c: E2 [15:47:04]MH_I2C_Read... [15:47:04]Read from MH i2c: E2 0E 00 [15:47:04]MH_I2C_Read... [15:47:04]Read from MH i2c: E2 0E 00 2F 01 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 2D [15:47:04]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [15:47:04]wFMCommunicate OK [15:47:04]SAM_PROTO_GetShiftState done [15:47:04]FM_GetShiftState done [15:47:04]opened in 1720917342 [15:47:04]opened+sec_in_day 1721003742 [15:47:04]quantity*price = 18029 [15:47:04]sum+1 = 18030 [15:47:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 180.00 Внесено: 180.00 СДАЧА: 0.00 НСП 1% : 1.59 НДС 12% : 19.15 Наличными: 180.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 209 14.07.2024 15:47 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165011 ФПД: 107039476935962 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T154705&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165011&fm=107039476935962&tin=02508201610067®Number=0000000000090829&sum=18000 [15:47:06]StoreToDocumentArchive [15:47:06]shift 447 fd 165011 [15:47:06]save to /storage/0447/doc_00165011 [15:47:06]save last doc name /storage/0447/doc_00165011 to /storage/kkm_last_doc_name [15:47:06]save OK [15:47:06]Clear old archive folders... [15:47:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:47:06]tlvbuf is 0146D110 [15:47:06]SAM_PROTO_ClearQueue [15:47:06]wFMCommunicate request_size=4 [15:47:06]MH_SAM_APDU [15:47:06]CAPDU: 80 09 00 00 [15:47:06]Write to MH i2c: E2 08 00 3C 01 80 09 00 00 00 00 00 00 AF [15:47:06]Write i2c OK [15:47:06]MH_I2C_Read... [15:47:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:47:06]Read from MH i2c: E2 [15:47:06]MH_I2C_Read... [15:47:06]Read from MH i2c: E2 03 00 [15:47:06]MH_I2C_Read... [15:47:06]Read from MH i2c: E2 03 00 3C 01 00 90 00 B1 [15:47:06]RAPDU: 90 00 [15:47:06]wFMCommunicate OK [15:47:06]SAM_PROTO_ClearQueue done [15:47:06]KKMCreateOFDPacket [15:47:06]OFDProtocolAddRootSTLVToBuf [15:47:06]FM_MakeSignedData [15:47:06]FM_MakeSignedData [15:47:06]SAM_PROTO_SignData [15:47:06]wFMCommunicate request_size=4 [15:47:06]MH_SAM_APDU [15:47:06]CAPDU: 80 0D 01 02 [15:47:06]Write to MH i2c: E2 08 00 3D 01 80 0D 01 02 00 00 00 00 B7 [15:47:06]Write i2c OK [15:47:06]MH_I2C_Read... [15:47:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:47:06]Read from MH i2c: E2 [15:47:06]MH_I2C_Read... [15:47:06]Read from MH i2c: E2 03 00 [15:47:06]MH_I2C_Read... [15:47:06]Read from MH i2c: E2 03 00 3D 01 00 90 00 B2 [15:47:06]RAPDU: 90 00 [15:47:06]wFMCommunicate OK [15:47:06]wFMCommunicate request_size=255 [15:47:06]MH_SAM_APDU [15:47:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B4 0A 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6D 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 F9 F2 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 93 84 02 00 35 04 06 00 61 [15:47:06]Write to MH i2c: E2 02 01 3E 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B4 0A 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6D 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 F9 F2 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 93 84 02 00 35 04 06 00 61 00 00 41 [15:47:06]Write i2c OK [15:47:06]MH_I2C_Read... [15:47:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:06]Read from MH i2c: E2 [15:47:06]MH_I2C_Read... [15:47:06]Read from MH i2c: E2 03 00 [15:47:06]MH_I2C_Read... [15:47:06]Read from MH i2c: E2 03 00 3E 01 00 90 00 B3 [15:47:06]RAPDU: 90 00 [15:47:06]wFMCommunicate OK [15:47:06]wFMCommunicate request_size=10 [15:47:06]MH_SAM_APDU [15:47:06]CAPDU: 80 0D 02 02 05 5A 11 FF ED 1A [15:47:06]Write to MH i2c: E2 0D 00 3F 01 80 0D 02 02 05 00 5A 11 FF ED 1A 00 00 35 [15:47:06]Write i2c OK [15:47:06]MH_I2C_Read... [15:47:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:06]Read from MH i2c: E2 [15:47:06]MH_I2C_Read... [15:47:06]Read from MH i2c: E2 03 00 [15:47:06]MH_I2C_Read... [15:47:06]Read from MH i2c: E2 03 00 3F 01 00 90 00 B4 [15:47:06]RAPDU: 90 00 [15:47:06]wFMCommunicate OK [15:47:06]wFMCommunicate request_size=4 [15:47:06]MH_SAM_APDU [15:47:06]CAPDU: 80 0D 03 02 [15:47:06]Write to MH i2c: E2 08 00 40 01 80 0D 03 02 00 00 00 00 BC [15:47:06]Write i2c OK [15:47:06]MH_I2C_Read... [15:47:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:47:06]Read from MH i2c: E2 [15:47:06]MH_I2C_Read... [15:47:06]Read from MH i2c: E2 0B 00 [15:47:06]MH_I2C_Read... [15:47:06]Read from MH i2c: E2 0B 00 40 01 00 D6 D0 65 0C BF 89 E0 F4 90 00 F0 [15:47:06]RAPDU: D6 D0 65 0C BF 89 E0 F4 90 00 [15:47:06]wFMCommunicate OK [15:47:06]SAM_PROTO_SignData done [15:47:06]FM_MakeSignedData done [15:47:06]CreateOFDProtocolMessage [15:47:06]wFMCommunicate request_size=4 [15:47:06]MH_SAM_APDU [15:47:06]CAPDU: 80 11 00 00 [15:47:06]Write to MH i2c: E2 08 00 41 01 80 11 00 00 00 00 00 00 BC [15:47:06]Write i2c OK [15:47:06]MH_I2C_Read... [15:47:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:06]Read from MH i2c: E2 [15:47:06]MH_I2C_Read... [15:47:06]Read from MH i2c: E2 17 00 [15:47:06]MH_I2C_Read... [15:47:06]Read from MH i2c: E2 17 00 41 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 12 [15:47:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:47:06]wFMCommunicate OK [15:47:06]CreateOFDProtocolMessage done [15:47:06]OFDSenderStorePacket 165011 [15:47:06]StoreOFDPacket docnum=165011 [15:47:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 65 95 07 01 B0 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 35 FF 03 08 00 03 B4 0A 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6D 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 F9 F2 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 93 84 02 00 35 04 06 00 61 5A 11 FF ED 1A D6 D0 65 0C BF 89 E0 F4 [15:47:06]CheckFolder [15:47:06]dirname=/storage/ofd_packets [15:47:06]CheckFolder done [15:47:06]ProducePacketName [15:47:06]name=ofd_packets/00165011 [15:47:06]NVStorageSaveData ofd_packets/00165011 [15:47:06]File name is /storage/ofd_packets/00165011 [15:47:06]Write 301 bytes [15:47:06]NVStorageSaveData done [15:47:06]OFDSenderStorePacket done [15:47:06]KKMCreateOFDPacket done [15:47:06]NVStorageSaveData kkm_last_timestamp [15:47:06]File name is /storage/kkm_last_timestamp [15:47:06]Write 4 bytes [15:47:06]NVStorageSaveData done [15:47:06]ExternCall_PrintAddStr [15:47:06]wPrintStart [15:47:06]Write to MH i2c: 01 00 00 42 01 43 [15:47:06]Write i2c OK [15:47:06]MH_I2C_Read... [15:47:06]Read from MH i2c: 01 [15:47:06]MH_I2C_Read... [15:47:06]Read from MH i2c: 01 07 00 [15:47:06]MH_I2C_Read... [15:47:06]Read from MH i2c: 01 07 00 42 01 00 00 00 00 00 FF 0F 58 [15:47:06]RasterBufferAndPrint [15:47:06]line Счет N : (1)459112 [15:47:06]line ИНН: 02508201610067 [15:47:06]line Контрольно-Кассовый Чек [15:47:06]line ПРОДАЖА [15:47:06]line ТРК (МРК, ГНК) : 22 [15:47:06]line Товар: 2710124130 [15:47:06]line Аи-92-К-5 [15:47:06]line 2.740 * 65.80 [15:47:06]line = 180.29 [15:47:06]line НДС 12% НСП 1% [15:47:06]line > о реализуемом товаре [15:47:06]line ОКРУГЛЕНИЕ: -0.29 [15:47:06]line ИТОГО: 180.00 [15:47:06]line Внесено: 180.00 [15:47:06]line СДАЧА: 0.00 [15:47:06]line НСП 1% : 1.59 [15:47:06]line НДС 12% : 19.15 [15:47:06]line Наличными: 180.00 [15:47:06]line Безнал.: 0.00 [15:47:06]line Место: АЗС № 72 "Партнер Нефть" [15:47:06]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:47:06]line СНО: Общий режим [15:47:06]line Чек 209 14.07.2024 15:47 [15:47:06]line Смена: 447 ФФД: 1.0 [15:47:06]line ЗНМ: 0300000160 [15:47:06]line РНМ: 0000000000090829 [15:47:06]line Версия ККМ: 001 [15:47:06]line ФМ: 0000000000874718 [15:47:06]line ФД: 165011 [15:47:06]line ФПД: 107039476935962 [15:47:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T154705&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165011&fm=107039476935962&tin=02508201610067®Number=0000000000090829&sum=18000 [15:47:06]written 0, free lines is 4095 [15:47:06]OFD Sender: Processing packet 165011 [packets to send 105, broken 104] [15:47:06]ProducePacketName [15:47:06]name=ofd_packets/00165011 [15:47:06]OFD Sender: To server: pG, [15:47:06]CommunicateWithHost lk.salyk.kg:30040 [15:47:06]ConnectInit lk.salyk.kg [15:47:07]Connected sock=10 [15:47:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 65 95 07 01 B0 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 35 FF 03 08 00 03 B4 0A 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6D 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 F9 F2 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 93 84 02 00 35 04 06 00 61 5A 11 FF ED 1A D6 D0 65 0C BF 89 E0 F4 [15:47:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 C8 0D 47 00 4E 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 93 84 02 00 F4 03 04 00 87 99 93 66 B6 04 01 00 00 8C F2 44 BF 6A 4C 0C 9B [15:47:07]CommunicateWithHost err = 0 [15:47:07]CheckOFDResponse [15:47:07]1017 (14) - 77093643461234 [15:47:07]1041 (16) - 0000000000874718 [15:47:07]1040 (4) - 165011 [15:47:07]1012 (4) - 14.07.2024 09:25 [15:47:07]1206 (1) - 0 [15:47:07]OFD Sender: Remove packet 165011 [15:47:07]ProducePacketName [15:47:07]name=ofd_packets/00165011 [15:47:07]NVStorageDeleteData [15:47:07]Write to MH i2c: 01 00 00 6C 01 6D [15:47:07]Write i2c OK [15:47:07]MH_I2C_Read... [15:47:07]Read from MH i2c: 01 [15:47:07]MH_I2C_Read... [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 6C 01 00 00 00 00 00 F7 0C 77 [15:47:07]RasterBufferAndPrint [15:47:07]line [15:47:07]line [15:47:07]line [15:47:07]line [15:47:07]line [15:47:07]written 0, free lines is 3323 [15:47:07]MH_Cut [15:47:07]Write to MH i2c: D1 01 00 73 01 01 46 [15:47:07]Write i2c OK [15:47:07]MH_I2C_Read... [15:47:07]Read from MH i2c: D1 [15:47:07]MH_I2C_Read... [15:47:07]Read from MH i2c: D1 01 00 [15:47:07]MH_I2C_Read... [15:47:07]Read from MH i2c: D1 01 00 73 01 00 45 [15:47:07]Write to MH i2c: 01 00 00 74 01 75 [15:47:07]Write i2c OK [15:47:07]MH_I2C_Read... [15:47:07]OFD Sender: No OFD packet to send [15:47:08]*** Cut start [15:47:08]*** Partial cut [15:47:08]*** CUTSNS_PIN = 1 [15:47:08]*** CUTSNS_PIN = 0 [15:47:08]*** Brake cut motor [15:47:08]Read from MH i2c: 01 [15:47:08]MH_I2C_Read... [15:47:08]*** Stop cut motor [15:47:08]*** Cut end [15:47:08]Read from MH i2c: 01 07 00 [15:47:08]MH_I2C_Read... [15:47:08]Read from MH i2c: 01 07 00 74 01 00 00 00 00 00 FF 0F 8A [15:47:08]process_action close_receipt done [15:47:08]requested_data is exist [15:47:08]produce_requested_data [15:47:08]requested_item fm.sn is exist - process it [15:47:08]wFMCommunicate request_size=4 [15:47:08]MH_SAM_APDU [15:47:08]CAPDU: 80 11 00 00 [15:47:08]Write to MH i2c: E2 08 00 75 01 80 11 00 00 00 00 00 00 F0 [15:47:08]Write i2c OK [15:47:08]MH_I2C_Read... [15:47:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:08]Read from MH i2c: E2 [15:47:08]MH_I2C_Read... [15:47:08]Read from MH i2c: E2 17 00 [15:47:08]MH_I2C_Read... [15:47:08]Read from MH i2c: E2 17 00 75 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 46 [15:47:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:47:08]wFMCommunicate OK [15:47:08]requested_item fd.num is exist - process it [15:47:08]SAM_PROTO_GetFieldsCounters [15:47:08]wFMCommunicate request_size=4 [15:47:08]MH_SAM_APDU [15:47:08]CAPDU: 80 13 00 00 [15:47:08]Write to MH i2c: E2 08 00 76 01 80 13 00 00 00 00 00 00 F3 [15:47:08]Write i2c OK [15:47:08]MH_I2C_Read... [15:47:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:47:08]Read from MH i2c: E2 [15:47:08]MH_I2C_Read... [15:47:08]Read from MH i2c: E2 62 00 [15:47:08]MH_I2C_Read... [15:47:08]Read from MH i2c: E2 62 00 76 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 93 84 02 00 0E 04 04 00 BF 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 66 [15:47:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 93 84 02 00 0E 04 04 00 BF 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 [15:47:08]wFMCommunicate OK [15:47:08]SAM_PROTO_GetFieldsCounters done [15:47:08]requested_item shift.num is exist - process it [15:47:08]requested_item shift.opened is exist - process it [15:47:08]req_shift_opened [15:47:08]FM_GetShiftState [15:47:08]SAM_PROTO_GetShiftState [15:47:08]wFMCommunicate request_size=4 [15:47:08]MH_SAM_APDU [15:47:08]CAPDU: 80 13 01 00 [15:47:08]Write to MH i2c: E2 08 00 77 01 80 13 01 00 00 00 00 00 F5 [15:47:08]Write i2c OK [15:47:08]MH_I2C_Read... [15:47:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:08]Read from MH i2c: E2 [15:47:08]MH_I2C_Read... [15:47:08]Read from MH i2c: E2 0E 00 [15:47:08]MH_I2C_Read... [15:47:08]Read from MH i2c: E2 0E 00 77 01 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 75 [15:47:08]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [15:47:08]wFMCommunicate OK [15:47:08]SAM_PROTO_GetShiftState done [15:47:08]FM_GetShiftState done [15:47:08]req_shift_opened done [15:47:08]requested_item shift.open_date is exist - process it [15:47:08]req_shift_open_date [15:47:08]req_shift_open_date done [15:47:08]produce_requested_data done [15:47:08]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165011,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [15:47:08]process_action_free close_receipt [15:47:08]json_value_free [15:47:08]json_value_free done [15:47:08]process_json_proto returns [15:47:08]Send response to host [15:47:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165011,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [15:47:08]free response buf [15:47:08]execute_script done [15:47:08]execute_script returns [15:47:08]free content buf [15:47:08]Sock 9.Close socket [15:47:08]Sock 9.Thread stoped [15:47:12]OFD Sender: No OFD packet to send [15:47:17]OFD Sender: No OFD packet to send [15:47:22]OFD Sender: No OFD packet to send [15:47:27]OFD Sender: No OFD packet to send [15:47:32]OFD Sender: No OFD packet to send [15:47:37]OFD Sender: No OFD packet to send [15:47:42]OFD Sender: No OFD packet to send [15:47:47]OFD Sender: No OFD packet to send [15:47:52]OFD Sender: No OFD packet to send [15:47:57]OFD Sender: No OFD packet to send [15:48:02]OFD Sender: No OFD packet to send [15:48:07]OFD Sender: No OFD packet to send [15:48:12]OFD Sender: No OFD packet to send [15:48:17]OFD Sender: No OFD packet to send [15:48:22]OFD Sender: No OFD packet to send [15:48:27]OFD Sender: No OFD packet to send [15:48:32]OFD Sender: No OFD packet to send [15:48:37]OFD Sender: No OFD packet to send [15:48:42]OFD Sender: No OFD packet to send [15:48:47]OFD Sender: No OFD packet to send [15:48:52]OFD Sender: No OFD packet to send [15:48:57]OFD Sender: No OFD packet to send [15:49:02]OFD Sender: No OFD packet to send [15:49:06]accept exits with 8 [15:49:06]New connection [15:49:06]New thread 3066531172 created [15:49:06]Thread 3066674532 joined [15:49:06]Waiting for new connection... [15:49:06] Sock 8.Parse request [15:49:06]Sock 8.Check first char [15:49:06]Sock 8.First char is OK [15:49:06]request: POST /json_proto HTTP/1.0 [15:49:06]Method: POST [15:49:06]URL: /json_proto [15:49:06]Method is POST - this is cgi request [15:49:06]url: /json_proto [15:49:06]query_string will be loaded in cgi processing [15:49:06]execute_cgi json_proto POST (null) [15:49:06]execute_cgi path=json_proto method=POST [15:49:06]POST find Content-Length [15:49:06]Host: 172.17.56.4:8080 [15:49:06]Content-Length: 677 [15:49:06]Content-Type: application/json [15:49:06] [15:49:06]POST finish read [15:49:06]Found Content-Length = 677 [15:49:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459113", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:49:06]execute_script... [15:49:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459113", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:49:06]POST & json_proto [15:49:06]process_json_proto [15:49:06]json parsed OK: [15:49:06]protocol is kg_v1.0 [15:49:06]action value=close_receipt [15:49:06]process_action close_receipt [15:49:06]cmd_close_receipt [15:49:06]MH_GetDate [15:49:06]Write to MH i2c: F0 00 00 78 01 68 [15:49:06]Write i2c OK [15:49:06]MH_I2C_Read... [15:49:06]Read from MH i2c: F0 [15:49:06]MH_I2C_Read... [15:49:06]Read from MH i2c: F0 09 00 [15:49:06]MH_I2C_Read... [15:49:06]Read from MH i2c: F0 09 00 78 01 00 73 F3 93 66 C9 DC B2 64 8B [15:49:06]GetLastDocTimeStamp 1720972025 [15:49:06]current date 1720972147 [15:49:06]FM_GetShiftState [15:49:06]SAM_PROTO_GetShiftState [15:49:06]wFMCommunicate request_size=4 [15:49:06]MH_SAM_APDU [15:49:06]CAPDU: 80 13 01 00 [15:49:06]Write to MH i2c: E2 08 00 79 01 80 13 01 00 00 00 00 00 F7 [15:49:06]Write i2c OK [15:49:06]MH_I2C_Read... [15:49:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:49:06]Read from MH i2c: E2 [15:49:06]MH_I2C_Read... [15:49:06]Read from MH i2c: E2 0E 00 [15:49:06]MH_I2C_Read... [15:49:06]Read from MH i2c: E2 0E 00 79 01 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 77 [15:49:06]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [15:49:06]wFMCommunicate OK [15:49:06]SAM_PROTO_GetShiftState done [15:49:06]FM_GetShiftState done [15:49:06]opened in 1720917342 [15:49:06]opened+sec_in_day 1721003742 [15:49:06]quantity*price = 50008 [15:49:06]sum+1 = 50009 [15:49:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 210 14.07.2024 15:49 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165012 ФПД: 275479462599244 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T154907&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165012&fm=275479462599244&tin=02508201610067®Number=0000000000090829&sum=50000 [15:49:07]StoreToDocumentArchive [15:49:07]shift 447 fd 165012 [15:49:07]save to /storage/0447/doc_00165012 [15:49:07]save last doc name /storage/0447/doc_00165012 to /storage/kkm_last_doc_name [15:49:07]save OK [15:49:07]Clear old archive folders... [15:49:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:49:07]tlvbuf is 0145EA10 [15:49:07]SAM_PROTO_ClearQueue [15:49:07]wFMCommunicate request_size=4 [15:49:07]MH_SAM_APDU [15:49:07]CAPDU: 80 09 00 00 [15:49:07]Write to MH i2c: E2 08 00 86 01 80 09 00 00 00 00 00 00 F9 [15:49:07]Write i2c OK [15:49:07]MH_I2C_Read... [15:49:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:49:07]Read from MH i2c: E2 [15:49:07]MH_I2C_Read... [15:49:07]Read from MH i2c: E2 03 00 [15:49:07]MH_I2C_Read... [15:49:07]Read from MH i2c: E2 03 00 86 01 00 90 00 FB [15:49:07]RAPDU: 90 00 [15:49:07]wFMCommunicate OK [15:49:07]SAM_PROTO_ClearQueue done [15:49:07]KKMCreateOFDPacket [15:49:07]OFDProtocolAddRootSTLVToBuf [15:49:07]FM_MakeSignedData [15:49:07]FM_MakeSignedData [15:49:07]SAM_PROTO_SignData [15:49:07]wFMCommunicate request_size=4 [15:49:07]MH_SAM_APDU [15:49:07]CAPDU: 80 0D 01 02 [15:49:07]Write to MH i2c: E2 08 00 87 01 80 0D 01 02 00 00 00 00 01 [15:49:07]Write i2c OK [15:49:07]MH_I2C_Read... [15:49:07]OFD Sender: No OFD packet to send [15:49:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:49:07]Read from MH i2c: E2 [15:49:07]MH_I2C_Read... [15:49:07]Read from MH i2c: E2 03 00 [15:49:07]MH_I2C_Read... [15:49:07]Read from MH i2c: E2 03 00 87 01 00 90 00 FC [15:49:07]RAPDU: 90 00 [15:49:07]wFMCommunicate OK [15:49:07]wFMCommunicate request_size=255 [15:49:07]MH_SAM_APDU [15:49:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 D2 00 00 00 F4 03 04 00 73 F3 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 94 84 02 00 35 04 06 00 FA [15:49:07]Write to MH i2c: E2 02 01 88 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 D2 00 00 00 F4 03 04 00 73 F3 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 94 84 02 00 35 04 06 00 FA 00 00 7F [15:49:07]Write i2c OK [15:49:07]MH_I2C_Read... [15:49:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:49:08]Read from MH i2c: E2 [15:49:08]MH_I2C_Read... [15:49:08]Read from MH i2c: E2 03 00 [15:49:08]MH_I2C_Read... [15:49:08]Read from MH i2c: E2 03 00 88 01 00 90 00 FD [15:49:08]RAPDU: 90 00 [15:49:08]wFMCommunicate OK [15:49:08]wFMCommunicate request_size=10 [15:49:08]MH_SAM_APDU [15:49:08]CAPDU: 80 0D 02 02 05 8C 0F 82 DA 4C [15:49:08]Write to MH i2c: E2 0D 00 89 01 80 0D 02 02 05 00 8C 0F 82 DA 4C 00 00 51 [15:49:08]Write i2c OK [15:49:08]MH_I2C_Read... [15:49:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:49:08]Read from MH i2c: E2 [15:49:08]MH_I2C_Read... [15:49:08]Read from MH i2c: E2 03 00 [15:49:08]MH_I2C_Read... [15:49:08]Read from MH i2c: E2 03 00 89 01 00 90 00 FE [15:49:08]RAPDU: 90 00 [15:49:08]wFMCommunicate OK [15:49:08]wFMCommunicate request_size=4 [15:49:08]MH_SAM_APDU [15:49:08]CAPDU: 80 0D 03 02 [15:49:08]Write to MH i2c: E2 08 00 8A 01 80 0D 03 02 00 00 00 00 06 [15:49:08]Write i2c OK [15:49:08]MH_I2C_Read... [15:49:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:49:08]Read from MH i2c: E2 [15:49:08]MH_I2C_Read... [15:49:08]Read from MH i2c: E2 0B 00 [15:49:08]MH_I2C_Read... [15:49:08]Read from MH i2c: E2 0B 00 8A 01 00 9A 21 C2 02 F1 18 71 28 90 00 28 [15:49:08]RAPDU: 9A 21 C2 02 F1 18 71 28 90 00 [15:49:08]wFMCommunicate OK [15:49:08]SAM_PROTO_SignData done [15:49:08]FM_MakeSignedData done [15:49:08]CreateOFDProtocolMessage [15:49:08]wFMCommunicate request_size=4 [15:49:08]MH_SAM_APDU [15:49:08]CAPDU: 80 11 00 00 [15:49:08]Write to MH i2c: E2 08 00 8B 01 80 11 00 00 00 00 00 00 06 [15:49:08]Write i2c OK [15:49:08]MH_I2C_Read... [15:49:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:49:08]Read from MH i2c: E2 [15:49:08]MH_I2C_Read... [15:49:08]Read from MH i2c: E2 17 00 [15:49:08]MH_I2C_Read... [15:49:08]Read from MH i2c: E2 17 00 8B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 5C [15:49:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:49:08]wFMCommunicate OK [15:49:08]CreateOFDProtocolMessage done [15:49:08]OFDSenderStorePacket 165012 [15:49:08]StoreOFDPacket docnum=165012 [15:49:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 3E CD 07 01 28 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 D2 00 00 00 F4 03 04 00 73 F3 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 94 84 02 00 35 04 06 00 FA 8C 0F 82 DA 4C 9A 21 C2 02 F1 18 71 28 [15:49:08]CheckFolder [15:49:08]dirname=/storage/ofd_packets [15:49:08]CheckFolder done [15:49:08]ProducePacketName [15:49:08]name=ofd_packets/00165012 [15:49:08]NVStorageSaveData ofd_packets/00165012 [15:49:08]File name is /storage/ofd_packets/00165012 [15:49:08]Write 301 bytes [15:49:08]NVStorageSaveData done [15:49:08]OFDSenderStorePacket done [15:49:08]KKMCreateOFDPacket done [15:49:08]NVStorageSaveData kkm_last_timestamp [15:49:08]File name is /storage/kkm_last_timestamp [15:49:08]Write 4 bytes [15:49:08]NVStorageSaveData done [15:49:08]ExternCall_PrintAddStr [15:49:08]wPrintStart [15:49:08]Write to MH i2c: 01 00 00 8C 01 8D [15:49:08]Write i2c OK [15:49:08]MH_I2C_Read... [15:49:08]Read from MH i2c: 01 [15:49:08]MH_I2C_Read... [15:49:08]Read from MH i2c: 01 07 00 [15:49:08]MH_I2C_Read... [15:49:08]Read from MH i2c: 01 07 00 8C 01 00 00 00 00 00 FF 0F A2 [15:49:08]RasterBufferAndPrint [15:49:08]line Счет N : (1)459113 [15:49:08]line ИНН: 02508201610067 [15:49:08]line Контрольно-Кассовый Чек [15:49:08]line ПРОДАЖА [15:49:08]line ТРК (МРК, ГНК) : 22 [15:49:08]line Товар: 2710124130 [15:49:08]line Аи-92-К-5 [15:49:08]line 7.600 * 65.80 [15:49:08]line = 500.08 [15:49:08]line НДС 12% НСП 1% [15:49:08]line > о реализуемом товаре [15:49:08]line ОКРУГЛЕНИЕ: -0.08 [15:49:08]line ИТОГО: 500.00 [15:49:08]line Внесено: 500.00 [15:49:08]line СДАЧА: 0.00 [15:49:08]line НСП 1% : 4.42 [15:49:08]line НДС 12% : 53.11 [15:49:08]line Наличными: 500.00 [15:49:08]line Безнал.: 0.00 [15:49:08]line Место: АЗС № 72 "Партнер Нефть" [15:49:08]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:49:08]line СНО: Общий режим [15:49:08]line Чек 210 14.07.2024 15:49 [15:49:08]line Смена: 447 ФФД: 1.0 [15:49:08]line ЗНМ: 0300000160 [15:49:08]line РНМ: 0000000000090829 [15:49:08]line Версия ККМ: 001 [15:49:08]line ФМ: 0000000000874718 [15:49:08]line ФД: 165012 [15:49:08]line ФПД: 275479462599244 [15:49:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T154907&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165012&fm=275479462599244&tin=02508201610067®Number=0000000000090829&sum=50000 [15:49:08]OFD Sender: Processing packet 165012 [packets to send 105, broken 104] [15:49:08]ProducePacketName [15:49:08]name=ofd_packets/00165012 [15:49:08]OFD Sender: To server: pG, [15:49:08]CommunicateWithHost lk.salyk.kg:30040 [15:49:08]ConnectInit lk.salyk.kg [15:49:08]written 0, free lines is 4095 [15:49:08]Connected sock=10 [15:49:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 3E CD 07 01 28 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 D2 00 00 00 F4 03 04 00 73 F3 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 94 84 02 00 35 04 06 00 FA 8C 0F 82 DA 4C 9A 21 C2 02 F1 18 71 28 [15:49:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 9D F2 47 00 51 F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 94 84 02 00 F4 03 04 00 00 9A 93 66 B6 04 01 00 00 0F 95 44 D2 06 8F 22 81 [15:49:09]CommunicateWithHost err = 0 [15:49:09]CheckOFDResponse [15:49:09]1017 (14) - 77093643461234 [15:49:09]1041 (16) - 0000000000874718 [15:49:09]1040 (4) - 165012 [15:49:09]1012 (4) - 14.07.2024 09:27 [15:49:09]1206 (1) - 0 [15:49:09]OFD Sender: Remove packet 165012 [15:49:09]ProducePacketName [15:49:09]name=ofd_packets/00165012 [15:49:09]NVStorageDeleteData [15:49:09]Write to MH i2c: 01 00 00 B6 01 B7 [15:49:09]Write i2c OK [15:49:09]MH_I2C_Read... [15:49:09]Read from MH i2c: 01 [15:49:09]MH_I2C_Read... [15:49:09]Read from MH i2c: 01 07 00 [15:49:09]MH_I2C_Read... [15:49:09]Read from MH i2c: 01 07 00 B6 01 00 00 00 00 00 FD 0C C7 [15:49:09]RasterBufferAndPrint [15:49:09]line [15:49:09]line [15:49:09]line [15:49:09]line [15:49:09]line [15:49:09]written 0, free lines is 3331 [15:49:09]MH_Cut [15:49:09]Write to MH i2c: D1 01 00 BD 01 01 90 [15:49:09]Write i2c OK [15:49:09]MH_I2C_Read... [15:49:09]Read from MH i2c: D1 [15:49:09]MH_I2C_Read... [15:49:09]Read from MH i2c: D1 01 00 [15:49:09]MH_I2C_Read... [15:49:09]Read from MH i2c: D1 01 00 BD 01 00 8F [15:49:09]Write to MH i2c: 01 00 00 BE 01 BF [15:49:09]Write i2c OK [15:49:09]MH_I2C_Read... [15:49:09]OFD Sender: No OFD packet to send [15:49:09]*** Cut start [15:49:09]*** Partial cut [15:49:09]*** CUTSNS_PIN = 1 [15:49:09]*** CUTSNS_PIN = 0 [15:49:10]*** Brake cut motor [15:49:10]Read from MH i2c: 01 [15:49:10]MH_I2C_Read... [15:49:10]*** Stop cut motor [15:49:10]*** Cut end [15:49:10]Read from MH i2c: 01 07 00 [15:49:10]MH_I2C_Read... [15:49:10]Read from MH i2c: 01 07 00 BE 01 00 00 00 00 00 FF 0F D4 [15:49:10]process_action close_receipt done [15:49:10]requested_data is exist [15:49:10]produce_requested_data [15:49:10]requested_item fm.sn is exist - process it [15:49:10]wFMCommunicate request_size=4 [15:49:10]MH_SAM_APDU [15:49:10]CAPDU: 80 11 00 00 [15:49:10]Write to MH i2c: E2 08 00 BF 01 80 11 00 00 00 00 00 00 3A [15:49:10]Write i2c OK [15:49:10]MH_I2C_Read... [15:49:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:49:10]Read from MH i2c: E2 [15:49:10]MH_I2C_Read... [15:49:10]Read from MH i2c: E2 17 00 [15:49:10]MH_I2C_Read... [15:49:10]Read from MH i2c: E2 17 00 BF 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 90 [15:49:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:49:10]wFMCommunicate OK [15:49:10]requested_item fd.num is exist - process it [15:49:10]SAM_PROTO_GetFieldsCounters [15:49:10]wFMCommunicate request_size=4 [15:49:10]MH_SAM_APDU [15:49:10]CAPDU: 80 13 00 00 [15:49:10]Write to MH i2c: E2 08 00 C0 01 80 13 00 00 00 00 00 00 3D [15:49:10]Write i2c OK [15:49:10]MH_I2C_Read... [15:49:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:49:10]Read from MH i2c: E2 [15:49:10]MH_I2C_Read... [15:49:10]Read from MH i2c: E2 62 00 [15:49:10]MH_I2C_Read... [15:49:10]Read from MH i2c: E2 62 00 C0 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 94 84 02 00 0E 04 04 00 BF 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 B4 [15:49:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 94 84 02 00 0E 04 04 00 BF 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 [15:49:10]wFMCommunicate OK [15:49:10]SAM_PROTO_GetFieldsCounters done [15:49:10]requested_item shift.num is exist - process it [15:49:10]requested_item shift.opened is exist - process it [15:49:10]req_shift_opened [15:49:10]FM_GetShiftState [15:49:10]SAM_PROTO_GetShiftState [15:49:10]wFMCommunicate request_size=4 [15:49:10]MH_SAM_APDU [15:49:10]CAPDU: 80 13 01 00 [15:49:10]Write to MH i2c: E2 08 00 C1 01 80 13 01 00 00 00 00 00 3F [15:49:10]Write i2c OK [15:49:10]MH_I2C_Read... [15:49:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:49:10]Read from MH i2c: E2 [15:49:10]MH_I2C_Read... [15:49:10]Read from MH i2c: E2 0E 00 [15:49:10]MH_I2C_Read... [15:49:10]Read from MH i2c: E2 0E 00 C1 01 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 BF [15:49:10]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [15:49:10]wFMCommunicate OK [15:49:10]SAM_PROTO_GetShiftState done [15:49:10]FM_GetShiftState done [15:49:10]req_shift_opened done [15:49:10]requested_item shift.open_date is exist - process it [15:49:10]req_shift_open_date [15:49:10]req_shift_open_date done [15:49:10]produce_requested_data done [15:49:10]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165012,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [15:49:10]process_action_free close_receipt [15:49:10]json_value_free [15:49:10]json_value_free done [15:49:10]process_json_proto returns [15:49:10]Send response to host [15:49:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165012,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [15:49:10]free response buf [15:49:10]execute_script done [15:49:10]execute_script returns [15:49:10]free content buf [15:49:10]Sock 8.Close socket [15:49:10]Sock 8.Thread stoped [15:49:14]OFD Sender: No OFD packet to send [15:49:19]OFD Sender: No OFD packet to send [15:49:24]OFD Sender: No OFD packet to send [15:49:29]OFD Sender: No OFD packet to send [15:49:34]OFD Sender: No OFD packet to send [15:49:39]OFD Sender: No OFD packet to send [15:49:44]OFD Sender: No OFD packet to send [15:49:49]OFD Sender: No OFD packet to send [15:49:54]OFD Sender: No OFD packet to send [15:49:59]OFD Sender: No OFD packet to send [15:50:04]OFD Sender: No OFD packet to send [15:50:09]OFD Sender: No OFD packet to send [15:50:14]OFD Sender: No OFD packet to send [15:50:19]OFD Sender: No OFD packet to send [15:50:24]OFD Sender: No OFD packet to send [15:50:25]accept exits with 9 [15:50:25]New connection [15:50:25]New thread 3066674532 created [15:50:25]Thread 3066531172 joined [15:50:25]Waiting for new connection... [15:50:25] Sock 9.Parse request [15:50:25]Sock 9.Check first char [15:50:25]Sock 9.First char is OK [15:50:25]request: POST /json_proto HTTP/1.0 [15:50:25]Method: POST [15:50:25]URL: /json_proto [15:50:25]Method is POST - this is cgi request [15:50:25]url: /json_proto [15:50:25]query_string will be loaded in cgi processing [15:50:25]execute_cgi json_proto POST (null) [15:50:25]execute_cgi path=json_proto method=POST [15:50:25]POST find Content-Length [15:50:25]Host: 172.17.56.4:8080 [15:50:25]Content-Length: 682 [15:50:25]Content-Type: application/json [15:50:25] [15:50:25]POST finish read [15:50:25]Found Content-Length = 682 [15:50:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459114", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 30.400, "sum" : 2000.32, "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:50:25]execute_script... [15:50: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)459114", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 30.400, "sum" : 2000.32, "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:50:25]POST & json_proto [15:50:25]process_json_proto [15:50:25]json parsed OK: [15:50:25]protocol is kg_v1.0 [15:50:25]action value=close_receipt [15:50:25]process_action close_receipt [15:50:25]cmd_close_receipt [15:50:25]MH_GetDate [15:50:25]Write to MH i2c: F0 00 00 C2 01 B2 [15:50:25]Write i2c OK [15:50:25]MH_I2C_Read... [15:50:25]Read from MH i2c: F0 [15:50:25]MH_I2C_Read... [15:50:25]Read from MH i2c: F0 09 00 [15:50:25]MH_I2C_Read... [15:50:25]Read from MH i2c: F0 09 00 C2 01 00 C2 F3 93 66 C9 DC B2 64 24 [15:50:25]GetLastDocTimeStamp 1720972147 [15:50:25]current date 1720972226 [15:50:25]FM_GetShiftState [15:50:25]SAM_PROTO_GetShiftState [15:50:25]wFMCommunicate request_size=4 [15:50:25]MH_SAM_APDU [15:50:25]CAPDU: 80 13 01 00 [15:50:25]Write to MH i2c: E2 08 00 C3 01 80 13 01 00 00 00 00 00 41 [15:50:25]Write i2c OK [15:50:25]MH_I2C_Read... [15:50:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:50:25]Read from MH i2c: E2 [15:50:25]MH_I2C_Read... [15:50:25]Read from MH i2c: E2 0E 00 [15:50:25]MH_I2C_Read... [15:50:25]Read from MH i2c: E2 0E 00 C3 01 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 C1 [15:50:25]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [15:50:25]wFMCommunicate OK [15:50:25]SAM_PROTO_GetShiftState done [15:50:25]FM_GetShiftState done [15:50:25]opened in 1720917342 [15:50:25]opened+sec_in_day 1721003742 [15:50:25]quantity*price = 200032 [15:50:25]sum+1 = 200033 [15:50:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 211 14.07.2024 15:50 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165013 ФПД: 215232395463674 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T155026&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165013&fm=215232395463674&tin=02508201610067®Number=0000000000090829&sum=200000 [15:50:26]StoreToDocumentArchive [15:50:26]shift 447 fd 165013 [15:50:26]save to /storage/0447/doc_00165013 [15:50:26]save last doc name /storage/0447/doc_00165013 to /storage/kkm_last_doc_name [15:50:26]save OK [15:50:26]Clear old archive folders... [15:50:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:50:26]tlvbuf is 01478DA0 [15:50:26]SAM_PROTO_ClearQueue [15:50:26]wFMCommunicate request_size=4 [15:50:26]MH_SAM_APDU [15:50:26]CAPDU: 80 09 00 00 [15:50:26]Write to MH i2c: E2 08 00 D0 01 80 09 00 00 00 00 00 00 43 [15:50:26]Write i2c OK [15:50:26]MH_I2C_Read... [15:50:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:50:26]Read from MH i2c: E2 [15:50:26]MH_I2C_Read... [15:50:26]Read from MH i2c: E2 03 00 [15:50:26]MH_I2C_Read... [15:50:26]Read from MH i2c: E2 03 00 D0 01 00 90 00 45 [15:50:26]RAPDU: 90 00 [15:50:26]wFMCommunicate OK [15:50:26]SAM_PROTO_ClearQueue done [15:50:26]KKMCreateOFDPacket [15:50:26]OFDProtocolAddRootSTLVToBuf [15:50:26]FM_MakeSignedData [15:50:26]FM_MakeSignedData [15:50:26]SAM_PROTO_SignData [15:50:26]wFMCommunicate request_size=4 [15:50:26]MH_SAM_APDU [15:50:26]CAPDU: 80 0D 01 02 [15:50:26]Write to MH i2c: E2 08 00 D1 01 80 0D 01 02 00 00 00 00 4B [15:50:26]Write i2c OK [15:50:26]MH_I2C_Read... [15:50:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:50:26]Read from MH i2c: E2 [15:50:26]MH_I2C_Read... [15:50:26]Read from MH i2c: E2 03 00 [15:50:26]MH_I2C_Read... [15:50:26]Read from MH i2c: E2 03 00 D1 01 00 90 00 46 [15:50:26]RAPDU: 90 00 [15:50:26]wFMCommunicate OK [15:50:26]wFMCommunicate request_size=255 [15:50:26]MH_SAM_APDU [15:50:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 60 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 D3 00 00 00 F4 03 04 00 C2 F3 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 95 84 02 00 35 04 06 00 C3 [15:50:26]Write to MH i2c: E2 02 01 D2 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 60 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 D3 00 00 00 F4 03 04 00 C2 F3 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 95 84 02 00 35 04 06 00 C3 00 00 C9 [15:50:26]Write i2c OK [15:50:26]MH_I2C_Read... [15:50:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:50:26]Read from MH i2c: E2 [15:50:26]MH_I2C_Read... [15:50:26]Read from MH i2c: E2 03 00 [15:50:26]MH_I2C_Read... [15:50:26]Read from MH i2c: E2 03 00 D2 01 00 90 00 47 [15:50:26]RAPDU: 90 00 [15:50:26]wFMCommunicate OK [15:50:26]wFMCommunicate request_size=10 [15:50:26]MH_SAM_APDU [15:50:26]CAPDU: 80 0D 02 02 05 C0 B2 79 CB FA [15:50:26]Write to MH i2c: E2 0D 00 D3 01 80 0D 02 02 05 00 C0 B2 79 CB FA 00 00 08 [15:50:26]Write i2c OK [15:50:26]MH_I2C_Read... [15:50:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:50:26]Read from MH i2c: E2 [15:50:26]MH_I2C_Read... [15:50:26]Read from MH i2c: E2 03 00 [15:50:26]MH_I2C_Read... [15:50:26]Read from MH i2c: E2 03 00 D3 01 00 90 00 48 [15:50:26]RAPDU: 90 00 [15:50:26]wFMCommunicate OK [15:50:26]wFMCommunicate request_size=4 [15:50:26]MH_SAM_APDU [15:50:26]CAPDU: 80 0D 03 02 [15:50:26]Write to MH i2c: E2 08 00 D4 01 80 0D 03 02 00 00 00 00 50 [15:50:26]Write i2c OK [15:50:26]MH_I2C_Read... [15:50:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:50:26]Read from MH i2c: E2 [15:50:26]MH_I2C_Read... [15:50:26]Read from MH i2c: E2 0B 00 [15:50:26]MH_I2C_Read... [15:50:26]Read from MH i2c: E2 0B 00 D4 01 00 EF AA B1 70 29 7E 1F 7D 90 00 4E [15:50:26]RAPDU: EF AA B1 70 29 7E 1F 7D 90 00 [15:50:26]wFMCommunicate OK [15:50:26]SAM_PROTO_SignData done [15:50:26]FM_MakeSignedData done [15:50:26]CreateOFDProtocolMessage [15:50:26]wFMCommunicate request_size=4 [15:50:26]MH_SAM_APDU [15:50:26]CAPDU: 80 11 00 00 [15:50:26]Write to MH i2c: E2 08 00 D5 01 80 11 00 00 00 00 00 00 50 [15:50:26]Write i2c OK [15:50:26]MH_I2C_Read... [15:50:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:50:26]Read from MH i2c: E2 [15:50:26]MH_I2C_Read... [15:50:26]Read from MH i2c: E2 17 00 [15:50:26]MH_I2C_Read... [15:50:26]Read from MH i2c: E2 17 00 D5 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A6 [15:50:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:50:26]wFMCommunicate OK [15:50:26]CreateOFDProtocolMessage done [15:50:26]OFDSenderStorePacket 165013 [15:50:26]StoreOFDPacket docnum=165013 [15:50:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 AA C6 07 01 C4 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 60 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 D3 00 00 00 F4 03 04 00 C2 F3 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 95 84 02 00 35 04 06 00 C3 C0 B2 79 CB FA EF AA B1 70 29 7E 1F 7D [15:50:26]CheckFolder [15:50:26]dirname=/storage/ofd_packets [15:50:26]CheckFolder done [15:50:26]ProducePacketName [15:50:26]name=ofd_packets/00165013 [15:50:26]NVStorageSaveData ofd_packets/00165013 [15:50:26]File name is /storage/ofd_packets/00165013 [15:50:26]Write 301 bytes [15:50:26]NVStorageSaveData done [15:50:26]OFDSenderStorePacket done [15:50:26]KKMCreateOFDPacket done [15:50:26]NVStorageSaveData kkm_last_timestamp [15:50:26]File name is /storage/kkm_last_timestamp [15:50:26]Write 4 bytes [15:50:26]NVStorageSaveData done [15:50:26]ExternCall_PrintAddStr [15:50:26]wPrintStart [15:50:26]Write to MH i2c: 01 00 00 D6 01 D7 [15:50:26]Write i2c OK [15:50:26]MH_I2C_Read... [15:50:26]Read from MH i2c: 01 [15:50:26]MH_I2C_Read... [15:50:26]Read from MH i2c: 01 07 00 [15:50:26]MH_I2C_Read... [15:50:26]Read from MH i2c: 01 07 00 D6 01 00 00 00 00 00 FF 0F EC [15:50:26]RasterBufferAndPrint [15:50:26]line Счет N : (1)459114 [15:50:26]line ИНН: 02508201610067 [15:50:26]line Контрольно-Кассовый Чек [15:50:26]line ПРОДАЖА [15:50:26]line ТРК (МРК, ГНК) : 12 [15:50:26]line Товар: 2710124130 [15:50:26]line Аи-92-К-5 [15:50:26]line 30.400 * 65.80 [15:50:26]line = 2000.32 [15:50:26]line НДС 12% НСП 1% [15:50:26]line > о реализуемом товаре [15:50:26]line ОКРУГЛЕНИЕ: -0.32 [15:50:26]line ИТОГО: 2000.00 [15:50:26]line Внесено: 2000.00 [15:50:26]line СДАЧА: 0.00 [15:50:26]line НСП 1% : 17.70 [15:50:26]line НДС 12% : 212.42 [15:50:26]line Наличными: 2000.00 [15:50:26]line Безнал.: 0.00 [15:50:26]line Место: АЗС № 72 "Партнер Нефть" [15:50:26]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:50:26]line СНО: Общий режим [15:50:26]line Чек 211 14.07.2024 15:50 [15:50:26]line Смена: 447 ФФД: 1.0 [15:50:26]line ЗНМ: 0300000160 [15:50:26]line РНМ: 0000000000090829 [15:50:26]line Версия ККМ: 001 [15:50:26]line ФМ: 0000000000874718 [15:50:26]line ФД: 165013 [15:50:26]line ФПД: 215232395463674 [15:50:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T155026&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165013&fm=215232395463674&tin=02508201610067®Number=0000000000090829&sum=200000 [15:50:27]OFD Sender: Processing packet 165013 [packets to send 105, broken 104] [15:50:27]ProducePacketName [15:50:27]name=ofd_packets/00165013 [15:50:27]OFD Sender: To server: pG, [15:50:27]CommunicateWithHost lk.salyk.kg:30040 [15:50:27]ConnectInit lk.salyk.kg [15:50:27]written 0, free lines is 4095 [15:50:27]Connected sock=10 [15:50:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 AA C6 07 01 C4 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 60 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 D3 00 00 00 F4 03 04 00 C2 F3 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 95 84 02 00 35 04 06 00 C3 C0 B2 79 CB FA EF AA B1 70 29 7E 1F 7D [15:50:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 68 B5 47 00 B3 5F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 95 84 02 00 F4 03 04 00 4F 9A 93 66 B6 04 01 00 00 D1 E5 06 86 03 BB BD 67 [15:50:27]CommunicateWithHost err = 0 [15:50:27]CheckOFDResponse [15:50:27]1017 (14) - 77093643461234 [15:50:27]1041 (16) - 0000000000874718 [15:50:27]1040 (4) - 165013 [15:50:27]1012 (4) - 14.07.2024 09:28 [15:50:27]1206 (1) - 0 [15:50:27]OFD Sender: Remove packet 165013 [15:50:27]ProducePacketName [15:50:27]name=ofd_packets/00165013 [15:50:27]NVStorageDeleteData [15:50:27]Write to MH i2c: 01 00 00 00 02 02 [15:50:27]Write i2c OK [15:50:27]MH_I2C_Read... [15:50:27]Read from MH i2c: 01 [15:50:27]MH_I2C_Read... [15:50:27]Read from MH i2c: 01 07 00 [15:50:27]MH_I2C_Read... [15:50:27]Read from MH i2c: 01 07 00 00 02 00 00 00 00 00 F3 0C 08 [15:50:27]RasterBufferAndPrint [15:50:27]line [15:50:27]line [15:50:27]line [15:50:27]line [15:50:27]line [15:50:27]written 0, free lines is 3319 [15:50:27]MH_Cut [15:50:27]Write to MH i2c: D1 01 00 07 02 01 DB [15:50:27]Write i2c OK [15:50:27]MH_I2C_Read... [15:50:27]Read from MH i2c: D1 [15:50:27]MH_I2C_Read... [15:50:27]Read from MH i2c: D1 01 00 [15:50:27]MH_I2C_Read... [15:50:27]Read from MH i2c: D1 01 00 07 02 00 DA [15:50:27]Write to MH i2c: 01 00 00 08 02 0A [15:50:27]Write i2c OK [15:50:27]MH_I2C_Read... [15:50:28]OFD Sender: No OFD packet to send [15:50:28]*** Cut start [15:50:28]*** Partial cut [15:50:28]*** CUTSNS_PIN = 1 [15:50:28]*** CUTSNS_PIN = 0 [15:50:28]*** Brake cut motor [15:50:28]Read from MH i2c: 01 [15:50:28]MH_I2C_Read... [15:50:28]*** Stop cut motor [15:50:28]*** Cut end [15:50:28]Read from MH i2c: 01 07 00 [15:50:28]MH_I2C_Read... [15:50:28]Read from MH i2c: 01 07 00 08 02 00 00 00 00 00 FF 0F 1F [15:50:28]process_action close_receipt done [15:50:28]requested_data is exist [15:50:28]produce_requested_data [15:50:28]requested_item fm.sn is exist - process it [15:50:28]wFMCommunicate request_size=4 [15:50:28]MH_SAM_APDU [15:50:28]CAPDU: 80 11 00 00 [15:50:28]Write to MH i2c: E2 08 00 09 02 80 11 00 00 00 00 00 00 85 [15:50:28]Write i2c OK [15:50:28]MH_I2C_Read... [15:50:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:50:29]Read from MH i2c: E2 [15:50:29]MH_I2C_Read... [15:50:29]Read from MH i2c: E2 17 00 [15:50:29]MH_I2C_Read... [15:50:29]Read from MH i2c: E2 17 00 09 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DB [15:50:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:50:29]wFMCommunicate OK [15:50:29]requested_item fd.num is exist - process it [15:50:29]SAM_PROTO_GetFieldsCounters [15:50:29]wFMCommunicate request_size=4 [15:50:29]MH_SAM_APDU [15:50:29]CAPDU: 80 13 00 00 [15:50:29]Write to MH i2c: E2 08 00 0A 02 80 13 00 00 00 00 00 00 88 [15:50:29]Write i2c OK [15:50:29]MH_I2C_Read... [15:50:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:50:29]Read from MH i2c: E2 [15:50:29]MH_I2C_Read... [15:50:29]Read from MH i2c: E2 62 00 [15:50:29]MH_I2C_Read... [15:50:29]Read from MH i2c: E2 62 00 0A 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 95 84 02 00 0E 04 04 00 BF 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 03 [15:50:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 95 84 02 00 0E 04 04 00 BF 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 [15:50:29]wFMCommunicate OK [15:50:29]SAM_PROTO_GetFieldsCounters done [15:50:29]requested_item shift.num is exist - process it [15:50:29]requested_item shift.opened is exist - process it [15:50:29]req_shift_opened [15:50:29]FM_GetShiftState [15:50:29]SAM_PROTO_GetShiftState [15:50:29]wFMCommunicate request_size=4 [15:50:29]MH_SAM_APDU [15:50:29]CAPDU: 80 13 01 00 [15:50:29]Write to MH i2c: E2 08 00 0B 02 80 13 01 00 00 00 00 00 8A [15:50:29]Write i2c OK [15:50:29]MH_I2C_Read... [15:50:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:50:29]Read from MH i2c: E2 [15:50:29]MH_I2C_Read... [15:50:29]Read from MH i2c: E2 0E 00 [15:50:29]MH_I2C_Read... [15:50:29]Read from MH i2c: E2 0E 00 0B 02 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 0A [15:50:29]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [15:50:29]wFMCommunicate OK [15:50:29]SAM_PROTO_GetShiftState done [15:50:29]FM_GetShiftState done [15:50:29]req_shift_opened done [15:50:29]requested_item shift.open_date is exist - process it [15:50:29]req_shift_open_date [15:50:29]req_shift_open_date done [15:50:29]produce_requested_data done [15:50:29]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165013,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [15:50:29]process_action_free close_receipt [15:50:29]json_value_free [15:50:29]json_value_free done [15:50:29]process_json_proto returns [15:50:29]Send response to host [15:50:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165013,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [15:50:29]free response buf [15:50:29]execute_script done [15:50:29]execute_script returns [15:50:29]free content buf [15:50:29]Sock 9.Close socket [15:50:29]Sock 9.Thread stoped [15:50:33]OFD Sender: No OFD packet to send [15:50:38]OFD Sender: No OFD packet to send [15:50:43]OFD Sender: No OFD packet to send [15:50:48]OFD Sender: No OFD packet to send [15:50:53]OFD Sender: No OFD packet to send [15:50:58]OFD Sender: No OFD packet to send [15:51:03]OFD Sender: No OFD packet to send [15:51:08]OFD Sender: No OFD packet to send [15:51:13]OFD Sender: No OFD packet to send [15:51:18]OFD Sender: No OFD packet to send [15:51:23]OFD Sender: No OFD packet to send [15:51:28]OFD Sender: No OFD packet to send [15:51:33]OFD Sender: No OFD packet to send [15:51:38]OFD Sender: No OFD packet to send [15:51:43]OFD Sender: No OFD packet to send [15:51:48]OFD Sender: No OFD packet to send [15:51:53]OFD Sender: No OFD packet to send [15:51:58]OFD Sender: No OFD packet to send [15:52:03]OFD Sender: No OFD packet to send [15:52:08]OFD Sender: No OFD packet to send [15:52:13]OFD Sender: No OFD packet to send [15:52:18]OFD Sender: No OFD packet to send [15:52:23]OFD Sender: No OFD packet to send [15:52:28]OFD Sender: No OFD packet to send [15:52:33]OFD Sender: No OFD packet to send [15:52:38]OFD Sender: No OFD packet to send [15:52:43]OFD Sender: No OFD packet to send [15:52:48]OFD Sender: No OFD packet to send [15:52:53]OFD Sender: No OFD packet to send [15:52:58]OFD Sender: No OFD packet to send [15:53:03]OFD Sender: No OFD packet to send [15:53:08]OFD Sender: No OFD packet to send [15:53:13]OFD Sender: No OFD packet to send [15:53:18]OFD Sender: No OFD packet to send [15:53:23]OFD Sender: No OFD packet to send [15:53:28]OFD Sender: No OFD packet to send [15:53:33]OFD Sender: No OFD packet to send [15:53:38]OFD Sender: No OFD packet to send [15:53:43]OFD Sender: No OFD packet to send [15:53:48]OFD Sender: No OFD packet to send [15:53:53]OFD Sender: No OFD packet to send [15:53:58]OFD Sender: No OFD packet to send [15:54:03]OFD Sender: No OFD packet to send [15:54:08]OFD Sender: No OFD packet to send [15:54:13]OFD Sender: No OFD packet to send [15:54:18]OFD Sender: No OFD packet to send [15:54:23]OFD Sender: No OFD packet to send [15:54:28]OFD Sender: No OFD packet to send [15:54:33]OFD Sender: No OFD packet to send [15:54:38]OFD Sender: No OFD packet to send [15:54:43]OFD Sender: No OFD packet to send [15:54:48]OFD Sender: No OFD packet to send [15:54:53]OFD Sender: No OFD packet to send [15:54:58]OFD Sender: No OFD packet to send [15:55:03]OFD Sender: No OFD packet to send [15:55:08]OFD Sender: No OFD packet to send [15:55:13]OFD Sender: No OFD packet to send [15:55:18]OFD Sender: No OFD packet to send [15:55:23]OFD Sender: No OFD packet to send [15:55:28]OFD Sender: No OFD packet to send [15:55:33]OFD Sender: No OFD packet to send [15:55:38]OFD Sender: No OFD packet to send [15:55:43]OFD Sender: No OFD packet to send [15:55:48]OFD Sender: No OFD packet to send [15:55:53]OFD Sender: No OFD packet to send [15:55:58]OFD Sender: No OFD packet to send [15:56:03]OFD Sender: No OFD packet to send [15:56:08]OFD Sender: No OFD packet to send [15:56:13]OFD Sender: No OFD packet to send [15:56:18]OFD Sender: No OFD packet to send [15:56:23]OFD Sender: No OFD packet to send [15:56:28]OFD Sender: No OFD packet to send [15:56:30]accept exits with 8 [15:56:30]New connection [15:56:30]New thread 3066531172 created [15:56:30]Thread 3066674532 joined [15:56:30]Waiting for new connection... [15:56:30] Sock 8.Parse request [15:56:30]Sock 8.Check first char [15:56:30]Sock 8.First char is OK [15:56:30]request: POST /json_proto HTTP/1.0 [15:56:30]Method: POST [15:56:30]URL: /json_proto [15:56:30]Method is POST - this is cgi request [15:56:30]url: /json_proto [15:56:30]query_string will be loaded in cgi processing [15:56:30]execute_cgi json_proto POST (null) [15:56:30]execute_cgi path=json_proto method=POST [15:56:30]POST find Content-Length [15:56:30]Host: 172.17.56.4:8080 [15:56:30]Content-Length: 677 [15:56:30]Content-Type: application/json [15:56:30] [15:56:30]POST finish read [15:56:30]Found Content-Length = 677 [15:56:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459115", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:56:30]execute_script... [15:56:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459115", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:56:30]POST & json_proto [15:56:30]process_json_proto [15:56:30]json parsed OK: [15:56:30]protocol is kg_v1.0 [15:56:30]action value=close_receipt [15:56:30]process_action close_receipt [15:56:30]cmd_close_receipt [15:56:30]MH_GetDate [15:56:30]Write to MH i2c: F0 00 00 0C 02 FD [15:56:30]Write i2c OK [15:56:30]MH_I2C_Read... [15:56:30]Read from MH i2c: F0 [15:56:30]MH_I2C_Read... [15:56:30]Read from MH i2c: F0 09 00 [15:56:30]MH_I2C_Read... [15:56:30]Read from MH i2c: F0 09 00 0C 02 00 2F F5 93 66 C9 DC B2 64 DE [15:56:30]GetLastDocTimeStamp 1720972226 [15:56:30]current date 1720972591 [15:56:30]FM_GetShiftState [15:56:30]SAM_PROTO_GetShiftState [15:56:30]wFMCommunicate request_size=4 [15:56:30]MH_SAM_APDU [15:56:30]CAPDU: 80 13 01 00 [15:56:30]Write to MH i2c: E2 08 00 0D 02 80 13 01 00 00 00 00 00 8C [15:56:30]Write i2c OK [15:56:30]MH_I2C_Read... [15:56:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:30]Read from MH i2c: E2 [15:56:30]MH_I2C_Read... [15:56:30]Read from MH i2c: E2 0E 00 [15:56:30]MH_I2C_Read... [15:56:30]Read from MH i2c: E2 0E 00 0D 02 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 0C [15:56:30]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [15:56:30]wFMCommunicate OK [15:56:30]SAM_PROTO_GetShiftState done [15:56:30]FM_GetShiftState done [15:56:30]opened in 1720917342 [15:56:30]opened+sec_in_day 1721003742 [15:56:30]quantity*price = 50008 [15:56:30]sum+1 = 50009 [15:56:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 212 14.07.2024 15:56 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165014 ФПД: 70573892168494 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T155631&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165014&fm=70573892168494&tin=02508201610067®Number=0000000000090829&sum=50000 [15:56:31]StoreToDocumentArchive [15:56:31]shift 447 fd 165014 [15:56:31]save to /storage/0447/doc_00165014 [15:56:31]save last doc name /storage/0447/doc_00165014 to /storage/kkm_last_doc_name [15:56:31]save OK [15:56:31]Clear old archive folders... [15:56:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:56:31]tlvbuf is 014897E0 [15:56:31]SAM_PROTO_ClearQueue [15:56:31]wFMCommunicate request_size=4 [15:56:31]MH_SAM_APDU [15:56:31]CAPDU: 80 09 00 00 [15:56:31]Write to MH i2c: E2 08 00 1A 02 80 09 00 00 00 00 00 00 8E [15:56:31]Write i2c OK [15:56:31]MH_I2C_Read... [15:56:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:56:31]Read from MH i2c: E2 [15:56:31]MH_I2C_Read... [15:56:31]Read from MH i2c: E2 03 00 [15:56:31]MH_I2C_Read... [15:56:31]Read from MH i2c: E2 03 00 1A 02 00 90 00 90 [15:56:31]RAPDU: 90 00 [15:56:31]wFMCommunicate OK [15:56:31]SAM_PROTO_ClearQueue done [15:56:31]KKMCreateOFDPacket [15:56:31]OFDProtocolAddRootSTLVToBuf [15:56:31]FM_MakeSignedData [15:56:31]FM_MakeSignedData [15:56:31]SAM_PROTO_SignData [15:56:31]wFMCommunicate request_size=4 [15:56:31]MH_SAM_APDU [15:56:31]CAPDU: 80 0D 01 02 [15:56:31]Write to MH i2c: E2 08 00 1B 02 80 0D 01 02 00 00 00 00 96 [15:56:31]Write i2c OK [15:56:31]MH_I2C_Read... [15:56:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:56:32]Read from MH i2c: E2 [15:56:32]MH_I2C_Read... [15:56:32]Read from MH i2c: E2 03 00 [15:56:32]MH_I2C_Read... [15:56:32]Read from MH i2c: E2 03 00 1B 02 00 90 00 91 [15:56:32]RAPDU: 90 00 [15:56:32]wFMCommunicate OK [15:56:32]wFMCommunicate request_size=255 [15:56:32]MH_SAM_APDU [15:56:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 D4 00 00 00 F4 03 04 00 2F F5 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 96 84 02 00 35 04 06 00 40 [15:56:32]Write to MH i2c: E2 02 01 1C 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 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 D4 00 00 00 F4 03 04 00 2F F5 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 96 84 02 00 35 04 06 00 40 00 00 1C [15:56:32]Write i2c OK [15:56:32]MH_I2C_Read... [15:56:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:32]Read from MH i2c: E2 [15:56:32]MH_I2C_Read... [15:56:32]Read from MH i2c: E2 03 00 [15:56:32]MH_I2C_Read... [15:56:32]Read from MH i2c: E2 03 00 1C 02 00 90 00 92 [15:56:32]RAPDU: 90 00 [15:56:32]wFMCommunicate OK [15:56:32]wFMCommunicate request_size=10 [15:56:32]MH_SAM_APDU [15:56:32]CAPDU: 80 0D 02 02 05 2F C3 C5 EB 2E [15:56:32]Write to MH i2c: E2 0D 00 1D 02 80 0D 02 02 05 00 2F C3 C5 EB 2E 00 00 73 [15:56:32]Write i2c OK [15:56:32]MH_I2C_Read... [15:56:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:32]Read from MH i2c: E2 [15:56:32]MH_I2C_Read... [15:56:32]Read from MH i2c: E2 03 00 [15:56:32]MH_I2C_Read... [15:56:32]Read from MH i2c: E2 03 00 1D 02 00 90 00 93 [15:56:32]RAPDU: 90 00 [15:56:32]wFMCommunicate OK [15:56:32]wFMCommunicate request_size=4 [15:56:32]MH_SAM_APDU [15:56:32]CAPDU: 80 0D 03 02 [15:56:32]Write to MH i2c: E2 08 00 1E 02 80 0D 03 02 00 00 00 00 9B [15:56:32]Write i2c OK [15:56:32]MH_I2C_Read... [15:56:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:56:32]Read from MH i2c: E2 [15:56:32]MH_I2C_Read... [15:56:32]Read from MH i2c: E2 0B 00 [15:56:32]MH_I2C_Read... [15:56:32]Read from MH i2c: E2 0B 00 1E 02 00 89 1B C0 D1 32 9C 07 F3 90 00 99 [15:56:32]RAPDU: 89 1B C0 D1 32 9C 07 F3 90 00 [15:56:32]wFMCommunicate OK [15:56:32]SAM_PROTO_SignData done [15:56:32]FM_MakeSignedData done [15:56:32]CreateOFDProtocolMessage [15:56:32]wFMCommunicate request_size=4 [15:56:32]MH_SAM_APDU [15:56:32]CAPDU: 80 11 00 00 [15:56:32]Write to MH i2c: E2 08 00 1F 02 80 11 00 00 00 00 00 00 9B [15:56:32]Write i2c OK [15:56:32]MH_I2C_Read... [15:56:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:32]Read from MH i2c: E2 [15:56:32]MH_I2C_Read... [15:56:32]Read from MH i2c: E2 17 00 [15:56:32]MH_I2C_Read... [15:56:32]Read from MH i2c: E2 17 00 1F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F1 [15:56:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:56:32]wFMCommunicate OK [15:56:32]CreateOFDProtocolMessage done [15:56:32]OFDSenderStorePacket 165014 [15:56:32]StoreOFDPacket docnum=165014 [15:56:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 A0 E4 07 01 F7 A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 D4 00 00 00 F4 03 04 00 2F F5 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 96 84 02 00 35 04 06 00 40 2F C3 C5 EB 2E 89 1B C0 D1 32 9C 07 F3 [15:56:32]CheckFolder [15:56:32]dirname=/storage/ofd_packets [15:56:32]CheckFolder done [15:56:32]ProducePacketName [15:56:32]name=ofd_packets/00165014 [15:56:32]NVStorageSaveData ofd_packets/00165014 [15:56:32]File name is /storage/ofd_packets/00165014 [15:56:32]Write 301 bytes [15:56:32]NVStorageSaveData done [15:56:32]OFDSenderStorePacket done [15:56:32]KKMCreateOFDPacket done [15:56:32]NVStorageSaveData kkm_last_timestamp [15:56:32]File name is /storage/kkm_last_timestamp [15:56:32]Write 4 bytes [15:56:32]NVStorageSaveData done [15:56:32]ExternCall_PrintAddStr [15:56:32]wPrintStart [15:56:32]Write to MH i2c: 01 00 00 20 02 22 [15:56:32]Write i2c OK [15:56:32]MH_I2C_Read... [15:56:32]Read from MH i2c: 01 [15:56:32]MH_I2C_Read... [15:56:32]Read from MH i2c: 01 07 00 [15:56:32]MH_I2C_Read... [15:56:32]Read from MH i2c: 01 07 00 20 02 00 00 00 00 00 FF 0F 37 [15:56:32]RasterBufferAndPrint [15:56:32]line Счет N : (1)459115 [15:56:32]line ИНН: 02508201610067 [15:56:32]line Контрольно-Кассовый Чек [15:56:32]line ПРОДАЖА [15:56:32]line ТРК (МРК, ГНК) : 12 [15:56:32]line Товар: 2710124130 [15:56:32]line Аи-92-К-5 [15:56:32]line 7.600 * 65.80 [15:56:32]line = 500.08 [15:56:32]line НДС 12% НСП 1% [15:56:32]line > о реализуемом товаре [15:56:32]line ОКРУГЛЕНИЕ: -0.08 [15:56:32]line ИТОГО: 500.00 [15:56:32]line Внесено: 500.00 [15:56:32]line СДАЧА: 0.00 [15:56:32]line НСП 1% : 4.42 [15:56:32]line НДС 12% : 53.11 [15:56:32]line Наличными: 500.00 [15:56:32]line Безнал.: 0.00 [15:56:32]line Место: АЗС № 72 "Партнер Нефть" [15:56:32]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:56:32]line СНО: Общий режим [15:56:32]line Чек 212 14.07.2024 15:56 [15:56:32]line Смена: 447 ФФД: 1.0 [15:56:32]line ЗНМ: 0300000160 [15:56:32]line РНМ: 0000000000090829 [15:56:32]line Версия ККМ: 001 [15:56:32]line ФМ: 0000000000874718 [15:56:32]line ФД: 165014 [15:56:32]line ФПД: 70573892168494 [15:56:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T155631&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165014&fm=70573892168494&tin=02508201610067®Number=0000000000090829&sum=50000 [15:56:32]OFD Sender: Processing packet 165014 [packets to send 105, broken 104] [15:56:32]ProducePacketName [15:56:32]name=ofd_packets/00165014 [15:56:32]OFD Sender: To server: pG, [15:56:32]CommunicateWithHost lk.salyk.kg:30040 [15:56:32]ConnectInit lk.salyk.kg [15:56:32]written 0, free lines is 4095 [15:56:32]Connected sock=10 [15:56:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 A0 E4 07 01 F7 A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 D4 00 00 00 F4 03 04 00 2F F5 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 96 84 02 00 35 04 06 00 40 2F C3 C5 EB 2E 89 1B C0 D1 32 9C 07 F3 [15:56:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 DD 6A 47 00 15 BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 96 84 02 00 F4 03 04 00 BC 9B 93 66 B6 04 01 00 00 77 55 8F 4B 61 BD 0D 9E [15:56:33]CommunicateWithHost err = 0 [15:56:33]CheckOFDResponse [15:56:33]1017 (14) - 77093643461234 [15:56:33]1041 (16) - 0000000000874718 [15:56:33]1040 (4) - 165014 [15:56:33]1012 (4) - 14.07.2024 09:34 [15:56:33]1206 (1) - 0 [15:56:33]OFD Sender: Remove packet 165014 [15:56:33]ProducePacketName [15:56:33]name=ofd_packets/00165014 [15:56:33]NVStorageDeleteData [15:56:33]Write to MH i2c: 01 00 00 4A 02 4C [15:56:33]Write i2c OK [15:56:33]MH_I2C_Read... [15:56:33]Read from MH i2c: 01 [15:56:33]MH_I2C_Read... [15:56:33]Read from MH i2c: 01 07 00 [15:56:33]MH_I2C_Read... [15:56:33]Read from MH i2c: 01 07 00 4A 02 00 00 00 00 00 F3 0C 52 [15:56:33]RasterBufferAndPrint [15:56:33]line [15:56:33]line [15:56:33]line [15:56:33]line [15:56:33]line [15:56:33]written 0, free lines is 3321 [15:56:33]MH_Cut [15:56:33]Write to MH i2c: D1 01 00 51 02 01 25 [15:56:33]Write i2c OK [15:56:33]MH_I2C_Read... [15:56:33]Read from MH i2c: D1 [15:56:33]MH_I2C_Read... [15:56:33]Read from MH i2c: D1 01 00 [15:56:33]MH_I2C_Read... [15:56:33]Read from MH i2c: D1 01 00 51 02 00 24 [15:56:33]Write to MH i2c: 01 00 00 52 02 54 [15:56:33]Write i2c OK [15:56:33]MH_I2C_Read... [15:56:33]OFD Sender: No OFD packet to send [15:56:33]*** Cut start [15:56:33]*** Partial cut [15:56:33]*** CUTSNS_PIN = 1 [15:56:33]*** CUTSNS_PIN = 0 [15:56:34]*** Brake cut motor [15:56:34]Read from MH i2c: 01 [15:56:34]MH_I2C_Read... [15:56:34]*** Stop cut motor [15:56:34]*** Cut end [15:56:34]Read from MH i2c: 01 07 00 [15:56:34]MH_I2C_Read... [15:56:34]Read from MH i2c: 01 07 00 52 02 00 00 00 00 00 FF 0F 69 [15:56:34]process_action close_receipt done [15:56:34]requested_data is exist [15:56:34]produce_requested_data [15:56:34]requested_item fm.sn is exist - process it [15:56:34]wFMCommunicate request_size=4 [15:56:34]MH_SAM_APDU [15:56:34]CAPDU: 80 11 00 00 [15:56:34]Write to MH i2c: E2 08 00 53 02 80 11 00 00 00 00 00 00 CF [15:56:34]Write i2c OK [15:56:34]MH_I2C_Read... [15:56:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:34]Read from MH i2c: E2 [15:56:34]MH_I2C_Read... [15:56:34]Read from MH i2c: E2 17 00 [15:56:34]MH_I2C_Read... [15:56:34]Read from MH i2c: E2 17 00 53 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 25 [15:56:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:56:34]wFMCommunicate OK [15:56:34]requested_item fd.num is exist - process it [15:56:34]SAM_PROTO_GetFieldsCounters [15:56:34]wFMCommunicate request_size=4 [15:56:34]MH_SAM_APDU [15:56:34]CAPDU: 80 13 00 00 [15:56:34]Write to MH i2c: E2 08 00 54 02 80 13 00 00 00 00 00 00 D2 [15:56:34]Write i2c OK [15:56:34]MH_I2C_Read... [15:56:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:56:34]Read from MH i2c: E2 [15:56:34]MH_I2C_Read... [15:56:34]Read from MH i2c: E2 62 00 [15:56:34]MH_I2C_Read... [15:56:34]Read from MH i2c: E2 62 00 54 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 96 84 02 00 0E 04 04 00 BF 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 51 [15:56:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 96 84 02 00 0E 04 04 00 BF 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:56:34]wFMCommunicate OK [15:56:34]SAM_PROTO_GetFieldsCounters done [15:56:34]requested_item shift.num is exist - process it [15:56:34]requested_item shift.opened is exist - process it [15:56:34]req_shift_opened [15:56:34]FM_GetShiftState [15:56:34]SAM_PROTO_GetShiftState [15:56:34]wFMCommunicate request_size=4 [15:56:34]MH_SAM_APDU [15:56:34]CAPDU: 80 13 01 00 [15:56:34]Write to MH i2c: E2 08 00 55 02 80 13 01 00 00 00 00 00 D4 [15:56:34]Write i2c OK [15:56:34]MH_I2C_Read... [15:56:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:34]Read from MH i2c: E2 [15:56:34]MH_I2C_Read... [15:56:34]Read from MH i2c: E2 0E 00 [15:56:34]MH_I2C_Read... [15:56:34]Read from MH i2c: E2 0E 00 55 02 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 54 [15:56:34]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [15:56:34]wFMCommunicate OK [15:56:34]SAM_PROTO_GetShiftState done [15:56:34]FM_GetShiftState done [15:56:34]req_shift_opened done [15:56:34]requested_item shift.open_date is exist - process it [15:56:34]req_shift_open_date [15:56:34]req_shift_open_date done [15:56:34]produce_requested_data done [15:56:34]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165014,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [15:56:34]process_action_free close_receipt [15:56:34]json_value_free [15:56:34]json_value_free done [15:56:34]process_json_proto returns [15:56:34]Send response to host [15:56:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165014,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [15:56:34]free response buf [15:56:34]execute_script done [15:56:34]execute_script returns [15:56:34]free content buf [15:56:34]Sock 8.Close socket [15:56:34]Sock 8.Thread stoped [15:56:38]OFD Sender: No OFD packet to send [15:56:43]OFD Sender: No OFD packet to send [15:56:48]OFD Sender: No OFD packet to send [15:56:53]OFD Sender: No OFD packet to send [15:56:58]OFD Sender: No OFD packet to send [15:57:03]OFD Sender: No OFD packet to send [15:57:08]OFD Sender: No OFD packet to send [15:57:13]OFD Sender: No OFD packet to send [15:57:18]OFD Sender: No OFD packet to send [15:57:23]OFD Sender: No OFD packet to send [15:57:28]OFD Sender: No OFD packet to send [15:57:33]OFD Sender: No OFD packet to send [15:57:38]OFD Sender: No OFD packet to send [15:57:43]OFD Sender: No OFD packet to send [15:57:48]OFD Sender: No OFD packet to send [15:57:49]accept exits with 9 [15:57:49]New connection [15:57:49]New thread 3066674532 created [15:57:49]Thread 3066531172 joined [15:57:49]Waiting for new connection... [15:57:49] Sock 9.Parse request [15:57:49]Sock 9.Check first char [15:57:49]Sock 9.First char is OK [15:57:49]request: POST /json_proto HTTP/1.0 [15:57:49]Method: POST [15:57:49]URL: /json_proto [15:57:49]Method is POST - this is cgi request [15:57:49]url: /json_proto [15:57:49]query_string will be loaded in cgi processing [15:57:49]execute_cgi json_proto POST (null) [15:57:49]execute_cgi path=json_proto method=POST [15:57:49]POST find Content-Length [15:57:49]Host: 172.17.56.4:8080 [15:57:49]Content-Length: 677 [15:57:49]Content-Type: application/json [15:57:49] [15:57:49]POST finish read [15:57:49]Found Content-Length = 677 [15:57:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459116", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.020, "sum" : 330.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 330.00, "total" : 330.00, "payments": [ { "type": 0, "sum" : 330.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:57:49]execute_script... [15: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)459116", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.020, "sum" : 330.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 330.00, "total" : 330.00, "payments": [ { "type": 0, "sum" : 330.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:57:49]POST & json_proto [15:57:49]process_json_proto [15:57:49]json parsed OK: [15:57:49]protocol is kg_v1.0 [15:57:49]action value=close_receipt [15:57:49]process_action close_receipt [15:57:49]cmd_close_receipt [15:57:49]MH_GetDate [15:57:49]Write to MH i2c: F0 00 00 56 02 47 [15:57:49]Write i2c OK [15:57:49]MH_I2C_Read... [15:57:49]Read from MH i2c: F0 [15:57:49]MH_I2C_Read... [15:57:49]Read from MH i2c: F0 09 00 [15:57:49]MH_I2C_Read... [15:57:49]Read from MH i2c: F0 09 00 56 02 00 7E F5 93 66 C9 DC B2 64 77 [15:57:49]GetLastDocTimeStamp 1720972591 [15:57:49]current date 1720972670 [15:57:49]FM_GetShiftState [15:57:49]SAM_PROTO_GetShiftState [15:57:49]wFMCommunicate request_size=4 [15:57:49]MH_SAM_APDU [15:57:49]CAPDU: 80 13 01 00 [15:57:49]Write to MH i2c: E2 08 00 57 02 80 13 01 00 00 00 00 00 D6 [15:57:49]Write i2c OK [15:57:49]MH_I2C_Read... [15:57:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:57:49]Read from MH i2c: E2 [15:57:49]MH_I2C_Read... [15:57:49]Read from MH i2c: E2 0E 00 [15:57:49]MH_I2C_Read... [15:57:49]Read from MH i2c: E2 0E 00 57 02 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 56 [15:57:49]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [15:57:49]wFMCommunicate OK [15:57:49]SAM_PROTO_GetShiftState done [15:57:49]FM_GetShiftState done [15:57:49]opened in 1720917342 [15:57:49]opened+sec_in_day 1721003742 [15:57:49]quantity*price = 33031 [15:57:49]sum+1 = 33033 [15:57:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 330.00 Внесено: 330.00 СДАЧА: 0.00 НСП 1% : 2.92 НДС 12% : 35.08 Наличными: 330.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 213 14.07.2024 15:57 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165015 ФПД: 233648865113859 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T155750&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165015&fm=233648865113859&tin=02508201610067®Number=0000000000090829&sum=33000 [15:57:51]StoreToDocumentArchive [15:57:51]shift 447 fd 165015 [15:57:51]save to /storage/0447/doc_00165015 [15:57:51]save last doc name /storage/0447/doc_00165015 to /storage/kkm_last_doc_name [15:57:51]save OK [15:57:51]Clear old archive folders... [15:57:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:57:51]tlvbuf is 01476310 [15:57:51]SAM_PROTO_ClearQueue [15:57:51]wFMCommunicate request_size=4 [15:57:51]MH_SAM_APDU [15:57:51]CAPDU: 80 09 00 00 [15:57:51]Write to MH i2c: E2 08 00 64 02 80 09 00 00 00 00 00 00 D8 [15:57:51]Write i2c OK [15:57:51]MH_I2C_Read... [15:57:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:57:51]Read from MH i2c: E2 [15:57:51]MH_I2C_Read... [15:57:51]Read from MH i2c: E2 03 00 [15:57:51]MH_I2C_Read... [15:57:51]Read from MH i2c: E2 03 00 64 02 00 90 00 DA [15:57:51]RAPDU: 90 00 [15:57:51]wFMCommunicate OK [15:57:51]SAM_PROTO_ClearQueue done [15:57:51]KKMCreateOFDPacket [15:57:51]OFDProtocolAddRootSTLVToBuf [15:57:51]FM_MakeSignedData [15:57:51]FM_MakeSignedData [15:57:51]SAM_PROTO_SignData [15:57:51]wFMCommunicate request_size=4 [15:57:51]MH_SAM_APDU [15:57:51]CAPDU: 80 0D 01 02 [15:57:51]Write to MH i2c: E2 08 00 65 02 80 0D 01 02 00 00 00 00 E0 [15:57:51]Write i2c OK [15:57:51]MH_I2C_Read... [15:57:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:57:51]Read from MH i2c: E2 [15:57:51]MH_I2C_Read... [15:57:51]Read from MH i2c: E2 03 00 [15:57:51]MH_I2C_Read... [15:57:51]Read from MH i2c: E2 03 00 65 02 00 90 00 DB [15:57:51]RAPDU: 90 00 [15:57:51]wFMCommunicate OK [15:57:51]wFMCommunicate request_size=255 [15:57:51]MH_SAM_APDU [15:57:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 7E F5 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 97 84 02 00 35 04 06 00 D4 [15:57:51]Write to MH i2c: E2 02 01 66 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 35 FF 03 08 00 03 9C 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 7E F5 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 97 84 02 00 35 04 06 00 D4 00 00 9D [15:57:51]Write i2c OK [15:57:51]MH_I2C_Read... [15:57:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:51]Read from MH i2c: E2 [15:57:51]MH_I2C_Read... [15:57:51]Read from MH i2c: E2 03 00 [15:57:51]MH_I2C_Read... [15:57:51]Read from MH i2c: E2 03 00 66 02 00 90 00 DC [15:57:51]RAPDU: 90 00 [15:57:51]wFMCommunicate OK [15:57:51]wFMCommunicate request_size=10 [15:57:51]MH_SAM_APDU [15:57:51]CAPDU: 80 0D 02 02 05 80 9D 9B 77 03 [15:57:51]Write to MH i2c: E2 0D 00 67 02 80 0D 02 02 05 00 80 9D 9B 77 03 00 00 1F [15:57:51]Write i2c OK [15:57:51]MH_I2C_Read... [15:57:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:51]Read from MH i2c: E2 [15:57:51]MH_I2C_Read... [15:57:51]Read from MH i2c: E2 03 00 [15:57:51]MH_I2C_Read... [15:57:51]Read from MH i2c: E2 03 00 67 02 00 90 00 DD [15:57:51]RAPDU: 90 00 [15:57:51]wFMCommunicate OK [15:57:51]wFMCommunicate request_size=4 [15:57:51]MH_SAM_APDU [15:57:51]CAPDU: 80 0D 03 02 [15:57:51]Write to MH i2c: E2 08 00 68 02 80 0D 03 02 00 00 00 00 E5 [15:57:51]Write i2c OK [15:57:51]MH_I2C_Read... [15:57:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:57:51]Read from MH i2c: E2 [15:57:51]MH_I2C_Read... [15:57:51]Read from MH i2c: E2 0B 00 [15:57:51]MH_I2C_Read... [15:57:51]Read from MH i2c: E2 0B 00 68 02 00 1B A0 DB AB 3E DE 5D B5 90 00 55 [15:57:51]RAPDU: 1B A0 DB AB 3E DE 5D B5 90 00 [15:57:51]wFMCommunicate OK [15:57:51]SAM_PROTO_SignData done [15:57:51]FM_MakeSignedData done [15:57:51]CreateOFDProtocolMessage [15:57:51]wFMCommunicate request_size=4 [15:57:51]MH_SAM_APDU [15:57:51]CAPDU: 80 11 00 00 [15:57:51]Write to MH i2c: E2 08 00 69 02 80 11 00 00 00 00 00 00 E5 [15:57:51]Write i2c OK [15:57:51]MH_I2C_Read... [15:57:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:57:51]Read from MH i2c: E2 [15:57:51]MH_I2C_Read... [15:57:51]Read from MH i2c: E2 17 00 [15:57:51]MH_I2C_Read... [15:57:51]Read from MH i2c: E2 17 00 69 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 3B [15:57:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:57:51]wFMCommunicate OK [15:57:51]CreateOFDProtocolMessage done [15:57:51]OFDSenderStorePacket 165015 [15:57:51]StoreOFDPacket docnum=165015 [15:57:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 6B C4 07 01 B2 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 35 FF 03 08 00 03 9C 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 7E F5 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 97 84 02 00 35 04 06 00 D4 80 9D 9B 77 03 1B A0 DB AB 3E DE 5D B5 [15:57:51]CheckFolder [15:57:51]dirname=/storage/ofd_packets [15:57:51]CheckFolder done [15:57:51]ProducePacketName [15:57:51]name=ofd_packets/00165015 [15:57:51]NVStorageSaveData ofd_packets/00165015 [15:57:51]File name is /storage/ofd_packets/00165015 [15:57:51]Write 301 bytes [15:57:51]NVStorageSaveData done [15:57:51]OFDSenderStorePacket done [15:57:51]KKMCreateOFDPacket done [15:57:51]NVStorageSaveData kkm_last_timestamp [15:57:51]File name is /storage/kkm_last_timestamp [15:57:51]Write 4 bytes [15:57:51]NVStorageSaveData done [15:57:51]ExternCall_PrintAddStr [15:57:51]wPrintStart [15:57:51]Write to MH i2c: 01 00 00 6A 02 6C [15:57:51]Write i2c OK [15:57:51]MH_I2C_Read... [15:57:51]Read from MH i2c: 01 [15:57:51]MH_I2C_Read... [15:57:51]Read from MH i2c: 01 07 00 [15:57:51]MH_I2C_Read... [15:57:51]Read from MH i2c: 01 07 00 6A 02 00 00 00 00 00 FF 0F 81 [15:57:51]RasterBufferAndPrint [15:57:51]line Счет N : (1)459116 [15:57:51]line ИНН: 02508201610067 [15:57:51]line Контрольно-Кассовый Чек [15:57:51]line ПРОДАЖА [15:57:51]line ТРК (МРК, ГНК) : 22 [15:57:51]line Товар: 2710124130 [15:57:51]line Аи-92-К-5 [15:57:51]line 5.020 * 65.80 [15:57:51]line = 330.32 [15:57:51]line НДС 12% НСП 1% [15:57:51]line > о реализуемом товаре [15:57:51]line ОКРУГЛЕНИЕ: -0.32 [15:57:51]line ИТОГО: 330.00 [15:57:51]line Внесено: 330.00 [15:57:51]line СДАЧА: 0.00 [15:57:51]line НСП 1% : 2.92 [15:57:51]line НДС 12% : 35.08 [15:57:51]line Наличными: 330.00 [15:57:51]line Безнал.: 0.00 [15:57:51]line Место: АЗС № 72 "Партнер Нефть" [15:57:51]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:57:51]line СНО: Общий режим [15:57:51]line Чек 213 14.07.2024 15:57 [15:57:51]line Смена: 447 ФФД: 1.0 [15:57:51]line ЗНМ: 0300000160 [15:57:51]line РНМ: 0000000000090829 [15:57:51]line Версия ККМ: 001 [15:57:51]line ФМ: 0000000000874718 [15:57:51]line ФД: 165015 [15:57:51]line ФПД: 233648865113859 [15:57:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T155750&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165015&fm=233648865113859&tin=02508201610067®Number=0000000000090829&sum=33000 [15:57:51]written 0, free lines is 4095 [15:57:51]OFD Sender: Processing packet 165015 [packets to send 105, broken 104] [15:57:51]ProducePacketName [15:57:51]name=ofd_packets/00165015 [15:57:51]OFD Sender: To server: pG, [15:57:51]CommunicateWithHost lk.salyk.kg:30040 [15:57:51]ConnectInit lk.salyk.kg [15:57:52]Connected sock=10 [15:57:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 6B C4 07 01 B2 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 35 FF 03 08 00 03 9C 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 7E F5 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 97 84 02 00 35 04 06 00 D4 80 9D 9B 77 03 1B A0 DB AB 3E DE 5D B5 [15:57:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 A1 07 47 00 5E 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 97 84 02 00 F4 03 04 00 0C 9C 93 66 B6 04 01 00 00 4D 5E F6 08 32 09 C5 31 [15:57:52]CommunicateWithHost err = 0 [15:57:52]CheckOFDResponse [15:57:52]1017 (14) - 77093643461234 [15:57:52]1041 (16) - 0000000000874718 [15:57:52]1040 (4) - 165015 [15:57:52]1012 (4) - 14.07.2024 09:36 [15:57:52]1206 (1) - 0 [15:57:52]OFD Sender: Remove packet 165015 [15:57:52]ProducePacketName [15:57:52]name=ofd_packets/00165015 [15:57:52]NVStorageDeleteData [15:57:52]Write to MH i2c: 01 00 00 94 02 96 [15:57:52]Write i2c OK [15:57:52]MH_I2C_Read... [15:57:52]Read from MH i2c: 01 [15:57:52]MH_I2C_Read... [15:57:52]Read from MH i2c: 01 07 00 [15:57:52]MH_I2C_Read... [15:57:52]Read from MH i2c: 01 07 00 94 02 00 00 00 00 00 F2 0C 9B [15:57:52]RasterBufferAndPrint [15:57:52]line [15:57:52]line [15:57:52]line [15:57:52]line [15:57:52]line [15:57:52]written 0, free lines is 3320 [15:57:52]MH_Cut [15:57:52]Write to MH i2c: D1 01 00 9B 02 01 6F [15:57:52]Write i2c OK [15:57:52]MH_I2C_Read... [15:57:52]Read from MH i2c: D1 [15:57:52]MH_I2C_Read... [15:57:52]Read from MH i2c: D1 01 00 [15:57:52]MH_I2C_Read... [15:57:52]Read from MH i2c: D1 01 00 9B 02 00 6E [15:57:52]Write to MH i2c: 01 00 00 9C 02 9E [15:57:52]Write i2c OK [15:57:52]MH_I2C_Read... [15:57:52]OFD Sender: No OFD packet to send [15:57:53]*** Cut start [15:57:53]*** Partial cut [15:57:53]*** CUTSNS_PIN = 1 [15:57:53]*** CUTSNS_PIN = 0 [15:57:53]*** Brake cut motor [15:57:53]Read from MH i2c: 01 [15:57:53]MH_I2C_Read... [15:57:53]*** Stop cut motor [15:57:53]*** Cut end [15:57:53]Read from MH i2c: 01 07 00 [15:57:53]MH_I2C_Read... [15:57:53]Read from MH i2c: 01 07 00 9C 02 00 00 00 00 00 FF 0F B3 [15:57:53]process_action close_receipt done [15:57:53]requested_data is exist [15:57:53]produce_requested_data [15:57:53]requested_item fm.sn is exist - process it [15:57:53]wFMCommunicate request_size=4 [15:57:53]MH_SAM_APDU [15:57:53]CAPDU: 80 11 00 00 [15:57:53]Write to MH i2c: E2 08 00 9D 02 80 11 00 00 00 00 00 00 19 [15:57:53]Write i2c OK [15:57:53]MH_I2C_Read... [15:57:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:57:53]Read from MH i2c: E2 [15:57:53]MH_I2C_Read... [15:57:53]Read from MH i2c: E2 17 00 [15:57:53]MH_I2C_Read... [15:57:53]Read from MH i2c: E2 17 00 9D 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 6F [15:57:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:57:53]wFMCommunicate OK [15:57:53]requested_item fd.num is exist - process it [15:57:53]SAM_PROTO_GetFieldsCounters [15:57:53]wFMCommunicate request_size=4 [15:57:53]MH_SAM_APDU [15:57:53]CAPDU: 80 13 00 00 [15:57:53]Write to MH i2c: E2 08 00 9E 02 80 13 00 00 00 00 00 00 1C [15:57:53]Write i2c OK [15:57:53]MH_I2C_Read... [15:57:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:57:53]Read from MH i2c: E2 [15:57:53]MH_I2C_Read... [15:57:53]Read from MH i2c: E2 62 00 [15:57:53]MH_I2C_Read... [15:57:53]Read from MH i2c: E2 62 00 9E 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 97 84 02 00 0E 04 04 00 BF 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 9F [15:57:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 97 84 02 00 0E 04 04 00 BF 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 [15:57:53]wFMCommunicate OK [15:57:53]SAM_PROTO_GetFieldsCounters done [15:57:53]requested_item shift.num is exist - process it [15:57:53]requested_item shift.opened is exist - process it [15:57:53]req_shift_opened [15:57:53]FM_GetShiftState [15:57:53]SAM_PROTO_GetShiftState [15:57:53]wFMCommunicate request_size=4 [15:57:53]MH_SAM_APDU [15:57:53]CAPDU: 80 13 01 00 [15:57:53]Write to MH i2c: E2 08 00 9F 02 80 13 01 00 00 00 00 00 1E [15:57:53]Write i2c OK [15:57:53]MH_I2C_Read... [15:57:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:57:53]Read from MH i2c: E2 [15:57:53]MH_I2C_Read... [15:57:53]Read from MH i2c: E2 0E 00 [15:57:53]MH_I2C_Read... [15:57:53]Read from MH i2c: E2 0E 00 9F 02 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 9E [15:57:53]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [15:57:53]wFMCommunicate OK [15:57:53]SAM_PROTO_GetShiftState done [15:57:53]FM_GetShiftState done [15:57:53]req_shift_opened done [15:57:53]requested_item shift.open_date is exist - process it [15:57:53]req_shift_open_date [15:57:53]req_shift_open_date done [15:57:53]produce_requested_data done [15:57:53]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165015,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [15:57:53]process_action_free close_receipt [15:57:53]json_value_free [15:57:53]json_value_free done [15:57:53]process_json_proto returns [15:57:53]Send response to host [15:57:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165015,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [15:57:53]free response buf [15:57:53]execute_script done [15:57:53]execute_script returns [15:57:53]free content buf [15:57:53]Sock 9.Close socket [15:57:53]Sock 9.Thread stoped [15:57:57]OFD Sender: No OFD packet to send [15:58:02]OFD Sender: No OFD packet to send [15:58:07]OFD Sender: No OFD packet to send [15:58:12]OFD Sender: No OFD packet to send [15:58:17]OFD Sender: No OFD packet to send [15:58:22]OFD Sender: No OFD packet to send [15:58:27]OFD Sender: No OFD packet to send [15:58:32]OFD Sender: No OFD packet to send [15:58:37]OFD Sender: No OFD packet to send [15:58:42]OFD Sender: No OFD packet to send [15:58:47]OFD Sender: No OFD packet to send [15:58:52]OFD Sender: No OFD packet to send [15:58:57]OFD Sender: No OFD packet to send [15:59:02]OFD Sender: No OFD packet to send [15:59:07]OFD Sender: No OFD packet to send [15:59:12]OFD Sender: No OFD packet to send [15:59:17]OFD Sender: No OFD packet to send [15:59:22]OFD Sender: No OFD packet to send [15:59:27]OFD Sender: No OFD packet to send [15:59:32]OFD Sender: No OFD packet to send [15:59:37]OFD Sender: No OFD packet to send [15:59:42]OFD Sender: No OFD packet to send [15:59:47]OFD Sender: No OFD packet to send [15:59:52]OFD Sender: No OFD packet to send [15:59:57]OFD Sender: No OFD packet to send [16:00:02]OFD Sender: No OFD packet to send [16:00:07]OFD Sender: No OFD packet to send [16:00:12]OFD Sender: No OFD packet to send [16:00:17]OFD Sender: No OFD packet to send [16:00:22]OFD Sender: No OFD packet to send [16:00:27]OFD Sender: No OFD packet to send [16:00:32]OFD Sender: No OFD packet to send [16:00:37]OFD Sender: No OFD packet to send [16:00:42]OFD Sender: No OFD packet to send [16:00:47]OFD Sender: No OFD packet to send [16:00:52]OFD Sender: No OFD packet to send [16:00:53]accept exits with 8 [16:00:53]New connection [16:00:53]New thread 3066531172 created [16:00:53]Thread 3066674532 joined [16:00:53]Waiting for new connection... [16:00:53] Sock 8.Parse request [16:00:53]Sock 8.Check first char [16:00:53]Sock 8.First char is OK [16:00:53]request: POST /json_proto HTTP/1.0 [16:00:53]Method: POST [16:00:53]URL: /json_proto [16:00:53]Method is POST - this is cgi request [16:00:53]url: /json_proto [16:00:53]query_string will be loaded in cgi processing [16:00:53]execute_cgi json_proto POST (null) [16:00:53]execute_cgi path=json_proto method=POST [16:00:53]POST find Content-Length [16:00:53]Host: 172.17.56.4:8080 [16:00:53]Content-Length: 677 [16:00:53]Content-Type: application/json [16:00:53] [16:00:53]POST finish read [16:00:53]Found Content-Length = 677 [16:00:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459117", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "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" ] } } [16:00:53]execute_script... [16: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)459117", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "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" ] } } [16:00:53]POST & json_proto [16:00:53]process_json_proto [16:00:53]json parsed OK: [16:00:53]protocol is kg_v1.0 [16:00:53]action value=close_receipt [16:00:53]process_action close_receipt [16:00:53]cmd_close_receipt [16:00:53]MH_GetDate [16:00:53]Write to MH i2c: F0 00 00 A0 02 91 [16:00:53]Write i2c OK [16:00:53]MH_I2C_Read... [16:00:53]Read from MH i2c: F0 [16:00:53]MH_I2C_Read... [16:00:53]Read from MH i2c: F0 09 00 [16:00:53]MH_I2C_Read... [16:00:53]Read from MH i2c: F0 09 00 A0 02 00 36 F6 93 66 C9 DC B2 64 7A [16:00:53]GetLastDocTimeStamp 1720972670 [16:00:53]current date 1720972854 [16:00:53]FM_GetShiftState [16:00:53]SAM_PROTO_GetShiftState [16:00:53]wFMCommunicate request_size=4 [16:00:53]MH_SAM_APDU [16:00:53]CAPDU: 80 13 01 00 [16:00:53]Write to MH i2c: E2 08 00 A1 02 80 13 01 00 00 00 00 00 20 [16:00:53]Write i2c OK [16:00:53]MH_I2C_Read... [16:00:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:53]Read from MH i2c: E2 [16:00:53]MH_I2C_Read... [16:00:53]Read from MH i2c: E2 0E 00 [16:00:53]MH_I2C_Read... [16:00:53]Read from MH i2c: E2 0E 00 A1 02 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 A0 [16:00:53]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [16:00:53]wFMCommunicate OK [16:00:53]SAM_PROTO_GetShiftState done [16:00:53]FM_GetShiftState done [16:00:53]opened in 1720917342 [16:00:53]opened+sec_in_day 1721003742 [16:00:53]quantity*price = 60009 [16:00:53]sum+1 = 60011 [16:00:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 214 14.07.2024 16:00 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165016 ФПД: 140819567549647 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T160054&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165016&fm=140819567549647&tin=02508201610067®Number=0000000000090829&sum=60000 [16:00:54]StoreToDocumentArchive [16:00:54]shift 447 fd 165016 [16:00:54]save to /storage/0447/doc_00165016 [16:00:54]save last doc name /storage/0447/doc_00165016 to /storage/kkm_last_doc_name [16:00:54]save OK [16:00:54]Clear old archive folders... [16:00:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:00:54]tlvbuf is 01476AC0 [16:00:54]SAM_PROTO_ClearQueue [16:00:54]wFMCommunicate request_size=4 [16:00:54]MH_SAM_APDU [16:00:54]CAPDU: 80 09 00 00 [16:00:54]Write to MH i2c: E2 08 00 AE 02 80 09 00 00 00 00 00 00 22 [16:00:54]Write i2c OK [16:00:54]MH_I2C_Read... [16:00:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:00:54]Read from MH i2c: E2 [16:00:54]MH_I2C_Read... [16:00:54]Read from MH i2c: E2 03 00 [16:00:54]MH_I2C_Read... [16:00:54]Read from MH i2c: E2 03 00 AE 02 00 90 00 24 [16:00:54]RAPDU: 90 00 [16:00:54]wFMCommunicate OK [16:00:54]SAM_PROTO_ClearQueue done [16:00:54]KKMCreateOFDPacket [16:00:54]OFDProtocolAddRootSTLVToBuf [16:00:54]FM_MakeSignedData [16:00:54]FM_MakeSignedData [16:00:54]SAM_PROTO_SignData [16:00:54]wFMCommunicate request_size=4 [16:00:54]MH_SAM_APDU [16:00:54]CAPDU: 80 0D 01 02 [16:00:54]Write to MH i2c: E2 08 00 AF 02 80 0D 01 02 00 00 00 00 2A [16:00:54]Write i2c OK [16:00:54]MH_I2C_Read... [16:00:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:00:54]Read from MH i2c: E2 [16:00:54]MH_I2C_Read... [16:00:54]Read from MH i2c: E2 03 00 [16:00:54]MH_I2C_Read... [16:00:54]Read from MH i2c: E2 03 00 AF 02 00 90 00 25 [16:00:54]RAPDU: 90 00 [16:00:54]wFMCommunicate OK [16:00:54]wFMCommunicate request_size=255 [16:00:54]MH_SAM_APDU [16:00:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A 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 D6 00 00 00 F4 03 04 00 36 F6 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 98 84 02 00 35 04 06 00 80 [16:00:54]Write to MH i2c: E2 02 01 B0 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 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A 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 D6 00 00 00 F4 03 04 00 36 F6 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 98 84 02 00 35 04 06 00 80 00 00 1D [16:00:54]Write i2c OK [16:00:54]MH_I2C_Read... [16:00:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:55]Read from MH i2c: E2 [16:00:55]MH_I2C_Read... [16:00:55]Read from MH i2c: E2 03 00 [16:00:55]MH_I2C_Read... [16:00:55]Read from MH i2c: E2 03 00 B0 02 00 90 00 26 [16:00:55]RAPDU: 90 00 [16:00:55]wFMCommunicate OK [16:00:55]wFMCommunicate request_size=10 [16:00:55]MH_SAM_APDU [16:00:55]CAPDU: 80 0D 02 02 05 13 1C 4D 1C CF [16:00:55]Write to MH i2c: E2 0D 00 B1 02 80 0D 02 02 05 00 13 1C 4D 1C CF 00 00 9E [16:00:55]Write i2c OK [16:00:55]MH_I2C_Read... [16:00:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:55]Read from MH i2c: E2 [16:00:55]MH_I2C_Read... [16:00:55]Read from MH i2c: E2 03 00 [16:00:55]MH_I2C_Read... [16:00:55]Read from MH i2c: E2 03 00 B1 02 00 90 00 27 [16:00:55]RAPDU: 90 00 [16:00:55]wFMCommunicate OK [16:00:55]wFMCommunicate request_size=4 [16:00:55]MH_SAM_APDU [16:00:55]CAPDU: 80 0D 03 02 [16:00:55]Write to MH i2c: E2 08 00 B2 02 80 0D 03 02 00 00 00 00 2F [16:00:55]Write i2c OK [16:00:55]MH_I2C_Read... [16:00:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:00:55]Read from MH i2c: E2 [16:00:55]MH_I2C_Read... [16:00:55]Read from MH i2c: E2 0B 00 [16:00:55]MH_I2C_Read... [16:00:55]Read from MH i2c: E2 0B 00 B2 02 00 FD 4B 00 56 50 1A D5 AF 90 00 BC [16:00:55]RAPDU: FD 4B 00 56 50 1A D5 AF 90 00 [16:00:55]wFMCommunicate OK [16:00:55]SAM_PROTO_SignData done [16:00:55]FM_MakeSignedData done [16:00:55]CreateOFDProtocolMessage [16:00:55]wFMCommunicate request_size=4 [16:00:55]MH_SAM_APDU [16:00:55]CAPDU: 80 11 00 00 [16:00:55]Write to MH i2c: E2 08 00 B3 02 80 11 00 00 00 00 00 00 2F [16:00:55]Write i2c OK [16:00:55]MH_I2C_Read... [16:00:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:55]Read from MH i2c: E2 [16:00:55]MH_I2C_Read... [16:00:55]Read from MH i2c: E2 17 00 [16:00:55]MH_I2C_Read... [16:00:55]Read from MH i2c: E2 17 00 B3 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 85 [16:00:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:00:55]wFMCommunicate OK [16:00:55]CreateOFDProtocolMessage done [16:00:55]OFDSenderStorePacket 165016 [16:00:55]StoreOFDPacket docnum=165016 [16:00:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 9A F5 07 01 E9 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A 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 D6 00 00 00 F4 03 04 00 36 F6 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 98 84 02 00 35 04 06 00 80 13 1C 4D 1C CF FD 4B 00 56 50 1A D5 AF [16:00:55]CheckFolder [16:00:55]dirname=/storage/ofd_packets [16:00:55]CheckFolder done [16:00:55]ProducePacketName [16:00:55]name=ofd_packets/00165016 [16:00:55]NVStorageSaveData ofd_packets/00165016 [16:00:55]File name is /storage/ofd_packets/00165016 [16:00:55]Write 301 bytes [16:00:55]NVStorageSaveData done [16:00:55]OFDSenderStorePacket done [16:00:55]KKMCreateOFDPacket done [16:00:55]NVStorageSaveData kkm_last_timestamp [16:00:55]File name is /storage/kkm_last_timestamp [16:00:55]Write 4 bytes [16:00:55]NVStorageSaveData done [16:00:55]ExternCall_PrintAddStr [16:00:55]wPrintStart [16:00:55]Write to MH i2c: 01 00 00 B4 02 B6 [16:00:55]Write i2c OK [16:00:55]MH_I2C_Read... [16:00:55]Read from MH i2c: 01 [16:00:55]MH_I2C_Read... [16:00:55]Read from MH i2c: 01 07 00 [16:00:55]MH_I2C_Read... [16:00:55]Read from MH i2c: 01 07 00 B4 02 00 00 00 00 00 FF 0F CB [16:00:55]RasterBufferAndPrint [16:00:55]line Счет N : (1)459117 [16:00:55]line ИНН: 02508201610067 [16:00:55]line Контрольно-Кассовый Чек [16:00:55]line ПРОДАЖА [16:00:55]line ТРК (МРК, ГНК) : 22 [16:00:55]line Товар: 2710124130 [16:00:55]line Аи-92-К-5 [16:00:55]line 9.120 * 65.80 [16:00:55]line = 600.10 [16:00:55]line НДС 12% НСП 1% [16:00:55]line > о реализуемом товаре [16:00:55]line ОКРУГЛЕНИЕ: -0.10 [16:00:55]line ИТОГО: 600.00 [16:00:55]line Внесено: 600.00 [16:00:55]line СДАЧА: 0.00 [16:00:55]line НСП 1% : 5.31 [16:00:55]line НДС 12% : 63.73 [16:00:55]line Наличными: 600.00 [16:00:55]line Безнал.: 0.00 [16:00:55]line Место: АЗС № 72 "Партнер Нефть" [16:00:55]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:00:55]line СНО: Общий режим [16:00:55]line Чек 214 14.07.2024 16:00 [16:00:55]line Смена: 447 ФФД: 1.0 [16:00:55]line ЗНМ: 0300000160 [16:00:55]line РНМ: 0000000000090829 [16:00:55]line Версия ККМ: 001 [16:00:55]line ФМ: 0000000000874718 [16:00:55]line ФД: 165016 [16:00:55]line ФПД: 140819567549647 [16:00:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T160054&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165016&fm=140819567549647&tin=02508201610067®Number=0000000000090829&sum=60000 [16:00:55]OFD Sender: Processing packet 165016 [packets to send 105, broken 104] [16:00:55]ProducePacketName [16:00:55]name=ofd_packets/00165016 [16:00:55]OFD Sender: To server: pG, [16:00:55]CommunicateWithHost lk.salyk.kg:30040 [16:00:55]ConnectInit lk.salyk.kg [16:00:55]written 0, free lines is 4095 [16:00:55]Connected sock=10 [16:00:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 9A F5 07 01 E9 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A 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 D6 00 00 00 F4 03 04 00 36 F6 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 98 84 02 00 35 04 06 00 80 13 1C 4D 1C CF FD 4B 00 56 50 1A D5 AF [16:00:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 E5 94 47 00 16 99 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 98 84 02 00 F4 03 04 00 C3 9C 93 66 B6 04 01 00 00 71 B5 E5 04 4B C0 01 38 [16:00:55]CommunicateWithHost err = 0 [16:00:55]CheckOFDResponse [16:00:55]1017 (14) - 77093643461234 [16:00:55]1041 (16) - 0000000000874718 [16:00:55]1040 (4) - 165016 [16:00:55]1012 (4) - 14.07.2024 09:39 [16:00:55]1206 (1) - 0 [16:00:55]OFD Sender: Remove packet 165016 [16:00:55]ProducePacketName [16:00:55]name=ofd_packets/00165016 [16:00:55]NVStorageDeleteData [16:00:55]Write to MH i2c: 01 00 00 DE 02 E0 [16:00:55]Write i2c OK [16:00:55]MH_I2C_Read... [16:00:55]Read from MH i2c: 01 [16:00:55]MH_I2C_Read... [16:00:55]Read from MH i2c: 01 07 00 [16:00:55]MH_I2C_Read... [16:00:55]Read from MH i2c: 01 07 00 DE 02 00 00 00 00 00 F2 0C E5 [16:00:55]RasterBufferAndPrint [16:00:55]line [16:00:55]line [16:00:55]line [16:00:55]line [16:00:55]line [16:00:55]written 0, free lines is 3321 [16:00:55]MH_Cut [16:00:55]Write to MH i2c: D1 01 00 E5 02 01 B9 [16:00:55]Write i2c OK [16:00:55]MH_I2C_Read... [16:00:55]Read from MH i2c: D1 [16:00:55]MH_I2C_Read... [16:00:55]Read from MH i2c: D1 01 00 [16:00:55]MH_I2C_Read... [16:00:55]Read from MH i2c: D1 01 00 E5 02 00 B8 [16:00:55]Write to MH i2c: 01 00 00 E6 02 E8 [16:00:55]Write i2c OK [16:00:55]MH_I2C_Read... [16:00:56]OFD Sender: No OFD packet to send [16:00:56]*** Cut start [16:00:56]*** Partial cut [16:00:56]*** CUTSNS_PIN = 1 [16:00:56]*** CUTSNS_PIN = 0 [16:00:56]*** Brake cut motor [16:00:57]Read from MH i2c: 01 [16:00:57]MH_I2C_Read... [16:00:57]*** Stop cut motor [16:00:57]*** Cut end [16:00:57]Read from MH i2c: 01 07 00 [16:00:57]MH_I2C_Read... [16:00:57]Read from MH i2c: 01 07 00 E6 02 00 00 00 00 00 FF 0F FD [16:00:57]process_action close_receipt done [16:00:57]requested_data is exist [16:00:57]produce_requested_data [16:00:57]requested_item fm.sn is exist - process it [16:00:57]wFMCommunicate request_size=4 [16:00:57]MH_SAM_APDU [16:00:57]CAPDU: 80 11 00 00 [16:00:57]Write to MH i2c: E2 08 00 E7 02 80 11 00 00 00 00 00 00 63 [16:00:57]Write i2c OK [16:00:57]MH_I2C_Read... [16:00:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:57]Read from MH i2c: E2 [16:00:57]MH_I2C_Read... [16:00:57]Read from MH i2c: E2 17 00 [16:00:57]MH_I2C_Read... [16:00:57]Read from MH i2c: E2 17 00 E7 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B9 [16:00:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:00:57]wFMCommunicate OK [16:00:57]requested_item fd.num is exist - process it [16:00:57]SAM_PROTO_GetFieldsCounters [16:00:57]wFMCommunicate request_size=4 [16:00:57]MH_SAM_APDU [16:00:57]CAPDU: 80 13 00 00 [16:00:57]Write to MH i2c: E2 08 00 E8 02 80 13 00 00 00 00 00 00 66 [16:00:57]Write i2c OK [16:00:57]MH_I2C_Read... [16:00:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:00:57]Read from MH i2c: E2 [16:00:57]MH_I2C_Read... [16:00:57]Read from MH i2c: E2 62 00 [16:00:57]MH_I2C_Read... [16:00:57]Read from MH i2c: E2 62 00 E8 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 98 84 02 00 0E 04 04 00 BF 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 ED [16:00:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 98 84 02 00 0E 04 04 00 BF 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 [16:00:57]wFMCommunicate OK [16:00:57]SAM_PROTO_GetFieldsCounters done [16:00:57]requested_item shift.num is exist - process it [16:00:57]requested_item shift.opened is exist - process it [16:00:57]req_shift_opened [16:00:57]FM_GetShiftState [16:00:57]SAM_PROTO_GetShiftState [16:00:57]wFMCommunicate request_size=4 [16:00:57]MH_SAM_APDU [16:00:57]CAPDU: 80 13 01 00 [16:00:57]Write to MH i2c: E2 08 00 E9 02 80 13 01 00 00 00 00 00 68 [16:00:57]Write i2c OK [16:00:57]MH_I2C_Read... [16:00:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:57]Read from MH i2c: E2 [16:00:57]MH_I2C_Read... [16:00:57]Read from MH i2c: E2 0E 00 [16:00:57]MH_I2C_Read... [16:00:57]Read from MH i2c: E2 0E 00 E9 02 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 E8 [16:00:57]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [16:00:57]wFMCommunicate OK [16:00:57]SAM_PROTO_GetShiftState done [16:00:57]FM_GetShiftState done [16:00:57]req_shift_opened done [16:00:57]requested_item shift.open_date is exist - process it [16:00:57]req_shift_open_date [16:00:57]req_shift_open_date done [16:00:57]produce_requested_data done [16:00:57]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165016,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [16:00:57]process_action_free close_receipt [16:00:57]json_value_free [16:00:57]json_value_free done [16:00:57]process_json_proto returns [16:00:57]Send response to host [16:00:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165016,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [16:00:57]free response buf [16:00:57]execute_script done [16:00:57]execute_script returns [16:00:57]free content buf [16:00:57]Sock 8.Close socket [16:00:57]Sock 8.Thread stoped [16:01:01]OFD Sender: No OFD packet to send [16:01:06]OFD Sender: No OFD packet to send [16:01:08]accept exits with 9 [16:01:08]New connection [16:01:08]New thread 3066674532 created [16:01:08]Thread 3066531172 joined [16:01:08]Waiting for new connection... [16:01:08] Sock 9.Parse request [16:01:08]Sock 9.Check first char [16:01:08]Sock 9.First char is OK [16:01:08]request: POST /json_proto HTTP/1.0 [16:01:09]Method: POST [16:01:09]URL: /json_proto [16:01:09]Method is POST - this is cgi request [16:01:09]url: /json_proto [16:01:09]query_string will be loaded in cgi processing [16:01:09]execute_cgi json_proto POST (null) [16:01:09]execute_cgi path=json_proto method=POST [16:01:09]POST find Content-Length [16:01:09]Host: 172.17.56.4:8080 [16:01:09]Content-Length: 677 [16:01:09]Content-Type: application/json [16:01:09] [16:01:09]POST finish read [16:01:09]Found Content-Length = 677 [16:01:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459118", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.320, "sum" : 350.06, "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" ] } } [16:01:09]execute_script... [16:01: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)459118", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.320, "sum" : 350.06, "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" ] } } [16:01:09]POST & json_proto [16:01:09]process_json_proto [16:01:09]json parsed OK: [16:01:09]protocol is kg_v1.0 [16:01:09]action value=close_receipt [16:01:09]process_action close_receipt [16:01:09]cmd_close_receipt [16:01:09]MH_GetDate [16:01:09]Write to MH i2c: F0 00 00 EA 02 DB [16:01:09]Write i2c OK [16:01:09]MH_I2C_Read... [16:01:09]Read from MH i2c: F0 [16:01:09]MH_I2C_Read... [16:01:09]Read from MH i2c: F0 09 00 [16:01:09]MH_I2C_Read... [16:01:09]Read from MH i2c: F0 09 00 EA 02 00 45 F6 93 66 C9 DC B2 64 D3 [16:01:09]GetLastDocTimeStamp 1720972854 [16:01:09]current date 1720972869 [16:01:09]FM_GetShiftState [16:01:09]SAM_PROTO_GetShiftState [16:01:09]wFMCommunicate request_size=4 [16:01:09]MH_SAM_APDU [16:01:09]CAPDU: 80 13 01 00 [16:01:09]Write to MH i2c: E2 08 00 EB 02 80 13 01 00 00 00 00 00 6A [16:01:09]Write i2c OK [16:01:09]MH_I2C_Read... [16:01:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:09]Read from MH i2c: E2 [16:01:09]MH_I2C_Read... [16:01:09]Read from MH i2c: E2 0E 00 [16:01:09]MH_I2C_Read... [16:01:09]Read from MH i2c: E2 0E 00 EB 02 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 EA [16:01:09]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [16:01:09]wFMCommunicate OK [16:01:09]SAM_PROTO_GetShiftState done [16:01:09]FM_GetShiftState done [16:01:09]opened in 1720917342 [16:01:09]opened+sec_in_day 1721003742 [16:01:09]quantity*price = 35005 [16:01:09]sum+1 = 35007 [16:01:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.17 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 215 14.07.2024 16:01 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165017 ФПД: 225535407259016 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T160109&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165017&fm=225535407259016&tin=02508201610067®Number=0000000000090829&sum=35000 [16:01:10]StoreToDocumentArchive [16:01:10]shift 447 fd 165017 [16:01:10]save to /storage/0447/doc_00165017 [16:01:10]save last doc name /storage/0447/doc_00165017 to /storage/kkm_last_doc_name [16:01:10]save OK [16:01:10]Clear old archive folders... [16:01:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:01:10]tlvbuf is 014793E0 [16:01:10]SAM_PROTO_ClearQueue [16:01:10]wFMCommunicate request_size=4 [16:01:10]MH_SAM_APDU [16:01:10]CAPDU: 80 09 00 00 [16:01:10]Write to MH i2c: E2 08 00 F8 02 80 09 00 00 00 00 00 00 6C [16:01:10]Write i2c OK [16:01:10]MH_I2C_Read... [16:01:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:01:10]Read from MH i2c: E2 [16:01:10]MH_I2C_Read... [16:01:10]Read from MH i2c: E2 03 00 [16:01:10]MH_I2C_Read... [16:01:10]Read from MH i2c: E2 03 00 F8 02 00 90 00 6E [16:01:10]RAPDU: 90 00 [16:01:10]wFMCommunicate OK [16:01:10]SAM_PROTO_ClearQueue done [16:01:10]KKMCreateOFDPacket [16:01:10]OFDProtocolAddRootSTLVToBuf [16:01:10]FM_MakeSignedData [16:01:10]FM_MakeSignedData [16:01:10]SAM_PROTO_SignData [16:01:10]wFMCommunicate request_size=4 [16:01:10]MH_SAM_APDU [16:01:10]CAPDU: 80 0D 01 02 [16:01:10]Write to MH i2c: E2 08 00 F9 02 80 0D 01 02 00 00 00 00 74 [16:01:10]Write i2c OK [16:01:10]MH_I2C_Read... [16:01:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:01:10]Read from MH i2c: E2 [16:01:10]MH_I2C_Read... [16:01:10]Read from MH i2c: E2 03 00 [16:01:10]MH_I2C_Read... [16:01:10]Read from MH i2c: E2 03 00 F9 02 00 90 00 6F [16:01:10]RAPDU: 90 00 [16:01:10]wFMCommunicate OK [16:01:10]wFMCommunicate request_size=255 [16:01:10]MH_SAM_APDU [16:01:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BE 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 85 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 D7 00 00 00 F4 03 04 00 45 F6 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 99 84 02 00 35 04 06 00 CD [16:01:10]Write to MH i2c: E2 02 01 FA 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 35 FF 03 08 00 03 C8 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BE 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 85 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 D7 00 00 00 F4 03 04 00 45 F6 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 99 84 02 00 35 04 06 00 CD 00 00 74 [16:01:10]Write i2c OK [16:01:10]MH_I2C_Read... [16:01:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:01:10]Read from MH i2c: E2 [16:01:10]MH_I2C_Read... [16:01:10]Read from MH i2c: E2 03 00 [16:01:10]MH_I2C_Read... [16:01:10]Read from MH i2c: E2 03 00 FA 02 00 90 00 70 [16:01:10]RAPDU: 90 00 [16:01:10]wFMCommunicate OK [16:01:10]wFMCommunicate request_size=10 [16:01:10]MH_SAM_APDU [16:01:10]CAPDU: 80 0D 02 02 05 1F 8D D5 7D 88 [16:01:10]Write to MH i2c: E2 0D 00 FB 02 80 0D 02 02 05 00 1F 8D D5 7D 88 00 00 07 [16:01:10]Write i2c OK [16:01:10]MH_I2C_Read... [16:01:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:01:10]Read from MH i2c: E2 [16:01:10]MH_I2C_Read... [16:01:10]Read from MH i2c: E2 03 00 [16:01:10]MH_I2C_Read... [16:01:10]Read from MH i2c: E2 03 00 FB 02 00 90 00 71 [16:01:10]RAPDU: 90 00 [16:01:10]wFMCommunicate OK [16:01:10]wFMCommunicate request_size=4 [16:01:10]MH_SAM_APDU [16:01:10]CAPDU: 80 0D 03 02 [16:01:10]Write to MH i2c: E2 08 00 FC 02 80 0D 03 02 00 00 00 00 79 [16:01:10]Write i2c OK [16:01:10]MH_I2C_Read... [16:01:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:01:10]Read from MH i2c: E2 [16:01:10]MH_I2C_Read... [16:01:10]Read from MH i2c: E2 0B 00 [16:01:10]MH_I2C_Read... [16:01:10]Read from MH i2c: E2 0B 00 FC 02 00 08 E5 60 6F 02 F1 2A 44 90 00 97 [16:01:10]RAPDU: 08 E5 60 6F 02 F1 2A 44 90 00 [16:01:10]wFMCommunicate OK [16:01:10]SAM_PROTO_SignData done [16:01:10]FM_MakeSignedData done [16:01:10]CreateOFDProtocolMessage [16:01:10]wFMCommunicate request_size=4 [16:01:10]MH_SAM_APDU [16:01:10]CAPDU: 80 11 00 00 [16:01:10]Write to MH i2c: E2 08 00 FD 02 80 11 00 00 00 00 00 00 79 [16:01:10]Write i2c OK [16:01:10]MH_I2C_Read... [16:01:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:01:10]Read from MH i2c: E2 [16:01:10]MH_I2C_Read... [16:01:10]Read from MH i2c: E2 17 00 [16:01:10]MH_I2C_Read... [16:01:10]Read from MH i2c: E2 17 00 FD 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 CF [16:01:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:01:10]wFMCommunicate OK [16:01:10]CreateOFDProtocolMessage done [16:01:10]OFDSenderStorePacket 165017 [16:01:10]StoreOFDPacket docnum=165017 [16:01:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 DB 1B 07 01 5D 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 35 FF 03 08 00 03 C8 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BE 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 85 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 D7 00 00 00 F4 03 04 00 45 F6 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 99 84 02 00 35 04 06 00 CD 1F 8D D5 7D 88 08 E5 60 6F 02 F1 2A 44 [16:01:10]CheckFolder [16:01:10]dirname=/storage/ofd_packets [16:01:10]CheckFolder done [16:01:10]ProducePacketName [16:01:10]name=ofd_packets/00165017 [16:01:10]NVStorageSaveData ofd_packets/00165017 [16:01:10]File name is /storage/ofd_packets/00165017 [16:01:10]Write 301 bytes [16:01:10]NVStorageSaveData done [16:01:10]OFDSenderStorePacket done [16:01:10]KKMCreateOFDPacket done [16:01:10]NVStorageSaveData kkm_last_timestamp [16:01:10]File name is /storage/kkm_last_timestamp [16:01:10]Write 4 bytes [16:01:10]NVStorageSaveData done [16:01:10]ExternCall_PrintAddStr [16:01:10]wPrintStart [16:01:10]Write to MH i2c: 01 00 00 FE 02 00 [16:01:10]Write i2c OK [16:01:10]MH_I2C_Read... [16:01:10]Read from MH i2c: 01 [16:01:10]MH_I2C_Read... [16:01:10]Read from MH i2c: 01 07 00 [16:01:10]MH_I2C_Read... [16:01:10]Read from MH i2c: 01 07 00 FE 02 00 00 00 00 00 FF 0F 15 [16:01:10]RasterBufferAndPrint [16:01:10]line Счет N : (1)459118 [16:01:10]line ИНН: 02508201610067 [16:01:10]line Контрольно-Кассовый Чек [16:01:10]line ПРОДАЖА [16:01:10]line ТРК (МРК, ГНК) : 12 [16:01:10]line Товар: 2710124130 [16:01:10]line Аи-92-К-5 [16:01:10]line 5.320 * 65.80 [16:01:10]line = 350.06 [16:01:10]line НДС 12% НСП 1% [16:01:10]line > о реализуемом товаре [16:01:10]line ОКРУГЛЕНИЕ: -0.06 [16:01:10]line ИТОГО: 350.00 [16:01:10]line Внесено: 350.00 [16:01:10]line СДАЧА: 0.00 [16:01:10]line НСП 1% : 3.10 [16:01:10]line НДС 12% : 37.17 [16:01:10]line Наличными: 350.00 [16:01:10]line Безнал.: 0.00 [16:01:10]line Место: АЗС № 72 "Партнер Нефть" [16:01:10]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:01:10]line СНО: Общий режим [16:01:10]line Чек 215 14.07.2024 16:01 [16:01:10]line Смена: 447 ФФД: 1.0 [16:01:10]line ЗНМ: 0300000160 [16:01:10]line РНМ: 0000000000090829 [16:01:10]line Версия ККМ: 001 [16:01:10]line ФМ: 0000000000874718 [16:01:10]line ФД: 165017 [16:01:10]line ФПД: 225535407259016 [16:01:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T160109&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165017&fm=225535407259016&tin=02508201610067®Number=0000000000090829&sum=35000 [16:01:11]OFD Sender: Processing packet 165017 [packets to send 105, broken 104] [16:01:11]ProducePacketName [16:01:11]name=ofd_packets/00165017 [16:01:11]OFD Sender: To server: pG, [16:01:11]CommunicateWithHost lk.salyk.kg:30040 [16:01:11]ConnectInit lk.salyk.kg [16:01:11]written 0, free lines is 4095 [16:01:11]Connected sock=10 [16:01:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 DB 1B 07 01 5D 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 35 FF 03 08 00 03 C8 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BE 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 85 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 D7 00 00 00 F4 03 04 00 45 F6 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 99 84 02 00 35 04 06 00 CD 1F 8D D5 7D 88 08 E5 60 6F 02 F1 2A 44 [16:01:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 75 62 47 00 DF 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 99 84 02 00 F4 03 04 00 D3 9C 93 66 B6 04 01 00 00 C0 B2 12 A3 FF 10 3C 7A [16:01:11]CommunicateWithHost err = 0 [16:01:11]CheckOFDResponse [16:01:11]1017 (14) - 77093643461234 [16:01:11]1041 (16) - 0000000000874718 [16:01:11]1040 (4) - 165017 [16:01:11]1012 (4) - 14.07.2024 09:39 [16:01:11]1206 (1) - 0 [16:01:11]OFD Sender: Remove packet 165017 [16:01:11]ProducePacketName [16:01:11]name=ofd_packets/00165017 [16:01:11]NVStorageDeleteData [16:01:11]Write to MH i2c: 01 00 00 28 03 2B [16:01:11]Write i2c OK [16:01:11]MH_I2C_Read... [16:01:11]Read from MH i2c: 01 [16:01:11]MH_I2C_Read... [16:01:11]Read from MH i2c: 01 07 00 [16:01:11]MH_I2C_Read... [16:01:11]Read from MH i2c: 01 07 00 28 03 00 00 00 00 00 F2 0C 30 [16:01:11]RasterBufferAndPrint [16:01:11]line [16:01:11]line [16:01:11]line [16:01:11]line [16:01:11]line [16:01:11]written 0, free lines is 3320 [16:01:11]MH_Cut [16:01:11]Write to MH i2c: D1 01 00 2F 03 01 04 [16:01:11]Write i2c OK [16:01:11]MH_I2C_Read... [16:01:11]Read from MH i2c: D1 [16:01:11]MH_I2C_Read... [16:01:11]Read from MH i2c: D1 01 00 [16:01:11]MH_I2C_Read... [16:01:11]Read from MH i2c: D1 01 00 2F 03 00 03 [16:01:11]Write to MH i2c: 01 00 00 30 03 33 [16:01:11]Write i2c OK [16:01:11]MH_I2C_Read... [16:01:11]OFD Sender: No OFD packet to send [16:01:12]*** Cut start [16:01:12]*** Partial cut [16:01:12]*** CUTSNS_PIN = 1 [16:01:12]*** CUTSNS_PIN = 0 [16:01:12]*** Brake cut motor [16:01:12]Read from MH i2c: 01 [16:01:12]MH_I2C_Read... [16:01:12]*** Stop cut motor [16:01:12]*** Cut end [16:01:12]Read from MH i2c: 01 07 00 [16:01:12]MH_I2C_Read... [16:01:12]Read from MH i2c: 01 07 00 30 03 00 00 00 00 00 FF 0F 48 [16:01:12]process_action close_receipt done [16:01:12]requested_data is exist [16:01:12]produce_requested_data [16:01:12]requested_item fm.sn is exist - process it [16:01:12]wFMCommunicate request_size=4 [16:01:12]MH_SAM_APDU [16:01:12]CAPDU: 80 11 00 00 [16:01:12]Write to MH i2c: E2 08 00 31 03 80 11 00 00 00 00 00 00 AE [16:01:12]Write i2c OK [16:01:12]MH_I2C_Read... [16:01:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:01:12]Read from MH i2c: E2 [16:01:12]MH_I2C_Read... [16:01:12]Read from MH i2c: E2 17 00 [16:01:12]MH_I2C_Read... [16:01:12]Read from MH i2c: E2 17 00 31 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 04 [16:01:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:01:12]wFMCommunicate OK [16:01:12]requested_item fd.num is exist - process it [16:01:12]SAM_PROTO_GetFieldsCounters [16:01:12]wFMCommunicate request_size=4 [16:01:12]MH_SAM_APDU [16:01:12]CAPDU: 80 13 00 00 [16:01:12]Write to MH i2c: E2 08 00 32 03 80 13 00 00 00 00 00 00 B1 [16:01:12]Write i2c OK [16:01:12]MH_I2C_Read... [16:01:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:01:12]Read from MH i2c: E2 [16:01:12]MH_I2C_Read... [16:01:12]Read from MH i2c: E2 62 00 [16:01:12]MH_I2C_Read... [16:01:12]Read from MH i2c: E2 62 00 32 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 99 84 02 00 0E 04 04 00 BF 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 3C [16:01:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 99 84 02 00 0E 04 04 00 BF 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 [16:01:12]wFMCommunicate OK [16:01:12]SAM_PROTO_GetFieldsCounters done [16:01:12]requested_item shift.num is exist - process it [16:01:12]requested_item shift.opened is exist - process it [16:01:12]req_shift_opened [16:01:12]FM_GetShiftState [16:01:12]SAM_PROTO_GetShiftState [16:01:12]wFMCommunicate request_size=4 [16:01:12]MH_SAM_APDU [16:01:12]CAPDU: 80 13 01 00 [16:01:12]Write to MH i2c: E2 08 00 33 03 80 13 01 00 00 00 00 00 B3 [16:01:12]Write i2c OK [16:01:12]MH_I2C_Read... [16:01:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:12]Read from MH i2c: E2 [16:01:12]MH_I2C_Read... [16:01:12]Read from MH i2c: E2 0E 00 [16:01:12]MH_I2C_Read... [16:01:12]Read from MH i2c: E2 0E 00 33 03 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 33 [16:01:12]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [16:01:12]wFMCommunicate OK [16:01:12]SAM_PROTO_GetShiftState done [16:01:12]FM_GetShiftState done [16:01:12]req_shift_opened done [16:01:12]requested_item shift.open_date is exist - process it [16:01:12]req_shift_open_date [16:01:12]req_shift_open_date done [16:01:12]produce_requested_data done [16:01:12]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165017,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [16:01:12]process_action_free close_receipt [16:01:12]json_value_free [16:01:12]json_value_free done [16:01:12]process_json_proto returns [16:01:12]Send response to host [16:01:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165017,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [16:01:12]free response buf [16:01:12]execute_script done [16:01:12]execute_script returns [16:01:12]free content buf [16:01:12]Sock 9.Close socket [16:01:12]Sock 9.Thread stoped [16:01:16]OFD Sender: No OFD packet to send [16:01:21]OFD Sender: No OFD packet to send [16:01:26]OFD Sender: No OFD packet to send [16:01:31]OFD Sender: No OFD packet to send [16:01:36]OFD Sender: No OFD packet to send [16:01:41]OFD Sender: No OFD packet to send [16:01:46]OFD Sender: No OFD packet to send [16:01:51]OFD Sender: No OFD packet to send [16:01:56]OFD Sender: No OFD packet to send [16:02:01]OFD Sender: No OFD packet to send [16:02:06]OFD Sender: No OFD packet to send [16:02:11]OFD Sender: No OFD packet to send [16:02:16]OFD Sender: No OFD packet to send [16:02:21]OFD Sender: No OFD packet to send [16:02:26]OFD Sender: No OFD packet to send [16:02:31]OFD Sender: No OFD packet to send [16:02:36]OFD Sender: No OFD packet to send [16:02:41]OFD Sender: No OFD packet to send [16:02:46]OFD Sender: No OFD packet to send [16:02:51]OFD Sender: No OFD packet to send [16:02:56]OFD Sender: No OFD packet to send [16:03:01]OFD Sender: No OFD packet to send [16:03:06]OFD Sender: No OFD packet to send [16:03:11]OFD Sender: No OFD packet to send [16:03:16]OFD Sender: No OFD packet to send [16:03:21]OFD Sender: No OFD packet to send [16:03:27]OFD Sender: No OFD packet to send [16:03:32]OFD Sender: No OFD packet to send [16:03:37]OFD Sender: No OFD packet to send [16:03:42]OFD Sender: No OFD packet to send [16:03:47]OFD Sender: No OFD packet to send [16:03:49]accept exits with 8 [16:03:49]New connection [16:03:49]New thread 3066531172 created [16:03:49]Thread 3066674532 joined [16:03:49]Waiting for new connection... [16:03:49] Sock 8.Parse request [16:03:49]Sock 8.Check first char [16:03:49]Sock 8.First char is OK [16:03:49]request: POST /json_proto HTTP/1.0 [16:03:49]Method: POST [16:03:49]URL: /json_proto [16:03:49]Method is POST - this is cgi request [16:03:49]url: /json_proto [16:03:49]query_string will be loaded in cgi processing [16:03:49]execute_cgi json_proto POST (null) [16:03:49]execute_cgi path=json_proto method=POST [16:03:49]POST find Content-Length [16:03:49]Host: 172.17.56.4:8080 [16:03:49]Content-Length: 840 [16:03:49]Content-Type: application/json [16:03:49] [16:03:49]POST finish read [16:03:49]Found Content-Length = 840 [16:03:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459119", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 7.670, "sum" : 500.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:03:49]execute_script... [16:03: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)459119", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 7.670, "sum" : 500.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:03:49]POST & json_proto [16:03:49]process_json_proto [16:03:49]json parsed OK: [16:03:49]protocol is kg_v1.0 [16:03:49]action value=close_receipt [16:03:49]process_action close_receipt [16:03:49]cmd_close_receipt [16:03:49]MH_GetDate [16:03:49]Write to MH i2c: F0 00 00 34 03 26 [16:03:49]Write i2c OK [16:03:49]MH_I2C_Read... [16:03:49]Read from MH i2c: F0 [16:03:49]MH_I2C_Read... [16:03:49]Read from MH i2c: F0 09 00 [16:03:49]MH_I2C_Read... [16:03:49]Read from MH i2c: F0 09 00 34 03 00 E6 F6 93 66 C9 DC B2 64 BF [16:03:49]GetLastDocTimeStamp 1720972869 [16:03:49]current date 1720973030 [16:03:49]FM_GetShiftState [16:03:49]SAM_PROTO_GetShiftState [16:03:49]wFMCommunicate request_size=4 [16:03:49]MH_SAM_APDU [16:03:49]CAPDU: 80 13 01 00 [16:03:49]Write to MH i2c: E2 08 00 35 03 80 13 01 00 00 00 00 00 B5 [16:03:49]Write i2c OK [16:03:49]MH_I2C_Read... [16:03:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:03:49]Read from MH i2c: E2 [16:03:49]MH_I2C_Read... [16:03:49]Read from MH i2c: E2 0E 00 [16:03:49]MH_I2C_Read... [16:03:49]Read from MH i2c: E2 0E 00 35 03 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 35 [16:03:49]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [16:03:49]wFMCommunicate OK [16:03:49]SAM_PROTO_GetShiftState done [16:03:49]FM_GetShiftState done [16:03:49]opened in 1720917342 [16:03:49]opened+sec_in_day 1721003742 [16:03:49]quantity*price = 50023 [16:03:49]sum+1 = 50025 [16:03:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.24 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.24 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 216 14.07.2024 16:03 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874718 ФД: 165018 ФПД: 38876943618534 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T160350&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165018&fm=38876943618534&tin=02508201610067®Number=0000000000090829&sum=50024 [16:03:51]StoreToDocumentArchive [16:03:51]shift 447 fd 165018 [16:03:51]save to /storage/0447/doc_00165018 [16:03:51]save last doc name /storage/0447/doc_00165018 to /storage/kkm_last_doc_name [16:03:51]save OK [16:03:51]Clear old archive folders... [16:03:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:03:51]tlvbuf is 0147DC30 [16:03:51]SAM_PROTO_ClearQueue [16:03:51]wFMCommunicate request_size=4 [16:03:51]MH_SAM_APDU [16:03:51]CAPDU: 80 09 00 00 [16:03:51]Write to MH i2c: E2 08 00 42 03 80 09 00 00 00 00 00 00 B7 [16:03:51]Write i2c OK [16:03:51]MH_I2C_Read... [16:03:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:03:51]Read from MH i2c: E2 [16:03:51]MH_I2C_Read... [16:03:51]Read from MH i2c: E2 03 00 [16:03:51]MH_I2C_Read... [16:03:51]Read from MH i2c: E2 03 00 42 03 00 90 00 B9 [16:03:51]RAPDU: 90 00 [16:03:51]wFMCommunicate OK [16:03:51]SAM_PROTO_ClearQueue done [16:03:51]KKMCreateOFDPacket [16:03:51]OFDProtocolAddRootSTLVToBuf [16:03:51]FM_MakeSignedData [16:03:51]FM_MakeSignedData [16:03:51]SAM_PROTO_SignData [16:03:51]wFMCommunicate request_size=4 [16:03:51]MH_SAM_APDU [16:03:51]CAPDU: 80 0D 01 02 [16:03:51]Write to MH i2c: E2 08 00 43 03 80 0D 01 02 00 00 00 00 BF [16:03:51]Write i2c OK [16:03:51]MH_I2C_Read... [16:03:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:03:51]Read from MH i2c: E2 [16:03:51]MH_I2C_Read... [16:03:51]Read from MH i2c: E2 03 00 [16:03:51]MH_I2C_Read... [16:03:51]Read from MH i2c: E2 03 00 43 03 00 90 00 BA [16:03:51]RAPDU: 90 00 [16:03:51]wFMCommunicate OK [16:03:51]wFMCommunicate request_size=255 [16:03:51]MH_SAM_APDU [16:03:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 E6 F6 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9A 84 02 00 35 04 06 00 23 [16:03:51]Write to MH i2c: E2 02 01 44 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 E6 F6 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9A 84 02 00 35 04 06 00 23 00 00 36 [16:03:51]Write i2c OK [16:03:51]MH_I2C_Read... [16:03:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:03:51]Read from MH i2c: E2 [16:03:51]MH_I2C_Read... [16:03:51]Read from MH i2c: E2 03 00 [16:03:51]MH_I2C_Read... [16:03:51]Read from MH i2c: E2 03 00 44 03 00 90 00 BB [16:03:51]RAPDU: 90 00 [16:03:51]wFMCommunicate OK [16:03:51]wFMCommunicate request_size=10 [16:03:51]MH_SAM_APDU [16:03:51]CAPDU: 80 0D 02 02 05 5B BE 6A 11 E6 [16:03:51]Write to MH i2c: E2 0D 00 45 03 80 0D 02 02 05 00 5B BE 6A 11 E6 00 00 46 [16:03:51]Write i2c OK [16:03:51]MH_I2C_Read... [16:03:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:03:51]Read from MH i2c: E2 [16:03:51]MH_I2C_Read... [16:03:51]Read from MH i2c: E2 03 00 [16:03:51]MH_I2C_Read... [16:03:51]Read from MH i2c: E2 03 00 45 03 00 90 00 BC [16:03:51]RAPDU: 90 00 [16:03:51]wFMCommunicate OK [16:03:51]wFMCommunicate request_size=4 [16:03:51]MH_SAM_APDU [16:03:51]CAPDU: 80 0D 03 02 [16:03:51]Write to MH i2c: E2 08 00 46 03 80 0D 03 02 00 00 00 00 C4 [16:03:51]Write i2c OK [16:03:51]MH_I2C_Read... [16:03:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:03:51]Read from MH i2c: E2 [16:03:51]MH_I2C_Read... [16:03:51]Read from MH i2c: E2 0B 00 [16:03:51]MH_I2C_Read... [16:03:51]Read from MH i2c: E2 0B 00 46 03 00 04 6F E1 64 3C 47 15 DD 90 00 F2 [16:03:51]RAPDU: 04 6F E1 64 3C 47 15 DD 90 00 [16:03:51]wFMCommunicate OK [16:03:51]SAM_PROTO_SignData done [16:03:51]FM_MakeSignedData done [16:03:51]CreateOFDProtocolMessage [16:03:51]wFMCommunicate request_size=4 [16:03:51]MH_SAM_APDU [16:03:51]CAPDU: 80 11 00 00 [16:03:51]Write to MH i2c: E2 08 00 47 03 80 11 00 00 00 00 00 00 C4 [16:03:51]Write i2c OK [16:03:51]MH_I2C_Read... [16:03:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:03:51]Read from MH i2c: E2 [16:03:51]MH_I2C_Read... [16:03:51]Read from MH i2c: E2 17 00 [16:03:51]MH_I2C_Read... [16:03:51]Read from MH i2c: E2 17 00 47 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 1A [16:03:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:03:51]wFMCommunicate OK [16:03:51]CreateOFDProtocolMessage done [16:03:51]OFDSenderStorePacket 165018 [16:03:51]StoreOFDPacket docnum=165018 [16:03:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 86 91 07 01 C8 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 E6 F6 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9A 84 02 00 35 04 06 00 23 5B BE 6A 11 E6 04 6F E1 64 3C 47 15 DD [16:03:51]CheckFolder [16:03:51]dirname=/storage/ofd_packets [16:03:51]CheckFolder done [16:03:51]ProducePacketName [16:03:51]name=ofd_packets/00165018 [16:03:51]NVStorageSaveData ofd_packets/00165018 [16:03:51]File name is /storage/ofd_packets/00165018 [16:03:51]Write 301 bytes [16:03:51]NVStorageSaveData done [16:03:51]OFDSenderStorePacket done [16:03:51]KKMCreateOFDPacket done [16:03:51]NVStorageSaveData kkm_last_timestamp [16:03:51]File name is /storage/kkm_last_timestamp [16:03:51]Write 4 bytes [16:03:51]NVStorageSaveData done [16:03:51]ExternCall_PrintAddStr [16:03:51]wPrintStart [16:03:51]Write to MH i2c: 01 00 00 48 03 4B [16:03:51]Write i2c OK [16:03:51]MH_I2C_Read... [16:03:51]Read from MH i2c: 01 [16:03:51]MH_I2C_Read... [16:03:51]Read from MH i2c: 01 07 00 [16:03:51]MH_I2C_Read... [16:03:51]Read from MH i2c: 01 07 00 48 03 00 00 00 00 00 FF 0F 60 [16:03:51]RasterBufferAndPrint [16:03:51]line Счет N : (1)459119 [16:03:51]line ИНН: 02508201610067 [16:03:51]line Контрольно-Кассовый Чек [16:03:51]line ПРОДАЖА [16:03:51]line ТРК (МРК, ГНК) : 22 [16:03:51]line Товар: 2710124130 [16:03:51]line Аи-92-К-5 [16:03:51]line 7.670 * 65.22 [16:03:51]line = 500.24 [16:03:51]line НДС 12% НСП 1% [16:03:51]line > о реализуемом товаре [16:03:51]line ИТОГО: 500.24 [16:03:51]line НСП 1% : 4.43 [16:03:51]line НДС 12% : 53.12 [16:03:51]line Наличными: 0.00 [16:03:51]line Безнал.: 500.24 [16:03:51]line Место: АЗС № 72 "Партнер Нефть" [16:03:51]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:03:51]line СНО: Общий режим [16:03:51]line Чек 216 14.07.2024 16:03 [16:03:51]line Смена: 447 ФФД: 1.0 [16:03:51]line ЗНМ: 0300000160 [16:03:51]line РНМ: 0000000000090829 [16:03:51]line Версия ККМ: 001 [16:03:51]line Платежная система: АКБ Кыргызстан [16:03:51]line ФМ: 0000000000874718 [16:03:51]line ФД: 165018 [16:03:51]line ФПД: 38876943618534 [16:03:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T160350&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165018&fm=38876943618534&tin=02508201610067®Number=0000000000090829&sum=50024 [16:03:51]written 0, free lines is 4095 [16:03:51]OFD Sender: Processing packet 165018 [packets to send 105, broken 104] [16:03:51]ProducePacketName [16:03:51]name=ofd_packets/00165018 [16:03:51]OFD Sender: To server: pG, [16:03:51]CommunicateWithHost lk.salyk.kg:30040 [16:03:51]ConnectInit lk.salyk.kg [16:03:51]Connected sock=10 [16:03:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 86 91 07 01 C8 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 E6 F6 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9A 84 02 00 35 04 06 00 23 5B BE 6A 11 E6 04 6F E1 64 3C 47 15 DD [16:03:52]Write to MH i2c: 01 00 00 71 03 74 [16:03:52]Write i2c OK [16:03:52]MH_I2C_Read... [16:03:52]Read from MH i2c: 01 [16:03:52]MH_I2C_Read... [16:03:52]Read from MH i2c: 01 07 00 [16:03:52]MH_I2C_Read... [16:03:52]Read from MH i2c: 01 07 00 71 03 00 00 00 00 00 13 0D 9B [16:03:52]RasterBufferAndPrint [16:03:52]line [16:03:52]line [16:03:52]line [16:03:52]line [16:03:52]line [16:03:52]written 0, free lines is 3354 [16:03:52]MH_Cut [16:03:52]Write to MH i2c: D1 01 00 78 03 01 4D [16:03:52]Write i2c OK [16:03:52]MH_I2C_Read... [16:03:52]Read from MH i2c: D1 [16:03:52]MH_I2C_Read... [16:03:52]Read from MH i2c: D1 01 00 [16:03:52]MH_I2C_Read... [16:03:52]Read from MH i2c: D1 01 00 78 03 00 4C [16:03:52]Write to MH i2c: 01 00 00 79 03 7C [16:03:52]Write i2c OK [16:03:52]MH_I2C_Read... [16:03:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 28 1D 47 00 B8 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9A 84 02 00 F4 03 04 00 74 9D 93 66 B6 04 01 00 00 C6 5C 20 BB 7B 54 63 D5 [16:03:52]CommunicateWithHost err = 0 [16:03:52]CheckOFDResponse [16:03:52]1017 (14) - 77093643461234 [16:03:52]1041 (16) - 0000000000874718 [16:03:52]1040 (4) - 165018 [16:03:52]1012 (4) - 14.07.2024 09:42 [16:03:52]1206 (1) - 0 [16:03:52]OFD Sender: Remove packet 165018 [16:03:52]ProducePacketName [16:03:52]name=ofd_packets/00165018 [16:03:52]NVStorageDeleteData [16:03:52]*** Cut start [16:03:52]*** Partial cut [16:03:52]*** CUTSNS_PIN = 1 [16:03:52]*** CUTSNS_PIN = 0 [16:03:52]OFD Sender: No OFD packet to send [16:03:52]*** Brake cut motor [16:03:53]Read from MH i2c: 01 [16:03:53]MH_I2C_Read... [16:03:53]*** Stop cut motor [16:03:53]*** Cut end [16:03:53]Read from MH i2c: 01 07 00 [16:03:53]MH_I2C_Read... [16:03:53]Read from MH i2c: 01 07 00 79 03 00 00 00 00 00 FF 0F 91 [16:03:53]process_action close_receipt done [16:03:53]requested_data is exist [16:03:53]produce_requested_data [16:03:53]requested_item fm.sn is exist - process it [16:03:53]wFMCommunicate request_size=4 [16:03:53]MH_SAM_APDU [16:03:53]CAPDU: 80 11 00 00 [16:03:53]Write to MH i2c: E2 08 00 7A 03 80 11 00 00 00 00 00 00 F7 [16:03:53]Write i2c OK [16:03:53]MH_I2C_Read... [16:03:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:03:53]Read from MH i2c: E2 [16:03:53]MH_I2C_Read... [16:03:53]Read from MH i2c: E2 17 00 [16:03:53]MH_I2C_Read... [16:03:53]Read from MH i2c: E2 17 00 7A 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 4D [16:03:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:03:53]wFMCommunicate OK [16:03:53]requested_item fd.num is exist - process it [16:03:53]SAM_PROTO_GetFieldsCounters [16:03:53]wFMCommunicate request_size=4 [16:03:53]MH_SAM_APDU [16:03:53]CAPDU: 80 13 00 00 [16:03:53]Write to MH i2c: E2 08 00 7B 03 80 13 00 00 00 00 00 00 FA [16:03:53]Write i2c OK [16:03:53]MH_I2C_Read... [16:03:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:03:53]Read from MH i2c: E2 [16:03:53]MH_I2C_Read... [16:03:53]Read from MH i2c: E2 62 00 [16:03:53]MH_I2C_Read... [16:03:53]Read from MH i2c: E2 62 00 7B 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 9A 84 02 00 0E 04 04 00 BF 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 89 [16:03:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 9A 84 02 00 0E 04 04 00 BF 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 [16:03:53]wFMCommunicate OK [16:03:53]SAM_PROTO_GetFieldsCounters done [16:03:53]requested_item shift.num is exist - process it [16:03:53]requested_item shift.opened is exist - process it [16:03:53]req_shift_opened [16:03:53]FM_GetShiftState [16:03:53]SAM_PROTO_GetShiftState [16:03:53]wFMCommunicate request_size=4 [16:03:53]MH_SAM_APDU [16:03:53]CAPDU: 80 13 01 00 [16:03:53]Write to MH i2c: E2 08 00 7C 03 80 13 01 00 00 00 00 00 FC [16:03:53]Write i2c OK [16:03:53]MH_I2C_Read... [16:03:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:03:53]Read from MH i2c: E2 [16:03:53]MH_I2C_Read... [16:03:53]Read from MH i2c: E2 0E 00 [16:03:53]MH_I2C_Read... [16:03:53]Read from MH i2c: E2 0E 00 7C 03 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 7C [16:03:53]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [16:03:53]wFMCommunicate OK [16:03:53]SAM_PROTO_GetShiftState done [16:03:53]FM_GetShiftState done [16:03:53]req_shift_opened done [16:03:53]requested_item shift.open_date is exist - process it [16:03:53]req_shift_open_date [16:03:53]req_shift_open_date done [16:03:53]produce_requested_data done [16:03:53]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165018,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [16:03:53]process_action_free close_receipt [16:03:53]json_value_free [16:03:53]json_value_free done [16:03:53]process_json_proto returns [16:03:53]Send response to host [16:03:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165018,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [16:03:53]free response buf [16:03:53]execute_script done [16:03:53]execute_script returns [16:03:53]free content buf [16:03:53]Sock 8.Close socket [16:03:53]Sock 8.Thread stoped [16:03:57]OFD Sender: No OFD packet to send [16:04:02]OFD Sender: No OFD packet to send [16:04:07]OFD Sender: No OFD packet to send [16:04:12]OFD Sender: No OFD packet to send [16:04:17]OFD Sender: No OFD packet to send [16:04:22]OFD Sender: No OFD packet to send [16:04:27]OFD Sender: No OFD packet to send [16:04:32]OFD Sender: No OFD packet to send [16:04:32]accept exits with 9 [16:04:32]New connection [16:04:32]New thread 3066674532 created [16:04:32]Thread 3066531172 joined [16:04:32]Waiting for new connection... [16:04:32] Sock 9.Parse request [16:04:32]Sock 9.Check first char [16:04:32]Sock 9.First char is OK [16:04:32]request: POST /json_proto HTTP/1.0 [16:04:32]Method: POST [16:04:32]URL: /json_proto [16:04:32]Method is POST - this is cgi request [16:04:32]url: /json_proto [16:04:32]query_string will be loaded in cgi processing [16:04:32]execute_cgi json_proto POST (null) [16:04:32]execute_cgi path=json_proto method=POST [16:04:32]POST find Content-Length [16:04:32]Host: 172.17.56.4:8080 [16:04:32]Content-Length: 677 [16:04:32]Content-Type: application/json [16:04:32] [16:04:32]POST finish read [16:04:32]Found Content-Length = 677 [16:04:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459120", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.350, "sum" : 220.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:04:32]execute_script... [16:04: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)459120", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.350, "sum" : 220.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:04:32]POST & json_proto [16:04:32]process_json_proto [16:04:32]json parsed OK: [16:04:32]protocol is kg_v1.0 [16:04:32]action value=close_receipt [16:04:32]process_action close_receipt [16:04:32]cmd_close_receipt [16:04:32]MH_GetDate [16:04:32]Write to MH i2c: F0 00 00 7D 03 6F [16:04:32]Write i2c OK [16:04:32]MH_I2C_Read... [16:04:32]Read from MH i2c: F0 [16:04:32]MH_I2C_Read... [16:04:32]Read from MH i2c: F0 09 00 [16:04:32]MH_I2C_Read... [16:04:32]Read from MH i2c: F0 09 00 7D 03 00 11 F7 93 66 C9 DC B2 64 34 [16:04:32]GetLastDocTimeStamp 1720973030 [16:04:32]current date 1720973073 [16:04:32]FM_GetShiftState [16:04:32]SAM_PROTO_GetShiftState [16:04:32]wFMCommunicate request_size=4 [16:04:32]MH_SAM_APDU [16:04:32]CAPDU: 80 13 01 00 [16:04:32]Write to MH i2c: E2 08 00 7E 03 80 13 01 00 00 00 00 00 FE [16:04:32]Write i2c OK [16:04:32]MH_I2C_Read... [16:04:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:04:32]Read from MH i2c: E2 [16:04:32]MH_I2C_Read... [16:04:32]Read from MH i2c: E2 0E 00 [16:04:32]MH_I2C_Read... [16:04:32]Read from MH i2c: E2 0E 00 7E 03 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 7E [16:04:32]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [16:04:32]wFMCommunicate OK [16:04:32]SAM_PROTO_GetShiftState done [16:04:32]FM_GetShiftState done [16:04:32]opened in 1720917342 [16:04:32]opened+sec_in_day 1721003742 [16:04:32]quantity*price = 22043 [16:04:32]sum+1 = 22044 [16:04:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 220.00 Внесено: 220.00 СДАЧА: 0.00 НСП 1% : 1.95 НДС 12% : 23.41 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 217 14.07.2024 16:04 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165019 ФПД: 187604752680872 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T160433&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165019&fm=187604752680872&tin=02508201610067®Number=0000000000090829&sum=22000 [16:04:34]StoreToDocumentArchive [16:04:34]shift 447 fd 165019 [16:04:34]save to /storage/0447/doc_00165019 [16:04:34]save last doc name /storage/0447/doc_00165019 to /storage/kkm_last_doc_name [16:04:34]save OK [16:04:34]Clear old archive folders... [16:04:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:04:34]tlvbuf is 0146BB50 [16:04:34]SAM_PROTO_ClearQueue [16:04:34]wFMCommunicate request_size=4 [16:04:34]MH_SAM_APDU [16:04:34]CAPDU: 80 09 00 00 [16:04:34]Write to MH i2c: E2 08 00 8B 03 80 09 00 00 00 00 00 00 00 [16:04:34]Write i2c OK [16:04:34]MH_I2C_Read... [16:04:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:04:34]Read from MH i2c: E2 [16:04:34]MH_I2C_Read... [16:04:34]Read from MH i2c: E2 03 00 [16:04:34]MH_I2C_Read... [16:04:34]Read from MH i2c: E2 03 00 8B 03 00 90 00 02 [16:04:34]RAPDU: 90 00 [16:04:34]wFMCommunicate OK [16:04:34]SAM_PROTO_ClearQueue done [16:04:34]KKMCreateOFDPacket [16:04:34]OFDProtocolAddRootSTLVToBuf [16:04:34]FM_MakeSignedData [16:04:34]FM_MakeSignedData [16:04:34]SAM_PROTO_SignData [16:04:34]wFMCommunicate request_size=4 [16:04:34]MH_SAM_APDU [16:04:34]CAPDU: 80 0D 01 02 [16:04:34]Write to MH i2c: E2 08 00 8C 03 80 0D 01 02 00 00 00 00 08 [16:04:34]Write i2c OK [16:04:34]MH_I2C_Read... [16:04:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:04:34]Read from MH i2c: E2 [16:04:34]MH_I2C_Read... [16:04:34]Read from MH i2c: E2 03 00 [16:04:34]MH_I2C_Read... [16:04:34]Read from MH i2c: E2 03 00 8C 03 00 90 00 03 [16:04:34]RAPDU: 90 00 [16:04:34]wFMCommunicate OK [16:04:34]wFMCommunicate request_size=255 [16:04:34]MH_SAM_APDU [16:04:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 16 0D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 1B 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 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 D9 00 00 00 F4 03 04 00 11 F7 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9B 84 02 00 35 04 06 00 AA [16:04:34]Write to MH i2c: E2 02 01 8D 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 16 0D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 1B 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 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 D9 00 00 00 F4 03 04 00 11 F7 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9B 84 02 00 35 04 06 00 AA 00 00 59 [16:04:34]Write i2c OK [16:04:34]MH_I2C_Read... [16:04:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:04:34]Read from MH i2c: E2 [16:04:34]MH_I2C_Read... [16:04:34]Read from MH i2c: E2 03 00 [16:04:34]MH_I2C_Read... [16:04:34]Read from MH i2c: E2 03 00 8D 03 00 90 00 04 [16:04:34]RAPDU: 90 00 [16:04:34]wFMCommunicate OK [16:04:34]wFMCommunicate request_size=10 [16:04:34]MH_SAM_APDU [16:04:34]CAPDU: 80 0D 02 02 05 A0 22 A4 47 A8 [16:04:34]Write to MH i2c: E2 0D 00 8E 03 80 0D 02 02 05 00 A0 22 A4 47 A8 00 00 6A [16:04:34]Write i2c OK [16:04:34]MH_I2C_Read... [16:04:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:04:34]Read from MH i2c: E2 [16:04:34]MH_I2C_Read... [16:04:34]Read from MH i2c: E2 03 00 [16:04:34]MH_I2C_Read... [16:04:34]Read from MH i2c: E2 03 00 8E 03 00 90 00 05 [16:04:34]RAPDU: 90 00 [16:04:34]wFMCommunicate OK [16:04:34]wFMCommunicate request_size=4 [16:04:34]MH_SAM_APDU [16:04:34]CAPDU: 80 0D 03 02 [16:04:34]Write to MH i2c: E2 08 00 8F 03 80 0D 03 02 00 00 00 00 0D [16:04:34]Write i2c OK [16:04:34]MH_I2C_Read... [16:04:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:04:34]Read from MH i2c: E2 [16:04:34]MH_I2C_Read... [16:04:34]Read from MH i2c: E2 0B 00 [16:04:34]MH_I2C_Read... [16:04:34]Read from MH i2c: E2 0B 00 8F 03 00 22 17 BD 16 8B 9D 61 37 90 00 DA [16:04:34]RAPDU: 22 17 BD 16 8B 9D 61 37 90 00 [16:04:34]wFMCommunicate OK [16:04:34]SAM_PROTO_SignData done [16:04:34]FM_MakeSignedData done [16:04:34]CreateOFDProtocolMessage [16:04:34]wFMCommunicate request_size=4 [16:04:34]MH_SAM_APDU [16:04:34]CAPDU: 80 11 00 00 [16:04:34]Write to MH i2c: E2 08 00 90 03 80 11 00 00 00 00 00 00 0D [16:04:34]Write i2c OK [16:04:34]MH_I2C_Read... [16:04:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:04:34]Read from MH i2c: E2 [16:04:34]MH_I2C_Read... [16:04:34]Read from MH i2c: E2 17 00 [16:04:34]MH_I2C_Read... [16:04:34]Read from MH i2c: E2 17 00 90 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 63 [16:04:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:04:34]wFMCommunicate OK [16:04:34]CreateOFDProtocolMessage done [16:04:34]OFDSenderStorePacket 165019 [16:04:34]StoreOFDPacket docnum=165019 [16:04:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 0B F2 07 01 D5 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 16 0D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 1B 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 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 D9 00 00 00 F4 03 04 00 11 F7 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9B 84 02 00 35 04 06 00 AA A0 22 A4 47 A8 22 17 BD 16 8B 9D 61 37 [16:04:34]CheckFolder [16:04:34]dirname=/storage/ofd_packets [16:04:34]CheckFolder done [16:04:34]ProducePacketName [16:04:34]name=ofd_packets/00165019 [16:04:34]NVStorageSaveData ofd_packets/00165019 [16:04:34]File name is /storage/ofd_packets/00165019 [16:04:34]Write 301 bytes [16:04:34]NVStorageSaveData done [16:04:34]OFDSenderStorePacket done [16:04:34]KKMCreateOFDPacket done [16:04:34]NVStorageSaveData kkm_last_timestamp [16:04:34]File name is /storage/kkm_last_timestamp [16:04:34]Write 4 bytes [16:04:34]NVStorageSaveData done [16:04:34]OFD Sender: Processing packet 165019 [packets to send 105, broken 104] [16:04:34]ProducePacketName [16:04:34]name=ofd_packets/00165019 [16:04:34]OFD Sender: To server: pG, [16:04:34]CommunicateWithHost lk.salyk.kg:30040 [16:04:34]ConnectInit lk.salyk.kg [16:04:34]ExternCall_PrintAddStr [16:04:34]wPrintStart [16:04:34]Write to MH i2c: 01 00 00 91 03 94 [16:04:34]Write i2c OK [16:04:34]MH_I2C_Read... [16:04:34]Read from MH i2c: 01 [16:04:34]MH_I2C_Read... [16:04:34]Read from MH i2c: 01 07 00 [16:04:34]MH_I2C_Read... [16:04:34]Read from MH i2c: 01 07 00 91 03 00 00 00 00 00 FF 0F A9 [16:04:34]RasterBufferAndPrint [16:04:34]line Счет N : (1)459120 [16:04:34]line ИНН: 02508201610067 [16:04:34]line Контрольно-Кассовый Чек [16:04:34]line ПРОДАЖА [16:04:34]line ТРК (МРК, ГНК) : 12 [16:04:34]line Товар: 2710124130 [16:04:34]line Аи-92-К-5 [16:04:34]line 3.350 * 65.80 [16:04:34]line = 220.43 [16:04:34]line НДС 12% НСП 1% [16:04:34]line > о реализуемом товаре [16:04:34]line ОКРУГЛЕНИЕ: -0.43 [16:04:34]line ИТОГО: 220.00 [16:04:34]line Внесено: 220.00 [16:04:34]line СДАЧА: 0.00 [16:04:34]line НСП 1% : 1.95 [16:04:34]line НДС 12% : 23.41 [16:04:34]line Наличными: 220.00 [16:04:34]line Безнал.: 0.00 [16:04:34]line Место: АЗС № 72 "Партнер Нефть" [16:04:34]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:04:34]line СНО: Общий режим [16:04:34]line Чек 217 14.07.2024 16:04 [16:04:34]line Смена: 447 ФФД: 1.0 [16:04:34]line ЗНМ: 0300000160 [16:04:34]line РНМ: 0000000000090829 [16:04:34]line Версия ККМ: 001 [16:04:34]line ФМ: 0000000000874718 [16:04:34]line ФД: 165019 [16:04:34]line ФПД: 187604752680872 [16:04:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T160433&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165019&fm=187604752680872&tin=02508201610067®Number=0000000000090829&sum=22000 [16:04:34]Connected sock=11 [16:04:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 0B F2 07 01 D5 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 16 0D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 1B 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 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 D9 00 00 00 F4 03 04 00 11 F7 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9B 84 02 00 35 04 06 00 AA A0 22 A4 47 A8 22 17 BD 16 8B 9D 61 37 [16:04:34]written 0, free lines is 4095 [16:04:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 6C FA 47 00 05 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9B 84 02 00 F4 03 04 00 9E 9D 93 66 B6 04 01 00 00 D4 AC 45 ED 66 18 5E 6D [16:04:35]CommunicateWithHost err = 0 [16:04:35]CheckOFDResponse [16:04:35]1017 (14) - 77093643461234 [16:04:35]1041 (16) - 0000000000874718 [16:04:35]1040 (4) - 165019 [16:04:35]1012 (4) - 14.07.2024 09:42 [16:04:35]1206 (1) - 0 [16:04:35]OFD Sender: Remove packet 165019 [16:04:35]ProducePacketName [16:04:35]name=ofd_packets/00165019 [16:04:35]NVStorageDeleteData [16:04:35]Write to MH i2c: 01 00 00 BB 03 BE [16:04:35]Write i2c OK [16:04:35]MH_I2C_Read... [16:04:35]Read from MH i2c: 01 [16:04:35]MH_I2C_Read... [16:04:35]Read from MH i2c: 01 07 00 [16:04:35]MH_I2C_Read... [16:04:35]Read from MH i2c: 01 07 00 BB 03 00 00 00 00 00 FB 0C CC [16:04:35]RasterBufferAndPrint [16:04:35]line [16:04:35]line [16:04:35]line [16:04:35]line [16:04:35]line [16:04:35]written 0, free lines is 3329 [16:04:35]MH_Cut [16:04:35]Write to MH i2c: D1 01 00 C2 03 01 97 [16:04:35]Write i2c OK [16:04:35]MH_I2C_Read... [16:04:35]Read from MH i2c: D1 [16:04:35]MH_I2C_Read... [16:04:35]Read from MH i2c: D1 01 00 [16:04:35]MH_I2C_Read... [16:04:35]Read from MH i2c: D1 01 00 C2 03 00 96 [16:04:35]Write to MH i2c: 01 00 00 C3 03 C6 [16:04:35]Write i2c OK [16:04:35]MH_I2C_Read... [16:04:35]OFD Sender: No OFD packet to send [16:04:36]*** Cut start [16:04:36]*** Partial cut [16:04:36]*** CUTSNS_PIN = 1 [16:04:36]*** CUTSNS_PIN = 0 [16:04:36]*** Brake cut motor [16:04:36]Read from MH i2c: 01 [16:04:36]MH_I2C_Read... [16:04:36]*** Stop cut motor [16:04:36]*** Cut end [16:04:36]Read from MH i2c: 01 07 00 [16:04:36]MH_I2C_Read... [16:04:36]Read from MH i2c: 01 07 00 C3 03 00 00 00 00 00 FF 0F DB [16:04:36]process_action close_receipt done [16:04:36]requested_data is exist [16:04:36]produce_requested_data [16:04:36]requested_item fm.sn is exist - process it [16:04:36]wFMCommunicate request_size=4 [16:04:36]MH_SAM_APDU [16:04:36]CAPDU: 80 11 00 00 [16:04:36]Write to MH i2c: E2 08 00 C4 03 80 11 00 00 00 00 00 00 41 [16:04:36]Write i2c OK [16:04:36]MH_I2C_Read... [16:04:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:04:36]Read from MH i2c: E2 [16:04:36]MH_I2C_Read... [16:04:36]Read from MH i2c: E2 17 00 [16:04:36]MH_I2C_Read... [16:04:36]Read from MH i2c: E2 17 00 C4 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 97 [16:04:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:04:36]wFMCommunicate OK [16:04:36]requested_item fd.num is exist - process it [16:04:36]SAM_PROTO_GetFieldsCounters [16:04:36]wFMCommunicate request_size=4 [16:04:36]MH_SAM_APDU [16:04:36]CAPDU: 80 13 00 00 [16:04:36]Write to MH i2c: E2 08 00 C5 03 80 13 00 00 00 00 00 00 44 [16:04:36]Write i2c OK [16:04:36]MH_I2C_Read... [16:04:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:04:36]Read from MH i2c: E2 [16:04:36]MH_I2C_Read... [16:04:36]Read from MH i2c: E2 62 00 [16:04:36]MH_I2C_Read... [16:04:36]Read from MH i2c: E2 62 00 C5 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 9B 84 02 00 0E 04 04 00 BF 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 D7 [16:04:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 9B 84 02 00 0E 04 04 00 BF 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 [16:04:36]wFMCommunicate OK [16:04:36]SAM_PROTO_GetFieldsCounters done [16:04:36]requested_item shift.num is exist - process it [16:04:36]requested_item shift.opened is exist - process it [16:04:36]req_shift_opened [16:04:36]FM_GetShiftState [16:04:36]SAM_PROTO_GetShiftState [16:04:36]wFMCommunicate request_size=4 [16:04:36]MH_SAM_APDU [16:04:36]CAPDU: 80 13 01 00 [16:04:36]Write to MH i2c: E2 08 00 C6 03 80 13 01 00 00 00 00 00 46 [16:04:36]Write i2c OK [16:04:36]MH_I2C_Read... [16:04:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:04:36]Read from MH i2c: E2 [16:04:36]MH_I2C_Read... [16:04:36]Read from MH i2c: E2 0E 00 [16:04:36]MH_I2C_Read... [16:04:36]Read from MH i2c: E2 0E 00 C6 03 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 C6 [16:04:36]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [16:04:36]wFMCommunicate OK [16:04:36]SAM_PROTO_GetShiftState done [16:04:36]FM_GetShiftState done [16:04:36]req_shift_opened done [16:04:36]requested_item shift.open_date is exist - process it [16:04:36]req_shift_open_date [16:04:36]req_shift_open_date done [16:04:36]produce_requested_data done [16:04:36]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165019,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [16:04:36]process_action_free close_receipt [16:04:36]json_value_free [16:04:36]json_value_free done [16:04:36]process_json_proto returns [16:04:36]Send response to host [16:04:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165019,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [16:04:36]free response buf [16:04:36]execute_script done [16:04:36]execute_script returns [16:04:36]free content buf [16:04:36]Sock 9.Close socket [16:04:36]Sock 9.Thread stoped [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:40]OFD Sender: No OFD packet to send [16:06:45]OFD Sender: No OFD packet to send [16:06:50]OFD Sender: No OFD packet to send [16:06:55]OFD Sender: No OFD packet to send [16:07:00]OFD Sender: No OFD packet to send [16:07:05]OFD Sender: No OFD packet to send [16:07:10]OFD Sender: No OFD packet to send [16:07:15]OFD Sender: No OFD packet to send [16:07:20]OFD Sender: No OFD packet to send [16:07:25]OFD Sender: No OFD packet to send [16:07:30]OFD Sender: No OFD packet to send [16:07:35]OFD Sender: No OFD packet to send [16:07:38]accept exits with 8 [16:07:38]New connection [16:07:38]New thread 3066531172 created [16:07:38]Thread 3066674532 joined [16:07:38]Waiting for new connection... [16:07:38] Sock 8.Parse request [16:07:38]Sock 8.Check first char [16:07:38]Sock 8.First char is OK [16:07:38]request: POST /json_proto HTTP/1.0 [16:07:38]Method: POST [16:07:38]URL: /json_proto [16:07:38]Method is POST - this is cgi request [16:07:38]url: /json_proto [16:07:38]query_string will be loaded in cgi processing [16:07:38]execute_cgi json_proto POST (null) [16:07:38]execute_cgi path=json_proto method=POST [16:07:38]POST find Content-Length [16:07:38]Host: 172.17.56.4:8080 [16:07:38]Content-Length: 840 [16:07:38]Content-Type: application/json [16:07:38] [16:07:38]POST finish read [16:07:38]Found Content-Length = 840 [16:07:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459121", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 2.610, "sum" : 170.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 170.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:07:38]execute_script... [16: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)459121", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 2.610, "sum" : 170.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 170.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:07:38]POST & json_proto [16:07:38]process_json_proto [16:07:38]json parsed OK: [16:07:38]protocol is kg_v1.0 [16:07:38]action value=close_receipt [16:07:38]process_action close_receipt [16:07:38]cmd_close_receipt [16:07:38]MH_GetDate [16:07:38]Write to MH i2c: F0 00 00 C7 03 B9 [16:07:38]Write i2c OK [16:07:38]MH_I2C_Read... [16:07:38]Read from MH i2c: F0 [16:07:38]MH_I2C_Read... [16:07:38]Read from MH i2c: F0 09 00 [16:07:38]MH_I2C_Read... [16:07:38]Read from MH i2c: F0 09 00 C7 03 00 CB F7 93 66 C9 DC B2 64 38 [16:07:38]GetLastDocTimeStamp 1720973073 [16:07:38]current date 1720973259 [16:07:38]FM_GetShiftState [16:07:38]SAM_PROTO_GetShiftState [16:07:38]wFMCommunicate request_size=4 [16:07:38]MH_SAM_APDU [16:07:38]CAPDU: 80 13 01 00 [16:07:38]Write to MH i2c: E2 08 00 C8 03 80 13 01 00 00 00 00 00 48 [16:07:38]Write i2c OK [16:07:38]MH_I2C_Read... [16:07:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:07:38]Read from MH i2c: E2 [16:07:38]MH_I2C_Read... [16:07:38]Read from MH i2c: E2 0E 00 [16:07:38]MH_I2C_Read... [16:07:38]Read from MH i2c: E2 0E 00 C8 03 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 C8 [16:07:38]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [16:07:38]wFMCommunicate OK [16:07:38]SAM_PROTO_GetShiftState done [16:07:38]FM_GetShiftState done [16:07:38]opened in 1720917342 [16:07:38]opened+sec_in_day 1721003742 [16:07:38]quantity*price = 17022 [16:07:38]sum+1 = 17023 [16:07:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 170.22 НСП 1% : 1.51 НДС 12% : 18.08 Наличными: 0.00 Безнал.: 170.22 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 218 14.07.2024 16:07 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874718 ФД: 165020 ФПД: 139900276834802 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T160739&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165020&fm=139900276834802&tin=02508201610067®Number=0000000000090829&sum=17022 [16:07:39]StoreToDocumentArchive [16:07:39]shift 447 fd 165020 [16:07:39]save to /storage/0447/doc_00165020 [16:07:39]save last doc name /storage/0447/doc_00165020 to /storage/kkm_last_doc_name [16:07:39]save OK [16:07:39]Clear old archive folders... [16:07:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:07:39]tlvbuf is B6E7D0E0 [16:07:39]SAM_PROTO_ClearQueue [16:07:39]wFMCommunicate request_size=4 [16:07:39]MH_SAM_APDU [16:07:39]CAPDU: 80 09 00 00 [16:07:39]Write to MH i2c: E2 08 00 D5 03 80 09 00 00 00 00 00 00 4A [16:07:39]Write i2c OK [16:07:39]MH_I2C_Read... [16:07:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:07:39]Read from MH i2c: E2 [16:07:39]MH_I2C_Read... [16:07:39]Read from MH i2c: E2 03 00 [16:07:39]MH_I2C_Read... [16:07:39]Read from MH i2c: E2 03 00 D5 03 00 90 00 4C [16:07:39]RAPDU: 90 00 [16:07:39]wFMCommunicate OK [16:07:39]SAM_PROTO_ClearQueue done [16:07:39]KKMCreateOFDPacket [16:07:39]OFDProtocolAddRootSTLVToBuf [16:07:39]FM_MakeSignedData [16:07:39]FM_MakeSignedData [16:07:39]SAM_PROTO_SignData [16:07:39]wFMCommunicate request_size=4 [16:07:39]MH_SAM_APDU [16:07:39]CAPDU: 80 0D 01 02 [16:07:39]Write to MH i2c: E2 08 00 D6 03 80 0D 01 02 00 00 00 00 52 [16:07:39]Write i2c OK [16:07:39]MH_I2C_Read... [16:07:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:07:39]Read from MH i2c: E2 [16:07:39]MH_I2C_Read... [16:07:39]Read from MH i2c: E2 03 00 [16:07:39]MH_I2C_Read... [16:07:39]Read from MH i2c: E2 03 00 D6 03 00 90 00 4D [16:07:39]RAPDU: 90 00 [16:07:39]wFMCommunicate OK [16:07:39]wFMCommunicate request_size=255 [16:07:39]MH_SAM_APDU [16: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 0A 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 7E 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7E 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7E 42 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 CB F7 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9C 84 02 00 35 04 06 00 7F [16:07:39]Write to MH i2c: E2 02 01 D7 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 0A 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 7E 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7E 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7E 42 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 CB F7 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9C 84 02 00 35 04 06 00 7F 00 00 15 [16:07:39]Write i2c OK [16:07:39]MH_I2C_Read... [16:07:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:07:39]Read from MH i2c: E2 [16:07:39]MH_I2C_Read... [16:07:39]Read from MH i2c: E2 03 00 [16:07:39]MH_I2C_Read... [16:07:39]Read from MH i2c: E2 03 00 D7 03 00 90 00 4E [16:07:39]RAPDU: 90 00 [16:07:39]wFMCommunicate OK [16:07:39]wFMCommunicate request_size=10 [16:07:39]MH_SAM_APDU [16:07:39]CAPDU: 80 0D 02 02 05 3D 12 4E 01 F2 [16:07:39]Write to MH i2c: E2 0D 00 D8 03 80 0D 02 02 05 00 3D 12 4E 01 F2 00 00 EF [16:07:39]Write i2c OK [16:07:39]MH_I2C_Read... [16:07:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:07:39]Read from MH i2c: E2 [16:07:39]MH_I2C_Read... [16:07:39]Read from MH i2c: E2 03 00 [16:07:39]MH_I2C_Read... [16:07:39]Read from MH i2c: E2 03 00 D8 03 00 90 00 4F [16:07:39]RAPDU: 90 00 [16:07:39]wFMCommunicate OK [16:07:39]wFMCommunicate request_size=4 [16:07:39]MH_SAM_APDU [16:07:39]CAPDU: 80 0D 03 02 [16:07:39]Write to MH i2c: E2 08 00 D9 03 80 0D 03 02 00 00 00 00 57 [16:07:39]Write i2c OK [16:07:39]MH_I2C_Read... [16:07:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:07:39]Read from MH i2c: E2 [16:07:39]MH_I2C_Read... [16:07:39]Read from MH i2c: E2 0B 00 [16:07:39]MH_I2C_Read... [16:07:39]Read from MH i2c: E2 0B 00 D9 03 00 7B 97 13 14 B3 73 A5 1D 90 00 79 [16:07:39]RAPDU: 7B 97 13 14 B3 73 A5 1D 90 00 [16:07:39]wFMCommunicate OK [16:07:39]SAM_PROTO_SignData done [16:07:39]FM_MakeSignedData done [16:07:39]CreateOFDProtocolMessage [16:07:39]wFMCommunicate request_size=4 [16:07:39]MH_SAM_APDU [16:07:39]CAPDU: 80 11 00 00 [16:07:39]Write to MH i2c: E2 08 00 DA 03 80 11 00 00 00 00 00 00 57 [16:07:39]Write i2c OK [16:07:39]MH_I2C_Read... [16:07:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:07:39]Read from MH i2c: E2 [16:07:39]MH_I2C_Read... [16:07:39]Read from MH i2c: E2 17 00 [16:07:39]MH_I2C_Read... [16:07:39]Read from MH i2c: E2 17 00 DA 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 AD [16:07:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:07:39]wFMCommunicate OK [16:07:39]CreateOFDProtocolMessage done [16:07:39]OFDSenderStorePacket 165020 [16:07:39]StoreOFDPacket docnum=165020 [16:07:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 F6 FF 07 01 56 B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 0A 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 7E 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7E 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7E 42 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 CB F7 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9C 84 02 00 35 04 06 00 7F 3D 12 4E 01 F2 7B 97 13 14 B3 73 A5 1D [16:07:39]CheckFolder [16:07:39]dirname=/storage/ofd_packets [16:07:39]CheckFolder done [16:07:39]ProducePacketName [16:07:39]name=ofd_packets/00165020 [16:07:39]NVStorageSaveData ofd_packets/00165020 [16:07:39]File name is /storage/ofd_packets/00165020 [16:07:39]Write 301 bytes [16:07:39]NVStorageSaveData done [16:07:39]OFDSenderStorePacket done [16:07:39]KKMCreateOFDPacket done [16:07:39]NVStorageSaveData kkm_last_timestamp [16:07:39]File name is /storage/kkm_last_timestamp [16:07:39]Write 4 bytes [16:07:39]NVStorageSaveData done [16:07:39]ExternCall_PrintAddStr [16:07:39]wPrintStart [16:07:39]Write to MH i2c: 01 00 00 DB 03 DE [16:07:39]Write i2c OK [16:07:39]MH_I2C_Read... [16:07:39]Read from MH i2c: 01 [16:07:39]MH_I2C_Read... [16:07:39]Read from MH i2c: 01 07 00 [16:07:39]MH_I2C_Read... [16:07:39]Read from MH i2c: 01 07 00 DB 03 00 00 00 00 00 FF 0F F3 [16:07:39]RasterBufferAndPrint [16:07:39]line Счет N : (1)459121 [16:07:39]line ИНН: 02508201610067 [16:07:39]line Контрольно-Кассовый Чек [16:07:39]line ПРОДАЖА [16:07:39]line ТРК (МРК, ГНК) : 22 [16:07:39]line Товар: 2710124130 [16:07:39]line Аи-92-К-5 [16:07:39]line 2.610 * 65.22 [16:07:39]line = 170.22 [16:07:39]line НДС 12% НСП 1% [16:07:39]line > о реализуемом товаре [16:07:39]line ИТОГО: 170.22 [16:07:39]line НСП 1% : 1.51 [16:07:39]line НДС 12% : 18.08 [16:07:39]line Наличными: 0.00 [16:07:39]line Безнал.: 170.22 [16:07:39]line Место: АЗС № 72 "Партнер Нефть" [16:07:39]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:07:39]line СНО: Общий режим [16:07:39]line Чек 218 14.07.2024 16:07 [16:07:39]line Смена: 447 ФФД: 1.0 [16:07:39]line ЗНМ: 0300000160 [16:07:39]line РНМ: 0000000000090829 [16:07:39]line Версия ККМ: 001 [16:07:39]line Платежная система: АКБ Кыргызстан [16:07:39]line ФМ: 0000000000874718 [16:07:39]line ФД: 165020 [16:07:39]line ФПД: 139900276834802 [16:07:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T160739&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165020&fm=139900276834802&tin=02508201610067®Number=0000000000090829&sum=17022 [16:07:40]OFD Sender: Processing packet 165020 [packets to send 105, broken 104] [16:07:40]ProducePacketName [16:07:40]name=ofd_packets/00165020 [16:07:40]OFD Sender: To server: pG, [16:07:40]CommunicateWithHost lk.salyk.kg:30040 [16:07:40]ConnectInit lk.salyk.kg [16:07:40]written 0, free lines is 4095 [16:07:40]Connected sock=10 [16:07:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 F6 FF 07 01 56 B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 0A 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 7E 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7E 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7E 42 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 CB F7 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9C 84 02 00 35 04 06 00 7F 3D 12 4E 01 F2 7B 97 13 14 B3 73 A5 1D [16:07:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 A6 77 47 00 89 ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9C 84 02 00 F4 03 04 00 58 9E 93 66 B6 04 01 00 00 04 90 F8 AE 5D 65 71 42 [16:07:40]CommunicateWithHost err = 0 [16:07:40]CheckOFDResponse [16:07:40]1017 (14) - 77093643461234 [16:07:40]1041 (16) - 0000000000874718 [16:07:40]1040 (4) - 165020 [16:07:40]1012 (4) - 14.07.2024 09:46 [16:07:40]1206 (1) - 0 [16:07:40]OFD Sender: Remove packet 165020 [16:07:40]ProducePacketName [16:07:40]name=ofd_packets/00165020 [16:07:40]NVStorageDeleteData [16:07:40]Write to MH i2c: 01 00 00 04 04 08 [16:07:40]Write i2c OK [16:07:40]MH_I2C_Read... [16:07:40]Read from MH i2c: 01 [16:07:40]MH_I2C_Read... [16:07:40]Read from MH i2c: 01 07 00 [16:07:40]MH_I2C_Read... [16:07:40]Read from MH i2c: 01 07 00 04 04 00 00 00 00 00 12 0D 2E [16:07:40]RasterBufferAndPrint [16:07:40]line [16:07:40]line [16:07:40]line [16:07:40]line [16:07:40]line [16:07:40]written 0, free lines is 3353 [16:07:40]MH_Cut [16:07:40]Write to MH i2c: D1 01 00 0B 04 01 E1 [16:07:40]Write i2c OK [16:07:40]MH_I2C_Read... [16:07:40]Read from MH i2c: D1 [16:07:40]MH_I2C_Read... [16:07:40]Read from MH i2c: D1 01 00 [16:07:40]MH_I2C_Read... [16:07:40]Read from MH i2c: D1 01 00 0B 04 00 E0 [16:07:40]Write to MH i2c: 01 00 00 0C 04 10 [16:07:40]Write i2c OK [16:07:40]MH_I2C_Read... [16:07:41]OFD Sender: No OFD packet to send [16:07:41]*** Cut start [16:07:41]*** Partial cut [16:07:41]*** CUTSNS_PIN = 1 [16:07:41]*** CUTSNS_PIN = 0 [16:07:41]*** Brake cut motor [16:07:41]Read from MH i2c: 01 [16:07:41]MH_I2C_Read... [16:07:41]*** Stop cut motor [16:07:42]*** Cut end [16:07:42]Read from MH i2c: 01 07 00 [16:07:42]MH_I2C_Read... [16:07:42]Read from MH i2c: 01 07 00 0C 04 00 00 00 00 00 FF 0F 25 [16:07:42]process_action close_receipt done [16:07:42]requested_data is exist [16:07:42]produce_requested_data [16:07:42]requested_item fm.sn is exist - process it [16:07:42]wFMCommunicate request_size=4 [16:07:42]MH_SAM_APDU [16:07:42]CAPDU: 80 11 00 00 [16:07:42]Write to MH i2c: E2 08 00 0D 04 80 11 00 00 00 00 00 00 8B [16:07:42]Write i2c OK [16:07:42]MH_I2C_Read... [16:07:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:07:42]Read from MH i2c: E2 [16:07:42]MH_I2C_Read... [16:07:42]Read from MH i2c: E2 17 00 [16:07:42]MH_I2C_Read... [16:07:42]Read from MH i2c: E2 17 00 0D 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E1 [16:07:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:07:42]wFMCommunicate OK [16:07:42]requested_item fd.num is exist - process it [16:07:42]SAM_PROTO_GetFieldsCounters [16:07:42]wFMCommunicate request_size=4 [16:07:42]MH_SAM_APDU [16:07:42]CAPDU: 80 13 00 00 [16:07:42]Write to MH i2c: E2 08 00 0E 04 80 13 00 00 00 00 00 00 8E [16:07:42]Write i2c OK [16:07:42]MH_I2C_Read... [16:07:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:07:42]Read from MH i2c: E2 [16:07:42]MH_I2C_Read... [16:07:42]Read from MH i2c: E2 62 00 [16:07:42]MH_I2C_Read... [16:07:42]Read from MH i2c: E2 62 00 0E 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 9C 84 02 00 0E 04 04 00 BF 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 25 [16:07:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 9C 84 02 00 0E 04 04 00 BF 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 [16:07:42]wFMCommunicate OK [16:07:42]SAM_PROTO_GetFieldsCounters done [16:07:42]requested_item shift.num is exist - process it [16:07:42]requested_item shift.opened is exist - process it [16:07:42]req_shift_opened [16:07:42]FM_GetShiftState [16:07:42]SAM_PROTO_GetShiftState [16:07:42]wFMCommunicate request_size=4 [16:07:42]MH_SAM_APDU [16:07:42]CAPDU: 80 13 01 00 [16:07:42]Write to MH i2c: E2 08 00 0F 04 80 13 01 00 00 00 00 00 90 [16:07:42]Write i2c OK [16:07:42]MH_I2C_Read... [16:07:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:07:42]Read from MH i2c: E2 [16:07:42]MH_I2C_Read... [16:07:42]Read from MH i2c: E2 0E 00 [16:07:42]MH_I2C_Read... [16:07:42]Read from MH i2c: E2 0E 00 0F 04 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 10 [16:07:42]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [16:07:42]wFMCommunicate OK [16:07:42]SAM_PROTO_GetShiftState done [16:07:42]FM_GetShiftState done [16:07:42]req_shift_opened done [16:07:42]requested_item shift.open_date is exist - process it [16:07:42]req_shift_open_date [16:07:42]req_shift_open_date done [16:07:42]produce_requested_data done [16:07:42]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165020,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [16:07:42]process_action_free close_receipt [16:07:42]json_value_free [16:07:42]json_value_free done [16:07:42]process_json_proto returns [16:07:42]Send response to host [16:07:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165020,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [16:07:42]free response buf [16:07:42]execute_script done [16:07:42]execute_script returns [16:07:42]free content buf [16:07:42]Sock 8.Close socket [16:07:42]Sock 8.Thread stoped [16:07:46]OFD Sender: No OFD packet to send [16:07:51]OFD Sender: No OFD packet to send [16:07:56]OFD Sender: No OFD packet to send [16:08:01]OFD Sender: No OFD packet to send [16:08:06]OFD Sender: No OFD packet to send [16:08:11]OFD Sender: No OFD packet to send [16:08:16]OFD Sender: No OFD packet to send [16:08:21]OFD Sender: No OFD packet to send [16:08:26]OFD Sender: No OFD packet to send [16:08:31]OFD Sender: No OFD packet to send [16:08:36]OFD Sender: No OFD packet to send [16:08:41]OFD Sender: No OFD packet to send [16:08:46]OFD Sender: No OFD packet to send [16:08:51]OFD Sender: No OFD packet to send [16:08:56]OFD Sender: No OFD packet to send [16:09:01]OFD Sender: No OFD packet to send [16:09:06]OFD Sender: No OFD packet to send [16:09:11]OFD Sender: No OFD packet to send [16:09:16]OFD Sender: No OFD packet to send [16:09:21]OFD Sender: No OFD packet to send [16:09:26]OFD Sender: No OFD packet to send [16:09:31]OFD Sender: No OFD packet to send [16:09:36]OFD Sender: No OFD packet to send [16:09:41]OFD Sender: No OFD packet to send [16:09:46]OFD Sender: No OFD packet to send [16:09:51]OFD Sender: No OFD packet to send [16:09:56]OFD Sender: No OFD packet to send [16:10:01]OFD Sender: No OFD packet to send [16:10:06]OFD Sender: No OFD packet to send [16:10:11]OFD Sender: No OFD packet to send [16:10:16]OFD Sender: No OFD packet to send [16:10:21]OFD Sender: No OFD packet to send [16:10:26]OFD Sender: No OFD packet to send [16:10:31]OFD Sender: No OFD packet to send [16:10:36]OFD Sender: No OFD packet to send [16:10:41]OFD Sender: No OFD packet to send [16:10:46]OFD Sender: No OFD packet to send [16:10:51]OFD Sender: No OFD packet to send [16:10:56]OFD Sender: No OFD packet to send [16:11:01]OFD Sender: No OFD packet to send [16:11:06]OFD Sender: No OFD packet to send [16:11:11]OFD Sender: No OFD packet to send [16:11:16]OFD Sender: No OFD packet to send [16:11:21]OFD Sender: No OFD packet to send [16:11:26]OFD Sender: No OFD packet to send [16:11:31]OFD Sender: No OFD packet to send [16:11:36]OFD Sender: No OFD packet to send [16:11:41]OFD Sender: No OFD packet to send [16:11:46]OFD Sender: No OFD packet to send [16:11:51]OFD Sender: No OFD packet to send [16:11:56]OFD Sender: No OFD packet to send [16:12:01]OFD Sender: No OFD packet to send [16:12:06]OFD Sender: No OFD packet to send [16:12:11]OFD Sender: No OFD packet to send [16:12:16]OFD Sender: No OFD packet to send [16:12:21]OFD Sender: No OFD packet to send [16:12:26]OFD Sender: No OFD packet to send [16:12:31]OFD Sender: No OFD packet to send [16:12:36]OFD Sender: No OFD packet to send [16:12:41]OFD Sender: No OFD packet to send [16:12:46]OFD Sender: No OFD packet to send [16:12:51]OFD Sender: No OFD packet to send [16:12:56]OFD Sender: No OFD packet to send [16:13:01]OFD Sender: No OFD packet to send [16:13:06]OFD Sender: No OFD packet to send [16:13:11]OFD Sender: No OFD packet to send [16:13:16]OFD Sender: No OFD packet to send [16:13:21]OFD Sender: No OFD packet to send [16:13:26]OFD Sender: No OFD packet to send [16:13:31]OFD Sender: No OFD packet to send [16:13:35]accept exits with 9 [16:13:35]New connection [16:13:35]New thread 3066674532 created [16:13:35]Thread 3066531172 joined [16:13:35]Waiting for new connection... [16:13:35] Sock 9.Parse request [16:13:35]Sock 9.Check first char [16:13:35]Sock 9.First char is OK [16:13:35]request: POST /json_proto HTTP/1.0 [16:13:35]Method: POST [16:13:35]URL: /json_proto [16:13:35]Method is POST - this is cgi request [16:13:35]url: /json_proto [16:13:35]query_string will be loaded in cgi processing [16:13:35]execute_cgi json_proto POST (null) [16:13:35]execute_cgi path=json_proto method=POST [16:13:35]POST find Content-Length [16:13:35]Host: 172.17.56.4:8080 [16:13:35]Content-Length: 677 [16:13:35]Content-Type: application/json [16:13:35] [16:13:35]POST finish read [16:13:35]Found Content-Length = 677 [16:13:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459122", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 8.700, "sum" : 572.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 572.00, "total" : 572.00, "payments": [ { "type": 0, "sum" : 572.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:13:35]execute_script... [16:13: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)459122", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 8.700, "sum" : 572.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 572.00, "total" : 572.00, "payments": [ { "type": 0, "sum" : 572.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:13:35]POST & json_proto [16:13:35]process_json_proto [16:13:35]json parsed OK: [16:13:35]protocol is kg_v1.0 [16:13:35]action value=close_receipt [16:13:35]process_action close_receipt [16:13:35]cmd_close_receipt [16:13:35]MH_GetDate [16:13:35]Write to MH i2c: F0 00 00 10 04 03 [16:13:35]Write i2c OK [16:13:35]MH_I2C_Read... [16:13:35]Read from MH i2c: F0 [16:13:35]MH_I2C_Read... [16:13:35]Read from MH i2c: F0 09 00 [16:13:35]MH_I2C_Read... [16:13:35]Read from MH i2c: F0 09 00 10 04 00 30 F9 93 66 C9 DC B2 64 E9 [16:13:35]GetLastDocTimeStamp 1720973259 [16:13:35]current date 1720973616 [16:13:35]FM_GetShiftState [16:13:35]SAM_PROTO_GetShiftState [16:13:35]wFMCommunicate request_size=4 [16:13:35]MH_SAM_APDU [16:13:35]CAPDU: 80 13 01 00 [16:13:35]Write to MH i2c: E2 08 00 11 04 80 13 01 00 00 00 00 00 92 [16:13:35]Write i2c OK [16:13:35]MH_I2C_Read... [16:13:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:35]Read from MH i2c: E2 [16:13:35]MH_I2C_Read... [16:13:35]Read from MH i2c: E2 0E 00 [16:13:35]MH_I2C_Read... [16:13:35]Read from MH i2c: E2 0E 00 11 04 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 12 [16:13:35]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [16:13:35]wFMCommunicate OK [16:13:35]SAM_PROTO_GetShiftState done [16:13:35]FM_GetShiftState done [16:13:35]opened in 1720917342 [16:13:35]opened+sec_in_day 1721003742 [16:13:35]quantity*price = 57246 [16:13:35]sum+1 = 57247 [16:13:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 572.00 Внесено: 572.00 СДАЧА: 0.00 НСП 1% : 5.07 НДС 12% : 60.79 Наличными: 572.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 219 14.07.2024 16:13 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165021 ФПД: 76569030364530 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T161336&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165021&fm=76569030364530&tin=02508201610067®Number=0000000000090829&sum=57200 [16:13:36]StoreToDocumentArchive [16:13:36]shift 447 fd 165021 [16:13:36]save to /storage/0447/doc_00165021 [16:13:36]save last doc name /storage/0447/doc_00165021 to /storage/kkm_last_doc_name [16:13:36]save OK [16:13:36]Clear old archive folders... [16:13:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:13:36]tlvbuf is 01497AB0 [16:13:36]SAM_PROTO_ClearQueue [16:13:36]wFMCommunicate request_size=4 [16:13:36]MH_SAM_APDU [16:13:36]CAPDU: 80 09 00 00 [16:13:36]Write to MH i2c: E2 08 00 1E 04 80 09 00 00 00 00 00 00 94 [16:13:36]Write i2c OK [16:13:36]MH_I2C_Read... [16:13:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:13:36]Read from MH i2c: E2 [16:13:36]MH_I2C_Read... [16:13:36]Read from MH i2c: E2 03 00 [16:13:36]MH_I2C_Read... [16:13:36]Read from MH i2c: E2 03 00 1E 04 00 90 00 96 [16:13:36]RAPDU: 90 00 [16:13:36]wFMCommunicate OK [16:13:36]SAM_PROTO_ClearQueue done [16:13:36]KKMCreateOFDPacket [16:13:36]OFDProtocolAddRootSTLVToBuf [16:13:36]FM_MakeSignedData [16:13:36]FM_MakeSignedData [16:13:36]SAM_PROTO_SignData [16:13:36]wFMCommunicate request_size=4 [16:13:36]MH_SAM_APDU [16:13:36]CAPDU: 80 0D 01 02 [16:13:36]Write to MH i2c: E2 08 00 1F 04 80 0D 01 02 00 00 00 00 9C [16:13:36]Write i2c OK [16:13:36]MH_I2C_Read... [16:13:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:13:36]Read from MH i2c: E2 [16:13:36]MH_I2C_Read... [16:13:36]Read from MH i2c: E2 03 00 [16:13:36]MH_I2C_Read... [16:13:36]Read from MH i2c: E2 03 00 1F 04 00 90 00 97 [16:13:36]RAPDU: 90 00 [16:13:36]wFMCommunicate OK [16:13:36]wFMCommunicate request_size=255 [16:13:36]MH_SAM_APDU [16:13:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 21 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 9E DF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 DF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 17 00 00 00 00 07 04 06 00 70 DF 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 30 F9 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9D 84 02 00 35 04 06 00 45 [16:13:36]Write to MH i2c: E2 02 01 20 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 21 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 9E DF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 DF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 17 00 00 00 00 07 04 06 00 70 DF 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 30 F9 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9D 84 02 00 35 04 06 00 45 00 00 A8 [16:13:36]Write i2c OK [16:13:36]MH_I2C_Read... [16:13:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:37]Read from MH i2c: E2 [16:13:37]MH_I2C_Read... [16:13:37]Read from MH i2c: E2 03 00 [16:13:37]MH_I2C_Read... [16:13:37]Read from MH i2c: E2 03 00 20 04 00 90 00 98 [16:13:37]RAPDU: 90 00 [16:13:37]wFMCommunicate OK [16:13:37]wFMCommunicate request_size=10 [16:13:37]MH_SAM_APDU [16:13:37]CAPDU: 80 0D 02 02 05 A3 9D DB 0D 72 [16:13:37]Write to MH i2c: E2 0D 00 21 04 80 0D 02 02 05 00 A3 9D DB 0D 72 00 00 43 [16:13:37]Write i2c OK [16:13:37]MH_I2C_Read... [16:13:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:37]Read from MH i2c: E2 [16:13:37]MH_I2C_Read... [16:13:37]Read from MH i2c: E2 03 00 [16:13:37]MH_I2C_Read... [16:13:37]Read from MH i2c: E2 03 00 21 04 00 90 00 99 [16:13:37]RAPDU: 90 00 [16:13:37]wFMCommunicate OK [16:13:37]wFMCommunicate request_size=4 [16:13:37]MH_SAM_APDU [16:13:37]CAPDU: 80 0D 03 02 [16:13:37]Write to MH i2c: E2 08 00 22 04 80 0D 03 02 00 00 00 00 A1 [16:13:37]Write i2c OK [16:13:37]MH_I2C_Read... [16:13:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:13:37]Read from MH i2c: E2 [16:13:37]MH_I2C_Read... [16:13:37]Read from MH i2c: E2 0B 00 [16:13:37]MH_I2C_Read... [16:13:37]Read from MH i2c: E2 0B 00 22 04 00 65 A2 10 D6 2F D5 4B A6 90 00 84 [16:13:37]RAPDU: 65 A2 10 D6 2F D5 4B A6 90 00 [16:13:37]wFMCommunicate OK [16:13:37]SAM_PROTO_SignData done [16:13:37]FM_MakeSignedData done [16:13:37]CreateOFDProtocolMessage [16:13:37]wFMCommunicate request_size=4 [16:13:37]MH_SAM_APDU [16:13:37]CAPDU: 80 11 00 00 [16:13:37]Write to MH i2c: E2 08 00 23 04 80 11 00 00 00 00 00 00 A1 [16:13:37]Write i2c OK [16:13:37]MH_I2C_Read... [16:13:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:37]Read from MH i2c: E2 [16:13:37]MH_I2C_Read... [16:13:37]Read from MH i2c: E2 17 00 [16:13:37]MH_I2C_Read... [16:13:37]Read from MH i2c: E2 17 00 23 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F7 [16:13:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:13:37]wFMCommunicate OK [16:13:37]CreateOFDProtocolMessage done [16:13:37]OFDSenderStorePacket 165021 [16:13:37]StoreOFDPacket docnum=165021 [16:13:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 59 90 07 01 AA 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 21 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 9E DF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 DF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 17 00 00 00 00 07 04 06 00 70 DF 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 30 F9 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9D 84 02 00 35 04 06 00 45 A3 9D DB 0D 72 65 A2 10 D6 2F D5 4B A6 [16:13:37]CheckFolder [16:13:37]dirname=/storage/ofd_packets [16:13:37]CheckFolder done [16:13:37]ProducePacketName [16:13:37]name=ofd_packets/00165021 [16:13:37]NVStorageSaveData ofd_packets/00165021 [16:13:37]File name is /storage/ofd_packets/00165021 [16:13:37]Write 301 bytes [16:13:37]NVStorageSaveData done [16:13:37]OFDSenderStorePacket done [16:13:37]KKMCreateOFDPacket done [16:13:37]NVStorageSaveData kkm_last_timestamp [16:13:37]File name is /storage/kkm_last_timestamp [16:13:37]Write 4 bytes [16:13:37]NVStorageSaveData done [16:13:37]ExternCall_PrintAddStr [16:13:37]wPrintStart [16:13:37]Write to MH i2c: 01 00 00 24 04 28 [16:13:37]Write i2c OK [16:13:37]MH_I2C_Read... [16:13:37]Read from MH i2c: 01 [16:13:37]MH_I2C_Read... [16:13:37]Read from MH i2c: 01 07 00 [16:13:37]MH_I2C_Read... [16:13:37]Read from MH i2c: 01 07 00 24 04 00 00 00 00 00 FF 0F 3D [16:13:37]RasterBufferAndPrint [16:13:37]line Счет N : (1)459122 [16:13:37]line ИНН: 02508201610067 [16:13:37]line Контрольно-Кассовый Чек [16:13:37]line ПРОДАЖА [16:13:37]line ТРК (МРК, ГНК) : 12 [16:13:37]line Товар: 2710124130 [16:13:37]line Аи-92-К-5 [16:13:37]line 8.700 * 65.80 [16:13:37]line = 572.46 [16:13:37]line НДС 12% НСП 1% [16:13:37]line > о реализуемом товаре [16:13:37]line ОКРУГЛЕНИЕ: -0.46 [16:13:37]line ИТОГО: 572.00 [16:13:37]line Внесено: 572.00 [16:13:37]line СДАЧА: 0.00 [16:13:37]line НСП 1% : 5.07 [16:13:37]line НДС 12% : 60.79 [16:13:37]line Наличными: 572.00 [16:13:37]line Безнал.: 0.00 [16:13:37]line Место: АЗС № 72 "Партнер Нефть" [16:13:37]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:13:37]line СНО: Общий режим [16:13:37]line Чек 219 14.07.2024 16:13 [16:13:37]line Смена: 447 ФФД: 1.0 [16:13:37]line ЗНМ: 0300000160 [16:13:37]line РНМ: 0000000000090829 [16:13:37]line Версия ККМ: 001 [16:13:37]line ФМ: 0000000000874718 [16:13:37]line ФД: 165021 [16:13:37]line ФПД: 76569030364530 [16:13:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T161336&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165021&fm=76569030364530&tin=02508201610067®Number=0000000000090829&sum=57200 [16:13:37]OFD Sender: Processing packet 165021 [packets to send 105, broken 104] [16:13:37]ProducePacketName [16:13:37]name=ofd_packets/00165021 [16:13:37]OFD Sender: To server: pG, [16:13:37]CommunicateWithHost lk.salyk.kg:30040 [16:13:37]ConnectInit lk.salyk.kg [16:13:37]written 0, free lines is 4095 [16:13:37]Connected sock=10 [16:13:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 59 90 07 01 AA 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 21 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 9E DF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 DF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 17 00 00 00 00 07 04 06 00 70 DF 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 30 F9 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9D 84 02 00 35 04 06 00 45 A3 9D DB 0D 72 65 A2 10 D6 2F D5 4B A6 [16:13:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 DE F0 47 00 65 E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9D 84 02 00 F4 03 04 00 BD 9F 93 66 B6 04 01 00 00 F5 3E 76 09 94 8C CB EF [16:13:38]CommunicateWithHost err = 0 [16:13:38]CheckOFDResponse [16:13:38]1017 (14) - 77093643461234 [16:13:38]1041 (16) - 0000000000874718 [16:13:38]1040 (4) - 165021 [16:13:38]1012 (4) - 14.07.2024 09:51 [16:13:38]1206 (1) - 0 [16:13:38]OFD Sender: Remove packet 165021 [16:13:38]ProducePacketName [16:13:38]name=ofd_packets/00165021 [16:13:38]NVStorageDeleteData [16:13:38]Write to MH i2c: 01 00 00 4E 04 52 [16:13:38]Write i2c OK [16:13:38]MH_I2C_Read... [16:13:38]Read from MH i2c: 01 [16:13:38]MH_I2C_Read... [16:13:38]Read from MH i2c: 01 07 00 [16:13:38]MH_I2C_Read... [16:13:38]Read from MH i2c: 01 07 00 4E 04 00 00 00 00 00 40 0D A6 [16:13:38]RasterBufferAndPrint [16:13:38]line [16:13:38]line [16:13:38]line [16:13:38]line [16:13:38]line [16:13:38]written 0, free lines is 3398 [16:13:38]MH_Cut [16:13:38]Write to MH i2c: D1 01 00 55 04 01 2B [16:13:38]Write i2c OK [16:13:38]MH_I2C_Read... [16:13:38]Read from MH i2c: D1 [16:13:38]MH_I2C_Read... [16:13:38]Read from MH i2c: D1 01 00 [16:13:38]MH_I2C_Read... [16:13:38]Read from MH i2c: D1 01 00 55 04 00 2A [16:13:38]Write to MH i2c: 01 00 00 56 04 5A [16:13:38]Write i2c OK [16:13:38]MH_I2C_Read... [16:13:38]OFD Sender: No OFD packet to send [16:13:38]*** Cut start [16:13:38]*** Partial cut [16:13:38]*** CUTSNS_PIN = 1 [16:13:38]*** CUTSNS_PIN = 0 [16:13:39]*** Brake cut motor [16:13:39]Read from MH i2c: 01 [16:13:39]MH_I2C_Read... [16:13:39]*** Stop cut motor [16:13:39]Read from MH i2c: 01 07 00 [16:13:39]MH_I2C_Read... [16:13:39]*** Cut end [16:13:39]Read from MH i2c: 01 07 00 56 04 00 00 00 00 00 FF 0F 6F [16:13:39]process_action close_receipt done [16:13:39]requested_data is exist [16:13:39]produce_requested_data [16:13:39]requested_item fm.sn is exist - process it [16:13:39]wFMCommunicate request_size=4 [16:13:39]MH_SAM_APDU [16:13:39]CAPDU: 80 11 00 00 [16:13:39]Write to MH i2c: E2 08 00 57 04 80 11 00 00 00 00 00 00 D5 [16:13:39]Write i2c OK [16:13:39]MH_I2C_Read... [16:13:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:39]Read from MH i2c: E2 [16:13:39]MH_I2C_Read... [16:13:39]Read from MH i2c: E2 17 00 [16:13:39]MH_I2C_Read... [16:13:39]Read from MH i2c: E2 17 00 57 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 2B [16:13:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:13:39]wFMCommunicate OK [16:13:39]requested_item fd.num is exist - process it [16:13:39]SAM_PROTO_GetFieldsCounters [16:13:39]wFMCommunicate request_size=4 [16:13:39]MH_SAM_APDU [16:13:39]CAPDU: 80 13 00 00 [16:13:39]Write to MH i2c: E2 08 00 58 04 80 13 00 00 00 00 00 00 D8 [16:13:39]Write i2c OK [16:13:39]MH_I2C_Read... [16:13:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:13:39]Read from MH i2c: E2 [16:13:39]MH_I2C_Read... [16:13:39]Read from MH i2c: E2 62 00 [16:13:39]MH_I2C_Read... [16:13:39]Read from MH i2c: E2 62 00 58 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 9D 84 02 00 0E 04 04 00 BF 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 73 [16:13:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 9D 84 02 00 0E 04 04 00 BF 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 [16:13:39]wFMCommunicate OK [16:13:39]SAM_PROTO_GetFieldsCounters done [16:13:39]requested_item shift.num is exist - process it [16:13:39]requested_item shift.opened is exist - process it [16:13:39]req_shift_opened [16:13:39]FM_GetShiftState [16:13:39]SAM_PROTO_GetShiftState [16:13:39]wFMCommunicate request_size=4 [16:13:39]MH_SAM_APDU [16:13:39]CAPDU: 80 13 01 00 [16:13:39]Write to MH i2c: E2 08 00 59 04 80 13 01 00 00 00 00 00 DA [16:13:39]Write i2c OK [16:13:39]MH_I2C_Read... [16:13:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:39]Read from MH i2c: E2 [16:13:39]MH_I2C_Read... [16:13:39]Read from MH i2c: E2 0E 00 [16:13:39]MH_I2C_Read... [16:13:39]Read from MH i2c: E2 0E 00 59 04 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 5A [16:13:39]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [16:13:39]wFMCommunicate OK [16:13:39]SAM_PROTO_GetShiftState done [16:13:39]FM_GetShiftState done [16:13:39]req_shift_opened done [16:13:39]requested_item shift.open_date is exist - process it [16:13:39]req_shift_open_date [16:13:39]req_shift_open_date done [16:13:39]produce_requested_data done [16:13:39]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165021,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [16:13:39]process_action_free close_receipt [16:13:39]json_value_free [16:13:39]json_value_free done [16:13:39]process_json_proto returns [16:13:39]Send response to host [16:13:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165021,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [16:13:39]free response buf [16:13:39]execute_script done [16:13:39]execute_script returns [16:13:39]free content buf [16:13:39]Sock 9.Close socket [16:13:39]Sock 9.Thread stoped [16:13:43]OFD Sender: No OFD packet to send [16:13:48]OFD Sender: No OFD packet to send [16:13:53]OFD Sender: No OFD packet to send [16:13:58]OFD Sender: No OFD packet to send [16:14:03]OFD Sender: No OFD packet to send [16:14:08]OFD Sender: No OFD packet to send [16:14:13]OFD Sender: No OFD packet to send [16:14:18]OFD Sender: No OFD packet to send [16:14:23]OFD Sender: No OFD packet to send [16:14:28]OFD Sender: No OFD packet to send [16:14:33]OFD Sender: No OFD packet to send [16:14:38]OFD Sender: No OFD packet to send [16:14:43]OFD Sender: No OFD packet to send [16:14:48]OFD Sender: No OFD packet to send [16:14:53]OFD Sender: No OFD packet to send [16:14:58]OFD Sender: No OFD packet to send [16:15:03]OFD Sender: No OFD packet to send [16:15:08]OFD Sender: No OFD packet to send [16:15:13]OFD Sender: No OFD packet to send [16:15:18]OFD Sender: No OFD packet to send [16:15:20]accept exits with 8 [16:15:20]New connection [16:15:20]New thread 3066531172 created [16:15:20]Thread 3066674532 joined [16:15:20]Waiting for new connection... [16:15:20] Sock 8.Parse request [16:15:20]Sock 8.Check first char [16:15:20]Sock 8.First char is OK [16:15:20]request: POST /json_proto HTTP/1.0 [16:15:20]Method: POST [16:15:20]URL: /json_proto [16:15:20]Method is POST - this is cgi request [16:15:20]url: /json_proto [16:15:20]query_string will be loaded in cgi processing [16:15:20]execute_cgi json_proto POST (null) [16:15:20]execute_cgi path=json_proto method=POST [16:15:20]POST find Content-Length [16:15:20]Host: 172.17.56.4:8080 [16:15:20]Content-Length: 682 [16:15:20]Content-Type: application/json [16:15:20] [16:15:20]POST finish read [16:15:20]Found Content-Length = 682 [16:15:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459123", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 30.400, "sum" : 2000.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:15:20]execute_script... [16:15:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459123", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 30.400, "sum" : 2000.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:15:20]POST & json_proto [16:15:20]process_json_proto [16:15:20]json parsed OK: [16:15:20]protocol is kg_v1.0 [16:15:20]action value=close_receipt [16:15:20]process_action close_receipt [16:15:20]cmd_close_receipt [16:15:20]MH_GetDate [16:15:20]Write to MH i2c: F0 00 00 5A 04 4D [16:15:20]Write i2c OK [16:15:20]MH_I2C_Read... [16:15:20]Read from MH i2c: F0 [16:15:20]MH_I2C_Read... [16:15:20]Read from MH i2c: F0 09 00 [16:15:20]MH_I2C_Read... [16:15:20]Read from MH i2c: F0 09 00 5A 04 00 99 F9 93 66 C9 DC B2 64 9C [16:15:20]GetLastDocTimeStamp 1720973616 [16:15:20]current date 1720973721 [16:15:20]FM_GetShiftState [16:15:20]SAM_PROTO_GetShiftState [16:15:20]wFMCommunicate request_size=4 [16:15:20]MH_SAM_APDU [16:15:20]CAPDU: 80 13 01 00 [16:15:20]Write to MH i2c: E2 08 00 5B 04 80 13 01 00 00 00 00 00 DC [16:15:20]Write i2c OK [16:15:20]MH_I2C_Read... [16:15:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:15:20]Read from MH i2c: E2 [16:15:20]MH_I2C_Read... [16:15:20]Read from MH i2c: E2 0E 00 [16:15:20]MH_I2C_Read... [16:15:20]Read from MH i2c: E2 0E 00 5B 04 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 5C [16:15:20]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [16:15:20]wFMCommunicate OK [16:15:20]SAM_PROTO_GetShiftState done [16:15:20]FM_GetShiftState done [16:15:20]opened in 1720917342 [16:15:20]opened+sec_in_day 1721003742 [16:15:20]quantity*price = 200032 [16:15:20]sum+1 = 200033 [16:15:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 220 14.07.2024 16:15 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165022 ФПД: 245464519778916 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T161521&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165022&fm=245464519778916&tin=02508201610067®Number=0000000000090829&sum=200000 [16:15:21]StoreToDocumentArchive [16:15:21]shift 447 fd 165022 [16:15:21]save to /storage/0447/doc_00165022 [16:15:21]save last doc name /storage/0447/doc_00165022 to /storage/kkm_last_doc_name [16:15:21]save OK [16:15:21]Clear old archive folders... [16:15:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:15:21]tlvbuf is 01499410 [16:15:21]SAM_PROTO_ClearQueue [16:15:21]wFMCommunicate request_size=4 [16:15:21]MH_SAM_APDU [16:15:21]CAPDU: 80 09 00 00 [16:15:21]Write to MH i2c: E2 08 00 68 04 80 09 00 00 00 00 00 00 DE [16:15:21]Write i2c OK [16:15:21]MH_I2C_Read... [16:15:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:15:21]Read from MH i2c: E2 [16:15:21]MH_I2C_Read... [16:15:21]Read from MH i2c: E2 03 00 [16:15:21]MH_I2C_Read... [16:15:21]Read from MH i2c: E2 03 00 68 04 00 90 00 E0 [16:15:21]RAPDU: 90 00 [16:15:21]wFMCommunicate OK [16:15:21]SAM_PROTO_ClearQueue done [16:15:21]KKMCreateOFDPacket [16:15:21]OFDProtocolAddRootSTLVToBuf [16:15:21]FM_MakeSignedData [16:15:21]FM_MakeSignedData [16:15:21]SAM_PROTO_SignData [16:15:21]wFMCommunicate request_size=4 [16:15:21]MH_SAM_APDU [16:15:21]CAPDU: 80 0D 01 02 [16:15:21]Write to MH i2c: E2 08 00 69 04 80 0D 01 02 00 00 00 00 E6 [16:15:21]Write i2c OK [16:15:21]MH_I2C_Read... [16:15:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:15:21]Read from MH i2c: E2 [16:15:21]MH_I2C_Read... [16:15:21]Read from MH i2c: E2 03 00 [16:15:21]MH_I2C_Read... [16:15:21]Read from MH i2c: E2 03 00 69 04 00 90 00 E1 [16:15:21]RAPDU: 90 00 [16:15:21]wFMCommunicate OK [16:15:21]wFMCommunicate request_size=255 [16:15:21]MH_SAM_APDU [16:15:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 60 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 DC 00 00 00 F4 03 04 00 99 F9 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9E 84 02 00 35 04 06 00 DF [16:15:21]Write to MH i2c: E2 02 01 6A 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 60 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 DC 00 00 00 F4 03 04 00 99 F9 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9E 84 02 00 35 04 06 00 DF 00 00 6F [16:15:21]Write i2c OK [16:15:21]MH_I2C_Read... [16:15:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:15:21]Read from MH i2c: E2 [16:15:21]MH_I2C_Read... [16:15:21]Read from MH i2c: E2 03 00 [16:15:21]MH_I2C_Read... [16:15:21]Read from MH i2c: E2 03 00 6A 04 00 90 00 E2 [16:15:21]RAPDU: 90 00 [16:15:21]wFMCommunicate OK [16:15:21]wFMCommunicate request_size=10 [16:15:21]MH_SAM_APDU [16:15:21]CAPDU: 80 0D 02 02 05 3F A9 81 A2 64 [16:15:21]Write to MH i2c: E2 0D 00 6B 04 80 0D 02 02 05 00 3F A9 81 A2 64 00 00 62 [16:15:21]Write i2c OK [16:15:21]MH_I2C_Read... [16:15:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:15:21]Read from MH i2c: E2 [16:15:21]MH_I2C_Read... [16:15:21]Read from MH i2c: E2 03 00 [16:15:21]MH_I2C_Read... [16:15:21]Read from MH i2c: E2 03 00 6B 04 00 90 00 E3 [16:15:21]RAPDU: 90 00 [16:15:21]wFMCommunicate OK [16:15:21]wFMCommunicate request_size=4 [16:15:21]MH_SAM_APDU [16:15:21]CAPDU: 80 0D 03 02 [16:15:21]Write to MH i2c: E2 08 00 6C 04 80 0D 03 02 00 00 00 00 EB [16:15:21]Write i2c OK [16:15:21]MH_I2C_Read... [16:15:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:15:21]Read from MH i2c: E2 [16:15:21]MH_I2C_Read... [16:15:21]Read from MH i2c: E2 0B 00 [16:15:21]MH_I2C_Read... [16:15:21]Read from MH i2c: E2 0B 00 6C 04 00 C0 74 F6 96 65 67 B0 B1 90 00 D9 [16:15:21]RAPDU: C0 74 F6 96 65 67 B0 B1 90 00 [16:15:21]wFMCommunicate OK [16:15:21]SAM_PROTO_SignData done [16:15:21]FM_MakeSignedData done [16:15:21]CreateOFDProtocolMessage [16:15:21]wFMCommunicate request_size=4 [16:15:21]MH_SAM_APDU [16:15:21]CAPDU: 80 11 00 00 [16:15:21]Write to MH i2c: E2 08 00 6D 04 80 11 00 00 00 00 00 00 EB [16:15:21]Write i2c OK [16:15:21]MH_I2C_Read... [16:15:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:15:21]Read from MH i2c: E2 [16:15:21]MH_I2C_Read... [16:15:21]Read from MH i2c: E2 17 00 [16:15:21]MH_I2C_Read... [16:15:21]Read from MH i2c: E2 17 00 6D 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 41 [16:15:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:15:21]wFMCommunicate OK [16:15:21]CreateOFDProtocolMessage done [16:15:21]OFDSenderStorePacket 165022 [16:15:21]StoreOFDPacket docnum=165022 [16:15:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 63 C6 07 01 6B 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 60 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 DC 00 00 00 F4 03 04 00 99 F9 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9E 84 02 00 35 04 06 00 DF 3F A9 81 A2 64 C0 74 F6 96 65 67 B0 B1 [16:15:21]CheckFolder [16:15:21]dirname=/storage/ofd_packets [16:15:21]CheckFolder done [16:15:21]ProducePacketName [16:15:21]name=ofd_packets/00165022 [16:15:21]NVStorageSaveData ofd_packets/00165022 [16:15:21]File name is /storage/ofd_packets/00165022 [16:15:21]Write 301 bytes [16:15:21]NVStorageSaveData done [16:15:21]OFDSenderStorePacket done [16:15:21]KKMCreateOFDPacket done [16:15:21]NVStorageSaveData kkm_last_timestamp [16:15:21]File name is /storage/kkm_last_timestamp [16:15:21]Write 4 bytes [16:15:21]NVStorageSaveData done [16:15:21]ExternCall_PrintAddStr [16:15:21]wPrintStart [16:15:21]Write to MH i2c: 01 00 00 6E 04 72 [16:15:21]Write i2c OK [16:15:21]MH_I2C_Read... [16:15:21]Read from MH i2c: 01 [16:15:21]MH_I2C_Read... [16:15:21]Read from MH i2c: 01 07 00 [16:15:21]MH_I2C_Read... [16:15:21]Read from MH i2c: 01 07 00 6E 04 00 00 00 00 00 FF 0F 87 [16:15:21]RasterBufferAndPrint [16:15:21]line Счет N : (1)459123 [16:15:21]line ИНН: 02508201610067 [16:15:21]line Контрольно-Кассовый Чек [16:15:21]line ПРОДАЖА [16:15:21]line ТРК (МРК, ГНК) : 12 [16:15:21]line Товар: 2710124130 [16:15:21]line Аи-92-К-5 [16:15:21]line 30.400 * 65.80 [16:15:21]line = 2000.32 [16:15:21]line НДС 12% НСП 1% [16:15:21]line > о реализуемом товаре [16:15:21]line ОКРУГЛЕНИЕ: -0.32 [16:15:21]line ИТОГО: 2000.00 [16:15:21]line Внесено: 2000.00 [16:15:21]line СДАЧА: 0.00 [16:15:21]line НСП 1% : 17.70 [16:15:21]line НДС 12% : 212.42 [16:15:21]line Наличными: 2000.00 [16:15:21]line Безнал.: 0.00 [16:15:21]line Место: АЗС № 72 "Партнер Нефть" [16:15:21]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:15:21]line СНО: Общий режим [16:15:21]line Чек 220 14.07.2024 16:15 [16:15:21]line Смена: 447 ФФД: 1.0 [16:15:21]line ЗНМ: 0300000160 [16:15:21]line РНМ: 0000000000090829 [16:15:21]line Версия ККМ: 001 [16:15:21]line ФМ: 0000000000874718 [16:15:21]line ФД: 165022 [16:15:21]line ФПД: 245464519778916 [16:15:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T161521&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165022&fm=245464519778916&tin=02508201610067®Number=0000000000090829&sum=200000 [16:15:22]OFD Sender: Processing packet 165022 [packets to send 105, broken 104] [16:15:22]ProducePacketName [16:15:22]name=ofd_packets/00165022 [16:15:22]OFD Sender: To server: pG, [16:15:22]CommunicateWithHost lk.salyk.kg:30040 [16:15:22]ConnectInit lk.salyk.kg [16:15:22]written 0, free lines is 4095 [16:15:22]Connected sock=10 [16:15:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 63 C6 07 01 6B 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 60 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 DC 00 00 00 F4 03 04 00 99 F9 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9E 84 02 00 35 04 06 00 DF 3F A9 81 A2 64 C0 74 F6 96 65 67 B0 B1 [16:15:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 A7 CB 47 00 BD 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9E 84 02 00 F4 03 04 00 26 A0 93 66 B6 04 01 00 00 17 1E A4 69 6C 6F 7E A2 [16:15:22]CommunicateWithHost err = 0 [16:15:22]CheckOFDResponse [16:15:22]1017 (14) - 77093643461234 [16:15:22]1041 (16) - 0000000000874718 [16:15:22]1040 (4) - 165022 [16:15:22]1012 (4) - 14.07.2024 09:53 [16:15:22]1206 (1) - 0 [16:15:22]OFD Sender: Remove packet 165022 [16:15:22]ProducePacketName [16:15:22]name=ofd_packets/00165022 [16:15:22]NVStorageDeleteData [16:15:22]Write to MH i2c: 01 00 00 98 04 9C [16:15:22]Write i2c OK [16:15:22]MH_I2C_Read... [16:15:22]Read from MH i2c: 01 [16:15:22]MH_I2C_Read... [16:15:22]Read from MH i2c: 01 07 00 [16:15:22]MH_I2C_Read... [16:15:22]Read from MH i2c: 01 07 00 98 04 00 00 00 00 00 11 0D C1 [16:15:22]RasterBufferAndPrint [16:15:22]line [16:15:22]line [16:15:22]line [16:15:22]line [16:15:22]line [16:15:22]written 0, free lines is 3351 [16:15:22]MH_Cut [16:15:22]Write to MH i2c: D1 01 00 9F 04 01 75 [16:15:22]Write i2c OK [16:15:22]MH_I2C_Read... [16:15:22]Read from MH i2c: D1 [16:15:22]MH_I2C_Read... [16:15:22]Read from MH i2c: D1 01 00 [16:15:22]MH_I2C_Read... [16:15:22]Read from MH i2c: D1 01 00 9F 04 00 74 [16:15:22]Write to MH i2c: 01 00 00 A0 04 A4 [16:15:22]Write i2c OK [16:15:22]MH_I2C_Read... [16:15:23]OFD Sender: No OFD packet to send [16:15:23]*** Cut start [16:15:23]*** Partial cut [16:15:23]*** CUTSNS_PIN = 1 [16:15:23]*** CUTSNS_PIN = 0 [16:15:23]*** Brake cut motor [16:15:23]Read from MH i2c: 01 [16:15:23]MH_I2C_Read... [16:15:23]*** Stop cut motor [16:15:24]*** Cut end [16:15:24]Read from MH i2c: 01 07 00 [16:15:24]MH_I2C_Read... [16:15:24]Read from MH i2c: 01 07 00 A0 04 00 00 00 00 00 FF 0F B9 [16:15:24]process_action close_receipt done [16:15:24]requested_data is exist [16:15:24]produce_requested_data [16:15:24]requested_item fm.sn is exist - process it [16:15:24]wFMCommunicate request_size=4 [16:15:24]MH_SAM_APDU [16:15:24]CAPDU: 80 11 00 00 [16:15:24]Write to MH i2c: E2 08 00 A1 04 80 11 00 00 00 00 00 00 1F [16:15:24]Write i2c OK [16:15:24]MH_I2C_Read... [16:15:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:15:24]Read from MH i2c: E2 [16:15:24]MH_I2C_Read... [16:15:24]Read from MH i2c: E2 17 00 [16:15:24]MH_I2C_Read... [16:15:24]Read from MH i2c: E2 17 00 A1 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 75 [16:15:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:15:24]wFMCommunicate OK [16:15:24]requested_item fd.num is exist - process it [16:15:24]SAM_PROTO_GetFieldsCounters [16:15:24]wFMCommunicate request_size=4 [16:15:24]MH_SAM_APDU [16:15:24]CAPDU: 80 13 00 00 [16:15:24]Write to MH i2c: E2 08 00 A2 04 80 13 00 00 00 00 00 00 22 [16:15:24]Write i2c OK [16:15:24]MH_I2C_Read... [16:15:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:15:24]Read from MH i2c: E2 [16:15:24]MH_I2C_Read... [16:15:24]Read from MH i2c: E2 62 00 [16:15:24]MH_I2C_Read... [16:15:24]Read from MH i2c: E2 62 00 A2 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 9E 84 02 00 0E 04 04 00 BF 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 C1 [16:15:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 9E 84 02 00 0E 04 04 00 BF 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 [16:15:24]wFMCommunicate OK [16:15:24]SAM_PROTO_GetFieldsCounters done [16:15:24]requested_item shift.num is exist - process it [16:15:24]requested_item shift.opened is exist - process it [16:15:24]req_shift_opened [16:15:24]FM_GetShiftState [16:15:24]SAM_PROTO_GetShiftState [16:15:24]wFMCommunicate request_size=4 [16:15:24]MH_SAM_APDU [16:15:24]CAPDU: 80 13 01 00 [16:15:24]Write to MH i2c: E2 08 00 A3 04 80 13 01 00 00 00 00 00 24 [16:15:24]Write i2c OK [16:15:24]MH_I2C_Read... [16:15:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:15:24]Read from MH i2c: E2 [16:15:24]MH_I2C_Read... [16:15:24]Read from MH i2c: E2 0E 00 [16:15:24]MH_I2C_Read... [16:15:24]Read from MH i2c: E2 0E 00 A3 04 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 A4 [16:15:24]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [16:15:24]wFMCommunicate OK [16:15:24]SAM_PROTO_GetShiftState done [16:15:24]FM_GetShiftState done [16:15:24]req_shift_opened done [16:15:24]requested_item shift.open_date is exist - process it [16:15:24]req_shift_open_date [16:15:24]req_shift_open_date done [16:15:24]produce_requested_data done [16:15:24]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165022,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [16:15:24]process_action_free close_receipt [16:15:24]json_value_free [16:15:24]json_value_free done [16:15:24]process_json_proto returns [16:15:24]Send response to host [16:15:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165022,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [16:15:24]free response buf [16:15:24]execute_script done [16:15:24]execute_script returns [16:15:24]free content buf [16:15:24]Sock 8.Close socket [16:15:24]Sock 8.Thread stoped [16:15:28]OFD Sender: No OFD packet to send [16:15:33]OFD Sender: No OFD packet to send [16:15:38]OFD Sender: No OFD packet to send [16:15:43]OFD Sender: No OFD packet to send [16:15:48]OFD Sender: No OFD packet to send [16:15:53]OFD Sender: No OFD packet to send [16:15:58]OFD Sender: No OFD packet to send [16:16:03]OFD Sender: No OFD packet to send [16:16:08]OFD Sender: No OFD packet to send [16:16:13]OFD Sender: No OFD packet to send [16:16:18]OFD Sender: No OFD packet to send [16:16:23]OFD Sender: No OFD packet to send [16:16:28]OFD Sender: No OFD packet to send [16:16:33]OFD Sender: No OFD packet to send [16:16:38]OFD Sender: No OFD packet to send [16:16:43]OFD Sender: No OFD packet to send [16:16:48]OFD Sender: No OFD packet to send [16:16:53]OFD Sender: No OFD packet to send [16:16:58]OFD Sender: No OFD packet to send [16:17:03]OFD Sender: No OFD packet to send [16:17:08]OFD Sender: No OFD packet to send [16:17:13]OFD Sender: No OFD packet to send [16:17:18]OFD Sender: No OFD packet to send [16:17:23]OFD Sender: No OFD packet to send [16:17:28]OFD Sender: No OFD packet to send [16:17:33]OFD Sender: No OFD packet to send [16:17:38]OFD Sender: No OFD packet to send [16:17:43]OFD Sender: No OFD packet to send [16:17:48]OFD Sender: No OFD packet to send [16:17:53]OFD Sender: No OFD packet to send [16:17:58]OFD Sender: No OFD packet to send [16:18:03]OFD Sender: No OFD packet to send [16:18:08]OFD Sender: No OFD packet to send [16:18:13]OFD Sender: No OFD packet to send [16:18:18]OFD Sender: No OFD packet to send [16:18:23]OFD Sender: No OFD packet to send [16:18:28]OFD Sender: No OFD packet to send [16:18:33]OFD Sender: No OFD packet to send [16:18:38]OFD Sender: No OFD packet to send [16:18:43]OFD Sender: No OFD packet to send [16:18:48]OFD Sender: No OFD packet to send [16:18:53]OFD Sender: No OFD packet to send [16:18:58]OFD Sender: No OFD packet to send [16:19:03]OFD Sender: No OFD packet to send [16:19:08]OFD Sender: No OFD packet to send [16:19:13]OFD Sender: No OFD packet to send [16:19:18]OFD Sender: No OFD packet to send [16:19:23]OFD Sender: No OFD packet to send [16:19:28]OFD Sender: No OFD packet to send [16:19:33]OFD Sender: No OFD packet to send [16:19:38]OFD Sender: No OFD packet to send [16:19:43]OFD Sender: No OFD packet to send [16:19:48]OFD Sender: No OFD packet to send [16:19:53]OFD Sender: No OFD packet to send [16:19:58]OFD Sender: No OFD packet to send [16:20:03]OFD Sender: No OFD packet to send [16:20:08]OFD Sender: No OFD packet to send [16:20:13]OFD Sender: No OFD packet to send [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:08]accept exits with 9 [16:21:08]New connection [16:21:08]New thread 3066674532 created [16:21:08]Thread 3066531172 joined [16:21:08]Waiting for new connection... [16:21:08] Sock 9.Parse request [16:21:08]Sock 9.Check first char [16:21:08]Sock 9.First char is OK [16:21:08]request: POST /json_proto HTTP/1.0 [16:21:08]Method: POST [16:21:08]URL: /json_proto [16:21:08]Method is POST - this is cgi request [16:21:08]url: /json_proto [16:21:08]query_string will be loaded in cgi processing [16:21:08]execute_cgi json_proto POST (null) [16:21:08]execute_cgi path=json_proto method=POST [16:21:08]POST find Content-Length [16:21:08]Host: 172.17.56.4:8080 [16:21:08]Content-Length: 790 [16:21:08]Content-Type: application/json [16:21:08] [16:21:08]POST finish read [16:21:08]Found Content-Length = 790 [16:21:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459124", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 5.000, "sum" : 326.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 326.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:21:08]execute_script... [16:21: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)459124", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 5.000, "sum" : 326.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 326.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:21:08]POST & json_proto [16:21:08]process_json_proto [16:21:08]json parsed OK: [16:21:08]protocol is kg_v1.0 [16:21:08]action value=close_receipt [16:21:08]process_action close_receipt [16:21:08]cmd_close_receipt [16:21:08]MH_GetDate [16:21:08]Write to MH i2c: F0 00 00 A4 04 97 [16:21:08]Write i2c OK [16:21:08]MH_I2C_Read... [16:21:08]Read from MH i2c: F0 [16:21:08]MH_I2C_Read... [16:21:08]Read from MH i2c: F0 09 00 [16:21:08]MH_I2C_Read... [16:21:08]Read from MH i2c: F0 09 00 A4 04 00 F5 FA 93 66 C9 DC B2 64 43 [16:21:08]GetLastDocTimeStamp 1720973721 [16:21:08]current date 1720974069 [16:21:08]FM_GetShiftState [16:21:08]SAM_PROTO_GetShiftState [16:21:08]wFMCommunicate request_size=4 [16:21:08]MH_SAM_APDU [16:21:08]CAPDU: 80 13 01 00 [16:21:08]Write to MH i2c: E2 08 00 A5 04 80 13 01 00 00 00 00 00 26 [16:21:08]Write i2c OK [16:21:08]MH_I2C_Read... [16:21:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:08]Read from MH i2c: E2 [16:21:08]MH_I2C_Read... [16:21:08]Read from MH i2c: E2 0E 00 [16:21:08]MH_I2C_Read... [16:21:08]Read from MH i2c: E2 0E 00 A5 04 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 A6 [16:21:08]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [16:21:08]wFMCommunicate OK [16:21:08]SAM_PROTO_GetShiftState done [16:21:08]FM_GetShiftState done [16:21:08]opened in 1720917342 [16:21:08]opened+sec_in_day 1721003742 [16:21:08]quantity*price = 32610 [16:21:08]sum+1 = 32611 [16:21:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 326.10 НСП 1% : 2.89 НДС 12% : 34.63 Наличными: 0.00 Безнал.: 326.10 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 221 14.07.2024 16:21 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 165023 ФПД: 224443938935930 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T162109&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165023&fm=224443938935930&tin=02508201610067®Number=0000000000090829&sum=32610 [16:21:09]StoreToDocumentArchive [16:21:09]shift 447 fd 165023 [16:21:09]save to /storage/0447/doc_00165023 [16:21:09]save last doc name /storage/0447/doc_00165023 to /storage/kkm_last_doc_name [16:21:09]save OK [16:21:09]Clear old archive folders... [16:21:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:21:09]tlvbuf is 014673A0 [16:21:09]SAM_PROTO_ClearQueue [16:21:09]wFMCommunicate request_size=4 [16:21:09]MH_SAM_APDU [16:21:09]CAPDU: 80 09 00 00 [16:21:09]Write to MH i2c: E2 08 00 B2 04 80 09 00 00 00 00 00 00 28 [16:21:09]Write i2c OK [16:21:09]MH_I2C_Read... [16:21:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:21:09]Read from MH i2c: E2 [16:21:09]MH_I2C_Read... [16:21:09]Read from MH i2c: E2 03 00 [16:21:09]MH_I2C_Read... [16:21:09]Read from MH i2c: E2 03 00 B2 04 00 90 00 2A [16:21:09]RAPDU: 90 00 [16:21:09]wFMCommunicate OK [16:21:09]SAM_PROTO_ClearQueue done [16:21:09]KKMCreateOFDPacket [16:21:09]OFDProtocolAddRootSTLVToBuf [16:21:09]FM_MakeSignedData [16:21:09]FM_MakeSignedData [16:21:09]SAM_PROTO_SignData [16:21:09]wFMCommunicate request_size=4 [16:21:09]MH_SAM_APDU [16:21:09]CAPDU: 80 0D 01 02 [16:21:09]Write to MH i2c: E2 08 00 B3 04 80 0D 01 02 00 00 00 00 30 [16:21:09]Write i2c OK [16:21:09]MH_I2C_Read... [16:21:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:21:09]Read from MH i2c: E2 [16:21:09]MH_I2C_Read... [16:21:09]Read from MH i2c: E2 03 00 [16:21:09]MH_I2C_Read... [16:21:09]Read from MH i2c: E2 03 00 B3 04 00 90 00 2B [16:21:09]RAPDU: 90 00 [16:21:09]wFMCommunicate OK [16:21:09]wFMCommunicate request_size=255 [16:21:09]MH_SAM_APDU [16:21:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 62 7F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 7F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 7F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 F5 FA 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9F 84 02 00 35 04 06 00 CC [16:21:09]Write to MH i2c: E2 02 01 B4 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 62 7F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 7F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 7F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 F5 FA 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9F 84 02 00 35 04 06 00 CC 00 00 3D [16:21:09]Write i2c OK [16:21:09]MH_I2C_Read... [16:21:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:10]Read from MH i2c: E2 [16:21:10]MH_I2C_Read... [16:21:10]Read from MH i2c: E2 03 00 [16:21:10]MH_I2C_Read... [16:21:10]Read from MH i2c: E2 03 00 B4 04 00 90 00 2C [16:21:10]RAPDU: 90 00 [16:21:10]wFMCommunicate OK [16:21:10]wFMCommunicate request_size=10 [16:21:10]MH_SAM_APDU [16:21:10]CAPDU: 80 0D 02 02 05 21 6D 40 94 7A [16:21:10]Write to MH i2c: E2 0D 00 B5 04 80 0D 02 02 05 00 21 6D 40 94 7A 00 00 19 [16:21:10]Write i2c OK [16:21:10]MH_I2C_Read... [16:21:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:10]Read from MH i2c: E2 [16:21:10]MH_I2C_Read... [16:21:10]Read from MH i2c: E2 03 00 [16:21:10]MH_I2C_Read... [16:21:10]Read from MH i2c: E2 03 00 B5 04 00 90 00 2D [16:21:10]RAPDU: 90 00 [16:21:10]wFMCommunicate OK [16:21:10]wFMCommunicate request_size=4 [16:21:10]MH_SAM_APDU [16:21:10]CAPDU: 80 0D 03 02 [16:21:10]Write to MH i2c: E2 08 00 B6 04 80 0D 03 02 00 00 00 00 35 [16:21:10]Write i2c OK [16:21:10]MH_I2C_Read... [16:21:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:21:10]Read from MH i2c: E2 [16:21:10]MH_I2C_Read... [16:21:10]Read from MH i2c: E2 0B 00 [16:21:10]MH_I2C_Read... [16:21:10]Read from MH i2c: E2 0B 00 B6 04 00 90 92 84 2D CB 1A DD 98 90 00 63 [16:21:10]RAPDU: 90 92 84 2D CB 1A DD 98 90 00 [16:21:10]wFMCommunicate OK [16:21:10]SAM_PROTO_SignData done [16:21:10]FM_MakeSignedData done [16:21:10]CreateOFDProtocolMessage [16:21:10]wFMCommunicate request_size=4 [16:21:10]MH_SAM_APDU [16:21:10]CAPDU: 80 11 00 00 [16:21:10]Write to MH i2c: E2 08 00 B7 04 80 11 00 00 00 00 00 00 35 [16:21:10]Write i2c OK [16:21:10]MH_I2C_Read... [16:21:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:10]Read from MH i2c: E2 [16:21:10]MH_I2C_Read... [16:21:10]Read from MH i2c: E2 17 00 [16:21:10]MH_I2C_Read... [16:21:10]Read from MH i2c: E2 17 00 B7 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 8B [16:21:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:21:10]wFMCommunicate OK [16:21:10]CreateOFDProtocolMessage done [16:21:10]OFDSenderStorePacket 165023 [16:21:10]StoreOFDPacket docnum=165023 [16:21:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 91 57 07 01 36 A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 62 7F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 7F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 7F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 F5 FA 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9F 84 02 00 35 04 06 00 CC 21 6D 40 94 7A 90 92 84 2D CB 1A DD 98 [16:21:10]CheckFolder [16:21:10]dirname=/storage/ofd_packets [16:21:10]CheckFolder done [16:21:10]ProducePacketName [16:21:10]name=ofd_packets/00165023 [16:21:10]NVStorageSaveData ofd_packets/00165023 [16:21:10]File name is /storage/ofd_packets/00165023 [16:21:10]Write 301 bytes [16:21:10]NVStorageSaveData done [16:21:10]OFDSenderStorePacket done [16:21:10]KKMCreateOFDPacket done [16:21:10]NVStorageSaveData kkm_last_timestamp [16:21:10]File name is /storage/kkm_last_timestamp [16:21:10]Write 4 bytes [16:21:10]NVStorageSaveData done [16:21:10]ExternCall_PrintAddStr [16:21:10]wPrintStart [16:21:10]Write to MH i2c: 01 00 00 B8 04 BC [16:21:10]Write i2c OK [16:21:10]MH_I2C_Read... [16:21:10]Read from MH i2c: 01 [16:21:10]MH_I2C_Read... [16:21:10]Read from MH i2c: 01 07 00 [16:21:10]MH_I2C_Read... [16:21:10]Read from MH i2c: 01 07 00 B8 04 00 00 00 00 00 FF 0F D1 [16:21:10]RasterBufferAndPrint [16:21:10]line Счет N : (1)459124 [16:21:10]line ИНН: 02508201610067 [16:21:10]line Контрольно-Кассовый Чек [16:21:10]line ПРОДАЖА [16:21:10]line ТРК (МРК, ГНК) : 22 [16:21:10]line Товар: 2710124130 [16:21:10]line Аи-92-К-5 [16:21:10]line 5.000 * 65.22 [16:21:10]line = 326.10 [16:21:10]line НДС 12% НСП 1% [16:21:10]line > о реализуемом товаре [16:21:10]line ИТОГО: 326.10 [16:21:10]line НСП 1% : 2.89 [16:21:10]line НДС 12% : 34.63 [16:21:10]line Наличными: 0.00 [16:21:10]line Безнал.: 326.10 [16:21:10]line Место: АЗС № 72 "Партнер Нефть" [16:21:10]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:21:10]line СНО: Общий режим [16:21:10]line Чек 221 14.07.2024 16:21 [16:21:10]line Смена: 447 ФФД: 1.0 [16:21:10]line ЗНМ: 0300000160 [16:21:10]line РНМ: 0000000000090829 [16:21:10]line Версия ККМ: 001 [16:21:10]line Платежная система: KICB Банк [16:21:10]line ФМ: 0000000000874718 [16:21:10]line ФД: 165023 [16:21:10]line ФПД: 224443938935930 [16:21:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T162109&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165023&fm=224443938935930&tin=02508201610067®Number=0000000000090829&sum=32610 [16:21:10]written 0, free lines is 4095 [16:21:10]OFD Sender: Processing packet 165023 [packets to send 105, broken 104] [16:21:10]ProducePacketName [16:21:10]name=ofd_packets/00165023 [16:21:10]OFD Sender: To server: pG, [16:21:10]CommunicateWithHost lk.salyk.kg:30040 [16:21:10]ConnectInit lk.salyk.kg [16:21:10]Connected sock=10 [16:21:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 91 57 07 01 36 A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 62 7F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 7F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 7F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 F5 FA 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9F 84 02 00 35 04 06 00 CC 21 6D 40 94 7A 90 92 84 2D CB 1A DD 98 [16:21:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 75 2A 47 00 7E EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9F 84 02 00 F4 03 04 00 82 A1 93 66 B6 04 01 00 00 9F A2 F7 58 D6 E7 09 90 [16:21:10]CommunicateWithHost err = 0 [16:21:10]CheckOFDResponse [16:21:10]1017 (14) - 77093643461234 [16:21:10]1041 (16) - 0000000000874718 [16:21:10]1040 (4) - 165023 [16:21:10]1012 (4) - 14.07.2024 09:59 [16:21:10]1206 (1) - 0 [16:21:10]OFD Sender: Remove packet 165023 [16:21:10]ProducePacketName [16:21:10]name=ofd_packets/00165023 [16:21:10]NVStorageDeleteData [16:21:10]Write to MH i2c: 01 00 00 E1 04 E5 [16:21:10]Write i2c OK [16:21:10]MH_I2C_Read... [16:21:10]Read from MH i2c: 01 [16:21:10]MH_I2C_Read... [16:21:10]Read from MH i2c: 01 07 00 [16:21:10]MH_I2C_Read... [16:21:10]Read from MH i2c: 01 07 00 E1 04 00 00 00 00 00 20 0D 19 [16:21:10]RasterBufferAndPrint [16:21:10]line [16:21:10]line [16:21:10]line [16:21:10]line [16:21:10]line [16:21:10]written 0, free lines is 3366 [16:21:10]MH_Cut [16:21:10]Write to MH i2c: D1 01 00 E8 04 01 BE [16:21:10]Write i2c OK [16:21:10]MH_I2C_Read... [16:21:10]Read from MH i2c: D1 [16:21:10]MH_I2C_Read... [16:21:10]Read from MH i2c: D1 01 00 [16:21:10]MH_I2C_Read... [16:21:10]Read from MH i2c: D1 01 00 E8 04 00 BD [16:21:10]Write to MH i2c: 01 00 00 E9 04 ED [16:21:10]Write i2c OK [16:21:10]MH_I2C_Read... [16:21:11]OFD Sender: No OFD packet to send [16:21:11]*** Cut start [16:21:11]*** Partial cut [16:21:11]*** CUTSNS_PIN = 1 [16:21:11]*** CUTSNS_PIN = 0 [16:21:11]*** Brake cut motor [16:21:12]Read from MH i2c: 01 [16:21:12]MH_I2C_Read... [16:21:12]*** Stop cut motor [16:21:12]*** Cut end [16:21:12]Read from MH i2c: 01 07 00 [16:21:12]MH_I2C_Read... [16:21:12]Read from MH i2c: 01 07 00 E9 04 00 00 00 00 00 FF 0F 02 [16:21:12]process_action close_receipt done [16:21:12]requested_data is exist [16:21:12]produce_requested_data [16:21:12]requested_item fm.sn is exist - process it [16:21:12]wFMCommunicate request_size=4 [16:21:12]MH_SAM_APDU [16:21:12]CAPDU: 80 11 00 00 [16:21:12]Write to MH i2c: E2 08 00 EA 04 80 11 00 00 00 00 00 00 68 [16:21:12]Write i2c OK [16:21:12]MH_I2C_Read... [16:21:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:12]Read from MH i2c: E2 [16:21:12]MH_I2C_Read... [16:21:12]Read from MH i2c: E2 17 00 [16:21:12]MH_I2C_Read... [16:21:12]Read from MH i2c: E2 17 00 EA 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 BE [16:21:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:21:12]wFMCommunicate OK [16:21:12]requested_item fd.num is exist - process it [16:21:12]SAM_PROTO_GetFieldsCounters [16:21:12]wFMCommunicate request_size=4 [16:21:12]MH_SAM_APDU [16:21:12]CAPDU: 80 13 00 00 [16:21:12]Write to MH i2c: E2 08 00 EB 04 80 13 00 00 00 00 00 00 6B [16:21:12]Write i2c OK [16:21:12]MH_I2C_Read... [16:21:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:21:12]Read from MH i2c: E2 [16:21:12]MH_I2C_Read... [16:21:12]Read from MH i2c: E2 62 00 [16:21:12]MH_I2C_Read... [16:21:12]Read from MH i2c: E2 62 00 EB 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 9F 84 02 00 0E 04 04 00 BF 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 0E [16:21:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 9F 84 02 00 0E 04 04 00 BF 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 [16:21:12]wFMCommunicate OK [16:21:12]SAM_PROTO_GetFieldsCounters done [16:21:12]requested_item shift.num is exist - process it [16:21:12]requested_item shift.opened is exist - process it [16:21:12]req_shift_opened [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 EC 04 80 13 01 00 00 00 00 00 6D [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 EC 04 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 ED [16:21:12]RAPDU: 09 00 01 5E 1D 93 66 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]req_shift_opened done [16:21:12]requested_item shift.open_date is exist - process it [16:21:12]req_shift_open_date [16:21:12]req_shift_open_date done [16:21:12]produce_requested_data done [16:21:12]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165023,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [16:21:12]process_action_free close_receipt [16:21:12]json_value_free [16:21:12]json_value_free done [16:21:12]process_json_proto returns [16:21:12]Send response to host [16:21:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165023,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [16:21:12]free response buf [16:21:12]execute_script done [16:21:12]execute_script returns [16:21:12]free content buf [16:21:12]Sock 9.Close socket [16:21:12]Sock 9.Thread stoped [16:21:16]OFD Sender: No OFD packet to send [16:21:21]OFD Sender: No OFD packet to send [16:21:26]OFD Sender: No OFD packet to send [16:21:31]OFD Sender: No OFD packet to send [16:21:36]OFD Sender: No OFD packet to send [16:21:41]OFD Sender: No OFD packet to send [16:21:46]OFD Sender: No OFD packet to send [16:21:51]OFD Sender: No OFD packet to send [16:21:54]accept exits with 8 [16:21:54]New connection [16:21:54]New thread 3066531172 created [16:21:54]Thread 3066674532 joined [16:21:54]Waiting for new connection... [16:21:54] Sock 8.Parse request [16:21:54]Sock 8.Check first char [16:21:54]Sock 8.First char is OK [16:21:54]request: POST /json_proto HTTP/1.0 [16:21:54]Method: POST [16:21:54]URL: /json_proto [16:21:54]Method is POST - this is cgi request [16:21:54]url: /json_proto [16:21:54]query_string will be loaded in cgi processing [16:21:54]execute_cgi json_proto POST (null) [16:21:54]execute_cgi path=json_proto method=POST [16:21:54]POST find Content-Length [16:21:54]Host: 172.17.56.4:8080 [16:21:54]Content-Length: 791 [16:21:54]Content-Type: application/json [16:21:54] [16:21:54]POST finish read [16:21:54]Found Content-Length = 791 [16:21:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459125", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 10.000, "sum" : 652.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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 652.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:21:54]execute_script... [16: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)459125", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 10.000, "sum" : 652.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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 652.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:21:54]POST & json_proto [16:21:54]process_json_proto [16:21:54]json parsed OK: [16:21:54]protocol is kg_v1.0 [16:21:54]action value=close_receipt [16:21:54]process_action close_receipt [16:21:54]cmd_close_receipt [16:21:54]MH_GetDate [16:21:54]Write to MH i2c: F0 00 00 ED 04 E0 [16:21:54]Write i2c OK [16:21:54]MH_I2C_Read... [16:21:54]Read from MH i2c: F0 [16:21:54]MH_I2C_Read... [16:21:54]Read from MH i2c: F0 09 00 [16:21:54]MH_I2C_Read... [16:21:54]Read from MH i2c: F0 09 00 ED 04 00 23 FB 93 66 C9 DC B2 64 BB [16:21:54]GetLastDocTimeStamp 1720974069 [16:21:54]current date 1720974115 [16:21:54]FM_GetShiftState [16:21:54]SAM_PROTO_GetShiftState [16:21:54]wFMCommunicate request_size=4 [16:21:54]MH_SAM_APDU [16:21:54]CAPDU: 80 13 01 00 [16:21:54]Write to MH i2c: E2 08 00 EE 04 80 13 01 00 00 00 00 00 6F [16:21:54]Write i2c OK [16:21:54]MH_I2C_Read... [16:21:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:54]Read from MH i2c: E2 [16:21:54]MH_I2C_Read... [16:21:54]Read from MH i2c: E2 0E 00 [16:21:54]MH_I2C_Read... [16:21:54]Read from MH i2c: E2 0E 00 EE 04 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 EF [16:21:54]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [16:21:54]wFMCommunicate OK [16:21:54]SAM_PROTO_GetShiftState done [16:21:54]FM_GetShiftState done [16:21:54]opened in 1720917342 [16:21:54]opened+sec_in_day 1721003742 [16:21:54]quantity*price = 65220 [16:21:54]sum+1 = 65221 [16:21:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 652.20 НСП 1% : 5.77 НДС 12% : 69.26 Наличными: 0.00 Безнал.: 652.20 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 222 14.07.2024 16:21 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 165024 ФПД: 139153203907107 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T162155&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165024&fm=139153203907107&tin=02508201610067®Number=0000000000090829&sum=65220 [16:21:55]StoreToDocumentArchive [16:21:55]shift 447 fd 165024 [16:21:55]save to /storage/0447/doc_00165024 [16:21:55]save last doc name /storage/0447/doc_00165024 to /storage/kkm_last_doc_name [16:21:55]save OK [16:21:55]Clear old archive folders... [16:21:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:21:55]tlvbuf is 014993C0 [16:21:55]SAM_PROTO_ClearQueue [16:21:55]wFMCommunicate request_size=4 [16:21:55]MH_SAM_APDU [16:21:55]CAPDU: 80 09 00 00 [16:21:55]Write to MH i2c: E2 08 00 FB 04 80 09 00 00 00 00 00 00 71 [16:21:55]Write i2c OK [16:21:55]MH_I2C_Read... [16:21:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:21:56]Read from MH i2c: E2 [16:21:56]MH_I2C_Read... [16:21:56]Read from MH i2c: E2 03 00 [16:21:56]MH_I2C_Read... [16:21:56]Read from MH i2c: E2 03 00 FB 04 00 90 00 73 [16:21:56]RAPDU: 90 00 [16:21:56]wFMCommunicate OK [16:21:56]SAM_PROTO_ClearQueue done [16:21:56]KKMCreateOFDPacket [16:21:56]OFDProtocolAddRootSTLVToBuf [16:21:56]FM_MakeSignedData [16:21:56]FM_MakeSignedData [16:21:56]SAM_PROTO_SignData [16:21:56]wFMCommunicate request_size=4 [16:21:56]MH_SAM_APDU [16:21:56]CAPDU: 80 0D 01 02 [16:21:56]Write to MH i2c: E2 08 00 FC 04 80 0D 01 02 00 00 00 00 79 [16:21:56]Write i2c OK [16:21:56]MH_I2C_Read... [16:21:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:21:56]Read from MH i2c: E2 [16:21:56]MH_I2C_Read... [16:21:56]Read from MH i2c: E2 03 00 [16:21:56]MH_I2C_Read... [16:21:56]Read from MH i2c: E2 03 00 FC 04 00 90 00 74 [16:21:56]RAPDU: 90 00 [16:21:56]wFMCommunicate OK [16:21:56]wFMCommunicate request_size=255 [16:21:56]MH_SAM_APDU [16:21:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 C4 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 23 FB 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A0 84 02 00 35 04 06 00 7E [16:21:56]Write to MH i2c: E2 02 01 FD 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 C4 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 23 FB 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A0 84 02 00 35 04 06 00 7E 00 00 5E [16:21:56]Write i2c OK [16:21:56]MH_I2C_Read... [16:21:56]OFD Sender: No OFD packet to send [16:21:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:56]Read from MH i2c: E2 [16:21:56]MH_I2C_Read... [16:21:56]Read from MH i2c: E2 03 00 [16:21:56]MH_I2C_Read... [16:21:56]Read from MH i2c: E2 03 00 FD 04 00 90 00 75 [16:21:56]RAPDU: 90 00 [16:21:56]wFMCommunicate OK [16:21:56]wFMCommunicate request_size=10 [16:21:56]MH_SAM_APDU [16:21:56]CAPDU: 80 0D 02 02 05 8F 21 49 CA 23 [16:21:56]Write to MH i2c: E2 0D 00 FE 04 80 0D 02 02 05 00 8F 21 49 CA 23 00 00 6C [16:21:56]Write i2c OK [16:21:56]MH_I2C_Read... [16:21:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:56]Read from MH i2c: E2 [16:21:56]MH_I2C_Read... [16:21:56]Read from MH i2c: E2 03 00 [16:21:56]MH_I2C_Read... [16:21:56]Read from MH i2c: E2 03 00 FE 04 00 90 00 76 [16:21:56]RAPDU: 90 00 [16:21:56]wFMCommunicate OK [16:21:56]wFMCommunicate request_size=4 [16:21:56]MH_SAM_APDU [16:21:56]CAPDU: 80 0D 03 02 [16:21:56]Write to MH i2c: E2 08 00 FF 04 80 0D 03 02 00 00 00 00 7E [16:21:56]Write i2c OK [16:21:56]MH_I2C_Read... [16:21:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:21:56]Read from MH i2c: E2 [16:21:56]MH_I2C_Read... [16:21:56]Read from MH i2c: E2 0B 00 [16:21:56]MH_I2C_Read... [16:21:56]Read from MH i2c: E2 0B 00 FF 04 00 4C E5 D1 FD 38 F3 6E A8 90 00 BF [16:21:56]RAPDU: 4C E5 D1 FD 38 F3 6E A8 90 00 [16:21:56]wFMCommunicate OK [16:21:56]SAM_PROTO_SignData done [16:21:56]FM_MakeSignedData done [16:21:56]CreateOFDProtocolMessage [16:21:56]wFMCommunicate request_size=4 [16:21:56]MH_SAM_APDU [16:21:56]CAPDU: 80 11 00 00 [16:21:56]Write to MH i2c: E2 08 00 00 05 80 11 00 00 00 00 00 00 7F [16:21:56]Write i2c OK [16:21:56]MH_I2C_Read... [16:21:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:56]Read from MH i2c: E2 [16:21:56]MH_I2C_Read... [16:21:56]Read from MH i2c: E2 17 00 [16:21:56]MH_I2C_Read... [16:21:56]Read from MH i2c: E2 17 00 00 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D5 [16:21:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:21:56]wFMCommunicate OK [16:21:56]CreateOFDProtocolMessage done [16:21:56]OFDSenderStorePacket 165024 [16:21:56]StoreOFDPacket docnum=165024 [16:21:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 DD E8 07 01 FC 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 C4 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 23 FB 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A0 84 02 00 35 04 06 00 7E 8F 21 49 CA 23 4C E5 D1 FD 38 F3 6E A8 [16:21:56]CheckFolder [16:21:56]dirname=/storage/ofd_packets [16:21:56]CheckFolder done [16:21:56]ProducePacketName [16:21:56]name=ofd_packets/00165024 [16:21:56]NVStorageSaveData ofd_packets/00165024 [16:21:56]File name is /storage/ofd_packets/00165024 [16:21:56]Write 301 bytes [16:21:56]NVStorageSaveData done [16:21:56]OFDSenderStorePacket done [16:21:56]KKMCreateOFDPacket done [16:21:56]NVStorageSaveData kkm_last_timestamp [16:21:56]File name is /storage/kkm_last_timestamp [16:21:56]Write 4 bytes [16:21:56]NVStorageSaveData done [16:21:56]ExternCall_PrintAddStr [16:21:56]wPrintStart [16:21:56]Write to MH i2c: 01 00 00 01 05 06 [16:21:56]Write i2c OK [16:21:56]MH_I2C_Read... [16:21:56]Read from MH i2c: 01 [16:21:56]MH_I2C_Read... [16:21:56]Read from MH i2c: 01 07 00 [16:21:56]MH_I2C_Read... [16:21:56]Read from MH i2c: 01 07 00 01 05 00 00 00 00 00 FF 0F 1B [16:21:56]RasterBufferAndPrint [16:21:56]line Счет N : (1)459125 [16:21:56]line ИНН: 02508201610067 [16:21:56]line Контрольно-Кассовый Чек [16:21:56]line ПРОДАЖА [16:21:56]line ТРК (МРК, ГНК) : 22 [16:21:56]line Товар: 2710124130 [16:21:56]line Аи-92-К-5 [16:21:56]line 10.000 * 65.22 [16:21:56]line = 652.20 [16:21:56]line НДС 12% НСП 1% [16:21:56]line > о реализуемом товаре [16:21:56]line ИТОГО: 652.20 [16:21:56]line НСП 1% : 5.77 [16:21:56]line НДС 12% : 69.26 [16:21:56]line Наличными: 0.00 [16:21:56]line Безнал.: 652.20 [16:21:56]line Место: АЗС № 72 "Партнер Нефть" [16:21:56]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:21:56]line СНО: Общий режим [16:21:56]line Чек 222 14.07.2024 16:21 [16:21:56]line Смена: 447 ФФД: 1.0 [16:21:56]line ЗНМ: 0300000160 [16:21:56]line РНМ: 0000000000090829 [16:21:56]line Версия ККМ: 001 [16:21:56]line Платежная система: KICB Банк [16:21:56]line ФМ: 0000000000874718 [16:21:56]line ФД: 165024 [16:21:56]line ФПД: 139153203907107 [16:21:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T162155&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165024&fm=139153203907107&tin=02508201610067®Number=0000000000090829&sum=65220 [16:21:56]written 0, free lines is 4095 [16:21:56]OFD Sender: Processing packet 165024 [packets to send 105, broken 104] [16:21:56]ProducePacketName [16:21:56]name=ofd_packets/00165024 [16:21:56]OFD Sender: To server: pG, [16:21:56]CommunicateWithHost lk.salyk.kg:30040 [16:21:56]ConnectInit lk.salyk.kg [16:21:56]Connected sock=10 [16:21:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 DD E8 07 01 FC 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 C4 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 23 FB 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A0 84 02 00 35 04 06 00 7E 8F 21 49 CA 23 4C E5 D1 FD 38 F3 6E A8 [16:21:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 E4 5C 47 00 B2 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A0 84 02 00 F4 03 04 00 B1 A1 93 66 B6 04 01 00 00 79 39 9E 6C B9 E0 9C A6 [16:21:57]CommunicateWithHost err = 0 [16:21:57]CheckOFDResponse [16:21:57]1017 (14) - 77093643461234 [16:21:57]1041 (16) - 0000000000874718 [16:21:57]1040 (4) - 165024 [16:21:57]1012 (4) - 14.07.2024 10:00 [16:21:57]1206 (1) - 0 [16:21:57]OFD Sender: Remove packet 165024 [16:21:57]ProducePacketName [16:21:57]name=ofd_packets/00165024 [16:21:57]NVStorageDeleteData [16:21:57]Write to MH i2c: 01 00 00 2A 05 2F [16:21:57]Write i2c OK [16:21:57]MH_I2C_Read... [16:21:57]Read from MH i2c: 01 [16:21:57]MH_I2C_Read... [16:21:57]Read from MH i2c: 01 07 00 [16:21:57]MH_I2C_Read... [16:21:57]Read from MH i2c: 01 07 00 2A 05 00 00 00 00 00 06 0D 49 [16:21:57]RasterBufferAndPrint [16:21:57]line [16:21:57]line [16:21:57]line [16:21:57]line [16:21:57]line [16:21:57]written 0, free lines is 3341 [16:21:57]MH_Cut [16:21:57]Write to MH i2c: D1 01 00 31 05 01 08 [16:21:57]Write i2c OK [16:21:57]MH_I2C_Read... [16:21:57]Read from MH i2c: D1 [16:21:57]MH_I2C_Read... [16:21:57]Read from MH i2c: D1 01 00 [16:21:57]MH_I2C_Read... [16:21:57]Read from MH i2c: D1 01 00 31 05 00 07 [16:21:57]Write to MH i2c: 01 00 00 32 05 37 [16:21:57]Write i2c OK [16:21:57]MH_I2C_Read... [16:21:57]OFD Sender: No OFD packet to send [16:21:57]*** Cut start [16:21:57]*** Partial cut [16:21:57]*** CUTSNS_PIN = 1 [16:21:57]*** CUTSNS_PIN = 0 [16:21:58]*** Brake cut motor [16:21:58]Read from MH i2c: 01 [16:21:58]MH_I2C_Read... [16:21:58]*** Stop cut motor [16:21:58]*** Cut end [16:21:58]Read from MH i2c: 01 07 00 [16:21:58]MH_I2C_Read... [16:21:58]Read from MH i2c: 01 07 00 32 05 00 00 00 00 00 FF 0F 4C [16:21:58]process_action close_receipt done [16:21:58]requested_data is exist [16:21:58]produce_requested_data [16:21:58]requested_item fm.sn is exist - process it [16:21:58]wFMCommunicate request_size=4 [16:21:58]MH_SAM_APDU [16:21:58]CAPDU: 80 11 00 00 [16:21:58]Write to MH i2c: E2 08 00 33 05 80 11 00 00 00 00 00 00 B2 [16:21:58]Write i2c OK [16:21:58]MH_I2C_Read... [16:21:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:58]Read from MH i2c: E2 [16:21:58]MH_I2C_Read... [16:21:58]Read from MH i2c: E2 17 00 [16:21:58]MH_I2C_Read... [16:21:58]Read from MH i2c: E2 17 00 33 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 08 [16:21:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:21:58]wFMCommunicate OK [16:21:58]requested_item fd.num is exist - process it [16:21:58]SAM_PROTO_GetFieldsCounters [16:21:58]wFMCommunicate request_size=4 [16:21:58]MH_SAM_APDU [16:21:58]CAPDU: 80 13 00 00 [16:21:58]Write to MH i2c: E2 08 00 34 05 80 13 00 00 00 00 00 00 B5 [16:21:58]Write i2c OK [16:21:58]MH_I2C_Read... [16:21:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:21:58]Read from MH i2c: E2 [16:21:58]MH_I2C_Read... [16:21:58]Read from MH i2c: E2 62 00 [16:21:58]MH_I2C_Read... [16:21:58]Read from MH i2c: E2 62 00 34 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A0 84 02 00 0E 04 04 00 BF 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 5C [16:21:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A0 84 02 00 0E 04 04 00 BF 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 [16:21:58]wFMCommunicate OK [16:21:58]SAM_PROTO_GetFieldsCounters done [16:21:58]requested_item shift.num is exist - process it [16:21:58]requested_item shift.opened is exist - process it [16:21:58]req_shift_opened [16:21:58]FM_GetShiftState [16:21:58]SAM_PROTO_GetShiftState [16:21:58]wFMCommunicate request_size=4 [16:21:58]MH_SAM_APDU [16:21:58]CAPDU: 80 13 01 00 [16:21:58]Write to MH i2c: E2 08 00 35 05 80 13 01 00 00 00 00 00 B7 [16:21:58]Write i2c OK [16:21:58]MH_I2C_Read... [16:21:58]Read from MH i2c: E2 [16:21:58]MH_I2C_Read... [16:21:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:58]Read from MH i2c: E2 0E 00 [16:21:58]MH_I2C_Read... [16:21:58]Read from MH i2c: E2 0E 00 35 05 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 37 [16:21:58]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [16:21:58]wFMCommunicate OK [16:21:58]SAM_PROTO_GetShiftState done [16:21:58]FM_GetShiftState done [16:21:58]req_shift_opened done [16:21:58]requested_item shift.open_date is exist - process it [16:21:58]req_shift_open_date [16:21:58]req_shift_open_date done [16:21:58]produce_requested_data done [16:21:58]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165024,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [16:21:58]process_action_free close_receipt [16:21:58]json_value_free [16:21:58]json_value_free done [16:21:58]process_json_proto returns [16:21:58]Send response to host [16:21:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165024,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [16:21:58]free response buf [16:21:58]execute_script done [16:21:58]execute_script returns [16:21:58]free content buf [16:21:58]Sock 8.Close socket [16:21:58]Sock 8.Thread stoped [16:22:02]OFD Sender: No OFD packet to send [16:22:07]OFD Sender: No OFD packet to send [16:22:12]OFD Sender: No OFD packet to send [16:22:17]OFD Sender: No OFD packet to send [16:22:22]OFD Sender: No OFD packet to send [16:22:27]OFD Sender: No OFD packet to send [16:22:32]OFD Sender: No OFD packet to send [16:22:37]OFD Sender: No OFD packet to send [16:22:42]OFD Sender: No OFD packet to send [16:22:47]OFD Sender: No OFD packet to send [16:22:52]OFD Sender: No OFD packet to send [16:22:57]OFD Sender: No OFD packet to send [16:23:02]OFD Sender: No OFD packet to send [16:23:07]OFD Sender: No OFD packet to send [16:23:12]OFD Sender: No OFD packet to send [16:23:17]OFD Sender: No OFD packet to send [16:23:22]OFD Sender: No OFD packet to send [16:23:27]OFD Sender: No OFD packet to send [16:23:32]OFD Sender: No OFD packet to send [16:23:37]OFD Sender: No OFD packet to send [16:23:42]OFD Sender: No OFD packet to send [16:23:47]OFD Sender: No OFD packet to send [16:23:52]OFD Sender: No OFD packet to send [16:23:57]OFD Sender: No OFD packet to send [16:24:02]OFD Sender: No OFD packet to send [16:24:07]OFD Sender: No OFD packet to send [16:24:12]OFD Sender: No OFD packet to send [16:24:17]OFD Sender: No OFD packet to send [16:24:22]OFD Sender: No OFD packet to send [16:24:27]OFD Sender: No OFD packet to send [16:24:32]OFD Sender: No OFD packet to send [16:24:37]OFD Sender: No OFD packet to send [16:24:42]OFD Sender: No OFD packet to send [16:24:47]OFD Sender: No OFD packet to send [16:24:52]OFD Sender: No OFD packet to send [16:24:55]accept exits with 9 [16:24:55]New connection [16:24:55]New thread 3066674532 created [16:24:55]Thread 3066531172 joined [16:24:55]Waiting for new connection... [16:24:55] Sock 9.Parse request [16:24:55]Sock 9.Check first char [16:24:55]Sock 9.First char is OK [16:24:55]request: POST /json_proto HTTP/1.0 [16:24:55]Method: POST [16:24:55]URL: /json_proto [16:24:55]Method is POST - this is cgi request [16:24:55]url: /json_proto [16:24:55]query_string will be loaded in cgi processing [16:24:55]execute_cgi json_proto POST (null) [16:24:55]execute_cgi path=json_proto method=POST [16:24:55]POST find Content-Length [16:24:55]Host: 172.17.56.4:8080 [16:24:55]Content-Length: 677 [16:24:55]Content-Type: application/json [16:24:55] [16:24:55]POST finish read [16:24:55]Found Content-Length = 677 [16:24:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459128", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:24:55]execute_script... [16:24: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)459128", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:24:55]POST & json_proto [16:24:55]process_json_proto [16:24:55]json parsed OK: [16:24:55]protocol is kg_v1.0 [16:24:55]action value=close_receipt [16:24:55]process_action close_receipt [16:24:55]cmd_close_receipt [16:24:55]MH_GetDate [16:24:55]Write to MH i2c: F0 00 00 36 05 2A [16:24:55]Write i2c OK [16:24:55]MH_I2C_Read... [16:24:55]Read from MH i2c: F0 [16:24:55]MH_I2C_Read... [16:24:55]Read from MH i2c: F0 09 00 [16:24:55]MH_I2C_Read... [16:24:55]Read from MH i2c: F0 09 00 36 05 00 D8 FB 93 66 C9 DC B2 64 BA [16:24:55]GetLastDocTimeStamp 1720974115 [16:24:55]current date 1720974296 [16:24:55]FM_GetShiftState [16:24:55]SAM_PROTO_GetShiftState [16:24:55]wFMCommunicate request_size=4 [16:24:55]MH_SAM_APDU [16:24:55]CAPDU: 80 13 01 00 [16:24:55]Write to MH i2c: E2 08 00 37 05 80 13 01 00 00 00 00 00 B9 [16:24:55]Write i2c OK [16:24:55]MH_I2C_Read... [16:24:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:55]Read from MH i2c: E2 [16:24:55]MH_I2C_Read... [16:24:55]Read from MH i2c: E2 0E 00 [16:24:55]MH_I2C_Read... [16:24:55]Read from MH i2c: E2 0E 00 37 05 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 39 [16:24:55]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [16:24:55]wFMCommunicate OK [16:24:55]SAM_PROTO_GetShiftState done [16:24:55]FM_GetShiftState done [16:24:55]opened in 1720917342 [16:24:55]opened+sec_in_day 1721003742 [16:24:55]quantity*price = 50008 [16:24:55]sum+1 = 50009 [16:24:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 223 14.07.2024 16:24 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165025 ФПД: 221757704461246 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T162456&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165025&fm=221757704461246&tin=02508201610067®Number=0000000000090829&sum=50000 [16:24:56]StoreToDocumentArchive [16:24:56]shift 447 fd 165025 [16:24:56]save to /storage/0447/doc_00165025 [16:24:56]save last doc name /storage/0447/doc_00165025 to /storage/kkm_last_doc_name [16:24:56]save OK [16:24:56]Clear old archive folders... [16:24:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:24:56]tlvbuf is 01484FD0 [16:24:56]SAM_PROTO_ClearQueue [16:24:56]wFMCommunicate request_size=4 [16:24:56]MH_SAM_APDU [16:24:56]CAPDU: 80 09 00 00 [16:24:56]Write to MH i2c: E2 08 00 44 05 80 09 00 00 00 00 00 00 BB [16:24:56]Write i2c OK [16:24:56]MH_I2C_Read... [16:24:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:24:56]Read from MH i2c: E2 [16:24:56]MH_I2C_Read... [16:24:56]Read from MH i2c: E2 03 00 [16:24:56]MH_I2C_Read... [16:24:56]Read from MH i2c: E2 03 00 44 05 00 90 00 BD [16:24:56]RAPDU: 90 00 [16:24:56]wFMCommunicate OK [16:24:56]SAM_PROTO_ClearQueue done [16:24:56]KKMCreateOFDPacket [16:24:56]OFDProtocolAddRootSTLVToBuf [16:24:56]FM_MakeSignedData [16:24:56]FM_MakeSignedData [16:24:56]SAM_PROTO_SignData [16:24:56]wFMCommunicate request_size=4 [16:24:56]MH_SAM_APDU [16:24:56]CAPDU: 80 0D 01 02 [16:24:56]Write to MH i2c: E2 08 00 45 05 80 0D 01 02 00 00 00 00 C3 [16:24:56]Write i2c OK [16:24:56]MH_I2C_Read... [16:24:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:24:56]Read from MH i2c: E2 [16:24:56]MH_I2C_Read... [16:24:56]Read from MH i2c: E2 03 00 [16:24:56]MH_I2C_Read... [16:24:56]Read from MH i2c: E2 03 00 45 05 00 90 00 BE [16:24:56]RAPDU: 90 00 [16:24:56]wFMCommunicate OK [16:24:56]wFMCommunicate request_size=255 [16:24:56]MH_SAM_APDU [16:24:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 DF 00 00 00 F4 03 04 00 D8 FB 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A1 84 02 00 35 04 06 00 C9 [16:24:56]Write to MH i2c: E2 02 01 46 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 DF 00 00 00 F4 03 04 00 D8 FB 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A1 84 02 00 35 04 06 00 C9 00 00 97 [16:24:56]Write i2c OK [16:24:56]MH_I2C_Read... [16:24:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:24:56]Read from MH i2c: E2 [16:24:56]MH_I2C_Read... [16:24:56]Read from MH i2c: E2 03 00 [16:24:56]MH_I2C_Read... [16:24:56]Read from MH i2c: E2 03 00 46 05 00 90 00 BF [16:24:56]RAPDU: 90 00 [16:24:56]wFMCommunicate OK [16:24:56]wFMCommunicate request_size=10 [16:24:56]MH_SAM_APDU [16:24:56]CAPDU: 80 0D 02 02 05 AF FD 33 5B BE [16:24:56]Write to MH i2c: E2 0D 00 47 05 80 0D 02 02 05 00 AF FD 33 5B BE 00 00 C8 [16:24:56]Write i2c OK [16:24:56]MH_I2C_Read... [16:24:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:24:56]Read from MH i2c: E2 [16:24:56]MH_I2C_Read... [16:24:56]Read from MH i2c: E2 03 00 [16:24:56]MH_I2C_Read... [16:24:56]Read from MH i2c: E2 03 00 47 05 00 90 00 C0 [16:24:56]RAPDU: 90 00 [16:24:56]wFMCommunicate OK [16:24:56]wFMCommunicate request_size=4 [16:24:56]MH_SAM_APDU [16:24:56]CAPDU: 80 0D 03 02 [16:24:56]Write to MH i2c: E2 08 00 48 05 80 0D 03 02 00 00 00 00 C8 [16:24:56]Write i2c OK [16:24:56]MH_I2C_Read... [16:24:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:24:57]Read from MH i2c: E2 [16:24:57]MH_I2C_Read... [16:24:57]Read from MH i2c: E2 0B 00 [16:24:57]MH_I2C_Read... [16:24:57]Read from MH i2c: E2 0B 00 48 05 00 40 EF 9B 4A 68 58 9D B6 90 00 F0 [16:24:57]RAPDU: 40 EF 9B 4A 68 58 9D B6 90 00 [16:24:57]wFMCommunicate OK [16:24:57]SAM_PROTO_SignData done [16:24:57]FM_MakeSignedData done [16:24:57]CreateOFDProtocolMessage [16:24:57]wFMCommunicate request_size=4 [16:24:57]MH_SAM_APDU [16:24:57]CAPDU: 80 11 00 00 [16:24:57]Write to MH i2c: E2 08 00 49 05 80 11 00 00 00 00 00 00 C8 [16:24:57]Write i2c OK [16:24:57]MH_I2C_Read... [16:24:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:57]Read from MH i2c: E2 [16:24:57]MH_I2C_Read... [16:24:57]Read from MH i2c: E2 17 00 [16:24:57]MH_I2C_Read... [16:24:57]Read from MH i2c: E2 17 00 49 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 1E [16:24:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:24:57]wFMCommunicate OK [16:24:57]CreateOFDProtocolMessage done [16:24:57]OFDSenderStorePacket 165025 [16:24:57]StoreOFDPacket docnum=165025 [16:24:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 75 31 07 01 5A 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 DF 00 00 00 F4 03 04 00 D8 FB 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A1 84 02 00 35 04 06 00 C9 AF FD 33 5B BE 40 EF 9B 4A 68 58 9D B6 [16:24:57]CheckFolder [16:24:57]dirname=/storage/ofd_packets [16:24:57]CheckFolder done [16:24:57]ProducePacketName [16:24:57]name=ofd_packets/00165025 [16:24:57]NVStorageSaveData ofd_packets/00165025 [16:24:57]File name is /storage/ofd_packets/00165025 [16:24:57]Write 301 bytes [16:24:57]NVStorageSaveData done [16:24:57]OFDSenderStorePacket done [16:24:57]KKMCreateOFDPacket done [16:24:57]NVStorageSaveData kkm_last_timestamp [16:24:57]File name is /storage/kkm_last_timestamp [16:24:57]Write 4 bytes [16:24:57]NVStorageSaveData done [16:24:57]ExternCall_PrintAddStr [16:24:57]wPrintStart [16:24:57]Write to MH i2c: 01 00 00 4A 05 4F [16:24:57]Write i2c OK [16:24:57]MH_I2C_Read... [16:24:57]Read from MH i2c: 01 [16:24:57]MH_I2C_Read... [16:24:57]Read from MH i2c: 01 07 00 [16:24:57]MH_I2C_Read... [16:24:57]Read from MH i2c: 01 07 00 4A 05 00 00 00 00 00 FF 0F 64 [16:24:57]RasterBufferAndPrint [16:24:57]line Счет N : (1)459128 [16:24:57]line ИНН: 02508201610067 [16:24:57]line Контрольно-Кассовый Чек [16:24:57]line ПРОДАЖА [16:24:57]line ТРК (МРК, ГНК) : 22 [16:24:57]line Товар: 2710124130 [16:24:57]line Аи-92-К-5 [16:24:57]line 7.600 * 65.80 [16:24:57]line = 500.08 [16:24:57]line НДС 12% НСП 1% [16:24:57]line > о реализуемом товаре [16:24:57]line ОКРУГЛЕНИЕ: -0.08 [16:24:57]line ИТОГО: 500.00 [16:24:57]line Внесено: 500.00 [16:24:57]line СДАЧА: 0.00 [16:24:57]line НСП 1% : 4.42 [16:24:57]line НДС 12% : 53.11 [16:24:57]line Наличными: 500.00 [16:24:57]line Безнал.: 0.00 [16:24:57]line Место: АЗС № 72 "Партнер Нефть" [16:24:57]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:24:57]line СНО: Общий режим [16:24:57]line Чек 223 14.07.2024 16:24 [16:24:57]line Смена: 447 ФФД: 1.0 [16:24:57]line ЗНМ: 0300000160 [16:24:57]line РНМ: 0000000000090829 [16:24:57]line Версия ККМ: 001 [16:24:57]line ФМ: 0000000000874718 [16:24:57]line ФД: 165025 [16:24:57]line ФПД: 221757704461246 [16:24:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T162456&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165025&fm=221757704461246&tin=02508201610067®Number=0000000000090829&sum=50000 [16:24:57]written 0, free lines is 4095 [16:24:57]OFD Sender: Processing packet 165025 [packets to send 105, broken 104] [16:24:57]ProducePacketName [16:24:57]name=ofd_packets/00165025 [16:24:57]OFD Sender: To server: pG, [16:24:57]CommunicateWithHost lk.salyk.kg:30040 [16:24:57]ConnectInit lk.salyk.kg [16:24:57]Connected sock=10 [16:24:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 75 31 07 01 5A 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 DF 00 00 00 F4 03 04 00 D8 FB 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A1 84 02 00 35 04 06 00 C9 AF FD 33 5B BE 40 EF 9B 4A 68 58 9D B6 [16:24:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 44 41 47 00 3B 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 38 37 34 37 31 38 10 04 04 00 A1 84 02 00 F4 03 04 00 65 A2 93 66 B6 04 01 00 00 1E 6C A3 D1 30 C2 03 3D [16:24:57]CommunicateWithHost err = 0 [16:24:57]CheckOFDResponse [16:24:57]1017 (14) - 77093643461234 [16:24:57]1041 (16) - 0000000000874718 [16:24:57]1040 (4) - 165025 [16:24:57]1012 (4) - 14.07.2024 10:03 [16:24:57]1206 (1) - 0 [16:24:57]OFD Sender: Remove packet 165025 [16:24:57]ProducePacketName [16:24:57]name=ofd_packets/00165025 [16:24:57]NVStorageDeleteData [16:24:57]Write to MH i2c: 01 00 00 74 05 79 [16:24:57]Write i2c OK [16:24:57]MH_I2C_Read... [16:24:57]Read from MH i2c: 01 [16:24:57]MH_I2C_Read... [16:24:57]Read from MH i2c: 01 07 00 [16:24:57]MH_I2C_Read... [16:24:57]Read from MH i2c: 01 07 00 74 05 00 00 00 00 00 F1 0C 7D [16:24:57]RasterBufferAndPrint [16:24:57]line [16:24:57]line [16:24:57]line [16:24:57]line [16:24:57]line [16:24:57]written 0, free lines is 3319 [16:24:57]MH_Cut [16:24:57]Write to MH i2c: D1 01 00 7B 05 01 52 [16:24:57]Write i2c OK [16:24:57]MH_I2C_Read... [16:24:57]Read from MH i2c: D1 [16:24:57]MH_I2C_Read... [16:24:57]Read from MH i2c: D1 01 00 [16:24:57]MH_I2C_Read... [16:24:57]Read from MH i2c: D1 01 00 7B 05 00 51 [16:24:57]Write to MH i2c: 01 00 00 7C 05 81 [16:24:57]Write i2c OK [16:24:57]MH_I2C_Read... [16:24:58]OFD Sender: No OFD packet to send [16:24:58]*** Cut start [16:24:58]*** Partial cut [16:24:58]*** CUTSNS_PIN = 1 [16:24:58]*** CUTSNS_PIN = 0 [16:24:58]*** Brake cut motor [16:24:59]Read from MH i2c: 01 [16:24:59]MH_I2C_Read... [16:24:59]*** Stop cut motor [16:24:59]*** Cut end [16:24:59]Read from MH i2c: 01 07 00 [16:24:59]MH_I2C_Read... [16:24:59]Read from MH i2c: 01 07 00 7C 05 00 00 00 00 00 FF 0F 96 [16:24:59]process_action close_receipt done [16:24:59]requested_data is exist [16:24:59]produce_requested_data [16:24:59]requested_item fm.sn is exist - process it [16:24:59]wFMCommunicate request_size=4 [16:24:59]MH_SAM_APDU [16:24:59]CAPDU: 80 11 00 00 [16:24:59]Write to MH i2c: E2 08 00 7D 05 80 11 00 00 00 00 00 00 FC [16:24:59]Write i2c OK [16:24:59]MH_I2C_Read... [16:24:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:59]Read from MH i2c: E2 [16:24:59]MH_I2C_Read... [16:24:59]Read from MH i2c: E2 17 00 [16:24:59]MH_I2C_Read... [16:24:59]Read from MH i2c: E2 17 00 7D 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 52 [16:24:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:24:59]wFMCommunicate OK [16:24:59]requested_item fd.num is exist - process it [16:24:59]SAM_PROTO_GetFieldsCounters [16:24:59]wFMCommunicate request_size=4 [16:24:59]MH_SAM_APDU [16:24:59]CAPDU: 80 13 00 00 [16:24:59]Write to MH i2c: E2 08 00 7E 05 80 13 00 00 00 00 00 00 FF [16:24:59]Write i2c OK [16:24:59]MH_I2C_Read... [16:24:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:24:59]Read from MH i2c: E2 [16:24:59]MH_I2C_Read... [16:24:59]Read from MH i2c: E2 62 00 [16:24:59]MH_I2C_Read... [16:24:59]Read from MH i2c: E2 62 00 7E 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A1 84 02 00 0E 04 04 00 BF 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 AA [16:24:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A1 84 02 00 0E 04 04 00 BF 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 [16:24:59]wFMCommunicate OK [16:24:59]SAM_PROTO_GetFieldsCounters done [16:24:59]requested_item shift.num is exist - process it [16:24:59]requested_item shift.opened is exist - process it [16:24:59]req_shift_opened [16:24:59]FM_GetShiftState [16:24:59]SAM_PROTO_GetShiftState [16:24:59]wFMCommunicate request_size=4 [16:24:59]MH_SAM_APDU [16:24:59]CAPDU: 80 13 01 00 [16:24:59]Write to MH i2c: E2 08 00 7F 05 80 13 01 00 00 00 00 00 01 [16:24:59]Write i2c OK [16:24:59]MH_I2C_Read... [16:24:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:59]Read from MH i2c: E2 [16:24:59]MH_I2C_Read... [16:24:59]Read from MH i2c: E2 0E 00 [16:24:59]MH_I2C_Read... [16:24:59]Read from MH i2c: E2 0E 00 7F 05 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 81 [16:24:59]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [16:24:59]wFMCommunicate OK [16:24:59]SAM_PROTO_GetShiftState done [16:24:59]FM_GetShiftState done [16:24:59]req_shift_opened done [16:24:59]requested_item shift.open_date is exist - process it [16:24:59]req_shift_open_date [16:24:59]req_shift_open_date done [16:24:59]produce_requested_data done [16:24:59]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165025,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [16:24:59]process_action_free close_receipt [16:24:59]json_value_free [16:24:59]json_value_free done [16:24:59]process_json_proto returns [16:24:59]Send response to host [16:24:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165025,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [16:24:59]free response buf [16:24:59]execute_script done [16:24:59]execute_script returns [16:24:59]free content buf [16:24:59]Sock 9.Close socket [16:24:59]Sock 9.Thread stoped [16:25:03]OFD Sender: No OFD packet to send [16:25:08]OFD Sender: No OFD packet to send [16:25:13]OFD Sender: No OFD packet to send [16:25:18]OFD Sender: No OFD packet to send [16:25:23]OFD Sender: No OFD packet to send [16:25:28]OFD Sender: No OFD packet to send [16:25:33]OFD Sender: No OFD packet to send [16:25:38]OFD Sender: No OFD packet to send [16:25:43]OFD Sender: No OFD packet to send [16:25:48]OFD Sender: No OFD packet to send [16:25:53]OFD Sender: No OFD packet to send [16:25:58]OFD Sender: No OFD packet to send [16:26:03]OFD Sender: No OFD packet to send [16:26:08]OFD Sender: No OFD packet to send [16:26:13]OFD Sender: No OFD packet to send [16:26:18]OFD Sender: No OFD packet to send [16:26:22]accept exits with 8 [16:26:22]New connection [16:26:22]New thread 3066531172 created [16:26:22]Thread 3066674532 joined [16:26:22]Waiting for new connection... [16:26:22] Sock 8.Parse request [16:26:22]Sock 8.Check first char [16:26:22]Sock 8.First char is OK [16:26:22]request: POST /json_proto HTTP/1.0 [16:26:22]Method: POST [16:26:22]URL: /json_proto [16:26:22]Method is POST - this is cgi request [16:26:22]url: /json_proto [16:26:22]query_string will be loaded in cgi processing [16:26:22]execute_cgi json_proto POST (null) [16:26:22]execute_cgi path=json_proto method=POST [16:26:22]POST find Content-Length [16:26:22]Host: 172.17.56.4:8080 [16:26:22]Content-Length: 680 [16:26:22]Content-Type: application/json [16:26:22] [16:26:22]POST finish read [16:26:22]Found Content-Length = 680 [16:26:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459126", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 100.220, "sum" : 7205.82, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 8000.00, "total" : 7205.00, "payments": [ { "type": 0, "sum" : 7205.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:26:22]execute_script... [16:26:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459126", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 100.220, "sum" : 7205.82, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 8000.00, "total" : 7205.00, "payments": [ { "type": 0, "sum" : 7205.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:26:22]POST & json_proto [16:26:22]process_json_proto [16:26:22]json parsed OK: [16:26:22]protocol is kg_v1.0 [16:26:22]action value=close_receipt [16:26:22]process_action close_receipt [16:26:22]cmd_close_receipt [16:26:22]MH_GetDate [16:26:22]Write to MH i2c: F0 00 00 80 05 74 [16:26:22]Write i2c OK [16:26:22]MH_I2C_Read... [16:26:22]Read from MH i2c: F0 [16:26:22]MH_I2C_Read... [16:26:22]Read from MH i2c: F0 09 00 [16:26:22]MH_I2C_Read... [16:26:22]Read from MH i2c: F0 09 00 80 05 00 2F FC 93 66 C9 DC B2 64 5C [16:26:22]GetLastDocTimeStamp 1720974296 [16:26:22]current date 1720974383 [16:26:22]FM_GetShiftState [16:26:22]SAM_PROTO_GetShiftState [16:26:22]wFMCommunicate request_size=4 [16:26:22]MH_SAM_APDU [16:26:22]CAPDU: 80 13 01 00 [16:26:22]Write to MH i2c: E2 08 00 81 05 80 13 01 00 00 00 00 00 03 [16:26:22]Write i2c OK [16:26:22]MH_I2C_Read... [16:26:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:26:23]Read from MH i2c: E2 [16:26:23]MH_I2C_Read... [16:26:23]Read from MH i2c: E2 0E 00 [16:26:23]MH_I2C_Read... [16:26:23]Read from MH i2c: E2 0E 00 81 05 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 83 [16:26:23]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [16:26:23]wFMCommunicate OK [16:26:23]SAM_PROTO_GetShiftState done [16:26:23]FM_GetShiftState done [16:26:23]opened in 1720917342 [16:26:23]opened+sec_in_day 1721003742 [16:26:23]quantity*price = 720581 [16:26:23]sum+1 = 720583 [16:26:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.82 ИТОГО: 7205.00 Внесено: 8000.00 СДАЧА: 795.00 НСП 1% : 63.77 НДС 12% : 765.22 Наличными: 7205.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 224 14.07.2024 16:26 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165026 ФПД: 101197122021752 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T162623&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165026&fm=101197122021752&tin=02508201610067®Number=0000000000090829&sum=720500 [16:26:24]StoreToDocumentArchive [16:26:24]shift 447 fd 165026 [16:26:24]save to /storage/0447/doc_00165026 [16:26:24]save last doc name /storage/0447/doc_00165026 to /storage/kkm_last_doc_name [16:26:24]save OK [16:26:24]Clear old archive folders... [16:26:24]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:26:24]tlvbuf is 01477460 [16:26:24]SAM_PROTO_ClearQueue [16:26:24]wFMCommunicate request_size=4 [16:26:24]MH_SAM_APDU [16:26:24]CAPDU: 80 09 00 00 [16:26:24]Write to MH i2c: E2 08 00 8E 05 80 09 00 00 00 00 00 00 05 [16:26:24]Write i2c OK [16:26:24]MH_I2C_Read... [16:26:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:26:24]Read from MH i2c: E2 [16:26:24]MH_I2C_Read... [16:26:24]Read from MH i2c: E2 03 00 [16:26:24]MH_I2C_Read... [16:26:24]Read from MH i2c: E2 03 00 8E 05 00 90 00 07 [16:26:24]RAPDU: 90 00 [16:26:24]wFMCommunicate OK [16:26:24]SAM_PROTO_ClearQueue done [16:26:24]KKMCreateOFDPacket [16:26:24]OFDProtocolAddRootSTLVToBuf [16:26:24]FM_MakeSignedData [16:26:24]FM_MakeSignedData [16:26:24]SAM_PROTO_SignData [16:26:24]wFMCommunicate request_size=4 [16:26:24]MH_SAM_APDU [16:26:24]CAPDU: 80 0D 01 02 [16:26:24]Write to MH i2c: E2 08 00 8F 05 80 0D 01 02 00 00 00 00 0D [16:26:24]Write i2c OK [16:26:24]MH_I2C_Read... [16:26:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:26:24]Read from MH i2c: E2 [16:26:24]MH_I2C_Read... [16:26:24]Read from MH i2c: E2 03 00 [16:26:24]MH_I2C_Read... [16:26:24]Read from MH i2c: E2 03 00 8F 05 00 90 00 08 [16:26:24]RAPDU: 90 00 [16:26:24]wFMCommunicate OK [16:26:24]wFMCommunicate request_size=255 [16:26:24]MH_SAM_APDU [16:26: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 7C 87 01 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 C6 FE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 FE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 2A 01 00 00 00 07 04 06 00 74 FE 0A 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 2F FC 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A2 84 02 00 35 04 06 00 5C 09 CA 82 [16:26:24]Write to MH i2c: E2 02 01 90 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 7C 87 01 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 C6 FE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 FE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 2A 01 00 00 00 07 04 06 00 74 FE 0A 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 2F FC 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A2 84 02 00 35 04 06 00 5C 09 CA 82 00 00 1F [16:26:24]Write i2c OK [16:26:24]MH_I2C_Read... [16:26:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:26:24]Read from MH i2c: E2 [16:26:24]MH_I2C_Read... [16:26:24]Read from MH i2c: E2 03 00 [16:26:24]MH_I2C_Read... [16:26:24]Read from MH i2c: E2 03 00 90 05 00 90 00 09 [16:26:24]RAPDU: 90 00 [16:26:24]wFMCommunicate OK [16:26:24]wFMCommunicate request_size=7 [16:26:24]MH_SAM_APDU [16:26:24]CAPDU: 80 0D 02 02 02 A9 78 [16:26:24]Write to MH i2c: E2 0A 00 91 05 80 0D 02 02 02 00 A9 78 00 00 35 [16:26:24]Write i2c OK [16:26:24]MH_I2C_Read... [16:26:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:26:24]Read from MH i2c: E2 [16:26:24]MH_I2C_Read... [16:26:24]Read from MH i2c: E2 03 00 [16:26:24]MH_I2C_Read... [16:26:24]Read from MH i2c: E2 03 00 91 05 00 90 00 0A [16:26:24]RAPDU: 90 00 [16:26:24]wFMCommunicate OK [16:26:24]wFMCommunicate request_size=4 [16:26:24]MH_SAM_APDU [16:26:24]CAPDU: 80 0D 03 02 [16:26:24]Write to MH i2c: E2 08 00 92 05 80 0D 03 02 00 00 00 00 12 [16:26:24]Write i2c OK [16:26:24]MH_I2C_Read... [16:26:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:26:24]Read from MH i2c: E2 [16:26:24]MH_I2C_Read... [16:26:24]Read from MH i2c: E2 0B 00 [16:26:24]MH_I2C_Read... [16:26:24]Read from MH i2c: E2 0B 00 92 05 00 51 B1 73 37 9D CD 18 7B 90 00 BC [16:26:24]RAPDU: 51 B1 73 37 9D CD 18 7B 90 00 [16:26:24]wFMCommunicate OK [16:26:24]SAM_PROTO_SignData done [16:26:24]FM_MakeSignedData done [16:26:24]CreateOFDProtocolMessage [16:26:24]wFMCommunicate request_size=4 [16:26:24]MH_SAM_APDU [16:26:24]CAPDU: 80 11 00 00 [16:26:24]Write to MH i2c: E2 08 00 93 05 80 11 00 00 00 00 00 00 12 [16:26:24]Write i2c OK [16:26:24]MH_I2C_Read... [16:26:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:26:24]Read from MH i2c: E2 [16:26:24]MH_I2C_Read... [16:26:24]Read from MH i2c: E2 17 00 [16:26:24]MH_I2C_Read... [16:26:24]Read from MH i2c: E2 17 00 93 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 68 [16:26:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:26:24]wFMCommunicate OK [16:26:24]CreateOFDProtocolMessage done [16:26:24]OFDSenderStorePacket 165026 [16:26:24]StoreOFDPacket docnum=165026 [16:26:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 A7 43 04 01 5B A8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 87 01 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 C6 FE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 FE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 2A 01 00 00 00 07 04 06 00 74 FE 0A 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 2F FC 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A2 84 02 00 35 04 06 00 5C 09 CA 82 A9 78 51 B1 73 37 9D CD 18 7B [16:26:24]CheckFolder [16:26:24]dirname=/storage/ofd_packets [16:26:24]CheckFolder done [16:26:24]ProducePacketName [16:26:24]name=ofd_packets/00165026 [16:26:24]NVStorageSaveData ofd_packets/00165026 [16:26:24]File name is /storage/ofd_packets/00165026 [16:26:24]Write 298 bytes [16:26:24]NVStorageSaveData done [16:26:24]OFDSenderStorePacket done [16:26:24]KKMCreateOFDPacket done [16:26:24]NVStorageSaveData kkm_last_timestamp [16:26:24]File name is /storage/kkm_last_timestamp [16:26:24]Write 4 bytes [16:26:24]NVStorageSaveData done [16:26:24]ExternCall_PrintAddStr [16:26:24]wPrintStart [16:26:24]Write to MH i2c: 01 00 00 94 05 99 [16:26:24]Write i2c OK [16:26:24]MH_I2C_Read... [16:26:24]Read from MH i2c: 01 [16:26:24]MH_I2C_Read... [16:26:24]Read from MH i2c: 01 07 00 [16:26:24]MH_I2C_Read... [16:26:24]Read from MH i2c: 01 07 00 94 05 00 00 00 00 00 FF 0F AE [16:26:24]RasterBufferAndPrint [16:26:24]line Счет N : (1)459126 [16:26:24]line ИНН: 02508201610067 [16:26:24]line Контрольно-Кассовый Чек [16:26:24]line ПРОДАЖА [16:26:24]line ТРК (МРК, ГНК) : 11 [16:26:24]line Товар: 2710194210 [16:26:24]line ДТ-К-5 [16:26:24]line 100.220 * 71.90 [16:26:24]line = 7205.82 [16:26:24]line НДС 12% НСП 1% [16:26:24]line > о реализуемом товаре [16:26:24]line ОКРУГЛЕНИЕ: -0.82 [16:26:24]line ИТОГО: 7205.00 [16:26:24]line Внесено: 8000.00 [16:26:24]line СДАЧА: 795.00 [16:26:24]line НСП 1% : 63.77 [16:26:24]line НДС 12% : 765.22 [16:26:24]line Наличными: 7205.00 [16:26:24]line Безнал.: 0.00 [16:26:24]line Место: АЗС № 72 "Партнер Нефть" [16:26:24]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:26:24]line СНО: Общий режим [16:26:24]line Чек 224 14.07.2024 16:26 [16:26:24]line Смена: 447 ФФД: 1.0 [16:26:24]line ЗНМ: 0300000160 [16:26:24]line РНМ: 0000000000090829 [16:26:24]line Версия ККМ: 001 [16:26:24]line ФМ: 0000000000874718 [16:26:24]line ФД: 165026 [16:26:24]line ФПД: 101197122021752 [16:26:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T162623&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165026&fm=101197122021752&tin=02508201610067®Number=0000000000090829&sum=720500 [16:26:24]OFD Sender: Processing packet 165026 [packets to send 105, broken 104] [16:26:24]ProducePacketName [16:26:24]name=ofd_packets/00165026 [16:26:24]OFD Sender: To server: pG, [16:26:24]CommunicateWithHost lk.salyk.kg:30040 [16:26:24]ConnectInit lk.salyk.kg [16:26:24]written 0, free lines is 4095 [16:26:25]Connected sock=10 [16:26:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 A7 43 04 01 5B A8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 87 01 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 C6 FE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 FE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 2A 01 00 00 00 07 04 06 00 74 FE 0A 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 2F FC 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A2 84 02 00 35 04 06 00 5C 09 CA 82 A9 78 51 B1 73 37 9D CD 18 7B [16:26:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 BE 28 47 00 5E 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 38 37 34 37 31 38 10 04 04 00 A2 84 02 00 F4 03 04 00 BD A2 93 66 B6 04 01 00 00 CF 53 C5 2F E1 AB 66 3E [16:26:25]CommunicateWithHost err = 0 [16:26:25]CheckOFDResponse [16:26:25]1017 (14) - 77093643461234 [16:26:25]1041 (16) - 0000000000874718 [16:26:25]1040 (4) - 165026 [16:26:25]1012 (4) - 14.07.2024 10:04 [16:26:25]1206 (1) - 0 [16:26:25]OFD Sender: Remove packet 165026 [16:26:25]ProducePacketName [16:26:25]name=ofd_packets/00165026 [16:26:25]NVStorageDeleteData [16:26:25]Write to MH i2c: 01 00 00 BE 05 C3 [16:26:25]Write i2c OK [16:26:25]MH_I2C_Read... [16:26:25]Read from MH i2c: 01 [16:26:25]MH_I2C_Read... [16:26:25]Read from MH i2c: 01 07 00 [16:26:25]MH_I2C_Read... [16:26:25]Read from MH i2c: 01 07 00 BE 05 00 00 00 00 00 F7 0C CD [16:26:25]RasterBufferAndPrint [16:26:25]line [16:26:25]line [16:26:25]line [16:26:25]line [16:26:25]line [16:26:25]written 0, free lines is 3326 [16:26:25]MH_Cut [16:26:25]Write to MH i2c: D1 01 00 C5 05 01 9C [16:26:25]Write i2c OK [16:26:25]MH_I2C_Read... [16:26:25]Read from MH i2c: D1 [16:26:25]MH_I2C_Read... [16:26:25]Read from MH i2c: D1 01 00 [16:26:25]MH_I2C_Read... [16:26:25]Read from MH i2c: D1 01 00 C5 05 00 9B [16:26:25]Write to MH i2c: 01 00 00 C6 05 CB [16:26:25]Write i2c OK [16:26:25]MH_I2C_Read... [16:26:25]OFD Sender: No OFD packet to send [16:26:26]*** Cut start [16:26:26]*** Partial cut [16:26:26]*** CUTSNS_PIN = 1 [16:26:26]*** CUTSNS_PIN = 0 [16:26:26]*** Brake cut motor [16:26:26]Read from MH i2c: 01 [16:26:26]MH_I2C_Read... [16:26:26]*** Stop cut motor [16:26:26]*** Cut end [16:26:26]Read from MH i2c: 01 07 00 [16:26:26]MH_I2C_Read... [16:26:26]Read from MH i2c: 01 07 00 C6 05 00 00 00 00 00 FF 0F E0 [16:26:26]process_action close_receipt done [16:26:26]requested_data is exist [16:26:26]produce_requested_data [16:26:26]requested_item fm.sn is exist - process it [16:26:26]wFMCommunicate request_size=4 [16:26:26]MH_SAM_APDU [16:26:26]CAPDU: 80 11 00 00 [16:26:26]Write to MH i2c: E2 08 00 C7 05 80 11 00 00 00 00 00 00 46 [16:26:26]Write i2c OK [16:26:26]MH_I2C_Read... [16:26:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:26:26]Read from MH i2c: E2 [16:26:26]MH_I2C_Read... [16:26:26]Read from MH i2c: E2 17 00 [16:26:26]MH_I2C_Read... [16:26:26]Read from MH i2c: E2 17 00 C7 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 9C [16:26:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:26:26]wFMCommunicate OK [16:26:26]requested_item fd.num is exist - process it [16:26:26]SAM_PROTO_GetFieldsCounters [16:26:26]wFMCommunicate request_size=4 [16:26:26]MH_SAM_APDU [16:26:26]CAPDU: 80 13 00 00 [16:26:26]Write to MH i2c: E2 08 00 C8 05 80 13 00 00 00 00 00 00 49 [16:26:26]Write i2c OK [16:26:26]MH_I2C_Read... [16:26:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:26:26]Read from MH i2c: E2 [16:26:26]MH_I2C_Read... [16:26:26]Read from MH i2c: E2 62 00 [16:26:26]MH_I2C_Read... [16:26:26]Read from MH i2c: E2 62 00 C8 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A2 84 02 00 0E 04 04 00 BF 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 F8 [16:26:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A2 84 02 00 0E 04 04 00 BF 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 [16:26:26]wFMCommunicate OK [16:26:26]SAM_PROTO_GetFieldsCounters done [16:26:26]requested_item shift.num is exist - process it [16:26:26]requested_item shift.opened is exist - process it [16:26:26]req_shift_opened [16:26:26]FM_GetShiftState [16:26:26]SAM_PROTO_GetShiftState [16:26:26]wFMCommunicate request_size=4 [16:26:26]MH_SAM_APDU [16:26:26]CAPDU: 80 13 01 00 [16:26:26]Write to MH i2c: E2 08 00 C9 05 80 13 01 00 00 00 00 00 4B [16:26:26]Write i2c OK [16:26:26]MH_I2C_Read... [16:26:26]Read from MH i2c: E2 [16:26:26]MH_I2C_Read... [16:26:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:26:26]Read from MH i2c: E2 0E 00 [16:26:26]MH_I2C_Read... [16:26:26]Read from MH i2c: E2 0E 00 C9 05 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 CB [16:26:26]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [16:26:26]wFMCommunicate OK [16:26:26]SAM_PROTO_GetShiftState done [16:26:26]FM_GetShiftState done [16:26:26]req_shift_opened done [16:26:26]requested_item shift.open_date is exist - process it [16:26:26]req_shift_open_date [16:26:26]req_shift_open_date done [16:26:26]produce_requested_data done [16:26:26]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165026,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [16:26:26]process_action_free close_receipt [16:26:26]json_value_free [16:26:26]json_value_free done [16:26:26]process_json_proto returns [16:26:26]Send response to host [16:26:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165026,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [16:26:26]free response buf [16:26:26]execute_script done [16:26:26]execute_script returns [16:26:26]free content buf [16:26:26]Sock 8.Close socket [16:26:26]Sock 8.Thread stoped [16:26:30]OFD Sender: No OFD packet to send [16:26:35]OFD Sender: No OFD packet to send [16:26:40]OFD Sender: No OFD packet to send [16:26:45]OFD Sender: No OFD packet to send [16:26:46]accept exits with 9 [16:26:46]New connection [16:26:46]New thread 3066674532 created [16:26:46]Thread 3066531172 joined [16:26:46]Waiting for new connection... [16:26:46] Sock 9.Parse request [16:26:46]Sock 9.Check first char [16:26:46]Sock 9.First char is OK [16:26:46]request: POST /json_proto HTTP/1.0 [16:26:46]Method: POST [16:26:46]URL: /json_proto [16:26:46]Method is POST - this is cgi request [16:26:46]url: /json_proto [16:26:46]query_string will be loaded in cgi processing [16:26:46]execute_cgi json_proto POST (null) [16:26:46]execute_cgi path=json_proto method=POST [16:26:46]POST find Content-Length [16:26:46]Host: 172.17.56.4:8080 [16:26:46]Content-Length: 677 [16:26:46]Content-Type: application/json [16:26:46] [16:26:46]POST finish read [16:26:46]Found Content-Length = 677 [16:26:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459129", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:26:46]execute_script... [16:26: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)459129", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:26:46]POST & json_proto [16:26:46]process_json_proto [16:26:46]json parsed OK: [16:26:46]protocol is kg_v1.0 [16:26:46]action value=close_receipt [16:26:46]process_action close_receipt [16:26:46]cmd_close_receipt [16:26:46]MH_GetDate [16:26:46]Write to MH i2c: F0 00 00 CA 05 BE [16:26:46]Write i2c OK [16:26:46]MH_I2C_Read... [16:26:46]Read from MH i2c: F0 [16:26:46]MH_I2C_Read... [16:26:46]Read from MH i2c: F0 09 00 [16:26:46]MH_I2C_Read... [16:26:46]Read from MH i2c: F0 09 00 CA 05 00 47 FC 93 66 C9 DC B2 64 BE [16:26:46]GetLastDocTimeStamp 1720974383 [16:26:46]current date 1720974407 [16:26:46]FM_GetShiftState [16:26:46]SAM_PROTO_GetShiftState [16:26:46]wFMCommunicate request_size=4 [16:26:46]MH_SAM_APDU [16:26:46]CAPDU: 80 13 01 00 [16:26:46]Write to MH i2c: E2 08 00 CB 05 80 13 01 00 00 00 00 00 4D [16:26:46]Write i2c OK [16:26:46]MH_I2C_Read... [16:26:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:26:46]Read from MH i2c: E2 [16:26:46]MH_I2C_Read... [16:26:46]Read from MH i2c: E2 0E 00 [16:26:46]MH_I2C_Read... [16:26:46]Read from MH i2c: E2 0E 00 CB 05 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 CD [16:26:46]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [16:26:46]wFMCommunicate OK [16:26:46]SAM_PROTO_GetShiftState done [16:26:46]FM_GetShiftState done [16:26:46]opened in 1720917342 [16:26:46]opened+sec_in_day 1721003742 [16:26:46]quantity*price = 20003 [16:26:46]sum+1 = 20004 [16:26:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 225 14.07.2024 16:26 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165027 ФПД: 138435378739615 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T162647&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165027&fm=138435378739615&tin=02508201610067®Number=0000000000090829&sum=20000 [16:26:47]StoreToDocumentArchive [16:26:47]shift 447 fd 165027 [16:26:47]save to /storage/0447/doc_00165027 [16:26:47]save last doc name /storage/0447/doc_00165027 to /storage/kkm_last_doc_name [16:26:47]save OK [16:26:47]Clear old archive folders... [16:26:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:26:47]tlvbuf is 01498B30 [16:26:47]SAM_PROTO_ClearQueue [16:26:47]wFMCommunicate request_size=4 [16:26:47]MH_SAM_APDU [16:26:47]CAPDU: 80 09 00 00 [16:26:47]Write to MH i2c: E2 08 00 D8 05 80 09 00 00 00 00 00 00 4F [16:26:47]Write i2c OK [16:26:47]MH_I2C_Read... [16:26:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:26:47]Read from MH i2c: E2 [16:26:47]MH_I2C_Read... [16:26:47]Read from MH i2c: E2 03 00 [16:26:47]MH_I2C_Read... [16:26:47]Read from MH i2c: E2 03 00 D8 05 00 90 00 51 [16:26:47]RAPDU: 90 00 [16:26:47]wFMCommunicate OK [16:26:47]SAM_PROTO_ClearQueue done [16:26:47]KKMCreateOFDPacket [16:26:47]OFDProtocolAddRootSTLVToBuf [16:26:47]FM_MakeSignedData [16:26:47]FM_MakeSignedData [16:26:47]SAM_PROTO_SignData [16:26:47]wFMCommunicate request_size=4 [16:26:47]MH_SAM_APDU [16:26:47]CAPDU: 80 0D 01 02 [16:26:47]Write to MH i2c: E2 08 00 D9 05 80 0D 01 02 00 00 00 00 57 [16:26:47]Write i2c OK [16:26:47]MH_I2C_Read... [16:26:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:26:47]Read from MH i2c: E2 [16:26:47]MH_I2C_Read... [16:26:47]Read from MH i2c: E2 03 00 [16:26:47]MH_I2C_Read... [16:26:47]Read from MH i2c: E2 03 00 D9 05 00 90 00 52 [16:26:47]RAPDU: 90 00 [16:26:47]wFMCommunicate OK [16:26:47]wFMCommunicate request_size=255 [16:26:47]MH_SAM_APDU [16:26:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 E1 00 00 00 F4 03 04 00 47 FC 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A3 84 02 00 35 04 06 00 7D [16:26:47]Write to MH i2c: E2 02 01 DA 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 E1 00 00 00 F4 03 04 00 47 FC 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A3 84 02 00 35 04 06 00 7D 00 00 F4 [16:26:47]Write i2c OK [16:26:47]MH_I2C_Read... [16:26:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:26:47]Read from MH i2c: E2 [16:26:47]MH_I2C_Read... [16:26:47]Read from MH i2c: E2 03 00 [16:26:47]MH_I2C_Read... [16:26:47]Read from MH i2c: E2 03 00 DA 05 00 90 00 53 [16:26:47]RAPDU: 90 00 [16:26:47]wFMCommunicate OK [16:26:47]wFMCommunicate request_size=10 [16:26:47]MH_SAM_APDU [16:26:47]CAPDU: 80 0D 02 02 05 E7 FF 92 F9 9F [16:26:47]Write to MH i2c: E2 0D 00 DB 05 80 0D 02 02 05 00 E7 FF 92 F9 9F 00 00 74 [16:26:47]Write i2c OK [16:26:47]MH_I2C_Read... [16:26:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:26:47]Read from MH i2c: E2 [16:26:47]MH_I2C_Read... [16:26:47]Read from MH i2c: E2 03 00 [16:26:47]MH_I2C_Read... [16:26:47]Read from MH i2c: E2 03 00 DB 05 00 90 00 54 [16:26:47]RAPDU: 90 00 [16:26:47]wFMCommunicate OK [16:26:47]wFMCommunicate request_size=4 [16:26:47]MH_SAM_APDU [16:26:47]CAPDU: 80 0D 03 02 [16:26:47]Write to MH i2c: E2 08 00 DC 05 80 0D 03 02 00 00 00 00 5C [16:26:47]Write i2c OK [16:26:47]MH_I2C_Read... [16:26:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:26:47]Read from MH i2c: E2 [16:26:47]MH_I2C_Read... [16:26:47]Read from MH i2c: E2 0B 00 [16:26:47]MH_I2C_Read... [16:26:47]Read from MH i2c: E2 0B 00 DC 05 00 8C AB FC 9B 2A EF FC 73 90 00 B3 [16:26:47]RAPDU: 8C AB FC 9B 2A EF FC 73 90 00 [16:26:47]wFMCommunicate OK [16:26:47]SAM_PROTO_SignData done [16:26:47]FM_MakeSignedData done [16:26:47]CreateOFDProtocolMessage [16:26:47]wFMCommunicate request_size=4 [16:26:47]MH_SAM_APDU [16:26:47]CAPDU: 80 11 00 00 [16:26:47]Write to MH i2c: E2 08 00 DD 05 80 11 00 00 00 00 00 00 5C [16:26:47]Write i2c OK [16:26:47]MH_I2C_Read... [16:26:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:26:47]Read from MH i2c: E2 [16:26:47]MH_I2C_Read... [16:26:47]Read from MH i2c: E2 17 00 [16:26:47]MH_I2C_Read... [16:26:47]Read from MH i2c: E2 17 00 DD 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B2 [16:26:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:26:47]wFMCommunicate OK [16:26:47]CreateOFDProtocolMessage done [16:26:47]OFDSenderStorePacket 165027 [16:26:47]StoreOFDPacket docnum=165027 [16:26:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C3 9F 07 01 DC 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 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 E1 00 00 00 F4 03 04 00 47 FC 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A3 84 02 00 35 04 06 00 7D E7 FF 92 F9 9F 8C AB FC 9B 2A EF FC 73 [16:26:47]CheckFolder [16:26:47]dirname=/storage/ofd_packets [16:26:47]CheckFolder done [16:26:47]ProducePacketName [16:26:47]name=ofd_packets/00165027 [16:26:47]NVStorageSaveData ofd_packets/00165027 [16:26:47]File name is /storage/ofd_packets/00165027 [16:26:47]Write 301 bytes [16:26:47]NVStorageSaveData done [16:26:47]OFDSenderStorePacket done [16:26:47]KKMCreateOFDPacket done [16:26:47]NVStorageSaveData kkm_last_timestamp [16:26:47]File name is /storage/kkm_last_timestamp [16:26:47]Write 4 bytes [16:26:47]NVStorageSaveData done [16:26:47]ExternCall_PrintAddStr [16:26:47]wPrintStart [16:26:47]Write to MH i2c: 01 00 00 DE 05 E3 [16:26:47]Write i2c OK [16:26:47]MH_I2C_Read... [16:26:47]Read from MH i2c: 01 [16:26:47]MH_I2C_Read... [16:26:47]Read from MH i2c: 01 07 00 [16:26:47]MH_I2C_Read... [16:26:47]Read from MH i2c: 01 07 00 DE 05 00 00 00 00 00 FF 0F F8 [16:26:47]RasterBufferAndPrint [16:26:47]line Счет N : (1)459129 [16:26:47]line ИНН: 02508201610067 [16:26:47]line Контрольно-Кассовый Чек [16:26:47]line ПРОДАЖА [16:26:47]line ТРК (МРК, ГНК) : 22 [16:26:47]line Товар: 2710124130 [16:26:47]line Аи-92-К-5 [16:26:47]line 3.040 * 65.80 [16:26:47]line = 200.03 [16:26:47]line НДС 12% НСП 1% [16:26:47]line > о реализуемом товаре [16:26:47]line ОКРУГЛЕНИЕ: -0.03 [16:26:47]line ИТОГО: 200.00 [16:26:47]line Внесено: 200.00 [16:26:47]line СДАЧА: 0.00 [16:26:47]line НСП 1% : 1.77 [16:26:47]line НДС 12% : 21.24 [16:26:47]line Наличными: 200.00 [16:26:47]line Безнал.: 0.00 [16:26:47]line Место: АЗС № 72 "Партнер Нефть" [16:26:47]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:26:47]line СНО: Общий режим [16:26:47]line Чек 225 14.07.2024 16:26 [16:26:47]line Смена: 447 ФФД: 1.0 [16:26:47]line ЗНМ: 0300000160 [16:26:47]line РНМ: 0000000000090829 [16:26:47]line Версия ККМ: 001 [16:26:47]line ФМ: 0000000000874718 [16:26:47]line ФД: 165027 [16:26:47]line ФПД: 138435378739615 [16:26:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T162647&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165027&fm=138435378739615&tin=02508201610067®Number=0000000000090829&sum=20000 [16:26:48]written 0, free lines is 4095 [16:26:48]OFD Sender: Processing packet 165027 [packets to send 105, broken 104] [16:26:48]ProducePacketName [16:26:48]name=ofd_packets/00165027 [16:26:48]OFD Sender: To server: pG, [16:26:48]CommunicateWithHost lk.salyk.kg:30040 [16:26:48]ConnectInit lk.salyk.kg [16:26:48]Connected sock=10 [16:26:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C3 9F 07 01 DC 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 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 E1 00 00 00 F4 03 04 00 47 FC 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A3 84 02 00 35 04 06 00 7D E7 FF 92 F9 9F 8C AB FC 9B 2A EF FC 73 [16:26:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 16 9E 47 00 01 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A3 84 02 00 F4 03 04 00 D4 A2 93 66 B6 04 01 00 00 45 0A A3 70 E9 50 F4 1E [16:26:48]CommunicateWithHost err = 0 [16:26:48]CheckOFDResponse [16:26:48]1017 (14) - 77093643461234 [16:26:48]1041 (16) - 0000000000874718 [16:26:48]1040 (4) - 165027 [16:26:48]1012 (4) - 14.07.2024 10:05 [16:26:48]1206 (1) - 0 [16:26:48]OFD Sender: Remove packet 165027 [16:26:48]ProducePacketName [16:26:48]name=ofd_packets/00165027 [16:26:48]NVStorageDeleteData [16:26:48]Write to MH i2c: 01 00 00 08 06 0E [16:26:48]Write i2c OK [16:26:48]MH_I2C_Read... [16:26:48]Read from MH i2c: 01 [16:26:48]MH_I2C_Read... [16:26:48]Read from MH i2c: 01 07 00 [16:26:48]MH_I2C_Read... [16:26:48]Read from MH i2c: 01 07 00 08 06 00 00 00 00 00 F3 0C 14 [16:26:48]RasterBufferAndPrint [16:26:48]line [16:26:48]line [16:26:48]line [16:26:48]line [16:26:48]line [16:26:48]written 0, free lines is 3322 [16:26:48]MH_Cut [16:26:48]Write to MH i2c: D1 01 00 0F 06 01 E7 [16:26:48]Write i2c OK [16:26:48]MH_I2C_Read... [16:26:48]Read from MH i2c: D1 [16:26:48]MH_I2C_Read... [16:26:48]Read from MH i2c: D1 01 00 [16:26:48]MH_I2C_Read... [16:26:48]Read from MH i2c: D1 01 00 0F 06 00 E6 [16:26:48]Write to MH i2c: 01 00 00 10 06 16 [16:26:48]Write i2c OK [16:26:48]MH_I2C_Read... [16:26:48]OFD Sender: No OFD packet to send [16:26:49]*** Cut start [16:26:49]*** Partial cut [16:26:49]*** CUTSNS_PIN = 1 [16:26:49]*** CUTSNS_PIN = 0 [16:26:49]*** Brake cut motor [16:26:49]Read from MH i2c: 01 [16:26:49]MH_I2C_Read... [16:26:49]*** Stop cut motor [16:26:49]*** Cut end [16:26:49]Read from MH i2c: 01 07 00 [16:26:49]MH_I2C_Read... [16:26:49]Read from MH i2c: 01 07 00 10 06 00 00 00 00 00 FF 0F 2B [16:26:49]process_action close_receipt done [16:26:49]requested_data is exist [16:26:49]produce_requested_data [16:26:49]requested_item fm.sn is exist - process it [16:26:49]wFMCommunicate request_size=4 [16:26:49]MH_SAM_APDU [16:26:49]CAPDU: 80 11 00 00 [16:26:49]Write to MH i2c: E2 08 00 11 06 80 11 00 00 00 00 00 00 91 [16:26:49]Write i2c OK [16:26:49]MH_I2C_Read... [16:26:49]Read from MH i2c: E2 [16:26:49]MH_I2C_Read... [16:26:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:26:49]Read from MH i2c: E2 17 00 [16:26:49]MH_I2C_Read... [16:26:49]Read from MH i2c: E2 17 00 11 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E7 [16:26:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:26:49]wFMCommunicate OK [16:26:49]requested_item fd.num is exist - process it [16:26:49]SAM_PROTO_GetFieldsCounters [16:26:49]wFMCommunicate request_size=4 [16:26:49]MH_SAM_APDU [16:26:49]CAPDU: 80 13 00 00 [16:26:49]Write to MH i2c: E2 08 00 12 06 80 13 00 00 00 00 00 00 94 [16:26:49]Write i2c OK [16:26:49]MH_I2C_Read... [16:26:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:26:50]Read from MH i2c: E2 [16:26:50]MH_I2C_Read... [16:26:50]Read from MH i2c: E2 62 00 [16:26:50]MH_I2C_Read... [16:26:50]Read from MH i2c: E2 62 00 12 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A3 84 02 00 0E 04 04 00 BF 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 47 [16:26:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A3 84 02 00 0E 04 04 00 BF 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 [16:26:50]wFMCommunicate OK [16:26:50]SAM_PROTO_GetFieldsCounters done [16:26:50]requested_item shift.num is exist - process it [16:26:50]requested_item shift.opened is exist - process it [16:26:50]req_shift_opened [16:26:50]FM_GetShiftState [16:26:50]SAM_PROTO_GetShiftState [16:26:50]wFMCommunicate request_size=4 [16:26:50]MH_SAM_APDU [16:26:50]CAPDU: 80 13 01 00 [16:26:50]Write to MH i2c: E2 08 00 13 06 80 13 01 00 00 00 00 00 96 [16:26:50]Write i2c OK [16:26:50]MH_I2C_Read... [16:26:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:26:50]Read from MH i2c: E2 [16:26:50]MH_I2C_Read... [16:26:50]Read from MH i2c: E2 0E 00 [16:26:50]MH_I2C_Read... [16:26:50]Read from MH i2c: E2 0E 00 13 06 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 16 [16:26:50]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [16:26:50]wFMCommunicate OK [16:26:50]SAM_PROTO_GetShiftState done [16:26:50]FM_GetShiftState done [16:26:50]req_shift_opened done [16:26:50]requested_item shift.open_date is exist - process it [16:26:50]req_shift_open_date [16:26:50]req_shift_open_date done [16:26:50]produce_requested_data done [16:26:50]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165027,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [16:26:50]process_action_free close_receipt [16:26:50]json_value_free [16:26:50]json_value_free done [16:26:50]process_json_proto returns [16:26:50]Send response to host [16:26:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165027,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [16:26:50]free response buf [16:26:50]execute_script done [16:26:50]execute_script returns [16:26:50]free content buf [16:26:50]Sock 9.Close socket [16:26:50]Sock 9.Thread stoped [16:26:53]OFD Sender: No OFD packet to send [16:26:58]OFD Sender: No OFD packet to send [16:27:03]OFD Sender: No OFD packet to send [16:27:08]OFD Sender: No OFD packet to send [16:27:13]OFD Sender: No OFD packet to send [16:27:18]OFD Sender: No OFD packet to send [16:27:23]OFD Sender: No OFD packet to send [16:27:28]OFD Sender: No OFD packet to send [16:27:33]OFD Sender: No OFD packet to send [16:27:38]OFD Sender: No OFD packet to send [16:27:43]accept exits with 8 [16:27:43]New connection [16:27:43]New thread 3066531172 created [16:27:43]Thread 3066674532 joined [16:27:43]Waiting for new connection... [16:27:43] Sock 8.Parse request [16:27:43]Sock 8.Check first char [16:27:43]Sock 8.First char is OK [16:27:43]request: POST /json_proto HTTP/1.0 [16:27:43]Method: POST [16:27:43]URL: /json_proto [16:27:43]Method is POST - this is cgi request [16:27:43]url: /json_proto [16:27:43]query_string will be loaded in cgi processing [16:27:43]execute_cgi json_proto POST (null) [16:27:43]execute_cgi path=json_proto method=POST [16:27:43]POST find Content-Length [16:27:43]Host: 172.17.56.4:8080 [16:27:43]Content-Length: 679 [16:27:43]Content-Type: application/json [16:27:43] [16:27:43]POST finish read [16:27:43]Found Content-Length = 679 [16:27:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459127", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 17.040, "sum" : 1225.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1225.00, "total" : 1225.00, "payments": [ { "type": 0, "sum" : 1225.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:27:43]execute_script... [16:27: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)459127", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 17.040, "sum" : 1225.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1225.00, "total" : 1225.00, "payments": [ { "type": 0, "sum" : 1225.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:27:43]POST & json_proto [16:27:43]process_json_proto [16:27:43]json parsed OK: [16:27:43]protocol is kg_v1.0 [16:27:43]action value=close_receipt [16:27:43]process_action close_receipt [16:27:43]cmd_close_receipt [16:27:43]MH_GetDate [16:27:43]Write to MH i2c: F0 00 00 14 06 09 [16:27:43]Write i2c OK [16:27:43]MH_I2C_Read... [16:27:43]Read from MH i2c: F0 [16:27:43]MH_I2C_Read... [16:27:43]Read from MH i2c: F0 09 00 [16:27:43]MH_I2C_Read... [16:27:43]Read from MH i2c: F0 09 00 14 06 00 80 FC 93 66 C9 DC B2 64 42 [16:27:43]GetLastDocTimeStamp 1720974407 [16:27:43]current date 1720974464 [16:27:43]FM_GetShiftState [16:27:43]SAM_PROTO_GetShiftState [16:27:43]wFMCommunicate request_size=4 [16:27:43]MH_SAM_APDU [16:27:43]CAPDU: 80 13 01 00 [16:27:43]Write to MH i2c: E2 08 00 15 06 80 13 01 00 00 00 00 00 98 [16:27:43]Write i2c OK [16:27:43]MH_I2C_Read... [16:27:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:27:43]Read from MH i2c: E2 [16:27:43]MH_I2C_Read... [16:27:43]Read from MH i2c: E2 0E 00 [16:27:43]MH_I2C_Read... [16:27:43]Read from MH i2c: E2 0E 00 15 06 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 18 [16:27:43]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [16:27:43]wFMCommunicate OK [16:27:43]SAM_PROTO_GetShiftState done [16:27:43]FM_GetShiftState done [16:27:43]opened in 1720917342 [16:27:43]opened+sec_in_day 1721003742 [16:27:43]quantity*price = 122517 [16:27:43]sum+1 = 122519 [16:27:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 1225.00 Внесено: 1225.00 СДАЧА: 0.00 НСП 1% : 10.84 НДС 12% : 130.11 Наличными: 1225.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 226 14.07.2024 16:27 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165028 ФПД: 168190017653814 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T162744&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165028&fm=168190017653814&tin=02508201610067®Number=0000000000090829&sum=122500 [16:27:44]StoreToDocumentArchive [16:27:44]shift 447 fd 165028 [16:27:44]save to /storage/0447/doc_00165028 [16:27:44]save last doc name /storage/0447/doc_00165028 to /storage/kkm_last_doc_name [16:27:44]save OK [16:27:44]Clear old archive folders... [16:27:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:27:44]tlvbuf is 0146AAA0 [16:27:44]SAM_PROTO_ClearQueue [16:27:44]wFMCommunicate request_size=4 [16:27:44]MH_SAM_APDU [16:27:44]CAPDU: 80 09 00 00 [16:27:44]Write to MH i2c: E2 08 00 22 06 80 09 00 00 00 00 00 00 9A [16:27:44]Write i2c OK [16:27:44]MH_I2C_Read... [16:27:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:27:45]Read from MH i2c: E2 [16:27:45]MH_I2C_Read... [16:27:45]Read from MH i2c: E2 03 00 [16:27:45]MH_I2C_Read... [16:27:45]Read from MH i2c: E2 03 00 22 06 00 90 00 9C [16:27:45]RAPDU: 90 00 [16:27:45]wFMCommunicate OK [16:27:45]SAM_PROTO_ClearQueue done [16:27:45]KKMCreateOFDPacket [16:27:45]OFDProtocolAddRootSTLVToBuf [16:27:45]FM_MakeSignedData [16:27:45]FM_MakeSignedData [16:27:45]SAM_PROTO_SignData [16:27:45]wFMCommunicate request_size=4 [16:27:45]MH_SAM_APDU [16:27:45]CAPDU: 80 0D 01 02 [16:27:45]Write to MH i2c: E2 08 00 23 06 80 0D 01 02 00 00 00 00 A2 [16:27:45]Write i2c OK [16:27:45]MH_I2C_Read... [16:27:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:27:45]Read from MH i2c: E2 [16:27:45]MH_I2C_Read... [16:27:45]Read from MH i2c: E2 03 00 [16:27:45]MH_I2C_Read... [16:27:45]Read from MH i2c: E2 03 00 23 06 00 90 00 9D [16:27:45]RAPDU: 90 00 [16:27:45]wFMCommunicate OK [16:27:45]wFMCommunicate request_size=255 [16:27:45]MH_SAM_APDU [16:27: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 90 42 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 96 DE 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 DE 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3C 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 32 00 00 00 00 07 04 06 00 84 DE 01 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 80 FC 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A4 84 02 00 35 04 06 00 98 F7 CA 41 [16:27:45]Write to MH i2c: E2 02 01 24 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 90 42 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 96 DE 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 DE 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3C 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 32 00 00 00 00 07 04 06 00 84 DE 01 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 80 FC 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A4 84 02 00 35 04 06 00 98 F7 CA 41 00 00 64 [16:27:45]Write i2c OK [16:27:45]MH_I2C_Read... [16:27:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:27:45]Read from MH i2c: E2 [16:27:45]MH_I2C_Read... [16:27:45]Read from MH i2c: E2 03 00 [16:27:45]MH_I2C_Read... [16:27:45]Read from MH i2c: E2 03 00 24 06 00 90 00 9E [16:27:45]RAPDU: 90 00 [16:27:45]wFMCommunicate OK [16:27:45]wFMCommunicate request_size=7 [16:27:45]MH_SAM_APDU [16:27:45]CAPDU: 80 0D 02 02 02 CC 36 [16:27:45]Write to MH i2c: E2 0A 00 25 06 80 0D 02 02 02 00 CC 36 00 00 AB [16:27:45]Write i2c OK [16:27:45]MH_I2C_Read... [16:27:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:27:45]Read from MH i2c: E2 [16:27:45]MH_I2C_Read... [16:27:45]Read from MH i2c: E2 03 00 [16:27:45]MH_I2C_Read... [16:27:45]Read from MH i2c: E2 03 00 25 06 00 90 00 9F [16:27:45]RAPDU: 90 00 [16:27:45]wFMCommunicate OK [16:27:45]wFMCommunicate request_size=4 [16:27:45]MH_SAM_APDU [16:27:45]CAPDU: 80 0D 03 02 [16:27:45]Write to MH i2c: E2 08 00 26 06 80 0D 03 02 00 00 00 00 A7 [16:27:45]Write i2c OK [16:27:45]MH_I2C_Read... [16:27:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:27:45]Read from MH i2c: E2 [16:27:45]MH_I2C_Read... [16:27:45]Read from MH i2c: E2 0B 00 [16:27:45]MH_I2C_Read... [16:27:45]Read from MH i2c: E2 0B 00 26 06 00 9F 33 4D 6E 1C A8 A8 92 90 00 33 [16:27:45]RAPDU: 9F 33 4D 6E 1C A8 A8 92 90 00 [16:27:45]wFMCommunicate OK [16:27:45]SAM_PROTO_SignData done [16:27:45]FM_MakeSignedData done [16:27:45]CreateOFDProtocolMessage [16:27:45]wFMCommunicate request_size=4 [16:27:45]MH_SAM_APDU [16:27:45]CAPDU: 80 11 00 00 [16:27:45]Write to MH i2c: E2 08 00 27 06 80 11 00 00 00 00 00 00 A7 [16:27:45]Write i2c OK [16:27:45]MH_I2C_Read... [16:27:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:27:45]Read from MH i2c: E2 [16:27:45]MH_I2C_Read... [16:27:45]Read from MH i2c: E2 17 00 [16:27:45]MH_I2C_Read... [16:27:45]Read from MH i2c: E2 17 00 27 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 FD [16:27:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:27:45]wFMCommunicate OK [16:27:45]CreateOFDProtocolMessage done [16:27:45]OFDSenderStorePacket 165028 [16:27:45]StoreOFDPacket docnum=165028 [16:27:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 E5 CB 04 01 18 D8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 90 42 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 96 DE 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 DE 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3C 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 32 00 00 00 00 07 04 06 00 84 DE 01 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 80 FC 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A4 84 02 00 35 04 06 00 98 F7 CA 41 CC 36 9F 33 4D 6E 1C A8 A8 92 [16:27:45]CheckFolder [16:27:45]dirname=/storage/ofd_packets [16:27:45]CheckFolder done [16:27:45]ProducePacketName [16:27:45]name=ofd_packets/00165028 [16:27:45]NVStorageSaveData ofd_packets/00165028 [16:27:45]File name is /storage/ofd_packets/00165028 [16:27:45]Write 298 bytes [16:27:45]NVStorageSaveData done [16:27:45]OFDSenderStorePacket done [16:27:45]KKMCreateOFDPacket done [16:27:45]NVStorageSaveData kkm_last_timestamp [16:27:45]File name is /storage/kkm_last_timestamp [16:27:45]Write 4 bytes [16:27:45]NVStorageSaveData done [16:27:45]ExternCall_PrintAddStr [16:27:45]wPrintStart [16:27:45]Write to MH i2c: 01 00 00 28 06 2E [16:27:45]Write i2c OK [16:27:45]MH_I2C_Read... [16:27:45]Read from MH i2c: 01 [16:27:45]MH_I2C_Read... [16:27:45]Read from MH i2c: 01 07 00 [16:27:45]MH_I2C_Read... [16:27:45]Read from MH i2c: 01 07 00 28 06 00 00 00 00 00 FF 0F 43 [16:27:45]RasterBufferAndPrint [16:27:45]line Счет N : (1)459127 [16:27:45]line ИНН: 02508201610067 [16:27:45]line Контрольно-Кассовый Чек [16:27:45]line ПРОДАЖА [16:27:45]line ТРК (МРК, ГНК) : 21 [16:27:45]line Товар: 2710194210 [16:27:45]line ДТ-К-5 [16:27:45]line 17.040 * 71.90 [16:27:45]line = 1225.18 [16:27:45]line НДС 12% НСП 1% [16:27:45]line > о реализуемом товаре [16:27:45]line ОКРУГЛЕНИЕ: -0.18 [16:27:45]line ИТОГО: 1225.00 [16:27:45]line Внесено: 1225.00 [16:27:45]line СДАЧА: 0.00 [16:27:45]line НСП 1% : 10.84 [16:27:45]line НДС 12% : 130.11 [16:27:45]line Наличными: 1225.00 [16:27:45]line Безнал.: 0.00 [16:27:45]line Место: АЗС № 72 "Партнер Нефть" [16:27:45]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:27:45]line СНО: Общий режим [16:27:45]line Чек 226 14.07.2024 16:27 [16:27:45]line Смена: 447 ФФД: 1.0 [16:27:45]line ЗНМ: 0300000160 [16:27:45]line РНМ: 0000000000090829 [16:27:45]line Версия ККМ: 001 [16:27:45]line ФМ: 0000000000874718 [16:27:45]line ФД: 165028 [16:27:45]line ФПД: 168190017653814 [16:27:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T162744&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165028&fm=168190017653814&tin=02508201610067®Number=0000000000090829&sum=122500 [16:27:45]OFD Sender: Processing packet 165028 [packets to send 105, broken 104] [16:27:45]ProducePacketName [16:27:45]name=ofd_packets/00165028 [16:27:45]OFD Sender: To server: pG, [16:27:45]CommunicateWithHost lk.salyk.kg:30040 [16:27:45]ConnectInit lk.salyk.kg [16:27:45]written 0, free lines is 4095 [16:27:45]Connected sock=10 [16:27:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 E5 CB 04 01 18 D8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 90 42 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 96 DE 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 DE 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3C 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 32 00 00 00 00 07 04 06 00 84 DE 01 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 80 FC 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A4 84 02 00 35 04 06 00 98 F7 CA 41 CC 36 9F 33 4D 6E 1C A8 A8 92 [16:27:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 A0 06 47 00 28 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 38 37 34 37 31 38 10 04 04 00 A4 84 02 00 F4 03 04 00 0E A3 93 66 B6 04 01 00 00 FA F6 34 D2 64 25 36 19 [16:27:46]CommunicateWithHost err = 0 [16:27:46]CheckOFDResponse [16:27:46]1017 (14) - 77093643461234 [16:27:46]1041 (16) - 0000000000874718 [16:27:46]1040 (4) - 165028 [16:27:46]1012 (4) - 14.07.2024 10:06 [16:27:46]1206 (1) - 0 [16:27:46]OFD Sender: Remove packet 165028 [16:27:46]ProducePacketName [16:27:46]name=ofd_packets/00165028 [16:27:46]NVStorageDeleteData [16:27:46]Write to MH i2c: 01 00 00 52 06 58 [16:27:46]Write i2c OK [16:27:46]MH_I2C_Read... [16:27:46]Read from MH i2c: 01 [16:27:46]MH_I2C_Read... [16:27:46]Read from MH i2c: 01 07 00 [16:27:46]MH_I2C_Read... [16:27:46]Read from MH i2c: 01 07 00 52 06 00 00 00 00 00 F5 0C 60 [16:27:46]RasterBufferAndPrint [16:27:46]line [16:27:46]line [16:27:46]line [16:27:46]line [16:27:46]line [16:27:46]written 0, free lines is 3324 [16:27:46]MH_Cut [16:27:46]Write to MH i2c: D1 01 00 59 06 01 31 [16:27:46]Write i2c OK [16:27:46]MH_I2C_Read... [16:27:46]Read from MH i2c: D1 [16:27:46]MH_I2C_Read... [16:27:46]Read from MH i2c: D1 01 00 [16:27:46]MH_I2C_Read... [16:27:46]Read from MH i2c: D1 01 00 59 06 00 30 [16:27:46]Write to MH i2c: 01 00 00 5A 06 60 [16:27:46]Write i2c OK [16:27:46]MH_I2C_Read... [16:27:46]OFD Sender: No OFD packet to send [16:27:46]*** Cut start [16:27:46]*** Partial cut [16:27:46]*** CUTSNS_PIN = 1 [16:27:46]*** CUTSNS_PIN = 0 [16:27:47]*** Brake cut motor [16:27:47]Read from MH i2c: 01 [16:27:47]MH_I2C_Read... [16:27:47]*** Stop cut motor [16:27:47]*** Cut end [16:27:47]Read from MH i2c: 01 07 00 [16:27:47]MH_I2C_Read... [16:27:47]Read from MH i2c: 01 07 00 5A 06 00 00 00 00 00 FF 0F 75 [16:27:47]process_action close_receipt done [16:27:47]requested_data is exist [16:27:47]produce_requested_data [16:27:47]requested_item fm.sn is exist - process it [16:27:47]wFMCommunicate request_size=4 [16:27:47]MH_SAM_APDU [16:27:47]CAPDU: 80 11 00 00 [16:27:47]Write to MH i2c: E2 08 00 5B 06 80 11 00 00 00 00 00 00 DB [16:27:47]Write i2c OK [16:27:47]MH_I2C_Read... [16:27:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:27:47]Read from MH i2c: E2 [16:27:47]MH_I2C_Read... [16:27:47]Read from MH i2c: E2 17 00 [16:27:47]MH_I2C_Read... [16:27:47]Read from MH i2c: E2 17 00 5B 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 31 [16:27:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:27:47]wFMCommunicate OK [16:27:47]requested_item fd.num is exist - process it [16:27:47]SAM_PROTO_GetFieldsCounters [16:27:47]wFMCommunicate request_size=4 [16:27:47]MH_SAM_APDU [16:27:47]CAPDU: 80 13 00 00 [16:27:47]Write to MH i2c: E2 08 00 5C 06 80 13 00 00 00 00 00 00 DE [16:27:47]Write i2c OK [16:27:47]MH_I2C_Read... [16:27:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:27:47]Read from MH i2c: E2 [16:27:47]MH_I2C_Read... [16:27:47]Read from MH i2c: E2 62 00 [16:27:47]MH_I2C_Read... [16:27:47]Read from MH i2c: E2 62 00 5C 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A4 84 02 00 0E 04 04 00 BF 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 95 [16:27:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A4 84 02 00 0E 04 04 00 BF 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 [16:27:47]wFMCommunicate OK [16:27:47]SAM_PROTO_GetFieldsCounters done [16:27:47]requested_item shift.num is exist - process it [16:27:47]requested_item shift.opened is exist - process it [16:27:47]req_shift_opened [16:27:47]FM_GetShiftState [16:27:47]SAM_PROTO_GetShiftState [16:27:47]wFMCommunicate request_size=4 [16:27:47]MH_SAM_APDU [16:27:47]CAPDU: 80 13 01 00 [16:27:47]Write to MH i2c: E2 08 00 5D 06 80 13 01 00 00 00 00 00 E0 [16:27:47]Write i2c OK [16:27:47]MH_I2C_Read... [16:27:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:27:47]Read from MH i2c: E2 [16:27:47]MH_I2C_Read... [16:27:47]Read from MH i2c: E2 0E 00 [16:27:47]MH_I2C_Read... [16:27:47]Read from MH i2c: E2 0E 00 5D 06 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 60 [16:27:47]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [16:27:47]wFMCommunicate OK [16:27:47]SAM_PROTO_GetShiftState done [16:27:47]FM_GetShiftState done [16:27:47]req_shift_opened done [16:27:47]requested_item shift.open_date is exist - process it [16:27:47]req_shift_open_date [16:27:47]req_shift_open_date done [16:27:47]produce_requested_data done [16:27:47]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165028,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [16:27:47]process_action_free close_receipt [16:27:47]json_value_free [16:27:47]json_value_free done [16:27:47]process_json_proto returns [16:27:47]Send response to host [16:27:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165028,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [16:27:47]free response buf [16:27:47]execute_script done [16:27:47]execute_script returns [16:27:47]free content buf [16:27:47]Sock 8.Close socket [16:27:47]Sock 8.Thread stoped [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:06]OFD Sender: No OFD packet to send [16:28:11]OFD Sender: No OFD packet to send [16:28:16]OFD Sender: No OFD packet to send [16:28:21]OFD Sender: No OFD packet to send [16:28:26]OFD Sender: No OFD packet to send [16:28:31]OFD Sender: No OFD packet to send [16:28:36]OFD Sender: No OFD packet to send [16:28:41]OFD Sender: No OFD packet to send [16:28:46]OFD Sender: No OFD packet to send [16:28:51]OFD Sender: No OFD packet to send [16:28:56]OFD Sender: No OFD packet to send [16:29:01]OFD Sender: No OFD packet to send [16:29:06]OFD Sender: No OFD packet to send [16:29:11]OFD Sender: No OFD packet to send [16:29:16]OFD Sender: No OFD packet to send [16:29:21]OFD Sender: No OFD packet to send [16:29:26]OFD Sender: No OFD packet to send [16:29:30]accept exits with 9 [16:29:30]New connection [16:29:30]New thread 3066674532 created [16:29:30]Thread 3066531172 joined [16:29:30]Waiting for new connection... [16:29:30] Sock 9.Parse request [16:29:30]Sock 9.Check first char [16:29:30]Sock 9.First char is OK [16:29:30]request: POST /json_proto HTTP/1.0 [16:29:30]Method: POST [16:29:30]URL: /json_proto [16:29:30]Method is POST - this is cgi request [16:29:30]url: /json_proto [16:29:30]query_string will be loaded in cgi processing [16:29:30]execute_cgi json_proto POST (null) [16:29:30]execute_cgi path=json_proto method=POST [16:29:30]POST find Content-Length [16:29:30]Host: 172.17.56.4:8080 [16:29:30]Content-Length: 678 [16:29:30]Content-Type: application/json [16:29:30] [16:29:30]POST finish read [16:29:30]Found Content-Length = 678 [16:29:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459130", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:29:30]execute_script... [16:29: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)459130", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:29:30]POST & json_proto [16:29:30]process_json_proto [16:29:30]json parsed OK: [16:29:30]protocol is kg_v1.0 [16:29:30]action value=close_receipt [16:29:30]process_action close_receipt [16:29:30]cmd_close_receipt [16:29:30]MH_GetDate [16:29:30]Write to MH i2c: F0 00 00 5E 06 53 [16:29:30]Write i2c OK [16:29:30]MH_I2C_Read... [16:29:30]Read from MH i2c: F0 [16:29:30]MH_I2C_Read... [16:29:30]Read from MH i2c: F0 09 00 [16:29:30]MH_I2C_Read... [16:29:30]Read from MH i2c: F0 09 00 5E 06 00 EB FC 93 66 C9 DC B2 64 F7 [16:29:30]GetLastDocTimeStamp 1720974464 [16:29:30]current date 1720974571 [16:29:30]FM_GetShiftState [16:29:30]SAM_PROTO_GetShiftState [16:29:30]wFMCommunicate request_size=4 [16:29:30]MH_SAM_APDU [16:29:30]CAPDU: 80 13 01 00 [16:29:30]Write to MH i2c: E2 08 00 5F 06 80 13 01 00 00 00 00 00 E2 [16:29:30]Write i2c OK [16:29:30]MH_I2C_Read... [16:29:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:30]Read from MH i2c: E2 [16:29:30]MH_I2C_Read... [16:29:30]Read from MH i2c: E2 0E 00 [16:29:30]MH_I2C_Read... [16:29:30]Read from MH i2c: E2 0E 00 5F 06 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 62 [16:29:30]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [16:29:30]wFMCommunicate OK [16:29:30]SAM_PROTO_GetShiftState done [16:29:30]FM_GetShiftState done [16:29:30]opened in 1720917342 [16:29:30]opened+sec_in_day 1721003742 [16:29:30]quantity*price = 70011 [16:29:30]sum+1 = 70012 [16:29:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 227 14.07.2024 16:29 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165029 ФПД: 202222680236835 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T162931&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165029&fm=202222680236835&tin=02508201610067®Number=0000000000090829&sum=70000 [16:29:31]StoreToDocumentArchive [16:29:31]shift 447 fd 165029 [16:29:31]save to /storage/0447/doc_00165029 [16:29:31]save last doc name /storage/0447/doc_00165029 to /storage/kkm_last_doc_name [16:29:31]save OK [16:29:31]Clear old archive folders... [16:29:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:29:31]tlvbuf is 01476B50 [16:29:31]SAM_PROTO_ClearQueue [16:29:31]wFMCommunicate request_size=4 [16:29:31]MH_SAM_APDU [16:29:31]CAPDU: 80 09 00 00 [16:29:31]Write to MH i2c: E2 08 00 6C 06 80 09 00 00 00 00 00 00 E4 [16:29:31]Write i2c OK [16:29:31]MH_I2C_Read... [16:29:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:29:31]Read from MH i2c: E2 [16:29:31]MH_I2C_Read... [16:29:31]Read from MH i2c: E2 03 00 [16:29:31]MH_I2C_Read... [16:29:31]Read from MH i2c: E2 03 00 6C 06 00 90 00 E6 [16:29:31]RAPDU: 90 00 [16:29:31]wFMCommunicate OK [16:29:31]SAM_PROTO_ClearQueue done [16:29:31]KKMCreateOFDPacket [16:29:31]OFDProtocolAddRootSTLVToBuf [16:29:31]FM_MakeSignedData [16:29:31]FM_MakeSignedData [16:29:31]SAM_PROTO_SignData [16:29:31]wFMCommunicate request_size=4 [16:29:31]MH_SAM_APDU [16:29:31]CAPDU: 80 0D 01 02 [16:29:31]Write to MH i2c: E2 08 00 6D 06 80 0D 01 02 00 00 00 00 EC [16:29:31]Write i2c OK [16:29:31]MH_I2C_Read... [16:29:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:29:31]Read from MH i2c: E2 [16:29:31]MH_I2C_Read... [16:29:31]Read from MH i2c: E2 03 00 [16:29:31]MH_I2C_Read... [16:29:31]Read from MH i2c: E2 03 00 6D 06 00 90 00 E7 [16:29:31]RAPDU: 90 00 [16:29:31]wFMCommunicate OK [16:29:31]wFMCommunicate request_size=255 [16:29:31]MH_SAM_APDU [16:29:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 E3 00 00 00 F4 03 04 00 EB FC 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A5 84 02 00 35 04 06 00 B7 [16:29:31]Write to MH i2c: E2 02 01 6E 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 E3 00 00 00 F4 03 04 00 EB FC 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A5 84 02 00 35 04 06 00 B7 00 00 0E [16:29:31]Write i2c OK [16:29:31]MH_I2C_Read... [16:29:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:29:31]Read from MH i2c: E2 [16:29:31]MH_I2C_Read... [16:29:31]Read from MH i2c: E2 03 00 [16:29:31]MH_I2C_Read... [16:29:31]Read from MH i2c: E2 03 00 6E 06 00 90 00 E8 [16:29:31]RAPDU: 90 00 [16:29:31]wFMCommunicate OK [16:29:31]wFMCommunicate request_size=10 [16:29:31]MH_SAM_APDU [16:29:31]CAPDU: 80 0D 02 02 05 EB A3 05 63 23 [16:29:31]Write to MH i2c: E2 0D 00 6F 06 80 0D 02 02 05 00 EB A3 05 63 23 00 00 12 [16:29:31]Write i2c OK [16:29:31]MH_I2C_Read... [16:29:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:29:31]Read from MH i2c: E2 [16:29:31]MH_I2C_Read... [16:29:31]Read from MH i2c: E2 03 00 [16:29:31]MH_I2C_Read... [16:29:31]Read from MH i2c: E2 03 00 6F 06 00 90 00 E9 [16:29:31]RAPDU: 90 00 [16:29:31]wFMCommunicate OK [16:29:31]wFMCommunicate request_size=4 [16:29:31]MH_SAM_APDU [16:29:31]CAPDU: 80 0D 03 02 [16:29:31]Write to MH i2c: E2 08 00 70 06 80 0D 03 02 00 00 00 00 F1 [16:29:31]Write i2c OK [16:29:31]MH_I2C_Read... [16:29:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:29:31]Read from MH i2c: E2 [16:29:31]MH_I2C_Read... [16:29:31]Read from MH i2c: E2 0B 00 [16:29:31]MH_I2C_Read... [16:29:31]Read from MH i2c: E2 0B 00 70 06 00 8D 1D C0 10 21 50 8F 19 90 00 85 [16:29:31]RAPDU: 8D 1D C0 10 21 50 8F 19 90 00 [16:29:31]wFMCommunicate OK [16:29:31]SAM_PROTO_SignData done [16:29:31]FM_MakeSignedData done [16:29:31]CreateOFDProtocolMessage [16:29:31]wFMCommunicate request_size=4 [16:29:31]MH_SAM_APDU [16:29:31]CAPDU: 80 11 00 00 [16:29:31]Write to MH i2c: E2 08 00 71 06 80 11 00 00 00 00 00 00 F1 [16:29:31]Write i2c OK [16:29:31]MH_I2C_Read... [16:29:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:31]Read from MH i2c: E2 [16:29:31]MH_I2C_Read... [16:29:31]Read from MH i2c: E2 17 00 [16:29:31]MH_I2C_Read... [16:29:31]Read from MH i2c: E2 17 00 71 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 47 [16:29:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:29:31]wFMCommunicate OK [16:29:31]CreateOFDProtocolMessage done [16:29:31]OFDSenderStorePacket 165029 [16:29:31]StoreOFDPacket docnum=165029 [16:29:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 B0 BC 07 01 89 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 E3 00 00 00 F4 03 04 00 EB FC 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A5 84 02 00 35 04 06 00 B7 EB A3 05 63 23 8D 1D C0 10 21 50 8F 19 [16:29:31]CheckFolder [16:29:31]dirname=/storage/ofd_packets [16:29:31]CheckFolder done [16:29:31]ProducePacketName [16:29:31]name=ofd_packets/00165029 [16:29:31]NVStorageSaveData ofd_packets/00165029 [16:29:31]File name is /storage/ofd_packets/00165029 [16:29:31]Write 301 bytes [16:29:31]NVStorageSaveData done [16:29:31]OFDSenderStorePacket done [16:29:31]KKMCreateOFDPacket done [16:29:31]NVStorageSaveData kkm_last_timestamp [16:29:31]File name is /storage/kkm_last_timestamp [16:29:31]Write 4 bytes [16:29:31]NVStorageSaveData done [16:29:31]ExternCall_PrintAddStr [16:29:31]wPrintStart [16:29:31]Write to MH i2c: 01 00 00 72 06 78 [16:29:31]Write i2c OK [16:29:31]MH_I2C_Read... [16:29:31]Read from MH i2c: 01 [16:29:31]MH_I2C_Read... [16:29:31]Read from MH i2c: 01 07 00 [16:29:31]MH_I2C_Read... [16:29:31]Read from MH i2c: 01 07 00 72 06 00 00 00 00 00 FF 0F 8D [16:29:31]RasterBufferAndPrint [16:29:31]line Счет N : (1)459130 [16:29:31]line ИНН: 02508201610067 [16:29:31]line Контрольно-Кассовый Чек [16:29:31]line ПРОДАЖА [16:29:31]line ТРК (МРК, ГНК) : 22 [16:29:31]line Товар: 2710124130 [16:29:31]line Аи-92-К-5 [16:29:31]line 10.640 * 65.80 [16:29:31]line = 700.11 [16:29:31]line НДС 12% НСП 1% [16:29:31]line > о реализуемом товаре [16:29:31]line ОКРУГЛЕНИЕ: -0.11 [16:29:31]line ИТОГО: 700.00 [16:29:31]line Внесено: 700.00 [16:29:31]line СДАЧА: 0.00 [16:29:31]line НСП 1% : 6.20 [16:29:31]line НДС 12% : 74.35 [16:29:31]line Наличными: 700.00 [16:29:31]line Безнал.: 0.00 [16:29:31]line Место: АЗС № 72 "Партнер Нефть" [16:29:31]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:29:31]line СНО: Общий режим [16:29:31]line Чек 227 14.07.2024 16:29 [16:29:31]line Смена: 447 ФФД: 1.0 [16:29:31]line ЗНМ: 0300000160 [16:29:31]line РНМ: 0000000000090829 [16:29:31]line Версия ККМ: 001 [16:29:31]line ФМ: 0000000000874718 [16:29:31]line ФД: 165029 [16:29:31]line ФПД: 202222680236835 [16:29:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T162931&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165029&fm=202222680236835&tin=02508201610067®Number=0000000000090829&sum=70000 [16:29:32]OFD Sender: Processing packet 165029 [packets to send 105, broken 104] [16:29:32]ProducePacketName [16:29:32]name=ofd_packets/00165029 [16:29:32]OFD Sender: To server: pG, [16:29:32]CommunicateWithHost lk.salyk.kg:30040 [16:29:32]ConnectInit lk.salyk.kg [16:29:32]written 0, free lines is 4095 [16:29:32]Connected sock=10 [16:29:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 B0 BC 07 01 89 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 E3 00 00 00 F4 03 04 00 EB FC 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A5 84 02 00 35 04 06 00 B7 EB A3 05 63 23 8D 1D C0 10 21 50 8F 19 [16:29:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 99 D1 47 00 62 F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A5 84 02 00 F4 03 04 00 78 A3 93 66 B6 04 01 00 00 2A 4F AD 9B BC 76 C1 E4 [16:29:32]CommunicateWithHost err = 0 [16:29:32]CheckOFDResponse [16:29:32]1017 (14) - 77093643461234 [16:29:32]1041 (16) - 0000000000874718 [16:29:32]1040 (4) - 165029 [16:29:32]1012 (4) - 14.07.2024 10:07 [16:29:32]1206 (1) - 0 [16:29:32]OFD Sender: Remove packet 165029 [16:29:32]ProducePacketName [16:29:32]name=ofd_packets/00165029 [16:29:32]NVStorageDeleteData [16:29:32]Write to MH i2c: 01 00 00 9C 06 A2 [16:29:32]Write i2c OK [16:29:32]MH_I2C_Read... [16:29:32]Read from MH i2c: 01 [16:29:32]MH_I2C_Read... [16:29:32]Read from MH i2c: 01 07 00 [16:29:32]MH_I2C_Read... [16:29:32]Read from MH i2c: 01 07 00 9C 06 00 00 00 00 00 02 0D B8 [16:29:32]RasterBufferAndPrint [16:29:32]line [16:29:32]line [16:29:32]line [16:29:32]line [16:29:32]line [16:29:32]written 0, free lines is 3336 [16:29:32]MH_Cut [16:29:32]Write to MH i2c: D1 01 00 A3 06 01 7B [16:29:32]Write i2c OK [16:29:32]MH_I2C_Read... [16:29:32]Read from MH i2c: D1 [16:29:32]MH_I2C_Read... [16:29:32]Read from MH i2c: D1 01 00 [16:29:32]MH_I2C_Read... [16:29:32]Read from MH i2c: D1 01 00 A3 06 00 7A [16:29:32]Write to MH i2c: 01 00 00 A4 06 AA [16:29:32]Write i2c OK [16:29:32]MH_I2C_Read... [16:29:32]OFD Sender: No OFD packet to send [16:29:33]*** Cut start [16:29:33]*** Partial cut [16:29:33]*** CUTSNS_PIN = 1 [16:29:33]*** CUTSNS_PIN = 0 [16:29:33]*** Brake cut motor [16:29:33]Read from MH i2c: 01 [16:29:33]MH_I2C_Read... [16:29:33]*** Stop cut motor [16:29:33]*** Cut end [16:29:33]Read from MH i2c: 01 07 00 [16:29:33]MH_I2C_Read... [16:29:33]Read from MH i2c: 01 07 00 A4 06 00 00 00 00 00 FF 0F BF [16:29:33]process_action close_receipt done [16:29:33]requested_data is exist [16:29:33]produce_requested_data [16:29:33]requested_item fm.sn is exist - process it [16:29:33]wFMCommunicate request_size=4 [16:29:33]MH_SAM_APDU [16:29:33]CAPDU: 80 11 00 00 [16:29:33]Write to MH i2c: E2 08 00 A5 06 80 11 00 00 00 00 00 00 25 [16:29:33]Write i2c OK [16:29:33]MH_I2C_Read... [16:29:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:33]Read from MH i2c: E2 [16:29:33]MH_I2C_Read... [16:29:33]Read from MH i2c: E2 17 00 [16:29:33]MH_I2C_Read... [16:29:33]Read from MH i2c: E2 17 00 A5 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 7B [16:29:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:29:33]wFMCommunicate OK [16:29:33]requested_item fd.num is exist - process it [16:29:33]SAM_PROTO_GetFieldsCounters [16:29:33]wFMCommunicate request_size=4 [16:29:33]MH_SAM_APDU [16:29:33]CAPDU: 80 13 00 00 [16:29:33]Write to MH i2c: E2 08 00 A6 06 80 13 00 00 00 00 00 00 28 [16:29:33]Write i2c OK [16:29:33]MH_I2C_Read... [16:29:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:29:33]Read from MH i2c: E2 [16:29:33]MH_I2C_Read... [16:29:33]Read from MH i2c: E2 62 00 [16:29:33]MH_I2C_Read... [16:29:33]Read from MH i2c: E2 62 00 A6 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A5 84 02 00 0E 04 04 00 BF 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 E3 [16:29:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A5 84 02 00 0E 04 04 00 BF 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 [16:29:33]wFMCommunicate OK [16:29:33]SAM_PROTO_GetFieldsCounters done [16:29:33]requested_item shift.num is exist - process it [16:29:33]requested_item shift.opened is exist - process it [16:29:33]req_shift_opened [16:29:33]FM_GetShiftState [16:29:33]SAM_PROTO_GetShiftState [16:29:33]wFMCommunicate request_size=4 [16:29:33]MH_SAM_APDU [16:29:33]CAPDU: 80 13 01 00 [16:29:33]Write to MH i2c: E2 08 00 A7 06 80 13 01 00 00 00 00 00 2A [16:29:33]Write i2c OK [16:29:33]MH_I2C_Read... [16:29:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:34]Read from MH i2c: E2 [16:29:34]MH_I2C_Read... [16:29:34]Read from MH i2c: E2 0E 00 [16:29:34]MH_I2C_Read... [16:29:34]Read from MH i2c: E2 0E 00 A7 06 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 AA [16:29:34]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [16:29:34]wFMCommunicate OK [16:29:34]SAM_PROTO_GetShiftState done [16:29:34]FM_GetShiftState done [16:29:34]req_shift_opened done [16:29:34]requested_item shift.open_date is exist - process it [16:29:34]req_shift_open_date [16:29:34]req_shift_open_date done [16:29:34]produce_requested_data done [16:29:34]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165029,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [16:29:34]process_action_free close_receipt [16:29:34]json_value_free [16:29:34]json_value_free done [16:29:34]process_json_proto returns [16:29:34]Send response to host [16:29:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165029,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [16:29:34]free response buf [16:29:34]execute_script done [16:29:34]execute_script returns [16:29:34]free content buf [16:29:34]Sock 9.Close socket [16:29:34]Sock 9.Thread stoped [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]accept exits with 8 [16:30:12]New connection [16:30:12]New thread 3066531172 created [16:30:12]Thread 3066674532 joined [16:30:12]Waiting for new connection... [16:30:12] Sock 8.Parse request [16:30:12]Sock 8.Check first char [16:30:12]Sock 8.First char is OK [16:30:12]request: POST /json_proto HTTP/1.0 [16:30:12]Method: POST [16:30:12]URL: /json_proto [16:30:12]Method is POST - this is cgi request [16:30:12]url: /json_proto [16:30:12]query_string will be loaded in cgi processing [16:30:12]execute_cgi json_proto POST (null) [16:30:12]execute_cgi path=json_proto method=POST [16:30:12]POST find Content-Length [16:30:12]Host: 172.17.56.4:8080 [16:30:12]Content-Length: 677 [16:30:12]Content-Type: application/json [16:30:12] [16:30:12]POST finish read [16:30:12]Found Content-Length = 677 [16:30:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459131", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.020, "sum" : 330.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 330.00, "total" : 330.00, "payments": [ { "type": 0, "sum" : 330.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:30:12]execute_script... [16:30: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)459131", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.020, "sum" : 330.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 330.00, "total" : 330.00, "payments": [ { "type": 0, "sum" : 330.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:30:12]POST & json_proto [16:30:12]process_json_proto [16:30:12]json parsed OK: [16:30:12]protocol is kg_v1.0 [16:30:12]action value=close_receipt [16:30:12]process_action close_receipt [16:30:12]cmd_close_receipt [16:30:12]MH_GetDate [16:30:12]Write to MH i2c: F0 00 00 A8 06 9D [16:30:12]Write i2c OK [16:30:12]MH_I2C_Read... [16:30:12]Read from MH i2c: F0 [16:30:12]MH_I2C_Read... [16:30:12]Read from MH i2c: F0 09 00 [16:30:12]MH_I2C_Read... [16:30:12]Read from MH i2c: F0 09 00 A8 06 00 15 FD 93 66 C9 DC B2 64 6C [16:30:12]GetLastDocTimeStamp 1720974571 [16:30:12]current date 1720974613 [16:30:12]FM_GetShiftState [16:30:12]SAM_PROTO_GetShiftState [16:30:12]wFMCommunicate request_size=4 [16:30:12]MH_SAM_APDU [16:30:12]CAPDU: 80 13 01 00 [16:30:12]Write to MH i2c: E2 08 00 A9 06 80 13 01 00 00 00 00 00 2C [16:30:12]Write i2c OK [16:30:12]MH_I2C_Read... [16:30:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:30:12]Read from MH i2c: E2 [16:30:12]MH_I2C_Read... [16:30:12]Read from MH i2c: E2 0E 00 [16:30:12]MH_I2C_Read... [16:30:12]Read from MH i2c: E2 0E 00 A9 06 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 AC [16:30:12]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [16:30:12]wFMCommunicate OK [16:30:12]SAM_PROTO_GetShiftState done [16:30:12]FM_GetShiftState done [16:30:12]opened in 1720917342 [16:30:12]opened+sec_in_day 1721003742 [16:30:12]quantity*price = 33031 [16:30:12]sum+1 = 33033 [16:30:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 330.00 Внесено: 330.00 СДАЧА: 0.00 НСП 1% : 2.92 НДС 12% : 35.08 Наличными: 330.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 228 14.07.2024 16:30 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165030 ФПД: 87713530212856 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T163013&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165030&fm=87713530212856&tin=02508201610067®Number=0000000000090829&sum=33000 [16:30:13]StoreToDocumentArchive [16:30:13]shift 447 fd 165030 [16:30:13]save to /storage/0447/doc_00165030 [16:30:13]save last doc name /storage/0447/doc_00165030 to /storage/kkm_last_doc_name [16:30:13]save OK [16:30:13]Clear old archive folders... [16:30:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:30:13]tlvbuf is 014666B0 [16:30:13]SAM_PROTO_ClearQueue [16:30:13]wFMCommunicate request_size=4 [16:30:13]MH_SAM_APDU [16:30:13]CAPDU: 80 09 00 00 [16:30:13]Write to MH i2c: E2 08 00 B6 06 80 09 00 00 00 00 00 00 2E [16:30:13]Write i2c OK [16:30:13]MH_I2C_Read... [16:30:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:30:13]Read from MH i2c: E2 [16:30:13]MH_I2C_Read... [16:30:13]Read from MH i2c: E2 03 00 [16:30:13]MH_I2C_Read... [16:30:13]Read from MH i2c: E2 03 00 B6 06 00 90 00 30 [16:30:13]RAPDU: 90 00 [16:30:13]wFMCommunicate OK [16:30:13]SAM_PROTO_ClearQueue done [16:30:13]KKMCreateOFDPacket [16:30:13]OFDProtocolAddRootSTLVToBuf [16:30:13]FM_MakeSignedData [16:30:13]FM_MakeSignedData [16:30:13]SAM_PROTO_SignData [16:30:13]wFMCommunicate request_size=4 [16:30:13]MH_SAM_APDU [16:30:13]CAPDU: 80 0D 01 02 [16:30:13]Write to MH i2c: E2 08 00 B7 06 80 0D 01 02 00 00 00 00 36 [16:30:13]Write i2c OK [16:30:13]MH_I2C_Read... [16:30:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:30:13]Read from MH i2c: E2 [16:30:13]MH_I2C_Read... [16:30:13]Read from MH i2c: E2 03 00 [16:30:13]MH_I2C_Read... [16:30:13]Read from MH i2c: E2 03 00 B7 06 00 90 00 31 [16:30:13]RAPDU: 90 00 [16:30:13]wFMCommunicate OK [16:30:13]wFMCommunicate request_size=255 [16:30:13]MH_SAM_APDU [16:30:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 15 FD 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A6 84 02 00 35 04 06 00 4F [16:30:13]Write to MH i2c: E2 02 01 B8 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 15 FD 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A6 84 02 00 35 04 06 00 4F 00 00 2B [16:30:13]Write i2c OK [16:30:13]MH_I2C_Read... [16:30:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:30:13]Read from MH i2c: E2 [16:30:13]MH_I2C_Read... [16:30:13]Read from MH i2c: E2 03 00 [16:30:13]MH_I2C_Read... [16:30:13]Read from MH i2c: E2 03 00 B8 06 00 90 00 32 [16:30:13]RAPDU: 90 00 [16:30:13]wFMCommunicate OK [16:30:13]wFMCommunicate request_size=10 [16:30:13]MH_SAM_APDU [16:30:13]CAPDU: 80 0D 02 02 05 C6 65 CF 71 F8 [16:30:13]Write to MH i2c: E2 0D 00 B9 06 80 0D 02 02 05 00 C6 65 CF 71 F8 00 00 A6 [16:30:13]Write i2c OK [16:30:13]MH_I2C_Read... [16:30:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:30:13]Read from MH i2c: E2 [16:30:13]MH_I2C_Read... [16:30:13]Read from MH i2c: E2 03 00 [16:30:13]MH_I2C_Read... [16:30:13]Read from MH i2c: E2 03 00 B9 06 00 90 00 33 [16:30:13]RAPDU: 90 00 [16:30:13]wFMCommunicate OK [16:30:13]wFMCommunicate request_size=4 [16:30:13]MH_SAM_APDU [16:30:13]CAPDU: 80 0D 03 02 [16:30:13]Write to MH i2c: E2 08 00 BA 06 80 0D 03 02 00 00 00 00 3B [16:30:13]Write i2c OK [16:30:13]MH_I2C_Read... [16:30:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:30:13]Read from MH i2c: E2 [16:30:13]MH_I2C_Read... [16:30:13]Read from MH i2c: E2 0B 00 [16:30:13]MH_I2C_Read... [16:30:13]Read from MH i2c: E2 0B 00 BA 06 00 5B C3 1A 14 40 74 60 7F 90 00 1B [16:30:13]RAPDU: 5B C3 1A 14 40 74 60 7F 90 00 [16:30:13]wFMCommunicate OK [16:30:13]SAM_PROTO_SignData done [16:30:13]FM_MakeSignedData done [16:30:13]CreateOFDProtocolMessage [16:30:13]wFMCommunicate request_size=4 [16:30:13]MH_SAM_APDU [16:30:13]CAPDU: 80 11 00 00 [16:30:13]Write to MH i2c: E2 08 00 BB 06 80 11 00 00 00 00 00 00 3B [16:30:13]Write i2c OK [16:30:13]MH_I2C_Read... [16:30:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:30:13]Read from MH i2c: E2 [16:30:13]MH_I2C_Read... [16:30:13]Read from MH i2c: E2 17 00 [16:30:13]MH_I2C_Read... [16:30:13]Read from MH i2c: E2 17 00 BB 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 91 [16:30:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:30:13]wFMCommunicate OK [16:30:13]CreateOFDProtocolMessage done [16:30:13]OFDSenderStorePacket 165030 [16:30:13]StoreOFDPacket docnum=165030 [16:30:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 E8 36 07 01 98 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 15 FD 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A6 84 02 00 35 04 06 00 4F C6 65 CF 71 F8 5B C3 1A 14 40 74 60 7F [16:30:13]CheckFolder [16:30:13]dirname=/storage/ofd_packets [16:30:13]CheckFolder done [16:30:13]ProducePacketName [16:30:13]name=ofd_packets/00165030 [16:30:13]NVStorageSaveData ofd_packets/00165030 [16:30:13]File name is /storage/ofd_packets/00165030 [16:30:13]Write 301 bytes [16:30:13]NVStorageSaveData done [16:30:13]OFDSenderStorePacket done [16:30:13]KKMCreateOFDPacket done [16:30:13]NVStorageSaveData kkm_last_timestamp [16:30:13]File name is /storage/kkm_last_timestamp [16:30:13]Write 4 bytes [16:30:13]NVStorageSaveData done [16:30:13]ExternCall_PrintAddStr [16:30:13]wPrintStart [16:30:13]Write to MH i2c: 01 00 00 BC 06 C2 [16:30:13]Write i2c OK [16:30:13]MH_I2C_Read... [16:30:13]Read from MH i2c: 01 [16:30:13]MH_I2C_Read... [16:30:13]Read from MH i2c: 01 07 00 [16:30:13]MH_I2C_Read... [16:30:13]Read from MH i2c: 01 07 00 BC 06 00 00 00 00 00 FF 0F D7 [16:30:13]RasterBufferAndPrint [16:30:13]line Счет N : (1)459131 [16:30:13]line ИНН: 02508201610067 [16:30:13]line Контрольно-Кассовый Чек [16:30:13]line ПРОДАЖА [16:30:13]line ТРК (МРК, ГНК) : 12 [16:30:13]line Товар: 2710124130 [16:30:13]line Аи-92-К-5 [16:30:13]line 5.020 * 65.80 [16:30:13]line = 330.32 [16:30:13]line НДС 12% НСП 1% [16:30:13]line > о реализуемом товаре [16:30:13]line ОКРУГЛЕНИЕ: -0.32 [16:30:13]line ИТОГО: 330.00 [16:30:13]line Внесено: 330.00 [16:30:13]line СДАЧА: 0.00 [16:30:13]line НСП 1% : 2.92 [16:30:13]line НДС 12% : 35.08 [16:30:13]line Наличными: 330.00 [16:30:13]line Безнал.: 0.00 [16:30:13]line Место: АЗС № 72 "Партнер Нефть" [16:30:13]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:30:13]line СНО: Общий режим [16:30:13]line Чек 228 14.07.2024 16:30 [16:30:13]line Смена: 447 ФФД: 1.0 [16:30:13]line ЗНМ: 0300000160 [16:30:13]line РНМ: 0000000000090829 [16:30:13]line Версия ККМ: 001 [16:30:13]line ФМ: 0000000000874718 [16:30:13]line ФД: 165030 [16:30:13]line ФПД: 87713530212856 [16:30:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T163013&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165030&fm=87713530212856&tin=02508201610067®Number=0000000000090829&sum=33000 [16:30:14]written 0, free lines is 4095 [16:30:14]OFD Sender: Processing packet 165030 [packets to send 105, broken 104] [16:30:14]ProducePacketName [16:30:14]name=ofd_packets/00165030 [16:30:14]OFD Sender: To server: pG, [16:30:14]CommunicateWithHost lk.salyk.kg:30040 [16:30:14]ConnectInit lk.salyk.kg [16:30:14]Connected sock=10 [16:30:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 E8 36 07 01 98 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 15 FD 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A6 84 02 00 35 04 06 00 4F C6 65 CF 71 F8 5B C3 1A 14 40 74 60 7F [16:30:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 B5 7A 47 00 B1 F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A6 84 02 00 F4 03 04 00 A2 A3 93 66 B6 04 01 00 00 5D D6 9E CA 2E 72 1C C9 [16:30:14]CommunicateWithHost err = 0 [16:30:14]CheckOFDResponse [16:30:14]1017 (14) - 77093643461234 [16:30:14]1041 (16) - 0000000000874718 [16:30:14]1040 (4) - 165030 [16:30:14]1012 (4) - 14.07.2024 10:08 [16:30:14]1206 (1) - 0 [16:30:14]OFD Sender: Remove packet 165030 [16:30:14]ProducePacketName [16:30:14]name=ofd_packets/00165030 [16:30:14]NVStorageDeleteData [16:30:14]Write to MH i2c: 01 00 00 E6 06 EC [16:30:14]Write i2c OK [16:30:14]MH_I2C_Read... [16:30:14]Read from MH i2c: 01 [16:30:14]MH_I2C_Read... [16:30:14]Read from MH i2c: 01 07 00 [16:30:14]MH_I2C_Read... [16:30:14]Read from MH i2c: 01 07 00 E6 06 00 00 00 00 00 F3 0C F2 [16:30:14]RasterBufferAndPrint [16:30:14]line [16:30:14]line [16:30:14]line [16:30:14]line [16:30:14]line [16:30:14]written 0, free lines is 3322 [16:30:14]MH_Cut [16:30:14]Write to MH i2c: D1 01 00 ED 06 01 C5 [16:30:14]Write i2c OK [16:30:14]MH_I2C_Read... [16:30:14]Read from MH i2c: D1 [16:30:14]MH_I2C_Read... [16:30:14]Read from MH i2c: D1 01 00 [16:30:14]MH_I2C_Read... [16:30:14]Read from MH i2c: D1 01 00 ED 06 00 C4 [16:30:14]Write to MH i2c: 01 00 00 EE 06 F4 [16:30:14]Write i2c OK [16:30:14]MH_I2C_Read... [16:30:14]OFD Sender: No OFD packet to send [16:30:15]*** Cut start [16:30:15]*** Partial cut [16:30:15]*** CUTSNS_PIN = 1 [16:30:15]*** CUTSNS_PIN = 0 [16:30:15]*** Brake cut motor [16:30:15]Read from MH i2c: 01 [16:30:15]MH_I2C_Read... [16:30:15]*** Stop cut motor [16:30:15]*** Cut end [16:30:15]Read from MH i2c: 01 07 00 [16:30:15]MH_I2C_Read... [16:30:15]Read from MH i2c: 01 07 00 EE 06 00 00 00 00 00 FF 0F 09 [16:30:15]process_action close_receipt done [16:30:15]requested_data is exist [16:30:15]produce_requested_data [16:30:15]requested_item fm.sn is exist - process it [16:30:15]wFMCommunicate request_size=4 [16:30:15]MH_SAM_APDU [16:30:15]CAPDU: 80 11 00 00 [16:30:15]Write to MH i2c: E2 08 00 EF 06 80 11 00 00 00 00 00 00 6F [16:30:15]Write i2c OK [16:30:15]MH_I2C_Read... [16:30:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:30:15]Read from MH i2c: E2 [16:30:15]MH_I2C_Read... [16:30:15]Read from MH i2c: E2 17 00 [16:30:15]MH_I2C_Read... [16:30:15]Read from MH i2c: E2 17 00 EF 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C5 [16:30:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:30:15]wFMCommunicate OK [16:30:15]requested_item fd.num is exist - process it [16:30:15]SAM_PROTO_GetFieldsCounters [16:30:15]wFMCommunicate request_size=4 [16:30:15]MH_SAM_APDU [16:30:15]CAPDU: 80 13 00 00 [16:30:15]Write to MH i2c: E2 08 00 F0 06 80 13 00 00 00 00 00 00 72 [16:30:15]Write i2c OK [16:30:15]MH_I2C_Read... [16:30:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:30:16]Read from MH i2c: E2 [16:30:16]MH_I2C_Read... [16:30:16]Read from MH i2c: E2 62 00 [16:30:16]MH_I2C_Read... [16:30:16]Read from MH i2c: E2 62 00 F0 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A6 84 02 00 0E 04 04 00 BF 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 31 [16:30:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A6 84 02 00 0E 04 04 00 BF 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 [16:30:16]wFMCommunicate OK [16:30:16]SAM_PROTO_GetFieldsCounters done [16:30:16]requested_item shift.num is exist - process it [16:30:16]requested_item shift.opened is exist - process it [16:30:16]req_shift_opened [16:30:16]FM_GetShiftState [16:30:16]SAM_PROTO_GetShiftState [16:30:16]wFMCommunicate request_size=4 [16:30:16]MH_SAM_APDU [16:30:16]CAPDU: 80 13 01 00 [16:30:16]Write to MH i2c: E2 08 00 F1 06 80 13 01 00 00 00 00 00 74 [16:30:16]Write i2c OK [16:30:16]MH_I2C_Read... [16:30:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:30:16]Read from MH i2c: E2 [16:30:16]MH_I2C_Read... [16:30:16]Read from MH i2c: E2 0E 00 [16:30:16]MH_I2C_Read... [16:30:16]Read from MH i2c: E2 0E 00 F1 06 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 F4 [16:30:16]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [16:30:16]wFMCommunicate OK [16:30:16]SAM_PROTO_GetShiftState done [16:30:16]FM_GetShiftState done [16:30:16]req_shift_opened done [16:30:16]requested_item shift.open_date is exist - process it [16:30:16]req_shift_open_date [16:30:16]req_shift_open_date done [16:30:16]produce_requested_data done [16:30:16]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165030,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [16:30:16]process_action_free close_receipt [16:30:16]json_value_free [16:30:16]json_value_free done [16:30:16]process_json_proto returns [16:30:16]Send response to host [16:30:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165030,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [16:30:16]free response buf [16:30:16]execute_script done [16:30:16]execute_script returns [16:30:16]free content buf [16:30:16]Sock 8.Close socket [16:30:16]Sock 8.Thread stoped [16:30:19]OFD Sender: No OFD packet to send [16:30:24]OFD Sender: No OFD packet to send [16:30:29]OFD Sender: No OFD packet to send [16:30:34]OFD Sender: No OFD packet to send [16:30:39]OFD Sender: No OFD packet to send [16:30:44]OFD Sender: No OFD packet to send [16:30:49]OFD Sender: No OFD packet to send [16:30:54]OFD Sender: No OFD packet to send [16:30:59]OFD Sender: No OFD packet to send [16:31:04]OFD Sender: No OFD packet to send [16:31:09]OFD Sender: No OFD packet to send [16:31:14]OFD Sender: No OFD packet to send [16:31:19]OFD Sender: No OFD packet to send [16:31:24]OFD Sender: No OFD packet to send [16:31:29]OFD Sender: No OFD packet to send [16:31:34]OFD Sender: No OFD packet to send [16:31:39]OFD Sender: No OFD packet to send [16:31:44]OFD Sender: No OFD packet to send [16:31:49]OFD Sender: No OFD packet to send [16:31:55]OFD Sender: No OFD packet to send [16:32:00]OFD Sender: No OFD packet to send [16:32:05]OFD Sender: No OFD packet to send [16:32:10]OFD Sender: No OFD packet to send [16:32:15]OFD Sender: No OFD packet to send [16:32:20]OFD Sender: No OFD packet to send [16:32:25]OFD Sender: No OFD packet to send [16:32:30]OFD Sender: No OFD packet to send [16:32:31]accept exits with 9 [16:32:31]New connection [16:32:31]New thread 3066674532 created [16:32:31]Thread 3066531172 joined [16:32:31]Waiting for new connection... [16:32:31] Sock 9.Parse request [16:32:31]Sock 9.Check first char [16:32:31]Sock 9.First char is OK [16:32:31]request: POST /json_proto HTTP/1.0 [16:32:31]Method: POST [16:32:31]URL: /json_proto [16:32:31]Method is POST - this is cgi request [16:32:31]url: /json_proto [16:32:31]query_string will be loaded in cgi processing [16:32:31]execute_cgi json_proto POST (null) [16:32:31]execute_cgi path=json_proto method=POST [16:32:31]POST find Content-Length [16:32:31]Host: 172.17.56.4:8080 [16:32:31]Content-Length: 840 [16:32:31]Content-Type: application/json [16:32:31] [16:32:31]POST finish read [16:32:31]Found Content-Length = 840 [16:32:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459132", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 7.670, "sum" : 500.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:32:31]execute_script... [16:32: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)459132", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 7.670, "sum" : 500.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:32:31]POST & json_proto [16:32:31]process_json_proto [16:32:31]json parsed OK: [16:32:31]protocol is kg_v1.0 [16:32:31]action value=close_receipt [16:32:31]process_action close_receipt [16:32:31]cmd_close_receipt [16:32:31]MH_GetDate [16:32:31]Write to MH i2c: F0 00 00 F2 06 E7 [16:32:31]Write i2c OK [16:32:31]MH_I2C_Read... [16:32:31]Read from MH i2c: F0 [16:32:31]MH_I2C_Read... [16:32:31]Read from MH i2c: F0 09 00 [16:32:31]MH_I2C_Read... [16:32:31]Read from MH i2c: F0 09 00 F2 06 00 A0 FD 93 66 C9 DC B2 64 41 [16:32:31]GetLastDocTimeStamp 1720974613 [16:32:31]current date 1720974752 [16:32:31]FM_GetShiftState [16:32:31]SAM_PROTO_GetShiftState [16:32:31]wFMCommunicate request_size=4 [16:32:31]MH_SAM_APDU [16:32:31]CAPDU: 80 13 01 00 [16:32:31]Write to MH i2c: E2 08 00 F3 06 80 13 01 00 00 00 00 00 76 [16:32:31]Write i2c OK [16:32:31]MH_I2C_Read... [16:32:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:32:31]Read from MH i2c: E2 [16:32:31]MH_I2C_Read... [16:32:31]Read from MH i2c: E2 0E 00 [16:32:31]MH_I2C_Read... [16:32:31]Read from MH i2c: E2 0E 00 F3 06 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 F6 [16:32:31]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [16:32:31]wFMCommunicate OK [16:32:31]SAM_PROTO_GetShiftState done [16:32:31]FM_GetShiftState done [16:32:31]opened in 1720917342 [16:32:31]opened+sec_in_day 1721003742 [16:32:31]quantity*price = 50023 [16:32:31]sum+1 = 50025 [16:32:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.24 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.24 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 229 14.07.2024 16:32 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874718 ФД: 165031 ФПД: 103425727734841 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T163232&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165031&fm=103425727734841&tin=02508201610067®Number=0000000000090829&sum=50024 [16:32:32]StoreToDocumentArchive [16:32:32]shift 447 fd 165031 [16:32:32]save to /storage/0447/doc_00165031 [16:32:32]save last doc name /storage/0447/doc_00165031 to /storage/kkm_last_doc_name [16:32:32]save OK [16:32:32]Clear old archive folders... [16:32:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:32:32]tlvbuf is 01464E60 [16:32:32]SAM_PROTO_ClearQueue [16:32:32]wFMCommunicate request_size=4 [16:32:32]MH_SAM_APDU [16:32:32]CAPDU: 80 09 00 00 [16:32:32]Write to MH i2c: E2 08 00 00 07 80 09 00 00 00 00 00 00 79 [16:32:32]Write i2c OK [16:32:32]MH_I2C_Read... [16:32:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:32:32]Read from MH i2c: E2 [16:32:32]MH_I2C_Read... [16:32:32]Read from MH i2c: E2 03 00 [16:32:32]MH_I2C_Read... [16:32:32]Read from MH i2c: E2 03 00 00 07 00 90 00 7B [16:32:32]RAPDU: 90 00 [16:32:32]wFMCommunicate OK [16:32:32]SAM_PROTO_ClearQueue done [16:32:32]KKMCreateOFDPacket [16:32:32]OFDProtocolAddRootSTLVToBuf [16:32:32]FM_MakeSignedData [16:32:32]FM_MakeSignedData [16:32:32]SAM_PROTO_SignData [16:32:32]wFMCommunicate request_size=4 [16:32:32]MH_SAM_APDU [16:32:32]CAPDU: 80 0D 01 02 [16:32:32]Write to MH i2c: E2 08 00 01 07 80 0D 01 02 00 00 00 00 81 [16:32:32]Write i2c OK [16:32:32]MH_I2C_Read... [16:32:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:32:32]Read from MH i2c: E2 [16:32:32]MH_I2C_Read... [16:32:32]Read from MH i2c: E2 03 00 [16:32:32]MH_I2C_Read... [16:32:32]Read from MH i2c: E2 03 00 01 07 00 90 00 7C [16:32:32]RAPDU: 90 00 [16:32:32]wFMCommunicate OK [16:32:32]wFMCommunicate request_size=255 [16:32:32]MH_SAM_APDU [16:32:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 A0 FD 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A7 84 02 00 35 04 06 00 5E [16:32:32]Write to MH i2c: E2 02 01 02 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 A0 FD 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A7 84 02 00 35 04 06 00 5E 00 00 0E [16:32:32]Write i2c OK [16:32:32]MH_I2C_Read... [16:32:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:32:32]Read from MH i2c: E2 [16:32:32]MH_I2C_Read... [16:32:32]Read from MH i2c: E2 03 00 [16:32:32]MH_I2C_Read... [16:32:32]Read from MH i2c: E2 03 00 02 07 00 90 00 7D [16:32:32]RAPDU: 90 00 [16:32:32]wFMCommunicate OK [16:32:32]wFMCommunicate request_size=10 [16:32:32]MH_SAM_APDU [16:32:32]CAPDU: 80 0D 02 02 05 10 AD C3 24 39 [16:32:32]Write to MH i2c: E2 0D 00 03 07 80 0D 02 02 05 00 10 AD C3 24 39 00 00 6B [16:32:32]Write i2c OK [16:32:32]MH_I2C_Read... [16:32:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:32:32]Read from MH i2c: E2 [16:32:32]MH_I2C_Read... [16:32:32]Read from MH i2c: E2 03 00 [16:32:32]MH_I2C_Read... [16:32:32]Read from MH i2c: E2 03 00 03 07 00 90 00 7E [16:32:32]RAPDU: 90 00 [16:32:32]wFMCommunicate OK [16:32:32]wFMCommunicate request_size=4 [16:32:32]MH_SAM_APDU [16:32:32]CAPDU: 80 0D 03 02 [16:32:32]Write to MH i2c: E2 08 00 04 07 80 0D 03 02 00 00 00 00 86 [16:32:32]Write i2c OK [16:32:32]MH_I2C_Read... [16:32:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:32:32]Read from MH i2c: E2 [16:32:32]MH_I2C_Read... [16:32:32]Read from MH i2c: E2 0B 00 [16:32:32]MH_I2C_Read... [16:32:32]Read from MH i2c: E2 0B 00 04 07 00 75 E9 38 B3 A8 BD 52 F5 90 00 7C [16:32:32]RAPDU: 75 E9 38 B3 A8 BD 52 F5 90 00 [16:32:32]wFMCommunicate OK [16:32:32]SAM_PROTO_SignData done [16:32:32]FM_MakeSignedData done [16:32:32]CreateOFDProtocolMessage [16:32:32]wFMCommunicate request_size=4 [16:32:32]MH_SAM_APDU [16:32:32]CAPDU: 80 11 00 00 [16:32:32]Write to MH i2c: E2 08 00 05 07 80 11 00 00 00 00 00 00 86 [16:32:32]Write i2c OK [16:32:32]MH_I2C_Read... [16:32:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:32:32]Read from MH i2c: E2 [16:32:32]MH_I2C_Read... [16:32:32]Read from MH i2c: E2 17 00 [16:32:32]MH_I2C_Read... [16:32:32]Read from MH i2c: E2 17 00 05 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DC [16:32:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:32:32]wFMCommunicate OK [16:32:32]CreateOFDProtocolMessage done [16:32:32]OFDSenderStorePacket 165031 [16:32:32]StoreOFDPacket docnum=165031 [16:32:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 06 4E 07 01 66 D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 A0 FD 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A7 84 02 00 35 04 06 00 5E 10 AD C3 24 39 75 E9 38 B3 A8 BD 52 F5 [16:32:32]CheckFolder [16:32:32]dirname=/storage/ofd_packets [16:32:32]CheckFolder done [16:32:32]ProducePacketName [16:32:32]name=ofd_packets/00165031 [16:32:32]NVStorageSaveData ofd_packets/00165031 [16:32:32]File name is /storage/ofd_packets/00165031 [16:32:32]Write 301 bytes [16:32:32]NVStorageSaveData done [16:32:32]OFDSenderStorePacket done [16:32:32]KKMCreateOFDPacket done [16:32:32]NVStorageSaveData kkm_last_timestamp [16:32:32]File name is /storage/kkm_last_timestamp [16:32:32]Write 4 bytes [16:32:32]NVStorageSaveData done [16:32:32]ExternCall_PrintAddStr [16:32:32]wPrintStart [16:32:32]Write to MH i2c: 01 00 00 06 07 0D [16:32:32]Write i2c OK [16:32:32]MH_I2C_Read... [16:32:32]Read from MH i2c: 01 [16:32:32]MH_I2C_Read... [16:32:32]Read from MH i2c: 01 07 00 [16:32:32]MH_I2C_Read... [16:32:32]Read from MH i2c: 01 07 00 06 07 00 00 00 00 00 FF 0F 22 [16:32:32]RasterBufferAndPrint [16:32:32]line Счет N : (1)459132 [16:32:32]line ИНН: 02508201610067 [16:32:32]line Контрольно-Кассовый Чек [16:32:32]line ПРОДАЖА [16:32:32]line ТРК (МРК, ГНК) : 22 [16:32:32]line Товар: 2710124130 [16:32:32]line Аи-92-К-5 [16:32:32]line 7.670 * 65.22 [16:32:32]line = 500.24 [16:32:32]line НДС 12% НСП 1% [16:32:32]line > о реализуемом товаре [16:32:32]line ИТОГО: 500.24 [16:32:32]line НСП 1% : 4.43 [16:32:32]line НДС 12% : 53.12 [16:32:32]line Наличными: 0.00 [16:32:32]line Безнал.: 500.24 [16:32:32]line Место: АЗС № 72 "Партнер Нефть" [16:32:32]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:32:32]line СНО: Общий режим [16:32:32]line Чек 229 14.07.2024 16:32 [16:32:32]line Смена: 447 ФФД: 1.0 [16:32:32]line ЗНМ: 0300000160 [16:32:32]line РНМ: 0000000000090829 [16:32:32]line Версия ККМ: 001 [16:32:32]line Платежная система: АКБ Кыргызстан [16:32:32]line ФМ: 0000000000874718 [16:32:32]line ФД: 165031 [16:32:32]line ФПД: 103425727734841 [16:32:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T163232&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165031&fm=103425727734841&tin=02508201610067®Number=0000000000090829&sum=50024 [16:32:32]written 0, free lines is 4095 [16:32:32]OFD Sender: Processing packet 165031 [packets to send 105, broken 104] [16:32:32]ProducePacketName [16:32:32]name=ofd_packets/00165031 [16:32:33]OFD Sender: To server: pG, [16:32:33]CommunicateWithHost lk.salyk.kg:30040 [16:32:33]ConnectInit lk.salyk.kg [16:32:33]Connected sock=10 [16:32:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 06 4E 07 01 66 D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 A0 FD 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A7 84 02 00 35 04 06 00 5E 10 AD C3 24 39 75 E9 38 B3 A8 BD 52 F5 [16:32:33]Write to MH i2c: 01 00 00 2F 07 36 [16:32:33]Write i2c OK [16:32:33]MH_I2C_Read... [16:32:33]Read from MH i2c: 01 [16:32:33]MH_I2C_Read... [16:32:33]Read from MH i2c: 01 07 00 [16:32:33]MH_I2C_Read... [16:32:33]Read from MH i2c: 01 07 00 2F 07 00 00 00 00 00 18 0D 62 [16:32:33]RasterBufferAndPrint [16:32:33]line [16:32:33]line [16:32:33]line [16:32:33]line [16:32:33]line [16:32:33]written 0, free lines is 3358 [16:32:33]MH_Cut [16:32:33]Write to MH i2c: D1 01 00 36 07 01 0F [16:32:33]Write i2c OK [16:32:33]MH_I2C_Read... [16:32:33]Read from MH i2c: D1 [16:32:33]MH_I2C_Read... [16:32:33]Read from MH i2c: D1 01 00 [16:32:33]MH_I2C_Read... [16:32:33]Read from MH i2c: D1 01 00 36 07 00 0E [16:32:33]Write to MH i2c: 01 00 00 37 07 3E [16:32:33]Write i2c OK [16:32:33]MH_I2C_Read... [16:32:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 BA 1C 47 00 B4 F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A7 84 02 00 F4 03 04 00 2D A4 93 66 B6 04 01 00 00 2C BE 60 AA 75 55 DA 17 [16:32:33]CommunicateWithHost err = 0 [16:32:33]CheckOFDResponse [16:32:33]1017 (14) - 77093643461234 [16:32:33]1041 (16) - 0000000000874718 [16:32:33]1040 (4) - 165031 [16:32:33]1012 (4) - 14.07.2024 10:10 [16:32:33]1206 (1) - 0 [16:32:33]OFD Sender: Remove packet 165031 [16:32:33]ProducePacketName [16:32:33]name=ofd_packets/00165031 [16:32:33]NVStorageDeleteData [16:32:33]*** Cut start [16:32:33]*** Partial cut [16:32:33]*** CUTSNS_PIN = 1 [16:32:33]*** CUTSNS_PIN = 0 [16:32:33]OFD Sender: No OFD packet to send [16:32:34]*** Brake cut motor [16:32:34]Read from MH i2c: 01 [16:32:34]MH_I2C_Read... [16:32:34]*** Stop cut motor [16:32:34]*** Cut end [16:32:34]Read from MH i2c: 01 07 00 [16:32:34]MH_I2C_Read... [16:32:34]Read from MH i2c: 01 07 00 37 07 00 00 00 00 00 FF 0F 53 [16:32:34]process_action close_receipt done [16:32:34]requested_data is exist [16:32:34]produce_requested_data [16:32:34]requested_item fm.sn is exist - process it [16:32:34]wFMCommunicate request_size=4 [16:32:34]MH_SAM_APDU [16:32:34]CAPDU: 80 11 00 00 [16:32:34]Write to MH i2c: E2 08 00 38 07 80 11 00 00 00 00 00 00 B9 [16:32:34]Write i2c OK [16:32:34]MH_I2C_Read... [16:32:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:32:34]Read from MH i2c: E2 [16:32:34]MH_I2C_Read... [16:32:34]Read from MH i2c: E2 17 00 [16:32:34]MH_I2C_Read... [16:32:34]Read from MH i2c: E2 17 00 38 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 0F [16:32:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:32:34]wFMCommunicate OK [16:32:34]requested_item fd.num is exist - process it [16:32:34]SAM_PROTO_GetFieldsCounters [16:32:34]wFMCommunicate request_size=4 [16:32:34]MH_SAM_APDU [16:32:34]CAPDU: 80 13 00 00 [16:32:34]Write to MH i2c: E2 08 00 39 07 80 13 00 00 00 00 00 00 BC [16:32:34]Write i2c OK [16:32:34]MH_I2C_Read... [16:32:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:32:34]Read from MH i2c: E2 [16:32:34]MH_I2C_Read... [16:32:34]Read from MH i2c: E2 62 00 [16:32:34]MH_I2C_Read... [16:32:34]Read from MH i2c: E2 62 00 39 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A7 84 02 00 0E 04 04 00 BF 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 7F [16:32:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A7 84 02 00 0E 04 04 00 BF 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 [16:32:34]wFMCommunicate OK [16:32:34]SAM_PROTO_GetFieldsCounters done [16:32:34]requested_item shift.num is exist - process it [16:32:34]requested_item shift.opened is exist - process it [16:32:34]req_shift_opened [16:32:34]FM_GetShiftState [16:32:34]SAM_PROTO_GetShiftState [16:32:34]wFMCommunicate request_size=4 [16:32:34]MH_SAM_APDU [16:32:34]CAPDU: 80 13 01 00 [16:32:34]Write to MH i2c: E2 08 00 3A 07 80 13 01 00 00 00 00 00 BE [16:32:34]Write i2c OK [16:32:34]MH_I2C_Read... [16:32:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:32:34]Read from MH i2c: E2 [16:32:34]MH_I2C_Read... [16:32:34]Read from MH i2c: E2 0E 00 [16:32:34]MH_I2C_Read... [16:32:34]Read from MH i2c: E2 0E 00 3A 07 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 3E [16:32:34]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [16:32:34]wFMCommunicate OK [16:32:34]SAM_PROTO_GetShiftState done [16:32:34]FM_GetShiftState done [16:32:34]req_shift_opened done [16:32:34]requested_item shift.open_date is exist - process it [16:32:34]req_shift_open_date [16:32:34]req_shift_open_date done [16:32:34]produce_requested_data done [16:32:34]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165031,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [16:32:34]process_action_free close_receipt [16:32:34]json_value_free [16:32:34]json_value_free done [16:32:34]process_json_proto returns [16:32:34]Send response to host [16:32:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165031,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [16:32:34]free response buf [16:32:34]execute_script done [16:32:34]execute_script returns [16:32:34]free content buf [16:32:34]Sock 9.Close socket [16:32:34]Sock 9.Thread stoped [16:32:38]OFD Sender: No OFD packet to send [16:32:43]OFD Sender: No OFD packet to send [16:32:48]OFD Sender: No OFD packet to send [16:32:53]OFD Sender: No OFD packet to send [16:32:58]OFD Sender: No OFD packet to send [16:33:03]OFD Sender: No OFD packet to send [16:33:08]OFD Sender: No OFD packet to send [16:33:13]OFD Sender: No OFD packet to send [16:33:18]OFD Sender: No OFD packet to send [16:33:23]OFD Sender: No OFD packet to send [16:33:28]OFD Sender: No OFD packet to send [16:33:33]OFD Sender: No OFD packet to send [16:33:38]OFD Sender: No OFD packet to send [16:33:43]OFD Sender: No OFD packet to send [16:33:49]OFD Sender: No OFD packet to send [16:33:54]OFD Sender: No OFD packet to send [16:33:59]OFD Sender: No OFD packet to send [16:34: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:09]OFD Sender: No OFD packet to send [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:35]accept exits with 8 [16:35:35]New connection [16:35:35]New thread 3066531172 created [16:35:35]Thread 3066674532 joined [16:35:35]Waiting for new connection... [16:35:35] Sock 8.Parse request [16:35:35]Sock 8.Check first char [16:35:35]Sock 8.First char is OK [16:35:35]request: POST /json_proto HTTP/1.0 [16:35:35]Method: POST [16:35:35]URL: /json_proto [16:35:35]Method is POST - this is cgi request [16:35:35]url: /json_proto [16:35:35]query_string will be loaded in cgi processing [16:35:35]execute_cgi json_proto POST (null) [16:35:35]execute_cgi path=json_proto method=POST [16:35:35]POST find Content-Length [16:35:35]Host: 172.17.56.4:8080 [16:35:35]Content-Length: 677 [16:35:35]Content-Type: application/json [16:35:35] [16:35:35]POST finish read [16:35:35]Found Content-Length = 677 [16:35:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459133", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 2.280, "sum" : 150.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:35:35]execute_script... [16:35: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)459133", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 2.280, "sum" : 150.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:35:35]POST & json_proto [16:35:35]process_json_proto [16:35:35]json parsed OK: [16:35:35]protocol is kg_v1.0 [16:35:35]action value=close_receipt [16:35:35]process_action close_receipt [16:35:35]cmd_close_receipt [16:35:35]MH_GetDate [16:35:35]Write to MH i2c: F0 00 00 3B 07 31 [16:35:35]Write i2c OK [16:35:35]MH_I2C_Read... [16:35:35]Read from MH i2c: F0 [16:35:35]MH_I2C_Read... [16:35:35]Read from MH i2c: F0 09 00 [16:35:35]MH_I2C_Read... [16:35:35]Read from MH i2c: F0 09 00 3B 07 00 58 FE 93 66 C9 DC B2 64 44 [16:35:35]GetLastDocTimeStamp 1720974752 [16:35:35]current date 1720974936 [16:35:35]FM_GetShiftState [16:35:35]SAM_PROTO_GetShiftState [16:35:35]wFMCommunicate request_size=4 [16:35:35]MH_SAM_APDU [16:35:35]CAPDU: 80 13 01 00 [16:35:35]Write to MH i2c: E2 08 00 3C 07 80 13 01 00 00 00 00 00 C0 [16:35:35]Write i2c OK [16:35:35]MH_I2C_Read... [16:35:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:35:35]Read from MH i2c: E2 [16:35:35]MH_I2C_Read... [16:35:35]Read from MH i2c: E2 0E 00 [16:35:35]MH_I2C_Read... [16:35:35]Read from MH i2c: E2 0E 00 3C 07 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 40 [16:35:35]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [16:35:35]wFMCommunicate OK [16:35:35]SAM_PROTO_GetShiftState done [16:35:35]FM_GetShiftState done [16:35:35]opened in 1720917342 [16:35:35]opened+sec_in_day 1721003742 [16:35:35]quantity*price = 15002 [16:35:35]sum+1 = 15003 [16:35:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 150.00 Внесено: 150.00 СДАЧА: 0.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 230 14.07.2024 16:35 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165032 ФПД: 152462893963809 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T163536&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165032&fm=152462893963809&tin=02508201610067®Number=0000000000090829&sum=15000 [16:35:36]StoreToDocumentArchive [16:35:36]shift 447 fd 165032 [16:35:36]save to /storage/0447/doc_00165032 [16:35:36]save last doc name /storage/0447/doc_00165032 to /storage/kkm_last_doc_name [16:35:36]save OK [16:35:36]Clear old archive folders... [16:35:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:35:36]tlvbuf is 01464820 [16:35:36]SAM_PROTO_ClearQueue [16:35:36]wFMCommunicate request_size=4 [16:35:36]MH_SAM_APDU [16:35:36]CAPDU: 80 09 00 00 [16:35:36]Write to MH i2c: E2 08 00 49 07 80 09 00 00 00 00 00 00 C2 [16:35:36]Write i2c OK [16:35:36]MH_I2C_Read... [16:35:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:35:36]Read from MH i2c: E2 [16:35:36]MH_I2C_Read... [16:35:36]Read from MH i2c: E2 03 00 [16:35:36]MH_I2C_Read... [16:35:36]Read from MH i2c: E2 03 00 49 07 00 90 00 C4 [16:35:36]RAPDU: 90 00 [16:35:36]wFMCommunicate OK [16:35:36]SAM_PROTO_ClearQueue done [16:35:36]KKMCreateOFDPacket [16:35:36]OFDProtocolAddRootSTLVToBuf [16:35:36]FM_MakeSignedData [16:35:36]FM_MakeSignedData [16:35:36]SAM_PROTO_SignData [16:35:36]wFMCommunicate request_size=4 [16:35:36]MH_SAM_APDU [16:35:36]CAPDU: 80 0D 01 02 [16:35:36]Write to MH i2c: E2 08 00 4A 07 80 0D 01 02 00 00 00 00 CA [16:35:36]Write i2c OK [16:35:36]MH_I2C_Read... [16:35:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:35:36]Read from MH i2c: E2 [16:35:36]MH_I2C_Read... [16:35:36]Read from MH i2c: E2 03 00 [16:35:36]MH_I2C_Read... [16:35:36]Read from MH i2c: E2 03 00 4A 07 00 90 00 C5 [16:35:36]RAPDU: 90 00 [16:35:36]wFMCommunicate OK [16:35:36]wFMCommunicate request_size=255 [16:35:36]MH_SAM_APDU [16:35:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 08 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 9A 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 58 FE 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A8 84 02 00 35 04 06 00 8A [16:35:36]Write to MH i2c: E2 02 01 4B 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 08 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 9A 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 58 FE 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A8 84 02 00 35 04 06 00 8A 00 00 80 [16:35:36]Write i2c OK [16:35:36]MH_I2C_Read... [16:35:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:35:36]Read from MH i2c: E2 [16:35:36]MH_I2C_Read... [16:35:36]Read from MH i2c: E2 03 00 [16:35:36]MH_I2C_Read... [16:35:36]Read from MH i2c: E2 03 00 4B 07 00 90 00 C6 [16:35:36]RAPDU: 90 00 [16:35:36]wFMCommunicate OK [16:35:36]wFMCommunicate request_size=10 [16:35:36]MH_SAM_APDU [16:35:36]CAPDU: 80 0D 02 02 05 AA 08 A2 DA 21 [16:35:36]Write to MH i2c: E2 0D 00 4C 07 80 0D 02 02 05 00 AA 08 A2 DA 21 00 00 26 [16:35:36]Write i2c OK [16:35:36]MH_I2C_Read... [16:35:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:35:36]Read from MH i2c: E2 [16:35:36]MH_I2C_Read... [16:35:36]Read from MH i2c: E2 03 00 [16:35:36]MH_I2C_Read... [16:35:36]Read from MH i2c: E2 03 00 4C 07 00 90 00 C7 [16:35:36]RAPDU: 90 00 [16:35:36]wFMCommunicate OK [16:35:36]wFMCommunicate request_size=4 [16:35:36]MH_SAM_APDU [16:35:36]CAPDU: 80 0D 03 02 [16:35:36]Write to MH i2c: E2 08 00 4D 07 80 0D 03 02 00 00 00 00 CF [16:35:36]Write i2c OK [16:35:36]MH_I2C_Read... [16:35:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:35:36]Read from MH i2c: E2 [16:35:36]MH_I2C_Read... [16:35:36]Read from MH i2c: E2 0B 00 [16:35:36]MH_I2C_Read... [16:35:36]Read from MH i2c: E2 0B 00 4D 07 00 0C BB 55 A9 DB 7F 5E 15 90 00 62 [16:35:36]RAPDU: 0C BB 55 A9 DB 7F 5E 15 90 00 [16:35:36]wFMCommunicate OK [16:35:36]SAM_PROTO_SignData done [16:35:36]FM_MakeSignedData done [16:35:36]CreateOFDProtocolMessage [16:35:36]wFMCommunicate request_size=4 [16:35:36]MH_SAM_APDU [16:35:36]CAPDU: 80 11 00 00 [16:35:36]Write to MH i2c: E2 08 00 4E 07 80 11 00 00 00 00 00 00 CF [16:35:36]Write i2c OK [16:35:36]MH_I2C_Read... [16:35:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:35:36]Read from MH i2c: E2 [16:35:36]MH_I2C_Read... [16:35:36]Read from MH i2c: E2 17 00 [16:35:36]MH_I2C_Read... [16:35:36]Read from MH i2c: E2 17 00 4E 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 25 [16:35:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:35:36]wFMCommunicate OK [16:35:36]CreateOFDProtocolMessage done [16:35:36]OFDSenderStorePacket 165032 [16:35:36]StoreOFDPacket docnum=165032 [16:35:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 9F BB 07 01 C4 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 08 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 9A 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 58 FE 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A8 84 02 00 35 04 06 00 8A AA 08 A2 DA 21 0C BB 55 A9 DB 7F 5E 15 [16:35:36]CheckFolder [16:35:36]dirname=/storage/ofd_packets [16:35:36]CheckFolder done [16:35:36]ProducePacketName [16:35:36]name=ofd_packets/00165032 [16:35:36]NVStorageSaveData ofd_packets/00165032 [16:35:36]File name is /storage/ofd_packets/00165032 [16:35:36]Write 301 bytes [16:35:36]NVStorageSaveData done [16:35:36]OFDSenderStorePacket done [16:35:36]KKMCreateOFDPacket done [16:35:36]NVStorageSaveData kkm_last_timestamp [16:35:36]File name is /storage/kkm_last_timestamp [16:35:36]Write 4 bytes [16:35:36]NVStorageSaveData done [16:35:36]ExternCall_PrintAddStr [16:35:36]wPrintStart [16:35:36]Write to MH i2c: 01 00 00 4F 07 56 [16:35:36]Write i2c OK [16:35:36]MH_I2C_Read... [16:35:36]Read from MH i2c: 01 [16:35:36]MH_I2C_Read... [16:35:36]Read from MH i2c: 01 07 00 [16:35:36]MH_I2C_Read... [16:35:36]Read from MH i2c: 01 07 00 4F 07 00 00 00 00 00 FF 0F 6B [16:35:36]RasterBufferAndPrint [16:35:36]line Счет N : (1)459133 [16:35:36]line ИНН: 02508201610067 [16:35:36]line Контрольно-Кассовый Чек [16:35:36]line ПРОДАЖА [16:35:36]line ТРК (МРК, ГНК) : 22 [16:35:36]line Товар: 2710124130 [16:35:36]line Аи-92-К-5 [16:35:36]line 2.280 * 65.80 [16:35:36]line = 150.02 [16:35:36]line НДС 12% НСП 1% [16:35:36]line > о реализуемом товаре [16:35:36]line ОКРУГЛЕНИЕ: -0.02 [16:35:36]line ИТОГО: 150.00 [16:35:36]line Внесено: 150.00 [16:35:36]line СДАЧА: 0.00 [16:35:36]line НСП 1% : 1.33 [16:35:36]line НДС 12% : 15.93 [16:35:36]line Наличными: 150.00 [16:35:36]line Безнал.: 0.00 [16:35:36]line Место: АЗС № 72 "Партнер Нефть" [16:35:36]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:35:36]line СНО: Общий режим [16:35:36]line Чек 230 14.07.2024 16:35 [16:35:36]line Смена: 447 ФФД: 1.0 [16:35:36]line ЗНМ: 0300000160 [16:35:36]line РНМ: 0000000000090829 [16:35:36]line Версия ККМ: 001 [16:35:36]line ФМ: 0000000000874718 [16:35:36]line ФД: 165032 [16:35:36]line ФПД: 152462893963809 [16:35:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T163536&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165032&fm=152462893963809&tin=02508201610067®Number=0000000000090829&sum=15000 [16:35:37]OFD Sender: Processing packet 165032 [packets to send 105, broken 104] [16:35:37]ProducePacketName [16:35:37]name=ofd_packets/00165032 [16:35:37]OFD Sender: To server: pG, [16:35:37]CommunicateWithHost lk.salyk.kg:30040 [16:35:37]ConnectInit lk.salyk.kg [16:35:37]written 0, free lines is 4095 [16:35:37]Connected sock=10 [16:35:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 9F BB 07 01 C4 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 08 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 9A 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 58 FE 93 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A8 84 02 00 35 04 06 00 8A AA 08 A2 DA 21 0C BB 55 A9 DB 7F 5E 15 [16:35:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 AD 01 47 00 04 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A8 84 02 00 F4 03 04 00 E5 A4 93 66 B6 04 01 00 00 59 54 03 E5 86 50 94 45 [16:35:37]CommunicateWithHost err = 0 [16:35:37]CheckOFDResponse [16:35:37]1017 (14) - 77093643461234 [16:35:37]1041 (16) - 0000000000874718 [16:35:37]1040 (4) - 165032 [16:35:37]1012 (4) - 14.07.2024 10:13 [16:35:37]1206 (1) - 0 [16:35:37]OFD Sender: Remove packet 165032 [16:35:37]ProducePacketName [16:35:37]name=ofd_packets/00165032 [16:35:37]NVStorageDeleteData [16:35:37]Write to MH i2c: 01 00 00 79 07 80 [16:35:37]Write i2c OK [16:35:37]MH_I2C_Read... [16:35:37]Read from MH i2c: 01 [16:35:37]MH_I2C_Read... [16:35:37]Read from MH i2c: 01 07 00 [16:35:37]MH_I2C_Read... [16:35:37]Read from MH i2c: 01 07 00 79 07 00 00 00 00 00 0B 0D 9F [16:35:37]RasterBufferAndPrint [16:35:37]line [16:35:37]line [16:35:37]line [16:35:37]line [16:35:37]line [16:35:37]written 0, free lines is 3345 [16:35:37]MH_Cut [16:35:37]Write to MH i2c: D1 01 00 80 07 01 59 [16:35:37]Write i2c OK [16:35:37]MH_I2C_Read... [16:35:37]Read from MH i2c: D1 [16:35:37]MH_I2C_Read... [16:35:37]Read from MH i2c: D1 01 00 [16:35:37]MH_I2C_Read... [16:35:37]Read from MH i2c: D1 01 00 80 07 00 58 [16:35:37]Write to MH i2c: 01 00 00 81 07 88 [16:35:37]Write i2c OK [16:35:37]MH_I2C_Read... [16:35:38]OFD Sender: No OFD packet to send [16:35:38]*** Cut start [16:35:38]*** Partial cut [16:35:38]*** CUTSNS_PIN = 1 [16:35:38]*** CUTSNS_PIN = 0 [16:35:38]*** Brake cut motor [16:35:38]Read from MH i2c: 01 [16:35:38]MH_I2C_Read... [16:35:38]*** Stop cut motor [16:35:38]*** Cut end [16:35:38]Read from MH i2c: 01 07 00 [16:35:38]MH_I2C_Read... [16:35:38]Read from MH i2c: 01 07 00 81 07 00 00 00 00 00 FF 0F 9D [16:35:38]process_action close_receipt done [16:35:38]requested_data is exist [16:35:38]produce_requested_data [16:35:38]requested_item fm.sn is exist - process it [16:35:38]wFMCommunicate request_size=4 [16:35:38]MH_SAM_APDU [16:35:38]CAPDU: 80 11 00 00 [16:35:38]Write to MH i2c: E2 08 00 82 07 80 11 00 00 00 00 00 00 03 [16:35:38]Write i2c OK [16:35:38]MH_I2C_Read... [16:35:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:35:38]Read from MH i2c: E2 [16:35:38]MH_I2C_Read... [16:35:38]Read from MH i2c: E2 17 00 [16:35:38]MH_I2C_Read... [16:35:38]Read from MH i2c: E2 17 00 82 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 59 [16:35:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:35:38]wFMCommunicate OK [16:35:38]requested_item fd.num is exist - process it [16:35:38]SAM_PROTO_GetFieldsCounters [16:35:38]wFMCommunicate request_size=4 [16:35:38]MH_SAM_APDU [16:35:38]CAPDU: 80 13 00 00 [16:35:38]Write to MH i2c: E2 08 00 83 07 80 13 00 00 00 00 00 00 06 [16:35:38]Write i2c OK [16:35:38]MH_I2C_Read... [16:35:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:35:39]Read from MH i2c: E2 [16:35:39]MH_I2C_Read... [16:35:39]Read from MH i2c: E2 62 00 [16:35:39]MH_I2C_Read... [16:35:39]Read from MH i2c: E2 62 00 83 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A8 84 02 00 0E 04 04 00 BF 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 CD [16:35:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A8 84 02 00 0E 04 04 00 BF 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 [16:35:39]wFMCommunicate OK [16:35:39]SAM_PROTO_GetFieldsCounters done [16:35:39]requested_item shift.num is exist - process it [16:35:39]requested_item shift.opened is exist - process it [16:35:39]req_shift_opened [16:35:39]FM_GetShiftState [16:35:39]SAM_PROTO_GetShiftState [16:35:39]wFMCommunicate request_size=4 [16:35:39]MH_SAM_APDU [16:35:39]CAPDU: 80 13 01 00 [16:35:39]Write to MH i2c: E2 08 00 84 07 80 13 01 00 00 00 00 00 08 [16:35:39]Write i2c OK [16:35:39]MH_I2C_Read... [16:35:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:35:39]Read from MH i2c: E2 [16:35:39]MH_I2C_Read... [16:35:39]Read from MH i2c: E2 0E 00 [16:35:39]MH_I2C_Read... [16:35:39]Read from MH i2c: E2 0E 00 84 07 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 88 [16:35:39]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [16:35:39]wFMCommunicate OK [16:35:39]SAM_PROTO_GetShiftState done [16:35:39]FM_GetShiftState done [16:35:39]req_shift_opened done [16:35:39]requested_item shift.open_date is exist - process it [16:35:39]req_shift_open_date [16:35:39]req_shift_open_date done [16:35:39]produce_requested_data done [16:35:39]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165032,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [16:35:39]process_action_free close_receipt [16:35:39]json_value_free [16:35:39]json_value_free done [16:35:39]process_json_proto returns [16:35:39]Send response to host [16:35:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165032,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [16:35:39]free response buf [16:35:39]execute_script done [16:35:39]execute_script returns [16:35:39]free content buf [16:35:39]Sock 8.Close socket [16:35:39]Sock 8.Thread stoped [16:35:43]OFD Sender: No OFD packet to send [16:35:48]OFD Sender: No OFD packet to send [16:35:53]OFD Sender: No OFD packet to send [16:35:58]OFD Sender: No OFD packet to send [16:36:03]OFD Sender: No OFD packet to send [16:36:08]OFD Sender: No OFD packet to send [16:36:13]OFD Sender: No OFD packet to send [16:36:18]OFD Sender: No OFD packet to send [16:36:23]OFD Sender: No OFD packet to send [16:36:28]OFD Sender: No OFD packet to send [16:36:33]OFD Sender: No OFD packet to send [16:36:38]OFD Sender: No OFD packet to send [16:36:43]OFD Sender: No OFD packet to send [16:36:48]OFD Sender: No OFD packet to send [16:36:53]OFD Sender: No OFD packet to send [16:36:58]OFD Sender: No OFD packet to send [16:37:03]OFD Sender: No OFD packet to send [16:37:08]OFD Sender: No OFD packet to send [16:37:13]OFD Sender: No OFD packet to send [16:37:18]OFD Sender: No OFD packet to send [16:37:23]OFD Sender: No OFD packet to send [16:37:28]OFD Sender: No OFD packet to send [16:37:33]OFD Sender: No OFD packet to send [16:37:38]OFD Sender: No OFD packet to send [16:37:43]OFD Sender: No OFD packet to send [16:37:48]OFD Sender: No OFD packet to send [16:37:53]OFD Sender: No OFD packet to send [16:37:58]OFD Sender: No OFD packet to send [16:38:03]OFD Sender: No OFD packet to send [16:38:08]OFD Sender: No OFD packet to send [16:38:13]OFD Sender: No OFD packet to send [16:38:18]OFD Sender: No OFD packet to send [16:38:23]OFD Sender: No OFD packet to send [16:38:28]OFD Sender: No OFD packet to send [16:38:33]OFD Sender: No OFD packet to send [16:38:38]OFD Sender: No OFD packet to send [16:38:43]OFD Sender: No OFD packet to send [16:38:48]OFD Sender: No OFD packet to send [16:38:53]OFD Sender: No OFD packet to send [16:38:58]OFD Sender: No OFD packet to send [16:39:03]OFD Sender: No OFD packet to send [16:39:08]OFD Sender: No OFD packet to send [16:39:13]OFD Sender: No OFD packet to send [16:39:18]OFD Sender: No OFD packet to send [16:39:23]OFD Sender: No OFD packet to send [16:39:28]OFD Sender: No OFD packet to send [16:39:33]OFD Sender: No OFD packet to send [16:39:38]OFD Sender: No OFD packet to send [16:39:43]OFD Sender: No OFD packet to send [16:39:48]OFD Sender: No OFD packet to send [16:39:53]OFD Sender: No OFD packet to send [16:39:58]OFD Sender: No OFD packet to send [16:40:03]OFD Sender: No OFD packet to send [16:40:08]OFD Sender: No OFD packet to send [16:40:13]OFD Sender: No OFD packet to send [16:40:18]OFD Sender: No OFD packet to send [16:40:23]OFD Sender: No OFD packet to send [16:40:28]OFD Sender: No OFD packet to send [16:40:33]OFD Sender: No OFD packet to send [16:40:38]OFD Sender: No OFD packet to send [16:40:43]OFD Sender: No OFD packet to send [16:40:48]OFD Sender: No OFD packet to send [16:40:53]OFD Sender: No OFD packet to send [16:40:58]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:48]OFD Sender: No OFD packet to send [16:44:53]OFD Sender: No OFD packet to send [16:44:58]OFD Sender: No OFD packet to send [16:45:03]OFD Sender: No OFD packet to send [16:45:08]OFD Sender: No OFD packet to send [16:45:13]OFD Sender: No OFD packet to send [16:45:18]OFD Sender: No OFD packet to send [16:45:23]OFD Sender: No OFD packet to send [16:45:28]OFD Sender: No OFD packet to send [16:45:33]OFD Sender: No OFD packet to send [16:45:38]OFD Sender: No OFD packet to send [16:45:43]OFD Sender: No OFD packet to send [16:45:48]OFD Sender: No OFD packet to send [16:45:53]OFD Sender: No OFD packet to send [16:45:58]OFD Sender: No OFD packet to send [16:46:03]OFD Sender: No OFD packet to send [16:46:08]OFD Sender: No OFD packet to send [16:46:13]OFD Sender: No OFD packet to send [16:46:18]OFD Sender: No OFD packet to send [16:46:23]OFD Sender: No OFD packet to send [16:46:28]accept exits with 9 [16:46:28]New connection [16:46:28]New thread 3066674532 created [16:46:28]Thread 3066531172 joined [16:46:28]Waiting for new connection... [16:46:28] Sock 9.Parse request [16:46:28]Sock 9.Check first char [16:46:28]Sock 9.First char is OK [16:46:28]request: POST /json_proto HTTP/1.0 [16:46:28]Method: POST [16:46:28]URL: /json_proto [16:46:28]Method is POST - this is cgi request [16:46:28]url: /json_proto [16:46:28]query_string will be loaded in cgi processing [16:46:28]execute_cgi json_proto POST (null) [16:46:28]execute_cgi path=json_proto method=POST [16:46:28]POST find Content-Length [16:46:28]Host: 172.17.56.4:8080 [16:46:28]Content-Length: 674 [16:46:28]Content-Type: application/json [16:46:28] [16:46:28]POST finish read [16:46:28]Found Content-Length = 674 [16:46:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459135", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 4.460, "sum" : 320.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:46:28]execute_script... [16:46: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)459135", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 4.460, "sum" : 320.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:46:28]POST & json_proto [16:46:28]process_json_proto [16:46:28]json parsed OK: [16:46:28]protocol is kg_v1.0 [16:46:28]action value=close_receipt [16:46:28]process_action close_receipt [16:46:28]cmd_close_receipt [16:46:28]MH_GetDate [16:46:28]Write to MH i2c: F0 00 00 85 07 7B [16:46:28]Write i2c OK [16:46:28]MH_I2C_Read... [16:46:28]Read from MH i2c: F0 [16:46:28]MH_I2C_Read... [16:46:28]Read from MH i2c: F0 09 00 [16:46:28]MH_I2C_Read... [16:46:28]Read from MH i2c: F0 09 00 85 07 00 E5 00 94 66 C9 DC B2 64 1E [16:46:28]GetLastDocTimeStamp 1720974936 [16:46:28]current date 1720975589 [16:46:28]FM_GetShiftState [16:46:28]SAM_PROTO_GetShiftState [16:46:28]wFMCommunicate request_size=4 [16:46:28]MH_SAM_APDU [16:46:28]CAPDU: 80 13 01 00 [16:46:28]Write to MH i2c: E2 08 00 86 07 80 13 01 00 00 00 00 00 0A [16:46:28]Write i2c OK [16:46:28]MH_I2C_Read... [16:46:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:28]Read from MH i2c: E2 [16:46:28]MH_I2C_Read... [16:46:28]Read from MH i2c: E2 0E 00 [16:46:28]MH_I2C_Read... [16:46:28]Read from MH i2c: E2 0E 00 86 07 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 8A [16:46:28]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [16:46:28]wFMCommunicate OK [16:46:28]SAM_PROTO_GetShiftState done [16:46:28]FM_GetShiftState done [16:46:28]opened in 1720917342 [16:46:28]opened+sec_in_day 1721003742 [16:46:28]quantity*price = 32067 [16:46:28]sum+1 = 32068 [16:46:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.67 ИТОГО: 320.00 Внесено: 320.00 СДАЧА: 0.00 НСП 1% : 2.84 НДС 12% : 34.05 Наличными: 320.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 231 14.07.2024 16:46 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165033 ФПД: 89620062958991 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T164629&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165033&fm=89620062958991&tin=02508201610067®Number=0000000000090829&sum=32000 [16:46:29]StoreToDocumentArchive [16:46:29]shift 447 fd 165033 [16:46:29]save to /storage/0447/doc_00165033 [16:46:29]save last doc name /storage/0447/doc_00165033 to /storage/kkm_last_doc_name [16:46:29]save OK [16:46:29]Clear old archive folders... [16:46:29]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:46:29]tlvbuf is 0146BD80 [16:46:29]SAM_PROTO_ClearQueue [16:46:29]wFMCommunicate request_size=4 [16:46:29]MH_SAM_APDU [16:46:29]CAPDU: 80 09 00 00 [16:46:29]Write to MH i2c: E2 08 00 93 07 80 09 00 00 00 00 00 00 0C [16:46:29]Write i2c OK [16:46:29]MH_I2C_Read... [16:46:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:46:29]Read from MH i2c: E2 [16:46:29]MH_I2C_Read... [16:46:29]Read from MH i2c: E2 03 00 [16:46:29]MH_I2C_Read... [16:46:29]Read from MH i2c: E2 03 00 93 07 00 90 00 0E [16:46:29]RAPDU: 90 00 [16:46:29]wFMCommunicate OK [16:46:29]SAM_PROTO_ClearQueue done [16:46:29]KKMCreateOFDPacket [16:46:29]OFDProtocolAddRootSTLVToBuf [16:46:29]FM_MakeSignedData [16:46:29]FM_MakeSignedData [16:46:29]SAM_PROTO_SignData [16:46:29]wFMCommunicate request_size=4 [16:46:29]MH_SAM_APDU [16:46:29]CAPDU: 80 0D 01 02 [16:46:29]Write to MH i2c: E2 08 00 94 07 80 0D 01 02 00 00 00 00 14 [16:46:29]Write i2c OK [16:46:29]MH_I2C_Read... [16:46:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:46:29]Read from MH i2c: E2 [16:46:29]MH_I2C_Read... [16:46:29]Read from MH i2c: E2 03 00 [16:46:29]MH_I2C_Read... [16:46:29]Read from MH i2c: E2 03 00 94 07 00 90 00 0F [16:46:29]RAPDU: 90 00 [16:46:29]wFMCommunicate OK [16:46:29]wFMCommunicate request_size=255 [16:46:29]MH_SAM_APDU [16:46:29]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 43 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 E5 00 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A9 84 02 00 35 04 06 00 51 82 4C 04 [16:46:29]Write to MH i2c: E2 02 01 95 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 6C 11 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 43 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 E5 00 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A9 84 02 00 35 04 06 00 51 82 4C 04 00 00 2F [16:46:29]Write i2c OK [16:46:29]MH_I2C_Read... [16:46:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:30]Read from MH i2c: E2 [16:46:30]MH_I2C_Read... [16:46:30]Read from MH i2c: E2 03 00 [16:46:30]MH_I2C_Read... [16:46:30]Read from MH i2c: E2 03 00 95 07 00 90 00 10 [16:46:30]RAPDU: 90 00 [16:46:30]wFMCommunicate OK [16:46:30]wFMCommunicate request_size=7 [16:46:30]MH_SAM_APDU [16:46:30]CAPDU: 80 0D 02 02 02 75 8F [16:46:30]Write to MH i2c: E2 0A 00 96 07 80 0D 02 02 02 00 75 8F 00 00 1F [16:46:30]Write i2c OK [16:46:30]MH_I2C_Read... [16:46:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:30]Read from MH i2c: E2 [16:46:30]MH_I2C_Read... [16:46:30]Read from MH i2c: E2 03 00 [16:46:30]MH_I2C_Read... [16:46:30]Read from MH i2c: E2 03 00 96 07 00 90 00 11 [16:46:30]RAPDU: 90 00 [16:46:30]wFMCommunicate OK [16:46:30]wFMCommunicate request_size=4 [16:46:30]MH_SAM_APDU [16:46:30]CAPDU: 80 0D 03 02 [16:46:30]Write to MH i2c: E2 08 00 97 07 80 0D 03 02 00 00 00 00 19 [16:46:30]Write i2c OK [16:46:30]MH_I2C_Read... [16:46:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:46:30]Read from MH i2c: E2 [16:46:30]MH_I2C_Read... [16:46:30]Read from MH i2c: E2 0B 00 [16:46:30]MH_I2C_Read... [16:46:30]Read from MH i2c: E2 0B 00 97 07 00 2B 07 0B 4A 2F D1 FD 4D 90 00 EB [16:46:30]RAPDU: 2B 07 0B 4A 2F D1 FD 4D 90 00 [16:46:30]wFMCommunicate OK [16:46:30]SAM_PROTO_SignData done [16:46:30]FM_MakeSignedData done [16:46:30]CreateOFDProtocolMessage [16:46:30]wFMCommunicate request_size=4 [16:46:30]MH_SAM_APDU [16:46:30]CAPDU: 80 11 00 00 [16:46:30]Write to MH i2c: E2 08 00 98 07 80 11 00 00 00 00 00 00 19 [16:46:30]Write i2c OK [16:46:30]MH_I2C_Read... [16:46:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:30]Read from MH i2c: E2 [16:46:30]MH_I2C_Read... [16:46:30]Read from MH i2c: E2 17 00 [16:46:30]MH_I2C_Read... [16:46:30]Read from MH i2c: E2 17 00 98 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 6F [16:46:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:46:30]wFMCommunicate OK [16:46:30]CreateOFDProtocolMessage done [16:46:30]OFDSenderStorePacket 165033 [16:46:30]StoreOFDPacket docnum=165033 [16:46:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 09 6C 04 01 94 8B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 43 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 E5 00 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A9 84 02 00 35 04 06 00 51 82 4C 04 75 8F 2B 07 0B 4A 2F D1 FD 4D [16:46:30]CheckFolder [16:46:30]dirname=/storage/ofd_packets [16:46:30]CheckFolder done [16:46:30]ProducePacketName [16:46:30]name=ofd_packets/00165033 [16:46:30]NVStorageSaveData ofd_packets/00165033 [16:46:30]File name is /storage/ofd_packets/00165033 [16:46:30]Write 298 bytes [16:46:30]NVStorageSaveData done [16:46:30]OFDSenderStorePacket done [16:46:30]KKMCreateOFDPacket done [16:46:30]NVStorageSaveData kkm_last_timestamp [16:46:30]File name is /storage/kkm_last_timestamp [16:46:30]Write 4 bytes [16:46:30]NVStorageSaveData done [16:46:30]ExternCall_PrintAddStr [16:46:30]wPrintStart [16:46:30]Write to MH i2c: 01 00 00 99 07 A0 [16:46:30]Write i2c OK [16:46:30]MH_I2C_Read... [16:46:30]Read from MH i2c: 01 [16:46:30]MH_I2C_Read... [16:46:30]Read from MH i2c: 01 07 00 [16:46:30]MH_I2C_Read... [16:46:30]Read from MH i2c: 01 07 00 99 07 00 00 00 00 00 FF 0F B5 [16:46:30]RasterBufferAndPrint [16:46:30]line Счет N : (1)459135 [16:46:30]line ИНН: 02508201610067 [16:46:30]line Контрольно-Кассовый Чек [16:46:30]line ПРОДАЖА [16:46:30]line ТРК (МРК, ГНК) : 21 [16:46:30]line Товар: 2710194210 [16:46:30]line ДТ-К-5 [16:46:30]line 4.460 * 71.90 [16:46:30]line = 320.67 [16:46:30]line НДС 12% НСП 1% [16:46:30]line > о реализуемом товаре [16:46:30]line ОКРУГЛЕНИЕ: -0.67 [16:46:30]line ИТОГО: 320.00 [16:46:30]line Внесено: 320.00 [16:46:30]line СДАЧА: 0.00 [16:46:30]line НСП 1% : 2.84 [16:46:30]line НДС 12% : 34.05 [16:46:30]line Наличными: 320.00 [16:46:30]line Безнал.: 0.00 [16:46:30]line Место: АЗС № 72 "Партнер Нефть" [16:46:30]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:46:30]line СНО: Общий режим [16:46:30]line Чек 231 14.07.2024 16:46 [16:46:30]line Смена: 447 ФФД: 1.0 [16:46:30]line ЗНМ: 0300000160 [16:46:30]line РНМ: 0000000000090829 [16:46:30]line Версия ККМ: 001 [16:46:30]line ФМ: 0000000000874718 [16:46:30]line ФД: 165033 [16:46:30]line ФПД: 89620062958991 [16:46:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T164629&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165033&fm=89620062958991&tin=02508201610067®Number=0000000000090829&sum=32000 [16:46:30]OFD Sender: Processing packet 165033 [packets to send 105, broken 104] [16:46:30]ProducePacketName [16:46:30]name=ofd_packets/00165033 [16:46:30]OFD Sender: To server: pG, [16:46:30]CommunicateWithHost lk.salyk.kg:30040 [16:46:30]ConnectInit lk.salyk.kg [16:46:30]written 0, free lines is 4095 [16:46:30]Connected sock=10 [16:46:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 09 6C 04 01 94 8B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 43 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 E5 00 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A9 84 02 00 35 04 06 00 51 82 4C 04 75 8F 2B 07 0B 4A 2F D1 FD 4D [16:46:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 2E 17 47 00 66 8B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A9 84 02 00 F4 03 04 00 72 A7 93 66 B6 04 01 00 00 8D EA 5B D2 A1 96 1E EC [16:46:30]CommunicateWithHost err = 0 [16:46:30]CheckOFDResponse [16:46:30]1017 (14) - 77093643461234 [16:46:30]1041 (16) - 0000000000874718 [16:46:30]1040 (4) - 165033 [16:46:30]1012 (4) - 14.07.2024 10:24 [16:46:30]1206 (1) - 0 [16:46:30]OFD Sender: Remove packet 165033 [16:46:30]ProducePacketName [16:46:30]name=ofd_packets/00165033 [16:46:30]NVStorageDeleteData [16:46:30]Write to MH i2c: 01 00 00 C3 07 CA [16:46:30]Write i2c OK [16:46:30]MH_I2C_Read... [16:46:30]Read from MH i2c: 01 [16:46:30]MH_I2C_Read... [16:46:30]Read from MH i2c: 01 07 00 [16:46:30]MH_I2C_Read... [16:46:30]Read from MH i2c: 01 07 00 C3 07 00 00 00 00 00 FE 0C DB [16:46:30]RasterBufferAndPrint [16:46:30]line [16:46:30]line [16:46:30]line [16:46:30]line [16:46:30]line [16:46:30]written 0, free lines is 3332 [16:46:30]MH_Cut [16:46:30]Write to MH i2c: D1 01 00 CA 07 01 A3 [16:46:30]Write i2c OK [16:46:30]MH_I2C_Read... [16:46:30]Read from MH i2c: D1 [16:46:30]MH_I2C_Read... [16:46:30]Read from MH i2c: D1 01 00 [16:46:30]MH_I2C_Read... [16:46:30]Read from MH i2c: D1 01 00 CA 07 00 A2 [16:46:30]Write to MH i2c: 01 00 00 CB 07 D2 [16:46:30]Write i2c OK [16:46:30]MH_I2C_Read... [16:46:31]OFD Sender: No OFD packet to send [16:46:31]*** Cut start [16:46:31]*** Partial cut [16:46:31]*** CUTSNS_PIN = 1 [16:46:31]*** CUTSNS_PIN = 0 [16:46:31]*** Brake cut motor [16:46:32]Read from MH i2c: 01 [16:46:32]MH_I2C_Read... [16:46:32]*** Stop cut motor [16:46:32]*** Cut end [16:46:32]Read from MH i2c: 01 07 00 [16:46:32]MH_I2C_Read... [16:46:32]Read from MH i2c: 01 07 00 CB 07 00 00 00 00 00 FF 0F E7 [16:46:32]process_action close_receipt done [16:46:32]requested_data is exist [16:46:32]produce_requested_data [16:46:32]requested_item fm.sn is exist - process it [16:46:32]wFMCommunicate request_size=4 [16:46:32]MH_SAM_APDU [16:46:32]CAPDU: 80 11 00 00 [16:46:32]Write to MH i2c: E2 08 00 CC 07 80 11 00 00 00 00 00 00 4D [16:46:32]Write i2c OK [16:46:32]MH_I2C_Read... [16:46:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:32]Read from MH i2c: E2 [16:46:32]MH_I2C_Read... [16:46:32]Read from MH i2c: E2 17 00 [16:46:32]MH_I2C_Read... [16:46:32]Read from MH i2c: E2 17 00 CC 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A3 [16:46:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:46:32]wFMCommunicate OK [16:46:32]requested_item fd.num is exist - process it [16:46:32]SAM_PROTO_GetFieldsCounters [16:46:32]wFMCommunicate request_size=4 [16:46:32]MH_SAM_APDU [16:46:32]CAPDU: 80 13 00 00 [16:46:32]Write to MH i2c: E2 08 00 CD 07 80 13 00 00 00 00 00 00 50 [16:46:32]Write i2c OK [16:46:32]MH_I2C_Read... [16:46:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:46:32]Read from MH i2c: E2 [16:46:32]MH_I2C_Read... [16:46:32]Read from MH i2c: E2 62 00 [16:46:32]MH_I2C_Read... [16:46:32]Read from MH i2c: E2 62 00 CD 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A9 84 02 00 0E 04 04 00 BF 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 1B [16:46:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A9 84 02 00 0E 04 04 00 BF 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 [16:46:32]wFMCommunicate OK [16:46:32]SAM_PROTO_GetFieldsCounters done [16:46:32]requested_item shift.num is exist - process it [16:46:32]requested_item shift.opened is exist - process it [16:46:32]req_shift_opened [16:46:32]FM_GetShiftState [16:46:32]SAM_PROTO_GetShiftState [16:46:32]wFMCommunicate request_size=4 [16:46:32]MH_SAM_APDU [16:46:32]CAPDU: 80 13 01 00 [16:46:32]Write to MH i2c: E2 08 00 CE 07 80 13 01 00 00 00 00 00 52 [16:46:32]Write i2c OK [16:46:32]MH_I2C_Read... [16:46:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:32]Read from MH i2c: E2 [16:46:32]MH_I2C_Read... [16:46:32]Read from MH i2c: E2 0E 00 [16:46:32]MH_I2C_Read... [16:46:32]Read from MH i2c: E2 0E 00 CE 07 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 D2 [16:46:32]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [16:46:32]wFMCommunicate OK [16:46:32]SAM_PROTO_GetShiftState done [16:46:32]FM_GetShiftState done [16:46:32]req_shift_opened done [16:46:32]requested_item shift.open_date is exist - process it [16:46:32]req_shift_open_date [16:46:32]req_shift_open_date done [16:46:32]produce_requested_data done [16:46:32]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165033,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [16:46:32]process_action_free close_receipt [16:46:32]json_value_free [16:46:32]json_value_free done [16:46:32]process_json_proto returns [16:46:32]Send response to host [16:46:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165033,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [16:46:32]free response buf [16:46:32]execute_script done [16:46:32]execute_script returns [16:46:32]free content buf [16:46:32]Sock 9.Close socket [16:46:32]Sock 9.Thread stoped [16:46:36]OFD Sender: No OFD packet to send [16:46:38]accept exits with 8 [16:46:38]New connection [16:46:38]New thread 3066531172 created [16:46:38]Thread 3066674532 joined [16:46:38]Waiting for new connection... [16:46:38] Sock 8.Parse request [16:46:38]Sock 8.Check first char [16:46:38]Sock 8.First char is OK [16:46:38]request: POST /json_proto HTTP/1.0 [16:46:38]Method: POST [16:46:38]URL: /json_proto [16:46:38]Method is POST - this is cgi request [16:46:38]url: /json_proto [16:46:38]query_string will be loaded in cgi processing [16:46:38]execute_cgi json_proto POST (null) [16:46:38]execute_cgi path=json_proto method=POST [16:46:38]POST find Content-Length [16:46:38]Host: 172.17.56.4:8080 [16:46:38]Content-Length: 793 [16:46:38]Content-Type: application/json [16:46:38] [16:46:38]POST finish read [16:46:38]Found Content-Length = 793 [16:46:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459134", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 15.340, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:46:38]execute_script... [16:46:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459134", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 15.340, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:46:38]POST & json_proto [16:46:38]process_json_proto [16:46:38]json parsed OK: [16:46:38]protocol is kg_v1.0 [16:46:38]action value=close_receipt [16:46:38]process_action close_receipt [16:46:38]cmd_close_receipt [16:46:38]MH_GetDate [16:46:38]Write to MH i2c: F0 00 00 CF 07 C5 [16:46:38]Write i2c OK [16:46:38]MH_I2C_Read... [16:46:38]Read from MH i2c: F0 [16:46:38]MH_I2C_Read... [16:46:38]Read from MH i2c: F0 09 00 [16:46:38]MH_I2C_Read... [16:46:38]Read from MH i2c: F0 09 00 CF 07 00 F0 00 94 66 C9 DC B2 64 73 [16:46:38]GetLastDocTimeStamp 1720975589 [16:46:38]current date 1720975600 [16:46:38]FM_GetShiftState [16:46:38]SAM_PROTO_GetShiftState [16:46:38]wFMCommunicate request_size=4 [16:46:38]MH_SAM_APDU [16:46:38]CAPDU: 80 13 01 00 [16:46:38]Write to MH i2c: E2 08 00 D0 07 80 13 01 00 00 00 00 00 54 [16:46:38]Write i2c OK [16:46:38]MH_I2C_Read... [16:46:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:38]Read from MH i2c: E2 [16:46:38]MH_I2C_Read... [16:46:38]Read from MH i2c: E2 0E 00 [16:46:38]MH_I2C_Read... [16:46:38]Read from MH i2c: E2 0E 00 D0 07 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 D4 [16:46:38]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [16:46:38]wFMCommunicate OK [16:46:38]SAM_PROTO_GetShiftState done [16:46:38]FM_GetShiftState done [16:46:38]opened in 1720917342 [16:46:38]opened+sec_in_day 1721003742 [16:46:38]quantity*price = 100047 [16:46:38]sum+1 = 100048 [16:46:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.47 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 0.00 Безнал.: 1000.47 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 232 14.07.2024 16:46 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 165034 ФПД: 228645210331969 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T164640&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165034&fm=228645210331969&tin=02508201610067®Number=0000000000090829&sum=100047 [16:46:40]StoreToDocumentArchive [16:46:40]shift 447 fd 165034 [16:46:40]save to /storage/0447/doc_00165034 [16:46:40]save last doc name /storage/0447/doc_00165034 to /storage/kkm_last_doc_name [16:46:40]save OK [16:46:40]Clear old archive folders... [16:46:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:46:40]tlvbuf is 014A3590 [16:46:40]SAM_PROTO_ClearQueue [16:46:40]wFMCommunicate request_size=4 [16:46:40]MH_SAM_APDU [16:46:40]CAPDU: 80 09 00 00 [16:46:40]Write to MH i2c: E2 08 00 DD 07 80 09 00 00 00 00 00 00 56 [16:46:40]Write i2c OK [16:46:40]MH_I2C_Read... [16:46:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:46:40]Read from MH i2c: E2 [16:46:40]MH_I2C_Read... [16:46:40]Read from MH i2c: E2 03 00 [16:46:40]MH_I2C_Read... [16:46:40]Read from MH i2c: E2 03 00 DD 07 00 90 00 58 [16:46:40]RAPDU: 90 00 [16:46:40]wFMCommunicate OK [16:46:40]SAM_PROTO_ClearQueue done [16:46:40]KKMCreateOFDPacket [16:46:40]OFDProtocolAddRootSTLVToBuf [16:46:40]FM_MakeSignedData [16:46:40]FM_MakeSignedData [16:46:40]SAM_PROTO_SignData [16:46:40]wFMCommunicate request_size=4 [16:46:40]MH_SAM_APDU [16:46:40]CAPDU: 80 0D 01 02 [16:46:40]Write to MH i2c: E2 08 00 DE 07 80 0D 01 02 00 00 00 00 5E [16:46:40]Write i2c OK [16:46:40]MH_I2C_Read... [16:46:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:46:40]Read from MH i2c: E2 [16:46:40]MH_I2C_Read... [16:46:40]Read from MH i2c: E2 03 00 [16:46:40]MH_I2C_Read... [16:46:40]Read from MH i2c: E2 03 00 DE 07 00 90 00 59 [16:46:40]RAPDU: 90 00 [16:46:40]wFMCommunicate OK [16:46:40]wFMCommunicate request_size=255 [16:46:40]MH_SAM_APDU [16:46:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 3B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 F0 00 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AA 84 02 00 35 04 06 00 CF [16:46:40]Write to MH i2c: E2 02 01 DF 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 3B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 F0 00 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AA 84 02 00 35 04 06 00 CF 00 00 DC [16:46:40]Write i2c OK [16:46:40]MH_I2C_Read... [16:46:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:40]Read from MH i2c: E2 [16:46:40]MH_I2C_Read... [16:46:40]Read from MH i2c: E2 03 00 [16:46:40]MH_I2C_Read... [16:46:40]Read from MH i2c: E2 03 00 DF 07 00 90 00 5A [16:46:40]RAPDU: 90 00 [16:46:40]wFMCommunicate OK [16:46:40]wFMCommunicate request_size=10 [16:46:40]MH_SAM_APDU [16:46:40]CAPDU: 80 0D 02 02 05 F3 9C 8A 9B 41 [16:46:40]Write to MH i2c: E2 0D 00 E0 07 80 0D 02 02 05 00 F3 9C 8A 9B 41 00 00 60 [16:46:40]Write i2c OK [16:46:40]MH_I2C_Read... [16:46:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:40]Read from MH i2c: E2 [16:46:40]MH_I2C_Read... [16:46:40]Read from MH i2c: E2 03 00 [16:46:40]MH_I2C_Read... [16:46:40]Read from MH i2c: E2 03 00 E0 07 00 90 00 5B [16:46:40]RAPDU: 90 00 [16:46:40]wFMCommunicate OK [16:46:40]wFMCommunicate request_size=4 [16:46:40]MH_SAM_APDU [16:46:40]CAPDU: 80 0D 03 02 [16:46:40]Write to MH i2c: E2 08 00 E1 07 80 0D 03 02 00 00 00 00 63 [16:46:40]Write i2c OK [16:46:40]MH_I2C_Read... [16:46:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:46:40]Read from MH i2c: E2 [16:46:40]MH_I2C_Read... [16:46:40]Read from MH i2c: E2 0B 00 [16:46:40]MH_I2C_Read... [16:46:40]Read from MH i2c: E2 0B 00 E1 07 00 A2 C7 E5 1F 60 7C AC B5 90 00 0E [16:46:40]RAPDU: A2 C7 E5 1F 60 7C AC B5 90 00 [16:46:40]wFMCommunicate OK [16:46:40]SAM_PROTO_SignData done [16:46:40]FM_MakeSignedData done [16:46:40]CreateOFDProtocolMessage [16:46:40]wFMCommunicate request_size=4 [16:46:40]MH_SAM_APDU [16:46:40]CAPDU: 80 11 00 00 [16:46:40]Write to MH i2c: E2 08 00 E2 07 80 11 00 00 00 00 00 00 63 [16:46:40]Write i2c OK [16:46:40]MH_I2C_Read... [16:46:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:40]Read from MH i2c: E2 [16:46:40]MH_I2C_Read... [16:46:40]Read from MH i2c: E2 17 00 [16:46:40]MH_I2C_Read... [16:46:40]Read from MH i2c: E2 17 00 E2 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B9 [16:46:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:46:40]wFMCommunicate OK [16:46:40]CreateOFDProtocolMessage done [16:46:40]OFDSenderStorePacket 165034 [16:46:40]StoreOFDPacket docnum=165034 [16:46:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 91 4C 07 01 07 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 35 FF 03 08 00 03 EC 3B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 F0 00 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AA 84 02 00 35 04 06 00 CF F3 9C 8A 9B 41 A2 C7 E5 1F 60 7C AC B5 [16:46:40]CheckFolder [16:46:40]dirname=/storage/ofd_packets [16:46:40]CheckFolder done [16:46:40]ProducePacketName [16:46:40]name=ofd_packets/00165034 [16:46:40]NVStorageSaveData ofd_packets/00165034 [16:46:40]File name is /storage/ofd_packets/00165034 [16:46:40]Write 301 bytes [16:46:40]NVStorageSaveData done [16:46:40]OFDSenderStorePacket done [16:46:40]KKMCreateOFDPacket done [16:46:40]NVStorageSaveData kkm_last_timestamp [16:46:40]File name is /storage/kkm_last_timestamp [16:46:40]Write 4 bytes [16:46:40]NVStorageSaveData done [16:46:40]ExternCall_PrintAddStr [16:46:40]wPrintStart [16:46:40]Write to MH i2c: 01 00 00 E3 07 EA [16:46:40]Write i2c OK [16:46:40]MH_I2C_Read... [16:46:40]Read from MH i2c: 01 [16:46:40]MH_I2C_Read... [16:46:40]Read from MH i2c: 01 07 00 [16:46:40]MH_I2C_Read... [16:46:40]Read from MH i2c: 01 07 00 E3 07 00 00 00 00 00 FF 0F FF [16:46:40]RasterBufferAndPrint [16:46:40]line Счет N : (1)459134 [16:46:40]line ИНН: 02508201610067 [16:46:40]line Контрольно-Кассовый Чек [16:46:40]line ПРОДАЖА [16:46:40]line ТРК (МРК, ГНК) : 12 [16:46:40]line Товар: 2710124130 [16:46:40]line Аи-92-К-5 [16:46:40]line 15.340 * 65.22 [16:46:40]line = 1000.47 [16:46:40]line НДС 12% НСП 1% [16:46:40]line > о реализуемом товаре [16:46:40]line ИТОГО: 1000.47 [16:46:40]line НСП 1% : 8.85 [16:46:40]line НДС 12% : 106.24 [16:46:40]line Наличными: 0.00 [16:46:40]line Безнал.: 1000.47 [16:46:40]line Место: АЗС № 72 "Партнер Нефть" [16:46:40]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:46:40]line СНО: Общий режим [16:46:40]line Чек 232 14.07.2024 16:46 [16:46:40]line Смена: 447 ФФД: 1.0 [16:46:40]line ЗНМ: 0300000160 [16:46:40]line РНМ: 0000000000090829 [16:46:40]line Версия ККМ: 001 [16:46:40]line Платежная система: KICB Банк [16:46:40]line ФМ: 0000000000874718 [16:46:40]line ФД: 165034 [16:46:40]line ФПД: 228645210331969 [16:46:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T164640&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165034&fm=228645210331969&tin=02508201610067®Number=0000000000090829&sum=100047 [16:46:40]written 0, free lines is 4095 [16:46:40]OFD Sender: Processing packet 165034 [packets to send 105, broken 104] [16:46:40]ProducePacketName [16:46:40]name=ofd_packets/00165034 [16:46:40]OFD Sender: To server: pG, [16:46:40]CommunicateWithHost lk.salyk.kg:30040 [16:46:40]ConnectInit lk.salyk.kg [16:46:40]Connected sock=10 [16:46:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 91 4C 07 01 07 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 35 FF 03 08 00 03 EC 3B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 F0 00 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AA 84 02 00 35 04 06 00 CF F3 9C 8A 9B 41 A2 C7 E5 1F 60 7C AC B5 [16:46:41]Write to MH i2c: 01 00 00 0C 08 14 [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 0C 08 00 00 00 00 00 10 0D 38 [16:46:41]RasterBufferAndPrint [16:46:41]line [16:46:41]line [16:46:41]line [16:46:41]line [16:46:41]line [16:46:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 42 00 47 00 B0 B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AA 84 02 00 F4 03 04 00 7D A7 93 66 B6 04 01 00 00 7F E6 84 0D 97 4F 87 7B [16:46:41]CommunicateWithHost err = 0 [16:46:41]CheckOFDResponse [16:46:41]1017 (14) - 77093643461234 [16:46:41]1041 (16) - 0000000000874718 [16:46:41]1040 (4) - 165034 [16:46:41]1012 (4) - 14.07.2024 10:25 [16:46:41]1206 (1) - 0 [16:46:41]OFD Sender: Remove packet 165034 [16:46:41]ProducePacketName [16:46:41]name=ofd_packets/00165034 [16:46:41]NVStorageDeleteData [16:46:41]written 0, free lines is 3360 [16:46:41]MH_Cut [16:46:41]Write to MH i2c: D1 01 00 13 08 01 ED [16:46:41]Write i2c OK [16:46:41]MH_I2C_Read... [16:46:41]Read from MH i2c: D1 [16:46:41]MH_I2C_Read... [16:46:41]Read from MH i2c: D1 01 00 [16:46:41]MH_I2C_Read... [16:46:41]Read from MH i2c: D1 01 00 13 08 00 EC [16:46:41]Write to MH i2c: 01 00 00 14 08 1C [16:46:41]Write i2c OK [16:46:41]MH_I2C_Read... [16:46:41]OFD Sender: No OFD packet to send [16:46:41]*** Cut start [16:46:41]*** Partial cut [16:46:41]*** CUTSNS_PIN = 1 [16:46:41]*** CUTSNS_PIN = 0 [16:46:42]*** Brake cut motor [16:46:42]Read from MH i2c: 01 [16:46:42]MH_I2C_Read... [16:46:42]*** Stop cut motor [16:46:42]*** Cut end [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 14 08 00 00 00 00 00 FF 0F 31 [16:46:42]process_action close_receipt done [16:46:42]requested_data is exist [16:46:42]produce_requested_data [16:46:42]requested_item fm.sn is exist - process it [16:46:42]wFMCommunicate request_size=4 [16:46:42]MH_SAM_APDU [16:46:42]CAPDU: 80 11 00 00 [16:46:42]Write to MH i2c: E2 08 00 15 08 80 11 00 00 00 00 00 00 97 [16:46:42]Write i2c OK [16:46:42]MH_I2C_Read... [16:46:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:42]Read from MH i2c: E2 [16:46:42]MH_I2C_Read... [16:46:42]Read from MH i2c: E2 17 00 [16:46:42]MH_I2C_Read... [16:46:42]Read from MH i2c: E2 17 00 15 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 ED [16:46:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:46:42]wFMCommunicate OK [16:46:42]requested_item fd.num is exist - process it [16:46:42]SAM_PROTO_GetFieldsCounters [16:46:42]wFMCommunicate request_size=4 [16:46:42]MH_SAM_APDU [16:46:42]CAPDU: 80 13 00 00 [16:46:42]Write to MH i2c: E2 08 00 16 08 80 13 00 00 00 00 00 00 9A [16:46:42]Write i2c OK [16:46:42]MH_I2C_Read... [16:46:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:46:42]Read from MH i2c: E2 [16:46:42]MH_I2C_Read... [16:46:42]Read from MH i2c: E2 62 00 [16:46:42]MH_I2C_Read... [16:46:42]Read from MH i2c: E2 62 00 16 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 AA 84 02 00 0E 04 04 00 BF 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 69 [16:46:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 AA 84 02 00 0E 04 04 00 BF 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 [16:46:42]wFMCommunicate OK [16:46:42]SAM_PROTO_GetFieldsCounters done [16:46:42]requested_item shift.num is exist - process it [16:46:42]requested_item shift.opened is exist - process it [16:46:42]req_shift_opened [16:46:42]FM_GetShiftState [16:46:42]SAM_PROTO_GetShiftState [16:46:42]wFMCommunicate request_size=4 [16:46:42]MH_SAM_APDU [16:46:42]CAPDU: 80 13 01 00 [16:46:42]Write to MH i2c: E2 08 00 17 08 80 13 01 00 00 00 00 00 9C [16:46:42]Write i2c OK [16:46:42]MH_I2C_Read... [16:46:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:42]Read from MH i2c: E2 [16:46:42]MH_I2C_Read... [16:46:42]Read from MH i2c: E2 0E 00 [16:46:42]MH_I2C_Read... [16:46:42]Read from MH i2c: E2 0E 00 17 08 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 1C [16:46:42]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [16:46:42]wFMCommunicate OK [16:46:42]SAM_PROTO_GetShiftState done [16:46:42]FM_GetShiftState done [16:46:42]req_shift_opened done [16:46:42]requested_item shift.open_date is exist - process it [16:46:42]req_shift_open_date [16:46:42]req_shift_open_date done [16:46:42]produce_requested_data done [16:46:42]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165034,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [16:46:42]process_action_free close_receipt [16:46:42]json_value_free [16:46:42]json_value_free done [16:46:42]process_json_proto returns [16:46:42]Send response to host [16:46:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165034,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [16:46:42]free response buf [16:46:42]execute_script done [16:46:42]execute_script returns [16:46:42]free content buf [16:46:42]Sock 8.Close socket [16:46:42]Sock 8.Thread stoped [16:46:46]OFD Sender: No OFD packet to send [16:46:51]OFD Sender: No OFD packet to send [16:46:54]accept exits with 9 [16:46:54]New connection [16:46:54]New thread 3066674532 created [16:46:54]Thread 3066531172 joined [16:46:54]Waiting for new connection... [16:46:54] Sock 9.Parse request [16:46:54]Sock 9.Check first char [16:46:54]Sock 9.First char is OK [16:46:54]request: POST /json_proto HTTP/1.0 [16:46:54]Method: POST [16:46:54]URL: /json_proto [16:46:54]Method is POST - this is cgi request [16:46:54]url: /json_proto [16:46:54]query_string will be loaded in cgi processing [16:46:54]execute_cgi json_proto POST (null) [16:46:54]execute_cgi path=json_proto method=POST [16:46:54]POST find Content-Length [16:46:54]Host: 172.17.56.4:8080 [16:46:54]Content-Length: 677 [16:46:54]Content-Type: application/json [16:46:54] [16:46:54]POST finish read [16:46:54]Found Content-Length = 677 [16:46:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459136", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.320, "sum" : 350.06, "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" ] } } [16:46:54]execute_script... [16:46: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)459136", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.320, "sum" : 350.06, "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" ] } } [16:46:54]POST & json_proto [16:46:54]process_json_proto [16:46:54]json parsed OK: [16:46:54]protocol is kg_v1.0 [16:46:54]action value=close_receipt [16:46:54]process_action close_receipt [16:46:54]cmd_close_receipt [16:46:54]MH_GetDate [16:46:54]Write to MH i2c: F0 00 00 18 08 0F [16:46:54]Write i2c OK [16:46:54]MH_I2C_Read... [16:46:54]Read from MH i2c: F0 [16:46:54]MH_I2C_Read... [16:46:54]Read from MH i2c: F0 09 00 [16:46:54]MH_I2C_Read... [16:46:54]Read from MH i2c: F0 09 00 18 08 00 FF 00 94 66 C9 DC B2 64 CC [16:46:54]GetLastDocTimeStamp 1720975600 [16:46:54]current date 1720975615 [16:46:54]FM_GetShiftState [16:46:54]SAM_PROTO_GetShiftState [16:46:54]wFMCommunicate request_size=4 [16:46:54]MH_SAM_APDU [16:46:54]CAPDU: 80 13 01 00 [16:46:54]Write to MH i2c: E2 08 00 19 08 80 13 01 00 00 00 00 00 9E [16:46:54]Write i2c OK [16:46:54]MH_I2C_Read... [16:46:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:54]Read from MH i2c: E2 [16:46:54]MH_I2C_Read... [16:46:54]Read from MH i2c: E2 0E 00 [16:46:54]MH_I2C_Read... [16:46:54]Read from MH i2c: E2 0E 00 19 08 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 1E [16:46:54]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [16:46:54]wFMCommunicate OK [16:46:54]SAM_PROTO_GetShiftState done [16:46:54]FM_GetShiftState done [16:46:54]opened in 1720917342 [16:46:54]opened+sec_in_day 1721003742 [16:46:54]quantity*price = 35005 [16:46:54]sum+1 = 35007 [16:46:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.17 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 233 14.07.2024 16:46 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165035 ФПД: 113559952397504 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T164655&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165035&fm=113559952397504&tin=02508201610067®Number=0000000000090829&sum=35000 [16:46:55]StoreToDocumentArchive [16:46:55]shift 447 fd 165035 [16:46:55]save to /storage/0447/doc_00165035 [16:46:55]save last doc name /storage/0447/doc_00165035 to /storage/kkm_last_doc_name [16:46:55]save OK [16:46:55]Clear old archive folders... [16:46:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:46:55]tlvbuf is 014923C0 [16:46:55]SAM_PROTO_ClearQueue [16:46:55]wFMCommunicate request_size=4 [16:46:55]MH_SAM_APDU [16:46:55]CAPDU: 80 09 00 00 [16:46:55]Write to MH i2c: E2 08 00 26 08 80 09 00 00 00 00 00 00 A0 [16:46:55]Write i2c OK [16:46:55]MH_I2C_Read... [16:46:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:46:55]Read from MH i2c: E2 [16:46:55]MH_I2C_Read... [16:46:55]Read from MH i2c: E2 03 00 [16:46:55]MH_I2C_Read... [16:46:55]Read from MH i2c: E2 03 00 26 08 00 90 00 A2 [16:46:55]RAPDU: 90 00 [16:46:55]wFMCommunicate OK [16:46:55]SAM_PROTO_ClearQueue done [16:46:55]KKMCreateOFDPacket [16:46:55]OFDProtocolAddRootSTLVToBuf [16:46:55]FM_MakeSignedData [16:46:55]FM_MakeSignedData [16:46:55]SAM_PROTO_SignData [16:46:55]wFMCommunicate request_size=4 [16:46:55]MH_SAM_APDU [16:46:55]CAPDU: 80 0D 01 02 [16:46:55]Write to MH i2c: E2 08 00 27 08 80 0D 01 02 00 00 00 00 A8 [16:46:55]Write i2c OK [16:46:55]MH_I2C_Read... [16:46:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:46:55]Read from MH i2c: E2 [16:46:55]MH_I2C_Read... [16:46:55]Read from MH i2c: E2 03 00 [16:46:55]MH_I2C_Read... [16:46:55]Read from MH i2c: E2 03 00 27 08 00 90 00 A3 [16:46:55]RAPDU: 90 00 [16:46:55]wFMCommunicate OK [16:46:55]wFMCommunicate request_size=255 [16:46:55]MH_SAM_APDU [16:46:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BE 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 85 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 E9 00 00 00 F4 03 04 00 FF 00 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AB 84 02 00 35 04 06 00 67 [16:46:55]Write to MH i2c: E2 02 01 28 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BE 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 85 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 E9 00 00 00 F4 03 04 00 FF 00 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AB 84 02 00 35 04 06 00 67 00 00 2B [16:46:55]Write i2c OK [16:46:55]MH_I2C_Read... [16:46:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:56]Read from MH i2c: E2 [16:46:56]MH_I2C_Read... [16:46:56]Read from MH i2c: E2 03 00 [16:46:56]MH_I2C_Read... [16:46:56]Read from MH i2c: E2 03 00 28 08 00 90 00 A4 [16:46:56]RAPDU: 90 00 [16:46:56]wFMCommunicate OK [16:46:56]wFMCommunicate request_size=10 [16:46:56]MH_SAM_APDU [16:46:56]CAPDU: 80 0D 02 02 05 48 3C 9F 94 C0 [16:46:56]Write to MH i2c: E2 0D 00 29 08 80 0D 02 02 05 00 48 3C 9F 94 C0 00 00 2C [16:46:56]Write i2c OK [16:46:56]MH_I2C_Read... [16:46:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:56]Read from MH i2c: E2 [16:46:56]MH_I2C_Read... [16:46:56]Read from MH i2c: E2 03 00 [16:46:56]MH_I2C_Read... [16:46:56]Read from MH i2c: E2 03 00 29 08 00 90 00 A5 [16:46:56]RAPDU: 90 00 [16:46:56]wFMCommunicate OK [16:46:56]wFMCommunicate request_size=4 [16:46:56]MH_SAM_APDU [16:46:56]CAPDU: 80 0D 03 02 [16:46:56]Write to MH i2c: E2 08 00 2A 08 80 0D 03 02 00 00 00 00 AD [16:46:56]Write i2c OK [16:46:56]MH_I2C_Read... [16:46:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:46:56]Read from MH i2c: E2 [16:46:56]MH_I2C_Read... [16:46:56]Read from MH i2c: E2 0B 00 [16:46:56]MH_I2C_Read... [16:46:56]Read from MH i2c: E2 0B 00 2A 08 00 02 8C 51 85 3C A4 48 17 90 00 51 [16:46:56]RAPDU: 02 8C 51 85 3C A4 48 17 90 00 [16:46:56]wFMCommunicate OK [16:46:56]SAM_PROTO_SignData done [16:46:56]FM_MakeSignedData done [16:46:56]CreateOFDProtocolMessage [16:46:56]wFMCommunicate request_size=4 [16:46:56]MH_SAM_APDU [16:46:56]CAPDU: 80 11 00 00 [16:46:56]Write to MH i2c: E2 08 00 2B 08 80 11 00 00 00 00 00 00 AD [16:46:56]Write i2c OK [16:46:56]MH_I2C_Read... [16:46:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:56]Read from MH i2c: E2 [16:46:56]MH_I2C_Read... [16:46:56]Read from MH i2c: E2 17 00 [16:46:56]MH_I2C_Read... [16:46:56]Read from MH i2c: E2 17 00 2B 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 03 [16:46:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:46:56]wFMCommunicate OK [16:46:56]CreateOFDProtocolMessage done [16:46:56]OFDSenderStorePacket 165035 [16:46:56]StoreOFDPacket docnum=165035 [16:46:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 38 9E 07 01 F3 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BE 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 85 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 E9 00 00 00 F4 03 04 00 FF 00 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AB 84 02 00 35 04 06 00 67 48 3C 9F 94 C0 02 8C 51 85 3C A4 48 17 [16:46:56]CheckFolder [16:46:56]dirname=/storage/ofd_packets [16:46:56]CheckFolder done [16:46:56]ProducePacketName [16:46:56]name=ofd_packets/00165035 [16:46:56]NVStorageSaveData ofd_packets/00165035 [16:46:56]File name is /storage/ofd_packets/00165035 [16:46:56]Write 301 bytes [16:46:56]NVStorageSaveData done [16:46:56]OFDSenderStorePacket done [16:46:56]KKMCreateOFDPacket done [16:46:56]NVStorageSaveData kkm_last_timestamp [16:46:56]File name is /storage/kkm_last_timestamp [16:46:56]Write 4 bytes [16:46:56]NVStorageSaveData done [16:46:56]ExternCall_PrintAddStr [16:46:56]wPrintStart [16:46:56]Write to MH i2c: 01 00 00 2C 08 34 [16:46:56]Write i2c OK [16:46:56]MH_I2C_Read... [16:46:56]Read from MH i2c: 01 [16:46:56]MH_I2C_Read... [16:46:56]Read from MH i2c: 01 07 00 [16:46:56]MH_I2C_Read... [16:46:56]Read from MH i2c: 01 07 00 2C 08 00 00 00 00 00 FF 0F 49 [16:46:56]RasterBufferAndPrint [16:46:56]line Счет N : (1)459136 [16:46:56]line ИНН: 02508201610067 [16:46:56]line Контрольно-Кассовый Чек [16:46:56]line ПРОДАЖА [16:46:56]line ТРК (МРК, ГНК) : 22 [16:46:56]line Товар: 2710124130 [16:46:56]line Аи-92-К-5 [16:46:56]line 5.320 * 65.80 [16:46:56]line = 350.06 [16:46:56]line НДС 12% НСП 1% [16:46:56]line > о реализуемом товаре [16:46:56]line ОКРУГЛЕНИЕ: -0.06 [16:46:56]line ИТОГО: 350.00 [16:46:56]line Внесено: 350.00 [16:46:56]line СДАЧА: 0.00 [16:46:56]line НСП 1% : 3.10 [16:46:56]line НДС 12% : 37.17 [16:46:56]line Наличными: 350.00 [16:46:56]line Безнал.: 0.00 [16:46:56]line Место: АЗС № 72 "Партнер Нефть" [16:46:56]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:46:56]line СНО: Общий режим [16:46:56]line Чек 233 14.07.2024 16:46 [16:46:56]line Смена: 447 ФФД: 1.0 [16:46:56]line ЗНМ: 0300000160 [16:46:56]line РНМ: 0000000000090829 [16:46:56]line Версия ККМ: 001 [16:46:56]line ФМ: 0000000000874718 [16:46:56]line ФД: 165035 [16:46:56]line ФПД: 113559952397504 [16:46:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T164655&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165035&fm=113559952397504&tin=02508201610067®Number=0000000000090829&sum=35000 [16:46:56]written 0, free lines is 4095 [16:46:56]OFD Sender: Processing packet 165035 [packets to send 105, broken 104] [16:46:56]ProducePacketName [16:46:56]name=ofd_packets/00165035 [16:46:56]OFD Sender: To server: pG, [16:46:56]CommunicateWithHost lk.salyk.kg:30040 [16:46:56]ConnectInit lk.salyk.kg [16:46:56]Connected sock=11 [16:46:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 38 9E 07 01 F3 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BE 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 85 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 E9 00 00 00 F4 03 04 00 FF 00 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AB 84 02 00 35 04 06 00 67 48 3C 9F 94 C0 02 8C 51 85 3C A4 48 17 [16:46:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 4A 98 47 00 DD 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AB 84 02 00 F4 03 04 00 8C A7 93 66 B6 04 01 00 00 F7 EC EE 34 8A 62 E1 87 [16:46:56]CommunicateWithHost err = 0 [16:46:56]CheckOFDResponse [16:46:56]1017 (14) - 77093643461234 [16:46:56]1041 (16) - 0000000000874718 [16:46:56]1040 (4) - 165035 [16:46:56]1012 (4) - 14.07.2024 10:25 [16:46:56]1206 (1) - 0 [16:46:56]OFD Sender: Remove packet 165035 [16:46:56]ProducePacketName [16:46:56]name=ofd_packets/00165035 [16:46:56]NVStorageDeleteData [16:46:56]Write to MH i2c: 01 00 00 56 08 5E [16:46:56]Write i2c OK [16:46:56]MH_I2C_Read... [16:46:56]Read from MH i2c: 01 [16:46:56]MH_I2C_Read... [16:46:56]Read from MH i2c: 01 07 00 [16:46:56]MH_I2C_Read... [16:46:56]Read from MH i2c: 01 07 00 56 08 00 00 00 00 00 F9 0C 6A [16:46:56]RasterBufferAndPrint [16:46:56]line [16:46:56]line [16:46:56]line [16:46:56]line [16:46:56]line [16:46:56]written 0, free lines is 3327 [16:46:56]MH_Cut [16:46:56]Write to MH i2c: D1 01 00 5D 08 01 37 [16:46:56]Write i2c OK [16:46:56]MH_I2C_Read... [16:46:56]Read from MH i2c: D1 [16:46:56]MH_I2C_Read... [16:46:56]Read from MH i2c: D1 01 00 [16:46:56]MH_I2C_Read... [16:46:56]Read from MH i2c: D1 01 00 5D 08 00 36 [16:46:56]Write to MH i2c: 01 00 00 5E 08 66 [16:46:56]Write i2c OK [16:46:56]MH_I2C_Read... [16:46:57]OFD Sender: No OFD packet to send [16:46:57]*** Cut start [16:46:57]*** Partial cut [16:46:57]*** CUTSNS_PIN = 1 [16:46:57]*** CUTSNS_PIN = 0 [16:46:57]*** Brake cut motor [16:46:57]Read from MH i2c: 01 [16:46:57]MH_I2C_Read... [16:46:57]*** Stop cut motor [16:46:57]*** Cut end [16:46:57]Read from MH i2c: 01 07 00 [16:46:57]MH_I2C_Read... [16:46:57]Read from MH i2c: 01 07 00 5E 08 00 00 00 00 00 FF 0F 7B [16:46:57]process_action close_receipt done [16:46:57]requested_data is exist [16:46:57]produce_requested_data [16:46:57]requested_item fm.sn is exist - process it [16:46:57]wFMCommunicate request_size=4 [16:46:57]MH_SAM_APDU [16:46:57]CAPDU: 80 11 00 00 [16:46:57]Write to MH i2c: E2 08 00 5F 08 80 11 00 00 00 00 00 00 E1 [16:46:57]Write i2c OK [16:46:57]MH_I2C_Read... [16:46:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:57]Read from MH i2c: E2 [16:46:57]MH_I2C_Read... [16:46:57]Read from MH i2c: E2 17 00 [16:46:57]MH_I2C_Read... [16:46:57]Read from MH i2c: E2 17 00 5F 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 37 [16:46:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:46:57]wFMCommunicate OK [16:46:57]requested_item fd.num is exist - process it [16:46:57]SAM_PROTO_GetFieldsCounters [16:46:57]wFMCommunicate request_size=4 [16:46:57]MH_SAM_APDU [16:46:57]CAPDU: 80 13 00 00 [16:46:57]Write to MH i2c: E2 08 00 60 08 80 13 00 00 00 00 00 00 E4 [16:46:57]Write i2c OK [16:46:57]MH_I2C_Read... [16:46:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:46:58]Read from MH i2c: E2 [16:46:58]MH_I2C_Read... [16:46:58]Read from MH i2c: E2 62 00 [16:46:58]MH_I2C_Read... [16:46:58]Read from MH i2c: E2 62 00 60 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 AB 84 02 00 0E 04 04 00 BF 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 B7 [16:46:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 AB 84 02 00 0E 04 04 00 BF 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 [16:46:58]wFMCommunicate OK [16:46:58]SAM_PROTO_GetFieldsCounters done [16:46:58]requested_item shift.num is exist - process it [16:46:58]requested_item shift.opened is exist - process it [16:46:58]req_shift_opened [16:46:58]FM_GetShiftState [16:46:58]SAM_PROTO_GetShiftState [16:46:58]wFMCommunicate request_size=4 [16:46:58]MH_SAM_APDU [16:46:58]CAPDU: 80 13 01 00 [16:46:58]Write to MH i2c: E2 08 00 61 08 80 13 01 00 00 00 00 00 E6 [16:46:58]Write i2c OK [16:46:58]MH_I2C_Read... [16:46:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:58]Read from MH i2c: E2 [16:46:58]MH_I2C_Read... [16:46:58]Read from MH i2c: E2 0E 00 [16:46:58]MH_I2C_Read... [16:46:58]Read from MH i2c: E2 0E 00 61 08 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 66 [16:46:58]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [16:46:58]wFMCommunicate OK [16:46:58]SAM_PROTO_GetShiftState done [16:46:58]FM_GetShiftState done [16:46:58]req_shift_opened done [16:46:58]requested_item shift.open_date is exist - process it [16:46:58]req_shift_open_date [16:46:58]req_shift_open_date done [16:46:58]produce_requested_data done [16:46:58]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165035,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [16:46:58]process_action_free close_receipt [16:46:58]json_value_free [16:46:58]json_value_free done [16:46:58]process_json_proto returns [16:46:58]Send response to host [16:46:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165035,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [16:46:58]free response buf [16:46:58]execute_script done [16:46:58]execute_script returns [16:46:58]free content buf [16:46:58]Sock 9.Close socket [16:46:58]Sock 9.Thread stoped [16:47:02]OFD Sender: No OFD packet to send [16:47:07]OFD Sender: No OFD packet to send [16:47:12]OFD Sender: No OFD packet to send [16:47:17]OFD Sender: No OFD packet to send [16:47:22]OFD Sender: No OFD packet to send [16:47:27]OFD Sender: No OFD packet to send [16:47:32]OFD Sender: No OFD packet to send [16:47:37]OFD Sender: No OFD packet to send [16:47:42]OFD Sender: No OFD packet to send [16:47:47]OFD Sender: No OFD packet to send [16:47:52]OFD Sender: No OFD packet to send [16:47:57]OFD Sender: No OFD packet to send [16:48:02]OFD Sender: No OFD packet to send [16:48:07]OFD Sender: No OFD packet to send [16:48:12]OFD Sender: No OFD packet to send [16:48:17]OFD Sender: No OFD packet to send [16:48:22]OFD Sender: No OFD packet to send [16:48:27]OFD Sender: No OFD packet to send [16:48:32]OFD Sender: No OFD packet to send [16:48:37]OFD Sender: No OFD packet to send [16:48:42]OFD Sender: No OFD packet to send [16:48:47]OFD Sender: No OFD packet to send [16:48:52]OFD Sender: No OFD packet to send [16:48:57]OFD Sender: No OFD packet to send [16:48:58]accept exits with 8 [16:48:58]New connection [16:48:58]New thread 3066531172 created [16:48:58]Thread 3066674532 joined [16:48:58]Waiting for new connection... [16:48:58] Sock 8.Parse request [16:48:58]Sock 8.Check first char [16:48:58]Sock 8.First char is OK [16:48:58]request: POST /json_proto HTTP/1.0 [16:48:58]Method: POST [16:48:58]URL: /json_proto [16:48:58]Method is POST - this is cgi request [16:48:58]url: /json_proto [16:48:58]query_string will be loaded in cgi processing [16:48:58]execute_cgi json_proto POST (null) [16:48:58]execute_cgi path=json_proto method=POST [16:48:58]POST find Content-Length [16:48:58]Host: 172.17.56.4:8080 [16:48:58]Content-Length: 675 [16:48:58]Content-Type: application/json [16:48:58] [16:48:58]POST finish read [16:48:58]Found Content-Length = 675 [16:48:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459137", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 10.020, "sum" : 720.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 720.00, "total" : 720.00, "payments": [ { "type": 0, "sum" : 720.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:58]execute_script... [16:48: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)459137", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 10.020, "sum" : 720.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 720.00, "total" : 720.00, "payments": [ { "type": 0, "sum" : 720.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:58]POST & json_proto [16:48:58]process_json_proto [16:48:58]json parsed OK: [16:48:58]protocol is kg_v1.0 [16:48:58]action value=close_receipt [16:48:58]process_action close_receipt [16:48:58]cmd_close_receipt [16:48:58]MH_GetDate [16:48:58]Write to MH i2c: F0 00 00 62 08 59 [16:48:58]Write i2c OK [16:48:58]MH_I2C_Read... [16:48:58]Read from MH i2c: F0 [16:48:58]MH_I2C_Read... [16:48:58]Read from MH i2c: F0 09 00 [16:48:58]MH_I2C_Read... [16:48:58]Read from MH i2c: F0 09 00 62 08 00 7B 01 94 66 C9 DC B2 64 93 [16:48:58]GetLastDocTimeStamp 1720975615 [16:48:58]current date 1720975739 [16:48:58]FM_GetShiftState [16:48:58]SAM_PROTO_GetShiftState [16:48:58]wFMCommunicate request_size=4 [16:48:58]MH_SAM_APDU [16:48:58]CAPDU: 80 13 01 00 [16:48:58]Write to MH i2c: E2 08 00 63 08 80 13 01 00 00 00 00 00 E8 [16:48:58]Write i2c OK [16:48:58]MH_I2C_Read... [16:48:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:58]Read from MH i2c: E2 [16:48:58]MH_I2C_Read... [16:48:58]Read from MH i2c: E2 0E 00 [16:48:58]MH_I2C_Read... [16:48:58]Read from MH i2c: E2 0E 00 63 08 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 68 [16:48:58]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [16:48:58]wFMCommunicate OK [16:48:58]SAM_PROTO_GetShiftState done [16:48:58]FM_GetShiftState done [16:48:58]opened in 1720917342 [16:48:58]opened+sec_in_day 1721003742 [16:48:58]quantity*price = 72043 [16:48:58]sum+1 = 72045 [16:48:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 720.00 Внесено: 720.00 СДАЧА: 0.00 НСП 1% : 6.38 НДС 12% : 76.51 Наличными: 720.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 234 14.07.2024 16:48 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165036 ФПД: 245366680869429 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T164859&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165036&fm=245366680869429&tin=02508201610067®Number=0000000000090829&sum=72000 [16:48:59]StoreToDocumentArchive [16:48:59]shift 447 fd 165036 [16:48:59]save to /storage/0447/doc_00165036 [16:48:59]save last doc name /storage/0447/doc_00165036 to /storage/kkm_last_doc_name [16:48:59]save OK [16:48:59]Clear old archive folders... [16:48:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:48:59]tlvbuf is 01490610 [16:48:59]SAM_PROTO_ClearQueue [16:48:59]wFMCommunicate request_size=4 [16:48:59]MH_SAM_APDU [16:48:59]CAPDU: 80 09 00 00 [16:48:59]Write to MH i2c: E2 08 00 70 08 80 09 00 00 00 00 00 00 EA [16:48:59]Write i2c OK [16:48:59]MH_I2C_Read... [16:48:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:48:59]Read from MH i2c: E2 [16:48:59]MH_I2C_Read... [16:48:59]Read from MH i2c: E2 03 00 [16:48:59]MH_I2C_Read... [16:48:59]Read from MH i2c: E2 03 00 70 08 00 90 00 EC [16:48:59]RAPDU: 90 00 [16:48:59]wFMCommunicate OK [16:48:59]SAM_PROTO_ClearQueue done [16:48:59]KKMCreateOFDPacket [16:48:59]OFDProtocolAddRootSTLVToBuf [16:48:59]FM_MakeSignedData [16:48:59]FM_MakeSignedData [16:48:59]SAM_PROTO_SignData [16:48:59]wFMCommunicate request_size=4 [16:48:59]MH_SAM_APDU [16:48:59]CAPDU: 80 0D 01 02 [16:48:59]Write to MH i2c: E2 08 00 71 08 80 0D 01 02 00 00 00 00 F2 [16:48:59]Write i2c OK [16:48:59]MH_I2C_Read... [16:49:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:49:00]Read from MH i2c: E2 [16:49:00]MH_I2C_Read... [16:49:00]Read from MH i2c: E2 03 00 [16:49:00]MH_I2C_Read... [16:49:00]Read from MH i2c: E2 03 00 71 08 00 90 00 ED [16:49:00]RAPDU: 90 00 [16:49:00]wFMCommunicate OK [16:49:00]wFMCommunicate request_size=255 [16:49:00]MH_SAM_APDU [16:49:00]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 6C 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 1D 00 00 00 00 07 04 06 00 40 19 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 7B 01 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AC 84 02 00 35 04 06 00 DF 28 E1 DA [16:49:00]Write to MH i2c: E2 02 01 72 08 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 24 27 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 6C 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 1D 00 00 00 00 07 04 06 00 40 19 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 7B 01 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AC 84 02 00 35 04 06 00 DF 28 E1 DA 00 00 A0 [16:49:00]Write i2c OK [16:49:00]MH_I2C_Read... [16:49:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:49:00]Read from MH i2c: E2 [16:49:00]MH_I2C_Read... [16:49:00]Read from MH i2c: E2 03 00 [16:49:00]MH_I2C_Read... [16:49:00]Read from MH i2c: E2 03 00 72 08 00 90 00 EE [16:49:00]RAPDU: 90 00 [16:49:00]wFMCommunicate OK [16:49:00]wFMCommunicate request_size=7 [16:49:00]MH_SAM_APDU [16:49:00]CAPDU: 80 0D 02 02 02 5A 35 [16:49:00]Write to MH i2c: E2 0A 00 73 08 80 0D 02 02 02 00 5A 35 00 00 88 [16:49:00]Write i2c OK [16:49:00]MH_I2C_Read... [16:49:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:49:00]Read from MH i2c: E2 [16:49:00]MH_I2C_Read... [16:49:00]Read from MH i2c: E2 03 00 [16:49:00]MH_I2C_Read... [16:49:00]Read from MH i2c: E2 03 00 73 08 00 90 00 EF [16:49:00]RAPDU: 90 00 [16:49:00]wFMCommunicate OK [16:49:00]wFMCommunicate request_size=4 [16:49:00]MH_SAM_APDU [16:49:00]CAPDU: 80 0D 03 02 [16:49:00]Write to MH i2c: E2 08 00 74 08 80 0D 03 02 00 00 00 00 F7 [16:49:00]Write i2c OK [16:49:00]MH_I2C_Read... [16:49:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:49:00]Read from MH i2c: E2 [16:49:00]MH_I2C_Read... [16:49:00]Read from MH i2c: E2 0B 00 [16:49:00]MH_I2C_Read... [16:49:00]Read from MH i2c: E2 0B 00 74 08 00 63 21 C4 C6 01 2D 0C EA 90 00 2A [16:49:00]RAPDU: 63 21 C4 C6 01 2D 0C EA 90 00 [16:49:00]wFMCommunicate OK [16:49:00]SAM_PROTO_SignData done [16:49:00]FM_MakeSignedData done [16:49:00]CreateOFDProtocolMessage [16:49:00]wFMCommunicate request_size=4 [16:49:00]MH_SAM_APDU [16:49:00]CAPDU: 80 11 00 00 [16:49:00]Write to MH i2c: E2 08 00 75 08 80 11 00 00 00 00 00 00 F7 [16:49:00]Write i2c OK [16:49:00]MH_I2C_Read... [16:49:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:49:00]Read from MH i2c: E2 [16:49:00]MH_I2C_Read... [16:49:00]Read from MH i2c: E2 17 00 [16:49:00]MH_I2C_Read... [16:49:00]Read from MH i2c: E2 17 00 75 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 4D [16:49:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:49:00]wFMCommunicate OK [16:49:00]CreateOFDProtocolMessage done [16:49:00]OFDSenderStorePacket 165036 [16:49:00]StoreOFDPacket docnum=165036 [16:49:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 91 0B 04 01 77 37 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 6C 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 1D 00 00 00 00 07 04 06 00 40 19 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 7B 01 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AC 84 02 00 35 04 06 00 DF 28 E1 DA 5A 35 63 21 C4 C6 01 2D 0C EA [16:49:00]CheckFolder [16:49:00]dirname=/storage/ofd_packets [16:49:00]CheckFolder done [16:49:00]ProducePacketName [16:49:00]name=ofd_packets/00165036 [16:49:00]NVStorageSaveData ofd_packets/00165036 [16:49:00]File name is /storage/ofd_packets/00165036 [16:49:00]Write 298 bytes [16:49:00]NVStorageSaveData done [16:49:00]OFDSenderStorePacket done [16:49:00]KKMCreateOFDPacket done [16:49:00]NVStorageSaveData kkm_last_timestamp [16:49:00]File name is /storage/kkm_last_timestamp [16:49:00]Write 4 bytes [16:49:00]NVStorageSaveData done [16:49:00]ExternCall_PrintAddStr [16:49:00]wPrintStart [16:49:00]Write to MH i2c: 01 00 00 76 08 7E [16:49:00]Write i2c OK [16:49:00]MH_I2C_Read... [16:49:00]Read from MH i2c: 01 [16:49:00]MH_I2C_Read... [16:49:00]Read from MH i2c: 01 07 00 [16:49:00]MH_I2C_Read... [16:49:00]Read from MH i2c: 01 07 00 76 08 00 00 00 00 00 FF 0F 93 [16:49:00]RasterBufferAndPrint [16:49:00]line Счет N : (1)459137 [16:49:00]line ИНН: 02508201610067 [16:49:00]line Контрольно-Кассовый Чек [16:49:00]line ПРОДАЖА [16:49:00]line ТРК (МРК, ГНК) : 21 [16:49:00]line Товар: 2710194210 [16:49:00]line ДТ-К-5 [16:49:00]line 10.020 * 71.90 [16:49:00]line = 720.44 [16:49:00]line НДС 12% НСП 1% [16:49:00]line > о реализуемом товаре [16:49:00]line ОКРУГЛЕНИЕ: -0.44 [16:49:00]line ИТОГО: 720.00 [16:49:00]line Внесено: 720.00 [16:49:00]line СДАЧА: 0.00 [16:49:00]line НСП 1% : 6.38 [16:49:00]line НДС 12% : 76.51 [16:49:00]line Наличными: 720.00 [16:49:00]line Безнал.: 0.00 [16:49:00]line Место: АЗС № 72 "Партнер Нефть" [16:49:00]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:49:00]line СНО: Общий режим [16:49:00]line Чек 234 14.07.2024 16:48 [16:49:00]line Смена: 447 ФФД: 1.0 [16:49:00]line ЗНМ: 0300000160 [16:49:00]line РНМ: 0000000000090829 [16:49:00]line Версия ККМ: 001 [16:49:00]line ФМ: 0000000000874718 [16:49:00]line ФД: 165036 [16:49:00]line ФПД: 245366680869429 [16:49:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T164859&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165036&fm=245366680869429&tin=02508201610067®Number=0000000000090829&sum=72000 [16:49:00]OFD Sender: Processing packet 165036 [packets to send 105, broken 104] [16:49:00]ProducePacketName [16:49:00]name=ofd_packets/00165036 [16:49:00]OFD Sender: To server: pG, [16:49:00]CommunicateWithHost lk.salyk.kg:30040 [16:49:00]ConnectInit lk.salyk.kg [16:49:00]written 0, free lines is 4095 [16:49:00]Connected sock=10 [16:49:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 91 0B 04 01 77 37 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 6C 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 1D 00 00 00 00 07 04 06 00 40 19 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 7B 01 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AC 84 02 00 35 04 06 00 DF 28 E1 DA 5A 35 63 21 C4 C6 01 2D 0C EA [16:49:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 F1 54 47 00 FD E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AC 84 02 00 F4 03 04 00 09 A8 93 66 B6 04 01 00 00 25 03 E8 3D 94 A2 4A 44 [16:49:01]CommunicateWithHost err = 0 [16:49:01]CheckOFDResponse [16:49:01]1017 (14) - 77093643461234 [16:49:01]1041 (16) - 0000000000874718 [16:49:01]1040 (4) - 165036 [16:49:01]1012 (4) - 14.07.2024 10:27 [16:49:01]1206 (1) - 0 [16:49:01]OFD Sender: Remove packet 165036 [16:49:01]ProducePacketName [16:49:01]name=ofd_packets/00165036 [16:49:01]NVStorageDeleteData [16:49:01]Write to MH i2c: 01 00 00 A0 08 A8 [16:49:01]Write i2c OK [16:49:01]MH_I2C_Read... [16:49:01]Read from MH i2c: 01 [16:49:01]MH_I2C_Read... [16:49:01]Read from MH i2c: 01 07 00 [16:49:01]MH_I2C_Read... [16:49:01]Read from MH i2c: 01 07 00 A0 08 00 00 00 00 00 FA 0C B5 [16:49:01]RasterBufferAndPrint [16:49:01]line [16:49:01]line [16:49:01]line [16:49:01]line [16:49:01]line [16:49:01]written 0, free lines is 3328 [16:49:01]MH_Cut [16:49:01]Write to MH i2c: D1 01 00 A7 08 01 81 [16:49:01]Write i2c OK [16:49:01]MH_I2C_Read... [16:49:01]Read from MH i2c: D1 [16:49:01]MH_I2C_Read... [16:49:01]Read from MH i2c: D1 01 00 [16:49:01]MH_I2C_Read... [16:49:01]Read from MH i2c: D1 01 00 A7 08 00 80 [16:49:01]Write to MH i2c: 01 00 00 A8 08 B0 [16:49:01]Write i2c OK [16:49:01]MH_I2C_Read... [16:49:01]OFD Sender: No OFD packet to send [16:49:01]*** Cut start [16:49:01]*** Partial cut [16:49:01]*** CUTSNS_PIN = 1 [16:49:01]*** CUTSNS_PIN = 0 [16:49:02]*** Brake cut motor [16:49:02]Read from MH i2c: 01 [16:49:02]MH_I2C_Read... [16:49:02]*** Stop cut motor [16:49:02]*** Cut end [16:49:02]Read from MH i2c: 01 07 00 [16:49:02]MH_I2C_Read... [16:49:02]Read from MH i2c: 01 07 00 A8 08 00 00 00 00 00 FF 0F C5 [16:49:02]process_action close_receipt done [16:49:02]requested_data is exist [16:49:02]produce_requested_data [16:49:02]requested_item fm.sn is exist - process it [16:49:02]wFMCommunicate request_size=4 [16:49:02]MH_SAM_APDU [16:49:02]CAPDU: 80 11 00 00 [16:49:02]Write to MH i2c: E2 08 00 A9 08 80 11 00 00 00 00 00 00 2B [16:49:02]Write i2c OK [16:49:02]MH_I2C_Read... [16:49:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:49:02]Read from MH i2c: E2 [16:49:02]MH_I2C_Read... [16:49:02]Read from MH i2c: E2 17 00 [16:49:02]MH_I2C_Read... [16:49:02]Read from MH i2c: E2 17 00 A9 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 81 [16:49:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:49:02]wFMCommunicate OK [16:49:02]requested_item fd.num is exist - process it [16:49:02]SAM_PROTO_GetFieldsCounters [16:49:02]wFMCommunicate request_size=4 [16:49:02]MH_SAM_APDU [16:49:02]CAPDU: 80 13 00 00 [16:49:02]Write to MH i2c: E2 08 00 AA 08 80 13 00 00 00 00 00 00 2E [16:49:02]Write i2c OK [16:49:02]MH_I2C_Read... [16:49:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:49:02]Read from MH i2c: E2 [16:49:02]MH_I2C_Read... [16:49:02]Read from MH i2c: E2 62 00 [16:49:02]MH_I2C_Read... [16:49:02]Read from MH i2c: E2 62 00 AA 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 AC 84 02 00 0E 04 04 00 BF 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 05 [16:49:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 AC 84 02 00 0E 04 04 00 BF 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 [16:49:02]wFMCommunicate OK [16:49:02]SAM_PROTO_GetFieldsCounters done [16:49:02]requested_item shift.num is exist - process it [16:49:02]requested_item shift.opened is exist - process it [16:49:02]req_shift_opened [16:49:02]FM_GetShiftState [16:49:02]SAM_PROTO_GetShiftState [16:49:02]wFMCommunicate request_size=4 [16:49:02]MH_SAM_APDU [16:49:02]CAPDU: 80 13 01 00 [16:49:02]Write to MH i2c: E2 08 00 AB 08 80 13 01 00 00 00 00 00 30 [16:49:02]Write i2c OK [16:49:02]MH_I2C_Read... [16:49:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:49:02]Read from MH i2c: E2 [16:49:02]MH_I2C_Read... [16:49:02]Read from MH i2c: E2 0E 00 [16:49:02]MH_I2C_Read... [16:49:02]Read from MH i2c: E2 0E 00 AB 08 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 B0 [16:49:02]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [16:49:02]wFMCommunicate OK [16:49:02]SAM_PROTO_GetShiftState done [16:49:02]FM_GetShiftState done [16:49:02]req_shift_opened done [16:49:02]requested_item shift.open_date is exist - process it [16:49:02]req_shift_open_date [16:49:02]req_shift_open_date done [16:49:02]produce_requested_data done [16:49:02]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165036,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [16:49:02]process_action_free close_receipt [16:49:02]json_value_free [16:49:02]json_value_free done [16:49:02]process_json_proto returns [16:49:02]Send response to host [16:49:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165036,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [16:49:02]free response buf [16:49:02]execute_script done [16:49:02]execute_script returns [16:49:02]free content buf [16:49:02]Sock 8.Close socket [16:49:02]Sock 8.Thread stoped [16:49:06]OFD Sender: No OFD packet to send [16:49:11]OFD Sender: No OFD packet to send [16:49:16]OFD Sender: No OFD packet to send [16:49:21]OFD Sender: No OFD packet to send [16:49:26]OFD Sender: No OFD packet to send [16:49:29]accept exits with 9 [16:49:29]New connection [16:49:29]New thread 3066674532 created [16:49:29]Thread 3066531172 joined [16:49:29]Waiting for new connection... [16:49:29] Sock 9.Parse request [16:49:29]Sock 9.Check first char [16:49:29]Sock 9.First char is OK [16:49:29]request: POST /json_proto HTTP/1.0 [16:49:29]Method: POST [16:49:29]URL: /json_proto [16:49:29]Method is POST - this is cgi request [16:49:29]url: /json_proto [16:49:29]query_string will be loaded in cgi processing [16:49:29]execute_cgi json_proto POST (null) [16:49:29]execute_cgi path=json_proto method=POST [16:49:29]POST find Content-Length [16:49:29]Host: 172.17.56.4:8080 [16:49:29]Content-Length: 677 [16:49:29]Content-Type: application/json [16:49:29] [16:49:29]POST finish read [16:49:29]Found Content-Length = 677 [16:49:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459138", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:49:29]execute_script... [16:49: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)459138", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:49:29]POST & json_proto [16:49:29]process_json_proto [16:49:29]json parsed OK: [16:49:29]protocol is kg_v1.0 [16:49:29]action value=close_receipt [16:49:29]process_action close_receipt [16:49:29]cmd_close_receipt [16:49:29]MH_GetDate [16:49:29]Write to MH i2c: F0 00 00 AC 08 A3 [16:49:29]Write i2c OK [16:49:29]MH_I2C_Read... [16:49:29]Read from MH i2c: F0 [16:49:29]MH_I2C_Read... [16:49:29]Read from MH i2c: F0 09 00 [16:49:29]MH_I2C_Read... [16:49:29]Read from MH i2c: F0 09 00 AC 08 00 9A 01 94 66 C9 DC B2 64 FC [16:49:29]GetLastDocTimeStamp 1720975739 [16:49:29]current date 1720975770 [16:49:29]FM_GetShiftState [16:49:29]SAM_PROTO_GetShiftState [16:49:29]wFMCommunicate request_size=4 [16:49:29]MH_SAM_APDU [16:49:29]CAPDU: 80 13 01 00 [16:49:29]Write to MH i2c: E2 08 00 AD 08 80 13 01 00 00 00 00 00 32 [16:49:29]Write i2c OK [16:49:29]MH_I2C_Read... [16:49:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:49:29]Read from MH i2c: E2 [16:49:29]MH_I2C_Read... [16:49:29]Read from MH i2c: E2 0E 00 [16:49:29]MH_I2C_Read... [16:49:29]Read from MH i2c: E2 0E 00 AD 08 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 B2 [16:49:29]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [16:49:29]wFMCommunicate OK [16:49:29]SAM_PROTO_GetShiftState done [16:49:29]FM_GetShiftState done [16:49:29]opened in 1720917342 [16:49:29]opened+sec_in_day 1721003742 [16:49:29]quantity*price = 50008 [16:49:29]sum+1 = 50009 [16:49:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 235 14.07.2024 16:49 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165037 ФПД: 115748986867785 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T164930&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165037&fm=115748986867785&tin=02508201610067®Number=0000000000090829&sum=50000 [16:49:30]StoreToDocumentArchive [16:49:30]shift 447 fd 165037 [16:49:30]save to /storage/0447/doc_00165037 [16:49:30]save last doc name /storage/0447/doc_00165037 to /storage/kkm_last_doc_name [16:49:30]save OK [16:49:30]Clear old archive folders... [16:49:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:49:30]tlvbuf is 014918B0 [16:49:30]SAM_PROTO_ClearQueue [16:49:30]wFMCommunicate request_size=4 [16:49:30]MH_SAM_APDU [16:49:30]CAPDU: 80 09 00 00 [16:49:30]Write to MH i2c: E2 08 00 BA 08 80 09 00 00 00 00 00 00 34 [16:49:30]Write i2c OK [16:49:30]MH_I2C_Read... [16:49:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:49:30]Read from MH i2c: E2 [16:49:30]MH_I2C_Read... [16:49:30]Read from MH i2c: E2 03 00 [16:49:30]MH_I2C_Read... [16:49:30]Read from MH i2c: E2 03 00 BA 08 00 90 00 36 [16:49:30]RAPDU: 90 00 [16:49:30]wFMCommunicate OK [16:49:30]SAM_PROTO_ClearQueue done [16:49:30]KKMCreateOFDPacket [16:49:30]OFDProtocolAddRootSTLVToBuf [16:49:30]FM_MakeSignedData [16:49:30]FM_MakeSignedData [16:49:30]SAM_PROTO_SignData [16:49:30]wFMCommunicate request_size=4 [16:49:30]MH_SAM_APDU [16:49:30]CAPDU: 80 0D 01 02 [16:49:30]Write to MH i2c: E2 08 00 BB 08 80 0D 01 02 00 00 00 00 3C [16:49:30]Write i2c OK [16:49:30]MH_I2C_Read... [16:49:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:49:30]Read from MH i2c: E2 [16:49:30]MH_I2C_Read... [16:49:30]Read from MH i2c: E2 03 00 [16:49:30]MH_I2C_Read... [16:49:30]Read from MH i2c: E2 03 00 BB 08 00 90 00 37 [16:49:30]RAPDU: 90 00 [16:49:30]wFMCommunicate OK [16:49:30]wFMCommunicate request_size=255 [16:49:30]MH_SAM_APDU [16:49:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 EB 00 00 00 F4 03 04 00 9A 01 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AD 84 02 00 35 04 06 00 69 [16:49:30]Write to MH i2c: E2 02 01 BC 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 EB 00 00 00 F4 03 04 00 9A 01 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AD 84 02 00 35 04 06 00 69 00 00 91 [16:49:30]Write i2c OK [16:49:30]MH_I2C_Read... [16:49:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:49:31]Read from MH i2c: E2 [16:49:31]MH_I2C_Read... [16:49:31]Read from MH i2c: E2 03 00 [16:49:31]MH_I2C_Read... [16:49:31]Read from MH i2c: E2 03 00 BC 08 00 90 00 38 [16:49:31]RAPDU: 90 00 [16:49:31]wFMCommunicate OK [16:49:31]wFMCommunicate request_size=10 [16:49:31]MH_SAM_APDU [16:49:31]CAPDU: 80 0D 02 02 05 45 E9 3E D0 49 [16:49:31]Write to MH i2c: E2 0D 00 BD 08 80 0D 02 02 05 00 45 E9 3E D0 49 00 00 CE [16:49:31]Write i2c OK [16:49:31]MH_I2C_Read... [16:49:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:49:31]Read from MH i2c: E2 [16:49:31]MH_I2C_Read... [16:49:31]Read from MH i2c: E2 03 00 [16:49:31]MH_I2C_Read... [16:49:31]Read from MH i2c: E2 03 00 BD 08 00 90 00 39 [16:49:31]RAPDU: 90 00 [16:49:31]wFMCommunicate OK [16:49:31]wFMCommunicate request_size=4 [16:49:31]MH_SAM_APDU [16:49:31]CAPDU: 80 0D 03 02 [16:49:31]Write to MH i2c: E2 08 00 BE 08 80 0D 03 02 00 00 00 00 41 [16:49:31]Write i2c OK [16:49:31]MH_I2C_Read... [16:49:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:49:31]Read from MH i2c: E2 [16:49:31]MH_I2C_Read... [16:49:31]Read from MH i2c: E2 0B 00 [16:49:31]MH_I2C_Read... [16:49:31]Read from MH i2c: E2 0B 00 BE 08 00 99 D5 32 41 F2 63 3C CE 90 00 82 [16:49:31]RAPDU: 99 D5 32 41 F2 63 3C CE 90 00 [16:49:31]wFMCommunicate OK [16:49:31]SAM_PROTO_SignData done [16:49:31]FM_MakeSignedData done [16:49:31]CreateOFDProtocolMessage [16:49:31]wFMCommunicate request_size=4 [16:49:31]MH_SAM_APDU [16:49:31]CAPDU: 80 11 00 00 [16:49:31]Write to MH i2c: E2 08 00 BF 08 80 11 00 00 00 00 00 00 41 [16:49:31]Write i2c OK [16:49:31]MH_I2C_Read... [16:49:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:49:31]Read from MH i2c: E2 [16:49:31]MH_I2C_Read... [16:49:31]Read from MH i2c: E2 17 00 [16:49:31]MH_I2C_Read... [16:49:31]Read from MH i2c: E2 17 00 BF 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 97 [16:49:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:49:31]wFMCommunicate OK [16:49:31]CreateOFDProtocolMessage done [16:49:31]OFDSenderStorePacket 165037 [16:49:31]StoreOFDPacket docnum=165037 [16:49:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 A4 94 07 01 5F B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 EB 00 00 00 F4 03 04 00 9A 01 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AD 84 02 00 35 04 06 00 69 45 E9 3E D0 49 99 D5 32 41 F2 63 3C CE [16:49:31]CheckFolder [16:49:31]dirname=/storage/ofd_packets [16:49:31]CheckFolder done [16:49:31]ProducePacketName [16:49:31]name=ofd_packets/00165037 [16:49:31]NVStorageSaveData ofd_packets/00165037 [16:49:31]File name is /storage/ofd_packets/00165037 [16:49:31]Write 301 bytes [16:49:31]NVStorageSaveData done [16:49:31]OFDSenderStorePacket done [16:49:31]KKMCreateOFDPacket done [16:49:31]NVStorageSaveData kkm_last_timestamp [16:49:31]File name is /storage/kkm_last_timestamp [16:49:31]Write 4 bytes [16:49:31]NVStorageSaveData done [16:49:31]OFD Sender: Processing packet 165037 [packets to send 105, broken 104] [16:49:31]ProducePacketName [16:49:31]name=ofd_packets/00165037 [16:49:31]OFD Sender: To server: pG, [16:49:31]CommunicateWithHost lk.salyk.kg:30040 [16:49:31]ConnectInit lk.salyk.kg [16:49:31]ExternCall_PrintAddStr [16:49:31]wPrintStart [16:49:31]Write to MH i2c: 01 00 00 C0 08 C8 [16:49:31]Write i2c OK [16:49:31]MH_I2C_Read... [16:49:31]Read from MH i2c: 01 [16:49:31]MH_I2C_Read... [16:49:31]Read from MH i2c: 01 07 00 [16:49:31]MH_I2C_Read... [16:49:31]Read from MH i2c: 01 07 00 C0 08 00 00 00 00 00 FF 0F DD [16:49:31]RasterBufferAndPrint [16:49:31]line Счет N : (1)459138 [16:49:31]line ИНН: 02508201610067 [16:49:31]line Контрольно-Кассовый Чек [16:49:31]line ПРОДАЖА [16:49:31]line ТРК (МРК, ГНК) : 12 [16:49:31]line Товар: 2710124130 [16:49:31]line Аи-92-К-5 [16:49:31]line 7.600 * 65.80 [16:49:31]line = 500.08 [16:49:31]line НДС 12% НСП 1% [16:49:31]line > о реализуемом товаре [16:49:31]line ОКРУГЛЕНИЕ: -0.08 [16:49:31]line ИТОГО: 500.00 [16:49:31]line Внесено: 500.00 [16:49:31]line СДАЧА: 0.00 [16:49:31]line НСП 1% : 4.42 [16:49:31]line НДС 12% : 53.11 [16:49:31]line Наличными: 500.00 [16:49:31]line Безнал.: 0.00 [16:49:31]line Место: АЗС № 72 "Партнер Нефть" [16:49:31]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:49:31]line СНО: Общий режим [16:49:31]line Чек 235 14.07.2024 16:49 [16:49:31]line Смена: 447 ФФД: 1.0 [16:49:31]line ЗНМ: 0300000160 [16:49:31]line РНМ: 0000000000090829 [16:49:31]line Версия ККМ: 001 [16:49:31]line ФМ: 0000000000874718 [16:49:31]line ФД: 165037 [16:49:31]line ФПД: 115748986867785 [16:49:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T164930&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165037&fm=115748986867785&tin=02508201610067®Number=0000000000090829&sum=50000 [16:49:31]Connected sock=11 [16:49:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 A4 94 07 01 5F B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 EB 00 00 00 F4 03 04 00 9A 01 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AD 84 02 00 35 04 06 00 69 45 E9 3E D0 49 99 D5 32 41 F2 63 3C CE [16:49:31]written 0, free lines is 4095 [16:49:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 6F 48 47 00 69 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 38 37 34 37 31 38 10 04 04 00 AD 84 02 00 F4 03 04 00 27 A8 93 66 B6 04 01 00 00 55 7D 89 D6 98 30 F1 84 [16:49:31]CommunicateWithHost err = 0 [16:49:31]CheckOFDResponse [16:49:31]1017 (14) - 77093643461234 [16:49:31]1041 (16) - 0000000000874718 [16:49:31]1040 (4) - 165037 [16:49:31]1012 (4) - 14.07.2024 10:27 [16:49:31]1206 (1) - 0 [16:49:31]OFD Sender: Remove packet 165037 [16:49:31]ProducePacketName [16:49:31]name=ofd_packets/00165037 [16:49:31]NVStorageDeleteData [16:49:32]Write to MH i2c: 01 00 00 EA 08 F2 [16:49:32]Write i2c OK [16:49:32]MH_I2C_Read... [16:49:32]Read from MH i2c: 01 [16:49:32]MH_I2C_Read... [16:49:32]Read from MH i2c: 01 07 00 [16:49:32]MH_I2C_Read... [16:49:32]Read from MH i2c: 01 07 00 EA 08 00 00 00 00 00 EB 0C F0 [16:49:32]RasterBufferAndPrint [16:49:32]line [16:49:32]line [16:49:32]line [16:49:32]line [16:49:32]line [16:49:32]written 0, free lines is 3314 [16:49:32]MH_Cut [16:49:32]Write to MH i2c: D1 01 00 F1 08 01 CB [16:49:32]Write i2c OK [16:49:32]MH_I2C_Read... [16:49:32]Read from MH i2c: D1 [16:49:32]MH_I2C_Read... [16:49:32]Read from MH i2c: D1 01 00 [16:49:32]MH_I2C_Read... [16:49:32]Read from MH i2c: D1 01 00 F1 08 00 CA [16:49:32]Write to MH i2c: 01 00 00 F2 08 FA [16:49:32]Write i2c OK [16:49:32]MH_I2C_Read... [16:49:32]OFD Sender: No OFD packet to send [16:49:32]*** Cut start [16:49:32]*** Partial cut [16:49:32]*** CUTSNS_PIN = 1 [16:49:32]*** CUTSNS_PIN = 0 [16:49:33]*** Brake cut motor [16:49:33]Read from MH i2c: 01 [16:49:33]MH_I2C_Read... [16:49:33]*** Stop cut motor [16:49:33]*** Cut end [16:49:33]Read from MH i2c: 01 07 00 [16:49:33]MH_I2C_Read... [16:49:33]Read from MH i2c: 01 07 00 F2 08 00 00 00 00 00 FF 0F 0F [16:49:33]process_action close_receipt done [16:49:33]requested_data is exist [16:49:33]produce_requested_data [16:49:33]requested_item fm.sn is exist - process it [16:49:33]wFMCommunicate request_size=4 [16:49:33]MH_SAM_APDU [16:49:33]CAPDU: 80 11 00 00 [16:49:33]Write to MH i2c: E2 08 00 F3 08 80 11 00 00 00 00 00 00 75 [16:49:33]Write i2c OK [16:49:33]MH_I2C_Read... [16:49:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:49:33]Read from MH i2c: E2 [16:49:33]MH_I2C_Read... [16:49:33]Read from MH i2c: E2 17 00 [16:49:33]MH_I2C_Read... [16:49:33]Read from MH i2c: E2 17 00 F3 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 CB [16:49:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:49:33]wFMCommunicate OK [16:49:33]requested_item fd.num is exist - process it [16:49:33]SAM_PROTO_GetFieldsCounters [16:49:33]wFMCommunicate request_size=4 [16:49:33]MH_SAM_APDU [16:49:33]CAPDU: 80 13 00 00 [16:49:33]Write to MH i2c: E2 08 00 F4 08 80 13 00 00 00 00 00 00 78 [16:49:33]Write i2c OK [16:49:33]MH_I2C_Read... [16:49:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:49:33]Read from MH i2c: E2 [16:49:33]MH_I2C_Read... [16:49:33]Read from MH i2c: E2 62 00 [16:49:33]MH_I2C_Read... [16:49:33]Read from MH i2c: E2 62 00 F4 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 AD 84 02 00 0E 04 04 00 BF 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 53 [16:49:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 AD 84 02 00 0E 04 04 00 BF 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 [16:49:33]wFMCommunicate OK [16:49:33]SAM_PROTO_GetFieldsCounters done [16:49:33]requested_item shift.num is exist - process it [16:49:33]requested_item shift.opened is exist - process it [16:49:33]req_shift_opened [16:49:33]FM_GetShiftState [16:49:33]SAM_PROTO_GetShiftState [16:49:33]wFMCommunicate request_size=4 [16:49:33]MH_SAM_APDU [16:49:33]CAPDU: 80 13 01 00 [16:49:33]Write to MH i2c: E2 08 00 F5 08 80 13 01 00 00 00 00 00 7A [16:49:33]Write i2c OK [16:49:33]MH_I2C_Read... [16:49:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:49:33]Read from MH i2c: E2 [16:49:33]MH_I2C_Read... [16:49:33]Read from MH i2c: E2 0E 00 [16:49:33]MH_I2C_Read... [16:49:33]Read from MH i2c: E2 0E 00 F5 08 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 FA [16:49:33]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [16:49:33]wFMCommunicate OK [16:49:33]SAM_PROTO_GetShiftState done [16:49:33]FM_GetShiftState done [16:49:33]req_shift_opened done [16:49:33]requested_item shift.open_date is exist - process it [16:49:33]req_shift_open_date [16:49:33]req_shift_open_date done [16:49:33]produce_requested_data done [16:49:33]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165037,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [16:49:33]process_action_free close_receipt [16:49:33]json_value_free [16:49:33]json_value_free done [16:49:33]process_json_proto returns [16:49:33]Send response to host [16:49:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165037,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [16:49:33]free response buf [16:49:33]execute_script done [16:49:33]execute_script returns [16:49:33]free content buf [16:49:33]Sock 9.Close socket [16:49:33]Sock 9.Thread stoped [16:49:37]OFD Sender: No OFD packet to send [16:49:42]OFD Sender: No OFD packet to send [16:49:47]OFD Sender: No OFD packet to send [16:49:52]OFD Sender: No OFD packet to send [16:49:57]OFD Sender: No OFD packet to send [16:50:02]OFD Sender: No OFD packet to send [16:50:07]OFD Sender: No OFD packet to send [16:50:12]OFD Sender: No OFD packet to send [16:50:17]OFD Sender: No OFD packet to send [16:50:22]OFD Sender: No OFD packet to send [16:50:27]OFD Sender: No OFD packet to send [16:50:32]OFD Sender: No OFD packet to send [16:50:37]OFD Sender: No OFD packet to send [16:50:42]OFD Sender: No OFD packet to send [16:50:47]OFD Sender: No OFD packet to send [16:50:52]OFD Sender: No OFD packet to send [16:50:57]OFD Sender: No OFD packet to send [16:51:02]OFD Sender: No OFD packet to send [16:51:07]OFD Sender: No OFD packet to send [16:51:12]OFD Sender: No OFD packet to send [16:51:17]OFD Sender: No OFD packet to send [16:51:22]OFD Sender: No OFD packet to send [16:51:27]OFD Sender: No OFD packet to send [16:51:32]OFD Sender: No OFD packet to send [16:51:37]OFD Sender: No OFD packet to send [16:51:42]OFD Sender: No OFD packet to send [16:51:47]OFD Sender: No OFD packet to send [16:51:52]OFD Sender: No OFD packet to send [16:51:57]OFD Sender: No OFD packet to send [16:52:02]OFD Sender: No OFD packet to send [16:52:07]OFD Sender: No OFD packet to send [16:52:12]OFD Sender: No OFD packet to send [16:52:17]OFD Sender: No OFD packet to send [16:52:22]OFD Sender: No OFD packet to send [16:52:27]OFD Sender: No OFD packet to send [16:52:32]OFD Sender: No OFD packet to send [16:52:37]OFD Sender: No OFD packet to send [16:52:42]OFD Sender: No OFD packet to send [16:52:47]OFD Sender: No OFD packet to send [16:52:52]OFD Sender: No OFD packet to send [16:52:57]OFD Sender: No OFD packet to send [16:53:02]OFD Sender: No OFD packet to send [16:53:07]OFD Sender: No OFD packet to send [16:53:12]OFD Sender: No OFD packet to send [16:53:17]OFD Sender: No OFD packet to send [16:53:22]OFD Sender: No OFD packet to send [16:53:27]OFD Sender: No OFD packet to send [16:53:32]OFD Sender: No OFD packet to send [16:53:37]OFD Sender: No OFD packet to send [16:53:42]OFD Sender: No OFD packet to send [16:53:47]OFD Sender: No OFD packet to send [16:53:52]OFD Sender: No OFD packet to send [16:53:57]OFD Sender: No OFD packet to send [16:54:02]OFD Sender: No OFD packet to send [16:54:07]OFD Sender: No OFD packet to send [16:54:12]OFD Sender: No OFD packet to send [16:54:17]OFD Sender: No OFD packet to send [16:54:22]OFD Sender: No OFD packet to send [16:54:27]OFD Sender: No OFD packet to send [16:54:32]OFD Sender: No OFD packet to send [16:54:37]OFD Sender: No OFD packet to send [16:54:42]OFD Sender: No OFD packet to send [16:54:47]OFD Sender: No OFD packet to send [16:54:52]OFD Sender: No OFD packet to send [16:54:57]OFD Sender: No OFD packet to send [16:55:02]OFD Sender: No OFD packet to send [16:55:07]OFD Sender: No OFD packet to send [16:55:12]OFD Sender: No OFD packet to send [16:55:17]OFD Sender: No OFD packet to send [16:55:22]OFD Sender: No OFD packet to send [16:55:27]OFD Sender: No OFD packet to send [16:55:32]OFD Sender: No OFD packet to send [16:55:37]OFD Sender: No OFD packet to send [16:55:42]OFD Sender: No OFD packet to send [16:55:47]OFD Sender: No OFD packet to send [16:55:52]OFD Sender: No OFD packet to send [16:55:57]OFD Sender: No OFD packet to send [16:56:02]OFD Sender: No OFD packet to send [16:56:07]OFD Sender: No OFD packet to send [16:56:12]OFD Sender: No OFD packet to send [16:56:17]OFD Sender: No OFD packet to send [16:56:22]OFD Sender: No OFD packet to send [16:56:27]OFD Sender: No OFD packet to send [16:56:32]OFD Sender: No OFD packet to send [16:56:37]OFD Sender: No OFD packet to send [16:56:42]OFD Sender: No OFD packet to send [16:56:47]OFD Sender: No OFD packet to send [16:56:52]OFD Sender: No OFD packet to send [16:56:57]OFD Sender: No OFD packet to send [16:57:02]OFD Sender: No OFD packet to send [16:57:07]OFD Sender: No OFD packet to send [16:57:12]OFD Sender: No OFD packet to send [16:57:17]OFD Sender: No OFD packet to send [16:57:22]OFD Sender: No OFD packet to send [16:57:27]OFD Sender: No OFD packet to send [16:57:32]OFD Sender: No OFD packet to send [16:57:37]OFD Sender: No OFD packet to send [16:57:42]OFD Sender: No OFD packet to send [16:57:47]OFD Sender: No OFD packet to send [16:57:52]OFD Sender: No OFD packet to send [16:57:57]OFD Sender: No OFD packet to send [16:58:02]OFD Sender: No OFD packet to send [16:58:07]OFD Sender: No OFD packet to send [16:58:12]OFD Sender: No OFD packet to send [16:58:17]OFD Sender: No OFD packet to send [16:58:22]OFD Sender: No OFD packet to send [16:58:27]OFD Sender: No OFD packet to send [16:58:32]OFD Sender: No OFD packet to send [16:58:37]OFD Sender: No OFD packet to send [16:58:43]OFD Sender: No OFD packet to send [16:58:48]OFD Sender: No OFD packet to send [16:58:53]OFD Sender: No OFD packet to send [16:58:58]OFD Sender: No OFD packet to send [16:59:03]OFD Sender: No OFD packet to send [16:59:08]OFD Sender: No OFD packet to send [16:59:13]OFD Sender: No OFD packet to send [16:59:18]OFD Sender: No OFD packet to send [16:59:23]OFD Sender: No OFD packet to send [16:59:28]OFD Sender: No OFD packet to send [16:59:33]OFD Sender: No OFD packet to send [16:59:38]OFD Sender: No OFD packet to send [16:59:43]OFD Sender: No OFD packet to send [16:59:48]OFD Sender: No OFD packet to send [16:59:53]OFD Sender: No OFD packet to send [16:59:58]OFD Sender: No OFD packet to send [17:00:03]OFD Sender: No OFD packet to send [17:00:08]OFD Sender: No OFD packet to send [17:00:13]OFD Sender: No OFD packet to send [17:00:18]OFD Sender: No OFD packet to send [17:00:23]OFD Sender: No OFD packet to send [17:00:28]OFD Sender: No OFD packet to send [17:00:33]OFD Sender: No OFD packet to send [17:00:38]OFD Sender: No OFD packet to send [17:00:43]OFD Sender: No OFD packet to send [17:00:48]OFD Sender: No OFD packet to send [17:00:53]OFD Sender: No OFD packet to send [17:00:58]OFD Sender: No OFD packet to send [17:01:03]OFD Sender: No OFD packet to send [17:01:08]OFD Sender: No OFD packet to send [17:01:13]OFD Sender: No OFD packet to send [17:01:18]OFD Sender: No OFD packet to send [17:01:23]OFD Sender: No OFD packet to send [17:01:28]OFD Sender: No OFD packet to send [17:01:33]OFD Sender: No OFD packet to send [17:01:38]OFD Sender: No OFD packet to send [17:01:43]OFD Sender: No OFD packet to send [17:01:48]OFD Sender: No OFD packet to send [17:01:53]OFD Sender: No OFD packet to send [17:01:58]OFD Sender: No OFD packet to send [17:02:03]OFD Sender: No OFD packet to send [17:02:08]OFD Sender: No OFD packet to send [17:02:13]OFD Sender: No OFD packet to send [17:02:18]OFD Sender: No OFD packet to send [17:02:23]OFD Sender: No OFD packet to send [17:02:28]OFD Sender: No OFD packet to send [17:02:33]OFD Sender: No OFD packet to send [17:02:38]OFD Sender: No OFD packet to send [17:02:43]OFD Sender: No OFD packet to send [17:02:48]OFD Sender: No OFD packet to send [17:02:53]OFD Sender: No OFD packet to send [17:02:58]OFD Sender: No OFD packet to send [17:03:03]OFD Sender: No OFD packet to send [17:03:08]OFD Sender: No OFD packet to send [17:03:13]OFD Sender: No OFD packet to send [17:03:18]OFD Sender: No OFD packet to send [17:03:23]OFD Sender: No OFD packet to send [17:03:28]OFD Sender: No OFD packet to send [17:03:33]OFD Sender: No OFD packet to send [17:03:38]OFD Sender: No OFD packet to send [17:03:43]OFD Sender: No OFD packet to send [17:03:48]OFD Sender: No OFD packet to send [17:03:53]OFD Sender: No OFD packet to send [17:03:58]OFD Sender: No OFD packet to send [17:04:03]OFD Sender: No OFD packet to send [17:04:08]OFD Sender: No OFD packet to send [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]/dev/ttyS4 opened [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 CB FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 70 [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 54000000005725CB (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 31533155+1689443529=1720976684 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x20ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33520623 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [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 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 CB FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 71 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 60 00 FF FF 7F [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 2D 05 94 66 C9 DC B2 64 E6 [17:04:45]Current date/time: 14.07.2024 17:04 [17:04:45]FM_Init [17:04:45]wFMConnect [17:04:45]MH_SAM_On [17:04:45]Write to MH i2c: E0 00 00 08 00 E7 [17:04:45]Write i2c OK [17:04:45]MH_I2C_Read... [17:04:45]*** iso7816_init finished! [17:04:45]*** atr: [17:04:45]*** 0F 3B D5 18 FF 81 91 FE [17:04:45]*** 1F C3 80 73 C8 21 10 0A [17:04:45]*** 00 00 00 00 00 00 00 00 [17:04:45]*** 00 00 00 00 00 00 00 00 [17:04:45]*** 00 00 00 00 00 00 00 00 [17:04:45]*** 00 00 00 00 00 00 00 00 [17:04:45]*** 00 00 00 00 00 00 00 00 [17:04:45]*** 00 00 00 00 00 00 00 00 [17:04:45]Read from MH i2c: E0 [17:04:45]MH_I2C_Read... [17:04:45]Read from MH i2c: E0 10 00 [17:04:45]MH_I2C_Read... [17:04:45]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 [17:04:45]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [17:04:45]wFMCommunicate request_size=10 [17:04:45]MH_SAM_APDU [17:04:45]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [17:04:45]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [17:04:45]Write i2c OK [17:04:45]MH_I2C_Read... [17:04:45]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [17:04:45]Read from MH i2c: E2 [17:04:45]MH_I2C_Read... [17:04:45]Read from MH i2c: E2 03 00 [17:04:45]MH_I2C_Read... [17:04:45]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [17:04:45]RAPDU: 90 00 [17:04:45]wFMCommunicate OK [17:04:45]wFMCommunicate request_size=4 [17:04:45]MH_SAM_APDU [17:04:45]CAPDU: 80 11 00 00 [17:04:45]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [17:04:45]Write i2c OK [17:04:45]MH_I2C_Read... [17:04:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:04:45]Read from MH i2c: E2 [17:04:45]MH_I2C_Read... [17:04:45]Read from MH i2c: E2 17 00 [17:04:45]MH_I2C_Read... [17:04:45]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DA [17:04:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:04:45]wFMCommunicate OK [17:04:45]Detected FM SN is 0000000000874718 [17:04:45]Stored FM SN is 0000000000874718 [17:04:45]wFMCommunicate request_size=9 [17:04:45]MH_SAM_APDU [17:04:45]CAPDU: 80 16 00 00 04 29 B3 00 00 [17:04:45]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 29 B3 00 00 00 00 6E [17:04:45]Write i2c OK [17:04:45]MH_I2C_Read... [17:04:45]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [17:04:45]Read from MH i2c: E2 [17:04:45]MH_I2C_Read... [17:04:45]Read from MH i2c: E2 03 00 [17:04:45]MH_I2C_Read... [17:04:45]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [17:04:45]RAPDU: 90 00 [17:04:45]wFMCommunicate OK [17:04:45]FM PIN OK [17:04:45]wFMCommunicate request_size=8 [17:04:45]MH_SAM_APDU [17:04:45]CAPDU: 80 14 04 00 03 02 00 01 [17:04:45]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [17:04:45]Write i2c OK [17:04:45]MH_I2C_Read... [17:04:45]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [17:04:45]Read from MH i2c: E2 [17:04:45]MH_I2C_Read... [17:04:45]Read from MH i2c: E2 03 00 [17:04:45]MH_I2C_Read... [17:04:45]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [17:04:45]RAPDU: 90 00 [17:04:45]wFMCommunicate OK [17:04:45]wFMCommunicate request_size=13 [17:04:45]MH_SAM_APDU [17:04:45]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [17:04:45]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 [17:04:45]Write i2c OK [17:04:45]MH_I2C_Read... [17:04:45]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [17:04:45]Read from MH i2c: E2 [17:04:45]MH_I2C_Read... [17:04:45]Read from MH i2c: E2 03 00 [17:04:45]MH_I2C_Read... [17:04:45]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [17:04:45]RAPDU: 90 00 [17:04:45]wFMCommunicate OK [17:04:45]wFMCommunicate request_size=4 [17:04:45]MH_SAM_APDU [17:04:45]CAPDU: 80 11 00 00 [17:04:45]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [17:04:45]Write i2c OK [17:04:45]MH_I2C_Read... [17:04:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:04:45]Read from MH i2c: E2 [17:04:45]MH_I2C_Read... [17:04:45]Read from MH i2c: E2 17 00 [17:04:45]MH_I2C_Read... [17:04:45]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DE [17:04:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:04:45]wFMCommunicate OK [17:04:45]DocumentArchiveInit [17:04:45]Start Httpd... [17:04:45]Httpd thread 3067813220 created [17:04:45]Write to MH i2c: 01 00 00 0F 00 0F [17:04:45]Write i2c OK [17:04:45]MH_I2C_Read... [17:04:45]Read from MH i2c: 01 [17:04:45]MH_I2C_Read... [17:04:45]Read from MH i2c: 01 07 00 [17:04:45]MH_I2C_Read... [17:04:45]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [17:04:45]MH Int Process started [17:04:45]Allocated Socket 8 [17:04:45]Bind OK [17:04:45]Listen OK [17:04:45]httpd running on port 8080 [17:04:45]Waiting for new connection... [17:04:45]OFD Sender: No OFD packet to send [17:04:50]OFD Sender: No OFD packet to send [17:04:55]OFD Sender: No OFD packet to send [17:05:00]OFD Sender: No OFD packet to send [17:05:05]OFD Sender: No OFD packet to send [17:05:10]OFD Sender: No OFD packet to send [17:05:15]OFD Sender: No OFD packet to send [17:05:15]accept exits with 9 [17:05:15]New connection [17:05:15]New thread 3067526500 created [17:05:15]Waiting for new connection... [17:05:15] Sock 9.Parse request [17:05:15]Sock 9.Check first char [17:05:15]Sock 9.First char is OK [17:05:15]request: POST /json_proto HTTP/1.0 [17:05:15]Method: POST [17:05:15]URL: /json_proto [17:05:15]Method is POST - this is cgi request [17:05:15]url: /json_proto [17:05:15]query_string will be loaded in cgi processing [17:05:15]execute_cgi json_proto POST (null) [17:05:15]execute_cgi path=json_proto method=POST [17:05:15]POST find Content-Length [17:05:15]Host: 172.17.56.4:8080 [17:05:15]Content-Length: 215 [17:05:15]Content-Type: application/json [17:05:15] [17:05:15]POST finish read [17:05:15]Found Content-Length = 215 [17:05:15]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" ] } } [17:05:15]execute_script... [17:05:15]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" ] } } [17:05:15]POST & json_proto [17:05:15]process_json_proto [17:05:15]json parsed OK: [17:05:15]protocol is kg_v1.0 [17:05:15]action value=get_value [17:05:15]process_action get_value [17:05:15]cmd_get_value [17:05:15]process_action get_value done [17:05:15]requested_data is exist [17:05:15]produce_requested_data [17:05:15]requested_item kkm.sn is exist - process it [17:05:15]requested_item kkm.ver is exist - process it [17:05:15]requested_item fm.sn is exist - process it [17:05:15]wFMCommunicate request_size=4 [17:05:15]MH_SAM_APDU [17:05:15]CAPDU: 80 11 00 00 [17:05:15]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [17:05:15]Write i2c OK [17:05:15]MH_I2C_Read... [17:05:16]Read from MH i2c: E2 [17:05:16]MH_I2C_Read... [17:05:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:05:16]Read from MH i2c: E2 17 00 [17:05:16]MH_I2C_Read... [17:05:16]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E0 [17:05:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:05:16]wFMCommunicate OK [17:05:16]requested_item fd.num is exist - process it [17:05:16]SAM_PROTO_GetFieldsCounters [17:05:16]wFMCommunicate request_size=4 [17:05:16]MH_SAM_APDU [17:05:16]CAPDU: 80 13 00 00 [17:05:16]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [17:05:16]Write i2c OK [17:05:16]MH_I2C_Read... [17:05:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:05:16]Read from MH i2c: E2 [17:05:16]MH_I2C_Read... [17:05:16]Read from MH i2c: E2 62 00 [17:05:16]MH_I2C_Read... [17:05:16]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 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 AD 84 02 00 0E 04 04 00 BF 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 68 [17:05:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 AD 84 02 00 0E 04 04 00 BF 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 [17:05:16]wFMCommunicate OK [17:05:16]SAM_PROTO_GetFieldsCounters done [17:05:16]requested_item shift.num is exist - process it [17:05:16]requested_item shift.opened is exist - process it [17:05:16]req_shift_opened [17:05:16]FM_GetShiftState [17:05:16]SAM_PROTO_GetShiftState [17:05:16]wFMCommunicate request_size=4 [17:05:16]MH_SAM_APDU [17:05:16]CAPDU: 80 13 01 00 [17:05:16]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [17:05:16]Write i2c OK [17:05:16]MH_I2C_Read... [17:05:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:05:16]Read from MH i2c: E2 [17:05:16]MH_I2C_Read... [17:05:16]Read from MH i2c: E2 0E 00 [17:05:16]MH_I2C_Read... [17:05:16]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 0F [17:05:16]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [17:05:16]wFMCommunicate OK [17:05:16]SAM_PROTO_GetShiftState done [17:05:16]FM_GetShiftState done [17:05:16]req_shift_opened done [17:05:16]requested_item shift.open_date is exist - process it [17:05:16]req_shift_open_date [17:05:16]req_shift_open_date done [17:05:16]produce_requested_data done [17:05:16]produce_requested_data return {"kkm.sn":"0300000160","kkm.ver":"001","fm.sn":"0000000000874718","fd.num":165037,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [17:05:16]process_action_free get_value [17:05:16]json_value_free [17:05:16]json_value_free done [17:05:16]process_json_proto returns [17:05:16]Send response to host [17:05:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000160","kkm.ver":"001","fm.sn":"0000000000874718","fd.num":165037,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [17:05:16]free response buf [17:05:16]execute_script done [17:05:16]execute_script returns [17:05:16]free content buf [17:05:16]Sock 9.Close socket [17:05:16]Sock 9.Thread stoped [17:05:16]accept exits with 7 [17:05:16]New connection [17:05:16]New thread 3067383140 created [17:05:16]Thread 3067526500 joined [17:05:16]Waiting for new connection... [17:05:16] Sock 7.Parse request [17:05:16]Sock 7.Check first char [17:05:16]Sock 7.First char is OK [17:05:16]request: POST /json_proto HTTP/1.0 [17:05:16]Method: POST [17:05:16]URL: /json_proto [17:05:16]Method is POST - this is cgi request [17:05:16]url: /json_proto [17:05:16]query_string will be loaded in cgi processing [17:05:16]execute_cgi json_proto POST (null) [17:05:16]execute_cgi path=json_proto method=POST [17:05:16]POST find Content-Length [17:05:16]Host: 172.17.56.4:8080 [17:05:16]Content-Length: 331 [17:05:16]Content-Type: application/json [17:05:16] [17:05:16]POST finish read [17:05:16]Found Content-Length = 331 [17:05:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [17:05:16]execute_script... [17:05:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [17:05:16]POST & json_proto [17:05:16]process_json_proto [17:05:16]json parsed OK: [17:05:16]protocol is kg_v1.0 [17:05:16]action value=get_value [17:05:16]process_action get_value [17:05:16]cmd_get_value [17:05:16]process_action get_value done [17:05:16]requested_data is exist [17:05:16]produce_requested_data [17:05:16]requested_item fm.sale.total is exist - process it [17:05:16]SAM_PROTO_GetFMData [17:05:16]wFMCommunicate request_size=4 [17:05:16]MH_SAM_APDU [17:05:16]CAPDU: 80 13 03 00 [17:05:16]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [17:05:16]Write i2c OK [17:05:16]MH_I2C_Read... [17:05:16]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [17:05:16]Read from MH i2c: E2 [17:05:16]MH_I2C_Read... [17:05:16]Read from MH i2c: E2 FD 00 [17:05:16]MH_I2C_Read... [17:05:16]Read from MH i2c: E2 FD 00 13 00 00 C4 04 85 04 C0 04 6E 04 04 00 2C 81 02 00 69 04 A3 00 6F 04 04 00 1E 80 02 00 B1 04 05 00 5A BA 07 59 02 70 04 05 00 35 FC BB 36 02 72 04 04 00 25 BE 4B 22 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 83 D3 D9 3F 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 5C F6 51 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 0E 01 00 00 B1 04 04 00 6C E5 46 03 70 04 04 00 6C E5 46 03 72 04 00 00 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 23 19 59 EF 03 09 00 90 00 D7 [17:05:16]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 2C 81 02 00 69 04 A3 00 6F 04 04 00 1E 80 02 00 B1 04 05 00 5A BA 07 59 02 70 04 05 00 35 FC BB 36 02 72 04 04 00 25 BE 4B 22 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 83 D3 D9 3F 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 5C F6 51 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 0E 01 00 00 B1 04 04 00 6C E5 46 03 70 04 04 00 6C E5 46 03 72 04 00 00 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 23 19 59 EF 03 09 00 90 00 [17:05:16]wFMCommunicate OK [17:05:16]wFMCommunicate request_size=4 [17:05:16]MH_SAM_APDU [17:05:16]CAPDU: 80 17 00 00 [17:05:16]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [17:05:16]Write i2c OK [17:05:16]MH_I2C_Read... [17:05:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:05:17]Read from MH i2c: E2 [17:05:17]MH_I2C_Read... [17:05:17]Read from MH i2c: E2 FD 00 [17:05:17]MH_I2C_Read... [17:05:17]Read from MH i2c: E2 FD 00 14 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B1 6C 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 6E [17:05:17]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B1 6C 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [17:05:17]wFMCommunicate OK [17:05:17]wFMCommunicate request_size=4 [17:05:17]MH_SAM_APDU [17:05:17]CAPDU: 80 17 00 00 [17:05:17]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [17:05:17]Write i2c OK [17:05:17]MH_I2C_Read... [17:05:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:05:17]Read from MH i2c: E2 [17:05:17]MH_I2C_Read... [17:05:17]Read from MH i2c: E2 FD 00 [17:05:17]MH_I2C_Read... [17:05:17]Read from MH i2c: E2 FD 00 15 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 AA [17:05:17]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [17:05:17]wFMCommunicate OK [17:05:17]wFMCommunicate request_size=4 [17:05:17]MH_SAM_APDU [17:05:17]CAPDU: 80 17 00 00 [17:05:17]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [17:05:17]Write i2c OK [17:05:17]MH_I2C_Read... [17:05:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:05:17]Read from MH i2c: E2 [17:05:17]MH_I2C_Read... [17:05:17]Read from MH i2c: E2 FD 00 [17:05:17]MH_I2C_Read... [17:05:17]Read from MH i2c: E2 FD 00 16 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 0E [17:05:17]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [17:05:17]wFMCommunicate OK [17:05:17]wFMCommunicate request_size=4 [17:05:17]MH_SAM_APDU [17:05:17]CAPDU: 80 17 00 00 [17:05:17]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [17:05:17]Write i2c OK [17:05:17]MH_I2C_Read... [17:05:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [17:05:18]Read from MH i2c: E2 [17:05:18]MH_I2C_Read... [17:05:18]Read from MH i2c: E2 E1 00 [17:05:18]MH_I2C_Read... [17:05:18]Read from MH i2c: E2 E1 00 17 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [17:05:18]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [17:05:18]wFMCommunicate OK [17:05:18]SAM_PROTO_GetFMData done [17:05:18]requested_item fm.sale_refund.total is exist - process it [17:05:18]requested_item fm.buy.total is exist - process it [17:05:18]requested_item shift.sale.total is exist - process it [17:05:18]SAM_PROTO_GetShiftData [17:05:18]wFMCommunicate request_size=4 [17:05:18]MH_SAM_APDU [17:05:18]CAPDU: 80 13 02 00 [17:05:18]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [17:05:18]Write i2c OK [17:05:18]MH_I2C_Read... [17:05:18]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [17:05:18]Read from MH i2c: E2 [17:05:18]MH_I2C_Read... [17:05:18]Read from MH i2c: E2 FD 00 [17:05:18]MH_I2C_Read... [17:05:18]Read from MH i2c: E2 FD 00 18 00 00 AF 04 AA 04 AB 04 6E 04 04 00 EB 00 00 00 69 04 9C 00 6F 04 04 00 EB 00 00 00 B1 04 03 00 F4 21 F7 70 04 03 00 1C EF D0 72 04 03 00 D8 32 26 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 E9 3F 1A 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 D7 2F 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 9D [17:05:18]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 EB 00 00 00 69 04 9C 00 6F 04 04 00 EB 00 00 00 B1 04 03 00 F4 21 F7 70 04 03 00 1C EF D0 72 04 03 00 D8 32 26 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 E9 3F 1A 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 D7 2F 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [17:05:18]wFMCommunicate OK [17:05:18]wFMCommunicate request_size=4 [17:05:18]MH_SAM_APDU [17:05:18]CAPDU: 80 17 00 00 [17:05:18]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [17:05:18]Write i2c OK [17:05:18]MH_I2C_Read... [17:05:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:05:18]Read from MH i2c: E2 [17:05:18]MH_I2C_Read... [17:05:18]Read from MH i2c: E2 FD 00 [17:05:18]MH_I2C_Read... [17:05:18]Read from MH i2c: E2 FD 00 19 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 B2 [17:05:18]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [17:05:18]wFMCommunicate OK [17:05:18]wFMCommunicate request_size=4 [17:05:18]MH_SAM_APDU [17:05:18]CAPDU: 80 17 00 00 [17:05:18]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [17:05:18]Write i2c OK [17:05:18]MH_I2C_Read... [17:05:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:05:19]Read from MH i2c: E2 [17:05:19]MH_I2C_Read... [17:05:19]Read from MH i2c: E2 FD 00 [17:05:19]MH_I2C_Read... [17:05:19]Read from MH i2c: E2 FD 00 1A 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 4E [17:05:19]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [17:05:19]wFMCommunicate OK [17:05:19]wFMCommunicate request_size=4 [17:05:19]MH_SAM_APDU [17:05:19]CAPDU: 80 17 00 00 [17:05:19]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [17:05:19]Write i2c OK [17:05:19]MH_I2C_Read... [17:05:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:05:19]Read from MH i2c: E2 [17:05:19]MH_I2C_Read... [17:05:19]Read from MH i2c: E2 FD 00 [17:05:19]MH_I2C_Read... [17:05:19]Read from MH i2c: E2 FD 00 1B 00 00 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 90 00 19 [17:05:19]RAPDU: 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 90 00 [17:05:19]wFMCommunicate OK [17:05:19]wFMCommunicate request_size=4 [17:05:19]MH_SAM_APDU [17:05:19]CAPDU: 80 17 00 00 [17:05:19]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [17:05:19]Write i2c OK [17:05:19]MH_I2C_Read... [17:05:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [17:05:19]Read from MH i2c: E2 [17:05:19]MH_I2C_Read... [17:05:19]Read from MH i2c: E2 CC 00 [17:05:19]MH_I2C_Read... [17:05:19]Read from MH i2c: E2 CC 00 1C 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7D [17:05:19]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [17:05:19]wFMCommunicate OK [17:05:19]SAM_PROTO_GetShiftData done [17:05:19]requested_item shift.sale.total_cash is exist - process it [17:05:19]requested_item shift.sale_refund.total is exist - process it [17:05:19]requested_item shift.sale_refund.total_cash is exist - process it [17:05:19]requested_item shift.buy.total is exist - process it [17:05:19]requested_item shift.buy.total_cash is exist - process it [17:05:19]produce_requested_data done [17:05:19]produce_requested_data return {"fm.sale.total":100836132.74,"fm.sale_refund.total":549779.00,"fm.buy.total":0.00,"shift.sale.total":161960.84,"shift.sale.total_cash":136927.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} [17:05:19]process_action_free get_value [17:05:19]json_value_free [17:05:19]json_value_free done [17:05:19]process_json_proto returns [17:05:19]Send response to host [17:05:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":100836132.74,"fm.sale_refund.total":549779.00,"fm.buy.total":0.00,"shift.sale.total":161960.84,"shift.sale.total_cash":136927.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}}} [17:05:19]free response buf [17:05:19]execute_script done [17:05:19]execute_script returns [17:05:19]free content buf [17:05:19]Sock 7.Close socket [17:05:19]Sock 7.Thread stoped [17:05:20]OFD Sender: No OFD packet to send [17:05:25]OFD Sender: No OFD packet to send [17:05:30]OFD Sender: No OFD packet to send [17:05:35]OFD Sender: No OFD packet to send [17:05:40]OFD Sender: No OFD packet to send [17:05:45]OFD Sender: No OFD packet to send [17:05:50]OFD Sender: No OFD packet to send [17:05:55]OFD Sender: No OFD packet to send [17:06:00]OFD Sender: No OFD packet to send [17:06:05]OFD Sender: No OFD packet to send [17:06:10]OFD Sender: No OFD packet to send [17:06:15]OFD Sender: No OFD packet to send [17:06:20]OFD Sender: No OFD packet to send [17:06:25]accept exits with 9 [17:06:25]New connection [17:06:25]New thread 3067526500 created [17:06:25]Thread 3067383140 joined [17:06:25]Waiting for new connection... [17:06:25] Sock 9.Parse request [17:06:25]Sock 9.Check first char [17:06:25]Sock 9.First char is OK [17:06:25]request: POST /json_proto HTTP/1.0 [17:06:25]Method: POST [17:06:25]URL: /json_proto [17:06:25]Method is POST - this is cgi request [17:06:25]url: /json_proto [17:06:25]query_string will be loaded in cgi processing [17:06:25]execute_cgi json_proto POST (null) [17:06:25]execute_cgi path=json_proto method=POST [17:06:25]POST find Content-Length [17:06:25]Host: 172.17.56.4:8080 [17:06:25]Content-Length: 790 [17:06:25]Content-Type: application/json [17:06:25] [17:06:25]POST finish read [17:06:25]Found Content-Length = 790 [17:06:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459139", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 7.670, "sum" : 500.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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:06:25]execute_script... [17:06:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459139", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 7.670, "sum" : 500.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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:06:25]POST & json_proto [17:06:25]process_json_proto [17:06:25]json parsed OK: [17:06:25]protocol is kg_v1.0 [17:06:25]action value=close_receipt [17:06:25]process_action close_receipt [17:06:25]cmd_close_receipt [17:06:25]MH_GetDate [17:06:25]Write to MH i2c: F0 00 00 1D 00 0C [17:06:25]Write i2c OK [17:06:25]MH_I2C_Read... [17:06:25]Read from MH i2c: F0 [17:06:25]MH_I2C_Read... [17:06:25]Read from MH i2c: F0 09 00 [17:06:25]MH_I2C_Read... [17:06:25]Read from MH i2c: F0 09 00 1D 00 00 91 05 94 66 C9 DC B2 64 60 [17:06:25]GetLastDocTimeStamp 1720975770 [17:06:25]current date 1720976785 [17:06:25]FM_GetShiftState [17:06:25]SAM_PROTO_GetShiftState [17:06:25]wFMCommunicate request_size=4 [17:06:25]MH_SAM_APDU [17:06:25]CAPDU: 80 13 01 00 [17:06:25]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [17:06:25]Write i2c OK [17:06:25]MH_I2C_Read... [17:06:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:06:25]Read from MH i2c: E2 [17:06:25]MH_I2C_Read... [17:06:25]Read from MH i2c: E2 0E 00 [17:06:25]MH_I2C_Read... [17:06:25]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 1B [17:06:25]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [17:06:25]wFMCommunicate OK [17:06:25]SAM_PROTO_GetShiftState done [17:06:25]FM_GetShiftState done [17:06:25]opened in 1720917342 [17:06:25]opened+sec_in_day 1721003742 [17:06:25]quantity*price = 50023 [17:06:25]sum+1 = 50025 [17:06:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.24 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.24 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 236 14.07.2024 17:06 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 165038 ФПД: 226489813072885 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T170625&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165038&fm=226489813072885&tin=02508201610067®Number=0000000000090829&sum=50024 [17:06:26]StoreToDocumentArchive [17:06:26]shift 447 fd 165038 [17:06:26]save to /storage/0447/doc_00165038 [17:06:26]save last doc name /storage/0447/doc_00165038 to /storage/kkm_last_doc_name [17:06:26]save OK [17:06:26]Clear old archive folders... [17:06:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:06:26]tlvbuf is 01F22770 [17:06:26]SAM_PROTO_ClearQueue [17:06:26]wFMCommunicate request_size=4 [17:06:26]MH_SAM_APDU [17:06:26]CAPDU: 80 09 00 00 [17:06:26]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [17:06:26]Write i2c OK [17:06:26]MH_I2C_Read... [17:06:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:06:26]Read from MH i2c: E2 [17:06:26]MH_I2C_Read... [17:06:26]Read from MH i2c: E2 03 00 [17:06:26]MH_I2C_Read... [17:06:26]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [17:06:26]RAPDU: 90 00 [17:06:26]wFMCommunicate OK [17:06:26]SAM_PROTO_ClearQueue done [17:06:26]KKMCreateOFDPacket [17:06:26]OFDProtocolAddRootSTLVToBuf [17:06:26]FM_MakeSignedData [17:06:26]FM_MakeSignedData [17:06:26]SAM_PROTO_SignData [17:06:26]wFMCommunicate request_size=4 [17:06:26]MH_SAM_APDU [17:06:26]CAPDU: 80 0D 01 02 [17:06:26]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [17:06:26]Write i2c OK [17:06:26]MH_I2C_Read... [17:06:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:06:26]Read from MH i2c: E2 [17:06:26]MH_I2C_Read... [17:06:26]Read from MH i2c: E2 03 00 [17:06:26]MH_I2C_Read... [17:06:26]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [17:06:26]RAPDU: 90 00 [17:06:26]wFMCommunicate OK [17:06:26]wFMCommunicate request_size=255 [17:06:26]MH_SAM_APDU [17:06:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 91 05 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AE 84 02 00 35 04 06 00 CD [17:06:26]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 91 05 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AE 84 02 00 35 04 06 00 CD 00 00 A9 [17:06:26]Write i2c OK [17:06:26]MH_I2C_Read... [17:06:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:06:26]Read from MH i2c: E2 [17:06:26]MH_I2C_Read... [17:06:26]Read from MH i2c: E2 03 00 [17:06:26]MH_I2C_Read... [17:06:26]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [17:06:26]RAPDU: 90 00 [17:06:26]wFMCommunicate OK [17:06:26]wFMCommunicate request_size=10 [17:06:26]MH_SAM_APDU [17:06:26]CAPDU: 80 0D 02 02 05 FD C4 DA 7B F5 [17:06:26]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 FD C4 DA 7B F5 00 00 BD [17:06:26]Write i2c OK [17:06:26]MH_I2C_Read... [17:06:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:06:26]Read from MH i2c: E2 [17:06:26]MH_I2C_Read... [17:06:26]Read from MH i2c: E2 03 00 [17:06:26]MH_I2C_Read... [17:06:26]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [17:06:26]RAPDU: 90 00 [17:06:26]wFMCommunicate OK [17:06:26]wFMCommunicate request_size=4 [17:06:26]MH_SAM_APDU [17:06:26]CAPDU: 80 0D 03 02 [17:06:26]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [17:06:26]Write i2c OK [17:06:26]MH_I2C_Read... [17:06:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:06:26]Read from MH i2c: E2 [17:06:26]MH_I2C_Read... [17:06:26]Read from MH i2c: E2 0B 00 [17:06:26]MH_I2C_Read... [17:06:26]Read from MH i2c: E2 0B 00 2F 00 00 E8 33 EC D1 6C 58 5E A3 90 00 48 [17:06:26]RAPDU: E8 33 EC D1 6C 58 5E A3 90 00 [17:06:26]wFMCommunicate OK [17:06:26]SAM_PROTO_SignData done [17:06:26]FM_MakeSignedData done [17:06:26]CreateOFDProtocolMessage [17:06:26]wFMCommunicate request_size=4 [17:06:26]MH_SAM_APDU [17:06:26]CAPDU: 80 11 00 00 [17:06:26]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [17:06:26]Write i2c OK [17:06:26]MH_I2C_Read... [17:06:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:06:26]Read from MH i2c: E2 [17:06:26]MH_I2C_Read... [17:06:26]Read from MH i2c: E2 17 00 [17:06:26]MH_I2C_Read... [17:06:26]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 00 [17:06:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:06:26]wFMCommunicate OK [17:06:26]CreateOFDProtocolMessage done [17:06:26]OFDSenderStorePacket 165038 [17:06:26]StoreOFDPacket docnum=165038 [17:06:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 B8 36 07 01 77 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 91 05 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AE 84 02 00 35 04 06 00 CD FD C4 DA 7B F5 E8 33 EC D1 6C 58 5E A3 [17:06:26]CheckFolder [17:06:26]dirname=/storage/ofd_packets [17:06:26]CheckFolder done [17:06:26]ProducePacketName [17:06:26]name=ofd_packets/00165038 [17:06:26]NVStorageSaveData ofd_packets/00165038 [17:06:26]File name is /storage/ofd_packets/00165038 [17:06:26]Write 301 bytes [17:06:26]NVStorageSaveData done [17:06:26]OFDSenderStorePacket done [17:06:26]KKMCreateOFDPacket done [17:06:26]NVStorageSaveData kkm_last_timestamp [17:06:26]File name is /storage/kkm_last_timestamp [17:06:26]Write 4 bytes [17:06:26]NVStorageSaveData done [17:06:26]ExternCall_PrintAddStr [17:06:26]wPrintStart [17:06:26]Write to MH i2c: 01 00 00 31 00 31 [17:06:26]Write i2c OK [17:06:26]MH_I2C_Read... [17:06:26]Read from MH i2c: 01 [17:06:26]MH_I2C_Read... [17:06:26]Read from MH i2c: 01 07 00 [17:06:26]MH_I2C_Read... [17:06:26]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [17:06:26]RasterBufferAndPrint [17:06:26]line Счет N : (1)459139 [17:06:26]line ИНН: 02508201610067 [17:06:26]line Контрольно-Кассовый Чек [17:06:26]line ПРОДАЖА [17:06:26]line ТРК (МРК, ГНК) : 22 [17:06:26]line Товар: 2710124130 [17:06:26]line Аи-92-К-5 [17:06:26]line 7.670 * 65.22 [17:06:26]line = 500.24 [17:06:26]line НДС 12% НСП 1% [17:06:26]line > о реализуемом товаре [17:06:26]line ИТОГО: 500.24 [17:06:26]line НСП 1% : 4.43 [17:06:26]line НДС 12% : 53.12 [17:06:26]line Наличными: 0.00 [17:06:26]line Безнал.: 500.24 [17:06:26]line Место: АЗС № 72 "Партнер Нефть" [17:06:26]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [17:06:26]line СНО: Общий режим [17:06:26]line Чек 236 14.07.2024 17:06 [17:06:26]line Смена: 447 ФФД: 1.0 [17:06:26]line ЗНМ: 0300000160 [17:06:26]line РНМ: 0000000000090829 [17:06:26]line Версия ККМ: 001 [17:06:26]line Платежная система: KICB Банк [17:06:26]line ФМ: 0000000000874718 [17:06:26]line ФД: 165038 [17:06:26]line ФПД: 226489813072885 [17:06:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T170625&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165038&fm=226489813072885&tin=02508201610067®Number=0000000000090829&sum=50024 [17:06:26]written 0, free lines is 4095 [17:06:26]OFD Sender: Processing packet 165038 [packets to send 105, broken 104] [17:06:26]ProducePacketName [17:06:26]name=ofd_packets/00165038 [17:06:26]OFD Sender: To server: pG, [17:06:26]CommunicateWithHost lk.salyk.kg:30040 [17:06:26]ConnectInit lk.salyk.kg [17:06:27]Connected sock=10 [17:06:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 B8 36 07 01 77 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 91 05 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AE 84 02 00 35 04 06 00 CD FD C4 DA 7B F5 E8 33 EC D1 6C 58 5E A3 [17:06:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 CB 51 47 00 66 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AE 84 02 00 F4 03 04 00 1E AC 93 66 B6 04 01 00 00 B3 9C EE 81 EC 35 29 E7 [17:06:27]CommunicateWithHost err = 0 [17:06:27]CheckOFDResponse [17:06:27]1017 (14) - 77093643461234 [17:06:27]1041 (16) - 0000000000874718 [17:06:27]1040 (4) - 165038 [17:06:27]1012 (4) - 14.07.2024 10:44 [17:06:27]1206 (1) - 0 [17:06:27]OFD Sender: Remove packet 165038 [17:06:27]ProducePacketName [17:06:27]name=ofd_packets/00165038 [17:06:27]NVStorageDeleteData [17:06:27]Write to MH i2c: 01 00 00 5A 00 5A [17:06:27]Write i2c OK [17:06:27]MH_I2C_Read... [17:06:27]Read from MH i2c: 01 [17:06:27]MH_I2C_Read... [17:06:27]Read from MH i2c: 01 07 00 [17:06:27]MH_I2C_Read... [17:06:27]Read from MH i2c: 01 07 00 5A 00 00 00 00 00 00 0B 0D 79 [17:06:27]RasterBufferAndPrint [17:06:27]line [17:06:27]line [17:06:27]line [17:06:27]line [17:06:27]line [17:06:27]written 0, free lines is 3346 [17:06:27]MH_Cut [17:06:27]Write to MH i2c: D1 01 00 61 00 01 33 [17:06:27]Write i2c OK [17:06:27]MH_I2C_Read... [17:06:27]Read from MH i2c: D1 [17:06:27]MH_I2C_Read... [17:06:27]Read from MH i2c: D1 01 00 [17:06:27]MH_I2C_Read... [17:06:27]Read from MH i2c: D1 01 00 61 00 00 32 [17:06:27]Write to MH i2c: 01 00 00 62 00 62 [17:06:27]Write i2c OK [17:06:27]MH_I2C_Read... [17:06:27]OFD Sender: No OFD packet to send [17:06:28]*** Cut start [17:06:28]*** Partial cut [17:06:28]*** CUTSNS_PIN = 1 [17:06:28]*** CUTSNS_PIN = 0 [17:06:28]*** Brake cut motor [17:06:28]Read from MH i2c: 01 [17:06:28]MH_I2C_Read... [17:06:28]*** Stop cut motor [17:06:28]*** Cut end [17:06:28]Read from MH i2c: 01 07 00 [17:06:28]MH_I2C_Read... [17:06:28]Read from MH i2c: 01 07 00 62 00 00 00 00 00 00 FF 0F 77 [17:06:28]process_action close_receipt done [17:06:28]requested_data is exist [17:06:28]produce_requested_data [17:06:28]requested_item fm.sn is exist - process it [17:06:28]wFMCommunicate request_size=4 [17:06:28]MH_SAM_APDU [17:06:28]CAPDU: 80 11 00 00 [17:06:28]Write to MH i2c: E2 08 00 63 00 80 11 00 00 00 00 00 00 DD [17:06:28]Write i2c OK [17:06:28]MH_I2C_Read... [17:06:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:06:28]Read from MH i2c: E2 [17:06:28]MH_I2C_Read... [17:06:28]Read from MH i2c: E2 17 00 [17:06:28]MH_I2C_Read... [17:06:28]Read from MH i2c: E2 17 00 63 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 33 [17:06:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:06:28]wFMCommunicate OK [17:06:28]requested_item fd.num is exist - process it [17:06:28]SAM_PROTO_GetFieldsCounters [17:06:28]wFMCommunicate request_size=4 [17:06:28]MH_SAM_APDU [17:06:28]CAPDU: 80 13 00 00 [17:06:28]Write to MH i2c: E2 08 00 64 00 80 13 00 00 00 00 00 00 E0 [17:06:28]Write i2c OK [17:06:28]MH_I2C_Read... [17:06:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:06:28]Read from MH i2c: E2 [17:06:28]MH_I2C_Read... [17:06:28]Read from MH i2c: E2 62 00 [17:06:28]MH_I2C_Read... [17:06:28]Read from MH i2c: E2 62 00 64 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 AE 84 02 00 0E 04 04 00 BF 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 BF [17:06:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 AE 84 02 00 0E 04 04 00 BF 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 [17:06:28]wFMCommunicate OK [17:06:28]SAM_PROTO_GetFieldsCounters done [17:06:28]requested_item shift.num is exist - process it [17:06:28]requested_item shift.opened is exist - process it [17:06:28]req_shift_opened [17:06:28]FM_GetShiftState [17:06:28]SAM_PROTO_GetShiftState [17:06:28]wFMCommunicate request_size=4 [17:06:28]MH_SAM_APDU [17:06:28]CAPDU: 80 13 01 00 [17:06:28]Write to MH i2c: E2 08 00 65 00 80 13 01 00 00 00 00 00 E2 [17:06:28]Write i2c OK [17:06:28]MH_I2C_Read... [17:06:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:06:28]Read from MH i2c: E2 [17:06:28]MH_I2C_Read... [17:06:28]Read from MH i2c: E2 0E 00 [17:06:28]MH_I2C_Read... [17:06:28]Read from MH i2c: E2 0E 00 65 00 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 62 [17:06:28]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [17:06:28]wFMCommunicate OK [17:06:28]SAM_PROTO_GetShiftState done [17:06:28]FM_GetShiftState done [17:06:28]req_shift_opened done [17:06:28]requested_item shift.open_date is exist - process it [17:06:28]req_shift_open_date [17:06:28]req_shift_open_date done [17:06:28]produce_requested_data done [17:06:28]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165038,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [17:06:28]process_action_free close_receipt [17:06:28]json_value_free [17:06:28]json_value_free done [17:06:28]process_json_proto returns [17:06:28]Send response to host [17:06:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165038,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [17:06:28]free response buf [17:06:28]execute_script done [17:06:28]execute_script returns [17:06:28]free content buf [17:06:28]Sock 9.Close socket [17:06:28]Sock 9.Thread stoped [17:06:32]OFD Sender: No OFD packet to send [17:06:37]OFD Sender: No OFD packet to send [17:06:42]OFD Sender: No OFD packet to send [17:06:47]OFD Sender: No OFD packet to send [17:06:52]OFD Sender: No OFD packet to send [17:06:57]OFD Sender: No OFD packet to send [17:07:02]OFD Sender: No OFD packet to send [17:07:07]OFD Sender: No OFD packet to send [17:07:12]OFD Sender: No OFD packet to send [17:07:17]OFD Sender: No OFD packet to send [17:07:22]OFD Sender: No OFD packet to send [17:07:27]OFD Sender: No OFD packet to send [17:07:32]OFD Sender: No OFD packet to send [17:07:37]OFD Sender: No OFD packet to send [17:07:42]OFD Sender: No OFD packet to send [17:07:47]OFD Sender: No OFD packet to send [17:07:52]OFD Sender: No OFD packet to send [17:07:57]OFD Sender: No OFD packet to send [17:08:02]OFD Sender: No OFD packet to send [17:08:07]OFD Sender: No OFD packet to send [17:08:12]OFD Sender: No OFD packet to send [17:08:17]OFD Sender: No OFD packet to send [17:08:22]OFD Sender: No OFD packet to send [17:08:27]OFD Sender: No OFD packet to send [17:08:32]OFD Sender: No OFD packet to send [17:08:37]OFD Sender: No OFD packet to send [17:08:42]OFD Sender: No OFD packet to send [17:08:47]OFD Sender: No OFD packet to send [17:08:52]OFD Sender: No OFD packet to send [17:08:57]OFD Sender: No OFD packet to send [17:09:02]OFD Sender: No OFD packet to send [17:09:07]OFD Sender: No OFD packet to send [17:09:12]OFD Sender: No OFD packet to send [17:09:17]OFD Sender: No OFD packet to send [17:09:22]OFD Sender: No OFD packet to send [17:09:27]OFD Sender: No OFD packet to send [17:09:32]OFD Sender: No OFD packet to send [17:09:37]OFD Sender: No OFD packet to send [17:09:42]OFD Sender: No OFD packet to send [17:09:47]OFD Sender: No OFD packet to send [17:09: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:35]accept exits with 7 [17:11:35]New connection [17:11:35]New thread 3067383140 created [17:11:35]Thread 3067526500 joined [17:11:35]Waiting for new connection... [17:11:35] Sock 7.Parse request [17:11:35]Sock 7.Check first char [17:11:35]Sock 7.First char is OK [17:11:35]request: POST /json_proto HTTP/1.0 [17:11:35]Method: POST [17:11:35]URL: /json_proto [17:11:35]Method is POST - this is cgi request [17:11:35]url: /json_proto [17:11:35]query_string will be loaded in cgi processing [17:11:35]execute_cgi json_proto POST (null) [17:11:35]execute_cgi path=json_proto method=POST [17:11:35]POST find Content-Length [17:11:35]Host: 172.17.56.4:8080 [17:11:35]Content-Length: 677 [17:11:35]Content-Type: application/json [17:11:35] [17:11:35]POST finish read [17:11:35]Found Content-Length = 677 [17:11:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459140", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:11:35]execute_script... [17:11: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)459140", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:11:35]POST & json_proto [17:11:35]process_json_proto [17:11:35]json parsed OK: [17:11:35]protocol is kg_v1.0 [17:11:35]action value=close_receipt [17:11:35]process_action close_receipt [17:11:35]cmd_close_receipt [17:11:35]MH_GetDate [17:11:35]Write to MH i2c: F0 00 00 66 00 55 [17:11:35]Write i2c OK [17:11:35]MH_I2C_Read... [17:11:35]Read from MH i2c: F0 [17:11:35]MH_I2C_Read... [17:11:35]Read from MH i2c: F0 09 00 [17:11:35]MH_I2C_Read... [17:11:35]Read from MH i2c: F0 09 00 66 00 00 C8 06 94 66 C9 DC B2 64 E1 [17:11:35]GetLastDocTimeStamp 1720976785 [17:11:35]current date 1720977096 [17:11:35]FM_GetShiftState [17:11:35]SAM_PROTO_GetShiftState [17:11:35]wFMCommunicate request_size=4 [17:11:35]MH_SAM_APDU [17:11:35]CAPDU: 80 13 01 00 [17:11:35]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [17:11:35]Write i2c OK [17:11:35]MH_I2C_Read... [17:11:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:11:36]Read from MH i2c: E2 [17:11:36]MH_I2C_Read... [17:11:36]Read from MH i2c: E2 0E 00 [17:11:36]MH_I2C_Read... [17:11:36]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 64 [17:11:36]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [17:11:36]wFMCommunicate OK [17:11:36]SAM_PROTO_GetShiftState done [17:11:36]FM_GetShiftState done [17:11:36]opened in 1720917342 [17:11:36]opened+sec_in_day 1721003742 [17:11:36]quantity*price = 20003 [17:11:36]sum+1 = 20004 [17:11:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 237 14.07.2024 17:11 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165039 ФПД: 71632695149183 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T171136&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165039&fm=71632695149183&tin=02508201610067®Number=0000000000090829&sum=20000 [17:11:37]StoreToDocumentArchive [17:11:37]shift 447 fd 165039 [17:11:37]save to /storage/0447/doc_00165039 [17:11:37]save last doc name /storage/0447/doc_00165039 to /storage/kkm_last_doc_name [17:11:37]save OK [17:11:37]Clear old archive folders... [17:11:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:11:37]tlvbuf is 01F14AE0 [17:11:37]SAM_PROTO_ClearQueue [17:11:37]wFMCommunicate request_size=4 [17:11:37]MH_SAM_APDU [17:11:37]CAPDU: 80 09 00 00 [17:11:37]Write to MH i2c: E2 08 00 74 00 80 09 00 00 00 00 00 00 E6 [17:11:37]Write i2c OK [17:11:37]MH_I2C_Read... [17:11:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:11:37]Read from MH i2c: E2 [17:11:37]MH_I2C_Read... [17:11:37]Read from MH i2c: E2 03 00 [17:11:37]MH_I2C_Read... [17:11:37]Read from MH i2c: E2 03 00 74 00 00 90 00 E8 [17:11:37]RAPDU: 90 00 [17:11:37]wFMCommunicate OK [17:11:37]SAM_PROTO_ClearQueue done [17:11:37]KKMCreateOFDPacket [17:11:37]OFDProtocolAddRootSTLVToBuf [17:11:37]FM_MakeSignedData [17:11:37]FM_MakeSignedData [17:11:37]SAM_PROTO_SignData [17:11:37]wFMCommunicate request_size=4 [17:11:37]MH_SAM_APDU [17:11:37]CAPDU: 80 0D 01 02 [17:11:37]Write to MH i2c: E2 08 00 75 00 80 0D 01 02 00 00 00 00 EE [17:11:37]Write i2c OK [17:11:37]MH_I2C_Read... [17:11:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:11:37]Read from MH i2c: E2 [17:11:37]MH_I2C_Read... [17:11:37]Read from MH i2c: E2 03 00 [17:11:37]MH_I2C_Read... [17:11:37]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [17:11:37]RAPDU: 90 00 [17:11:37]wFMCommunicate OK [17:11:37]wFMCommunicate request_size=255 [17:11:37]MH_SAM_APDU [17:11:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 ED 00 00 00 F4 03 04 00 C8 06 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AF 84 02 00 35 04 06 00 41 [17:11:37]Write to MH i2c: E2 02 01 76 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 ED 00 00 00 F4 03 04 00 C8 06 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AF 84 02 00 35 04 06 00 41 00 00 F3 [17:11:37]Write i2c OK [17:11:37]MH_I2C_Read... [17:11:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:11:37]Read from MH i2c: E2 [17:11:37]MH_I2C_Read... [17:11:37]Read from MH i2c: E2 03 00 [17:11:37]MH_I2C_Read... [17:11:37]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [17:11:37]RAPDU: 90 00 [17:11:37]wFMCommunicate OK [17:11:37]wFMCommunicate request_size=10 [17:11:37]MH_SAM_APDU [17:11:37]CAPDU: 80 0D 02 02 05 26 49 59 42 7F [17:11:37]Write to MH i2c: E2 0D 00 77 00 80 0D 02 02 05 00 26 49 59 42 7F 00 00 84 [17:11:37]Write i2c OK [17:11:37]MH_I2C_Read... [17:11:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:11:37]Read from MH i2c: E2 [17:11:37]MH_I2C_Read... [17:11:37]Read from MH i2c: E2 03 00 [17:11:37]MH_I2C_Read... [17:11:37]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [17:11:37]RAPDU: 90 00 [17:11:37]wFMCommunicate OK [17:11:37]wFMCommunicate request_size=4 [17:11:37]MH_SAM_APDU [17:11:37]CAPDU: 80 0D 03 02 [17:11:37]Write to MH i2c: E2 08 00 78 00 80 0D 03 02 00 00 00 00 F3 [17:11:37]Write i2c OK [17:11:37]MH_I2C_Read... [17:11:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:11:37]Read from MH i2c: E2 [17:11:37]MH_I2C_Read... [17:11:37]Read from MH i2c: E2 0B 00 [17:11:37]MH_I2C_Read... [17:11:37]Read from MH i2c: E2 0B 00 78 00 00 DF 58 47 7F 53 A9 3E 0A 90 00 35 [17:11:37]RAPDU: DF 58 47 7F 53 A9 3E 0A 90 00 [17:11:37]wFMCommunicate OK [17:11:37]SAM_PROTO_SignData done [17:11:37]FM_MakeSignedData done [17:11:37]CreateOFDProtocolMessage [17:11:37]wFMCommunicate request_size=4 [17:11:37]MH_SAM_APDU [17:11:37]CAPDU: 80 11 00 00 [17:11:37]Write to MH i2c: E2 08 00 79 00 80 11 00 00 00 00 00 00 F3 [17:11:37]Write i2c OK [17:11:37]MH_I2C_Read... [17:11:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:11:37]Read from MH i2c: E2 [17:11:37]MH_I2C_Read... [17:11:37]Read from MH i2c: E2 17 00 [17:11:37]MH_I2C_Read... [17:11:37]Read from MH i2c: E2 17 00 79 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 49 [17:11:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:11:37]wFMCommunicate OK [17:11:37]CreateOFDProtocolMessage done [17:11:37]OFDSenderStorePacket 165039 [17:11:37]StoreOFDPacket docnum=165039 [17:11:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 EB 96 07 01 9E 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 ED 00 00 00 F4 03 04 00 C8 06 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AF 84 02 00 35 04 06 00 41 26 49 59 42 7F DF 58 47 7F 53 A9 3E 0A [17:11:37]CheckFolder [17:11:37]dirname=/storage/ofd_packets [17:11:37]CheckFolder done [17:11:37]ProducePacketName [17:11:37]name=ofd_packets/00165039 [17:11:37]NVStorageSaveData ofd_packets/00165039 [17:11:37]File name is /storage/ofd_packets/00165039 [17:11:37]Write 301 bytes [17:11:37]NVStorageSaveData done [17:11:37]OFDSenderStorePacket done [17:11:37]KKMCreateOFDPacket done [17:11:37]NVStorageSaveData kkm_last_timestamp [17:11:37]File name is /storage/kkm_last_timestamp [17:11:37]Write 4 bytes [17:11:37]NVStorageSaveData done [17:11:37]ExternCall_PrintAddStr [17:11:37]wPrintStart [17:11:37]Write to MH i2c: 01 00 00 7A 00 7A [17:11:37]Write i2c OK [17:11:37]MH_I2C_Read... [17:11:37]Read from MH i2c: 01 [17:11:37]MH_I2C_Read... [17:11:37]Read from MH i2c: 01 07 00 [17:11:37]MH_I2C_Read... [17:11:37]Read from MH i2c: 01 07 00 7A 00 00 00 00 00 00 FF 0F 8F [17:11:37]RasterBufferAndPrint [17:11:37]line Счет N : (1)459140 [17:11:37]line ИНН: 02508201610067 [17:11:37]line Контрольно-Кассовый Чек [17:11:37]line ПРОДАЖА [17:11:37]line ТРК (МРК, ГНК) : 22 [17:11:37]line Товар: 2710124130 [17:11:37]line Аи-92-К-5 [17:11:37]line 3.040 * 65.80 [17:11:37]line = 200.03 [17:11:37]line НДС 12% НСП 1% [17:11:37]line > о реализуемом товаре [17:11:37]line ОКРУГЛЕНИЕ: -0.03 [17:11:37]line ИТОГО: 200.00 [17:11:37]line Внесено: 200.00 [17:11:37]line СДАЧА: 0.00 [17:11:37]line НСП 1% : 1.77 [17:11:37]line НДС 12% : 21.24 [17:11:37]line Наличными: 200.00 [17:11:37]line Безнал.: 0.00 [17:11:37]line Место: АЗС № 72 "Партнер Нефть" [17:11:37]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [17:11:37]line СНО: Общий режим [17:11:37]line Чек 237 14.07.2024 17:11 [17:11:37]line Смена: 447 ФФД: 1.0 [17:11:37]line ЗНМ: 0300000160 [17:11:37]line РНМ: 0000000000090829 [17:11:37]line Версия ККМ: 001 [17:11:37]line ФМ: 0000000000874718 [17:11:37]line ФД: 165039 [17:11:37]line ФПД: 71632695149183 [17:11:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T171136&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165039&fm=71632695149183&tin=02508201610067®Number=0000000000090829&sum=20000 [17:11:37]OFD Sender: Processing packet 165039 [packets to send 105, broken 104] [17:11:37]ProducePacketName [17:11:37]name=ofd_packets/00165039 [17:11:37]OFD Sender: To server: pG, [17:11:37]CommunicateWithHost lk.salyk.kg:30040 [17:11:37]ConnectInit lk.salyk.kg [17:11:37]written 0, free lines is 4095 [17:11:38]Connected sock=10 [17:11:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 EB 96 07 01 9E 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 ED 00 00 00 F4 03 04 00 C8 06 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AF 84 02 00 35 04 06 00 41 26 49 59 42 7F DF 58 47 7F 53 A9 3E 0A [17:11:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 F0 7E 47 00 06 AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AF 84 02 00 F4 03 04 00 55 AD 93 66 B6 04 01 00 00 3B 19 7B C7 A7 EA CA AB [17:11:38]CommunicateWithHost err = 0 [17:11:38]CheckOFDResponse [17:11:38]1017 (14) - 77093643461234 [17:11:38]1041 (16) - 0000000000874718 [17:11:38]1040 (4) - 165039 [17:11:38]1012 (4) - 14.07.2024 10:49 [17:11:38]1206 (1) - 0 [17:11:38]OFD Sender: Remove packet 165039 [17:11:38]ProducePacketName [17:11:38]name=ofd_packets/00165039 [17:11:38]NVStorageDeleteData [17:11:38]Write to MH i2c: 01 00 00 A4 00 A4 [17:11:38]Write i2c OK [17:11:38]MH_I2C_Read... [17:11:38]Read from MH i2c: 01 [17:11:38]MH_I2C_Read... [17:11:38]Read from MH i2c: 01 07 00 [17:11:38]MH_I2C_Read... [17:11:38]Read from MH i2c: 01 07 00 A4 00 00 00 00 00 00 02 0D BA [17:11:38]RasterBufferAndPrint [17:11:38]line [17:11:38]line [17:11:38]line [17:11:38]line [17:11:38]line [17:11:38]written 0, free lines is 3336 [17:11:38]MH_Cut [17:11:38]Write to MH i2c: D1 01 00 AB 00 01 7D [17:11:38]Write i2c OK [17:11:38]MH_I2C_Read... [17:11:38]Read from MH i2c: D1 [17:11:38]MH_I2C_Read... [17:11:38]Read from MH i2c: D1 01 00 [17:11:38]MH_I2C_Read... [17:11:38]Read from MH i2c: D1 01 00 AB 00 00 7C [17:11:38]Write to MH i2c: 01 00 00 AC 00 AC [17:11:38]Write i2c OK [17:11:38]MH_I2C_Read... [17:11:38]OFD Sender: No OFD packet to send [17:11:39]*** Cut start [17:11:39]*** Partial cut [17:11:39]*** CUTSNS_PIN = 1 [17:11:39]*** CUTSNS_PIN = 0 [17:11:39]*** Brake cut motor [17:11:39]Read from MH i2c: 01 [17:11:39]*** Stop cut motor [17:11:39]*** Cut end [17:11:39]MH_I2C_Read... [17:11:39]Read from MH i2c: 01 07 00 [17:11:39]MH_I2C_Read... [17:11:39]Read from MH i2c: 01 07 00 AC 00 00 00 00 00 00 FF 0F C1 [17:11:39]process_action close_receipt done [17:11:39]requested_data is exist [17:11:39]produce_requested_data [17:11:39]requested_item fm.sn is exist - process it [17:11:39]wFMCommunicate request_size=4 [17:11:39]MH_SAM_APDU [17:11:39]CAPDU: 80 11 00 00 [17:11:39]Write to MH i2c: E2 08 00 AD 00 80 11 00 00 00 00 00 00 27 [17:11:39]Write i2c OK [17:11:39]MH_I2C_Read... [17:11:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:11:39]Read from MH i2c: E2 [17:11:39]MH_I2C_Read... [17:11:39]Read from MH i2c: E2 17 00 [17:11:39]MH_I2C_Read... [17:11:39]Read from MH i2c: E2 17 00 AD 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 7D [17:11:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:11:39]wFMCommunicate OK [17:11:39]requested_item fd.num is exist - process it [17:11:39]SAM_PROTO_GetFieldsCounters [17:11:39]wFMCommunicate request_size=4 [17:11:39]MH_SAM_APDU [17:11:39]CAPDU: 80 13 00 00 [17:11:39]Write to MH i2c: E2 08 00 AE 00 80 13 00 00 00 00 00 00 2A [17:11:39]Write i2c OK [17:11:39]MH_I2C_Read... [17:11:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:11:39]Read from MH i2c: E2 [17:11:39]MH_I2C_Read... [17:11:39]Read from MH i2c: E2 62 00 [17:11:39]MH_I2C_Read... [17:11:39]Read from MH i2c: E2 62 00 AE 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 AF 84 02 00 0E 04 04 00 BF 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 0D [17:11:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 AF 84 02 00 0E 04 04 00 BF 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 [17:11:39]wFMCommunicate OK [17:11:39]SAM_PROTO_GetFieldsCounters done [17:11:39]requested_item shift.num is exist - process it [17:11:39]requested_item shift.opened is exist - process it [17:11:39]req_shift_opened [17:11:39]FM_GetShiftState [17:11:39]SAM_PROTO_GetShiftState [17:11:39]wFMCommunicate request_size=4 [17:11:39]MH_SAM_APDU [17:11:39]CAPDU: 80 13 01 00 [17:11:39]Write to MH i2c: E2 08 00 AF 00 80 13 01 00 00 00 00 00 2C [17:11:39]Write i2c OK [17:11:39]MH_I2C_Read... [17:11:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:11:39]Read from MH i2c: E2 [17:11:39]MH_I2C_Read... [17:11:39]Read from MH i2c: E2 0E 00 [17:11:39]MH_I2C_Read... [17:11:39]Read from MH i2c: E2 0E 00 AF 00 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 AC [17:11:39]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [17:11:39]wFMCommunicate OK [17:11:39]SAM_PROTO_GetShiftState done [17:11:39]FM_GetShiftState done [17:11:39]req_shift_opened done [17:11:39]requested_item shift.open_date is exist - process it [17:11:39]req_shift_open_date [17:11:39]req_shift_open_date done [17:11:39]produce_requested_data done [17:11:39]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165039,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [17:11:39]process_action_free close_receipt [17:11:39]json_value_free [17:11:39]json_value_free done [17:11:39]process_json_proto returns [17:11:39]Send response to host [17:11:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165039,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [17:11:39]free response buf [17:11:39]execute_script done [17:11:39]execute_script returns [17:11:39]free content buf [17:11:39]Sock 7.Close socket [17:11:39]Sock 7.Thread stoped [17:11:43]OFD Sender: No OFD packet to send [17:11:48]OFD Sender: No OFD packet to send [17:11:53]OFD Sender: No OFD packet to send [17:11:58]OFD Sender: No OFD packet to send [17:12:03]OFD Sender: No OFD packet to send [17:12:08]OFD Sender: No OFD packet to send [17:12:13]OFD Sender: No OFD packet to send [17:12:18]OFD Sender: No OFD packet to send [17:12:23]OFD Sender: No OFD packet to send [17:12:28]OFD Sender: No OFD packet to send [17:12:33]OFD Sender: No OFD packet to send [17:12:38]OFD Sender: No OFD packet to send [17:12:43]OFD Sender: No OFD packet to send [17:12:48]OFD Sender: No OFD packet to send [17:12:53]OFD Sender: No OFD packet to send [17:12:58]OFD Sender: No OFD packet to send [17:13:03]OFD Sender: No OFD packet to send [17:13:08]OFD Sender: No OFD packet to send [17:13:13]OFD Sender: No OFD packet to send [17:13:18]OFD Sender: No OFD packet to send [17:13:23]OFD Sender: No OFD packet to send [17:13:28]OFD Sender: No OFD packet to send [17:13:33]OFD Sender: No OFD packet to send [17:13:38]OFD Sender: No OFD packet to send [17:13:43]OFD Sender: No OFD packet to send [17:13:48]OFD Sender: No OFD packet to send [17:13:53]OFD Sender: No OFD packet to send [17:13:58]OFD Sender: No OFD packet to send [17:14:03]OFD Sender: No OFD packet to send [17:14:08]OFD Sender: No OFD packet to send [17:14:13]OFD Sender: No OFD packet to send [17:14:18]OFD Sender: No OFD packet to send [17:14:23]OFD Sender: No OFD packet to send [17:14:28]OFD Sender: No OFD packet to send [17:14:33]OFD Sender: No OFD packet to send [17:14:38]OFD Sender: No OFD packet to send [17:14:43]OFD Sender: No OFD packet to send [17:14:48]OFD Sender: No OFD packet to send [17:14:53]OFD Sender: No OFD packet to send [17:14:58]OFD Sender: No OFD packet to send [17:15:03]OFD Sender: No OFD packet to send [17:15:08]OFD Sender: No OFD packet to send [17:15:14]OFD Sender: No OFD packet to send [17:15:19]OFD Sender: No OFD packet to send [17:15:24]OFD Sender: No OFD packet to send [17:15:29]OFD Sender: No OFD packet to send [17:15:34]OFD Sender: No OFD packet to send [17:15:39]OFD Sender: No OFD packet to send [17:15:44]OFD Sender: No OFD packet to send [17:15:49]OFD Sender: No OFD packet to send [17:15:54]OFD Sender: No OFD packet to send [17:15:59]OFD Sender: No OFD packet to send [17:16:04]OFD Sender: No OFD packet to send [17:16:09]OFD Sender: No OFD packet to send [17:16:14]OFD Sender: No OFD packet to send [17:16:19]OFD Sender: No OFD packet to send [17:16:24]OFD Sender: No OFD packet to send [17:16:29]OFD Sender: No OFD packet to send [17:16:34]OFD Sender: No OFD packet to send [17:16:39]OFD Sender: No OFD packet to send [17:16:44]OFD Sender: No OFD packet to send [17:16:49]OFD Sender: No OFD packet to send [17:16:54]OFD Sender: No OFD packet to send [17:16:59]OFD Sender: No OFD packet to send [17:17:04]OFD Sender: No OFD packet to send [17:17:09]OFD Sender: No OFD packet to send [17:17:14]OFD Sender: No OFD packet to send [17:17:19]OFD Sender: No OFD packet to send [17:17:24]OFD Sender: No OFD packet to send [17:17:29]OFD Sender: No OFD packet to send [17:17:34]OFD Sender: No OFD packet to send [17:17:39]OFD Sender: No OFD packet to send [17:17:44]OFD Sender: No OFD packet to send [17:17:49]OFD Sender: No OFD packet to send [17:17:54]OFD Sender: No OFD packet to send [17:17:59]OFD Sender: No OFD packet to send [17:18:04]OFD Sender: No OFD packet to send [17:18:09]OFD Sender: No OFD packet to send [17:18:14]OFD Sender: No OFD packet to send [17:18:19]OFD Sender: No OFD packet to send [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:29]OFD Sender: No OFD packet to send [17:19:34]OFD Sender: No OFD packet to send [17:19:39]OFD Sender: No OFD packet to send [17:19:44]OFD Sender: No OFD packet to send [17:19:49]OFD Sender: No OFD packet to send [17:19:54]OFD Sender: No OFD packet to send [17:19:59]OFD Sender: No OFD packet to send [17:20:04]OFD Sender: No OFD packet to send [17:20:09]OFD Sender: No OFD packet to send [17:20:14]OFD Sender: No OFD packet to send [17:20:19]OFD Sender: No OFD packet to send [17:20:24]OFD Sender: No OFD packet to send [17:20:29]OFD Sender: No OFD packet to send [17:20:34]OFD Sender: No OFD packet to send [17:20:39]OFD Sender: No OFD packet to send [17:20:44]OFD Sender: No OFD packet to send [17:20:49]OFD Sender: No OFD packet to send [17:20:54]OFD Sender: No OFD packet to send [17:20:59]OFD Sender: No OFD packet to send [17:21:04]OFD Sender: No OFD packet to send [17:21:09]OFD Sender: No OFD packet to send [17:21:14]OFD Sender: No OFD packet to send [17:21:19]OFD Sender: No OFD packet to send [17:21:24]OFD Sender: No OFD packet to send [17:21:29]OFD Sender: No OFD packet to send [17:21:34]OFD Sender: No OFD packet to send [17:21:39]OFD Sender: No OFD packet to send [17:21:44]OFD Sender: No OFD packet to send [17:21:49]OFD Sender: No OFD packet to send [17:21:54]OFD Sender: No OFD packet to send [17:21:59]OFD Sender: No OFD packet to send [17:22:04]OFD Sender: No OFD packet to send [17:22:09]OFD Sender: No OFD packet to send [17:22:14]OFD Sender: No OFD packet to send [17:22:19]OFD Sender: No OFD packet to send [17:22:24]OFD Sender: No OFD packet to send [17:22:29]OFD Sender: No OFD packet to send [17:22:34]OFD Sender: No OFD packet to send [17:22:39]OFD Sender: No OFD packet to send [17:22:44]OFD Sender: No OFD packet to send [17:22:49]OFD Sender: No OFD packet to send [17:22:54]OFD Sender: No OFD packet to send [17:22:59]OFD Sender: No OFD packet to send [17:23:04]OFD Sender: No OFD packet to send [17:23:09]OFD Sender: No OFD packet to send [17:23:14]OFD Sender: No OFD packet to send [17:23:19]OFD Sender: No OFD packet to send [17:23:24]OFD Sender: No OFD packet to send [17:23:29]OFD Sender: No OFD packet to send [17:23:34]OFD Sender: No OFD packet to send [17:23:39]OFD Sender: No OFD packet to send [17:23:44]OFD Sender: No OFD packet to send [17:23:49]OFD Sender: No OFD packet to send [17:23:54]OFD Sender: No OFD packet to send [17:23:59]OFD Sender: No OFD packet to send [17:24:04]OFD Sender: No OFD packet to send [17:24:09]OFD Sender: No OFD packet to send [17:24:14]OFD Sender: No OFD packet to send [17:24:19]OFD Sender: No OFD packet to send [17:24:24]OFD Sender: No OFD packet to send [17:24:29]OFD Sender: No OFD packet to send [17:24:34]OFD Sender: No OFD packet to send [17:24:39]OFD Sender: No OFD packet to send [17:24:44]OFD Sender: No OFD packet to send [17:24:49]OFD Sender: No OFD packet to send [17:24:54]OFD Sender: No OFD packet to send [17:24:59]OFD Sender: No OFD packet to send [17:25:04]OFD Sender: No OFD packet to send [17:25:09]OFD Sender: No OFD packet to send [17:25:14]OFD Sender: No OFD packet to send [17:25:19]OFD Sender: No OFD packet to send [17:25:24]OFD Sender: No OFD packet to send [17:25:29]OFD Sender: No OFD packet to send [17:25:34]OFD Sender: No OFD packet to send [17:25:39]OFD Sender: No OFD packet to send [17:25:44]OFD Sender: No OFD packet to send [17:25:49]OFD Sender: No OFD packet to send [17:25:54]OFD Sender: No OFD packet to send [17:25:57]accept exits with 9 [17:25:57]New connection [17:25:57]New thread 3067526500 created [17:25:57]Thread 3067383140 joined [17:25:57]Waiting for new connection... [17:25:57] Sock 9.Parse request [17:25:57]Sock 9.Check first char [17:25:57]Sock 9.First char is OK [17:25:57]request: POST /json_proto HTTP/1.0 [17:25:57]Method: POST [17:25:57]URL: /json_proto [17:25:57]Method is POST - this is cgi request [17:25:57]url: /json_proto [17:25:57]query_string will be loaded in cgi processing [17:25:57]execute_cgi json_proto POST (null) [17:25:57]execute_cgi path=json_proto method=POST [17:25:57]POST find Content-Length [17:25:57]Host: 172.17.56.4:8080 [17:25:57]Content-Length: 677 [17:25:57]Content-Type: application/json [17:25:57] [17:25:57]POST finish read [17:25:57]Found Content-Length = 677 [17:25:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459141", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:25:57]execute_script... [17:25: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)459141", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:25:57]POST & json_proto [17:25:57]process_json_proto [17:25:57]json parsed OK: [17:25:57]protocol is kg_v1.0 [17:25:57]action value=close_receipt [17:25:57]process_action close_receipt [17:25:57]cmd_close_receipt [17:25:57]MH_GetDate [17:25:57]Write to MH i2c: F0 00 00 B0 00 9F [17:25:57]Write i2c OK [17:25:57]MH_I2C_Read... [17:25:57]Read from MH i2c: F0 [17:25:57]MH_I2C_Read... [17:25:57]Read from MH i2c: F0 09 00 [17:25:57]MH_I2C_Read... [17:25:57]Read from MH i2c: F0 09 00 B0 00 00 25 0A 94 66 C9 DC B2 64 8C [17:25:57]GetLastDocTimeStamp 1720977096 [17:25:57]current date 1720977957 [17:25:57]FM_GetShiftState [17:25:57]SAM_PROTO_GetShiftState [17:25:57]wFMCommunicate request_size=4 [17:25:57]MH_SAM_APDU [17:25:57]CAPDU: 80 13 01 00 [17:25:57]Write to MH i2c: E2 08 00 B1 00 80 13 01 00 00 00 00 00 2E [17:25:57]Write i2c OK [17:25:57]MH_I2C_Read... [17:25:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:25:57]Read from MH i2c: E2 [17:25:57]MH_I2C_Read... [17:25:57]Read from MH i2c: E2 0E 00 [17:25:57]MH_I2C_Read... [17:25:57]Read from MH i2c: E2 0E 00 B1 00 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 AE [17:25:57]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [17:25:57]wFMCommunicate OK [17:25:57]SAM_PROTO_GetShiftState done [17:25:57]FM_GetShiftState done [17:25:57]opened in 1720917342 [17:25:57]opened+sec_in_day 1721003742 [17:25:57]quantity*price = 30004 [17:25:57]sum+1 = 30006 [17:25:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 238 14.07.2024 17:25 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165040 ФПД: 169796251169654 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T172557&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165040&fm=169796251169654&tin=02508201610067®Number=0000000000090829&sum=30000 [17:25:58]StoreToDocumentArchive [17:25:58]shift 447 fd 165040 [17:25:58]save to /storage/0447/doc_00165040 [17:25:58]save last doc name /storage/0447/doc_00165040 to /storage/kkm_last_doc_name [17:25:58]save OK [17:25:58]Clear old archive folders... [17:25:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:25:58]tlvbuf is 01F3A850 [17:25:58]SAM_PROTO_ClearQueue [17:25:58]wFMCommunicate request_size=4 [17:25:58]MH_SAM_APDU [17:25:58]CAPDU: 80 09 00 00 [17:25:58]Write to MH i2c: E2 08 00 BE 00 80 09 00 00 00 00 00 00 30 [17:25:58]Write i2c OK [17:25:58]MH_I2C_Read... [17:25:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:25:58]Read from MH i2c: E2 [17:25:58]MH_I2C_Read... [17:25:58]Read from MH i2c: E2 03 00 [17:25:58]MH_I2C_Read... [17:25:58]Read from MH i2c: E2 03 00 BE 00 00 90 00 32 [17:25:58]RAPDU: 90 00 [17:25:58]wFMCommunicate OK [17:25:58]SAM_PROTO_ClearQueue done [17:25:58]KKMCreateOFDPacket [17:25:58]OFDProtocolAddRootSTLVToBuf [17:25:58]FM_MakeSignedData [17:25:58]FM_MakeSignedData [17:25:58]SAM_PROTO_SignData [17:25:58]wFMCommunicate request_size=4 [17:25:58]MH_SAM_APDU [17:25:58]CAPDU: 80 0D 01 02 [17:25:58]Write to MH i2c: E2 08 00 BF 00 80 0D 01 02 00 00 00 00 38 [17:25:58]Write i2c OK [17:25:58]MH_I2C_Read... [17:25:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:25:59]Read from MH i2c: E2 [17:25:59]MH_I2C_Read... [17:25:59]Read from MH i2c: E2 03 00 [17:25:59]MH_I2C_Read... [17:25:59]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [17:25:59]RAPDU: 90 00 [17:25:59]wFMCommunicate OK [17:25:59]wFMCommunicate request_size=255 [17:25:59]MH_SAM_APDU [17:25:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 25 0A 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B0 84 02 00 35 04 06 00 9A [17:25:59]Write to MH i2c: E2 02 01 C0 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 25 0A 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B0 84 02 00 35 04 06 00 9A 00 00 19 [17:25:59]Write i2c OK [17:25:59]MH_I2C_Read... [17:25:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:25:59]Read from MH i2c: E2 [17:25:59]MH_I2C_Read... [17:25:59]Read from MH i2c: E2 03 00 [17:25:59]MH_I2C_Read... [17:25:59]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [17:25:59]RAPDU: 90 00 [17:25:59]wFMCommunicate OK [17:25:59]wFMCommunicate request_size=10 [17:25:59]MH_SAM_APDU [17:25:59]CAPDU: 80 0D 02 02 05 6D C5 3C 33 76 [17:25:59]Write to MH i2c: E2 0D 00 C1 00 80 0D 02 02 05 00 6D C5 3C 33 76 00 00 5C [17:25:59]Write i2c OK [17:25:59]MH_I2C_Read... [17:25:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:25:59]Read from MH i2c: E2 [17:25:59]MH_I2C_Read... [17:25:59]Read from MH i2c: E2 03 00 [17:25:59]MH_I2C_Read... [17:25:59]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [17:25:59]RAPDU: 90 00 [17:25:59]wFMCommunicate OK [17:25:59]wFMCommunicate request_size=4 [17:25:59]MH_SAM_APDU [17:25:59]CAPDU: 80 0D 03 02 [17:25:59]Write to MH i2c: E2 08 00 C2 00 80 0D 03 02 00 00 00 00 3D [17:25:59]Write i2c OK [17:25:59]MH_I2C_Read... [17:25:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:25:59]Read from MH i2c: E2 [17:25:59]MH_I2C_Read... [17:25:59]Read from MH i2c: E2 0B 00 [17:25:59]MH_I2C_Read... [17:25:59]Read from MH i2c: E2 0B 00 C2 00 00 F8 BF 84 42 B2 36 85 E5 90 00 0D [17:25:59]RAPDU: F8 BF 84 42 B2 36 85 E5 90 00 [17:25:59]wFMCommunicate OK [17:25:59]SAM_PROTO_SignData done [17:25:59]FM_MakeSignedData done [17:25:59]CreateOFDProtocolMessage [17:25:59]wFMCommunicate request_size=4 [17:25:59]MH_SAM_APDU [17:25:59]CAPDU: 80 11 00 00 [17:25:59]Write to MH i2c: E2 08 00 C3 00 80 11 00 00 00 00 00 00 3D [17:25:59]Write i2c OK [17:25:59]MH_I2C_Read... [17:25:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:25:59]Read from MH i2c: E2 [17:25:59]MH_I2C_Read... [17:25:59]Read from MH i2c: E2 17 00 [17:25:59]MH_I2C_Read... [17:25:59]Read from MH i2c: E2 17 00 C3 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 93 [17:25:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:25:59]wFMCommunicate OK [17:25:59]CreateOFDProtocolMessage done [17:25:59]OFDSenderStorePacket 165040 [17:25:59]StoreOFDPacket docnum=165040 [17:25:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D2 6C 07 01 0D 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 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 25 0A 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B0 84 02 00 35 04 06 00 9A 6D C5 3C 33 76 F8 BF 84 42 B2 36 85 E5 [17:25:59]CheckFolder [17:25:59]dirname=/storage/ofd_packets [17:25:59]CheckFolder done [17:25:59]ProducePacketName [17:25:59]name=ofd_packets/00165040 [17:25:59]NVStorageSaveData ofd_packets/00165040 [17:25:59]File name is /storage/ofd_packets/00165040 [17:25:59]Write 301 bytes [17:25:59]NVStorageSaveData done [17:25:59]OFDSenderStorePacket done [17:25:59]KKMCreateOFDPacket done [17:25:59]NVStorageSaveData kkm_last_timestamp [17:25:59]File name is /storage/kkm_last_timestamp [17:25:59]Write 4 bytes [17:25:59]NVStorageSaveData done [17:25:59]ExternCall_PrintAddStr [17:25:59]wPrintStart [17:25:59]Write to MH i2c: 01 00 00 C4 00 C4 [17:25:59]Write i2c OK [17:25:59]MH_I2C_Read... [17:25:59]Read from MH i2c: 01 [17:25:59]MH_I2C_Read... [17:25:59]Read from MH i2c: 01 07 00 [17:25:59]MH_I2C_Read... [17:25:59]Read from MH i2c: 01 07 00 C4 00 00 00 00 00 00 FF 0F D9 [17:25:59]RasterBufferAndPrint [17:25:59]line Счет N : (1)459141 [17:25:59]line ИНН: 02508201610067 [17:25:59]line Контрольно-Кассовый Чек [17:25:59]line ПРОДАЖА [17:25:59]line ТРК (МРК, ГНК) : 22 [17:25:59]line Товар: 2710124130 [17:25:59]line Аи-92-К-5 [17:25:59]line 4.560 * 65.80 [17:25:59]line = 300.05 [17:25:59]line НДС 12% НСП 1% [17:25:59]line > о реализуемом товаре [17:25:59]line ОКРУГЛЕНИЕ: -0.05 [17:25:59]line ИТОГО: 300.00 [17:25:59]line Внесено: 300.00 [17:25:59]line СДАЧА: 0.00 [17:25:59]line НСП 1% : 2.65 [17:25:59]line НДС 12% : 31.86 [17:25:59]line Наличными: 300.00 [17:25:59]line Безнал.: 0.00 [17:25:59]line Место: АЗС № 72 "Партнер Нефть" [17:25:59]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [17:25:59]line СНО: Общий режим [17:25:59]line Чек 238 14.07.2024 17:25 [17:25:59]line Смена: 447 ФФД: 1.0 [17:25:59]line ЗНМ: 0300000160 [17:25:59]line РНМ: 0000000000090829 [17:25:59]line Версия ККМ: 001 [17:25:59]line ФМ: 0000000000874718 [17:25:59]line ФД: 165040 [17:25:59]line ФПД: 169796251169654 [17:25:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T172557&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165040&fm=169796251169654&tin=02508201610067®Number=0000000000090829&sum=30000 [17:25:59]OFD Sender: Processing packet 165040 [packets to send 105, broken 104] [17:25:59]ProducePacketName [17:25:59]name=ofd_packets/00165040 [17:25:59]OFD Sender: To server: pG, [17:25:59]CommunicateWithHost lk.salyk.kg:30040 [17:25:59]ConnectInit lk.salyk.kg [17:25:59]written 0, free lines is 4095 [17:25:59]Connected sock=10 [17:25:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D2 6C 07 01 0D 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 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 25 0A 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B0 84 02 00 35 04 06 00 9A 6D C5 3C 33 76 F8 BF 84 42 B2 36 85 E5 [17:26:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 CF 3A 47 00 F4 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B0 84 02 00 F4 03 04 00 B2 B0 93 66 B6 04 01 00 00 15 AD 4D 6A 02 DD CF A0 [17:26:00]CommunicateWithHost err = 0 [17:26:00]CheckOFDResponse [17:26:00]1017 (14) - 77093643461234 [17:26:00]1041 (16) - 0000000000874718 [17:26:00]1040 (4) - 165040 [17:26:00]1012 (4) - 14.07.2024 11:04 [17:26:00]1206 (1) - 0 [17:26:00]OFD Sender: Remove packet 165040 [17:26:00]ProducePacketName [17:26:00]name=ofd_packets/00165040 [17:26:00]NVStorageDeleteData [17:26:00]Write to MH i2c: 01 00 00 EE 00 EE [17:26:00]Write i2c OK [17:26:00]MH_I2C_Read... [17:26:00]Read from MH i2c: 01 [17:26:00]MH_I2C_Read... [17:26:00]Read from MH i2c: 01 07 00 [17:26:00]MH_I2C_Read... [17:26:00]Read from MH i2c: 01 07 00 EE 00 00 00 00 00 00 F8 0C F9 [17:26:00]RasterBufferAndPrint [17:26:00]line [17:26:00]line [17:26:00]line [17:26:00]line [17:26:00]line [17:26:00]written 0, free lines is 3326 [17:26:00]MH_Cut [17:26:00]Write to MH i2c: D1 01 00 F5 00 01 C7 [17:26:00]Write i2c OK [17:26:00]MH_I2C_Read... [17:26:00]Read from MH i2c: D1 [17:26:00]MH_I2C_Read... [17:26:00]Read from MH i2c: D1 01 00 [17:26:00]MH_I2C_Read... [17:26:00]Read from MH i2c: D1 01 00 F5 00 00 C6 [17:26:00]Write to MH i2c: 01 00 00 F6 00 F6 [17:26:00]Write i2c OK [17:26:00]MH_I2C_Read... [17:26:00]OFD Sender: No OFD packet to send [17:26:00]*** Cut start [17:26:00]*** Partial cut [17:26:00]*** CUTSNS_PIN = 1 [17:26:00]*** CUTSNS_PIN = 0 [17:26:01]*** Brake cut motor [17:26:01]Read from MH i2c: 01 [17:26:01]MH_I2C_Read... [17:26:01]*** Stop cut motor [17:26:01]*** Cut end [17:26:01]Read from MH i2c: 01 07 00 [17:26:01]MH_I2C_Read... [17:26:01]Read from MH i2c: 01 07 00 F6 00 00 00 00 00 00 FF 0F 0B [17:26:01]process_action close_receipt done [17:26:01]requested_data is exist [17:26:01]produce_requested_data [17:26:01]requested_item fm.sn is exist - process it [17:26:01]wFMCommunicate request_size=4 [17:26:01]MH_SAM_APDU [17:26:01]CAPDU: 80 11 00 00 [17:26:01]Write to MH i2c: E2 08 00 F7 00 80 11 00 00 00 00 00 00 71 [17:26:01]Write i2c OK [17:26:01]MH_I2C_Read... [17:26:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:01]Read from MH i2c: E2 [17:26:01]MH_I2C_Read... [17:26:01]Read from MH i2c: E2 17 00 [17:26:01]MH_I2C_Read... [17:26:01]Read from MH i2c: E2 17 00 F7 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C7 [17:26:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:26:01]wFMCommunicate OK [17:26:01]requested_item fd.num is exist - process it [17:26:01]SAM_PROTO_GetFieldsCounters [17:26:01]wFMCommunicate request_size=4 [17:26:01]MH_SAM_APDU [17:26:01]CAPDU: 80 13 00 00 [17:26:01]Write to MH i2c: E2 08 00 F8 00 80 13 00 00 00 00 00 00 74 [17:26:01]Write i2c OK [17:26:01]MH_I2C_Read... [17:26:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:26:01]Read from MH i2c: E2 [17:26:01]MH_I2C_Read... [17:26:01]Read from MH i2c: E2 62 00 [17:26:01]MH_I2C_Read... [17:26:01]Read from MH i2c: E2 62 00 F8 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B0 84 02 00 0E 04 04 00 BF 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 5B [17:26:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B0 84 02 00 0E 04 04 00 BF 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 [17:26:01]wFMCommunicate OK [17:26:01]SAM_PROTO_GetFieldsCounters done [17:26:01]requested_item shift.num is exist - process it [17:26:01]requested_item shift.opened is exist - process it [17:26:01]req_shift_opened [17:26:01]FM_GetShiftState [17:26:01]SAM_PROTO_GetShiftState [17:26:01]wFMCommunicate request_size=4 [17:26:01]MH_SAM_APDU [17:26:01]CAPDU: 80 13 01 00 [17:26:01]Write to MH i2c: E2 08 00 F9 00 80 13 01 00 00 00 00 00 76 [17:26:01]Write i2c OK [17:26:01]MH_I2C_Read... [17:26:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:01]Read from MH i2c: E2 [17:26:01]MH_I2C_Read... [17:26:01]Read from MH i2c: E2 0E 00 [17:26:01]MH_I2C_Read... [17:26:01]Read from MH i2c: E2 0E 00 F9 00 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 F6 [17:26:01]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [17:26:01]wFMCommunicate OK [17:26:01]SAM_PROTO_GetShiftState done [17:26:01]FM_GetShiftState done [17:26:01]req_shift_opened done [17:26:01]requested_item shift.open_date is exist - process it [17:26:01]req_shift_open_date [17:26:01]req_shift_open_date done [17:26:01]produce_requested_data done [17:26:01]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165040,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [17:26:01]process_action_free close_receipt [17:26:01]json_value_free [17:26:01]json_value_free done [17:26:01]process_json_proto returns [17:26:01]Send response to host [17:26:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165040,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [17:26:01]free response buf [17:26:01]execute_script done [17:26:01]execute_script returns [17:26:01]free content buf [17:26:01]Sock 9.Close socket [17:26:01]Sock 9.Thread stoped [17:26:05]OFD Sender: No OFD packet to send [17:26:10]OFD Sender: No OFD packet to send [17:26:15]OFD Sender: No OFD packet to send [17:26:20]OFD Sender: No OFD packet to send [17:26:25]OFD Sender: No OFD packet to send [17:26:30]OFD Sender: No OFD packet to send [17:26:32]accept exits with 7 [17:26:32]New connection [17:26:32]New thread 3067383140 created [17:26:32]Thread 3067526500 joined [17:26:32]Waiting for new connection... [17:26:32] Sock 7.Parse request [17:26:32]Sock 7.Check first char [17:26:32]Sock 7.First char is OK [17:26:32]request: POST /json_proto HTTP/1.0 [17:26:32]Method: POST [17:26:32]URL: /json_proto [17:26:32]Method is POST - this is cgi request [17:26:32]url: /json_proto [17:26:32]query_string will be loaded in cgi processing [17:26:32]execute_cgi json_proto POST (null) [17:26:32]execute_cgi path=json_proto method=POST [17:26:32]POST find Content-Length [17:26:32]Host: 172.17.56.4:8080 [17:26:32]Content-Length: 677 [17:26:32]Content-Type: application/json [17:26:32] [17:26:32]POST finish read [17:26:32]Found Content-Length = 677 [17:26:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459142", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:26:32]execute_script... [17:26:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459142", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:26:32]POST & json_proto [17:26:32]process_json_proto [17:26:32]json parsed OK: [17:26:32]protocol is kg_v1.0 [17:26:32]action value=close_receipt [17:26:32]process_action close_receipt [17:26:32]cmd_close_receipt [17:26:32]MH_GetDate [17:26:32]Write to MH i2c: F0 00 00 FA 00 E9 [17:26:32]Write i2c OK [17:26:32]MH_I2C_Read... [17:26:32]Read from MH i2c: F0 [17:26:32]MH_I2C_Read... [17:26:32]Read from MH i2c: F0 09 00 [17:26:32]MH_I2C_Read... [17:26:32]Read from MH i2c: F0 09 00 FA 00 00 48 0A 94 66 C9 DC B2 64 F9 [17:26:32]GetLastDocTimeStamp 1720977957 [17:26:32]current date 1720977992 [17:26:32]FM_GetShiftState [17:26:32]SAM_PROTO_GetShiftState [17:26:32]wFMCommunicate request_size=4 [17:26:32]MH_SAM_APDU [17:26:32]CAPDU: 80 13 01 00 [17:26:32]Write to MH i2c: E2 08 00 FB 00 80 13 01 00 00 00 00 00 78 [17:26:32]Write i2c OK [17:26:32]MH_I2C_Read... [17:26:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:32]Read from MH i2c: E2 [17:26:32]MH_I2C_Read... [17:26:32]Read from MH i2c: E2 0E 00 [17:26:32]MH_I2C_Read... [17:26:32]Read from MH i2c: E2 0E 00 FB 00 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 F8 [17:26:32]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [17:26:32]wFMCommunicate OK [17:26:32]SAM_PROTO_GetShiftState done [17:26:32]FM_GetShiftState done [17:26:32]opened in 1720917342 [17:26:32]opened+sec_in_day 1721003742 [17:26:32]quantity*price = 50008 [17:26:32]sum+1 = 50009 [17:26:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 239 14.07.2024 17:26 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165041 ФПД: 46243563497784 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T172632&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165041&fm=46243563497784&tin=02508201610067®Number=0000000000090829&sum=50000 [17:26:33]StoreToDocumentArchive [17:26:33]shift 447 fd 165041 [17:26:33]save to /storage/0447/doc_00165041 [17:26:33]save last doc name /storage/0447/doc_00165041 to /storage/kkm_last_doc_name [17:26:33]save OK [17:26:33]Clear old archive folders... [17:26:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:26:33]tlvbuf is 01F53C80 [17:26:33]SAM_PROTO_ClearQueue [17:26:33]wFMCommunicate request_size=4 [17:26:33]MH_SAM_APDU [17:26:33]CAPDU: 80 09 00 00 [17:26:33]Write to MH i2c: E2 08 00 08 01 80 09 00 00 00 00 00 00 7B [17:26:33]Write i2c OK [17:26:33]MH_I2C_Read... [17:26:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:26:33]Read from MH i2c: E2 [17:26:33]MH_I2C_Read... [17:26:33]Read from MH i2c: E2 03 00 [17:26:33]MH_I2C_Read... [17:26:33]Read from MH i2c: E2 03 00 08 01 00 90 00 7D [17:26:33]RAPDU: 90 00 [17:26:33]wFMCommunicate OK [17:26:33]SAM_PROTO_ClearQueue done [17:26:33]KKMCreateOFDPacket [17:26:33]OFDProtocolAddRootSTLVToBuf [17:26:33]FM_MakeSignedData [17:26:33]FM_MakeSignedData [17:26:33]SAM_PROTO_SignData [17:26:33]wFMCommunicate request_size=4 [17:26:33]MH_SAM_APDU [17:26:33]CAPDU: 80 0D 01 02 [17:26:33]Write to MH i2c: E2 08 00 09 01 80 0D 01 02 00 00 00 00 83 [17:26:33]Write i2c OK [17:26:33]MH_I2C_Read... [17:26:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:26:33]Read from MH i2c: E2 [17:26:33]MH_I2C_Read... [17:26:33]Read from MH i2c: E2 03 00 [17:26:33]MH_I2C_Read... [17:26:33]Read from MH i2c: E2 03 00 09 01 00 90 00 7E [17:26:33]RAPDU: 90 00 [17:26:33]wFMCommunicate OK [17:26:33]wFMCommunicate request_size=255 [17:26:33]MH_SAM_APDU [17:26:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 EF 00 00 00 F4 03 04 00 48 0A 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B1 84 02 00 35 04 06 00 2A [17:26:33]Write to MH i2c: E2 02 01 0A 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 EF 00 00 00 F4 03 04 00 48 0A 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B1 84 02 00 35 04 06 00 2A 00 00 58 [17:26:33]Write i2c OK [17:26:33]MH_I2C_Read... [17:26:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:33]Read from MH i2c: E2 [17:26:33]MH_I2C_Read... [17:26:33]Read from MH i2c: E2 03 00 [17:26:33]MH_I2C_Read... [17:26:33]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [17:26:33]RAPDU: 90 00 [17:26:33]wFMCommunicate OK [17:26:33]wFMCommunicate request_size=10 [17:26:33]MH_SAM_APDU [17:26:33]CAPDU: 80 0D 02 02 05 0E EB 2C E9 38 [17:26:33]Write to MH i2c: E2 0D 00 0B 01 80 0D 02 02 05 00 0E EB 2C E9 38 00 00 D6 [17:26:33]Write i2c OK [17:26:33]MH_I2C_Read... [17:26:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:33]Read from MH i2c: E2 [17:26:33]MH_I2C_Read... [17:26:33]Read from MH i2c: E2 03 00 [17:26:33]MH_I2C_Read... [17:26:33]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [17:26:33]RAPDU: 90 00 [17:26:33]wFMCommunicate OK [17:26:33]wFMCommunicate request_size=4 [17:26:33]MH_SAM_APDU [17:26:33]CAPDU: 80 0D 03 02 [17:26:33]Write to MH i2c: E2 08 00 0C 01 80 0D 03 02 00 00 00 00 88 [17:26:33]Write i2c OK [17:26:33]MH_I2C_Read... [17:26:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:26:33]Read from MH i2c: E2 [17:26:33]MH_I2C_Read... [17:26:33]Read from MH i2c: E2 0B 00 [17:26:33]MH_I2C_Read... [17:26:33]Read from MH i2c: E2 0B 00 0C 01 00 CF D3 C5 7F 59 75 7F 9B 90 00 57 [17:26:33]RAPDU: CF D3 C5 7F 59 75 7F 9B 90 00 [17:26:33]wFMCommunicate OK [17:26:33]SAM_PROTO_SignData done [17:26:33]FM_MakeSignedData done [17:26:33]CreateOFDProtocolMessage [17:26:33]wFMCommunicate request_size=4 [17:26:33]MH_SAM_APDU [17:26:33]CAPDU: 80 11 00 00 [17:26:33]Write to MH i2c: E2 08 00 0D 01 80 11 00 00 00 00 00 00 88 [17:26:33]Write i2c OK [17:26:33]MH_I2C_Read... [17:26:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:34]Read from MH i2c: E2 [17:26:34]MH_I2C_Read... [17:26:34]Read from MH i2c: E2 17 00 [17:26:34]MH_I2C_Read... [17:26:34]Read from MH i2c: E2 17 00 0D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DE [17:26:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:26:34]wFMCommunicate OK [17:26:34]CreateOFDProtocolMessage done [17:26:34]OFDSenderStorePacket 165041 [17:26:34]StoreOFDPacket docnum=165041 [17:26:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 56 E7 07 01 85 FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 EF 00 00 00 F4 03 04 00 48 0A 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B1 84 02 00 35 04 06 00 2A 0E EB 2C E9 38 CF D3 C5 7F 59 75 7F 9B [17:26:34]CheckFolder [17:26:34]dirname=/storage/ofd_packets [17:26:34]CheckFolder done [17:26:34]ProducePacketName [17:26:34]name=ofd_packets/00165041 [17:26:34]NVStorageSaveData ofd_packets/00165041 [17:26:34]File name is /storage/ofd_packets/00165041 [17:26:34]Write 301 bytes [17:26:34]NVStorageSaveData done [17:26:34]OFDSenderStorePacket done [17:26:34]KKMCreateOFDPacket done [17:26:34]NVStorageSaveData kkm_last_timestamp [17:26:34]File name is /storage/kkm_last_timestamp [17:26:34]Write 4 bytes [17:26:34]NVStorageSaveData done [17:26:34]ExternCall_PrintAddStr [17:26:34]wPrintStart [17:26:34]Write to MH i2c: 01 00 00 0E 01 0F [17:26:34]Write i2c OK [17:26:34]MH_I2C_Read... [17:26:34]Read from MH i2c: 01 [17:26:34]MH_I2C_Read... [17:26:34]Read from MH i2c: 01 07 00 [17:26:34]MH_I2C_Read... [17:26:34]Read from MH i2c: 01 07 00 0E 01 00 00 00 00 00 FF 0F 24 [17:26:34]RasterBufferAndPrint [17:26:34]line Счет N : (1)459142 [17:26:34]line ИНН: 02508201610067 [17:26:34]line Контрольно-Кассовый Чек [17:26:34]line ПРОДАЖА [17:26:34]line ТРК (МРК, ГНК) : 22 [17:26:34]line Товар: 2710124130 [17:26:34]line Аи-92-К-5 [17:26:34]line 7.600 * 65.80 [17:26:34]line = 500.08 [17:26:34]line НДС 12% НСП 1% [17:26:34]line > о реализуемом товаре [17:26:34]line ОКРУГЛЕНИЕ: -0.08 [17:26:34]line ИТОГО: 500.00 [17:26:34]line Внесено: 500.00 [17:26:34]line СДАЧА: 0.00 [17:26:34]line НСП 1% : 4.42 [17:26:34]line НДС 12% : 53.11 [17:26:34]line Наличными: 500.00 [17:26:34]line Безнал.: 0.00 [17:26:34]line Место: АЗС № 72 "Партнер Нефть" [17:26:34]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [17:26:34]line СНО: Общий режим [17:26:34]line Чек 239 14.07.2024 17:26 [17:26:34]line Смена: 447 ФФД: 1.0 [17:26:34]line ЗНМ: 0300000160 [17:26:34]line РНМ: 0000000000090829 [17:26:34]line Версия ККМ: 001 [17:26:34]line ФМ: 0000000000874718 [17:26:34]line ФД: 165041 [17:26:34]line ФПД: 46243563497784 [17:26:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T172632&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165041&fm=46243563497784&tin=02508201610067®Number=0000000000090829&sum=50000 [17:26:34]OFD Sender: Processing packet 165041 [packets to send 105, broken 104] [17:26:34]ProducePacketName [17:26:34]name=ofd_packets/00165041 [17:26:34]OFD Sender: To server: pG, [17:26:34]CommunicateWithHost lk.salyk.kg:30040 [17:26:34]ConnectInit lk.salyk.kg [17:26:34]written 0, free lines is 4095 [17:26:34]Connected sock=10 [17:26:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 56 E7 07 01 85 FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 EF 00 00 00 F4 03 04 00 48 0A 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B1 84 02 00 35 04 06 00 2A 0E EB 2C E9 38 CF D3 C5 7F 59 75 7F 9B [17:26:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 01 52 47 00 76 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 38 37 34 37 31 38 10 04 04 00 B1 84 02 00 F4 03 04 00 D5 B0 93 66 B6 04 01 00 00 D3 28 C3 70 46 25 C8 0E [17:26:34]CommunicateWithHost err = 0 [17:26:34]CheckOFDResponse [17:26:34]1017 (14) - 77093643461234 [17:26:34]1041 (16) - 0000000000874718 [17:26:34]1040 (4) - 165041 [17:26:34]1012 (4) - 14.07.2024 11:04 [17:26:34]1206 (1) - 0 [17:26:34]OFD Sender: Remove packet 165041 [17:26:34]ProducePacketName [17:26:34]name=ofd_packets/00165041 [17:26:34]NVStorageDeleteData [17:26:34]Write to MH i2c: 01 00 00 38 01 39 [17:26:34]Write i2c OK [17:26:34]MH_I2C_Read... [17:26:34]Read from MH i2c: 01 [17:26:34]MH_I2C_Read... [17:26:34]Read from MH i2c: 01 07 00 [17:26:34]MH_I2C_Read... [17:26:34]Read from MH i2c: 01 07 00 38 01 00 00 00 00 00 F5 0C 41 [17:26:34]RasterBufferAndPrint [17:26:34]line [17:26:34]line [17:26:34]line [17:26:34]line [17:26:34]line [17:26:34]written 0, free lines is 3324 [17:26:34]MH_Cut [17:26:34]Write to MH i2c: D1 01 00 3F 01 01 12 [17:26:34]Write i2c OK [17:26:34]MH_I2C_Read... [17:26:34]Read from MH i2c: D1 [17:26:34]MH_I2C_Read... [17:26:34]Read from MH i2c: D1 01 00 [17:26:34]MH_I2C_Read... [17:26:34]Read from MH i2c: D1 01 00 3F 01 00 11 [17:26:34]Write to MH i2c: 01 00 00 40 01 41 [17:26:34]Write i2c OK [17:26:34]MH_I2C_Read... [17:26:35]OFD Sender: No OFD packet to send [17:26:35]*** Cut start [17:26:35]*** Partial cut [17:26:35]*** CUTSNS_PIN = 1 [17:26:35]*** CUTSNS_PIN = 0 [17:26:35]*** Brake cut motor [17:26:36]Read from MH i2c: 01 [17:26:36]MH_I2C_Read... [17:26:36]*** Stop cut motor [17:26:36]*** Cut end [17:26:36]Read from MH i2c: 01 07 00 [17:26:36]MH_I2C_Read... [17:26:36]Read from MH i2c: 01 07 00 40 01 00 00 00 00 00 FF 0F 56 [17:26:36]process_action close_receipt done [17:26:36]requested_data is exist [17:26:36]produce_requested_data [17:26:36]requested_item fm.sn is exist - process it [17:26:36]wFMCommunicate request_size=4 [17:26:36]MH_SAM_APDU [17:26:36]CAPDU: 80 11 00 00 [17:26:36]Write to MH i2c: E2 08 00 41 01 80 11 00 00 00 00 00 00 BC [17:26:36]Write i2c OK [17:26:36]MH_I2C_Read... [17:26:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:36]Read from MH i2c: E2 [17:26:36]MH_I2C_Read... [17:26:36]Read from MH i2c: E2 17 00 [17:26:36]MH_I2C_Read... [17:26:36]Read from MH i2c: E2 17 00 41 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 12 [17:26:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:26:36]wFMCommunicate OK [17:26:36]requested_item fd.num is exist - process it [17:26:36]SAM_PROTO_GetFieldsCounters [17:26:36]wFMCommunicate request_size=4 [17:26:36]MH_SAM_APDU [17:26:36]CAPDU: 80 13 00 00 [17:26:36]Write to MH i2c: E2 08 00 42 01 80 13 00 00 00 00 00 00 BF [17:26:36]Write i2c OK [17:26:36]MH_I2C_Read... [17:26:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:26:36]Read from MH i2c: E2 [17:26:36]MH_I2C_Read... [17:26:36]Read from MH i2c: E2 62 00 [17:26:36]MH_I2C_Read... [17:26:36]Read from MH i2c: E2 62 00 42 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B1 84 02 00 0E 04 04 00 BF 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 AA [17:26:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B1 84 02 00 0E 04 04 00 BF 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 [17:26:36]wFMCommunicate OK [17:26:36]SAM_PROTO_GetFieldsCounters done [17:26:36]requested_item shift.num is exist - process it [17:26:36]requested_item shift.opened is exist - process it [17:26:36]req_shift_opened [17:26:36]FM_GetShiftState [17:26:36]SAM_PROTO_GetShiftState [17:26:36]wFMCommunicate request_size=4 [17:26:36]MH_SAM_APDU [17:26:36]CAPDU: 80 13 01 00 [17:26:36]Write to MH i2c: E2 08 00 43 01 80 13 01 00 00 00 00 00 C1 [17:26:36]Write i2c OK [17:26:36]MH_I2C_Read... [17:26:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:36]Read from MH i2c: E2 [17:26:36]MH_I2C_Read... [17:26:36]Read from MH i2c: E2 0E 00 [17:26:36]MH_I2C_Read... [17:26:36]Read from MH i2c: E2 0E 00 43 01 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 41 [17:26:36]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [17:26:36]wFMCommunicate OK [17:26:36]SAM_PROTO_GetShiftState done [17:26:36]FM_GetShiftState done [17:26:36]req_shift_opened done [17:26:36]requested_item shift.open_date is exist - process it [17:26:36]req_shift_open_date [17:26:36]req_shift_open_date done [17:26:36]produce_requested_data done [17:26:36]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165041,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [17:26:36]process_action_free close_receipt [17:26:36]json_value_free [17:26:36]json_value_free done [17:26:36]process_json_proto returns [17:26:36]Send response to host [17:26:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165041,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [17:26:36]free response buf [17:26:36]execute_script done [17:26:36]execute_script returns [17:26:36]free content buf [17:26:36]Sock 7.Close socket [17:26:36]Sock 7.Thread stoped [17:26:40]OFD Sender: No OFD packet to send [17:26:45]OFD Sender: No OFD packet to send [17:26:50]OFD Sender: No OFD packet to send [17:26:55]OFD Sender: No OFD packet to send [17:27:00]OFD Sender: No OFD packet to send [17:27:05]OFD Sender: No OFD packet to send [17:27:10]OFD Sender: No OFD packet to send [17:27:15]OFD Sender: No OFD packet to send [17:27:20]OFD Sender: No OFD packet to send [17:27:25]OFD Sender: No OFD packet to send [17:27:30]OFD Sender: No OFD packet to send [17:27:35]OFD Sender: No OFD packet to send [17:27:40]OFD Sender: No OFD packet to send [17:27:45]OFD Sender: No OFD packet to send [17:27:48]accept exits with 9 [17:27:48]New connection [17:27:48]New thread 3067526500 created [17:27:48]Thread 3067383140 joined [17:27:48]Waiting for new connection... [17:27:48] Sock 9.Parse request [17:27:48]Sock 9.Check first char [17:27:48]Sock 9.First char is OK [17:27:48]request: POST /json_proto HTTP/1.0 [17:27:48]Method: POST [17:27:48]URL: /json_proto [17:27:48]Method is POST - this is cgi request [17:27:48]url: /json_proto [17:27:48]query_string will be loaded in cgi processing [17:27:48]execute_cgi json_proto POST (null) [17:27:48]execute_cgi path=json_proto method=POST [17:27:48]POST find Content-Length [17:27:48]Host: 172.17.56.4:8080 [17:27:48]Content-Length: 677 [17:27:48]Content-Type: application/json [17:27:48] [17:27:48]POST finish read [17:27:48]Found Content-Length = 677 [17:27:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459143", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:27:48]execute_script... [17:27: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)459143", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:27:48]POST & json_proto [17:27:48]process_json_proto [17:27:48]json parsed OK: [17:27:48]protocol is kg_v1.0 [17:27:48]action value=close_receipt [17:27:48]process_action close_receipt [17:27:48]cmd_close_receipt [17:27:48]MH_GetDate [17:27:48]Write to MH i2c: F0 00 00 44 01 34 [17:27:48]Write i2c OK [17:27:48]MH_I2C_Read... [17:27:48]Read from MH i2c: F0 [17:27:48]MH_I2C_Read... [17:27:48]Read from MH i2c: F0 09 00 [17:27:48]MH_I2C_Read... [17:27:48]Read from MH i2c: F0 09 00 44 01 00 94 0A 94 66 C9 DC B2 64 90 [17:27:48]GetLastDocTimeStamp 1720977992 [17:27:48]current date 1720978068 [17:27:48]FM_GetShiftState [17:27:48]SAM_PROTO_GetShiftState [17:27:48]wFMCommunicate request_size=4 [17:27:48]MH_SAM_APDU [17:27:48]CAPDU: 80 13 01 00 [17:27:48]Write to MH i2c: E2 08 00 45 01 80 13 01 00 00 00 00 00 C3 [17:27:48]Write i2c OK [17:27:48]MH_I2C_Read... [17:27:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:48]Read from MH i2c: E2 [17:27:48]MH_I2C_Read... [17:27:48]Read from MH i2c: E2 0E 00 [17:27:48]MH_I2C_Read... [17:27:48]Read from MH i2c: E2 0E 00 45 01 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 43 [17:27:48]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [17:27:48]wFMCommunicate OK [17:27:48]SAM_PROTO_GetShiftState done [17:27:48]FM_GetShiftState done [17:27:48]opened in 1720917342 [17:27:48]opened+sec_in_day 1721003742 [17:27:48]quantity*price = 20003 [17:27:48]sum+1 = 20004 [17:27:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 240 14.07.2024 17:27 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165042 ФПД: 115500929606908 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T172748&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165042&fm=115500929606908&tin=02508201610067®Number=0000000000090829&sum=20000 [17:27:49]StoreToDocumentArchive [17:27:49]shift 447 fd 165042 [17:27:49]save to /storage/0447/doc_00165042 [17:27:49]save last doc name /storage/0447/doc_00165042 to /storage/kkm_last_doc_name [17:27:49]save OK [17:27:49]Clear old archive folders... [17:27:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:27:49]tlvbuf is 01F53550 [17:27:49]SAM_PROTO_ClearQueue [17:27:49]wFMCommunicate request_size=4 [17:27:49]MH_SAM_APDU [17:27:49]CAPDU: 80 09 00 00 [17:27:49]Write to MH i2c: E2 08 00 52 01 80 09 00 00 00 00 00 00 C5 [17:27:49]Write i2c OK [17:27:49]MH_I2C_Read... [17:27:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:27:50]Read from MH i2c: E2 [17:27:50]MH_I2C_Read... [17:27:50]Read from MH i2c: E2 03 00 [17:27:50]MH_I2C_Read... [17:27:50]Read from MH i2c: E2 03 00 52 01 00 90 00 C7 [17:27:50]RAPDU: 90 00 [17:27:50]wFMCommunicate OK [17:27:50]SAM_PROTO_ClearQueue done [17:27:50]KKMCreateOFDPacket [17:27:50]OFDProtocolAddRootSTLVToBuf [17:27:50]FM_MakeSignedData [17:27:50]FM_MakeSignedData [17:27:50]SAM_PROTO_SignData [17:27:50]wFMCommunicate request_size=4 [17:27:50]MH_SAM_APDU [17:27:50]CAPDU: 80 0D 01 02 [17:27:50]Write to MH i2c: E2 08 00 53 01 80 0D 01 02 00 00 00 00 CD [17:27:50]Write i2c OK [17:27:50]MH_I2C_Read... [17:27:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:27:50]Read from MH i2c: E2 [17:27:50]MH_I2C_Read... [17:27:50]Read from MH i2c: E2 03 00 [17:27:50]MH_I2C_Read... [17:27:50]Read from MH i2c: E2 03 00 53 01 00 90 00 C8 [17:27:50]RAPDU: 90 00 [17:27:50]wFMCommunicate OK [17:27:50]wFMCommunicate request_size=255 [17:27:50]MH_SAM_APDU [17:27:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 F0 00 00 00 F4 03 04 00 94 0A 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B2 84 02 00 35 04 06 00 69 [17:27:50]Write to MH i2c: E2 02 01 54 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 F0 00 00 00 F4 03 04 00 94 0A 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B2 84 02 00 35 04 06 00 69 00 00 D0 [17:27:50]Write i2c OK [17:27:50]MH_I2C_Read... [17:27:50]OFD Sender: No OFD packet to send [17:27:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:50]Read from MH i2c: E2 [17:27:50]MH_I2C_Read... [17:27:50]Read from MH i2c: E2 03 00 [17:27:50]MH_I2C_Read... [17:27:50]Read from MH i2c: E2 03 00 54 01 00 90 00 C9 [17:27:50]RAPDU: 90 00 [17:27:50]wFMCommunicate OK [17:27:50]wFMCommunicate request_size=10 [17:27:50]MH_SAM_APDU [17:27:50]CAPDU: 80 0D 02 02 05 0C 27 E1 64 FC [17:27:50]Write to MH i2c: E2 0D 00 55 01 80 0D 02 02 05 00 0C 27 E1 64 FC 00 00 4E [17:27:50]Write i2c OK [17:27:50]MH_I2C_Read... [17:27:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:50]Read from MH i2c: E2 [17:27:50]MH_I2C_Read... [17:27:50]Read from MH i2c: E2 03 00 [17:27:50]MH_I2C_Read... [17:27:50]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [17:27:50]RAPDU: 90 00 [17:27:50]wFMCommunicate OK [17:27:50]wFMCommunicate request_size=4 [17:27:50]MH_SAM_APDU [17:27:50]CAPDU: 80 0D 03 02 [17:27:50]Write to MH i2c: E2 08 00 56 01 80 0D 03 02 00 00 00 00 D2 [17:27:50]Write i2c OK [17:27:50]MH_I2C_Read... [17:27:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:27:50]Read from MH i2c: E2 [17:27:50]MH_I2C_Read... [17:27:50]Read from MH i2c: E2 0B 00 [17:27:50]MH_I2C_Read... [17:27:50]Read from MH i2c: E2 0B 00 56 01 00 BC 96 13 F3 3E FD D4 C8 90 00 02 [17:27:50]RAPDU: BC 96 13 F3 3E FD D4 C8 90 00 [17:27:50]wFMCommunicate OK [17:27:50]SAM_PROTO_SignData done [17:27:50]FM_MakeSignedData done [17:27:50]CreateOFDProtocolMessage [17:27:50]wFMCommunicate request_size=4 [17:27:50]MH_SAM_APDU [17:27:50]CAPDU: 80 11 00 00 [17:27:50]Write to MH i2c: E2 08 00 57 01 80 11 00 00 00 00 00 00 D2 [17:27:50]Write i2c OK [17:27:50]MH_I2C_Read... [17:27:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:50]Read from MH i2c: E2 [17:27:50]MH_I2C_Read... [17:27:50]Read from MH i2c: E2 17 00 [17:27:50]MH_I2C_Read... [17:27:50]Read from MH i2c: E2 17 00 57 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 28 [17:27:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:27:50]wFMCommunicate OK [17:27:50]CreateOFDProtocolMessage done [17:27:50]OFDSenderStorePacket 165042 [17:27:50]StoreOFDPacket docnum=165042 [17:27:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 CD 62 07 01 F0 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 F0 00 00 00 F4 03 04 00 94 0A 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B2 84 02 00 35 04 06 00 69 0C 27 E1 64 FC BC 96 13 F3 3E FD D4 C8 [17:27:50]CheckFolder [17:27:50]dirname=/storage/ofd_packets [17:27:50]CheckFolder done [17:27:50]ProducePacketName [17:27:50]name=ofd_packets/00165042 [17:27:50]NVStorageSaveData ofd_packets/00165042 [17:27:50]File name is /storage/ofd_packets/00165042 [17:27:50]Write 301 bytes [17:27:50]NVStorageSaveData done [17:27:50]OFDSenderStorePacket done [17:27:50]KKMCreateOFDPacket done [17:27:50]NVStorageSaveData kkm_last_timestamp [17:27:50]File name is /storage/kkm_last_timestamp [17:27:50]Write 4 bytes [17:27:50]NVStorageSaveData done [17:27:50]ExternCall_PrintAddStr [17:27:50]wPrintStart [17:27:50]Write to MH i2c: 01 00 00 58 01 59 [17:27:50]Write i2c OK [17:27:50]MH_I2C_Read... [17:27:50]Read from MH i2c: 01 [17:27:50]MH_I2C_Read... [17:27:50]Read from MH i2c: 01 07 00 [17:27:50]MH_I2C_Read... [17:27:50]Read from MH i2c: 01 07 00 58 01 00 00 00 00 00 FF 0F 6E [17:27:50]RasterBufferAndPrint [17:27:50]line Счет N : (1)459143 [17:27:50]line ИНН: 02508201610067 [17:27:50]line Контрольно-Кассовый Чек [17:27:50]line ПРОДАЖА [17:27:50]line ТРК (МРК, ГНК) : 12 [17:27:50]line Товар: 2710124130 [17:27:50]line Аи-92-К-5 [17:27:50]line 3.040 * 65.80 [17:27:50]line = 200.03 [17:27:50]line НДС 12% НСП 1% [17:27:50]line > о реализуемом товаре [17:27:50]line ОКРУГЛЕНИЕ: -0.03 [17:27:50]line ИТОГО: 200.00 [17:27:50]line Внесено: 200.00 [17:27:50]line СДАЧА: 0.00 [17:27:50]line НСП 1% : 1.77 [17:27:50]line НДС 12% : 21.24 [17:27:50]line Наличными: 200.00 [17:27:50]line Безнал.: 0.00 [17:27:50]line Место: АЗС № 72 "Партнер Нефть" [17:27:50]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [17:27:50]line СНО: Общий режим [17:27:50]line Чек 240 14.07.2024 17:27 [17:27:50]line Смена: 447 ФФД: 1.0 [17:27:50]line ЗНМ: 0300000160 [17:27:50]line РНМ: 0000000000090829 [17:27:50]line Версия ККМ: 001 [17:27:50]line ФМ: 0000000000874718 [17:27:50]line ФД: 165042 [17:27:50]line ФПД: 115500929606908 [17:27:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T172748&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165042&fm=115500929606908&tin=02508201610067®Number=0000000000090829&sum=20000 [17:27:50]OFD Sender: Processing packet 165042 [packets to send 105, broken 104] [17:27:50]ProducePacketName [17:27:50]name=ofd_packets/00165042 [17:27:50]OFD Sender: To server: pG, [17:27:50]CommunicateWithHost lk.salyk.kg:30040 [17:27:50]ConnectInit lk.salyk.kg [17:27:50]written 0, free lines is 4095 [17:27:50]Connected sock=10 [17:27:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 CD 62 07 01 F0 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 F0 00 00 00 F4 03 04 00 94 0A 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B2 84 02 00 35 04 06 00 69 0C 27 E1 64 FC BC 96 13 F3 3E FD D4 C8 [17:27:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 07 85 47 00 32 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 38 37 34 37 31 38 10 04 04 00 B2 84 02 00 F4 03 04 00 22 B1 93 66 B6 04 01 00 00 15 BA B6 9E 2F AA 14 36 [17:27:51]CommunicateWithHost err = 0 [17:27:51]CheckOFDResponse [17:27:51]1017 (14) - 77093643461234 [17:27:51]1041 (16) - 0000000000874718 [17:27:51]1040 (4) - 165042 [17:27:51]1012 (4) - 14.07.2024 11:06 [17:27:51]1206 (1) - 0 [17:27:51]OFD Sender: Remove packet 165042 [17:27:51]ProducePacketName [17:27:51]name=ofd_packets/00165042 [17:27:51]NVStorageDeleteData [17:27:51]Write to MH i2c: 01 00 00 82 01 83 [17:27:51]Write i2c OK [17:27:51]MH_I2C_Read... [17:27:51]Read from MH i2c: 01 [17:27:51]MH_I2C_Read... [17:27:51]Read from MH i2c: 01 07 00 [17:27:51]MH_I2C_Read... [17:27:51]Read from MH i2c: 01 07 00 82 01 00 00 00 00 00 08 0D 9F [17:27:51]RasterBufferAndPrint [17:27:51]line [17:27:51]line [17:27:51]line [17:27:51]line [17:27:51]line [17:27:51]written 0, free lines is 3342 [17:27:51]MH_Cut [17:27:51]Write to MH i2c: D1 01 00 89 01 01 5C [17:27:51]Write i2c OK [17:27:51]MH_I2C_Read... [17:27:51]Read from MH i2c: D1 [17:27:51]MH_I2C_Read... [17:27:51]Read from MH i2c: D1 01 00 [17:27:51]MH_I2C_Read... [17:27:51]Read from MH i2c: D1 01 00 89 01 00 5B [17:27:51]Write to MH i2c: 01 00 00 8A 01 8B [17:27:51]Write i2c OK [17:27:51]MH_I2C_Read... [17:27:51]OFD Sender: No OFD packet to send [17:27:51]*** Cut start [17:27:51]*** Partial cut [17:27:51]*** CUTSNS_PIN = 1 [17:27:51]*** CUTSNS_PIN = 0 [17:27:52]*** Brake cut motor [17:27:52]Read from MH i2c: 01 [17:27:52]MH_I2C_Read... [17:27:52]*** Stop cut motor [17:27:52]*** Cut end [17:27:52]Read from MH i2c: 01 07 00 [17:27:52]MH_I2C_Read... [17:27:52]Read from MH i2c: 01 07 00 8A 01 00 00 00 00 00 FF 0F A0 [17:27:52]process_action close_receipt done [17:27:52]requested_data is exist [17:27:52]produce_requested_data [17:27:52]requested_item fm.sn is exist - process it [17:27:52]wFMCommunicate request_size=4 [17:27:52]MH_SAM_APDU [17:27:52]CAPDU: 80 11 00 00 [17:27:52]Write to MH i2c: E2 08 00 8B 01 80 11 00 00 00 00 00 00 06 [17:27:52]Write i2c OK [17:27:52]MH_I2C_Read... [17:27:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:52]Read from MH i2c: E2 [17:27:52]MH_I2C_Read... [17:27:52]Read from MH i2c: E2 17 00 [17:27:52]MH_I2C_Read... [17:27:52]Read from MH i2c: E2 17 00 8B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 5C [17:27:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:27:52]wFMCommunicate OK [17:27:52]requested_item fd.num is exist - process it [17:27:52]SAM_PROTO_GetFieldsCounters [17:27:52]wFMCommunicate request_size=4 [17:27:52]MH_SAM_APDU [17:27:52]CAPDU: 80 13 00 00 [17:27:52]Write to MH i2c: E2 08 00 8C 01 80 13 00 00 00 00 00 00 09 [17:27:52]Write i2c OK [17:27:52]MH_I2C_Read... [17:27:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:27:52]Read from MH i2c: E2 [17:27:52]MH_I2C_Read... [17:27:52]Read from MH i2c: E2 62 00 [17:27:52]MH_I2C_Read... [17:27:52]Read from MH i2c: E2 62 00 8C 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B2 84 02 00 0E 04 04 00 BF 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 F8 [17:27:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B2 84 02 00 0E 04 04 00 BF 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 [17:27:52]wFMCommunicate OK [17:27:52]SAM_PROTO_GetFieldsCounters done [17:27:52]requested_item shift.num is exist - process it [17:27:52]requested_item shift.opened is exist - process it [17:27:52]req_shift_opened [17:27:52]FM_GetShiftState [17:27:52]SAM_PROTO_GetShiftState [17:27:52]wFMCommunicate request_size=4 [17:27:52]MH_SAM_APDU [17:27:52]CAPDU: 80 13 01 00 [17:27:52]Write to MH i2c: E2 08 00 8D 01 80 13 01 00 00 00 00 00 0B [17:27:52]Write i2c OK [17:27:52]MH_I2C_Read... [17:27:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:52]Read from MH i2c: E2 [17:27:52]MH_I2C_Read... [17:27:52]Read from MH i2c: E2 0E 00 [17:27:52]MH_I2C_Read... [17:27:52]Read from MH i2c: E2 0E 00 8D 01 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 8B [17:27:52]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [17:27:52]wFMCommunicate OK [17:27:52]SAM_PROTO_GetShiftState done [17:27:52]FM_GetShiftState done [17:27:52]req_shift_opened done [17:27:52]requested_item shift.open_date is exist - process it [17:27:52]req_shift_open_date [17:27:52]req_shift_open_date done [17:27:52]produce_requested_data done [17:27:52]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165042,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [17:27:52]process_action_free close_receipt [17:27:52]json_value_free [17:27:52]json_value_free done [17:27:52]process_json_proto returns [17:27:52]Send response to host [17:27:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165042,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [17:27:52]free response buf [17:27:52]execute_script done [17:27:52]execute_script returns [17:27:52]free content buf [17:27:52]Sock 9.Close socket [17:27:52]Sock 9.Thread stoped [17:27:56]OFD Sender: No OFD packet to send [17:28:01]OFD Sender: No OFD packet to send [17:28:06]OFD Sender: No OFD packet to send [17:28:11]OFD Sender: No OFD packet to send [17:28:16]OFD Sender: No OFD packet to send [17:28:19]accept exits with 7 [17:28:19]New connection [17:28:19]New thread 3067383140 created [17:28:19]Thread 3067526500 joined [17:28:19]Waiting for new connection... [17:28:19] Sock 7.Parse request [17:28:19]Sock 7.Check first char [17:28:19]Sock 7.First char is OK [17:28:19]request: POST /json_proto HTTP/1.0 [17:28:19]Method: POST [17:28:19]URL: /json_proto [17:28:19]Method is POST - this is cgi request [17:28:19]url: /json_proto [17:28:19]query_string will be loaded in cgi processing [17:28:19]execute_cgi json_proto POST (null) [17:28:19]execute_cgi path=json_proto method=POST [17:28:19]POST find Content-Length [17:28:19]Host: 172.17.56.4:8080 [17:28:19]Content-Length: 677 [17:28:19]Content-Type: application/json [17:28:19] [17:28:19]POST finish read [17:28:19]Found Content-Length = 677 [17:28:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459144", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:28:19]execute_script... [17:28: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)459144", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:28:19]POST & json_proto [17:28:19]process_json_proto [17:28:19]json parsed OK: [17:28:19]protocol is kg_v1.0 [17:28:19]action value=close_receipt [17:28:19]process_action close_receipt [17:28:19]cmd_close_receipt [17:28:19]MH_GetDate [17:28:19]Write to MH i2c: F0 00 00 8E 01 7E [17:28:19]Write i2c OK [17:28:19]MH_I2C_Read... [17:28:19]Read from MH i2c: F0 [17:28:19]MH_I2C_Read... [17:28:19]Read from MH i2c: F0 09 00 [17:28:19]MH_I2C_Read... [17:28:19]Read from MH i2c: F0 09 00 8E 01 00 B3 0A 94 66 C9 DC B2 64 F9 [17:28:19]GetLastDocTimeStamp 1720978068 [17:28:19]current date 1720978099 [17:28:19]FM_GetShiftState [17:28:19]SAM_PROTO_GetShiftState [17:28:19]wFMCommunicate request_size=4 [17:28:19]MH_SAM_APDU [17:28:19]CAPDU: 80 13 01 00 [17:28:19]Write to MH i2c: E2 08 00 8F 01 80 13 01 00 00 00 00 00 0D [17:28:19]Write i2c OK [17:28:19]MH_I2C_Read... [17:28:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:19]Read from MH i2c: E2 [17:28:19]MH_I2C_Read... [17:28:19]Read from MH i2c: E2 0E 00 [17:28:19]MH_I2C_Read... [17:28:19]Read from MH i2c: E2 0E 00 8F 01 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 8D [17:28:19]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [17:28:19]wFMCommunicate OK [17:28:19]SAM_PROTO_GetShiftState done [17:28:19]FM_GetShiftState done [17:28:19]opened in 1720917342 [17:28:19]opened+sec_in_day 1721003742 [17:28:19]quantity*price = 20003 [17:28:19]sum+1 = 20004 [17:28:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 241 14.07.2024 17:28 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165043 ФПД: 36656333790033 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T172819&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165043&fm=36656333790033&tin=02508201610067®Number=0000000000090829&sum=20000 [17:28:20]StoreToDocumentArchive [17:28:20]shift 447 fd 165043 [17:28:20]save to /storage/0447/doc_00165043 [17:28:20]save last doc name /storage/0447/doc_00165043 to /storage/kkm_last_doc_name [17:28:20]save OK [17:28:20]Clear old archive folders... [17:28:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:28:20]tlvbuf is 01F11D10 [17:28:20]SAM_PROTO_ClearQueue [17:28:20]wFMCommunicate request_size=4 [17:28:20]MH_SAM_APDU [17:28:20]CAPDU: 80 09 00 00 [17:28:20]Write to MH i2c: E2 08 00 9C 01 80 09 00 00 00 00 00 00 0F [17:28:20]Write i2c OK [17:28:20]MH_I2C_Read... [17:28:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:28:20]Read from MH i2c: E2 [17:28:20]MH_I2C_Read... [17:28:20]Read from MH i2c: E2 03 00 [17:28:20]MH_I2C_Read... [17:28:20]Read from MH i2c: E2 03 00 9C 01 00 90 00 11 [17:28:20]RAPDU: 90 00 [17:28:20]wFMCommunicate OK [17:28:20]SAM_PROTO_ClearQueue done [17:28:20]KKMCreateOFDPacket [17:28:20]OFDProtocolAddRootSTLVToBuf [17:28:20]FM_MakeSignedData [17:28:20]FM_MakeSignedData [17:28:20]SAM_PROTO_SignData [17:28:20]wFMCommunicate request_size=4 [17:28:20]MH_SAM_APDU [17:28:20]CAPDU: 80 0D 01 02 [17:28:20]Write to MH i2c: E2 08 00 9D 01 80 0D 01 02 00 00 00 00 17 [17:28:20]Write i2c OK [17:28:20]MH_I2C_Read... [17:28:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:28:20]Read from MH i2c: E2 [17:28:20]MH_I2C_Read... [17:28:20]Read from MH i2c: E2 03 00 [17:28:20]MH_I2C_Read... [17:28:20]Read from MH i2c: E2 03 00 9D 01 00 90 00 12 [17:28:20]RAPDU: 90 00 [17:28:20]wFMCommunicate OK [17:28:20]wFMCommunicate request_size=255 [17:28:20]MH_SAM_APDU [17:28:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 B3 0A 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B3 84 02 00 35 04 06 00 21 [17:28:20]Write to MH i2c: E2 02 01 9E 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 B3 0A 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B3 84 02 00 35 04 06 00 21 00 00 F3 [17:28:20]Write i2c OK [17:28:20]MH_I2C_Read... [17:28:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:20]Read from MH i2c: E2 [17:28:20]MH_I2C_Read... [17:28:20]Read from MH i2c: E2 03 00 [17:28:20]MH_I2C_Read... [17:28:20]Read from MH i2c: E2 03 00 9E 01 00 90 00 13 [17:28:20]RAPDU: 90 00 [17:28:20]wFMCommunicate OK [17:28:20]wFMCommunicate request_size=10 [17:28:20]MH_SAM_APDU [17:28:20]CAPDU: 80 0D 02 02 05 56 B7 C1 1B 51 [17:28:20]Write to MH i2c: E2 0D 00 9F 01 80 0D 02 02 05 00 56 B7 C1 1B 51 00 00 5E [17:28:20]Write i2c OK [17:28:20]MH_I2C_Read... [17:28:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:20]Read from MH i2c: E2 [17:28:20]MH_I2C_Read... [17:28:20]Read from MH i2c: E2 03 00 [17:28:20]MH_I2C_Read... [17:28:20]Read from MH i2c: E2 03 00 9F 01 00 90 00 14 [17:28:20]RAPDU: 90 00 [17:28:20]wFMCommunicate OK [17:28:20]wFMCommunicate request_size=4 [17:28:20]MH_SAM_APDU [17:28:20]CAPDU: 80 0D 03 02 [17:28:20]Write to MH i2c: E2 08 00 A0 01 80 0D 03 02 00 00 00 00 1C [17:28:20]Write i2c OK [17:28:20]MH_I2C_Read... [17:28:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:28:20]Read from MH i2c: E2 [17:28:20]MH_I2C_Read... [17:28:20]Read from MH i2c: E2 0B 00 [17:28:20]MH_I2C_Read... [17:28:20]Read from MH i2c: E2 0B 00 A0 01 00 5E B4 57 53 A6 7E 95 B6 90 00 48 [17:28:20]RAPDU: 5E B4 57 53 A6 7E 95 B6 90 00 [17:28:20]wFMCommunicate OK [17:28:20]SAM_PROTO_SignData done [17:28:20]FM_MakeSignedData done [17:28:20]CreateOFDProtocolMessage [17:28:20]wFMCommunicate request_size=4 [17:28:20]MH_SAM_APDU [17:28:20]CAPDU: 80 11 00 00 [17:28:20]Write to MH i2c: E2 08 00 A1 01 80 11 00 00 00 00 00 00 1C [17:28:20]Write i2c OK [17:28:20]MH_I2C_Read... [17:28:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:20]Read from MH i2c: E2 [17:28:20]MH_I2C_Read... [17:28:20]Read from MH i2c: E2 17 00 [17:28:20]MH_I2C_Read... [17:28:20]Read from MH i2c: E2 17 00 A1 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 72 [17:28:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:28:20]wFMCommunicate OK [17:28:20]CreateOFDProtocolMessage done [17:28:20]OFDSenderStorePacket 165043 [17:28:20]StoreOFDPacket docnum=165043 [17:28:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 7F EA 07 01 58 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 B3 0A 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B3 84 02 00 35 04 06 00 21 56 B7 C1 1B 51 5E B4 57 53 A6 7E 95 B6 [17:28:20]CheckFolder [17:28:20]dirname=/storage/ofd_packets [17:28:20]CheckFolder done [17:28:20]ProducePacketName [17:28:20]name=ofd_packets/00165043 [17:28:20]NVStorageSaveData ofd_packets/00165043 [17:28:20]File name is /storage/ofd_packets/00165043 [17:28:20]Write 301 bytes [17:28:20]NVStorageSaveData done [17:28:20]OFDSenderStorePacket done [17:28:20]KKMCreateOFDPacket done [17:28:20]NVStorageSaveData kkm_last_timestamp [17:28:20]File name is /storage/kkm_last_timestamp [17:28:20]Write 4 bytes [17:28:20]NVStorageSaveData done [17:28:20]OFD Sender: Processing packet 165043 [packets to send 105, broken 104] [17:28:20]ProducePacketName [17:28:20]name=ofd_packets/00165043 [17:28:20]OFD Sender: To server: pG, [17:28:20]CommunicateWithHost lk.salyk.kg:30040 [17:28:20]ConnectInit lk.salyk.kg [17:28:20]ExternCall_PrintAddStr [17:28:20]wPrintStart [17:28:20]Write to MH i2c: 01 00 00 A2 01 A3 [17:28:20]Write i2c OK [17:28:20]MH_I2C_Read... [17:28:20]Read from MH i2c: 01 [17:28:20]MH_I2C_Read... [17:28:20]Read from MH i2c: 01 07 00 [17:28:20]MH_I2C_Read... [17:28:20]Read from MH i2c: 01 07 00 A2 01 00 00 00 00 00 FF 0F B8 [17:28:20]RasterBufferAndPrint [17:28:20]line Счет N : (1)459144 [17:28:20]line ИНН: 02508201610067 [17:28:20]line Контрольно-Кассовый Чек [17:28:20]line ПРОДАЖА [17:28:20]line ТРК (МРК, ГНК) : 12 [17:28:20]line Товар: 2710124130 [17:28:20]line Аи-92-К-5 [17:28:20]line 3.040 * 65.80 [17:28:20]line = 200.03 [17:28:20]line НДС 12% НСП 1% [17:28:20]line > о реализуемом товаре [17:28:20]line ОКРУГЛЕНИЕ: -0.03 [17:28:20]line ИТОГО: 200.00 [17:28:20]line Внесено: 200.00 [17:28:20]line СДАЧА: 0.00 [17:28:20]line НСП 1% : 1.77 [17:28:20]line НДС 12% : 21.24 [17:28:20]line Наличными: 200.00 [17:28:20]line Безнал.: 0.00 [17:28:20]line Место: АЗС № 72 "Партнер Нефть" [17:28:20]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [17:28:20]line СНО: Общий режим [17:28:20]line Чек 241 14.07.2024 17:28 [17:28:20]line Смена: 447 ФФД: 1.0 [17:28:20]line ЗНМ: 0300000160 [17:28:20]line РНМ: 0000000000090829 [17:28:20]line Версия ККМ: 001 [17:28:20]line ФМ: 0000000000874718 [17:28:20]line ФД: 165043 [17:28:20]line ФПД: 36656333790033 [17:28:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T172819&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165043&fm=36656333790033&tin=02508201610067®Number=0000000000090829&sum=20000 [17:28:21]Connected sock=11 [17:28:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 7F EA 07 01 58 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 B3 0A 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B3 84 02 00 35 04 06 00 21 56 B7 C1 1B 51 5E B4 57 53 A6 7E 95 B6 [17:28:21]written 0, free lines is 4095 [17:28:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 1B DD 47 00 97 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 38 37 34 37 31 38 10 04 04 00 B3 84 02 00 F4 03 04 00 40 B1 93 66 B6 04 01 00 00 89 1B D2 8A AC 0B 24 DF [17:28:21]CommunicateWithHost err = 0 [17:28:21]CheckOFDResponse [17:28:21]1017 (14) - 77093643461234 [17:28:21]1041 (16) - 0000000000874718 [17:28:21]1040 (4) - 165043 [17:28:21]1012 (4) - 14.07.2024 11:06 [17:28:21]1206 (1) - 0 [17:28:21]OFD Sender: Remove packet 165043 [17:28:21]ProducePacketName [17:28:21]name=ofd_packets/00165043 [17:28:21]NVStorageDeleteData [17:28:21]Write to MH i2c: 01 00 00 CC 01 CD [17:28:21]Write i2c OK [17:28:21]MH_I2C_Read... [17:28:21]Read from MH i2c: 01 [17:28:21]MH_I2C_Read... [17:28:21]Read from MH i2c: 01 07 00 [17:28:21]MH_I2C_Read... [17:28:21]Read from MH i2c: 01 07 00 CC 01 00 00 00 00 00 F3 0C D3 [17:28:21]RasterBufferAndPrint [17:28:21]line [17:28:21]line [17:28:21]line [17:28:21]line [17:28:21]line [17:28:21]written 0, free lines is 3321 [17:28:21]MH_Cut [17:28:21]Write to MH i2c: D1 01 00 D3 01 01 A6 [17:28:21]Write i2c OK [17:28:21]MH_I2C_Read... [17:28:21]Read from MH i2c: D1 [17:28:21]MH_I2C_Read... [17:28:21]Read from MH i2c: D1 01 00 [17:28:21]MH_I2C_Read... [17:28:21]Read from MH i2c: D1 01 00 D3 01 00 A5 [17:28:21]Write to MH i2c: 01 00 00 D4 01 D5 [17:28:21]Write i2c OK [17:28:21]MH_I2C_Read... [17:28:21]OFD Sender: No OFD packet to send [17:28:22]*** Cut start [17:28:22]*** Partial cut [17:28:22]*** CUTSNS_PIN = 1 [17:28:22]*** CUTSNS_PIN = 0 [17:28:22]*** Brake cut motor [17:28:22]Read from MH i2c: 01 [17:28:22]MH_I2C_Read... [17:28:22]*** Stop cut motor [17:28:22]*** Cut end [17:28:22]Read from MH i2c: 01 07 00 [17:28:22]MH_I2C_Read... [17:28:22]Read from MH i2c: 01 07 00 D4 01 00 00 00 00 00 FF 0F EA [17:28:22]process_action close_receipt done [17:28:22]requested_data is exist [17:28:22]produce_requested_data [17:28:22]requested_item fm.sn is exist - process it [17:28:22]wFMCommunicate request_size=4 [17:28:22]MH_SAM_APDU [17:28:22]CAPDU: 80 11 00 00 [17:28:22]Write to MH i2c: E2 08 00 D5 01 80 11 00 00 00 00 00 00 50 [17:28:22]Write i2c OK [17:28:22]MH_I2C_Read... [17:28:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:22]Read from MH i2c: E2 [17:28:22]MH_I2C_Read... [17:28:22]Read from MH i2c: E2 17 00 [17:28:22]MH_I2C_Read... [17:28:22]Read from MH i2c: E2 17 00 D5 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A6 [17:28:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:28:22]wFMCommunicate OK [17:28:22]requested_item fd.num is exist - process it [17:28:22]SAM_PROTO_GetFieldsCounters [17:28:22]wFMCommunicate request_size=4 [17:28:22]MH_SAM_APDU [17:28:22]CAPDU: 80 13 00 00 [17:28:22]Write to MH i2c: E2 08 00 D6 01 80 13 00 00 00 00 00 00 53 [17:28:22]Write i2c OK [17:28:22]MH_I2C_Read... [17:28:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:28:23]Read from MH i2c: E2 [17:28:23]MH_I2C_Read... [17:28:23]Read from MH i2c: E2 62 00 [17:28:23]MH_I2C_Read... [17:28:23]Read from MH i2c: E2 62 00 D6 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B3 84 02 00 0E 04 04 00 BF 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 46 [17:28:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B3 84 02 00 0E 04 04 00 BF 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 [17:28:23]wFMCommunicate OK [17:28:23]SAM_PROTO_GetFieldsCounters done [17:28:23]requested_item shift.num is exist - process it [17:28:23]requested_item shift.opened is exist - process it [17:28:23]req_shift_opened [17:28:23]FM_GetShiftState [17:28:23]SAM_PROTO_GetShiftState [17:28:23]wFMCommunicate request_size=4 [17:28:23]MH_SAM_APDU [17:28:23]CAPDU: 80 13 01 00 [17:28:23]Write to MH i2c: E2 08 00 D7 01 80 13 01 00 00 00 00 00 55 [17:28:23]Write i2c OK [17:28:23]MH_I2C_Read... [17:28:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:23]Read from MH i2c: E2 [17:28:23]MH_I2C_Read... [17:28:23]Read from MH i2c: E2 0E 00 [17:28:23]MH_I2C_Read... [17:28:23]Read from MH i2c: E2 0E 00 D7 01 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 D5 [17:28:23]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [17:28:23]wFMCommunicate OK [17:28:23]SAM_PROTO_GetShiftState done [17:28:23]FM_GetShiftState done [17:28:23]req_shift_opened done [17:28:23]requested_item shift.open_date is exist - process it [17:28:23]req_shift_open_date [17:28:23]req_shift_open_date done [17:28:23]produce_requested_data done [17:28:23]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165043,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [17:28:23]process_action_free close_receipt [17:28:23]json_value_free [17:28:23]json_value_free done [17:28:23]process_json_proto returns [17:28:23]Send response to host [17:28:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165043,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [17:28:23]free response buf [17:28:23]execute_script done [17:28:23]execute_script returns [17:28:23]free content buf [17:28:23]Sock 7.Close socket [17:28:23]Sock 7.Thread stoped [17:28:26]OFD Sender: No OFD packet to send [17:28:31]OFD Sender: No OFD packet to send [17:28:36]OFD Sender: No OFD packet to send [17:28:41]OFD Sender: No OFD packet to send [17:28:46]OFD Sender: No OFD packet to send [17:28:51]OFD Sender: No OFD packet to send [17:28:56]OFD Sender: No OFD packet to send [17:29:01]OFD Sender: No OFD packet to send [17:29:06]OFD Sender: No OFD packet to send [17:29:11]OFD Sender: No OFD packet to send [17:29:16]OFD Sender: No OFD packet to send [17:29:21]OFD Sender: No OFD packet to send [17:29:26]OFD Sender: No OFD packet to send [17:29:31]OFD Sender: No OFD packet to send [17:29:36]OFD Sender: No OFD packet to send [17:29:41]OFD Sender: No OFD packet to send [17:29:46]OFD Sender: No OFD packet to send [17:29:51]OFD Sender: No OFD packet to send [17:29:56]OFD Sender: No OFD packet to send [17:30:01]OFD Sender: No OFD packet to send [17:30:06]OFD Sender: No OFD packet to send [17:30:11]OFD Sender: No OFD packet to send [17:30:16]OFD Sender: No OFD packet to send [17:30:21]OFD Sender: No OFD packet to send [17:30:26]OFD Sender: No OFD packet to send [17:30:31]OFD Sender: No OFD packet to send [17:30:36]OFD Sender: No OFD packet to send [17:30:41]OFD Sender: No OFD packet to send [17:30:46]OFD Sender: No OFD packet to send [17:30:51]OFD Sender: No OFD packet to send [17:30:57]OFD Sender: No OFD packet to send [17:31:02]OFD Sender: No OFD packet to send [17:31:07]OFD Sender: No OFD packet to send [17:31:12]OFD Sender: No OFD packet to send [17:31:17]OFD Sender: No OFD packet to send [17:31:22]OFD Sender: No OFD packet to send [17:31:27]OFD Sender: No OFD packet to send [17:31:32]OFD Sender: No OFD packet to send [17:31:37]OFD Sender: No OFD packet to send [17:31:42]OFD Sender: No OFD packet to send [17:31:47]OFD Sender: No OFD packet to send [17:31:52]OFD Sender: No OFD packet to send [17:31:57]OFD Sender: No OFD packet to send [17:32:02]OFD Sender: No OFD packet to send [17:32:07]OFD Sender: No OFD packet to send [17:32:12]OFD Sender: No OFD packet to send [17:32:17]OFD Sender: No OFD packet to send [17:32:22]OFD Sender: No OFD packet to send [17:32:27]OFD Sender: No OFD packet to send [17:32:32]OFD Sender: No OFD packet to send [17:32:37]OFD Sender: No OFD packet to send [17:32:42]OFD Sender: No OFD packet to send [17:32:47]OFD Sender: No OFD packet to send [17:32:52]OFD Sender: No OFD packet to send [17:32:57]OFD Sender: No OFD packet to send [17:33:02]OFD Sender: No OFD packet to send [17:33:07]OFD Sender: No OFD packet to send [17:33:12]OFD Sender: No OFD packet to send [17:33:17]OFD Sender: No OFD packet to send [17:33:22]OFD Sender: No OFD packet to send [17:33:27]OFD Sender: No OFD packet to send [17:33:32]OFD Sender: No OFD packet to send [17:33:37]OFD Sender: No OFD packet to send [17:33:42]OFD Sender: No OFD packet to send [17:33:47]OFD Sender: No OFD packet to send [17:33:52]OFD Sender: No OFD packet to send [17:33:57]OFD Sender: No OFD packet to send [17:34:02]OFD Sender: No OFD packet to send [17:34:07]OFD Sender: No OFD packet to send [17:34:12]OFD Sender: No OFD packet to send [17:34:17]OFD Sender: No OFD packet to send [17:34:22]OFD Sender: No OFD packet to send [17:34:27]OFD Sender: No OFD packet to send [17:34:32]OFD Sender: No OFD packet to send [17:34:37]OFD Sender: No OFD packet to send [17:34:42]OFD Sender: No OFD packet to send [17:34:47]OFD Sender: No OFD packet to send [17:34:52]OFD Sender: No OFD packet to send [17:34:57]OFD Sender: No OFD packet to send [17:35:02]OFD Sender: No OFD packet to send [17:35:07]OFD Sender: No OFD packet to send [17:35:12]OFD Sender: No OFD packet to send [17:35:17]OFD Sender: No OFD packet to send [17:35:22]OFD Sender: No OFD packet to send [17:35:27]OFD Sender: No OFD packet to send [17:35:32]OFD Sender: No OFD packet to send [17:35:37]OFD Sender: No OFD packet to send [17:35:42]OFD Sender: No OFD packet to send [17:35:47]OFD Sender: No OFD packet to send [17:35:52]OFD Sender: No OFD packet to send [17:35:57]OFD Sender: No OFD packet to send [17:36:02]OFD Sender: No OFD packet to send [17:36:07]OFD Sender: No OFD packet to send [17:36:12]OFD Sender: No OFD packet to send [17:36:17]OFD Sender: No OFD packet to send [17:36:22]OFD Sender: No OFD packet to send [17:36:27]OFD Sender: No OFD packet to send [17:36:32]OFD Sender: No OFD packet to send [17:36:37]OFD Sender: No OFD packet to send [17:36:42]OFD Sender: No OFD packet to send [17:36:47]OFD Sender: No OFD packet to send [17:36:52]OFD Sender: No OFD packet to send [17:36:57]OFD Sender: No OFD packet to send [17:37:02]OFD Sender: No OFD packet to send [17:37:07]OFD Sender: No OFD packet to send [17:37:12]OFD Sender: No OFD packet to send [17:37:17]OFD Sender: No OFD packet to send [17:37:22]OFD Sender: No OFD packet to send [17:37:27]OFD Sender: No OFD packet to send [17:37:32]OFD Sender: No OFD packet to send [17:37:37]OFD Sender: No OFD packet to send [17:37:42]OFD Sender: No OFD packet to send [17:37:47]OFD Sender: No OFD packet to send [17:37:52]OFD Sender: No OFD packet to send [17:37:57]OFD Sender: No OFD packet to send [17:38:02]OFD Sender: No OFD packet to send [17:38:07]OFD Sender: No OFD packet to send [17:38:12]OFD Sender: No OFD packet to send [17:38:17]OFD Sender: No OFD packet to send [17:38:22]OFD Sender: No OFD packet to send [17:38:27]OFD Sender: No OFD packet to send [17:38:32]OFD Sender: No OFD packet to send [17:38:37]OFD Sender: No OFD packet to send [17:38:42]OFD Sender: No OFD packet to send [17:38:47]OFD Sender: No OFD packet to send [17:38:52]OFD Sender: No OFD packet to send [17:38:57]OFD Sender: No OFD packet to send [17:39:02]OFD Sender: No OFD packet to send [17:39:02]accept exits with 9 [17:39:02]New connection [17:39:02]New thread 3067526500 created [17:39:02]Thread 3067383140 joined [17:39:02]Waiting for new connection... [17:39:02] Sock 9.Parse request [17:39:02]Sock 9.Check first char [17:39:02]Sock 9.First char is OK [17:39:02]request: POST /json_proto HTTP/1.0 [17:39:02]Method: POST [17:39:02]URL: /json_proto [17:39:02]Method is POST - this is cgi request [17:39:02]url: /json_proto [17:39:02]query_string will be loaded in cgi processing [17:39:02]execute_cgi json_proto POST (null) [17:39:02]execute_cgi path=json_proto method=POST [17:39:02]POST find Content-Length [17:39:02]Host: 172.17.56.4:8080 [17:39:02]Content-Length: 640 [17:39:02]Content-Type: application/json [17:39:02] [17:39:02]POST finish read [17:39:02]Found Content-Length = 640 [17:39:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459145", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.000, "sum" : 658.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 658.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:39:02]execute_script... [17:39: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)459145", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.000, "sum" : 658.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 658.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:39:02]POST & json_proto [17:39:02]process_json_proto [17:39:02]json parsed OK: [17:39:02]protocol is kg_v1.0 [17:39:02]action value=close_receipt [17:39:02]process_action close_receipt [17:39:02]cmd_close_receipt [17:39:02]MH_GetDate [17:39:02]Write to MH i2c: F0 00 00 D8 01 C8 [17:39:02]Write i2c OK [17:39:02]MH_I2C_Read... [17:39:02]Read from MH i2c: F0 [17:39:02]MH_I2C_Read... [17:39:02]Read from MH i2c: F0 09 00 [17:39:02]MH_I2C_Read... [17:39:02]Read from MH i2c: F0 09 00 D8 01 00 36 0D 94 66 C9 DC B2 64 C9 [17:39:02]GetLastDocTimeStamp 1720978099 [17:39:02]current date 1720978742 [17:39:02]FM_GetShiftState [17:39:02]SAM_PROTO_GetShiftState [17:39:02]wFMCommunicate request_size=4 [17:39:02]MH_SAM_APDU [17:39:02]CAPDU: 80 13 01 00 [17:39:02]Write to MH i2c: E2 08 00 D9 01 80 13 01 00 00 00 00 00 57 [17:39:02]Write i2c OK [17:39:02]MH_I2C_Read... [17:39:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:02]Read from MH i2c: E2 [17:39:02]MH_I2C_Read... [17:39:02]Read from MH i2c: E2 0E 00 [17:39:02]MH_I2C_Read... [17:39:02]Read from MH i2c: E2 0E 00 D9 01 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 D7 [17:39:02]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [17:39:02]wFMCommunicate OK [17:39:02]SAM_PROTO_GetShiftState done [17:39:02]FM_GetShiftState done [17:39:02]opened in 1720917342 [17:39:02]opened+sec_in_day 1721003742 [17:39:02]quantity*price = 65800 [17:39:02]sum+1 = 65801 [17:39:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 658.00 НСП 1% : 5.82 НДС 12% : 69.88 Наличными: 658.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 242 14.07.2024 17:39 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165044 ФПД: 7295576943673 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T173902&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165044&fm=7295576943673&tin=02508201610067®Number=0000000000090829&sum=65800 [17:39:03]StoreToDocumentArchive [17:39:03]shift 447 fd 165044 [17:39:03]save to /storage/0447/doc_00165044 [17:39:03]save last doc name /storage/0447/doc_00165044 to /storage/kkm_last_doc_name [17:39:03]save OK [17:39:03]Clear old archive folders... [17:39:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:39:03]tlvbuf is 01F4FE50 [17:39:03]SAM_PROTO_ClearQueue [17:39:03]wFMCommunicate request_size=4 [17:39:03]MH_SAM_APDU [17:39:03]CAPDU: 80 09 00 00 [17:39:03]Write to MH i2c: E2 08 00 E6 01 80 09 00 00 00 00 00 00 59 [17:39:03]Write i2c OK [17:39:03]MH_I2C_Read... [17:39:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:39:03]Read from MH i2c: E2 [17:39:03]MH_I2C_Read... [17:39:03]Read from MH i2c: E2 03 00 [17:39:03]MH_I2C_Read... [17:39:03]Read from MH i2c: E2 03 00 E6 01 00 90 00 5B [17:39:03]RAPDU: 90 00 [17:39:03]wFMCommunicate OK [17:39:03]SAM_PROTO_ClearQueue done [17:39:03]KKMCreateOFDPacket [17:39:03]OFDProtocolAddRootSTLVToBuf [17:39:03]FM_MakeSignedData [17:39:03]FM_MakeSignedData [17:39:03]SAM_PROTO_SignData [17:39:03]wFMCommunicate request_size=4 [17:39:03]MH_SAM_APDU [17:39:03]CAPDU: 80 0D 01 02 [17:39:03]Write to MH i2c: E2 08 00 E7 01 80 0D 01 02 00 00 00 00 61 [17:39:03]Write i2c OK [17:39:03]MH_I2C_Read... [17:39:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:39:03]Read from MH i2c: E2 [17:39:03]MH_I2C_Read... [17:39:03]Read from MH i2c: E2 03 00 [17:39:03]MH_I2C_Read... [17:39:03]Read from MH i2c: E2 03 00 E7 01 00 90 00 5C [17:39:03]RAPDU: 90 00 [17:39:03]wFMCommunicate OK [17:39:03]wFMCommunicate request_size=255 [17:39:03]MH_SAM_APDU [17:39:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 36 0D 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B4 84 02 00 35 04 06 00 06 [17:39:03]Write to MH i2c: E2 02 01 E8 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 36 0D 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B4 84 02 00 35 04 06 00 06 00 00 71 [17:39:03]Write i2c OK [17:39:03]MH_I2C_Read... [17:39:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:04]Read from MH i2c: E2 [17:39:04]MH_I2C_Read... [17:39:04]Read from MH i2c: E2 03 00 [17:39:04]MH_I2C_Read... [17:39:04]Read from MH i2c: E2 03 00 E8 01 00 90 00 5D [17:39:04]RAPDU: 90 00 [17:39:04]wFMCommunicate OK [17:39:04]wFMCommunicate request_size=10 [17:39:04]MH_SAM_APDU [17:39:04]CAPDU: 80 0D 02 02 05 A2 A2 45 AC 39 [17:39:04]Write to MH i2c: E2 0D 00 E9 01 80 0D 02 02 05 00 A2 A2 45 AC 39 00 00 DC [17:39:04]Write i2c OK [17:39:04]MH_I2C_Read... [17:39:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:04]Read from MH i2c: E2 [17:39:04]MH_I2C_Read... [17:39:04]Read from MH i2c: E2 03 00 [17:39:04]MH_I2C_Read... [17:39:04]Read from MH i2c: E2 03 00 E9 01 00 90 00 5E [17:39:04]RAPDU: 90 00 [17:39:04]wFMCommunicate OK [17:39:04]wFMCommunicate request_size=4 [17:39:04]MH_SAM_APDU [17:39:04]CAPDU: 80 0D 03 02 [17:39:04]Write to MH i2c: E2 08 00 EA 01 80 0D 03 02 00 00 00 00 66 [17:39:04]Write i2c OK [17:39:04]MH_I2C_Read... [17:39:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:39:04]Read from MH i2c: E2 [17:39:04]MH_I2C_Read... [17:39:04]Read from MH i2c: E2 0B 00 [17:39:04]MH_I2C_Read... [17:39:04]Read from MH i2c: E2 0B 00 EA 01 00 1E CD 78 D1 5D 27 AC EE 90 00 B9 [17:39:04]RAPDU: 1E CD 78 D1 5D 27 AC EE 90 00 [17:39:04]wFMCommunicate OK [17:39:04]SAM_PROTO_SignData done [17:39:04]FM_MakeSignedData done [17:39:04]CreateOFDProtocolMessage [17:39:04]wFMCommunicate request_size=4 [17:39:04]MH_SAM_APDU [17:39:04]CAPDU: 80 11 00 00 [17:39:04]Write to MH i2c: E2 08 00 EB 01 80 11 00 00 00 00 00 00 66 [17:39:04]Write i2c OK [17:39:04]MH_I2C_Read... [17:39:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:04]Read from MH i2c: E2 [17:39:04]MH_I2C_Read... [17:39:04]Read from MH i2c: E2 17 00 [17:39:04]MH_I2C_Read... [17:39:04]Read from MH i2c: E2 17 00 EB 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 BC [17:39:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:39:04]wFMCommunicate OK [17:39:04]CreateOFDProtocolMessage done [17:39:04]OFDSenderStorePacket 165044 [17:39:04]StoreOFDPacket docnum=165044 [17:39:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 14 48 07 01 29 D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 36 0D 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B4 84 02 00 35 04 06 00 06 A2 A2 45 AC 39 1E CD 78 D1 5D 27 AC EE [17:39:04]CheckFolder [17:39:04]dirname=/storage/ofd_packets [17:39:04]CheckFolder done [17:39:04]ProducePacketName [17:39:04]name=ofd_packets/00165044 [17:39:04]NVStorageSaveData ofd_packets/00165044 [17:39:04]File name is /storage/ofd_packets/00165044 [17:39:04]Write 301 bytes [17:39:04]NVStorageSaveData done [17:39:04]OFDSenderStorePacket done [17:39:04]KKMCreateOFDPacket done [17:39:04]NVStorageSaveData kkm_last_timestamp [17:39:04]File name is /storage/kkm_last_timestamp [17:39:04]Write 4 bytes [17:39:04]NVStorageSaveData done [17:39:04]ExternCall_PrintAddStr [17:39:04]wPrintStart [17:39:04]Write to MH i2c: 01 00 00 EC 01 ED [17:39:04]Write i2c OK [17:39:04]MH_I2C_Read... [17:39:04]Read from MH i2c: 01 [17:39:04]MH_I2C_Read... [17:39:04]Read from MH i2c: 01 07 00 [17:39:04]MH_I2C_Read... [17:39:04]Read from MH i2c: 01 07 00 EC 01 00 00 00 00 00 FF 0F 02 [17:39:04]RasterBufferAndPrint [17:39:04]line Счет N : (1)459145 [17:39:04]line ИНН: 02508201610067 [17:39:04]line Контрольно-Кассовый Чек [17:39:04]line ПРОДАЖА [17:39:04]line ТРК (МРК, ГНК) : 12 [17:39:04]line Товар: 2710124130 [17:39:04]line Аи-92-К-5 [17:39:04]line 10.000 * 65.80 [17:39:04]line = 658.00 [17:39:04]line НДС 12% НСП 1% [17:39:04]line > о реализуемом товаре [17:39:04]line ИТОГО: 658.00 [17:39:04]line НСП 1% : 5.82 [17:39:04]line НДС 12% : 69.88 [17:39:04]line Наличными: 658.00 [17:39:04]line Безнал.: 0.00 [17:39:04]line Место: АЗС № 72 "Партнер Нефть" [17:39:04]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [17:39:04]line СНО: Общий режим [17:39:04]line Чек 242 14.07.2024 17:39 [17:39:04]line Смена: 447 ФФД: 1.0 [17:39:04]line ЗНМ: 0300000160 [17:39:04]line РНМ: 0000000000090829 [17:39:04]line Версия ККМ: 001 [17:39:04]line ФМ: 0000000000874718 [17:39:04]line ФД: 165044 [17:39:04]line ФПД: 7295576943673 [17:39:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T173902&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165044&fm=7295576943673&tin=02508201610067®Number=0000000000090829&sum=65800 [17:39:04]written 0, free lines is 4095 [17:39:04]OFD Sender: Processing packet 165044 [packets to send 105, broken 104] [17:39:04]ProducePacketName [17:39:04]name=ofd_packets/00165044 [17:39:04]OFD Sender: To server: pG, [17:39:04]CommunicateWithHost lk.salyk.kg:30040 [17:39:04]ConnectInit lk.salyk.kg [17:39:04]Connected sock=10 [17:39:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 14 48 07 01 29 D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 36 0D 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B4 84 02 00 35 04 06 00 06 A2 A2 45 AC 39 1E CD 78 D1 5D 27 AC EE [17:39:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 41 F9 47 00 89 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B4 84 02 00 F4 03 04 00 C3 B3 93 66 B6 04 01 00 00 AA 45 0D D8 17 25 D9 BD [17:39:04]CommunicateWithHost err = 0 [17:39:04]CheckOFDResponse [17:39:04]1017 (14) - 77093643461234 [17:39:04]1041 (16) - 0000000000874718 [17:39:04]1040 (4) - 165044 [17:39:04]1012 (4) - 14.07.2024 11:17 [17:39:04]1206 (1) - 0 [17:39:04]OFD Sender: Remove packet 165044 [17:39:04]ProducePacketName [17:39:04]name=ofd_packets/00165044 [17:39:04]NVStorageDeleteData [17:39:05]Write to MH i2c: 01 00 00 13 02 15 [17:39:05]Write i2c OK [17:39:05]MH_I2C_Read... [17:39:05]Read from MH i2c: 01 [17:39:05]MH_I2C_Read... [17:39:05]Read from MH i2c: 01 07 00 [17:39:05]MH_I2C_Read... [17:39:05]Read from MH i2c: 01 07 00 13 02 00 00 00 00 00 23 0D 4C [17:39:05]RasterBufferAndPrint [17:39:05]line [17:39:05]line [17:39:05]line [17:39:05]line [17:39:05]line [17:39:05]written 0, free lines is 3370 [17:39:05]MH_Cut [17:39:05]Write to MH i2c: D1 01 00 1A 02 01 EE [17:39:05]Write i2c OK [17:39:05]MH_I2C_Read... [17:39:05]Read from MH i2c: D1 [17:39:05]MH_I2C_Read... [17:39:05]Read from MH i2c: D1 01 00 [17:39:05]MH_I2C_Read... [17:39:05]Read from MH i2c: D1 01 00 1A 02 00 ED [17:39:05]Write to MH i2c: 01 00 00 1B 02 1D [17:39:05]Write i2c OK [17:39:05]MH_I2C_Read... [17:39:05]OFD Sender: No OFD packet to send [17:39:05]*** Cut start [17:39:05]*** Partial cut [17:39:05]*** CUTSNS_PIN = 1 [17:39:05]*** CUTSNS_PIN = 0 [17:39:05]*** Brake cut motor [17:39:06]Read from MH i2c: 01 [17:39:06]MH_I2C_Read... [17:39:06]*** Stop cut motor [17:39:06]*** Cut end [17:39:06]Read from MH i2c: 01 07 00 [17:39:06]MH_I2C_Read... [17:39:06]Read from MH i2c: 01 07 00 1B 02 00 00 00 00 00 FF 0F 32 [17:39:06]process_action close_receipt done [17:39:06]requested_data is exist [17:39:06]produce_requested_data [17:39:06]requested_item fm.sn is exist - process it [17:39:06]wFMCommunicate request_size=4 [17:39:06]MH_SAM_APDU [17:39:06]CAPDU: 80 11 00 00 [17:39:06]Write to MH i2c: E2 08 00 1C 02 80 11 00 00 00 00 00 00 98 [17:39:06]Write i2c OK [17:39:06]MH_I2C_Read... [17:39:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:06]Read from MH i2c: E2 [17:39:06]MH_I2C_Read... [17:39:06]Read from MH i2c: E2 17 00 [17:39:06]MH_I2C_Read... [17:39:06]Read from MH i2c: E2 17 00 1C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 EE [17:39:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:39:06]wFMCommunicate OK [17:39:06]requested_item fd.num is exist - process it [17:39:06]SAM_PROTO_GetFieldsCounters [17:39:06]wFMCommunicate request_size=4 [17:39:06]MH_SAM_APDU [17:39:06]CAPDU: 80 13 00 00 [17:39:06]Write to MH i2c: E2 08 00 1D 02 80 13 00 00 00 00 00 00 9B [17:39:06]Write i2c OK [17:39:06]MH_I2C_Read... [17:39:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:39:06]Read from MH i2c: E2 [17:39:06]MH_I2C_Read... [17:39:06]Read from MH i2c: E2 62 00 [17:39:06]MH_I2C_Read... [17:39:06]Read from MH i2c: E2 62 00 1D 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B4 84 02 00 0E 04 04 00 BF 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 92 [17:39:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B4 84 02 00 0E 04 04 00 BF 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 [17:39:06]wFMCommunicate OK [17:39:06]SAM_PROTO_GetFieldsCounters done [17:39:06]requested_item shift.num is exist - process it [17:39:06]requested_item shift.opened is exist - process it [17:39:06]req_shift_opened [17:39:06]FM_GetShiftState [17:39:06]SAM_PROTO_GetShiftState [17:39:06]wFMCommunicate request_size=4 [17:39:06]MH_SAM_APDU [17:39:06]CAPDU: 80 13 01 00 [17:39:06]Write to MH i2c: E2 08 00 1E 02 80 13 01 00 00 00 00 00 9D [17:39:06]Write i2c OK [17:39:06]MH_I2C_Read... [17:39:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:06]Read from MH i2c: E2 [17:39:06]MH_I2C_Read... [17:39:06]Read from MH i2c: E2 0E 00 [17:39:06]MH_I2C_Read... [17:39:06]Read from MH i2c: E2 0E 00 1E 02 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 1D [17:39:06]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [17:39:06]wFMCommunicate OK [17:39:06]SAM_PROTO_GetShiftState done [17:39:06]FM_GetShiftState done [17:39:06]req_shift_opened done [17:39:06]requested_item shift.open_date is exist - process it [17:39:06]req_shift_open_date [17:39:06]req_shift_open_date done [17:39:06]produce_requested_data done [17:39:06]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165044,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [17:39:06]process_action_free close_receipt [17:39:06]json_value_free [17:39:06]json_value_free done [17:39:06]process_json_proto returns [17:39:06]Send response to host [17:39:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165044,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [17:39:06]free response buf [17:39:06]execute_script done [17:39:06]execute_script returns [17:39:06]free content buf [17:39:06]Sock 9.Close socket [17:39:06]Sock 9.Thread stoped [17:39:10]OFD Sender: No OFD packet to send [17:39:15]OFD Sender: No OFD packet to send [17:39:20]OFD Sender: No OFD packet to send [17:39:25]OFD Sender: No OFD packet to send [17:39:28]accept exits with 7 [17:39:28]New connection [17:39:28]New thread 3067383140 created [17:39:28]Thread 3067526500 joined [17:39:28]Waiting for new connection... [17:39:28] Sock 7.Parse request [17:39:28]Sock 7.Check first char [17:39:28]Sock 7.First char is OK [17:39:28]request: POST /json_proto HTTP/1.0 [17:39:28]Method: POST [17:39:28]URL: /json_proto [17:39:28]Method is POST - this is cgi request [17:39:28]url: /json_proto [17:39:28]query_string will be loaded in cgi processing [17:39:28]execute_cgi json_proto POST (null) [17:39:28]execute_cgi path=json_proto method=POST [17:39:28]POST find Content-Length [17:39:28]Host: 172.17.56.4:8080 [17:39:28]Content-Length: 677 [17:39:28]Content-Type: application/json [17:39:28] [17:39:28]POST finish read [17:39:28]Found Content-Length = 677 [17:39:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459146", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:39:28]execute_script... [17:39: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)459146", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:39:28]POST & json_proto [17:39:28]process_json_proto [17:39:28]json parsed OK: [17:39:28]protocol is kg_v1.0 [17:39:28]action value=close_receipt [17:39:28]process_action close_receipt [17:39:28]cmd_close_receipt [17:39:28]MH_GetDate [17:39:28]Write to MH i2c: F0 00 00 1F 02 10 [17:39:28]Write i2c OK [17:39:28]MH_I2C_Read... [17:39:28]Read from MH i2c: F0 [17:39:28]MH_I2C_Read... [17:39:28]Read from MH i2c: F0 09 00 [17:39:28]MH_I2C_Read... [17:39:28]Read from MH i2c: F0 09 00 1F 02 00 50 0D 94 66 C9 DC B2 64 2B [17:39:28]GetLastDocTimeStamp 1720978742 [17:39:28]current date 1720978768 [17:39:28]FM_GetShiftState [17:39:28]SAM_PROTO_GetShiftState [17:39:28]wFMCommunicate request_size=4 [17:39:28]MH_SAM_APDU [17:39:28]CAPDU: 80 13 01 00 [17:39:28]Write to MH i2c: E2 08 00 20 02 80 13 01 00 00 00 00 00 9F [17:39:28]Write i2c OK [17:39:28]MH_I2C_Read... [17:39:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:28]Read from MH i2c: E2 [17:39:28]MH_I2C_Read... [17:39:28]Read from MH i2c: E2 0E 00 [17:39:28]MH_I2C_Read... [17:39:28]Read from MH i2c: E2 0E 00 20 02 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 1F [17:39:28]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [17:39:28]wFMCommunicate OK [17:39:28]SAM_PROTO_GetShiftState done [17:39:28]FM_GetShiftState done [17:39:28]opened in 1720917342 [17:39:28]opened+sec_in_day 1721003742 [17:39:28]quantity*price = 20003 [17:39:28]sum+1 = 20004 [17:39:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 243 14.07.2024 17:39 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165045 ФПД: 257259778957025 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T173928&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165045&fm=257259778957025&tin=02508201610067®Number=0000000000090829&sum=20000 [17:39:29]StoreToDocumentArchive [17:39:29]shift 447 fd 165045 [17:39:29]save to /storage/0447/doc_00165045 [17:39:29]save last doc name /storage/0447/doc_00165045 to /storage/kkm_last_doc_name [17:39:29]save OK [17:39:29]Clear old archive folders... [17:39:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:39:29]tlvbuf is 01F45EF0 [17:39:29]SAM_PROTO_ClearQueue [17:39:29]wFMCommunicate request_size=4 [17:39:29]MH_SAM_APDU [17:39:29]CAPDU: 80 09 00 00 [17:39:29]Write to MH i2c: E2 08 00 2D 02 80 09 00 00 00 00 00 00 A1 [17:39:29]Write i2c OK [17:39:29]MH_I2C_Read... [17:39:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:39:29]Read from MH i2c: E2 [17:39:29]MH_I2C_Read... [17:39:29]Read from MH i2c: E2 03 00 [17:39:29]MH_I2C_Read... [17:39:29]Read from MH i2c: E2 03 00 2D 02 00 90 00 A3 [17:39:29]RAPDU: 90 00 [17:39:29]wFMCommunicate OK [17:39:29]SAM_PROTO_ClearQueue done [17:39:29]KKMCreateOFDPacket [17:39:29]OFDProtocolAddRootSTLVToBuf [17:39:29]FM_MakeSignedData [17:39:29]FM_MakeSignedData [17:39:29]SAM_PROTO_SignData [17:39:29]wFMCommunicate request_size=4 [17:39:29]MH_SAM_APDU [17:39:29]CAPDU: 80 0D 01 02 [17:39:29]Write to MH i2c: E2 08 00 2E 02 80 0D 01 02 00 00 00 00 A9 [17:39:29]Write i2c OK [17:39:29]MH_I2C_Read... [17:39:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:39:29]Read from MH i2c: E2 [17:39:29]MH_I2C_Read... [17:39:29]Read from MH i2c: E2 03 00 [17:39:29]MH_I2C_Read... [17:39:29]Read from MH i2c: E2 03 00 2E 02 00 90 00 A4 [17:39:29]RAPDU: 90 00 [17:39:29]wFMCommunicate OK [17:39:29]wFMCommunicate request_size=255 [17:39:29]MH_SAM_APDU [17:39:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 F3 00 00 00 F4 03 04 00 50 0D 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B5 84 02 00 35 04 06 00 E9 [17:39:29]Write to MH i2c: E2 02 01 2F 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 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 F3 00 00 00 F4 03 04 00 50 0D 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B5 84 02 00 35 04 06 00 E9 00 00 F1 [17:39:29]Write i2c OK [17:39:29]MH_I2C_Read... [17:39:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:29]Read from MH i2c: E2 [17:39:29]MH_I2C_Read... [17:39:29]Read from MH i2c: E2 03 00 [17:39:29]MH_I2C_Read... [17:39:29]Read from MH i2c: E2 03 00 2F 02 00 90 00 A5 [17:39:29]RAPDU: 90 00 [17:39:29]wFMCommunicate OK [17:39:29]wFMCommunicate request_size=10 [17:39:29]MH_SAM_APDU [17:39:29]CAPDU: 80 0D 02 02 05 F9 F5 BD 5E E1 [17:39:29]Write to MH i2c: E2 0D 00 30 02 80 0D 02 02 05 00 F9 F5 BD 5E E1 00 00 A0 [17:39:29]Write i2c OK [17:39:29]MH_I2C_Read... [17:39:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:29]Read from MH i2c: E2 [17:39:29]MH_I2C_Read... [17:39:29]Read from MH i2c: E2 03 00 [17:39:29]MH_I2C_Read... [17:39:29]Read from MH i2c: E2 03 00 30 02 00 90 00 A6 [17:39:29]RAPDU: 90 00 [17:39:29]wFMCommunicate OK [17:39:29]wFMCommunicate request_size=4 [17:39:29]MH_SAM_APDU [17:39:29]CAPDU: 80 0D 03 02 [17:39:29]Write to MH i2c: E2 08 00 31 02 80 0D 03 02 00 00 00 00 AE [17:39:29]Write i2c OK [17:39:29]MH_I2C_Read... [17:39:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:39:29]Read from MH i2c: E2 [17:39:29]MH_I2C_Read... [17:39:29]Read from MH i2c: E2 0B 00 [17:39:29]MH_I2C_Read... [17:39:29]Read from MH i2c: E2 0B 00 31 02 00 FF 33 F7 9E 55 71 0F A1 90 00 EC [17:39:29]RAPDU: FF 33 F7 9E 55 71 0F A1 90 00 [17:39:29]wFMCommunicate OK [17:39:29]SAM_PROTO_SignData done [17:39:29]FM_MakeSignedData done [17:39:29]CreateOFDProtocolMessage [17:39:29]wFMCommunicate request_size=4 [17:39:29]MH_SAM_APDU [17:39:29]CAPDU: 80 11 00 00 [17:39:29]Write to MH i2c: E2 08 00 32 02 80 11 00 00 00 00 00 00 AE [17:39:29]Write i2c OK [17:39:29]MH_I2C_Read... [17:39:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:29]Read from MH i2c: E2 [17:39:29]MH_I2C_Read... [17:39:29]Read from MH i2c: E2 17 00 [17:39:29]MH_I2C_Read... [17:39:29]Read from MH i2c: E2 17 00 32 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 04 [17:39:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:39:29]wFMCommunicate OK [17:39:29]CreateOFDProtocolMessage done [17:39:29]OFDSenderStorePacket 165045 [17:39:29]StoreOFDPacket docnum=165045 [17:39:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 EA B9 07 01 C5 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 F3 00 00 00 F4 03 04 00 50 0D 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B5 84 02 00 35 04 06 00 E9 F9 F5 BD 5E E1 FF 33 F7 9E 55 71 0F A1 [17:39:29]CheckFolder [17:39:29]dirname=/storage/ofd_packets [17:39:29]CheckFolder done [17:39:29]ProducePacketName [17:39:29]name=ofd_packets/00165045 [17:39:29]NVStorageSaveData ofd_packets/00165045 [17:39:29]File name is /storage/ofd_packets/00165045 [17:39:29]Write 301 bytes [17:39:29]NVStorageSaveData done [17:39:29]OFDSenderStorePacket done [17:39:29]KKMCreateOFDPacket done [17:39:29]NVStorageSaveData kkm_last_timestamp [17:39:29]File name is /storage/kkm_last_timestamp [17:39:29]Write 4 bytes [17:39:29]NVStorageSaveData done [17:39:29]OFD Sender: Processing packet 165045 [packets to send 105, broken 104] [17:39:29]ProducePacketName [17:39:29]name=ofd_packets/00165045 [17:39:29]OFD Sender: To server: pG, [17:39:29]CommunicateWithHost lk.salyk.kg:30040 [17:39:29]ConnectInit lk.salyk.kg [17:39:29]ExternCall_PrintAddStr [17:39:29]wPrintStart [17:39:29]Write to MH i2c: 01 00 00 33 02 35 [17:39:29]Write i2c OK [17:39:29]MH_I2C_Read... [17:39:29]Read from MH i2c: 01 [17:39:29]MH_I2C_Read... [17:39:29]Read from MH i2c: 01 07 00 [17:39:29]MH_I2C_Read... [17:39:29]Read from MH i2c: 01 07 00 33 02 00 00 00 00 00 FF 0F 4A [17:39:29]RasterBufferAndPrint [17:39:29]line Счет N : (1)459146 [17:39:29]line ИНН: 02508201610067 [17:39:29]line Контрольно-Кассовый Чек [17:39:29]line ПРОДАЖА [17:39:29]line ТРК (МРК, ГНК) : 22 [17:39:29]line Товар: 2710124130 [17:39:29]line Аи-92-К-5 [17:39:29]line 3.040 * 65.80 [17:39:29]line = 200.03 [17:39:29]line НДС 12% НСП 1% [17:39:29]line > о реализуемом товаре [17:39:29]line ОКРУГЛЕНИЕ: -0.03 [17:39:29]line ИТОГО: 200.00 [17:39:29]line Внесено: 200.00 [17:39:29]line СДАЧА: 0.00 [17:39:29]line НСП 1% : 1.77 [17:39:29]line НДС 12% : 21.24 [17:39:29]line Наличными: 200.00 [17:39:29]line Безнал.: 0.00 [17:39:29]line Место: АЗС № 72 "Партнер Нефть" [17:39:29]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [17:39:29]line СНО: Общий режим [17:39:29]line Чек 243 14.07.2024 17:39 [17:39:29]line Смена: 447 ФФД: 1.0 [17:39:29]line ЗНМ: 0300000160 [17:39:29]line РНМ: 0000000000090829 [17:39:29]line Версия ККМ: 001 [17:39:29]line ФМ: 0000000000874718 [17:39:29]line ФД: 165045 [17:39:29]line ФПД: 257259778957025 [17:39:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T173928&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165045&fm=257259778957025&tin=02508201610067®Number=0000000000090829&sum=20000 [17:39:30]Connected sock=11 [17:39:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 EA B9 07 01 C5 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 F3 00 00 00 F4 03 04 00 50 0D 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B5 84 02 00 35 04 06 00 E9 F9 F5 BD 5E E1 FF 33 F7 9E 55 71 0F A1 [17:39:30]written 0, free lines is 4095 [17:39:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 C1 0D 47 00 33 B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B5 84 02 00 F4 03 04 00 DD B3 93 66 B6 04 01 00 00 64 1E CD 77 B8 61 46 55 [17:39:30]CommunicateWithHost err = 0 [17:39:30]CheckOFDResponse [17:39:30]1017 (14) - 77093643461234 [17:39:30]1041 (16) - 0000000000874718 [17:39:30]1040 (4) - 165045 [17:39:30]1012 (4) - 14.07.2024 11:17 [17:39:30]1206 (1) - 0 [17:39:30]OFD Sender: Remove packet 165045 [17:39:30]ProducePacketName [17:39:30]name=ofd_packets/00165045 [17:39:30]NVStorageDeleteData [17:39:30]Write to MH i2c: 01 00 00 5D 02 5F [17:39:30]Write i2c OK [17:39:30]MH_I2C_Read... [17:39:30]Read from MH i2c: 01 [17:39:30]MH_I2C_Read... [17:39:30]Read from MH i2c: 01 07 00 [17:39:30]MH_I2C_Read... [17:39:30]Read from MH i2c: 01 07 00 5D 02 00 00 00 00 00 F2 0C 64 [17:39:30]RasterBufferAndPrint [17:39:30]line [17:39:30]line [17:39:30]line [17:39:30]line [17:39:30]line [17:39:30]written 0, free lines is 3320 [17:39:30]MH_Cut [17:39:30]Write to MH i2c: D1 01 00 64 02 01 38 [17:39:30]Write i2c OK [17:39:30]MH_I2C_Read... [17:39:30]Read from MH i2c: D1 [17:39:30]MH_I2C_Read... [17:39:30]Read from MH i2c: D1 01 00 [17:39:30]MH_I2C_Read... [17:39:30]Read from MH i2c: D1 01 00 64 02 00 37 [17:39:30]Write to MH i2c: 01 00 00 65 02 67 [17:39:30]Write i2c OK [17:39:30]MH_I2C_Read... [17:39:30]OFD Sender: No OFD packet to send [17:39:31]*** Cut start [17:39:31]*** Partial cut [17:39:31]*** CUTSNS_PIN = 1 [17:39:31]*** CUTSNS_PIN = 0 [17:39:31]*** Brake cut motor [17:39:31]Read from MH i2c: 01 [17:39:31]MH_I2C_Read... [17:39:31]*** Stop cut motor [17:39:31]*** Cut end [17:39:31]Read from MH i2c: 01 07 00 [17:39:31]MH_I2C_Read... [17:39:31]Read from MH i2c: 01 07 00 65 02 00 00 00 00 00 FF 0F 7C [17:39:31]process_action close_receipt done [17:39:31]requested_data is exist [17:39:31]produce_requested_data [17:39:31]requested_item fm.sn is exist - process it [17:39:31]wFMCommunicate request_size=4 [17:39:31]MH_SAM_APDU [17:39:31]CAPDU: 80 11 00 00 [17:39:31]Write to MH i2c: E2 08 00 66 02 80 11 00 00 00 00 00 00 E2 [17:39:31]Write i2c OK [17:39:31]MH_I2C_Read... [17:39:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:31]Read from MH i2c: E2 [17:39:31]MH_I2C_Read... [17:39:31]Read from MH i2c: E2 17 00 [17:39:31]MH_I2C_Read... [17:39:31]Read from MH i2c: E2 17 00 66 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 38 [17:39:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:39:31]wFMCommunicate OK [17:39:31]requested_item fd.num is exist - process it [17:39:31]SAM_PROTO_GetFieldsCounters [17:39:31]wFMCommunicate request_size=4 [17:39:31]MH_SAM_APDU [17:39:31]CAPDU: 80 13 00 00 [17:39:31]Write to MH i2c: E2 08 00 67 02 80 13 00 00 00 00 00 00 E5 [17:39:31]Write i2c OK [17:39:31]MH_I2C_Read... [17:39:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:39:31]Read from MH i2c: E2 [17:39:31]MH_I2C_Read... [17:39:31]Read from MH i2c: E2 62 00 [17:39:31]MH_I2C_Read... [17:39:32]Read from MH i2c: E2 62 00 67 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B5 84 02 00 0E 04 04 00 BF 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 E0 [17:39:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B5 84 02 00 0E 04 04 00 BF 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 [17:39:32]wFMCommunicate OK [17:39:32]SAM_PROTO_GetFieldsCounters done [17:39:32]requested_item shift.num is exist - process it [17:39:32]requested_item shift.opened is exist - process it [17:39:32]req_shift_opened [17:39:32]FM_GetShiftState [17:39:32]SAM_PROTO_GetShiftState [17:39:32]wFMCommunicate request_size=4 [17:39:32]MH_SAM_APDU [17:39:32]CAPDU: 80 13 01 00 [17:39:32]Write to MH i2c: E2 08 00 68 02 80 13 01 00 00 00 00 00 E7 [17:39:32]Write i2c OK [17:39:32]MH_I2C_Read... [17:39:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:32]Read from MH i2c: E2 [17:39:32]MH_I2C_Read... [17:39:32]Read from MH i2c: E2 0E 00 [17:39:32]MH_I2C_Read... [17:39:32]Read from MH i2c: E2 0E 00 68 02 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 67 [17:39:32]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [17:39:32]wFMCommunicate OK [17:39:32]SAM_PROTO_GetShiftState done [17:39:32]FM_GetShiftState done [17:39:32]req_shift_opened done [17:39:32]requested_item shift.open_date is exist - process it [17:39:32]req_shift_open_date [17:39:32]req_shift_open_date done [17:39:32]produce_requested_data done [17:39:32]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165045,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [17:39:32]process_action_free close_receipt [17:39:32]json_value_free [17:39:32]json_value_free done [17:39:32]process_json_proto returns [17:39:32]Send response to host [17:39:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165045,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [17:39:32]free response buf [17:39:32]execute_script done [17:39:32]execute_script returns [17:39:32]free content buf [17:39:32]Sock 7.Close socket [17:39:32]Sock 7.Thread stoped [17:39:35]OFD Sender: No OFD packet to send [17:39:40]OFD Sender: No OFD packet to send [17:39:45]OFD Sender: No OFD packet to send [17:39:50]OFD Sender: No OFD packet to send [17:39:55]OFD Sender: No OFD packet to send [17:40:00]OFD Sender: No OFD packet to send [17:40:05]OFD Sender: No OFD packet to send [17:40:10]OFD Sender: No OFD packet to send [17:40:15]OFD Sender: No OFD packet to send [17:40:20]OFD Sender: No OFD packet to send [17:40:25]OFD Sender: No OFD packet to send [17:40:30]OFD Sender: No OFD packet to send [17:40:35]OFD Sender: No OFD packet to send [17:40:40]OFD Sender: No OFD packet to send [17:40:45]OFD Sender: No OFD packet to send [17:40:50]OFD Sender: No OFD packet to send [17:40:55]OFD Sender: No OFD packet to send [17:41:00]OFD Sender: No OFD packet to send [17:41:05]OFD Sender: No OFD packet to send [17:41:10]OFD Sender: No OFD packet to send [17:41:15]OFD Sender: No OFD packet to send [17:41:20]accept exits with 9 [17:41:20]New connection [17:41:20]New thread 3067526500 created [17:41:20]Thread 3067383140 joined [17:41:20]Waiting for new connection... [17:41:20] Sock 9.Parse request [17:41:20]Sock 9.Check first char [17:41:20]Sock 9.First char is OK [17:41:20]request: POST /json_proto HTTP/1.0 [17:41:20]Method: POST [17:41:20]URL: /json_proto [17:41:20]Method is POST - this is cgi request [17:41:20]url: /json_proto [17:41:20]query_string will be loaded in cgi processing [17:41:20]execute_cgi json_proto POST (null) [17:41:20]execute_cgi path=json_proto method=POST [17:41:20]POST find Content-Length [17:41:20]Host: 172.17.56.4:8080 [17:41:20]Content-Length: 678 [17:41:20]Content-Type: application/json [17:41:20] [17:41:20]POST finish read [17:41:20]Found Content-Length = 678 [17:41:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459147", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "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:41:20]execute_script... [17:41: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)459147", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "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:41:20]POST & json_proto [17:41:20]process_json_proto [17:41:20]json parsed OK: [17:41:20]protocol is kg_v1.0 [17:41:20]action value=close_receipt [17:41:20]process_action close_receipt [17:41:20]cmd_close_receipt [17:41:20]MH_GetDate [17:41:20]Write to MH i2c: F0 00 00 69 02 5A [17:41:20]Write i2c OK [17:41:20]MH_I2C_Read... [17:41:20]Read from MH i2c: F0 [17:41:20]MH_I2C_Read... [17:41:20]Read from MH i2c: F0 09 00 [17:41:20]MH_I2C_Read... [17:41:20]Read from MH i2c: F0 09 00 69 02 00 C0 0D 94 66 C9 DC B2 64 E5 [17:41:20]GetLastDocTimeStamp 1720978768 [17:41:20]current date 1720978880 [17:41:20]FM_GetShiftState [17:41:20]SAM_PROTO_GetShiftState [17:41:20]wFMCommunicate request_size=4 [17:41:20]MH_SAM_APDU [17:41:20]CAPDU: 80 13 01 00 [17:41:20]Write to MH i2c: E2 08 00 6A 02 80 13 01 00 00 00 00 00 E9 [17:41:20]Write i2c OK [17:41:20]MH_I2C_Read... [17:41:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:41:20]Read from MH i2c: E2 [17:41:20]MH_I2C_Read... [17:41:20]Read from MH i2c: E2 0E 00 [17:41:20]MH_I2C_Read... [17:41:20]Read from MH i2c: E2 0E 00 6A 02 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 69 [17:41:20]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [17:41:20]wFMCommunicate OK [17:41:20]SAM_PROTO_GetShiftState done [17:41:20]FM_GetShiftState done [17:41:20]opened in 1720917342 [17:41:20]opened+sec_in_day 1721003742 [17:41:20]quantity*price = 70011 [17:41:20]sum+1 = 70012 [17:41:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 244 14.07.2024 17:41 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165046 ФПД: 196918624677314 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T174120&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165046&fm=196918624677314&tin=02508201610067®Number=0000000000090829&sum=70000 [17:41:21]StoreToDocumentArchive [17:41:21]shift 447 fd 165046 [17:41:21]save to /storage/0447/doc_00165046 [17:41:21]save last doc name /storage/0447/doc_00165046 to /storage/kkm_last_doc_name [17:41:21]save OK [17:41:21]Clear old archive folders... [17:41:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:41:21]tlvbuf is 01F49AD0 [17:41:21]SAM_PROTO_ClearQueue [17:41:21]wFMCommunicate request_size=4 [17:41:21]MH_SAM_APDU [17:41:21]CAPDU: 80 09 00 00 [17:41:21]Write to MH i2c: E2 08 00 77 02 80 09 00 00 00 00 00 00 EB [17:41:21]Write i2c OK [17:41:21]MH_I2C_Read... [17:41:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:41:21]Read from MH i2c: E2 [17:41:21]MH_I2C_Read... [17:41:21]Read from MH i2c: E2 03 00 [17:41:21]MH_I2C_Read... [17:41:21]Read from MH i2c: E2 03 00 77 02 00 90 00 ED [17:41:21]RAPDU: 90 00 [17:41:21]wFMCommunicate OK [17:41:21]SAM_PROTO_ClearQueue done [17:41:21]KKMCreateOFDPacket [17:41:21]OFDProtocolAddRootSTLVToBuf [17:41:21]FM_MakeSignedData [17:41:21]FM_MakeSignedData [17:41:21]SAM_PROTO_SignData [17:41:21]wFMCommunicate request_size=4 [17:41:21]MH_SAM_APDU [17:41:21]CAPDU: 80 0D 01 02 [17:41:21]Write to MH i2c: E2 08 00 78 02 80 0D 01 02 00 00 00 00 F3 [17:41:21]Write i2c OK [17:41:21]MH_I2C_Read... [17:41:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:41:21]Read from MH i2c: E2 [17:41:21]MH_I2C_Read... [17:41:21]Read from MH i2c: E2 03 00 [17:41:21]MH_I2C_Read... [17:41:21]Read from MH i2c: E2 03 00 78 02 00 90 00 EE [17:41:21]RAPDU: 90 00 [17:41:21]wFMCommunicate OK [17:41:21]wFMCommunicate request_size=255 [17:41:21]MH_SAM_APDU [17:41:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 F4 00 00 00 F4 03 04 00 C0 0D 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B6 84 02 00 35 04 06 00 B3 [17:41:21]Write to MH i2c: E2 02 01 79 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 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 F4 00 00 00 F4 03 04 00 C0 0D 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B6 84 02 00 35 04 06 00 B3 00 00 1A [17:41:21]Write i2c OK [17:41:21]MH_I2C_Read... [17:41:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:41:22]Read from MH i2c: E2 [17:41:22]MH_I2C_Read... [17:41:22]Read from MH i2c: E2 03 00 [17:41:22]MH_I2C_Read... [17:41:22]Read from MH i2c: E2 03 00 79 02 00 90 00 EF [17:41:22]RAPDU: 90 00 [17:41:22]wFMCommunicate OK [17:41:22]wFMCommunicate request_size=10 [17:41:22]MH_SAM_APDU [17:41:22]CAPDU: 80 0D 02 02 05 18 B0 AC 6D C2 [17:41:22]Write to MH i2c: E2 0D 00 7A 02 80 0D 02 02 05 00 18 B0 AC 6D C2 00 00 A3 [17:41:22]Write i2c OK [17:41:22]MH_I2C_Read... [17:41:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:41:22]Read from MH i2c: E2 [17:41:22]MH_I2C_Read... [17:41:22]Read from MH i2c: E2 03 00 [17:41:22]MH_I2C_Read... [17:41:22]Read from MH i2c: E2 03 00 7A 02 00 90 00 F0 [17:41:22]RAPDU: 90 00 [17:41:22]wFMCommunicate OK [17:41:22]wFMCommunicate request_size=4 [17:41:22]MH_SAM_APDU [17:41:22]CAPDU: 80 0D 03 02 [17:41:22]Write to MH i2c: E2 08 00 7B 02 80 0D 03 02 00 00 00 00 F8 [17:41:22]Write i2c OK [17:41:22]MH_I2C_Read... [17:41:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:41:22]Read from MH i2c: E2 [17:41:22]MH_I2C_Read... [17:41:22]Read from MH i2c: E2 0B 00 [17:41:22]MH_I2C_Read... [17:41:22]Read from MH i2c: E2 0B 00 7B 02 00 F4 F1 BE 8B F9 53 CD 54 90 00 94 [17:41:22]RAPDU: F4 F1 BE 8B F9 53 CD 54 90 00 [17:41:22]wFMCommunicate OK [17:41:22]SAM_PROTO_SignData done [17:41:22]FM_MakeSignedData done [17:41:22]CreateOFDProtocolMessage [17:41:22]wFMCommunicate request_size=4 [17:41:22]MH_SAM_APDU [17:41:22]CAPDU: 80 11 00 00 [17:41:22]Write to MH i2c: E2 08 00 7C 02 80 11 00 00 00 00 00 00 F8 [17:41:22]Write i2c OK [17:41:22]MH_I2C_Read... [17:41:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:41:22]Read from MH i2c: E2 [17:41:22]MH_I2C_Read... [17:41:22]Read from MH i2c: E2 17 00 [17:41:22]MH_I2C_Read... [17:41:22]Read from MH i2c: E2 17 00 7C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 4E [17:41:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:41:22]wFMCommunicate OK [17:41:22]CreateOFDProtocolMessage done [17:41:22]OFDSenderStorePacket 165046 [17:41:22]StoreOFDPacket docnum=165046 [17:41:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 00 48 07 01 25 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 F4 00 00 00 F4 03 04 00 C0 0D 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B6 84 02 00 35 04 06 00 B3 18 B0 AC 6D C2 F4 F1 BE 8B F9 53 CD 54 [17:41:22]CheckFolder [17:41:22]dirname=/storage/ofd_packets [17:41:22]CheckFolder done [17:41:22]ProducePacketName [17:41:22]name=ofd_packets/00165046 [17:41:22]NVStorageSaveData ofd_packets/00165046 [17:41:22]File name is /storage/ofd_packets/00165046 [17:41:22]Write 301 bytes [17:41:22]NVStorageSaveData done [17:41:22]OFDSenderStorePacket done [17:41:22]KKMCreateOFDPacket done [17:41:22]NVStorageSaveData kkm_last_timestamp [17:41:22]File name is /storage/kkm_last_timestamp [17:41:22]Write 4 bytes [17:41:22]NVStorageSaveData done [17:41:22]ExternCall_PrintAddStr [17:41:22]wPrintStart [17:41:22]Write to MH i2c: 01 00 00 7D 02 7F [17:41:22]Write i2c OK [17:41:22]MH_I2C_Read... [17:41:22]Read from MH i2c: 01 [17:41:22]MH_I2C_Read... [17:41:22]Read from MH i2c: 01 07 00 [17:41:22]MH_I2C_Read... [17:41:22]Read from MH i2c: 01 07 00 7D 02 00 00 00 00 00 FF 0F 94 [17:41:22]RasterBufferAndPrint [17:41:22]line Счет N : (1)459147 [17:41:22]line ИНН: 02508201610067 [17:41:22]line Контрольно-Кассовый Чек [17:41:22]line ПРОДАЖА [17:41:22]line ТРК (МРК, ГНК) : 12 [17:41:22]line Товар: 2710124130 [17:41:22]line Аи-92-К-5 [17:41:22]line 10.640 * 65.80 [17:41:22]line = 700.11 [17:41:22]line НДС 12% НСП 1% [17:41:22]line > о реализуемом товаре [17:41:22]line ОКРУГЛЕНИЕ: -0.11 [17:41:22]line ИТОГО: 700.00 [17:41:22]line Внесено: 700.00 [17:41:22]line СДАЧА: 0.00 [17:41:22]line НСП 1% : 6.20 [17:41:22]line НДС 12% : 74.35 [17:41:22]line Наличными: 700.00 [17:41:22]line Безнал.: 0.00 [17:41:22]line Место: АЗС № 72 "Партнер Нефть" [17:41:22]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [17:41:22]line СНО: Общий режим [17:41:22]line Чек 244 14.07.2024 17:41 [17:41:22]line Смена: 447 ФФД: 1.0 [17:41:22]line ЗНМ: 0300000160 [17:41:22]line РНМ: 0000000000090829 [17:41:22]line Версия ККМ: 001 [17:41:22]line ФМ: 0000000000874718 [17:41:22]line ФД: 165046 [17:41:22]line ФПД: 196918624677314 [17:41:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T174120&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165046&fm=196918624677314&tin=02508201610067®Number=0000000000090829&sum=70000 [17:41:22]OFD Sender: Processing packet 165046 [packets to send 105, broken 104] [17:41:22]ProducePacketName [17:41:22]name=ofd_packets/00165046 [17:41:22]OFD Sender: To server: pG, [17:41:22]CommunicateWithHost lk.salyk.kg:30040 [17:41:22]ConnectInit lk.salyk.kg [17:41:22]written 0, free lines is 4095 [17:41:22]Connected sock=10 [17:41:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 00 48 07 01 25 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 F4 00 00 00 F4 03 04 00 C0 0D 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B6 84 02 00 35 04 06 00 B3 18 B0 AC 6D C2 F4 F1 BE 8B F9 53 CD 54 [17:41:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 56 8B 47 00 6B 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B6 84 02 00 F4 03 04 00 4D B4 93 66 B6 04 01 00 00 17 DC 7B CE C6 C6 0E 04 [17:41:22]CommunicateWithHost err = 0 [17:41:22]CheckOFDResponse [17:41:22]1017 (14) - 77093643461234 [17:41:22]1041 (16) - 0000000000874718 [17:41:22]1040 (4) - 165046 [17:41:22]1012 (4) - 14.07.2024 11:19 [17:41:22]1206 (1) - 0 [17:41:22]OFD Sender: Remove packet 165046 [17:41:22]ProducePacketName [17:41:22]name=ofd_packets/00165046 [17:41:22]NVStorageDeleteData [17:41:23]Write to MH i2c: 01 00 00 A7 02 A9 [17:41:23]Write i2c OK [17:41:23]MH_I2C_Read... [17:41:23]Read from MH i2c: 01 [17:41:23]MH_I2C_Read... [17:41:23]Read from MH i2c: 01 07 00 [17:41:23]MH_I2C_Read... [17:41:23]Read from MH i2c: 01 07 00 A7 02 00 00 00 00 00 F3 0C AF [17:41:23]RasterBufferAndPrint [17:41:23]line [17:41:23]line [17:41:23]line [17:41:23]line [17:41:23]line [17:41:23]written 0, free lines is 3321 [17:41:23]MH_Cut [17:41:23]Write to MH i2c: D1 01 00 AE 02 01 82 [17:41:23]Write i2c OK [17:41:23]MH_I2C_Read... [17:41:23]Read from MH i2c: D1 [17:41:23]MH_I2C_Read... [17:41:23]Read from MH i2c: D1 01 00 [17:41:23]MH_I2C_Read... [17:41:23]Read from MH i2c: D1 01 00 AE 02 00 81 [17:41:23]Write to MH i2c: 01 00 00 AF 02 B1 [17:41:23]Write i2c OK [17:41:23]MH_I2C_Read... [17:41:23]OFD Sender: No OFD packet to send [17:41:23]*** Cut start [17:41:23]*** Partial cut [17:41:23]*** CUTSNS_PIN = 1 [17:41:23]*** CUTSNS_PIN = 0 [17:41:23]*** Brake cut motor [17:41:24]Read from MH i2c: 01 [17:41:24]MH_I2C_Read... [17:41:24]*** Stop cut motor [17:41:24]*** Cut end [17:41:24]Read from MH i2c: 01 07 00 [17:41:24]MH_I2C_Read... [17:41:24]Read from MH i2c: 01 07 00 AF 02 00 00 00 00 00 FF 0F C6 [17:41:24]process_action close_receipt done [17:41:24]requested_data is exist [17:41:24]produce_requested_data [17:41:24]requested_item fm.sn is exist - process it [17:41:24]wFMCommunicate request_size=4 [17:41:24]MH_SAM_APDU [17:41:24]CAPDU: 80 11 00 00 [17:41:24]Write to MH i2c: E2 08 00 B0 02 80 11 00 00 00 00 00 00 2C [17:41:24]Write i2c OK [17:41:24]MH_I2C_Read... [17:41:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:41:24]Read from MH i2c: E2 [17:41:24]MH_I2C_Read... [17:41:24]Read from MH i2c: E2 17 00 [17:41:24]MH_I2C_Read... [17:41:24]Read from MH i2c: E2 17 00 B0 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 82 [17:41:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:41:24]wFMCommunicate OK [17:41:24]requested_item fd.num is exist - process it [17:41:24]SAM_PROTO_GetFieldsCounters [17:41:24]wFMCommunicate request_size=4 [17:41:24]MH_SAM_APDU [17:41:24]CAPDU: 80 13 00 00 [17:41:24]Write to MH i2c: E2 08 00 B1 02 80 13 00 00 00 00 00 00 2F [17:41:24]Write i2c OK [17:41:24]MH_I2C_Read... [17:41:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:41:24]Read from MH i2c: E2 [17:41:24]MH_I2C_Read... [17:41:24]Read from MH i2c: E2 62 00 [17:41:24]MH_I2C_Read... [17:41:24]Read from MH i2c: E2 62 00 B1 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B6 84 02 00 0E 04 04 00 BF 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 2E [17:41:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B6 84 02 00 0E 04 04 00 BF 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 [17:41:24]wFMCommunicate OK [17:41:24]SAM_PROTO_GetFieldsCounters done [17:41:24]requested_item shift.num is exist - process it [17:41:24]requested_item shift.opened is exist - process it [17:41:24]req_shift_opened [17:41:24]FM_GetShiftState [17:41:24]SAM_PROTO_GetShiftState [17:41:24]wFMCommunicate request_size=4 [17:41:24]MH_SAM_APDU [17:41:24]CAPDU: 80 13 01 00 [17:41:24]Write to MH i2c: E2 08 00 B2 02 80 13 01 00 00 00 00 00 31 [17:41:24]Write i2c OK [17:41:24]MH_I2C_Read... [17:41:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:41:24]Read from MH i2c: E2 [17:41:24]MH_I2C_Read... [17:41:24]Read from MH i2c: E2 0E 00 [17:41:24]MH_I2C_Read... [17:41:24]Read from MH i2c: E2 0E 00 B2 02 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 B1 [17:41:24]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [17:41:24]wFMCommunicate OK [17:41:24]SAM_PROTO_GetShiftState done [17:41:24]FM_GetShiftState done [17:41:24]req_shift_opened done [17:41:24]requested_item shift.open_date is exist - process it [17:41:24]req_shift_open_date [17:41:24]req_shift_open_date done [17:41:24]produce_requested_data done [17:41:24]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165046,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [17:41:24]process_action_free close_receipt [17:41:24]json_value_free [17:41:24]json_value_free done [17:41:24]process_json_proto returns [17:41:24]Send response to host [17:41:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165046,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [17:41:24]free response buf [17:41:24]execute_script done [17:41:24]execute_script returns [17:41:24]free content buf [17:41:24]Sock 9.Close socket [17:41:24]Sock 9.Thread stoped [17:41:28]OFD Sender: No OFD packet to send [17:41:33]OFD Sender: No OFD packet to send [17:41:38]OFD Sender: No OFD packet to send [17:41:43]OFD Sender: No OFD packet to send [17:41:48]OFD Sender: No OFD packet to send [17:41:53]OFD Sender: No OFD packet to send [17:41:58]OFD Sender: No OFD packet to send [17:42:03]OFD Sender: No OFD packet to send [17:42:08]OFD Sender: No OFD packet to send [17:42:13]OFD Sender: No OFD packet to send [17:42:18]OFD Sender: No OFD packet to send [17:42:23]OFD Sender: No OFD packet to send [17:42:28]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:58]OFD Sender: No OFD packet to send [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:48]OFD Sender: No OFD packet to send [17:45:53]OFD Sender: No OFD packet to send [17:45:58]OFD Sender: No OFD packet to send [17:46:03]OFD Sender: No OFD packet to send [17:46:08]OFD Sender: No OFD packet to send [17:46:13]OFD Sender: No OFD packet to send [17:46:18]OFD Sender: No OFD packet to send [17:46:23]OFD Sender: No OFD packet to send [17:46:28]OFD Sender: No OFD packet to send [17:46:33]OFD Sender: No OFD packet to send [17:46:38]OFD Sender: No OFD packet to send [17:46:43]OFD Sender: No OFD packet to send [17:46:48]OFD Sender: No OFD packet to send [17:46:53]OFD Sender: No OFD packet to send [17:46:58]OFD Sender: No OFD packet to send [17:47:03]OFD Sender: No OFD packet to send [17:47:08]OFD Sender: No OFD packet to send [17:47:13]OFD Sender: No OFD packet to send [17:47:18]OFD Sender: No OFD packet to send [17:47:23]OFD Sender: No OFD packet to send [17:47:28]OFD Sender: No OFD packet to send [17:47:33]OFD Sender: No OFD packet to send [17:47:38]OFD Sender: No OFD packet to send [17:47:43]OFD Sender: No OFD packet to send [17:47:48]OFD Sender: No OFD packet to send [17:47:53]OFD Sender: No OFD packet to send [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:38]OFD Sender: No OFD packet to send [17:48:43]OFD Sender: No OFD packet to send [17:48:48]OFD Sender: No OFD packet to send [17:48:53]OFD Sender: No OFD packet to send [17:48:58]OFD Sender: No OFD packet to send [17:49:03]OFD Sender: No OFD packet to send [17:49:08]OFD Sender: No OFD packet to send [17:49:13]OFD Sender: No OFD packet to send [17:49:18]OFD Sender: No OFD packet to send [17:49:23]OFD Sender: No OFD packet to send [17:49:28]OFD Sender: No OFD packet to send [17:49:33]OFD Sender: No OFD packet to send [17:49:38]OFD Sender: No OFD packet to send [17:49:43]OFD Sender: No OFD packet to send [17:49:48]OFD Sender: No OFD packet to send [17:49:54]OFD Sender: No OFD packet to send [17:49:59]OFD Sender: No OFD packet to send [17:50:04]OFD Sender: No OFD packet to send [17:50:09]OFD Sender: No OFD packet to send [17:50:14]OFD Sender: No OFD packet to send [17:50:19]OFD Sender: No OFD packet to send [17:50:24]OFD Sender: No OFD packet to send [17:50:29]OFD Sender: No OFD packet to send [17:50:34]OFD Sender: No OFD packet to send [17:50:38]accept exits with 7 [17:50:38]New connection [17:50:38]New thread 3067383140 created [17:50:38]Thread 3067526500 joined [17:50:38]Waiting for new connection... [17:50:38] Sock 7.Parse request [17:50:38]Sock 7.Check first char [17:50:38]Sock 7.First char is OK [17:50:38]request: POST /json_proto HTTP/1.0 [17:50:38]Method: POST [17:50:38]URL: /json_proto [17:50:38]Method is POST - this is cgi request [17:50:38]url: /json_proto [17:50:38]query_string will be loaded in cgi processing [17:50:38]execute_cgi json_proto POST (null) [17:50:38]execute_cgi path=json_proto method=POST [17:50:38]POST find Content-Length [17:50:38]Host: 172.17.56.4:8080 [17:50:38]Content-Length: 674 [17:50:38]Content-Type: application/json [17:50:38] [17:50:38]POST finish read [17:50:38]Found Content-Length = 674 [17:50:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459148", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 5.000, "sum" : 359.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 359.00, "total" : 359.00, "payments": [ { "type": 0, "sum" : 359.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:50:38]execute_script... [17:50: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)459148", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 5.000, "sum" : 359.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 359.00, "total" : 359.00, "payments": [ { "type": 0, "sum" : 359.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:50:38]POST & json_proto [17:50:38]process_json_proto [17:50:38]json parsed OK: [17:50:38]protocol is kg_v1.0 [17:50:38]action value=close_receipt [17:50:38]process_action close_receipt [17:50:38]cmd_close_receipt [17:50:38]MH_GetDate [17:50:38]Write to MH i2c: F0 00 00 B3 02 A4 [17:50:38]Write i2c OK [17:50:38]MH_I2C_Read... [17:50:38]Read from MH i2c: F0 [17:50:38]MH_I2C_Read... [17:50:38]Read from MH i2c: F0 09 00 [17:50:38]MH_I2C_Read... [17:50:38]Read from MH i2c: F0 09 00 B3 02 00 EE 0F 94 66 C9 DC B2 64 5F [17:50:38]GetLastDocTimeStamp 1720978880 [17:50:38]current date 1720979438 [17:50:38]FM_GetShiftState [17:50:38]SAM_PROTO_GetShiftState [17:50:38]wFMCommunicate request_size=4 [17:50:38]MH_SAM_APDU [17:50:38]CAPDU: 80 13 01 00 [17:50:38]Write to MH i2c: E2 08 00 B4 02 80 13 01 00 00 00 00 00 33 [17:50:38]Write i2c OK [17:50:38]MH_I2C_Read... [17:50:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:50:38]Read from MH i2c: E2 [17:50:38]MH_I2C_Read... [17:50:38]Read from MH i2c: E2 0E 00 [17:50:38]MH_I2C_Read... [17:50:38]Read from MH i2c: E2 0E 00 B4 02 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 B3 [17:50:38]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [17:50:38]wFMCommunicate OK [17:50:38]SAM_PROTO_GetShiftState done [17:50:38]FM_GetShiftState done [17:50:38]opened in 1720917342 [17:50:38]opened+sec_in_day 1721003742 [17:50:38]quantity*price = 35950 [17:50:38]sum+1 = 35951 [17:50:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 359.00 Внесено: 359.00 СДАЧА: 0.00 НСП 1% : 3.18 НДС 12% : 38.18 Наличными: 359.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 245 14.07.2024 17:50 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165047 ФПД: 211193737188622 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T175038&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165047&fm=211193737188622&tin=02508201610067®Number=0000000000090829&sum=35900 [17:50:39]StoreToDocumentArchive [17:50:39]shift 447 fd 165047 [17:50:39]save to /storage/0447/doc_00165047 [17:50:39]save last doc name /storage/0447/doc_00165047 to /storage/kkm_last_doc_name [17:50:39]save OK [17:50:39]Clear old archive folders... [17:50:39]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:50:39]tlvbuf is 01F4B3E0 [17:50:39]SAM_PROTO_ClearQueue [17:50:39]wFMCommunicate request_size=4 [17:50:39]MH_SAM_APDU [17:50:39]CAPDU: 80 09 00 00 [17:50:39]Write to MH i2c: E2 08 00 C1 02 80 09 00 00 00 00 00 00 35 [17:50:39]Write i2c OK [17:50:39]MH_I2C_Read... [17:50:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:50:39]Read from MH i2c: E2 [17:50:39]MH_I2C_Read... [17:50:39]Read from MH i2c: E2 03 00 [17:50:39]MH_I2C_Read... [17:50:39]Read from MH i2c: E2 03 00 C1 02 00 90 00 37 [17:50:39]RAPDU: 90 00 [17:50:39]wFMCommunicate OK [17:50:39]SAM_PROTO_ClearQueue done [17:50:39]KKMCreateOFDPacket [17:50:39]OFDProtocolAddRootSTLVToBuf [17:50:39]FM_MakeSignedData [17:50:39]FM_MakeSignedData [17:50:39]SAM_PROTO_SignData [17:50:39]wFMCommunicate request_size=4 [17:50:39]MH_SAM_APDU [17:50:39]CAPDU: 80 0D 01 02 [17:50:39]Write to MH i2c: E2 08 00 C2 02 80 0D 01 02 00 00 00 00 3D [17:50:39]Write i2c OK [17:50:39]MH_I2C_Read... [17:50:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:50:39]Read from MH i2c: E2 [17:50:39]MH_I2C_Read... [17:50:39]Read from MH i2c: E2 03 00 [17:50:39]MH_I2C_Read... [17:50:39]Read from MH i2c: E2 03 00 C2 02 00 90 00 38 [17:50:39]RAPDU: 90 00 [17:50:39]wFMCommunicate OK [17:50:39]wFMCommunicate request_size=255 [17:50:39]MH_SAM_APDU [17:50:39]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 88 13 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 6E 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 0E 00 00 00 00 07 04 06 00 3C 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 EE 0F 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B7 84 02 00 35 04 06 00 C0 14 5F AF [17:50:39]Write to MH i2c: E2 02 01 C3 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 6E 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 0E 00 00 00 00 07 04 06 00 3C 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 EE 0F 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B7 84 02 00 35 04 06 00 C0 14 5F AF 00 00 F9 [17:50:39]Write i2c OK [17:50:39]MH_I2C_Read... [17:50:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:50:39]Read from MH i2c: E2 [17:50:39]MH_I2C_Read... [17:50:39]Read from MH i2c: E2 03 00 [17:50:39]MH_I2C_Read... [17:50:39]Read from MH i2c: E2 03 00 C3 02 00 90 00 39 [17:50:39]RAPDU: 90 00 [17:50:39]wFMCommunicate OK [17:50:39]wFMCommunicate request_size=7 [17:50:39]MH_SAM_APDU [17:50:39]CAPDU: 80 0D 02 02 02 15 0E [17:50:39]Write to MH i2c: E2 0A 00 C4 02 80 0D 02 02 02 00 15 0E 00 00 67 [17:50:39]Write i2c OK [17:50:39]MH_I2C_Read... [17:50:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:50:39]Read from MH i2c: E2 [17:50:39]MH_I2C_Read... [17:50:39]Read from MH i2c: E2 03 00 [17:50:39]MH_I2C_Read... [17:50:39]Read from MH i2c: E2 03 00 C4 02 00 90 00 3A [17:50:39]RAPDU: 90 00 [17:50:39]wFMCommunicate OK [17:50:39]wFMCommunicate request_size=4 [17:50:39]MH_SAM_APDU [17:50:39]CAPDU: 80 0D 03 02 [17:50:39]Write to MH i2c: E2 08 00 C5 02 80 0D 03 02 00 00 00 00 42 [17:50:39]Write i2c OK [17:50:39]MH_I2C_Read... [17:50:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:50:39]Read from MH i2c: E2 [17:50:39]MH_I2C_Read... [17:50:39]Read from MH i2c: E2 0B 00 [17:50:39]MH_I2C_Read... [17:50:39]Read from MH i2c: E2 0B 00 C5 02 00 0E 82 E9 CA BE 11 46 64 90 00 FF [17:50:39]RAPDU: 0E 82 E9 CA BE 11 46 64 90 00 [17:50:39]wFMCommunicate OK [17:50:39]SAM_PROTO_SignData done [17:50:39]FM_MakeSignedData done [17:50:39]CreateOFDProtocolMessage [17:50:39]wFMCommunicate request_size=4 [17:50:39]MH_SAM_APDU [17:50:39]CAPDU: 80 11 00 00 [17:50:39]Write to MH i2c: E2 08 00 C6 02 80 11 00 00 00 00 00 00 42 [17:50:39]Write i2c OK [17:50:39]MH_I2C_Read... [17:50:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:50:39]Read from MH i2c: E2 [17:50:39]MH_I2C_Read... [17:50:39]Read from MH i2c: E2 17 00 [17:50:39]MH_I2C_Read... [17:50:39]Read from MH i2c: E2 17 00 C6 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 98 [17:50:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:50:39]wFMCommunicate OK [17:50:39]CreateOFDProtocolMessage done [17:50:39]OFDSenderStorePacket 165047 [17:50:39]StoreOFDPacket docnum=165047 [17:50:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 50 09 04 01 43 CF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 6E 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 0E 00 00 00 00 07 04 06 00 3C 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 EE 0F 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B7 84 02 00 35 04 06 00 C0 14 5F AF 15 0E 0E 82 E9 CA BE 11 46 64 [17:50:39]CheckFolder [17:50:39]dirname=/storage/ofd_packets [17:50:39]CheckFolder done [17:50:39]ProducePacketName [17:50:39]name=ofd_packets/00165047 [17:50:39]NVStorageSaveData ofd_packets/00165047 [17:50:39]File name is /storage/ofd_packets/00165047 [17:50:39]Write 298 bytes [17:50:39]NVStorageSaveData done [17:50:39]OFDSenderStorePacket done [17:50:39]KKMCreateOFDPacket done [17:50:39]NVStorageSaveData kkm_last_timestamp [17:50:39]File name is /storage/kkm_last_timestamp [17:50:39]Write 4 bytes [17:50:39]NVStorageSaveData done [17:50:39]ExternCall_PrintAddStr [17:50:39]wPrintStart [17:50:39]Write to MH i2c: 01 00 00 C7 02 C9 [17:50:39]Write i2c OK [17:50:39]MH_I2C_Read... [17:50:39]Read from MH i2c: 01 [17:50:39]MH_I2C_Read... [17:50:39]Read from MH i2c: 01 07 00 [17:50:39]MH_I2C_Read... [17:50:39]Read from MH i2c: 01 07 00 C7 02 00 00 00 00 00 FF 0F DE [17:50:39]RasterBufferAndPrint [17:50:39]line Счет N : (1)459148 [17:50:39]line ИНН: 02508201610067 [17:50:39]line Контрольно-Кассовый Чек [17:50:39]line ПРОДАЖА [17:50:39]line ТРК (МРК, ГНК) : 21 [17:50:39]line Товар: 2710194210 [17:50:39]line ДТ-К-5 [17:50:39]line 5.000 * 71.90 [17:50:39]line = 359.50 [17:50:39]line НДС 12% НСП 1% [17:50:39]line > о реализуемом товаре [17:50:39]line ОКРУГЛЕНИЕ: -0.50 [17:50:39]line ИТОГО: 359.00 [17:50:39]line Внесено: 359.00 [17:50:39]line СДАЧА: 0.00 [17:50:39]line НСП 1% : 3.18 [17:50:39]line НДС 12% : 38.18 [17:50:39]line Наличными: 359.00 [17:50:39]line Безнал.: 0.00 [17:50:39]line Место: АЗС № 72 "Партнер Нефть" [17:50:39]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [17:50:39]line СНО: Общий режим [17:50:39]line Чек 245 14.07.2024 17:50 [17:50:39]line Смена: 447 ФФД: 1.0 [17:50:39]line ЗНМ: 0300000160 [17:50:39]line РНМ: 0000000000090829 [17:50:39]line Версия ККМ: 001 [17:50:39]line ФМ: 0000000000874718 [17:50:39]line ФД: 165047 [17:50:39]line ФПД: 211193737188622 [17:50:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T175038&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165047&fm=211193737188622&tin=02508201610067®Number=0000000000090829&sum=35900 [17:50:40]OFD Sender: Processing packet 165047 [packets to send 105, broken 104] [17:50:40]ProducePacketName [17:50:40]name=ofd_packets/00165047 [17:50:40]OFD Sender: To server: pG, [17:50:40]CommunicateWithHost lk.salyk.kg:30040 [17:50:40]ConnectInit lk.salyk.kg [17:50:40]written 0, free lines is 4095 [17:50:40]Connected sock=9 [17:50:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 50 09 04 01 43 CF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 6E 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 0E 00 00 00 00 07 04 06 00 3C 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 EE 0F 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B7 84 02 00 35 04 06 00 C0 14 5F AF 15 0E 0E 82 E9 CA BE 11 46 64 [17:50:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 FE 94 47 00 3E 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 38 37 34 37 31 38 10 04 04 00 B7 84 02 00 F4 03 04 00 7B B6 93 66 B6 04 01 00 00 39 83 46 96 27 66 43 06 [17:50:40]CommunicateWithHost err = 0 [17:50:40]CheckOFDResponse [17:50:40]1017 (14) - 77093643461234 [17:50:40]1041 (16) - 0000000000874718 [17:50:40]1040 (4) - 165047 [17:50:40]1012 (4) - 14.07.2024 11:28 [17:50:40]1206 (1) - 0 [17:50:40]OFD Sender: Remove packet 165047 [17:50:40]ProducePacketName [17:50:40]name=ofd_packets/00165047 [17:50:40]NVStorageDeleteData [17:50:40]Write to MH i2c: 01 00 00 F1 02 F3 [17:50:40]Write i2c OK [17:50:40]MH_I2C_Read... [17:50:40]Read from MH i2c: 01 [17:50:40]MH_I2C_Read... [17:50:40]Read from MH i2c: 01 07 00 [17:50:40]MH_I2C_Read... [17:50:40]Read from MH i2c: 01 07 00 F1 02 00 00 00 00 00 EC 0C F2 [17:50:40]RasterBufferAndPrint [17:50:40]line [17:50:40]line [17:50:40]line [17:50:40]line [17:50:40]line [17:50:40]written 0, free lines is 3314 [17:50:40]MH_Cut [17:50:40]Write to MH i2c: D1 01 00 F8 02 01 CC [17:50:40]Write i2c OK [17:50:40]MH_I2C_Read... [17:50:40]Read from MH i2c: D1 [17:50:40]MH_I2C_Read... [17:50:40]Read from MH i2c: D1 01 00 [17:50:40]MH_I2C_Read... [17:50:40]Read from MH i2c: D1 01 00 F8 02 00 CB [17:50:40]Write to MH i2c: 01 00 00 F9 02 FB [17:50:40]Write i2c OK [17:50:40]MH_I2C_Read... [17:50:40]OFD Sender: No OFD packet to send [17:50:41]*** Cut start [17:50:41]*** Partial cut [17:50:41]*** CUTSNS_PIN = 1 [17:50:41]*** CUTSNS_PIN = 0 [17:50:41]*** Brake cut motor [17:50:41]Read from MH i2c: 01 [17:50:41]MH_I2C_Read... [17:50:41]*** Stop cut motor [17:50:41]*** Cut end [17:50:41]Read from MH i2c: 01 07 00 [17:50:41]MH_I2C_Read... [17:50:41]Read from MH i2c: 01 07 00 F9 02 00 00 00 00 00 FF 0F 10 [17:50:41]process_action close_receipt done [17:50:41]requested_data is exist [17:50:41]produce_requested_data [17:50:41]requested_item fm.sn is exist - process it [17:50:41]wFMCommunicate request_size=4 [17:50:41]MH_SAM_APDU [17:50:41]CAPDU: 80 11 00 00 [17:50:41]Write to MH i2c: E2 08 00 FA 02 80 11 00 00 00 00 00 00 76 [17:50:41]Write i2c OK [17:50:41]MH_I2C_Read... [17:50:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:50:41]Read from MH i2c: E2 [17:50:41]MH_I2C_Read... [17:50:41]Read from MH i2c: E2 17 00 [17:50:41]MH_I2C_Read... [17:50:41]Read from MH i2c: E2 17 00 FA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 CC [17:50:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:50:41]wFMCommunicate OK [17:50:41]requested_item fd.num is exist - process it [17:50:41]SAM_PROTO_GetFieldsCounters [17:50:41]wFMCommunicate request_size=4 [17:50:41]MH_SAM_APDU [17:50:41]CAPDU: 80 13 00 00 [17:50:41]Write to MH i2c: E2 08 00 FB 02 80 13 00 00 00 00 00 00 79 [17:50:41]Write i2c OK [17:50:41]MH_I2C_Read... [17:50:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:50:41]Read from MH i2c: E2 [17:50:41]MH_I2C_Read... [17:50:41]Read from MH i2c: E2 62 00 [17:50:41]MH_I2C_Read... [17:50:41]Read from MH i2c: E2 62 00 FB 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B7 84 02 00 0E 04 04 00 BF 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 7C [17:50:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B7 84 02 00 0E 04 04 00 BF 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 [17:50:42]wFMCommunicate OK [17:50:42]SAM_PROTO_GetFieldsCounters done [17:50:42]requested_item shift.num is exist - process it [17:50:42]requested_item shift.opened is exist - process it [17:50:42]req_shift_opened [17:50:42]FM_GetShiftState [17:50:42]SAM_PROTO_GetShiftState [17:50:42]wFMCommunicate request_size=4 [17:50:42]MH_SAM_APDU [17:50:42]CAPDU: 80 13 01 00 [17:50:42]Write to MH i2c: E2 08 00 FC 02 80 13 01 00 00 00 00 00 7B [17:50:42]Write i2c OK [17:50:42]MH_I2C_Read... [17:50:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:50:42]Read from MH i2c: E2 [17:50:42]MH_I2C_Read... [17:50:42]Read from MH i2c: E2 0E 00 [17:50:42]MH_I2C_Read... [17:50:42]Read from MH i2c: E2 0E 00 FC 02 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 FB [17:50:42]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [17:50:42]wFMCommunicate OK [17:50:42]SAM_PROTO_GetShiftState done [17:50:42]FM_GetShiftState done [17:50:42]req_shift_opened done [17:50:42]requested_item shift.open_date is exist - process it [17:50:42]req_shift_open_date [17:50:42]req_shift_open_date done [17:50:42]produce_requested_data done [17:50:42]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165047,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [17:50:42]process_action_free close_receipt [17:50:42]json_value_free [17:50:42]json_value_free done [17:50:42]process_json_proto returns [17:50:42]Send response to host [17:50:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165047,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [17:50:42]free response buf [17:50:42]execute_script done [17:50:42]execute_script returns [17:50:42]free content buf [17:50:42]Sock 7.Close socket [17:50:42]Sock 7.Thread stoped [17:50:45]OFD Sender: No OFD packet to send [17:50:50]OFD Sender: No OFD packet to send [17:50:55]OFD Sender: No OFD packet to send [17:51:00]OFD Sender: No OFD packet to send [17:51:05]OFD Sender: No OFD packet to send [17:51:10]OFD Sender: No OFD packet to send [17:51:15]OFD Sender: No OFD packet to send [17:51:20]OFD Sender: No OFD packet to send [17:51:25]OFD Sender: No OFD packet to send [17:51:30]OFD Sender: No OFD packet to send [17:51:35]OFD Sender: No OFD packet to send [17:51:40]OFD Sender: No OFD packet to send [17:51:45]OFD Sender: No OFD packet to send [17:51:50]OFD Sender: No OFD packet to send [17:51:56]OFD Sender: No OFD packet to send [17:52:01]OFD Sender: No OFD packet to send [17:52:06]OFD Sender: No OFD packet to send [17:52:11]OFD Sender: No OFD packet to send [17:52:16]OFD Sender: No OFD packet to send [17:52:21]OFD Sender: No OFD packet to send [17:52:26]OFD Sender: No OFD packet to send [17:52:31]OFD Sender: No OFD packet to send [17:52:36]OFD Sender: No OFD packet to send [17:52:41]OFD Sender: No OFD packet to send [17:52:46]OFD Sender: No OFD packet to send [17:52:51]OFD Sender: No OFD packet to send [17:52:56]OFD Sender: No OFD packet to send [17:52:59]accept exits with 10 [17:52:59]New connection [17:52:59]New thread 3067526500 created [17:52:59]Thread 3067383140 joined [17:52:59]Waiting for new connection... [17:52:59] Sock 10.Parse request [17:52:59]Sock 10.Check first char [17:52:59]Sock 10.First char is OK [17:52:59]request: POST /json_proto HTTP/1.0 [17:52:59]Method: POST [17:52:59]URL: /json_proto [17:52:59]Method is POST - this is cgi request [17:52:59]url: /json_proto [17:52:59]query_string will be loaded in cgi processing [17:52:59]execute_cgi json_proto POST (null) [17:52:59]execute_cgi path=json_proto method=POST [17:52:59]POST find Content-Length [17:52:59]Host: 172.17.56.4:8080 [17:52:59]Content-Length: 674 [17:52:59]Content-Type: application/json [17:52:59] [17:52:59]POST finish read [17:52:59]Found Content-Length = 674 [17:52:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459149", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 2.790, "sum" : 200.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:52:59]execute_script... [17:52:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459149", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 2.790, "sum" : 200.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:52:59]POST & json_proto [17:52:59]process_json_proto [17:52:59]json parsed OK: [17:52:59]protocol is kg_v1.0 [17:52:59]action value=close_receipt [17:52:59]process_action close_receipt [17:52:59]cmd_close_receipt [17:52:59]MH_GetDate [17:52:59]Write to MH i2c: F0 00 00 FD 02 EE [17:52:59]Write i2c OK [17:52:59]MH_I2C_Read... [17:52:59]Read from MH i2c: F0 [17:52:59]MH_I2C_Read... [17:52:59]Read from MH i2c: F0 09 00 [17:52:59]MH_I2C_Read... [17:52:59]Read from MH i2c: F0 09 00 FD 02 00 7C 10 94 66 C9 DC B2 64 38 [17:52:59]GetLastDocTimeStamp 1720979438 [17:52:59]current date 1720979580 [17:52:59]FM_GetShiftState [17:52:59]SAM_PROTO_GetShiftState [17:52:59]wFMCommunicate request_size=4 [17:52:59]MH_SAM_APDU [17:52:59]CAPDU: 80 13 01 00 [17:52:59]Write to MH i2c: E2 08 00 FE 02 80 13 01 00 00 00 00 00 7D [17:52:59]Write i2c OK [17:52:59]MH_I2C_Read... [17:52:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:52:59]Read from MH i2c: E2 [17:52:59]MH_I2C_Read... [17:52:59]Read from MH i2c: E2 0E 00 [17:52:59]MH_I2C_Read... [17:52:59]Read from MH i2c: E2 0E 00 FE 02 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 FD [17:52:59]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [17:52:59]wFMCommunicate OK [17:52:59]SAM_PROTO_GetShiftState done [17:52:59]FM_GetShiftState done [17:52:59]opened in 1720917342 [17:52:59]opened+sec_in_day 1721003742 [17:52:59]quantity*price = 20060 [17:52:59]sum+1 = 20061 [17:52:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.30 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 246 14.07.2024 17:53 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165048 ФПД: 205734050196561 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T175300&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165048&fm=205734050196561&tin=02508201610067®Number=0000000000090829&sum=20000 [17:53:00]StoreToDocumentArchive [17:53:00]shift 447 fd 165048 [17:53:00]save to /storage/0447/doc_00165048 [17:53:00]save last doc name /storage/0447/doc_00165048 to /storage/kkm_last_doc_name [17:53:00]save OK [17:53:00]Clear old archive folders... [17:53:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:53:00]tlvbuf is 01F4E320 [17:53:00]SAM_PROTO_ClearQueue [17:53:00]wFMCommunicate request_size=4 [17:53:00]MH_SAM_APDU [17:53:00]CAPDU: 80 09 00 00 [17:53:00]Write to MH i2c: E2 08 00 0B 03 80 09 00 00 00 00 00 00 80 [17:53:00]Write i2c OK [17:53:00]MH_I2C_Read... [17:53:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:53:01]Read from MH i2c: E2 [17:53:01]MH_I2C_Read... [17:53:01]Read from MH i2c: E2 03 00 [17:53:01]MH_I2C_Read... [17:53:01]Read from MH i2c: E2 03 00 0B 03 00 90 00 82 [17:53:01]RAPDU: 90 00 [17:53:01]wFMCommunicate OK [17:53:01]SAM_PROTO_ClearQueue done [17:53:01]KKMCreateOFDPacket [17:53:01]OFDProtocolAddRootSTLVToBuf [17:53:01]FM_MakeSignedData [17:53:01]FM_MakeSignedData [17:53:01]SAM_PROTO_SignData [17:53:01]wFMCommunicate request_size=4 [17:53:01]MH_SAM_APDU [17:53:01]CAPDU: 80 0D 01 02 [17:53:01]Write to MH i2c: E2 08 00 0C 03 80 0D 01 02 00 00 00 00 88 [17:53:01]Write i2c OK [17:53:01]MH_I2C_Read... [17:53:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:53:01]Read from MH i2c: E2 [17:53:01]MH_I2C_Read... [17:53:01]Read from MH i2c: E2 03 00 [17:53:01]MH_I2C_Read... [17:53:01]Read from MH i2c: E2 03 00 0C 03 00 90 00 83 [17:53:01]RAPDU: 90 00 [17:53:01]wFMCommunicate OK [17:53:01]wFMCommunicate request_size=255 [17:53:01]MH_SAM_APDU [17:53:01]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 0A 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5C 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 52 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 F6 00 00 00 F4 03 04 00 7C 10 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B8 84 02 00 35 04 06 00 BB 1D 30 FA [17:53:01]Write to MH i2c: E2 02 01 0D 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 0A 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5C 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 52 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 F6 00 00 00 F4 03 04 00 7C 10 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B8 84 02 00 35 04 06 00 BB 1D 30 FA 00 00 1A [17:53:01]Write i2c OK [17:53:01]MH_I2C_Read... [17:53:01]OFD Sender: No OFD packet to send [17:53:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:01]Read from MH i2c: E2 [17:53:01]MH_I2C_Read... [17:53:01]Read from MH i2c: E2 03 00 [17:53:01]MH_I2C_Read... [17:53:01]Read from MH i2c: E2 03 00 0D 03 00 90 00 84 [17:53:01]RAPDU: 90 00 [17:53:01]wFMCommunicate OK [17:53:01]wFMCommunicate request_size=7 [17:53:01]MH_SAM_APDU [17:53:01]CAPDU: 80 0D 02 02 02 EC 51 [17:53:01]Write to MH i2c: E2 0A 00 0E 03 80 0D 02 02 02 00 EC 51 00 00 CC [17:53:01]Write i2c OK [17:53:01]MH_I2C_Read... [17:53:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:01]Read from MH i2c: E2 [17:53:01]MH_I2C_Read... [17:53:01]Read from MH i2c: E2 03 00 [17:53:01]MH_I2C_Read... [17:53:01]Read from MH i2c: E2 03 00 0E 03 00 90 00 85 [17:53:01]RAPDU: 90 00 [17:53:01]wFMCommunicate OK [17:53:01]wFMCommunicate request_size=4 [17:53:01]MH_SAM_APDU [17:53:01]CAPDU: 80 0D 03 02 [17:53:01]Write to MH i2c: E2 08 00 0F 03 80 0D 03 02 00 00 00 00 8D [17:53:01]Write i2c OK [17:53:01]MH_I2C_Read... [17:53:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:53:01]Read from MH i2c: E2 [17:53:01]MH_I2C_Read... [17:53:01]Read from MH i2c: E2 0B 00 [17:53:01]MH_I2C_Read... [17:53:01]Read from MH i2c: E2 0B 00 0F 03 00 AE 2B 9C EC 2D 8D 80 24 90 00 4D [17:53:01]RAPDU: AE 2B 9C EC 2D 8D 80 24 90 00 [17:53:01]wFMCommunicate OK [17:53:01]SAM_PROTO_SignData done [17:53:01]FM_MakeSignedData done [17:53:01]CreateOFDProtocolMessage [17:53:01]wFMCommunicate request_size=4 [17:53:01]MH_SAM_APDU [17:53:01]CAPDU: 80 11 00 00 [17:53:01]Write to MH i2c: E2 08 00 10 03 80 11 00 00 00 00 00 00 8D [17:53:01]Write i2c OK [17:53:01]MH_I2C_Read... [17:53:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:01]Read from MH i2c: E2 [17:53:01]MH_I2C_Read... [17:53:01]Read from MH i2c: E2 17 00 [17:53:01]MH_I2C_Read... [17:53:01]Read from MH i2c: E2 17 00 10 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E3 [17:53:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:53:01]wFMCommunicate OK [17:53:01]CreateOFDProtocolMessage done [17:53:01]OFDSenderStorePacket 165048 [17:53:01]StoreOFDPacket docnum=165048 [17:53:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 DE 78 04 01 EF D3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 0A 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5C 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 52 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 F6 00 00 00 F4 03 04 00 7C 10 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B8 84 02 00 35 04 06 00 BB 1D 30 FA EC 51 AE 2B 9C EC 2D 8D 80 24 [17:53:01]CheckFolder [17:53:01]dirname=/storage/ofd_packets [17:53:01]CheckFolder done [17:53:01]ProducePacketName [17:53:01]name=ofd_packets/00165048 [17:53:01]NVStorageSaveData ofd_packets/00165048 [17:53:01]File name is /storage/ofd_packets/00165048 [17:53:01]Write 298 bytes [17:53:01]NVStorageSaveData done [17:53:01]OFDSenderStorePacket done [17:53:01]KKMCreateOFDPacket done [17:53:01]NVStorageSaveData kkm_last_timestamp [17:53:01]File name is /storage/kkm_last_timestamp [17:53:01]Write 4 bytes [17:53:01]NVStorageSaveData done [17:53:01]ExternCall_PrintAddStr [17:53:01]wPrintStart [17:53:01]Write to MH i2c: 01 00 00 11 03 14 [17:53:01]Write i2c OK [17:53:01]MH_I2C_Read... [17:53:01]Read from MH i2c: 01 [17:53:01]MH_I2C_Read... [17:53:01]Read from MH i2c: 01 07 00 [17:53:01]MH_I2C_Read... [17:53:01]Read from MH i2c: 01 07 00 11 03 00 00 00 00 00 FF 0F 29 [17:53:01]RasterBufferAndPrint [17:53:01]line Счет N : (1)459149 [17:53:01]line ИНН: 02508201610067 [17:53:01]line Контрольно-Кассовый Чек [17:53:01]line ПРОДАЖА [17:53:01]line ТРК (МРК, ГНК) : 21 [17:53:01]line Товар: 2710194210 [17:53:01]line ДТ-К-5 [17:53:01]line 2.790 * 71.90 [17:53:01]line = 200.60 [17:53:01]line НДС 12% НСП 1% [17:53:01]line > о реализуемом товаре [17:53:01]line ОКРУГЛЕНИЕ: -0.60 [17:53:01]line ИТОГО: 200.00 [17:53:01]line Внесено: 200.00 [17:53:01]line СДАЧА: 0.00 [17:53:01]line НСП 1% : 1.77 [17:53:01]line НДС 12% : 21.30 [17:53:01]line Наличными: 200.00 [17:53:01]line Безнал.: 0.00 [17:53:01]line Место: АЗС № 72 "Партнер Нефть" [17:53:01]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [17:53:01]line СНО: Общий режим [17:53:01]line Чек 246 14.07.2024 17:53 [17:53:01]line Смена: 447 ФФД: 1.0 [17:53:01]line ЗНМ: 0300000160 [17:53:01]line РНМ: 0000000000090829 [17:53:01]line Версия ККМ: 001 [17:53:01]line ФМ: 0000000000874718 [17:53:01]line ФД: 165048 [17:53:01]line ФПД: 205734050196561 [17:53:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T175300&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165048&fm=205734050196561&tin=02508201610067®Number=0000000000090829&sum=20000 [17:53:01]OFD Sender: Processing packet 165048 [packets to send 105, broken 104] [17:53:01]ProducePacketName [17:53:01]name=ofd_packets/00165048 [17:53:01]OFD Sender: To server: pG, [17:53:01]CommunicateWithHost lk.salyk.kg:30040 [17:53:01]ConnectInit lk.salyk.kg [17:53:01]written 0, free lines is 4095 [17:53:01]Connected sock=9 [17:53:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 DE 78 04 01 EF D3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 0A 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5C 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 52 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 F6 00 00 00 F4 03 04 00 7C 10 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B8 84 02 00 35 04 06 00 BB 1D 30 FA EC 51 AE 2B 9C EC 2D 8D 80 24 [17:53:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 89 98 47 00 67 A7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B8 84 02 00 F4 03 04 00 09 B7 93 66 B6 04 01 00 00 8D AA 55 92 30 F4 42 94 [17:53:02]CommunicateWithHost err = 0 [17:53:02]CheckOFDResponse [17:53:02]1017 (14) - 77093643461234 [17:53:02]1041 (16) - 0000000000874718 [17:53:02]1040 (4) - 165048 [17:53:02]1012 (4) - 14.07.2024 11:31 [17:53:02]1206 (1) - 0 [17:53:02]OFD Sender: Remove packet 165048 [17:53:02]ProducePacketName [17:53:02]name=ofd_packets/00165048 [17:53:02]NVStorageDeleteData [17:53:02]Write to MH i2c: 01 00 00 3B 03 3E [17:53:02]Write i2c OK [17:53:02]MH_I2C_Read... [17:53:02]Read from MH i2c: 01 [17:53:02]MH_I2C_Read... [17:53:02]Read from MH i2c: 01 07 00 [17:53:02]MH_I2C_Read... [17:53:02]Read from MH i2c: 01 07 00 3B 03 00 00 00 00 00 F3 0C 44 [17:53:02]RasterBufferAndPrint [17:53:02]line [17:53:02]line [17:53:02]line [17:53:02]line [17:53:02]line [17:53:02]written 0, free lines is 3322 [17:53:02]MH_Cut [17:53:02]Write to MH i2c: D1 01 00 42 03 01 17 [17:53:02]Write i2c OK [17:53:02]MH_I2C_Read... [17:53:02]Read from MH i2c: D1 [17:53:02]MH_I2C_Read... [17:53:02]Read from MH i2c: D1 01 00 [17:53:02]MH_I2C_Read... [17:53:02]Read from MH i2c: D1 01 00 42 03 00 16 [17:53:02]Write to MH i2c: 01 00 00 43 03 46 [17:53:02]Write i2c OK [17:53:02]MH_I2C_Read... [17:53:02]OFD Sender: No OFD packet to send [17:53:02]*** Cut start [17:53:02]*** Partial cut [17:53:02]*** CUTSNS_PIN = 1 [17:53:02]*** CUTSNS_PIN = 0 [17:53:03]*** Brake cut motor [17:53:03]Read from MH i2c: 01 [17:53:03]MH_I2C_Read... [17:53:03]*** Stop cut motor [17:53:03]*** Cut end [17:53:03]Read from MH i2c: 01 07 00 [17:53:03]MH_I2C_Read... [17:53:03]Read from MH i2c: 01 07 00 43 03 00 00 00 00 00 FF 0F 5B [17:53:03]process_action close_receipt done [17:53:03]requested_data is exist [17:53:03]produce_requested_data [17:53:03]requested_item fm.sn is exist - process it [17:53:03]wFMCommunicate request_size=4 [17:53:03]MH_SAM_APDU [17:53:03]CAPDU: 80 11 00 00 [17:53:03]Write to MH i2c: E2 08 00 44 03 80 11 00 00 00 00 00 00 C1 [17:53:03]Write i2c OK [17:53:03]MH_I2C_Read... [17:53:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:03]Read from MH i2c: E2 [17:53:03]MH_I2C_Read... [17:53:03]Read from MH i2c: E2 17 00 [17:53:03]MH_I2C_Read... [17:53:03]Read from MH i2c: E2 17 00 44 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 17 [17:53:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:53:03]wFMCommunicate OK [17:53:03]requested_item fd.num is exist - process it [17:53:03]SAM_PROTO_GetFieldsCounters [17:53:03]wFMCommunicate request_size=4 [17:53:03]MH_SAM_APDU [17:53:03]CAPDU: 80 13 00 00 [17:53:03]Write to MH i2c: E2 08 00 45 03 80 13 00 00 00 00 00 00 C4 [17:53:03]Write i2c OK [17:53:03]MH_I2C_Read... [17:53:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:53:03]Read from MH i2c: E2 [17:53:03]MH_I2C_Read... [17:53:03]Read from MH i2c: E2 62 00 [17:53:03]MH_I2C_Read... [17:53:03]Read from MH i2c: E2 62 00 45 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B8 84 02 00 0E 04 04 00 BF 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 CB [17:53:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B8 84 02 00 0E 04 04 00 BF 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 [17:53:03]wFMCommunicate OK [17:53:03]SAM_PROTO_GetFieldsCounters done [17:53:03]requested_item shift.num is exist - process it [17:53:03]requested_item shift.opened is exist - process it [17:53:03]req_shift_opened [17:53:03]FM_GetShiftState [17:53:03]SAM_PROTO_GetShiftState [17:53:03]wFMCommunicate request_size=4 [17:53:03]MH_SAM_APDU [17:53:03]CAPDU: 80 13 01 00 [17:53:03]Write to MH i2c: E2 08 00 46 03 80 13 01 00 00 00 00 00 C6 [17:53:03]Write i2c OK [17:53:03]MH_I2C_Read... [17:53:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:03]Read from MH i2c: E2 [17:53:03]MH_I2C_Read... [17:53:03]Read from MH i2c: E2 0E 00 [17:53:03]MH_I2C_Read... [17:53:03]Read from MH i2c: E2 0E 00 46 03 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 46 [17:53:03]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [17:53:03]wFMCommunicate OK [17:53:03]SAM_PROTO_GetShiftState done [17:53:03]FM_GetShiftState done [17:53:03]req_shift_opened done [17:53:03]requested_item shift.open_date is exist - process it [17:53:03]req_shift_open_date [17:53:03]req_shift_open_date done [17:53:03]produce_requested_data done [17:53:03]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165048,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [17:53:03]process_action_free close_receipt [17:53:03]json_value_free [17:53:03]json_value_free done [17:53:03]process_json_proto returns [17:53:03]Send response to host [17:53:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165048,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [17:53:03]free response buf [17:53:03]execute_script done [17:53:03]execute_script returns [17:53:03]free content buf [17:53:03]Sock 10.Close socket [17:53:03]Sock 10.Thread stoped [17:53:07]OFD Sender: No OFD packet to send [17:53:12]OFD Sender: No OFD packet to send [17:53:17]OFD Sender: No OFD packet to send [17:53:22]OFD Sender: No OFD packet to send [17:53:27]OFD Sender: No OFD packet to send [17:53:32]OFD Sender: No OFD packet to send [17:53:37]OFD Sender: No OFD packet to send [17:53:42]OFD Sender: No OFD packet to send [17:53:47]OFD Sender: No OFD packet to send [17:53:52]OFD Sender: No OFD packet to send [17:53:57]OFD Sender: No OFD packet to send [17:54:02]OFD Sender: No OFD packet to send [17:54:07]OFD Sender: No OFD packet to send [17:54:12]OFD Sender: No OFD packet to send [17:54: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:52]OFD Sender: No OFD packet to send [17:57:57]OFD Sender: No OFD packet to send [17:58:02]OFD Sender: No OFD packet to send [17:58:07]OFD Sender: No OFD packet to send [17:58:12]OFD Sender: No OFD packet to send [17:58:17]OFD Sender: No OFD packet to send [17:58:22]OFD Sender: No OFD packet to send [17:58:27]OFD Sender: No OFD packet to send [17:58:33]OFD Sender: No OFD packet to send [17:58:38]OFD Sender: No OFD packet to send [17:58:43]OFD Sender: No OFD packet to send [17:58:48]OFD Sender: No OFD packet to send [17:58:53]OFD Sender: No OFD packet to send [17:58:58]OFD Sender: No OFD packet to send [17:59:03]OFD Sender: No OFD packet to send [17:59:08]OFD Sender: No OFD packet to send [17:59:13]OFD Sender: No OFD packet to send [17:59:18]OFD Sender: No OFD packet to send [17:59:23]OFD Sender: No OFD packet to send [17:59:28]OFD Sender: No OFD packet to send [17:59:33]OFD Sender: No OFD packet to send [17:59:38]OFD Sender: No OFD packet to send [17:59:43]OFD Sender: No OFD packet to send [17:59:48]OFD Sender: No OFD packet to send [17:59:53]OFD Sender: No OFD packet to send [17:59:58]OFD Sender: No OFD packet to send [18:00:03]OFD Sender: No OFD packet to send [18:00:08]OFD Sender: No OFD packet to send [18:00:13]OFD Sender: No OFD packet to send [18:00:18]OFD Sender: No OFD packet to send [18:00:23]OFD Sender: No OFD packet to send [18:00:28]OFD Sender: No OFD packet to send [18:00:33]OFD Sender: No OFD packet to send [18:00:38]OFD Sender: No OFD packet to send [18:00:43]OFD Sender: No OFD packet to send [18:00:48]OFD Sender: No OFD packet to send [18:00:53]OFD Sender: No OFD packet to send [18:00:58]OFD Sender: No OFD packet to send [18:01:03]OFD Sender: No OFD packet to send [18:01:08]OFD Sender: No OFD packet to send [18:01:13]OFD Sender: No OFD packet to send [18:01:15]accept exits with 7 [18:01:15]New connection [18:01:15]New thread 3067383140 created [18:01:15]Thread 3067526500 joined [18:01:15]Waiting for new connection... [18:01:15] Sock 7.Parse request [18:01:15]Sock 7.Check first char [18:01:15]Sock 7.First char is OK [18:01:15]request: POST /json_proto HTTP/1.0 [18:01:15]Method: POST [18:01:15]URL: /json_proto [18:01:15]Method is POST - this is cgi request [18:01:15]url: /json_proto [18:01:15]query_string will be loaded in cgi processing [18:01:15]execute_cgi json_proto POST (null) [18:01:15]execute_cgi path=json_proto method=POST [18:01:15]POST find Content-Length [18:01:15]Host: 172.17.56.4:8080 [18:01:15]Content-Length: 677 [18:01:15]Content-Type: application/json [18:01:15] [18:01:15]POST finish read [18:01:15]Found Content-Length = 677 [18:01:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459150", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.720, "sum" : 310.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 310.00, "total" : 310.00, "payments": [ { "type": 0, "sum" : 310.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:01:15]execute_script... [18:01: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)459150", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.720, "sum" : 310.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 310.00, "total" : 310.00, "payments": [ { "type": 0, "sum" : 310.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:01:15]POST & json_proto [18:01:15]process_json_proto [18:01:15]json parsed OK: [18:01:15]protocol is kg_v1.0 [18:01:15]action value=close_receipt [18:01:15]process_action close_receipt [18:01:15]cmd_close_receipt [18:01:15]MH_GetDate [18:01:15]Write to MH i2c: F0 00 00 47 03 39 [18:01:15]Write i2c OK [18:01:15]MH_I2C_Read... [18:01:15]Read from MH i2c: F0 [18:01:15]MH_I2C_Read... [18:01:15]Read from MH i2c: F0 09 00 [18:01:15]MH_I2C_Read... [18:01:15]Read from MH i2c: F0 09 00 47 03 00 6C 12 94 66 C9 DC B2 64 75 [18:01:15]GetLastDocTimeStamp 1720979580 [18:01:15]current date 1720980076 [18:01:15]FM_GetShiftState [18:01:15]SAM_PROTO_GetShiftState [18:01:15]wFMCommunicate request_size=4 [18:01:15]MH_SAM_APDU [18:01:15]CAPDU: 80 13 01 00 [18:01:15]Write to MH i2c: E2 08 00 48 03 80 13 01 00 00 00 00 00 C8 [18:01:15]Write i2c OK [18:01:15]MH_I2C_Read... [18:01:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:15]Read from MH i2c: E2 [18:01:15]MH_I2C_Read... [18:01:15]Read from MH i2c: E2 0E 00 [18:01:15]MH_I2C_Read... [18:01:15]Read from MH i2c: E2 0E 00 48 03 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 48 [18:01:15]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [18:01:15]wFMCommunicate OK [18:01:15]SAM_PROTO_GetShiftState done [18:01:15]FM_GetShiftState done [18:01:15]opened in 1720917342 [18:01:15]opened+sec_in_day 1721003742 [18:01:15]quantity*price = 31057 [18:01:15]sum+1 = 31059 [18:01:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.58 ИТОГО: 310.00 Внесено: 310.00 СДАЧА: 0.00 НСП 1% : 2.75 НДС 12% : 32.98 Наличными: 310.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 247 14.07.2024 18:01 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165049 ФПД: 281069896913291 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T180116&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165049&fm=281069896913291&tin=02508201610067®Number=0000000000090829&sum=31000 [18:01:16]StoreToDocumentArchive [18:01:16]shift 447 fd 165049 [18:01:16]save to /storage/0447/doc_00165049 [18:01:16]save last doc name /storage/0447/doc_00165049 to /storage/kkm_last_doc_name [18:01:16]save OK [18:01:16]Clear old archive folders... [18:01:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:01:16]tlvbuf is 01F4FDA0 [18:01:16]SAM_PROTO_ClearQueue [18:01:16]wFMCommunicate request_size=4 [18:01:16]MH_SAM_APDU [18:01:16]CAPDU: 80 09 00 00 [18:01:16]Write to MH i2c: E2 08 00 55 03 80 09 00 00 00 00 00 00 CA [18:01:16]Write i2c OK [18:01:16]MH_I2C_Read... [18:01:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:01:16]Read from MH i2c: E2 [18:01:16]MH_I2C_Read... [18:01:16]Read from MH i2c: E2 03 00 [18:01:16]MH_I2C_Read... [18:01:16]Read from MH i2c: E2 03 00 55 03 00 90 00 CC [18:01:16]RAPDU: 90 00 [18:01:16]wFMCommunicate OK [18:01:16]SAM_PROTO_ClearQueue done [18:01:16]KKMCreateOFDPacket [18:01:16]OFDProtocolAddRootSTLVToBuf [18:01:16]FM_MakeSignedData [18:01:16]FM_MakeSignedData [18:01:16]SAM_PROTO_SignData [18:01:16]wFMCommunicate request_size=4 [18:01:16]MH_SAM_APDU [18:01:16]CAPDU: 80 0D 01 02 [18:01:16]Write to MH i2c: E2 08 00 56 03 80 0D 01 02 00 00 00 00 D2 [18:01:16]Write i2c OK [18:01:16]MH_I2C_Read... [18:01:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:01:17]Read from MH i2c: E2 [18:01:17]MH_I2C_Read... [18:01:17]Read from MH i2c: E2 03 00 [18:01:17]MH_I2C_Read... [18:01:17]Read from MH i2c: E2 03 00 56 03 00 90 00 CD [18:01:17]RAPDU: 90 00 [18:01:17]wFMCommunicate OK [18:01:17]wFMCommunicate request_size=255 [18:01:17]MH_SAM_APDU [18:01:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 70 12 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 52 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 6C 12 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B9 84 02 00 35 04 06 00 FF [18:01:17]Write to MH i2c: E2 02 01 57 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 70 12 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 52 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 6C 12 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B9 84 02 00 35 04 06 00 FF 00 00 8D [18:01:17]Write i2c OK [18:01:17]MH_I2C_Read... [18:01:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:17]Read from MH i2c: E2 [18:01:17]MH_I2C_Read... [18:01:17]Read from MH i2c: E2 03 00 [18:01:17]MH_I2C_Read... [18:01:17]Read from MH i2c: E2 03 00 57 03 00 90 00 CE [18:01:17]RAPDU: 90 00 [18:01:17]wFMCommunicate OK [18:01:17]wFMCommunicate request_size=10 [18:01:17]MH_SAM_APDU [18:01:17]CAPDU: 80 0D 02 02 05 A1 AF 5C D1 8B [18:01:17]Write to MH i2c: E2 0D 00 58 03 80 0D 02 02 05 00 A1 AF 5C D1 8B 00 00 E7 [18:01:17]Write i2c OK [18:01:17]MH_I2C_Read... [18:01:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:17]Read from MH i2c: E2 [18:01:17]MH_I2C_Read... [18:01:17]Read from MH i2c: E2 03 00 [18:01:17]MH_I2C_Read... [18:01:17]Read from MH i2c: E2 03 00 58 03 00 90 00 CF [18:01:17]RAPDU: 90 00 [18:01:17]wFMCommunicate OK [18:01:17]wFMCommunicate request_size=4 [18:01:17]MH_SAM_APDU [18:01:17]CAPDU: 80 0D 03 02 [18:01:17]Write to MH i2c: E2 08 00 59 03 80 0D 03 02 00 00 00 00 D7 [18:01:17]Write i2c OK [18:01:17]MH_I2C_Read... [18:01:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:01:17]Read from MH i2c: E2 [18:01:17]MH_I2C_Read... [18:01:17]Read from MH i2c: E2 0B 00 [18:01:17]MH_I2C_Read... [18:01:17]Read from MH i2c: E2 0B 00 59 03 00 CE CC BA 2A 46 40 77 06 90 00 59 [18:01:17]RAPDU: CE CC BA 2A 46 40 77 06 90 00 [18:01:17]wFMCommunicate OK [18:01:17]SAM_PROTO_SignData done [18:01:17]FM_MakeSignedData done [18:01:17]CreateOFDProtocolMessage [18:01:17]wFMCommunicate request_size=4 [18:01:17]MH_SAM_APDU [18:01:17]CAPDU: 80 11 00 00 [18:01:17]Write to MH i2c: E2 08 00 5A 03 80 11 00 00 00 00 00 00 D7 [18:01:17]Write i2c OK [18:01:17]MH_I2C_Read... [18:01:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:17]Read from MH i2c: E2 [18:01:17]MH_I2C_Read... [18:01:17]Read from MH i2c: E2 17 00 [18:01:17]MH_I2C_Read... [18:01:17]Read from MH i2c: E2 17 00 5A 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 2D [18:01:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:01:17]wFMCommunicate OK [18:01:17]CreateOFDProtocolMessage done [18:01:17]OFDSenderStorePacket 165049 [18:01:17]StoreOFDPacket docnum=165049 [18:01:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 EA D3 07 01 E2 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 70 12 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 52 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 6C 12 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B9 84 02 00 35 04 06 00 FF A1 AF 5C D1 8B CE CC BA 2A 46 40 77 06 [18:01:17]CheckFolder [18:01:17]dirname=/storage/ofd_packets [18:01:17]CheckFolder done [18:01:17]ProducePacketName [18:01:17]name=ofd_packets/00165049 [18:01:17]NVStorageSaveData ofd_packets/00165049 [18:01:17]File name is /storage/ofd_packets/00165049 [18:01:17]Write 301 bytes [18:01:17]NVStorageSaveData done [18:01:17]OFDSenderStorePacket done [18:01:17]KKMCreateOFDPacket done [18:01:17]NVStorageSaveData kkm_last_timestamp [18:01:17]File name is /storage/kkm_last_timestamp [18:01:17]Write 4 bytes [18:01:17]NVStorageSaveData done [18:01:17]ExternCall_PrintAddStr [18:01:17]wPrintStart [18:01:17]Write to MH i2c: 01 00 00 5B 03 5E [18:01:17]Write i2c OK [18:01:17]MH_I2C_Read... [18:01:17]Read from MH i2c: 01 [18:01:17]MH_I2C_Read... [18:01:17]Read from MH i2c: 01 07 00 [18:01:17]MH_I2C_Read... [18:01:17]Read from MH i2c: 01 07 00 5B 03 00 00 00 00 00 FF 0F 73 [18:01:17]RasterBufferAndPrint [18:01:17]line Счет N : (1)459150 [18:01:17]line ИНН: 02508201610067 [18:01:17]line Контрольно-Кассовый Чек [18:01:17]line ПРОДАЖА [18:01:17]line ТРК (МРК, ГНК) : 22 [18:01:17]line Товар: 2710124130 [18:01:17]line Аи-92-К-5 [18:01:17]line 4.720 * 65.80 [18:01:17]line = 310.58 [18:01:17]line НДС 12% НСП 1% [18:01:17]line > о реализуемом товаре [18:01:17]line ОКРУГЛЕНИЕ: -0.58 [18:01:17]line ИТОГО: 310.00 [18:01:17]line Внесено: 310.00 [18:01:17]line СДАЧА: 0.00 [18:01:17]line НСП 1% : 2.75 [18:01:17]line НДС 12% : 32.98 [18:01:17]line Наличными: 310.00 [18:01:17]line Безнал.: 0.00 [18:01:17]line Место: АЗС № 72 "Партнер Нефть" [18:01:17]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [18:01:17]line СНО: Общий режим [18:01:17]line Чек 247 14.07.2024 18:01 [18:01:17]line Смена: 447 ФФД: 1.0 [18:01:17]line ЗНМ: 0300000160 [18:01:17]line РНМ: 0000000000090829 [18:01:17]line Версия ККМ: 001 [18:01:17]line ФМ: 0000000000874718 [18:01:17]line ФД: 165049 [18:01:17]line ФПД: 281069896913291 [18:01:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T180116&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165049&fm=281069896913291&tin=02508201610067®Number=0000000000090829&sum=31000 [18:01:17]OFD Sender: Processing packet 165049 [packets to send 105, broken 104] [18:01:17]ProducePacketName [18:01:17]name=ofd_packets/00165049 [18:01:17]OFD Sender: To server: pG, [18:01:17]CommunicateWithHost lk.salyk.kg:30040 [18:01:17]ConnectInit lk.salyk.kg [18:01:17]written 0, free lines is 4095 [18:01:17]Connected sock=9 [18:01:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 EA D3 07 01 E2 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 70 12 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 52 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 6C 12 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B9 84 02 00 35 04 06 00 FF A1 AF 5C D1 8B CE CC BA 2A 46 40 77 06 [18:01:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 69 66 47 00 B0 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 38 37 34 37 31 38 10 04 04 00 B9 84 02 00 F4 03 04 00 F9 B8 93 66 B6 04 01 00 00 D6 4D 59 F3 5F 44 06 CE [18:01:18]CommunicateWithHost err = 0 [18:01:18]CheckOFDResponse [18:01:18]1017 (14) - 77093643461234 [18:01:18]1041 (16) - 0000000000874718 [18:01:18]1040 (4) - 165049 [18:01:18]1012 (4) - 14.07.2024 11:39 [18:01:18]1206 (1) - 0 [18:01:18]OFD Sender: Remove packet 165049 [18:01:18]ProducePacketName [18:01:18]name=ofd_packets/00165049 [18:01:18]NVStorageDeleteData [18:01:18]Write to MH i2c: 01 00 00 85 03 88 [18:01:18]Write i2c OK [18:01:18]MH_I2C_Read... [18:01:18]Read from MH i2c: 01 [18:01:18]MH_I2C_Read... [18:01:18]Read from MH i2c: 01 07 00 [18:01:18]MH_I2C_Read... [18:01:18]Read from MH i2c: 01 07 00 85 03 00 00 00 00 00 FB 0C 96 [18:01:18]RasterBufferAndPrint [18:01:18]line [18:01:18]line [18:01:18]line [18:01:18]line [18:01:18]line [18:01:18]written 0, free lines is 3329 [18:01:18]MH_Cut [18:01:18]Write to MH i2c: D1 01 00 8C 03 01 61 [18:01:18]Write i2c OK [18:01:18]MH_I2C_Read... [18:01:18]Read from MH i2c: D1 [18:01:18]MH_I2C_Read... [18:01:18]Read from MH i2c: D1 01 00 [18:01:18]MH_I2C_Read... [18:01:18]Read from MH i2c: D1 01 00 8C 03 00 60 [18:01:18]Write to MH i2c: 01 00 00 8D 03 90 [18:01:18]Write i2c OK [18:01:18]MH_I2C_Read... [18:01:18]OFD Sender: No OFD packet to send [18:01:18]*** Cut start [18:01:18]*** Partial cut [18:01:18]*** CUTSNS_PIN = 1 [18:01:18]*** CUTSNS_PIN = 0 [18:01:19]*** Brake cut motor [18:01:19]Read from MH i2c: 01 [18:01:19]MH_I2C_Read... [18:01:19]*** Stop cut motor [18:01:19]*** Cut end [18:01:19]Read from MH i2c: 01 07 00 [18:01:19]MH_I2C_Read... [18:01:19]Read from MH i2c: 01 07 00 8D 03 00 00 00 00 00 FF 0F A5 [18:01:19]process_action close_receipt done [18:01:19]requested_data is exist [18:01:19]produce_requested_data [18:01:19]requested_item fm.sn is exist - process it [18:01:19]wFMCommunicate request_size=4 [18:01:19]MH_SAM_APDU [18:01:19]CAPDU: 80 11 00 00 [18:01:19]Write to MH i2c: E2 08 00 8E 03 80 11 00 00 00 00 00 00 0B [18:01:19]Write i2c OK [18:01:19]MH_I2C_Read... [18:01:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:19]Read from MH i2c: E2 [18:01:19]MH_I2C_Read... [18:01:19]Read from MH i2c: E2 17 00 [18:01:19]MH_I2C_Read... [18:01:19]Read from MH i2c: E2 17 00 8E 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 61 [18:01:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:01:19]wFMCommunicate OK [18:01:19]requested_item fd.num is exist - process it [18:01:19]SAM_PROTO_GetFieldsCounters [18:01:19]wFMCommunicate request_size=4 [18:01:19]MH_SAM_APDU [18:01:19]CAPDU: 80 13 00 00 [18:01:19]Write to MH i2c: E2 08 00 8F 03 80 13 00 00 00 00 00 00 0E [18:01:19]Write i2c OK [18:01:19]MH_I2C_Read... [18:01:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:01:19]Read from MH i2c: E2 [18:01:19]MH_I2C_Read... [18:01:19]Read from MH i2c: E2 62 00 [18:01:19]MH_I2C_Read... [18:01:19]Read from MH i2c: E2 62 00 8F 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B9 84 02 00 0E 04 04 00 BF 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 19 [18:01:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B9 84 02 00 0E 04 04 00 BF 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 [18:01:19]wFMCommunicate OK [18:01:19]SAM_PROTO_GetFieldsCounters done [18:01:19]requested_item shift.num is exist - process it [18:01:19]requested_item shift.opened is exist - process it [18:01:19]req_shift_opened [18:01:19]FM_GetShiftState [18:01:19]SAM_PROTO_GetShiftState [18:01:19]wFMCommunicate request_size=4 [18:01:19]MH_SAM_APDU [18:01:19]CAPDU: 80 13 01 00 [18:01:19]Write to MH i2c: E2 08 00 90 03 80 13 01 00 00 00 00 00 10 [18:01:19]Write i2c OK [18:01:19]MH_I2C_Read... [18:01:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:19]Read from MH i2c: E2 [18:01:19]MH_I2C_Read... [18:01:19]Read from MH i2c: E2 0E 00 [18:01:19]MH_I2C_Read... [18:01:19]Read from MH i2c: E2 0E 00 90 03 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 90 [18:01:19]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [18:01:19]wFMCommunicate OK [18:01:19]SAM_PROTO_GetShiftState done [18:01:19]FM_GetShiftState done [18:01:19]req_shift_opened done [18:01:19]requested_item shift.open_date is exist - process it [18:01:19]req_shift_open_date [18:01:19]req_shift_open_date done [18:01:19]produce_requested_data done [18:01:19]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165049,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [18:01:19]process_action_free close_receipt [18:01:19]json_value_free [18:01:19]json_value_free done [18:01:19]process_json_proto returns [18:01:19]Send response to host [18:01:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165049,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [18:01:19]free response buf [18:01:19]execute_script done [18:01:19]execute_script returns [18:01:19]free content buf [18:01:19]Sock 7.Close socket [18:01:19]Sock 7.Thread stoped [18:01:23]OFD Sender: No OFD packet to send [18:01:28]OFD Sender: No OFD packet to send [18:01:33]OFD Sender: No OFD packet to send [18:01:38]OFD Sender: No OFD packet to send [18:01:43]OFD Sender: No OFD packet to send [18:01:48]OFD Sender: No OFD packet to send [18:01:53]OFD Sender: No OFD packet to send [18:01:58]OFD Sender: No OFD packet to send [18:02:03]OFD Sender: No OFD packet to send [18:02:08]OFD Sender: No OFD packet to send [18:02:13]OFD Sender: No OFD packet to send [18:02:18]OFD Sender: No OFD packet to send [18:02:23]OFD Sender: No OFD packet to send [18:02:28]OFD Sender: No OFD packet to send [18:02:33]OFD Sender: No OFD packet to send [18:02:38]OFD Sender: No OFD packet to send [18:02:43]OFD Sender: No OFD packet to send [18:02:48]OFD Sender: No OFD packet to send [18:02:53]OFD Sender: No OFD packet to send [18:02:58]OFD Sender: No OFD packet to send [18:03:03]OFD Sender: No OFD packet to send [18:03:08]OFD Sender: No OFD packet to send [18:03:13]OFD Sender: No OFD packet to send [18:03:18]OFD Sender: No OFD packet to send [18:03:23]OFD Sender: No OFD packet to send [18:03:28]OFD Sender: No OFD packet to send [18:03:33]OFD Sender: No OFD packet to send [18:03:38]OFD Sender: No OFD packet to send [18:03:41]accept exits with 10 [18:03:41]New connection [18:03:41]New thread 3067526500 created [18:03:41]Thread 3067383140 joined [18:03:41]Waiting for new connection... [18:03:41] Sock 10.Parse request [18:03:41]Sock 10.Check first char [18:03:41]Sock 10.First char is OK [18:03:41]request: POST /json_proto HTTP/1.0 [18:03:41]Method: POST [18:03:41]URL: /json_proto [18:03:41]Method is POST - this is cgi request [18:03:41]url: /json_proto [18:03:41]query_string will be loaded in cgi processing [18:03:41]execute_cgi json_proto POST (null) [18:03:41]execute_cgi path=json_proto method=POST [18:03:41]POST find Content-Length [18:03:41]Host: 172.17.56.4:8080 [18:03:41]Content-Length: 679 [18:03:41]Content-Type: application/json [18:03:41] [18:03:41]POST finish read [18:03:41]Found Content-Length = 679 [18:03:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459151", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:03:41]execute_script... [18:03: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)459151", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:03:41]POST & json_proto [18:03:41]process_json_proto [18:03:41]json parsed OK: [18:03:41]protocol is kg_v1.0 [18:03:41]action value=close_receipt [18:03:41]process_action close_receipt [18:03:41]cmd_close_receipt [18:03:41]MH_GetDate [18:03:41]Write to MH i2c: F0 00 00 91 03 83 [18:03:41]Write i2c OK [18:03:41]MH_I2C_Read... [18:03:41]Read from MH i2c: F0 [18:03:41]MH_I2C_Read... [18:03:41]Read from MH i2c: F0 09 00 [18:03:41]MH_I2C_Read... [18:03:41]Read from MH i2c: F0 09 00 91 03 00 FD 12 94 66 C9 DC B2 64 50 [18:03:41]GetLastDocTimeStamp 1720980076 [18:03:41]current date 1720980221 [18:03:41]FM_GetShiftState [18:03:41]SAM_PROTO_GetShiftState [18:03:41]wFMCommunicate request_size=4 [18:03:41]MH_SAM_APDU [18:03:41]CAPDU: 80 13 01 00 [18:03:41]Write to MH i2c: E2 08 00 92 03 80 13 01 00 00 00 00 00 12 [18:03:41]Write i2c OK [18:03:41]MH_I2C_Read... [18:03:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:41]Read from MH i2c: E2 [18:03:41]MH_I2C_Read... [18:03:41]Read from MH i2c: E2 0E 00 [18:03:41]MH_I2C_Read... [18:03:41]Read from MH i2c: E2 0E 00 92 03 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 92 [18:03:41]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [18:03:41]wFMCommunicate OK [18:03:41]SAM_PROTO_GetShiftState done [18:03:41]FM_GetShiftState done [18:03:41]opened in 1720917342 [18:03:41]opened+sec_in_day 1721003742 [18:03:41]quantity*price = 100012 [18:03:41]sum+1 = 100014 [18:03:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 248 14.07.2024 18:03 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165050 ФПД: 216755005351550 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T180341&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165050&fm=216755005351550&tin=02508201610067®Number=0000000000090829&sum=100000 [18:03:42]StoreToDocumentArchive [18:03:42]shift 447 fd 165050 [18:03:42]save to /storage/0447/doc_00165050 [18:03:42]save last doc name /storage/0447/doc_00165050 to /storage/kkm_last_doc_name [18:03:42]save OK [18:03:42]Clear old archive folders... [18:03:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:03:42]tlvbuf is 01F4F1A0 [18:03:42]SAM_PROTO_ClearQueue [18:03:42]wFMCommunicate request_size=4 [18:03:42]MH_SAM_APDU [18:03:42]CAPDU: 80 09 00 00 [18:03:42]Write to MH i2c: E2 08 00 9F 03 80 09 00 00 00 00 00 00 14 [18:03:42]Write i2c OK [18:03:42]MH_I2C_Read... [18:03:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:03:42]Read from MH i2c: E2 [18:03:42]MH_I2C_Read... [18:03:42]Read from MH i2c: E2 03 00 [18:03:42]MH_I2C_Read... [18:03:42]Read from MH i2c: E2 03 00 9F 03 00 90 00 16 [18:03:42]RAPDU: 90 00 [18:03:42]wFMCommunicate OK [18:03:42]SAM_PROTO_ClearQueue done [18:03:42]KKMCreateOFDPacket [18:03:42]OFDProtocolAddRootSTLVToBuf [18:03:42]FM_MakeSignedData [18:03:42]FM_MakeSignedData [18:03:42]SAM_PROTO_SignData [18:03:42]wFMCommunicate request_size=4 [18:03:42]MH_SAM_APDU [18:03:42]CAPDU: 80 0D 01 02 [18:03:42]Write to MH i2c: E2 08 00 A0 03 80 0D 01 02 00 00 00 00 1C [18:03:42]Write i2c OK [18:03:42]MH_I2C_Read... [18:03:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:03:42]Read from MH i2c: E2 [18:03:42]MH_I2C_Read... [18:03:42]Read from MH i2c: E2 03 00 [18:03:42]MH_I2C_Read... [18:03:42]Read from MH i2c: E2 03 00 A0 03 00 90 00 17 [18:03:42]RAPDU: 90 00 [18:03:42]wFMCommunicate OK [18:03:42]wFMCommunicate request_size=255 [18:03:42]MH_SAM_APDU [18:03: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 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 FD 12 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BA 84 02 00 35 04 06 00 C5 23 35 18 [18:03:42]Write to MH i2c: E2 02 01 A1 03 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 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 FD 12 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BA 84 02 00 35 04 06 00 C5 23 35 18 00 00 13 [18:03:42]Write i2c OK [18:03:42]MH_I2C_Read... [18:03:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:42]Read from MH i2c: E2 [18:03:42]MH_I2C_Read... [18:03:42]Read from MH i2c: E2 03 00 [18:03:42]MH_I2C_Read... [18:03:42]Read from MH i2c: E2 03 00 A1 03 00 90 00 18 [18:03:42]RAPDU: 90 00 [18:03:42]wFMCommunicate OK [18:03:42]wFMCommunicate request_size=7 [18:03:42]MH_SAM_APDU [18:03:42]CAPDU: 80 0D 02 02 02 E6 7E [18:03:42]Write to MH i2c: E2 0A 00 A2 03 80 0D 02 02 02 00 E6 7E 00 00 87 [18:03:42]Write i2c OK [18:03:42]MH_I2C_Read... [18:03:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:42]Read from MH i2c: E2 [18:03:42]MH_I2C_Read... [18:03:42]Read from MH i2c: E2 03 00 [18:03:42]MH_I2C_Read... [18:03:42]Read from MH i2c: E2 03 00 A2 03 00 90 00 19 [18:03:42]RAPDU: 90 00 [18:03:42]wFMCommunicate OK [18:03:42]wFMCommunicate request_size=4 [18:03:42]MH_SAM_APDU [18:03:42]CAPDU: 80 0D 03 02 [18:03:42]Write to MH i2c: E2 08 00 A3 03 80 0D 03 02 00 00 00 00 21 [18:03:42]Write i2c OK [18:03:42]MH_I2C_Read... [18:03:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:03:42]Read from MH i2c: E2 [18:03:42]MH_I2C_Read... [18:03:42]Read from MH i2c: E2 0B 00 [18:03:42]MH_I2C_Read... [18:03:42]Read from MH i2c: E2 0B 00 A3 03 00 3F B5 17 30 0A 7D 15 F6 90 00 EF [18:03:42]RAPDU: 3F B5 17 30 0A 7D 15 F6 90 00 [18:03:42]wFMCommunicate OK [18:03:42]SAM_PROTO_SignData done [18:03:42]FM_MakeSignedData done [18:03:42]CreateOFDProtocolMessage [18:03:42]wFMCommunicate request_size=4 [18:03:42]MH_SAM_APDU [18:03:42]CAPDU: 80 11 00 00 [18:03:42]Write to MH i2c: E2 08 00 A4 03 80 11 00 00 00 00 00 00 21 [18:03:42]Write i2c OK [18:03:42]MH_I2C_Read... [18:03:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:42]Read from MH i2c: E2 [18:03:42]MH_I2C_Read... [18:03:42]Read from MH i2c: E2 17 00 [18:03:42]MH_I2C_Read... [18:03:42]Read from MH i2c: E2 17 00 A4 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 77 [18:03:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:03:42]wFMCommunicate OK [18:03:42]CreateOFDProtocolMessage done [18:03:42]OFDSenderStorePacket 165050 [18:03:42]StoreOFDPacket docnum=165050 [18:03:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 E1 53 04 01 C5 81 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 FD 12 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BA 84 02 00 35 04 06 00 C5 23 35 18 E6 7E 3F B5 17 30 0A 7D 15 F6 [18:03:42]CheckFolder [18:03:42]dirname=/storage/ofd_packets [18:03:42]CheckFolder done [18:03:42]ProducePacketName [18:03:42]name=ofd_packets/00165050 [18:03:42]NVStorageSaveData ofd_packets/00165050 [18:03:42]File name is /storage/ofd_packets/00165050 [18:03:42]Write 298 bytes [18:03:42]NVStorageSaveData done [18:03:42]OFDSenderStorePacket done [18:03:42]KKMCreateOFDPacket done [18:03:42]NVStorageSaveData kkm_last_timestamp [18:03:42]File name is /storage/kkm_last_timestamp [18:03:42]Write 4 bytes [18:03:42]NVStorageSaveData done [18:03:42]ExternCall_PrintAddStr [18:03:42]wPrintStart [18:03:42]Write to MH i2c: 01 00 00 A5 03 A8 [18:03:42]Write i2c OK [18:03:42]MH_I2C_Read... [18:03:42]Read from MH i2c: 01 [18:03:42]MH_I2C_Read... [18:03:42]Read from MH i2c: 01 07 00 [18:03:42]MH_I2C_Read... [18:03:42]Read from MH i2c: 01 07 00 A5 03 00 00 00 00 00 FF 0F BD [18:03:42]RasterBufferAndPrint [18:03:42]line Счет N : (1)459151 [18:03:42]line ИНН: 02508201610067 [18:03:42]line Контрольно-Кассовый Чек [18:03:42]line ПРОДАЖА [18:03:42]line ТРК (МРК, ГНК) : 21 [18:03:42]line Товар: 2710194210 [18:03:42]line ДТ-К-5 [18:03:42]line 13.910 * 71.90 [18:03:42]line = 1000.13 [18:03:42]line НДС 12% НСП 1% [18:03:42]line > о реализуемом товаре [18:03:42]line ОКРУГЛЕНИЕ: -0.13 [18:03:42]line ИТОГО: 1000.00 [18:03:42]line Внесено: 1000.00 [18:03:42]line СДАЧА: 0.00 [18:03:42]line НСП 1% : 8.85 [18:03:42]line НДС 12% : 106.21 [18:03:42]line Наличными: 1000.00 [18:03:42]line Безнал.: 0.00 [18:03:42]line Место: АЗС № 72 "Партнер Нефть" [18:03:42]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [18:03:42]line СНО: Общий режим [18:03:42]line Чек 248 14.07.2024 18:03 [18:03:42]line Смена: 447 ФФД: 1.0 [18:03:42]line ЗНМ: 0300000160 [18:03:42]line РНМ: 0000000000090829 [18:03:42]line Версия ККМ: 001 [18:03:42]line ФМ: 0000000000874718 [18:03:42]line ФД: 165050 [18:03:42]line ФПД: 216755005351550 [18:03:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T180341&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165050&fm=216755005351550&tin=02508201610067®Number=0000000000090829&sum=100000 [18:03:43]OFD Sender: Processing packet 165050 [packets to send 105, broken 104] [18:03:43]ProducePacketName [18:03:43]name=ofd_packets/00165050 [18:03:43]OFD Sender: To server: pG, [18:03:43]CommunicateWithHost lk.salyk.kg:30040 [18:03:43]ConnectInit lk.salyk.kg [18:03:43]written 0, free lines is 4095 [18:03:43]Connected sock=9 [18:03:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 E1 53 04 01 C5 81 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 FD 12 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BA 84 02 00 35 04 06 00 C5 23 35 18 E6 7E 3F B5 17 30 0A 7D 15 F6 [18:03:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 AB AD 47 00 5A 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BA 84 02 00 F4 03 04 00 8A B9 93 66 B6 04 01 00 00 77 F9 AA AA 85 FF 75 61 [18:03:43]CommunicateWithHost err = 0 [18:03:43]CheckOFDResponse [18:03:43]1017 (14) - 77093643461234 [18:03:43]1041 (16) - 0000000000874718 [18:03:43]1040 (4) - 165050 [18:03:43]1012 (4) - 14.07.2024 11:42 [18:03:43]1206 (1) - 0 [18:03:43]OFD Sender: Remove packet 165050 [18:03:43]ProducePacketName [18:03:43]name=ofd_packets/00165050 [18:03:43]NVStorageDeleteData [18:03:43]Write to MH i2c: 01 00 00 CF 03 D2 [18:03:43]Write i2c OK [18:03:43]MH_I2C_Read... [18:03:43]Read from MH i2c: 01 [18:03:43]MH_I2C_Read... [18:03:43]Read from MH i2c: 01 07 00 [18:03:43]MH_I2C_Read... [18:03:43]Read from MH i2c: 01 07 00 CF 03 00 00 00 00 00 EC 0C D1 [18:03:43]RasterBufferAndPrint [18:03:43]line [18:03:43]line [18:03:43]line [18:03:43]line [18:03:43]line [18:03:43]written 0, free lines is 3315 [18:03:43]MH_Cut [18:03:43]Write to MH i2c: D1 01 00 D6 03 01 AB [18:03:43]Write i2c OK [18:03:43]MH_I2C_Read... [18:03:43]Read from MH i2c: D1 [18:03:43]MH_I2C_Read... [18:03:43]Read from MH i2c: D1 01 00 [18:03:43]MH_I2C_Read... [18:03:43]Read from MH i2c: D1 01 00 D6 03 00 AA [18:03:43]Write to MH i2c: 01 00 00 D7 03 DA [18:03:43]Write i2c OK [18:03:43]MH_I2C_Read... [18:03:44]OFD Sender: No OFD packet to send [18:03:44]*** Cut start [18:03:44]*** Partial cut [18:03:44]*** CUTSNS_PIN = 1 [18:03:44]*** CUTSNS_PIN = 0 [18:03:44]*** Brake cut motor [18:03:44]Read from MH i2c: 01 [18:03:44]MH_I2C_Read... [18:03:44]*** Stop cut motor [18:03:44]*** Cut end [18:03:44]Read from MH i2c: 01 07 00 [18:03:44]MH_I2C_Read... [18:03:44]Read from MH i2c: 01 07 00 D7 03 00 00 00 00 00 FF 0F EF [18:03:44]process_action close_receipt done [18:03:44]requested_data is exist [18:03:44]produce_requested_data [18:03:44]requested_item fm.sn is exist - process it [18:03:44]wFMCommunicate request_size=4 [18:03:44]MH_SAM_APDU [18:03:44]CAPDU: 80 11 00 00 [18:03:44]Write to MH i2c: E2 08 00 D8 03 80 11 00 00 00 00 00 00 55 [18:03:44]Write i2c OK [18:03:44]MH_I2C_Read... [18:03:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:44]Read from MH i2c: E2 [18:03:44]MH_I2C_Read... [18:03:44]Read from MH i2c: E2 17 00 [18:03:44]MH_I2C_Read... [18:03:44]Read from MH i2c: E2 17 00 D8 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 AB [18:03:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:03:44]wFMCommunicate OK [18:03:44]requested_item fd.num is exist - process it [18:03:44]SAM_PROTO_GetFieldsCounters [18:03:44]wFMCommunicate request_size=4 [18:03:44]MH_SAM_APDU [18:03:44]CAPDU: 80 13 00 00 [18:03:44]Write to MH i2c: E2 08 00 D9 03 80 13 00 00 00 00 00 00 58 [18:03:44]Write i2c OK [18:03:44]MH_I2C_Read... [18:03:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:03:45]Read from MH i2c: E2 [18:03:45]MH_I2C_Read... [18:03:45]Read from MH i2c: E2 62 00 [18:03:45]MH_I2C_Read... [18:03:45]Read from MH i2c: E2 62 00 D9 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 BA 84 02 00 0E 04 04 00 BF 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 67 [18:03:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 BA 84 02 00 0E 04 04 00 BF 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 [18:03:45]wFMCommunicate OK [18:03:45]SAM_PROTO_GetFieldsCounters done [18:03:45]requested_item shift.num is exist - process it [18:03:45]requested_item shift.opened is exist - process it [18:03:45]req_shift_opened [18:03:45]FM_GetShiftState [18:03:45]SAM_PROTO_GetShiftState [18:03:45]wFMCommunicate request_size=4 [18:03:45]MH_SAM_APDU [18:03:45]CAPDU: 80 13 01 00 [18:03:45]Write to MH i2c: E2 08 00 DA 03 80 13 01 00 00 00 00 00 5A [18:03:45]Write i2c OK [18:03:45]MH_I2C_Read... [18:03:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:45]Read from MH i2c: E2 [18:03:45]MH_I2C_Read... [18:03:45]Read from MH i2c: E2 0E 00 [18:03:45]MH_I2C_Read... [18:03:45]Read from MH i2c: E2 0E 00 DA 03 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 DA [18:03:45]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [18:03:45]wFMCommunicate OK [18:03:45]SAM_PROTO_GetShiftState done [18:03:45]FM_GetShiftState done [18:03:45]req_shift_opened done [18:03:45]requested_item shift.open_date is exist - process it [18:03:45]req_shift_open_date [18:03:45]req_shift_open_date done [18:03:45]produce_requested_data done [18:03:45]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165050,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [18:03:45]process_action_free close_receipt [18:03:45]json_value_free [18:03:45]json_value_free done [18:03:45]process_json_proto returns [18:03:45]Send response to host [18:03:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165050,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [18:03:45]free response buf [18:03:45]execute_script done [18:03:45]execute_script returns [18:03:45]free content buf [18:03:45]Sock 10.Close socket [18:03:45]Sock 10.Thread stoped [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:14]OFD Sender: No OFD packet to send [18:04:19]OFD Sender: No OFD packet to send [18:04:24]OFD Sender: No OFD packet to send [18:04:29]OFD Sender: No OFD packet to send [18:04:34]OFD Sender: No OFD packet to send [18:04:39]OFD Sender: No OFD packet to send [18:04:44]OFD Sender: No OFD packet to send [18:04:49]OFD Sender: No OFD packet to send [18:04:54]OFD Sender: No OFD packet to send [18:04:59]OFD Sender: No OFD packet to send [18:05:04]OFD Sender: No OFD packet to send [18:05:09]OFD Sender: No OFD packet to send [18:05:14]OFD Sender: No OFD packet to send [18:05:19]OFD Sender: No OFD packet to send [18:05:24]OFD Sender: No OFD packet to send [18:05:29]OFD Sender: No OFD packet to send [18:05:34]OFD Sender: No OFD packet to send [18:05:39]OFD Sender: No OFD packet to send [18:05:44]OFD Sender: No OFD packet to send [18:05:49]OFD Sender: No OFD packet to send [18:05:54]OFD Sender: No OFD packet to send [18:05:59]OFD Sender: No OFD packet to send [18:06:04]OFD Sender: No OFD packet to send [18:06:09]OFD Sender: No OFD packet to send [18:06:14]OFD Sender: No OFD packet to send [18:06:19]OFD Sender: No OFD packet to send [18:06:24]OFD Sender: No OFD packet to send [18:06:29]OFD Sender: No OFD packet to send [18:06:34]OFD Sender: No OFD packet to send [18:06:39]OFD Sender: No OFD packet to send [18:06:40]accept exits with 7 [18:06:40]New connection [18:06:40]New thread 3067383140 created [18:06:40]Thread 3067526500 joined [18:06:40]Waiting for new connection... [18:06:40] Sock 7.Parse request [18:06:40]Sock 7.Check first char [18:06:40]Sock 7.First char is OK [18:06:40]request: POST /json_proto HTTP/1.0 [18:06:40]Method: POST [18:06:40]URL: /json_proto [18:06:40]Method is POST - this is cgi request [18:06:40]url: /json_proto [18:06:40]query_string will be loaded in cgi processing [18:06:40]execute_cgi json_proto POST (null) [18:06:40]execute_cgi path=json_proto method=POST [18:06:40]POST find Content-Length [18:06:40]Host: 172.17.56.4:8080 [18:06:40]Content-Length: 677 [18:06:40]Content-Type: application/json [18:06:40] [18:06:40]POST finish read [18:06:40]Found Content-Length = 677 [18:06:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459152", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:06:40]execute_script... [18:06: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)459152", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:06:40]POST & json_proto [18:06:40]process_json_proto [18:06:40]json parsed OK: [18:06:40]protocol is kg_v1.0 [18:06:40]action value=close_receipt [18:06:40]process_action close_receipt [18:06:40]cmd_close_receipt [18:06:40]MH_GetDate [18:06:40]Write to MH i2c: F0 00 00 DB 03 CD [18:06:40]Write i2c OK [18:06:40]MH_I2C_Read... [18:06:40]Read from MH i2c: F0 [18:06:40]MH_I2C_Read... [18:06:40]Read from MH i2c: F0 09 00 [18:06:40]MH_I2C_Read... [18:06:40]Read from MH i2c: F0 09 00 DB 03 00 B0 13 94 66 C9 DC B2 64 4E [18:06:40]GetLastDocTimeStamp 1720980221 [18:06:40]current date 1720980400 [18:06:40]FM_GetShiftState [18:06:40]SAM_PROTO_GetShiftState [18:06:40]wFMCommunicate request_size=4 [18:06:40]MH_SAM_APDU [18:06:40]CAPDU: 80 13 01 00 [18:06:40]Write to MH i2c: E2 08 00 DC 03 80 13 01 00 00 00 00 00 5C [18:06:40]Write i2c OK [18:06:40]MH_I2C_Read... [18:06:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:06:40]Read from MH i2c: E2 [18:06:40]MH_I2C_Read... [18:06:40]Read from MH i2c: E2 0E 00 [18:06:40]MH_I2C_Read... [18:06:40]Read from MH i2c: E2 0E 00 DC 03 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 DC [18:06:40]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [18:06:40]wFMCommunicate OK [18:06:40]SAM_PROTO_GetShiftState done [18:06:40]FM_GetShiftState done [18:06:40]opened in 1720917342 [18:06:40]opened+sec_in_day 1721003742 [18:06:40]quantity*price = 20003 [18:06:40]sum+1 = 20004 [18:06:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 249 14.07.2024 18:06 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165051 ФПД: 175774047650099 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T180640&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165051&fm=175774047650099&tin=02508201610067®Number=0000000000090829&sum=20000 [18:06:41]StoreToDocumentArchive [18:06:41]shift 447 fd 165051 [18:06:41]save to /storage/0447/doc_00165051 [18:06:41]save last doc name /storage/0447/doc_00165051 to /storage/kkm_last_doc_name [18:06:41]save OK [18:06:41]Clear old archive folders... [18:06:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:06:41]tlvbuf is 01F3E1C0 [18:06:41]SAM_PROTO_ClearQueue [18:06:41]wFMCommunicate request_size=4 [18:06:41]MH_SAM_APDU [18:06:41]CAPDU: 80 09 00 00 [18:06:41]Write to MH i2c: E2 08 00 E9 03 80 09 00 00 00 00 00 00 5E [18:06:41]Write i2c OK [18:06:41]MH_I2C_Read... [18:06:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:06:41]Read from MH i2c: E2 [18:06:41]MH_I2C_Read... [18:06:41]Read from MH i2c: E2 03 00 [18:06:41]MH_I2C_Read... [18:06:41]Read from MH i2c: E2 03 00 E9 03 00 90 00 60 [18:06:41]RAPDU: 90 00 [18:06:41]wFMCommunicate OK [18:06:41]SAM_PROTO_ClearQueue done [18:06:41]KKMCreateOFDPacket [18:06:41]OFDProtocolAddRootSTLVToBuf [18:06:41]FM_MakeSignedData [18:06:41]FM_MakeSignedData [18:06:41]SAM_PROTO_SignData [18:06:41]wFMCommunicate request_size=4 [18:06:41]MH_SAM_APDU [18:06:41]CAPDU: 80 0D 01 02 [18:06:41]Write to MH i2c: E2 08 00 EA 03 80 0D 01 02 00 00 00 00 66 [18:06:41]Write i2c OK [18:06:41]MH_I2C_Read... [18:06:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:06:41]Read from MH i2c: E2 [18:06:41]MH_I2C_Read... [18:06:41]Read from MH i2c: E2 03 00 [18:06:41]MH_I2C_Read... [18:06:41]Read from MH i2c: E2 03 00 EA 03 00 90 00 61 [18:06:41]RAPDU: 90 00 [18:06:41]wFMCommunicate OK [18:06:41]wFMCommunicate request_size=255 [18:06:41]MH_SAM_APDU [18:06:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 F9 00 00 00 F4 03 04 00 B0 13 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BB 84 02 00 35 04 06 00 9F [18:06:41]Write to MH i2c: E2 02 01 EB 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 F9 00 00 00 F4 03 04 00 B0 13 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BB 84 02 00 35 04 06 00 9F 00 00 D6 [18:06:41]Write i2c OK [18:06:41]MH_I2C_Read... [18:06:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:06:42]Read from MH i2c: E2 [18:06:42]MH_I2C_Read... [18:06:42]Read from MH i2c: E2 03 00 [18:06:42]MH_I2C_Read... [18:06:42]Read from MH i2c: E2 03 00 EB 03 00 90 00 62 [18:06:42]RAPDU: 90 00 [18:06:42]wFMCommunicate OK [18:06:42]wFMCommunicate request_size=10 [18:06:42]MH_SAM_APDU [18:06:42]CAPDU: 80 0D 02 02 05 DD 95 AB C1 33 [18:06:42]Write to MH i2c: E2 0D 00 EC 03 80 0D 02 02 05 00 DD 95 AB C1 33 00 00 84 [18:06:42]Write i2c OK [18:06:42]MH_I2C_Read... [18:06:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:06:42]Read from MH i2c: E2 [18:06:42]MH_I2C_Read... [18:06:42]Read from MH i2c: E2 03 00 [18:06:42]MH_I2C_Read... [18:06:42]Read from MH i2c: E2 03 00 EC 03 00 90 00 63 [18:06:42]RAPDU: 90 00 [18:06:42]wFMCommunicate OK [18:06:42]wFMCommunicate request_size=4 [18:06:42]MH_SAM_APDU [18:06:42]CAPDU: 80 0D 03 02 [18:06:42]Write to MH i2c: E2 08 00 ED 03 80 0D 03 02 00 00 00 00 6B [18:06:42]Write i2c OK [18:06:42]MH_I2C_Read... [18:06:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:06:42]Read from MH i2c: E2 [18:06:42]MH_I2C_Read... [18:06:42]Read from MH i2c: E2 0B 00 [18:06:42]MH_I2C_Read... [18:06:42]Read from MH i2c: E2 0B 00 ED 03 00 FE 00 9F 5A 9A 4E 29 1D 90 00 91 [18:06:42]RAPDU: FE 00 9F 5A 9A 4E 29 1D 90 00 [18:06:42]wFMCommunicate OK [18:06:42]SAM_PROTO_SignData done [18:06:42]FM_MakeSignedData done [18:06:42]CreateOFDProtocolMessage [18:06:42]wFMCommunicate request_size=4 [18:06:42]MH_SAM_APDU [18:06:42]CAPDU: 80 11 00 00 [18:06:42]Write to MH i2c: E2 08 00 EE 03 80 11 00 00 00 00 00 00 6B [18:06:42]Write i2c OK [18:06:42]MH_I2C_Read... [18:06:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:06:42]Read from MH i2c: E2 [18:06:42]MH_I2C_Read... [18:06:42]Read from MH i2c: E2 17 00 [18:06:42]MH_I2C_Read... [18:06:42]Read from MH i2c: E2 17 00 EE 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C1 [18:06:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:06:42]wFMCommunicate OK [18:06:42]CreateOFDProtocolMessage done [18:06:42]OFDSenderStorePacket 165051 [18:06:42]StoreOFDPacket docnum=165051 [18:06:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 8A 38 07 01 3A B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 F9 00 00 00 F4 03 04 00 B0 13 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BB 84 02 00 35 04 06 00 9F DD 95 AB C1 33 FE 00 9F 5A 9A 4E 29 1D [18:06:42]CheckFolder [18:06:42]dirname=/storage/ofd_packets [18:06:42]CheckFolder done [18:06:42]ProducePacketName [18:06:42]name=ofd_packets/00165051 [18:06:42]NVStorageSaveData ofd_packets/00165051 [18:06:42]File name is /storage/ofd_packets/00165051 [18:06:42]Write 301 bytes [18:06:42]NVStorageSaveData done [18:06:42]OFDSenderStorePacket done [18:06:42]KKMCreateOFDPacket done [18:06:42]NVStorageSaveData kkm_last_timestamp [18:06:42]File name is /storage/kkm_last_timestamp [18:06:42]Write 4 bytes [18:06:42]NVStorageSaveData done [18:06:42]ExternCall_PrintAddStr [18:06:42]wPrintStart [18:06:42]Write to MH i2c: 01 00 00 EF 03 F2 [18:06:42]Write i2c OK [18:06:42]MH_I2C_Read... [18:06:42]Read from MH i2c: 01 [18:06:42]MH_I2C_Read... [18:06:42]Read from MH i2c: 01 07 00 [18:06:42]MH_I2C_Read... [18:06:42]Read from MH i2c: 01 07 00 EF 03 00 00 00 00 00 FF 0F 07 [18:06:42]RasterBufferAndPrint [18:06:42]line Счет N : (1)459152 [18:06:42]line ИНН: 02508201610067 [18:06:42]line Контрольно-Кассовый Чек [18:06:42]line ПРОДАЖА [18:06:42]line ТРК (МРК, ГНК) : 12 [18:06:42]line Товар: 2710124130 [18:06:42]line Аи-92-К-5 [18:06:42]line 3.040 * 65.80 [18:06:42]line = 200.03 [18:06:42]line НДС 12% НСП 1% [18:06:42]line > о реализуемом товаре [18:06:42]line ОКРУГЛЕНИЕ: -0.03 [18:06:42]line ИТОГО: 200.00 [18:06:42]line Внесено: 200.00 [18:06:42]line СДАЧА: 0.00 [18:06:42]line НСП 1% : 1.77 [18:06:42]line НДС 12% : 21.24 [18:06:42]line Наличными: 200.00 [18:06:42]line Безнал.: 0.00 [18:06:42]line Место: АЗС № 72 "Партнер Нефть" [18:06:42]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [18:06:42]line СНО: Общий режим [18:06:42]line Чек 249 14.07.2024 18:06 [18:06:42]line Смена: 447 ФФД: 1.0 [18:06:42]line ЗНМ: 0300000160 [18:06:42]line РНМ: 0000000000090829 [18:06:42]line Версия ККМ: 001 [18:06:42]line ФМ: 0000000000874718 [18:06:42]line ФД: 165051 [18:06:42]line ФПД: 175774047650099 [18:06:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T180640&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165051&fm=175774047650099&tin=02508201610067®Number=0000000000090829&sum=20000 [18:06:42]written 0, free lines is 4095 [18:06:42]OFD Sender: Processing packet 165051 [packets to send 105, broken 104] [18:06:42]ProducePacketName [18:06:42]name=ofd_packets/00165051 [18:06:42]OFD Sender: To server: pG, [18:06:42]CommunicateWithHost lk.salyk.kg:30040 [18:06:42]ConnectInit lk.salyk.kg [18:06:42]Connected sock=10 [18:06:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 8A 38 07 01 3A B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 F9 00 00 00 F4 03 04 00 B0 13 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BB 84 02 00 35 04 06 00 9F DD 95 AB C1 33 FE 00 9F 5A 9A 4E 29 1D [18:06:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 3F 74 47 00 BB E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BB 84 02 00 F4 03 04 00 3D BA 93 66 B6 04 01 00 00 76 8C 4F 8D EC CC 41 9E [18:06:42]CommunicateWithHost err = 0 [18:06:42]CheckOFDResponse [18:06:42]1017 (14) - 77093643461234 [18:06:42]1041 (16) - 0000000000874718 [18:06:42]1040 (4) - 165051 [18:06:42]1012 (4) - 14.07.2024 11:45 [18:06:42]1206 (1) - 0 [18:06:42]OFD Sender: Remove packet 165051 [18:06:42]ProducePacketName [18:06:42]name=ofd_packets/00165051 [18:06:42]NVStorageDeleteData [18:06:43]Write to MH i2c: 01 00 00 19 04 1D [18:06:43]Write i2c OK [18:06:43]MH_I2C_Read... [18:06:43]Read from MH i2c: 01 [18:06:43]MH_I2C_Read... [18:06:43]Read from MH i2c: 01 07 00 [18:06:43]MH_I2C_Read... [18:06:43]Read from MH i2c: 01 07 00 19 04 00 00 00 00 00 F3 0C 23 [18:06:43]RasterBufferAndPrint [18:06:43]line [18:06:43]line [18:06:43]line [18:06:43]line [18:06:43]line [18:06:43]written 0, free lines is 3322 [18:06:43]MH_Cut [18:06:43]Write to MH i2c: D1 01 00 20 04 01 F6 [18:06:43]Write i2c OK [18:06:43]MH_I2C_Read... [18:06:43]Read from MH i2c: D1 [18:06:43]MH_I2C_Read... [18:06:43]Read from MH i2c: D1 01 00 [18:06:43]MH_I2C_Read... [18:06:43]Read from MH i2c: D1 01 00 20 04 00 F5 [18:06:43]Write to MH i2c: 01 00 00 21 04 25 [18:06:43]Write i2c OK [18:06:43]MH_I2C_Read... [18:06:43]OFD Sender: No OFD packet to send [18:06:43]*** Cut start [18:06:43]*** Partial cut [18:06:43]*** CUTSNS_PIN = 1 [18:06:43]*** CUTSNS_PIN = 0 [18:06:44]*** Brake cut motor [18:06:44]Read from MH i2c: 01 [18:06:44]MH_I2C_Read... [18:06:44]*** Stop cut motor [18:06:44]*** Cut end [18:06:44]Read from MH i2c: 01 07 00 [18:06:44]MH_I2C_Read... [18:06:44]Read from MH i2c: 01 07 00 21 04 00 00 00 00 00 FF 0F 3A [18:06:44]process_action close_receipt done [18:06:44]requested_data is exist [18:06:44]produce_requested_data [18:06:44]requested_item fm.sn is exist - process it [18:06:44]wFMCommunicate request_size=4 [18:06:44]MH_SAM_APDU [18:06:44]CAPDU: 80 11 00 00 [18:06:44]Write to MH i2c: E2 08 00 22 04 80 11 00 00 00 00 00 00 A0 [18:06:44]Write i2c OK [18:06:44]MH_I2C_Read... [18:06:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:06:44]Read from MH i2c: E2 [18:06:44]MH_I2C_Read... [18:06:44]Read from MH i2c: E2 17 00 [18:06:44]MH_I2C_Read... [18:06:44]Read from MH i2c: E2 17 00 22 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F6 [18:06:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:06:44]wFMCommunicate OK [18:06:44]requested_item fd.num is exist - process it [18:06:44]SAM_PROTO_GetFieldsCounters [18:06:44]wFMCommunicate request_size=4 [18:06:44]MH_SAM_APDU [18:06:44]CAPDU: 80 13 00 00 [18:06:44]Write to MH i2c: E2 08 00 23 04 80 13 00 00 00 00 00 00 A3 [18:06:44]Write i2c OK [18:06:44]MH_I2C_Read... [18:06:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:06:44]Read from MH i2c: E2 [18:06:44]MH_I2C_Read... [18:06:44]Read from MH i2c: E2 62 00 [18:06:44]MH_I2C_Read... [18:06:44]Read from MH i2c: E2 62 00 23 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 BB 84 02 00 0E 04 04 00 BF 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 B6 [18:06:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 BB 84 02 00 0E 04 04 00 BF 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 [18:06:44]wFMCommunicate OK [18:06:44]SAM_PROTO_GetFieldsCounters done [18:06:44]requested_item shift.num is exist - process it [18:06:44]requested_item shift.opened is exist - process it [18:06:44]req_shift_opened [18:06:44]FM_GetShiftState [18:06:44]SAM_PROTO_GetShiftState [18:06:44]wFMCommunicate request_size=4 [18:06:44]MH_SAM_APDU [18:06:44]CAPDU: 80 13 01 00 [18:06:44]Write to MH i2c: E2 08 00 24 04 80 13 01 00 00 00 00 00 A5 [18:06:44]Write i2c OK [18:06:44]MH_I2C_Read... [18:06:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:06:44]Read from MH i2c: E2 [18:06:44]MH_I2C_Read... [18:06:44]Read from MH i2c: E2 0E 00 [18:06:44]MH_I2C_Read... [18:06:44]Read from MH i2c: E2 0E 00 24 04 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 25 [18:06:44]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [18:06:44]wFMCommunicate OK [18:06:44]SAM_PROTO_GetShiftState done [18:06:44]FM_GetShiftState done [18:06:44]req_shift_opened done [18:06:44]requested_item shift.open_date is exist - process it [18:06:44]req_shift_open_date [18:06:44]req_shift_open_date done [18:06:44]produce_requested_data done [18:06:44]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165051,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [18:06:44]process_action_free close_receipt [18:06:44]json_value_free [18:06:44]json_value_free done [18:06:44]process_json_proto returns [18:06:44]Send response to host [18:06:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165051,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [18:06:44]free response buf [18:06:44]execute_script done [18:06:44]execute_script returns [18:06:44]free content buf [18:06:44]Sock 7.Close socket [18:06:44]Sock 7.Thread stoped [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:18]OFD Sender: No OFD packet to send [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:19]accept exits with 9 [18:09:19]New connection [18:09:19]New thread 3067526500 created [18:09:19]Thread 3067383140 joined [18:09:19]Waiting for new connection... [18:09:19] Sock 9.Parse request [18:09:19]Sock 9.Check first char [18:09:19]Sock 9.First char is OK [18:09:19]request: POST /json_proto HTTP/1.0 [18:09:19]Method: POST [18:09:19]URL: /json_proto [18:09:19]Method is POST - this is cgi request [18:09:19]url: /json_proto [18:09:19]query_string will be loaded in cgi processing [18:09:19]execute_cgi json_proto POST (null) [18:09:19]execute_cgi path=json_proto method=POST [18:09:19]POST find Content-Length [18:09:19]Host: 172.17.56.4:8080 [18:09:19]Content-Length: 677 [18:09:19]Content-Type: application/json [18:09:19] [18:09:19]POST finish read [18:09:19]Found Content-Length = 677 [18:09:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459153", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.550, "sum" : 628.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 628.00, "total" : 628.00, "payments": [ { "type": 0, "sum" : 628.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:09:19]execute_script... [18:09: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)459153", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.550, "sum" : 628.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 628.00, "total" : 628.00, "payments": [ { "type": 0, "sum" : 628.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:09:19]POST & json_proto [18:09:19]process_json_proto [18:09:19]json parsed OK: [18:09:19]protocol is kg_v1.0 [18:09:19]action value=close_receipt [18:09:19]process_action close_receipt [18:09:19]cmd_close_receipt [18:09:19]MH_GetDate [18:09:19]Write to MH i2c: F0 00 00 25 04 18 [18:09:19]Write i2c OK [18:09:19]MH_I2C_Read... [18:09:19]Read from MH i2c: F0 [18:09:19]MH_I2C_Read... [18:09:19]Read from MH i2c: F0 09 00 [18:09:19]MH_I2C_Read... [18:09:19]Read from MH i2c: F0 09 00 25 04 00 50 14 94 66 C9 DC B2 64 3A [18:09:19]GetLastDocTimeStamp 1720980400 [18:09:19]current date 1720980560 [18:09:19]FM_GetShiftState [18:09:19]SAM_PROTO_GetShiftState [18:09:19]wFMCommunicate request_size=4 [18:09:19]MH_SAM_APDU [18:09:19]CAPDU: 80 13 01 00 [18:09:19]Write to MH i2c: E2 08 00 26 04 80 13 01 00 00 00 00 00 A7 [18:09:19]Write i2c OK [18:09:19]MH_I2C_Read... [18:09:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:09:19]Read from MH i2c: E2 [18:09:19]MH_I2C_Read... [18:09:19]Read from MH i2c: E2 0E 00 [18:09:19]MH_I2C_Read... [18:09:19]Read from MH i2c: E2 0E 00 26 04 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 27 [18:09:19]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [18:09:19]wFMCommunicate OK [18:09:19]SAM_PROTO_GetShiftState done [18:09:19]FM_GetShiftState done [18:09:19]opened in 1720917342 [18:09:19]opened+sec_in_day 1721003742 [18:09:19]quantity*price = 62839 [18:09:19]sum+1 = 62840 [18:09:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 628.00 Внесено: 628.00 СДАЧА: 0.00 НСП 1% : 5.56 НДС 12% : 66.73 Наличными: 628.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 250 14.07.2024 18:09 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165052 ФПД: 18711388316511 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T180920&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165052&fm=18711388316511&tin=02508201610067®Number=0000000000090829&sum=62800 [18:09:20]StoreToDocumentArchive [18:09:20]shift 447 fd 165052 [18:09:20]save to /storage/0447/doc_00165052 [18:09:20]save last doc name /storage/0447/doc_00165052 to /storage/kkm_last_doc_name [18:09:20]save OK [18:09:20]Clear old archive folders... [18:09:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:09:20]tlvbuf is 01F127B0 [18:09:20]SAM_PROTO_ClearQueue [18:09:20]wFMCommunicate request_size=4 [18:09:20]MH_SAM_APDU [18:09:20]CAPDU: 80 09 00 00 [18:09:20]Write to MH i2c: E2 08 00 33 04 80 09 00 00 00 00 00 00 A9 [18:09:20]Write i2c OK [18:09:20]MH_I2C_Read... [18:09:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:09:21]Read from MH i2c: E2 [18:09:21]MH_I2C_Read... [18:09:21]Read from MH i2c: E2 03 00 [18:09:21]MH_I2C_Read... [18:09:21]Read from MH i2c: E2 03 00 33 04 00 90 00 AB [18:09:21]RAPDU: 90 00 [18:09:21]wFMCommunicate OK [18:09:21]SAM_PROTO_ClearQueue done [18:09:21]KKMCreateOFDPacket [18:09:21]OFDProtocolAddRootSTLVToBuf [18:09:21]FM_MakeSignedData [18:09:21]FM_MakeSignedData [18:09:21]SAM_PROTO_SignData [18:09:21]wFMCommunicate request_size=4 [18:09:21]MH_SAM_APDU [18:09:21]CAPDU: 80 0D 01 02 [18:09:21]Write to MH i2c: E2 08 00 34 04 80 0D 01 02 00 00 00 00 B1 [18:09:21]Write i2c OK [18:09:21]MH_I2C_Read... [18:09:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:09:21]Read from MH i2c: E2 [18:09:21]MH_I2C_Read... [18:09:21]Read from MH i2c: E2 03 00 [18:09:21]MH_I2C_Read... [18:09:21]Read from MH i2c: E2 03 00 34 04 00 90 00 AC [18:09:21]RAPDU: 90 00 [18:09:21]wFMCommunicate OK [18:09:21]wFMCommunicate request_size=255 [18:09:21]MH_SAM_APDU [18:09:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 25 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 77 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 11 1A 00 00 00 00 07 04 06 00 50 F5 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 50 14 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BC 84 02 00 35 04 06 00 11 [18:09:21]Write to MH i2c: E2 02 01 35 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 25 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 77 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 11 1A 00 00 00 00 07 04 06 00 50 F5 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 50 14 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BC 84 02 00 35 04 06 00 11 00 00 BB [18:09:21]Write i2c OK [18:09:21]MH_I2C_Read... [18:09:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:09:21]Read from MH i2c: E2 [18:09:21]MH_I2C_Read... [18:09:21]Read from MH i2c: E2 03 00 [18:09:21]MH_I2C_Read... [18:09:21]Read from MH i2c: E2 03 00 35 04 00 90 00 AD [18:09:21]RAPDU: 90 00 [18:09:21]wFMCommunicate OK [18:09:21]wFMCommunicate request_size=10 [18:09:21]MH_SAM_APDU [18:09:21]CAPDU: 80 0D 02 02 05 04 95 A7 63 5F [18:09:21]Write to MH i2c: E2 0D 00 36 04 80 0D 02 02 05 00 04 95 A7 63 5F 00 00 C0 [18:09:21]Write i2c OK [18:09:21]MH_I2C_Read... [18:09:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:09:21]Read from MH i2c: E2 [18:09:21]MH_I2C_Read... [18:09:21]Read from MH i2c: E2 03 00 [18:09:21]MH_I2C_Read... [18:09:21]Read from MH i2c: E2 03 00 36 04 00 90 00 AE [18:09:21]RAPDU: 90 00 [18:09:21]wFMCommunicate OK [18:09:21]wFMCommunicate request_size=4 [18:09:21]MH_SAM_APDU [18:09:21]CAPDU: 80 0D 03 02 [18:09:21]Write to MH i2c: E2 08 00 37 04 80 0D 03 02 00 00 00 00 B6 [18:09:21]Write i2c OK [18:09:21]MH_I2C_Read... [18:09:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:09:21]Read from MH i2c: E2 [18:09:21]MH_I2C_Read... [18:09:21]Read from MH i2c: E2 0B 00 [18:09:21]MH_I2C_Read... [18:09:21]Read from MH i2c: E2 0B 00 37 04 00 8B CD 58 EB 7A FC 19 29 90 00 0A [18:09:21]RAPDU: 8B CD 58 EB 7A FC 19 29 90 00 [18:09:21]wFMCommunicate OK [18:09:21]SAM_PROTO_SignData done [18:09:21]FM_MakeSignedData done [18:09:21]CreateOFDProtocolMessage [18:09:21]wFMCommunicate request_size=4 [18:09:21]MH_SAM_APDU [18:09:21]CAPDU: 80 11 00 00 [18:09:21]Write to MH i2c: E2 08 00 38 04 80 11 00 00 00 00 00 00 B6 [18:09:21]Write i2c OK [18:09:21]MH_I2C_Read... [18:09:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:09:21]Read from MH i2c: E2 [18:09:21]MH_I2C_Read... [18:09:21]Read from MH i2c: E2 17 00 [18:09:21]MH_I2C_Read... [18:09:21]Read from MH i2c: E2 17 00 38 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 0C [18:09:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:09:21]wFMCommunicate OK [18:09:21]CreateOFDProtocolMessage done [18:09:21]OFDSenderStorePacket 165052 [18:09:21]StoreOFDPacket docnum=165052 [18:09:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 01 AE 07 01 BA 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 25 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 77 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 11 1A 00 00 00 00 07 04 06 00 50 F5 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 50 14 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BC 84 02 00 35 04 06 00 11 04 95 A7 63 5F 8B CD 58 EB 7A FC 19 29 [18:09:21]CheckFolder [18:09:21]dirname=/storage/ofd_packets [18:09:21]CheckFolder done [18:09:21]ProducePacketName [18:09:21]name=ofd_packets/00165052 [18:09:21]NVStorageSaveData ofd_packets/00165052 [18:09:21]File name is /storage/ofd_packets/00165052 [18:09:21]Write 301 bytes [18:09:21]NVStorageSaveData done [18:09:21]OFDSenderStorePacket done [18:09:21]KKMCreateOFDPacket done [18:09:21]NVStorageSaveData kkm_last_timestamp [18:09:21]File name is /storage/kkm_last_timestamp [18:09:21]Write 4 bytes [18:09:21]NVStorageSaveData done [18:09:21]ExternCall_PrintAddStr [18:09:21]wPrintStart [18:09:21]Write to MH i2c: 01 00 00 39 04 3D [18:09:21]Write i2c OK [18:09:21]MH_I2C_Read... [18:09:21]Read from MH i2c: 01 [18:09:21]MH_I2C_Read... [18:09:21]Read from MH i2c: 01 07 00 [18:09:21]MH_I2C_Read... [18:09:21]Read from MH i2c: 01 07 00 39 04 00 00 00 00 00 FF 0F 52 [18:09:21]RasterBufferAndPrint [18:09:21]line Счет N : (1)459153 [18:09:21]line ИНН: 02508201610067 [18:09:21]line Контрольно-Кассовый Чек [18:09:21]line ПРОДАЖА [18:09:21]line ТРК (МРК, ГНК) : 22 [18:09:21]line Товар: 2710124130 [18:09:21]line Аи-92-К-5 [18:09:21]line 9.550 * 65.80 [18:09:21]line = 628.39 [18:09:21]line НДС 12% НСП 1% [18:09:21]line > о реализуемом товаре [18:09:21]line ОКРУГЛЕНИЕ: -0.39 [18:09:21]line ИТОГО: 628.00 [18:09:21]line Внесено: 628.00 [18:09:21]line СДАЧА: 0.00 [18:09:21]line НСП 1% : 5.56 [18:09:21]line НДС 12% : 66.73 [18:09:21]line Наличными: 628.00 [18:09:21]line Безнал.: 0.00 [18:09:21]line Место: АЗС № 72 "Партнер Нефть" [18:09:21]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [18:09:21]line СНО: Общий режим [18:09:21]line Чек 250 14.07.2024 18:09 [18:09:21]line Смена: 447 ФФД: 1.0 [18:09:21]line ЗНМ: 0300000160 [18:09:21]line РНМ: 0000000000090829 [18:09:21]line Версия ККМ: 001 [18:09:21]line ФМ: 0000000000874718 [18:09:21]line ФД: 165052 [18:09:21]line ФПД: 18711388316511 [18:09:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T180920&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165052&fm=18711388316511&tin=02508201610067®Number=0000000000090829&sum=62800 [18:09:21]OFD Sender: Processing packet 165052 [packets to send 105, broken 104] [18:09:21]ProducePacketName [18:09:21]name=ofd_packets/00165052 [18:09:21]OFD Sender: To server: pG, [18:09:21]CommunicateWithHost lk.salyk.kg:30040 [18:09:21]ConnectInit lk.salyk.kg [18:09:21]written 0, free lines is 4095 [18:09:21]Connected sock=10 [18:09:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 01 AE 07 01 BA 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 25 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 77 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 11 1A 00 00 00 00 07 04 06 00 50 F5 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 50 14 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BC 84 02 00 35 04 06 00 11 04 95 A7 63 5F 8B CD 58 EB 7A FC 19 29 [18:09:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 A2 CE 47 00 4D 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BC 84 02 00 F4 03 04 00 DD BA 93 66 B6 04 01 00 00 9D BA 20 AF 08 CA 60 59 [18:09:22]CommunicateWithHost err = 0 [18:09:22]CheckOFDResponse [18:09:22]1017 (14) - 77093643461234 [18:09:22]1041 (16) - 0000000000874718 [18:09:22]1040 (4) - 165052 [18:09:22]1012 (4) - 14.07.2024 11:47 [18:09:22]1206 (1) - 0 [18:09:22]OFD Sender: Remove packet 165052 [18:09:22]ProducePacketName [18:09:22]name=ofd_packets/00165052 [18:09:22]NVStorageDeleteData [18:09:22]Write to MH i2c: 01 00 00 63 04 67 [18:09:22]Write i2c OK [18:09:22]MH_I2C_Read... [18:09:22]Read from MH i2c: 01 [18:09:22]MH_I2C_Read... [18:09:22]Read from MH i2c: 01 07 00 [18:09:22]MH_I2C_Read... [18:09:22]Read from MH i2c: 01 07 00 63 04 00 00 00 00 00 0A 0D 85 [18:09:22]RasterBufferAndPrint [18:09:22]line [18:09:22]line [18:09:22]line [18:09:22]line [18:09:22]line [18:09:22]written 0, free lines is 3344 [18:09:22]MH_Cut [18:09:22]Write to MH i2c: D1 01 00 6A 04 01 40 [18:09:22]Write i2c OK [18:09:22]MH_I2C_Read... [18:09:22]Read from MH i2c: D1 [18:09:22]MH_I2C_Read... [18:09:22]Read from MH i2c: D1 01 00 [18:09:22]MH_I2C_Read... [18:09:22]Read from MH i2c: D1 01 00 6A 04 00 3F [18:09:22]Write to MH i2c: 01 00 00 6B 04 6F [18:09:22]Write i2c OK [18:09:22]MH_I2C_Read... [18:09:22]OFD Sender: No OFD packet to send [18:09:22]*** Cut start [18:09:22]*** Partial cut [18:09:22]*** CUTSNS_PIN = 1 [18:09:22]*** CUTSNS_PIN = 0 [18:09:23]*** Brake cut motor [18:09:23]Read from MH i2c: 01 [18:09:23]MH_I2C_Read... [18:09:23]*** Stop cut motor [18:09:23]*** Cut end [18:09:23]Read from MH i2c: 01 07 00 [18:09:23]MH_I2C_Read... [18:09:23]Read from MH i2c: 01 07 00 6B 04 00 00 00 00 00 FF 0F 84 [18:09:23]process_action close_receipt done [18:09:23]requested_data is exist [18:09:23]produce_requested_data [18:09:23]requested_item fm.sn is exist - process it [18:09:23]wFMCommunicate request_size=4 [18:09:23]MH_SAM_APDU [18:09:23]CAPDU: 80 11 00 00 [18:09:23]Write to MH i2c: E2 08 00 6C 04 80 11 00 00 00 00 00 00 EA [18:09:23]Write i2c OK [18:09:23]MH_I2C_Read... [18:09:23]Read from MH i2c: E2 [18:09:23]MH_I2C_Read... [18:09:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:09:23]Read from MH i2c: E2 17 00 [18:09:23]MH_I2C_Read... [18:09:23]Read from MH i2c: E2 17 00 6C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 40 [18:09:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:09:23]wFMCommunicate OK [18:09:23]requested_item fd.num is exist - process it [18:09:23]SAM_PROTO_GetFieldsCounters [18:09:23]wFMCommunicate request_size=4 [18:09:23]MH_SAM_APDU [18:09:23]CAPDU: 80 13 00 00 [18:09:23]Write to MH i2c: E2 08 00 6D 04 80 13 00 00 00 00 00 00 ED [18:09:23]Write i2c OK [18:09:23]MH_I2C_Read... [18:09:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:09:23]Read from MH i2c: E2 [18:09:23]MH_I2C_Read... [18:09:23]Read from MH i2c: E2 62 00 [18:09:23]MH_I2C_Read... [18:09:23]Read from MH i2c: E2 62 00 6D 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 BC 84 02 00 0E 04 04 00 BF 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 04 [18:09:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 BC 84 02 00 0E 04 04 00 BF 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 [18:09:23]wFMCommunicate OK [18:09:23]SAM_PROTO_GetFieldsCounters done [18:09:23]requested_item shift.num is exist - process it [18:09:23]requested_item shift.opened is exist - process it [18:09:23]req_shift_opened [18:09:23]FM_GetShiftState [18:09:23]SAM_PROTO_GetShiftState [18:09:23]wFMCommunicate request_size=4 [18:09:23]MH_SAM_APDU [18:09:23]CAPDU: 80 13 01 00 [18:09:23]Write to MH i2c: E2 08 00 6E 04 80 13 01 00 00 00 00 00 EF [18:09:23]Write i2c OK [18:09:23]MH_I2C_Read... [18:09:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:09:23]Read from MH i2c: E2 [18:09:23]MH_I2C_Read... [18:09:23]Read from MH i2c: E2 0E 00 [18:09:23]MH_I2C_Read... [18:09:23]Read from MH i2c: E2 0E 00 6E 04 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 6F [18:09:23]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [18:09:23]wFMCommunicate OK [18:09:23]SAM_PROTO_GetShiftState done [18:09:23]FM_GetShiftState done [18:09:23]req_shift_opened done [18:09:23]requested_item shift.open_date is exist - process it [18:09:23]req_shift_open_date [18:09:23]req_shift_open_date done [18:09:23]produce_requested_data done [18:09:23]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165052,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [18:09:23]process_action_free close_receipt [18:09:23]json_value_free [18:09:23]json_value_free done [18:09:23]process_json_proto returns [18:09:23]Send response to host [18:09:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165052,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [18:09:23]free response buf [18:09:23]execute_script done [18:09:23]execute_script returns [18:09:23]free content buf [18:09:23]Sock 9.Close socket [18:09:23]Sock 9.Thread stoped [18:09:27]OFD Sender: No OFD packet to send [18:09:32]OFD Sender: No OFD packet to send [18:09:37]OFD Sender: No OFD packet to send [18:09:42]OFD Sender: No OFD packet to send [18:09:47]OFD Sender: No OFD packet to send [18:09:52]OFD Sender: No OFD packet to send [18:09:57]OFD Sender: No OFD packet to send [18:10:02]OFD Sender: No OFD packet to send [18:10:07]OFD Sender: No OFD packet to send [18:10:12]OFD Sender: No OFD packet to send [18:10:17]OFD Sender: No OFD packet to send [18:10:22]OFD Sender: No OFD packet to send [18:10:27]OFD Sender: No OFD packet to send [18:10:32]OFD Sender: No OFD packet to send [18:10:37]OFD Sender: No OFD packet to send [18:10:42]OFD Sender: No OFD packet to send [18:10:47]OFD Sender: No OFD packet to send [18:10:52]OFD Sender: No OFD packet to send [18:10:57]OFD Sender: No OFD packet to send [18:11:02]OFD Sender: No OFD packet to send [18:11:07]OFD Sender: No OFD packet to send [18:11:12]OFD Sender: No OFD packet to send [18:11:17]OFD Sender: No OFD packet to send [18:11:22]OFD Sender: No OFD packet to send [18:11:27]OFD Sender: No OFD packet to send [18:11:32]OFD Sender: No OFD packet to send [18:11:37]OFD Sender: No OFD packet to send [18:11:42]OFD Sender: No OFD packet to send [18:11:47]OFD Sender: No OFD packet to send [18:11:52]OFD Sender: No OFD packet to send [18:11:57]OFD Sender: No OFD packet to send [18:12:02]OFD Sender: No OFD packet to send [18:12:07]OFD Sender: No OFD packet to send [18:12:12]OFD Sender: No OFD packet to send [18:12:17]OFD Sender: No OFD packet to send [18:12:22]OFD Sender: No OFD packet to send [18:12:27]OFD Sender: No OFD packet to send [18:12:32]OFD Sender: No OFD packet to send [18:12:37]OFD Sender: No OFD packet to send [18:12:42]OFD Sender: No OFD packet to send [18:12:47]OFD Sender: No OFD packet to send [18:12:52]OFD Sender: No OFD packet to send [18:12:57]OFD Sender: No OFD packet to send [18:13:02]OFD Sender: No OFD packet to send [18:13:07]OFD Sender: No OFD packet to send [18:13:12]OFD Sender: No OFD packet to send [18:13:17]OFD Sender: No OFD packet to send [18:13:22]OFD Sender: No OFD packet to send [18:13:27]OFD Sender: No OFD packet to send [18:13:32]OFD Sender: No OFD packet to send [18:13:37]OFD Sender: No OFD packet to send [18:13:42]OFD Sender: No OFD packet to send [18:13:47]OFD Sender: No OFD packet to send [18:13:52]OFD Sender: No OFD packet to send [18:13:57]OFD Sender: No OFD packet to send [18:14:02]OFD Sender: No OFD packet to send [18:14:07]OFD Sender: No OFD packet to send [18:14:12]OFD Sender: No OFD packet to send [18:14:17]OFD Sender: No OFD packet to send [18:14:22]OFD Sender: No OFD packet to send [18:14:28]OFD Sender: No OFD packet to send [18:14:33]OFD Sender: No OFD packet to send [18:14:38]OFD Sender: No OFD packet to send [18:14:43]OFD Sender: No OFD packet to send [18:14:48]OFD Sender: No OFD packet to send [18:14:53]OFD Sender: No OFD packet to send [18:14:58]OFD Sender: No OFD packet to send [18:15:03]OFD Sender: No OFD packet to send [18:15:08]OFD Sender: No OFD packet to send [18:15:13]OFD Sender: No OFD packet to send [18:15:18]OFD Sender: No OFD packet to send [18:15:23]OFD Sender: No OFD packet to send [18:15:28]OFD Sender: No OFD packet to send [18:15:33]OFD Sender: No OFD packet to send [18:15:38]OFD Sender: No OFD packet to send [18:15:43]OFD Sender: No OFD packet to send [18:15:48]OFD Sender: No OFD packet to send [18:15:53]OFD Sender: No OFD packet to send [18:15:58]OFD Sender: No OFD packet to send [18:16:03]OFD Sender: No OFD packet to send [18:16:08]OFD Sender: No OFD packet to send [18:16:13]OFD Sender: No OFD packet to send [18:16:18]OFD Sender: No OFD packet to send [18:16:23]OFD Sender: No OFD packet to send [18:16:28]OFD Sender: No OFD packet to send [18:16:33]OFD Sender: No OFD packet to send [18:16:38]OFD Sender: No OFD packet to send [18:16:43]OFD Sender: No OFD packet to send [18:16:48]OFD Sender: No OFD packet to send [18:16:53]OFD Sender: No OFD packet to send [18:16:58]OFD Sender: No OFD packet to send [18:17:03]OFD Sender: No OFD packet to send [18:17:08]OFD Sender: No OFD packet to send [18:17:13]OFD Sender: No OFD packet to send [18:17:18]OFD Sender: No OFD packet to send [18:17:23]OFD Sender: No OFD packet to send [18:17:28]OFD Sender: No OFD packet to send [18:17:33]OFD Sender: No OFD packet to send [18:17:38]OFD Sender: No OFD packet to send [18:17:43]OFD Sender: No OFD packet to send [18:17:48]OFD Sender: No OFD packet to send [18:17:53]OFD Sender: No OFD packet to send [18:17:58]OFD Sender: No OFD packet to send [18:18:03]OFD Sender: No OFD packet to send [18:18:08]OFD Sender: No OFD packet to send [18:18:09]accept exits with 7 [18:18:09]New connection [18:18:09]New thread 3067383140 created [18:18:09]Thread 3067526500 joined [18:18:09]Waiting for new connection... [18:18:09] Sock 7.Parse request [18:18:09]Sock 7.Check first char [18:18:09]Sock 7.First char is OK [18:18:09]request: POST /json_proto HTTP/1.0 [18:18:09]Method: POST [18:18:09]URL: /json_proto [18:18:09]Method is POST - this is cgi request [18:18:09]url: /json_proto [18:18:09]query_string will be loaded in cgi processing [18:18:09]execute_cgi json_proto POST (null) [18:18:09]execute_cgi path=json_proto method=POST [18:18:09]POST find Content-Length [18:18:09]Host: 172.17.56.4:8080 [18:18:09]Content-Length: 674 [18:18:09]Content-Type: application/json [18:18:09] [18:18:09]POST finish read [18:18:09]Found Content-Length = 674 [18:18:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459154", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 6.960, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:18:09]execute_script... [18:18: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)459154", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 6.960, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:18:09]POST & json_proto [18:18:09]process_json_proto [18:18:09]json parsed OK: [18:18:09]protocol is kg_v1.0 [18:18:09]action value=close_receipt [18:18:09]process_action close_receipt [18:18:09]cmd_close_receipt [18:18:09]MH_GetDate [18:18:09]Write to MH i2c: F0 00 00 6F 04 62 [18:18:09]Write i2c OK [18:18:09]MH_I2C_Read... [18:18:09]Read from MH i2c: F0 [18:18:09]MH_I2C_Read... [18:18:09]Read from MH i2c: F0 09 00 [18:18:09]MH_I2C_Read... [18:18:09]Read from MH i2c: F0 09 00 6F 04 00 61 16 94 66 C9 DC B2 64 97 [18:18:09]GetLastDocTimeStamp 1720980560 [18:18:09]current date 1720981089 [18:18:09]FM_GetShiftState [18:18:09]SAM_PROTO_GetShiftState [18:18:09]wFMCommunicate request_size=4 [18:18:09]MH_SAM_APDU [18:18:09]CAPDU: 80 13 01 00 [18:18:09]Write to MH i2c: E2 08 00 70 04 80 13 01 00 00 00 00 00 F1 [18:18:09]Write i2c OK [18:18:09]MH_I2C_Read... [18:18:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:18:09]Read from MH i2c: E2 [18:18:09]MH_I2C_Read... [18:18:09]Read from MH i2c: E2 0E 00 [18:18:09]MH_I2C_Read... [18:18:09]Read from MH i2c: E2 0E 00 70 04 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 71 [18:18:09]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [18:18:09]wFMCommunicate OK [18:18:09]SAM_PROTO_GetShiftState done [18:18:09]FM_GetShiftState done [18:18:09]opened in 1720917342 [18:18:09]opened+sec_in_day 1721003742 [18:18:09]quantity*price = 50042 [18:18:09]sum+1 = 50043 [18:18:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 251 14.07.2024 18:18 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165053 ФПД: 80050321446517 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T181809&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165053&fm=80050321446517&tin=02508201610067®Number=0000000000090829&sum=50000 [18:18:10]StoreToDocumentArchive [18:18:10]shift 447 fd 165053 [18:18:10]save to /storage/0447/doc_00165053 [18:18:10]save last doc name /storage/0447/doc_00165053 to /storage/kkm_last_doc_name [18:18:10]save OK [18:18:10]Clear old archive folders... [18:18:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:18:10]tlvbuf is 01F74020 [18:18:10]SAM_PROTO_ClearQueue [18:18:10]wFMCommunicate request_size=4 [18:18:10]MH_SAM_APDU [18:18:10]CAPDU: 80 09 00 00 [18:18:10]Write to MH i2c: E2 08 00 7D 04 80 09 00 00 00 00 00 00 F3 [18:18:10]Write i2c OK [18:18:10]MH_I2C_Read... [18:18:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:18:10]Read from MH i2c: E2 [18:18:10]MH_I2C_Read... [18:18:10]Read from MH i2c: E2 03 00 [18:18:10]MH_I2C_Read... [18:18:10]Read from MH i2c: E2 03 00 7D 04 00 90 00 F5 [18:18:10]RAPDU: 90 00 [18:18:10]wFMCommunicate OK [18:18:10]SAM_PROTO_ClearQueue done [18:18:10]KKMCreateOFDPacket [18:18:10]OFDProtocolAddRootSTLVToBuf [18:18:10]FM_MakeSignedData [18:18:10]FM_MakeSignedData [18:18:10]SAM_PROTO_SignData [18:18:10]wFMCommunicate request_size=4 [18:18:10]MH_SAM_APDU [18:18:10]CAPDU: 80 0D 01 02 [18:18:10]Write to MH i2c: E2 08 00 7E 04 80 0D 01 02 00 00 00 00 FB [18:18:10]Write i2c OK [18:18:10]MH_I2C_Read... [18:18:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:18:10]Read from MH i2c: E2 [18:18:10]MH_I2C_Read... [18:18:10]Read from MH i2c: E2 03 00 [18:18:10]MH_I2C_Read... [18:18:10]Read from MH i2c: E2 03 00 7E 04 00 90 00 F6 [18:18:10]RAPDU: 90 00 [18:18:10]wFMCommunicate OK [18:18:10]wFMCommunicate request_size=255 [18:18:10]MH_SAM_APDU [18:18: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 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 61 16 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BD 84 02 00 35 04 06 00 48 CE 2A F9 [18:18:10]Write to MH i2c: E2 02 01 7F 04 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 61 16 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BD 84 02 00 35 04 06 00 48 CE 2A F9 00 00 78 [18:18:10]Write i2c OK [18:18:10]MH_I2C_Read... [18:18:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:18:11]Read from MH i2c: E2 [18:18:11]MH_I2C_Read... [18:18:11]Read from MH i2c: E2 03 00 [18:18:11]MH_I2C_Read... [18:18:11]Read from MH i2c: E2 03 00 7F 04 00 90 00 F7 [18:18:11]RAPDU: 90 00 [18:18:11]wFMCommunicate OK [18:18:11]wFMCommunicate request_size=7 [18:18:11]MH_SAM_APDU [18:18:11]CAPDU: 80 0D 02 02 02 56 75 [18:18:11]Write to MH i2c: E2 0A 00 80 04 80 0D 02 02 02 00 56 75 00 00 CD [18:18:11]Write i2c OK [18:18:11]MH_I2C_Read... [18:18:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:18:11]Read from MH i2c: E2 [18:18:11]MH_I2C_Read... [18:18:11]Read from MH i2c: E2 03 00 [18:18:11]MH_I2C_Read... [18:18:11]Read from MH i2c: E2 03 00 80 04 00 90 00 F8 [18:18:11]RAPDU: 90 00 [18:18:11]wFMCommunicate OK [18:18:11]wFMCommunicate request_size=4 [18:18:11]MH_SAM_APDU [18:18:11]CAPDU: 80 0D 03 02 [18:18:11]Write to MH i2c: E2 08 00 81 04 80 0D 03 02 00 00 00 00 00 [18:18:11]Write i2c OK [18:18:11]MH_I2C_Read... [18:18:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:18:11]Read from MH i2c: E2 [18:18:11]MH_I2C_Read... [18:18:11]Read from MH i2c: E2 0B 00 [18:18:11]MH_I2C_Read... [18:18:11]Read from MH i2c: E2 0B 00 81 04 00 E1 B9 27 9A EA 8A 27 DE 90 00 D5 [18:18:11]RAPDU: E1 B9 27 9A EA 8A 27 DE 90 00 [18:18:11]wFMCommunicate OK [18:18:11]SAM_PROTO_SignData done [18:18:11]FM_MakeSignedData done [18:18:11]CreateOFDProtocolMessage [18:18:11]wFMCommunicate request_size=4 [18:18:11]MH_SAM_APDU [18:18:11]CAPDU: 80 11 00 00 [18:18:11]Write to MH i2c: E2 08 00 82 04 80 11 00 00 00 00 00 00 00 [18:18:11]Write i2c OK [18:18:11]MH_I2C_Read... [18:18:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:18:11]Read from MH i2c: E2 [18:18:11]MH_I2C_Read... [18:18:11]Read from MH i2c: E2 17 00 [18:18:11]MH_I2C_Read... [18:18:11]Read from MH i2c: E2 17 00 82 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 56 [18:18:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:18:11]wFMCommunicate OK [18:18:11]CreateOFDProtocolMessage done [18:18:11]OFDSenderStorePacket 165053 [18:18:11]StoreOFDPacket docnum=165053 [18:18:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 1C 4A 04 01 6D 67 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 61 16 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BD 84 02 00 35 04 06 00 48 CE 2A F9 56 75 E1 B9 27 9A EA 8A 27 DE [18:18:11]CheckFolder [18:18:11]dirname=/storage/ofd_packets [18:18:11]CheckFolder done [18:18:11]ProducePacketName [18:18:11]name=ofd_packets/00165053 [18:18:11]NVStorageSaveData ofd_packets/00165053 [18:18:11]File name is /storage/ofd_packets/00165053 [18:18:11]Write 298 bytes [18:18:11]NVStorageSaveData done [18:18:11]OFDSenderStorePacket done [18:18:11]KKMCreateOFDPacket done [18:18:11]NVStorageSaveData kkm_last_timestamp [18:18:11]File name is /storage/kkm_last_timestamp [18:18:11]Write 4 bytes [18:18:11]NVStorageSaveData done [18:18:11]ExternCall_PrintAddStr [18:18:11]wPrintStart [18:18:11]Write to MH i2c: 01 00 00 83 04 87 [18:18:11]Write i2c OK [18:18:11]MH_I2C_Read... [18:18:11]Read from MH i2c: 01 [18:18:11]MH_I2C_Read... [18:18:11]Read from MH i2c: 01 07 00 [18:18:11]MH_I2C_Read... [18:18:11]Read from MH i2c: 01 07 00 83 04 00 00 00 00 00 FF 0F 9C [18:18:11]RasterBufferAndPrint [18:18:11]line Счет N : (1)459154 [18:18:11]line ИНН: 02508201610067 [18:18:11]line Контрольно-Кассовый Чек [18:18:11]line ПРОДАЖА [18:18:11]line ТРК (МРК, ГНК) : 21 [18:18:11]line Товар: 2710194210 [18:18:11]line ДТ-К-5 [18:18:11]line 6.960 * 71.90 [18:18:11]line = 500.42 [18:18:11]line НДС 12% НСП 1% [18:18:11]line > о реализуемом товаре [18:18:11]line ОКРУГЛЕНИЕ: -0.42 [18:18:11]line ИТОГО: 500.00 [18:18:11]line Внесено: 500.00 [18:18:11]line СДАЧА: 0.00 [18:18:11]line НСП 1% : 4.43 [18:18:11]line НДС 12% : 53.14 [18:18:11]line Наличными: 500.00 [18:18:11]line Безнал.: 0.00 [18:18:11]line Место: АЗС № 72 "Партнер Нефть" [18:18:11]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [18:18:11]line СНО: Общий режим [18:18:11]line Чек 251 14.07.2024 18:18 [18:18:11]line Смена: 447 ФФД: 1.0 [18:18:11]line ЗНМ: 0300000160 [18:18:11]line РНМ: 0000000000090829 [18:18:11]line Версия ККМ: 001 [18:18:11]line ФМ: 0000000000874718 [18:18:11]line ФД: 165053 [18:18:11]line ФПД: 80050321446517 [18:18:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T181809&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165053&fm=80050321446517&tin=02508201610067®Number=0000000000090829&sum=50000 [18:18:11]OFD Sender: Processing packet 165053 [packets to send 105, broken 104] [18:18:11]ProducePacketName [18:18:11]name=ofd_packets/00165053 [18:18:11]OFD Sender: To server: pG, [18:18:11]CommunicateWithHost lk.salyk.kg:30040 [18:18:11]ConnectInit lk.salyk.kg [18:18:11]written 0, free lines is 4095 [18:18:11]Connected sock=10 [18:18:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 1C 4A 04 01 6D 67 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 61 16 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BD 84 02 00 35 04 06 00 48 CE 2A F9 56 75 E1 B9 27 9A EA 8A 27 DE [18:18:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 89 C4 47 00 C8 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BD 84 02 00 F4 03 04 00 EE BC 93 66 B6 04 01 00 00 4A EF 93 FA 31 54 33 7A [18:18:11]CommunicateWithHost err = 0 [18:18:11]CheckOFDResponse [18:18:11]1017 (14) - 77093643461234 [18:18:11]1041 (16) - 0000000000874718 [18:18:11]1040 (4) - 165053 [18:18:11]1012 (4) - 14.07.2024 11:56 [18:18:11]1206 (1) - 0 [18:18:11]OFD Sender: Remove packet 165053 [18:18:11]ProducePacketName [18:18:11]name=ofd_packets/00165053 [18:18:11]NVStorageDeleteData [18:18:12]Write to MH i2c: 01 00 00 AD 04 B1 [18:18:12]Write i2c OK [18:18:12]MH_I2C_Read... [18:18:12]Read from MH i2c: 01 [18:18:12]MH_I2C_Read... [18:18:12]Read from MH i2c: 01 07 00 [18:18:12]MH_I2C_Read... [18:18:12]Read from MH i2c: 01 07 00 AD 04 00 00 00 00 00 0C 0D D1 [18:18:12]RasterBufferAndPrint [18:18:12]line [18:18:12]line [18:18:12]line [18:18:12]line [18:18:12]line [18:18:12]written 0, free lines is 3346 [18:18:12]MH_Cut [18:18:12]Write to MH i2c: D1 01 00 B4 04 01 8A [18:18:12]Write i2c OK [18:18:12]MH_I2C_Read... [18:18:12]Read from MH i2c: D1 [18:18:12]MH_I2C_Read... [18:18:12]Read from MH i2c: D1 01 00 [18:18:12]MH_I2C_Read... [18:18:12]Read from MH i2c: D1 01 00 B4 04 00 89 [18:18:12]Write to MH i2c: 01 00 00 B5 04 B9 [18:18:12]Write i2c OK [18:18:12]MH_I2C_Read... [18:18:12]OFD Sender: No OFD packet to send [18:18:12]*** Cut start [18:18:12]*** Partial cut [18:18:12]*** CUTSNS_PIN = 1 [18:18:12]*** CUTSNS_PIN = 0 [18:18:12]*** Brake cut motor [18:18:13]Read from MH i2c: 01 [18:18:13]MH_I2C_Read... [18:18:13]*** Stop cut motor [18:18:13]*** Cut end [18:18:13]Read from MH i2c: 01 07 00 [18:18:13]MH_I2C_Read... [18:18:13]Read from MH i2c: 01 07 00 B5 04 00 00 00 00 00 FF 0F CE [18:18:13]process_action close_receipt done [18:18:13]requested_data is exist [18:18:13]produce_requested_data [18:18:13]requested_item fm.sn is exist - process it [18:18:13]wFMCommunicate request_size=4 [18:18:13]MH_SAM_APDU [18:18:13]CAPDU: 80 11 00 00 [18:18:13]Write to MH i2c: E2 08 00 B6 04 80 11 00 00 00 00 00 00 34 [18:18:13]Write i2c OK [18:18:13]MH_I2C_Read... [18:18:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:18:13]Read from MH i2c: E2 [18:18:13]MH_I2C_Read... [18:18:13]Read from MH i2c: E2 17 00 [18:18:13]MH_I2C_Read... [18:18:13]Read from MH i2c: E2 17 00 B6 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 8A [18:18:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:18:13]wFMCommunicate OK [18:18:13]requested_item fd.num is exist - process it [18:18:13]SAM_PROTO_GetFieldsCounters [18:18:13]wFMCommunicate request_size=4 [18:18:13]MH_SAM_APDU [18:18:13]CAPDU: 80 13 00 00 [18:18:13]Write to MH i2c: E2 08 00 B7 04 80 13 00 00 00 00 00 00 37 [18:18:13]Write i2c OK [18:18:13]MH_I2C_Read... [18:18:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:18:13]Read from MH i2c: E2 [18:18:13]MH_I2C_Read... [18:18:13]Read from MH i2c: E2 62 00 [18:18:13]MH_I2C_Read... [18:18:13]Read from MH i2c: E2 62 00 B7 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 BD 84 02 00 0E 04 04 00 BF 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 52 [18:18:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 BD 84 02 00 0E 04 04 00 BF 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 [18:18:13]wFMCommunicate OK [18:18:13]SAM_PROTO_GetFieldsCounters done [18:18:13]requested_item shift.num is exist - process it [18:18:13]requested_item shift.opened is exist - process it [18:18:13]req_shift_opened [18:18:13]FM_GetShiftState [18:18:13]SAM_PROTO_GetShiftState [18:18:13]wFMCommunicate request_size=4 [18:18:13]MH_SAM_APDU [18:18:13]CAPDU: 80 13 01 00 [18:18:13]Write to MH i2c: E2 08 00 B8 04 80 13 01 00 00 00 00 00 39 [18:18:13]Write i2c OK [18:18:13]MH_I2C_Read... [18:18:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:18:13]Read from MH i2c: E2 [18:18:13]MH_I2C_Read... [18:18:13]Read from MH i2c: E2 0E 00 [18:18:13]MH_I2C_Read... [18:18:13]Read from MH i2c: E2 0E 00 B8 04 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 B9 [18:18:13]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [18:18:13]wFMCommunicate OK [18:18:13]SAM_PROTO_GetShiftState done [18:18:13]FM_GetShiftState done [18:18:13]req_shift_opened done [18:18:13]requested_item shift.open_date is exist - process it [18:18:13]req_shift_open_date [18:18:13]req_shift_open_date done [18:18:13]produce_requested_data done [18:18:13]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165053,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [18:18:13]process_action_free close_receipt [18:18:13]json_value_free [18:18:13]json_value_free done [18:18:13]process_json_proto returns [18:18:13]Send response to host [18:18:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165053,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [18:18:13]free response buf [18:18:13]execute_script done [18:18:13]execute_script returns [18:18:13]free content buf [18:18:13]Sock 7.Close socket [18:18:13]Sock 7.Thread stoped [18:18:17]OFD Sender: No OFD packet to send [18:18:22]OFD Sender: No OFD packet to send [18:18:27]OFD Sender: No OFD packet to send [18:18:32]OFD Sender: No OFD packet to send [18:18:37]OFD Sender: No OFD packet to send [18:18:42]OFD Sender: No OFD packet to send [18:18:47]OFD Sender: No OFD packet to send [18:18:52]OFD Sender: No OFD packet to send [18:18:57]OFD Sender: No OFD packet to send [18:19:02]OFD Sender: No OFD packet to send [18:19:07]OFD Sender: No OFD packet to send [18:19:12]OFD Sender: No OFD packet to send [18:19:17]OFD Sender: No OFD packet to send [18:19:22]OFD Sender: No OFD packet to send [18:19:27]OFD Sender: No OFD packet to send [18:19:32]OFD Sender: No OFD packet to send [18:19:37]OFD Sender: No OFD packet to send [18:19:42]OFD Sender: No OFD packet to send [18:19:47]OFD Sender: No OFD packet to send [18:19:52]OFD Sender: No OFD packet to send [18:19:57]OFD Sender: No OFD packet to send [18:20:02]OFD Sender: No OFD packet to send [18:20:07]OFD Sender: No OFD packet to send [18:20:12]OFD Sender: No OFD packet to send [18:20:17]OFD Sender: No OFD packet to send [18:20:22]OFD Sender: No OFD packet to send [18:20:27]OFD Sender: No OFD packet to send [18:20:32]OFD Sender: No OFD packet to send [18:20:37]OFD Sender: No OFD packet to send [18:20:42]OFD Sender: No OFD packet to send [18:20:47]OFD Sender: No OFD packet to send [18:20:52]OFD Sender: No OFD packet to send [18:20:57]OFD Sender: No OFD packet to send [18:21:02]OFD Sender: No OFD packet to send [18:21:07]OFD Sender: No OFD packet to send [18:21:12]OFD Sender: No OFD packet to send [18:21:17]OFD Sender: No OFD packet to send [18:21:22]OFD Sender: No OFD packet to send [18:21:27]OFD Sender: No OFD packet to send [18:21:32]OFD Sender: No OFD packet to send [18:21:37]OFD Sender: No OFD packet to send [18:21:42]OFD Sender: No OFD packet to send [18:21:47]OFD Sender: No OFD packet to send [18:21:52]OFD Sender: No OFD packet to send [18:21:57]OFD Sender: No OFD packet to send [18:22:02]OFD Sender: No OFD packet to send [18:22:07]OFD Sender: No OFD packet to send [18:22:12]OFD Sender: No OFD packet to send [18:22:17]OFD Sender: No OFD packet to send [18:22:22]OFD Sender: No OFD packet to send [18:22:27]OFD Sender: No OFD packet to send [18:22:32]OFD Sender: No OFD packet to send [18:22:37]OFD Sender: No OFD packet to send [18:22:42]OFD Sender: No OFD packet to send [18:22:47]OFD Sender: No OFD packet to send [18:22:52]OFD Sender: No OFD packet to send [18:22:57]OFD Sender: No OFD packet to send [18:23:02]OFD Sender: No OFD packet to send [18:23:07]OFD Sender: No OFD packet to send [18:23:10]accept exits with 9 [18:23:10]New connection [18:23:10]New thread 3067526500 created [18:23:10]Thread 3067383140 joined [18:23:10]Waiting for new connection... [18:23:10] Sock 9.Parse request [18:23:10]Sock 9.Check first char [18:23:10]Sock 9.First char is OK [18:23:10]request: POST /json_proto HTTP/1.0 [18:23:10]Method: POST [18:23:10]URL: /json_proto [18:23:10]Method is POST - this is cgi request [18:23:10]url: /json_proto [18:23:10]query_string will be loaded in cgi processing [18:23:10]execute_cgi json_proto POST (null) [18:23:10]execute_cgi path=json_proto method=POST [18:23:10]POST find Content-Length [18:23:10]Host: 172.17.56.4:8080 [18:23:10]Content-Length: 677 [18:23:10]Content-Type: application/json [18:23:10] [18:23:10]POST finish read [18:23:10]Found Content-Length = 677 [18:23:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459155", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:23:10]execute_script... [18:23: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)459155", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:23:10]POST & json_proto [18:23:10]process_json_proto [18:23:10]json parsed OK: [18:23:10]protocol is kg_v1.0 [18:23:10]action value=close_receipt [18:23:10]process_action close_receipt [18:23:10]cmd_close_receipt [18:23:10]MH_GetDate [18:23:10]Write to MH i2c: F0 00 00 B9 04 AC [18:23:10]Write i2c OK [18:23:10]MH_I2C_Read... [18:23:10]Read from MH i2c: F0 [18:23:10]MH_I2C_Read... [18:23:10]Read from MH i2c: F0 09 00 [18:23:10]MH_I2C_Read... [18:23:10]Read from MH i2c: F0 09 00 B9 04 00 8E 17 94 66 C9 DC B2 64 0F [18:23:10]GetLastDocTimeStamp 1720981089 [18:23:10]current date 1720981390 [18:23:10]FM_GetShiftState [18:23:10]SAM_PROTO_GetShiftState [18:23:10]wFMCommunicate request_size=4 [18:23:10]MH_SAM_APDU [18:23:10]CAPDU: 80 13 01 00 [18:23:10]Write to MH i2c: E2 08 00 BA 04 80 13 01 00 00 00 00 00 3B [18:23:10]Write i2c OK [18:23:10]MH_I2C_Read... [18:23:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:23:10]Read from MH i2c: E2 [18:23:10]MH_I2C_Read... [18:23:10]Read from MH i2c: E2 0E 00 [18:23:10]MH_I2C_Read... [18:23:10]Read from MH i2c: E2 0E 00 BA 04 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 BB [18:23:10]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [18:23:10]wFMCommunicate OK [18:23:10]SAM_PROTO_GetShiftState done [18:23:10]FM_GetShiftState done [18:23:10]opened in 1720917342 [18:23:10]opened+sec_in_day 1721003742 [18:23:10]quantity*price = 50008 [18:23:10]sum+1 = 50009 [18:23:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 252 14.07.2024 18:23 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165054 ФПД: 262167079542048 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T182310&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165054&fm=262167079542048&tin=02508201610067®Number=0000000000090829&sum=50000 [18:23:11]StoreToDocumentArchive [18:23:11]shift 447 fd 165054 [18:23:11]save to /storage/0447/doc_00165054 [18:23:11]save last doc name /storage/0447/doc_00165054 to /storage/kkm_last_doc_name [18:23:11]save OK [18:23:11]Clear old archive folders... [18:23:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:23:11]tlvbuf is 01F72E80 [18:23:11]SAM_PROTO_ClearQueue [18:23:11]wFMCommunicate request_size=4 [18:23:11]MH_SAM_APDU [18:23:11]CAPDU: 80 09 00 00 [18:23:11]Write to MH i2c: E2 08 00 C7 04 80 09 00 00 00 00 00 00 3D [18:23:11]Write i2c OK [18:23:11]MH_I2C_Read... [18:23:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:23:11]Read from MH i2c: E2 [18:23:11]MH_I2C_Read... [18:23:11]Read from MH i2c: E2 03 00 [18:23:11]MH_I2C_Read... [18:23:11]Read from MH i2c: E2 03 00 C7 04 00 90 00 3F [18:23:11]RAPDU: 90 00 [18:23:11]wFMCommunicate OK [18:23:11]SAM_PROTO_ClearQueue done [18:23:11]KKMCreateOFDPacket [18:23:11]OFDProtocolAddRootSTLVToBuf [18:23:11]FM_MakeSignedData [18:23:11]FM_MakeSignedData [18:23:11]SAM_PROTO_SignData [18:23:11]wFMCommunicate request_size=4 [18:23:11]MH_SAM_APDU [18:23:11]CAPDU: 80 0D 01 02 [18:23:11]Write to MH i2c: E2 08 00 C8 04 80 0D 01 02 00 00 00 00 45 [18:23:11]Write i2c OK [18:23:11]MH_I2C_Read... [18:23:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:23:11]Read from MH i2c: E2 [18:23:11]MH_I2C_Read... [18:23:11]Read from MH i2c: E2 03 00 [18:23:11]MH_I2C_Read... [18:23:11]Read from MH i2c: E2 03 00 C8 04 00 90 00 40 [18:23:11]RAPDU: 90 00 [18:23:11]wFMCommunicate OK [18:23:11]wFMCommunicate request_size=255 [18:23:11]MH_SAM_APDU [18:23:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 FC 00 00 00 F4 03 04 00 8E 17 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BE 84 02 00 35 04 06 00 EE [18:23:11]Write to MH i2c: E2 02 01 C9 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 FC 00 00 00 F4 03 04 00 8E 17 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BE 84 02 00 35 04 06 00 EE 00 00 4B [18:23:11]Write i2c OK [18:23:11]MH_I2C_Read... [18:23:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:23:11]Read from MH i2c: E2 [18:23:11]MH_I2C_Read... [18:23:11]Read from MH i2c: E2 03 00 [18:23:11]MH_I2C_Read... [18:23:11]Read from MH i2c: E2 03 00 C9 04 00 90 00 41 [18:23:11]RAPDU: 90 00 [18:23:11]wFMCommunicate OK [18:23:11]wFMCommunicate request_size=10 [18:23:11]MH_SAM_APDU [18:23:11]CAPDU: 80 0D 02 02 05 70 87 A5 DD 20 [18:23:11]Write to MH i2c: E2 0D 00 CA 04 80 0D 02 02 05 00 70 87 A5 DD 20 00 00 EB [18:23:11]Write i2c OK [18:23:11]MH_I2C_Read... [18:23:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:23:11]Read from MH i2c: E2 [18:23:11]MH_I2C_Read... [18:23:11]Read from MH i2c: E2 03 00 [18:23:11]MH_I2C_Read... [18:23:11]Read from MH i2c: E2 03 00 CA 04 00 90 00 42 [18:23:11]RAPDU: 90 00 [18:23:11]wFMCommunicate OK [18:23:11]wFMCommunicate request_size=4 [18:23:11]MH_SAM_APDU [18:23:11]CAPDU: 80 0D 03 02 [18:23:11]Write to MH i2c: E2 08 00 CB 04 80 0D 03 02 00 00 00 00 4A [18:23:11]Write i2c OK [18:23:11]MH_I2C_Read... [18:23:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:23:11]Read from MH i2c: E2 [18:23:11]MH_I2C_Read... [18:23:11]Read from MH i2c: E2 0B 00 [18:23:11]MH_I2C_Read... [18:23:11]Read from MH i2c: E2 0B 00 CB 04 00 A2 94 33 D2 45 22 6E 9A 90 00 F5 [18:23:11]RAPDU: A2 94 33 D2 45 22 6E 9A 90 00 [18:23:11]wFMCommunicate OK [18:23:11]SAM_PROTO_SignData done [18:23:11]FM_MakeSignedData done [18:23:11]CreateOFDProtocolMessage [18:23:11]wFMCommunicate request_size=4 [18:23:11]MH_SAM_APDU [18:23:11]CAPDU: 80 11 00 00 [18:23:11]Write to MH i2c: E2 08 00 CC 04 80 11 00 00 00 00 00 00 4A [18:23:11]Write i2c OK [18:23:11]MH_I2C_Read... [18:23:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:23:11]Read from MH i2c: E2 [18:23:11]MH_I2C_Read... [18:23:11]Read from MH i2c: E2 17 00 [18:23:11]MH_I2C_Read... [18:23:11]Read from MH i2c: E2 17 00 CC 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A0 [18:23:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:23:11]wFMCommunicate OK [18:23:11]CreateOFDProtocolMessage done [18:23:11]OFDSenderStorePacket 165054 [18:23:11]StoreOFDPacket docnum=165054 [18:23:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 4A 58 07 01 A0 AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 FC 00 00 00 F4 03 04 00 8E 17 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BE 84 02 00 35 04 06 00 EE 70 87 A5 DD 20 A2 94 33 D2 45 22 6E 9A [18:23:11]CheckFolder [18:23:11]dirname=/storage/ofd_packets [18:23:11]CheckFolder done [18:23:11]ProducePacketName [18:23:11]name=ofd_packets/00165054 [18:23:11]NVStorageSaveData ofd_packets/00165054 [18:23:11]File name is /storage/ofd_packets/00165054 [18:23:11]Write 301 bytes [18:23:11]NVStorageSaveData done [18:23:11]OFDSenderStorePacket done [18:23:11]KKMCreateOFDPacket done [18:23:11]NVStorageSaveData kkm_last_timestamp [18:23:11]File name is /storage/kkm_last_timestamp [18:23:11]Write 4 bytes [18:23:11]NVStorageSaveData done [18:23:11]ExternCall_PrintAddStr [18:23:11]wPrintStart [18:23:11]Write to MH i2c: 01 00 00 CD 04 D1 [18:23:11]Write i2c OK [18:23:11]MH_I2C_Read... [18:23:11]Read from MH i2c: 01 [18:23:11]MH_I2C_Read... [18:23:11]Read from MH i2c: 01 07 00 [18:23:11]MH_I2C_Read... [18:23:11]Read from MH i2c: 01 07 00 CD 04 00 00 00 00 00 FF 0F E6 [18:23:11]RasterBufferAndPrint [18:23:11]line Счет N : (1)459155 [18:23:11]line ИНН: 02508201610067 [18:23:11]line Контрольно-Кассовый Чек [18:23:11]line ПРОДАЖА [18:23:11]line ТРК (МРК, ГНК) : 22 [18:23:11]line Товар: 2710124130 [18:23:11]line Аи-92-К-5 [18:23:11]line 7.600 * 65.80 [18:23:11]line = 500.08 [18:23:11]line НДС 12% НСП 1% [18:23:11]line > о реализуемом товаре [18:23:11]line ОКРУГЛЕНИЕ: -0.08 [18:23:11]line ИТОГО: 500.00 [18:23:11]line Внесено: 500.00 [18:23:11]line СДАЧА: 0.00 [18:23:11]line НСП 1% : 4.42 [18:23:11]line НДС 12% : 53.11 [18:23:11]line Наличными: 500.00 [18:23:11]line Безнал.: 0.00 [18:23:11]line Место: АЗС № 72 "Партнер Нефть" [18:23:11]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [18:23:11]line СНО: Общий режим [18:23:11]line Чек 252 14.07.2024 18:23 [18:23:11]line Смена: 447 ФФД: 1.0 [18:23:11]line ЗНМ: 0300000160 [18:23:11]line РНМ: 0000000000090829 [18:23:11]line Версия ККМ: 001 [18:23:11]line ФМ: 0000000000874718 [18:23:11]line ФД: 165054 [18:23:11]line ФПД: 262167079542048 [18:23:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T182310&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165054&fm=262167079542048&tin=02508201610067®Number=0000000000090829&sum=50000 [18:23:12]written 0, free lines is 4095 [18:23:12]OFD Sender: Processing packet 165054 [packets to send 105, broken 104] [18:23:12]ProducePacketName [18:23:12]name=ofd_packets/00165054 [18:23:12]OFD Sender: To server: pG, [18:23:12]CommunicateWithHost lk.salyk.kg:30040 [18:23:12]ConnectInit lk.salyk.kg [18:23:12]Connected sock=10 [18:23:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 4A 58 07 01 A0 AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 FC 00 00 00 F4 03 04 00 8E 17 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BE 84 02 00 35 04 06 00 EE 70 87 A5 DD 20 A2 94 33 D2 45 22 6E 9A [18:23:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 77 24 47 00 43 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BE 84 02 00 F4 03 04 00 1B BE 93 66 B6 04 01 00 00 97 5C C0 54 14 30 A2 56 [18:23:12]CommunicateWithHost err = 0 [18:23:12]CheckOFDResponse [18:23:12]1017 (14) - 77093643461234 [18:23:12]1041 (16) - 0000000000874718 [18:23:12]1040 (4) - 165054 [18:23:12]1012 (4) - 14.07.2024 12:01 [18:23:12]1206 (1) - 0 [18:23:12]OFD Sender: Remove packet 165054 [18:23:12]ProducePacketName [18:23:12]name=ofd_packets/00165054 [18:23:12]NVStorageDeleteData [18:23:12]Write to MH i2c: 01 00 00 F7 04 FB [18:23:12]Write i2c OK [18:23:12]MH_I2C_Read... [18:23:12]Read from MH i2c: 01 [18:23:12]MH_I2C_Read... [18:23:12]Read from MH i2c: 01 07 00 [18:23:12]MH_I2C_Read... [18:23:12]Read from MH i2c: 01 07 00 F7 04 00 00 00 00 00 F4 0C 02 [18:23:12]RasterBufferAndPrint [18:23:12]line [18:23:12]line [18:23:12]line [18:23:12]line [18:23:12]line [18:23:12]written 0, free lines is 3323 [18:23:12]MH_Cut [18:23:12]Write to MH i2c: D1 01 00 FE 04 01 D4 [18:23:12]Write i2c OK [18:23:12]MH_I2C_Read... [18:23:12]Read from MH i2c: D1 [18:23:12]MH_I2C_Read... [18:23:12]Read from MH i2c: D1 01 00 [18:23:12]MH_I2C_Read... [18:23:12]Read from MH i2c: D1 01 00 FE 04 00 D3 [18:23:12]Write to MH i2c: 01 00 00 FF 04 03 [18:23:12]Write i2c OK [18:23:12]MH_I2C_Read... [18:23:13]OFD Sender: No OFD packet to send [18:23:13]*** Cut start [18:23:13]*** Partial cut [18:23:13]*** CUTSNS_PIN = 1 [18:23:13]*** CUTSNS_PIN = 0 [18:23:13]*** Brake cut motor [18:23:13]Read from MH i2c: 01 [18:23:13]MH_I2C_Read... [18:23:13]*** Stop cut motor [18:23:13]*** Cut end [18:23:13]Read from MH i2c: 01 07 00 [18:23:13]MH_I2C_Read... [18:23:14]Read from MH i2c: 01 07 00 FF 04 00 00 00 00 00 FF 0F 18 [18:23:14]process_action close_receipt done [18:23:14]requested_data is exist [18:23:14]produce_requested_data [18:23:14]requested_item fm.sn is exist - process it [18:23:14]wFMCommunicate request_size=4 [18:23:14]MH_SAM_APDU [18:23:14]CAPDU: 80 11 00 00 [18:23:14]Write to MH i2c: E2 08 00 00 05 80 11 00 00 00 00 00 00 7F [18:23:14]Write i2c OK [18:23:14]MH_I2C_Read... [18:23:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:23:14]Read from MH i2c: E2 [18:23:14]MH_I2C_Read... [18:23:14]Read from MH i2c: E2 17 00 [18:23:14]MH_I2C_Read... [18:23:14]Read from MH i2c: E2 17 00 00 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D5 [18:23:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:23:14]wFMCommunicate OK [18:23:14]requested_item fd.num is exist - process it [18:23:14]SAM_PROTO_GetFieldsCounters [18:23:14]wFMCommunicate request_size=4 [18:23:14]MH_SAM_APDU [18:23:14]CAPDU: 80 13 00 00 [18:23:14]Write to MH i2c: E2 08 00 01 05 80 13 00 00 00 00 00 00 82 [18:23:14]Write i2c OK [18:23:14]MH_I2C_Read... [18:23:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:23:14]Read from MH i2c: E2 [18:23:14]MH_I2C_Read... [18:23:14]Read from MH i2c: E2 62 00 [18:23:14]MH_I2C_Read... [18:23:14]Read from MH i2c: E2 62 00 01 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 BE 84 02 00 0E 04 04 00 BF 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 A1 [18:23:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 BE 84 02 00 0E 04 04 00 BF 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 [18:23:14]wFMCommunicate OK [18:23:14]SAM_PROTO_GetFieldsCounters done [18:23:14]requested_item shift.num is exist - process it [18:23:14]requested_item shift.opened is exist - process it [18:23:14]req_shift_opened [18:23:14]FM_GetShiftState [18:23:14]SAM_PROTO_GetShiftState [18:23:14]wFMCommunicate request_size=4 [18:23:14]MH_SAM_APDU [18:23:14]CAPDU: 80 13 01 00 [18:23:14]Write to MH i2c: E2 08 00 02 05 80 13 01 00 00 00 00 00 84 [18:23:14]Write i2c OK [18:23:14]MH_I2C_Read... [18:23:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:23:14]Read from MH i2c: E2 [18:23:14]MH_I2C_Read... [18:23:14]Read from MH i2c: E2 0E 00 [18:23:14]MH_I2C_Read... [18:23:14]Read from MH i2c: E2 0E 00 02 05 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 04 [18:23:14]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [18:23:14]wFMCommunicate OK [18:23:14]SAM_PROTO_GetShiftState done [18:23:14]FM_GetShiftState done [18:23:14]req_shift_opened done [18:23:14]requested_item shift.open_date is exist - process it [18:23:14]req_shift_open_date [18:23:14]req_shift_open_date done [18:23:14]produce_requested_data done [18:23:14]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165054,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [18:23:14]process_action_free close_receipt [18:23:14]json_value_free [18:23:14]json_value_free done [18:23:14]process_json_proto returns [18:23:14]Send response to host [18:23:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165054,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [18:23:14]free response buf [18:23:14]execute_script done [18:23:14]execute_script returns [18:23:14]free content buf [18:23:14]Sock 9.Close socket [18:23:14]Sock 9.Thread stoped [18:23:18]OFD Sender: No OFD packet to send [18:23:23]OFD Sender: No OFD packet to send [18:23:28]OFD Sender: No OFD packet to send [18:23:33]OFD Sender: No OFD packet to send [18:23:38]OFD Sender: No OFD packet to send [18:23:43]OFD Sender: No OFD packet to send [18:23:48]OFD Sender: No OFD packet to send [18:23:53]OFD Sender: No OFD packet to send [18:23:58]OFD Sender: No OFD packet to send [18:24:03]OFD Sender: No OFD packet to send [18:24:08]OFD Sender: No OFD packet to send [18:24:13]OFD Sender: No OFD packet to send [18:24:18]OFD Sender: No OFD packet to send [18:24:23]OFD Sender: No OFD packet to send [18:24:28]OFD Sender: No OFD packet to send [18:24:33]OFD Sender: No OFD packet to send [18:24:38]OFD Sender: No OFD packet to send [18:24:43]OFD Sender: No OFD packet to send [18:24:48]OFD Sender: No OFD packet to send [18:24:53]OFD Sender: No OFD packet to send [18:24:58]OFD Sender: No OFD packet to send [18:25:00]accept exits with 7 [18:25:00]New connection [18:25:00]New thread 3067383140 created [18:25:00]Thread 3067526500 joined [18:25:00]Waiting for new connection... [18:25:00] Sock 7.Parse request [18:25:00]Sock 7.Check first char [18:25:00]Sock 7.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.56.4:8080 [18:25:00]Content-Length: 679 [18:25:00]Content-Type: application/json [18:25:00] [18:25:00]POST finish read [18:25:00]Found Content-Length = 679 [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)459156", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 20.870, "sum" : 1500.55, "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: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)459156", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 20.870, "sum" : 1500.55, "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: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 03 05 F7 [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 03 05 00 FC 17 94 66 C9 DC B2 64 C8 [18:25:00]GetLastDocTimeStamp 1720981390 [18:25:00]current date 1720981500 [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 04 05 80 13 01 00 00 00 00 00 86 [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 04 05 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 06 [18:25:00]RAPDU: 09 00 01 5E 1D 93 66 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 1720917342 [18:25:00]opened+sec_in_day 1721003742 [18:25:00]quantity*price = 150055 [18:25:00]sum+1 = 150056 [18:25:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 253 14.07.2024 18:25 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165055 ФПД: 117809815103852 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T182500&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165055&fm=117809815103852&tin=02508201610067®Number=0000000000090829&sum=150000 [18:25:01]StoreToDocumentArchive [18:25:01]shift 447 fd 165055 [18:25:01]save to /storage/0447/doc_00165055 [18:25:01]save last doc name /storage/0447/doc_00165055 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=248 [18:25:01]tlvbuf is 01F3F4A0 [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 11 05 80 09 00 00 00 00 00 00 88 [18:25:01]Write i2c OK [18:25:01]MH_I2C_Read... [18:25:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:25:01]Read from MH i2c: E2 [18:25:01]MH_I2C_Read... [18:25:01]Read from MH i2c: E2 03 00 [18:25:01]MH_I2C_Read... [18:25:01]Read from MH i2c: E2 03 00 11 05 00 90 00 8A [18:25:01]RAPDU: 90 00 [18:25:01]wFMCommunicate OK [18:25:01]SAM_PROTO_ClearQueue done [18:25:01]KKMCreateOFDPacket [18:25:01]OFDProtocolAddRootSTLVToBuf [18:25:01]FM_MakeSignedData [18:25:01]FM_MakeSignedData [18:25:01]SAM_PROTO_SignData [18:25:01]wFMCommunicate request_size=4 [18:25:01]MH_SAM_APDU [18:25:01]CAPDU: 80 0D 01 02 [18:25:01]Write to MH i2c: E2 08 00 12 05 80 0D 01 02 00 00 00 00 90 [18:25:01]Write i2c OK [18:25:01]MH_I2C_Read... [18:25:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:25:01]Read from MH i2c: E2 [18:25:01]MH_I2C_Read... [18:25:01]Read from MH i2c: E2 03 00 [18:25:01]MH_I2C_Read... [18:25:01]Read from MH i2c: E2 03 00 12 05 00 90 00 8B [18:25:01]RAPDU: 90 00 [18:25:01]wFMCommunicate OK [18:25:01]wFMCommunicate request_size=255 [18:25:01]MH_SAM_APDU [18:25:01]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 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 FD 00 00 00 F4 03 04 00 FC 17 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BF 84 02 00 35 04 06 00 6B 25 BC 2E [18:25:01]Write to MH i2c: E2 02 01 13 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 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 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 FD 00 00 00 F4 03 04 00 FC 17 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BF 84 02 00 35 04 06 00 6B 25 BC 2E 00 00 20 [18:25:01]Write i2c OK [18:25:01]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 13 05 00 90 00 8C [18:25:02]RAPDU: 90 00 [18:25:02]wFMCommunicate OK [18:25:02]wFMCommunicate request_size=7 [18:25:02]MH_SAM_APDU [18:25:02]CAPDU: 80 0D 02 02 02 29 6C [18:25:02]Write to MH i2c: E2 0A 00 14 05 80 0D 02 02 02 00 29 6C 00 00 2C [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 14 05 00 90 00 8D [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 15 05 80 0D 03 02 00 00 00 00 95 [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 15 05 00 8F 1C 1E 2E BD 3F 33 AD 90 00 69 [18:25:02]RAPDU: 8F 1C 1E 2E BD 3F 33 AD 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 16 05 80 11 00 00 00 00 00 00 95 [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 16 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 EB [18:25:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:25:02]wFMCommunicate OK [18:25:02]CreateOFDProtocolMessage done [18:25:02]OFDSenderStorePacket 165055 [18:25:02]StoreOFDPacket docnum=165055 [18:25:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 89 38 04 01 A5 EE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 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 FD 00 00 00 F4 03 04 00 FC 17 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BF 84 02 00 35 04 06 00 6B 25 BC 2E 29 6C 8F 1C 1E 2E BD 3F 33 AD [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/00165055 [18:25:02]NVStorageSaveData ofd_packets/00165055 [18:25:02]File name is /storage/ofd_packets/00165055 [18:25:02]Write 298 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 17 05 1C [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 17 05 00 00 00 00 00 FF 0F 31 [18:25:02]RasterBufferAndPrint [18:25:02]line Счет N : (1)459156 [18:25:02]line ИНН: 02508201610067 [18:25:02]line Контрольно-Кассовый Чек [18:25:02]line ПРОДАЖА [18:25:02]line ТРК (МРК, ГНК) : 21 [18:25:02]line Товар: 2710194210 [18:25:02]line ДТ-К-5 [18:25:02]line 20.870 * 71.90 [18:25:02]line = 1500.55 [18:25:02]line НДС 12% НСП 1% [18:25:02]line > о реализуемом товаре [18:25:02]line ОКРУГЛЕНИЕ: -0.55 [18:25:02]line ИТОГО: 1500.00 [18:25:02]line Внесено: 1500.00 [18:25:02]line СДАЧА: 0.00 [18:25:02]line НСП 1% : 13.28 [18:25:02]line НДС 12% : 159.35 [18:25:02]line Наличными: 1500.00 [18:25:02]line Безнал.: 0.00 [18:25:02]line Место: АЗС № 72 "Партнер Нефть" [18:25:02]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [18:25:02]line СНО: Общий режим [18:25:02]line Чек 253 14.07.2024 18:25 [18:25:02]line Смена: 447 ФФД: 1.0 [18:25:02]line ЗНМ: 0300000160 [18:25:02]line РНМ: 0000000000090829 [18:25:02]line Версия ККМ: 001 [18:25:02]line ФМ: 0000000000874718 [18:25:02]line ФД: 165055 [18:25:02]line ФПД: 117809815103852 [18:25:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T182500&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165055&fm=117809815103852&tin=02508201610067®Number=0000000000090829&sum=150000 [18:25:02]OFD Sender: Processing packet 165055 [packets to send 105, broken 104] [18:25:02]ProducePacketName [18:25:02]name=ofd_packets/00165055 [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]written 0, free lines is 4095 [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 38 37 34 37 31 38 0C 01 00 00 89 38 04 01 A5 EE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 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 FD 00 00 00 F4 03 04 00 FC 17 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BF 84 02 00 35 04 06 00 6B 25 BC 2E 29 6C 8F 1C 1E 2E BD 3F 33 AD [18:25:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 46 9E 47 00 87 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BF 84 02 00 F4 03 04 00 89 BE 93 66 B6 04 01 00 00 DF F9 0A 11 A1 C7 5F A0 [18:25:02]CommunicateWithHost err = 0 [18:25:02]CheckOFDResponse [18:25:02]1017 (14) - 77093643461234 [18:25:02]1041 (16) - 0000000000874718 [18:25:02]1040 (4) - 165055 [18:25:02]1012 (4) - 14.07.2024 12:03 [18:25:02]1206 (1) - 0 [18:25:02]OFD Sender: Remove packet 165055 [18:25:02]ProducePacketName [18:25:02]name=ofd_packets/00165055 [18:25:02]NVStorageDeleteData [18:25:02]Write to MH i2c: 01 00 00 41 05 46 [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 41 05 00 00 00 00 00 02 0D 5C [18:25:02]RasterBufferAndPrint [18:25:02]line [18:25:02]line [18:25:02]line [18:25:02]line [18:25:02]line [18:25:02]written 0, free lines is 3336 [18:25:02]MH_Cut [18:25:02]Write to MH i2c: D1 01 00 48 05 01 1F [18:25:02]Write i2c OK [18:25:02]MH_I2C_Read... [18:25:02]Read from MH i2c: D1 [18:25:02]MH_I2C_Read... [18:25:02]Read from MH i2c: D1 01 00 [18:25:02]MH_I2C_Read... [18:25:02]Read from MH i2c: D1 01 00 48 05 00 1E [18:25:02]Write to MH i2c: 01 00 00 49 05 4E [18:25:02]Write i2c OK [18:25:02]MH_I2C_Read... [18:25:03]OFD Sender: No OFD packet to send [18:25:03]*** Cut start [18:25:03]*** Partial cut [18:25:03]*** CUTSNS_PIN = 1 [18:25:03]*** CUTSNS_PIN = 0 [18:25:03]*** 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 49 05 00 00 00 00 00 FF 0F 63 [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 4A 05 80 11 00 00 00 00 00 00 C9 [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 4A 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 1F [18:25:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 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 4B 05 80 13 00 00 00 00 00 00 CC [18:25:04]Write i2c OK [18:25:04]MH_I2C_Read... [18:25:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:25:04]Read from MH i2c: E2 [18:25:04]MH_I2C_Read... [18:25:04]Read from MH i2c: E2 62 00 [18:25:04]MH_I2C_Read... [18:25:04]Read from MH i2c: E2 62 00 4B 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 BF 84 02 00 0E 04 04 00 BF 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 EF [18:25:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 BF 84 02 00 0E 04 04 00 BF 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 [18:25:04]wFMCommunicate OK [18:25:04]SAM_PROTO_GetFieldsCounters done [18:25:04]requested_item shift.num is exist - process it [18:25:04]requested_item shift.opened is exist - process it [18:25:04]req_shift_opened [18:25:04]FM_GetShiftState [18:25:04]SAM_PROTO_GetShiftState [18:25:04]wFMCommunicate request_size=4 [18:25:04]MH_SAM_APDU [18:25:04]CAPDU: 80 13 01 00 [18:25:04]Write to MH i2c: E2 08 00 4C 05 80 13 01 00 00 00 00 00 CE [18:25:04]Write i2c OK [18:25:04]MH_I2C_Read... [18:25:04]Read from MH i2c: E2 [18:25:04]MH_I2C_Read... [18:25:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:25:04]Read from MH i2c: E2 0E 00 [18:25:04]MH_I2C_Read... [18:25:04]Read from MH i2c: E2 0E 00 4C 05 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 4E [18:25:04]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [18:25:04]wFMCommunicate OK [18:25:04]SAM_PROTO_GetShiftState done [18:25:04]FM_GetShiftState done [18:25:04]req_shift_opened done [18:25:04]requested_item shift.open_date is exist - process it [18:25:04]req_shift_open_date [18:25:04]req_shift_open_date done [18:25:04]produce_requested_data done [18:25:04]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165055,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [18:25:04]process_action_free close_receipt [18:25:04]json_value_free [18:25:04]json_value_free done [18:25:04]process_json_proto returns [18:25:04]Send response to host [18:25:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165055,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [18:25:04]free response buf [18:25:04]execute_script done [18:25:04]execute_script returns [18:25:04]free content buf [18:25:04]Sock 7.Close socket [18:25:04]Sock 7.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:13]OFD Sender: No OFD packet to send [18:26:18]OFD Sender: No OFD packet to send [18:26:23]OFD Sender: No OFD packet to send [18:26:28]OFD Sender: No OFD packet to send [18:26:33]OFD Sender: No OFD packet to send [18:26:38]OFD Sender: No OFD packet to send [18:26:43]OFD Sender: No OFD packet to send [18:26:48]OFD Sender: No OFD packet to send [18:26:53]OFD Sender: No OFD packet to send [18:26:58]OFD Sender: No OFD packet to send [18:27:03]OFD Sender: No OFD packet to send [18:27:08]OFD Sender: No OFD packet to send [18:27:13]OFD Sender: No OFD packet to send [18:27:18]OFD Sender: No OFD packet to send [18:27:23]OFD Sender: No OFD packet to send [18:27:28]OFD Sender: No OFD packet to send [18:27:33]OFD Sender: No OFD packet to send [18:27:38]OFD Sender: No OFD packet to send [18:27:43]OFD Sender: No OFD packet to send [18:27:46]accept exits with 9 [18:27:46]New connection [18:27:46]New thread 3067526500 created [18:27:46]Thread 3067383140 joined [18:27:46]Waiting for new connection... [18:27:46] Sock 9.Parse request [18:27:46]Sock 9.Check first char [18:27:46]Sock 9.First char is OK [18:27:46]request: POST /json_proto HTTP/1.0 [18:27:46]Method: POST [18:27:46]URL: /json_proto [18:27:46]Method is POST - this is cgi request [18:27:46]url: /json_proto [18:27:46]query_string will be loaded in cgi processing [18:27:46]execute_cgi json_proto POST (null) [18:27:46]execute_cgi path=json_proto method=POST [18:27:46]POST find Content-Length [18:27:46]Host: 172.17.56.4:8080 [18:27:46]Content-Length: 677 [18:27:46]Content-Type: application/json [18:27:46] [18:27:46]POST finish read [18:27:46]Found Content-Length = 677 [18:27:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459157", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:27:46]execute_script... [18:27: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)459157", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:27:46]POST & json_proto [18:27:46]process_json_proto [18:27:46]json parsed OK: [18:27:46]protocol is kg_v1.0 [18:27:46]action value=close_receipt [18:27:46]process_action close_receipt [18:27:46]cmd_close_receipt [18:27:46]MH_GetDate [18:27:46]Write to MH i2c: F0 00 00 4D 05 41 [18:27:46]Write i2c OK [18:27:46]MH_I2C_Read... [18:27:46]Read from MH i2c: F0 [18:27:46]MH_I2C_Read... [18:27:46]Read from MH i2c: F0 09 00 [18:27:46]MH_I2C_Read... [18:27:46]Read from MH i2c: F0 09 00 4D 05 00 A2 18 94 66 C9 DC B2 64 B9 [18:27:46]GetLastDocTimeStamp 1720981500 [18:27:46]current date 1720981666 [18:27:46]FM_GetShiftState [18:27:46]SAM_PROTO_GetShiftState [18:27:46]wFMCommunicate request_size=4 [18:27:46]MH_SAM_APDU [18:27:46]CAPDU: 80 13 01 00 [18:27:46]Write to MH i2c: E2 08 00 4E 05 80 13 01 00 00 00 00 00 D0 [18:27:46]Write i2c OK [18:27:46]MH_I2C_Read... [18:27:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:46]Read from MH i2c: E2 [18:27:46]MH_I2C_Read... [18:27:46]Read from MH i2c: E2 0E 00 [18:27:46]MH_I2C_Read... [18:27:46]Read from MH i2c: E2 0E 00 4E 05 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 50 [18:27:46]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [18:27:46]wFMCommunicate OK [18:27:46]SAM_PROTO_GetShiftState done [18:27:46]FM_GetShiftState done [18:27:46]opened in 1720917342 [18:27:46]opened+sec_in_day 1721003742 [18:27:46]quantity*price = 50008 [18:27:46]sum+1 = 50009 [18:27:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 254 14.07.2024 18:27 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165056 ФПД: 25393214720514 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T182746&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165056&fm=25393214720514&tin=02508201610067®Number=0000000000090829&sum=50000 [18:27:47]StoreToDocumentArchive [18:27:47]shift 447 fd 165056 [18:27:47]save to /storage/0447/doc_00165056 [18:27:47]save last doc name /storage/0447/doc_00165056 to /storage/kkm_last_doc_name [18:27:47]save OK [18:27:47]Clear old archive folders... [18:27:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:27:47]tlvbuf is 01F74000 [18:27:47]SAM_PROTO_ClearQueue [18:27:47]wFMCommunicate request_size=4 [18:27:47]MH_SAM_APDU [18:27:47]CAPDU: 80 09 00 00 [18:27:47]Write to MH i2c: E2 08 00 5B 05 80 09 00 00 00 00 00 00 D2 [18:27:47]Write i2c OK [18:27:47]MH_I2C_Read... [18:27:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:27:47]Read from MH i2c: E2 [18:27:47]MH_I2C_Read... [18:27:47]Read from MH i2c: E2 03 00 [18:27:47]MH_I2C_Read... [18:27:47]Read from MH i2c: E2 03 00 5B 05 00 90 00 D4 [18:27:47]RAPDU: 90 00 [18:27:47]wFMCommunicate OK [18:27:47]SAM_PROTO_ClearQueue done [18:27:47]KKMCreateOFDPacket [18:27:47]OFDProtocolAddRootSTLVToBuf [18:27:47]FM_MakeSignedData [18:27:47]FM_MakeSignedData [18:27:47]SAM_PROTO_SignData [18:27:47]wFMCommunicate request_size=4 [18:27:47]MH_SAM_APDU [18:27:47]CAPDU: 80 0D 01 02 [18:27:47]Write to MH i2c: E2 08 00 5C 05 80 0D 01 02 00 00 00 00 DA [18:27:47]Write i2c OK [18:27:47]MH_I2C_Read... [18:27:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:27:47]Read from MH i2c: E2 [18:27:47]MH_I2C_Read... [18:27:47]Read from MH i2c: E2 03 00 [18:27:47]MH_I2C_Read... [18:27:47]Read from MH i2c: E2 03 00 5C 05 00 90 00 D5 [18:27:47]RAPDU: 90 00 [18:27:47]wFMCommunicate OK [18:27:47]wFMCommunicate request_size=255 [18:27:47]MH_SAM_APDU [18:27:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 FE 00 00 00 F4 03 04 00 A2 18 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C0 84 02 00 35 04 06 00 17 [18:27:47]Write to MH i2c: E2 02 01 5D 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 FE 00 00 00 F4 03 04 00 A2 18 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C0 84 02 00 35 04 06 00 17 00 00 22 [18:27:47]Write i2c OK [18:27:47]MH_I2C_Read... [18:27:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:47]Read from MH i2c: E2 [18:27:47]MH_I2C_Read... [18:27:47]Read from MH i2c: E2 03 00 [18:27:47]MH_I2C_Read... [18:27:47]Read from MH i2c: E2 03 00 5D 05 00 90 00 D6 [18:27:47]RAPDU: 90 00 [18:27:47]wFMCommunicate OK [18:27:47]wFMCommunicate request_size=10 [18:27:47]MH_SAM_APDU [18:27:47]CAPDU: 80 0D 02 02 05 18 51 8B 0A 02 [18:27:47]Write to MH i2c: E2 0D 00 5E 05 80 0D 02 02 05 00 18 51 8B 0A 02 00 00 E7 [18:27:47]Write i2c OK [18:27:47]MH_I2C_Read... [18:27:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:47]Read from MH i2c: E2 [18:27:47]MH_I2C_Read... [18:27:47]Read from MH i2c: E2 03 00 [18:27:47]MH_I2C_Read... [18:27:47]Read from MH i2c: E2 03 00 5E 05 00 90 00 D7 [18:27:47]RAPDU: 90 00 [18:27:47]wFMCommunicate OK [18:27:47]wFMCommunicate request_size=4 [18:27:47]MH_SAM_APDU [18:27:47]CAPDU: 80 0D 03 02 [18:27:47]Write to MH i2c: E2 08 00 5F 05 80 0D 03 02 00 00 00 00 DF [18:27:47]Write i2c OK [18:27:47]MH_I2C_Read... [18:27:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:27:47]Read from MH i2c: E2 [18:27:47]MH_I2C_Read... [18:27:47]Read from MH i2c: E2 0B 00 [18:27:47]MH_I2C_Read... [18:27:47]Read from MH i2c: E2 0B 00 5F 05 00 A7 61 0A D3 BA 16 B8 37 90 00 84 [18:27:47]RAPDU: A7 61 0A D3 BA 16 B8 37 90 00 [18:27:47]wFMCommunicate OK [18:27:47]SAM_PROTO_SignData done [18:27:47]FM_MakeSignedData done [18:27:47]CreateOFDProtocolMessage [18:27:47]wFMCommunicate request_size=4 [18:27:47]MH_SAM_APDU [18:27:47]CAPDU: 80 11 00 00 [18:27:47]Write to MH i2c: E2 08 00 60 05 80 11 00 00 00 00 00 00 DF [18:27:47]Write i2c OK [18:27:47]MH_I2C_Read... [18:27:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:47]Read from MH i2c: E2 [18:27:47]MH_I2C_Read... [18:27:47]Read from MH i2c: E2 17 00 [18:27:47]MH_I2C_Read... [18:27:47]Read from MH i2c: E2 17 00 60 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 35 [18:27:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:27:47]wFMCommunicate OK [18:27:47]CreateOFDProtocolMessage done [18:27:47]OFDSenderStorePacket 165056 [18:27:47]StoreOFDPacket docnum=165056 [18:27:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 82 EE 07 01 2A 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 FE 00 00 00 F4 03 04 00 A2 18 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C0 84 02 00 35 04 06 00 17 18 51 8B 0A 02 A7 61 0A D3 BA 16 B8 37 [18:27:47]CheckFolder [18:27:47]dirname=/storage/ofd_packets [18:27:47]CheckFolder done [18:27:47]ProducePacketName [18:27:47]name=ofd_packets/00165056 [18:27:47]NVStorageSaveData ofd_packets/00165056 [18:27:47]File name is /storage/ofd_packets/00165056 [18:27:47]Write 301 bytes [18:27:47]NVStorageSaveData done [18:27:47]OFDSenderStorePacket done [18:27:47]KKMCreateOFDPacket done [18:27:47]NVStorageSaveData kkm_last_timestamp [18:27:47]File name is /storage/kkm_last_timestamp [18:27:47]Write 4 bytes [18:27:47]NVStorageSaveData done [18:27:47]ExternCall_PrintAddStr [18:27:47]wPrintStart [18:27:47]Write to MH i2c: 01 00 00 61 05 66 [18:27:47]Write i2c OK [18:27:47]MH_I2C_Read... [18:27:47]Read from MH i2c: 01 [18:27:47]MH_I2C_Read... [18:27:47]Read from MH i2c: 01 07 00 [18:27:47]MH_I2C_Read... [18:27:47]Read from MH i2c: 01 07 00 61 05 00 00 00 00 00 FF 0F 7B [18:27:47]RasterBufferAndPrint [18:27:47]line Счет N : (1)459157 [18:27:47]line ИНН: 02508201610067 [18:27:47]line Контрольно-Кассовый Чек [18:27:47]line ПРОДАЖА [18:27:47]line ТРК (МРК, ГНК) : 12 [18:27:47]line Товар: 2710124130 [18:27:47]line Аи-92-К-5 [18:27:47]line 7.600 * 65.80 [18:27:47]line = 500.08 [18:27:47]line НДС 12% НСП 1% [18:27:47]line > о реализуемом товаре [18:27:47]line ОКРУГЛЕНИЕ: -0.08 [18:27:47]line ИТОГО: 500.00 [18:27:47]line Внесено: 500.00 [18:27:47]line СДАЧА: 0.00 [18:27:47]line НСП 1% : 4.42 [18:27:47]line НДС 12% : 53.11 [18:27:47]line Наличными: 500.00 [18:27:47]line Безнал.: 0.00 [18:27:47]line Место: АЗС № 72 "Партнер Нефть" [18:27:47]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [18:27:47]line СНО: Общий режим [18:27:47]line Чек 254 14.07.2024 18:27 [18:27:47]line Смена: 447 ФФД: 1.0 [18:27:47]line ЗНМ: 0300000160 [18:27:47]line РНМ: 0000000000090829 [18:27:47]line Версия ККМ: 001 [18:27:47]line ФМ: 0000000000874718 [18:27:47]line ФД: 165056 [18:27:47]line ФПД: 25393214720514 [18:27:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T182746&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165056&fm=25393214720514&tin=02508201610067®Number=0000000000090829&sum=50000 [18:27:48]OFD Sender: Processing packet 165056 [packets to send 105, broken 104] [18:27:48]ProducePacketName [18:27:48]name=ofd_packets/00165056 [18:27:48]OFD Sender: To server: pG, [18:27:48]CommunicateWithHost lk.salyk.kg:30040 [18:27:48]ConnectInit lk.salyk.kg [18:27:48]written 0, free lines is 4095 [18:27:48]Connected sock=10 [18:27:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 82 EE 07 01 2A 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 FE 00 00 00 F4 03 04 00 A2 18 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C0 84 02 00 35 04 06 00 17 18 51 8B 0A 02 A7 61 0A D3 BA 16 B8 37 [18:27:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 CC 12 47 00 4C A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C0 84 02 00 F4 03 04 00 2F BF 93 66 B6 04 01 00 00 59 1A 2F 3F E2 89 9F 9F [18:27:48]CommunicateWithHost err = 0 [18:27:48]CheckOFDResponse [18:27:48]1017 (14) - 77093643461234 [18:27:48]1041 (16) - 0000000000874718 [18:27:48]1040 (4) - 165056 [18:27:48]1012 (4) - 14.07.2024 12:06 [18:27:48]1206 (1) - 0 [18:27:48]OFD Sender: Remove packet 165056 [18:27:48]ProducePacketName [18:27:48]name=ofd_packets/00165056 [18:27:48]NVStorageDeleteData [18:27:48]Write to MH i2c: 01 00 00 8B 05 90 [18:27:48]Write i2c OK [18:27:48]MH_I2C_Read... [18:27:48]Read from MH i2c: 01 [18:27:48]MH_I2C_Read... [18:27:48]Read from MH i2c: 01 07 00 [18:27:48]MH_I2C_Read... [18:27:48]Read from MH i2c: 01 07 00 8B 05 00 00 00 00 00 F3 0C 96 [18:27:48]RasterBufferAndPrint [18:27:48]line [18:27:48]line [18:27:48]line [18:27:48]line [18:27:48]line [18:27:48]written 0, free lines is 3322 [18:27:48]MH_Cut [18:27:48]Write to MH i2c: D1 01 00 92 05 01 69 [18:27:48]Write i2c OK [18:27:48]MH_I2C_Read... [18:27:48]Read from MH i2c: D1 [18:27:48]MH_I2C_Read... [18:27:48]Read from MH i2c: D1 01 00 [18:27:48]MH_I2C_Read... [18:27:48]Read from MH i2c: D1 01 00 92 05 00 68 [18:27:48]Write to MH i2c: 01 00 00 93 05 98 [18:27:48]Write i2c OK [18:27:48]MH_I2C_Read... [18:27:49]OFD Sender: No OFD packet to send [18:27:49]*** Cut start [18:27:49]*** Partial cut [18:27:49]*** CUTSNS_PIN = 1 [18:27:49]*** CUTSNS_PIN = 0 [18:27:49]*** Brake cut motor [18:27:49]Read from MH i2c: 01 [18:27:49]MH_I2C_Read... [18:27:49]*** Stop cut motor [18:27:49]*** Cut end [18:27:49]Read from MH i2c: 01 07 00 [18:27:49]MH_I2C_Read... [18:27:49]Read from MH i2c: 01 07 00 93 05 00 00 00 00 00 FF 0F AD [18:27:49]process_action close_receipt done [18:27:49]requested_data is exist [18:27:49]produce_requested_data [18:27:49]requested_item fm.sn is exist - process it [18:27:49]wFMCommunicate request_size=4 [18:27:49]MH_SAM_APDU [18:27:49]CAPDU: 80 11 00 00 [18:27:49]Write to MH i2c: E2 08 00 94 05 80 11 00 00 00 00 00 00 13 [18:27:49]Write i2c OK [18:27:49]MH_I2C_Read... [18:27:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:49]Read from MH i2c: E2 [18:27:49]MH_I2C_Read... [18:27:49]Read from MH i2c: E2 17 00 [18:27:49]MH_I2C_Read... [18:27:49]Read from MH i2c: E2 17 00 94 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 69 [18:27:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:27:49]wFMCommunicate OK [18:27:49]requested_item fd.num is exist - process it [18:27:49]SAM_PROTO_GetFieldsCounters [18:27:49]wFMCommunicate request_size=4 [18:27:49]MH_SAM_APDU [18:27:49]CAPDU: 80 13 00 00 [18:27:49]Write to MH i2c: E2 08 00 95 05 80 13 00 00 00 00 00 00 16 [18:27:49]Write i2c OK [18:27:49]MH_I2C_Read... [18:27:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:27:50]Read from MH i2c: E2 [18:27:50]MH_I2C_Read... [18:27:50]Read from MH i2c: E2 62 00 [18:27:50]MH_I2C_Read... [18:27:50]Read from MH i2c: E2 62 00 95 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C0 84 02 00 0E 04 04 00 BF 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 3D [18:27:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C0 84 02 00 0E 04 04 00 BF 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 [18:27:50]wFMCommunicate OK [18:27:50]SAM_PROTO_GetFieldsCounters done [18:27:50]requested_item shift.num is exist - process it [18:27:50]requested_item shift.opened is exist - process it [18:27:50]req_shift_opened [18:27:50]FM_GetShiftState [18:27:50]SAM_PROTO_GetShiftState [18:27:50]wFMCommunicate request_size=4 [18:27:50]MH_SAM_APDU [18:27:50]CAPDU: 80 13 01 00 [18:27:50]Write to MH i2c: E2 08 00 96 05 80 13 01 00 00 00 00 00 18 [18:27:50]Write i2c OK [18:27:50]MH_I2C_Read... [18:27:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:50]Read from MH i2c: E2 [18:27:50]MH_I2C_Read... [18:27:50]Read from MH i2c: E2 0E 00 [18:27:50]MH_I2C_Read... [18:27:50]Read from MH i2c: E2 0E 00 96 05 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 98 [18:27:50]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [18:27:50]wFMCommunicate OK [18:27:50]SAM_PROTO_GetShiftState done [18:27:50]FM_GetShiftState done [18:27:50]req_shift_opened done [18:27:50]requested_item shift.open_date is exist - process it [18:27:50]req_shift_open_date [18:27:50]req_shift_open_date done [18:27:50]produce_requested_data done [18:27:50]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165056,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [18:27:50]process_action_free close_receipt [18:27:50]json_value_free [18:27:50]json_value_free done [18:27:50]process_json_proto returns [18:27:50]Send response to host [18:27:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165056,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [18:27:50]free response buf [18:27:50]execute_script done [18:27:50]execute_script returns [18:27:50]free content buf [18:27:50]Sock 9.Close socket [18:27:50]Sock 9.Thread stoped [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:09]OFD Sender: No OFD packet to send [18:28:14]OFD Sender: No OFD packet to send [18:28:19]OFD Sender: No OFD packet to send [18:28:24]OFD Sender: No OFD packet to send [18:28:29]OFD Sender: No OFD packet to send [18:28:34]OFD Sender: No OFD packet to send [18:28:39]OFD Sender: No OFD packet to send [18:28:44]OFD Sender: No OFD packet to send [18:28:49]OFD Sender: No OFD packet to send [18:28:54]OFD Sender: No OFD packet to send [18:28:59]OFD Sender: No OFD packet to send [18:29:04]OFD Sender: No OFD packet to send [18:29:09]OFD Sender: No OFD packet to send [18:29:14]OFD Sender: No OFD packet to send [18:29:19]OFD Sender: No OFD packet to send [18:29:24]OFD Sender: No OFD packet to send [18:29:28]accept exits with 7 [18:29:28]New connection [18:29:28]New thread 3067383140 created [18:29:28]Thread 3067526500 joined [18:29:28]Waiting for new connection... [18:29:28] Sock 7.Parse request [18:29:28]Sock 7.Check first char [18:29:28]Sock 7.First char is OK [18:29:28]request: POST /json_proto HTTP/1.0 [18:29:28]Method: POST [18:29:28]URL: /json_proto [18:29:28]Method is POST - this is cgi request [18:29:28]url: /json_proto [18:29:28]query_string will be loaded in cgi processing [18:29:28]execute_cgi json_proto POST (null) [18:29:28]execute_cgi path=json_proto method=POST [18:29:28]POST find Content-Length [18:29:28]Host: 172.17.56.4:8080 [18:29:28]Content-Length: 677 [18:29:28]Content-Type: application/json [18:29:28] [18:29:28]POST finish read [18:29:28]Found Content-Length = 677 [18:29:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459158", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 2.150, "sum" : 141.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 141.00, "total" : 141.00, "payments": [ { "type": 0, "sum" : 141.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:29:28]execute_script... [18:29: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)459158", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 2.150, "sum" : 141.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 141.00, "total" : 141.00, "payments": [ { "type": 0, "sum" : 141.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:29:28]POST & json_proto [18:29:28]process_json_proto [18:29:28]json parsed OK: [18:29:28]protocol is kg_v1.0 [18:29:28]action value=close_receipt [18:29:28]process_action close_receipt [18:29:28]cmd_close_receipt [18:29:28]MH_GetDate [18:29:28]Write to MH i2c: F0 00 00 97 05 8B [18:29:28]Write i2c OK [18:29:28]MH_I2C_Read... [18:29:28]Read from MH i2c: F0 [18:29:28]MH_I2C_Read... [18:29:28]Read from MH i2c: F0 09 00 [18:29:28]MH_I2C_Read... [18:29:28]Read from MH i2c: F0 09 00 97 05 00 08 19 94 66 C9 DC B2 64 6A [18:29:28]GetLastDocTimeStamp 1720981666 [18:29:28]current date 1720981768 [18:29:28]FM_GetShiftState [18:29:28]SAM_PROTO_GetShiftState [18:29:28]wFMCommunicate request_size=4 [18:29:28]MH_SAM_APDU [18:29:28]CAPDU: 80 13 01 00 [18:29:28]Write to MH i2c: E2 08 00 98 05 80 13 01 00 00 00 00 00 1A [18:29:28]Write i2c OK [18:29:28]MH_I2C_Read... [18:29:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:29:28]Read from MH i2c: E2 [18:29:28]MH_I2C_Read... [18:29:28]Read from MH i2c: E2 0E 00 [18:29:28]MH_I2C_Read... [18:29:28]Read from MH i2c: E2 0E 00 98 05 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 9A [18:29:28]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [18:29:28]wFMCommunicate OK [18:29:28]SAM_PROTO_GetShiftState done [18:29:28]FM_GetShiftState done [18:29:28]opened in 1720917342 [18:29:28]opened+sec_in_day 1721003742 [18:29:28]quantity*price = 14147 [18:29:28]sum+1 = 14148 [18:29:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 141.00 Внесено: 141.00 СДАЧА: 0.00 НСП 1% : 1.25 НДС 12% : 15.02 Наличными: 141.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 255 14.07.2024 18:29 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165057 ФПД: 9062414501655 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T182928&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165057&fm=9062414501655&tin=02508201610067®Number=0000000000090829&sum=14100 [18:29:29]StoreToDocumentArchive [18:29:29]shift 447 fd 165057 [18:29:29]save to /storage/0447/doc_00165057 [18:29:29]save last doc name /storage/0447/doc_00165057 to /storage/kkm_last_doc_name [18:29:29]save OK [18:29:29]Clear old archive folders... [18:29:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:29:29]tlvbuf is 01F765F0 [18:29:29]SAM_PROTO_ClearQueue [18:29:29]wFMCommunicate request_size=4 [18:29:29]MH_SAM_APDU [18:29:29]CAPDU: 80 09 00 00 [18:29:29]Write to MH i2c: E2 08 00 A5 05 80 09 00 00 00 00 00 00 1C [18:29:29]Write i2c OK [18:29:29]MH_I2C_Read... [18:29:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:29:29]Read from MH i2c: E2 [18:29:29]MH_I2C_Read... [18:29:29]Read from MH i2c: E2 03 00 [18:29:29]MH_I2C_Read... [18:29:29]Read from MH i2c: E2 03 00 A5 05 00 90 00 1E [18:29:29]RAPDU: 90 00 [18:29:29]wFMCommunicate OK [18:29:29]SAM_PROTO_ClearQueue done [18:29:29]KKMCreateOFDPacket [18:29:29]OFDProtocolAddRootSTLVToBuf [18:29:29]FM_MakeSignedData [18:29:29]FM_MakeSignedData [18:29:29]SAM_PROTO_SignData [18:29:29]wFMCommunicate request_size=4 [18:29:29]MH_SAM_APDU [18:29:29]CAPDU: 80 0D 01 02 [18:29:29]Write to MH i2c: E2 08 00 A6 05 80 0D 01 02 00 00 00 00 24 [18:29:29]Write i2c OK [18:29:29]MH_I2C_Read... [18:29:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:29:29]Read from MH i2c: E2 [18:29:29]MH_I2C_Read... [18:29:29]Read from MH i2c: E2 03 00 [18:29:29]MH_I2C_Read... [18:29:29]Read from MH i2c: E2 03 00 A6 05 00 90 00 1F [18:29:29]RAPDU: 90 00 [18:29:29]wFMCommunicate OK [18:29:29]wFMCommunicate request_size=255 [18:29:29]MH_SAM_APDU [18:29:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 08 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 43 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 05 00 00 00 00 07 04 06 00 14 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 08 19 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C1 84 02 00 35 04 06 00 08 [18:29:29]Write to MH i2c: E2 02 01 A7 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 08 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 43 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 05 00 00 00 00 07 04 06 00 14 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 08 19 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C1 84 02 00 35 04 06 00 08 00 00 08 [18:29:29]Write i2c OK [18:29:29]MH_I2C_Read... [18:29:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:29:29]Read from MH i2c: E2 [18:29:29]MH_I2C_Read... [18:29:29]Read from MH i2c: E2 03 00 [18:29:29]MH_I2C_Read... [18:29:29]Read from MH i2c: E2 03 00 A7 05 00 90 00 20 [18:29:29]RAPDU: 90 00 [18:29:29]wFMCommunicate OK [18:29:29]wFMCommunicate request_size=10 [18:29:29]MH_SAM_APDU [18:29:29]CAPDU: 80 0D 02 02 05 3E 01 FF 47 17 [18:29:29]Write to MH i2c: E2 0D 00 A8 05 80 0D 02 02 05 00 3E 01 FF 47 17 00 00 CD [18:29:29]Write i2c OK [18:29:29]MH_I2C_Read... [18:29:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:29:30]Read from MH i2c: E2 [18:29:30]MH_I2C_Read... [18:29:30]Read from MH i2c: E2 03 00 [18:29:30]MH_I2C_Read... [18:29:30]Read from MH i2c: E2 03 00 A8 05 00 90 00 21 [18:29:30]RAPDU: 90 00 [18:29:30]wFMCommunicate OK [18:29:30]wFMCommunicate request_size=4 [18:29:30]MH_SAM_APDU [18:29:30]CAPDU: 80 0D 03 02 [18:29:30]Write to MH i2c: E2 08 00 A9 05 80 0D 03 02 00 00 00 00 29 [18:29:30]Write i2c OK [18:29:30]MH_I2C_Read... [18:29:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:29:30]Read from MH i2c: E2 [18:29:30]MH_I2C_Read... [18:29:30]Read from MH i2c: E2 0B 00 [18:29:30]MH_I2C_Read... [18:29:30]Read from MH i2c: E2 0B 00 A9 05 00 A9 76 B2 7C 32 38 89 54 90 00 BE [18:29:30]RAPDU: A9 76 B2 7C 32 38 89 54 90 00 [18:29:30]wFMCommunicate OK [18:29:30]SAM_PROTO_SignData done [18:29:30]FM_MakeSignedData done [18:29:30]CreateOFDProtocolMessage [18:29:30]wFMCommunicate request_size=4 [18:29:30]MH_SAM_APDU [18:29:30]CAPDU: 80 11 00 00 [18:29:30]Write to MH i2c: E2 08 00 AA 05 80 11 00 00 00 00 00 00 29 [18:29:30]Write i2c OK [18:29:30]MH_I2C_Read... [18:29:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:29:30]Read from MH i2c: E2 [18:29:30]MH_I2C_Read... [18:29:30]Read from MH i2c: E2 17 00 [18:29:30]MH_I2C_Read... [18:29:30]Read from MH i2c: E2 17 00 AA 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 7F [18:29:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:29:30]wFMCommunicate OK [18:29:30]CreateOFDProtocolMessage done [18:29:30]OFDSenderStorePacket 165057 [18:29:30]StoreOFDPacket docnum=165057 [18:29:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 61 3D 07 01 02 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 08 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 43 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 05 00 00 00 00 07 04 06 00 14 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 08 19 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C1 84 02 00 35 04 06 00 08 3E 01 FF 47 17 A9 76 B2 7C 32 38 89 54 [18:29:30]CheckFolder [18:29:30]dirname=/storage/ofd_packets [18:29:30]CheckFolder done [18:29:30]ProducePacketName [18:29:30]name=ofd_packets/00165057 [18:29:30]NVStorageSaveData ofd_packets/00165057 [18:29:30]File name is /storage/ofd_packets/00165057 [18:29:30]Write 301 bytes [18:29:30]NVStorageSaveData done [18:29:30]OFDSenderStorePacket done [18:29:30]KKMCreateOFDPacket done [18:29:30]NVStorageSaveData kkm_last_timestamp [18:29:30]File name is /storage/kkm_last_timestamp [18:29:30]Write 4 bytes [18:29:30]NVStorageSaveData done [18:29:30]ExternCall_PrintAddStr [18:29:30]wPrintStart [18:29:30]Write to MH i2c: 01 00 00 AB 05 B0 [18:29:30]Write i2c OK [18:29:30]MH_I2C_Read... [18:29:30]Read from MH i2c: 01 [18:29:30]MH_I2C_Read... [18:29:30]Read from MH i2c: 01 07 00 [18:29:30]MH_I2C_Read... [18:29:30]Read from MH i2c: 01 07 00 AB 05 00 00 00 00 00 FF 0F C5 [18:29:30]RasterBufferAndPrint [18:29:30]line Счет N : (1)459158 [18:29:30]line ИНН: 02508201610067 [18:29:30]line Контрольно-Кассовый Чек [18:29:30]line ПРОДАЖА [18:29:30]line ТРК (МРК, ГНК) : 22 [18:29:30]line Товар: 2710124130 [18:29:30]line Аи-92-К-5 [18:29:30]line 2.150 * 65.80 [18:29:30]line = 141.47 [18:29:30]line НДС 12% НСП 1% [18:29:30]line > о реализуемом товаре [18:29:30]line ОКРУГЛЕНИЕ: -0.47 [18:29:30]line ИТОГО: 141.00 [18:29:30]line Внесено: 141.00 [18:29:30]line СДАЧА: 0.00 [18:29:30]line НСП 1% : 1.25 [18:29:30]line НДС 12% : 15.02 [18:29:30]line Наличными: 141.00 [18:29:30]line Безнал.: 0.00 [18:29:30]line Место: АЗС № 72 "Партнер Нефть" [18:29:30]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [18:29:30]line СНО: Общий режим [18:29:30]line Чек 255 14.07.2024 18:29 [18:29:30]line Смена: 447 ФФД: 1.0 [18:29:30]line ЗНМ: 0300000160 [18:29:30]line РНМ: 0000000000090829 [18:29:30]line Версия ККМ: 001 [18:29:30]line ФМ: 0000000000874718 [18:29:30]line ФД: 165057 [18:29:30]line ФПД: 9062414501655 [18:29:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T182928&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165057&fm=9062414501655&tin=02508201610067®Number=0000000000090829&sum=14100 [18:29:30]written 0, free lines is 4095 [18:29:30]OFD Sender: Processing packet 165057 [packets to send 105, broken 104] [18:29:30]ProducePacketName [18:29:30]name=ofd_packets/00165057 [18:29:30]OFD Sender: To server: pG, [18:29:30]CommunicateWithHost lk.salyk.kg:30040 [18:29:30]ConnectInit lk.salyk.kg [18:29:30]Connected sock=10 [18:29:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 61 3D 07 01 02 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 08 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 43 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 05 00 00 00 00 07 04 06 00 14 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 08 19 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C1 84 02 00 35 04 06 00 08 3E 01 FF 47 17 A9 76 B2 7C 32 38 89 54 [18:29:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 BB CC 47 00 60 AE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C1 84 02 00 F4 03 04 00 95 BF 93 66 B6 04 01 00 00 35 86 8A 06 B5 25 B8 17 [18:29:30]CommunicateWithHost err = 0 [18:29:30]CheckOFDResponse [18:29:30]1017 (14) - 77093643461234 [18:29:30]1041 (16) - 0000000000874718 [18:29:30]1040 (4) - 165057 [18:29:30]1012 (4) - 14.07.2024 12:07 [18:29:30]1206 (1) - 0 [18:29:30]OFD Sender: Remove packet 165057 [18:29:30]ProducePacketName [18:29:30]name=ofd_packets/00165057 [18:29:30]NVStorageDeleteData [18:29:30]Write to MH i2c: 01 00 00 D5 05 DA [18:29:30]Write i2c OK [18:29:30]MH_I2C_Read... [18:29:30]Read from MH i2c: 01 [18:29:30]MH_I2C_Read... [18:29:30]Read from MH i2c: 01 07 00 [18:29:30]MH_I2C_Read... [18:29:30]Read from MH i2c: 01 07 00 D5 05 00 00 00 00 00 01 0D EF [18:29:30]RasterBufferAndPrint [18:29:30]line [18:29:30]line [18:29:30]line [18:29:30]line [18:29:30]line [18:29:30]written 0, free lines is 3335 [18:29:30]MH_Cut [18:29:30]Write to MH i2c: D1 01 00 DC 05 01 B3 [18:29:30]Write i2c OK [18:29:30]MH_I2C_Read... [18:29:30]Read from MH i2c: D1 [18:29:30]MH_I2C_Read... [18:29:30]Read from MH i2c: D1 01 00 [18:29:30]MH_I2C_Read... [18:29:30]Read from MH i2c: D1 01 00 DC 05 00 B2 [18:29:30]Write to MH i2c: 01 00 00 DD 05 E2 [18:29:30]Write i2c OK [18:29:30]MH_I2C_Read... [18:29:30]OFD Sender: No OFD packet to send [18:29:31]*** Cut start [18:29:31]*** Partial cut [18:29:31]*** CUTSNS_PIN = 1 [18:29:31]*** CUTSNS_PIN = 0 [18:29:31]*** Brake cut motor [18:29:31]Read from MH i2c: 01 [18:29:31]MH_I2C_Read... [18:29:31]*** Stop cut motor [18:29:31]*** Cut end [18:29:31]Read from MH i2c: 01 07 00 [18:29:31]MH_I2C_Read... [18:29:31]Read from MH i2c: 01 07 00 DD 05 00 00 00 00 00 FF 0F F7 [18:29:31]process_action close_receipt done [18:29:31]requested_data is exist [18:29:31]produce_requested_data [18:29:31]requested_item fm.sn is exist - process it [18:29:31]wFMCommunicate request_size=4 [18:29:31]MH_SAM_APDU [18:29:31]CAPDU: 80 11 00 00 [18:29:31]Write to MH i2c: E2 08 00 DE 05 80 11 00 00 00 00 00 00 5D [18:29:31]Write i2c OK [18:29:31]MH_I2C_Read... [18:29:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:29:31]Read from MH i2c: E2 [18:29:31]MH_I2C_Read... [18:29:31]Read from MH i2c: E2 17 00 [18:29:31]MH_I2C_Read... [18:29:31]Read from MH i2c: E2 17 00 DE 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B3 [18:29:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:29:31]wFMCommunicate OK [18:29:31]requested_item fd.num is exist - process it [18:29:31]SAM_PROTO_GetFieldsCounters [18:29:31]wFMCommunicate request_size=4 [18:29:31]MH_SAM_APDU [18:29:31]CAPDU: 80 13 00 00 [18:29:31]Write to MH i2c: E2 08 00 DF 05 80 13 00 00 00 00 00 00 60 [18:29:31]Write i2c OK [18:29:31]MH_I2C_Read... [18:29:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:29:32]Read from MH i2c: E2 [18:29:32]MH_I2C_Read... [18:29:32]Read from MH i2c: E2 62 00 [18:29:32]MH_I2C_Read... [18:29:32]Read from MH i2c: E2 62 00 DF 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C1 84 02 00 0E 04 04 00 BF 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 8C [18:29:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C1 84 02 00 0E 04 04 00 BF 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 [18:29:32]wFMCommunicate OK [18:29:32]SAM_PROTO_GetFieldsCounters done [18:29:32]requested_item shift.num is exist - process it [18:29:32]requested_item shift.opened is exist - process it [18:29:32]req_shift_opened [18:29:32]FM_GetShiftState [18:29:32]SAM_PROTO_GetShiftState [18:29:32]wFMCommunicate request_size=4 [18:29:32]MH_SAM_APDU [18:29:32]CAPDU: 80 13 01 00 [18:29:32]Write to MH i2c: E2 08 00 E0 05 80 13 01 00 00 00 00 00 62 [18:29:32]Write i2c OK [18:29:32]MH_I2C_Read... [18:29:32]Read from MH i2c: E2 [18:29:32]MH_I2C_Read... [18:29:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:29:32]Read from MH i2c: E2 0E 00 [18:29:32]MH_I2C_Read... [18:29:32]Read from MH i2c: E2 0E 00 E0 05 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 E2 [18:29:32]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [18:29:32]wFMCommunicate OK [18:29:32]SAM_PROTO_GetShiftState done [18:29:32]FM_GetShiftState done [18:29:32]req_shift_opened done [18:29:32]requested_item shift.open_date is exist - process it [18:29:32]req_shift_open_date [18:29:32]req_shift_open_date done [18:29:32]produce_requested_data done [18:29:32]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165057,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [18:29:32]process_action_free close_receipt [18:29:32]json_value_free [18:29:32]json_value_free done [18:29:32]process_json_proto returns [18:29:32]Send response to host [18:29:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165057,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [18:29:32]free response buf [18:29:32]execute_script done [18:29:32]execute_script returns [18:29:32]free content buf [18:29:32]Sock 7.Close socket [18:29:32]Sock 7.Thread stoped [18:29:35]OFD Sender: No OFD packet to send [18:29:40]OFD Sender: No OFD packet to send [18:29:45]OFD Sender: No OFD packet to send [18:29:50]OFD Sender: No OFD packet to send [18:29:55]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:38]accept exits with 9 [18:31:38]New connection [18:31:38]New thread 3067526500 created [18:31:38]Thread 3067383140 joined [18:31:38]Waiting for new connection... [18:31:38] Sock 9.Parse request [18:31:38]Sock 9.Check first char [18:31:38]Sock 9.First char is OK [18:31:38]request: POST /json_proto HTTP/1.0 [18:31:38]Method: POST [18:31:38]URL: /json_proto [18:31:38]Method is POST - this is cgi request [18:31:38]url: /json_proto [18:31:38]query_string will be loaded in cgi processing [18:31:38]execute_cgi json_proto POST (null) [18:31:38]execute_cgi path=json_proto method=POST [18:31:38]POST find Content-Length [18:31:38]Host: 172.17.56.4:8080 [18:31:38]Content-Length: 677 [18:31:38]Content-Type: application/json [18:31:38] [18:31:38]POST finish read [18:31:38]Found Content-Length = 677 [18:31:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459159", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:31:38]execute_script... [18:31: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)459159", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:31:38]POST & json_proto [18:31:38]process_json_proto [18:31:38]json parsed OK: [18:31:38]protocol is kg_v1.0 [18:31:38]action value=close_receipt [18:31:38]process_action close_receipt [18:31:38]cmd_close_receipt [18:31:38]MH_GetDate [18:31:38]Write to MH i2c: F0 00 00 E1 05 D5 [18:31:38]Write i2c OK [18:31:38]MH_I2C_Read... [18:31:38]Read from MH i2c: F0 [18:31:38]MH_I2C_Read... [18:31:38]Read from MH i2c: F0 09 00 [18:31:38]MH_I2C_Read... [18:31:38]Read from MH i2c: F0 09 00 E1 05 00 8A 19 94 66 C9 DC B2 64 36 [18:31:38]GetLastDocTimeStamp 1720981768 [18:31:38]current date 1720981898 [18:31:38]FM_GetShiftState [18:31:38]SAM_PROTO_GetShiftState [18:31:38]wFMCommunicate request_size=4 [18:31:38]MH_SAM_APDU [18:31:38]CAPDU: 80 13 01 00 [18:31:38]Write to MH i2c: E2 08 00 E2 05 80 13 01 00 00 00 00 00 64 [18:31:38]Write i2c OK [18:31:38]MH_I2C_Read... [18:31:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:38]Read from MH i2c: E2 [18:31:38]MH_I2C_Read... [18:31:38]Read from MH i2c: E2 0E 00 [18:31:38]MH_I2C_Read... [18:31:38]Read from MH i2c: E2 0E 00 E2 05 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 E4 [18:31:38]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [18:31:38]wFMCommunicate OK [18:31:38]SAM_PROTO_GetShiftState done [18:31:38]FM_GetShiftState done [18:31:38]opened in 1720917342 [18:31:38]opened+sec_in_day 1721003742 [18:31:38]quantity*price = 50008 [18:31:38]sum+1 = 50009 [18:31:38]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 1078.00 Внесено: 1078.00 СДАЧА: 0.00 НСП 1% : 9.54 НДС 12% : 114.53 Наличными: 1078.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 257 14.07.2024 18:35 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165059 ФПД: 270522934164599 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T183522&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165059&fm=270522934164599&tin=02508201610067®Number=0000000000090829&sum=107800 [18:35:22]StoreToDocumentArchive [18:35:22]shift 447 fd 165059 [18:35:22]save to /storage/0447/doc_00165059 [18:35:22]save last doc name /storage/0447/doc_00165059 to /storage/kkm_last_doc_name [18:35:22]save OK [18:35:22]Clear old archive folders... [18:35:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:35:22]tlvbuf is 0139E040 [18:35:22]SAM_PROTO_ClearQueue [18:35:22]wFMCommunicate request_size=4 [18:35:22]MH_SAM_APDU [18:35:22]CAPDU: 80 09 00 00 [18:35:22]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [18:35:22]Write i2c OK [18:35:22]MH_I2C_Read... [18:35:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:35:22]Read from MH i2c: E2 [18:35:22]MH_I2C_Read... [18:35:22]Read from MH i2c: E2 03 00 [18:35:22]MH_I2C_Read... [18:35:22]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [18:35:22]RAPDU: 90 00 [18:35:22]wFMCommunicate OK [18:35:22]SAM_PROTO_ClearQueue done [18:35:22]KKMCreateOFDPacket [18:35:22]OFDProtocolAddRootSTLVToBuf [18:35:22]FM_MakeSignedData [18:35:22]FM_MakeSignedData [18:35:22]SAM_PROTO_SignData [18:35:22]wFMCommunicate request_size=4 [18:35:22]MH_SAM_APDU [18:35:22]CAPDU: 80 0D 01 02 [18:35:22]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [18:35:22]Write i2c OK [18:35:22]MH_I2C_Read... [18:35:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:35:22]Read from MH i2c: E2 [18:35:22]MH_I2C_Read... [18:35:22]Read from MH i2c: E2 03 00 [18:35:22]MH_I2C_Read... [18:35:22]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [18:35:22]RAPDU: 90 00 [18:35:22]wFMCommunicate OK [18:35:22]wFMCommunicate request_size=255 [18:35:22]MH_SAM_APDU [18:35: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 98 3A 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 4A A5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 A5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 2C 00 00 00 00 07 04 06 00 18 A5 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 6A 1A 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C3 84 02 00 35 04 06 00 F6 0A 07 64 [18:35:23]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 4A A5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 A5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 2C 00 00 00 00 07 04 06 00 18 A5 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 6A 1A 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C3 84 02 00 35 04 06 00 F6 0A 07 64 00 00 12 [18:35:23]Write i2c OK [18:35:23]MH_I2C_Read... [18:35:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:35:23]Read from MH i2c: E2 [18:35:23]MH_I2C_Read... [18:35:23]Read from MH i2c: E2 03 00 [18:35:23]MH_I2C_Read... [18:35:23]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [18:35:23]RAPDU: 90 00 [18:35:23]wFMCommunicate OK [18:35:23]wFMCommunicate request_size=7 [18:35:23]MH_SAM_APDU [18:35:23]CAPDU: 80 0D 02 02 02 FC 77 [18:35:23]Write to MH i2c: E2 0A 00 2E 00 80 0D 02 02 02 00 FC 77 00 00 1F [18:35:23]Write i2c OK [18:35:23]MH_I2C_Read... [18:35:23]Read from MH i2c: E2 *** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:35:23] [18:35:23]MH_I2C_Read... [18:35:23]Read from MH i2c: E2 03 00 [18:35:23]MH_I2C_Read... [18:35:23]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [18:35:23]RAPDU: 90 00 [18:35:23]wFMCommunicate OK [18:35:23]wFMCommunicate request_size=4 [18:35:23]MH_SAM_APDU [18:35:23]CAPDU: 80 0D 03 02 [18:35:23]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [18:35:23]Write i2c OK [18:35:23]MH_I2C_Read... [18:35:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:35:23]Read from MH i2c: E2 [18:35:23]MH_I2C_Read... [18:35:23]Read from MH i2c: E2 0B 00 [18:35:23]MH_I2C_Read... [18:35:23]Read from MH i2c: E2 0B 00 2F 00 00 0F 2C 93 65 F9 E1 55 64 90 00 71 [18:35:23]RAPDU: 0F 2C 93 65 F9 E1 55 64 90 00 [18:35:23]wFMCommunicate OK [18:35:23]SAM_PROTO_SignData done [18:35:23]FM_MakeSignedData done [18:35:23]CreateOFDProtocolMessage [18:35:23]wFMCommunicate request_size=4 [18:35:23]MH_SAM_APDU [18:35:23]CAPDU: 80 11 00 00 [18:35:23]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [18:35:23]Write i2c OK [18:35:23]MH_I2C_Read... [18:35:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:23]Read from MH i2c: E2 [18:35:23]MH_I2C_Read... [18:35:23]Read from MH i2c: E2 17 00 [18:35:23]MH_I2C_Read... [18:35:23]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 00 [18:35:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:35:23]wFMCommunicate OK [18:35:23]CreateOFDProtocolMessage done [18:35:23]OFDSenderStorePacket 165059 [18:35:23]StoreOFDPacket docnum=165059 [18:35:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 41 CA 04 01 6C 4D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 4A A5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 A5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 2C 00 00 00 00 07 04 06 00 18 A5 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 6A 1A 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C3 84 02 00 35 04 06 00 F6 0A 07 64 FC 77 0F 2C 93 65 F9 E1 55 64 [18:35:23]CheckFolder [18:35:23]dirname=/storage/ofd_packets [18:35:23]CheckFolder done [18:35:23]ProducePacketName [18:35:23]name=ofd_packets/00165059 [18:35:23]NVStorageSaveData ofd_packets/00165059 [18:35:23]File name is /storage/ofd_packets/00165059 [18:35:23]Write 298 bytes [18:35:23]NVStorageSaveData done [18:35:23]OFDSenderStorePacket done [18:35:23]KKMCreateOFDPacket done [18:35:23]NVStorageSaveData kkm_last_timestamp [18:35:23]File name is /storage/kkm_last_timestamp [18:35:23]Write 4 bytes [18:35:23]NVStorageSaveData done [18:35:23]ExternCall_PrintAddStr [18:35:23]wPrintStart [18:35:23]Write to MH i2c: 01 00 00 31 00 31 [18:35:23]Write i2c OK [18:35:23]MH_I2C_Read... [18:35:23]Read from MH i2c: 01 [18:35:23]MH_I2C_Read... [18:35:23]Read from MH i2c: 01 07 00 [18:35:23]MH_I2C_Read... [18:35:23]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [18:35:23]RasterBufferAndPrint [18:35:23]line Счет N : (1)459161 [18:35:23]line ИНН: 02508201610067 [18:35:23]line Контрольно-Кассовый Чек [18:35:23]line ПРОДАЖА [18:35:23]line ТРК (МРК, ГНК) : 11 [18:35:23]line Товар: 2710194210 [18:35:23]line ДТ-К-5 [18:35:23]line 15.000 * 71.90 [18:35:23]line = 1078.50 [18:35:23]line НДС 12% НСП 1% [18:35:23]line > о реализуемом товаре [18:35:23]line ОКРУГЛЕНИЕ: -0.50 [18:35:23]line ИТОГО: 1078.00 [18:35:23]line Внесено: 1078.00 [18:35:23]line СДАЧА: 0.00 [18:35:23]line НСП 1% : 9.54 [18:35:23]line НДС 12% : 114.53 [18:35:23]line Наличными: 1078.00 [18:35:23]line Безнал.: 0.00 [18:35:23]line Место: АЗС № 72 "Партнер Нефть" [18:35:23]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [18:35:23]line СНО: Общий режим [18:35:23]line Чек 257 14.07.2024 18:35 [18:35:23]line Смена: 447 ФФД: 1.0 [18:35:23]line ЗНМ: 0300000160 [18:35:23]line РНМ: 0000000000090829 [18:35:23]line Версия ККМ: 001 [18:35:23]line ФМ: 0000000000874718 [18:35:23]line ФД: 165059 [18:35:23]line ФПД: 270522934164599 [18:35:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T183522&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165059&fm=270522934164599&tin=02508201610067®Number=0000000000090829&sum=107800 [18:35:23]written 0, free lines is 4095 [18:35:23]OFD Sender: Processing packet 165059 [packets to send 106, broken 105] [18:35:23]ProducePacketName [18:35:23]name=ofd_packets/00165059 [18:35:23]OFD Sender: To server: pG, [18:35:23]CommunicateWithHost lk.salyk.kg:30040 [18:35:23]ConnectInit lk.salyk.kg [18:35:23]Connected sock=10 [18:35:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 41 CA 04 01 6C 4D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 4A A5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 A5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 2C 00 00 00 00 07 04 06 00 18 A5 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 6A 1A 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C3 84 02 00 35 04 06 00 F6 0A 07 64 FC 77 0F 2C 93 65 F9 E1 55 64 [18:35:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 43 6E 47 00 D2 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C3 84 02 00 F4 03 04 00 F7 C0 93 66 B6 04 01 00 00 54 05 B8 96 42 AE BB A6 [18:35:24]CommunicateWithHost err = 0 [18:35:24]CheckOFDResponse [18:35:24]1017 (14) - 77093643461234 [18:35:24]1041 (16) - 0000000000874718 [18:35:24]1040 (4) - 165059 [18:35:24]1012 (4) - 14.07.2024 12:13 [18:35:24]1206 (1) - 0 [18:35:24]OFD Sender: Remove packet 165059 [18:35:24]ProducePacketName [18:35:24]name=ofd_packets/00165059 [18:35:24]NVStorageDeleteData [18:35:24]Write to MH i2c: 01 00 00 5B 00 5B [18:35:24]Write i2c OK [18:35:24]MH_I2C_Read... [18:35:24]Read from MH i2c: 01 [18:35:24]MH_I2C_Read... [18:35:24]Read from MH i2c: 01 07 00 [18:35:24]MH_I2C_Read... [18:35:24]Read from MH i2c: 01 07 00 5B 00 00 00 00 00 00 0E 0D 7D [18:35:24]RasterBufferAndPrint [18:35:24]line [18:35:24]line [18:35:24]line [18:35:24]line [18:35:24]line [18:35:24]written 0, free lines is 3363 [18:35:24]MH_Cut [18:35:24]Write to MH i2c: D1 01 00 62 00 01 34 [18:35:24]Write i2c OK [18:35:24]MH_I2C_Read... [18:35:24]Read from MH i2c: D1 [18:35:24]MH_I2C_Read... [18:35:24]Read from MH i2c: D1 01 00 [18:35:24]MH_I2C_Read... [18:35:24]Read from MH i2c: D1 01 00 62 00 00 33 [18:35:24]Write to MH i2c: 01 00 00 63 00 63 [18:35:24]Write i2c OK [18:35:24]MH_I2C_Read... [18:35:24]OFD Sender: No OFD packet to send [18:35:24]*** Cut start [18:35:24]*** Partial cut [18:35:24]*** CUTSNS_PIN = 1 [18:35:24]*** CUTSNS_PIN = 0 [18:35:24]*** Brake cut motor [18:35:25]Read from MH i2c: 01 *** Stop cut motor [18:35:25] [18:35:25]*** Cut end [18:35:25]MH_I2C_Read... [18:35:25]Read from MH i2c: 01 07 00 [18:35:25]MH_I2C_Read... [18:35:25]Read from MH i2c: 01 07 00 63 00 00 00 00 00 00 FF 0F 78 [18:35:25]process_action close_receipt done [18:35:25]requested_data is exist [18:35:25]produce_requested_data [18:35:25]requested_item fm.sn is exist - process it [18:35:25]wFMCommunicate request_size=4 [18:35:25]MH_SAM_APDU [18:35:25]CAPDU: 80 11 00 00 [18:35:25]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [18:35:25]Write i2c OK [18:35:25]MH_I2C_Read... [18:35:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:25]Read from MH i2c: E2 [18:35:25]MH_I2C_Read... [18:35:25]Read from MH i2c: E2 17 00 [18:35:25]MH_I2C_Read... [18:35:25]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 34 [18:35:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:35:25]wFMCommunicate OK [18:35:25]requested_item fd.num is exist - process it [18:35:25]SAM_PROTO_GetFieldsCounters [18:35:25]wFMCommunicate request_size=4 [18:35:25]MH_SAM_APDU [18:35:25]CAPDU: 80 13 00 00 [18:35:25]Write to MH i2c: E2 08 00 65 00 80 13 00 00 00 00 00 00 E1 [18:35:25]Write i2c OK [18:35:25]MH_I2C_Read... [18:35:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:35:25]Read from MH i2c: E2 [18:35:25]MH_I2C_Read... [18:35:25]Read from MH i2c: E2 62 00 [18:35:25]MH_I2C_Read... [18:35:25]Read from MH i2c: E2 62 00 65 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C3 84 02 00 0E 04 04 00 BF 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 17 [18:35:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C3 84 02 00 0E 04 04 00 BF 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 [18:35:25]wFMCommunicate OK [18:35:25]SAM_PROTO_GetFieldsCounters done [18:35:25]requested_item shift.num is exist - process it [18:35:25]requested_item shift.opened is exist - process it [18:35:25]req_shift_opened [18:35:25]FM_GetShiftState [18:35:25]SAM_PROTO_GetShiftState [18:35:25]wFMCommunicate request_size=4 [18:35:25]MH_SAM_APDU [18:35:25]CAPDU: 80 13 01 00 [18:35:25]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [18:35:25]Write i2c OK [18:35:25]MH_I2C_Read... [18:35:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:35:25]Read from MH i2c: E2 [18:35:25]MH_I2C_Read... [18:35:25]Read from MH i2c: E2 0E 00 [18:35:25]MH_I2C_Read... [18:35:25]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 63 [18:35:25]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [18:35:25]wFMCommunicate OK [18:35:25]SAM_PROTO_GetShiftState done [18:35:25]FM_GetShiftState done [18:35:25]req_shift_opened done [18:35:25]requested_item shift.open_date is exist - process it [18:35:25]req_shift_open_date [18:35:25]req_shift_open_date done [18:35:25]produce_requested_data done [18:35:25]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165059,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [18:35:25]process_action_free close_receipt [18:35:25]json_value_free [18:35:25]json_value_free done [18:35:25]process_json_proto returns [18:35:25]Send response to host [18:35:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165059,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [18:35:25]free response buf [18:35:25]execute_script done [18:35:25]execute_script returns [18:35:25]free content buf [18:35:25]Sock 6.Close socket [18:35:25]Sock 6.Thread stoped [18:35:29]OFD Sender: No OFD packet to send [18:35:34]OFD Sender: No OFD packet to send [18:35:39]OFD Sender: No OFD packet to send [18:35:42]accept exits with 7 [18:35:42]New connection [18:35:42]New thread 3066785124 created [18:35:42]Thread 3066928484 joined [18:35:42]Waiting for new connection... [18:35:42] Sock 7.Parse request [18:35:42]Sock 7.Check first char [18:35:42]Sock 7.First char is OK [18:35:42]request: POST /json_proto HTTP/1.0 [18:35:42]Method: POST [18:35:42]URL: /json_proto [18:35:42]Method is POST - this is cgi request [18:35:42]url: /json_proto [18:35:42]query_string will be loaded in cgi processing [18:35:42]execute_cgi json_proto POST (null) [18:35:42]execute_cgi path=json_proto method=POST [18:35:42]POST find Content-Length [18:35:42]Host: 172.17.56.4:8080 [18:35:42]Content-Length: 677 [18:35:42]Content-Type: application/json [18:35:42] [18:35:42]POST finish read [18:35:42]Found Content-Length = 677 [18:35:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459163", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:35:42]execute_script... [18: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)459163", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:35:42]POST & json_proto [18:35:42]process_json_proto [18:35:42]json parsed OK: [18:35:42]protocol is kg_v1.0 [18:35:42]action value=close_receipt [18:35:42]process_action close_receipt [18:35:42]cmd_close_receipt [18:35:42]MH_GetDate [18:35:42]Write to MH i2c: F0 00 00 67 00 56 [18:35:42]Write i2c OK [18:35:42]MH_I2C_Read... [18:35:42]Read from MH i2c: F0 [18:35:42]MH_I2C_Read... [18:35:42]Read from MH i2c: F0 09 00 [18:35:42]MH_I2C_Read... [18:35:42]Read from MH i2c: F0 09 00 67 00 00 7F 1A 94 66 C9 DC B2 64 AD [18:35:42]GetLastDocTimeStamp 1720982122 [18:35:42]current date 1720982143 [18:35:42]FM_GetShiftState [18:35:42]SAM_PROTO_GetShiftState [18:35:42]wFMCommunicate request_size=4 [18:35:42]MH_SAM_APDU [18:35:42]CAPDU: 80 13 01 00 [18:35:42]Write to MH i2c: E2 08 00 68 00 80 13 01 00 00 00 00 00 E5 [18:35:42]Write i2c OK [18:35:42]MH_I2C_Read... [18:35:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:35:42]Read from MH i2c: E2 [18:35:42]MH_I2C_Read... [18:35:42]Read from MH i2c: E2 0E 00 [18:35:42]MH_I2C_Read... [18:35:42]Read from MH i2c: E2 0E 00 68 00 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 65 [18:35:42]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [18:35:42]wFMCommunicate OK [18:35:42]SAM_PROTO_GetShiftState done [18:35:42]FM_GetShiftState done [18:35:42]opened in 1720917342 [18:35:42]opened+sec_in_day 1721003742 [18:35:42]quantity*price = 30004 [18:35:42]sum+1 = 30006 [18:35:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 258 14.07.2024 18:35 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165060 ФПД: 266410332292091 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T183543&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165060&fm=266410332292091&tin=02508201610067®Number=0000000000090829&sum=30000 [18:35:43]StoreToDocumentArchive [18:35:43]shift 447 fd 165060 [18:35:43]save to /storage/0447/doc_00165060 [18:35:43]save last doc name /storage/0447/doc_00165060 to /storage/kkm_last_doc_name [18:35:43]save OK [18:35:43]Clear old archive folders... [18:35:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:35:43]tlvbuf is 01391E80 [18:35:43]SAM_PROTO_ClearQueue [18:35:43]wFMCommunicate request_size=4 [18:35:43]MH_SAM_APDU [18:35:43]CAPDU: 80 09 00 00 [18:35:43]Write to MH i2c: E2 08 00 75 00 80 09 00 00 00 00 00 00 E7 [18:35:43]Write i2c OK [18:35:43]MH_I2C_Read... [18:35:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:35:43]Read from MH i2c: E2 [18:35:43]MH_I2C_Read... [18:35:43]Read from MH i2c: E2 03 00 [18:35:43]MH_I2C_Read... [18:35:43]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [18:35:43]RAPDU: 90 00 [18:35:43]wFMCommunicate OK [18:35:43]SAM_PROTO_ClearQueue done [18:35:43]KKMCreateOFDPacket [18:35:43]OFDProtocolAddRootSTLVToBuf [18:35:43]FM_MakeSignedData [18:35:43]FM_MakeSignedData [18:35:43]SAM_PROTO_SignData [18:35:43]wFMCommunicate request_size=4 [18:35:43]MH_SAM_APDU [18:35:43]CAPDU: 80 0D 01 02 [18:35:43]Write to MH i2c: E2 08 00 76 00 80 0D 01 02 00 00 00 00 EF [18:35:43]Write i2c OK [18:35:43]MH_I2C_Read... [18:35:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:35:43]Read from MH i2c: E2 [18:35:43]MH_I2C_Read... [18:35:43]Read from MH i2c: E2 03 00 [18:35:43]MH_I2C_Read... [18:35:43]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [18:35:43]RAPDU: 90 00 [18:35:43]wFMCommunicate OK [18:35:43]wFMCommunicate request_size=255 [18:35:43]MH_SAM_APDU [18: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 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 7F 1A 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C4 84 02 00 35 04 06 00 F2 [18:35:43]Write to MH i2c: E2 02 01 77 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 7F 1A 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C4 84 02 00 35 04 06 00 F2 00 00 BB [18:35:43]Write i2c OK [18:35:43]MH_I2C_Read... [18:35:43]Read from MH i2c: E2 [18:35:43]MH_I2C_Read... [18:35:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:35:43]Read from MH i2c: E2 03 00 [18:35:43]MH_I2C_Read... [18:35:43]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [18:35:43]RAPDU: 90 00 [18:35:43]wFMCommunicate OK [18:35:43]wFMCommunicate request_size=10 [18:35:43]MH_SAM_APDU [18:35:43]CAPDU: 80 0D 02 02 05 4C 7D 38 83 FB [18:35:43]Write to MH i2c: E2 0D 00 78 00 80 0D 02 02 05 00 4C 7D 38 83 FB 00 00 7B [18:35:43]Write i2c OK [18:35:43]MH_I2C_Read... [18:35:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:35:43]Read from MH i2c: E2 [18:35:43]MH_I2C_Read... [18:35:43]Read from MH i2c: E2 03 00 [18:35:43]MH_I2C_Read... [18:35:43]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [18:35:43]RAPDU: 90 00 [18:35:43]wFMCommunicate OK [18:35:43]wFMCommunicate request_size=4 [18:35:43]MH_SAM_APDU [18:35:43]CAPDU: 80 0D 03 02 [18:35:43]Write to MH i2c: E2 08 00 79 00 80 0D 03 02 00 00 00 00 F4 [18:35:43]Write i2c OK [18:35:43]MH_I2C_Read... [18:35:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:35:43]Read from MH i2c: E2 [18:35:43]MH_I2C_Read... [18:35:43]Read from MH i2c: E2 0B 00 [18:35:43]MH_I2C_Read... [18:35:43]Read from MH i2c: E2 0B 00 79 00 00 E0 F0 58 DA 98 9C 06 94 90 00 C5 [18:35:43]RAPDU: E0 F0 58 DA 98 9C 06 94 90 00 [18:35:43]wFMCommunicate OK [18:35:43]SAM_PROTO_SignData done [18:35:43]FM_MakeSignedData done [18:35:43]CreateOFDProtocolMessage [18:35:43]wFMCommunicate request_size=4 [18:35:43]MH_SAM_APDU [18:35:43]CAPDU: 80 11 00 00 [18:35:43]Write to MH i2c: E2 08 00 7A 00 80 11 00 00 00 00 00 00 F4 [18:35:43]Write i2c OK [18:35:43]MH_I2C_Read... [18:35:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:43]Read from MH i2c: E2 [18:35:43]MH_I2C_Read... [18:35:43]Read from MH i2c: E2 17 00 [18:35:43]MH_I2C_Read... [18:35:43]Read from MH i2c: E2 17 00 7A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 4A [18:35:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:35:43]wFMCommunicate OK [18:35:43]CreateOFDProtocolMessage done [18:35:43]OFDSenderStorePacket 165060 [18:35:43]StoreOFDPacket docnum=165060 [18:35:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 1B D1 07 01 52 E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 7F 1A 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C4 84 02 00 35 04 06 00 F2 4C 7D 38 83 FB E0 F0 58 DA 98 9C 06 94 [18:35:43]CheckFolder [18:35:43]dirname=/storage/ofd_packets [18:35:43]CheckFolder done [18:35:43]ProducePacketName [18:35:43]name=ofd_packets/00165060 [18:35:43]NVStorageSaveData ofd_packets/00165060 [18:35:43]File name is /storage/ofd_packets/00165060 [18:35:43]Write 301 bytes [18:35:43]NVStorageSaveData done [18:35:43]OFDSenderStorePacket done [18:35:43]KKMCreateOFDPacket done [18:35:43]NVStorageSaveData kkm_last_timestamp [18:35:43]File name is /storage/kkm_last_timestamp [18:35:43]Write 4 bytes [18:35:43]NVStorageSaveData done [18:35:43]ExternCall_PrintAddStr [18:35:43]wPrintStart [18:35:43]Write to MH i2c: 01 00 00 7B 00 7B [18:35:43]Write i2c OK [18:35:43]MH_I2C_Read... [18:35:43]Read from MH i2c: 01 [18:35:43]MH_I2C_Read... [18:35:43]Read from MH i2c: 01 07 00 [18:35:43]MH_I2C_Read... [18:35:43]Read from MH i2c: 01 07 00 7B 00 00 00 00 00 00 FF 0F 90 [18:35:43]RasterBufferAndPrint [18:35:43]line Счет N : (1)459163 [18:35:43]line ИНН: 02508201610067 [18:35:43]line Контрольно-Кассовый Чек [18:35:43]line ПРОДАЖА [18:35:43]line ТРК (МРК, ГНК) : 22 [18:35:43]line Товар: 2710124130 [18:35:43]line Аи-92-К-5 [18:35:43]line 4.560 * 65.80 [18:35:43]line = 300.05 [18:35:43]line НДС 12% НСП 1% [18:35:43]line > о реализуемом товаре [18:35:43]line ОКРУГЛЕНИЕ: -0.05 [18:35:43]line ИТОГО: 300.00 [18:35:43]line Внесено: 300.00 [18:35:43]line СДАЧА: 0.00 [18:35:43]line НСП 1% : 2.65 [18:35:43]line НДС 12% : 31.86 [18:35:43]line Наличными: 300.00 [18:35:43]line Безнал.: 0.00 [18:35:43]line Место: АЗС № 72 "Партнер Нефть" [18:35:43]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [18:35:43]line СНО: Общий режим [18:35:43]line Чек 258 14.07.2024 18:35 [18:35:43]line Смена: 447 ФФД: 1.0 [18:35:43]line ЗНМ: 0300000160 [18:35:43]line РНМ: 0000000000090829 [18:35:43]line Версия ККМ: 001 [18:35:43]line ФМ: 0000000000874718 [18:35:43]line ФД: 165060 [18:35:43]line ФПД: 266410332292091 [18:35:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T183543&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165060&fm=266410332292091&tin=02508201610067®Number=0000000000090829&sum=30000 [18:35:43]written 0, free lines is 4095 [18:35:43]OFD Sender: Processing packet 165060 [packets to send 106, broken 105] [18:35:43]ProducePacketName [18:35:43]name=ofd_packets/00165060 [18:35:43]OFD Sender: To server: pG, [18:35:43]CommunicateWithHost lk.salyk.kg:30040 [18:35:43]ConnectInit lk.salyk.kg [18:35:43]Connected sock=10 [18:35:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 1B D1 07 01 52 E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 7F 1A 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C4 84 02 00 35 04 06 00 F2 4C 7D 38 83 FB E0 F0 58 DA 98 9C 06 94 [18:35:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 99 A5 47 00 B4 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C4 84 02 00 F4 03 04 00 0B C1 93 66 B6 04 01 00 00 40 19 2E D3 98 F1 CC 3D [18:35:44]CommunicateWithHost err = 0 [18:35:44]CheckOFDResponse [18:35:44]1017 (14) - 77093643461234 [18:35:44]1041 (16) - 0000000000874718 [18:35:44]1040 (4) - 165060 [18:35:44]1012 (4) - 14.07.2024 12:14 [18:35:44]1206 (1) - 0 [18:35:44]OFD Sender: Remove packet 165060 [18:35:44]ProducePacketName [18:35:44]name=ofd_packets/00165060 [18:35:44]NVStorageDeleteData [18:35:44]Write to MH i2c: 01 00 00 A5 00 A5 [18:35:44]Write i2c OK [18:35:44]MH_I2C_Read... [18:35:44]Read from MH i2c: 01 [18:35:44]MH_I2C_Read... [18:35:44]Read from MH i2c: 01 07 00 [18:35:44]MH_I2C_Read... [18:35:44]Read from MH i2c: 01 07 00 A5 00 00 00 00 00 00 0A 0D C3 [18:35:44]RasterBufferAndPrint [18:35:44]line [18:35:44]line [18:35:44]line [18:35:44]line [18:35:44]line [18:35:44]written 0, free lines is 3350 [18:35:44]MH_Cut [18:35:44]Write to MH i2c: D1 01 00 AC 00 01 7E [18:35:44]Write i2c OK [18:35:44]MH_I2C_Read... [18:35:44]Read from MH i2c: D1 [18:35:44]MH_I2C_Read... [18:35:44]Read from MH i2c: D1 01 00 [18:35:44]MH_I2C_Read... [18:35:44]Read from MH i2c: D1 01 00 AC 00 00 7D [18:35:44]Write to MH i2c: 01 00 00 AD 00 AD [18:35:44]Write i2c OK [18:35:44]MH_I2C_Read... [18:35:44]OFD Sender: No OFD packet to send [18:35:44]*** Cut start [18:35:44]*** Partial cut [18:35:44]*** CUTSNS_PIN = 1 [18:35:44]*** CUTSNS_PIN = 0 [18:35:45]*** Brake cut motor [18:35:45]Read from MH i2c: 01 [18:35:45]MH_I2C_Read... [18:35:45]*** Stop cut motor [18:35:45]*** Cut end [18:35:45]Read from MH i2c: 01 07 00 [18:35:45]MH_I2C_Read... [18:35:45]Read from MH i2c: 01 07 00 AD 00 00 00 00 00 00 FF 0F C2 [18:35:45]process_action close_receipt done [18:35:45]requested_data is exist [18:35:45]produce_requested_data [18:35:45]requested_item fm.sn is exist - process it [18:35:45]wFMCommunicate request_size=4 [18:35:45]MH_SAM_APDU [18:35:45]CAPDU: 80 11 00 00 [18:35:45]Write to MH i2c: E2 08 00 AE 00 80 11 00 00 00 00 00 00 28 [18:35:45]Write i2c OK [18:35:45]MH_I2C_Read... [18:35:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:45]Read from MH i2c: E2 [18:35:45]MH_I2C_Read... [18:35:45]Read from MH i2c: E2 17 00 [18:35:45]MH_I2C_Read... [18:35:45]Read from MH i2c: E2 17 00 AE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 7E [18:35:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:35:45]wFMCommunicate OK [18:35:45]requested_item fd.num is exist - process it [18:35:45]SAM_PROTO_GetFieldsCounters [18:35:45]wFMCommunicate request_size=4 [18:35:45]MH_SAM_APDU [18:35:45]CAPDU: 80 13 00 00 [18:35:45]Write to MH i2c: E2 08 00 AF 00 80 13 00 00 00 00 00 00 2B [18:35:45]Write i2c OK [18:35:45]MH_I2C_Read... [18:35:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:35:45]Read from MH i2c: E2 [18:35:45]MH_I2C_Read... [18:35:45]Read from MH i2c: E2 62 00 [18:35:45]MH_I2C_Read... [18:35:45]Read from MH i2c: E2 62 00 AF 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C4 84 02 00 0E 04 04 00 BF 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 65 [18:35:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C4 84 02 00 0E 04 04 00 BF 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 [18:35:45]wFMCommunicate OK [18:35:45]SAM_PROTO_GetFieldsCounters done [18:35:45]requested_item shift.num is exist - process it [18:35:45]requested_item shift.opened is exist - process it [18:35:45]req_shift_opened [18:35:45]FM_GetShiftState [18:35:45]SAM_PROTO_GetShiftState [18:35:45]wFMCommunicate request_size=4 [18:35:45]MH_SAM_APDU [18:35:45]CAPDU: 80 13 01 00 [18:35:45]Write to MH i2c: E2 08 00 B0 00 80 13 01 00 00 00 00 00 2D [18:35:45]Write i2c OK [18:35:45]MH_I2C_Read... [18:35:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:35:45]Read from MH i2c: E2 [18:35:45]MH_I2C_Read... [18:35:45]Read from MH i2c: E2 0E 00 [18:35:45]MH_I2C_Read... [18:35:45]Read from MH i2c: E2 0E 00 B0 00 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 AD [18:35:45]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [18:35:45]wFMCommunicate OK [18:35:45]SAM_PROTO_GetShiftState done [18:35:45]FM_GetShiftState done [18:35:45]req_shift_opened done [18:35:45]requested_item shift.open_date is exist - process it [18:35:45]req_shift_open_date [18:35:45]req_shift_open_date done [18:35:45]produce_requested_data done [18:35:45]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165060,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [18:35:45]process_action_free close_receipt [18:35:45]json_value_free [18:35:45]json_value_free done [18:35:45]process_json_proto returns [18:35:45]Send response to host [18:35:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165060,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [18:35:45]free response buf [18:35:45]execute_script done [18:35:45]execute_script returns [18:35:45]free content buf [18:35:45]Sock 7.Close socket [18:35:45]Sock 7.Thread stoped [18:35:49]OFD Sender: No OFD packet to send [18:35:54]OFD Sender: No OFD packet to send [18:35:59]OFD Sender: No OFD packet to send [18:36:04]OFD Sender: No OFD packet to send [18:36:09]OFD Sender: No OFD packet to send [18:36:14]OFD Sender: No OFD packet to send [18:36:19]OFD Sender: No OFD packet to send [18:36:24]OFD Sender: No OFD packet to send [18:36:29]accept exits with 9 [18:36:29]New connection [18:36:29]New thread 3066928484 created [18:36:29]Thread 3066785124 joined [18:36:29]Waiting for new connection... [18:36:29] Sock 9.Parse request [18:36:29]Sock 9.Check first char [18:36:29]Sock 9.First char is OK [18:36:29]request: POST /json_proto HTTP/1.0 [18:36:29]Method: POST [18:36:29]URL: /json_proto [18:36:29]Method is POST - this is cgi request [18:36:29]url: /json_proto [18:36:29]query_string will be loaded in cgi processing [18:36:29]execute_cgi json_proto POST (null) [18:36:29]execute_cgi path=json_proto method=POST [18:36:29]POST find Content-Length [18:36:29]Host: 172.17.56.4:8080 [18:36:29]Content-Length: 679 [18:36:29]Content-Type: application/json [18:36:29] [18:36:29]POST finish read [18:36:29]Found Content-Length = 679 [18:36:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459164", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 22.260, "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" ] } } [18:36:29]execute_script... [18:36: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)459164", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 22.260, "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" ] } } [18:36:29]POST & json_proto [18:36:29]process_json_proto [18:36:29]json parsed OK: [18:36:29]protocol is kg_v1.0 [18:36:29]action value=close_receipt [18:36:29]process_action close_receipt [18:36:29]cmd_close_receipt [18:36:29]MH_GetDate [18:36:29]Write to MH i2c: F0 00 00 B1 00 A0 [18:36:29]Write i2c OK [18:36:29]MH_I2C_Read... [18:36:29]Read from MH i2c: F0 [18:36:29]MH_I2C_Read... [18:36:29]Read from MH i2c: F0 09 00 [18:36:29]MH_I2C_Read... [18:36:29]Read from MH i2c: F0 09 00 B1 00 00 AE 1A 94 66 C9 DC B2 64 26 [18:36:29]GetLastDocTimeStamp 1720982143 [18:36:29]current date 1720982190 [18:36:29]FM_GetShiftState [18:36:29]SAM_PROTO_GetShiftState [18:36:29]wFMCommunicate request_size=4 [18:36:29]MH_SAM_APDU [18:36:29]CAPDU: 80 13 01 00 [18:36:29]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [18:36:29]Write i2c OK [18:36:29]MH_I2C_Read... [18:36:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:29]Read from MH i2c: E2 [18:36:29]MH_I2C_Read... [18:36:29]Read from MH i2c: E2 0E 00 [18:36:29]MH_I2C_Read... [18:36:29]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 AF [18:36:29]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [18:36:29]wFMCommunicate OK [18:36:29]SAM_PROTO_GetShiftState done [18:36:29]FM_GetShiftState done [18:36:29]opened in 1720917342 [18:36:29]opened+sec_in_day 1721003742 [18:36:29]quantity*price = 160049 [18:36:29]sum+1 = 160050 [18:36:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 1600.00 Внесено: 1600.00 СДАЧА: 0.00 НСП 1% : 14.16 НДС 12% : 169.96 Наличными: 1600.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 259 14.07.2024 18:36 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165061 ФПД: 239371126114073 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T183630&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165061&fm=239371126114073&tin=02508201610067®Number=0000000000090829&sum=160000 [18:36:30]StoreToDocumentArchive [18:36:30]shift 447 fd 165061 [18:36:30]save to /storage/0447/doc_00165061 [18:36:30]save last doc name /storage/0447/doc_00165061 to /storage/kkm_last_doc_name [18:36:30]save OK [18:36:30]Clear old archive folders... [18:36:30]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:36:30]tlvbuf is 013441E0 [18:36:30]SAM_PROTO_ClearQueue [18:36:30]wFMCommunicate request_size=4 [18:36:30]MH_SAM_APDU [18:36:30]CAPDU: 80 09 00 00 [18:36:30]Write to MH i2c: E2 08 00 BF 00 80 09 00 00 00 00 00 00 31 [18:36:30]Write i2c OK [18:36:30]MH_I2C_Read... [18:36:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:36:30]Read from MH i2c: E2 [18:36:30]MH_I2C_Read... [18:36:30]Read from MH i2c: E2 03 00 [18:36:30]MH_I2C_Read... [18:36:30]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [18:36:30]RAPDU: 90 00 [18:36:30]wFMCommunicate OK [18:36:30]SAM_PROTO_ClearQueue done [18:36:30]KKMCreateOFDPacket [18:36:30]OFDProtocolAddRootSTLVToBuf [18:36:30]FM_MakeSignedData [18:36:30]FM_MakeSignedData [18:36:30]SAM_PROTO_SignData [18:36:30]wFMCommunicate request_size=4 [18:36:30]MH_SAM_APDU [18:36:30]CAPDU: 80 0D 01 02 [18:36:30]Write to MH i2c: E2 08 00 C0 00 80 0D 01 02 00 00 00 00 39 [18:36:30]Write i2c OK [18:36:30]MH_I2C_Read... [18:36:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:36:30]Read from MH i2c: E2 [18:36:30]MH_I2C_Read... [18:36:30]Read from MH i2c: E2 03 00 [18:36:30]MH_I2C_Read... [18:36:30]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [18:36:30]RAPDU: 90 00 [18:36:30]wFMCommunicate OK [18:36:30]wFMCommunicate request_size=255 [18:36:30]MH_SAM_APDU [18:36: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 F4 56 00 00 00 00 00 37 04 06 00 16 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 03 01 00 00 F4 03 04 00 AE 1A 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C5 84 02 00 35 04 06 00 D9 B4 EE F1 [18:36:30]Write to MH i2c: E2 02 01 C1 00 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 F4 56 00 00 00 00 00 37 04 06 00 16 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 03 01 00 00 F4 03 04 00 AE 1A 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C5 84 02 00 35 04 06 00 D9 B4 EE F1 00 00 12 [18:36:30]Write i2c OK [18:36:30]MH_I2C_Read... [18:36:30]Read from MH i2c: E2 [18:36:30]MH_I2C_Read... [18:36:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:30]Read from MH i2c: E2 03 00 [18:36:30]MH_I2C_Read... [18:36:30]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [18:36:30]RAPDU: 90 00 [18:36:30]wFMCommunicate OK [18:36:30]wFMCommunicate request_size=7 [18:36:30]MH_SAM_APDU [18:36:30]CAPDU: 80 0D 02 02 02 07 19 [18:36:30]Write to MH i2c: E2 0A 00 C2 00 80 0D 02 02 02 00 07 19 00 00 60 [18:36:30]Write i2c OK [18:36:30]MH_I2C_Read... [18:36:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:30]Read from MH i2c: E2 [18:36:30]MH_I2C_Read... [18:36:30]Read from MH i2c: E2 03 00 [18:36:30]MH_I2C_Read... [18:36:30]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [18:36:30]RAPDU: 90 00 [18:36:30]wFMCommunicate OK [18:36:30]wFMCommunicate request_size=4 [18:36:30]MH_SAM_APDU [18:36:30]CAPDU: 80 0D 03 02 [18:36:30]Write to MH i2c: E2 08 00 C3 00 80 0D 03 02 00 00 00 00 3E [18:36:30]Write i2c OK [18:36:30]MH_I2C_Read... [18:36:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:36:30]Read from MH i2c: E2 [18:36:30]MH_I2C_Read... [18:36:30]Read from MH i2c: E2 0B 00 [18:36:30]MH_I2C_Read... [18:36:30]Read from MH i2c: E2 0B 00 C3 00 00 11 BB AE CE 5B 78 AF A8 90 00 B1 [18:36:30]RAPDU: 11 BB AE CE 5B 78 AF A8 90 00 [18:36:30]wFMCommunicate OK [18:36:30]SAM_PROTO_SignData done [18:36:30]FM_MakeSignedData done [18:36:30]CreateOFDProtocolMessage [18:36:30]wFMCommunicate request_size=4 [18:36:30]MH_SAM_APDU [18:36:30]CAPDU: 80 11 00 00 [18:36:30]Write to MH i2c: E2 08 00 C4 00 80 11 00 00 00 00 00 00 3E [18:36:30]Write i2c OK [18:36:30]MH_I2C_Read... [18:36:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:30]Read from MH i2c: E2 [18:36:30]MH_I2C_Read... [18:36:30]Read from MH i2c: E2 17 00 [18:36:30]MH_I2C_Read... [18:36:30]Read from MH i2c: E2 17 00 C4 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 94 [18:36:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:36:30]wFMCommunicate OK [18:36:30]CreateOFDProtocolMessage done [18:36:30]OFDSenderStorePacket 165061 [18:36:30]StoreOFDPacket docnum=165061 [18:36:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 AD 2C 04 01 8E 29 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F4 56 00 00 00 00 00 37 04 06 00 16 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 03 01 00 00 F4 03 04 00 AE 1A 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C5 84 02 00 35 04 06 00 D9 B4 EE F1 07 19 11 BB AE CE 5B 78 AF A8 [18:36:30]CheckFolder [18:36:30]dirname=/storage/ofd_packets [18:36:30]CheckFolder done [18:36:30]ProducePacketName [18:36:30]name=ofd_packets/00165061 [18:36:30]NVStorageSaveData ofd_packets/00165061 [18:36:30]File name is /storage/ofd_packets/00165061 [18:36:30]Write 298 bytes [18:36:30]NVStorageSaveData done [18:36:30]OFDSenderStorePacket done [18:36:30]KKMCreateOFDPacket done [18:36:30]NVStorageSaveData kkm_last_timestamp [18:36:30]File name is /storage/kkm_last_timestamp [18:36:30]Write 4 bytes [18:36:30]NVStorageSaveData done [18:36:30]ExternCall_PrintAddStr [18:36:30]wPrintStart [18:36:30]Write to MH i2c: 01 00 00 C5 00 C5 [18:36:30]Write i2c OK [18:36:30]MH_I2C_Read... [18:36:30]Read from MH i2c: 01 [18:36:30]MH_I2C_Read... [18:36:30]Read from MH i2c: 01 07 00 [18:36:30]MH_I2C_Read... [18:36:30]Read from MH i2c: 01 07 00 C5 00 00 00 00 00 00 FF 0F DA [18:36:30]RasterBufferAndPrint [18:36:30]line Счет N : (1)459164 [18:36:30]line ИНН: 02508201610067 [18:36:30]line Контрольно-Кассовый Чек [18:36:30]line ПРОДАЖА [18:36:30]line ТРК (МРК, ГНК) : 21 [18:36:30]line Товар: 2710194210 [18:36:30]line ДТ-К-5 [18:36:30]line 22.260 * 71.90 [18:36:30]line = 1600.49 [18:36:30]line НДС 12% НСП 1% [18:36:30]line > о реализуемом товаре [18:36:30]line ОКРУГЛЕНИЕ: -0.49 [18:36:30]line ИТОГО: 1600.00 [18:36:30]line Внесено: 1600.00 [18:36:30]line СДАЧА: 0.00 [18:36:30]line НСП 1% : 14.16 [18:36:30]line НДС 12% : 169.96 [18:36:30]line Наличными: 1600.00 [18:36:30]line Безнал.: 0.00 [18:36:30]line Место: АЗС № 72 "Партнер Нефть" [18:36:30]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [18:36:30]line СНО: Общий режим [18:36:30]line Чек 259 14.07.2024 18:36 [18:36:30]line Смена: 447 ФФД: 1.0 [18:36:30]line ЗНМ: 0300000160 [18:36:30]line РНМ: 0000000000090829 [18:36:30]line Версия ККМ: 001 [18:36:30]line ФМ: 0000000000874718 [18:36:30]line ФД: 165061 [18:36:30]line ФПД: 239371126114073 [18:36:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T183630&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165061&fm=239371126114073&tin=02508201610067®Number=0000000000090829&sum=160000 [18:36:31]OFD Sender: Processing packet 165061 [packets to send 106, broken 105] [18:36:31]ProducePacketName [18:36:31]name=ofd_packets/00165061 [18:36:31]OFD Sender: To server: pG, [18:36:31]CommunicateWithHost lk.salyk.kg:30040 [18:36:31]ConnectInit lk.salyk.kg [18:36:31]written 0, free lines is 4095 [18:36:31]Connected sock=10 [18:36:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 AD 2C 04 01 8E 29 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F4 56 00 00 00 00 00 37 04 06 00 16 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 03 01 00 00 F4 03 04 00 AE 1A 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C5 84 02 00 35 04 06 00 D9 B4 EE F1 07 19 11 BB AE CE 5B 78 AF A8 [18:36:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 A4 49 47 00 9E 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 38 37 34 37 31 38 10 04 04 00 C5 84 02 00 F4 03 04 00 3A C1 93 66 B6 04 01 00 00 3B AF C8 11 47 60 16 B2 [18:36:31]CommunicateWithHost err = 0 [18:36:31]CheckOFDResponse [18:36:31]1017 (14) - 77093643461234 [18:36:31]1041 (16) - 0000000000874718 [18:36:31]1040 (4) - 165061 [18:36:31]1012 (4) - 14.07.2024 12:14 [18:36:31]1206 (1) - 0 [18:36:31]OFD Sender: Remove packet 165061 [18:36:31]ProducePacketName [18:36:31]name=ofd_packets/00165061 [18:36:31]NVStorageDeleteData [18:36:31]Write to MH i2c: 01 00 00 EF 00 EF [18:36:31]Write i2c OK [18:36:31]MH_I2C_Read... [18:36:31]Read from MH i2c: 01 [18:36:31]MH_I2C_Read... [18:36:31]Read from MH i2c: 01 07 00 [18:36:31]MH_I2C_Read... [18:36:31]Read from MH i2c: 01 07 00 EF 00 00 00 00 00 00 F8 0C FA [18:36:31]RasterBufferAndPrint [18:36:31]line [18:36:31]line [18:36:31]line [18:36:31]line [18:36:31]line [18:36:31]written 0, free lines is 3327 [18:36:31]MH_Cut [18:36:31]Write to MH i2c: D1 01 00 F6 00 01 C8 [18:36:31]Write i2c OK [18:36:31]MH_I2C_Read... [18:36:31]Read from MH i2c: D1 [18:36:31]MH_I2C_Read... [18:36:31]Read from MH i2c: D1 01 00 [18:36:31]MH_I2C_Read... [18:36:31]Read from MH i2c: D1 01 00 F6 00 00 C7 [18:36:31]Write to MH i2c: 01 00 00 F7 00 F7 [18:36:31]Write i2c OK [18:36:31]MH_I2C_Read... [18:36:31]OFD Sender: No OFD packet to send [18:36:32]*** Cut start [18:36:32]*** Partial cut [18:36:32]*** CUTSNS_PIN = 1 [18:36:32]*** CUTSNS_PIN = 0 [18:36:32]*** Brake cut motor [18:36:32]Read from MH i2c: 01 [18:36:32]MH_I2C_Read... [18:36:32]*** Stop cut motor [18:36:32]*** Cut end [18:36:32]Read from MH i2c: 01 07 00 [18:36:32]MH_I2C_Read... [18:36:32]Read from MH i2c: 01 07 00 F7 00 00 00 00 00 00 FF 0F 0C [18:36:32]process_action close_receipt done [18:36:32]requested_data is exist [18:36:32]produce_requested_data [18:36:32]requested_item fm.sn is exist - process it [18:36:32]wFMCommunicate request_size=4 [18:36:32]MH_SAM_APDU [18:36:32]CAPDU: 80 11 00 00 [18:36:32]Write to MH i2c: E2 08 00 F8 00 80 11 00 00 00 00 00 00 72 [18:36:32]Write i2c OK [18:36:32]MH_I2C_Read... [18:36:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:32]Read from MH i2c: E2 [18:36:32]MH_I2C_Read... [18:36:32]Read from MH i2c: E2 17 00 [18:36:32]MH_I2C_Read... [18:36:32]Read from MH i2c: E2 17 00 F8 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C8 [18:36:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:36:32]wFMCommunicate OK [18:36:32]requested_item fd.num is exist - process it [18:36:32]SAM_PROTO_GetFieldsCounters [18:36:32]wFMCommunicate request_size=4 [18:36:32]MH_SAM_APDU [18:36:32]CAPDU: 80 13 00 00 [18:36:32]Write to MH i2c: E2 08 00 F9 00 80 13 00 00 00 00 00 00 75 [18:36:32]Write i2c OK [18:36:32]MH_I2C_Read... [18:36:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:36:32]Read from MH i2c: E2 [18:36:32]MH_I2C_Read... [18:36:32]Read from MH i2c: E2 62 00 [18:36:32]MH_I2C_Read... [18:36:32]Read from MH i2c: E2 62 00 F9 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C5 84 02 00 0E 04 04 00 BF 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 B3 [18:36:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C5 84 02 00 0E 04 04 00 BF 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 [18:36:32]wFMCommunicate OK [18:36:32]SAM_PROTO_GetFieldsCounters done [18:36:32]requested_item shift.num is exist - process it [18:36:32]requested_item shift.opened is exist - process it [18:36:32]req_shift_opened [18:36:32]FM_GetShiftState [18:36:32]SAM_PROTO_GetShiftState [18:36:32]wFMCommunicate request_size=4 [18:36:32]MH_SAM_APDU [18:36:32]CAPDU: 80 13 01 00 [18:36:32]Write to MH i2c: E2 08 00 FA 00 80 13 01 00 00 00 00 00 77 [18:36:32]Write i2c OK [18:36:32]MH_I2C_Read... [18:36:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:33]Read from MH i2c: E2 [18:36:33]MH_I2C_Read... [18:36:33]Read from MH i2c: E2 0E 00 [18:36:33]MH_I2C_Read... [18:36:33]Read from MH i2c: E2 0E 00 FA 00 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 F7 [18:36:33]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [18:36:33]wFMCommunicate OK [18:36:33]SAM_PROTO_GetShiftState done [18:36:33]FM_GetShiftState done [18:36:33]req_shift_opened done [18:36:33]requested_item shift.open_date is exist - process it [18:36:33]req_shift_open_date [18:36:33]req_shift_open_date done [18:36:33]produce_requested_data done [18:36:33]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165061,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [18:36:33]process_action_free close_receipt [18:36:33]json_value_free [18:36:33]json_value_free done [18:36:33]process_json_proto returns [18:36:33]Send response to host [18:36:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165061,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [18:36:33]free response buf [18:36:33]execute_script done [18:36:33]execute_script returns [18:36:33]free content buf [18:36:33]Sock 9.Close socket [18:36:33]Sock 9.Thread stoped [18:36:36]OFD Sender: No OFD packet to send [18:36:41]OFD Sender: No OFD packet to send [18:36:46]OFD Sender: No OFD packet to send [18:36:51]OFD Sender: No OFD packet to send [18:36:56]OFD Sender: No OFD packet to send [18:37:01]OFD Sender: No OFD packet to send [18:37:06]OFD Sender: No OFD packet to send [18:37:11]OFD Sender: No OFD packet to send [18:37:16]OFD Sender: No OFD packet to send [18:37:21]OFD Sender: No OFD packet to send [18:37:26]OFD Sender: No OFD packet to send [18:37:31]OFD Sender: No OFD packet to send [18:37:36]OFD Sender: No OFD packet to send [18:37:41]OFD Sender: No OFD packet to send [18:37:46]OFD Sender: No OFD packet to send [18:37:51]OFD Sender: No OFD packet to send [18:37:56]OFD Sender: No OFD packet to send [18:38:01]OFD Sender: No OFD packet to send [18:38:06]OFD Sender: No OFD packet to send [18:38:11]OFD Sender: No OFD packet to send [18:38:16]OFD Sender: No OFD packet to send [18:38:21]OFD Sender: No OFD packet to send [18:38:26]OFD Sender: No OFD packet to send [18:38:31]OFD Sender: No OFD packet to send [18:38:37]OFD Sender: No OFD packet to send [18:38:42]OFD Sender: No OFD packet to send [18:38:47]OFD Sender: No OFD packet to send [18:38:52]OFD Sender: No OFD packet to send [18:38:57]OFD Sender: No OFD packet to send [18:39:02]OFD Sender: No OFD packet to send [18:39:07]OFD Sender: No OFD packet to send [18:39:12]OFD Sender: No OFD packet to send [18:39:17]OFD Sender: No OFD packet to send [18:39:22]OFD Sender: No OFD packet to send [18:39:27]OFD Sender: No OFD packet to send [18:39:32]OFD Sender: No OFD packet to send [18:39:37]OFD Sender: No OFD packet to send [18:39:42]OFD Sender: No OFD packet to send [18:39:47]OFD Sender: No OFD packet to send [18:39:52]OFD Sender: No OFD packet to send [18:39:57]OFD Sender: No OFD packet to send [18:40:02]OFD Sender: No OFD packet to send [18:40:07]OFD Sender: No OFD packet to send [18:40:12]OFD Sender: No OFD packet to send [18:40:17]OFD Sender: No OFD packet to send [18:40:22]OFD Sender: No OFD packet to send [18:40:27]OFD Sender: No OFD packet to send [18:40:32]OFD Sender: No OFD packet to send [18:40:37]OFD Sender: No OFD packet to send [18:40:42]OFD Sender: No OFD packet to send [18:40:47]OFD Sender: No OFD packet to send [18:40:52]OFD Sender: No OFD packet to send [18:40:57]OFD Sender: No OFD packet to send [18:41:02]OFD Sender: No OFD packet to send [18:41:07]OFD Sender: No OFD packet to send [18:41:12]OFD Sender: No OFD packet to send [18:41:17]OFD Sender: No OFD packet to send [18:41:22]OFD Sender: No OFD packet to send [18:41:27]OFD Sender: No OFD packet to send [18:41:32]OFD Sender: No OFD packet to send [18:41:37]OFD Sender: No OFD packet to send [18:41:42]OFD Sender: No OFD packet to send [18:41:47]OFD Sender: No OFD packet to send [18:41:52]OFD Sender: No OFD packet to send [18:41:57]OFD Sender: No OFD packet to send [18:42:02]OFD Sender: No OFD packet to send [18:42:07]OFD Sender: No OFD packet to send [18:42:12]OFD Sender: No OFD packet to send [18:42:17]OFD Sender: No OFD packet to send [18:42:22]OFD Sender: No OFD packet to send [18:42:27]OFD Sender: No OFD packet to send [18:42:32]OFD Sender: No OFD packet to send [18:42:32]accept exits with 7 [18:42:32]New connection [18:42:32]New thread 3066785124 created [18:42:32]Thread 3066928484 joined [18:42:32]Waiting for new connection... [18:42:32] Sock 7.Parse request [18:42:32]Sock 7.Check first char [18:42:32]Sock 7.First char is OK [18:42:32]request: POST /json_proto HTTP/1.0 [18:42:32]Method: POST [18:42:32]URL: /json_proto [18:42:32]Method is POST - this is cgi request [18:42:32]url: /json_proto [18:42:32]query_string will be loaded in cgi processing [18:42:32]execute_cgi json_proto POST (null) [18:42:32]execute_cgi path=json_proto method=POST [18:42:32]POST find Content-Length [18:42:32]Host: 172.17.56.4:8080 [18:42:32]Content-Length: 677 [18:42:32]Content-Type: application/json [18:42:32] [18:42:32]POST finish read [18:42:32]Found Content-Length = 677 [18:42:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459165", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.350, "sum" : 220.43, "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" ] } } [18:42:32]execute_script... [18: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)459165", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.350, "sum" : 220.43, "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" ] } } [18:42:32]POST & json_proto [18:42:32]process_json_proto [18:42:32]json parsed OK: [18:42:32]protocol is kg_v1.0 [18:42:32]action value=close_receipt [18:42:32]process_action close_receipt [18:42:32]cmd_close_receipt [18:42:32]MH_GetDate [18:42:32]Write to MH i2c: F0 00 00 FB 00 EA [18:42:32]Write i2c OK [18:42:32]MH_I2C_Read... [18:42:32]Read from MH i2c: F0 [18:42:32]MH_I2C_Read... [18:42:32]Read from MH i2c: F0 09 00 [18:42:32]MH_I2C_Read... [18:42:32]Read from MH i2c: F0 09 00 FB 00 00 19 1C 94 66 C9 DC B2 64 DD [18:42:32]GetLastDocTimeStamp 1720982190 [18:42:32]current date 1720982553 [18:42:32]FM_GetShiftState [18:42:32]SAM_PROTO_GetShiftState [18:42:32]wFMCommunicate request_size=4 [18:42:32]MH_SAM_APDU [18:42:32]CAPDU: 80 13 01 00 [18:42:32]Write to MH i2c: E2 08 00 FC 00 80 13 01 00 00 00 00 00 79 [18:42:32]Write i2c OK [18:42:32]MH_I2C_Read... [18:42:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:42:32]Read from MH i2c: E2 [18:42:32]MH_I2C_Read... [18:42:32]Read from MH i2c: E2 0E 00 [18:42:32]MH_I2C_Read... [18:42:32]Read from MH i2c: E2 0E 00 FC 00 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 F9 [18:42:32]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [18:42:32]wFMCommunicate OK [18:42:32]SAM_PROTO_GetShiftState done [18:42:32]FM_GetShiftState done [18:42:32]opened in 1720917342 [18:42:32]opened+sec_in_day 1721003742 [18:42:32]quantity*price = 22043 [18:42:32]sum+1 = 22044 [18:42:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 220.00 Внесено: 220.00 СДАЧА: 0.00 НСП 1% : 1.95 НДС 12% : 23.41 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 260 14.07.2024 18:42 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165062 ФПД: 122676534465977 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T184233&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165062&fm=122676534465977&tin=02508201610067®Number=0000000000090829&sum=22000 [18:42:33]StoreToDocumentArchive [18:42:33]shift 447 fd 165062 [18:42:33]save to /storage/0447/doc_00165062 [18:42:33]save last doc name /storage/0447/doc_00165062 to /storage/kkm_last_doc_name [18:42:33]save OK [18:42:33]Clear old archive folders... [18:42:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:42:33]tlvbuf is 013A8130 [18:42:33]SAM_PROTO_ClearQueue [18:42:33]wFMCommunicate request_size=4 [18:42:33]MH_SAM_APDU [18:42:33]CAPDU: 80 09 00 00 [18:42:33]Write to MH i2c: E2 08 00 09 01 80 09 00 00 00 00 00 00 7C [18:42:33]Write i2c OK [18:42:33]MH_I2C_Read... [18:42:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:42:33]Read from MH i2c: E2 [18:42:33]MH_I2C_Read... [18:42:33]Read from MH i2c: E2 03 00 [18:42:33]MH_I2C_Read... [18:42:33]Read from MH i2c: E2 03 00 09 01 00 90 00 7E [18:42:33]RAPDU: 90 00 [18:42:33]wFMCommunicate OK [18:42:33]SAM_PROTO_ClearQueue done [18:42:33]KKMCreateOFDPacket [18:42:33]OFDProtocolAddRootSTLVToBuf [18:42:33]FM_MakeSignedData [18:42:33]FM_MakeSignedData [18:42:33]SAM_PROTO_SignData [18:42:33]wFMCommunicate request_size=4 [18:42:33]MH_SAM_APDU [18:42:33]CAPDU: 80 0D 01 02 [18:42:33]Write to MH i2c: E2 08 00 0A 01 80 0D 01 02 00 00 00 00 84 [18:42:33]Write i2c OK [18:42:33]MH_I2C_Read... [18:42:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:42:33]Read from MH i2c: E2 [18:42:33]MH_I2C_Read... [18:42:33]Read from MH i2c: E2 03 00 [18:42:33]MH_I2C_Read... [18:42:33]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [18:42:33]RAPDU: 90 00 [18:42:33]wFMCommunicate OK [18:42:33]wFMCommunicate request_size=255 [18:42:33]MH_SAM_APDU [18:42:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 16 0D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 1B 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 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 04 01 00 00 F4 03 04 00 19 1C 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C6 84 02 00 35 04 06 00 6F [18:42:33]Write to MH i2c: E2 02 01 0B 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 16 0D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 1B 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 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 04 01 00 00 F4 03 04 00 19 1C 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C6 84 02 00 35 04 06 00 6F 00 00 1F [18:42:33]Write i2c OK [18:42:33]MH_I2C_Read... [18:42:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:42:34]Read from MH i2c: E2 [18:42:34]MH_I2C_Read... [18:42:34]Read from MH i2c: E2 03 00 [18:42:34]MH_I2C_Read... [18:42:34]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [18:42:34]RAPDU: 90 00 [18:42:34]wFMCommunicate OK [18:42:34]wFMCommunicate request_size=10 [18:42:34]MH_SAM_APDU [18:42:34]CAPDU: 80 0D 02 02 05 92 DB 42 55 B9 [18:42:34]Write to MH i2c: E2 0D 00 0C 01 80 0D 02 02 05 00 92 DB 42 55 B9 00 00 4E [18:42:34]Write i2c OK [18:42:34]MH_I2C_Read... [18:42:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:42:34]Read from MH i2c: E2 [18:42:34]MH_I2C_Read... [18:42:34]Read from MH i2c: E2 03 00 [18:42:34]MH_I2C_Read... [18:42:34]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [18:42:34]RAPDU: 90 00 [18:42:34]wFMCommunicate OK [18:42:34]wFMCommunicate request_size=4 [18:42:34]MH_SAM_APDU [18:42:34]CAPDU: 80 0D 03 02 [18:42:34]Write to MH i2c: E2 08 00 0D 01 80 0D 03 02 00 00 00 00 89 [18:42:34]Write i2c OK [18:42:34]MH_I2C_Read... [18:42:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:42:34]Read from MH i2c: E2 [18:42:34]MH_I2C_Read... [18:42:34]Read from MH i2c: E2 0B 00 [18:42:34]MH_I2C_Read... [18:42:34]Read from MH i2c: E2 0B 00 0D 01 00 30 3E 08 14 6C 5F 37 22 90 00 38 [18:42:34]RAPDU: 30 3E 08 14 6C 5F 37 22 90 00 [18:42:34]wFMCommunicate OK [18:42:34]SAM_PROTO_SignData done [18:42:34]FM_MakeSignedData done [18:42:34]CreateOFDProtocolMessage [18:42:34]wFMCommunicate request_size=4 [18:42:34]MH_SAM_APDU [18:42:34]CAPDU: 80 11 00 00 [18:42:34]Write to MH i2c: E2 08 00 0E 01 80 11 00 00 00 00 00 00 89 [18:42:34]Write i2c OK [18:42:34]MH_I2C_Read... [18:42:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:42:34]Read from MH i2c: E2 [18:42:34]MH_I2C_Read... [18:42:34]Read from MH i2c: E2 17 00 [18:42:34]MH_I2C_Read... [18:42:34]Read from MH i2c: E2 17 00 0E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DF [18:42:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:42:34]wFMCommunicate OK [18:42:34]CreateOFDProtocolMessage done [18:42:34]OFDSenderStorePacket 165062 [18:42:34]StoreOFDPacket docnum=165062 [18:42:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 F8 4F 07 01 CD 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 16 0D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 1B 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 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 04 01 00 00 F4 03 04 00 19 1C 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C6 84 02 00 35 04 06 00 6F 92 DB 42 55 B9 30 3E 08 14 6C 5F 37 22 [18:42:34]CheckFolder [18:42:34]dirname=/storage/ofd_packets [18:42:34]CheckFolder done [18:42:34]ProducePacketName [18:42:34]name=ofd_packets/00165062 [18:42:34]NVStorageSaveData ofd_packets/00165062 [18:42:34]File name is /storage/ofd_packets/00165062 [18:42:34]Write 301 bytes [18:42:34]NVStorageSaveData done [18:42:34]OFDSenderStorePacket done [18:42:34]KKMCreateOFDPacket done [18:42:34]NVStorageSaveData kkm_last_timestamp [18:42:34]File name is /storage/kkm_last_timestamp [18:42:34]Write 4 bytes [18:42:34]NVStorageSaveData done [18:42:34]ExternCall_PrintAddStr [18:42:34]wPrintStart [18:42:34]Write to MH i2c: 01 00 00 0F 01 10 [18:42:34]Write i2c OK [18:42:34]MH_I2C_Read... [18:42:34]Read from MH i2c: 01 [18:42:34]MH_I2C_Read... [18:42:34]Read from MH i2c: 01 07 00 [18:42:34]MH_I2C_Read... [18:42:34]Read from MH i2c: 01 07 00 0F 01 00 00 00 00 00 FF 0F 25 [18:42:34]RasterBufferAndPrint [18:42:34]line Счет N : (1)459165 [18:42:34]line ИНН: 02508201610067 [18:42:34]line Контрольно-Кассовый Чек [18:42:34]line ПРОДАЖА [18:42:34]line ТРК (МРК, ГНК) : 12 [18:42:34]line Товар: 2710124130 [18:42:34]line Аи-92-К-5 [18:42:34]line 3.350 * 65.80 [18:42:34]line = 220.43 [18:42:34]line НДС 12% НСП 1% [18:42:34]line > о реализуемом товаре [18:42:34]line ОКРУГЛЕНИЕ: -0.43 [18:42:34]line ИТОГО: 220.00 [18:42:34]line Внесено: 220.00 [18:42:34]line СДАЧА: 0.00 [18:42:34]line НСП 1% : 1.95 [18:42:34]line НДС 12% : 23.41 [18:42:34]line Наличными: 220.00 [18:42:34]line Безнал.: 0.00 [18:42:34]line Место: АЗС № 72 "Партнер Нефть" [18:42:34]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [18:42:34]line СНО: Общий режим [18:42:34]line Чек 260 14.07.2024 18:42 [18:42:34]line Смена: 447 ФФД: 1.0 [18:42:34]line ЗНМ: 0300000160 [18:42:34]line РНМ: 0000000000090829 [18:42:34]line Версия ККМ: 001 [18:42:34]line ФМ: 0000000000874718 [18:42:34]line ФД: 165062 [18:42:34]line ФПД: 122676534465977 [18:42:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T184233&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165062&fm=122676534465977&tin=02508201610067®Number=0000000000090829&sum=22000 [18:42:34]OFD Sender: Processing packet 165062 [packets to send 106, broken 105] [18:42:34]ProducePacketName [18:42:34]name=ofd_packets/00165062 [18:42:34]OFD Sender: To server: pG, [18:42:34]CommunicateWithHost lk.salyk.kg:30040 [18:42:34]ConnectInit lk.salyk.kg [18:42:34]written 0, free lines is 4095 [18:42:34]Connected sock=10 [18:42:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 F8 4F 07 01 CD 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 16 0D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 1B 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 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 04 01 00 00 F4 03 04 00 19 1C 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C6 84 02 00 35 04 06 00 6F 92 DB 42 55 B9 30 3E 08 14 6C 5F 37 22 [18:42:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 1B 47 47 00 26 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C6 84 02 00 F4 03 04 00 A6 C2 93 66 B6 04 01 00 00 83 6C 11 E8 20 45 24 12 [18:42:34]CommunicateWithHost err = 0 [18:42:34]CheckOFDResponse [18:42:34]1017 (14) - 77093643461234 [18:42:34]1041 (16) - 0000000000874718 [18:42:34]1040 (4) - 165062 [18:42:34]1012 (4) - 14.07.2024 12:20 [18:42:34]1206 (1) - 0 [18:42:34]OFD Sender: Remove packet 165062 [18:42:34]ProducePacketName [18:42:34]name=ofd_packets/00165062 [18:42:34]NVStorageDeleteData [18:42:35]Write to MH i2c: 01 00 00 39 01 3A [18:42:35]Write i2c OK [18:42:35]MH_I2C_Read... [18:42:35]Read from MH i2c: 01 [18:42:35]MH_I2C_Read... [18:42:35]Read from MH i2c: 01 07 00 [18:42:35]MH_I2C_Read... [18:42:35]Read from MH i2c: 01 07 00 39 01 00 00 00 00 00 FE 0C 4B [18:42:35]RasterBufferAndPrint [18:42:35]line [18:42:35]line [18:42:35]line [18:42:35]line [18:42:35]line [18:42:35]written 0, free lines is 3332 [18:42:35]MH_Cut [18:42:35]Write to MH i2c: D1 01 00 40 01 01 13 [18:42:35]Write i2c OK [18:42:35]MH_I2C_Read... [18:42:35]Read from MH i2c: D1 [18:42:35]MH_I2C_Read... [18:42:35]Read from MH i2c: D1 01 00 [18:42:35]MH_I2C_Read... [18:42:35]Read from MH i2c: D1 01 00 40 01 00 12 [18:42:35]Write to MH i2c: 01 00 00 41 01 42 [18:42:35]Write i2c OK [18:42:35]MH_I2C_Read... [18:42:35]OFD Sender: No OFD packet to send [18:42:35]*** Cut start [18:42:35]*** Partial cut [18:42:35]*** CUTSNS_PIN = 1 [18:42:35]*** CUTSNS_PIN = 0 [18:42:35]*** Brake cut motor [18:42:36]Read from MH i2c: 01 [18:42:36]MH_I2C_Read... [18:42:36]*** Stop cut motor [18:42:36]*** Cut end [18:42:36]Read from MH i2c: 01 07 00 [18:42:36]MH_I2C_Read... [18:42:36]Read from MH i2c: 01 07 00 41 01 00 00 00 00 00 FF 0F 57 [18:42:36]process_action close_receipt done [18:42:36]requested_data is exist [18:42:36]produce_requested_data [18:42:36]requested_item fm.sn is exist - process it [18:42:36]wFMCommunicate request_size=4 [18:42:36]MH_SAM_APDU [18:42:36]CAPDU: 80 11 00 00 [18:42:36]Write to MH i2c: E2 08 00 42 01 80 11 00 00 00 00 00 00 BD [18:42:36]Write i2c OK [18:42:36]MH_I2C_Read... [18:42:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:42:36]Read from MH i2c: E2 [18:42:36]MH_I2C_Read... [18:42:36]Read from MH i2c: E2 17 00 [18:42:36]MH_I2C_Read... [18:42:36]Read from MH i2c: E2 17 00 42 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 13 [18:42:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:42:36]wFMCommunicate OK [18:42:36]requested_item fd.num is exist - process it [18:42:36]SAM_PROTO_GetFieldsCounters [18:42:36]wFMCommunicate request_size=4 [18:42:36]MH_SAM_APDU [18:42:36]CAPDU: 80 13 00 00 [18:42:36]Write to MH i2c: E2 08 00 43 01 80 13 00 00 00 00 00 00 C0 [18:42:36]Write i2c OK [18:42:36]MH_I2C_Read... [18:42:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:42:36]Read from MH i2c: E2 [18:42:36]MH_I2C_Read... [18:42:36]Read from MH i2c: E2 62 00 [18:42:36]MH_I2C_Read... [18:42:36]Read from MH i2c: E2 62 00 43 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C6 84 02 00 0E 04 04 00 BF 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 02 [18:42:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C6 84 02 00 0E 04 04 00 BF 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 [18:42:36]wFMCommunicate OK [18:42:36]SAM_PROTO_GetFieldsCounters done [18:42:36]requested_item shift.num is exist - process it [18:42:36]requested_item shift.opened is exist - process it [18:42:36]req_shift_opened [18:42:36]FM_GetShiftState [18:42:36]SAM_PROTO_GetShiftState [18:42:36]wFMCommunicate request_size=4 [18:42:36]MH_SAM_APDU [18:42:36]CAPDU: 80 13 01 00 [18:42:36]Write to MH i2c: E2 08 00 44 01 80 13 01 00 00 00 00 00 C2 [18:42:36]Write i2c OK [18:42:36]MH_I2C_Read... [18:42:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:42:36]Read from MH i2c: E2 [18:42:36]MH_I2C_Read... [18:42:36]Read from MH i2c: E2 0E 00 [18:42:36]MH_I2C_Read... [18:42:36]Read from MH i2c: E2 0E 00 44 01 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 42 [18:42:36]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [18:42:36]wFMCommunicate OK [18:42:36]SAM_PROTO_GetShiftState done [18:42:36]FM_GetShiftState done [18:42:36]req_shift_opened done [18:42:36]requested_item shift.open_date is exist - process it [18:42:36]req_shift_open_date [18:42:36]req_shift_open_date done [18:42:36]produce_requested_data done [18:42:36]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165062,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [18:42:36]process_action_free close_receipt [18:42:36]json_value_free [18:42:36]json_value_free done [18:42:36]process_json_proto returns [18:42:36]Send response to host [18:42:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165062,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [18:42:36]free response buf [18:42:36]execute_script done [18:42:36]execute_script returns [18:42:36]free content buf [18:42:36]Sock 7.Close socket [18:42:36]Sock 7.Thread stoped [18:42:40]OFD Sender: No OFD packet to send [18:42:45]OFD Sender: No OFD packet to send [18:42:50]OFD Sender: No OFD packet to send [18:42:55]OFD Sender: No OFD packet to send [18:43:00]OFD Sender: No OFD packet to send [18:43:05]OFD Sender: No OFD packet to send [18:43:10]OFD Sender: No OFD packet to send [18:43:15]OFD Sender: No OFD packet to send [18:43:20]OFD Sender: No OFD packet to send [18:43:25]OFD Sender: No OFD packet to send [18:43:30]OFD Sender: No OFD packet to send [18:43:35]OFD Sender: No OFD packet to send [18:43:40]OFD Sender: No OFD packet to send [18:43:45]OFD Sender: No OFD packet to send [18:43:50]OFD Sender: No OFD packet to send [18:43:55]OFD Sender: No OFD packet to send [18:44:00]OFD Sender: No OFD packet to send [18:44:05]OFD Sender: No OFD packet to send [18:44:10]OFD Sender: No OFD packet to send [18:44:15]OFD Sender: No OFD packet to send [18:44:20]OFD Sender: No OFD packet to send [18:44:25]OFD Sender: No OFD packet to send [18:44:30]OFD Sender: No OFD packet to send [18:44:35]OFD Sender: No OFD packet to send [18:44:40]OFD Sender: No OFD packet to send [18:44:45]OFD Sender: No OFD packet to send [18:44:50]OFD Sender: No OFD packet to send [18:44:55]OFD Sender: No OFD packet to send [18:45:00]OFD Sender: No OFD packet to send [18:45:05]OFD Sender: No OFD packet to send [18:45:10]OFD Sender: No OFD packet to send [18:45:15]OFD Sender: No OFD packet to send [18:45:20]OFD Sender: No OFD packet to send [18:45:25]OFD Sender: No OFD packet to send [18:45:30]OFD Sender: No OFD packet to send [18:45:35]OFD Sender: No OFD packet to send [18:45:40]OFD Sender: No OFD packet to send [18:45:45]OFD Sender: No OFD packet to send [18:45:50]OFD Sender: No OFD packet to send [18:45:55]OFD Sender: No OFD packet to send [18:46:00]OFD Sender: No OFD packet to send [18:46:05]OFD Sender: No OFD packet to send [18:46:10]OFD Sender: No OFD packet to send [18:46:15]OFD Sender: No OFD packet to send [18:46:20]OFD Sender: No OFD packet to send [18:46:25]OFD Sender: No OFD packet to send [18:46:30]accept exits with 9 [18:46:30]New connection [18:46:30]New thread 3066928484 created [18:46:30]Thread 3066785124 joined [18:46:30]Waiting for new connection... [18:46:30] Sock 9.Parse request [18:46:30]Sock 9.Check first char [18:46:30]Sock 9.First char is OK [18:46:30]request: POST /json_proto HTTP/1.0 [18:46:30]Method: POST [18:46:30]URL: /json_proto [18:46:30]Method is POST - this is cgi request [18:46:30]url: /json_proto [18:46:30]query_string will be loaded in cgi processing [18:46:30]execute_cgi json_proto POST (null) [18:46:30]execute_cgi path=json_proto method=POST [18:46:30]POST find Content-Length [18:46:30]Host: 172.17.56.4:8080 [18:46:30]Content-Length: 677 [18:46:30]Content-Type: application/json [18:46:30] [18:46:30]POST finish read [18:46:30]Found Content-Length = 677 [18:46:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459166", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:46:30]execute_script... [18: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)459166", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:46:30]POST & json_proto [18:46:30]process_json_proto [18:46:30]json parsed OK: [18:46:30]protocol is kg_v1.0 [18:46:30]action value=close_receipt [18:46:30]process_action close_receipt [18:46:30]cmd_close_receipt [18:46:30]MH_GetDate [18:46:30]Write to MH i2c: F0 00 00 45 01 35 [18:46:30]Write i2c OK [18:46:30]MH_I2C_Read... [18:46:30]Read from MH i2c: F0 [18:46:30]MH_I2C_Read... [18:46:30]Read from MH i2c: F0 09 00 [18:46:30]MH_I2C_Read... [18:46:30]Read from MH i2c: F0 09 00 45 01 00 07 1D 94 66 C9 DC B2 64 17 [18:46:30]GetLastDocTimeStamp 1720982553 [18:46:30]current date 1720982791 [18:46:30]FM_GetShiftState [18:46:30]SAM_PROTO_GetShiftState [18:46:30]wFMCommunicate request_size=4 [18:46:30]MH_SAM_APDU [18:46:30]CAPDU: 80 13 01 00 [18:46:30]Write to MH i2c: E2 08 00 46 01 80 13 01 00 00 00 00 00 C4 [18:46:30]Write i2c OK [18:46:30]MH_I2C_Read... [18:46:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:46:30]Read from MH i2c: E2 [18:46:30]MH_I2C_Read... [18:46:30]Read from MH i2c: E2 0E 00 [18:46:30]MH_I2C_Read... [18:46:30]Read from MH i2c: E2 0E 00 46 01 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 44 [18:46:30]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [18:46:30]wFMCommunicate OK [18:46:30]SAM_PROTO_GetShiftState done [18:46:30]FM_GetShiftState done [18:46:30]opened in 1720917342 [18:46:30]opened+sec_in_day 1721003742 [18:46:30]quantity*price = 20003 [18:46:30]sum+1 = 20004 [18:46:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 261 14.07.2024 18:46 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165063 ФПД: 137088200032615 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T184631&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165063&fm=137088200032615&tin=02508201610067®Number=0000000000090829&sum=20000 [18:46:31]StoreToDocumentArchive [18:46:31]shift 447 fd 165063 [18:46:31]save to /storage/0447/doc_00165063 [18:46:31]save last doc name /storage/0447/doc_00165063 to /storage/kkm_last_doc_name [18:46:31]save OK [18:46:31]Clear old archive folders... [18:46:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:46:31]tlvbuf is 013C1400 [18:46:31]SAM_PROTO_ClearQueue [18:46:31]wFMCommunicate request_size=4 [18:46:31]MH_SAM_APDU [18:46:31]CAPDU: 80 09 00 00 [18:46:31]Write to MH i2c: E2 08 00 53 01 80 09 00 00 00 00 00 00 C6 [18:46:31]Write i2c OK [18:46:31]MH_I2C_Read... [18:46:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:46:31]Read from MH i2c: E2 [18:46:31]MH_I2C_Read... [18:46:31]Read from MH i2c: E2 03 00 [18:46:31]MH_I2C_Read... [18:46:31]Read from MH i2c: E2 03 00 53 01 00 90 00 C8 [18:46:31]RAPDU: 90 00 [18:46:31]wFMCommunicate OK [18:46:31]SAM_PROTO_ClearQueue done [18:46:31]KKMCreateOFDPacket [18:46:31]OFDProtocolAddRootSTLVToBuf [18:46:31]FM_MakeSignedData [18:46:31]FM_MakeSignedData [18:46:31]SAM_PROTO_SignData [18:46:31]wFMCommunicate request_size=4 [18:46:31]MH_SAM_APDU [18:46:31]CAPDU: 80 0D 01 02 [18:46:31]Write to MH i2c: E2 08 00 54 01 80 0D 01 02 00 00 00 00 CE [18:46:31]Write i2c OK [18:46:31]MH_I2C_Read... [18:46:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:46:31]Read from MH i2c: E2 [18:46:31]MH_I2C_Read... [18:46:31]Read from MH i2c: E2 03 00 [18:46:31]MH_I2C_Read... [18:46:31]Read from MH i2c: E2 03 00 54 01 00 90 00 C9 [18:46:31]RAPDU: 90 00 [18:46:31]wFMCommunicate OK [18:46:31]wFMCommunicate request_size=255 [18:46:31]MH_SAM_APDU [18: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 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 05 01 00 00 F4 03 04 00 07 1D 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C7 84 02 00 35 04 06 00 7C [18:46:31]Write to MH i2c: E2 02 01 55 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 05 01 00 00 F4 03 04 00 07 1D 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C7 84 02 00 35 04 06 00 7C 00 00 95 [18:46:31]Write i2c OK [18:46:31]MH_I2C_Read... [18:46:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:31]Read from MH i2c: E2 [18:46:31]MH_I2C_Read... [18:46:31]Read from MH i2c: E2 03 00 [18:46:31]MH_I2C_Read... [18:46:31]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [18:46:31]RAPDU: 90 00 [18:46:31]wFMCommunicate OK [18:46:31]wFMCommunicate request_size=10 [18:46:31]MH_SAM_APDU [18:46:31]CAPDU: 80 0D 02 02 05 AE 55 77 41 67 [18:46:31]Write to MH i2c: E2 0D 00 56 01 80 0D 02 02 05 00 AE 55 77 41 67 00 00 FD [18:46:31]Write i2c OK [18:46:31]MH_I2C_Read... [18:46:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:31]Read from MH i2c: E2 [18:46:31]MH_I2C_Read... [18:46:31]Read from MH i2c: E2 03 00 [18:46:31]MH_I2C_Read... [18:46:31]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [18:46:31]RAPDU: 90 00 [18:46:31]wFMCommunicate OK [18:46:31]wFMCommunicate request_size=4 [18:46:31]MH_SAM_APDU [18:46:31]CAPDU: 80 0D 03 02 [18:46:31]Write to MH i2c: E2 08 00 57 01 80 0D 03 02 00 00 00 00 D3 [18:46:31]Write i2c OK [18:46:31]MH_I2C_Read... [18:46:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:46:31]Read from MH i2c: E2 [18:46:31]MH_I2C_Read... [18:46:31]Read from MH i2c: E2 0B 00 [18:46:31]MH_I2C_Read... [18:46:31]Read from MH i2c: E2 0B 00 57 01 00 7C 95 59 2F 0B EB 59 CF 90 00 8B [18:46:31]RAPDU: 7C 95 59 2F 0B EB 59 CF 90 00 [18:46:31]wFMCommunicate OK [18:46:31]SAM_PROTO_SignData done [18:46:31]FM_MakeSignedData done [18:46:31]CreateOFDProtocolMessage [18:46:31]wFMCommunicate request_size=4 [18:46:31]MH_SAM_APDU [18:46:31]CAPDU: 80 11 00 00 [18:46:31]Write to MH i2c: E2 08 00 58 01 80 11 00 00 00 00 00 00 D3 [18:46:31]Write i2c OK [18:46:31]MH_I2C_Read... [18:46:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:46:31]Read from MH i2c: E2 [18:46:31]MH_I2C_Read... [18:46:31]Read from MH i2c: E2 17 00 [18:46:31]MH_I2C_Read... [18:46:31]Read from MH i2c: E2 17 00 58 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 29 [18:46:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:46:31]wFMCommunicate OK [18:46:31]CreateOFDProtocolMessage done [18:46:31]OFDSenderStorePacket 165063 [18:46:31]StoreOFDPacket docnum=165063 [18:46:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 CB C8 07 01 1A ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 05 01 00 00 F4 03 04 00 07 1D 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C7 84 02 00 35 04 06 00 7C AE 55 77 41 67 7C 95 59 2F 0B EB 59 CF [18:46:31]CheckFolder [18:46:31]dirname=/storage/ofd_packets [18:46:31]CheckFolder done [18:46:31]ProducePacketName [18:46:31]name=ofd_packets/00165063 [18:46:31]NVStorageSaveData ofd_packets/00165063 [18:46:31]File name is /storage/ofd_packets/00165063 [18:46:31]Write 301 bytes [18:46:31]NVStorageSaveData done [18:46:31]OFDSenderStorePacket done [18:46:31]KKMCreateOFDPacket done [18:46:31]NVStorageSaveData kkm_last_timestamp [18:46:31]File name is /storage/kkm_last_timestamp [18:46:31]Write 4 bytes [18:46:31]NVStorageSaveData done [18:46:31]ExternCall_PrintAddStr [18:46:31]wPrintStart [18:46:31]Write to MH i2c: 01 00 00 59 01 5A [18:46:31]Write i2c OK [18:46:31]MH_I2C_Read... [18:46:31]Read from MH i2c: 01 [18:46:31]MH_I2C_Read... [18:46:31]Read from MH i2c: 01 07 00 [18:46:31]MH_I2C_Read... [18:46:31]Read from MH i2c: 01 07 00 59 01 00 00 00 00 00 FF 0F 6F [18:46:31]RasterBufferAndPrint [18:46:31]line Счет N : (1)459166 [18:46:31]line ИНН: 02508201610067 [18:46:31]line Контрольно-Кассовый Чек [18:46:31]line ПРОДАЖА [18:46:31]line ТРК (МРК, ГНК) : 22 [18:46:31]line Товар: 2710124130 [18:46:31]line Аи-92-К-5 [18:46:31]line 3.040 * 65.80 [18:46:31]line = 200.03 [18:46:31]line НДС 12% НСП 1% [18:46:31]line > о реализуемом товаре [18:46:31]line ОКРУГЛЕНИЕ: -0.03 [18:46:31]line ИТОГО: 200.00 [18:46:31]line Внесено: 200.00 [18:46:31]line СДАЧА: 0.00 [18:46:31]line НСП 1% : 1.77 [18:46:31]line НДС 12% : 21.24 [18:46:31]line Наличными: 200.00 [18:46:31]line Безнал.: 0.00 [18:46:31]line Место: АЗС № 72 "Партнер Нефть" [18:46:31]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [18:46:31]line СНО: Общий режим [18:46:31]line Чек 261 14.07.2024 18:46 [18:46:31]line Смена: 447 ФФД: 1.0 [18:46:31]line ЗНМ: 0300000160 [18:46:31]line РНМ: 0000000000090829 [18:46:31]line Версия ККМ: 001 [18:46:31]line ФМ: 0000000000874718 [18:46:31]line ФД: 165063 [18:46:31]line ФПД: 137088200032615 [18:46:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T184631&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165063&fm=137088200032615&tin=02508201610067®Number=0000000000090829&sum=20000 [18:46:32]written 0, free lines is 4095 [18:46:32]OFD Sender: Processing packet 165063 [packets to send 106, broken 105] [18:46:32]ProducePacketName [18:46:32]name=ofd_packets/00165063 [18:46:32]OFD Sender: To server: pG, [18:46:32]CommunicateWithHost lk.salyk.kg:30040 [18:46:32]ConnectInit lk.salyk.kg [18:46:32]Connected sock=10 [18:46:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 CB C8 07 01 1A ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 05 01 00 00 F4 03 04 00 07 1D 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C7 84 02 00 35 04 06 00 7C AE 55 77 41 67 7C 95 59 2F 0B EB 59 CF [18:46:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 49 B3 47 00 B2 B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C7 84 02 00 F4 03 04 00 93 C3 93 66 B6 04 01 00 00 3B E6 A6 0E EB 32 48 E0 [18:46:32]CommunicateWithHost err = 0 [18:46:32]CheckOFDResponse [18:46:32]1017 (14) - 77093643461234 [18:46:32]1041 (16) - 0000000000874718 [18:46:32]1040 (4) - 165063 [18:46:32]1012 (4) - 14.07.2024 12:24 [18:46:32]1206 (1) - 0 [18:46:32]OFD Sender: Remove packet 165063 [18:46:32]ProducePacketName [18:46:32]name=ofd_packets/00165063 [18:46:32]NVStorageDeleteData [18:46:32]Write to MH i2c: 01 00 00 83 01 84 [18:46:32]Write i2c OK [18:46:32]MH_I2C_Read... [18:46:32]Read from MH i2c: 01 [18:46:32]MH_I2C_Read... [18:46:32]Read from MH i2c: 01 07 00 [18:46:32]MH_I2C_Read... [18:46:32]Read from MH i2c: 01 07 00 83 01 00 00 00 00 00 FF 0C 96 [18:46:32]RasterBufferAndPrint [18:46:32]line [18:46:32]line [18:46:32]line [18:46:32]line [18:46:32]line [18:46:32]written 0, free lines is 3333 [18:46:32]MH_Cut [18:46:32]Write to MH i2c: D1 01 00 8A 01 01 5D [18:46:32]Write i2c OK [18:46:32]MH_I2C_Read... [18:46:32]Read from MH i2c: D1 [18:46:32]MH_I2C_Read... [18:46:32]Read from MH i2c: D1 01 00 [18:46:32]MH_I2C_Read... [18:46:32]Read from MH i2c: D1 01 00 8A 01 00 5C [18:46:32]Write to MH i2c: 01 00 00 8B 01 8C [18:46:32]Write i2c OK [18:46:32]MH_I2C_Read... [18:46:32]OFD Sender: No OFD packet to send [18:46:33]*** Cut start [18:46:33]*** Partial cut [18:46:33]*** CUTSNS_PIN = 1 [18:46:33]*** CUTSNS_PIN = 0 [18:46:33]*** Brake cut motor [18:46:33]Read from MH i2c: 01 [18:46:33]MH_I2C_Read... [18:46:33]*** Stop cut motor [18:46:33]*** Cut end [18:46:33]Read from MH i2c: 01 07 00 [18:46:33]MH_I2C_Read... [18:46:33]Read from MH i2c: 01 07 00 8B 01 00 00 00 00 00 FF 0F A1 [18:46:33]process_action close_receipt done [18:46:33]requested_data is exist [18:46:33]produce_requested_data [18:46:33]requested_item fm.sn is exist - process it [18:46:33]wFMCommunicate request_size=4 [18:46:33]MH_SAM_APDU [18:46:33]CAPDU: 80 11 00 00 [18:46:33]Write to MH i2c: E2 08 00 8C 01 80 11 00 00 00 00 00 00 07 [18:46:33]Write i2c OK [18:46:33]MH_I2C_Read... [18:46:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:46:33]Read from MH i2c: E2 [18:46:33]MH_I2C_Read... [18:46:33]Read from MH i2c: E2 17 00 [18:46:33]MH_I2C_Read... [18:46:33]Read from MH i2c: E2 17 00 8C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 5D [18:46:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:46:33]wFMCommunicate OK [18:46:33]requested_item fd.num is exist - process it [18:46:33]SAM_PROTO_GetFieldsCounters [18:46:33]wFMCommunicate request_size=4 [18:46:33]MH_SAM_APDU [18:46:33]CAPDU: 80 13 00 00 [18:46:33]Write to MH i2c: E2 08 00 8D 01 80 13 00 00 00 00 00 00 0A [18:46:33]Write i2c OK [18:46:33]MH_I2C_Read... [18:46:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:46:33]Read from MH i2c: E2 [18:46:33]MH_I2C_Read... [18:46:33]Read from MH i2c: E2 62 00 [18:46:33]MH_I2C_Read... [18:46:33]Read from MH i2c: E2 62 00 8D 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C7 84 02 00 0E 04 04 00 BF 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 50 [18:46:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C7 84 02 00 0E 04 04 00 BF 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 [18:46:33]wFMCommunicate OK [18:46:33]SAM_PROTO_GetFieldsCounters done [18:46:33]requested_item shift.num is exist - process it [18:46:33]requested_item shift.opened is exist - process it [18:46:33]req_shift_opened [18:46:33]FM_GetShiftState [18:46:33]SAM_PROTO_GetShiftState [18:46:33]wFMCommunicate request_size=4 [18:46:33]MH_SAM_APDU [18:46:33]CAPDU: 80 13 01 00 [18:46:33]Write to MH i2c: E2 08 00 8E 01 80 13 01 00 00 00 00 00 0C [18:46:33]Write i2c OK [18:46:33]MH_I2C_Read... [18:46:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:46:34]Read from MH i2c: E2 [18:46:34]MH_I2C_Read... [18:46:34]Read from MH i2c: E2 0E 00 [18:46:34]MH_I2C_Read... [18:46:34]Read from MH i2c: E2 0E 00 8E 01 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 8C [18:46:34]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [18:46:34]wFMCommunicate OK [18:46:34]SAM_PROTO_GetShiftState done [18:46:34]FM_GetShiftState done [18:46:34]req_shift_opened done [18:46:34]requested_item shift.open_date is exist - process it [18:46:34]req_shift_open_date [18:46:34]req_shift_open_date done [18:46:34]produce_requested_data done [18:46:34]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165063,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [18:46:34]process_action_free close_receipt [18:46:34]json_value_free [18:46:34]json_value_free done [18:46:34]process_json_proto returns [18:46:34]Send response to host [18:46:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165063,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [18:46:34]free response buf [18:46:34]execute_script done [18:46:34]execute_script returns [18:46:34]free content buf [18:46:34]Sock 9.Close socket [18:46:34]Sock 9.Thread stoped [18:46:37]OFD Sender: No OFD packet to send [18:46:42]OFD Sender: No OFD packet to send [18:46:47]OFD Sender: No OFD packet to send [18:46:52]OFD Sender: No OFD packet to send [18:46:57]OFD Sender: No OFD packet to send [18:47:02]OFD Sender: No OFD packet to send [18:47:07]OFD Sender: No OFD packet to send [18:47:12]OFD Sender: No OFD packet to send [18:47:17]OFD Sender: No OFD packet to send [18:47:22]OFD Sender: No OFD packet to send [18:47:27]OFD Sender: No OFD packet to send [18:47:32]OFD Sender: No OFD packet to send [18:47:37]OFD Sender: No OFD packet to send [18:47:42]OFD Sender: No OFD packet to send [18:47:47]OFD Sender: No OFD packet to send [18:47:52]OFD Sender: No OFD packet to send [18:47:57]OFD Sender: No OFD packet to send [18:48:02]OFD Sender: No OFD packet to send [18:48:04]accept exits with 7 [18:48:04]New connection [18:48:04]New thread 3066785124 created [18:48:04]Thread 3066928484 joined [18:48:04]Waiting for new connection... [18:48:04] Sock 7.Parse request [18:48:04]Sock 7.Check first char [18:48:04]Sock 7.First char is OK [18:48:04]request: POST /json_proto HTTP/1.0 [18:48:04]Method: POST [18:48:04]URL: /json_proto [18:48:04]Method is POST - this is cgi request [18:48:04]url: /json_proto [18:48:04]query_string will be loaded in cgi processing [18:48:04]execute_cgi json_proto POST (null) [18:48:04]execute_cgi path=json_proto method=POST [18:48:04]POST find Content-Length [18:48:04]Host: 172.17.56.4:8080 [18:48:04]Content-Length: 679 [18:48:04]Content-Type: application/json [18:48:04] [18:48:04]POST finish read [18:48:04]Found Content-Length = 679 [18:48:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459167", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 19.480, "sum" : 1400.61, "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" ] } } [18:48:04]execute_script... [18:48:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459167", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 19.480, "sum" : 1400.61, "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" ] } } [18:48:04]POST & json_proto [18:48:04]process_json_proto [18:48:04]json parsed OK: [18:48:04]protocol is kg_v1.0 [18:48:04]action value=close_receipt [18:48:04]process_action close_receipt [18:48:04]cmd_close_receipt [18:48:04]MH_GetDate [18:48:04]Write to MH i2c: F0 00 00 8F 01 7F [18:48:04]Write i2c OK [18:48:04]MH_I2C_Read... [18:48:04]Read from MH i2c: F0 [18:48:04]MH_I2C_Read... [18:48:04]Read from MH i2c: F0 09 00 [18:48:04]MH_I2C_Read... [18:48:04]Read from MH i2c: F0 09 00 8F 01 00 65 1D 94 66 C9 DC B2 64 BF [18:48:04]GetLastDocTimeStamp 1720982791 [18:48:04]current date 1720982885 [18:48:04]FM_GetShiftState [18:48:04]SAM_PROTO_GetShiftState [18:48:04]wFMCommunicate request_size=4 [18:48:04]MH_SAM_APDU [18:48:04]CAPDU: 80 13 01 00 [18:48:04]Write to MH i2c: E2 08 00 90 01 80 13 01 00 00 00 00 00 0E [18:48:04]Write i2c OK [18:48:04]MH_I2C_Read... [18:48:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:48:04]Read from MH i2c: E2 [18:48:04]MH_I2C_Read... [18:48:04]Read from MH i2c: E2 0E 00 [18:48:04]MH_I2C_Read... [18:48:04]Read from MH i2c: E2 0E 00 90 01 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 8E [18:48:04]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [18:48:04]wFMCommunicate OK [18:48:04]SAM_PROTO_GetShiftState done [18:48:04]FM_GetShiftState done [18:48:04]opened in 1720917342 [18:48:04]opened+sec_in_day 1721003742 [18:48:04]quantity*price = 140061 [18:48:04]sum+1 = 140062 [18:48:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.74 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 262 14.07.2024 18:48 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165064 ФПД: 202207795614171 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T184805&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165064&fm=202207795614171&tin=02508201610067®Number=0000000000090829&sum=140000 [18:48:05]StoreToDocumentArchive [18:48:05]shift 447 fd 165064 [18:48:05]save to /storage/0447/doc_00165064 [18:48:05]save last doc name /storage/0447/doc_00165064 to /storage/kkm_last_doc_name [18:48:05]save OK [18:48:05]Clear old archive folders... [18:48:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:48:05]tlvbuf is 013C1160 [18:48:05]SAM_PROTO_ClearQueue [18:48:05]wFMCommunicate request_size=4 [18:48:05]MH_SAM_APDU [18:48:05]CAPDU: 80 09 00 00 [18:48:05]Write to MH i2c: E2 08 00 9D 01 80 09 00 00 00 00 00 00 10 [18:48:05]Write i2c OK [18:48:05]MH_I2C_Read... [18:48:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:48:05]Read from MH i2c: E2 [18:48:05]MH_I2C_Read... [18:48:05]Read from MH i2c: E2 03 00 [18:48:05]MH_I2C_Read... [18:48:05]Read from MH i2c: E2 03 00 9D 01 00 90 00 12 [18:48:05]RAPDU: 90 00 [18:48:05]wFMCommunicate OK [18:48:05]SAM_PROTO_ClearQueue done [18:48:05]KKMCreateOFDPacket [18:48:05]OFDProtocolAddRootSTLVToBuf [18:48:05]FM_MakeSignedData [18:48:05]FM_MakeSignedData [18:48:05]SAM_PROTO_SignData [18:48:05]wFMCommunicate request_size=4 [18:48:05]MH_SAM_APDU [18:48:05]CAPDU: 80 0D 01 02 [18:48:05]Write to MH i2c: E2 08 00 9E 01 80 0D 01 02 00 00 00 00 18 [18:48:05]Write i2c OK [18:48:05]MH_I2C_Read... [18:48:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:48:05]Read from MH i2c: E2 [18:48:05]MH_I2C_Read... [18:48:05]Read from MH i2c: E2 03 00 [18:48:05]MH_I2C_Read... [18:48:05]Read from MH i2c: E2 03 00 9E 01 00 90 00 13 [18:48:05]RAPDU: 90 00 [18:48:05]wFMCommunicate OK [18:48:05]wFMCommunicate request_size=255 [18:48:05]MH_SAM_APDU [18:48: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 18 4C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 1D 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 1A 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 06 01 00 00 F4 03 04 00 65 1D 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C8 84 02 00 35 04 06 00 B7 E8 2B D4 [18:48:05]Write to MH i2c: E2 02 01 9F 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 18 4C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 1D 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 1A 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 06 01 00 00 F4 03 04 00 65 1D 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C8 84 02 00 35 04 06 00 B7 E8 2B D4 00 00 B9 [18:48:05]Write i2c OK [18:48:05]MH_I2C_Read... [18:48:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:05]Read from MH i2c: E2 [18:48:05]MH_I2C_Read... [18:48:05]Read from MH i2c: E2 03 00 [18:48:05]MH_I2C_Read... [18:48:05]Read from MH i2c: E2 03 00 9F 01 00 90 00 14 [18:48:05]RAPDU: 90 00 [18:48:05]wFMCommunicate OK [18:48:05]wFMCommunicate request_size=7 [18:48:05]MH_SAM_APDU [18:48:05]CAPDU: 80 0D 02 02 02 11 DB [18:48:05]Write to MH i2c: E2 0A 00 A0 01 80 0D 02 02 02 00 11 DB 00 00 0B [18:48:05]Write i2c OK [18:48:05]MH_I2C_Read... [18:48:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:05]Read from MH i2c: E2 [18:48:05]MH_I2C_Read... [18:48:05]Read from MH i2c: E2 03 00 [18:48:05]MH_I2C_Read... [18:48:05]Read from MH i2c: E2 03 00 A0 01 00 90 00 15 [18:48:05]RAPDU: 90 00 [18:48:05]wFMCommunicate OK [18:48:05]wFMCommunicate request_size=4 [18:48:05]MH_SAM_APDU [18:48:05]CAPDU: 80 0D 03 02 [18:48:05]Write to MH i2c: E2 08 00 A1 01 80 0D 03 02 00 00 00 00 1D [18:48:05]Write i2c OK [18:48:05]MH_I2C_Read... [18:48:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:48:05]Read from MH i2c: E2 [18:48:05]MH_I2C_Read... [18:48:05]Read from MH i2c: E2 0B 00 [18:48:05]MH_I2C_Read... [18:48:05]Read from MH i2c: E2 0B 00 A1 01 00 02 31 10 7D 74 0C C1 ED 90 00 0C [18:48:05]RAPDU: 02 31 10 7D 74 0C C1 ED 90 00 [18:48:05]wFMCommunicate OK [18:48:05]SAM_PROTO_SignData done [18:48:05]FM_MakeSignedData done [18:48:05]CreateOFDProtocolMessage [18:48:05]wFMCommunicate request_size=4 [18:48:05]MH_SAM_APDU [18:48:05]CAPDU: 80 11 00 00 [18:48:05]Write to MH i2c: E2 08 00 A2 01 80 11 00 00 00 00 00 00 1D [18:48:05]Write i2c OK [18:48:05]MH_I2C_Read... [18:48:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:48:05]Read from MH i2c: E2 [18:48:05]MH_I2C_Read... [18:48:05]Read from MH i2c: E2 17 00 [18:48:05]MH_I2C_Read... [18:48:05]Read from MH i2c: E2 17 00 A2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 73 [18:48:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:48:05]wFMCommunicate OK [18:48:05]CreateOFDProtocolMessage done [18:48:05]OFDSenderStorePacket 165064 [18:48:05]StoreOFDPacket docnum=165064 [18:48:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 30 D2 04 01 42 B9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 18 4C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 1D 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 1A 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 06 01 00 00 F4 03 04 00 65 1D 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C8 84 02 00 35 04 06 00 B7 E8 2B D4 11 DB 02 31 10 7D 74 0C C1 ED [18:48:05]CheckFolder [18:48:05]dirname=/storage/ofd_packets [18:48:05]CheckFolder done [18:48:05]ProducePacketName [18:48:05]name=ofd_packets/00165064 [18:48:05]NVStorageSaveData ofd_packets/00165064 [18:48:05]File name is /storage/ofd_packets/00165064 [18:48:05]Write 298 bytes [18:48:05]NVStorageSaveData done [18:48:05]OFDSenderStorePacket done [18:48:05]KKMCreateOFDPacket done [18:48:05]NVStorageSaveData kkm_last_timestamp [18:48:05]File name is /storage/kkm_last_timestamp [18:48:05]Write 4 bytes [18:48:05]NVStorageSaveData done [18:48:05]ExternCall_PrintAddStr [18:48:05]wPrintStart [18:48:05]Write to MH i2c: 01 00 00 A3 01 A4 [18:48:05]Write i2c OK [18:48:05]MH_I2C_Read... [18:48:05]Read from MH i2c: 01 [18:48:05]MH_I2C_Read... [18:48:05]Read from MH i2c: 01 07 00 [18:48:05]MH_I2C_Read... [18:48:05]Read from MH i2c: 01 07 00 A3 01 00 00 00 00 00 FF 0F B9 [18:48:05]RasterBufferAndPrint [18:48:05]line Счет N : (1)459167 [18:48:05]line ИНН: 02508201610067 [18:48:05]line Контрольно-Кассовый Чек [18:48:05]line ПРОДАЖА [18:48:05]line ТРК (МРК, ГНК) : 21 [18:48:05]line Товар: 2710194210 [18:48:05]line ДТ-К-5 [18:48:05]line 19.480 * 71.90 [18:48:05]line = 1400.61 [18:48:05]line НДС 12% НСП 1% [18:48:05]line > о реализуемом товаре [18:48:05]line ОКРУГЛЕНИЕ: -0.61 [18:48:05]line ИТОГО: 1400.00 [18:48:05]line Внесено: 1400.00 [18:48:05]line СДАЧА: 0.00 [18:48:05]line НСП 1% : 12.39 [18:48:05]line НДС 12% : 148.74 [18:48:05]line Наличными: 1400.00 [18:48:05]line Безнал.: 0.00 [18:48:05]line Место: АЗС № 72 "Партнер Нефть" [18:48:05]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [18:48:05]line СНО: Общий режим [18:48:05]line Чек 262 14.07.2024 18:48 [18:48:05]line Смена: 447 ФФД: 1.0 [18:48:05]line ЗНМ: 0300000160 [18:48:05]line РНМ: 0000000000090829 [18:48:05]line Версия ККМ: 001 [18:48:05]line ФМ: 0000000000874718 [18:48:05]line ФД: 165064 [18:48:05]line ФПД: 202207795614171 [18:48:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T184805&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165064&fm=202207795614171&tin=02508201610067®Number=0000000000090829&sum=140000 [18:48:06]OFD Sender: Processing packet 165064 [packets to send 106, broken 105] [18:48:06]ProducePacketName [18:48:06]name=ofd_packets/00165064 [18:48:06]OFD Sender: To server: pG, [18:48:06]CommunicateWithHost lk.salyk.kg:30040 [18:48:06]ConnectInit lk.salyk.kg [18:48:06]written 0, free lines is 4095 [18:48:06]Connected sock=11 [18:48:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 30 D2 04 01 42 B9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 18 4C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 1D 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 1A 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 06 01 00 00 F4 03 04 00 65 1D 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C8 84 02 00 35 04 06 00 B7 E8 2B D4 11 DB 02 31 10 7D 74 0C C1 ED [18:48:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 61 4C 47 00 70 D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C8 84 02 00 F4 03 04 00 F2 C3 93 66 B6 04 01 00 00 67 9E DA C0 9A DF 32 04 [18:48:06]CommunicateWithHost err = 0 [18:48:06]CheckOFDResponse [18:48:06]1017 (14) - 77093643461234 [18:48:06]1041 (16) - 0000000000874718 [18:48:06]1040 (4) - 165064 [18:48:06]1012 (4) - 14.07.2024 12:26 [18:48:06]1206 (1) - 0 [18:48:06]OFD Sender: Remove packet 165064 [18:48:06]ProducePacketName [18:48:06]name=ofd_packets/00165064 [18:48:06]NVStorageDeleteData [18:48:06]Write to MH i2c: 01 00 00 CD 01 CE [18:48:06]Write i2c OK [18:48:06]MH_I2C_Read... [18:48:06]Read from MH i2c: 01 [18:48:06]MH_I2C_Read... [18:48:06]Read from MH i2c: 01 07 00 [18:48:06]MH_I2C_Read... [18:48:06]Read from MH i2c: 01 07 00 CD 01 00 00 00 00 00 FE 0C DF [18:48:06]RasterBufferAndPrint [18:48:06]line [18:48:06]line [18:48:06]line [18:48:06]line [18:48:06]line [18:48:06]written 0, free lines is 3332 [18:48:06]MH_Cut [18:48:06]Write to MH i2c: D1 01 00 D4 01 01 A7 [18:48:06]Write i2c OK [18:48:06]MH_I2C_Read... [18:48:06]Read from MH i2c: D1 [18:48:06]MH_I2C_Read... [18:48:06]Read from MH i2c: D1 01 00 [18:48:06]MH_I2C_Read... [18:48:06]Read from MH i2c: D1 01 00 D4 01 00 A6 [18:48:06]Write to MH i2c: 01 00 00 D5 01 D6 [18:48:06]Write i2c OK [18:48:06]MH_I2C_Read... [18:48:07]OFD Sender: No OFD packet to send [18:48:07]*** Cut start [18:48:07]*** Partial cut [18:48:07]*** CUTSNS_PIN = 1 [18:48:07]*** CUTSNS_PIN = 0 [18:48:07]*** Brake cut motor [18:48:08]Read from MH i2c: 01 [18:48:08]MH_I2C_Read... [18:48:08]*** Stop cut motor [18:48:08]*** Cut end [18:48:08]Read from MH i2c: 01 07 00 [18:48:08]MH_I2C_Read... [18:48:08]Read from MH i2c: 01 07 00 D5 01 00 00 00 00 00 FF 0F EB [18:48:08]process_action close_receipt done [18:48:08]requested_data is exist [18:48:08]produce_requested_data [18:48:08]requested_item fm.sn is exist - process it [18:48:08]wFMCommunicate request_size=4 [18:48:08]MH_SAM_APDU [18:48:08]CAPDU: 80 11 00 00 [18:48:08]Write to MH i2c: E2 08 00 D6 01 80 11 00 00 00 00 00 00 51 [18:48:08]Write i2c OK [18:48:08]MH_I2C_Read... [18:48:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:48:08]Read from MH i2c: E2 [18:48:08]MH_I2C_Read... [18:48:08]Read from MH i2c: E2 17 00 [18:48:08]MH_I2C_Read... [18:48:08]Read from MH i2c: E2 17 00 D6 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A7 [18:48:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:48:08]wFMCommunicate OK [18:48:08]requested_item fd.num is exist - process it [18:48:08]SAM_PROTO_GetFieldsCounters [18:48:08]wFMCommunicate request_size=4 [18:48:08]MH_SAM_APDU [18:48:08]CAPDU: 80 13 00 00 [18:48:08]Write to MH i2c: E2 08 00 D7 01 80 13 00 00 00 00 00 00 54 [18:48:08]Write i2c OK [18:48:08]MH_I2C_Read... [18:48:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:48:08]Read from MH i2c: E2 [18:48:08]MH_I2C_Read... [18:48:08]Read from MH i2c: E2 62 00 [18:48:08]MH_I2C_Read... [18:48:08]Read from MH i2c: E2 62 00 D7 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C8 84 02 00 0E 04 04 00 BF 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 9E [18:48:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C8 84 02 00 0E 04 04 00 BF 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 [18:48:08]wFMCommunicate OK [18:48:08]SAM_PROTO_GetFieldsCounters done [18:48:08]requested_item shift.num is exist - process it [18:48:08]requested_item shift.opened is exist - process it [18:48:08]req_shift_opened [18:48:08]FM_GetShiftState [18:48:08]SAM_PROTO_GetShiftState [18:48:08]wFMCommunicate request_size=4 [18:48:08]MH_SAM_APDU [18:48:08]CAPDU: 80 13 01 00 [18:48:08]Write to MH i2c: E2 08 00 D8 01 80 13 01 00 00 00 00 00 56 [18:48:08]Write i2c OK [18:48:08]MH_I2C_Read... [18:48:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:48:08]Read from MH i2c: E2 [18:48:08]MH_I2C_Read... [18:48:08]Read from MH i2c: E2 0E 00 [18:48:08]MH_I2C_Read... [18:48:08]Read from MH i2c: E2 0E 00 D8 01 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 D6 [18:48:08]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [18:48:08]wFMCommunicate OK [18:48:08]SAM_PROTO_GetShiftState done [18:48:08]FM_GetShiftState done [18:48:08]req_shift_opened done [18:48:08]requested_item shift.open_date is exist - process it [18:48:08]req_shift_open_date [18:48:08]req_shift_open_date done [18:48:08]produce_requested_data done [18:48:08]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165064,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [18:48:08]process_action_free close_receipt [18:48:08]json_value_free [18:48:08]json_value_free done [18:48:08]process_json_proto returns [18:48:08]Send response to host [18:48:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165064,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [18:48:08]free response buf [18:48:08]execute_script done [18:48:08]execute_script returns [18:48:08]free content buf [18:48:08]Sock 7.Close socket [18:48:08]Sock 7.Thread stoped [18:48:12]OFD Sender: No OFD packet to send [18:48:17]OFD Sender: No OFD packet to send [18:48:22]OFD Sender: No OFD packet to send [18:48:27]OFD Sender: No OFD packet to send [18:48:32]OFD Sender: No OFD packet to send [18:48:37]OFD Sender: No OFD packet to send [18:48:42]OFD Sender: No OFD packet to send [18:48:46]accept exits with 9 [18:48:46]New connection [18:48:46]New thread 3066928484 created [18:48:46]Thread 3066785124 joined [18:48:46]Waiting for new connection... [18:48:46] Sock 9.Parse request [18:48:46]Sock 9.Check first char [18:48:46]Sock 9.First char is OK [18:48:46]request: POST /json_proto HTTP/1.0 [18:48:46]Method: POST [18:48:46]URL: /json_proto [18:48:46]Method is POST - this is cgi request [18:48:46]url: /json_proto [18:48:46]query_string will be loaded in cgi processing [18:48:46]execute_cgi json_proto POST (null) [18:48:46]execute_cgi path=json_proto method=POST [18:48:46]POST find Content-Length [18:48:46]Host: 172.17.56.4:8080 [18:48:46]Content-Length: 678 [18:48:46]Content-Type: application/json [18:48:46] [18:48:46]POST finish read [18:48:46]Found Content-Length = 678 [18:48:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459168", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:48:46]execute_script... [18:48:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459168", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:48:46]POST & json_proto [18:48:46]process_json_proto [18:48:46]json parsed OK: [18:48:46]protocol is kg_v1.0 [18:48:46]action value=close_receipt [18:48:46]process_action close_receipt [18:48:46]cmd_close_receipt [18:48:46]MH_GetDate [18:48:46]Write to MH i2c: F0 00 00 D9 01 C9 [18:48:46]Write i2c OK [18:48:46]MH_I2C_Read... [18:48:46]Read from MH i2c: F0 [18:48:46]MH_I2C_Read... [18:48:46]Read from MH i2c: F0 09 00 [18:48:46]MH_I2C_Read... [18:48:46]Read from MH i2c: F0 09 00 D9 01 00 8F 1D 94 66 C9 DC B2 64 33 [18:48:46]GetLastDocTimeStamp 1720982885 [18:48:46]current date 1720982927 [18:48:46]FM_GetShiftState [18:48:46]SAM_PROTO_GetShiftState [18:48:46]wFMCommunicate request_size=4 [18:48:46]MH_SAM_APDU [18:48:46]CAPDU: 80 13 01 00 [18:48:46]Write to MH i2c: E2 08 00 DA 01 80 13 01 00 00 00 00 00 58 [18:48:46]Write i2c OK [18:48:46]MH_I2C_Read... [18:48:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:48:46]Read from MH i2c: E2 [18:48:46]MH_I2C_Read... [18:48:46]Read from MH i2c: E2 0E 00 [18:48:46]MH_I2C_Read... [18:48:46]Read from MH i2c: E2 0E 00 DA 01 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 D8 [18:48:46]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [18:48:46]wFMCommunicate OK [18:48:46]SAM_PROTO_GetShiftState done [18:48:46]FM_GetShiftState done [18:48:46]opened in 1720917342 [18:48:46]opened+sec_in_day 1721003742 [18:48:46]quantity*price = 70011 [18:48:46]sum+1 = 70012 [18:48:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 263 14.07.2024 18:48 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165065 ФПД: 239723490611782 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T184848&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165065&fm=239723490611782&tin=02508201610067®Number=0000000000090829&sum=70000 [18:48:48]StoreToDocumentArchive [18:48:48]shift 447 fd 165065 [18:48:48]save to /storage/0447/doc_00165065 [18:48:48]save last doc name /storage/0447/doc_00165065 to /storage/kkm_last_doc_name [18:48:48]save OK [18:48:48]Clear old archive folders... [18:48:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:48:48]tlvbuf is 013C48F0 [18:48:48]SAM_PROTO_ClearQueue [18:48:48]wFMCommunicate request_size=4 [18:48:48]MH_SAM_APDU [18:48:48]CAPDU: 80 09 00 00 [18:48:48]Write to MH i2c: E2 08 00 E7 01 80 09 00 00 00 00 00 00 5A [18:48:48]Write i2c OK [18:48:48]MH_I2C_Read... [18:48:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:48:48]Read from MH i2c: E2 [18:48:48]MH_I2C_Read... [18:48:48]Read from MH i2c: E2 03 00 [18:48:48]MH_I2C_Read... [18:48:48]Read from MH i2c: E2 03 00 E7 01 00 90 00 5C [18:48:48]RAPDU: 90 00 [18:48:48]wFMCommunicate OK [18:48:48]SAM_PROTO_ClearQueue done [18:48:48]KKMCreateOFDPacket [18:48:48]OFDProtocolAddRootSTLVToBuf [18:48:48]FM_MakeSignedData [18:48:48]FM_MakeSignedData [18:48:48]SAM_PROTO_SignData [18:48:48]wFMCommunicate request_size=4 [18:48:48]MH_SAM_APDU [18:48:48]CAPDU: 80 0D 01 02 [18:48:48]Write to MH i2c: E2 08 00 E8 01 80 0D 01 02 00 00 00 00 62 [18:48:48]Write i2c OK [18:48:48]MH_I2C_Read... [18:48:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:48:48]Read from MH i2c: E2 [18:48:48]MH_I2C_Read... [18:48:48]Read from MH i2c: E2 03 00 [18:48:48]MH_I2C_Read... [18:48:48]Read from MH i2c: E2 03 00 E8 01 00 90 00 5D [18:48:48]RAPDU: 90 00 [18:48:48]wFMCommunicate OK [18:48:48]wFMCommunicate request_size=255 [18:48:48]MH_SAM_APDU [18:48:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 07 01 00 00 F4 03 04 00 90 1D 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C9 84 02 00 35 04 06 00 DA [18:48:48]Write to MH i2c: E2 02 01 E9 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 07 01 00 00 F4 03 04 00 90 1D 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C9 84 02 00 35 04 06 00 DA 00 00 B7 [18:48:48]Write i2c OK [18:48:48]MH_I2C_Read... [18:48:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:48]Read from MH i2c: E2 [18:48:48]MH_I2C_Read... [18:48:48]Read from MH i2c: E2 03 00 [18:48:48]MH_I2C_Read... [18:48:48]Read from MH i2c: E2 03 00 E9 01 00 90 00 5E [18:48:48]RAPDU: 90 00 [18:48:48]wFMCommunicate OK [18:48:48]wFMCommunicate request_size=10 [18:48:48]MH_SAM_APDU [18:48:48]CAPDU: 80 0D 02 02 05 06 F9 80 92 46 [18:48:48]Write to MH i2c: E2 0D 00 EA 01 80 0D 02 02 05 00 06 F9 80 92 46 00 00 C6 [18:48:48]Write i2c OK [18:48:48]MH_I2C_Read... [18:48:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:48]Read from MH i2c: E2 [18:48:48]MH_I2C_Read... [18:48:48]Read from MH i2c: E2 03 00 [18:48:48]MH_I2C_Read... [18:48:48]Read from MH i2c: E2 03 00 EA 01 00 90 00 5F [18:48:48]RAPDU: 90 00 [18:48:48]wFMCommunicate OK [18:48:48]wFMCommunicate request_size=4 [18:48:48]MH_SAM_APDU [18:48:48]CAPDU: 80 0D 03 02 [18:48:48]Write to MH i2c: E2 08 00 EB 01 80 0D 03 02 00 00 00 00 67 [18:48:48]Write i2c OK [18:48:48]MH_I2C_Read... [18:48:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:48:48]Read from MH i2c: E2 [18:48:48]MH_I2C_Read... [18:48:48]Read from MH i2c: E2 0B 00 [18:48:48]MH_I2C_Read... [18:48:48]Read from MH i2c: E2 0B 00 EB 01 00 E7 5A 6B 3F E1 7C 5E 80 90 00 8E [18:48:48]RAPDU: E7 5A 6B 3F E1 7C 5E 80 90 00 [18:48:48]wFMCommunicate OK [18:48:48]SAM_PROTO_SignData done [18:48:48]FM_MakeSignedData done [18:48:48]CreateOFDProtocolMessage [18:48:48]wFMCommunicate request_size=4 [18:48:48]MH_SAM_APDU [18:48:48]CAPDU: 80 11 00 00 [18:48:48]Write to MH i2c: E2 08 00 EC 01 80 11 00 00 00 00 00 00 67 [18:48:48]Write i2c OK [18:48:48]MH_I2C_Read... [18:48:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:48:48]Read from MH i2c: E2 [18:48:48]MH_I2C_Read... [18:48:48]Read from MH i2c: E2 17 00 [18:48:48]MH_I2C_Read... [18:48:48]Read from MH i2c: E2 17 00 EC 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 BD [18:48:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:48:48]wFMCommunicate OK [18:48:48]CreateOFDProtocolMessage done [18:48:48]OFDSenderStorePacket 165065 [18:48:48]StoreOFDPacket docnum=165065 [18:48:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 AF EB 07 01 B8 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 07 01 00 00 F4 03 04 00 90 1D 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C9 84 02 00 35 04 06 00 DA 06 F9 80 92 46 E7 5A 6B 3F E1 7C 5E 80 [18:48:48]CheckFolder [18:48:48]dirname=/storage/ofd_packets [18:48:48]CheckFolder done [18:48:48]ProducePacketName [18:48:48]name=ofd_packets/00165065 [18:48:48]NVStorageSaveData ofd_packets/00165065 [18:48:48]File name is /storage/ofd_packets/00165065 [18:48:48]Write 301 bytes [18:48:48]NVStorageSaveData done [18:48:48]OFDSenderStorePacket done [18:48:48]KKMCreateOFDPacket done [18:48:48]NVStorageSaveData kkm_last_timestamp [18:48:48]File name is /storage/kkm_last_timestamp [18:48:48]Write 4 bytes [18:48:48]NVStorageSaveData done [18:48:48]ExternCall_PrintAddStr [18:48:48]wPrintStart [18:48:48]Write to MH i2c: 01 00 00 ED 01 EE [18:48:48]Write i2c OK [18:48:48]MH_I2C_Read... [18:48:48]Read from MH i2c: 01 [18:48:48]MH_I2C_Read... [18:48:48]Read from MH i2c: 01 07 00 [18:48:48]MH_I2C_Read... [18:48:48]Read from MH i2c: 01 07 00 ED 01 00 00 00 00 00 FF 0F 03 [18:48:48]RasterBufferAndPrint [18:48:48]line Счет N : (1)459168 [18:48:48]line ИНН: 02508201610067 [18:48:48]line Контрольно-Кассовый Чек [18:48:48]line ПРОДАЖА [18:48:48]line ТРК (МРК, ГНК) : 12 [18:48:48]line Товар: 2710124130 [18:48:48]line Аи-92-К-5 [18:48:48]line 10.640 * 65.80 [18:48:48]line = 700.11 [18:48:48]line НДС 12% НСП 1% [18:48:48]line > о реализуемом товаре [18:48:48]line ОКРУГЛЕНИЕ: -0.11 [18:48:48]line ИТОГО: 700.00 [18:48:48]line Внесено: 700.00 [18:48:48]line СДАЧА: 0.00 [18:48:48]line НСП 1% : 6.20 [18:48:48]line НДС 12% : 74.35 [18:48:48]line Наличными: 700.00 [18:48:48]line Безнал.: 0.00 [18:48:48]line Место: АЗС № 72 "Партнер Нефть" [18:48:48]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [18:48:48]line СНО: Общий режим [18:48:48]line Чек 263 14.07.2024 18:48 [18:48:48]line Смена: 447 ФФД: 1.0 [18:48:48]line ЗНМ: 0300000160 [18:48:48]line РНМ: 0000000000090829 [18:48:48]line Версия ККМ: 001 [18:48:48]line ФМ: 0000000000874718 [18:48:48]line ФД: 165065 [18:48:48]line ФПД: 239723490611782 [18:48:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T184848&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165065&fm=239723490611782&tin=02508201610067®Number=0000000000090829&sum=70000 [18:48:48]written 0, free lines is 4095 [18:48:48]OFD Sender: Processing packet 165065 [packets to send 106, broken 105] [18:48:48]ProducePacketName [18:48:48]name=ofd_packets/00165065 [18:48:48]OFD Sender: To server: pG, [18:48:48]CommunicateWithHost lk.salyk.kg:30040 [18:48:48]ConnectInit lk.salyk.kg [18:48:49]Connected sock=10 [18:48:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 AF EB 07 01 B8 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 07 01 00 00 F4 03 04 00 90 1D 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C9 84 02 00 35 04 06 00 DA 06 F9 80 92 46 E7 5A 6B 3F E1 7C 5E 80 [18:48:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 46 7C 47 00 BD 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 38 37 34 37 31 38 10 04 04 00 C9 84 02 00 F4 03 04 00 1C C4 93 66 B6 04 01 00 00 8E 2E 60 27 E6 70 0A 51 [18:48:49]CommunicateWithHost err = 0 [18:48:49]CheckOFDResponse [18:48:49]1017 (14) - 77093643461234 [18:48:49]1041 (16) - 0000000000874718 [18:48:49]1040 (4) - 165065 [18:48:49]1012 (4) - 14.07.2024 12:27 [18:48:49]1206 (1) - 0 [18:48:49]OFD Sender: Remove packet 165065 [18:48:49]ProducePacketName [18:48:49]name=ofd_packets/00165065 [18:48:49]NVStorageDeleteData [18:48:49]Write to MH i2c: 01 00 00 17 02 19 [18:48:49]Write i2c OK [18:48:49]MH_I2C_Read... [18:48:49]Read from MH i2c: 01 [18:48:49]MH_I2C_Read... [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 17 02 00 00 00 00 00 F3 0C 1F [18:48:49]RasterBufferAndPrint [18:48:49]line [18:48:49]line [18:48:49]line [18:48:49]line [18:48:49]line [18:48:49]written 0, free lines is 3322 [18:48:49]MH_Cut [18:48:49]Write to MH i2c: D1 01 00 1E 02 01 F2 [18:48:49]Write i2c OK [18:48:49]MH_I2C_Read... [18:48:49]Read from MH i2c: D1 [18:48:49]MH_I2C_Read... [18:48:49]Read from MH i2c: D1 01 00 [18:48:49]MH_I2C_Read... [18:48:49]Read from MH i2c: D1 01 00 1E 02 00 F1 [18:48:49]Write to MH i2c: 01 00 00 1F 02 21 [18:48:49]Write i2c OK [18:48:49]MH_I2C_Read... [18:48:49]OFD Sender: No OFD packet to send [18:48:50]*** Cut start [18:48:50]*** Partial cut [18:48:50]*** CUTSNS_PIN = 1 [18:48:50]*** CUTSNS_PIN = 0 [18:48:50]*** Brake cut motor [18:48:50]Read from MH i2c: 01 [18:48:50]MH_I2C_Read... [18:48:50]*** Stop cut motor [18:48:50]*** Cut end [18:48:50]Read from MH i2c: 01 07 00 [18:48:50]MH_I2C_Read... [18:48:50]Read from MH i2c: 01 07 00 1F 02 00 00 00 00 00 FF 0F 36 [18:48:50]process_action close_receipt done [18:48:50]requested_data is exist [18:48:50]produce_requested_data [18:48:50]requested_item fm.sn is exist - process it [18:48:50]wFMCommunicate request_size=4 [18:48:50]MH_SAM_APDU [18:48:50]CAPDU: 80 11 00 00 [18:48:50]Write to MH i2c: E2 08 00 20 02 80 11 00 00 00 00 00 00 9C [18:48:50]Write i2c OK [18:48:50]MH_I2C_Read... [18:48:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:48:50]Read from MH i2c: E2 [18:48:50]MH_I2C_Read... [18:48:50]Read from MH i2c: E2 17 00 [18:48:50]MH_I2C_Read... [18:48:50]Read from MH i2c: E2 17 00 20 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F2 [18:48:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:48:50]wFMCommunicate OK [18:48:50]requested_item fd.num is exist - process it [18:48:50]SAM_PROTO_GetFieldsCounters [18:48:50]wFMCommunicate request_size=4 [18:48:50]MH_SAM_APDU [18:48:50]CAPDU: 80 13 00 00 [18:48:50]Write to MH i2c: E2 08 00 21 02 80 13 00 00 00 00 00 00 9F [18:48:50]Write i2c OK [18:48:50]MH_I2C_Read... [18:48:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:48:50]Read from MH i2c: E2 [18:48:50]MH_I2C_Read... [18:48:50]Read from MH i2c: E2 62 00 [18:48:50]MH_I2C_Read... [18:48:50]Read from MH i2c: E2 62 00 21 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C9 84 02 00 0E 04 04 00 BF 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 ED [18:48:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C9 84 02 00 0E 04 04 00 BF 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 [18:48:50]wFMCommunicate OK [18:48:50]SAM_PROTO_GetFieldsCounters done [18:48:50]requested_item shift.num is exist - process it [18:48:50]requested_item shift.opened is exist - process it [18:48:50]req_shift_opened [18:48:50]FM_GetShiftState [18:48:50]SAM_PROTO_GetShiftState [18:48:50]wFMCommunicate request_size=4 [18:48:50]MH_SAM_APDU [18:48:50]CAPDU: 80 13 01 00 [18:48:50]Write to MH i2c: E2 08 00 22 02 80 13 01 00 00 00 00 00 A1 [18:48:50]Write i2c OK [18:48:50]MH_I2C_Read... [18:48:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:48:50]Read from MH i2c: E2 [18:48:50]MH_I2C_Read... [18:48:50]Read from MH i2c: E2 0E 00 [18:48:50]MH_I2C_Read... [18:48:50]Read from MH i2c: E2 0E 00 22 02 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 21 [18:48:50]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [18:48:50]wFMCommunicate OK [18:48:50]SAM_PROTO_GetShiftState done [18:48:50]FM_GetShiftState done [18:48:50]req_shift_opened done [18:48:50]requested_item shift.open_date is exist - process it [18:48:50]req_shift_open_date [18:48:50]req_shift_open_date done [18:48:50]produce_requested_data done [18:48:50]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165065,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [18:48:50]process_action_free close_receipt [18:48:50]json_value_free [18:48:50]json_value_free done [18:48:50]process_json_proto returns [18:48:50]Send response to host [18:48:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165065,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [18:48:50]free response buf [18:48:50]execute_script done [18:48:50]execute_script returns [18:48:50]free content buf [18:48:50]Sock 9.Close socket [18:48:50]Sock 9.Thread stoped [18:48:54]OFD Sender: No OFD packet to send [18:48:59]OFD Sender: No OFD packet to send [18:49:04]OFD Sender: No OFD packet to send [18:49:09]OFD Sender: No OFD packet to send [18:49:14]OFD Sender: No OFD packet to send [18:49:19]OFD Sender: No OFD packet to send [18:49:24]OFD Sender: No OFD packet to send [18:49:29]OFD Sender: No OFD packet to send [18:49:34]OFD Sender: No OFD packet to send [18:49:39]OFD Sender: No OFD packet to send [18:49:44]OFD Sender: No OFD packet to send [18:49:49]OFD Sender: No OFD packet to send [18:49:54]OFD Sender: No OFD packet to send [18:49:59]OFD Sender: No OFD packet to send [18:50:04]OFD Sender: No OFD packet to send [18:50:09]OFD Sender: No OFD packet to send [18:50:14]OFD Sender: No OFD packet to send [18:50:19]OFD Sender: No OFD packet to send [18:50:24]OFD Sender: No OFD packet to send [18:50:29]OFD Sender: No OFD packet to send [18:50:34]OFD Sender: No OFD packet to send [18:50:39]OFD Sender: No OFD packet to send [18:50:44]OFD Sender: No OFD packet to send [18:50:49]OFD Sender: No OFD packet to send [18:50:54]OFD Sender: No OFD packet to send [18:50:59]OFD Sender: No OFD packet to send [18:51:04]OFD Sender: No OFD packet to send [18:51:09]OFD Sender: No OFD packet to send [18:51:14]OFD Sender: No OFD packet to send [18:51:19]OFD Sender: No OFD packet to send [18:51:24]OFD Sender: No OFD packet to send [18:51:29]OFD Sender: No OFD packet to send [18:51:34]OFD Sender: No OFD packet to send [18:51:39]OFD Sender: No OFD packet to send [18:51:44]OFD Sender: No OFD packet to send [18:51:49]OFD Sender: No OFD packet to send [18:51:54]OFD Sender: No OFD packet to send [18:51:59]OFD Sender: No OFD packet to send [18:52:04]OFD Sender: No OFD packet to send [18:52:09]OFD Sender: No OFD packet to send [18:52:15]OFD Sender: No OFD packet to send [18:52:20]OFD Sender: No OFD packet to send [18:52:25]OFD Sender: No OFD packet to send [18:52:30]OFD Sender: No OFD packet to send [18:52:35]OFD Sender: No OFD packet to send [18:52:40]OFD Sender: No OFD packet to send [18:52:45]OFD Sender: No OFD packet to send [18:52:50]OFD Sender: No OFD packet to send [18:52:55]OFD Sender: No OFD packet to send [18:53:00]OFD Sender: No OFD packet to send [18:53:05]OFD Sender: No OFD packet to send [18:53:10]OFD Sender: No OFD packet to send [18:53:15]OFD Sender: No OFD packet to send [18:53:20]OFD Sender: No OFD packet to send [18:53:25]OFD Sender: No OFD packet to send [18:53:30]OFD Sender: No OFD packet to send [18:53:35]OFD Sender: No OFD packet to send [18:53:40]OFD Sender: No OFD packet to send [18:53:45]OFD Sender: No OFD packet to send [18:53:50]OFD Sender: No OFD packet to send [18:53:55]OFD Sender: No OFD packet to send [18:54:00]OFD Sender: No OFD packet to send [18:54:05]OFD Sender: No OFD packet to send [18:54:10]OFD Sender: No OFD packet to send [18:54:15]OFD Sender: No OFD packet to send [18:54:20]OFD Sender: No OFD packet to send [18:54:25]OFD Sender: No OFD packet to send [18:54:30]OFD Sender: No OFD packet to send [18:54:33]accept exits with 7 [18:54:33]New connection [18:54:33]New thread 3066785124 created [18:54:33]Thread 3066928484 joined [18:54:33]Waiting for new connection... [18:54:33] Sock 7.Parse request [18:54:33]Sock 7.Check first char [18:54:33]Sock 7.First char is OK [18:54:33]request: POST /json_proto HTTP/1.0 [18:54:33]Method: POST [18:54:33]URL: /json_proto [18:54:33]Method is POST - this is cgi request [18:54:33]url: /json_proto [18:54:33]query_string will be loaded in cgi processing [18:54:33]execute_cgi json_proto POST (null) [18:54:33]execute_cgi path=json_proto method=POST [18:54:33]POST find Content-Length [18:54:33]Host: 172.17.56.4:8080 [18:54:33]Content-Length: 682 [18:54:33]Content-Type: application/json [18:54:33] [18:54:33]POST finish read [18:54:33]Found Content-Length = 682 [18:54:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459169", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 22.800, "sum" : 1500.24, "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:54:33]execute_script... [18:54: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)459169", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 22.800, "sum" : 1500.24, "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:54:33]POST & json_proto [18:54:33]process_json_proto [18:54:33]json parsed OK: [18:54:33]protocol is kg_v1.0 [18:54:33]action value=close_receipt [18:54:33]process_action close_receipt [18:54:33]cmd_close_receipt [18:54:33]MH_GetDate [18:54:33]Write to MH i2c: F0 00 00 23 02 14 [18:54:33]Write i2c OK [18:54:33]MH_I2C_Read... [18:54:33]Read from MH i2c: F0 [18:54:33]MH_I2C_Read... [18:54:33]Read from MH i2c: F0 09 00 [18:54:33]MH_I2C_Read... [18:54:33]Read from MH i2c: F0 09 00 23 02 00 EA 1E 94 66 C9 DC B2 64 DA [18:54:33]GetLastDocTimeStamp 1720982928 [18:54:33]current date 1720983274 [18:54:33]FM_GetShiftState [18:54:33]SAM_PROTO_GetShiftState [18:54:33]wFMCommunicate request_size=4 [18:54:33]MH_SAM_APDU [18:54:33]CAPDU: 80 13 01 00 [18:54:33]Write to MH i2c: E2 08 00 24 02 80 13 01 00 00 00 00 00 A3 [18:54:33]Write i2c OK [18:54:33]MH_I2C_Read... [18:54:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:33]Read from MH i2c: E2 [18:54:33]MH_I2C_Read... [18:54:33]Read from MH i2c: E2 0E 00 [18:54:33]MH_I2C_Read... [18:54:33]Read from MH i2c: E2 0E 00 24 02 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 23 [18:54:33]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [18:54:33]wFMCommunicate OK [18:54:33]SAM_PROTO_GetShiftState done [18:54:33]FM_GetShiftState done [18:54:33]opened in 1720917342 [18:54:33]opened+sec_in_day 1721003742 [18:54:33]quantity*price = 150024 [18:54:33]sum+1 = 150025 [18:54:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.32 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 264 14.07.2024 18:54 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165066 ФПД: 251983961851255 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T185434&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165066&fm=251983961851255&tin=02508201610067®Number=0000000000090829&sum=150000 [18:54:34]StoreToDocumentArchive [18:54:34]shift 447 fd 165066 [18:54:34]save to /storage/0447/doc_00165066 [18:54:34]save last doc name /storage/0447/doc_00165066 to /storage/kkm_last_doc_name [18:54:34]save OK [18:54:34]Clear old archive folders... [18:54:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:54:34]tlvbuf is 01346CC0 [18:54:34]SAM_PROTO_ClearQueue [18:54:34]wFMCommunicate request_size=4 [18:54:34]MH_SAM_APDU [18:54:34]CAPDU: 80 09 00 00 [18:54:34]Write to MH i2c: E2 08 00 31 02 80 09 00 00 00 00 00 00 A5 [18:54:34]Write i2c OK [18:54:34]MH_I2C_Read... [18:54:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:54:35]Read from MH i2c: E2 [18:54:35]MH_I2C_Read... [18:54:35]Read from MH i2c: E2 03 00 [18:54:35]MH_I2C_Read... [18:54:35]Read from MH i2c: E2 03 00 31 02 00 90 00 A7 [18:54:35]RAPDU: 90 00 [18:54:35]wFMCommunicate OK [18:54:35]SAM_PROTO_ClearQueue done [18:54:35]KKMCreateOFDPacket [18:54:35]OFDProtocolAddRootSTLVToBuf [18:54:35]FM_MakeSignedData [18:54:35]FM_MakeSignedData [18:54:35]SAM_PROTO_SignData [18:54:35]wFMCommunicate request_size=4 [18:54:35]MH_SAM_APDU [18:54:35]CAPDU: 80 0D 01 02 [18:54:35]Write to MH i2c: E2 08 00 32 02 80 0D 01 02 00 00 00 00 AD [18:54:35]Write i2c OK [18:54:35]MH_I2C_Read... [18:54:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:54:35]Read from MH i2c: E2 [18:54:35]MH_I2C_Read... [18:54:35]Read from MH i2c: E2 03 00 [18:54:35]MH_I2C_Read... [18:54:35]Read from MH i2c: E2 03 00 32 02 00 90 00 A8 [18:54:35]RAPDU: 90 00 [18:54:35]wFMCommunicate OK [18:54:35]wFMCommunicate request_size=255 [18:54:35]MH_SAM_APDU [18:54:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 59 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 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 3C 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 08 01 00 00 F4 03 04 00 EA 1E 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CA 84 02 00 35 04 06 00 E5 [18:54:35]Write to MH i2c: E2 02 01 33 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 35 FF 03 08 00 03 10 59 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 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 3C 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 08 01 00 00 F4 03 04 00 EA 1E 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CA 84 02 00 35 04 06 00 E5 00 00 6C [18:54:35]Write i2c OK [18:54:35]MH_I2C_Read... [18:54:35]OFD Sender: No OFD packet to send [18:54:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:35]Read from MH i2c: E2 [18:54:35]MH_I2C_Read... [18:54:35]Read from MH i2c: E2 03 00 [18:54:35]MH_I2C_Read... [18:54:35]Read from MH i2c: E2 03 00 33 02 00 90 00 A9 [18:54:35]RAPDU: 90 00 [18:54:35]wFMCommunicate OK [18:54:35]wFMCommunicate request_size=10 [18:54:35]MH_SAM_APDU [18:54:35]CAPDU: 80 0D 02 02 05 2D 96 89 05 77 [18:54:35]Write to MH i2c: E2 0D 00 34 02 80 0D 02 02 05 00 2D 96 89 05 77 00 00 82 [18:54:35]Write i2c OK [18:54:35]MH_I2C_Read... [18:54:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:35]Read from MH i2c: E2 [18:54:35]MH_I2C_Read... [18:54:35]Read from MH i2c: E2 03 00 [18:54:35]MH_I2C_Read... [18:54:35]Read from MH i2c: E2 03 00 34 02 00 90 00 AA [18:54:35]RAPDU: 90 00 [18:54:35]wFMCommunicate OK [18:54:35]wFMCommunicate request_size=4 [18:54:35]MH_SAM_APDU [18:54:35]CAPDU: 80 0D 03 02 [18:54:35]Write to MH i2c: E2 08 00 35 02 80 0D 03 02 00 00 00 00 B2 [18:54:35]Write i2c OK [18:54:35]MH_I2C_Read... [18:54:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:54:35]Read from MH i2c: E2 [18:54:35]MH_I2C_Read... [18:54:35]Read from MH i2c: E2 0B 00 [18:54:35]MH_I2C_Read... [18:54:35]Read from MH i2c: E2 0B 00 35 02 00 F3 19 BB 37 0C 96 73 0D 90 00 D3 [18:54:35]RAPDU: F3 19 BB 37 0C 96 73 0D 90 00 [18:54:35]wFMCommunicate OK [18:54:35]SAM_PROTO_SignData done [18:54:35]FM_MakeSignedData done [18:54:35]CreateOFDProtocolMessage [18:54:35]wFMCommunicate request_size=4 [18:54:35]MH_SAM_APDU [18:54:35]CAPDU: 80 11 00 00 [18:54:35]Write to MH i2c: E2 08 00 36 02 80 11 00 00 00 00 00 00 B2 [18:54:35]Write i2c OK [18:54:35]MH_I2C_Read... [18:54:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:35]Read from MH i2c: E2 [18:54:35]MH_I2C_Read... [18:54:35]Read from MH i2c: E2 17 00 [18:54:35]MH_I2C_Read... [18:54:35]Read from MH i2c: E2 17 00 36 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 08 [18:54:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:54:35]wFMCommunicate OK [18:54:35]CreateOFDProtocolMessage done [18:54:35]OFDSenderStorePacket 165066 [18:54:35]StoreOFDPacket docnum=165066 [18:54:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 81 99 07 01 FB 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 59 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 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 3C 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 08 01 00 00 F4 03 04 00 EA 1E 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CA 84 02 00 35 04 06 00 E5 2D 96 89 05 77 F3 19 BB 37 0C 96 73 0D [18:54:35]CheckFolder [18:54:35]dirname=/storage/ofd_packets [18:54:35]CheckFolder done [18:54:35]ProducePacketName [18:54:35]name=ofd_packets/00165066 [18:54:35]NVStorageSaveData ofd_packets/00165066 [18:54:35]File name is /storage/ofd_packets/00165066 [18:54:35]Write 301 bytes [18:54:35]NVStorageSaveData done [18:54:35]OFDSenderStorePacket done [18:54:35]KKMCreateOFDPacket done [18:54:35]NVStorageSaveData kkm_last_timestamp [18:54:35]File name is /storage/kkm_last_timestamp [18:54:35]Write 4 bytes [18:54:35]NVStorageSaveData done [18:54:35]ExternCall_PrintAddStr [18:54:35]wPrintStart [18:54:35]Write to MH i2c: 01 00 00 37 02 39 [18:54:35]Write i2c OK [18:54:35]MH_I2C_Read... [18:54:35]Read from MH i2c: 01 [18:54:35]MH_I2C_Read... [18:54:35]Read from MH i2c: 01 07 00 [18:54:35]MH_I2C_Read... [18:54:35]Read from MH i2c: 01 07 00 37 02 00 00 00 00 00 FF 0F 4E [18:54:35]RasterBufferAndPrint [18:54:35]line Счет N : (1)459169 [18:54:35]line ИНН: 02508201610067 [18:54:35]line Контрольно-Кассовый Чек [18:54:35]line ПРОДАЖА [18:54:35]line ТРК (МРК, ГНК) : 22 [18:54:35]line Товар: 2710124130 [18:54:35]line Аи-92-К-5 [18:54:35]line 22.800 * 65.80 [18:54:35]line = 1500.24 [18:54:35]line НДС 12% НСП 1% [18:54:35]line > о реализуемом товаре [18:54:35]line ОКРУГЛЕНИЕ: -0.24 [18:54:35]line ИТОГО: 1500.00 [18:54:35]line Внесено: 1500.00 [18:54:35]line СДАЧА: 0.00 [18:54:35]line НСП 1% : 13.28 [18:54:35]line НДС 12% : 159.32 [18:54:35]line Наличными: 1500.00 [18:54:35]line Безнал.: 0.00 [18:54:35]line Место: АЗС № 72 "Партнер Нефть" [18:54:35]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [18:54:35]line СНО: Общий режим [18:54:35]line Чек 264 14.07.2024 18:54 [18:54:35]line Смена: 447 ФФД: 1.0 [18:54:35]line ЗНМ: 0300000160 [18:54:35]line РНМ: 0000000000090829 [18:54:35]line Версия ККМ: 001 [18:54:35]line ФМ: 0000000000874718 [18:54:35]line ФД: 165066 [18:54:35]line ФПД: 251983961851255 [18:54:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T185434&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165066&fm=251983961851255&tin=02508201610067®Number=0000000000090829&sum=150000 [18:54:35]OFD Sender: Processing packet 165066 [packets to send 106, broken 105] [18:54:35]ProducePacketName [18:54:35]name=ofd_packets/00165066 [18:54:35]OFD Sender: To server: pG, [18:54:35]CommunicateWithHost lk.salyk.kg:30040 [18:54:35]ConnectInit lk.salyk.kg [18:54:35]written 0, free lines is 4095 [18:54:35]Connected sock=10 [18:54:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 81 99 07 01 FB 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 59 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 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 3C 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 08 01 00 00 F4 03 04 00 EA 1E 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CA 84 02 00 35 04 06 00 E5 2D 96 89 05 77 F3 19 BB 37 0C 96 73 0D [18:54:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 44 06 47 00 10 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CA 84 02 00 F4 03 04 00 77 C5 93 66 B6 04 01 00 00 3C E8 02 E8 A9 74 13 7D [18:54:36]CommunicateWithHost err = 0 [18:54:36]CheckOFDResponse [18:54:36]1017 (14) - 77093643461234 [18:54:36]1041 (16) - 0000000000874718 [18:54:36]1040 (4) - 165066 [18:54:36]1012 (4) - 14.07.2024 12:32 [18:54:36]1206 (1) - 0 [18:54:36]OFD Sender: Remove packet 165066 [18:54:36]ProducePacketName [18:54:36]name=ofd_packets/00165066 [18:54:36]NVStorageDeleteData [18:54:36]Write to MH i2c: 01 00 00 61 02 63 [18:54:36]Write i2c OK [18:54:36]MH_I2C_Read... [18:54:36]Read from MH i2c: 01 [18:54:36]MH_I2C_Read... [18:54:36]Read from MH i2c: 01 07 00 [18:54:36]MH_I2C_Read... [18:54:36]Read from MH i2c: 01 07 00 61 02 00 00 00 00 00 FE 0C 74 [18:54:36]RasterBufferAndPrint [18:54:36]line [18:54:36]line [18:54:36]line [18:54:36]line [18:54:36]line [18:54:36]written 0, free lines is 3332 [18:54:36]MH_Cut [18:54:36]Write to MH i2c: D1 01 00 68 02 01 3C [18:54:36]Write i2c OK [18:54:36]MH_I2C_Read... [18:54:36]Read from MH i2c: D1 [18:54:36]MH_I2C_Read... [18:54:36]Read from MH i2c: D1 01 00 [18:54:36]MH_I2C_Read... [18:54:36]Read from MH i2c: D1 01 00 68 02 00 3B [18:54:36]Write to MH i2c: 01 00 00 69 02 6B [18:54:36]Write i2c OK [18:54:36]MH_I2C_Read... [18:54:36]OFD Sender: No OFD packet to send [18:54:36]*** Cut start [18:54:36]*** Partial cut [18:54:36]*** CUTSNS_PIN = 1 [18:54:36]*** CUTSNS_PIN = 0 [18:54:37]*** Brake cut motor [18:54:37]Read from MH i2c: 01 [18:54:37]MH_I2C_Read... [18:54:37]*** Stop cut motor [18:54:37]*** Cut end [18:54:37]Read from MH i2c: 01 07 00 [18:54:37]MH_I2C_Read... [18:54:37]Read from MH i2c: 01 07 00 69 02 00 00 00 00 00 FF 0F 80 [18:54:37]process_action close_receipt done [18:54:37]requested_data is exist [18:54:37]produce_requested_data [18:54:37]requested_item fm.sn is exist - process it [18:54:37]wFMCommunicate request_size=4 [18:54:37]MH_SAM_APDU [18:54:37]CAPDU: 80 11 00 00 [18:54:37]Write to MH i2c: E2 08 00 6A 02 80 11 00 00 00 00 00 00 E6 [18:54:37]Write i2c OK [18:54:37]MH_I2C_Read... [18:54:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:37]Read from MH i2c: E2 [18:54:37]MH_I2C_Read... [18:54:37]Read from MH i2c: E2 17 00 [18:54:37]MH_I2C_Read... [18:54:37]Read from MH i2c: E2 17 00 6A 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 3C [18:54:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:54:37]wFMCommunicate OK [18:54:37]requested_item fd.num is exist - process it [18:54:37]SAM_PROTO_GetFieldsCounters [18:54:37]wFMCommunicate request_size=4 [18:54:37]MH_SAM_APDU [18:54:37]CAPDU: 80 13 00 00 [18:54:37]Write to MH i2c: E2 08 00 6B 02 80 13 00 00 00 00 00 00 E9 [18:54:37]Write i2c OK [18:54:37]MH_I2C_Read... [18:54:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:54:37]Read from MH i2c: E2 [18:54:37]MH_I2C_Read... [18:54:37]Read from MH i2c: E2 62 00 [18:54:37]MH_I2C_Read... [18:54:37]Read from MH i2c: E2 62 00 6B 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 CA 84 02 00 0E 04 04 00 BF 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 3B [18:54:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 CA 84 02 00 0E 04 04 00 BF 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 [18:54:37]wFMCommunicate OK [18:54:37]SAM_PROTO_GetFieldsCounters done [18:54:37]requested_item shift.num is exist - process it [18:54:37]requested_item shift.opened is exist - process it [18:54:37]req_shift_opened [18:54:37]FM_GetShiftState [18:54:37]SAM_PROTO_GetShiftState [18:54:37]wFMCommunicate request_size=4 [18:54:37]MH_SAM_APDU [18:54:37]CAPDU: 80 13 01 00 [18:54:37]Write to MH i2c: E2 08 00 6C 02 80 13 01 00 00 00 00 00 EB [18:54:37]Write i2c OK [18:54:37]MH_I2C_Read... [18:54:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:37]Read from MH i2c: E2 [18:54:37]MH_I2C_Read... [18:54:37]Read from MH i2c: E2 0E 00 [18:54:37]MH_I2C_Read... [18:54:37]Read from MH i2c: E2 0E 00 6C 02 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 6B [18:54:37]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [18:54:37]wFMCommunicate OK [18:54:37]SAM_PROTO_GetShiftState done [18:54:37]FM_GetShiftState done [18:54:37]req_shift_opened done [18:54:37]requested_item shift.open_date is exist - process it [18:54:37]req_shift_open_date [18:54:37]req_shift_open_date done [18:54:37]produce_requested_data done [18:54:37]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165066,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [18:54:37]process_action_free close_receipt [18:54:37]json_value_free [18:54:37]json_value_free done [18:54:37]process_json_proto returns [18:54:37]Send response to host [18:54:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165066,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [18:54:37]free response buf [18:54:37]execute_script done [18:54:37]execute_script returns [18:54:37]free content buf [18:54:37]Sock 7.Close socket [18:54:37]Sock 7.Thread stoped [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:40]accept exits with 9 [18:55:40]New connection [18:55:40]New thread 3066928484 created [18:55:40]Thread 3066785124 joined [18:55:40]Waiting for new connection... [18:55:40] Sock 9.Parse request [18:55:40]Sock 9.Check first char [18:55:40]Sock 9.First char is OK [18:55:40]request: POST /json_proto HTTP/1.0 [18:55:40]Method: POST [18:55:40]URL: /json_proto [18:55:40]Method is POST - this is cgi request [18:55:40]url: /json_proto [18:55:40]query_string will be loaded in cgi processing [18:55:40]execute_cgi json_proto POST (null) [18:55:40]execute_cgi path=json_proto method=POST [18:55:40]POST find Content-Length [18:55:40]Host: 172.17.56.4:8080 [18:55:40]Content-Length: 790 [18:55:40]Content-Type: application/json [18:55:40] [18:55:40]POST finish read [18:55:40]Found Content-Length = 790 [18:55:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459170", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.26, "quantity" : 18.250, "sum" : 1300.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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1300.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:55:40]execute_script... [18:55: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)459170", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.26, "quantity" : 18.250, "sum" : 1300.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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1300.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:55:40]POST & json_proto [18:55:40]process_json_proto [18:55:40]json parsed OK: [18:55:40]protocol is kg_v1.0 [18:55:40]action value=close_receipt [18:55:40]process_action close_receipt [18:55:40]cmd_close_receipt [18:55:40]MH_GetDate [18:55:40]Write to MH i2c: F0 00 00 6D 02 5E [18:55:40]Write i2c OK [18:55:40]MH_I2C_Read... [18:55:40]Read from MH i2c: F0 [18:55:40]MH_I2C_Read... [18:55:40]Read from MH i2c: F0 09 00 [18:55:40]MH_I2C_Read... [18:55:40]Read from MH i2c: F0 09 00 6D 02 00 2D 1F 94 66 C9 DC B2 64 68 [18:55:40]GetLastDocTimeStamp 1720983274 [18:55:40]current date 1720983341 [18:55:40]FM_GetShiftState [18:55:40]SAM_PROTO_GetShiftState [18:55:40]wFMCommunicate request_size=4 [18:55:40]MH_SAM_APDU [18:55:40]CAPDU: 80 13 01 00 [18:55:40]Write to MH i2c: E2 08 00 6E 02 80 13 01 00 00 00 00 00 ED [18:55:40]Write i2c OK [18:55:40]MH_I2C_Read... [18:55:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:55:40]Read from MH i2c: E2 [18:55:40]MH_I2C_Read... [18:55:40]Read from MH i2c: E2 0E 00 [18:55:40]MH_I2C_Read... [18:55:40]Read from MH i2c: E2 0E 00 6E 02 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 6D [18:55:40]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [18:55:40]wFMCommunicate OK [18:55:40]SAM_PROTO_GetShiftState done [18:55:40]FM_GetShiftState done [18:55:40]opened in 1720917342 [18:55:40]opened+sec_in_day 1721003742 [18:55:40]quantity*price = 130049 [18:55:40]sum+1 = 130051 [18:55:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1300.50 НСП 1% : 11.51 НДС 12% : 138.11 Наличными: 0.00 Безнал.: 1300.50 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 265 14.07.2024 18:55 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 165067 ФПД: 219808665094324 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T185541&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165067&fm=219808665094324&tin=02508201610067®Number=0000000000090829&sum=130050 [18:55:41]StoreToDocumentArchive [18:55:41]shift 447 fd 165067 [18:55:41]save to /storage/0447/doc_00165067 [18:55:41]save last doc name /storage/0447/doc_00165067 to /storage/kkm_last_doc_name [18:55:41]save OK [18:55:41]Clear old archive folders... [18:55:41]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:55:41]tlvbuf is 013C1510 [18:55:41]SAM_PROTO_ClearQueue [18:55:41]wFMCommunicate request_size=4 [18:55:41]MH_SAM_APDU [18:55:41]CAPDU: 80 09 00 00 [18:55:41]Write to MH i2c: E2 08 00 7B 02 80 09 00 00 00 00 00 00 EF [18:55:41]Write i2c OK [18:55:41]MH_I2C_Read... [18:55:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:55:41]Read from MH i2c: E2 [18:55:41]MH_I2C_Read... [18:55:41]Read from MH i2c: E2 03 00 [18:55:41]MH_I2C_Read... [18:55:41]Read from MH i2c: E2 03 00 7B 02 00 90 00 F1 [18:55:41]RAPDU: 90 00 [18:55:41]wFMCommunicate OK [18:55:41]SAM_PROTO_ClearQueue done [18:55:41]KKMCreateOFDPacket [18:55:41]OFDProtocolAddRootSTLVToBuf [18:55:41]FM_MakeSignedData [18:55:41]FM_MakeSignedData [18:55:41]SAM_PROTO_SignData [18:55:41]wFMCommunicate request_size=4 [18:55:41]MH_SAM_APDU [18:55:41]CAPDU: 80 0D 01 02 [18:55:41]Write to MH i2c: E2 08 00 7C 02 80 0D 01 02 00 00 00 00 F7 [18:55:41]Write i2c OK [18:55:41]MH_I2C_Read... [18:55:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:55:41]Read from MH i2c: E2 [18:55:41]MH_I2C_Read... [18:55:41]Read from MH i2c: E2 03 00 [18:55:41]MH_I2C_Read... [18:55:41]Read from MH i2c: E2 03 00 7C 02 00 90 00 F2 [18:55:41]RAPDU: 90 00 [18:55:41]wFMCommunicate OK [18:55:41]wFMCommunicate request_size=255 [18:55:41]MH_SAM_APDU [18:55: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 4A 47 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 02 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 02 FC 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 02 FC 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 2D 1F 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CB 84 02 00 35 04 06 00 C7 EA 31 66 [18:55:41]Write to MH i2c: E2 02 01 7D 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 47 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 02 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 02 FC 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 02 FC 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 2D 1F 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CB 84 02 00 35 04 06 00 C7 EA 31 66 00 00 2D [18:55:41]Write i2c OK [18:55:41]MH_I2C_Read... [18:55:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:55:42]Read from MH i2c: E2 [18:55:42]MH_I2C_Read... [18:55:42]Read from MH i2c: E2 03 00 [18:55:42]MH_I2C_Read... [18:55:42]Read from MH i2c: E2 03 00 7D 02 00 90 00 F3 [18:55:42]RAPDU: 90 00 [18:55:42]wFMCommunicate OK [18:55:42]wFMCommunicate request_size=7 [18:55:42]MH_SAM_APDU [18:55:42]CAPDU: 80 0D 02 02 02 C8 B4 [18:55:42]Write to MH i2c: E2 0A 00 7E 02 80 0D 02 02 02 00 C8 B4 00 00 7A [18:55:42]Write i2c OK [18:55:42]MH_I2C_Read... [18:55:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:55:42]Read from MH i2c: E2 [18:55:42]MH_I2C_Read... [18:55:42]Read from MH i2c: E2 03 00 [18:55:42]MH_I2C_Read... [18:55:42]Read from MH i2c: E2 03 00 7E 02 00 90 00 F4 [18:55:42]RAPDU: 90 00 [18:55:42]wFMCommunicate OK [18:55:42]wFMCommunicate request_size=4 [18:55:42]MH_SAM_APDU [18:55:42]CAPDU: 80 0D 03 02 [18:55:42]Write to MH i2c: E2 08 00 7F 02 80 0D 03 02 00 00 00 00 FC [18:55:42]Write i2c OK [18:55:42]MH_I2C_Read... [18:55:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:55:42]Read from MH i2c: E2 [18:55:42]MH_I2C_Read... [18:55:42]Read from MH i2c: E2 0B 00 [18:55:42]MH_I2C_Read... [18:55:42]Read from MH i2c: E2 0B 00 7F 02 00 A6 F1 73 EC A1 75 DE 8C 90 00 73 [18:55:42]RAPDU: A6 F1 73 EC A1 75 DE 8C 90 00 [18:55:42]wFMCommunicate OK [18:55:42]SAM_PROTO_SignData done [18:55:42]FM_MakeSignedData done [18:55:42]CreateOFDProtocolMessage [18:55:42]wFMCommunicate request_size=4 [18:55:42]MH_SAM_APDU [18:55:42]CAPDU: 80 11 00 00 [18:55:42]Write to MH i2c: E2 08 00 80 02 80 11 00 00 00 00 00 00 FC [18:55:42]Write i2c OK [18:55:42]MH_I2C_Read... [18:55:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:55:42]Read from MH i2c: E2 [18:55:42]MH_I2C_Read... [18:55:42]Read from MH i2c: E2 17 00 [18:55:42]MH_I2C_Read... [18:55:42]Read from MH i2c: E2 17 00 80 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 52 [18:55:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:55:42]wFMCommunicate OK [18:55:42]CreateOFDProtocolMessage done [18:55:42]OFDSenderStorePacket 165067 [18:55:42]StoreOFDPacket docnum=165067 [18:55:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 73 1C 04 01 22 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 4A 47 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 02 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 02 FC 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 02 FC 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 2D 1F 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CB 84 02 00 35 04 06 00 C7 EA 31 66 C8 B4 A6 F1 73 EC A1 75 DE 8C [18:55:42]CheckFolder [18:55:42]dirname=/storage/ofd_packets [18:55:42]CheckFolder done [18:55:42]ProducePacketName [18:55:42]name=ofd_packets/00165067 [18:55:42]NVStorageSaveData ofd_packets/00165067 [18:55:42]File name is /storage/ofd_packets/00165067 [18:55:42]Write 298 bytes [18:55:42]NVStorageSaveData done [18:55:42]OFDSenderStorePacket done [18:55:42]KKMCreateOFDPacket done [18:55:42]NVStorageSaveData kkm_last_timestamp [18:55:42]File name is /storage/kkm_last_timestamp [18:55:42]Write 4 bytes [18:55:42]NVStorageSaveData done [18:55:42]ExternCall_PrintAddStr [18:55:42]wPrintStart [18:55:42]Write to MH i2c: 01 00 00 81 02 83 [18:55:42]Write i2c OK [18:55:42]MH_I2C_Read... [18:55:42]Read from MH i2c: 01 [18:55:42]MH_I2C_Read... [18:55:42]Read from MH i2c: 01 07 00 [18:55:42]MH_I2C_Read... [18:55:42]Read from MH i2c: 01 07 00 81 02 00 00 00 00 00 FF 0F 98 [18:55:42]RasterBufferAndPrint [18:55:42]line Счет N : (1)459170 [18:55:42]line ИНН: 02508201610067 [18:55:42]line Контрольно-Кассовый Чек [18:55:42]line ПРОДАЖА [18:55:42]line ТРК (МРК, ГНК) : 11 [18:55:42]line Товар: 2710194210 [18:55:42]line ДТ-К-5 [18:55:42]line 18.250 * 71.26 [18:55:42]line = 1300.50 [18:55:42]line НДС 12% НСП 1% [18:55:42]line > о реализуемом товаре [18:55:42]line ИТОГО: 1300.50 [18:55:42]line НСП 1% : 11.51 [18:55:42]line НДС 12% : 138.11 [18:55:42]line Наличными: 0.00 [18:55:42]line Безнал.: 1300.50 [18:55:42]line Место: АЗС № 72 "Партнер Нефть" [18:55:42]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [18:55:42]line СНО: Общий режим [18:55:42]line Чек 265 14.07.2024 18:55 [18:55:42]line Смена: 447 ФФД: 1.0 [18:55:42]line ЗНМ: 0300000160 [18:55:42]line РНМ: 0000000000090829 [18:55:42]line Версия ККМ: 001 [18:55:42]line Платежная система: KICB Банк [18:55:42]line ФМ: 0000000000874718 [18:55:42]line ФД: 165067 [18:55:42]line ФПД: 219808665094324 [18:55:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T185541&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165067&fm=219808665094324&tin=02508201610067®Number=0000000000090829&sum=130050 [18:55:42]written 0, free lines is 4095 [18:55:42]OFD Sender: Processing packet 165067 [packets to send 106, broken 105] [18:55:42]ProducePacketName [18:55:42]name=ofd_packets/00165067 [18:55:42]OFD Sender: To server: pG, [18:55:42]CommunicateWithHost lk.salyk.kg:30040 [18:55:42]ConnectInit lk.salyk.kg [18:55:42]Connected sock=10 [18:55:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 73 1C 04 01 22 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 4A 47 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 02 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 02 FC 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 02 FC 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 2D 1F 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CB 84 02 00 35 04 06 00 C7 EA 31 66 C8 B4 A6 F1 73 EC A1 75 DE 8C [18:55:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 18 AA 47 00 32 A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CB 84 02 00 F4 03 04 00 BA C5 93 66 B6 04 01 00 00 74 5C 1E D4 A4 F4 F2 78 [18:55:42]CommunicateWithHost err = 0 [18:55:42]CheckOFDResponse [18:55:42]1017 (14) - 77093643461234 [18:55:42]1041 (16) - 0000000000874718 [18:55:42]1040 (4) - 165067 [18:55:42]1012 (4) - 14.07.2024 12:34 [18:55:42]1206 (1) - 0 [18:55:42]OFD Sender: Remove packet 165067 [18:55:42]ProducePacketName [18:55:42]name=ofd_packets/00165067 [18:55:42]NVStorageDeleteData [18:55:42]Write to MH i2c: 01 00 00 AA 02 AC [18:55:42]Write i2c OK [18:55:42]MH_I2C_Read... [18:55:42]Read from MH i2c: 01 [18:55:42]MH_I2C_Read... [18:55:42]Read from MH i2c: 01 07 00 [18:55:42]MH_I2C_Read... [18:55:42]Read from MH i2c: 01 07 00 AA 02 00 00 00 00 00 0A 0D CA [18:55:42]RasterBufferAndPrint [18:55:42]line [18:55:42]line [18:55:42]line [18:55:42]line [18:55:42]line [18:55:42]written 0, free lines is 3344 [18:55:42]MH_Cut [18:55:42]Write to MH i2c: D1 01 00 B1 02 01 85 [18:55:42]Write i2c OK [18:55:42]MH_I2C_Read... [18:55:42]Read from MH i2c: D1 [18:55:42]MH_I2C_Read... [18:55:42]Read from MH i2c: D1 01 00 [18:55:42]MH_I2C_Read... [18:55:42]Read from MH i2c: D1 01 00 B1 02 00 84 [18:55:42]Write to MH i2c: 01 00 00 B2 02 B4 [18:55:42]Write i2c OK [18:55:42]MH_I2C_Read... [18:55:43]OFD Sender: No OFD packet to send [18:55:43]*** Cut start [18:55:43]*** Partial cut [18:55:43]*** CUTSNS_PIN = 1 [18:55:43]*** CUTSNS_PIN = 0 [18:55:43]*** 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:44]*** Cut end [18:55:44]Read from MH i2c: 01 07 00 [18:55:44]MH_I2C_Read... [18:55:44]Read from MH i2c: 01 07 00 B2 02 00 00 00 00 00 FF 0F C9 [18:55:44]process_action close_receipt done [18:55:44]requested_data is exist [18:55:44]produce_requested_data [18:55:44]requested_item fm.sn is exist - process it [18:55:44]wFMCommunicate request_size=4 [18:55:44]MH_SAM_APDU [18:55:44]CAPDU: 80 11 00 00 [18:55:44]Write to MH i2c: E2 08 00 B3 02 80 11 00 00 00 00 00 00 2F [18:55:44]Write i2c OK [18:55:44]MH_I2C_Read... [18:55:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:55:44]Read from MH i2c: E2 [18:55:44]MH_I2C_Read... [18:55:44]Read from MH i2c: E2 17 00 [18:55:44]MH_I2C_Read... [18:55:44]Read from MH i2c: E2 17 00 B3 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 85 [18:55:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:55:44]wFMCommunicate OK [18:55:44]requested_item fd.num is exist - process it [18:55:44]SAM_PROTO_GetFieldsCounters [18:55:44]wFMCommunicate request_size=4 [18:55:44]MH_SAM_APDU [18:55:44]CAPDU: 80 13 00 00 [18:55:44]Write to MH i2c: E2 08 00 B4 02 80 13 00 00 00 00 00 00 32 [18:55:44]Write i2c OK [18:55:44]MH_I2C_Read... [18:55:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:55:44]Read from MH i2c: E2 [18:55:44]MH_I2C_Read... [18:55:44]Read from MH i2c: E2 62 00 [18:55:44]MH_I2C_Read... [18:55:44]Read from MH i2c: E2 62 00 B4 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 CB 84 02 00 0E 04 04 00 BF 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 88 [18:55:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 CB 84 02 00 0E 04 04 00 BF 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 [18:55:44]wFMCommunicate OK [18:55:44]SAM_PROTO_GetFieldsCounters done [18:55:44]requested_item shift.num is exist - process it [18:55:44]requested_item shift.opened is exist - process it [18:55:44]req_shift_opened [18:55:44]FM_GetShiftState [18:55:44]SAM_PROTO_GetShiftState [18:55:44]wFMCommunicate request_size=4 [18:55:44]MH_SAM_APDU [18:55:44]CAPDU: 80 13 01 00 [18:55:44]Write to MH i2c: E2 08 00 B5 02 80 13 01 00 00 00 00 00 34 [18:55:44]Write i2c OK [18:55:44]MH_I2C_Read... [18:55:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:55:44]Read from MH i2c: E2 [18:55:44]MH_I2C_Read... [18:55:44]Read from MH i2c: E2 0E 00 [18:55:44]MH_I2C_Read... [18:55:44]Read from MH i2c: E2 0E 00 B5 02 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 B4 [18:55:44]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [18:55:44]wFMCommunicate OK [18:55:44]SAM_PROTO_GetShiftState done [18:55:44]FM_GetShiftState done [18:55:44]req_shift_opened done [18:55:44]requested_item shift.open_date is exist - process it [18:55:44]req_shift_open_date [18:55:44]req_shift_open_date done [18:55:44]produce_requested_data done [18:55:44]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165067,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [18:55:44]process_action_free close_receipt [18:55:44]json_value_free [18:55:44]json_value_free done [18:55:44]process_json_proto returns [18:55:44]Send response to host [18:55:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165067,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [18:55:44]free response buf [18:55:44]execute_script done [18:55:44]execute_script returns [18:55:44]free content buf [18:55:44]Sock 9.Close socket [18:55:44]Sock 9.Thread stoped [18:55:48]OFD Sender: No OFD packet to send [18:55:53]OFD Sender: No OFD packet to send [18:55:58]OFD Sender: No OFD packet to send [18:56:03]OFD Sender: No OFD packet to send [18:56:08]OFD Sender: No OFD packet to send [18:56:13]OFD Sender: No OFD packet to send [18:56:18]OFD Sender: No OFD packet to send [18:56:23]OFD Sender: No OFD packet to send [18:56:28]OFD Sender: No OFD packet to send [18:56:33]OFD Sender: No OFD packet to send [18:56:38]OFD Sender: No OFD packet to send [18:56:43]OFD Sender: No OFD packet to send [18:56:48]OFD Sender: No OFD packet to send [18:56:53]OFD Sender: No OFD packet to send [18:56:58]OFD Sender: No OFD packet to send [18:57:03]OFD Sender: No OFD packet to send [18:57:08]OFD Sender: No OFD packet to send [18:57:13]OFD Sender: No OFD packet to send [18:57:18]OFD Sender: No OFD packet to send [18:57:23]OFD Sender: No OFD packet to send [18:57:28]OFD Sender: No OFD packet to send [18:57:33]OFD Sender: No OFD packet to send [18:57:38]OFD Sender: No OFD packet to send [18:57:43]OFD Sender: No OFD packet to send [18:57:48]OFD Sender: No OFD packet to send [18:57:53]OFD Sender: No OFD packet to send [18:57:58]OFD Sender: No OFD packet to send [18:58:03]OFD Sender: No OFD packet to send [18:58:08]OFD Sender: No OFD packet to send [18:58:13]OFD Sender: No OFD packet to send [18:58:18]OFD Sender: No OFD packet to send [18:58:23]OFD Sender: No OFD packet to send [18:58:28]OFD Sender: No OFD packet to send [18:58:33]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]accept exits with 7 [18:59:43]New connection [18:59:43]New thread 3066785124 created [18:59:43]Thread 3066928484 joined [18:59:43]Waiting for new connection... [18:59:43] Sock 7.Parse request [18:59:43]Sock 7.Check first char [18:59:43]Sock 7.First char is OK [18:59:43]request: POST /json_proto HTTP/1.0 [18:59:43]Method: POST [18:59:43]URL: /json_proto [18:59:43]Method is POST - this is cgi request [18:59:43]url: /json_proto [18:59:43]query_string will be loaded in cgi processing [18:59:43]execute_cgi json_proto POST (null) [18:59:43]execute_cgi path=json_proto method=POST [18:59:43]POST find Content-Length [18:59:43]Host: 172.17.56.4:8080 [18:59:43]Content-Length: 679 [18:59:43]Content-Type: application/json [18:59:43] [18:59:43]POST finish read [18:59:43]Found Content-Length = 679 [18:59:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459171", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 15.300, "sum" : 1100.07, "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" ] } } [18:59:43]execute_script... [18: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)459171", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 15.300, "sum" : 1100.07, "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" ] } } [18:59:43]POST & json_proto [18:59:43]process_json_proto [18:59:43]json parsed OK: [18:59:43]protocol is kg_v1.0 [18:59:43]action value=close_receipt [18:59:43]process_action close_receipt [18:59:43]cmd_close_receipt [18:59:43]MH_GetDate [18:59:43]Write to MH i2c: F0 00 00 B6 02 A7 [18:59:43]Write i2c OK [18:59:43]MH_I2C_Read... [18:59:43]Read from MH i2c: F0 [18:59:43]MH_I2C_Read... [18:59:43]Read from MH i2c: F0 09 00 [18:59:43]MH_I2C_Read... [18:59:43]Read from MH i2c: F0 09 00 B6 02 00 20 20 94 66 C9 DC B2 64 A5 [18:59:43]GetLastDocTimeStamp 1720983341 [18:59:43]current date 1720983584 [18:59:43]FM_GetShiftState [18:59:43]SAM_PROTO_GetShiftState [18:59:43]wFMCommunicate request_size=4 [18:59:43]MH_SAM_APDU [18:59:43]CAPDU: 80 13 01 00 [18:59:43]Write to MH i2c: E2 08 00 B7 02 80 13 01 00 00 00 00 00 36 [18:59:43]Write i2c OK [18:59:43]MH_I2C_Read... [18:59:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:43]Read from MH i2c: E2 [18:59:43]MH_I2C_Read... [18:59:43]Read from MH i2c: E2 0E 00 [18:59:43]MH_I2C_Read... [18:59:43]Read from MH i2c: E2 0E 00 B7 02 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 B6 [18:59:43]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [18:59:43]wFMCommunicate OK [18:59:43]SAM_PROTO_GetShiftState done [18:59:43]FM_GetShiftState done [18:59:43]opened in 1720917342 [18:59:43]opened+sec_in_day 1721003742 [18:59:43]quantity*price = 110007 [18:59:43]sum+1 = 110008 [18:59:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 1100.00 Внесено: 1100.00 СДАЧА: 0.00 НСП 1% : 9.73 НДС 12% : 116.82 Наличными: 1100.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 266 14.07.2024 18:59 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165068 ФПД: 171525791718969 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T185944&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165068&fm=171525791718969&tin=02508201610067®Number=0000000000090829&sum=110000 [18:59:44]StoreToDocumentArchive [18:59:44]shift 447 fd 165068 [18:59:44]save to /storage/0447/doc_00165068 [18:59:44]save last doc name /storage/0447/doc_00165068 to /storage/kkm_last_doc_name [18:59:44]save OK [18:59:44]Clear old archive folders... [18:59:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:59:44]tlvbuf is 013C2A60 [18:59:44]SAM_PROTO_ClearQueue [18:59:44]wFMCommunicate request_size=4 [18:59:44]MH_SAM_APDU [18:59:44]CAPDU: 80 09 00 00 [18:59:44]Write to MH i2c: E2 08 00 C4 02 80 09 00 00 00 00 00 00 38 [18:59:44]Write i2c OK [18:59:44]MH_I2C_Read... [18:59:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:59:44]Read from MH i2c: E2 [18:59:44]MH_I2C_Read... [18:59:44]Read from MH i2c: E2 03 00 [18:59:44]MH_I2C_Read... [18:59:44]Read from MH i2c: E2 03 00 C4 02 00 90 00 3A [18:59:44]RAPDU: 90 00 [18:59:44]wFMCommunicate OK [18:59:44]SAM_PROTO_ClearQueue done [18:59:44]KKMCreateOFDPacket [18:59:44]OFDProtocolAddRootSTLVToBuf [18:59:44]FM_MakeSignedData [18:59:44]FM_MakeSignedData [18:59:44]SAM_PROTO_SignData [18:59:44]wFMCommunicate request_size=4 [18:59:44]MH_SAM_APDU [18:59:44]CAPDU: 80 0D 01 02 [18:59:44]Write to MH i2c: E2 08 00 C5 02 80 0D 01 02 00 00 00 00 40 [18:59:44]Write i2c OK [18:59:44]MH_I2C_Read... [18:59:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:59:44]Read from MH i2c: E2 [18:59:44]MH_I2C_Read... [18:59:44]Read from MH i2c: E2 03 00 [18:59:44]MH_I2C_Read... [18:59:44]Read from MH i2c: E2 03 00 C5 02 00 90 00 3B [18:59:44]RAPDU: 90 00 [18:59:44]wFMCommunicate OK [18:59:44]wFMCommunicate request_size=255 [18:59:44]MH_SAM_APDU [18:59:44]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B7 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 0A 01 00 00 F4 03 04 00 20 20 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CC 84 02 00 35 04 06 00 9C 00 75 E2 [18:59:44]Write to MH i2c: E2 02 01 C6 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B7 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 0A 01 00 00 F4 03 04 00 20 20 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CC 84 02 00 35 04 06 00 9C 00 75 E2 00 00 DE [18:59:44]Write i2c OK [18:59:44]MH_I2C_Read... [18:59:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:44]Read from MH i2c: E2 [18:59:44]MH_I2C_Read... [18:59:44]Read from MH i2c: E2 03 00 [18:59:44]MH_I2C_Read... [18:59:44]Read from MH i2c: E2 03 00 C6 02 00 90 00 3C [18:59:44]RAPDU: 90 00 [18:59:44]wFMCommunicate OK [18:59:44]wFMCommunicate request_size=7 [18:59:44]MH_SAM_APDU [18:59:44]CAPDU: 80 0D 02 02 02 9E 39 [18:59:44]Write to MH i2c: E2 0A 00 C7 02 80 0D 02 02 02 00 9E 39 00 00 1E [18:59:44]Write i2c OK [18:59:44]MH_I2C_Read... [18:59:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:44]Read from MH i2c: E2 [18:59:44]MH_I2C_Read... [18:59:44]Read from MH i2c: E2 03 00 [18:59:44]MH_I2C_Read... [18:59:44]Read from MH i2c: E2 03 00 C7 02 00 90 00 3D [18:59:44]RAPDU: 90 00 [18:59:44]wFMCommunicate OK [18:59:44]wFMCommunicate request_size=4 [18:59:44]MH_SAM_APDU [18:59:44]CAPDU: 80 0D 03 02 [18:59:44]Write to MH i2c: E2 08 00 C8 02 80 0D 03 02 00 00 00 00 45 [18:59:44]Write i2c OK [18:59:44]MH_I2C_Read... [18:59:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:59:44]Read from MH i2c: E2 [18:59:44]MH_I2C_Read... [18:59:44]Read from MH i2c: E2 0B 00 [18:59:44]MH_I2C_Read... [18:59:44]Read from MH i2c: E2 0B 00 C8 02 00 D8 BD 7B ED B4 D3 9B 02 90 00 67 [18:59:44]RAPDU: D8 BD 7B ED B4 D3 9B 02 90 00 [18:59:44]wFMCommunicate OK [18:59:44]SAM_PROTO_SignData done [18:59:44]FM_MakeSignedData done [18:59:44]CreateOFDProtocolMessage [18:59:44]wFMCommunicate request_size=4 [18:59:44]MH_SAM_APDU [18:59:44]CAPDU: 80 11 00 00 [18:59:44]Write to MH i2c: E2 08 00 C9 02 80 11 00 00 00 00 00 00 45 [18:59:44]Write i2c OK [18:59:44]MH_I2C_Read... [18:59:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:59:44]Read from MH i2c: E2 [18:59:44]MH_I2C_Read... [18:59:44]Read from MH i2c: E2 17 00 [18:59:44]MH_I2C_Read... [18:59:44]Read from MH i2c: E2 17 00 C9 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 9B [18:59:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:59:44]wFMCommunicate OK [18:59:44]CreateOFDProtocolMessage done [18:59:44]OFDSenderStorePacket 165068 [18:59:44]StoreOFDPacket docnum=165068 [18:59:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 73 8F 04 01 D9 04 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B7 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 0A 01 00 00 F4 03 04 00 20 20 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CC 84 02 00 35 04 06 00 9C 00 75 E2 9E 39 D8 BD 7B ED B4 D3 9B 02 [18:59:44]CheckFolder [18:59:44]dirname=/storage/ofd_packets [18:59:44]CheckFolder done [18:59:44]ProducePacketName [18:59:44]name=ofd_packets/00165068 [18:59:44]NVStorageSaveData ofd_packets/00165068 [18:59:44]File name is /storage/ofd_packets/00165068 [18:59:44]Write 298 bytes [18:59:45]NVStorageSaveData done [18:59:45]OFDSenderStorePacket done [18:59:45]KKMCreateOFDPacket done [18:59:45]NVStorageSaveData kkm_last_timestamp [18:59:45]File name is /storage/kkm_last_timestamp [18:59:45]Write 4 bytes [18:59:45]NVStorageSaveData done [18:59:45]ExternCall_PrintAddStr [18:59:45]wPrintStart [18:59:45]Write to MH i2c: 01 00 00 CA 02 CC [18:59:45]Write i2c OK [18:59:45]MH_I2C_Read... [18:59:45]Read from MH i2c: 01 [18:59:45]MH_I2C_Read... [18:59:45]Read from MH i2c: 01 07 00 [18:59:45]MH_I2C_Read... [18:59:45]Read from MH i2c: 01 07 00 CA 02 00 00 00 00 00 FF 0F E1 [18:59:45]RasterBufferAndPrint [18:59:45]line Счет N : (1)459171 [18:59:45]line ИНН: 02508201610067 [18:59:45]line Контрольно-Кассовый Чек [18:59:45]line ПРОДАЖА [18:59:45]line ТРК (МРК, ГНК) : 21 [18:59:45]line Товар: 2710194210 [18:59:45]line ДТ-К-5 [18:59:45]line 15.300 * 71.90 [18:59:45]line = 1100.07 [18:59:45]line НДС 12% НСП 1% [18:59:45]line > о реализуемом товаре [18:59:45]line ОКРУГЛЕНИЕ: -0.07 [18:59:45]line ИТОГО: 1100.00 [18:59:45]line Внесено: 1100.00 [18:59:45]line СДАЧА: 0.00 [18:59:45]line НСП 1% : 9.73 [18:59:45]line НДС 12% : 116.82 [18:59:45]line Наличными: 1100.00 [18:59:45]line Безнал.: 0.00 [18:59:45]line Место: АЗС № 72 "Партнер Нефть" [18:59:45]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [18:59:45]line СНО: Общий режим [18:59:45]line Чек 266 14.07.2024 18:59 [18:59:45]line Смена: 447 ФФД: 1.0 [18:59:45]line ЗНМ: 0300000160 [18:59:45]line РНМ: 0000000000090829 [18:59:45]line Версия ККМ: 001 [18:59:45]line ФМ: 0000000000874718 [18:59:45]line ФД: 165068 [18:59:45]line ФПД: 171525791718969 [18:59:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T185944&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165068&fm=171525791718969&tin=02508201610067®Number=0000000000090829&sum=110000 [18:59:45]OFD Sender: Processing packet 165068 [packets to send 106, broken 105] [18:59:45]ProducePacketName [18:59:45]name=ofd_packets/00165068 [18:59:45]OFD Sender: To server: pG, [18:59:45]CommunicateWithHost lk.salyk.kg:30040 [18:59:45]ConnectInit lk.salyk.kg [18:59:45]written 0, free lines is 4095 [18:59:45]Connected sock=10 [18:59:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 73 8F 04 01 D9 04 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B7 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 0A 01 00 00 F4 03 04 00 20 20 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CC 84 02 00 35 04 06 00 9C 00 75 E2 9E 39 D8 BD 7B ED B4 D3 9B 02 [18:59:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 2E A9 47 00 96 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CC 84 02 00 F4 03 04 00 AD C6 93 66 B6 04 01 00 00 22 92 2C 1A FA AE B2 B3 [18:59:45]CommunicateWithHost err = 0 [18:59:45]CheckOFDResponse [18:59:45]1017 (14) - 77093643461234 [18:59:45]1041 (16) - 0000000000874718 [18:59:45]1040 (4) - 165068 [18:59:45]1012 (4) - 14.07.2024 12:38 [18:59:45]1206 (1) - 0 [18:59:45]OFD Sender: Remove packet 165068 [18:59:45]ProducePacketName [18:59:45]name=ofd_packets/00165068 [18:59:45]NVStorageDeleteData [18:59:45]Write to MH i2c: 01 00 00 F4 02 F6 [18:59:45]Write i2c OK [18:59:45]MH_I2C_Read... [18:59:45]Read from MH i2c: 01 [18:59:45]MH_I2C_Read... [18:59:45]Read from MH i2c: 01 07 00 [18:59:45]MH_I2C_Read... [18:59:45]Read from MH i2c: 01 07 00 F4 02 00 00 00 00 00 FB 0C 04 [18:59:45]RasterBufferAndPrint [18:59:45]line [18:59:45]line [18:59:45]line [18:59:45]line [18:59:45]line [18:59:45]written 0, free lines is 3329 [18:59:45]MH_Cut [18:59:45]Write to MH i2c: D1 01 00 FB 02 01 CF [18:59:45]Write i2c OK [18:59:45]MH_I2C_Read... [18:59:45]Read from MH i2c: D1 [18:59:45]MH_I2C_Read... [18:59:45]Read from MH i2c: D1 01 00 [18:59:45]MH_I2C_Read... [18:59:45]Read from MH i2c: D1 01 00 FB 02 00 CE [18:59:45]Write to MH i2c: 01 00 00 FC 02 FE [18:59:45]Write i2c OK [18:59:45]MH_I2C_Read... [18:59:46]OFD Sender: No OFD packet to send [18:59:46]*** Cut start [18:59:46]*** Partial cut [18:59:46]*** CUTSNS_PIN = 1 [18:59:46]*** CUTSNS_PIN = 0 [18:59:46]*** Brake cut motor [18:59:47]Read from MH i2c: 01 [18:59:47]MH_I2C_Read... [18:59:47]*** Stop cut motor [18:59:47]*** Cut end [18:59:47]Read from MH i2c: 01 07 00 [18:59:47]MH_I2C_Read... [18:59:47]Read from MH i2c: 01 07 00 FC 02 00 00 00 00 00 FF 0F 13 [18:59:47]process_action close_receipt done [18:59:47]requested_data is exist [18:59:47]produce_requested_data [18:59:47]requested_item fm.sn is exist - process it [18:59:47]wFMCommunicate request_size=4 [18:59:47]MH_SAM_APDU [18:59:47]CAPDU: 80 11 00 00 [18:59:47]Write to MH i2c: E2 08 00 FD 02 80 11 00 00 00 00 00 00 79 [18:59:47]Write i2c OK [18:59:47]MH_I2C_Read... [18:59:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:59:47]Read from MH i2c: E2 [18:59:47]MH_I2C_Read... [18:59:47]Read from MH i2c: E2 17 00 [18:59:47]MH_I2C_Read... [18:59:47]Read from MH i2c: E2 17 00 FD 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 CF [18:59:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:59:47]wFMCommunicate OK [18:59:47]requested_item fd.num is exist - process it [18:59:47]SAM_PROTO_GetFieldsCounters [18:59:47]wFMCommunicate request_size=4 [18:59:47]MH_SAM_APDU [18:59:47]CAPDU: 80 13 00 00 [18:59:47]Write to MH i2c: E2 08 00 FE 02 80 13 00 00 00 00 00 00 7C [18:59:47]Write i2c OK [18:59:47]MH_I2C_Read... [18:59:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:59:47]Read from MH i2c: E2 [18:59:47]MH_I2C_Read... [18:59:47]Read from MH i2c: E2 62 00 [18:59:47]MH_I2C_Read... [18:59:47]Read from MH i2c: E2 62 00 FE 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 CC 84 02 00 0E 04 04 00 BF 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 D6 [18:59:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 CC 84 02 00 0E 04 04 00 BF 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 [18:59:47]wFMCommunicate OK [18:59:47]SAM_PROTO_GetFieldsCounters done [18:59:47]requested_item shift.num is exist - process it [18:59:47]requested_item shift.opened is exist - process it [18:59:47]req_shift_opened [18:59:47]FM_GetShiftState [18:59:47]SAM_PROTO_GetShiftState [18:59:47]wFMCommunicate request_size=4 [18:59:47]MH_SAM_APDU [18:59:47]CAPDU: 80 13 01 00 [18:59:47]Write to MH i2c: E2 08 00 FF 02 80 13 01 00 00 00 00 00 7E [18:59:47]Write i2c OK [18:59:47]MH_I2C_Read... [18:59:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:47]Read from MH i2c: E2 [18:59:47]MH_I2C_Read... [18:59:47]Read from MH i2c: E2 0E 00 [18:59:47]MH_I2C_Read... [18:59:47]Read from MH i2c: E2 0E 00 FF 02 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 FE [18:59:47]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [18:59:47]wFMCommunicate OK [18:59:47]SAM_PROTO_GetShiftState done [18:59:47]FM_GetShiftState done [18:59:47]req_shift_opened done [18:59:47]requested_item shift.open_date is exist - process it [18:59:47]req_shift_open_date [18:59:47]req_shift_open_date done [18:59:47]produce_requested_data done [18:59:47]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165068,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [18:59:47]process_action_free close_receipt [18:59:47]json_value_free [18:59:47]json_value_free done [18:59:47]process_json_proto returns [18:59:47]Send response to host [18:59:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165068,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [18:59:47]free response buf [18:59:47]execute_script done [18:59:47]execute_script returns [18:59:47]free content buf [18:59:47]Sock 7.Close socket [18:59:47]Sock 7.Thread stoped [18:59:51]OFD Sender: No OFD packet to send [18:59:56]OFD Sender: No OFD packet to send [19:00:01]OFD Sender: No OFD packet to send [19:00:06]OFD Sender: No OFD packet to send [19:00:11]OFD Sender: No OFD packet to send [19:00:16]OFD Sender: No OFD packet to send [19:00:21]OFD Sender: No OFD packet to send [19:00:26]OFD Sender: No OFD packet to send [19:00:31]OFD Sender: No OFD packet to send [19:00:36]OFD Sender: No OFD packet to send [19:00:41]OFD Sender: No OFD packet to send [19:00:46]OFD Sender: No OFD packet to send [19:00:51]OFD Sender: No OFD packet to send [19:00:56]OFD Sender: No OFD packet to send [19:01:01]OFD Sender: No OFD packet to send [19:01:06]OFD Sender: No OFD packet to send [19:01:11]OFD Sender: No OFD packet to send [19:01:16]OFD Sender: No OFD packet to send [19:01:21]OFD Sender: No OFD packet to send [19:01:26]OFD Sender: No OFD packet to send [19:01:31]OFD Sender: No OFD packet to send [19:01:36]OFD Sender: No OFD packet to send [19:01:41]OFD Sender: No OFD packet to send [19:01:46]OFD Sender: No OFD packet to send [19:01:51]OFD Sender: No OFD packet to send [19:01:56]OFD Sender: No OFD packet to send [19:02:01]OFD Sender: No OFD packet to send [19:02:06]OFD Sender: No OFD packet to send [19:02:11]OFD Sender: No OFD packet to send [19:02:16]OFD Sender: No OFD packet to send [19:02:21]OFD Sender: No OFD packet to send [19:02:26]OFD Sender: No OFD packet to send [19:02:31]OFD Sender: No OFD packet to send [19:02:36]OFD Sender: No OFD packet to send [19:02:41]OFD Sender: No OFD packet to send [19:02:46]OFD Sender: No OFD packet to send [19:02:51]OFD Sender: No OFD packet to send [19:02:56]OFD Sender: No OFD packet to send [19:03:01]OFD Sender: No OFD packet to send [19:03:06]OFD Sender: No OFD packet to send [19:03:11]OFD Sender: No OFD packet to send [19:03:16]OFD Sender: No OFD packet to send [19:03:21]OFD Sender: No OFD packet to send [19:03:26]OFD Sender: No OFD packet to send [19:03:31]OFD Sender: No OFD packet to send [19:03:36]OFD Sender: No OFD packet to send [19:03:41]OFD Sender: No OFD packet to send [19:03:46]OFD Sender: No OFD packet to send [19:03:51]OFD Sender: No OFD packet to send [19:03:56]OFD Sender: No OFD packet to send [19:04:01]OFD Sender: No OFD packet to send [19:04:06]OFD Sender: No OFD packet to send [19:04:11]OFD Sender: No OFD packet to send [19:04:16]OFD Sender: No OFD packet to send [19:04:21]OFD Sender: No OFD packet to send [19:04:26]OFD Sender: No OFD packet to send [19:04:31]OFD Sender: No OFD packet to send [19:04:36]OFD Sender: No OFD packet to send [19:04:41]OFD Sender: No OFD packet to send [19:04:46]OFD Sender: No OFD packet to send [19:04:51]OFD Sender: No OFD packet to send [19:04:56]OFD Sender: No OFD packet to send [19:05:01]OFD Sender: No OFD packet to send [19:05:06]OFD Sender: No OFD packet to send [19:05:11]OFD Sender: No OFD packet to send [19:05:16]OFD Sender: No OFD packet to send [19:05:21]OFD Sender: No OFD packet to send [19:05:26]OFD Sender: No OFD packet to send [19:05:31]OFD Sender: No OFD packet to send [19:05:36]OFD Sender: No OFD packet to send [19:05:41]OFD Sender: No OFD packet to send [19:05:46]OFD Sender: No OFD packet to send [19:05:51]OFD Sender: No OFD packet to send [19:05:56]OFD Sender: No OFD packet to send [19:06:01]OFD Sender: No OFD packet to send [19:06:06]OFD Sender: No OFD packet to send [19:06:11]OFD Sender: No OFD packet to send [19:06:16]OFD Sender: No OFD packet to send [19:06:21]OFD Sender: No OFD packet to send [19:06:26]OFD Sender: No OFD packet to send [19:06:31]OFD Sender: No OFD packet to send [19:06:36]OFD Sender: No OFD packet to send [19:06:41]OFD Sender: No OFD packet to send [19:06:46]OFD Sender: No OFD packet to send [19:06:51]OFD Sender: No OFD packet to send [19:06:56]OFD Sender: No OFD packet to send [19:07:01]OFD Sender: No OFD packet to send [19:07:06]OFD Sender: No OFD packet to send [19:07:11]OFD Sender: No OFD packet to send [19:07:16]OFD Sender: No OFD packet to send [19:07:21]OFD Sender: No OFD packet to send [19:07:26]OFD Sender: No OFD packet to send [19:07:31]OFD Sender: No OFD packet to send [19:07:36]OFD Sender: No OFD packet to send [19:07:41]OFD Sender: No OFD packet to send [19:07:46]OFD Sender: No OFD packet to send [19:07:51]OFD Sender: No OFD packet to send [19:07:56]OFD Sender: No OFD packet to send [19:08:01]OFD Sender: No OFD packet to send [19:08:06]OFD Sender: No OFD packet to send [19:08:11]OFD Sender: No OFD packet to send [19:08:16]OFD Sender: No OFD packet to send [19:08:21]OFD Sender: No OFD packet to send [19:08:26]OFD Sender: No OFD packet to send [19:08:31]OFD Sender: No OFD packet to send [19:08:36]OFD Sender: No OFD packet to send [19:08:41]OFD Sender: No OFD packet to send [19:08:46]OFD Sender: No OFD packet to send [19:08:51]OFD Sender: No OFD packet to send [19:08:56]OFD Sender: No OFD packet to send [19:09:01]OFD Sender: No OFD packet to send [19:09:06]OFD Sender: No OFD packet to send [19:09:11]OFD Sender: No OFD packet to send [19:09:16]OFD Sender: No OFD packet to send [19:09:21]OFD Sender: No OFD packet to send [19:09:26]OFD Sender: No OFD packet to send [19:09:31]OFD Sender: No OFD packet to send [19:09:36]OFD Sender: No OFD packet to send [19:09:41]OFD Sender: No OFD packet to send [19:09:46]OFD Sender: No OFD packet to send [19:09:51]OFD Sender: No OFD packet to send [19:09:56]OFD Sender: No OFD packet to send [19:10:01]OFD Sender: No OFD packet to send [19:10:06]accept exits with 9 [19:10:06]New connection [19:10:06]New thread 3066928484 created [19:10:06]Thread 3066785124 joined [19:10:06]Waiting for new connection... [19:10:06] Sock 9.Parse request [19:10:06]Sock 9.Check first char [19:10:06]Sock 9.First char is OK [19:10:06]request: POST /json_proto HTTP/1.0 [19:10:06]Method: POST [19:10:06]URL: /json_proto [19:10:06]Method is POST - this is cgi request [19:10:06]url: /json_proto [19:10:06]query_string will be loaded in cgi processing [19:10:06]execute_cgi json_proto POST (null) [19:10:06]execute_cgi path=json_proto method=POST [19:10:06]POST find Content-Length [19:10:06]Host: 172.17.56.4:8080 [19:10:06]Content-Length: 677 [19:10:06]Content-Type: application/json [19:10:06] [19:10:06]POST finish read [19:10:06]Found Content-Length = 677 [19:10:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459172", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:10:06]execute_script... [19:10:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459172", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:10:06]POST & json_proto [19:10:06]process_json_proto [19:10:06]json parsed OK: [19:10:06]protocol is kg_v1.0 [19:10:06]action value=close_receipt [19:10:06]process_action close_receipt [19:10:06]cmd_close_receipt [19:10:06]MH_GetDate [19:10:06]Write to MH i2c: F0 00 00 00 03 F2 [19:10:06]Write i2c OK [19:10:06]MH_I2C_Read... [19:10:06]Read from MH i2c: F0 [19:10:06]MH_I2C_Read... [19:10:06]Read from MH i2c: F0 09 00 [19:10:06]MH_I2C_Read... [19:10:06]Read from MH i2c: F0 09 00 00 03 00 8F 22 94 66 C9 DC B2 64 61 [19:10:06]GetLastDocTimeStamp 1720983584 [19:10:06]current date 1720984207 [19:10:06]FM_GetShiftState [19:10:06]SAM_PROTO_GetShiftState [19:10:06]wFMCommunicate request_size=4 [19:10:06]MH_SAM_APDU [19:10:06]CAPDU: 80 13 01 00 [19:10:06]Write to MH i2c: E2 08 00 01 03 80 13 01 00 00 00 00 00 81 [19:10:06]Write i2c OK [19:10:06]MH_I2C_Read... [19:10:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:06]Read from MH i2c: E2 [19:10:06]MH_I2C_Read... [19:10:06]Read from MH i2c: E2 0E 00 [19:10:06]MH_I2C_Read... [19:10:06]Read from MH i2c: E2 0E 00 01 03 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 01 [19:10:06]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [19:10:06]wFMCommunicate OK [19:10:06]SAM_PROTO_GetShiftState done [19:10:06]FM_GetShiftState done [19:10:06]opened in 1720917342 [19:10:06]opened+sec_in_day 1721003742 [19:10:06]quantity*price = 20003 [19:10:06]sum+1 = 20004 [19:10:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 267 14.07.2024 19:10 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165069 ФПД: 91718636078577 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T191007&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165069&fm=91718636078577&tin=02508201610067®Number=0000000000090829&sum=20000 [19:10:07]StoreToDocumentArchive [19:10:07]shift 447 fd 165069 [19:10:07]save to /storage/0447/doc_00165069 [19:10:07]save last doc name /storage/0447/doc_00165069 to /storage/kkm_last_doc_name [19:10:07]save OK [19:10:07]Clear old archive folders... [19:10:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:10:07]tlvbuf is 013C1460 [19:10:07]SAM_PROTO_ClearQueue [19:10:07]wFMCommunicate request_size=4 [19:10:07]MH_SAM_APDU [19:10:07]CAPDU: 80 09 00 00 [19:10:07]Write to MH i2c: E2 08 00 0E 03 80 09 00 00 00 00 00 00 83 [19:10:07]Write i2c OK [19:10:07]MH_I2C_Read... [19:10:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:10:07]Read from MH i2c: E2 [19:10:07]MH_I2C_Read... [19:10:07]Read from MH i2c: E2 03 00 [19:10:07]MH_I2C_Read... [19:10:07]Read from MH i2c: E2 03 00 0E 03 00 90 00 85 [19:10:07]RAPDU: 90 00 [19:10:07]wFMCommunicate OK [19:10:07]SAM_PROTO_ClearQueue done [19:10:07]KKMCreateOFDPacket [19:10:07]OFDProtocolAddRootSTLVToBuf [19:10:07]FM_MakeSignedData [19:10:07]FM_MakeSignedData [19:10:07]SAM_PROTO_SignData [19:10:07]wFMCommunicate request_size=4 [19:10:07]MH_SAM_APDU [19:10:07]CAPDU: 80 0D 01 02 [19:10:07]Write to MH i2c: E2 08 00 0F 03 80 0D 01 02 00 00 00 00 8B [19:10:07]Write i2c OK [19:10:07]MH_I2C_Read... [19:10:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:10:08]Read from MH i2c: E2 [19:10:08]MH_I2C_Read... [19:10:08]Read from MH i2c: E2 03 00 [19:10:08]MH_I2C_Read... [19:10:08]Read from MH i2c: E2 03 00 0F 03 00 90 00 86 [19:10:08]RAPDU: 90 00 [19:10:08]wFMCommunicate OK [19:10:08]wFMCommunicate request_size=255 [19:10:08]MH_SAM_APDU [19:10:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 0B 01 00 00 F4 03 04 00 8F 22 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CD 84 02 00 35 04 06 00 53 [19:10:08]Write to MH i2c: E2 02 01 10 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 0B 01 00 00 F4 03 04 00 8F 22 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CD 84 02 00 35 04 06 00 53 00 00 C2 [19:10:08]Write i2c OK [19:10:08]MH_I2C_Read... [19:10:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:10:08]Read from MH i2c: E2 [19:10:08]MH_I2C_Read... [19:10:08]Read from MH i2c: E2 03 00 [19:10:08]MH_I2C_Read... [19:10:08]Read from MH i2c: E2 03 00 10 03 00 90 00 87 [19:10:08]RAPDU: 90 00 [19:10:08]wFMCommunicate OK [19:10:08]wFMCommunicate request_size=10 [19:10:08]MH_SAM_APDU [19:10:08]CAPDU: 80 0D 02 02 05 6A E8 B9 05 F1 [19:10:08]Write to MH i2c: E2 0D 00 11 03 80 0D 02 02 05 00 6A E8 B9 05 F1 00 00 99 [19:10:08]Write i2c OK [19:10:08]MH_I2C_Read... [19:10:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:10:08]Read from MH i2c: E2 [19:10:08]MH_I2C_Read... [19:10:08]Read from MH i2c: E2 03 00 [19:10:08]MH_I2C_Read... [19:10:08]Read from MH i2c: E2 03 00 11 03 00 90 00 88 [19:10:08]RAPDU: 90 00 [19:10:08]wFMCommunicate OK [19:10:08]wFMCommunicate request_size=4 [19:10:08]MH_SAM_APDU [19:10:08]CAPDU: 80 0D 03 02 [19:10:08]Write to MH i2c: E2 08 00 12 03 80 0D 03 02 00 00 00 00 90 [19:10:08]Write i2c OK [19:10:08]MH_I2C_Read... [19:10:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:10:08]Read from MH i2c: E2 [19:10:08]MH_I2C_Read... [19:10:08]Read from MH i2c: E2 0B 00 [19:10:08]MH_I2C_Read... [19:10:08]Read from MH i2c: E2 0B 00 12 03 00 8C A4 73 CD DE 1A D4 21 90 00 EE [19:10:08]RAPDU: 8C A4 73 CD DE 1A D4 21 90 00 [19:10:08]wFMCommunicate OK [19:10:08]SAM_PROTO_SignData done [19:10:08]FM_MakeSignedData done [19:10:08]CreateOFDProtocolMessage [19:10:08]wFMCommunicate request_size=4 [19:10:08]MH_SAM_APDU [19:10:08]CAPDU: 80 11 00 00 [19:10:08]Write to MH i2c: E2 08 00 13 03 80 11 00 00 00 00 00 00 90 [19:10:08]Write i2c OK [19:10:08]MH_I2C_Read... [19:10:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:08]Read from MH i2c: E2 [19:10:08]MH_I2C_Read... [19:10:08]Read from MH i2c: E2 17 00 [19:10:08]MH_I2C_Read... [19:10:08]Read from MH i2c: E2 17 00 13 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E6 [19:10:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:10:08]wFMCommunicate OK [19:10:08]CreateOFDProtocolMessage done [19:10:08]OFDSenderStorePacket 165069 [19:10:08]StoreOFDPacket docnum=165069 [19:10:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 53 D1 07 01 C8 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 0B 01 00 00 F4 03 04 00 8F 22 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CD 84 02 00 35 04 06 00 53 6A E8 B9 05 F1 8C A4 73 CD DE 1A D4 21 [19:10:08]CheckFolder [19:10:08]dirname=/storage/ofd_packets [19:10:08]CheckFolder done [19:10:08]ProducePacketName [19:10:08]name=ofd_packets/00165069 [19:10:08]NVStorageSaveData ofd_packets/00165069 [19:10:08]File name is /storage/ofd_packets/00165069 [19:10:08]Write 301 bytes [19:10:08]NVStorageSaveData done [19:10:08]OFDSenderStorePacket done [19:10:08]KKMCreateOFDPacket done [19:10:08]NVStorageSaveData kkm_last_timestamp [19:10:08]File name is /storage/kkm_last_timestamp [19:10:08]Write 4 bytes [19:10:08]NVStorageSaveData done [19:10:08]ExternCall_PrintAddStr [19:10:08]wPrintStart [19:10:08]Write to MH i2c: 01 00 00 14 03 17 [19:10:08]Write i2c OK [19:10:08]MH_I2C_Read... [19:10:08]Read from MH i2c: 01 [19:10:08]MH_I2C_Read... [19:10:08]Read from MH i2c: 01 07 00 [19:10:08]MH_I2C_Read... [19:10:08]Read from MH i2c: 01 07 00 14 03 00 00 00 00 00 FF 0F 2C [19:10:08]RasterBufferAndPrint [19:10:08]line Счет N : (1)459172 [19:10:08]line ИНН: 02508201610067 [19:10:08]line Контрольно-Кассовый Чек [19:10:08]line ПРОДАЖА [19:10:08]line ТРК (МРК, ГНК) : 22 [19:10:08]line Товар: 2710124130 [19:10:08]line Аи-92-К-5 [19:10:08]line 3.040 * 65.80 [19:10:08]line = 200.03 [19:10:08]line НДС 12% НСП 1% [19:10:08]line > о реализуемом товаре [19:10:08]line ОКРУГЛЕНИЕ: -0.03 [19:10:08]line ИТОГО: 200.00 [19:10:08]line Внесено: 200.00 [19:10:08]line СДАЧА: 0.00 [19:10:08]line НСП 1% : 1.77 [19:10:08]line НДС 12% : 21.24 [19:10:08]line Наличными: 200.00 [19:10:08]line Безнал.: 0.00 [19:10:08]line Место: АЗС № 72 "Партнер Нефть" [19:10:08]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:10:08]line СНО: Общий режим [19:10:08]line Чек 267 14.07.2024 19:10 [19:10:08]line Смена: 447 ФФД: 1.0 [19:10:08]line ЗНМ: 0300000160 [19:10:08]line РНМ: 0000000000090829 [19:10:08]line Версия ККМ: 001 [19:10:08]line ФМ: 0000000000874718 [19:10:08]line ФД: 165069 [19:10:08]line ФПД: 91718636078577 [19:10:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T191007&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165069&fm=91718636078577&tin=02508201610067®Number=0000000000090829&sum=20000 [19:10:08]OFD Sender: Processing packet 165069 [packets to send 106, broken 105] [19:10:08]ProducePacketName [19:10:08]name=ofd_packets/00165069 [19:10:08]OFD Sender: To server: pG, [19:10:08]CommunicateWithHost lk.salyk.kg:30040 [19:10:08]ConnectInit lk.salyk.kg [19:10:08]written 0, free lines is 4095 [19:10:08]Connected sock=10 [19:10:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 53 D1 07 01 C8 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 0B 01 00 00 F4 03 04 00 8F 22 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CD 84 02 00 35 04 06 00 53 6A E8 B9 05 F1 8C A4 73 CD DE 1A D4 21 [19:10:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 4B C9 47 00 59 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CD 84 02 00 F4 03 04 00 1C C9 93 66 B6 04 01 00 00 A4 F2 85 88 A3 B4 4F DD [19:10:09]CommunicateWithHost err = 0 [19:10:09]CheckOFDResponse [19:10:09]1017 (14) - 77093643461234 [19:10:09]1041 (16) - 0000000000874718 [19:10:09]1040 (4) - 165069 [19:10:09]1012 (4) - 14.07.2024 12:48 [19:10:09]1206 (1) - 0 [19:10:09]OFD Sender: Remove packet 165069 [19:10:09]ProducePacketName [19:10:09]name=ofd_packets/00165069 [19:10:09]NVStorageDeleteData [19:10:09]Write to MH i2c: 01 00 00 3E 03 41 [19:10:09]Write i2c OK [19:10:09]MH_I2C_Read... [19:10:09]Read from MH i2c: 01 [19:10:09]MH_I2C_Read... [19:10:09]Read from MH i2c: 01 07 00 [19:10:09]MH_I2C_Read... [19:10:09]Read from MH i2c: 01 07 00 3E 03 00 00 00 00 00 0C 0D 61 [19:10:09]RasterBufferAndPrint [19:10:09]line [19:10:09]line [19:10:09]line [19:10:09]line [19:10:09]line [19:10:09]written 0, free lines is 3346 [19:10:09]MH_Cut [19:10:09]Write to MH i2c: D1 01 00 45 03 01 1A [19:10:09]Write i2c OK [19:10:09]MH_I2C_Read... [19:10:09]Read from MH i2c: D1 [19:10:09]MH_I2C_Read... [19:10:09]Read from MH i2c: D1 01 00 [19:10:09]MH_I2C_Read... [19:10:09]Read from MH i2c: D1 01 00 45 03 00 19 [19:10:09]Write to MH i2c: 01 00 00 46 03 49 [19:10:09]Write i2c OK [19:10:09]MH_I2C_Read... [19:10:09]OFD Sender: No OFD packet to send [19:10:09]*** Cut start [19:10:09]*** Partial cut [19:10:09]*** CUTSNS_PIN = 1 [19:10:09]*** CUTSNS_PIN = 0 [19:10:10]*** Brake cut motor [19:10:10]Read from MH i2c: 01 [19:10:10]MH_I2C_Read... [19:10:10]*** Stop cut motor [19:10:10]*** Cut end [19:10:10]Read from MH i2c: 01 07 00 [19:10:10]MH_I2C_Read... [19:10:10]Read from MH i2c: 01 07 00 46 03 00 00 00 00 00 FF 0F 5E [19:10:10]process_action close_receipt done [19:10:10]requested_data is exist [19:10:10]produce_requested_data [19:10:10]requested_item fm.sn is exist - process it [19:10:10]wFMCommunicate request_size=4 [19:10:10]MH_SAM_APDU [19:10:10]CAPDU: 80 11 00 00 [19:10:10]Write to MH i2c: E2 08 00 47 03 80 11 00 00 00 00 00 00 C4 [19:10:10]Write i2c OK [19:10:10]MH_I2C_Read... [19:10:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:10]Read from MH i2c: E2 [19:10:10]MH_I2C_Read... [19:10:10]Read from MH i2c: E2 17 00 [19:10:10]MH_I2C_Read... [19:10:10]Read from MH i2c: E2 17 00 47 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 1A [19:10:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:10:10]wFMCommunicate OK [19:10:10]requested_item fd.num is exist - process it [19:10:10]SAM_PROTO_GetFieldsCounters [19:10:10]wFMCommunicate request_size=4 [19:10:10]MH_SAM_APDU [19:10:10]CAPDU: 80 13 00 00 [19:10:10]Write to MH i2c: E2 08 00 48 03 80 13 00 00 00 00 00 00 C7 [19:10:10]Write i2c OK [19:10:10]MH_I2C_Read... [19:10:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:10:10]Read from MH i2c: E2 [19:10:10]MH_I2C_Read... [19:10:10]Read from MH i2c: E2 62 00 [19:10:10]MH_I2C_Read... [19:10:10]Read from MH i2c: E2 62 00 48 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 CD 84 02 00 0E 04 04 00 BF 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 25 [19:10:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 CD 84 02 00 0E 04 04 00 BF 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 [19:10:10]wFMCommunicate OK [19:10:10]SAM_PROTO_GetFieldsCounters done [19:10:10]requested_item shift.num is exist - process it [19:10:10]requested_item shift.opened is exist - process it [19:10:10]req_shift_opened [19:10:10]FM_GetShiftState [19:10:10]SAM_PROTO_GetShiftState [19:10:10]wFMCommunicate request_size=4 [19:10:10]MH_SAM_APDU [19:10:10]CAPDU: 80 13 01 00 [19:10:10]Write to MH i2c: E2 08 00 49 03 80 13 01 00 00 00 00 00 C9 [19:10:10]Write i2c OK [19:10:10]MH_I2C_Read... [19:10:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:10]Read from MH i2c: E2 [19:10:10]MH_I2C_Read... [19:10:10]Read from MH i2c: E2 0E 00 [19:10:10]MH_I2C_Read... [19:10:10]Read from MH i2c: E2 0E 00 49 03 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 49 [19:10:10]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [19:10:10]wFMCommunicate OK [19:10:10]SAM_PROTO_GetShiftState done [19:10:10]FM_GetShiftState done [19:10:10]req_shift_opened done [19:10:10]requested_item shift.open_date is exist - process it [19:10:10]req_shift_open_date [19:10:10]req_shift_open_date done [19:10:10]produce_requested_data done [19:10:10]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165069,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [19:10:10]process_action_free close_receipt [19:10:10]json_value_free [19:10:10]json_value_free done [19:10:10]process_json_proto returns [19:10:10]Send response to host [19:10:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165069,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [19:10:10]free response buf [19:10:10]execute_script done [19:10:10]execute_script returns [19:10:10]free content buf [19:10:10]Sock 9.Close socket [19:10:10]Sock 9.Thread stoped [19:10:14]OFD Sender: No OFD packet to send [19:10:19]OFD Sender: No OFD packet to send [19:10:24]OFD Sender: No OFD packet to send [19:10:29]OFD Sender: No OFD packet to send [19:10:34]OFD Sender: No OFD packet to send [19:10:39]OFD Sender: No OFD packet to send [19:10:44]OFD Sender: No OFD packet to send [19:10:49]OFD Sender: No OFD packet to send [19:10:54]OFD Sender: No OFD packet to send [19:10:59]OFD Sender: No OFD packet to send [19:11:04]OFD Sender: No OFD packet to send [19:11:09]OFD Sender: No OFD packet to send [19:11:14]OFD Sender: No OFD packet to send [19:11:19]OFD Sender: No OFD packet to send [19:11:24]OFD Sender: No OFD packet to send [19:11:29]OFD Sender: No OFD packet to send [19:11:34]OFD Sender: No OFD packet to send [19:11:39]OFD Sender: No OFD packet to send [19:11:44]OFD Sender: No OFD packet to send [19:11:49]OFD Sender: No OFD packet to send [19:11:54]OFD Sender: No OFD packet to send [19:11:59]OFD Sender: No OFD packet to send [19:12:04]OFD Sender: No OFD packet to send [19:12:09]OFD Sender: No OFD packet to send [19:12:14]OFD Sender: No OFD packet to send [19:12:19]OFD Sender: No OFD packet to send [19:12:24]OFD Sender: No OFD packet to send [19:12:29]OFD Sender: No OFD packet to send [19:12:34]OFD Sender: No OFD packet to send [19:12:39]OFD Sender: No OFD packet to send [19:12:44]OFD Sender: No OFD packet to send [19:12:49]OFD Sender: No OFD packet to send [19:12:54]OFD Sender: No OFD packet to send [19:12:59]OFD Sender: No OFD packet to send [19:13:04]OFD Sender: No OFD packet to send [19:13:09]OFD Sender: No OFD packet to send [19:13:14]OFD Sender: No OFD packet to send [19:13:19]OFD Sender: No OFD packet to send [19:13:24]OFD Sender: No OFD packet to send [19:13:29]OFD Sender: No OFD packet to send [19:13:31]accept exits with 7 [19:13:31]New connection [19:13:31]New thread 3066785124 created [19:13:31]Thread 3066928484 joined [19:13:31]Waiting for new connection... [19:13:31] Sock 7.Parse request [19:13:31]Sock 7.Check first char [19:13:31]Sock 7.First char is OK [19:13:31]request: POST /json_proto HTTP/1.0 [19:13:31]Method: POST [19:13:31]URL: /json_proto [19:13:31]Method is POST - this is cgi request [19:13:31]url: /json_proto [19:13:31]query_string will be loaded in cgi processing [19:13:31]execute_cgi json_proto POST (null) [19:13:31]execute_cgi path=json_proto method=POST [19:13:31]POST find Content-Length [19:13:31]Host: 172.17.56.4:8080 [19:13:31]Content-Length: 677 [19:13:31]Content-Type: application/json [19:13:31] [19:13:31]POST finish read [19:13:31]Found Content-Length = 677 [19:13:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459173", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:13:31]execute_script... [19:13: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)459173", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:13:31]POST & json_proto [19:13:31]process_json_proto [19:13:31]json parsed OK: [19:13:31]protocol is kg_v1.0 [19:13:31]action value=close_receipt [19:13:31]process_action close_receipt [19:13:31]cmd_close_receipt [19:13:31]MH_GetDate [19:13:31]Write to MH i2c: F0 00 00 4A 03 3C [19:13:31]Write i2c OK [19:13:31]MH_I2C_Read... [19:13:31]Read from MH i2c: F0 [19:13:31]MH_I2C_Read... [19:13:31]Read from MH i2c: F0 09 00 [19:13:31]MH_I2C_Read... [19:13:31]Read from MH i2c: F0 09 00 4A 03 00 5C 23 94 66 C9 DC B2 64 79 [19:13:31]GetLastDocTimeStamp 1720984207 [19:13:31]current date 1720984412 [19:13:31]FM_GetShiftState [19:13:31]SAM_PROTO_GetShiftState [19:13:31]wFMCommunicate request_size=4 [19:13:31]MH_SAM_APDU [19:13:31]CAPDU: 80 13 01 00 [19:13:31]Write to MH i2c: E2 08 00 4B 03 80 13 01 00 00 00 00 00 CB [19:13:31]Write i2c OK [19:13:31]MH_I2C_Read... [19:13:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:13:31]Read from MH i2c: E2 [19:13:31]MH_I2C_Read... [19:13:31]Read from MH i2c: E2 0E 00 [19:13:31]MH_I2C_Read... [19:13:31]Read from MH i2c: E2 0E 00 4B 03 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 4B [19:13:31]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [19:13:31]wFMCommunicate OK [19:13:31]SAM_PROTO_GetShiftState done [19:13:31]FM_GetShiftState done [19:13:31]opened in 1720917342 [19:13:31]opened+sec_in_day 1721003742 [19:13:31]quantity*price = 50008 [19:13:31]sum+1 = 50009 [19:13:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 268 14.07.2024 19:13 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165070 ФПД: 57046392228232 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T191332&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165070&fm=57046392228232&tin=02508201610067®Number=0000000000090829&sum=50000 [19:13:32]StoreToDocumentArchive [19:13:32]shift 447 fd 165070 [19:13:32]save to /storage/0447/doc_00165070 [19:13:32]save last doc name /storage/0447/doc_00165070 to /storage/kkm_last_doc_name [19:13:32]save OK [19:13:32]Clear old archive folders... [19:13:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:13:32]tlvbuf is 01344E10 [19:13:32]SAM_PROTO_ClearQueue [19:13:32]wFMCommunicate request_size=4 [19:13:32]MH_SAM_APDU [19:13:32]CAPDU: 80 09 00 00 [19:13:32]Write to MH i2c: E2 08 00 58 03 80 09 00 00 00 00 00 00 CD [19:13:32]Write i2c OK [19:13:32]MH_I2C_Read... [19:13:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:13:32]Read from MH i2c: E2 [19:13:32]MH_I2C_Read... [19:13:32]Read from MH i2c: E2 03 00 [19:13:32]MH_I2C_Read... [19:13:32]Read from MH i2c: E2 03 00 58 03 00 90 00 CF [19:13:32]RAPDU: 90 00 [19:13:32]wFMCommunicate OK [19:13:32]SAM_PROTO_ClearQueue done [19:13:32]KKMCreateOFDPacket [19:13:32]OFDProtocolAddRootSTLVToBuf [19:13:32]FM_MakeSignedData [19:13:32]FM_MakeSignedData [19:13:32]SAM_PROTO_SignData [19:13:32]wFMCommunicate request_size=4 [19:13:32]MH_SAM_APDU [19:13:32]CAPDU: 80 0D 01 02 [19:13:32]Write to MH i2c: E2 08 00 59 03 80 0D 01 02 00 00 00 00 D5 [19:13:32]Write i2c OK [19:13:32]MH_I2C_Read... [19:13:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:13:32]Read from MH i2c: E2 [19:13:32]MH_I2C_Read... [19:13:32]Read from MH i2c: E2 03 00 [19:13:32]MH_I2C_Read... [19:13:32]Read from MH i2c: E2 03 00 59 03 00 90 00 D0 [19:13:32]RAPDU: 90 00 [19:13:32]wFMCommunicate OK [19:13:32]wFMCommunicate request_size=255 [19:13:32]MH_SAM_APDU [19:13:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 0C 01 00 00 F4 03 04 00 5C 23 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CE 84 02 00 35 04 06 00 33 [19:13:32]Write to MH i2c: E2 02 01 5A 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 0C 01 00 00 F4 03 04 00 5C 23 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CE 84 02 00 35 04 06 00 33 00 00 1B [19:13:32]Write i2c OK [19:13:32]MH_I2C_Read... [19:13:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:13:33]Read from MH i2c: E2 [19:13:33]MH_I2C_Read... [19:13:33]Read from MH i2c: E2 03 00 [19:13:33]MH_I2C_Read... [19:13:33]Read from MH i2c: E2 03 00 5A 03 00 90 00 D1 [19:13:33]RAPDU: 90 00 [19:13:33]wFMCommunicate OK [19:13:33]wFMCommunicate request_size=10 [19:13:33]MH_SAM_APDU [19:13:33]CAPDU: 80 0D 02 02 05 E2 25 F1 C9 88 [19:13:33]Write to MH i2c: E2 0D 00 5B 03 80 0D 02 02 05 00 E2 25 F1 C9 88 00 00 2B [19:13:33]Write i2c OK [19:13:33]MH_I2C_Read... [19:13:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:13:33]Read from MH i2c: E2 [19:13:33]MH_I2C_Read... [19:13:33]Read from MH i2c: E2 03 00 [19:13:33]MH_I2C_Read... [19:13:33]Read from MH i2c: E2 03 00 5B 03 00 90 00 D2 [19:13:33]RAPDU: 90 00 [19:13:33]wFMCommunicate OK [19:13:33]wFMCommunicate request_size=4 [19:13:33]MH_SAM_APDU [19:13:33]CAPDU: 80 0D 03 02 [19:13:33]Write to MH i2c: E2 08 00 5C 03 80 0D 03 02 00 00 00 00 DA [19:13:33]Write i2c OK [19:13:33]MH_I2C_Read... [19:13:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:13:33]Read from MH i2c: E2 [19:13:33]MH_I2C_Read... [19:13:33]Read from MH i2c: E2 0B 00 [19:13:33]MH_I2C_Read... [19:13:33]Read from MH i2c: E2 0B 00 5C 03 00 0D FB 1D 08 41 A1 9A 6B 90 00 EF [19:13:33]RAPDU: 0D FB 1D 08 41 A1 9A 6B 90 00 [19:13:33]wFMCommunicate OK [19:13:33]SAM_PROTO_SignData done [19:13:33]FM_MakeSignedData done [19:13:33]CreateOFDProtocolMessage [19:13:33]wFMCommunicate request_size=4 [19:13:33]MH_SAM_APDU [19:13:33]CAPDU: 80 11 00 00 [19:13:33]Write to MH i2c: E2 08 00 5D 03 80 11 00 00 00 00 00 00 DA [19:13:33]Write i2c OK [19:13:33]MH_I2C_Read... [19:13:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:13:33]Read from MH i2c: E2 [19:13:33]MH_I2C_Read... [19:13:33]Read from MH i2c: E2 17 00 [19:13:33]MH_I2C_Read... [19:13:33]Read from MH i2c: E2 17 00 5D 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 30 [19:13:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:13:33]wFMCommunicate OK [19:13:33]CreateOFDProtocolMessage done [19:13:33]OFDSenderStorePacket 165070 [19:13:33]StoreOFDPacket docnum=165070 [19:13:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 6A 88 07 01 B8 F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 0C 01 00 00 F4 03 04 00 5C 23 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CE 84 02 00 35 04 06 00 33 E2 25 F1 C9 88 0D FB 1D 08 41 A1 9A 6B [19:13:33]CheckFolder [19:13:33]dirname=/storage/ofd_packets [19:13:33]CheckFolder done [19:13:33]ProducePacketName [19:13:33]name=ofd_packets/00165070 [19:13:33]NVStorageSaveData ofd_packets/00165070 [19:13:33]File name is /storage/ofd_packets/00165070 [19:13:33]Write 301 bytes [19:13:33]NVStorageSaveData done [19:13:33]OFDSenderStorePacket done [19:13:33]KKMCreateOFDPacket done [19:13:33]NVStorageSaveData kkm_last_timestamp [19:13:33]File name is /storage/kkm_last_timestamp [19:13:33]Write 4 bytes [19:13:33]NVStorageSaveData done [19:13:33]OFD Sender: Processing packet 165070 [packets to send 106, broken 105] [19:13:33]ProducePacketName [19:13:33]name=ofd_packets/00165070 [19:13:33]OFD Sender: To server: pG, [19:13:33]CommunicateWithHost lk.salyk.kg:30040 [19:13:33]ConnectInit lk.salyk.kg [19:13:33]ExternCall_PrintAddStr [19:13:33]wPrintStart [19:13:33]Write to MH i2c: 01 00 00 5E 03 61 [19:13:33]Write i2c OK [19:13:33]MH_I2C_Read... [19:13:33]Read from MH i2c: 01 [19:13:33]MH_I2C_Read... [19:13:33]Read from MH i2c: 01 07 00 [19:13:33]MH_I2C_Read... [19:13:33]Read from MH i2c: 01 07 00 5E 03 00 00 00 00 00 FF 0F 76 [19:13:33]RasterBufferAndPrint [19:13:33]line Счет N : (1)459173 [19:13:33]line ИНН: 02508201610067 [19:13:33]line Контрольно-Кассовый Чек [19:13:33]line ПРОДАЖА [19:13:33]line ТРК (МРК, ГНК) : 12 [19:13:33]line Товар: 2710124130 [19:13:33]line Аи-92-К-5 [19:13:33]line 7.600 * 65.80 [19:13:33]line = 500.08 [19:13:33]line НДС 12% НСП 1% [19:13:33]line > о реализуемом товаре [19:13:33]line ОКРУГЛЕНИЕ: -0.08 [19:13:33]line ИТОГО: 500.00 [19:13:33]line Внесено: 500.00 [19:13:33]line СДАЧА: 0.00 [19:13:33]line НСП 1% : 4.42 [19:13:33]line НДС 12% : 53.11 [19:13:33]line Наличными: 500.00 [19:13:33]line Безнал.: 0.00 [19:13:33]line Место: АЗС № 72 "Партнер Нефть" [19:13:33]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:13:33]line СНО: Общий режим [19:13:33]line Чек 268 14.07.2024 19:13 [19:13:33]line Смена: 447 ФФД: 1.0 [19:13:33]line ЗНМ: 0300000160 [19:13:33]line РНМ: 0000000000090829 [19:13:33]line Версия ККМ: 001 [19:13:33]line ФМ: 0000000000874718 [19:13:33]line ФД: 165070 [19:13:33]line ФПД: 57046392228232 [19:13:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T191332&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165070&fm=57046392228232&tin=02508201610067®Number=0000000000090829&sum=50000 [19:13:33]Connected sock=11 [19:13:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 6A 88 07 01 B8 F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 0C 01 00 00 F4 03 04 00 5C 23 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CE 84 02 00 35 04 06 00 33 E2 25 F1 C9 88 0D FB 1D 08 41 A1 9A 6B [19:13:33]written 0, free lines is 4095 [19:13:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 B2 AF 47 00 77 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 38 37 34 37 31 38 10 04 04 00 CE 84 02 00 F4 03 04 00 E9 C9 93 66 B6 04 01 00 00 6E 1E 42 A3 75 5A B6 4F [19:13:33]CommunicateWithHost err = 0 [19:13:33]CheckOFDResponse [19:13:33]1017 (14) - 77093643461234 [19:13:33]1041 (16) - 0000000000874718 [19:13:33]1040 (4) - 165070 [19:13:33]1012 (4) - 14.07.2024 12:51 [19:13:33]1206 (1) - 0 [19:13:33]OFD Sender: Remove packet 165070 [19:13:33]ProducePacketName [19:13:33]name=ofd_packets/00165070 [19:13:33]NVStorageDeleteData [19:13:34]Write to MH i2c: 01 00 00 88 03 8B [19:13:34]Write i2c OK [19:13:34]MH_I2C_Read... [19:13:34]Read from MH i2c: 01 [19:13:34]MH_I2C_Read... [19:13:34]Read from MH i2c: 01 07 00 [19:13:34]MH_I2C_Read... [19:13:34]Read from MH i2c: 01 07 00 88 03 00 00 00 00 00 F7 0C 95 [19:13:34]RasterBufferAndPrint [19:13:34]line [19:13:34]line [19:13:34]line [19:13:34]line [19:13:34]line [19:13:34]written 0, free lines is 3326 [19:13:34]MH_Cut [19:13:34]Write to MH i2c: D1 01 00 8F 03 01 64 [19:13:34]Write i2c OK [19:13:34]MH_I2C_Read... [19:13:34]Read from MH i2c: D1 [19:13:34]MH_I2C_Read... [19:13:34]Read from MH i2c: D1 01 00 [19:13:34]MH_I2C_Read... [19:13:34]Read from MH i2c: D1 01 00 8F 03 00 63 [19:13:34]Write to MH i2c: 01 00 00 90 03 93 [19:13:34]Write i2c OK [19:13:34]MH_I2C_Read... [19:13:34]OFD Sender: No OFD packet to send [19:13:34]*** Cut start [19:13:34]*** Partial cut [19:13:34]*** CUTSNS_PIN = 1 [19:13:34]*** CUTSNS_PIN = 0 [19:13:35]*** Brake cut motor [19:13:35]Read from MH i2c: 01 [19:13:35]MH_I2C_Read... [19:13:35]*** Stop cut motor [19:13:35]*** Cut end [19:13:35]Read from MH i2c: 01 07 00 [19:13:35]MH_I2C_Read... [19:13:35]Read from MH i2c: 01 07 00 90 03 00 00 00 00 00 FF 0F A8 [19:13:35]process_action close_receipt done [19:13:35]requested_data is exist [19:13:35]produce_requested_data [19:13:35]requested_item fm.sn is exist - process it [19:13:35]wFMCommunicate request_size=4 [19:13:35]MH_SAM_APDU [19:13:35]CAPDU: 80 11 00 00 [19:13:35]Write to MH i2c: E2 08 00 91 03 80 11 00 00 00 00 00 00 0E [19:13:35]Write i2c OK [19:13:35]MH_I2C_Read... [19:13:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:13:35]Read from MH i2c: E2 [19:13:35]MH_I2C_Read... [19:13:35]Read from MH i2c: E2 17 00 [19:13:35]MH_I2C_Read... [19:13:35]Read from MH i2c: E2 17 00 91 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 64 [19:13:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:13:35]wFMCommunicate OK [19:13:35]requested_item fd.num is exist - process it [19:13:35]SAM_PROTO_GetFieldsCounters [19:13:35]wFMCommunicate request_size=4 [19:13:35]MH_SAM_APDU [19:13:35]CAPDU: 80 13 00 00 [19:13:35]Write to MH i2c: E2 08 00 92 03 80 13 00 00 00 00 00 00 11 [19:13:35]Write i2c OK [19:13:35]MH_I2C_Read... [19:13:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:13:35]Read from MH i2c: E2 [19:13:35]MH_I2C_Read... [19:13:35]Read from MH i2c: E2 62 00 [19:13:35]MH_I2C_Read... [19:13:35]Read from MH i2c: E2 62 00 92 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 CE 84 02 00 0E 04 04 00 BF 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 73 [19:13:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 CE 84 02 00 0E 04 04 00 BF 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 [19:13:35]wFMCommunicate OK [19:13:35]SAM_PROTO_GetFieldsCounters done [19:13:35]requested_item shift.num is exist - process it [19:13:35]requested_item shift.opened is exist - process it [19:13:35]req_shift_opened [19:13:35]FM_GetShiftState [19:13:35]SAM_PROTO_GetShiftState [19:13:35]wFMCommunicate request_size=4 [19:13:35]MH_SAM_APDU [19:13:35]CAPDU: 80 13 01 00 [19:13:35]Write to MH i2c: E2 08 00 93 03 80 13 01 00 00 00 00 00 13 [19:13:35]Write i2c OK [19:13:35]MH_I2C_Read... [19:13:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:13:35]Read from MH i2c: E2 [19:13:35]MH_I2C_Read... [19:13:35]Read from MH i2c: E2 0E 00 [19:13:35]MH_I2C_Read... [19:13:35]Read from MH i2c: E2 0E 00 93 03 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 93 [19:13:35]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [19:13:35]wFMCommunicate OK [19:13:35]SAM_PROTO_GetShiftState done [19:13:35]FM_GetShiftState done [19:13:35]req_shift_opened done [19:13:35]requested_item shift.open_date is exist - process it [19:13:35]req_shift_open_date [19:13:35]req_shift_open_date done [19:13:35]produce_requested_data done [19:13:35]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165070,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [19:13:35]process_action_free close_receipt [19:13:35]json_value_free [19:13:35]json_value_free done [19:13:35]process_json_proto returns [19:13:35]Send response to host [19:13:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165070,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [19:13:35]free response buf [19:13:35]execute_script done [19:13:35]execute_script returns [19:13:35]free content buf [19:13:35]Sock 7.Close socket [19:13:35]Sock 7.Thread stoped [19:13:39]OFD Sender: No OFD packet to send [19:13:44]OFD Sender: No OFD packet to send [19:13:49]OFD Sender: No OFD packet to send [19:13:54]OFD Sender: No OFD packet to send [19:13:59]OFD Sender: No OFD packet to send [19:14:04]OFD Sender: No OFD packet to send [19:14:09]OFD Sender: No OFD packet to send [19:14:14]OFD Sender: No OFD packet to send [19:14:19]OFD Sender: No OFD packet to send [19:14:24]OFD Sender: No OFD packet to send [19:14:29]OFD Sender: No OFD packet to send [19:14:34]OFD Sender: No OFD packet to send [19:14:39]OFD Sender: No OFD packet to send [19:14:43]accept exits with 9 [19:14:43]New connection [19:14:43]New thread 3066928484 created [19:14:43]Thread 3066785124 joined [19:14:43]Waiting for new connection... [19:14:43] Sock 9.Parse request [19:14:43]Sock 9.Check first char [19:14:43]Sock 9.First char is OK [19:14:43]request: POST /json_proto HTTP/1.0 [19:14:43]Method: POST [19:14:43]URL: /json_proto [19:14:43]Method is POST - this is cgi request [19:14:43]url: /json_proto [19:14:43]query_string will be loaded in cgi processing [19:14:43]execute_cgi json_proto POST (null) [19:14:43]execute_cgi path=json_proto method=POST [19:14:43]POST find Content-Length [19:14:43]Host: 172.17.56.4:8080 [19:14:43]Content-Length: 677 [19:14:43]Content-Type: application/json [19:14:43] [19:14:43]POST finish read [19:14:43]Found Content-Length = 677 [19:14:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459174", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.870, "sum" : 320.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:14:43]execute_script... [19:14: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)459174", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.870, "sum" : 320.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:14:43]POST & json_proto [19:14:43]process_json_proto [19:14:43]json parsed OK: [19:14:43]protocol is kg_v1.0 [19:14:43]action value=close_receipt [19:14:43]process_action close_receipt [19:14:43]cmd_close_receipt [19:14:43]MH_GetDate [19:14:43]Write to MH i2c: F0 00 00 94 03 86 [19:14:43]Write i2c OK [19:14:43]MH_I2C_Read... [19:14:43]Read from MH i2c: F0 [19:14:43]MH_I2C_Read... [19:14:43]Read from MH i2c: F0 09 00 [19:14:43]MH_I2C_Read... [19:14:43]Read from MH i2c: F0 09 00 94 03 00 A4 23 94 66 C9 DC B2 64 0B [19:14:43]GetLastDocTimeStamp 1720984412 [19:14:43]current date 1720984484 [19:14:43]FM_GetShiftState [19:14:43]SAM_PROTO_GetShiftState [19:14:43]wFMCommunicate request_size=4 [19:14:43]MH_SAM_APDU [19:14:43]CAPDU: 80 13 01 00 [19:14:43]Write to MH i2c: E2 08 00 95 03 80 13 01 00 00 00 00 00 15 [19:14:43]Write i2c OK [19:14:43]MH_I2C_Read... [19:14:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:14:43]Read from MH i2c: E2 [19:14:43]MH_I2C_Read... [19:14:43]Read from MH i2c: E2 0E 00 [19:14:43]MH_I2C_Read... [19:14:43]Read from MH i2c: E2 0E 00 95 03 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 95 [19:14:43]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [19:14:43]wFMCommunicate OK [19:14:43]SAM_PROTO_GetShiftState done [19:14:43]FM_GetShiftState done [19:14:43]opened in 1720917342 [19:14:43]opened+sec_in_day 1721003742 [19:14:43]quantity*price = 32044 [19:14:43]sum+1 = 32046 [19:14:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 320.00 Внесено: 320.00 СДАЧА: 0.00 НСП 1% : 2.84 НДС 12% : 34.03 Наличными: 320.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 269 14.07.2024 19:14 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165071 ФПД: 125421329804976 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T191444&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165071&fm=125421329804976&tin=02508201610067®Number=0000000000090829&sum=32000 [19:14:44]StoreToDocumentArchive [19:14:44]shift 447 fd 165071 [19:14:44]save to /storage/0447/doc_00165071 [19:14:44]save last doc name /storage/0447/doc_00165071 to /storage/kkm_last_doc_name [19:14:44]save OK [19:14:44]Clear old archive folders... [19:14:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:14:44]tlvbuf is 01329080 [19:14:44]SAM_PROTO_ClearQueue [19:14:44]wFMCommunicate request_size=4 [19:14:44]MH_SAM_APDU [19:14:44]CAPDU: 80 09 00 00 [19:14:44]Write to MH i2c: E2 08 00 A2 03 80 09 00 00 00 00 00 00 17 [19:14:44]Write i2c OK [19:14:44]MH_I2C_Read... [19:14:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:14:44]Read from MH i2c: E2 [19:14:44]MH_I2C_Read... [19:14:44]Read from MH i2c: E2 03 00 [19:14:44]MH_I2C_Read... [19:14:44]Read from MH i2c: E2 03 00 A2 03 00 90 00 19 [19:14:44]RAPDU: 90 00 [19:14:44]wFMCommunicate OK [19:14:44]SAM_PROTO_ClearQueue done [19:14:44]KKMCreateOFDPacket [19:14:44]OFDProtocolAddRootSTLVToBuf [19:14:44]FM_MakeSignedData [19:14:44]FM_MakeSignedData [19:14:44]SAM_PROTO_SignData [19:14:44]wFMCommunicate request_size=4 [19:14:44]MH_SAM_APDU [19:14:44]CAPDU: 80 0D 01 02 [19:14:44]Write to MH i2c: E2 08 00 A3 03 80 0D 01 02 00 00 00 00 1F [19:14:44]Write i2c OK [19:14:44]MH_I2C_Read... [19:14:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:14:44]Read from MH i2c: E2 [19:14:44]MH_I2C_Read... [19:14:44]Read from MH i2c: E2 03 00 [19:14:44]MH_I2C_Read... [19:14:44]Read from MH i2c: E2 03 00 A3 03 00 90 00 1A [19:14:44]RAPDU: 90 00 [19:14:44]wFMCommunicate OK [19:14:44]wFMCommunicate request_size=255 [19:14:44]MH_SAM_APDU [19:14:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 A4 23 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CF 84 02 00 35 04 06 00 72 [19:14:44]Write to MH i2c: E2 02 01 A4 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 A4 23 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CF 84 02 00 35 04 06 00 72 00 00 84 [19:14:44]Write i2c OK [19:14:44]MH_I2C_Read... [19:14:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:14:45]Read from MH i2c: E2 [19:14:45]MH_I2C_Read... [19:14:45]Read from MH i2c: E2 03 00 [19:14:45]MH_I2C_Read... [19:14:45]Read from MH i2c: E2 03 00 A4 03 00 90 00 1B [19:14:45]RAPDU: 90 00 [19:14:45]wFMCommunicate OK [19:14:45]wFMCommunicate request_size=10 [19:14:45]MH_SAM_APDU [19:14:45]CAPDU: 80 0D 02 02 05 11 ED CF 6E B0 [19:14:45]Write to MH i2c: E2 0D 00 A5 03 80 0D 02 02 05 00 11 ED CF 6E B0 00 00 17 [19:14:45]Write i2c OK [19:14:45]MH_I2C_Read... [19:14:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:14:45]Read from MH i2c: E2 [19:14:45]MH_I2C_Read... [19:14:45]Read from MH i2c: E2 03 00 [19:14:45]MH_I2C_Read... [19:14:45]Read from MH i2c: E2 03 00 A5 03 00 90 00 1C [19:14:45]RAPDU: 90 00 [19:14:45]wFMCommunicate OK [19:14:45]wFMCommunicate request_size=4 [19:14:45]MH_SAM_APDU [19:14:45]CAPDU: 80 0D 03 02 [19:14:45]Write to MH i2c: E2 08 00 A6 03 80 0D 03 02 00 00 00 00 24 [19:14:45]Write i2c OK [19:14:45]MH_I2C_Read... [19:14:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:14:45]Read from MH i2c: E2 [19:14:45]MH_I2C_Read... [19:14:45]Read from MH i2c: E2 0B 00 [19:14:45]MH_I2C_Read... [19:14:45]Read from MH i2c: E2 0B 00 A6 03 00 6B A3 DA 65 70 45 40 46 90 00 AD [19:14:45]RAPDU: 6B A3 DA 65 70 45 40 46 90 00 [19:14:45]wFMCommunicate OK [19:14:45]SAM_PROTO_SignData done [19:14:45]FM_MakeSignedData done [19:14:45]CreateOFDProtocolMessage [19:14:45]wFMCommunicate request_size=4 [19:14:45]MH_SAM_APDU [19:14:45]CAPDU: 80 11 00 00 [19:14:45]Write to MH i2c: E2 08 00 A7 03 80 11 00 00 00 00 00 00 24 [19:14:45]Write i2c OK [19:14:45]MH_I2C_Read... [19:14:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:14:45]Read from MH i2c: E2 [19:14:45]MH_I2C_Read... [19:14:45]Read from MH i2c: E2 17 00 [19:14:45]MH_I2C_Read... [19:14:45]Read from MH i2c: E2 17 00 A7 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 7A [19:14:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:14:45]wFMCommunicate OK [19:14:45]CreateOFDProtocolMessage done [19:14:45]OFDSenderStorePacket 165071 [19:14:45]StoreOFDPacket docnum=165071 [19:14:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 9D 08 07 01 BF 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 A4 23 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CF 84 02 00 35 04 06 00 72 11 ED CF 6E B0 6B A3 DA 65 70 45 40 46 [19:14:45]CheckFolder [19:14:45]dirname=/storage/ofd_packets [19:14:45]CheckFolder done [19:14:45]ProducePacketName [19:14:45]name=ofd_packets/00165071 [19:14:45]NVStorageSaveData ofd_packets/00165071 [19:14:45]File name is /storage/ofd_packets/00165071 [19:14:45]Write 301 bytes [19:14:45]NVStorageSaveData done [19:14:45]OFDSenderStorePacket done [19:14:45]KKMCreateOFDPacket done [19:14:45]NVStorageSaveData kkm_last_timestamp [19:14:45]File name is /storage/kkm_last_timestamp [19:14:45]Write 4 bytes [19:14:45]NVStorageSaveData done [19:14:45]ExternCall_PrintAddStr [19:14:45]wPrintStart [19:14:45]Write to MH i2c: 01 00 00 A8 03 AB [19:14:45]Write i2c OK [19:14:45]MH_I2C_Read... [19:14:45]Read from MH i2c: 01 [19:14:45]MH_I2C_Read... [19:14:45]Read from MH i2c: 01 07 00 [19:14:45]MH_I2C_Read... [19:14:45]Read from MH i2c: 01 07 00 A8 03 00 00 00 00 00 FF 0F C0 [19:14:45]RasterBufferAndPrint [19:14:45]line Счет N : (1)459174 [19:14:45]line ИНН: 02508201610067 [19:14:45]line Контрольно-Кассовый Чек [19:14:45]line ПРОДАЖА [19:14:45]line ТРК (МРК, ГНК) : 22 [19:14:45]line Товар: 2710124130 [19:14:45]line Аи-92-К-5 [19:14:45]line 4.870 * 65.80 [19:14:45]line = 320.45 [19:14:45]line НДС 12% НСП 1% [19:14:45]line > о реализуемом товаре [19:14:45]line ОКРУГЛЕНИЕ: -0.45 [19:14:45]line ИТОГО: 320.00 [19:14:45]line Внесено: 320.00 [19:14:45]line СДАЧА: 0.00 [19:14:45]line НСП 1% : 2.84 [19:14:45]line НДС 12% : 34.03 [19:14:45]line Наличными: 320.00 [19:14:45]line Безнал.: 0.00 [19:14:45]line Место: АЗС № 72 "Партнер Нефть" [19:14:45]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:14:45]line СНО: Общий режим [19:14:45]line Чек 269 14.07.2024 19:14 [19:14:45]line Смена: 447 ФФД: 1.0 [19:14:45]line ЗНМ: 0300000160 [19:14:45]line РНМ: 0000000000090829 [19:14:45]line Версия ККМ: 001 [19:14:45]line ФМ: 0000000000874718 [19:14:45]line ФД: 165071 [19:14:45]line ФПД: 125421329804976 [19:14:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T191444&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165071&fm=125421329804976&tin=02508201610067®Number=0000000000090829&sum=32000 [19:14:45]OFD Sender: Processing packet 165071 [packets to send 106, broken 105] [19:14:45]ProducePacketName [19:14:45]name=ofd_packets/00165071 [19:14:45]OFD Sender: To server: pG, [19:14:45]CommunicateWithHost lk.salyk.kg:30040 [19:14:45]ConnectInit lk.salyk.kg [19:14:45]written 0, free lines is 4095 [19:14:45]Connected sock=10 [19:14:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 9D 08 07 01 BF 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 A4 23 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CF 84 02 00 35 04 06 00 72 11 ED CF 6E B0 6B A3 DA 65 70 45 40 46 [19:14:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 03 00 47 00 E4 BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CF 84 02 00 F4 03 04 00 31 CA 93 66 B6 04 01 00 00 17 E0 C4 86 2B 48 04 AC [19:14:46]CommunicateWithHost err = 0 [19:14:46]CheckOFDResponse [19:14:46]1017 (14) - 77093643461234 [19:14:46]1041 (16) - 0000000000874718 [19:14:46]1040 (4) - 165071 [19:14:46]1012 (4) - 14.07.2024 12:53 [19:14:46]1206 (1) - 0 [19:14:46]OFD Sender: Remove packet 165071 [19:14:46]ProducePacketName [19:14:46]name=ofd_packets/00165071 [19:14:46]NVStorageDeleteData [19:14:46]Write to MH i2c: 01 00 00 D2 03 D5 [19:14:46]Write i2c OK [19:14:46]MH_I2C_Read... [19:14:46]Read from MH i2c: 01 [19:14:46]MH_I2C_Read... [19:14:46]Read from MH i2c: 01 07 00 [19:14:46]MH_I2C_Read... [19:14:46]Read from MH i2c: 01 07 00 D2 03 00 00 00 00 00 02 0D EB [19:14:46]RasterBufferAndPrint [19:14:46]line [19:14:46]line [19:14:46]line [19:14:46]line [19:14:46]line [19:14:46]written 0, free lines is 3336 [19:14:46]MH_Cut [19:14:46]Write to MH i2c: D1 01 00 D9 03 01 AE [19:14:46]Write i2c OK [19:14:46]MH_I2C_Read... [19:14:46]Read from MH i2c: D1 [19:14:46]MH_I2C_Read... [19:14:46]Read from MH i2c: D1 01 00 [19:14:46]MH_I2C_Read... [19:14:46]Read from MH i2c: D1 01 00 D9 03 00 AD [19:14:46]Write to MH i2c: 01 00 00 DA 03 DD [19:14:46]Write i2c OK [19:14:46]MH_I2C_Read... [19:14:46]OFD Sender: No OFD packet to send [19:14:46]*** Cut start [19:14:46]*** Partial cut [19:14:46]*** CUTSNS_PIN = 1 [19:14:46]*** CUTSNS_PIN = 0 [19:14:47]*** Brake cut motor [19:14:47]Read from MH i2c: 01 [19:14:47]MH_I2C_Read... [19:14:47]*** Stop cut motor [19:14:47]*** Cut end [19:14:47]Read from MH i2c: 01 07 00 [19:14:47]MH_I2C_Read... [19:14:47]Read from MH i2c: 01 07 00 DA 03 00 00 00 00 00 FF 0F F2 [19:14:47]process_action close_receipt done [19:14:47]requested_data is exist [19:14:47]produce_requested_data [19:14:47]requested_item fm.sn is exist - process it [19:14:47]wFMCommunicate request_size=4 [19:14:47]MH_SAM_APDU [19:14:47]CAPDU: 80 11 00 00 [19:14:47]Write to MH i2c: E2 08 00 DB 03 80 11 00 00 00 00 00 00 58 [19:14:47]Write i2c OK [19:14:47]MH_I2C_Read... [19:14:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:14:47]Read from MH i2c: E2 [19:14:47]MH_I2C_Read... [19:14:47]Read from MH i2c: E2 17 00 [19:14:47]MH_I2C_Read... [19:14:47]Read from MH i2c: E2 17 00 DB 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 AE [19:14:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:14:47]wFMCommunicate OK [19:14:47]requested_item fd.num is exist - process it [19:14:47]SAM_PROTO_GetFieldsCounters [19:14:47]wFMCommunicate request_size=4 [19:14:47]MH_SAM_APDU [19:14:47]CAPDU: 80 13 00 00 [19:14:47]Write to MH i2c: E2 08 00 DC 03 80 13 00 00 00 00 00 00 5B [19:14:47]Write i2c OK [19:14:47]MH_I2C_Read... [19:14:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:14:47]Read from MH i2c: E2 [19:14:47]MH_I2C_Read... [19:14:47]Read from MH i2c: E2 62 00 [19:14:47]MH_I2C_Read... [19:14:47]Read from MH i2c: E2 62 00 DC 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 CF 84 02 00 0E 04 04 00 BF 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 C1 [19:14:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 CF 84 02 00 0E 04 04 00 BF 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 [19:14:47]wFMCommunicate OK [19:14:47]SAM_PROTO_GetFieldsCounters done [19:14:47]requested_item shift.num is exist - process it [19:14:47]requested_item shift.opened is exist - process it [19:14:47]req_shift_opened [19:14:47]FM_GetShiftState [19:14:47]SAM_PROTO_GetShiftState [19:14:47]wFMCommunicate request_size=4 [19:14:47]MH_SAM_APDU [19:14:47]CAPDU: 80 13 01 00 [19:14:47]Write to MH i2c: E2 08 00 DD 03 80 13 01 00 00 00 00 00 5D [19:14:47]Write i2c OK [19:14:47]MH_I2C_Read... [19:14:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:14:47]Read from MH i2c: E2 [19:14:47]MH_I2C_Read... [19:14:47]Read from MH i2c: E2 0E 00 [19:14:47]MH_I2C_Read... [19:14:47]Read from MH i2c: E2 0E 00 DD 03 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 DD [19:14:47]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [19:14:47]wFMCommunicate OK [19:14:47]SAM_PROTO_GetShiftState done [19:14:47]FM_GetShiftState done [19:14:47]req_shift_opened done [19:14:47]requested_item shift.open_date is exist - process it [19:14:47]req_shift_open_date [19:14:47]req_shift_open_date done [19:14:47]produce_requested_data done [19:14:47]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165071,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [19:14:47]process_action_free close_receipt [19:14:47]json_value_free [19:14:47]json_value_free done [19:14:47]process_json_proto returns [19:14:47]Send response to host [19:14:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165071,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [19:14:47]free response buf [19:14:47]execute_script done [19:14:47]execute_script returns [19:14:47]free content buf [19:14:47]Sock 9.Close socket [19:14:47]Sock 9.Thread stoped [19:14:51]OFD Sender: No OFD packet to send [19:14:56]OFD Sender: No OFD packet to send [19:15:01]OFD Sender: No OFD packet to send [19:15:06]OFD Sender: No OFD packet to send [19:15:11]OFD Sender: No OFD packet to send [19:15:16]OFD Sender: No OFD packet to send [19:15:21]OFD Sender: No OFD packet to send [19:15:26]OFD Sender: No OFD packet to send [19:15:31]OFD Sender: No OFD packet to send [19:15:36]OFD Sender: No OFD packet to send [19:15:41]OFD Sender: No OFD packet to send [19:15:46]OFD Sender: No OFD packet to send [19:15:51]OFD Sender: No OFD packet to send [19:15:56]OFD Sender: No OFD packet to send [19:16:01]OFD Sender: No OFD packet to send [19:16:06]OFD Sender: No OFD packet to send [19:16:11]OFD Sender: No OFD packet to send [19:16:16]OFD Sender: No OFD packet to send [19:16:21]OFD Sender: No OFD packet to send [19:16:26]OFD Sender: No OFD packet to send [19:16:31]OFD Sender: No OFD packet to send [19:16:36]OFD Sender: No OFD packet to send [19:16:41]OFD Sender: No OFD packet to send [19:16:46]OFD Sender: No OFD packet to send [19:16:51]OFD Sender: No OFD packet to send [19:16:56]OFD Sender: No OFD packet to send [19:17:01]OFD Sender: No OFD packet to send [19:17:06]OFD Sender: No OFD packet to send [19:17:11]OFD Sender: No OFD packet to send [19:17:16]OFD Sender: No OFD packet to send [19:17:21]OFD Sender: No OFD packet to send [19:17:26]OFD Sender: No OFD packet to send [19:17:31]OFD Sender: No OFD packet to send [19:17:36]OFD Sender: No OFD packet to send [19:17:41]OFD Sender: No OFD packet to send [19:17:46]OFD Sender: No OFD packet to send [19:17:51]OFD Sender: No OFD packet to send [19:17:56]OFD Sender: No OFD packet to send [19:18:01]OFD Sender: No OFD packet to send [19:18:06]OFD Sender: No OFD packet to send [19:18:11]OFD Sender: No OFD packet to send [19:18:16]OFD Sender: No OFD packet to send [19:18:21]OFD Sender: No OFD packet to send [19:18:26]OFD Sender: No OFD packet to send [19:18:31]OFD Sender: No OFD packet to send [19:18:36]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:10]accept exits with 7 [19:19:10]New connection [19:19:10]New thread 3066785124 created [19:19:10]Thread 3066928484 joined [19:19:10]Waiting for new connection... [19:19:10] Sock 7.Parse request [19:19:10]Sock 7.Check first char [19:19:10]Sock 7.First char is OK [19:19:10]request: POST /json_proto HTTP/1.0 [19:19:10]Method: POST [19:19:10]URL: /json_proto [19:19:10]Method is POST - this is cgi request [19:19:10]url: /json_proto [19:19:10]query_string will be loaded in cgi processing [19:19:10]execute_cgi json_proto POST (null) [19:19:10]execute_cgi path=json_proto method=POST [19:19:10]POST find Content-Length [19:19:10]Host: 172.17.56.4:8080 [19:19:10]Content-Length: 677 [19:19:10]Content-Type: application/json [19:19:10] [19:19:10]POST finish read [19:19:10]Found Content-Length = 677 [19:19:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459175", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.870, "sum" : 320.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:19:10]execute_script... [19:19: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)459175", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.870, "sum" : 320.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:19:10]POST & json_proto [19:19:10]process_json_proto [19:19:10]json parsed OK: [19:19:10]protocol is kg_v1.0 [19:19:10]action value=close_receipt [19:19:10]process_action close_receipt [19:19:10]cmd_close_receipt [19:19:10]MH_GetDate [19:19:10]Write to MH i2c: F0 00 00 DE 03 D0 [19:19:10]Write i2c OK [19:19:10]MH_I2C_Read... [19:19:10]Read from MH i2c: F0 [19:19:10]MH_I2C_Read... [19:19:10]Read from MH i2c: F0 09 00 [19:19:10]MH_I2C_Read... [19:19:10]Read from MH i2c: F0 09 00 DE 03 00 AF 24 94 66 C9 DC B2 64 61 [19:19:10]GetLastDocTimeStamp 1720984484 [19:19:10]current date 1720984751 [19:19:10]FM_GetShiftState [19:19:10]SAM_PROTO_GetShiftState [19:19:10]wFMCommunicate request_size=4 [19:19:10]MH_SAM_APDU [19:19:10]CAPDU: 80 13 01 00 [19:19:10]Write to MH i2c: E2 08 00 DF 03 80 13 01 00 00 00 00 00 5F [19:19:10]Write i2c OK [19:19:10]MH_I2C_Read... [19:19:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:19:10]Read from MH i2c: E2 [19:19:10]MH_I2C_Read... [19:19:10]Read from MH i2c: E2 0E 00 [19:19:10]MH_I2C_Read... [19:19:10]Read from MH i2c: E2 0E 00 DF 03 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 DF [19:19:10]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [19:19:10]wFMCommunicate OK [19:19:10]SAM_PROTO_GetShiftState done [19:19:10]FM_GetShiftState done [19:19:10]opened in 1720917342 [19:19:10]opened+sec_in_day 1721003742 [19:19:10]quantity*price = 32044 [19:19:10]sum+1 = 32046 [19:19:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 320.00 Внесено: 320.00 СДАЧА: 0.00 НСП 1% : 2.84 НДС 12% : 34.03 Наличными: 320.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 270 14.07.2024 19:19 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165072 ФПД: 142380353521540 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T191911&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165072&fm=142380353521540&tin=02508201610067®Number=0000000000090829&sum=32000 [19:19:11]StoreToDocumentArchive [19:19:11]shift 447 fd 165072 [19:19:11]save to /storage/0447/doc_00165072 [19:19:11]save last doc name /storage/0447/doc_00165072 to /storage/kkm_last_doc_name [19:19:11]save OK [19:19:11]Clear old archive folders... [19:19:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:19:11]tlvbuf is 013B1910 [19:19:11]SAM_PROTO_ClearQueue [19:19:11]wFMCommunicate request_size=4 [19:19:11]MH_SAM_APDU [19:19:11]CAPDU: 80 09 00 00 [19:19:11]Write to MH i2c: E2 08 00 EC 03 80 09 00 00 00 00 00 00 61 [19:19:11]Write i2c OK [19:19:11]MH_I2C_Read... [19:19:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:19:11]Read from MH i2c: E2 [19:19:11]MH_I2C_Read... [19:19:11]Read from MH i2c: E2 03 00 [19:19:11]MH_I2C_Read... [19:19:11]Read from MH i2c: E2 03 00 EC 03 00 90 00 63 [19:19:11]RAPDU: 90 00 [19:19:11]wFMCommunicate OK [19:19:11]SAM_PROTO_ClearQueue done [19:19:11]KKMCreateOFDPacket [19:19:11]OFDProtocolAddRootSTLVToBuf [19:19:11]FM_MakeSignedData [19:19:11]FM_MakeSignedData [19:19:11]SAM_PROTO_SignData [19:19:11]wFMCommunicate request_size=4 [19:19:11]MH_SAM_APDU [19:19:11]CAPDU: 80 0D 01 02 [19:19:11]Write to MH i2c: E2 08 00 ED 03 80 0D 01 02 00 00 00 00 69 [19:19:11]OFD Sender: No OFD packet to send [19:19:11]Write i2c OK [19:19:11]MH_I2C_Read... [19:19:11]Read from MH i2c: E2 [19:19:11]MH_I2C_Read... [19:19:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:19:11]Read from MH i2c: E2 03 00 [19:19:11]MH_I2C_Read... [19:19:11]Read from MH i2c: E2 03 00 ED 03 00 90 00 64 [19:19:11]RAPDU: 90 00 [19:19:11]wFMCommunicate OK [19:19:11]wFMCommunicate request_size=255 [19:19:11]MH_SAM_APDU [19:19:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 AF 24 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D0 84 02 00 35 04 06 00 81 [19:19:11]Write to MH i2c: E2 02 01 EE 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 AF 24 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D0 84 02 00 35 04 06 00 81 00 00 EB [19:19:11]Write i2c OK [19:19:11]MH_I2C_Read... [19:19:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:19:12]Read from MH i2c: E2 [19:19:12]MH_I2C_Read... [19:19:12]Read from MH i2c: E2 03 00 [19:19:12]MH_I2C_Read... [19:19:12]Read from MH i2c: E2 03 00 EE 03 00 90 00 65 [19:19:12]RAPDU: 90 00 [19:19:12]wFMCommunicate OK [19:19:12]wFMCommunicate request_size=10 [19:19:12]MH_SAM_APDU [19:19:12]CAPDU: 80 0D 02 02 05 7E 82 65 07 84 [19:19:12]Write to MH i2c: E2 0D 00 EF 03 80 0D 02 02 05 00 7E 82 65 07 84 00 00 66 [19:19:12]Write i2c OK [19:19:12]MH_I2C_Read... [19:19:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:19:12]Read from MH i2c: E2 [19:19:12]MH_I2C_Read... [19:19:12]Read from MH i2c: E2 03 00 [19:19:12]MH_I2C_Read... [19:19:12]Read from MH i2c: E2 03 00 EF 03 00 90 00 66 [19:19:12]RAPDU: 90 00 [19:19:12]wFMCommunicate OK [19:19:12]wFMCommunicate request_size=4 [19:19:12]MH_SAM_APDU [19:19:12]CAPDU: 80 0D 03 02 [19:19:12]Write to MH i2c: E2 08 00 F0 03 80 0D 03 02 00 00 00 00 6E [19:19:12]Write i2c OK [19:19:12]MH_I2C_Read... [19:19:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:19:12]Read from MH i2c: E2 [19:19:12]MH_I2C_Read... [19:19:12]Read from MH i2c: E2 0B 00 [19:19:12]MH_I2C_Read... [19:19:12]Read from MH i2c: E2 0B 00 F0 03 00 2D 66 75 DE 18 08 89 F2 90 00 F0 [19:19:12]RAPDU: 2D 66 75 DE 18 08 89 F2 90 00 [19:19:12]wFMCommunicate OK [19:19:12]SAM_PROTO_SignData done [19:19:12]FM_MakeSignedData done [19:19:12]CreateOFDProtocolMessage [19:19:12]wFMCommunicate request_size=4 [19:19:12]MH_SAM_APDU [19:19:12]CAPDU: 80 11 00 00 [19:19:12]Write to MH i2c: E2 08 00 F1 03 80 11 00 00 00 00 00 00 6E [19:19:12]Write i2c OK [19:19:12]MH_I2C_Read... [19:19:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:19:12]Read from MH i2c: E2 [19:19:12]MH_I2C_Read... [19:19:12]Read from MH i2c: E2 17 00 [19:19:12]MH_I2C_Read... [19:19:12]Read from MH i2c: E2 17 00 F1 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C4 [19:19:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:19:12]wFMCommunicate OK [19:19:12]CreateOFDProtocolMessage done [19:19:12]OFDSenderStorePacket 165072 [19:19:12]StoreOFDPacket docnum=165072 [19:19:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D9 DA 07 01 A9 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 AF 24 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D0 84 02 00 35 04 06 00 81 7E 82 65 07 84 2D 66 75 DE 18 08 89 F2 [19:19:12]CheckFolder [19:19:12]dirname=/storage/ofd_packets [19:19:12]CheckFolder done [19:19:12]ProducePacketName [19:19:12]name=ofd_packets/00165072 [19:19:12]NVStorageSaveData ofd_packets/00165072 [19:19:12]File name is /storage/ofd_packets/00165072 [19:19:12]Write 301 bytes [19:19:12]NVStorageSaveData done [19:19:12]OFDSenderStorePacket done [19:19:12]KKMCreateOFDPacket done [19:19:12]NVStorageSaveData kkm_last_timestamp [19:19:12]File name is /storage/kkm_last_timestamp [19:19:12]Write 4 bytes [19:19:12]NVStorageSaveData done [19:19:12]ExternCall_PrintAddStr [19:19:12]wPrintStart [19:19:12]Write to MH i2c: 01 00 00 F2 03 F5 [19:19:12]Write i2c OK [19:19:12]MH_I2C_Read... [19:19:12]Read from MH i2c: 01 [19:19:12]MH_I2C_Read... [19:19:12]Read from MH i2c: 01 07 00 [19:19:12]MH_I2C_Read... [19:19:12]Read from MH i2c: 01 07 00 F2 03 00 00 00 00 00 FF 0F 0A [19:19:12]RasterBufferAndPrint [19:19:12]line Счет N : (1)459175 [19:19:12]line ИНН: 02508201610067 [19:19:12]line Контрольно-Кассовый Чек [19:19:12]line ПРОДАЖА [19:19:12]line ТРК (МРК, ГНК) : 22 [19:19:12]line Товар: 2710124130 [19:19:12]line Аи-92-К-5 [19:19:12]line 4.870 * 65.80 [19:19:12]line = 320.45 [19:19:12]line НДС 12% НСП 1% [19:19:12]line > о реализуемом товаре [19:19:12]line ОКРУГЛЕНИЕ: -0.45 [19:19:12]line ИТОГО: 320.00 [19:19:12]line Внесено: 320.00 [19:19:12]line СДАЧА: 0.00 [19:19:12]line НСП 1% : 2.84 [19:19:12]line НДС 12% : 34.03 [19:19:12]line Наличными: 320.00 [19:19:12]line Безнал.: 0.00 [19:19:12]line Место: АЗС № 72 "Партнер Нефть" [19:19:12]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:19:12]line СНО: Общий режим [19:19:12]line Чек 270 14.07.2024 19:19 [19:19:12]line Смена: 447 ФФД: 1.0 [19:19:12]line ЗНМ: 0300000160 [19:19:12]line РНМ: 0000000000090829 [19:19:12]line Версия ККМ: 001 [19:19:12]line ФМ: 0000000000874718 [19:19:12]line ФД: 165072 [19:19:12]line ФПД: 142380353521540 [19:19:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T191911&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165072&fm=142380353521540&tin=02508201610067®Number=0000000000090829&sum=32000 [19:19:12]written 0, free lines is 4095 [19:19:12]OFD Sender: Processing packet 165072 [packets to send 106, broken 105] [19:19:12]ProducePacketName [19:19:12]name=ofd_packets/00165072 [19:19:12]OFD Sender: To server: pG, [19:19:12]CommunicateWithHost lk.salyk.kg:30040 [19:19:12]ConnectInit lk.salyk.kg [19:19:12]Connected sock=10 [19:19:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D9 DA 07 01 A9 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 AF 24 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D0 84 02 00 35 04 06 00 81 7E 82 65 07 84 2D 66 75 DE 18 08 89 F2 [19:19:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 05 2D 47 00 EA 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 38 37 34 37 31 38 10 04 04 00 D0 84 02 00 F4 03 04 00 3C CB 93 66 B6 04 01 00 00 28 10 68 DF 07 54 AF 40 [19:19:12]CommunicateWithHost err = 0 [19:19:12]CheckOFDResponse [19:19:12]1017 (14) - 77093643461234 [19:19:12]1041 (16) - 0000000000874718 [19:19:12]1040 (4) - 165072 [19:19:12]1012 (4) - 14.07.2024 12:57 [19:19:12]1206 (1) - 0 [19:19:12]OFD Sender: Remove packet 165072 [19:19:12]ProducePacketName [19:19:12]name=ofd_packets/00165072 [19:19:12]NVStorageDeleteData [19:19:12]Write to MH i2c: 01 00 00 1C 04 20 [19:19:12]Write i2c OK [19:19:12]MH_I2C_Read... [19:19:12]Read from MH i2c: 01 [19:19:12]MH_I2C_Read... [19:19:12]Read from MH i2c: 01 07 00 [19:19:12]MH_I2C_Read... [19:19:12]Read from MH i2c: 01 07 00 1C 04 00 00 00 00 00 07 0D 3B [19:19:12]RasterBufferAndPrint [19:19:12]line [19:19:12]line [19:19:12]line [19:19:12]line [19:19:12]line [19:19:12]written 0, free lines is 3341 [19:19:12]MH_Cut [19:19:12]Write to MH i2c: D1 01 00 23 04 01 F9 [19:19:12]Write i2c OK [19:19:12]MH_I2C_Read... [19:19:12]Read from MH i2c: D1 [19:19:12]MH_I2C_Read... [19:19:12]Read from MH i2c: D1 01 00 [19:19:12]MH_I2C_Read... [19:19:12]Read from MH i2c: D1 01 00 23 04 00 F8 [19:19:12]Write to MH i2c: 01 00 00 24 04 28 [19:19:12]Write i2c OK [19:19:12]MH_I2C_Read... [19:19:13]OFD Sender: No OFD packet to send [19:19:13]*** Cut start [19:19:13]*** Partial cut [19:19:13]*** CUTSNS_PIN = 1 [19:19:13]*** CUTSNS_PIN = 0 [19:19:13]*** Brake cut motor [19:19:14]Read from MH i2c: 01 [19:19:14]MH_I2C_Read... [19:19:14]*** Stop cut motor [19:19:14]*** Cut end [19:19:14]Read from MH i2c: 01 07 00 [19:19:14]MH_I2C_Read... [19:19:14]Read from MH i2c: 01 07 00 24 04 00 00 00 00 00 FF 0F 3D [19:19:14]process_action close_receipt done [19:19:14]requested_data is exist [19:19:14]produce_requested_data [19:19:14]requested_item fm.sn is exist - process it [19:19:14]wFMCommunicate request_size=4 [19:19:14]MH_SAM_APDU [19:19:14]CAPDU: 80 11 00 00 [19:19:14]Write to MH i2c: E2 08 00 25 04 80 11 00 00 00 00 00 00 A3 [19:19:14]Write i2c OK [19:19:14]MH_I2C_Read... [19:19:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:19:14]Read from MH i2c: E2 [19:19:14]MH_I2C_Read... [19:19:14]Read from MH i2c: E2 17 00 [19:19:14]MH_I2C_Read... [19:19:14]Read from MH i2c: E2 17 00 25 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F9 [19:19:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:19:14]wFMCommunicate OK [19:19:14]requested_item fd.num is exist - process it [19:19:14]SAM_PROTO_GetFieldsCounters [19:19:14]wFMCommunicate request_size=4 [19:19:14]MH_SAM_APDU [19:19:14]CAPDU: 80 13 00 00 [19:19:14]Write to MH i2c: E2 08 00 26 04 80 13 00 00 00 00 00 00 A6 [19:19:14]Write i2c OK [19:19:14]MH_I2C_Read... [19:19:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:19:14]Read from MH i2c: E2 [19:19:14]MH_I2C_Read... [19:19:14]Read from MH i2c: E2 62 00 [19:19:14]MH_I2C_Read... [19:19:14]Read from MH i2c: E2 62 00 26 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D0 84 02 00 0E 04 04 00 BF 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 10 [19:19:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D0 84 02 00 0E 04 04 00 BF 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 [19:19:14]wFMCommunicate OK [19:19:14]SAM_PROTO_GetFieldsCounters done [19:19:14]requested_item shift.num is exist - process it [19:19:14]requested_item shift.opened is exist - process it [19:19:14]req_shift_opened [19:19:14]FM_GetShiftState [19:19:14]SAM_PROTO_GetShiftState [19:19:14]wFMCommunicate request_size=4 [19:19:14]MH_SAM_APDU [19:19:14]CAPDU: 80 13 01 00 [19:19:14]Write to MH i2c: E2 08 00 27 04 80 13 01 00 00 00 00 00 A8 [19:19:14]Write i2c OK [19:19:14]MH_I2C_Read... [19:19:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:19:14]Read from MH i2c: E2 [19:19:14]MH_I2C_Read... [19:19:14]Read from MH i2c: E2 0E 00 [19:19:14]MH_I2C_Read... [19:19:14]Read from MH i2c: E2 0E 00 27 04 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 28 [19:19:14]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [19:19:14]wFMCommunicate OK [19:19:14]SAM_PROTO_GetShiftState done [19:19:14]FM_GetShiftState done [19:19:14]req_shift_opened done [19:19:14]requested_item shift.open_date is exist - process it [19:19:14]req_shift_open_date [19:19:14]req_shift_open_date done [19:19:14]produce_requested_data done [19:19:14]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165072,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [19:19:14]process_action_free close_receipt [19:19:14]json_value_free [19:19:14]json_value_free done [19:19:14]process_json_proto returns [19:19:14]Send response to host [19:19:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165072,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [19:19:14]free response buf [19:19:14]execute_script done [19:19:14]execute_script returns [19:19:14]free content buf [19:19:14]Sock 7.Close socket [19:19:14]Sock 7.Thread stoped [19:19:18]OFD Sender: No OFD packet to send [19:19:23]OFD Sender: No OFD packet to send [19:19:28]OFD Sender: No OFD packet to send [19:19:33]OFD Sender: No OFD packet to send [19:19:38]OFD Sender: No OFD packet to send [19:19:43]OFD Sender: No OFD packet to send [19:19:48]OFD Sender: No OFD packet to send [19:19:53]OFD Sender: No OFD packet to send [19:19:58]OFD Sender: No OFD packet to send [19:20:03]OFD Sender: No OFD packet to send [19:20:08]OFD Sender: No OFD packet to send [19:20:13]OFD Sender: No OFD packet to send [19:20:18]OFD Sender: No OFD packet to send [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:53]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:48]OFD Sender: No OFD packet to send [19:21:53]OFD Sender: No OFD packet to send [19:21:58]OFD Sender: No OFD packet to send [19:22:03]OFD Sender: No OFD packet to send [19:22:08]OFD Sender: No OFD packet to send [19:22:13]OFD Sender: No OFD packet to send [19:22:18]OFD Sender: No OFD packet to send [19:22:23]OFD Sender: No OFD packet to send [19:22:28]OFD Sender: No OFD packet to send [19:22:33]OFD Sender: No OFD packet to send [19:22:38]OFD Sender: No OFD packet to send [19:22:43]OFD Sender: No OFD packet to send [19:22:48]OFD Sender: No OFD packet to send [19:22:53]OFD Sender: No OFD packet to send [19:22:58]OFD Sender: No OFD packet to send [19:23:02]accept exits with 9 [19:23:02]New connection [19:23:02]New thread 3066928484 created [19:23:02]Thread 3066785124 joined [19:23:02]Waiting for new connection... [19:23:02] Sock 9.Parse request [19:23:02]Sock 9.Check first char [19:23:02]Sock 9.First char is OK [19:23:02]request: POST /json_proto HTTP/1.0 [19:23:02]Method: POST [19:23:02]URL: /json_proto [19:23:02]Method is POST - this is cgi request [19:23:02]url: /json_proto [19:23:02]query_string will be loaded in cgi processing [19:23:02]execute_cgi json_proto POST (null) [19:23:02]execute_cgi path=json_proto method=POST [19:23:02]POST find Content-Length [19:23:02]Host: 172.17.56.4:8080 [19:23:02]Content-Length: 673 [19:23:02]Content-Type: application/json [19:23:02] [19:23:02]POST finish read [19:23:02]Found Content-Length = 673 [19:23:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459176", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 1.070, "sum" : 70.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 70.00, "total" : 70.00, "payments": [ { "type": 0, "sum" : 70.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:23:02]execute_script... [19:23: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)459176", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 1.070, "sum" : 70.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 70.00, "total" : 70.00, "payments": [ { "type": 0, "sum" : 70.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:23:02]POST & json_proto [19:23:02]process_json_proto [19:23:02]json parsed OK: [19:23:02]protocol is kg_v1.0 [19:23:02]action value=close_receipt [19:23:02]process_action close_receipt [19:23:02]cmd_close_receipt [19:23:02]MH_GetDate [19:23:02]Write to MH i2c: F0 00 00 28 04 1B [19:23:02]Write i2c OK [19:23:02]MH_I2C_Read... [19:23:02]Read from MH i2c: F0 [19:23:02]MH_I2C_Read... [19:23:02]Read from MH i2c: F0 09 00 [19:23:02]MH_I2C_Read... [19:23:02]Read from MH i2c: F0 09 00 28 04 00 97 25 94 66 C9 DC B2 64 95 [19:23:02]GetLastDocTimeStamp 1720984751 [19:23:02]current date 1720984983 [19:23:02]FM_GetShiftState [19:23:02]SAM_PROTO_GetShiftState [19:23:02]wFMCommunicate request_size=4 [19:23:02]MH_SAM_APDU [19:23:02]CAPDU: 80 13 01 00 [19:23:02]Write to MH i2c: E2 08 00 29 04 80 13 01 00 00 00 00 00 AA [19:23:02]Write i2c OK [19:23:02]MH_I2C_Read... [19:23:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:23:02]Read from MH i2c: E2 [19:23:02]MH_I2C_Read... [19:23:02]Read from MH i2c: E2 0E 00 [19:23:02]MH_I2C_Read... [19:23:02]Read from MH i2c: E2 0E 00 29 04 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 2A [19:23:02]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [19:23:02]wFMCommunicate OK [19:23:02]SAM_PROTO_GetShiftState done [19:23:02]FM_GetShiftState done [19:23:02]opened in 1720917342 [19:23:02]opened+sec_in_day 1721003742 [19:23:02]quantity*price = 7040 [19:23:02]sum+1 = 7042 [19:23:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 70.00 Внесено: 70.00 СДАЧА: 0.00 НСП 1% : 0.62 НДС 12% : 7.48 Наличными: 70.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 271 14.07.2024 19:23 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165073 ФПД: 100971378663656 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T192303&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165073&fm=100971378663656&tin=02508201610067®Number=0000000000090829&sum=7000 [19:23:03]StoreToDocumentArchive [19:23:03]shift 447 fd 165073 [19:23:03]save to /storage/0447/doc_00165073 [19:23:03]save last doc name /storage/0447/doc_00165073 to /storage/kkm_last_doc_name [19:23:03]save OK [19:23:03]Clear old archive folders... [19:23:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:23:03]tlvbuf is 013468D0 [19:23:03]SAM_PROTO_ClearQueue [19:23:03]wFMCommunicate request_size=4 [19:23:03]MH_SAM_APDU [19:23:03]CAPDU: 80 09 00 00 [19:23:03]Write to MH i2c: E2 08 00 36 04 80 09 00 00 00 00 00 00 AC [19:23:03]Write i2c OK [19:23:03]MH_I2C_Read... [19:23:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:23:03]Read from MH i2c: E2 [19:23:03]MH_I2C_Read... [19:23:03]Read from MH i2c: E2 03 00 [19:23:03]MH_I2C_Read... [19:23:03]Read from MH i2c: E2 03 00 36 04 00 90 00 AE [19:23:03]RAPDU: 90 00 [19:23:03]wFMCommunicate OK [19:23:03]SAM_PROTO_ClearQueue done [19:23:03]KKMCreateOFDPacket [19:23:03]OFDProtocolAddRootSTLVToBuf [19:23:03]FM_MakeSignedData [19:23:03]FM_MakeSignedData [19:23:03]SAM_PROTO_SignData [19:23:03]wFMCommunicate request_size=4 [19:23:03]MH_SAM_APDU [19:23:03]CAPDU: 80 0D 01 02 [19:23:03]Write to MH i2c: E2 08 00 37 04 80 0D 01 02 00 00 00 00 B4 [19:23:03]Write i2c OK [19:23:03]MH_I2C_Read... [19:23:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:23:03]Read from MH i2c: E2 [19:23:03]MH_I2C_Read... [19:23:03]Read from MH i2c: E2 03 00 [19:23:03]MH_I2C_Read... [19:23:03]Read from MH i2c: E2 03 00 37 04 00 90 00 AF [19:23:03]RAPDU: 90 00 [19:23:03]wFMCommunicate OK [19:23:03]wFMCommunicate request_size=255 [19:23:03]MH_SAM_APDU [19:23:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 04 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 81 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 97 25 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D1 84 02 00 35 04 06 00 5B [19:23:03]Write to MH i2c: E2 02 01 38 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 04 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 81 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 97 25 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D1 84 02 00 35 04 06 00 5B 00 00 A9 [19:23:03]Write i2c OK [19:23:03]MH_I2C_Read... [19:23:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:23:04]Read from MH i2c: E2 [19:23:04]MH_I2C_Read... [19:23:04]Read from MH i2c: E2 03 00 [19:23:04]MH_I2C_Read... [19:23:04]Read from MH i2c: E2 03 00 38 04 00 90 00 B0 [19:23:04]RAPDU: 90 00 [19:23:04]wFMCommunicate OK [19:23:04]wFMCommunicate request_size=10 [19:23:04]MH_SAM_APDU [19:23:04]CAPDU: 80 0D 02 02 05 D5 3B 28 60 E8 [19:23:04]Write to MH i2c: E2 0D 00 39 04 80 0D 02 02 05 00 D5 3B 28 60 E8 00 00 41 [19:23:04]Write i2c OK [19:23:04]MH_I2C_Read... [19:23:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:23:04]Read from MH i2c: E2 [19:23:04]MH_I2C_Read... [19:23:04]Read from MH i2c: E2 03 00 [19:23:04]MH_I2C_Read... [19:23:04]Read from MH i2c: E2 03 00 39 04 00 90 00 B1 [19:23:04]RAPDU: 90 00 [19:23:04]wFMCommunicate OK [19:23:04]wFMCommunicate request_size=4 [19:23:04]MH_SAM_APDU [19:23:04]CAPDU: 80 0D 03 02 [19:23:04]Write to MH i2c: E2 08 00 3A 04 80 0D 03 02 00 00 00 00 B9 [19:23:04]Write i2c OK [19:23:04]MH_I2C_Read... [19:23:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:23:04]Read from MH i2c: E2 [19:23:04]MH_I2C_Read... [19:23:04]Read from MH i2c: E2 0B 00 [19:23:04]MH_I2C_Read... [19:23:04]Read from MH i2c: E2 0B 00 3A 04 00 65 21 E0 38 E9 85 46 21 90 00 2D [19:23:04]RAPDU: 65 21 E0 38 E9 85 46 21 90 00 [19:23:04]wFMCommunicate OK [19:23:04]SAM_PROTO_SignData done [19:23:04]FM_MakeSignedData done [19:23:04]CreateOFDProtocolMessage [19:23:04]wFMCommunicate request_size=4 [19:23:04]MH_SAM_APDU [19:23:04]CAPDU: 80 11 00 00 [19:23:04]Write to MH i2c: E2 08 00 3B 04 80 11 00 00 00 00 00 00 B9 [19:23:04]Write i2c OK [19:23:04]MH_I2C_Read... [19:23:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:23:04]Read from MH i2c: E2 [19:23:04]MH_I2C_Read... [19:23:04]Read from MH i2c: E2 17 00 [19:23:04]MH_I2C_Read... [19:23:04]Read from MH i2c: E2 17 00 3B 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 0F [19:23:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:23:04]wFMCommunicate OK [19:23:04]CreateOFDProtocolMessage done [19:23:04]OFDSenderStorePacket 165073 [19:23:04]StoreOFDPacket docnum=165073 [19:23:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 AC 84 07 01 46 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 35 FF 03 08 00 03 2E 04 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 81 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 97 25 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D1 84 02 00 35 04 06 00 5B D5 3B 28 60 E8 65 21 E0 38 E9 85 46 21 [19:23:04]CheckFolder [19:23:04]dirname=/storage/ofd_packets [19:23:04]CheckFolder done [19:23:04]ProducePacketName [19:23:04]name=ofd_packets/00165073 [19:23:04]NVStorageSaveData ofd_packets/00165073 [19:23:04]File name is /storage/ofd_packets/00165073 [19:23:04]Write 301 bytes [19:23:04]NVStorageSaveData done [19:23:04]OFDSenderStorePacket done [19:23:04]KKMCreateOFDPacket done [19:23:04]NVStorageSaveData kkm_last_timestamp [19:23:04]File name is /storage/kkm_last_timestamp [19:23:04]Write 4 bytes [19:23:04]NVStorageSaveData done [19:23:04]ExternCall_PrintAddStr [19:23:04]wPrintStart [19:23:04]Write to MH i2c: 01 00 00 3C 04 40 [19:23:04]Write i2c OK [19:23:04]MH_I2C_Read... [19:23:04]Read from MH i2c: 01 [19:23:04]MH_I2C_Read... [19:23:04]Read from MH i2c: 01 07 00 [19:23:04]MH_I2C_Read... [19:23:04]Read from MH i2c: 01 07 00 3C 04 00 00 00 00 00 FF 0F 55 [19:23:04]RasterBufferAndPrint [19:23:04]line Счет N : (1)459176 [19:23:04]line ИНН: 02508201610067 [19:23:04]line Контрольно-Кассовый Чек [19:23:04]line ПРОДАЖА [19:23:04]line ТРК (МРК, ГНК) : 12 [19:23:04]line Товар: 2710124130 [19:23:04]line Аи-92-К-5 [19:23:04]line 1.070 * 65.80 [19:23:04]line = 70.41 [19:23:04]line НДС 12% НСП 1% [19:23:04]line > о реализуемом товаре [19:23:04]line ОКРУГЛЕНИЕ: -0.41 [19:23:04]line ИТОГО: 70.00 [19:23:04]line Внесено: 70.00 [19:23:04]line СДАЧА: 0.00 [19:23:04]line НСП 1% : 0.62 [19:23:04]line НДС 12% : 7.48 [19:23:04]line Наличными: 70.00 [19:23:04]line Безнал.: 0.00 [19:23:04]line Место: АЗС № 72 "Партнер Нефть" [19:23:04]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:23:04]line СНО: Общий режим [19:23:04]line Чек 271 14.07.2024 19:23 [19:23:04]line Смена: 447 ФФД: 1.0 [19:23:04]line ЗНМ: 0300000160 [19:23:04]line РНМ: 0000000000090829 [19:23:04]line Версия ККМ: 001 [19:23:04]line ФМ: 0000000000874718 [19:23:04]line ФД: 165073 [19:23:04]line ФПД: 100971378663656 [19:23:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T192303&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165073&fm=100971378663656&tin=02508201610067®Number=0000000000090829&sum=7000 [19:23:04]written 0, free lines is 4095 [19:23:04]OFD Sender: Processing packet 165073 [packets to send 106, broken 105] [19:23:04]ProducePacketName [19:23:04]name=ofd_packets/00165073 [19:23:04]OFD Sender: To server: pG, [19:23:04]CommunicateWithHost lk.salyk.kg:30040 [19:23:04]ConnectInit lk.salyk.kg [19:23:04]Connected sock=10 [19:23:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 AC 84 07 01 46 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 35 FF 03 08 00 03 2E 04 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 81 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 97 25 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D1 84 02 00 35 04 06 00 5B D5 3B 28 60 E8 65 21 E0 38 E9 85 46 21 [19:23:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 DC 7F 47 00 6D 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D1 84 02 00 F4 03 04 00 24 CC 93 66 B6 04 01 00 00 8E 9F 8A D0 F2 F2 3B FE [19:23:04]CommunicateWithHost err = 0 [19:23:04]CheckOFDResponse [19:23:04]1017 (14) - 77093643461234 [19:23:04]1041 (16) - 0000000000874718 [19:23:04]1040 (4) - 165073 [19:23:04]1012 (4) - 14.07.2024 13:01 [19:23:04]1206 (1) - 0 [19:23:04]OFD Sender: Remove packet 165073 [19:23:04]ProducePacketName [19:23:04]name=ofd_packets/00165073 [19:23:04]NVStorageDeleteData [19:23:04]Write to MH i2c: 01 00 00 66 04 6A [19:23:04]Write i2c OK [19:23:04]MH_I2C_Read... [19:23:04]Read from MH i2c: 01 [19:23:04]MH_I2C_Read... [19:23:04]Read from MH i2c: 01 07 00 [19:23:04]MH_I2C_Read... [19:23:04]Read from MH i2c: 01 07 00 66 04 00 00 00 00 00 F4 0C 71 [19:23:04]RasterBufferAndPrint [19:23:04]line [19:23:04]line [19:23:04]line [19:23:04]line [19:23:04]line [19:23:04]written 0, free lines is 3322 [19:23:04]MH_Cut [19:23:04]Write to MH i2c: D1 01 00 6D 04 01 43 [19:23:04]Write i2c OK [19:23:04]MH_I2C_Read... [19:23:04]Read from MH i2c: D1 [19:23:04]MH_I2C_Read... [19:23:04]Read from MH i2c: D1 01 00 [19:23:04]MH_I2C_Read... [19:23:04]Read from MH i2c: D1 01 00 6D 04 00 42 [19:23:04]Write to MH i2c: 01 00 00 6E 04 72 [19:23:04]Write i2c OK [19:23:04]MH_I2C_Read... [19:23:05]OFD Sender: No OFD packet to send [19:23:05]*** Cut start [19:23:05]*** Partial cut [19:23:05]*** CUTSNS_PIN = 1 [19:23:05]*** CUTSNS_PIN = 0 [19:23:05]*** Brake cut motor [19:23:06]Read from MH i2c: 01 [19:23:06]MH_I2C_Read... [19:23:06]*** Stop cut motor [19:23:06]*** Cut end [19:23:06]Read from MH i2c: 01 07 00 [19:23:06]MH_I2C_Read... [19:23:06]Read from MH i2c: 01 07 00 6E 04 00 00 00 00 00 FF 0F 87 [19:23:06]process_action close_receipt done [19:23:06]requested_data is exist [19:23:06]produce_requested_data [19:23:06]requested_item fm.sn is exist - process it [19:23:06]wFMCommunicate request_size=4 [19:23:06]MH_SAM_APDU [19:23:06]CAPDU: 80 11 00 00 [19:23:06]Write to MH i2c: E2 08 00 6F 04 80 11 00 00 00 00 00 00 ED [19:23:06]Write i2c OK [19:23:06]MH_I2C_Read... [19:23:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:23:06]Read from MH i2c: E2 [19:23:06]MH_I2C_Read... [19:23:06]Read from MH i2c: E2 17 00 [19:23:06]MH_I2C_Read... [19:23:06]Read from MH i2c: E2 17 00 6F 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 43 [19:23:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:23:06]wFMCommunicate OK [19:23:06]requested_item fd.num is exist - process it [19:23:06]SAM_PROTO_GetFieldsCounters [19:23:06]wFMCommunicate request_size=4 [19:23:06]MH_SAM_APDU [19:23:06]CAPDU: 80 13 00 00 [19:23:06]Write to MH i2c: E2 08 00 70 04 80 13 00 00 00 00 00 00 F0 [19:23:06]Write i2c OK [19:23:06]MH_I2C_Read... [19:23:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:23:06]Read from MH i2c: E2 [19:23:06]MH_I2C_Read... [19:23:06]Read from MH i2c: E2 62 00 [19:23:06]MH_I2C_Read... [19:23:06]Read from MH i2c: E2 62 00 70 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D1 84 02 00 0E 04 04 00 BF 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 5E [19:23:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D1 84 02 00 0E 04 04 00 BF 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 [19:23:06]wFMCommunicate OK [19:23:06]SAM_PROTO_GetFieldsCounters done [19:23:06]requested_item shift.num is exist - process it [19:23:06]requested_item shift.opened is exist - process it [19:23:06]req_shift_opened [19:23:06]FM_GetShiftState [19:23:06]SAM_PROTO_GetShiftState [19:23:06]wFMCommunicate request_size=4 [19:23:06]MH_SAM_APDU [19:23:06]CAPDU: 80 13 01 00 [19:23:06]Write to MH i2c: E2 08 00 71 04 80 13 01 00 00 00 00 00 F2 [19:23:06]Write i2c OK [19:23:06]MH_I2C_Read... [19:23:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:23:06]Read from MH i2c: E2 [19:23:06]MH_I2C_Read... [19:23:06]Read from MH i2c: E2 0E 00 [19:23:06]MH_I2C_Read... [19:23:06]Read from MH i2c: E2 0E 00 71 04 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 72 [19:23:06]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [19:23:06]wFMCommunicate OK [19:23:06]SAM_PROTO_GetShiftState done [19:23:06]FM_GetShiftState done [19:23:06]req_shift_opened done [19:23:06]requested_item shift.open_date is exist - process it [19:23:06]req_shift_open_date [19:23:06]req_shift_open_date done [19:23:06]produce_requested_data done [19:23:06]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165073,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [19:23:06]process_action_free close_receipt [19:23:06]json_value_free [19:23:06]json_value_free done [19:23:06]process_json_proto returns [19:23:06]Send response to host [19:23:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165073,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [19:23:06]free response buf [19:23:06]execute_script done [19:23:06]execute_script returns [19:23:06]free content buf [19:23:06]Sock 9.Close socket [19:23:06]Sock 9.Thread stoped [19:23:10]OFD Sender: No OFD packet to send [19:23:15]OFD Sender: No OFD packet to send [19:23:20]OFD Sender: No OFD packet to send [19:23:25]OFD Sender: No OFD packet to send [19:23:30]OFD Sender: No OFD packet to send [19:23:35]OFD Sender: No OFD packet to send [19:23:40]OFD Sender: No OFD packet to send [19:23:45]OFD Sender: No OFD packet to send [19:23:50]OFD Sender: No OFD packet to send [19:23:55]OFD Sender: No OFD packet to send [19:24:00]OFD Sender: No OFD packet to send [19:24:05]OFD Sender: No OFD packet to send [19:24:10]OFD Sender: No OFD packet to send [19:24:15]OFD Sender: No OFD packet to send [19:24:20]OFD Sender: No OFD packet to send [19:24:25]OFD Sender: No OFD packet to send [19:24:30]OFD Sender: No OFD packet to send [19:24:35]OFD Sender: No OFD packet to send [19:24:40]OFD Sender: No OFD packet to send [19:24:45]OFD Sender: No OFD packet to send [19:24:50]OFD Sender: No OFD packet to send [19:24:55]OFD Sender: No OFD packet to send [19:25:00]OFD Sender: No OFD packet to send [19:25:05]OFD Sender: No OFD packet to send [19:25:10]OFD Sender: No OFD packet to send [19:25:15]OFD Sender: No OFD packet to send [19:25:20]OFD Sender: No OFD packet to send [19:25:25]OFD Sender: No OFD packet to send [19:25:30]OFD Sender: No OFD packet to send [19:25:35]OFD Sender: No OFD packet to send [19:25:40]OFD Sender: No OFD packet to send [19:25:45]OFD Sender: No OFD packet to send [19:25:50]OFD Sender: No OFD packet to send [19:25:55]OFD Sender: No OFD packet to send [19:26:00]OFD Sender: No OFD packet to send [19:26:05]OFD Sender: No OFD packet to send [19:26:10]OFD Sender: No OFD packet to send [19:26:15]OFD Sender: No OFD packet to send [19:26:20]OFD Sender: No OFD packet to send [19:26:25]OFD Sender: No OFD packet to send [19:26:30]OFD Sender: No OFD packet to send [19:26:35]OFD Sender: No OFD packet to send [19:26:40]OFD Sender: No OFD packet to send [19:26:45]OFD Sender: No OFD packet to send [19:26:50]OFD Sender: No OFD packet to send [19:26:55]OFD Sender: No OFD packet to send [19:27:00]OFD Sender: No OFD packet to send [19:27:05]accept exits with 7 [19:27:05]New connection [19:27:05]New thread 3066785124 created [19:27:05]Thread 3066928484 joined [19:27:05]Waiting for new connection... [19:27:05] Sock 7.Parse request [19:27:05]Sock 7.Check first char [19:27:05]Sock 7.First char is OK [19:27:05]request: POST /json_proto HTTP/1.0 [19:27:05]Method: POST [19:27:05]URL: /json_proto [19:27:05]Method is POST - this is cgi request [19:27:05]url: /json_proto [19:27:05]query_string will be loaded in cgi processing [19:27:05]execute_cgi json_proto POST (null) [19:27:05]execute_cgi path=json_proto method=POST [19:27:05]POST find Content-Length [19:27:05]Host: 172.17.56.4:8080 [19:27:05]Content-Length: 677 [19:27:05]Content-Type: application/json [19:27:05] [19:27:05]POST finish read [19:27:05]Found Content-Length = 677 [19:27:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459177", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.350, "sum" : 220.43, "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" ] } } [19:27:05]execute_script... [19: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)459177", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.350, "sum" : 220.43, "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" ] } } [19:27:05]POST & json_proto [19:27:05]process_json_proto [19:27:05]json parsed OK: [19:27:05]protocol is kg_v1.0 [19:27:05]action value=close_receipt [19:27:05]process_action close_receipt [19:27:05]cmd_close_receipt [19:27:05]MH_GetDate [19:27:05]Write to MH i2c: F0 00 00 72 04 65 [19:27:05]Write i2c OK [19:27:05]MH_I2C_Read... [19:27:05]Read from MH i2c: F0 [19:27:05]MH_I2C_Read... [19:27:05]Read from MH i2c: F0 09 00 [19:27:05]MH_I2C_Read... [19:27:05]Read from MH i2c: F0 09 00 72 04 00 8A 26 94 66 C9 DC B2 64 D3 [19:27:05]GetLastDocTimeStamp 1720984983 [19:27:05]current date 1720985226 [19:27:05]FM_GetShiftState [19:27:05]SAM_PROTO_GetShiftState [19:27:05]wFMCommunicate request_size=4 [19:27:05]MH_SAM_APDU [19:27:05]CAPDU: 80 13 01 00 [19:27:05]Write to MH i2c: E2 08 00 73 04 80 13 01 00 00 00 00 00 F4 [19:27:05]Write i2c OK [19:27:05]MH_I2C_Read... [19:27:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:27:05]Read from MH i2c: E2 [19:27:05]MH_I2C_Read... [19:27:05]Read from MH i2c: E2 0E 00 [19:27:05]MH_I2C_Read... [19:27:05]Read from MH i2c: E2 0E 00 73 04 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 74 [19:27:05]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [19:27:05]wFMCommunicate OK [19:27:05]SAM_PROTO_GetShiftState done [19:27:05]FM_GetShiftState done [19:27:05]opened in 1720917342 [19:27:05]opened+sec_in_day 1721003742 [19:27:05]quantity*price = 22043 [19:27:05]sum+1 = 22044 [19:27:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 220.00 Внесено: 220.00 СДАЧА: 0.00 НСП 1% : 1.95 НДС 12% : 23.41 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 272 14.07.2024 19:27 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165074 ФПД: 116662617340983 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T192706&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165074&fm=116662617340983&tin=02508201610067®Number=0000000000090829&sum=22000 [19:27:06]StoreToDocumentArchive [19:27:06]shift 447 fd 165074 [19:27:06]save to /storage/0447/doc_00165074 [19:27:06]save last doc name /storage/0447/doc_00165074 to /storage/kkm_last_doc_name [19:27:06]save OK [19:27:06]Clear old archive folders... [19:27:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:27:06]tlvbuf is 013B3220 [19:27:06]SAM_PROTO_ClearQueue [19:27:06]wFMCommunicate request_size=4 [19:27:06]MH_SAM_APDU [19:27:06]CAPDU: 80 09 00 00 [19:27:06]Write to MH i2c: E2 08 00 80 04 80 09 00 00 00 00 00 00 F6 [19:27:06]Write i2c OK [19:27:06]MH_I2C_Read... [19:27:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:27:06]Read from MH i2c: E2 [19:27:06]MH_I2C_Read... [19:27:06]Read from MH i2c: E2 03 00 [19:27:06]MH_I2C_Read... [19:27:06]Read from MH i2c: E2 03 00 80 04 00 90 00 F8 [19:27:06]RAPDU: 90 00 [19:27:06]wFMCommunicate OK [19:27:06]SAM_PROTO_ClearQueue done [19:27:06]KKMCreateOFDPacket [19:27:06]OFDProtocolAddRootSTLVToBuf [19:27:06]FM_MakeSignedData [19:27:06]FM_MakeSignedData [19:27:06]SAM_PROTO_SignData [19:27:06]wFMCommunicate request_size=4 [19:27:06]MH_SAM_APDU [19:27:06]CAPDU: 80 0D 01 02 [19:27:06]Write to MH i2c: E2 08 00 81 04 80 0D 01 02 00 00 00 00 FE [19:27:06]Write i2c OK [19:27:06]MH_I2C_Read... [19:27:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:27:06]Read from MH i2c: E2 [19:27:06]MH_I2C_Read... [19:27:06]Read from MH i2c: E2 03 00 [19:27:06]MH_I2C_Read... [19:27:06]Read from MH i2c: E2 03 00 81 04 00 90 00 F9 [19:27:06]RAPDU: 90 00 [19:27:06]wFMCommunicate OK [19:27:06]wFMCommunicate request_size=255 [19:27:06]MH_SAM_APDU [19: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 16 0D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 1B 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 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 10 01 00 00 F4 03 04 00 8A 26 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D2 84 02 00 35 04 06 00 6A [19:27:06]Write to MH i2c: E2 02 01 82 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 16 0D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 1B 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 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 10 01 00 00 F4 03 04 00 8A 26 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D2 84 02 00 35 04 06 00 6A 00 00 27 [19:27:06]Write i2c OK [19:27:06]MH_I2C_Read... [19:27:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:27:06]Read from MH i2c: E2 [19:27:06]MH_I2C_Read... [19:27:06]Read from MH i2c: E2 03 00 [19:27:06]MH_I2C_Read... [19:27:06]Read from MH i2c: E2 03 00 82 04 00 90 00 FA [19:27:06]RAPDU: 90 00 [19:27:06]wFMCommunicate OK [19:27:06]wFMCommunicate request_size=10 [19:27:06]MH_SAM_APDU [19:27:06]CAPDU: 80 0D 02 02 05 1A A1 DD 7C 37 [19:27:06]Write to MH i2c: E2 0D 00 83 04 80 0D 02 02 05 00 1A A1 DD 7C 37 00 00 56 [19:27:06]Write i2c OK [19:27:06]MH_I2C_Read... [19:27:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:27:06]Read from MH i2c: E2 [19:27:06]MH_I2C_Read... [19:27:06]Read from MH i2c: E2 03 00 [19:27:06]MH_I2C_Read... [19:27:06]Read from MH i2c: E2 03 00 83 04 00 90 00 FB [19:27:06]RAPDU: 90 00 [19:27:06]wFMCommunicate OK [19:27:06]wFMCommunicate request_size=4 [19:27:06]MH_SAM_APDU [19:27:06]CAPDU: 80 0D 03 02 [19:27:06]Write to MH i2c: E2 08 00 84 04 80 0D 03 02 00 00 00 00 03 [19:27:06]Write i2c OK [19:27:06]MH_I2C_Read... [19:27:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:27:07]Read from MH i2c: E2 [19:27:07]MH_I2C_Read... [19:27:07]Read from MH i2c: E2 0B 00 [19:27:07]MH_I2C_Read... [19:27:07]Read from MH i2c: E2 0B 00 84 04 00 92 B0 73 79 3C D5 31 5A 90 00 CE [19:27:07]RAPDU: 92 B0 73 79 3C D5 31 5A 90 00 [19:27:07]wFMCommunicate OK [19:27:07]SAM_PROTO_SignData done [19:27:07]FM_MakeSignedData done [19:27:07]CreateOFDProtocolMessage [19:27:07]wFMCommunicate request_size=4 [19:27:07]MH_SAM_APDU [19:27:07]CAPDU: 80 11 00 00 [19:27:07]Write to MH i2c: E2 08 00 85 04 80 11 00 00 00 00 00 00 03 [19:27:07]Write i2c OK [19:27:07]MH_I2C_Read... [19:27:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:27:07]Read from MH i2c: E2 [19:27:07]MH_I2C_Read... [19:27:07]Read from MH i2c: E2 17 00 [19:27:07]MH_I2C_Read... [19:27:07]Read from MH i2c: E2 17 00 85 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 59 [19:27:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:27:07]wFMCommunicate OK [19:27:07]CreateOFDProtocolMessage done [19:27:07]OFDSenderStorePacket 165074 [19:27:07]StoreOFDPacket docnum=165074 [19:27:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 62 2C 07 01 27 FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 16 0D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 1B 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 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 10 01 00 00 F4 03 04 00 8A 26 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D2 84 02 00 35 04 06 00 6A 1A A1 DD 7C 37 92 B0 73 79 3C D5 31 5A [19:27:07]CheckFolder [19:27:07]dirname=/storage/ofd_packets [19:27:07]CheckFolder done [19:27:07]ProducePacketName [19:27:07]name=ofd_packets/00165074 [19:27:07]NVStorageSaveData ofd_packets/00165074 [19:27:07]File name is /storage/ofd_packets/00165074 [19:27:07]Write 301 bytes [19:27:07]NVStorageSaveData done [19:27:07]OFDSenderStorePacket done [19:27:07]KKMCreateOFDPacket done [19:27:07]NVStorageSaveData kkm_last_timestamp [19:27:07]File name is /storage/kkm_last_timestamp [19:27:07]Write 4 bytes [19:27:07]NVStorageSaveData done [19:27:07]ExternCall_PrintAddStr [19:27:07]wPrintStart [19:27:07]Write to MH i2c: 01 00 00 86 04 8A [19:27:07]Write i2c OK [19:27:07]MH_I2C_Read... [19:27:07]Read from MH i2c: 01 [19:27:07]MH_I2C_Read... [19:27:07]Read from MH i2c: 01 07 00 [19:27:07]MH_I2C_Read... [19:27:07]Read from MH i2c: 01 07 00 86 04 00 00 00 00 00 FF 0F 9F [19:27:07]RasterBufferAndPrint [19:27:07]line Счет N : (1)459177 [19:27:07]line ИНН: 02508201610067 [19:27:07]line Контрольно-Кассовый Чек [19:27:07]line ПРОДАЖА [19:27:07]line ТРК (МРК, ГНК) : 22 [19:27:07]line Товар: 2710124130 [19:27:07]line Аи-92-К-5 [19:27:07]line 3.350 * 65.80 [19:27:07]line = 220.43 [19:27:07]line НДС 12% НСП 1% [19:27:07]line > о реализуемом товаре [19:27:07]line ОКРУГЛЕНИЕ: -0.43 [19:27:07]line ИТОГО: 220.00 [19:27:07]line Внесено: 220.00 [19:27:07]line СДАЧА: 0.00 [19:27:07]line НСП 1% : 1.95 [19:27:07]line НДС 12% : 23.41 [19:27:07]line Наличными: 220.00 [19:27:07]line Безнал.: 0.00 [19:27:07]line Место: АЗС № 72 "Партнер Нефть" [19:27:07]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:27:07]line СНО: Общий режим [19:27:07]line Чек 272 14.07.2024 19:27 [19:27:07]line Смена: 447 ФФД: 1.0 [19:27:07]line ЗНМ: 0300000160 [19:27:07]line РНМ: 0000000000090829 [19:27:07]line Версия ККМ: 001 [19:27:07]line ФМ: 0000000000874718 [19:27:07]line ФД: 165074 [19:27:07]line ФПД: 116662617340983 [19:27:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T192706&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165074&fm=116662617340983&tin=02508201610067®Number=0000000000090829&sum=22000 [19:27:07]OFD Sender: Processing packet 165074 [packets to send 106, broken 105] [19:27:07]ProducePacketName [19:27:07]name=ofd_packets/00165074 [19:27:07]OFD Sender: To server: pG, [19:27:07]CommunicateWithHost lk.salyk.kg:30040 [19:27:07]ConnectInit lk.salyk.kg [19:27:07]written 0, free lines is 4095 [19:27:07]Connected sock=10 [19:27:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 62 2C 07 01 27 FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 16 0D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 1B 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 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 10 01 00 00 F4 03 04 00 8A 26 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D2 84 02 00 35 04 06 00 6A 1A A1 DD 7C 37 92 B0 73 79 3C D5 31 5A [19:27:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 AA C0 47 00 A9 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D2 84 02 00 F4 03 04 00 17 CD 93 66 B6 04 01 00 00 DA 63 74 26 BB 56 16 9A [19:27:07]CommunicateWithHost err = 0 [19:27:07]CheckOFDResponse [19:27:07]1017 (14) - 77093643461234 [19:27:07]1041 (16) - 0000000000874718 [19:27:07]1040 (4) - 165074 [19:27:07]1012 (4) - 14.07.2024 13:05 [19:27:07]1206 (1) - 0 [19:27:07]OFD Sender: Remove packet 165074 [19:27:07]ProducePacketName [19:27:07]name=ofd_packets/00165074 [19:27:07]NVStorageDeleteData [19:27:07]Write to MH i2c: 01 00 00 B0 04 B4 [19:27:07]Write i2c OK [19:27:07]MH_I2C_Read... [19:27:07]Read from MH i2c: 01 [19:27:07]MH_I2C_Read... [19:27:07]Read from MH i2c: 01 07 00 [19:27:07]MH_I2C_Read... [19:27:07]Read from MH i2c: 01 07 00 B0 04 00 00 00 00 00 F0 0C B7 [19:27:07]RasterBufferAndPrint [19:27:07]line [19:27:07]line [19:27:07]line [19:27:07]line [19:27:07]line [19:27:07]written 0, free lines is 3319 [19:27:07]MH_Cut [19:27:07]Write to MH i2c: D1 01 00 B7 04 01 8D [19:27:07]Write i2c OK [19:27:07]MH_I2C_Read... [19:27:07]Read from MH i2c: D1 [19:27:07]MH_I2C_Read... [19:27:07]Read from MH i2c: D1 01 00 [19:27:07]MH_I2C_Read... [19:27:07]Read from MH i2c: D1 01 00 B7 04 00 8C [19:27:07]Write to MH i2c: 01 00 00 B8 04 BC [19:27:07]Write i2c OK [19:27:07]MH_I2C_Read... [19:27:08]OFD Sender: No OFD packet to send [19:27:08]*** Cut start [19:27:08]*** Partial cut [19:27:08]*** CUTSNS_PIN = 1 [19:27:08]*** CUTSNS_PIN = 0 [19:27:08]*** Brake cut motor [19:27:09]Read from MH i2c: 01 [19:27:09]MH_I2C_Read... [19:27:09]*** Stop cut motor [19:27:09]*** Cut end [19:27:09]Read from MH i2c: 01 07 00 [19:27:09]MH_I2C_Read... [19:27:09]Read from MH i2c: 01 07 00 B8 04 00 00 00 00 00 FF 0F D1 [19:27:09]process_action close_receipt done [19:27:09]requested_data is exist [19:27:09]produce_requested_data [19:27:09]requested_item fm.sn is exist - process it [19:27:09]wFMCommunicate request_size=4 [19:27:09]MH_SAM_APDU [19:27:09]CAPDU: 80 11 00 00 [19:27:09]Write to MH i2c: E2 08 00 B9 04 80 11 00 00 00 00 00 00 37 [19:27:09]Write i2c OK [19:27:09]MH_I2C_Read... [19:27:09]Read from MH i2c: E2 [19:27:09]MH_I2C_Read... [19:27:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:27:09]Read from MH i2c: E2 17 00 [19:27:09]MH_I2C_Read... [19:27:09]Read from MH i2c: E2 17 00 B9 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 8D [19:27:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:27:09]wFMCommunicate OK [19:27:09]requested_item fd.num is exist - process it [19:27:09]SAM_PROTO_GetFieldsCounters [19:27:09]wFMCommunicate request_size=4 [19:27:09]MH_SAM_APDU [19:27:09]CAPDU: 80 13 00 00 [19:27:09]Write to MH i2c: E2 08 00 BA 04 80 13 00 00 00 00 00 00 3A [19:27:09]Write i2c OK [19:27:09]MH_I2C_Read... [19:27:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:27:09]Read from MH i2c: E2 [19:27:09]MH_I2C_Read... [19:27:09]Read from MH i2c: E2 62 00 [19:27:09]MH_I2C_Read... [19:27:09]Read from MH i2c: E2 62 00 BA 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D2 84 02 00 0E 04 04 00 BF 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 AC [19:27:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D2 84 02 00 0E 04 04 00 BF 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 [19:27:09]wFMCommunicate OK [19:27:09]SAM_PROTO_GetFieldsCounters done [19:27:09]requested_item shift.num is exist - process it [19:27:09]requested_item shift.opened is exist - process it [19:27:09]req_shift_opened [19:27:09]FM_GetShiftState [19:27:09]SAM_PROTO_GetShiftState [19:27:09]wFMCommunicate request_size=4 [19:27:09]MH_SAM_APDU [19:27:09]CAPDU: 80 13 01 00 [19:27:09]Write to MH i2c: E2 08 00 BB 04 80 13 01 00 00 00 00 00 3C [19:27:09]Write i2c OK [19:27:09]MH_I2C_Read... [19:27:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:27:09]Read from MH i2c: E2 [19:27:09]MH_I2C_Read... [19:27:09]Read from MH i2c: E2 0E 00 [19:27:09]MH_I2C_Read... [19:27:09]Read from MH i2c: E2 0E 00 BB 04 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 BC [19:27:09]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [19:27:09]wFMCommunicate OK [19:27:09]SAM_PROTO_GetShiftState done [19:27:09]FM_GetShiftState done [19:27:09]req_shift_opened done [19:27:09]requested_item shift.open_date is exist - process it [19:27:09]req_shift_open_date [19:27:09]req_shift_open_date done [19:27:09]produce_requested_data done [19:27:09]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165074,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [19:27:09]process_action_free close_receipt [19:27:09]json_value_free [19:27:09]json_value_free done [19:27:09]process_json_proto returns [19:27:09]Send response to host [19:27:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165074,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [19:27:09]free response buf [19:27:09]execute_script done [19:27:09]execute_script returns [19:27:09]free content buf [19:27:09]Sock 7.Close socket [19:27:09]Sock 7.Thread stoped [19:27:13]OFD Sender: No OFD packet to send [19:27:18]OFD Sender: No OFD packet to send [19:27:23]OFD Sender: No OFD packet to send [19:27:28]OFD Sender: No OFD packet to send [19:27:33]OFD Sender: No OFD packet to send [19:27:38]OFD Sender: No OFD packet to send [19:27:43]OFD Sender: No OFD packet to send [19:27:48]OFD Sender: No OFD packet to send [19:27:53]OFD Sender: No OFD packet to send [19:27:58]OFD Sender: No OFD packet to send [19:28:03]OFD Sender: No OFD packet to send [19:28:08]OFD Sender: No OFD packet to send [19:28:13]OFD Sender: No OFD packet to send [19:28:18]OFD Sender: No OFD packet to send [19:28:23]OFD Sender: No OFD packet to send [19:28:28]OFD Sender: No OFD packet to send [19:28:33]OFD Sender: No OFD packet to send [19:28:38]OFD Sender: No OFD packet to send [19:28:41]accept exits with 9 [19:28:41]New connection [19:28:41]New thread 3066928484 created [19:28:41]Thread 3066785124 joined [19:28:41]Waiting for new connection... [19:28:41] Sock 9.Parse request [19:28:41]Sock 9.Check first char [19:28:41]Sock 9.First char is OK [19:28:41]request: POST /json_proto HTTP/1.0 [19:28:41]Method: POST [19:28:41]URL: /json_proto [19:28:41]Method is POST - this is cgi request [19:28:41]url: /json_proto [19:28:41]query_string will be loaded in cgi processing [19:28:41]execute_cgi json_proto POST (null) [19:28:41]execute_cgi path=json_proto method=POST [19:28:41]POST find Content-Length [19:28:41]Host: 172.17.56.4:8080 [19:28:41]Content-Length: 677 [19:28:41]Content-Type: application/json [19:28:41] [19:28:41]POST finish read [19:28:41]Found Content-Length = 677 [19:28:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459178", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:28:41]execute_script... [19:28:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459178", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:28:41]POST & json_proto [19:28:41]process_json_proto [19:28:41]json parsed OK: [19:28:41]protocol is kg_v1.0 [19:28:41]action value=close_receipt [19:28:41]process_action close_receipt [19:28:41]cmd_close_receipt [19:28:41]MH_GetDate [19:28:41]Write to MH i2c: F0 00 00 BC 04 AF [19:28:41]Write i2c OK [19:28:41]MH_I2C_Read... [19:28:41]Read from MH i2c: F0 [19:28:41]MH_I2C_Read... [19:28:41]Read from MH i2c: F0 09 00 [19:28:41]MH_I2C_Read... [19:28:41]Read from MH i2c: F0 09 00 BC 04 00 EA 26 94 66 C9 DC B2 64 7D [19:28:41]GetLastDocTimeStamp 1720985226 [19:28:41]current date 1720985322 [19:28:41]FM_GetShiftState [19:28:41]SAM_PROTO_GetShiftState [19:28:41]wFMCommunicate request_size=4 [19:28:41]MH_SAM_APDU [19:28:41]CAPDU: 80 13 01 00 [19:28:41]Write to MH i2c: E2 08 00 BD 04 80 13 01 00 00 00 00 00 3E [19:28:41]Write i2c OK [19:28:41]MH_I2C_Read... [19:28:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:28:41]Read from MH i2c: E2 [19:28:41]MH_I2C_Read... [19:28:41]Read from MH i2c: E2 0E 00 [19:28:41]MH_I2C_Read... [19:28:41]Read from MH i2c: E2 0E 00 BD 04 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 BE [19:28:41]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [19:28:41]wFMCommunicate OK [19:28:41]SAM_PROTO_GetShiftState done [19:28:41]FM_GetShiftState done [19:28:41]opened in 1720917342 [19:28:41]opened+sec_in_day 1721003742 [19:28:41]quantity*price = 40006 [19:28:41]sum+1 = 40007 [19:28:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 273 14.07.2024 19:28 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165075 ФПД: 69752521143778 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T192842&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165075&fm=69752521143778&tin=02508201610067®Number=0000000000090829&sum=40000 [19:28:42]StoreToDocumentArchive [19:28:42]shift 447 fd 165075 [19:28:42]save to /storage/0447/doc_00165075 [19:28:42]save last doc name /storage/0447/doc_00165075 to /storage/kkm_last_doc_name [19:28:42]save OK [19:28:42]Clear old archive folders... [19:28:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:28:42]tlvbuf is 013A7860 [19:28:42]SAM_PROTO_ClearQueue [19:28:42]wFMCommunicate request_size=4 [19:28:42]MH_SAM_APDU [19:28:42]CAPDU: 80 09 00 00 [19:28:42]Write to MH i2c: E2 08 00 CA 04 80 09 00 00 00 00 00 00 40 [19:28:42]Write i2c OK [19:28:42]MH_I2C_Read... [19:28:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:28:42]Read from MH i2c: E2 [19:28:42]MH_I2C_Read... [19:28:42]Read from MH i2c: E2 03 00 [19:28:42]MH_I2C_Read... [19:28:42]Read from MH i2c: E2 03 00 CA 04 00 90 00 42 [19:28:42]RAPDU: 90 00 [19:28:42]wFMCommunicate OK [19:28:42]SAM_PROTO_ClearQueue done [19:28:42]KKMCreateOFDPacket [19:28:42]OFDProtocolAddRootSTLVToBuf [19:28:42]FM_MakeSignedData [19:28:42]FM_MakeSignedData [19:28:42]SAM_PROTO_SignData [19:28:42]wFMCommunicate request_size=4 [19:28:42]MH_SAM_APDU [19:28:42]CAPDU: 80 0D 01 02 [19:28:42]Write to MH i2c: E2 08 00 CB 04 80 0D 01 02 00 00 00 00 48 [19:28:42]Write i2c OK [19:28:42]MH_I2C_Read... [19:28:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:28:42]Read from MH i2c: E2 [19:28:42]MH_I2C_Read... [19:28:42]Read from MH i2c: E2 03 00 [19:28:42]MH_I2C_Read... [19:28:42]Read from MH i2c: E2 03 00 CB 04 00 90 00 43 [19:28:42]RAPDU: 90 00 [19:28:42]wFMCommunicate OK [19:28:42]wFMCommunicate request_size=255 [19:28:42]MH_SAM_APDU [19:28:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 11 01 00 00 F4 03 04 00 EA 26 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D3 84 02 00 35 04 06 00 3F [19:28:42]Write to MH i2c: E2 02 01 CC 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 11 01 00 00 F4 03 04 00 EA 26 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D3 84 02 00 35 04 06 00 3F 00 00 15 [19:28:42]Write i2c OK [19:28:42]MH_I2C_Read... [19:28:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:28:42]Read from MH i2c: E2 [19:28:42]MH_I2C_Read... [19:28:42]Read from MH i2c: E2 03 00 [19:28:42]MH_I2C_Read... [19:28:42]Read from MH i2c: E2 03 00 CC 04 00 90 00 44 [19:28:42]RAPDU: 90 00 [19:28:42]wFMCommunicate OK [19:28:42]wFMCommunicate request_size=10 [19:28:42]MH_SAM_APDU [19:28:42]CAPDU: 80 0D 02 02 05 70 86 3E B5 E2 [19:28:42]Write to MH i2c: E2 0D 00 CD 04 80 0D 02 02 05 00 70 86 3E B5 E2 00 00 20 [19:28:42]Write i2c OK [19:28:42]MH_I2C_Read... [19:28:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:28:42]Read from MH i2c: E2 [19:28:42]MH_I2C_Read... [19:28:42]Read from MH i2c: E2 03 00 [19:28:42]MH_I2C_Read... [19:28:42]Read from MH i2c: E2 03 00 CD 04 00 90 00 45 [19:28:42]RAPDU: 90 00 [19:28:42]wFMCommunicate OK [19:28:42]wFMCommunicate request_size=4 [19:28:42]MH_SAM_APDU [19:28:42]CAPDU: 80 0D 03 02 [19:28:42]Write to MH i2c: E2 08 00 CE 04 80 0D 03 02 00 00 00 00 4D [19:28:42]Write i2c OK [19:28:42]MH_I2C_Read... [19:28:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:28:42]Read from MH i2c: E2 [19:28:42]MH_I2C_Read... [19:28:42]Read from MH i2c: E2 0B 00 [19:28:42]MH_I2C_Read... [19:28:42]Read from MH i2c: E2 0B 00 CE 04 00 28 25 0B 6B C1 35 F1 15 90 00 0D [19:28:42]RAPDU: 28 25 0B 6B C1 35 F1 15 90 00 [19:28:42]wFMCommunicate OK [19:28:42]SAM_PROTO_SignData done [19:28:42]FM_MakeSignedData done [19:28:42]CreateOFDProtocolMessage [19:28:42]wFMCommunicate request_size=4 [19:28:42]MH_SAM_APDU [19:28:42]CAPDU: 80 11 00 00 [19:28:42]Write to MH i2c: E2 08 00 CF 04 80 11 00 00 00 00 00 00 4D [19:28:42]Write i2c OK [19:28:42]MH_I2C_Read... [19:28:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:28:43]Read from MH i2c: E2 [19:28:43]MH_I2C_Read... [19:28:43]Read from MH i2c: E2 17 00 [19:28:43]MH_I2C_Read... [19:28:43]Read from MH i2c: E2 17 00 CF 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A3 [19:28:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:28:43]wFMCommunicate OK [19:28:43]CreateOFDProtocolMessage done [19:28:43]OFDSenderStorePacket 165075 [19:28:43]StoreOFDPacket docnum=165075 [19:28:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 11 E7 07 01 9D 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 11 01 00 00 F4 03 04 00 EA 26 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D3 84 02 00 35 04 06 00 3F 70 86 3E B5 E2 28 25 0B 6B C1 35 F1 15 [19:28:43]CheckFolder [19:28:43]dirname=/storage/ofd_packets [19:28:43]CheckFolder done [19:28:43]ProducePacketName [19:28:43]name=ofd_packets/00165075 [19:28:43]NVStorageSaveData ofd_packets/00165075 [19:28:43]File name is /storage/ofd_packets/00165075 [19:28:43]Write 301 bytes [19:28:43]NVStorageSaveData done [19:28:43]OFDSenderStorePacket done [19:28:43]KKMCreateOFDPacket done [19:28:43]NVStorageSaveData kkm_last_timestamp [19:28:43]File name is /storage/kkm_last_timestamp [19:28:43]Write 4 bytes [19:28:43]NVStorageSaveData done [19:28:43]ExternCall_PrintAddStr [19:28:43]wPrintStart [19:28:43]Write to MH i2c: 01 00 00 D0 04 D4 [19:28:43]Write i2c OK [19:28:43]MH_I2C_Read... [19:28:43]Read from MH i2c: 01 [19:28:43]MH_I2C_Read... [19:28:43]Read from MH i2c: 01 07 00 [19:28:43]MH_I2C_Read... [19:28:43]Read from MH i2c: 01 07 00 D0 04 00 00 00 00 00 FF 0F E9 [19:28:43]RasterBufferAndPrint [19:28:43]line Счет N : (1)459178 [19:28:43]line ИНН: 02508201610067 [19:28:43]line Контрольно-Кассовый Чек [19:28:43]line ПРОДАЖА [19:28:43]line ТРК (МРК, ГНК) : 12 [19:28:43]line Товар: 2710124130 [19:28:43]line Аи-92-К-5 [19:28:43]line 6.080 * 65.80 [19:28:43]line = 400.06 [19:28:43]line НДС 12% НСП 1% [19:28:43]line > о реализуемом товаре [19:28:43]line ОКРУГЛЕНИЕ: -0.06 [19:28:43]line ИТОГО: 400.00 [19:28:43]line Внесено: 400.00 [19:28:43]line СДАЧА: 0.00 [19:28:43]line НСП 1% : 3.54 [19:28:43]line НДС 12% : 42.48 [19:28:43]line Наличными: 400.00 [19:28:43]line Безнал.: 0.00 [19:28:43]line Место: АЗС № 72 "Партнер Нефть" [19:28:43]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:28:43]line СНО: Общий режим [19:28:43]line Чек 273 14.07.2024 19:28 [19:28:43]line Смена: 447 ФФД: 1.0 [19:28:43]line ЗНМ: 0300000160 [19:28:43]line РНМ: 0000000000090829 [19:28:43]line Версия ККМ: 001 [19:28:43]line ФМ: 0000000000874718 [19:28:43]line ФД: 165075 [19:28:43]line ФПД: 69752521143778 [19:28:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T192842&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165075&fm=69752521143778&tin=02508201610067®Number=0000000000090829&sum=40000 [19:28:43]OFD Sender: Processing packet 165075 [packets to send 106, broken 105] [19:28:43]ProducePacketName [19:28:43]name=ofd_packets/00165075 [19:28:43]OFD Sender: To server: pG, [19:28:43]CommunicateWithHost lk.salyk.kg:30040 [19:28:43]ConnectInit lk.salyk.kg [19:28:43]written 0, free lines is 4095 [19:28:43]Connected sock=10 [19:28:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 11 E7 07 01 9D 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 11 01 00 00 F4 03 04 00 EA 26 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D3 84 02 00 35 04 06 00 3F 70 86 3E B5 E2 28 25 0B 6B C1 35 F1 15 [19:28:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 66 D2 47 00 C0 A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D3 84 02 00 F4 03 04 00 77 CD 93 66 B6 04 01 00 00 F1 2C 0C F6 5D 95 69 C9 [19:28:43]CommunicateWithHost err = 0 [19:28:43]CheckOFDResponse [19:28:43]1017 (14) - 77093643461234 [19:28:43]1041 (16) - 0000000000874718 [19:28:43]1040 (4) - 165075 [19:28:43]1012 (4) - 14.07.2024 13:07 [19:28:43]1206 (1) - 0 [19:28:43]OFD Sender: Remove packet 165075 [19:28:43]ProducePacketName [19:28:43]name=ofd_packets/00165075 [19:28:43]NVStorageDeleteData [19:28:43]Write to MH i2c: 01 00 00 FA 04 FE [19:28:43]Write i2c OK [19:28:43]MH_I2C_Read... [19:28:43]Read from MH i2c: 01 [19:28:43]MH_I2C_Read... [19:28:43]Read from MH i2c: 01 07 00 [19:28:43]MH_I2C_Read... [19:28:43]Read from MH i2c: 01 07 00 FA 04 00 00 00 00 00 ED 0C FE [19:28:43]RasterBufferAndPrint [19:28:43]line [19:28:43]line [19:28:43]line [19:28:43]line [19:28:43]line [19:28:43]written 0, free lines is 3315 [19:28:43]MH_Cut [19:28:43]Write to MH i2c: D1 01 00 01 05 01 D8 [19:28:43]Write i2c OK [19:28:43]MH_I2C_Read... [19:28:43]Read from MH i2c: D1 [19:28:43]MH_I2C_Read... [19:28:43]Read from MH i2c: D1 01 00 [19:28:43]MH_I2C_Read... [19:28:43]Read from MH i2c: D1 01 00 01 05 00 D7 [19:28:43]Write to MH i2c: 01 00 00 02 05 07 [19:28:43]Write i2c OK [19:28:43]MH_I2C_Read... [19:28:44]OFD Sender: No OFD packet to send [19:28:44]*** Cut start [19:28:44]*** Partial cut [19:28:44]*** CUTSNS_PIN = 1 [19:28:44]*** CUTSNS_PIN = 0 [19:28:44]*** Brake cut motor [19:28:45]Read from MH i2c: 01 [19:28:45]MH_I2C_Read... [19:28:45]*** Stop cut motor [19:28:45]*** Cut end [19:28:45]Read from MH i2c: 01 07 00 [19:28:45]MH_I2C_Read... [19:28:45]Read from MH i2c: 01 07 00 02 05 00 00 00 00 00 FF 0F 1C [19:28:45]process_action close_receipt done [19:28:45]requested_data is exist [19:28:45]produce_requested_data [19:28:45]requested_item fm.sn is exist - process it [19:28:45]wFMCommunicate request_size=4 [19:28:45]MH_SAM_APDU [19:28:45]CAPDU: 80 11 00 00 [19:28:45]Write to MH i2c: E2 08 00 03 05 80 11 00 00 00 00 00 00 82 [19:28:45]Write i2c OK [19:28:45]MH_I2C_Read... [19:28:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:28:45]Read from MH i2c: E2 [19:28:45]MH_I2C_Read... [19:28:45]Read from MH i2c: E2 17 00 [19:28:45]MH_I2C_Read... [19:28:45]Read from MH i2c: E2 17 00 03 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D8 [19:28:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:28:45]wFMCommunicate OK [19:28:45]requested_item fd.num is exist - process it [19:28:45]SAM_PROTO_GetFieldsCounters [19:28:45]wFMCommunicate request_size=4 [19:28:45]MH_SAM_APDU [19:28:45]CAPDU: 80 13 00 00 [19:28:45]Write to MH i2c: E2 08 00 04 05 80 13 00 00 00 00 00 00 85 [19:28:45]Write i2c OK [19:28:45]MH_I2C_Read... [19:28:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:28:45]Read from MH i2c: E2 [19:28:45]MH_I2C_Read... [19:28:45]Read from MH i2c: E2 62 00 [19:28:45]MH_I2C_Read... [19:28:45]Read from MH i2c: E2 62 00 04 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D3 84 02 00 0E 04 04 00 BF 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 FB [19:28:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D3 84 02 00 0E 04 04 00 BF 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 [19:28:45]wFMCommunicate OK [19:28:45]SAM_PROTO_GetFieldsCounters done [19:28:45]requested_item shift.num is exist - process it [19:28:45]requested_item shift.opened is exist - process it [19:28:45]req_shift_opened [19:28:45]FM_GetShiftState [19:28:45]SAM_PROTO_GetShiftState [19:28:45]wFMCommunicate request_size=4 [19:28:45]MH_SAM_APDU [19:28:45]CAPDU: 80 13 01 00 [19:28:45]Write to MH i2c: E2 08 00 05 05 80 13 01 00 00 00 00 00 87 [19:28:45]Write i2c OK [19:28:45]MH_I2C_Read... [19:28:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:28:45]Read from MH i2c: E2 [19:28:45]MH_I2C_Read... [19:28:45]Read from MH i2c: E2 0E 00 [19:28:45]MH_I2C_Read... [19:28:45]Read from MH i2c: E2 0E 00 05 05 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 07 [19:28:45]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [19:28:45]wFMCommunicate OK [19:28:45]SAM_PROTO_GetShiftState done [19:28:45]FM_GetShiftState done [19:28:45]req_shift_opened done [19:28:45]requested_item shift.open_date is exist - process it [19:28:45]req_shift_open_date [19:28:45]req_shift_open_date done [19:28:45]produce_requested_data done [19:28:45]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165075,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [19:28:45]process_action_free close_receipt [19:28:45]json_value_free [19:28:45]json_value_free done [19:28:45]process_json_proto returns [19:28:45]Send response to host [19:28:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165075,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [19:28:45]free response buf [19:28:45]execute_script done [19:28:45]execute_script returns [19:28:45]free content buf [19:28:45]Sock 9.Close socket [19:28:45]Sock 9.Thread stoped [19:28:49]OFD Sender: No OFD packet to send [19:28:54]OFD Sender: No OFD packet to send [19:28:59]OFD Sender: No OFD packet to send [19:29:04]OFD Sender: No OFD packet to send [19:29:09]OFD Sender: No OFD packet to send [19:29:14]OFD Sender: No OFD packet to send [19:29:19]OFD Sender: No OFD packet to send [19:29:24]OFD Sender: No OFD packet to send [19:29:29]OFD Sender: No OFD packet to send [19:29:34]OFD Sender: No OFD packet to send [19:29:39]OFD Sender: No OFD packet to send [19:29:44]OFD Sender: No OFD packet to send [19:29:49]OFD Sender: No OFD packet to send [19:29:54]OFD Sender: No OFD packet to send [19:29:59]OFD Sender: No OFD packet to send [19:30:04]OFD Sender: No OFD packet to send [19:30:09]OFD Sender: No OFD packet to send [19:30:14]OFD Sender: No OFD packet to send [19:30:19]OFD Sender: No OFD packet to send [19:30:22]accept exits with 7 [19:30:22]New connection [19:30:22]New thread 3066785124 created [19:30:22]Thread 3066928484 joined [19:30:22]Waiting for new connection... [19:30:22] Sock 7.Parse request [19:30:22]Sock 7.Check first char [19:30:22]Sock 7.First char is OK [19:30:22]request: POST /json_proto HTTP/1.0 [19:30:22]Method: POST [19:30:22]URL: /json_proto [19:30:22]Method is POST - this is cgi request [19:30:22]url: /json_proto [19:30:22]query_string will be loaded in cgi processing [19:30:22]execute_cgi json_proto POST (null) [19:30:22]execute_cgi path=json_proto method=POST [19:30:22]POST find Content-Length [19:30:22]Host: 172.17.56.4:8080 [19:30:22]Content-Length: 679 [19:30:22]Content-Type: application/json [19:30:22] [19:30:22]POST finish read [19:30:22]Found Content-Length = 679 [19:30:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459179", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 23.650, "sum" : 1700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1700.00, "payments": [ { "type": 0, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:30:22]execute_script... [19:30: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)459179", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 23.650, "sum" : 1700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1700.00, "payments": [ { "type": 0, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:30:22]POST & json_proto [19:30:22]process_json_proto [19:30:22]json parsed OK: [19:30:22]protocol is kg_v1.0 [19:30:22]action value=close_receipt [19:30:22]process_action close_receipt [19:30:22]cmd_close_receipt [19:30:22]MH_GetDate [19:30:22]Write to MH i2c: F0 00 00 06 05 FA [19:30:22]Write i2c OK [19:30:22]MH_I2C_Read... [19:30:22]Read from MH i2c: F0 [19:30:22]MH_I2C_Read... [19:30:22]Read from MH i2c: F0 09 00 [19:30:22]MH_I2C_Read... [19:30:22]Read from MH i2c: F0 09 00 06 05 00 50 27 94 66 C9 DC B2 64 2F [19:30:22]GetLastDocTimeStamp 1720985322 [19:30:22]current date 1720985424 [19:30:22]FM_GetShiftState [19:30:22]SAM_PROTO_GetShiftState [19:30:22]wFMCommunicate request_size=4 [19:30:22]MH_SAM_APDU [19:30:22]CAPDU: 80 13 01 00 [19:30:22]Write to MH i2c: E2 08 00 07 05 80 13 01 00 00 00 00 00 89 [19:30:22]Write i2c OK [19:30:22]MH_I2C_Read... [19:30:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:30:23]Read from MH i2c: E2 [19:30:23]MH_I2C_Read... [19:30:23]Read from MH i2c: E2 0E 00 [19:30:23]MH_I2C_Read... [19:30:23]Read from MH i2c: E2 0E 00 07 05 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 09 [19:30:23]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [19:30:23]wFMCommunicate OK [19:30:23]SAM_PROTO_GetShiftState done [19:30:23]FM_GetShiftState done [19:30:23]opened in 1720917342 [19:30:23]opened+sec_in_day 1721003742 [19:30:23]quantity*price = 170043 [19:30:23]sum+1 = 170045 [19:30:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 1700.00 Внесено: 1700.00 СДАЧА: 0.00 НСП 1% : 15.05 НДС 12% : 180.58 Наличными: 1700.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 274 14.07.2024 19:30 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165076 ФПД: 100468464782359 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T193024&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165076&fm=100468464782359&tin=02508201610067®Number=0000000000090829&sum=170000 [19:30:24]StoreToDocumentArchive [19:30:24]shift 447 fd 165076 [19:30:24]save to /storage/0447/doc_00165076 [19:30:24]save last doc name /storage/0447/doc_00165076 to /storage/kkm_last_doc_name [19:30:24]save OK [19:30:24]Clear old archive folders... [19:30:24]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:30:24]tlvbuf is 013A4B30 [19:30:24]SAM_PROTO_ClearQueue [19:30:24]wFMCommunicate request_size=4 [19:30:24]MH_SAM_APDU [19:30:24]CAPDU: 80 09 00 00 [19:30:24]Write to MH i2c: E2 08 00 14 05 80 09 00 00 00 00 00 00 8B [19:30:24]Write i2c OK [19:30:24]MH_I2C_Read... [19:30:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:30:24]Read from MH i2c: E2 [19:30:24]MH_I2C_Read... [19:30:24]Read from MH i2c: E2 03 00 [19:30:24]MH_I2C_Read... [19:30:24]Read from MH i2c: E2 03 00 14 05 00 90 00 8D [19:30:24]RAPDU: 90 00 [19:30:24]wFMCommunicate OK [19:30:24]SAM_PROTO_ClearQueue done [19:30:24]KKMCreateOFDPacket [19:30:24]OFDProtocolAddRootSTLVToBuf [19:30:24]FM_MakeSignedData [19:30:24]FM_MakeSignedData [19:30:24]SAM_PROTO_SignData [19:30:24]wFMCommunicate request_size=4 [19:30:24]MH_SAM_APDU [19:30:24]CAPDU: 80 0D 01 02 [19:30:24]Write to MH i2c: E2 08 00 15 05 80 0D 01 02 00 00 00 00 93 [19:30:24]Write i2c OK [19:30:24]MH_I2C_Read... [19:30:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:30:24]Read from MH i2c: E2 [19:30:24]MH_I2C_Read... [19:30:24]Read from MH i2c: E2 03 00 [19:30:24]MH_I2C_Read... [19:30:24]Read from MH i2c: E2 03 00 15 05 00 90 00 8E [19:30:24]RAPDU: 90 00 [19:30:24]wFMCommunicate OK [19:30:24]wFMCommunicate request_size=255 [19:30:24]MH_SAM_APDU [19:30: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 62 5C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 3C 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 8A 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 12 01 00 00 F4 03 04 00 50 27 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D4 84 02 00 35 04 06 00 5B 60 23 27 [19:30:24]Write to MH i2c: E2 02 01 16 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 62 5C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 3C 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 8A 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 12 01 00 00 F4 03 04 00 50 27 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D4 84 02 00 35 04 06 00 5B 60 23 27 00 00 69 [19:30:24]Write i2c OK [19:30:24]MH_I2C_Read... [19:30:24]OFD Sender: No OFD packet to send [19:30:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:30:24]Read from MH i2c: E2 [19:30:24]MH_I2C_Read... [19:30:24]Read from MH i2c: E2 03 00 [19:30:24]MH_I2C_Read... [19:30:24]Read from MH i2c: E2 03 00 16 05 00 90 00 8F [19:30:24]RAPDU: 90 00 [19:30:24]wFMCommunicate OK [19:30:24]wFMCommunicate request_size=7 [19:30:24]MH_SAM_APDU [19:30:24]CAPDU: 80 0D 02 02 02 8C 17 [19:30:24]Write to MH i2c: E2 0A 00 17 05 80 0D 02 02 02 00 8C 17 00 00 3D [19:30:24]Write i2c OK [19:30:24]MH_I2C_Read... [19:30:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:30:24]Read from MH i2c: E2 [19:30:24]MH_I2C_Read... [19:30:24]Read from MH i2c: E2 03 00 [19:30:24]MH_I2C_Read... [19:30:24]Read from MH i2c: E2 03 00 17 05 00 90 00 90 [19:30:24]RAPDU: 90 00 [19:30:24]wFMCommunicate OK [19:30:24]wFMCommunicate request_size=4 [19:30:24]MH_SAM_APDU [19:30:24]CAPDU: 80 0D 03 02 [19:30:24]Write to MH i2c: E2 08 00 18 05 80 0D 03 02 00 00 00 00 98 [19:30:24]Write i2c OK [19:30:24]MH_I2C_Read... [19:30:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:30:24]Read from MH i2c: E2 [19:30:24]MH_I2C_Read... [19:30:24]Read from MH i2c: E2 0B 00 [19:30:24]MH_I2C_Read... [19:30:24]Read from MH i2c: E2 0B 00 18 05 00 B9 E7 40 C1 C6 EE E5 13 90 00 E6 [19:30:24]RAPDU: B9 E7 40 C1 C6 EE E5 13 90 00 [19:30:24]wFMCommunicate OK [19:30:24]SAM_PROTO_SignData done [19:30:24]FM_MakeSignedData done [19:30:24]CreateOFDProtocolMessage [19:30:24]wFMCommunicate request_size=4 [19:30:24]MH_SAM_APDU [19:30:24]CAPDU: 80 11 00 00 [19:30:24]Write to MH i2c: E2 08 00 19 05 80 11 00 00 00 00 00 00 98 [19:30:24]Write i2c OK [19:30:24]MH_I2C_Read... [19:30:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:30:24]Read from MH i2c: E2 [19:30:24]MH_I2C_Read... [19:30:24]Read from MH i2c: E2 17 00 [19:30:24]MH_I2C_Read... [19:30:24]Read from MH i2c: E2 17 00 19 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 EE [19:30:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:30:24]wFMCommunicate OK [19:30:24]CreateOFDProtocolMessage done [19:30:24]OFDSenderStorePacket 165076 [19:30:24]StoreOFDPacket docnum=165076 [19:30:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 D4 7E 04 01 12 65 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 62 5C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 3C 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 8A 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 12 01 00 00 F4 03 04 00 50 27 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D4 84 02 00 35 04 06 00 5B 60 23 27 8C 17 B9 E7 40 C1 C6 EE E5 13 [19:30:24]CheckFolder [19:30:24]dirname=/storage/ofd_packets [19:30:24]CheckFolder done [19:30:24]ProducePacketName [19:30:24]name=ofd_packets/00165076 [19:30:24]NVStorageSaveData ofd_packets/00165076 [19:30:24]File name is /storage/ofd_packets/00165076 [19:30:24]Write 298 bytes [19:30:24]NVStorageSaveData done [19:30:24]OFDSenderStorePacket done [19:30:24]KKMCreateOFDPacket done [19:30:24]NVStorageSaveData kkm_last_timestamp [19:30:24]File name is /storage/kkm_last_timestamp [19:30:24]Write 4 bytes [19:30:24]NVStorageSaveData done [19:30:24]ExternCall_PrintAddStr [19:30:24]wPrintStart [19:30:24]Write to MH i2c: 01 00 00 1A 05 1F [19:30:24]Write i2c OK [19:30:24]MH_I2C_Read... [19:30:24]Read from MH i2c: 01 [19:30:24]MH_I2C_Read... [19:30:24]Read from MH i2c: 01 07 00 [19:30:24]MH_I2C_Read... [19:30:24]Read from MH i2c: 01 07 00 1A 05 00 00 00 00 00 FF 0F 34 [19:30:24]RasterBufferAndPrint [19:30:24]line Счет N : (1)459179 [19:30:24]line ИНН: 02508201610067 [19:30:24]line Контрольно-Кассовый Чек [19:30:24]line ПРОДАЖА [19:30:24]line ТРК (МРК, ГНК) : 11 [19:30:24]line Товар: 2710194210 [19:30:24]line ДТ-К-5 [19:30:24]line 23.650 * 71.90 [19:30:24]line = 1700.44 [19:30:24]line НДС 12% НСП 1% [19:30:24]line > о реализуемом товаре [19:30:24]line ОКРУГЛЕНИЕ: -0.44 [19:30:24]line ИТОГО: 1700.00 [19:30:24]line Внесено: 1700.00 [19:30:24]line СДАЧА: 0.00 [19:30:24]line НСП 1% : 15.05 [19:30:24]line НДС 12% : 180.58 [19:30:24]line Наличными: 1700.00 [19:30:24]line Безнал.: 0.00 [19:30:24]line Место: АЗС № 72 "Партнер Нефть" [19:30:24]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:30:24]line СНО: Общий режим [19:30:24]line Чек 274 14.07.2024 19:30 [19:30:24]line Смена: 447 ФФД: 1.0 [19:30:24]line ЗНМ: 0300000160 [19:30:24]line РНМ: 0000000000090829 [19:30:24]line Версия ККМ: 001 [19:30:24]line ФМ: 0000000000874718 [19:30:24]line ФД: 165076 [19:30:24]line ФПД: 100468464782359 [19:30:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T193024&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165076&fm=100468464782359&tin=02508201610067®Number=0000000000090829&sum=170000 [19:30:24]OFD Sender: Processing packet 165076 [packets to send 106, broken 105] [19:30:24]ProducePacketName [19:30:24]name=ofd_packets/00165076 [19:30:24]OFD Sender: To server: pG, [19:30:24]CommunicateWithHost lk.salyk.kg:30040 [19:30:24]ConnectInit lk.salyk.kg [19:30:24]written 0, free lines is 4095 [19:30:25]Connected sock=10 [19:30:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 D4 7E 04 01 12 65 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 62 5C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 3C 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 8A 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 12 01 00 00 F4 03 04 00 50 27 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D4 84 02 00 35 04 06 00 5B 60 23 27 8C 17 B9 E7 40 C1 C6 EE E5 13 [19:30:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 41 A9 47 00 58 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D4 84 02 00 F4 03 04 00 DC CD 93 66 B6 04 01 00 00 BC DF B8 A5 07 7C 7E 1A [19:30:25]CommunicateWithHost err = 0 [19:30:25]CheckOFDResponse [19:30:25]1017 (14) - 77093643461234 [19:30:25]1041 (16) - 0000000000874718 [19:30:25]1040 (4) - 165076 [19:30:25]1012 (4) - 14.07.2024 13:08 [19:30:25]1206 (1) - 0 [19:30:25]OFD Sender: Remove packet 165076 [19:30:25]ProducePacketName [19:30:25]name=ofd_packets/00165076 [19:30:25]NVStorageDeleteData [19:30:25]Write to MH i2c: 01 00 00 44 05 49 [19:30:25]Write i2c OK [19:30:25]MH_I2C_Read... [19:30:25]Read from MH i2c: 01 [19:30:25]MH_I2C_Read... [19:30:25]Read from MH i2c: 01 07 00 [19:30:25]MH_I2C_Read... [19:30:25]Read from MH i2c: 01 07 00 44 05 00 00 00 00 00 F6 0C 52 [19:30:25]RasterBufferAndPrint [19:30:25]line [19:30:25]line [19:30:25]line [19:30:25]line [19:30:25]line [19:30:25]written 0, free lines is 3324 [19:30:25]MH_Cut [19:30:25]Write to MH i2c: D1 01 00 4B 05 01 22 [19:30:25]Write i2c OK [19:30:25]MH_I2C_Read... [19:30:25]Read from MH i2c: D1 [19:30:25]MH_I2C_Read... [19:30:25]Read from MH i2c: D1 01 00 [19:30:25]MH_I2C_Read... [19:30:25]Read from MH i2c: D1 01 00 4B 05 00 21 [19:30:25]Write to MH i2c: 01 00 00 4C 05 51 [19:30:25]Write i2c OK [19:30:25]MH_I2C_Read... [19:30:25]OFD Sender: No OFD packet to send [19:30:26]*** Cut start [19:30:26]*** Partial cut [19:30:26]*** CUTSNS_PIN = 1 [19:30:26]*** CUTSNS_PIN = 0 [19:30:26]*** Brake cut motor [19:30:26]Read from MH i2c: 01 [19:30:26]MH_I2C_Read... [19:30:26]*** Stop cut motor [19:30:26]*** Cut end [19:30:26]Read from MH i2c: 01 07 00 [19:30:26]MH_I2C_Read... [19:30:26]Read from MH i2c: 01 07 00 4C 05 00 00 00 00 00 FF 0F 66 [19:30:26]process_action close_receipt done [19:30:26]requested_data is exist [19:30:26]produce_requested_data [19:30:26]requested_item fm.sn is exist - process it [19:30:26]wFMCommunicate request_size=4 [19:30:26]MH_SAM_APDU [19:30:26]CAPDU: 80 11 00 00 [19:30:26]Write to MH i2c: E2 08 00 4D 05 80 11 00 00 00 00 00 00 CC [19:30:26]Write i2c OK [19:30:26]MH_I2C_Read... [19:30:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:30:26]Read from MH i2c: E2 [19:30:26]MH_I2C_Read... [19:30:26]Read from MH i2c: E2 17 00 [19:30:26]MH_I2C_Read... [19:30:26]Read from MH i2c: E2 17 00 4D 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 22 [19:30:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:30:26]wFMCommunicate OK [19:30:26]requested_item fd.num is exist - process it [19:30:26]SAM_PROTO_GetFieldsCounters [19:30:26]wFMCommunicate request_size=4 [19:30:26]MH_SAM_APDU [19:30:26]CAPDU: 80 13 00 00 [19:30:26]Write to MH i2c: E2 08 00 4E 05 80 13 00 00 00 00 00 00 CF [19:30:26]Write i2c OK [19:30:26]MH_I2C_Read... [19:30:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:30:26]Read from MH i2c: E2 [19:30:26]MH_I2C_Read... [19:30:26]Read from MH i2c: E2 62 00 [19:30:26]MH_I2C_Read... [19:30:26]Read from MH i2c: E2 62 00 4E 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D4 84 02 00 0E 04 04 00 BF 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 49 [19:30:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D4 84 02 00 0E 04 04 00 BF 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 [19:30:26]wFMCommunicate OK [19:30:26]SAM_PROTO_GetFieldsCounters done [19:30:26]requested_item shift.num is exist - process it [19:30:26]requested_item shift.opened is exist - process it [19:30:26]req_shift_opened [19:30:26]FM_GetShiftState [19:30:26]SAM_PROTO_GetShiftState [19:30:26]wFMCommunicate request_size=4 [19:30:26]MH_SAM_APDU [19:30:26]CAPDU: 80 13 01 00 [19:30:26]Write to MH i2c: E2 08 00 4F 05 80 13 01 00 00 00 00 00 D1 [19:30:26]Write i2c OK [19:30:26]MH_I2C_Read... [19:30:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:30:26]Read from MH i2c: E2 [19:30:26]MH_I2C_Read... [19:30:26]Read from MH i2c: E2 0E 00 [19:30:26]MH_I2C_Read... [19:30:26]Read from MH i2c: E2 0E 00 4F 05 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 51 [19:30:26]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [19:30:26]wFMCommunicate OK [19:30:26]SAM_PROTO_GetShiftState done [19:30:26]FM_GetShiftState done [19:30:26]req_shift_opened done [19:30:26]requested_item shift.open_date is exist - process it [19:30:26]req_shift_open_date [19:30:26]req_shift_open_date done [19:30:26]produce_requested_data done [19:30:26]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165076,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [19:30:26]process_action_free close_receipt [19:30:26]json_value_free [19:30:26]json_value_free done [19:30:26]process_json_proto returns [19:30:26]Send response to host [19:30:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165076,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [19:30:26]free response buf [19:30:26]execute_script done [19:30:26]execute_script returns [19:30:26]free content buf [19:30:26]Sock 7.Close socket [19:30:26]Sock 7.Thread stoped [19:30:30]OFD Sender: No OFD packet to send [19:30:35]OFD Sender: No OFD packet to send [19:30:40]OFD Sender: No OFD packet to send [19:30:45]OFD Sender: No OFD packet to send [19:30:50]OFD Sender: No OFD packet to send [19:30:55]OFD Sender: No OFD packet to send [19:31:00]OFD Sender: No OFD packet to send [19:31:05]OFD Sender: No OFD packet to send [19:31:10]OFD Sender: No OFD packet to send [19:31:15]OFD Sender: No OFD packet to send [19:31:20]OFD Sender: No OFD packet to send [19:31:25]OFD Sender: No OFD packet to send [19:31:30]OFD Sender: No OFD packet to send [19:31:35]OFD Sender: No OFD packet to send [19:31:40]OFD Sender: No OFD packet to send [19:31:45]OFD Sender: No OFD packet to send [19:31:50]OFD Sender: No OFD packet to send [19:31:55]OFD Sender: No OFD packet to send [19:32:00]OFD Sender: No OFD packet to send [19:32:05]OFD Sender: No OFD packet to send [19:32:10]OFD Sender: No OFD packet to send [19:32:15]OFD Sender: No OFD packet to send [19:32:20]OFD Sender: No OFD packet to send [19:32:25]OFD Sender: No OFD packet to send [19:32:30]OFD Sender: No OFD packet to send [19:32:35]OFD Sender: No OFD packet to send [19:32:40]OFD Sender: No OFD packet to send [19:32:45]OFD Sender: No OFD packet to send [19:32:50]OFD Sender: No OFD packet to send [19:32:55]OFD Sender: No OFD packet to send [19:33:00]OFD Sender: No OFD packet to send [19:33:05]OFD Sender: No OFD packet to send [19:33:10]OFD Sender: No OFD packet to send [19:33:15]OFD Sender: No OFD packet to send [19:33:20]OFD Sender: No OFD packet to send [19:33:25]OFD Sender: No OFD packet to send [19:33:30]OFD Sender: No OFD packet to send [19:33:35]OFD Sender: No OFD packet to send [19:33:41]OFD Sender: No OFD packet to send [19:33:46]OFD Sender: No OFD packet to send [19:33:51]OFD Sender: No OFD packet to send [19:33:56]OFD Sender: No OFD packet to send [19:34:01]OFD Sender: No OFD packet to send [19:34:06]OFD Sender: No OFD packet to send [19:34:11]OFD Sender: No OFD packet to send [19:34:16]OFD Sender: No OFD packet to send [19:34:21]OFD Sender: No OFD packet to send [19:34:26]OFD Sender: No OFD packet to send [19:34:31]OFD Sender: No OFD packet to send [19:34:36]OFD Sender: No OFD packet to send [19:34:41]OFD Sender: No OFD packet to send [19:34:46]OFD Sender: No OFD packet to send [19:34:51]OFD Sender: No OFD packet to send [19:34:56]OFD Sender: No OFD packet to send [19:35:01]OFD Sender: No OFD packet to send [19:35:06]OFD Sender: No OFD packet to send [19:35:11]OFD Sender: No OFD packet to send [19:35:16]OFD Sender: No OFD packet to send [19:35:21]OFD Sender: No OFD packet to send [19:35:26]OFD Sender: No OFD packet to send [19:35:31]OFD Sender: No OFD packet to send [19:35:36]OFD Sender: No OFD packet to send [19:35:41]OFD Sender: No OFD packet to send [19:35:46]OFD Sender: No OFD packet to send [19:35:51]OFD Sender: No OFD packet to send [19:35:56]OFD Sender: No OFD packet to send [19:36:01]OFD Sender: No OFD packet to send [19:36:06]OFD Sender: No OFD packet to send [19:36:11]OFD Sender: No OFD packet to send [19:36:16]OFD Sender: No OFD packet to send [19:36:21]OFD Sender: No OFD packet to send [19:36:26]OFD Sender: No OFD packet to send [19:36:31]OFD Sender: No OFD packet to send [19:36:36]OFD Sender: No OFD packet to send [19:36:41]OFD Sender: No OFD packet to send [19:36:46]OFD Sender: No OFD packet to send [19:36:51]OFD Sender: No OFD packet to send [19:36:56]OFD Sender: No OFD packet to send [19:37:01]OFD Sender: No OFD packet to send [19:37:06]OFD Sender: No OFD packet to send [19:37:11]OFD Sender: No OFD packet to send [19:37:16]OFD Sender: No OFD packet to send [19:37:21]OFD Sender: No OFD packet to send [19:37:26]OFD Sender: No OFD packet to send [19:37:31]OFD Sender: No OFD packet to send [19:37:36]OFD Sender: No OFD packet to send [19:37:41]OFD Sender: No OFD packet to send [19:37:46]OFD Sender: No OFD packet to send [19:37:51]OFD Sender: No OFD packet to send [19:37:56]OFD Sender: No OFD packet to send [19:38:01]OFD Sender: No OFD packet to send [19:38:06]OFD Sender: No OFD packet to send [19:38:11]OFD Sender: No OFD packet to send [19:38:16]OFD Sender: No OFD packet to send [19:38:21]OFD Sender: No OFD packet to send [19:38:26]OFD Sender: No OFD packet to send [19:38:31]OFD Sender: No OFD packet to send [19:38:36]OFD Sender: No OFD packet to send [19:38:41]OFD Sender: No OFD packet to send [19:38:46]OFD Sender: No OFD packet to send [19:38:51]OFD Sender: No OFD packet to send [19:38:56]OFD Sender: No OFD packet to send [19:39:01]OFD Sender: No OFD packet to send [19:39:06]OFD Sender: No OFD packet to send [19:39:11]OFD Sender: No OFD packet to send [19:39:16]OFD Sender: No OFD packet to send [19:39:21]OFD Sender: No OFD packet to send [19:39:26]OFD Sender: No OFD packet to send [19:39:31]OFD Sender: No OFD packet to send [19:39:36]OFD Sender: No OFD packet to send [19:39:41]OFD Sender: No OFD packet to send [19:39:46]OFD Sender: No OFD packet to send [19:39:51]OFD Sender: No OFD packet to send [19:39:56]OFD Sender: No OFD packet to send [19:40:01]OFD Sender: No OFD packet to send [19:40:06]OFD Sender: No OFD packet to send [19:40:11]OFD Sender: No OFD packet to send [19:40:16]OFD Sender: No OFD packet to send [19:40:21]OFD Sender: No OFD packet to send [19:40:26]OFD Sender: No OFD packet to send [19:40:31]OFD Sender: No OFD packet to send [19:40:36]OFD Sender: No OFD packet to send [19:40:41]OFD Sender: No OFD packet to send [19:40:46]OFD Sender: No OFD packet to send [19:40:51]OFD Sender: No OFD packet to send [19:40: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:56]OFD Sender: No OFD packet to send [19:42:01]OFD Sender: No OFD packet to send [19:42:06]OFD Sender: No OFD packet to send [19:42:11]OFD Sender: No OFD packet to send [19:42:16]OFD Sender: No OFD packet to send [19:42:21]OFD Sender: No OFD packet to send [19:42:26]OFD Sender: No OFD packet to send [19:42:31]OFD Sender: No OFD packet to send [19:42:36]OFD Sender: No OFD packet to send [19:42:41]OFD Sender: No OFD packet to send [19:42:46]OFD Sender: No OFD packet to send [19:42:51]OFD Sender: No OFD packet to send [19:42:56]OFD Sender: No OFD packet to send [19:43:01]OFD Sender: No OFD packet to send [19:43:06]OFD Sender: No OFD packet to send [19:43:11]OFD Sender: No OFD packet to send [19:43:16]OFD Sender: No OFD packet to send [19:43:21]OFD Sender: No OFD packet to send [19:43:26]OFD Sender: No OFD packet to send [19:43:31]OFD Sender: No OFD packet to send [19:43:36]OFD Sender: No OFD packet to send [19:43:41]OFD Sender: No OFD packet to send [19:43:46]OFD Sender: No OFD packet to send [19:43:51]OFD Sender: No OFD packet to send [19:43:56]OFD Sender: No OFD packet to send [19:44:01]OFD Sender: No OFD packet to send [19:44:06]OFD Sender: No OFD packet to send [19:44:11]OFD Sender: No OFD packet to send [19:44:16]OFD Sender: No OFD packet to send [19:44:21]OFD Sender: No OFD packet to send [19:44:26]OFD Sender: No OFD packet to send [19:44:31]OFD Sender: No OFD packet to send [19:44:36]OFD Sender: No OFD packet to send [19:44:41]OFD Sender: No OFD packet to send [19:44:46]OFD Sender: No OFD packet to send [19:44:51]OFD Sender: No OFD packet to send [19:44:56]OFD Sender: No OFD packet to send [19:45:01]OFD Sender: No OFD packet to send [19:45:06]OFD Sender: No OFD packet to send [19:45:11]OFD Sender: No OFD packet to send [19:45:16]OFD Sender: No OFD packet to send [19:45:21]OFD Sender: No OFD packet to send [19:45:26]OFD Sender: No OFD packet to send [19:45:31]OFD Sender: No OFD packet to send [19:45:36]OFD Sender: No OFD packet to send [19:45:41]OFD Sender: No OFD packet to send [19:45:46]OFD Sender: No OFD packet to send [19:45:51]OFD Sender: No OFD packet to send [19:45:56]OFD Sender: No OFD packet to send [19:46:01]OFD Sender: No OFD packet to send [19:46:06]OFD Sender: No OFD packet to send [19:46:11]OFD Sender: No OFD packet to send [19:46:16]OFD Sender: No OFD packet to send [19:46:21]OFD Sender: No OFD packet to send [19:46:26]OFD Sender: No OFD packet to send [19:46:31]OFD Sender: No OFD packet to send [19:46:36]OFD Sender: No OFD packet to send [19:46:41]OFD Sender: No OFD packet to send [19:46:46]OFD Sender: No OFD packet to send [19:46:51]OFD Sender: No OFD packet to send [19:46:56]OFD Sender: No OFD packet to send [19:47:01]OFD Sender: No OFD packet to send [19:47:06]OFD Sender: No OFD packet to send [19:47:11]OFD Sender: No OFD packet to send [19:47:16]OFD Sender: No OFD packet to send [19:47:17]accept exits with 9 [19:47:17]New connection [19:47:17]New thread 3066928484 created [19:47:17]Thread 3066785124 joined [19:47:17]Waiting for new connection... [19:47:17] Sock 9.Parse request [19:47:17]Sock 9.Check first char [19:47:17]Sock 9.First char is OK [19:47:17]request: POST /json_proto HTTP/1.0 [19:47:17]Method: POST [19:47:17]URL: /json_proto [19:47:17]Method is POST - this is cgi request [19:47:17]url: /json_proto [19:47:17]query_string will be loaded in cgi processing [19:47:17]execute_cgi json_proto POST (null) [19:47:17]execute_cgi path=json_proto method=POST [19:47:17]POST find Content-Length [19:47:17]Host: 172.17.56.4:8080 [19:47:17]Content-Length: 677 [19:47:17]Content-Type: application/json [19:47:17] [19:47:17]POST finish read [19:47:17]Found Content-Length = 677 [19:47:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459181", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:47:17]execute_script... [19: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)459181", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:47:17]POST & json_proto [19:47:17]process_json_proto [19:47:17]json parsed OK: [19:47:17]protocol is kg_v1.0 [19:47:17]action value=close_receipt [19:47:17]process_action close_receipt [19:47:17]cmd_close_receipt [19:47:17]MH_GetDate [19:47:17]Write to MH i2c: F0 00 00 50 05 44 [19:47:17]Write i2c OK [19:47:17]MH_I2C_Read... [19:47:17]Read from MH i2c: F0 [19:47:17]MH_I2C_Read... [19:47:17]Read from MH i2c: F0 09 00 [19:47:17]MH_I2C_Read... [19:47:17]Read from MH i2c: F0 09 00 50 05 00 46 2B 94 66 C9 DC B2 64 73 [19:47:17]GetLastDocTimeStamp 1720985424 [19:47:17]current date 1720986438 [19:47:17]FM_GetShiftState [19:47:17]SAM_PROTO_GetShiftState [19:47:17]wFMCommunicate request_size=4 [19:47:17]MH_SAM_APDU [19:47:17]CAPDU: 80 13 01 00 [19:47:17]Write to MH i2c: E2 08 00 51 05 80 13 01 00 00 00 00 00 D3 [19:47:17]Write i2c OK [19:47:17]MH_I2C_Read... [19:47:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:47:17]Read from MH i2c: E2 [19:47:17]MH_I2C_Read... [19:47:17]Read from MH i2c: E2 0E 00 [19:47:17]MH_I2C_Read... [19:47:17]Read from MH i2c: E2 0E 00 51 05 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 53 [19:47:17]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [19:47:17]wFMCommunicate OK [19:47:17]SAM_PROTO_GetShiftState done [19:47:17]FM_GetShiftState done [19:47:17]opened in 1720917342 [19:47:17]opened+sec_in_day 1721003742 [19:47:17]quantity*price = 50008 [19:47:17]sum+1 = 50009 [19:47:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 275 14.07.2024 19:47 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165077 ФПД: 161858378536478 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T194718&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165077&fm=161858378536478&tin=02508201610067®Number=0000000000090829&sum=50000 [19:47:18]StoreToDocumentArchive [19:47:18]shift 447 fd 165077 [19:47:18]save to /storage/0447/doc_00165077 [19:47:18]save last doc name /storage/0447/doc_00165077 to /storage/kkm_last_doc_name [19:47:18]save OK [19:47:18]Clear old archive folders... [19:47:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:47:18]tlvbuf is 013B7030 [19:47:18]SAM_PROTO_ClearQueue [19:47:18]wFMCommunicate request_size=4 [19:47:18]MH_SAM_APDU [19:47:18]CAPDU: 80 09 00 00 [19:47:18]Write to MH i2c: E2 08 00 5E 05 80 09 00 00 00 00 00 00 D5 [19:47:18]Write i2c OK [19:47:18]MH_I2C_Read... [19:47:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:47:18]Read from MH i2c: E2 [19:47:18]MH_I2C_Read... [19:47:18]Read from MH i2c: E2 03 00 [19:47:18]MH_I2C_Read... [19:47:18]Read from MH i2c: E2 03 00 5E 05 00 90 00 D7 [19:47:18]RAPDU: 90 00 [19:47:18]wFMCommunicate OK [19:47:18]SAM_PROTO_ClearQueue done [19:47:18]KKMCreateOFDPacket [19:47:18]OFDProtocolAddRootSTLVToBuf [19:47:18]FM_MakeSignedData [19:47:18]FM_MakeSignedData [19:47:18]SAM_PROTO_SignData [19:47:18]wFMCommunicate request_size=4 [19:47:18]MH_SAM_APDU [19:47:18]CAPDU: 80 0D 01 02 [19:47:18]Write to MH i2c: E2 08 00 5F 05 80 0D 01 02 00 00 00 00 DD [19:47:18]Write i2c OK [19:47:18]MH_I2C_Read... [19:47:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:47:18]Read from MH i2c: E2 [19:47:18]MH_I2C_Read... [19:47:18]Read from MH i2c: E2 03 00 [19:47:18]MH_I2C_Read... [19:47:18]Read from MH i2c: E2 03 00 5F 05 00 90 00 D8 [19:47:18]RAPDU: 90 00 [19:47:18]wFMCommunicate OK [19:47:18]wFMCommunicate request_size=255 [19:47:18]MH_SAM_APDU [19: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 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 13 01 00 00 F4 03 04 00 46 2B 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D5 84 02 00 35 04 06 00 93 [19:47:18]Write to MH i2c: E2 02 01 60 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 13 01 00 00 F4 03 04 00 46 2B 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D5 84 02 00 35 04 06 00 93 00 00 83 [19:47:18]Write i2c OK [19:47:18]MH_I2C_Read... [19:47:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:47:18]Read from MH i2c: E2 [19:47:18]MH_I2C_Read... [19:47:18]Read from MH i2c: E2 03 00 [19:47:18]MH_I2C_Read... [19:47:18]Read from MH i2c: E2 03 00 60 05 00 90 00 D9 [19:47:18]RAPDU: 90 00 [19:47:18]wFMCommunicate OK [19:47:18]wFMCommunicate request_size=10 [19:47:18]MH_SAM_APDU [19:47:18]CAPDU: 80 0D 02 02 05 35 97 28 16 1E [19:47:18]Write to MH i2c: E2 0D 00 61 05 80 0D 02 02 05 00 35 97 28 16 1E 00 00 12 [19:47:18]Write i2c OK [19:47:18]MH_I2C_Read... [19:47:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:47:18]Read from MH i2c: E2 [19:47:18]MH_I2C_Read... [19:47:18]Read from MH i2c: E2 03 00 [19:47:18]MH_I2C_Read... [19:47:18]Read from MH i2c: E2 03 00 61 05 00 90 00 DA [19:47:18]RAPDU: 90 00 [19:47:18]wFMCommunicate OK [19:47:18]wFMCommunicate request_size=4 [19:47:18]MH_SAM_APDU [19:47:18]CAPDU: 80 0D 03 02 [19:47:18]Write to MH i2c: E2 08 00 62 05 80 0D 03 02 00 00 00 00 E2 [19:47:18]Write i2c OK [19:47:18]MH_I2C_Read... [19:47:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:47:18]Read from MH i2c: E2 [19:47:18]MH_I2C_Read... [19:47:18]Read from MH i2c: E2 0B 00 [19:47:18]MH_I2C_Read... [19:47:18]Read from MH i2c: E2 0B 00 62 05 00 AF B3 E5 72 61 FC 6C 6B 90 00 D0 [19:47:18]RAPDU: AF B3 E5 72 61 FC 6C 6B 90 00 [19:47:18]wFMCommunicate OK [19:47:18]SAM_PROTO_SignData done [19:47:18]FM_MakeSignedData done [19:47:18]CreateOFDProtocolMessage [19:47:18]wFMCommunicate request_size=4 [19:47:18]MH_SAM_APDU [19:47:18]CAPDU: 80 11 00 00 [19:47:18]Write to MH i2c: E2 08 00 63 05 80 11 00 00 00 00 00 00 E2 [19:47:18]Write i2c OK [19:47:18]MH_I2C_Read... [19:47:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:47:18]Read from MH i2c: E2 [19:47:18]MH_I2C_Read... [19:47:18]Read from MH i2c: E2 17 00 [19:47:18]MH_I2C_Read... [19:47:18]Read from MH i2c: E2 17 00 63 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 38 [19:47:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:47:18]wFMCommunicate OK [19:47:18]CreateOFDProtocolMessage done [19:47:18]OFDSenderStorePacket 165077 [19:47:18]StoreOFDPacket docnum=165077 [19:47:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 62 54 07 01 C0 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 13 01 00 00 F4 03 04 00 46 2B 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D5 84 02 00 35 04 06 00 93 35 97 28 16 1E AF B3 E5 72 61 FC 6C 6B [19:47:18]CheckFolder [19:47:18]dirname=/storage/ofd_packets [19:47:18]CheckFolder done [19:47:18]ProducePacketName [19:47:18]name=ofd_packets/00165077 [19:47:18]NVStorageSaveData ofd_packets/00165077 [19:47:18]File name is /storage/ofd_packets/00165077 [19:47:18]Write 301 bytes [19:47:18]NVStorageSaveData done [19:47:18]OFDSenderStorePacket done [19:47:18]KKMCreateOFDPacket done [19:47:18]NVStorageSaveData kkm_last_timestamp [19:47:18]File name is /storage/kkm_last_timestamp [19:47:18]Write 4 bytes [19:47:18]NVStorageSaveData done [19:47:18]ExternCall_PrintAddStr [19:47:18]wPrintStart [19:47:18]Write to MH i2c: 01 00 00 64 05 69 [19:47:18]Write i2c OK [19:47:18]MH_I2C_Read... [19:47:18]Read from MH i2c: 01 [19:47:18]MH_I2C_Read... [19:47:18]Read from MH i2c: 01 07 00 [19:47:18]MH_I2C_Read... [19:47:18]Read from MH i2c: 01 07 00 64 05 00 00 00 00 00 FF 0F 7E [19:47:18]RasterBufferAndPrint [19:47:18]line Счет N : (1)459181 [19:47:18]line ИНН: 02508201610067 [19:47:18]line Контрольно-Кассовый Чек [19:47:18]line ПРОДАЖА [19:47:18]line ТРК (МРК, ГНК) : 22 [19:47:18]line Товар: 2710124130 [19:47:18]line Аи-92-К-5 [19:47:18]line 7.600 * 65.80 [19:47:18]line = 500.08 [19:47:18]line НДС 12% НСП 1% [19:47:18]line > о реализуемом товаре [19:47:18]line ОКРУГЛЕНИЕ: -0.08 [19:47:18]line ИТОГО: 500.00 [19:47:18]line Внесено: 500.00 [19:47:18]line СДАЧА: 0.00 [19:47:18]line НСП 1% : 4.42 [19:47:18]line НДС 12% : 53.11 [19:47:18]line Наличными: 500.00 [19:47:18]line Безнал.: 0.00 [19:47:18]line Место: АЗС № 72 "Партнер Нефть" [19:47:18]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:47:18]line СНО: Общий режим [19:47:18]line Чек 275 14.07.2024 19:47 [19:47:18]line Смена: 447 ФФД: 1.0 [19:47:18]line ЗНМ: 0300000160 [19:47:18]line РНМ: 0000000000090829 [19:47:18]line Версия ККМ: 001 [19:47:18]line ФМ: 0000000000874718 [19:47:18]line ФД: 165077 [19:47:18]line ФПД: 161858378536478 [19:47:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T194718&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165077&fm=161858378536478&tin=02508201610067®Number=0000000000090829&sum=50000 [19:47:19]OFD Sender: Processing packet 165077 [packets to send 106, broken 105] [19:47:19]ProducePacketName [19:47:19]name=ofd_packets/00165077 [19:47:19]OFD Sender: To server: pG, [19:47:19]CommunicateWithHost lk.salyk.kg:30040 [19:47:19]ConnectInit lk.salyk.kg [19:47:19]written 0, free lines is 4095 [19:47:19]Connected sock=10 [19:47:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 62 54 07 01 C0 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 13 01 00 00 F4 03 04 00 46 2B 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D5 84 02 00 35 04 06 00 93 35 97 28 16 1E AF B3 E5 72 61 FC 6C 6B [19:47:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 05 D8 47 00 4F 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 38 37 34 37 31 38 10 04 04 00 D5 84 02 00 F4 03 04 00 D3 D1 93 66 B6 04 01 00 00 95 B5 04 A2 A9 AE F7 E3 [19:47:19]CommunicateWithHost err = 0 [19:47:19]CheckOFDResponse [19:47:19]1017 (14) - 77093643461234 [19:47:19]1041 (16) - 0000000000874718 [19:47:19]1040 (4) - 165077 [19:47:19]1012 (4) - 14.07.2024 13:25 [19:47:19]1206 (1) - 0 [19:47:19]OFD Sender: Remove packet 165077 [19:47:19]ProducePacketName [19:47:19]name=ofd_packets/00165077 [19:47:19]NVStorageDeleteData [19:47:19]Write to MH i2c: 01 00 00 8E 05 93 [19:47:19]Write i2c OK [19:47:19]MH_I2C_Read... [19:47:19]Read from MH i2c: 01 [19:47:19]MH_I2C_Read... [19:47:19]Read from MH i2c: 01 07 00 [19:47:19]MH_I2C_Read... [19:47:19]Read from MH i2c: 01 07 00 8E 05 00 00 00 00 00 F3 0C 99 [19:47:19]RasterBufferAndPrint [19:47:19]line [19:47:19]line [19:47:19]line [19:47:19]line [19:47:19]line [19:47:19]written 0, free lines is 3321 [19:47:19]MH_Cut [19:47:19]Write to MH i2c: D1 01 00 95 05 01 6C [19:47:19]Write i2c OK [19:47:19]MH_I2C_Read... [19:47:19]Read from MH i2c: D1 [19:47:19]MH_I2C_Read... [19:47:19]Read from MH i2c: D1 01 00 [19:47:19]MH_I2C_Read... [19:47:19]Read from MH i2c: D1 01 00 95 05 00 6B [19:47:19]Write to MH i2c: 01 00 00 96 05 9B [19:47:19]Write i2c OK [19:47:19]MH_I2C_Read... [19:47:20]OFD Sender: No OFD packet to send [19:47:20]*** Cut start [19:47:20]*** Partial cut [19:47:20]*** CUTSNS_PIN = 1 [19:47:20]*** CUTSNS_PIN = 0 [19:47:20]*** Brake cut motor [19:47:20]Read from MH i2c: 01 [19:47:20]MH_I2C_Read... [19:47:20]*** Stop cut motor [19:47:20]*** Cut end [19:47:20]Read from MH i2c: 01 07 00 [19:47:20]MH_I2C_Read... [19:47:20]Read from MH i2c: 01 07 00 96 05 00 00 00 00 00 FF 0F B0 [19:47:20]process_action close_receipt done [19:47:20]requested_data is exist [19:47:20]produce_requested_data [19:47:20]requested_item fm.sn is exist - process it [19:47:20]wFMCommunicate request_size=4 [19:47:20]MH_SAM_APDU [19:47:20]CAPDU: 80 11 00 00 [19:47:20]Write to MH i2c: E2 08 00 97 05 80 11 00 00 00 00 00 00 16 [19:47:20]Write i2c OK [19:47:20]MH_I2C_Read... [19:47:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:47:20]Read from MH i2c: E2 [19:47:20]MH_I2C_Read... [19:47:20]Read from MH i2c: E2 17 00 [19:47:20]MH_I2C_Read... [19:47:20]Read from MH i2c: E2 17 00 97 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 6C [19:47:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:47:20]wFMCommunicate OK [19:47:20]requested_item fd.num is exist - process it [19:47:20]SAM_PROTO_GetFieldsCounters [19:47:20]wFMCommunicate request_size=4 [19:47:20]MH_SAM_APDU [19:47:20]CAPDU: 80 13 00 00 [19:47:20]Write to MH i2c: E2 08 00 98 05 80 13 00 00 00 00 00 00 19 [19:47:20]Write i2c OK [19:47:20]MH_I2C_Read... [19:47:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:47:21]Read from MH i2c: E2 [19:47:21]MH_I2C_Read... [19:47:21]Read from MH i2c: E2 62 00 [19:47:21]MH_I2C_Read... [19:47:21]Read from MH i2c: E2 62 00 98 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D5 84 02 00 0E 04 04 00 BF 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 97 [19:47:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D5 84 02 00 0E 04 04 00 BF 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 [19:47:21]wFMCommunicate OK [19:47:21]SAM_PROTO_GetFieldsCounters done [19:47:21]requested_item shift.num is exist - process it [19:47:21]requested_item shift.opened is exist - process it [19:47:21]req_shift_opened [19:47:21]FM_GetShiftState [19:47:21]SAM_PROTO_GetShiftState [19:47:21]wFMCommunicate request_size=4 [19:47:21]MH_SAM_APDU [19:47:21]CAPDU: 80 13 01 00 [19:47:21]Write to MH i2c: E2 08 00 99 05 80 13 01 00 00 00 00 00 1B [19:47:21]Write i2c OK [19:47:21]MH_I2C_Read... [19:47:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:47:21]Read from MH i2c: E2 [19:47:21]MH_I2C_Read... [19:47:21]Read from MH i2c: E2 0E 00 [19:47:21]MH_I2C_Read... [19:47:21]Read from MH i2c: E2 0E 00 99 05 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 9B [19:47:21]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [19:47:21]wFMCommunicate OK [19:47:21]SAM_PROTO_GetShiftState done [19:47:21]FM_GetShiftState done [19:47:21]req_shift_opened done [19:47:21]requested_item shift.open_date is exist - process it [19:47:21]req_shift_open_date [19:47:21]req_shift_open_date done [19:47:21]produce_requested_data done [19:47:21]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165077,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [19:47:21]process_action_free close_receipt [19:47:21]json_value_free [19:47:21]json_value_free done [19:47:21]process_json_proto returns [19:47:21]Send response to host [19:47:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165077,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [19:47:21]free response buf [19:47:21]execute_script done [19:47:21]execute_script returns [19:47:21]free content buf [19:47:21]Sock 9.Close socket [19:47:21]Sock 9.Thread stoped [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:37]accept exits with 7 [19:47:37]New connection [19:47:37]New thread 3066785124 created [19:47:37]Thread 3066928484 joined [19:47:37]Waiting for new connection... [19:47:37] Sock 7.Parse request [19:47:37]Sock 7.Check first char [19:47:37]Sock 7.First char is OK [19:47:37]request: POST /json_proto HTTP/1.0 [19:47:37]Method: POST [19:47:37]URL: /json_proto [19:47:37]Method is POST - this is cgi request [19:47:37]url: /json_proto [19:47:37]query_string will be loaded in cgi processing [19:47:37]execute_cgi json_proto POST (null) [19:47:37]execute_cgi path=json_proto method=POST [19:47:37]POST find Content-Length [19:47:37]Host: 172.17.56.4:8080 [19:47:37]Content-Length: 682 [19:47:37]Content-Type: application/json [19:47:37] [19:47:37]POST finish read [19:47:37]Found Content-Length = 682 [19:47:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459180", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:47:37]execute_script... [19: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)459180", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:47:37]POST & json_proto [19:47:37]process_json_proto [19:47:37]json parsed OK: [19:47:37]protocol is kg_v1.0 [19:47:37]action value=close_receipt [19:47:37]process_action close_receipt [19:47:37]cmd_close_receipt [19:47:37]MH_GetDate [19:47:37]Write to MH i2c: F0 00 00 9A 05 8E [19:47:37]Write i2c OK [19:47:37]MH_I2C_Read... [19:47:37]Read from MH i2c: F0 [19:47:37]MH_I2C_Read... [19:47:37]Read from MH i2c: F0 09 00 [19:47:37]MH_I2C_Read... [19:47:37]Read from MH i2c: F0 09 00 9A 05 00 5A 2B 94 66 C9 DC B2 64 D1 [19:47:37]GetLastDocTimeStamp 1720986438 [19:47:37]current date 1720986458 [19:47:37]FM_GetShiftState [19:47:37]SAM_PROTO_GetShiftState [19:47:37]wFMCommunicate request_size=4 [19:47:37]MH_SAM_APDU [19:47:37]CAPDU: 80 13 01 00 [19:47:37]Write to MH i2c: E2 08 00 9B 05 80 13 01 00 00 00 00 00 1D [19:47:37]Write i2c OK [19:47:37]MH_I2C_Read... [19:47:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:47:37]Read from MH i2c: E2 [19:47:37]MH_I2C_Read... [19:47:37]Read from MH i2c: E2 0E 00 [19:47:37]MH_I2C_Read... [19:47:37]Read from MH i2c: E2 0E 00 9B 05 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 9D [19:47:37]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [19:47:37]wFMCommunicate OK [19:47:37]SAM_PROTO_GetShiftState done [19:47:37]FM_GetShiftState done [19:47:37]opened in 1720917342 [19:47:37]opened+sec_in_day 1721003742 [19:47:37]quantity*price = 100016 [19:47:37]sum+1 = 100017 [19:47:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 276 14.07.2024 19:47 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165078 ФПД: 123291828400294 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T194738&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165078&fm=123291828400294&tin=02508201610067®Number=0000000000090829&sum=100000 [19:47:38]StoreToDocumentArchive [19:47:38]shift 447 fd 165078 [19:47:38]save to /storage/0447/doc_00165078 [19:47:38]save last doc name /storage/0447/doc_00165078 to /storage/kkm_last_doc_name [19:47:38]save OK [19:47:38]Clear old archive folders... [19:47:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:47:38]tlvbuf is 0134FA70 [19:47:38]SAM_PROTO_ClearQueue [19:47:38]wFMCommunicate request_size=4 [19:47:38]MH_SAM_APDU [19:47:38]CAPDU: 80 09 00 00 [19:47:38]Write to MH i2c: E2 08 00 A8 05 80 09 00 00 00 00 00 00 1F [19:47:38]Write i2c OK [19:47:38]MH_I2C_Read... [19:47:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:47:38]Read from MH i2c: E2 [19:47:38]MH_I2C_Read... [19:47:38]Read from MH i2c: E2 03 00 [19:47:38]MH_I2C_Read... [19:47:38]Read from MH i2c: E2 03 00 A8 05 00 90 00 21 [19:47:38]RAPDU: 90 00 [19:47:38]wFMCommunicate OK [19:47:38]SAM_PROTO_ClearQueue done [19:47:38]KKMCreateOFDPacket [19:47:38]OFDProtocolAddRootSTLVToBuf [19:47:38]FM_MakeSignedData [19:47:38]FM_MakeSignedData [19:47:38]SAM_PROTO_SignData [19:47:38]wFMCommunicate request_size=4 [19:47:38]MH_SAM_APDU [19:47:38]CAPDU: 80 0D 01 02 [19:47:38]Write to MH i2c: E2 08 00 A9 05 80 0D 01 02 00 00 00 00 27 [19:47:38]Write i2c OK [19:47:38]MH_I2C_Read... [19:47:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:47:38]Read from MH i2c: E2 [19:47:38]MH_I2C_Read... [19:47:38]Read from MH i2c: E2 03 00 [19:47:38]MH_I2C_Read... [19:47:38]Read from MH i2c: E2 03 00 A9 05 00 90 00 22 [19:47:38]RAPDU: 90 00 [19:47:38]wFMCommunicate OK [19:47:38]wFMCommunicate request_size=255 [19:47:38]MH_SAM_APDU [19: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 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 5A 2B 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D6 84 02 00 35 04 06 00 70 [19:47:38]Write to MH i2c: E2 02 01 AA 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 5A 2B 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D6 84 02 00 35 04 06 00 70 00 00 62 [19:47:38]Write i2c OK [19:47:38]MH_I2C_Read... [19:47:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:47:38]Read from MH i2c: E2 [19:47:38]MH_I2C_Read... [19:47:38]Read from MH i2c: E2 03 00 [19:47:38]MH_I2C_Read... [19:47:38]Read from MH i2c: E2 03 00 AA 05 00 90 00 23 [19:47:38]RAPDU: 90 00 [19:47:38]wFMCommunicate OK [19:47:38]wFMCommunicate request_size=10 [19:47:38]MH_SAM_APDU [19:47:38]CAPDU: 80 0D 02 02 05 22 1D A2 B0 A6 [19:47:38]Write to MH i2c: E2 0D 00 AB 05 80 0D 02 02 05 00 22 1D A2 B0 A6 00 00 6B [19:47:38]Write i2c OK [19:47:38]MH_I2C_Read... [19:47:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:47:38]Read from MH i2c: E2 [19:47:38]MH_I2C_Read... [19:47:38]Read from MH i2c: E2 03 00 [19:47:38]MH_I2C_Read... [19:47:38]Read from MH i2c: E2 03 00 AB 05 00 90 00 24 [19:47:38]RAPDU: 90 00 [19:47:38]wFMCommunicate OK [19:47:38]wFMCommunicate request_size=4 [19:47:38]MH_SAM_APDU [19:47:38]CAPDU: 80 0D 03 02 [19:47:38]Write to MH i2c: E2 08 00 AC 05 80 0D 03 02 00 00 00 00 2C [19:47:38]Write i2c OK [19:47:38]MH_I2C_Read... [19:47:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:47:38]Read from MH i2c: E2 [19:47:38]MH_I2C_Read... [19:47:38]Read from MH i2c: E2 0B 00 [19:47:38]MH_I2C_Read... [19:47:38]Read from MH i2c: E2 0B 00 AC 05 00 D1 0A 1F 20 85 EC 6E A0 90 00 C6 [19:47:38]RAPDU: D1 0A 1F 20 85 EC 6E A0 90 00 [19:47:38]wFMCommunicate OK [19:47:38]SAM_PROTO_SignData done [19:47:38]FM_MakeSignedData done [19:47:38]CreateOFDProtocolMessage [19:47:38]wFMCommunicate request_size=4 [19:47:38]MH_SAM_APDU [19:47:38]CAPDU: 80 11 00 00 [19:47:38]Write to MH i2c: E2 08 00 AD 05 80 11 00 00 00 00 00 00 2C [19:47:38]Write i2c OK [19:47:38]MH_I2C_Read... [19:47:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:47:39]Read from MH i2c: E2 [19:47:39]MH_I2C_Read... [19:47:39]Read from MH i2c: E2 17 00 [19:47:39]MH_I2C_Read... [19:47:39]Read from MH i2c: E2 17 00 AD 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 82 [19:47:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:47:39]wFMCommunicate OK [19:47:39]CreateOFDProtocolMessage done [19:47:39]OFDSenderStorePacket 165078 [19:47:39]StoreOFDPacket docnum=165078 [19:47:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C2 64 07 01 4E F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 5A 2B 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D6 84 02 00 35 04 06 00 70 22 1D A2 B0 A6 D1 0A 1F 20 85 EC 6E A0 [19:47:39]CheckFolder [19:47:39]dirname=/storage/ofd_packets [19:47:39]CheckFolder done [19:47:39]ProducePacketName [19:47:39]name=ofd_packets/00165078 [19:47:39]NVStorageSaveData ofd_packets/00165078 [19:47:39]File name is /storage/ofd_packets/00165078 [19:47:39]Write 301 bytes [19:47:39]NVStorageSaveData done [19:47:39]OFDSenderStorePacket done [19:47:39]KKMCreateOFDPacket done [19:47:39]NVStorageSaveData kkm_last_timestamp [19:47:39]File name is /storage/kkm_last_timestamp [19:47:39]Write 4 bytes [19:47:39]NVStorageSaveData done [19:47:39]OFD Sender: Processing packet 165078 [packets to send 106, broken 105] [19:47:39]ProducePacketName [19:47:39]name=ofd_packets/00165078 [19:47:39]OFD Sender: To server: pG, [19:47:39]CommunicateWithHost lk.salyk.kg:30040 [19:47:39]ConnectInit lk.salyk.kg [19:47:39]ExternCall_PrintAddStr [19:47:39]wPrintStart [19:47:39]Write to MH i2c: 01 00 00 AE 05 B3 [19:47:39]Write i2c OK [19:47:39]MH_I2C_Read... [19:47:39]Read from MH i2c: 01 [19:47:39]MH_I2C_Read... [19:47:39]Read from MH i2c: 01 07 00 [19:47:39]MH_I2C_Read... [19:47:39]Read from MH i2c: 01 07 00 AE 05 00 00 00 00 00 FF 0F C8 [19:47:39]RasterBufferAndPrint [19:47:39]line Счет N : (1)459180 [19:47:39]line ИНН: 02508201610067 [19:47:39]line Контрольно-Кассовый Чек [19:47:39]line ПРОДАЖА [19:47:39]line ТРК (МРК, ГНК) : 12 [19:47:39]line Товар: 2710124130 [19:47:39]line Аи-92-К-5 [19:47:39]line 15.200 * 65.80 [19:47:39]line = 1000.16 [19:47:39]line НДС 12% НСП 1% [19:47:39]line > о реализуемом товаре [19:47:39]line ОКРУГЛЕНИЕ: -0.16 [19:47:39]line ИТОГО: 1000.00 [19:47:39]line Внесено: 1000.00 [19:47:39]line СДАЧА: 0.00 [19:47:39]line НСП 1% : 8.85 [19:47:39]line НДС 12% : 106.21 [19:47:39]line Наличными: 1000.00 [19:47:39]line Безнал.: 0.00 [19:47:39]line Место: АЗС № 72 "Партнер Нефть" [19:47:39]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:47:39]line СНО: Общий режим [19:47:39]line Чек 276 14.07.2024 19:47 [19:47:39]line Смена: 447 ФФД: 1.0 [19:47:39]line ЗНМ: 0300000160 [19:47:39]line РНМ: 0000000000090829 [19:47:39]line Версия ККМ: 001 [19:47:39]line ФМ: 0000000000874718 [19:47:39]line ФД: 165078 [19:47:39]line ФПД: 123291828400294 [19:47:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T194738&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165078&fm=123291828400294&tin=02508201610067®Number=0000000000090829&sum=100000 [19:47:39]Connected sock=11 [19:47:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C2 64 07 01 4E F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 5A 2B 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D6 84 02 00 35 04 06 00 70 22 1D A2 B0 A6 D1 0A 1F 20 85 EC 6E A0 [19:47:39]written 0, free lines is 4095 [19:47:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 C2 7A 47 00 F3 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D6 84 02 00 F4 03 04 00 E7 D1 93 66 B6 04 01 00 00 25 9C 9E B7 AF 60 05 60 [19:47:39]CommunicateWithHost err = 0 [19:47:39]CheckOFDResponse [19:47:39]1017 (14) - 77093643461234 [19:47:39]1041 (16) - 0000000000874718 [19:47:39]1040 (4) - 165078 [19:47:39]1012 (4) - 14.07.2024 13:25 [19:47:39]1206 (1) - 0 [19:47:39]OFD Sender: Remove packet 165078 [19:47:39]ProducePacketName [19:47:39]name=ofd_packets/00165078 [19:47:39]NVStorageDeleteData [19:47:39]Write to MH i2c: 01 00 00 D8 05 DD [19:47:39]Write i2c OK [19:47:39]MH_I2C_Read... [19:47:39]Read from MH i2c: 01 [19:47:39]MH_I2C_Read... [19:47:39]Read from MH i2c: 01 07 00 [19:47:39]MH_I2C_Read... [19:47:39]Read from MH i2c: 01 07 00 D8 05 00 00 00 00 00 F6 0C E6 [19:47:39]RasterBufferAndPrint [19:47:39]line [19:47:39]line [19:47:39]line [19:47:39]line [19:47:39]line [19:47:39]written 0, free lines is 3324 [19:47:39]MH_Cut [19:47:39]Write to MH i2c: D1 01 00 DF 05 01 B6 [19:47:39]Write i2c OK [19:47:39]MH_I2C_Read... [19:47:39]Read from MH i2c: D1 [19:47:39]MH_I2C_Read... [19:47:39]Read from MH i2c: D1 01 00 [19:47:39]MH_I2C_Read... [19:47:39]Read from MH i2c: D1 01 00 DF 05 00 B5 [19:47:39]Write to MH i2c: 01 00 00 E0 05 E5 [19:47:39]Write i2c OK [19:47:39]MH_I2C_Read... [19:47:40]OFD Sender: No OFD packet to send [19:47:40]*** Cut start [19:47:40]*** Partial cut [19:47:40]*** CUTSNS_PIN = 1 [19:47:40]*** CUTSNS_PIN = 0 [19:47:40]*** Brake cut motor [19:47:41]Read from MH i2c: 01 [19:47:41]MH_I2C_Read... [19:47:41]*** Stop cut motor [19:47:41]*** Cut end [19:47:41]Read from MH i2c: 01 07 00 [19:47:41]MH_I2C_Read... [19:47:41]Read from MH i2c: 01 07 00 E0 05 00 00 00 00 00 FF 0F FA [19:47:41]process_action close_receipt done [19:47:41]requested_data is exist [19:47:41]produce_requested_data [19:47:41]requested_item fm.sn is exist - process it [19:47:41]wFMCommunicate request_size=4 [19:47:41]MH_SAM_APDU [19:47:41]CAPDU: 80 11 00 00 [19:47:41]Write to MH i2c: E2 08 00 E1 05 80 11 00 00 00 00 00 00 60 [19:47:41]Write i2c OK [19:47:41]MH_I2C_Read... [19:47:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:47:41]Read from MH i2c: E2 [19:47:41]MH_I2C_Read... [19:47:41]Read from MH i2c: E2 17 00 [19:47:41]MH_I2C_Read... [19:47:41]Read from MH i2c: E2 17 00 E1 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B6 [19:47:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:47:41]wFMCommunicate OK [19:47:41]requested_item fd.num is exist - process it [19:47:41]SAM_PROTO_GetFieldsCounters [19:47:41]wFMCommunicate request_size=4 [19:47:41]MH_SAM_APDU [19:47:41]CAPDU: 80 13 00 00 [19:47:41]Write to MH i2c: E2 08 00 E2 05 80 13 00 00 00 00 00 00 63 [19:47:41]Write i2c OK [19:47:41]MH_I2C_Read... [19:47:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:47:41]Read from MH i2c: E2 [19:47:41]MH_I2C_Read... [19:47:41]Read from MH i2c: E2 62 00 [19:47:41]MH_I2C_Read... [19:47:41]Read from MH i2c: E2 62 00 E2 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D6 84 02 00 0E 04 04 00 BF 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 E5 [19:47:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D6 84 02 00 0E 04 04 00 BF 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 [19:47:41]wFMCommunicate OK [19:47:41]SAM_PROTO_GetFieldsCounters done [19:47:41]requested_item shift.num is exist - process it [19:47:41]requested_item shift.opened is exist - process it [19:47:41]req_shift_opened [19:47:41]FM_GetShiftState [19:47:41]SAM_PROTO_GetShiftState [19:47:41]wFMCommunicate request_size=4 [19:47:41]MH_SAM_APDU [19:47:41]CAPDU: 80 13 01 00 [19:47:41]Write to MH i2c: E2 08 00 E3 05 80 13 01 00 00 00 00 00 65 [19:47:41]Write i2c OK [19:47:41]MH_I2C_Read... [19:47:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:47:41]Read from MH i2c: E2 [19:47:41]MH_I2C_Read... [19:47:41]Read from MH i2c: E2 0E 00 [19:47:41]MH_I2C_Read... [19:47:41]Read from MH i2c: E2 0E 00 E3 05 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 E5 [19:47:41]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [19:47:41]wFMCommunicate OK [19:47:41]SAM_PROTO_GetShiftState done [19:47:41]FM_GetShiftState done [19:47:41]req_shift_opened done [19:47:41]requested_item shift.open_date is exist - process it [19:47:41]req_shift_open_date [19:47:41]req_shift_open_date done [19:47:41]produce_requested_data done [19:47:41]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165078,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [19:47:41]process_action_free close_receipt [19:47:41]json_value_free [19:47:41]json_value_free done [19:47:41]process_json_proto returns [19:47:41]Send response to host [19:47:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165078,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [19:47:41]free response buf [19:47:41]execute_script done [19:47:41]execute_script returns [19:47:41]free content buf [19:47:41]Sock 7.Close socket [19:47:41]Sock 7.Thread stoped [19:47:45]OFD Sender: No OFD packet to send [19:47:50]OFD Sender: No OFD packet to send [19:47:55]OFD Sender: No OFD packet to send [19:48:00]OFD Sender: No OFD packet to send [19:48:05]OFD Sender: No OFD packet to send [19:48:10]OFD Sender: No OFD packet to send [19:48:15]OFD Sender: No OFD packet to send [19:48:20]OFD Sender: No OFD packet to send [19:48:25]OFD Sender: No OFD packet to send [19:48:30]OFD Sender: No OFD packet to send [19:48:35]OFD Sender: No OFD packet to send [19:48:40]OFD Sender: No OFD packet to send [19:48:45]OFD Sender: No OFD packet to send [19:48:50]OFD Sender: No OFD packet to send [19:48:55]OFD Sender: No OFD packet to send [19:49:00]OFD Sender: No OFD packet to send [19:49:05]OFD Sender: No OFD packet to send [19:49:10]OFD Sender: No OFD packet to send [19:49:15]OFD Sender: No OFD packet to send [19:49:20]OFD Sender: No OFD packet to send [19:49:25]OFD Sender: No OFD packet to send [19:49:30]OFD Sender: No OFD packet to send [19:49:35]OFD Sender: No OFD packet to send [19:49:40]OFD Sender: No OFD packet to send [19:49:45]OFD Sender: No OFD packet to send [19:49:50]OFD Sender: No OFD packet to send [19:49:55]OFD Sender: No OFD packet to send [19:50:00]OFD Sender: No OFD packet to send [19:50:05]OFD Sender: No OFD packet to send [19:50:10]OFD Sender: No OFD packet to send [19:50:15]OFD Sender: No OFD packet to send [19:50:20]OFD Sender: No OFD packet to send [19:50:25]OFD Sender: No OFD packet to send [19:50:30]OFD Sender: No OFD packet to send [19:50:35]OFD Sender: No OFD packet to send [19:50:40]OFD Sender: No OFD packet to send [19:50:45]OFD Sender: No OFD packet to send [19:50:50]OFD Sender: No OFD packet to send [19:50:55]OFD Sender: No OFD packet to send [19:51:00]OFD Sender: No OFD packet to send [19:51:05]OFD Sender: No OFD packet to send [19:51:10]OFD Sender: No OFD packet to send [19:51:15]OFD Sender: No OFD packet to send [19:51:20]OFD Sender: No OFD packet to send [19:51:25]OFD Sender: No OFD packet to send [19:51:30]OFD Sender: No OFD packet to send [19:51:35]OFD Sender: No OFD packet to send [19:51:40]OFD Sender: No OFD packet to send [19:51:45]OFD Sender: No OFD packet to send [19:51:50]OFD Sender: No OFD packet to send [19:51:55]OFD Sender: No OFD packet to send [19:52:00]OFD Sender: No OFD packet to send [19:52:05]OFD Sender: No OFD packet to send [19:52:10]OFD Sender: No OFD packet to send [19:52:15]OFD Sender: No OFD packet to send [19:52:20]OFD Sender: No OFD packet to send [19:52:25]OFD Sender: No OFD packet to send [19:52:30]OFD Sender: No OFD packet to send [19:52:35]OFD Sender: No OFD packet to send [19:52:40]OFD Sender: No OFD packet to send [19:52:45]OFD Sender: No OFD packet to send [19:52:50]OFD Sender: No OFD packet to send [19:52:55]OFD Sender: No OFD packet to send [19:53:00]OFD Sender: No OFD packet to send [19:53:05]OFD Sender: No OFD packet to send [19:53:10]OFD Sender: No OFD packet to send [19:53:15]OFD Sender: No OFD packet to send [19:53:20]OFD Sender: No OFD packet to send [19:53:25]OFD Sender: No OFD packet to send [19:53:30]OFD Sender: No OFD packet to send [19:53:35]OFD Sender: No OFD packet to send [19:53:40]OFD Sender: No OFD packet to send [19:53:45]OFD Sender: No OFD packet to send [19:53:50]OFD Sender: No OFD packet to send [19:53:55]OFD Sender: No OFD packet to send [19:54:00]OFD Sender: No OFD packet to send [19:54:05]OFD Sender: No OFD packet to send [19:54:10]OFD Sender: No OFD packet to send [19:54:15]OFD Sender: No OFD packet to send [19:54:20]OFD Sender: No OFD packet to send [19:54:25]OFD Sender: No OFD packet to send [19:54:30]OFD Sender: No OFD packet to send [19:54:35]OFD Sender: No OFD packet to send [19:54:40]OFD Sender: No OFD packet to send [19:54:45]OFD Sender: No OFD packet to send [19:54:50]OFD Sender: No OFD packet to send [19:54:55]OFD Sender: No OFD packet to send [19:55:00]OFD Sender: No OFD packet to send [19:55:05]OFD Sender: No OFD packet to send [19:55:10]OFD Sender: No OFD packet to send [19:55:15]OFD Sender: No OFD packet to send [19:55:20]OFD Sender: No OFD packet to send [19:55:25]OFD Sender: No OFD packet to send [19:55:30]OFD Sender: No OFD packet to send [19:55:35]OFD Sender: No OFD packet to send [19:55:40]OFD Sender: No OFD packet to send [19:55:45]OFD Sender: No OFD packet to send [19:55:50]OFD Sender: No OFD packet to send [19:55:55]OFD Sender: No OFD packet to send [19:56:00]OFD Sender: No OFD packet to send [19:56:05]OFD Sender: No OFD packet to send [19:56:10]OFD Sender: No OFD packet to send [19:56:15]OFD Sender: No OFD packet to send [19:56:20]OFD Sender: No OFD packet to send [19:56:25]OFD Sender: No OFD packet to send [19:56:30]OFD Sender: No OFD packet to send [19:56:35]OFD Sender: No OFD packet to send [19:56:40]OFD Sender: No OFD packet to send [19:56:45]OFD Sender: No OFD packet to send [19:56:50]OFD Sender: No OFD packet to send [19:56:55]OFD Sender: No OFD packet to send [19:57:00]OFD Sender: No OFD packet to send [19:57:05]OFD Sender: No OFD packet to send [19:57:10]OFD Sender: No OFD packet to send [19:57:15]OFD Sender: No OFD packet to send [19:57:20]OFD Sender: No OFD packet to send [19:57:25]OFD Sender: No OFD packet to send [19:57:30]OFD Sender: No OFD packet to send [19:57:35]OFD Sender: No OFD packet to send [19:57:40]OFD Sender: No OFD packet to send [19:57:45]OFD Sender: No OFD packet to send [19:57:50]OFD Sender: No OFD packet to send [19:57:55]OFD Sender: No OFD packet to send [19:58:00]OFD Sender: No OFD packet to send [19:58:05]OFD Sender: No OFD packet to send [19:58:10]OFD Sender: No OFD packet to send [19:58:15]OFD Sender: No OFD packet to send [19:58:20]OFD Sender: No OFD packet to send [19:58:25]OFD Sender: No OFD packet to send [19:58:30]OFD Sender: No OFD packet to send [19:58:35]OFD Sender: No OFD packet to send [19:58:40]OFD Sender: No OFD packet to send [19:58:45]OFD Sender: No OFD packet to send [19:58:50]OFD Sender: No OFD packet to send [19:58:55]OFD Sender: No OFD packet to send [19:59:00]OFD Sender: No OFD packet to send [19:59:05]OFD Sender: No OFD packet to send [19:59:10]OFD Sender: No OFD packet to send [19:59:15]OFD Sender: No OFD packet to send [19:59:20]OFD Sender: No OFD packet to send [19:59:25]OFD Sender: No OFD packet to send [19:59:30]OFD Sender: No OFD packet to send [19:59:35]OFD Sender: No OFD packet to send [19:59:40]OFD Sender: No OFD packet to send [19:59:45]OFD Sender: No OFD packet to send [19:59:50]OFD Sender: No OFD packet to send [19:59:55]OFD Sender: No OFD packet to send [20:00:00]OFD Sender: No OFD packet to send [20:00:05]OFD Sender: No OFD packet to send [20:00:10]OFD Sender: No OFD packet to send [20:00:15]OFD Sender: No OFD packet to send [20:00:20]OFD Sender: No OFD packet to send [20:00:25]OFD Sender: No OFD packet to send [20:00:30]OFD Sender: No OFD packet to send [20:00:35]OFD Sender: No OFD packet to send [20:00:40]OFD Sender: No OFD packet to send [20:00:45]OFD Sender: No OFD packet to send [20:00:50]OFD Sender: No OFD packet to send [20:00:55]OFD Sender: No OFD packet to send [20:01:00]OFD Sender: No OFD packet to send [20:01:05]OFD Sender: No OFD packet to send [20:01:10]OFD Sender: No OFD packet to send [20:01:15]OFD Sender: No OFD packet to send [20:01:20]OFD Sender: No OFD packet to send [20:01:25]OFD Sender: No OFD packet to send [20:01:30]OFD Sender: No OFD packet to send [20:01:35]OFD Sender: No OFD packet to send [20:01:40]OFD Sender: No OFD packet to send [20:01:45]OFD Sender: No OFD packet to send [20:01:51]OFD Sender: No OFD packet to send [20:01:56]OFD Sender: No OFD packet to send [20:02:01]OFD Sender: No OFD packet to send [20:02:06]OFD Sender: No OFD packet to send [20:02:11]OFD Sender: No OFD packet to send [20:02:16]OFD Sender: No OFD packet to send [20:02:21]OFD Sender: No OFD packet to send [20:02:26]OFD Sender: No OFD packet to send [20:02:31]OFD Sender: No OFD packet to send [20:02:36]OFD Sender: No OFD packet to send [20:02:41]OFD Sender: No OFD packet to send [20:02:46]OFD Sender: No OFD packet to send [20:02:51]OFD Sender: No OFD packet to send [20:02:56]OFD Sender: No OFD packet to send [20:03:01]OFD Sender: No OFD packet to send [20:03:06]OFD Sender: No OFD packet to send [20:03:11]OFD Sender: No OFD packet to send [20:03:16]OFD Sender: No OFD packet to send [20:03:21]OFD Sender: No OFD packet to send [20:03:26]OFD Sender: No OFD packet to send [20:03:31]OFD Sender: No OFD packet to send [20:03:36]OFD Sender: No OFD packet to send [20:03:41]OFD Sender: No OFD packet to send [20:03:46]OFD Sender: No OFD packet to send [20:03:51]OFD Sender: No OFD packet to send [20:03:56]OFD Sender: No OFD packet to send [20:04:01]OFD Sender: No OFD packet to send [20:04:06]OFD Sender: No OFD packet to send [20:04:11]OFD Sender: No OFD packet to send [20:04:16]OFD Sender: No OFD packet to send [20:04:21]OFD Sender: No OFD packet to send [20:04:26]OFD Sender: No OFD packet to send [20:04:31]OFD Sender: No OFD packet to send [20:04:36]OFD Sender: No OFD packet to send [20:04:41]OFD Sender: No OFD packet to send [20:04:46]OFD Sender: No OFD packet to send [20:04:51]OFD Sender: No OFD packet to send [20:04:56]OFD Sender: No OFD packet to send [20:05:01]OFD Sender: No OFD packet to send [20:05:06]OFD Sender: No OFD packet to send [20:05:11]OFD Sender: No OFD packet to send [20:05:16]OFD Sender: No OFD packet to send [20:05:21]OFD Sender: No OFD packet to send [20:05:26]OFD Sender: No OFD packet to send [20:05:31]OFD Sender: No OFD packet to send [20:05:36]OFD Sender: No OFD packet to send [20:05:41]OFD Sender: No OFD packet to send [20:05:46]OFD Sender: No OFD packet to send [20:05:51]OFD Sender: No OFD packet to send [20:05:56]OFD Sender: No OFD packet to send [20:06:01]OFD Sender: No OFD packet to send [20:06:06]OFD Sender: No OFD packet to send [20:06:11]OFD Sender: No OFD packet to send [20:06:16]OFD Sender: No OFD packet to send [20:06:21]OFD Sender: No OFD packet to send [20:06:26]OFD Sender: No OFD packet to send [20:06:31]OFD Sender: No OFD packet to send [20:06:36]OFD Sender: No OFD packet to send [20:06:41]OFD Sender: No OFD packet to send [20:06: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:06]OFD Sender: No OFD packet to send [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:23]accept exits with 9 [20:08:23]New connection [20:08:23]New thread 3066928484 created [20:08:23]Thread 3066785124 joined [20:08:23]Waiting for new connection... [20:08:23] Sock 9.Parse request [20:08:23]Sock 9.Check first char [20:08:23]Sock 9.First char is OK [20:08:23]request: POST /json_proto HTTP/1.0 [20:08:23]Method: POST [20:08:23]URL: /json_proto [20:08:23]Method is POST - this is cgi request [20:08:23]url: /json_proto [20:08:23]query_string will be loaded in cgi processing [20:08:23]execute_cgi json_proto POST (null) [20:08:23]execute_cgi path=json_proto method=POST [20:08:23]POST find Content-Length [20:08:23]Host: 172.17.56.4:8080 [20:08:23]Content-Length: 677 [20:08:23]Content-Type: application/json [20:08:23] [20:08:23]POST finish read [20:08:23]Found Content-Length = 677 [20:08:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459182", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "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" ] } } [20:08:23]execute_script... [20:08: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)459182", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "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" ] } } [20:08:23]POST & json_proto [20:08:23]process_json_proto [20:08:23]json parsed OK: [20:08:23]protocol is kg_v1.0 [20:08:23]action value=close_receipt [20:08:23]process_action close_receipt [20:08:23]cmd_close_receipt [20:08:23]MH_GetDate [20:08:23]Write to MH i2c: F0 00 00 E4 05 D8 [20:08:23]Write i2c OK [20:08:23]MH_I2C_Read... [20:08:23]Read from MH i2c: F0 [20:08:23]MH_I2C_Read... [20:08:23]Read from MH i2c: F0 09 00 [20:08:23]MH_I2C_Read... [20:08:23]Read from MH i2c: F0 09 00 E4 05 00 38 30 94 66 C9 DC B2 64 FE [20:08:23]GetLastDocTimeStamp 1720986458 [20:08:23]current date 1720987704 [20:08:23]FM_GetShiftState [20:08:23]SAM_PROTO_GetShiftState [20:08:23]wFMCommunicate request_size=4 [20:08:23]MH_SAM_APDU [20:08:23]CAPDU: 80 13 01 00 [20:08:23]Write to MH i2c: E2 08 00 E5 05 80 13 01 00 00 00 00 00 67 [20:08:23]Write i2c OK [20:08:23]MH_I2C_Read... [20:08:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:08:23]Read from MH i2c: E2 [20:08:23]MH_I2C_Read... [20:08:23]Read from MH i2c: E2 0E 00 [20:08:23]MH_I2C_Read... [20:08:23]Read from MH i2c: E2 0E 00 E5 05 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 E7 [20:08:23]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [20:08:23]wFMCommunicate OK [20:08:23]SAM_PROTO_GetShiftState done [20:08:23]FM_GetShiftState done [20:08:23]opened in 1720917342 [20:08:23]opened+sec_in_day 1721003742 [20:08:23]quantity*price = 20003 [20:08:23]sum+1 = 20004 [20:08:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 277 14.07.2024 20:08 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165079 ФПД: 235744090045371 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T200824&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165079&fm=235744090045371&tin=02508201610067®Number=0000000000090829&sum=20000 [20:08:24]StoreToDocumentArchive [20:08:24]shift 447 fd 165079 [20:08:24]save to /storage/0447/doc_00165079 [20:08:24]save last doc name /storage/0447/doc_00165079 to /storage/kkm_last_doc_name [20:08:24]save OK [20:08:24]Clear old archive folders... [20:08:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:08:24]tlvbuf is 013C2EF0 [20:08:24]SAM_PROTO_ClearQueue [20:08:24]wFMCommunicate request_size=4 [20:08:24]MH_SAM_APDU [20:08:24]CAPDU: 80 09 00 00 [20:08:24]Write to MH i2c: E2 08 00 F2 05 80 09 00 00 00 00 00 00 69 [20:08:24]Write i2c OK [20:08:24]MH_I2C_Read... [20:08:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:08:24]Read from MH i2c: E2 [20:08:24]MH_I2C_Read... [20:08:24]Read from MH i2c: E2 03 00 [20:08:24]MH_I2C_Read... [20:08:24]Read from MH i2c: E2 03 00 F2 05 00 90 00 6B [20:08:24]RAPDU: 90 00 [20:08:24]wFMCommunicate OK [20:08:24]SAM_PROTO_ClearQueue done [20:08:24]KKMCreateOFDPacket [20:08:24]OFDProtocolAddRootSTLVToBuf [20:08:24]FM_MakeSignedData [20:08:24]FM_MakeSignedData [20:08:24]SAM_PROTO_SignData [20:08:24]wFMCommunicate request_size=4 [20:08:24]MH_SAM_APDU [20:08:24]CAPDU: 80 0D 01 02 [20:08:24]Write to MH i2c: E2 08 00 F3 05 80 0D 01 02 00 00 00 00 71 [20:08:24]Write i2c OK [20:08:24]MH_I2C_Read... [20:08:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:08:24]Read from MH i2c: E2 [20:08:24]MH_I2C_Read... [20:08:24]Read from MH i2c: E2 03 00 [20:08:24]MH_I2C_Read... [20:08:24]Read from MH i2c: E2 03 00 F3 05 00 90 00 6C [20:08:24]RAPDU: 90 00 [20:08:24]wFMCommunicate OK [20:08:24]wFMCommunicate request_size=255 [20:08:24]MH_SAM_APDU [20:08:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 15 01 00 00 F4 03 04 00 38 30 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D7 84 02 00 35 04 06 00 D6 [20:08:24]Write to MH i2c: E2 02 01 F4 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 15 01 00 00 F4 03 04 00 38 30 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D7 84 02 00 35 04 06 00 D6 00 00 F6 [20:08:24]Write i2c OK [20:08:24]MH_I2C_Read... [20:08:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:08:25]Read from MH i2c: E2 [20:08:25]MH_I2C_Read... [20:08:25]Read from MH i2c: E2 03 00 [20:08:25]MH_I2C_Read... [20:08:25]Read from MH i2c: E2 03 00 F4 05 00 90 00 6D [20:08:25]RAPDU: 90 00 [20:08:25]wFMCommunicate OK [20:08:25]wFMCommunicate request_size=10 [20:08:25]MH_SAM_APDU [20:08:25]CAPDU: 80 0D 02 02 05 68 72 BE BB BB [20:08:25]Write to MH i2c: E2 0D 00 F5 05 80 0D 02 02 05 00 68 72 BE BB BB 00 00 8C [20:08:25]Write i2c OK [20:08:25]MH_I2C_Read... [20:08:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:08:25]Read from MH i2c: E2 [20:08:25]MH_I2C_Read... [20:08:25]Read from MH i2c: E2 03 00 [20:08:25]MH_I2C_Read... [20:08:25]Read from MH i2c: E2 03 00 F5 05 00 90 00 6E [20:08:25]RAPDU: 90 00 [20:08:25]wFMCommunicate OK [20:08:25]wFMCommunicate request_size=4 [20:08:25]MH_SAM_APDU [20:08:25]CAPDU: 80 0D 03 02 [20:08:25]Write to MH i2c: E2 08 00 F6 05 80 0D 03 02 00 00 00 00 76 [20:08:25]Write i2c OK [20:08:25]MH_I2C_Read... [20:08:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:08:25]Read from MH i2c: E2 [20:08:25]MH_I2C_Read... [20:08:25]Read from MH i2c: E2 0B 00 [20:08:25]MH_I2C_Read... [20:08:25]Read from MH i2c: E2 0B 00 F6 05 00 A4 61 DF 6D 38 8C A1 87 90 00 B4 [20:08:25]RAPDU: A4 61 DF 6D 38 8C A1 87 90 00 [20:08:25]wFMCommunicate OK [20:08:25]SAM_PROTO_SignData done [20:08:25]FM_MakeSignedData done [20:08:25]CreateOFDProtocolMessage [20:08:25]wFMCommunicate request_size=4 [20:08:25]MH_SAM_APDU [20:08:25]CAPDU: 80 11 00 00 [20:08:25]Write to MH i2c: E2 08 00 F7 05 80 11 00 00 00 00 00 00 76 [20:08:25]Write i2c OK [20:08:25]MH_I2C_Read... [20:08:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:08:25]Read from MH i2c: E2 [20:08:25]MH_I2C_Read... [20:08:25]Read from MH i2c: E2 17 00 [20:08:25]MH_I2C_Read... [20:08:25]Read from MH i2c: E2 17 00 F7 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 CC [20:08:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:08:25]wFMCommunicate OK [20:08:25]CreateOFDProtocolMessage done [20:08:25]OFDSenderStorePacket 165079 [20:08:25]StoreOFDPacket docnum=165079 [20:08:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 A5 4B 07 01 43 F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 15 01 00 00 F4 03 04 00 38 30 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D7 84 02 00 35 04 06 00 D6 68 72 BE BB BB A4 61 DF 6D 38 8C A1 87 [20:08:25]CheckFolder [20:08:25]dirname=/storage/ofd_packets [20:08:25]CheckFolder done [20:08:25]ProducePacketName [20:08:25]name=ofd_packets/00165079 [20:08:25]NVStorageSaveData ofd_packets/00165079 [20:08:25]File name is /storage/ofd_packets/00165079 [20:08:25]Write 301 bytes [20:08:25]NVStorageSaveData done [20:08:25]OFDSenderStorePacket done [20:08:25]KKMCreateOFDPacket done [20:08:25]NVStorageSaveData kkm_last_timestamp [20:08:25]File name is /storage/kkm_last_timestamp [20:08:25]Write 4 bytes [20:08:25]NVStorageSaveData done [20:08:25]ExternCall_PrintAddStr [20:08:25]wPrintStart [20:08:25]Write to MH i2c: 01 00 00 F8 05 FD [20:08:25]Write i2c OK [20:08:25]MH_I2C_Read... [20:08:25]Read from MH i2c: 01 [20:08:25]MH_I2C_Read... [20:08:25]Read from MH i2c: 01 07 00 [20:08:25]MH_I2C_Read... [20:08:25]Read from MH i2c: 01 07 00 F8 05 00 00 00 00 00 FF 0F 12 [20:08:25]RasterBufferAndPrint [20:08:25]line Счет N : (1)459182 [20:08:25]line ИНН: 02508201610067 [20:08:25]line Контрольно-Кассовый Чек [20:08:25]line ПРОДАЖА [20:08:25]line ТРК (МРК, ГНК) : 12 [20:08:25]line Товар: 2710124130 [20:08:25]line Аи-92-К-5 [20:08:25]line 3.040 * 65.80 [20:08:25]line = 200.03 [20:08:25]line НДС 12% НСП 1% [20:08:25]line > о реализуемом товаре [20:08:25]line ОКРУГЛЕНИЕ: -0.03 [20:08:25]line ИТОГО: 200.00 [20:08:25]line Внесено: 200.00 [20:08:25]line СДАЧА: 0.00 [20:08:25]line НСП 1% : 1.77 [20:08:25]line НДС 12% : 21.24 [20:08:25]line Наличными: 200.00 [20:08:25]line Безнал.: 0.00 [20:08:25]line Место: АЗС № 72 "Партнер Нефть" [20:08:25]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [20:08:25]line СНО: Общий режим [20:08:25]line Чек 277 14.07.2024 20:08 [20:08:25]line Смена: 447 ФФД: 1.0 [20:08:25]line ЗНМ: 0300000160 [20:08:25]line РНМ: 0000000000090829 [20:08:25]line Версия ККМ: 001 [20:08:25]line ФМ: 0000000000874718 [20:08:25]line ФД: 165079 [20:08:25]line ФПД: 235744090045371 [20:08:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T200824&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165079&fm=235744090045371&tin=02508201610067®Number=0000000000090829&sum=20000 [20:08:25]written 0, free lines is 4095 [20:08:25]OFD Sender: Processing packet 165079 [packets to send 106, broken 105] [20:08:25]ProducePacketName [20:08:25]name=ofd_packets/00165079 [20:08:25]OFD Sender: To server: pG, [20:08:25]CommunicateWithHost lk.salyk.kg:30040 [20:08:25]ConnectInit lk.salyk.kg [20:08:25]Connected sock=10 [20:08:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 A5 4B 07 01 43 F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 15 01 00 00 F4 03 04 00 38 30 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D7 84 02 00 35 04 06 00 D6 68 72 BE BB BB A4 61 DF 6D 38 8C A1 87 [20:08:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 CB EC 47 00 62 A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D7 84 02 00 F4 03 04 00 C5 D6 93 66 B6 04 01 00 00 87 0B 38 23 B7 EB 30 90 [20:08:25]CommunicateWithHost err = 0 [20:08:25]CheckOFDResponse [20:08:25]1017 (14) - 77093643461234 [20:08:25]1041 (16) - 0000000000874718 [20:08:25]1040 (4) - 165079 [20:08:25]1012 (4) - 14.07.2024 13:46 [20:08:25]1206 (1) - 0 [20:08:25]OFD Sender: Remove packet 165079 [20:08:25]ProducePacketName [20:08:25]name=ofd_packets/00165079 [20:08:25]NVStorageDeleteData [20:08:26]Write to MH i2c: 01 00 00 22 06 28 [20:08:26]Write i2c OK [20:08:26]MH_I2C_Read... [20:08:26]Read from MH i2c: 01 [20:08:26]MH_I2C_Read... [20:08:26]Read from MH i2c: 01 07 00 [20:08:26]MH_I2C_Read... [20:08:26]Read from MH i2c: 01 07 00 22 06 00 00 00 00 00 F3 0C 2E [20:08:26]RasterBufferAndPrint [20:08:26]line [20:08:26]line [20:08:26]line [20:08:26]line [20:08:26]line [20:08:26]written 0, free lines is 3322 [20:08:26]MH_Cut [20:08:26]Write to MH i2c: D1 01 00 29 06 01 01 [20:08:26]Write i2c OK [20:08:26]MH_I2C_Read... [20:08:26]Read from MH i2c: D1 [20:08:26]MH_I2C_Read... [20:08:26]Read from MH i2c: D1 01 00 [20:08:26]MH_I2C_Read... [20:08:26]Read from MH i2c: D1 01 00 29 06 00 00 [20:08:26]Write to MH i2c: 01 00 00 2A 06 30 [20:08:26]Write i2c OK [20:08:26]MH_I2C_Read... [20:08:26]OFD Sender: No OFD packet to send [20:08:26]*** Cut start [20:08:26]*** Partial cut [20:08:26]*** CUTSNS_PIN = 1 [20:08:26]*** CUTSNS_PIN = 0 [20:08:26]*** Brake cut motor [20:08:27]Read from MH i2c: 01 [20:08:27]MH_I2C_Read... [20:08:27]*** Stop cut motor [20:08:27]*** Cut end [20:08:27]Read from MH i2c: 01 07 00 [20:08:27]MH_I2C_Read... [20:08:27]Read from MH i2c: 01 07 00 2A 06 00 00 00 00 00 FF 0F 45 [20:08:27]process_action close_receipt done [20:08:27]requested_data is exist [20:08:27]produce_requested_data [20:08:27]requested_item fm.sn is exist - process it [20:08:27]wFMCommunicate request_size=4 [20:08:27]MH_SAM_APDU [20:08:27]CAPDU: 80 11 00 00 [20:08:27]Write to MH i2c: E2 08 00 2B 06 80 11 00 00 00 00 00 00 AB [20:08:27]Write i2c OK [20:08:27]MH_I2C_Read... [20:08:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:08:27]Read from MH i2c: E2 [20:08:27]MH_I2C_Read... [20:08:27]Read from MH i2c: E2 17 00 [20:08:27]MH_I2C_Read... [20:08:27]Read from MH i2c: E2 17 00 2B 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 01 [20:08:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:08:27]wFMCommunicate OK [20:08:27]requested_item fd.num is exist - process it [20:08:27]SAM_PROTO_GetFieldsCounters [20:08:27]wFMCommunicate request_size=4 [20:08:27]MH_SAM_APDU [20:08:27]CAPDU: 80 13 00 00 [20:08:27]Write to MH i2c: E2 08 00 2C 06 80 13 00 00 00 00 00 00 AE [20:08:27]Write i2c OK [20:08:27]MH_I2C_Read... [20:08:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:08:27]Read from MH i2c: E2 [20:08:27]MH_I2C_Read... [20:08:27]Read from MH i2c: E2 62 00 [20:08:27]MH_I2C_Read... [20:08:27]Read from MH i2c: E2 62 00 2C 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D7 84 02 00 0E 04 04 00 BF 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 34 [20:08:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D7 84 02 00 0E 04 04 00 BF 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 [20:08:27]wFMCommunicate OK [20:08:27]SAM_PROTO_GetFieldsCounters done [20:08:27]requested_item shift.num is exist - process it [20:08:27]requested_item shift.opened is exist - process it [20:08:27]req_shift_opened [20:08:27]FM_GetShiftState [20:08:27]SAM_PROTO_GetShiftState [20:08:27]wFMCommunicate request_size=4 [20:08:27]MH_SAM_APDU [20:08:27]CAPDU: 80 13 01 00 [20:08:27]Write to MH i2c: E2 08 00 2D 06 80 13 01 00 00 00 00 00 B0 [20:08:27]Write i2c OK [20:08:27]MH_I2C_Read... [20:08:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:08:27]Read from MH i2c: E2 [20:08:27]MH_I2C_Read... [20:08:27]Read from MH i2c: E2 0E 00 [20:08:27]MH_I2C_Read... [20:08:27]Read from MH i2c: E2 0E 00 2D 06 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 30 [20:08:27]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [20:08:27]wFMCommunicate OK [20:08:27]SAM_PROTO_GetShiftState done [20:08:27]FM_GetShiftState done [20:08:27]req_shift_opened done [20:08:27]requested_item shift.open_date is exist - process it [20:08:27]req_shift_open_date [20:08:27]req_shift_open_date done [20:08:27]produce_requested_data done [20:08:27]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165079,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [20:08:27]process_action_free close_receipt [20:08:27]json_value_free [20:08:27]json_value_free done [20:08:27]process_json_proto returns [20:08:27]Send response to host [20:08:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165079,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [20:08:27]free response buf [20:08:27]execute_script done [20:08:27]execute_script returns [20:08:27]free content buf [20:08:27]Sock 9.Close socket [20:08:27]Sock 9.Thread stoped [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]OFD Sender: No OFD packet to send [20:08:51]OFD Sender: No OFD packet to send [20:08:56]OFD Sender: No OFD packet to send [20:09:01]OFD Sender: No OFD packet to send [20:09:06]OFD Sender: No OFD packet to send [20:09:11]OFD Sender: No OFD packet to send [20:09:16]OFD Sender: No OFD packet to send [20:09:21]OFD Sender: No OFD packet to send [20:09:26]OFD Sender: No OFD packet to send [20:09:31]OFD Sender: No OFD packet to send [20:09:36]OFD Sender: No OFD packet to send [20:09:41]OFD Sender: No OFD packet to send [20:09:46]OFD Sender: No OFD packet to send [20:09:51]OFD Sender: No OFD packet to send [20:09:56]OFD Sender: No OFD packet to send [20:10:01]OFD Sender: No OFD packet to send [20:10:06]OFD Sender: No OFD packet to send [20:10:11]OFD Sender: No OFD packet to send [20:10:16]OFD Sender: No OFD packet to send [20:10:21]OFD Sender: No OFD packet to send [20:10:26]OFD Sender: No OFD packet to send [20:10:31]OFD Sender: No OFD packet to send [20:10:36]OFD Sender: No OFD packet to send [20:10:41]OFD Sender: No OFD packet to send [20:10:46]OFD Sender: No OFD packet to send [20:10:51]OFD Sender: No OFD packet to send [20:10:56]OFD Sender: No OFD packet to send [20:11:00]accept exits with 7 [20:11:00]New connection [20:11:00]New thread 3066785124 created [20:11:00]Thread 3066928484 joined [20:11:00]Waiting for new connection... [20:11:00] Sock 7.Parse request [20:11:00]Sock 7.Check first char [20:11:00]Sock 7.First char is OK [20:11:00]request: POST /json_proto HTTP/1.0 [20:11:00]Method: POST [20:11:00]URL: /json_proto [20:11:00]Method is POST - this is cgi request [20:11:00]url: /json_proto [20:11:00]query_string will be loaded in cgi processing [20:11:00]execute_cgi json_proto POST (null) [20:11:00]execute_cgi path=json_proto method=POST [20:11:00]POST find Content-Length [20:11:00]Host: 172.17.56.4:8080 [20:11:00]Content-Length: 677 [20:11:00]Content-Type: application/json [20:11:00] [20:11:00]POST finish read [20:11:00]Found Content-Length = 677 [20:11:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459183", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:11:00]execute_script... [20: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)459183", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:11:00]POST & json_proto [20:11:00]process_json_proto [20:11:00]json parsed OK: [20:11:00]protocol is kg_v1.0 [20:11:00]action value=close_receipt [20:11:00]process_action close_receipt [20:11:00]cmd_close_receipt [20:11:00]MH_GetDate [20:11:00]Write to MH i2c: F0 00 00 2E 06 23 [20:11:00]Write i2c OK [20:11:00]MH_I2C_Read... [20:11:00]Read from MH i2c: F0 [20:11:00]MH_I2C_Read... [20:11:00]Read from MH i2c: F0 09 00 [20:11:00]MH_I2C_Read... [20:11:00]Read from MH i2c: F0 09 00 2E 06 00 D5 30 94 66 C9 DC B2 64 E6 [20:11:00]GetLastDocTimeStamp 1720987704 [20:11:00]current date 1720987861 [20:11:00]FM_GetShiftState [20:11:00]SAM_PROTO_GetShiftState [20:11:00]wFMCommunicate request_size=4 [20:11:00]MH_SAM_APDU [20:11:00]CAPDU: 80 13 01 00 [20:11:00]Write to MH i2c: E2 08 00 2F 06 80 13 01 00 00 00 00 00 B2 [20:11:00]Write i2c OK [20:11:00]MH_I2C_Read... [20:11:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:11:00]Read from MH i2c: E2 [20:11:00]MH_I2C_Read... [20:11:00]Read from MH i2c: E2 0E 00 [20:11:00]MH_I2C_Read... [20:11:00]Read from MH i2c: E2 0E 00 2F 06 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 32 [20:11:00]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [20:11:00]wFMCommunicate OK [20:11:00]SAM_PROTO_GetShiftState done [20:11:00]FM_GetShiftState done [20:11:00]opened in 1720917342 [20:11:00]opened+sec_in_day 1721003742 [20:11:00]quantity*price = 50008 [20:11:00]sum+1 = 50009 [20:11:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 278 14.07.2024 20:11 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165080 ФПД: 4397824290534 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T201101&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165080&fm=4397824290534&tin=02508201610067®Number=0000000000090829&sum=50000 [20:11:01]StoreToDocumentArchive [20:11:01]shift 447 fd 165080 [20:11:01]save to /storage/0447/doc_00165080 [20:11:01]save last doc name /storage/0447/doc_00165080 to /storage/kkm_last_doc_name [20:11:01]save OK [20:11:01]Clear old archive folders... [20:11:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:11:01]tlvbuf is 013B72A0 [20:11:01]SAM_PROTO_ClearQueue [20:11:01]wFMCommunicate request_size=4 [20:11:01]MH_SAM_APDU [20:11:01]CAPDU: 80 09 00 00 [20:11:01]Write to MH i2c: E2 08 00 3C 06 80 09 00 00 00 00 00 00 B4 [20:11:01]Write i2c OK [20:11:01]MH_I2C_Read... [20:11:01]OFD Sender: No OFD packet to send [20:11:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:11:01]Read from MH i2c: E2 [20:11:01]MH_I2C_Read... [20:11:01]Read from MH i2c: E2 03 00 [20:11:01]MH_I2C_Read... [20:11:01]Read from MH i2c: E2 03 00 3C 06 00 90 00 B6 [20:11:01]RAPDU: 90 00 [20:11:01]wFMCommunicate OK [20:11:01]SAM_PROTO_ClearQueue done [20:11:01]KKMCreateOFDPacket [20:11:01]OFDProtocolAddRootSTLVToBuf [20:11:01]FM_MakeSignedData [20:11:01]FM_MakeSignedData [20:11:01]SAM_PROTO_SignData [20:11:01]wFMCommunicate request_size=4 [20:11:01]MH_SAM_APDU [20:11:01]CAPDU: 80 0D 01 02 [20:11:01]Write to MH i2c: E2 08 00 3D 06 80 0D 01 02 00 00 00 00 BC [20:11:01]Write i2c OK [20:11:01]MH_I2C_Read... [20:11:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:11:01]Read from MH i2c: E2 [20:11:01]MH_I2C_Read... [20:11:01]Read from MH i2c: E2 03 00 [20:11:01]MH_I2C_Read... [20:11:01]Read from MH i2c: E2 03 00 3D 06 00 90 00 B7 [20:11:01]RAPDU: 90 00 [20:11:01]wFMCommunicate OK [20:11:01]wFMCommunicate request_size=255 [20:11:01]MH_SAM_APDU [20:11:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 16 01 00 00 F4 03 04 00 D5 30 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D8 84 02 00 35 04 06 00 03 [20:11:01]Write to MH i2c: E2 02 01 3E 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 16 01 00 00 F4 03 04 00 D5 30 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D8 84 02 00 35 04 06 00 03 00 00 6C [20:11:01]Write i2c OK [20:11:01]MH_I2C_Read... [20:11:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:11:01]Read from MH i2c: E2 [20:11:01]MH_I2C_Read... [20:11:01]Read from MH i2c: E2 03 00 [20:11:01]MH_I2C_Read... [20:11:01]Read from MH i2c: E2 03 00 3E 06 00 90 00 B8 [20:11:01]RAPDU: 90 00 [20:11:01]wFMCommunicate OK [20:11:01]wFMCommunicate request_size=10 [20:11:01]MH_SAM_APDU [20:11:01]CAPDU: 80 0D 02 02 05 FF F2 C1 2E E6 [20:11:01]Write to MH i2c: E2 0D 00 3F 06 80 0D 02 02 05 00 FF F2 C1 2E E6 00 00 8F [20:11:01]Write i2c OK [20:11:01]MH_I2C_Read... [20:11:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:11:01]Read from MH i2c: E2 [20:11:01]MH_I2C_Read... [20:11:01]Read from MH i2c: E2 03 00 [20:11:01]MH_I2C_Read... [20:11:01]Read from MH i2c: E2 03 00 3F 06 00 90 00 B9 [20:11:01]RAPDU: 90 00 [20:11:01]wFMCommunicate OK [20:11:01]wFMCommunicate request_size=4 [20:11:01]MH_SAM_APDU [20:11:01]CAPDU: 80 0D 03 02 [20:11:01]Write to MH i2c: E2 08 00 40 06 80 0D 03 02 00 00 00 00 C1 [20:11:01]Write i2c OK [20:11:01]MH_I2C_Read... [20:11:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:11:02]Read from MH i2c: E2 [20:11:02]MH_I2C_Read... [20:11:02]Read from MH i2c: E2 0B 00 [20:11:02]MH_I2C_Read... [20:11:02]Read from MH i2c: E2 0B 00 40 06 00 4F 9B 15 74 4B 33 77 1E 90 00 48 [20:11:02]RAPDU: 4F 9B 15 74 4B 33 77 1E 90 00 [20:11:02]wFMCommunicate OK [20:11:02]SAM_PROTO_SignData done [20:11:02]FM_MakeSignedData done [20:11:02]CreateOFDProtocolMessage [20:11:02]wFMCommunicate request_size=4 [20:11:02]MH_SAM_APDU [20:11:02]CAPDU: 80 11 00 00 [20:11:02]Write to MH i2c: E2 08 00 41 06 80 11 00 00 00 00 00 00 C1 [20:11:02]Write i2c OK [20:11:02]MH_I2C_Read... [20:11:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:11:02]Read from MH i2c: E2 [20:11:02]MH_I2C_Read... [20:11:02]Read from MH i2c: E2 17 00 [20:11:02]MH_I2C_Read... [20:11:02]Read from MH i2c: E2 17 00 41 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 17 [20:11:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:11:02]wFMCommunicate OK [20:11:02]CreateOFDProtocolMessage done [20:11:02]OFDSenderStorePacket 165080 [20:11:02]StoreOFDPacket docnum=165080 [20:11:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 57 F2 07 01 43 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 16 01 00 00 F4 03 04 00 D5 30 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D8 84 02 00 35 04 06 00 03 FF F2 C1 2E E6 4F 9B 15 74 4B 33 77 1E [20:11:02]CheckFolder [20:11:02]dirname=/storage/ofd_packets [20:11:02]CheckFolder done [20:11:02]ProducePacketName [20:11:02]name=ofd_packets/00165080 [20:11:02]NVStorageSaveData ofd_packets/00165080 [20:11:02]File name is /storage/ofd_packets/00165080 [20:11:02]Write 301 bytes [20:11:02]NVStorageSaveData done [20:11:02]OFDSenderStorePacket done [20:11:02]KKMCreateOFDPacket done [20:11:02]NVStorageSaveData kkm_last_timestamp [20:11:02]File name is /storage/kkm_last_timestamp [20:11:02]Write 4 bytes [20:11:02]NVStorageSaveData done [20:11:02]ExternCall_PrintAddStr [20:11:02]wPrintStart [20:11:02]Write to MH i2c: 01 00 00 42 06 48 [20:11:02]Write i2c OK [20:11:02]MH_I2C_Read... [20:11:02]Read from MH i2c: 01 [20:11:02]MH_I2C_Read... [20:11:02]Read from MH i2c: 01 07 00 [20:11:02]MH_I2C_Read... [20:11:02]Read from MH i2c: 01 07 00 42 06 00 00 00 00 00 FF 0F 5D [20:11:02]RasterBufferAndPrint [20:11:02]line Счет N : (1)459183 [20:11:02]line ИНН: 02508201610067 [20:11:02]line Контрольно-Кассовый Чек [20:11:02]line ПРОДАЖА [20:11:02]line ТРК (МРК, ГНК) : 12 [20:11:02]line Товар: 2710124130 [20:11:02]line Аи-92-К-5 [20:11:02]line 7.600 * 65.80 [20:11:02]line = 500.08 [20:11:02]line НДС 12% НСП 1% [20:11:02]line > о реализуемом товаре [20:11:02]line ОКРУГЛЕНИЕ: -0.08 [20:11:02]line ИТОГО: 500.00 [20:11:02]line Внесено: 500.00 [20:11:02]line СДАЧА: 0.00 [20:11:02]line НСП 1% : 4.42 [20:11:02]line НДС 12% : 53.11 [20:11:02]line Наличными: 500.00 [20:11:02]line Безнал.: 0.00 [20:11:02]line Место: АЗС № 72 "Партнер Нефть" [20:11:02]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [20:11:02]line СНО: Общий режим [20:11:02]line Чек 278 14.07.2024 20:11 [20:11:02]line Смена: 447 ФФД: 1.0 [20:11:02]line ЗНМ: 0300000160 [20:11:02]line РНМ: 0000000000090829 [20:11:02]line Версия ККМ: 001 [20:11:02]line ФМ: 0000000000874718 [20:11:02]line ФД: 165080 [20:11:02]line ФПД: 4397824290534 [20:11:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T201101&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165080&fm=4397824290534&tin=02508201610067®Number=0000000000090829&sum=50000 [20:11:02]OFD Sender: Processing packet 165080 [packets to send 106, broken 105] [20:11:02]ProducePacketName [20:11:02]name=ofd_packets/00165080 [20:11:02]OFD Sender: To server: pG, [20:11:02]CommunicateWithHost lk.salyk.kg:30040 [20:11:02]ConnectInit lk.salyk.kg [20:11:02]written 0, free lines is 4095 [20:11:02]Connected sock=10 [20:11:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 57 F2 07 01 43 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 16 01 00 00 F4 03 04 00 D5 30 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D8 84 02 00 35 04 06 00 03 FF F2 C1 2E E6 4F 9B 15 74 4B 33 77 1E [20:11:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 BE 3F 47 00 87 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 38 37 34 37 31 38 10 04 04 00 D8 84 02 00 F4 03 04 00 62 D7 93 66 B6 04 01 00 00 3D 84 AE 3B AA 9A 29 A8 [20:11:02]CommunicateWithHost err = 0 [20:11:02]CheckOFDResponse [20:11:02]1017 (14) - 77093643461234 [20:11:02]1041 (16) - 0000000000874718 [20:11:02]1040 (4) - 165080 [20:11:02]1012 (4) - 14.07.2024 13:49 [20:11:02]1206 (1) - 0 [20:11:02]OFD Sender: Remove packet 165080 [20:11:02]ProducePacketName [20:11:02]name=ofd_packets/00165080 [20:11:02]NVStorageDeleteData [20:11:02]Write to MH i2c: 01 00 00 6C 06 72 [20:11:02]Write i2c OK [20:11:02]MH_I2C_Read... [20:11:02]Read from MH i2c: 01 [20:11:02]MH_I2C_Read... [20:11:02]Read from MH i2c: 01 07 00 [20:11:02]MH_I2C_Read... [20:11:02]Read from MH i2c: 01 07 00 6C 06 00 00 00 00 00 EF 0C 74 [20:11:02]RasterBufferAndPrint [20:11:02]line [20:11:02]line [20:11:02]line [20:11:02]line [20:11:02]line [20:11:02]written 0, free lines is 3317 [20:11:02]MH_Cut [20:11:02]Write to MH i2c: D1 01 00 73 06 01 4B [20:11:02]Write i2c OK [20:11:02]MH_I2C_Read... [20:11:02]Read from MH i2c: D1 [20:11:02]MH_I2C_Read... [20:11:02]Read from MH i2c: D1 01 00 [20:11:02]MH_I2C_Read... [20:11:02]Read from MH i2c: D1 01 00 73 06 00 4A [20:11:02]Write to MH i2c: 01 00 00 74 06 7A [20:11:02]Write i2c OK [20:11:02]MH_I2C_Read... [20:11:03]OFD Sender: No OFD packet to send [20:11:03]*** Cut start [20:11:03]*** Partial cut [20:11:03]*** CUTSNS_PIN = 1 [20:11:03]*** CUTSNS_PIN = 0 [20:11:03]*** Brake cut motor [20:11:04]Read from MH i2c: 01 [20:11:04]MH_I2C_Read... [20:11:04]*** Stop cut motor [20:11:04]*** Cut end [20:11:04]Read from MH i2c: 01 07 00 [20:11:04]MH_I2C_Read... [20:11:04]Read from MH i2c: 01 07 00 74 06 00 00 00 00 00 FF 0F 8F [20:11:04]process_action close_receipt done [20:11:04]requested_data is exist [20:11:04]produce_requested_data [20:11:04]requested_item fm.sn is exist - process it [20:11:04]wFMCommunicate request_size=4 [20:11:04]MH_SAM_APDU [20:11:04]CAPDU: 80 11 00 00 [20:11:04]Write to MH i2c: E2 08 00 75 06 80 11 00 00 00 00 00 00 F5 [20:11:04]Write i2c OK [20:11:04]MH_I2C_Read... [20:11:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:11:04]Read from MH i2c: E2 [20:11:04]MH_I2C_Read... [20:11:04]Read from MH i2c: E2 17 00 [20:11:04]MH_I2C_Read... [20:11:04]Read from MH i2c: E2 17 00 75 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 4B [20:11:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:11:04]wFMCommunicate OK [20:11:04]requested_item fd.num is exist - process it [20:11:04]SAM_PROTO_GetFieldsCounters [20:11:04]wFMCommunicate request_size=4 [20:11:04]MH_SAM_APDU [20:11:04]CAPDU: 80 13 00 00 [20:11:04]Write to MH i2c: E2 08 00 76 06 80 13 00 00 00 00 00 00 F8 [20:11:04]Write i2c OK [20:11:04]MH_I2C_Read... [20:11:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:11:04]Read from MH i2c: E2 [20:11:04]MH_I2C_Read... [20:11:04]Read from MH i2c: E2 62 00 [20:11:04]MH_I2C_Read... [20:11:04]Read from MH i2c: E2 62 00 76 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D8 84 02 00 0E 04 04 00 BF 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 82 [20:11:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D8 84 02 00 0E 04 04 00 BF 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 [20:11:04]wFMCommunicate OK [20:11:04]SAM_PROTO_GetFieldsCounters done [20:11:04]requested_item shift.num is exist - process it [20:11:04]requested_item shift.opened is exist - process it [20:11:04]req_shift_opened [20:11:04]FM_GetShiftState [20:11:04]SAM_PROTO_GetShiftState [20:11:04]wFMCommunicate request_size=4 [20:11:04]MH_SAM_APDU [20:11:04]CAPDU: 80 13 01 00 [20:11:04]Write to MH i2c: E2 08 00 77 06 80 13 01 00 00 00 00 00 FA [20:11:04]Write i2c OK [20:11:04]MH_I2C_Read... [20:11:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:11:04]Read from MH i2c: E2 [20:11:04]MH_I2C_Read... [20:11:04]Read from MH i2c: E2 0E 00 [20:11:04]MH_I2C_Read... [20:11:04]Read from MH i2c: E2 0E 00 77 06 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 7A [20:11:04]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [20:11:04]wFMCommunicate OK [20:11:04]SAM_PROTO_GetShiftState done [20:11:04]FM_GetShiftState done [20:11:04]req_shift_opened done [20:11:04]requested_item shift.open_date is exist - process it [20:11:04]req_shift_open_date [20:11:04]req_shift_open_date done [20:11:04]produce_requested_data done [20:11:04]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165080,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [20:11:04]process_action_free close_receipt [20:11:04]json_value_free [20:11:04]json_value_free done [20:11:04]process_json_proto returns [20:11:04]Send response to host [20:11:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165080,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [20:11:04]free response buf [20:11:04]execute_script done [20:11:04]execute_script returns [20:11:04]free content buf [20:11:04]Sock 7.Close socket [20:11:04]Sock 7.Thread stoped [20:11:08]OFD Sender: No OFD packet to send [20:11:13]OFD Sender: No OFD packet to send [20:11:18]OFD Sender: No OFD packet to send [20:11:23]OFD Sender: No OFD packet to send [20:11:28]OFD Sender: No OFD packet to send [20:11:33]OFD Sender: No OFD packet to send [20:11:38]OFD Sender: No OFD packet to send [20:11:43]OFD Sender: No OFD packet to send [20:11:48]OFD Sender: No OFD packet to send [20:11:53]OFD Sender: No OFD packet to send [20:11:58]OFD Sender: No OFD packet to send [20:12:03]OFD Sender: No OFD packet to send [20:12:08]OFD Sender: No OFD packet to send [20:12:13]OFD Sender: No OFD packet to send [20:12:18]OFD Sender: No OFD packet to send [20:12:23]OFD Sender: No OFD packet to send [20:12:28]OFD Sender: No OFD packet to send [20:12:33]OFD Sender: No OFD packet to send [20:12:38]OFD Sender: No OFD packet to send [20:12:43]OFD Sender: No OFD packet to send [20:12:48]OFD Sender: No OFD packet to send [20:12:53]OFD Sender: No OFD packet to send [20:12:58]OFD Sender: No OFD packet to send [20:13:03]OFD Sender: No OFD packet to send [20:13:08]OFD Sender: No OFD packet to send [20:13:13]OFD Sender: No OFD packet to send [20:13:18]OFD Sender: No OFD packet to send [20:13:23]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:43]OFD Sender: No OFD packet to send [20:16:48]OFD Sender: No OFD packet to send [20:16:53]OFD Sender: No OFD packet to send [20:16:58]OFD Sender: No OFD packet to send [20:17:03]OFD Sender: No OFD packet to send [20:17:08]OFD Sender: No OFD packet to send [20:17:13]OFD Sender: No OFD packet to send [20:17:18]OFD Sender: No OFD packet to send [20:17:23]OFD Sender: No OFD packet to send [20:17:28]OFD Sender: No OFD packet to send [20:17:33]OFD Sender: No OFD packet to send [20:17:38]OFD Sender: No OFD packet to send [20:17:43]OFD Sender: No OFD packet to send [20:17:48]OFD Sender: No OFD packet to send [20:17:53]OFD Sender: No OFD packet to send [20:17:58]OFD Sender: No OFD packet to send [20:18:03]OFD Sender: No OFD packet to send [20:18:08]OFD Sender: No OFD packet to send [20:18:13]OFD Sender: No OFD packet to send [20:18:18]OFD Sender: No OFD packet to send [20:18:23]OFD Sender: No OFD packet to send [20:18:28]OFD Sender: No OFD packet to send [20:18:33]OFD Sender: No OFD packet to send [20:18:38]OFD Sender: No OFD packet to send [20:18:43]OFD Sender: No OFD packet to send [20:18:44]accept exits with 9 [20:18:44]New connection [20:18:44]New thread 3066928484 created [20:18:44]Thread 3066785124 joined [20:18:44]Waiting for new connection... [20:18:44] Sock 9.Parse request [20:18:44]Sock 9.Check first char [20:18:44]Sock 9.First char is OK [20:18:44]request: POST /json_proto HTTP/1.0 [20:18:44]Method: POST [20:18:44]URL: /json_proto [20:18:44]Method is POST - this is cgi request [20:18:44]url: /json_proto [20:18:44]query_string will be loaded in cgi processing [20:18:44]execute_cgi json_proto POST (null) [20:18:44]execute_cgi path=json_proto method=POST [20:18:44]POST find Content-Length [20:18:44]Host: 172.17.56.4:8080 [20:18:44]Content-Length: 677 [20:18:44]Content-Type: application/json [20:18:44] [20:18:44]POST finish read [20:18:44]Found Content-Length = 677 [20:18:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459184", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:18:44]execute_script... [20:18: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)459184", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:18:44]POST & json_proto [20:18:44]process_json_proto [20:18:44]json parsed OK: [20:18:44]protocol is kg_v1.0 [20:18:44]action value=close_receipt [20:18:44]process_action close_receipt [20:18:44]cmd_close_receipt [20:18:44]MH_GetDate [20:18:44]Write to MH i2c: F0 00 00 78 06 6D [20:18:44]Write i2c OK [20:18:44]MH_I2C_Read... [20:18:44]Read from MH i2c: F0 [20:18:44]MH_I2C_Read... [20:18:44]Read from MH i2c: F0 09 00 [20:18:44]MH_I2C_Read... [20:18:44]Read from MH i2c: F0 09 00 78 06 00 A5 32 94 66 C9 DC B2 64 02 [20:18:44]GetLastDocTimeStamp 1720987861 [20:18:44]current date 1720988325 [20:18:44]FM_GetShiftState [20:18:44]SAM_PROTO_GetShiftState [20:18:44]wFMCommunicate request_size=4 [20:18:44]MH_SAM_APDU [20:18:44]CAPDU: 80 13 01 00 [20:18:44]Write to MH i2c: E2 08 00 79 06 80 13 01 00 00 00 00 00 FC [20:18:44]Write i2c OK [20:18:44]MH_I2C_Read... [20:18:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:18:44]Read from MH i2c: E2 [20:18:44]MH_I2C_Read... [20:18:44]Read from MH i2c: E2 0E 00 [20:18:44]MH_I2C_Read... [20:18:44]Read from MH i2c: E2 0E 00 79 06 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 7C [20:18:44]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [20:18:44]wFMCommunicate OK [20:18:44]SAM_PROTO_GetShiftState done [20:18:44]FM_GetShiftState done [20:18:44]opened in 1720917342 [20:18:44]opened+sec_in_day 1721003742 [20:18:44]quantity*price = 50008 [20:18:44]sum+1 = 50009 [20:18:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 279 14.07.2024 20:18 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165081 ФПД: 205187319759311 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T201845&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165081&fm=205187319759311&tin=02508201610067®Number=0000000000090829&sum=50000 [20:18:45]StoreToDocumentArchive [20:18:45]shift 447 fd 165081 [20:18:45]save to /storage/0447/doc_00165081 [20:18:45]save last doc name /storage/0447/doc_00165081 to /storage/kkm_last_doc_name [20:18:45]save OK [20:18:45]Clear old archive folders... [20:18:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:18:45]tlvbuf is 01343FA0 [20:18:45]SAM_PROTO_ClearQueue [20:18:45]wFMCommunicate request_size=4 [20:18:45]MH_SAM_APDU [20:18:45]CAPDU: 80 09 00 00 [20:18:45]Write to MH i2c: E2 08 00 86 06 80 09 00 00 00 00 00 00 FE [20:18:45]Write i2c OK [20:18:45]MH_I2C_Read... [20:18:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:18:45]Read from MH i2c: E2 [20:18:45]MH_I2C_Read... [20:18:45]Read from MH i2c: E2 03 00 [20:18:45]MH_I2C_Read... [20:18:45]Read from MH i2c: E2 03 00 86 06 00 90 00 00 [20:18:45]RAPDU: 90 00 [20:18:45]wFMCommunicate OK [20:18:45]SAM_PROTO_ClearQueue done [20:18:45]KKMCreateOFDPacket [20:18:45]OFDProtocolAddRootSTLVToBuf [20:18:45]FM_MakeSignedData [20:18:45]FM_MakeSignedData [20:18:45]SAM_PROTO_SignData [20:18:45]wFMCommunicate request_size=4 [20:18:45]MH_SAM_APDU [20:18:45]CAPDU: 80 0D 01 02 [20:18:45]Write to MH i2c: E2 08 00 87 06 80 0D 01 02 00 00 00 00 06 [20:18:45]Write i2c OK [20:18:45]MH_I2C_Read... [20:18:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:18:45]Read from MH i2c: E2 [20:18:45]MH_I2C_Read... [20:18:45]Read from MH i2c: E2 03 00 [20:18:45]MH_I2C_Read... [20:18:45]Read from MH i2c: E2 03 00 87 06 00 90 00 01 [20:18:45]RAPDU: 90 00 [20:18:45]wFMCommunicate OK [20:18:45]wFMCommunicate request_size=255 [20:18:45]MH_SAM_APDU [20:18:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 A5 32 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D9 84 02 00 35 04 06 00 BA [20:18:45]Write to MH i2c: E2 02 01 88 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 A5 32 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D9 84 02 00 35 04 06 00 BA 00 00 41 [20:18:45]Write i2c OK [20:18:45]MH_I2C_Read... [20:18:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:18:46]Read from MH i2c: E2 [20:18:46]MH_I2C_Read... [20:18:46]Read from MH i2c: E2 03 00 [20:18:46]MH_I2C_Read... [20:18:46]Read from MH i2c: E2 03 00 88 06 00 90 00 02 [20:18:46]RAPDU: 90 00 [20:18:46]wFMCommunicate OK [20:18:46]wFMCommunicate request_size=10 [20:18:46]MH_SAM_APDU [20:18:46]CAPDU: 80 0D 02 02 05 9D E5 4E 81 CF [20:18:46]Write to MH i2c: E2 0D 00 89 06 80 0D 02 02 05 00 9D E5 4E 81 CF 00 00 33 [20:18:46]Write i2c OK [20:18:46]MH_I2C_Read... [20:18:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:18:46]Read from MH i2c: E2 [20:18:46]MH_I2C_Read... [20:18:46]Read from MH i2c: E2 03 00 [20:18:46]MH_I2C_Read... [20:18:46]Read from MH i2c: E2 03 00 89 06 00 90 00 03 [20:18:46]RAPDU: 90 00 [20:18:46]wFMCommunicate OK [20:18:46]wFMCommunicate request_size=4 [20:18:46]MH_SAM_APDU [20:18:46]CAPDU: 80 0D 03 02 [20:18:46]Write to MH i2c: E2 08 00 8A 06 80 0D 03 02 00 00 00 00 0B [20:18:46]Write i2c OK [20:18:46]MH_I2C_Read... [20:18:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:18:46]Read from MH i2c: E2 [20:18:46]MH_I2C_Read... [20:18:46]Read from MH i2c: E2 0B 00 [20:18:46]MH_I2C_Read... [20:18:46]Read from MH i2c: E2 0B 00 8A 06 00 13 D9 3F DB 66 62 D1 72 90 00 1D [20:18:46]RAPDU: 13 D9 3F DB 66 62 D1 72 90 00 [20:18:46]wFMCommunicate OK [20:18:46]SAM_PROTO_SignData done [20:18:46]FM_MakeSignedData done [20:18:46]CreateOFDProtocolMessage [20:18:46]wFMCommunicate request_size=4 [20:18:46]MH_SAM_APDU [20:18:46]CAPDU: 80 11 00 00 [20:18:46]Write to MH i2c: E2 08 00 8B 06 80 11 00 00 00 00 00 00 0B [20:18:46]Write i2c OK [20:18:46]MH_I2C_Read... [20:18:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:18:46]Read from MH i2c: E2 [20:18:46]MH_I2C_Read... [20:18:46]Read from MH i2c: E2 17 00 [20:18:46]MH_I2C_Read... [20:18:46]Read from MH i2c: E2 17 00 8B 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 61 [20:18:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:18:46]wFMCommunicate OK [20:18:46]CreateOFDProtocolMessage done [20:18:46]OFDSenderStorePacket 165081 [20:18:46]StoreOFDPacket docnum=165081 [20:18:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 90 4B 07 01 86 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 A5 32 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D9 84 02 00 35 04 06 00 BA 9D E5 4E 81 CF 13 D9 3F DB 66 62 D1 72 [20:18:46]CheckFolder [20:18:46]dirname=/storage/ofd_packets [20:18:46]CheckFolder done [20:18:46]ProducePacketName [20:18:46]name=ofd_packets/00165081 [20:18:46]NVStorageSaveData ofd_packets/00165081 [20:18:46]File name is /storage/ofd_packets/00165081 [20:18:46]Write 301 bytes [20:18:46]NVStorageSaveData done [20:18:46]OFDSenderStorePacket done [20:18:46]KKMCreateOFDPacket done [20:18:46]NVStorageSaveData kkm_last_timestamp [20:18:46]File name is /storage/kkm_last_timestamp [20:18:46]Write 4 bytes [20:18:46]NVStorageSaveData done [20:18:46]OFD Sender: Processing packet 165081 [packets to send 106, broken 105] [20:18:46]ProducePacketName [20:18:46]name=ofd_packets/00165081 [20:18:46]OFD Sender: To server: pG, [20:18:46]CommunicateWithHost lk.salyk.kg:30040 [20:18:46]ConnectInit lk.salyk.kg [20:18:46]ExternCall_PrintAddStr [20:18:46]wPrintStart [20:18:46]Write to MH i2c: 01 00 00 8C 06 92 [20:18:46]Write i2c OK [20:18:46]MH_I2C_Read... [20:18:46]Read from MH i2c: 01 [20:18:46]MH_I2C_Read... [20:18:46]Read from MH i2c: 01 07 00 [20:18:46]MH_I2C_Read... [20:18:46]Read from MH i2c: 01 07 00 8C 06 00 00 00 00 00 FF 0F A7 [20:18:46]RasterBufferAndPrint [20:18:46]line Счет N : (1)459184 [20:18:46]line ИНН: 02508201610067 [20:18:46]line Контрольно-Кассовый Чек [20:18:46]line ПРОДАЖА [20:18:46]line ТРК (МРК, ГНК) : 12 [20:18:46]line Товар: 2710124130 [20:18:46]line Аи-92-К-5 [20:18:46]line 7.600 * 65.80 [20:18:46]line = 500.08 [20:18:46]line НДС 12% НСП 1% [20:18:46]line > о реализуемом товаре [20:18:46]line ОКРУГЛЕНИЕ: -0.08 [20:18:46]line ИТОГО: 500.00 [20:18:46]line Внесено: 500.00 [20:18:46]line СДАЧА: 0.00 [20:18:46]line НСП 1% : 4.42 [20:18:46]line НДС 12% : 53.11 [20:18:46]line Наличными: 500.00 [20:18:46]line Безнал.: 0.00 [20:18:46]line Место: АЗС № 72 "Партнер Нефть" [20:18:46]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [20:18:46]line СНО: Общий режим [20:18:46]line Чек 279 14.07.2024 20:18 [20:18:46]line Смена: 447 ФФД: 1.0 [20:18:46]line ЗНМ: 0300000160 [20:18:46]line РНМ: 0000000000090829 [20:18:46]line Версия ККМ: 001 [20:18:46]line ФМ: 0000000000874718 [20:18:46]line ФД: 165081 [20:18:46]line ФПД: 205187319759311 [20:18:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T201845&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165081&fm=205187319759311&tin=02508201610067®Number=0000000000090829&sum=50000 [20:18:46]Connected sock=11 [20:18:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 90 4B 07 01 86 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 A5 32 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D9 84 02 00 35 04 06 00 BA 9D E5 4E 81 CF 13 D9 3F DB 66 62 D1 72 [20:18:46]written 0, free lines is 4095 [20:18:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 6A 5A 47 00 63 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 38 37 34 37 31 38 10 04 04 00 D9 84 02 00 F4 03 04 00 32 D9 93 66 B6 04 01 00 00 5C 65 A4 1F 83 F5 77 65 [20:18:46]CommunicateWithHost err = 0 [20:18:46]CheckOFDResponse [20:18:46]1017 (14) - 77093643461234 [20:18:46]1041 (16) - 0000000000874718 [20:18:46]1040 (4) - 165081 [20:18:46]1012 (4) - 14.07.2024 13:57 [20:18:46]1206 (1) - 0 [20:18:46]OFD Sender: Remove packet 165081 [20:18:46]ProducePacketName [20:18:46]name=ofd_packets/00165081 [20:18:46]NVStorageDeleteData [20:18:46]Write to MH i2c: 01 00 00 B6 06 BC [20:18:46]Write i2c OK [20:18:46]MH_I2C_Read... [20:18:46]Read from MH i2c: 01 [20:18:46]MH_I2C_Read... [20:18:46]Read from MH i2c: 01 07 00 [20:18:46]MH_I2C_Read... [20:18:46]Read from MH i2c: 01 07 00 B6 06 00 00 00 00 00 EF 0C BE [20:18:46]RasterBufferAndPrint [20:18:46]line [20:18:46]line [20:18:46]line [20:18:46]line [20:18:46]line [20:18:46]written 0, free lines is 3317 [20:18:46]MH_Cut [20:18:46]Write to MH i2c: D1 01 00 BD 06 01 95 [20:18:46]Write i2c OK [20:18:46]MH_I2C_Read... [20:18:46]Read from MH i2c: D1 [20:18:46]MH_I2C_Read... [20:18:46]Read from MH i2c: D1 01 00 [20:18:46]MH_I2C_Read... [20:18:46]Read from MH i2c: D1 01 00 BD 06 00 94 [20:18:46]Write to MH i2c: 01 00 00 BE 06 C4 [20:18:46]Write i2c OK [20:18:46]MH_I2C_Read... [20:18:47]OFD Sender: No OFD packet to send [20:18:47]*** Cut start [20:18:47]*** Partial cut [20:18:47]*** CUTSNS_PIN = 1 [20:18:47]*** CUTSNS_PIN = 0 [20:18:47]*** Brake cut motor [20:18:48]Read from MH i2c: 01 [20:18:48]MH_I2C_Read... [20:18:48]*** Stop cut motor [20:18:48]*** Cut end [20:18:48]Read from MH i2c: 01 07 00 [20:18:48]MH_I2C_Read... [20:18:48]Read from MH i2c: 01 07 00 BE 06 00 00 00 00 00 FF 0F D9 [20:18:48]process_action close_receipt done [20:18:48]requested_data is exist [20:18:48]produce_requested_data [20:18:48]requested_item fm.sn is exist - process it [20:18:48]wFMCommunicate request_size=4 [20:18:48]MH_SAM_APDU [20:18:48]CAPDU: 80 11 00 00 [20:18:48]Write to MH i2c: E2 08 00 BF 06 80 11 00 00 00 00 00 00 3F [20:18:48]Write i2c OK [20:18:48]MH_I2C_Read... [20:18:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:18:48]Read from MH i2c: E2 [20:18:48]MH_I2C_Read... [20:18:48]Read from MH i2c: E2 17 00 [20:18:48]MH_I2C_Read... [20:18:48]Read from MH i2c: E2 17 00 BF 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 95 [20:18:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:18:48]wFMCommunicate OK [20:18:48]requested_item fd.num is exist - process it [20:18:48]SAM_PROTO_GetFieldsCounters [20:18:48]wFMCommunicate request_size=4 [20:18:48]MH_SAM_APDU [20:18:48]CAPDU: 80 13 00 00 [20:18:48]Write to MH i2c: E2 08 00 C0 06 80 13 00 00 00 00 00 00 42 [20:18:48]Write i2c OK [20:18:48]MH_I2C_Read... [20:18:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:18:48]Read from MH i2c: E2 [20:18:48]MH_I2C_Read... [20:18:48]Read from MH i2c: E2 62 00 [20:18:48]MH_I2C_Read... [20:18:48]Read from MH i2c: E2 62 00 C0 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D9 84 02 00 0E 04 04 00 BF 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 D0 [20:18:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D9 84 02 00 0E 04 04 00 BF 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 [20:18:48]wFMCommunicate OK [20:18:48]SAM_PROTO_GetFieldsCounters done [20:18:48]requested_item shift.num is exist - process it [20:18:48]requested_item shift.opened is exist - process it [20:18:48]req_shift_opened [20:18:48]FM_GetShiftState [20:18:48]SAM_PROTO_GetShiftState [20:18:48]wFMCommunicate request_size=4 [20:18:48]MH_SAM_APDU [20:18:48]CAPDU: 80 13 01 00 [20:18:48]Write to MH i2c: E2 08 00 C1 06 80 13 01 00 00 00 00 00 44 [20:18:48]Write i2c OK [20:18:48]MH_I2C_Read... [20:18:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:18:48]Read from MH i2c: E2 [20:18:48]MH_I2C_Read... [20:18:48]Read from MH i2c: E2 0E 00 [20:18:48]MH_I2C_Read... [20:18:48]Read from MH i2c: E2 0E 00 C1 06 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 C4 [20:18:48]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [20:18:48]wFMCommunicate OK [20:18:48]SAM_PROTO_GetShiftState done [20:18:48]FM_GetShiftState done [20:18:48]req_shift_opened done [20:18:48]requested_item shift.open_date is exist - process it [20:18:48]req_shift_open_date [20:18:48]req_shift_open_date done [20:18:48]produce_requested_data done [20:18:48]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165081,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [20:18:48]process_action_free close_receipt [20:18:48]json_value_free [20:18:48]json_value_free done [20:18:48]process_json_proto returns [20:18:48]Send response to host [20:18:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165081,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [20:18:48]free response buf [20:18:48]execute_script done [20:18:48]execute_script returns [20:18:48]free content buf [20:18:48]Sock 9.Close socket [20:18:48]Sock 9.Thread stoped [20:18:52]OFD Sender: No OFD packet to send [20:18:57]OFD Sender: No OFD packet to send [20:19:02]OFD Sender: No OFD packet to send [20:19:07]OFD Sender: No OFD packet to send [20:19:12]OFD Sender: No OFD packet to send [20:19:17]OFD Sender: No OFD packet to send [20:19:22]OFD Sender: No OFD packet to send [20:19:27]OFD Sender: No OFD packet to send [20:19:32]OFD Sender: No OFD packet to send [20:19:37]OFD Sender: No OFD packet to send [20:19:42]OFD Sender: No OFD packet to send [20:19:47]OFD Sender: No OFD packet to send [20:19:52]OFD Sender: No OFD packet to send [20:19:57]OFD Sender: No OFD packet to send [20:20:02]OFD Sender: No OFD packet to send [20:20:07]OFD Sender: No OFD packet to send [20:20:12]OFD Sender: No OFD packet to send [20:20:17]OFD Sender: No OFD packet to send [20:20:22]OFD Sender: No OFD packet to send [20:20:27]OFD Sender: No OFD packet to send [20:20:32]OFD Sender: No OFD packet to send [20:20:37]OFD Sender: No OFD packet to send [20:20:42]OFD Sender: No OFD packet to send [20:20:47]OFD Sender: No OFD packet to send [20:20:52]OFD Sender: No OFD packet to send [20:20:57]OFD Sender: No OFD packet to send [20:21:02]OFD Sender: No OFD packet to send [20:21:07]OFD Sender: No OFD packet to send [20:21:12]OFD Sender: No OFD packet to send [20:21:17]OFD Sender: No OFD packet to send [20:21:22]OFD Sender: No OFD packet to send [20:21:27]OFD Sender: No OFD packet to send [20:21:32]OFD Sender: No OFD packet to send [20:21:37]OFD Sender: No OFD packet to send [20:21:42]OFD Sender: No OFD packet to send [20:21:47]OFD Sender: No OFD packet to send [20:21:52]OFD Sender: No OFD packet to send [20:21:57]OFD Sender: No OFD packet to send [20:22:02]OFD Sender: No OFD packet to send [20:22:07]OFD Sender: No OFD packet to send [20:22:12]OFD Sender: No OFD packet to send [20:22:17]OFD Sender: No OFD packet to send [20:22:22]OFD Sender: No OFD packet to send [20:22:27]OFD Sender: No OFD packet to send [20:22:32]OFD Sender: No OFD packet to send [20:22:37]OFD Sender: No OFD packet to send [20:22:42]OFD Sender: No OFD packet to send [20:22:47]OFD Sender: No OFD packet to send [20:22:52]OFD Sender: No OFD packet to send [20:22:57]OFD Sender: No OFD packet to send [20:23:02]OFD Sender: No OFD packet to send [20:23:07]OFD Sender: No OFD packet to send [20:23:12]OFD Sender: No OFD packet to send [20:23:17]OFD Sender: No OFD packet to send [20:23:22]OFD Sender: No OFD packet to send [20:23:27]OFD Sender: No OFD packet to send [20:23:32]OFD Sender: No OFD packet to send [20:23:37]OFD Sender: No OFD packet to send [20:23:42]OFD Sender: No OFD packet to send [20:23:47]OFD Sender: No OFD packet to send [20:23:52]OFD Sender: No OFD packet to send [20:23:57]OFD Sender: No OFD packet to send [20:24:02]OFD Sender: No OFD packet to send [20:24:07]OFD Sender: No OFD packet to send [20:24:12]OFD Sender: No OFD packet to send [20:24:17]OFD Sender: No OFD packet to send [20:24:22]OFD Sender: No OFD packet to send [20:24:27]OFD Sender: No OFD packet to send [20:24:32]OFD Sender: No OFD packet to send [20:24:37]OFD Sender: No OFD packet to send [20:24:42]OFD Sender: No OFD packet to send [20:24:47]OFD Sender: No OFD packet to send [20:24:52]OFD Sender: No OFD packet to send [20:24:57]OFD Sender: No OFD packet to send [20:25:02]OFD Sender: No OFD packet to send [20:25:07]OFD Sender: No OFD packet to send [20:25:12]OFD Sender: No OFD packet to send [20:25:17]OFD Sender: No OFD packet to send [20:25:22]OFD Sender: No OFD packet to send [20:25:27]OFD Sender: No OFD packet to send [20:25:32]OFD Sender: No OFD packet to send [20:25:37]OFD Sender: No OFD packet to send [20:25:42]OFD Sender: No OFD packet to send [20:25:47]OFD Sender: No OFD packet to send [20:25:49]accept exits with 7 [20:25:49]New connection [20:25:49]New thread 3066785124 created [20:25:49]Thread 3066928484 joined [20:25:49]Waiting for new connection... [20:25:49] Sock 7.Parse request [20:25:49]Sock 7.Check first char [20:25:49]Sock 7.First char is OK [20:25:49]request: POST /json_proto HTTP/1.0 [20:25:49]Method: POST [20:25:49]URL: /json_proto [20:25:49]Method is POST - this is cgi request [20:25:49]url: /json_proto [20:25:49]query_string will be loaded in cgi processing [20:25:49]execute_cgi json_proto POST (null) [20:25:49]execute_cgi path=json_proto method=POST [20:25:49]POST find Content-Length [20:25:49]Host: 172.17.56.4:8080 [20:25:49]Content-Length: 677 [20:25:49]Content-Type: application/json [20:25:49] [20:25:49]POST finish read [20:25:49]Found Content-Length = 677 [20:25:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459185", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "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" ] } } [20:25:49]execute_script... [20:25: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)459185", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "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" ] } } [20:25:49]POST & json_proto [20:25:49]process_json_proto [20:25:49]json parsed OK: [20:25:49]protocol is kg_v1.0 [20:25:49]action value=close_receipt [20:25:49]process_action close_receipt [20:25:49]cmd_close_receipt [20:25:49]MH_GetDate [20:25:49]Write to MH i2c: F0 00 00 C2 06 B7 [20:25:49]Write i2c OK [20:25:49]MH_I2C_Read... [20:25:49]Read from MH i2c: F0 [20:25:49]MH_I2C_Read... [20:25:49]Read from MH i2c: F0 09 00 [20:25:49]MH_I2C_Read... [20:25:49]Read from MH i2c: F0 09 00 C2 06 00 4E 34 94 66 C9 DC B2 64 F7 [20:25:49]GetLastDocTimeStamp 1720988325 [20:25:49]current date 1720988750 [20:25:49]FM_GetShiftState [20:25:49]SAM_PROTO_GetShiftState [20:25:49]wFMCommunicate request_size=4 [20:25:49]MH_SAM_APDU [20:25:49]CAPDU: 80 13 01 00 [20:25:49]Write to MH i2c: E2 08 00 C3 06 80 13 01 00 00 00 00 00 46 [20:25:49]Write i2c OK [20:25:49]MH_I2C_Read... [20:25:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:25:49]Read from MH i2c: E2 [20:25:49]MH_I2C_Read... [20:25:49]Read from MH i2c: E2 0E 00 [20:25:49]MH_I2C_Read... [20:25:49]Read from MH i2c: E2 0E 00 C3 06 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 C6 [20:25:49]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [20:25:49]wFMCommunicate OK [20:25:49]SAM_PROTO_GetShiftState done [20:25:49]FM_GetShiftState done [20:25:49]opened in 1720917342 [20:25:49]opened+sec_in_day 1721003742 [20:25:49]quantity*price = 20003 [20:25:49]sum+1 = 20004 [20:25: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 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 280 14.07.2024 20:25 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165082 ФПД: 57636704335486 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T202550&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165082&fm=57636704335486&tin=02508201610067®Number=0000000000090829&sum=20000 [20:25:50]StoreToDocumentArchive [20:25:50]shift 447 fd 165082 [20:25:50]save to /storage/0447/doc_00165082 [20:25:50]save last doc name /storage/0447/doc_00165082 to /storage/kkm_last_doc_name [20:25:50]save OK [20:25:50]Clear old archive folders... [20:25:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:25:50]tlvbuf is B6F4F210 [20:25:50]SAM_PROTO_ClearQueue [20:25:50]wFMCommunicate request_size=4 [20:25:50]MH_SAM_APDU [20:25:50]CAPDU: 80 09 00 00 [20:25:50]Write to MH i2c: E2 08 00 D0 06 80 09 00 00 00 00 00 00 48 [20:25:50]Write i2c OK [20:25:50]MH_I2C_Read... [20:25:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:25:50]Read from MH i2c: E2 [20:25:50]MH_I2C_Read... [20:25:50]Read from MH i2c: E2 03 00 [20:25:50]MH_I2C_Read... [20:25:50]Read from MH i2c: E2 03 00 D0 06 00 90 00 4A [20:25:50]RAPDU: 90 00 [20:25:50]wFMCommunicate OK [20:25:50]SAM_PROTO_ClearQueue done [20:25:50]KKMCreateOFDPacket [20:25:50]OFDProtocolAddRootSTLVToBuf [20:25:50]FM_MakeSignedData [20:25:50]FM_MakeSignedData [20:25:50]SAM_PROTO_SignData [20:25:50]wFMCommunicate request_size=4 [20:25:50]MH_SAM_APDU [20:25:50]CAPDU: 80 0D 01 02 [20:25:50]Write to MH i2c: E2 08 00 D1 06 80 0D 01 02 00 00 00 00 50 [20:25:50]Write i2c OK [20:25:50]MH_I2C_Read... [20:25:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:25:50]Read from MH i2c: E2 [20:25:50]MH_I2C_Read... [20:25:50]Read from MH i2c: E2 03 00 [20:25:50]MH_I2C_Read... [20:25:50]Read from MH i2c: E2 03 00 D1 06 00 90 00 4B [20:25:50]RAPDU: 90 00 [20:25:50]wFMCommunicate OK [20:25:50]wFMCommunicate request_size=255 [20:25:50]MH_SAM_APDU [20:25:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 18 01 00 00 F4 03 04 00 4E 34 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DA 84 02 00 35 04 06 00 34 [20:25:50]Write to MH i2c: E2 02 01 D2 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 18 01 00 00 F4 03 04 00 4E 34 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DA 84 02 00 35 04 06 00 34 00 00 53 [20:25:50]Write i2c OK [20:25:50]MH_I2C_Read... [20:25:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:25:50]Read from MH i2c: E2 [20:25:50]MH_I2C_Read... [20:25:50]Read from MH i2c: E2 03 00 [20:25:50]MH_I2C_Read... [20:25:50]Read from MH i2c: E2 03 00 D2 06 00 90 00 4C [20:25:50]RAPDU: 90 00 [20:25:50]wFMCommunicate OK [20:25:50]wFMCommunicate request_size=10 [20:25:50]MH_SAM_APDU [20:25:50]CAPDU: 80 0D 02 02 05 6B 97 49 B6 7E [20:25:50]Write to MH i2c: E2 0D 00 D3 06 80 0D 02 02 05 00 6B 97 49 B6 7E 00 00 DC [20:25:50]Write i2c OK [20:25:50]MH_I2C_Read... [20:25:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:25:50]Read from MH i2c: E2 [20:25:50]MH_I2C_Read... [20:25:50]Read from MH i2c: E2 03 00 [20:25:50]MH_I2C_Read... [20:25:50]Read from MH i2c: E2 03 00 D3 06 00 90 00 4D [20:25:50]RAPDU: 90 00 [20:25:50]wFMCommunicate OK [20:25:50]wFMCommunicate request_size=4 [20:25:50]MH_SAM_APDU [20:25:50]CAPDU: 80 0D 03 02 [20:25:50]Write to MH i2c: E2 08 00 D4 06 80 0D 03 02 00 00 00 00 55 [20:25:50]Write i2c OK [20:25:50]MH_I2C_Read... [20:25:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:25:50]Read from MH i2c: E2 [20:25:50]MH_I2C_Read... [20:25:50]Read from MH i2c: E2 0B 00 [20:25:50]MH_I2C_Read... [20:25:50]Read from MH i2c: E2 0B 00 D4 06 00 99 61 61 F1 68 55 1E F9 90 00 76 [20:25:50]RAPDU: 99 61 61 F1 68 55 1E F9 90 00 [20:25:50]wFMCommunicate OK [20:25:50]SAM_PROTO_SignData done [20:25:50]FM_MakeSignedData done [20:25:50]CreateOFDProtocolMessage [20:25:50]wFMCommunicate request_size=4 [20:25:50]MH_SAM_APDU [20:25:50]CAPDU: 80 11 00 00 [20:25:50]Write to MH i2c: E2 08 00 D5 06 80 11 00 00 00 00 00 00 55 [20:25:50]Write i2c OK [20:25:50]MH_I2C_Read... [20:25:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:25:50]Read from MH i2c: E2 [20:25:50]MH_I2C_Read... [20:25:50]Read from MH i2c: E2 17 00 [20:25:50]MH_I2C_Read... [20:25:50]Read from MH i2c: E2 17 00 D5 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 AB [20:25:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:25:50]wFMCommunicate OK [20:25:50]CreateOFDProtocolMessage done [20:25:50]OFDSenderStorePacket 165082 [20:25:50]StoreOFDPacket docnum=165082 [20:25:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 15 86 07 01 EB A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 18 01 00 00 F4 03 04 00 4E 34 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DA 84 02 00 35 04 06 00 34 6B 97 49 B6 7E 99 61 61 F1 68 55 1E F9 [20:25:50]CheckFolder [20:25:50]dirname=/storage/ofd_packets [20:25:50]CheckFolder done [20:25:50]ProducePacketName [20:25:50]name=ofd_packets/00165082 [20:25:50]NVStorageSaveData ofd_packets/00165082 [20:25:50]File name is /storage/ofd_packets/00165082 [20:25:50]Write 301 bytes [20:25:50]NVStorageSaveData done [20:25:50]OFDSenderStorePacket done [20:25:50]KKMCreateOFDPacket done [20:25:50]NVStorageSaveData kkm_last_timestamp [20:25:50]File name is /storage/kkm_last_timestamp [20:25:50]Write 4 bytes [20:25:50]NVStorageSaveData done [20:25:50]ExternCall_PrintAddStr [20:25:50]wPrintStart [20:25:50]Write to MH i2c: 01 00 00 D6 06 DC [20:25:50]Write i2c OK [20:25:50]MH_I2C_Read... [20:25:50]Read from MH i2c: 01 [20:25:50]MH_I2C_Read... [20:25:50]Read from MH i2c: 01 07 00 [20:25:50]MH_I2C_Read... [20:25:50]Read from MH i2c: 01 07 00 D6 06 00 00 00 00 00 FF 0F F1 [20:25:50]RasterBufferAndPrint [20:25:50]line Счет N : (1)459185 [20:25:50]line ИНН: 02508201610067 [20:25:50]line Контрольно-Кассовый Чек [20:25:50]line ПРОДАЖА [20:25:50]line ТРК (МРК, ГНК) : 12 [20:25:50]line Товар: 2710124130 [20:25:50]line Аи-92-К-5 [20:25:50]line 3.040 * 65.80 [20:25:50]line = 200.03 [20:25:50]line НДС 12% НСП 1% [20:25:50]line > о реализуемом товаре [20:25:50]line ОКРУГЛЕНИЕ: -0.03 [20:25:50]line ИТОГО: 200.00 [20:25:50]line Внесено: 200.00 [20:25:50]line СДАЧА: 0.00 [20:25:50]line НСП 1% : 1.77 [20:25:50]line НДС 12% : 21.24 [20:25:50]line Наличными: 200.00 [20:25:50]line Безнал.: 0.00 [20:25:50]line Место: АЗС № 72 "Партнер Нефть" [20:25:50]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [20:25:50]line СНО: Общий режим [20:25:50]line Чек 280 14.07.2024 20:25 [20:25:50]line Смена: 447 ФФД: 1.0 [20:25:50]line ЗНМ: 0300000160 [20:25:50]line РНМ: 0000000000090829 [20:25:50]line Версия ККМ: 001 [20:25:50]line ФМ: 0000000000874718 [20:25:50]line ФД: 165082 [20:25:51]line ФПД: 57636704335486 [20:25:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T202550&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165082&fm=57636704335486&tin=02508201610067®Number=0000000000090829&sum=20000 [20:25:51]OFD Sender: Processing packet 165082 [packets to send 106, broken 105] [20:25:51]ProducePacketName [20:25:51]name=ofd_packets/00165082 [20:25:51]OFD Sender: To server: pG, [20:25:51]CommunicateWithHost lk.salyk.kg:30040 [20:25:51]ConnectInit lk.salyk.kg [20:25:51]written 0, free lines is 4095 [20:25:51]Connected sock=10 [20:25:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 15 86 07 01 EB A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 18 01 00 00 F4 03 04 00 4E 34 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DA 84 02 00 35 04 06 00 34 6B 97 49 B6 7E 99 61 61 F1 68 55 1E F9 [20:25:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 D6 7F 47 00 D1 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DA 84 02 00 F4 03 04 00 DB DA 93 66 B6 04 01 00 00 1C B0 B0 8B 1F 66 1C 7F [20:25:51]CommunicateWithHost err = 0 [20:25:51]CheckOFDResponse [20:25:51]1017 (14) - 77093643461234 [20:25:51]1041 (16) - 0000000000874718 [20:25:51]1040 (4) - 165082 [20:25:51]1012 (4) - 14.07.2024 14:04 [20:25:51]1206 (1) - 0 [20:25:51]OFD Sender: Remove packet 165082 [20:25:51]ProducePacketName [20:25:51]name=ofd_packets/00165082 [20:25:51]NVStorageDeleteData [20:25:51]Write to MH i2c: 01 00 00 00 07 07 [20:25:51]Write i2c OK [20:25:51]MH_I2C_Read... [20:25:51]Read from MH i2c: 01 [20:25:51]MH_I2C_Read... [20:25:51]Read from MH i2c: 01 07 00 [20:25:51]MH_I2C_Read... [20:25:51]Read from MH i2c: 01 07 00 00 07 00 00 00 00 00 F3 0C 0D [20:25:51]RasterBufferAndPrint [20:25:51]line [20:25:51]line [20:25:51]line [20:25:51]line [20:25:51]line [20:25:51]written 0, free lines is 3322 [20:25:51]MH_Cut [20:25:51]Write to MH i2c: D1 01 00 07 07 01 E0 [20:25:51]Write i2c OK [20:25:51]MH_I2C_Read... [20:25:51]Read from MH i2c: D1 [20:25:51]MH_I2C_Read... [20:25:51]Read from MH i2c: D1 01 00 [20:25:51]MH_I2C_Read... [20:25:51]Read from MH i2c: D1 01 00 07 07 00 DF [20:25:51]Write to MH i2c: 01 00 00 08 07 0F [20:25:51]Write i2c OK [20:25:51]MH_I2C_Read... [20:25:51]OFD Sender: No OFD packet to send [20:25:52]*** Cut start [20:25:52]*** Partial cut [20:25:52]*** CUTSNS_PIN = 1 [20:25:52]*** CUTSNS_PIN = 0 [20:25:52]*** Brake cut motor [20:25:52]Read from MH i2c: 01 [20:25:52]MH_I2C_Read... [20:25:52]*** Stop cut motor [20:25:52]*** Cut end [20:25:52]Read from MH i2c: 01 07 00 [20:25:52]MH_I2C_Read... [20:25:52]Read from MH i2c: 01 07 00 08 07 00 00 00 00 00 FF 0F 24 [20:25:52]process_action close_receipt done [20:25:52]requested_data is exist [20:25:52]produce_requested_data [20:25:52]requested_item fm.sn is exist - process it [20:25:52]wFMCommunicate request_size=4 [20:25:52]MH_SAM_APDU [20:25:52]CAPDU: 80 11 00 00 [20:25:52]Write to MH i2c: E2 08 00 09 07 80 11 00 00 00 00 00 00 8A [20:25:52]Write i2c OK [20:25:52]MH_I2C_Read... [20:25:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:25:52]Read from MH i2c: E2 [20:25:52]MH_I2C_Read... [20:25:52]Read from MH i2c: E2 17 00 [20:25:52]MH_I2C_Read... [20:25:52]Read from MH i2c: E2 17 00 09 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E0 [20:25:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:25:52]wFMCommunicate OK [20:25:52]requested_item fd.num is exist - process it [20:25:52]SAM_PROTO_GetFieldsCounters [20:25:52]wFMCommunicate request_size=4 [20:25:52]MH_SAM_APDU [20:25:52]CAPDU: 80 13 00 00 [20:25:52]Write to MH i2c: E2 08 00 0A 07 80 13 00 00 00 00 00 00 8D [20:25:52]Write i2c OK [20:25:52]MH_I2C_Read... [20:25:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:25:52]Read from MH i2c: E2 [20:25:52]MH_I2C_Read... [20:25:52]Read from MH i2c: E2 62 00 [20:25:52]MH_I2C_Read... [20:25:52]Read from MH i2c: E2 62 00 0A 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 DA 84 02 00 0E 04 04 00 BF 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 1F [20:25:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 DA 84 02 00 0E 04 04 00 BF 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 [20:25:52]wFMCommunicate OK [20:25:52]SAM_PROTO_GetFieldsCounters done [20:25:52]requested_item shift.num is exist - process it [20:25:52]requested_item shift.opened is exist - process it [20:25:52]req_shift_opened [20:25:52]FM_GetShiftState [20:25:52]SAM_PROTO_GetShiftState [20:25:52]wFMCommunicate request_size=4 [20:25:52]MH_SAM_APDU [20:25:52]CAPDU: 80 13 01 00 [20:25:52]Write to MH i2c: E2 08 00 0B 07 80 13 01 00 00 00 00 00 8F [20:25:52]Write i2c OK [20:25:52]MH_I2C_Read... [20:25:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:25:52]Read from MH i2c: E2 [20:25:52]MH_I2C_Read... [20:25:52]Read from MH i2c: E2 0E 00 [20:25:52]MH_I2C_Read... [20:25:52]Read from MH i2c: E2 0E 00 0B 07 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 0F [20:25:52]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [20:25:52]wFMCommunicate OK [20:25:52]SAM_PROTO_GetShiftState done [20:25:52]FM_GetShiftState done [20:25:52]req_shift_opened done [20:25:52]requested_item shift.open_date is exist - process it [20:25:52]req_shift_open_date [20:25:52]req_shift_open_date done [20:25:52]produce_requested_data done [20:25:52]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165082,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [20:25:52]process_action_free close_receipt [20:25:52]json_value_free [20:25:52]json_value_free done [20:25:52]process_json_proto returns [20:25:52]Send response to host [20:25:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165082,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [20:25:52]free response buf [20:25:52]execute_script done [20:25:52]execute_script returns [20:25:52]free content buf [20:25:52]Sock 7.Close socket [20:25:52]Sock 7.Thread stoped [20:25:56]OFD Sender: No OFD packet to send [20:26:01]OFD Sender: No OFD packet to send [20:26:06]OFD Sender: No OFD packet to send [20:26:11]OFD Sender: No OFD packet to send [20:26:16]OFD Sender: No OFD packet to send [20:26:16]accept exits with 9 [20:26:16]New connection [20:26:16]New thread 3066928484 created [20:26:16]Thread 3066785124 joined [20:26:16]Waiting for new connection... [20:26:16] Sock 9.Parse request [20:26:16]Sock 9.Check first char [20:26:16]Sock 9.First char is OK [20:26:16]request: POST /json_proto HTTP/1.0 [20:26:16]Method: POST [20:26:16]URL: /json_proto [20:26:16]Method is POST - this is cgi request [20:26:16]url: /json_proto [20:26:16]query_string will be loaded in cgi processing [20:26:16]execute_cgi json_proto POST (null) [20:26:16]execute_cgi path=json_proto method=POST [20:26:16]POST find Content-Length [20:26:16]Host: 172.17.56.4:8080 [20:26:16]Content-Length: 677 [20:26:16]Content-Type: application/json [20:26:16] [20:26:16]POST finish read [20:26:16]Found Content-Length = 677 [20:26:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459186", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.020, "sum" : 330.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 330.00, "total" : 330.00, "payments": [ { "type": 0, "sum" : 330.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:26:16]execute_script... [20: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)459186", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.020, "sum" : 330.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 330.00, "total" : 330.00, "payments": [ { "type": 0, "sum" : 330.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:26:16]POST & json_proto [20:26:16]process_json_proto [20:26:16]json parsed OK: [20:26:16]protocol is kg_v1.0 [20:26:16]action value=close_receipt [20:26:16]process_action close_receipt [20:26:16]cmd_close_receipt [20:26:16]MH_GetDate [20:26:16]Write to MH i2c: F0 00 00 0C 07 02 [20:26:16]Write i2c OK [20:26:16]MH_I2C_Read... [20:26:16]Read from MH i2c: F0 [20:26:16]MH_I2C_Read... [20:26:16]Read from MH i2c: F0 09 00 [20:26:16]MH_I2C_Read... [20:26:16]Read from MH i2c: F0 09 00 0C 07 00 6A 34 94 66 C9 DC B2 64 5E [20:26:16]GetLastDocTimeStamp 1720988750 [20:26:16]current date 1720988778 [20:26:16]FM_GetShiftState [20:26:16]SAM_PROTO_GetShiftState [20:26:16]wFMCommunicate request_size=4 [20:26:16]MH_SAM_APDU [20:26:16]CAPDU: 80 13 01 00 [20:26:16]Write to MH i2c: E2 08 00 0D 07 80 13 01 00 00 00 00 00 91 [20:26:16]Write i2c OK [20:26:16]MH_I2C_Read... [20:26:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:26:17]Read from MH i2c: E2 [20:26:17]MH_I2C_Read... [20:26:17]Read from MH i2c: E2 0E 00 [20:26:17]MH_I2C_Read... [20:26:17]Read from MH i2c: E2 0E 00 0D 07 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 11 [20:26:17]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [20:26:17]wFMCommunicate OK [20:26:17]SAM_PROTO_GetShiftState done [20:26:17]FM_GetShiftState done [20:26:17]opened in 1720917342 [20:26:17]opened+sec_in_day 1721003742 [20:26:17]quantity*price = 33031 [20:26:17]sum+1 = 33033 [20:26:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 330.00 Внесено: 330.00 СДАЧА: 0.00 НСП 1% : 2.92 НДС 12% : 35.08 Наличными: 330.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 281 14.07.2024 20:26 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165083 ФПД: 159750122789279 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T202618&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165083&fm=159750122789279&tin=02508201610067®Number=0000000000090829&sum=33000 [20:26:18]StoreToDocumentArchive [20:26:18]shift 447 fd 165083 [20:26:18]save to /storage/0447/doc_00165083 [20:26:18]save last doc name /storage/0447/doc_00165083 to /storage/kkm_last_doc_name [20:26:18]save OK [20:26:18]Clear old archive folders... [20:26:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:26:18]tlvbuf is 013447B0 [20:26:18]SAM_PROTO_ClearQueue [20:26:18]wFMCommunicate request_size=4 [20:26:18]MH_SAM_APDU [20:26:18]CAPDU: 80 09 00 00 [20:26:18]Write to MH i2c: E2 08 00 1A 07 80 09 00 00 00 00 00 00 93 [20:26:18]Write i2c OK [20:26:18]MH_I2C_Read... [20:26:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:26:18]Read from MH i2c: E2 [20:26:18]MH_I2C_Read... [20:26:18]Read from MH i2c: E2 03 00 [20:26:18]MH_I2C_Read... [20:26:18]Read from MH i2c: E2 03 00 1A 07 00 90 00 95 [20:26:18]RAPDU: 90 00 [20:26:18]wFMCommunicate OK [20:26:18]SAM_PROTO_ClearQueue done [20:26:18]KKMCreateOFDPacket [20:26:18]OFDProtocolAddRootSTLVToBuf [20:26:18]FM_MakeSignedData [20:26:18]FM_MakeSignedData [20:26:18]SAM_PROTO_SignData [20:26:18]wFMCommunicate request_size=4 [20:26:18]MH_SAM_APDU [20:26:18]CAPDU: 80 0D 01 02 [20:26:18]Write to MH i2c: E2 08 00 1B 07 80 0D 01 02 00 00 00 00 9B [20:26:18]Write i2c OK [20:26:18]MH_I2C_Read... [20:26:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:26:18]Read from MH i2c: E2 [20:26:18]MH_I2C_Read... [20:26:18]Read from MH i2c: E2 03 00 [20:26:18]MH_I2C_Read... [20:26:18]Read from MH i2c: E2 03 00 1B 07 00 90 00 96 [20:26:18]RAPDU: 90 00 [20:26:18]wFMCommunicate OK [20:26:18]wFMCommunicate request_size=255 [20:26:18]MH_SAM_APDU [20:26:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 6A 34 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DB 84 02 00 35 04 06 00 91 [20:26:18]Write to MH i2c: E2 02 01 1C 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 6A 34 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DB 84 02 00 35 04 06 00 91 00 00 CA [20:26:18]Write i2c OK [20:26:18]MH_I2C_Read... [20:26:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:26:18]Read from MH i2c: E2 [20:26:18]MH_I2C_Read... [20:26:18]Read from MH i2c: E2 03 00 [20:26:18]MH_I2C_Read... [20:26:18]Read from MH i2c: E2 03 00 1C 07 00 90 00 97 [20:26:18]RAPDU: 90 00 [20:26:18]wFMCommunicate OK [20:26:18]wFMCommunicate request_size=10 [20:26:18]MH_SAM_APDU [20:26:18]CAPDU: 80 0D 02 02 05 4A B9 52 59 9F [20:26:18]Write to MH i2c: E2 0D 00 1D 07 80 0D 02 02 05 00 4A B9 52 59 9F 00 00 F5 [20:26:18]Write i2c OK [20:26:18]MH_I2C_Read... [20:26:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:26:18]Read from MH i2c: E2 [20:26:18]MH_I2C_Read... [20:26:18]Read from MH i2c: E2 03 00 [20:26:18]MH_I2C_Read... [20:26:18]Read from MH i2c: E2 03 00 1D 07 00 90 00 98 [20:26:18]RAPDU: 90 00 [20:26:18]wFMCommunicate OK [20:26:18]wFMCommunicate request_size=4 [20:26:18]MH_SAM_APDU [20:26:18]CAPDU: 80 0D 03 02 [20:26:18]Write to MH i2c: E2 08 00 1E 07 80 0D 03 02 00 00 00 00 A0 [20:26:18]Write i2c OK [20:26:18]MH_I2C_Read... [20:26:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:26:18]Read from MH i2c: E2 [20:26:18]MH_I2C_Read... [20:26:18]Read from MH i2c: E2 0B 00 [20:26:18]MH_I2C_Read... [20:26:18]Read from MH i2c: E2 0B 00 1E 07 00 64 EF E6 82 74 FD 77 F5 90 00 39 [20:26:18]RAPDU: 64 EF E6 82 74 FD 77 F5 90 00 [20:26:18]wFMCommunicate OK [20:26:18]SAM_PROTO_SignData done [20:26:18]FM_MakeSignedData done [20:26:18]CreateOFDProtocolMessage [20:26:18]wFMCommunicate request_size=4 [20:26:18]MH_SAM_APDU [20:26:18]CAPDU: 80 11 00 00 [20:26:18]Write to MH i2c: E2 08 00 1F 07 80 11 00 00 00 00 00 00 A0 [20:26:18]Write i2c OK [20:26:18]MH_I2C_Read... [20:26:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:26:18]Read from MH i2c: E2 [20:26:18]MH_I2C_Read... [20:26:18]Read from MH i2c: E2 17 00 [20:26:18]MH_I2C_Read... [20:26:18]Read from MH i2c: E2 17 00 1F 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F6 [20:26:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:26:18]wFMCommunicate OK [20:26:18]CreateOFDProtocolMessage done [20:26:18]OFDSenderStorePacket 165083 [20:26:18]StoreOFDPacket docnum=165083 [20:26:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 84 F5 07 01 E3 FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 6A 34 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DB 84 02 00 35 04 06 00 91 4A B9 52 59 9F 64 EF E6 82 74 FD 77 F5 [20:26:18]CheckFolder [20:26:18]dirname=/storage/ofd_packets [20:26:18]CheckFolder done [20:26:18]ProducePacketName [20:26:18]name=ofd_packets/00165083 [20:26:18]NVStorageSaveData ofd_packets/00165083 [20:26:18]File name is /storage/ofd_packets/00165083 [20:26:18]Write 301 bytes [20:26:18]NVStorageSaveData done [20:26:18]OFDSenderStorePacket done [20:26:18]KKMCreateOFDPacket done [20:26:18]NVStorageSaveData kkm_last_timestamp [20:26:18]File name is /storage/kkm_last_timestamp [20:26:18]Write 4 bytes [20:26:18]NVStorageSaveData done [20:26:18]ExternCall_PrintAddStr [20:26:18]wPrintStart [20:26:18]Write to MH i2c: 01 00 00 20 07 27 [20:26:18]Write i2c OK [20:26:18]MH_I2C_Read... [20:26:18]Read from MH i2c: 01 [20:26:18]MH_I2C_Read... [20:26:18]Read from MH i2c: 01 07 00 [20:26:18]MH_I2C_Read... [20:26:18]Read from MH i2c: 01 07 00 20 07 00 00 00 00 00 FF 0F 3C [20:26:18]RasterBufferAndPrint [20:26:18]line Счет N : (1)459186 [20:26:18]line ИНН: 02508201610067 [20:26:18]line Контрольно-Кассовый Чек [20:26:18]line ПРОДАЖА [20:26:18]line ТРК (МРК, ГНК) : 22 [20:26:18]line Товар: 2710124130 [20:26:18]line Аи-92-К-5 [20:26:18]line 5.020 * 65.80 [20:26:18]line = 330.32 [20:26:18]line НДС 12% НСП 1% [20:26:18]line > о реализуемом товаре [20:26:18]line ОКРУГЛЕНИЕ: -0.32 [20:26:18]line ИТОГО: 330.00 [20:26:18]line Внесено: 330.00 [20:26:18]line СДАЧА: 0.00 [20:26:18]line НСП 1% : 2.92 [20:26:18]line НДС 12% : 35.08 [20:26:18]line Наличными: 330.00 [20:26:18]line Безнал.: 0.00 [20:26:18]line Место: АЗС № 72 "Партнер Нефть" [20:26:18]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [20:26:18]line СНО: Общий режим [20:26:18]line Чек 281 14.07.2024 20:26 [20:26:18]line Смена: 447 ФФД: 1.0 [20:26:18]line ЗНМ: 0300000160 [20:26:18]line РНМ: 0000000000090829 [20:26:18]line Версия ККМ: 001 [20:26:18]line ФМ: 0000000000874718 [20:26:18]line ФД: 165083 [20:26:18]line ФПД: 159750122789279 [20:26:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T202618&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165083&fm=159750122789279&tin=02508201610067®Number=0000000000090829&sum=33000 [20:26:19]OFD Sender: Processing packet 165083 [packets to send 106, broken 105] [20:26:19]ProducePacketName [20:26:19]name=ofd_packets/00165083 [20:26:19]OFD Sender: To server: pG, [20:26:19]CommunicateWithHost lk.salyk.kg:30040 [20:26:19]ConnectInit lk.salyk.kg [20:26:19]written 0, free lines is 4095 [20:26:19]Connected sock=10 [20:26:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 84 F5 07 01 E3 FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 6A 34 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DB 84 02 00 35 04 06 00 91 4A B9 52 59 9F 64 EF E6 82 74 FD 77 F5 [20:26:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 86 70 47 00 B8 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DB 84 02 00 F4 03 04 00 F7 DA 93 66 B6 04 01 00 00 E2 12 12 0A F1 96 6D A6 [20:26:19]CommunicateWithHost err = 0 [20:26:19]CheckOFDResponse [20:26:19]1017 (14) - 77093643461234 [20:26:19]1041 (16) - 0000000000874718 [20:26:19]1040 (4) - 165083 [20:26:19]1012 (4) - 14.07.2024 14:04 [20:26:19]1206 (1) - 0 [20:26:19]OFD Sender: Remove packet 165083 [20:26:19]ProducePacketName [20:26:19]name=ofd_packets/00165083 [20:26:19]NVStorageDeleteData [20:26:19]Write to MH i2c: 01 00 00 4A 07 51 [20:26:19]Write i2c OK [20:26:19]MH_I2C_Read... [20:26:19]Read from MH i2c: 01 [20:26:19]MH_I2C_Read... [20:26:19]Read from MH i2c: 01 07 00 [20:26:19]MH_I2C_Read... [20:26:19]Read from MH i2c: 01 07 00 4A 07 00 00 00 00 00 FF 0C 63 [20:26:19]RasterBufferAndPrint [20:26:19]line [20:26:19]line [20:26:19]line [20:26:19]line [20:26:19]line [20:26:19]written 0, free lines is 3333 [20:26:19]MH_Cut [20:26:19]Write to MH i2c: D1 01 00 51 07 01 2A [20:26:19]Write i2c OK [20:26:19]MH_I2C_Read... [20:26:19]Read from MH i2c: D1 [20:26:19]MH_I2C_Read... [20:26:19]Read from MH i2c: D1 01 00 [20:26:19]MH_I2C_Read... [20:26:19]Read from MH i2c: D1 01 00 51 07 00 29 [20:26:19]Write to MH i2c: 01 00 00 52 07 59 [20:26:19]Write i2c OK [20:26:19]MH_I2C_Read... [20:26:19]OFD Sender: No OFD packet to send [20:26:20]*** Cut start [20:26:20]*** Partial cut [20:26:20]*** CUTSNS_PIN = 1 [20:26:20]*** CUTSNS_PIN = 0 [20:26:20]*** Brake cut motor [20:26:20]Read from MH i2c: 01 [20:26:20]MH_I2C_Read... [20:26:20]*** Stop cut motor [20:26:20]*** Cut end [20:26:20]Read from MH i2c: 01 07 00 [20:26:20]MH_I2C_Read... [20:26:20]Read from MH i2c: 01 07 00 52 07 00 00 00 00 00 FF 0F 6E [20:26:20]process_action close_receipt done [20:26:20]requested_data is exist [20:26:20]produce_requested_data [20:26:20]requested_item fm.sn is exist - process it [20:26:20]wFMCommunicate request_size=4 [20:26:20]MH_SAM_APDU [20:26:20]CAPDU: 80 11 00 00 [20:26:20]Write to MH i2c: E2 08 00 53 07 80 11 00 00 00 00 00 00 D4 [20:26:20]Write i2c OK [20:26:20]MH_I2C_Read... [20:26:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:26:20]Read from MH i2c: E2 [20:26:20]MH_I2C_Read... [20:26:20]Read from MH i2c: E2 17 00 [20:26:20]MH_I2C_Read... [20:26:20]Read from MH i2c: E2 17 00 53 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 2A [20:26:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:26:20]wFMCommunicate OK [20:26:20]requested_item fd.num is exist - process it [20:26:20]SAM_PROTO_GetFieldsCounters [20:26:20]wFMCommunicate request_size=4 [20:26:20]MH_SAM_APDU [20:26:20]CAPDU: 80 13 00 00 [20:26:20]Write to MH i2c: E2 08 00 54 07 80 13 00 00 00 00 00 00 D7 [20:26:20]Write i2c OK [20:26:20]MH_I2C_Read... [20:26:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:26:20]Read from MH i2c: E2 [20:26:20]MH_I2C_Read... [20:26:20]Read from MH i2c: E2 62 00 [20:26:20]MH_I2C_Read... [20:26:20]Read from MH i2c: E2 62 00 54 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 DB 84 02 00 0E 04 04 00 BF 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 6D [20:26:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 DB 84 02 00 0E 04 04 00 BF 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 [20:26:20]wFMCommunicate OK [20:26:20]SAM_PROTO_GetFieldsCounters done [20:26:20]requested_item shift.num is exist - process it [20:26:20]requested_item shift.opened is exist - process it [20:26:20]req_shift_opened [20:26:20]FM_GetShiftState [20:26:20]SAM_PROTO_GetShiftState [20:26:20]wFMCommunicate request_size=4 [20:26:20]MH_SAM_APDU [20:26:20]CAPDU: 80 13 01 00 [20:26:20]Write to MH i2c: E2 08 00 55 07 80 13 01 00 00 00 00 00 D9 [20:26:20]Write i2c OK [20:26:20]MH_I2C_Read... [20:26:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:26:20]Read from MH i2c: E2 [20:26:20]MH_I2C_Read... [20:26:20]Read from MH i2c: E2 0E 00 [20:26:20]MH_I2C_Read... [20:26:20]Read from MH i2c: E2 0E 00 55 07 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 59 [20:26:20]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [20:26:20]wFMCommunicate OK [20:26:20]SAM_PROTO_GetShiftState done [20:26:20]FM_GetShiftState done [20:26:20]req_shift_opened done [20:26:20]requested_item shift.open_date is exist - process it [20:26:20]req_shift_open_date [20:26:20]req_shift_open_date done [20:26:20]produce_requested_data done [20:26:20]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165083,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [20:26:20]process_action_free close_receipt [20:26:20]json_value_free [20:26:20]json_value_free done [20:26:20]process_json_proto returns [20:26:20]Send response to host [20:26:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165083,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [20:26:20]free response buf [20:26:20]execute_script done [20:26:20]execute_script returns [20:26:20]free content buf [20:26:20]Sock 9.Close socket [20:26:20]Sock 9.Thread stoped [20:26:24]OFD Sender: No OFD packet to send [20:26:29]OFD Sender: No OFD packet to send [20:26:34]OFD Sender: No OFD packet to send [20:26:38]accept exits with 7 [20:26:38]New connection [20:26:38]New thread 3066785124 created [20:26:38]Thread 3066928484 joined [20:26:38]Waiting for new connection... [20:26:38] Sock 7.Parse request [20:26:38]Sock 7.Check first char [20:26:38]Sock 7.First char is OK [20:26:38]request: POST /json_proto HTTP/1.0 [20:26:38]Method: POST [20:26:38]URL: /json_proto [20:26:38]Method is POST - this is cgi request [20:26:38]url: /json_proto [20:26:38]query_string will be loaded in cgi processing [20:26:38]execute_cgi json_proto POST (null) [20:26:38]execute_cgi path=json_proto method=POST [20:26:38]POST find Content-Length [20:26:38]Host: 172.17.56.4:8080 [20:26:38]Content-Length: 677 [20:26:38]Content-Type: application/json [20:26:38] [20:26:38]POST finish read [20:26:38]Found Content-Length = 677 [20:26:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459187", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "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" ] } } [20:26:38]execute_script... [20:26:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459187", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "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" ] } } [20:26:38]POST & json_proto [20:26:38]process_json_proto [20:26:38]json parsed OK: [20:26:38]protocol is kg_v1.0 [20:26:38]action value=close_receipt [20:26:38]process_action close_receipt [20:26:38]cmd_close_receipt [20:26:38]MH_GetDate [20:26:38]Write to MH i2c: F0 00 00 56 07 4C [20:26:38]Write i2c OK [20:26:38]MH_I2C_Read... [20:26:38]Read from MH i2c: F0 [20:26:38]MH_I2C_Read... [20:26:38]Read from MH i2c: F0 09 00 [20:26:38]MH_I2C_Read... [20:26:38]Read from MH i2c: F0 09 00 56 07 00 80 34 94 66 C9 DC B2 64 BE [20:26:38]GetLastDocTimeStamp 1720988778 [20:26:38]current date 1720988800 [20:26:38]FM_GetShiftState [20:26:38]SAM_PROTO_GetShiftState [20:26:38]wFMCommunicate request_size=4 [20:26:38]MH_SAM_APDU [20:26:38]CAPDU: 80 13 01 00 [20:26:38]Write to MH i2c: E2 08 00 57 07 80 13 01 00 00 00 00 00 DB [20:26:38]Write i2c OK [20:26:38]MH_I2C_Read... [20:26:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:26:38]Read from MH i2c: E2 [20:26:38]MH_I2C_Read... [20:26:38]Read from MH i2c: E2 0E 00 [20:26:38]MH_I2C_Read... [20:26:38]Read from MH i2c: E2 0E 00 57 07 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 5B [20:26:38]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [20:26:38]wFMCommunicate OK [20:26:38]SAM_PROTO_GetShiftState done [20:26:38]FM_GetShiftState done [20:26:38]opened in 1720917342 [20:26:38]opened+sec_in_day 1721003742 [20:26:38]quantity*price = 20003 [20:26:38]sum+1 = 20004 [20:26:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 282 14.07.2024 20:26 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165084 ФПД: 118112685881594 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T202640&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165084&fm=118112685881594&tin=02508201610067®Number=0000000000090829&sum=20000 [20:26:39]StoreToDocumentArchive [20:26:39]shift 447 fd 165084 [20:26:39]save to /storage/0447/doc_00165084 [20:26:39]save last doc name /storage/0447/doc_00165084 to /storage/kkm_last_doc_name [20:26:39]save OK [20:26:39]Clear old archive folders... [20:26:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:26:39]tlvbuf is 01349400 [20:26:39]SAM_PROTO_ClearQueue [20:26:39]wFMCommunicate request_size=4 [20:26:39]MH_SAM_APDU [20:26:39]CAPDU: 80 09 00 00 [20:26:39]Write to MH i2c: E2 08 00 64 07 80 09 00 00 00 00 00 00 DD [20:26:39]Write i2c OK [20:26:39]MH_I2C_Read... [20:26:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:26:40]Read from MH i2c: E2 [20:26:40]MH_I2C_Read... [20:26:40]Read from MH i2c: E2 03 00 [20:26:40]MH_I2C_Read... [20:26:40]Read from MH i2c: E2 03 00 64 07 00 90 00 DF [20:26:40]RAPDU: 90 00 [20:26:40]wFMCommunicate OK [20:26:40]SAM_PROTO_ClearQueue done [20:26:40]KKMCreateOFDPacket [20:26:40]OFDProtocolAddRootSTLVToBuf [20:26:40]FM_MakeSignedData [20:26:40]FM_MakeSignedData [20:26:40]SAM_PROTO_SignData [20:26:40]wFMCommunicate request_size=4 [20:26:40]MH_SAM_APDU [20:26:40]CAPDU: 80 0D 01 02 [20:26:40]Write to MH i2c: E2 08 00 65 07 80 0D 01 02 00 00 00 00 E5 [20:26:40]Write i2c OK [20:26:40]MH_I2C_Read... [20:26:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:26:40]Read from MH i2c: E2 [20:26:40]MH_I2C_Read... [20:26:40]Read from MH i2c: E2 03 00 [20:26:40]MH_I2C_Read... [20:26:40]Read from MH i2c: E2 03 00 65 07 00 90 00 E0 [20:26:40]RAPDU: 90 00 [20:26:40]wFMCommunicate OK [20:26:40]wFMCommunicate request_size=255 [20:26:40]MH_SAM_APDU [20:26:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 1A 01 00 00 F4 03 04 00 80 34 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DC 84 02 00 35 04 06 00 6B [20:26:40]Write to MH i2c: E2 02 01 66 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 1A 01 00 00 F4 03 04 00 80 34 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DC 84 02 00 35 04 06 00 6B 00 00 55 [20:26:40]Write i2c OK [20:26:40]MH_I2C_Read... [20:26:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:26:40]Read from MH i2c: E2 [20:26:40]MH_I2C_Read... [20:26:40]Read from MH i2c: E2 03 00 [20:26:40]MH_I2C_Read... [20:26:40]Read from MH i2c: E2 03 00 66 07 00 90 00 E1 [20:26:40]RAPDU: 90 00 [20:26:40]wFMCommunicate OK [20:26:40]wFMCommunicate request_size=10 [20:26:40]MH_SAM_APDU [20:26:40]CAPDU: 80 0D 02 02 05 6C 40 AF 78 FA [20:26:40]Write to MH i2c: E2 0D 00 67 07 80 0D 02 02 05 00 6C 40 AF 78 FA 00 00 BF [20:26:40]Write i2c OK [20:26:40]MH_I2C_Read... [20:26:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:26:40]Read from MH i2c: E2 [20:26:40]MH_I2C_Read... [20:26:40]Read from MH i2c: E2 03 00 [20:26:40]MH_I2C_Read... [20:26:40]Read from MH i2c: E2 03 00 67 07 00 90 00 E2 [20:26:40]RAPDU: 90 00 [20:26:40]wFMCommunicate OK [20:26:40]wFMCommunicate request_size=4 [20:26:40]MH_SAM_APDU [20:26:40]CAPDU: 80 0D 03 02 [20:26:40]Write to MH i2c: E2 08 00 68 07 80 0D 03 02 00 00 00 00 EA [20:26:40]Write i2c OK [20:26:40]MH_I2C_Read... [20:26:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:26:40]Read from MH i2c: E2 [20:26:40]MH_I2C_Read... [20:26:40]Read from MH i2c: E2 0B 00 [20:26:40]MH_I2C_Read... [20:26:40]Read from MH i2c: E2 0B 00 68 07 00 08 7D 15 3E D9 B1 05 C3 90 00 15 [20:26:40]RAPDU: 08 7D 15 3E D9 B1 05 C3 90 00 [20:26:40]wFMCommunicate OK [20:26:40]SAM_PROTO_SignData done [20:26:40]FM_MakeSignedData done [20:26:40]CreateOFDProtocolMessage [20:26:40]wFMCommunicate request_size=4 [20:26:40]MH_SAM_APDU [20:26:40]CAPDU: 80 11 00 00 [20:26:40]Write to MH i2c: E2 08 00 69 07 80 11 00 00 00 00 00 00 EA [20:26:40]Write i2c OK [20:26:40]MH_I2C_Read... [20:26:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:26:40]Read from MH i2c: E2 [20:26:40]MH_I2C_Read... [20:26:40]Read from MH i2c: E2 17 00 [20:26:40]MH_I2C_Read... [20:26:40]Read from MH i2c: E2 17 00 69 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 40 [20:26:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:26:40]wFMCommunicate OK [20:26:40]CreateOFDProtocolMessage done [20:26:40]OFDSenderStorePacket 165084 [20:26:40]StoreOFDPacket docnum=165084 [20:26:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 9D C8 07 01 8A 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 1A 01 00 00 F4 03 04 00 80 34 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DC 84 02 00 35 04 06 00 6B 6C 40 AF 78 FA 08 7D 15 3E D9 B1 05 C3 [20:26:40]CheckFolder [20:26:40]dirname=/storage/ofd_packets [20:26:40]CheckFolder done [20:26:40]ProducePacketName [20:26:40]name=ofd_packets/00165084 [20:26:40]NVStorageSaveData ofd_packets/00165084 [20:26:40]File name is /storage/ofd_packets/00165084 [20:26:40]Write 301 bytes [20:26:40]NVStorageSaveData done [20:26:40]OFDSenderStorePacket done [20:26:40]KKMCreateOFDPacket done [20:26:40]NVStorageSaveData kkm_last_timestamp [20:26:40]File name is /storage/kkm_last_timestamp [20:26:40]Write 4 bytes [20:26:40]NVStorageSaveData done [20:26:40]ExternCall_PrintAddStr [20:26:40]wPrintStart [20:26:40]Write to MH i2c: 01 00 00 6A 07 71 [20:26:40]Write i2c OK [20:26:40]MH_I2C_Read... [20:26:40]Read from MH i2c: 01 [20:26:40]MH_I2C_Read... [20:26:40]Read from MH i2c: 01 07 00 [20:26:40]MH_I2C_Read... [20:26:40]Read from MH i2c: 01 07 00 6A 07 00 00 00 00 00 FF 0F 86 [20:26:40]RasterBufferAndPrint [20:26:40]line Счет N : (1)459187 [20:26:40]line ИНН: 02508201610067 [20:26:40]line Контрольно-Кассовый Чек [20:26:40]line ПРОДАЖА [20:26:40]line ТРК (МРК, ГНК) : 12 [20:26:40]line Товар: 2710124130 [20:26:40]line Аи-92-К-5 [20:26:40]line 3.040 * 65.80 [20:26:40]line = 200.03 [20:26:40]line НДС 12% НСП 1% [20:26:40]line > о реализуемом товаре [20:26:40]line ОКРУГЛЕНИЕ: -0.03 [20:26:40]line ИТОГО: 200.00 [20:26:40]line Внесено: 200.00 [20:26:40]line СДАЧА: 0.00 [20:26:40]line НСП 1% : 1.77 [20:26:40]line НДС 12% : 21.24 [20:26:40]line Наличными: 200.00 [20:26:40]line Безнал.: 0.00 [20:26:40]line Место: АЗС № 72 "Партнер Нефть" [20:26:40]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [20:26:40]line СНО: Общий режим [20:26:40]line Чек 282 14.07.2024 20:26 [20:26:40]line Смена: 447 ФФД: 1.0 [20:26:40]line ЗНМ: 0300000160 [20:26:40]line РНМ: 0000000000090829 [20:26:40]line Версия ККМ: 001 [20:26:40]line ФМ: 0000000000874718 [20:26:40]line ФД: 165084 [20:26:40]line ФПД: 118112685881594 [20:26:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T202640&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165084&fm=118112685881594&tin=02508201610067®Number=0000000000090829&sum=20000 [20:26:40]OFD Sender: Processing packet 165084 [packets to send 106, broken 105] [20:26:40]ProducePacketName [20:26:40]name=ofd_packets/00165084 [20:26:40]OFD Sender: To server: pG, [20:26:40]CommunicateWithHost lk.salyk.kg:30040 [20:26:40]ConnectInit lk.salyk.kg [20:26:40]written 0, free lines is 4095 [20:26:40]Connected sock=10 [20:26:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 9D C8 07 01 8A 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 1A 01 00 00 F4 03 04 00 80 34 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DC 84 02 00 35 04 06 00 6B 6C 40 AF 78 FA 08 7D 15 3E D9 B1 05 C3 [20:26:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 A1 37 47 00 32 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DC 84 02 00 F4 03 04 00 0C DB 93 66 B6 04 01 00 00 45 06 1C 44 5D DA A8 99 [20:26:41]CommunicateWithHost err = 0 [20:26:41]CheckOFDResponse [20:26:41]1017 (14) - 77093643461234 [20:26:41]1041 (16) - 0000000000874718 [20:26:41]1040 (4) - 165084 [20:26:41]1012 (4) - 14.07.2024 14:05 [20:26:41]1206 (1) - 0 [20:26:41]OFD Sender: Remove packet 165084 [20:26:41]ProducePacketName [20:26:41]name=ofd_packets/00165084 [20:26:41]NVStorageDeleteData [20:26:41]Write to MH i2c: 01 00 00 94 07 9B [20:26:41]Write i2c OK [20:26:41]MH_I2C_Read... [20:26:41]Read from MH i2c: 01 [20:26:41]MH_I2C_Read... [20:26:41]Read from MH i2c: 01 07 00 [20:26:41]MH_I2C_Read... [20:26:41]Read from MH i2c: 01 07 00 94 07 00 00 00 00 00 F4 0C A2 [20:26:41]RasterBufferAndPrint [20:26:41]line [20:26:41]line [20:26:41]line [20:26:41]line [20:26:41]line [20:26:41]written 0, free lines is 3323 [20:26:41]MH_Cut [20:26:41]Write to MH i2c: D1 01 00 9B 07 01 74 [20:26:41]Write i2c OK [20:26:41]MH_I2C_Read... [20:26:41]Read from MH i2c: D1 [20:26:41]MH_I2C_Read... [20:26:41]Read from MH i2c: D1 01 00 [20:26:41]MH_I2C_Read... [20:26:41]Read from MH i2c: D1 01 00 9B 07 00 73 [20:26:41]Write to MH i2c: 01 00 00 9C 07 A3 [20:26:41]Write i2c OK [20:26:41]MH_I2C_Read... [20:26:41]OFD Sender: No OFD packet to send [20:26:41]*** Cut start [20:26:41]*** Partial cut [20:26:41]*** CUTSNS_PIN = 1 [20:26:42]*** CUTSNS_PIN = 0 [20:26:42]*** Brake cut motor [20:26:42]Read from MH i2c: 01 [20:26:42]MH_I2C_Read... [20:26:42]*** Stop cut motor [20:26:42]*** Cut end [20:26:42]Read from MH i2c: 01 07 00 [20:26:42]MH_I2C_Read... [20:26:42]Read from MH i2c: 01 07 00 9C 07 00 00 00 00 00 FF 0F B8 [20:26:42]process_action close_receipt done [20:26:42]requested_data is exist [20:26:42]produce_requested_data [20:26:42]requested_item fm.sn is exist - process it [20:26:42]wFMCommunicate request_size=4 [20:26:42]MH_SAM_APDU [20:26:42]CAPDU: 80 11 00 00 [20:26:42]Write to MH i2c: E2 08 00 9D 07 80 11 00 00 00 00 00 00 1E [20:26:42]Write i2c OK [20:26:42]MH_I2C_Read... [20:26:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:26:42]Read from MH i2c: E2 [20:26:42]MH_I2C_Read... [20:26:42]Read from MH i2c: E2 17 00 [20:26:42]MH_I2C_Read... [20:26:42]Read from MH i2c: E2 17 00 9D 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 74 [20:26:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:26:42]wFMCommunicate OK [20:26:42]requested_item fd.num is exist - process it [20:26:42]SAM_PROTO_GetFieldsCounters [20:26:42]wFMCommunicate request_size=4 [20:26:42]MH_SAM_APDU [20:26:42]CAPDU: 80 13 00 00 [20:26:42]Write to MH i2c: E2 08 00 9E 07 80 13 00 00 00 00 00 00 21 [20:26:42]Write i2c OK [20:26:42]MH_I2C_Read... [20:26:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:26:42]Read from MH i2c: E2 [20:26:42]MH_I2C_Read... [20:26:42]Read from MH i2c: E2 62 00 [20:26:42]MH_I2C_Read... [20:26:42]Read from MH i2c: E2 62 00 9E 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 DC 84 02 00 0E 04 04 00 BF 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 BB [20:26:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 DC 84 02 00 0E 04 04 00 BF 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 [20:26:42]wFMCommunicate OK [20:26:42]SAM_PROTO_GetFieldsCounters done [20:26:42]requested_item shift.num is exist - process it [20:26:42]requested_item shift.opened is exist - process it [20:26:42]req_shift_opened [20:26:42]FM_GetShiftState [20:26:42]SAM_PROTO_GetShiftState [20:26:42]wFMCommunicate request_size=4 [20:26:42]MH_SAM_APDU [20:26:42]CAPDU: 80 13 01 00 [20:26:42]Write to MH i2c: E2 08 00 9F 07 80 13 01 00 00 00 00 00 23 [20:26:42]Write i2c OK [20:26:42]MH_I2C_Read... [20:26:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:26:42]Read from MH i2c: E2 [20:26:42]MH_I2C_Read... [20:26:42]Read from MH i2c: E2 0E 00 [20:26:42]MH_I2C_Read... [20:26:42]Read from MH i2c: E2 0E 00 9F 07 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 A3 [20:26:42]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [20:26:42]wFMCommunicate OK [20:26:42]SAM_PROTO_GetShiftState done [20:26:42]FM_GetShiftState done [20:26:42]req_shift_opened done [20:26:42]requested_item shift.open_date is exist - process it [20:26:42]req_shift_open_date [20:26:42]req_shift_open_date done [20:26:42]produce_requested_data done [20:26:42]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165084,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [20:26:42]process_action_free close_receipt [20:26:42]json_value_free [20:26:42]json_value_free done [20:26:42]process_json_proto returns [20:26:42]Send response to host [20:26:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165084,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [20:26:42]free response buf [20:26:42]execute_script done [20:26:42]execute_script returns [20:26:42]free content buf [20:26:42]Sock 7.Close socket [20:26:42]Sock 7.Thread stoped [20:26:46]OFD Sender: No OFD packet to send [20:26:51]OFD Sender: No OFD packet to send [20:26:56]OFD Sender: No OFD packet to send [20:27:01]OFD Sender: No OFD packet to send [20:27:06]OFD Sender: No OFD packet to send [20:27:11]OFD Sender: No OFD packet to send [20:27:13]accept exits with 9 [20:27:13]New connection [20:27:13]New thread 3066928484 created [20:27:13]Thread 3066785124 joined [20:27:13]Waiting for new connection... [20:27:13] Sock 9.Parse request [20:27:13]Sock 9.Check first char [20:27:13]Sock 9.First char is OK [20:27:13]request: POST /json_proto HTTP/1.0 [20:27:13]Method: POST [20:27:13]URL: /json_proto [20:27:13]Method is POST - this is cgi request [20:27:13]url: /json_proto [20:27:13]query_string will be loaded in cgi processing [20:27:13]execute_cgi json_proto POST (null) [20:27:13]execute_cgi path=json_proto method=POST [20:27:13]POST find Content-Length [20:27:13]Host: 172.17.56.4:8080 [20:27:13]Content-Length: 677 [20:27:13]Content-Type: application/json [20:27:13] [20:27:13]POST finish read [20:27:13]Found Content-Length = 677 [20:27:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459188", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:27:13]execute_script... [20:27: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)459188", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:27:13]POST & json_proto [20:27:13]process_json_proto [20:27:13]json parsed OK: [20:27:13]protocol is kg_v1.0 [20:27:13]action value=close_receipt [20:27:13]process_action close_receipt [20:27:13]cmd_close_receipt [20:27:13]MH_GetDate [20:27:13]Write to MH i2c: F0 00 00 A0 07 96 [20:27:13]Write i2c OK [20:27:13]MH_I2C_Read... [20:27:13]Read from MH i2c: F0 [20:27:13]MH_I2C_Read... [20:27:13]Read from MH i2c: F0 09 00 [20:27:13]MH_I2C_Read... [20:27:13]Read from MH i2c: F0 09 00 A0 07 00 A2 34 94 66 C9 DC B2 64 2A [20:27:13]GetLastDocTimeStamp 1720988800 [20:27:13]current date 1720988834 [20:27:13]FM_GetShiftState [20:27:13]SAM_PROTO_GetShiftState [20:27:13]wFMCommunicate request_size=4 [20:27:13]MH_SAM_APDU [20:27:13]CAPDU: 80 13 01 00 [20:27:13]Write to MH i2c: E2 08 00 A1 07 80 13 01 00 00 00 00 00 25 [20:27:13]Write i2c OK [20:27:13]MH_I2C_Read... [20:27:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:27:13]Read from MH i2c: E2 [20:27:13]MH_I2C_Read... [20:27:13]Read from MH i2c: E2 0E 00 [20:27:13]MH_I2C_Read... [20:27:13]Read from MH i2c: E2 0E 00 A1 07 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 A5 [20:27:13]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [20:27:13]wFMCommunicate OK [20:27:13]SAM_PROTO_GetShiftState done [20:27:13]FM_GetShiftState done [20:27:13]opened in 1720917342 [20:27:13]opened+sec_in_day 1721003742 [20:27:13]quantity*price = 40006 [20:27:13]sum+1 = 40007 [20:27: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 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 283 14.07.2024 20:27 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165085 ФПД: 22418394049216 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T202714&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165085&fm=22418394049216&tin=02508201610067®Number=0000000000090829&sum=40000 [20:27:14]StoreToDocumentArchive [20:27:14]shift 447 fd 165085 [20:27:14]save to /storage/0447/doc_00165085 [20:27:14]save last doc name /storage/0447/doc_00165085 to /storage/kkm_last_doc_name [20:27:14]save OK [20:27:14]Clear old archive folders... [20:27:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:27:14]tlvbuf is 013A5B30 [20:27:14]SAM_PROTO_ClearQueue [20:27:14]wFMCommunicate request_size=4 [20:27:14]MH_SAM_APDU [20:27:14]CAPDU: 80 09 00 00 [20:27:14]Write to MH i2c: E2 08 00 AE 07 80 09 00 00 00 00 00 00 27 [20:27:14]Write i2c OK [20:27:14]MH_I2C_Read... [20:27:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:27:14]Read from MH i2c: E2 [20:27:14]MH_I2C_Read... [20:27:14]Read from MH i2c: E2 03 00 [20:27:14]MH_I2C_Read... [20:27:14]Read from MH i2c: E2 03 00 AE 07 00 90 00 29 [20:27:14]RAPDU: 90 00 [20:27:14]wFMCommunicate OK [20:27:14]SAM_PROTO_ClearQueue done [20:27:14]KKMCreateOFDPacket [20:27:14]OFDProtocolAddRootSTLVToBuf [20:27:14]FM_MakeSignedData [20:27:14]FM_MakeSignedData [20:27:14]SAM_PROTO_SignData [20:27:14]wFMCommunicate request_size=4 [20:27:14]MH_SAM_APDU [20:27:14]CAPDU: 80 0D 01 02 [20:27:14]Write to MH i2c: E2 08 00 AF 07 80 0D 01 02 00 00 00 00 2F [20:27:14]Write i2c OK [20:27:14]MH_I2C_Read... [20:27:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:27:14]Read from MH i2c: E2 [20:27:14]MH_I2C_Read... [20:27:14]Read from MH i2c: E2 03 00 [20:27:14]MH_I2C_Read... [20:27:14]Read from MH i2c: E2 03 00 AF 07 00 90 00 2A [20:27:14]RAPDU: 90 00 [20:27:14]wFMCommunicate OK [20:27:14]wFMCommunicate request_size=255 [20:27:14]MH_SAM_APDU [20:27:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 A2 34 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DD 84 02 00 35 04 06 00 14 [20:27:14]Write to MH i2c: E2 02 01 B0 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 A2 34 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DD 84 02 00 35 04 06 00 14 00 00 AB [20:27:14]Write i2c OK [20:27:14]MH_I2C_Read... [20:27:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:27:14]Read from MH i2c: E2 [20:27:14]MH_I2C_Read... [20:27:14]Read from MH i2c: E2 03 00 [20:27:14]MH_I2C_Read... [20:27:14]Read from MH i2c: E2 03 00 B0 07 00 90 00 2B [20:27:14]RAPDU: 90 00 [20:27:14]wFMCommunicate OK [20:27:14]wFMCommunicate request_size=10 [20:27:14]MH_SAM_APDU [20:27:14]CAPDU: 80 0D 02 02 05 63 B0 69 EA C0 [20:27:14]Write to MH i2c: E2 0D 00 B1 07 80 0D 02 02 05 00 63 B0 69 EA C0 00 00 62 [20:27:14]Write i2c OK [20:27:14]MH_I2C_Read... [20:27:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:27:14]Read from MH i2c: E2 [20:27:14]MH_I2C_Read... [20:27:14]Read from MH i2c: E2 03 00 [20:27:14]MH_I2C_Read... [20:27:14]Read from MH i2c: E2 03 00 B1 07 00 90 00 2C [20:27:14]RAPDU: 90 00 [20:27:14]wFMCommunicate OK [20:27:14]wFMCommunicate request_size=4 [20:27:14]MH_SAM_APDU [20:27:14]CAPDU: 80 0D 03 02 [20:27:14]Write to MH i2c: E2 08 00 B2 07 80 0D 03 02 00 00 00 00 34 [20:27:14]Write i2c OK [20:27:14]MH_I2C_Read... [20:27:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:27:14]Read from MH i2c: E2 [20:27:14]MH_I2C_Read... [20:27:14]Read from MH i2c: E2 0B 00 [20:27:14]MH_I2C_Read... [20:27:14]Read from MH i2c: E2 0B 00 B2 07 00 12 9F 3D BF 74 AC 88 67 90 00 F1 [20:27:14]RAPDU: 12 9F 3D BF 74 AC 88 67 90 00 [20:27:14]wFMCommunicate OK [20:27:14]SAM_PROTO_SignData done [20:27:14]FM_MakeSignedData done [20:27:14]CreateOFDProtocolMessage [20:27:14]wFMCommunicate request_size=4 [20:27:14]MH_SAM_APDU [20:27:14]CAPDU: 80 11 00 00 [20:27:14]Write to MH i2c: E2 08 00 B3 07 80 11 00 00 00 00 00 00 34 [20:27:14]Write i2c OK [20:27:14]MH_I2C_Read... [20:27:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:27:14]Read from MH i2c: E2 [20:27:14]MH_I2C_Read... [20:27:14]Read from MH i2c: E2 17 00 [20:27:14]MH_I2C_Read... [20:27:14]Read from MH i2c: E2 17 00 B3 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 8A [20:27:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:27:14]wFMCommunicate OK [20:27:14]CreateOFDProtocolMessage done [20:27:14]OFDSenderStorePacket 165085 [20:27:14]StoreOFDPacket docnum=165085 [20:27:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 45 9D 07 01 B2 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 A2 34 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DD 84 02 00 35 04 06 00 14 63 B0 69 EA C0 12 9F 3D BF 74 AC 88 67 [20:27:14]CheckFolder [20:27:14]dirname=/storage/ofd_packets [20:27:14]CheckFolder done [20:27:14]ProducePacketName [20:27:14]name=ofd_packets/00165085 [20:27:14]NVStorageSaveData ofd_packets/00165085 [20:27:14]File name is /storage/ofd_packets/00165085 [20:27:14]Write 301 bytes [20:27:14]NVStorageSaveData done [20:27:14]OFDSenderStorePacket done [20:27:14]KKMCreateOFDPacket done [20:27:14]NVStorageSaveData kkm_last_timestamp [20:27:14]File name is /storage/kkm_last_timestamp [20:27:14]Write 4 bytes [20:27:14]NVStorageSaveData done [20:27:14]ExternCall_PrintAddStr [20:27:14]wPrintStart [20:27:14]Write to MH i2c: 01 00 00 B4 07 BB [20:27:14]Write i2c OK [20:27:14]MH_I2C_Read... [20:27:14]Read from MH i2c: 01 [20:27:14]MH_I2C_Read... [20:27:14]Read from MH i2c: 01 07 00 [20:27:14]MH_I2C_Read... [20:27:14]Read from MH i2c: 01 07 00 B4 07 00 00 00 00 00 FF 0F D0 [20:27:14]RasterBufferAndPrint [20:27:14]line Счет N : (1)459188 [20:27:14]line ИНН: 02508201610067 [20:27:14]line Контрольно-Кассовый Чек [20:27:14]line ПРОДАЖА [20:27:14]line ТРК (МРК, ГНК) : 22 [20:27:14]line Товар: 2710124130 [20:27:14]line Аи-92-К-5 [20:27:14]line 6.080 * 65.80 [20:27:14]line = 400.06 [20:27:14]line НДС 12% НСП 1% [20:27:14]line > о реализуемом товаре [20:27:14]line ОКРУГЛЕНИЕ: -0.06 [20:27:14]line ИТОГО: 400.00 [20:27:14]line Внесено: 400.00 [20:27:14]line СДАЧА: 0.00 [20:27:14]line НСП 1% : 3.54 [20:27:14]line НДС 12% : 42.48 [20:27:14]line Наличными: 400.00 [20:27:14]line Безнал.: 0.00 [20:27:14]line Место: АЗС № 72 "Партнер Нефть" [20:27:14]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [20:27:14]line СНО: Общий режим [20:27:14]line Чек 283 14.07.2024 20:27 [20:27:14]line Смена: 447 ФФД: 1.0 [20:27:14]line ЗНМ: 0300000160 [20:27:14]line РНМ: 0000000000090829 [20:27:14]line Версия ККМ: 001 [20:27:14]line ФМ: 0000000000874718 [20:27:14]line ФД: 165085 [20:27:14]line ФПД: 22418394049216 [20:27:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T202714&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165085&fm=22418394049216&tin=02508201610067®Number=0000000000090829&sum=40000 [20:27:15]written 0, free lines is 4095 [20:27:15]OFD Sender: Processing packet 165085 [packets to send 106, broken 105] [20:27:15]ProducePacketName [20:27:15]name=ofd_packets/00165085 [20:27:15]OFD Sender: To server: pG, [20:27:15]CommunicateWithHost lk.salyk.kg:30040 [20:27:15]ConnectInit lk.salyk.kg [20:27:15]Connected sock=10 [20:27:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 45 9D 07 01 B2 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 A2 34 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DD 84 02 00 35 04 06 00 14 63 B0 69 EA C0 12 9F 3D BF 74 AC 88 67 [20:27:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 DE A0 47 00 D1 28 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DD 84 02 00 F4 03 04 00 2F DB 93 66 B6 04 01 00 00 9B F9 D0 06 4D DC 56 70 [20:27:15]CommunicateWithHost err = 0 [20:27:15]CheckOFDResponse [20:27:15]1017 (14) - 77093643461234 [20:27:15]1041 (16) - 0000000000874718 [20:27:15]1040 (4) - 165085 [20:27:15]1012 (4) - 14.07.2024 14:05 [20:27:15]1206 (1) - 0 [20:27:15]OFD Sender: Remove packet 165085 [20:27:15]ProducePacketName [20:27:15]name=ofd_packets/00165085 [20:27:15]NVStorageDeleteData [20:27:15]Write to MH i2c: 01 00 00 DE 07 E5 [20:27:15]Write i2c OK [20:27:15]MH_I2C_Read... [20:27:15]Read from MH i2c: 01 [20:27:15]MH_I2C_Read... [20:27:15]Read from MH i2c: 01 07 00 [20:27:15]MH_I2C_Read... [20:27:15]Read from MH i2c: 01 07 00 DE 07 00 00 00 00 00 F2 0C EA [20:27:15]RasterBufferAndPrint [20:27:15]line [20:27:15]line [20:27:15]line [20:27:15]line [20:27:15]line [20:27:15]written 0, free lines is 3318 [20:27:15]MH_Cut [20:27:15]Write to MH i2c: D1 01 00 E5 07 01 BE [20:27:15]Write i2c OK [20:27:15]MH_I2C_Read... [20:27:15]Read from MH i2c: D1 [20:27:15]MH_I2C_Read... [20:27:15]Read from MH i2c: D1 01 00 [20:27:15]MH_I2C_Read... [20:27:15]Read from MH i2c: D1 01 00 E5 07 00 BD [20:27:15]Write to MH i2c: 01 00 00 E6 07 ED [20:27:15]Write i2c OK [20:27:15]MH_I2C_Read... [20:27:15]OFD Sender: No OFD packet to send [20:27:16]*** Cut start [20:27:16]*** Partial cut [20:27:16]*** CUTSNS_PIN = 1 [20:27:16]*** CUTSNS_PIN = 0 [20:27:16]*** Brake cut motor [20:27:16]Read from MH i2c: 01 [20:27:16]MH_I2C_Read... [20:27:16]*** Stop cut motor [20:27:16]*** Cut end [20:27:16]Read from MH i2c: 01 07 00 [20:27:16]MH_I2C_Read... [20:27:16]Read from MH i2c: 01 07 00 E6 07 00 00 00 00 00 FF 0F 02 [20:27:16]process_action close_receipt done [20:27:16]requested_data is exist [20:27:16]produce_requested_data [20:27:16]requested_item fm.sn is exist - process it [20:27:16]wFMCommunicate request_size=4 [20:27:16]MH_SAM_APDU [20:27:16]CAPDU: 80 11 00 00 [20:27:16]Write to MH i2c: E2 08 00 E7 07 80 11 00 00 00 00 00 00 68 [20:27:16]Write i2c OK [20:27:16]MH_I2C_Read... [20:27:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:27:16]Read from MH i2c: E2 [20:27:16]MH_I2C_Read... [20:27:16]Read from MH i2c: E2 17 00 [20:27:16]MH_I2C_Read... [20:27:16]Read from MH i2c: E2 17 00 E7 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 BE [20:27:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:27:16]wFMCommunicate OK [20:27:16]requested_item fd.num is exist - process it [20:27:16]SAM_PROTO_GetFieldsCounters [20:27:16]wFMCommunicate request_size=4 [20:27:16]MH_SAM_APDU [20:27:16]CAPDU: 80 13 00 00 [20:27:16]Write to MH i2c: E2 08 00 E8 07 80 13 00 00 00 00 00 00 6B [20:27:16]Write i2c OK [20:27:16]MH_I2C_Read... [20:27:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:27:16]Read from MH i2c: E2 [20:27:16]MH_I2C_Read... [20:27:16]Read from MH i2c: E2 62 00 [20:27:16]MH_I2C_Read... [20:27:16]Read from MH i2c: E2 62 00 E8 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 DD 84 02 00 0E 04 04 00 BF 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 09 [20:27:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 DD 84 02 00 0E 04 04 00 BF 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 [20:27:16]wFMCommunicate OK [20:27:16]SAM_PROTO_GetFieldsCounters done [20:27:16]requested_item shift.num is exist - process it [20:27:16]requested_item shift.opened is exist - process it [20:27:16]req_shift_opened [20:27:16]FM_GetShiftState [20:27:16]SAM_PROTO_GetShiftState [20:27:16]wFMCommunicate request_size=4 [20:27:16]MH_SAM_APDU [20:27:16]CAPDU: 80 13 01 00 [20:27:16]Write to MH i2c: E2 08 00 E9 07 80 13 01 00 00 00 00 00 6D [20:27:16]Write i2c OK [20:27:16]MH_I2C_Read... [20:27:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:27:17]Read from MH i2c: E2 [20:27:17]MH_I2C_Read... [20:27:17]Read from MH i2c: E2 0E 00 [20:27:17]MH_I2C_Read... [20:27:17]Read from MH i2c: E2 0E 00 E9 07 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 ED [20:27:17]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [20:27:17]wFMCommunicate OK [20:27:17]SAM_PROTO_GetShiftState done [20:27:17]FM_GetShiftState done [20:27:17]req_shift_opened done [20:27:17]requested_item shift.open_date is exist - process it [20:27:17]req_shift_open_date [20:27:17]req_shift_open_date done [20:27:17]produce_requested_data done [20:27:17]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165085,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [20:27:17]process_action_free close_receipt [20:27:17]json_value_free [20:27:17]json_value_free done [20:27:17]process_json_proto returns [20:27:17]Send response to host [20:27:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165085,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [20:27:17]free response buf [20:27:17]execute_script done [20:27:17]execute_script returns [20:27:17]free content buf [20:27:17]Sock 9.Close socket [20:27:17]Sock 9.Thread stoped [20:27:20]OFD Sender: No OFD packet to send [20:27:25]OFD Sender: No OFD packet to send [20:27:30]OFD Sender: No OFD packet to send [20:27:35]OFD Sender: No OFD packet to send [20:27:40]OFD Sender: No OFD packet to send [20:27:45]OFD Sender: No OFD packet to send [20:27:50]OFD Sender: No OFD packet to send [20:27:55]OFD Sender: No OFD packet to send [20:28:00]OFD Sender: No OFD packet to send [20:28:05]OFD Sender: No OFD packet to send [20:28:10]OFD Sender: No OFD packet to send [20:28:15]OFD Sender: No OFD packet to send [20:28:20]OFD Sender: No OFD packet to send [20:28:25]OFD Sender: No OFD packet to send [20:28:30]OFD Sender: No OFD packet to send [20:28:35]OFD Sender: No OFD packet to send [20:28:40]OFD Sender: No OFD packet to send [20:28:45]OFD Sender: No OFD packet to send [20:28:50]OFD Sender: No OFD packet to send [20:28:55]OFD Sender: No OFD packet to send [20:29:00]OFD Sender: No OFD packet to send [20:29:05]OFD Sender: No OFD packet to send [20:29:10]OFD Sender: No OFD packet to send [20:29:16]OFD Sender: No OFD packet to send [20:29:21]OFD Sender: No OFD packet to send [20:29:26]OFD Sender: No OFD packet to send [20:29:31]OFD Sender: No OFD packet to send [20:29:36]OFD Sender: No OFD packet to send [20:29:41]OFD Sender: No OFD packet to send [20:29:46]OFD Sender: No OFD packet to send [20:29:51]OFD Sender: No OFD packet to send [20:29:56]OFD Sender: No OFD packet to send [20:30:01]OFD Sender: No OFD packet to send [20:30:06]OFD Sender: No OFD packet to send [20:30:11]OFD Sender: No OFD packet to send [20:30:16]OFD Sender: No OFD packet to send [20:30:21]OFD Sender: No OFD packet to send [20:30:26]OFD Sender: No OFD packet to send [20:30:31]OFD Sender: No OFD packet to send [20:30:36]OFD Sender: No OFD packet to send [20:30:41]OFD Sender: No OFD packet to send [20:30:46]OFD Sender: No OFD packet to send [20:30:51]OFD Sender: No OFD packet to send [20:30:56]OFD Sender: No OFD packet to send [20:31:01]OFD Sender: No OFD packet to send [20:31:06]OFD Sender: No OFD packet to send [20:31:11]OFD Sender: No OFD packet to send [20:31:16]OFD Sender: No OFD packet to send [20:31:21]OFD Sender: No OFD packet to send [20:31:26]OFD Sender: No OFD packet to send [20:31:31]OFD Sender: No OFD packet to send [20:31:36]OFD Sender: No OFD packet to send [20:31:41]OFD Sender: No OFD packet to send [20:31:46]OFD Sender: No OFD packet to send [20:31:51]OFD Sender: No OFD packet to send [20:31:56]OFD Sender: No OFD packet to send [20:32:01]OFD Sender: No OFD packet to send [20:32:06]OFD Sender: No OFD packet to send [20:32:11]OFD Sender: No OFD packet to send [20:32:16]OFD Sender: No OFD packet to send [20:32:21]OFD Sender: No OFD packet to send [20:32:26]OFD Sender: No OFD packet to send [20:32:31]OFD Sender: No OFD packet to send [20:32:36]OFD Sender: No OFD packet to send [20:32:41]OFD Sender: No OFD packet to send [20:32:46]OFD Sender: No OFD packet to send [20:32:51]OFD Sender: No OFD packet to send [20:32:56]OFD Sender: No OFD packet to send [20:33:01]OFD Sender: No OFD packet to send [20:33:06]OFD Sender: No OFD packet to send [20:33:11]OFD Sender: No OFD packet to send [20:33:16]OFD Sender: No OFD packet to send [20:33:21]OFD Sender: No OFD packet to send [20:33:26]OFD Sender: No OFD packet to send [20:33:31]OFD Sender: No OFD packet to send [20:33:36]OFD Sender: No OFD packet to send [20:33:41]OFD Sender: No OFD packet to send [20:33:46]OFD Sender: No OFD packet to send [20:33:51]OFD Sender: No OFD packet to send [20:33:56]OFD Sender: No OFD packet to send [20:34:01]OFD Sender: No OFD packet to send [20:34:06]OFD Sender: No OFD packet to send [20:34:11]OFD Sender: No OFD packet to send [20:34:16]OFD Sender: No OFD packet to send [20:34:21]OFD Sender: No OFD packet to send [20:34:26]OFD Sender: No OFD packet to send [20:34:31]OFD Sender: No OFD packet to send [20:34:36]OFD Sender: No OFD packet to send [20:34:41]OFD Sender: No OFD packet to send [20:34:46]OFD Sender: No OFD packet to send [20:34:51]OFD Sender: No OFD packet to send [20:34:56]OFD Sender: No OFD packet to send [20:35:01]OFD Sender: No OFD packet to send [20:35:06]OFD Sender: No OFD packet to send [20:35:11]OFD Sender: No OFD packet to send [20:35:16]OFD Sender: No OFD packet to send [20:35:21]OFD Sender: No OFD packet to send [20:35:26]OFD Sender: No OFD packet to send [20:35:31]OFD Sender: No OFD packet to send [20:35:36]OFD Sender: No OFD packet to send [20:35:41]OFD Sender: No OFD packet to send [20:35:46]OFD Sender: No OFD packet to send [20:35:51]OFD Sender: No OFD packet to send [20:35:56]OFD Sender: No OFD packet to send [20:36:01]OFD Sender: No OFD packet to send [20:36:06]OFD Sender: No OFD packet to send [20:36:11]OFD Sender: No OFD packet to send [20:36:16]OFD Sender: No OFD packet to send [20:36:21]OFD Sender: No OFD packet to send [20:36:26]OFD Sender: No OFD packet to send [20:36:31]OFD Sender: No OFD packet to send [20:36:36]OFD Sender: No OFD packet to send [20:36:41]OFD Sender: No OFD packet to send [20:36:46]OFD Sender: No OFD packet to send [20:36:51]OFD Sender: No OFD packet to send [20:36:56]OFD Sender: No OFD packet to send [20:37:01]OFD Sender: No OFD packet to send [20:37:06]OFD Sender: No OFD packet to send [20:37:11]OFD Sender: No OFD packet to send [20:37:16]OFD Sender: No OFD packet to send [20:37:21]OFD Sender: No OFD packet to send [20:37:26]OFD Sender: No OFD packet to send [20:37:31]OFD Sender: No OFD packet to send [20:37:36]OFD Sender: No OFD packet to send [20:37:41]OFD Sender: No OFD packet to send [20:37:46]OFD Sender: No OFD packet to send [20:37:51]OFD Sender: No OFD packet to send [20:37:56]OFD Sender: No OFD packet to send [20:38:01]OFD Sender: No OFD packet to send [20:38:06]OFD Sender: No OFD packet to send [20:38:11]OFD Sender: No OFD packet to send [20:38:16]OFD Sender: No OFD packet to send [20:38:21]OFD Sender: No OFD packet to send [20:38:26]OFD Sender: No OFD packet to send [20:38:31]OFD Sender: No OFD packet to send [20:38:36]OFD Sender: No OFD packet to send [20:38:41]OFD Sender: No OFD packet to send [20:38:46]OFD Sender: No OFD packet to send [20:38:51]OFD Sender: No OFD packet to send [20:38:56]OFD Sender: No OFD packet to send [20:39:01]OFD Sender: No OFD packet to send [20:39:06]OFD Sender: No OFD packet to send [20:39:11]OFD Sender: No OFD packet to send [20:39:16]OFD Sender: No OFD packet to send [20:39:21]OFD Sender: No OFD packet to send [20:39:26]OFD Sender: No OFD packet to send [20:39:31]OFD Sender: No OFD packet to send [20:39:36]OFD Sender: No OFD packet to send [20:39:41]OFD Sender: No OFD packet to send [20:39:46]OFD Sender: No OFD packet to send [20:39:51]OFD Sender: No OFD packet to send [20:39:56]OFD Sender: No OFD packet to send [20:40:01]OFD Sender: No OFD packet to send [20:40:06]OFD Sender: No OFD packet to send [20:40:11]OFD Sender: No OFD packet to send [20:40:16]OFD Sender: No OFD packet to send [20:40:21]OFD Sender: No OFD packet to send [20:40:26]OFD Sender: No OFD packet to send [20:40:31]OFD Sender: No OFD packet to send [20:40:36]OFD Sender: No OFD packet to send [20:40:41]OFD Sender: No OFD packet to send [20:40:46]OFD Sender: No OFD packet to send [20:40:50]accept exits with 7 [20:40:50]New connection [20:40:50]New thread 3066785124 created [20:40:50]Thread 3066928484 joined [20:40:50]Waiting for new connection... [20:40:50] Sock 7.Parse request [20:40:50]Sock 7.Check first char [20:40:50]Sock 7.First char is OK [20:40:50]request: POST /json_proto HTTP/1.0 [20:40:50]Method: POST [20:40:50]URL: /json_proto [20:40:50]Method is POST - this is cgi request [20:40:50]url: /json_proto [20:40:50]query_string will be loaded in cgi processing [20:40:50]execute_cgi json_proto POST (null) [20:40:50]execute_cgi path=json_proto method=POST [20:40:50]POST find Content-Length [20:40:50]Host: 172.17.56.4:8080 [20:40:50]Content-Length: 677 [20:40:50]Content-Type: application/json [20:40:50] [20:40:50]POST finish read [20:40:50]Found Content-Length = 677 [20:40:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459189", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.650, "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" ] } } [20:40:50]execute_script... [20:40: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)459189", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.650, "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" ] } } [20:40:50]POST & json_proto [20:40:50]process_json_proto [20:40:50]json parsed OK: [20:40:50]protocol is kg_v1.0 [20:40:50]action value=close_receipt [20:40:50]process_action close_receipt [20:40:50]cmd_close_receipt [20:40:50]MH_GetDate [20:40:50]Write to MH i2c: F0 00 00 EA 07 E0 [20:40:50]Write i2c OK [20:40:50]MH_I2C_Read... [20:40:50]Read from MH i2c: F0 [20:40:50]MH_I2C_Read... [20:40:50]Read from MH i2c: F0 09 00 [20:40:50]MH_I2C_Read... [20:40:50]Read from MH i2c: F0 09 00 EA 07 00 D3 37 94 66 C9 DC B2 64 A8 [20:40:50]GetLastDocTimeStamp 1720988834 [20:40:50]current date 1720989651 [20:40:50]FM_GetShiftState [20:40:50]SAM_PROTO_GetShiftState [20:40:50]wFMCommunicate request_size=4 [20:40:50]MH_SAM_APDU [20:40:50]CAPDU: 80 13 01 00 [20:40:50]Write to MH i2c: E2 08 00 EB 07 80 13 01 00 00 00 00 00 6F [20:40:50]Write i2c OK [20:40:50]MH_I2C_Read... [20:40:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:40:50]Read from MH i2c: E2 [20:40:50]MH_I2C_Read... [20:40:50]Read from MH i2c: E2 0E 00 [20:40:50]MH_I2C_Read... [20:40:50]Read from MH i2c: E2 0E 00 EB 07 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 EF [20:40:50]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [20:40:50]wFMCommunicate OK [20:40:50]SAM_PROTO_GetShiftState done [20:40:50]FM_GetShiftState done [20:40:50]opened in 1720917342 [20:40:50]opened+sec_in_day 1721003742 [20:40:50]quantity*price = 24017 [20:40:50]sum+1 = 24018 [20:40:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 240.00 Внесено: 240.00 СДАЧА: 0.00 НСП 1% : 2.12 НДС 12% : 25.50 Наличными: 240.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 284 14.07.2024 20:40 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165086 ФПД: 259802295482787 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T204051&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165086&fm=259802295482787&tin=02508201610067®Number=0000000000090829&sum=24000 [20:40:51]StoreToDocumentArchive [20:40:51]shift 447 fd 165086 [20:40:51]save to /storage/0447/doc_00165086 [20:40:51]save last doc name /storage/0447/doc_00165086 to /storage/kkm_last_doc_name [20:40:51]save OK [20:40:51]Clear old archive folders... [20:40:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:40:51]tlvbuf is 013B8180 [20:40:51]SAM_PROTO_ClearQueue [20:40:51]wFMCommunicate request_size=4 [20:40:51]MH_SAM_APDU [20:40:51]CAPDU: 80 09 00 00 [20:40:51]Write to MH i2c: E2 08 00 F8 07 80 09 00 00 00 00 00 00 71 [20:40:51]Write i2c OK [20:40:51]MH_I2C_Read... [20:40:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:40:51]Read from MH i2c: E2 [20:40:51]MH_I2C_Read... [20:40:51]Read from MH i2c: E2 03 00 [20:40:51]MH_I2C_Read... [20:40:51]Read from MH i2c: E2 03 00 F8 07 00 90 00 73 [20:40:51]RAPDU: 90 00 [20:40:51]wFMCommunicate OK [20:40:51]SAM_PROTO_ClearQueue done [20:40:51]KKMCreateOFDPacket [20:40:51]OFDProtocolAddRootSTLVToBuf [20:40:51]FM_MakeSignedData [20:40:51]FM_MakeSignedData [20:40:51]SAM_PROTO_SignData [20:40:51]wFMCommunicate request_size=4 [20:40:51]MH_SAM_APDU [20:40:51]CAPDU: 80 0D 01 02 [20:40:51]Write to MH i2c: E2 08 00 F9 07 80 0D 01 02 00 00 00 00 79 [20:40:51]Write i2c OK [20:40:51]MH_I2C_Read... [20:40:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:40:51]Read from MH i2c: E2 [20:40:51]MH_I2C_Read... [20:40:51]Read from MH i2c: E2 03 00 [20:40:51]MH_I2C_Read... [20:40:51]Read from MH i2c: E2 03 00 F9 07 00 90 00 74 [20:40:51]RAPDU: 90 00 [20:40:51]wFMCommunicate OK [20:40:51]wFMCommunicate request_size=255 [20:40:51]MH_SAM_APDU [20:40:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 0E 00 00 00 00 00 37 04 06 00 B4 19 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 1C 01 00 00 F4 03 04 00 D3 37 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DE 84 02 00 35 04 06 00 EC [20:40:51]Write to MH i2c: E2 02 01 FA 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 0E 00 00 00 00 00 37 04 06 00 B4 19 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 1C 01 00 00 F4 03 04 00 D3 37 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DE 84 02 00 35 04 06 00 EC 00 00 12 [20:40:51]Write i2c OK [20:40:51]MH_I2C_Read... [20:40:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:40:51]Read from MH i2c: E2 [20:40:51]MH_I2C_Read... [20:40:51]Read from MH i2c: E2 03 00 [20:40:51]MH_I2C_Read... [20:40:51]Read from MH i2c: E2 03 00 FA 07 00 90 00 75 [20:40:51]RAPDU: 90 00 [20:40:51]wFMCommunicate OK [20:40:51]wFMCommunicate request_size=10 [20:40:51]MH_SAM_APDU [20:40:51]CAPDU: 80 0D 02 02 05 49 EF 88 B9 A3 [20:40:51]Write to MH i2c: E2 0D 00 FB 07 80 0D 02 02 05 00 49 EF 88 B9 A3 00 00 A2 [20:40:51]Write i2c OK [20:40:51]MH_I2C_Read... [20:40:51]OFD Sender: No OFD packet to send [20:40:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:40:51]Read from MH i2c: E2 [20:40:51]MH_I2C_Read... [20:40:51]Read from MH i2c: E2 03 00 [20:40:51]MH_I2C_Read... [20:40:51]Read from MH i2c: E2 03 00 FB 07 00 90 00 76 [20:40:51]RAPDU: 90 00 [20:40:51]wFMCommunicate OK [20:40:51]wFMCommunicate request_size=4 [20:40:51]MH_SAM_APDU [20:40:51]CAPDU: 80 0D 03 02 [20:40:51]Write to MH i2c: E2 08 00 FC 07 80 0D 03 02 00 00 00 00 7E [20:40:51]Write i2c OK [20:40:51]MH_I2C_Read... [20:40:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:40:51]Read from MH i2c: E2 [20:40:51]MH_I2C_Read... [20:40:51]Read from MH i2c: E2 0B 00 [20:40:51]MH_I2C_Read... [20:40:51]Read from MH i2c: E2 0B 00 FC 07 00 D9 6A A8 58 1A A8 CA 00 90 00 4E [20:40:51]RAPDU: D9 6A A8 58 1A A8 CA 00 90 00 [20:40:51]wFMCommunicate OK [20:40:51]SAM_PROTO_SignData done [20:40:51]FM_MakeSignedData done [20:40:51]CreateOFDProtocolMessage [20:40:51]wFMCommunicate request_size=4 [20:40:51]MH_SAM_APDU [20:40:51]CAPDU: 80 11 00 00 [20:40:51]Write to MH i2c: E2 08 00 FD 07 80 11 00 00 00 00 00 00 7E [20:40:51]Write i2c OK [20:40:51]MH_I2C_Read... [20:40:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:40:51]Read from MH i2c: E2 [20:40:51]MH_I2C_Read... [20:40:51]Read from MH i2c: E2 17 00 [20:40:51]MH_I2C_Read... [20:40:51]Read from MH i2c: E2 17 00 FD 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D4 [20:40:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:40:51]wFMCommunicate OK [20:40:51]CreateOFDProtocolMessage done [20:40:51]OFDSenderStorePacket 165086 [20:40:51]StoreOFDPacket docnum=165086 [20:40:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 4C D0 07 01 7F EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 0E 00 00 00 00 00 37 04 06 00 B4 19 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 1C 01 00 00 F4 03 04 00 D3 37 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DE 84 02 00 35 04 06 00 EC 49 EF 88 B9 A3 D9 6A A8 58 1A A8 CA 00 [20:40:51]CheckFolder [20:40:51]dirname=/storage/ofd_packets [20:40:51]CheckFolder done [20:40:51]ProducePacketName [20:40:51]name=ofd_packets/00165086 [20:40:51]NVStorageSaveData ofd_packets/00165086 [20:40:51]File name is /storage/ofd_packets/00165086 [20:40:51]Write 301 bytes [20:40:51]NVStorageSaveData done [20:40:51]OFDSenderStorePacket done [20:40:51]KKMCreateOFDPacket done [20:40:51]NVStorageSaveData kkm_last_timestamp [20:40:51]File name is /storage/kkm_last_timestamp [20:40:51]Write 4 bytes [20:40:51]NVStorageSaveData done [20:40:51]ExternCall_PrintAddStr [20:40:51]wPrintStart [20:40:51]Write to MH i2c: 01 00 00 FE 07 05 [20:40:51]Write i2c OK [20:40:51]MH_I2C_Read... [20:40:51]Read from MH i2c: 01 [20:40:51]MH_I2C_Read... [20:40:51]Read from MH i2c: 01 07 00 [20:40:51]MH_I2C_Read... [20:40:51]Read from MH i2c: 01 07 00 FE 07 00 00 00 00 00 FF 0F 1A [20:40:51]RasterBufferAndPrint [20:40:51]line Счет N : (1)459189 [20:40:51]line ИНН: 02508201610067 [20:40:51]line Контрольно-Кассовый Чек [20:40:51]line ПРОДАЖА [20:40:51]line ТРК (МРК, ГНК) : 12 [20:40:51]line Товар: 2710124130 [20:40:51]line Аи-92-К-5 [20:40:51]line 3.650 * 65.80 [20:40:51]line = 240.17 [20:40:51]line НДС 12% НСП 1% [20:40:51]line > о реализуемом товаре [20:40:51]line ОКРУГЛЕНИЕ: -0.17 [20:40:51]line ИТОГО: 240.00 [20:40:51]line Внесено: 240.00 [20:40:51]line СДАЧА: 0.00 [20:40:51]line НСП 1% : 2.12 [20:40:51]line НДС 12% : 25.50 [20:40:51]line Наличными: 240.00 [20:40:51]line Безнал.: 0.00 [20:40:51]line Место: АЗС № 72 "Партнер Нефть" [20:40:51]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [20:40:51]line СНО: Общий режим [20:40:51]line Чек 284 14.07.2024 20:40 [20:40:51]line Смена: 447 ФФД: 1.0 [20:40:51]line ЗНМ: 0300000160 [20:40:51]line РНМ: 0000000000090829 [20:40:51]line Версия ККМ: 001 [20:40:51]line ФМ: 0000000000874718 [20:40:51]line ФД: 165086 [20:40:51]line ФПД: 259802295482787 [20:40:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T204051&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165086&fm=259802295482787&tin=02508201610067®Number=0000000000090829&sum=24000 [20:40:52]OFD Sender: Processing packet 165086 [packets to send 106, broken 105] [20:40:52]written 0, free lines is 4095 [20:40:52]ProducePacketName [20:40:52]name=ofd_packets/00165086 [20:40:52]OFD Sender: To server: pG, [20:40:52]CommunicateWithHost lk.salyk.kg:30040 [20:40:52]ConnectInit lk.salyk.kg [20:40:52]Connected sock=10 [20:40:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 4C D0 07 01 7F EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 0E 00 00 00 00 00 37 04 06 00 B4 19 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 1C 01 00 00 F4 03 04 00 D3 37 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DE 84 02 00 35 04 06 00 EC 49 EF 88 B9 A3 D9 6A A8 58 1A A8 CA 00 [20:40:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 6B 07 47 00 DF 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DE 84 02 00 F4 03 04 00 60 DE 93 66 B6 04 01 00 00 DF EF C9 7E 2B 0E 7E 34 [20:40:52]CommunicateWithHost err = 0 [20:40:52]CheckOFDResponse [20:40:52]1017 (14) - 77093643461234 [20:40:52]1041 (16) - 0000000000874718 [20:40:52]1040 (4) - 165086 [20:40:52]1012 (4) - 14.07.2024 14:19 [20:40:52]1206 (1) - 0 [20:40:52]OFD Sender: Remove packet 165086 [20:40:52]ProducePacketName [20:40:52]name=ofd_packets/00165086 [20:40:52]NVStorageDeleteData [20:40:52]Write to MH i2c: 01 00 00 28 08 30 [20:40:52]Write i2c OK [20:40:52]MH_I2C_Read... [20:40:52]Read from MH i2c: 01 [20:40:52]MH_I2C_Read... [20:40:52]Read from MH i2c: 01 07 00 [20:40:52]MH_I2C_Read... [20:40:52]Read from MH i2c: 01 07 00 28 08 00 00 00 00 00 F9 0C 3C [20:40:52]RasterBufferAndPrint [20:40:52]line [20:40:52]line [20:40:52]line [20:40:52]line [20:40:52]line [20:40:52]written 0, free lines is 3330 [20:40:52]MH_Cut [20:40:52]Write to MH i2c: D1 01 00 2F 08 01 09 [20:40:52]Write i2c OK [20:40:52]MH_I2C_Read... [20:40:52]Read from MH i2c: D1 [20:40:52]MH_I2C_Read... [20:40:52]Read from MH i2c: D1 01 00 [20:40:52]MH_I2C_Read... [20:40:52]Read from MH i2c: D1 01 00 2F 08 00 08 [20:40:52]Write to MH i2c: 01 00 00 30 08 38 [20:40:52]Write i2c OK [20:40:52]MH_I2C_Read... [20:40:53]OFD Sender: No OFD packet to send [20:40:53]*** Cut start [20:40:53]*** Partial cut [20:40:53]*** CUTSNS_PIN = 1 [20:40:53]*** CUTSNS_PIN = 0 [20:40:53]*** Brake cut motor [20:40:53]Read from MH i2c: 01 [20:40:53]MH_I2C_Read... [20:40:53]*** Stop cut motor [20:40:53]*** Cut end [20:40:53]Read from MH i2c: 01 07 00 [20:40:53]MH_I2C_Read... [20:40:53]Read from MH i2c: 01 07 00 30 08 00 00 00 00 00 FF 0F 4D [20:40:53]process_action close_receipt done [20:40:53]requested_data is exist [20:40:53]produce_requested_data [20:40:53]requested_item fm.sn is exist - process it [20:40:53]wFMCommunicate request_size=4 [20:40:53]MH_SAM_APDU [20:40:53]CAPDU: 80 11 00 00 [20:40:53]Write to MH i2c: E2 08 00 31 08 80 11 00 00 00 00 00 00 B3 [20:40:53]Write i2c OK [20:40:53]MH_I2C_Read... [20:40:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:40:54]Read from MH i2c: E2 [20:40:54]MH_I2C_Read... [20:40:54]Read from MH i2c: E2 17 00 [20:40:54]MH_I2C_Read... [20:40:54]Read from MH i2c: E2 17 00 31 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 09 [20:40:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:40:54]wFMCommunicate OK [20:40:54]requested_item fd.num is exist - process it [20:40:54]SAM_PROTO_GetFieldsCounters [20:40:54]wFMCommunicate request_size=4 [20:40:54]MH_SAM_APDU [20:40:54]CAPDU: 80 13 00 00 [20:40:54]Write to MH i2c: E2 08 00 32 08 80 13 00 00 00 00 00 00 B6 [20:40:54]Write i2c OK [20:40:54]MH_I2C_Read... [20:40:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:40:54]Read from MH i2c: E2 [20:40:54]MH_I2C_Read... [20:40:54]Read from MH i2c: E2 62 00 [20:40:54]MH_I2C_Read... [20:40:54]Read from MH i2c: E2 62 00 32 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 DE 84 02 00 0E 04 04 00 BF 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 58 [20:40:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 DE 84 02 00 0E 04 04 00 BF 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 [20:40:54]wFMCommunicate OK [20:40:54]SAM_PROTO_GetFieldsCounters done [20:40:54]requested_item shift.num is exist - process it [20:40:54]requested_item shift.opened is exist - process it [20:40:54]req_shift_opened [20:40:54]FM_GetShiftState [20:40:54]SAM_PROTO_GetShiftState [20:40:54]wFMCommunicate request_size=4 [20:40:54]MH_SAM_APDU [20:40:54]CAPDU: 80 13 01 00 [20:40:54]Write to MH i2c: E2 08 00 33 08 80 13 01 00 00 00 00 00 B8 [20:40:54]Write i2c OK [20:40:54]MH_I2C_Read... [20:40:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:40:54]Read from MH i2c: E2 [20:40:54]MH_I2C_Read... [20:40:54]Read from MH i2c: E2 0E 00 [20:40:54]MH_I2C_Read... [20:40:54]Read from MH i2c: E2 0E 00 33 08 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 38 [20:40:54]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [20:40:54]wFMCommunicate OK [20:40:54]SAM_PROTO_GetShiftState done [20:40:54]FM_GetShiftState done [20:40:54]req_shift_opened done [20:40:54]requested_item shift.open_date is exist - process it [20:40:54]req_shift_open_date [20:40:54]req_shift_open_date done [20:40:54]produce_requested_data done [20:40:54]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165086,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [20:40:54]process_action_free close_receipt [20:40:54]json_value_free [20:40:54]json_value_free done [20:40:54]process_json_proto returns [20:40:54]Send response to host [20:40:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165086,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [20:40:54]free response buf [20:40:54]execute_script done [20:40:54]execute_script returns [20:40:54]free content buf [20:40:54]Sock 7.Close socket [20:40:54]Sock 7.Thread stoped [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:52]accept exits with 9 [20:42:52]New connection [20:42:52]New thread 3066928484 created [20:42:52]Thread 3066785124 joined [20:42:52]Waiting for new connection... [20:42:52] Sock 9.Parse request [20:42:52]Sock 9.Check first char [20:42:52]Sock 9.First char is OK [20:42:52]request: POST /json_proto HTTP/1.0 [20:42:52]Method: POST [20:42:52]URL: /json_proto [20:42:52]Method is POST - this is cgi request [20:42:52]url: /json_proto [20:42:52]query_string will be loaded in cgi processing [20:42:52]execute_cgi json_proto POST (null) [20:42:52]execute_cgi path=json_proto method=POST [20:42:52]POST find Content-Length [20:42:52]Host: 172.17.56.4:8080 [20:42:52]Content-Length: 793 [20:42:52]Content-Type: application/json [20:42:52] [20:42:52]POST finish read [20:42:52]Found Content-Length = 793 [20:42:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459190", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 15.340, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:42:52]execute_script... [20:42:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459190", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 15.340, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:42:52]POST & json_proto [20:42:52]process_json_proto [20:42:52]json parsed OK: [20:42:52]protocol is kg_v1.0 [20:42:52]action value=close_receipt [20:42:52]process_action close_receipt [20:42:52]cmd_close_receipt [20:42:52]MH_GetDate [20:42:52]Write to MH i2c: F0 00 00 34 08 2B [20:42:52]Write i2c OK [20:42:52]MH_I2C_Read... [20:42:52]Read from MH i2c: F0 [20:42:52]MH_I2C_Read... [20:42:52]Read from MH i2c: F0 09 00 [20:42:52]MH_I2C_Read... [20:42:52]Read from MH i2c: F0 09 00 34 08 00 4E 38 94 66 C9 DC B2 64 6F [20:42:52]GetLastDocTimeStamp 1720989651 [20:42:52]current date 1720989774 [20:42:52]FM_GetShiftState [20:42:52]SAM_PROTO_GetShiftState [20:42:52]wFMCommunicate request_size=4 [20:42:52]MH_SAM_APDU [20:42:52]CAPDU: 80 13 01 00 [20:42:52]Write to MH i2c: E2 08 00 35 08 80 13 01 00 00 00 00 00 BA [20:42:52]Write i2c OK [20:42:52]MH_I2C_Read... [20:42:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:42:52]Read from MH i2c: E2 [20:42:52]MH_I2C_Read... [20:42:52]Read from MH i2c: E2 0E 00 [20:42:52]MH_I2C_Read... [20:42:52]Read from MH i2c: E2 0E 00 35 08 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 3A [20:42:52]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [20:42:52]wFMCommunicate OK [20:42:52]SAM_PROTO_GetShiftState done [20:42:52]FM_GetShiftState done [20:42:52]opened in 1720917342 [20:42:52]opened+sec_in_day 1721003742 [20:42:52]quantity*price = 100047 [20:42:52]sum+1 = 100048 [20:42:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.47 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 0.00 Безнал.: 1000.47 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 285 14.07.2024 20:42 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 165087 ФПД: 9674529767860 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T204254&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165087&fm=9674529767860&tin=02508201610067®Number=0000000000090829&sum=100047 [20:42:53]StoreToDocumentArchive [20:42:53]shift 447 fd 165087 [20:42:53]save to /storage/0447/doc_00165087 [20:42:53]save last doc name /storage/0447/doc_00165087 to /storage/kkm_last_doc_name [20:42:53]save OK [20:42:53]Clear old archive folders... [20:42:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:42:53]tlvbuf is 013A5D20 [20:42:53]SAM_PROTO_ClearQueue [20:42:53]wFMCommunicate request_size=4 [20:42:53]MH_SAM_APDU [20:42:53]CAPDU: 80 09 00 00 [20:42:53]Write to MH i2c: E2 08 00 42 08 80 09 00 00 00 00 00 00 BC [20:42:53]Write i2c OK [20:42:53]MH_I2C_Read... [20:42:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:42:53]Read from MH i2c: E2 [20:42:53]MH_I2C_Read... [20:42:53]Read from MH i2c: E2 03 00 [20:42:53]MH_I2C_Read... [20:42:53]Read from MH i2c: E2 03 00 42 08 00 90 00 BE [20:42:53]RAPDU: 90 00 [20:42:53]wFMCommunicate OK [20:42:53]SAM_PROTO_ClearQueue done [20:42:53]KKMCreateOFDPacket [20:42:53]OFDProtocolAddRootSTLVToBuf [20:42:53]FM_MakeSignedData [20:42:53]FM_MakeSignedData [20:42:53]SAM_PROTO_SignData [20:42:53]wFMCommunicate request_size=4 [20:42:53]MH_SAM_APDU [20:42:53]CAPDU: 80 0D 01 02 [20:42:53]Write to MH i2c: E2 08 00 43 08 80 0D 01 02 00 00 00 00 C4 [20:42:53]Write i2c OK [20:42:53]MH_I2C_Read... [20:42:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:42:53]Read from MH i2c: E2 [20:42:53]MH_I2C_Read... [20:42:53]Read from MH i2c: E2 03 00 [20:42:53]MH_I2C_Read... [20:42:53]Read from MH i2c: E2 03 00 43 08 00 90 00 BF [20:42:53]RAPDU: 90 00 [20:42:53]wFMCommunicate OK [20:42:53]wFMCommunicate request_size=255 [20:42:53]MH_SAM_APDU [20:42:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 3B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 4E 38 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DF 84 02 00 35 04 06 00 08 [20:42:53]Write to MH i2c: E2 02 01 44 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 3B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 4E 38 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DF 84 02 00 35 04 06 00 08 00 00 7C [20:42:53]Write i2c OK [20:42:53]MH_I2C_Read... [20:42:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:42:54]Read from MH i2c: E2 [20:42:54]MH_I2C_Read... [20:42:54]Read from MH i2c: E2 03 00 [20:42:54]MH_I2C_Read... [20:42:54]Read from MH i2c: E2 03 00 44 08 00 90 00 C0 [20:42:54]RAPDU: 90 00 [20:42:54]wFMCommunicate OK [20:42:54]wFMCommunicate request_size=10 [20:42:54]MH_SAM_APDU [20:42:54]CAPDU: 80 0D 02 02 05 CC 86 E9 01 B4 [20:42:54]Write to MH i2c: E2 0D 00 45 08 80 0D 02 02 05 00 CC 86 E9 01 B4 00 00 C1 [20:42:54]Write i2c OK [20:42:54]MH_I2C_Read... [20:42:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:42:54]Read from MH i2c: E2 [20:42:54]MH_I2C_Read... [20:42:54]Read from MH i2c: E2 03 00 [20:42:54]MH_I2C_Read... [20:42:54]Read from MH i2c: E2 03 00 45 08 00 90 00 C1 [20:42:54]RAPDU: 90 00 [20:42:54]wFMCommunicate OK [20:42:54]wFMCommunicate request_size=4 [20:42:54]MH_SAM_APDU [20:42:54]CAPDU: 80 0D 03 02 [20:42:54]Write to MH i2c: E2 08 00 46 08 80 0D 03 02 00 00 00 00 C9 [20:42:54]Write i2c OK [20:42:54]MH_I2C_Read... [20:42:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:42:54]Read from MH i2c: E2 [20:42:54]MH_I2C_Read... [20:42:54]Read from MH i2c: E2 0B 00 [20:42:54]MH_I2C_Read... [20:42:54]Read from MH i2c: E2 0B 00 46 08 00 62 5A 63 F4 51 C1 70 C2 90 00 21 [20:42:54]RAPDU: 62 5A 63 F4 51 C1 70 C2 90 00 [20:42:54]wFMCommunicate OK [20:42:54]SAM_PROTO_SignData done [20:42:54]FM_MakeSignedData done [20:42:54]CreateOFDProtocolMessage [20:42:54]wFMCommunicate request_size=4 [20:42:54]MH_SAM_APDU [20:42:54]CAPDU: 80 11 00 00 [20:42:54]Write to MH i2c: E2 08 00 47 08 80 11 00 00 00 00 00 00 C9 [20:42:54]Write i2c OK [20:42:54]MH_I2C_Read... [20:42:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:42:54]Read from MH i2c: E2 [20:42:54]MH_I2C_Read... [20:42:54]Read from MH i2c: E2 17 00 [20:42:54]MH_I2C_Read... [20:42:54]Read from MH i2c: E2 17 00 47 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 1F [20:42:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:42:54]wFMCommunicate OK [20:42:54]CreateOFDProtocolMessage done [20:42:54]OFDSenderStorePacket 165087 [20:42:54]StoreOFDPacket docnum=165087 [20:42:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 94 C2 07 01 1F 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 3B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 4E 38 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DF 84 02 00 35 04 06 00 08 CC 86 E9 01 B4 62 5A 63 F4 51 C1 70 C2 [20:42:54]CheckFolder [20:42:54]dirname=/storage/ofd_packets [20:42:54]CheckFolder done [20:42:54]ProducePacketName [20:42:54]name=ofd_packets/00165087 [20:42:54]NVStorageSaveData ofd_packets/00165087 [20:42:54]File name is /storage/ofd_packets/00165087 [20:42:54]Write 301 bytes [20:42:54]NVStorageSaveData done [20:42:54]OFDSenderStorePacket done [20:42:54]KKMCreateOFDPacket done [20:42:54]NVStorageSaveData kkm_last_timestamp [20:42:54]File name is /storage/kkm_last_timestamp [20:42:54]Write 4 bytes [20:42:54]NVStorageSaveData done [20:42:54]ExternCall_PrintAddStr [20:42:54]wPrintStart [20:42:54]Write to MH i2c: 01 00 00 48 08 50 [20:42:54]Write i2c OK [20:42:54]MH_I2C_Read... [20:42:54]Read from MH i2c: 01 [20:42:54]MH_I2C_Read... [20:42:54]Read from MH i2c: 01 07 00 [20:42:54]MH_I2C_Read... [20:42:54]Read from MH i2c: 01 07 00 48 08 00 00 00 00 00 FF 0F 65 [20:42:54]RasterBufferAndPrint [20:42:54]line Счет N : (1)459190 [20:42:54]line ИНН: 02508201610067 [20:42:54]line Контрольно-Кассовый Чек [20:42:54]line ПРОДАЖА [20:42:54]line ТРК (МРК, ГНК) : 22 [20:42:54]line Товар: 2710124130 [20:42:54]line Аи-92-К-5 [20:42:54]line 15.340 * 65.22 [20:42:54]line = 1000.47 [20:42:54]line НДС 12% НСП 1% [20:42:54]line > о реализуемом товаре [20:42:54]line ИТОГО: 1000.47 [20:42:54]line НСП 1% : 8.85 [20:42:54]line НДС 12% : 106.24 [20:42:54]line Наличными: 0.00 [20:42:54]line Безнал.: 1000.47 [20:42:54]line Место: АЗС № 72 "Партнер Нефть" [20:42:54]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [20:42:54]line СНО: Общий режим [20:42:54]line Чек 285 14.07.2024 20:42 [20:42:54]line Смена: 447 ФФД: 1.0 [20:42:54]line ЗНМ: 0300000160 [20:42:54]line РНМ: 0000000000090829 [20:42:54]line Версия ККМ: 001 [20:42:54]line Платежная система: KICB Банк [20:42:54]line ФМ: 0000000000874718 [20:42:54]line ФД: 165087 [20:42:54]line ФПД: 9674529767860 [20:42:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T204254&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165087&fm=9674529767860&tin=02508201610067®Number=0000000000090829&sum=100047 [20:42:54]written 0, free lines is 4095 [20:42:54]OFD Sender: Processing packet 165087 [packets to send 106, broken 105] [20:42:54]ProducePacketName [20:42:54]name=ofd_packets/00165087 [20:42:54]OFD Sender: To server: pG, [20:42:54]CommunicateWithHost lk.salyk.kg:30040 [20:42:54]ConnectInit lk.salyk.kg [20:42:54]Connected sock=10 [20:42:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 94 C2 07 01 1F 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 3B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 4E 38 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DF 84 02 00 35 04 06 00 08 CC 86 E9 01 B4 62 5A 63 F4 51 C1 70 C2 [20:42:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 4A 3D 47 00 A9 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DF 84 02 00 F4 03 04 00 DA DE 93 66 B6 04 01 00 00 E3 23 1C 77 B6 22 23 29 [20:42:54]CommunicateWithHost err = 0 [20:42:54]CheckOFDResponse [20:42:54]1017 (14) - 77093643461234 [20:42:54]1041 (16) - 0000000000874718 [20:42:54]1040 (4) - 165087 [20:42:54]1012 (4) - 14.07.2024 14:21 [20:42:54]1206 (1) - 0 [20:42:54]OFD Sender: Remove packet 165087 [20:42:54]ProducePacketName [20:42:54]name=ofd_packets/00165087 [20:42:54]NVStorageDeleteData [20:42:54]Write to MH i2c: 01 00 00 71 08 79 [20:42:54]Write i2c OK [20:42:54]MH_I2C_Read... [20:42:54]Read from MH i2c: 01 [20:42:54]MH_I2C_Read... [20:42:54]Read from MH i2c: 01 07 00 [20:42:54]MH_I2C_Read... [20:42:54]Read from MH i2c: 01 07 00 71 08 00 00 00 00 00 17 0D A4 [20:42:54]RasterBufferAndPrint [20:42:54]line [20:42:54]line [20:42:54]line [20:42:54]line [20:42:54]line [20:42:54]written 0, free lines is 3358 [20:42:54]MH_Cut [20:42:54]Write to MH i2c: D1 01 00 78 08 01 52 [20:42:54]Write i2c OK [20:42:54]MH_I2C_Read... [20:42:54]Read from MH i2c: D1 [20:42:54]MH_I2C_Read... [20:42:54]Read from MH i2c: D1 01 00 [20:42:54]MH_I2C_Read... [20:42:54]Read from MH i2c: D1 01 00 78 08 00 51 [20:42:54]Write to MH i2c: 01 00 00 79 08 81 [20:42:54]Write i2c OK [20:42:54]MH_I2C_Read... [20:42:55]OFD Sender: No OFD packet to send [20:42:55]*** Cut start [20:42:55]*** Partial cut [20:42:55]*** CUTSNS_PIN = 1 [20:42:55]*** CUTSNS_PIN = 0 [20:42:55]*** Brake cut motor [20:42:56]Read from MH i2c: 01 [20:42:56]MH_I2C_Read... [20:42:56]*** Stop cut motor [20:42:56]*** Cut end [20:42:56]Read from MH i2c: 01 07 00 [20:42:56]MH_I2C_Read... [20:42:56]Read from MH i2c: 01 07 00 79 08 00 00 00 00 00 FF 0F 96 [20:42:56]process_action close_receipt done [20:42:56]requested_data is exist [20:42:56]produce_requested_data [20:42:56]requested_item fm.sn is exist - process it [20:42:56]wFMCommunicate request_size=4 [20:42:56]MH_SAM_APDU [20:42:56]CAPDU: 80 11 00 00 [20:42:56]Write to MH i2c: E2 08 00 7A 08 80 11 00 00 00 00 00 00 FC [20:42:56]Write i2c OK [20:42:56]MH_I2C_Read... [20:42:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:42:56]Read from MH i2c: E2 [20:42:56]MH_I2C_Read... [20:42:56]Read from MH i2c: E2 17 00 [20:42:56]MH_I2C_Read... [20:42:56]Read from MH i2c: E2 17 00 7A 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 52 [20:42:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:42:56]wFMCommunicate OK [20:42:56]requested_item fd.num is exist - process it [20:42:56]SAM_PROTO_GetFieldsCounters [20:42:56]wFMCommunicate request_size=4 [20:42:56]MH_SAM_APDU [20:42:56]CAPDU: 80 13 00 00 [20:42:56]Write to MH i2c: E2 08 00 7B 08 80 13 00 00 00 00 00 00 FF [20:42:56]Write i2c OK [20:42:56]MH_I2C_Read... [20:42:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:42:56]Read from MH i2c: E2 [20:42:56]MH_I2C_Read... [20:42:56]Read from MH i2c: E2 62 00 [20:42:56]MH_I2C_Read... [20:42:56]Read from MH i2c: E2 62 00 7B 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 DF 84 02 00 0E 04 04 00 BF 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 A5 [20:42:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 DF 84 02 00 0E 04 04 00 BF 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 [20:42:56]wFMCommunicate OK [20:42:56]SAM_PROTO_GetFieldsCounters done [20:42:56]requested_item shift.num is exist - process it [20:42:56]requested_item shift.opened is exist - process it [20:42:56]req_shift_opened [20:42:56]FM_GetShiftState [20:42:56]SAM_PROTO_GetShiftState [20:42:56]wFMCommunicate request_size=4 [20:42:56]MH_SAM_APDU [20:42:56]CAPDU: 80 13 01 00 [20:42:56]Write to MH i2c: E2 08 00 7C 08 80 13 01 00 00 00 00 00 01 [20:42:56]Write i2c OK [20:42:56]MH_I2C_Read... [20:42:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:42:56]Read from MH i2c: E2 [20:42:56]MH_I2C_Read... [20:42:56]Read from MH i2c: E2 0E 00 [20:42:56]MH_I2C_Read... [20:42:56]Read from MH i2c: E2 0E 00 7C 08 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 81 [20:42:56]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [20:42:56]wFMCommunicate OK [20:42:56]SAM_PROTO_GetShiftState done [20:42:56]FM_GetShiftState done [20:42:56]req_shift_opened done [20:42:56]requested_item shift.open_date is exist - process it [20:42:56]req_shift_open_date [20:42:56]req_shift_open_date done [20:42:56]produce_requested_data done [20:42:56]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165087,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [20:42:56]process_action_free close_receipt [20:42:56]json_value_free [20:42:56]json_value_free done [20:42:56]process_json_proto returns [20:42:56]Send response to host [20:42:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165087,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [20:42:56]free response buf [20:42:56]execute_script done [20:42:56]execute_script returns [20:42:56]free content buf [20:42:56]Sock 9.Close socket [20:42:56]Sock 9.Thread stoped [20:43:00]OFD Sender: No OFD packet to send [20:43:05]OFD Sender: No OFD packet to send [20:43:10]OFD Sender: No OFD packet to send [20:43:15]OFD Sender: No OFD packet to send [20:43:20]OFD Sender: No OFD packet to send [20:43:25]OFD Sender: No OFD packet to send [20:43:30]OFD Sender: No OFD packet to send [20:43:35]OFD Sender: No OFD packet to send [20:43:40]OFD Sender: No OFD packet to send [20:43:45]OFD Sender: No OFD packet to send [20:43:50]OFD Sender: No OFD packet to send [20:43:55]OFD Sender: No OFD packet to send [20:44:00]OFD Sender: No OFD packet to send [20:44:05]OFD Sender: No OFD packet to send [20:44:10]OFD Sender: No OFD packet to send [20:44:15]OFD Sender: No OFD packet to send [20:44:20]OFD Sender: No OFD packet to send [20:44:25]OFD Sender: No OFD packet to send [20:44:30]OFD Sender: No OFD packet to send [20:44:35]OFD Sender: No OFD packet to send [20:44:40]OFD Sender: No OFD packet to send [20:44:45]OFD Sender: No OFD packet to send [20:44:50]OFD Sender: No OFD packet to send [20:44:55]OFD Sender: No OFD packet to send [20:45:00]OFD Sender: No OFD packet to send [20:45:05]OFD Sender: No OFD packet to send [20:45:10]OFD Sender: No OFD packet to send [20:45:15]OFD Sender: No OFD packet to send [20:45:20]OFD Sender: No OFD packet to send [20:45:25]OFD Sender: No OFD packet to send [20:45:30]OFD Sender: No OFD packet to send [20:45:35]OFD Sender: No OFD packet to send [20:45:40]OFD Sender: No OFD packet to send [20:45:45]OFD Sender: No OFD packet to send [20:45:50]OFD Sender: No OFD packet to send [20:45:55]OFD Sender: No OFD packet to send [20:46:00]OFD Sender: No OFD packet to send [20:46:05]OFD Sender: No OFD packet to send [20:46:10]OFD Sender: No OFD packet to send [20:46:15]OFD Sender: No OFD packet to send [20:46:20]OFD Sender: No OFD packet to send [20:46:25]OFD Sender: No OFD packet to send [20:46:30]OFD Sender: No OFD packet to send [20:46:35]OFD Sender: No OFD packet to send [20:46:40]OFD Sender: No OFD packet to send [20:46:45]OFD Sender: No OFD packet to send [20:46:50]OFD Sender: No OFD packet to send [20:46:55]OFD Sender: No OFD packet to send [20:47:00]OFD Sender: No OFD packet to send [20:47:05]OFD Sender: No OFD packet to send [20:47:10]OFD Sender: No OFD packet to send [20:47:15]OFD Sender: No OFD packet to send [20:47:20]OFD Sender: No OFD packet to send [20:47:25]OFD Sender: No OFD packet to send [20:47:30]OFD Sender: No OFD packet to send [20:47:35]OFD Sender: No OFD packet to send [20:47:40]OFD Sender: No OFD packet to send [20:47:45]OFD Sender: No OFD packet to send [20:47:50]OFD Sender: No OFD packet to send [20:47:55]OFD Sender: No OFD packet to send [20:48:00]OFD Sender: No OFD packet to send [20:48:05]OFD Sender: No OFD packet to send [20:48:10]OFD Sender: No OFD packet to send [20:48:15]OFD Sender: No OFD packet to send [20:48:20]OFD Sender: No OFD packet to send [20:48:25]OFD Sender: No OFD packet to send [20:48:30]OFD Sender: No OFD packet to send [20:48:35]OFD Sender: No OFD packet to send [20:48:40]OFD Sender: No OFD packet to send [20:48:45]OFD Sender: No OFD packet to send [20:48:50]OFD Sender: No OFD packet to send [20:48:55]OFD Sender: No OFD packet to send [20:49:00]OFD Sender: No OFD packet to send [20:49:05]OFD Sender: No OFD packet to send [20:49:10]OFD Sender: No OFD packet to send [20:49:15]OFD Sender: No OFD packet to send [20:49:20]OFD Sender: No OFD packet to send [20:49:25]OFD Sender: No OFD packet to send [20:49:30]OFD Sender: No OFD packet to send [20:49:35]OFD Sender: No OFD packet to send [20:49:40]OFD Sender: No OFD packet to send [20:49:45]OFD Sender: No OFD packet to send [20:49:50]OFD Sender: No OFD packet to send [20:49:55]OFD Sender: No OFD packet to send [20:50:00]OFD Sender: No OFD packet to send [20:50:05]OFD Sender: No OFD packet to send [20:50:10]OFD Sender: No OFD packet to send [20:50:15]OFD Sender: No OFD packet to send [20:50:20]OFD Sender: No OFD packet to send [20:50:25]OFD Sender: No OFD packet to send [20:50:30]OFD Sender: No OFD packet to send [20:50:35]OFD Sender: No OFD packet to send [20:50:40]OFD Sender: No OFD packet to send [20:50:45]OFD Sender: No OFD packet to send [20:50:50]OFD Sender: No OFD packet to send [20:50:55]OFD Sender: No OFD packet to send [20:51:00]OFD Sender: No OFD packet to send [20:51:05]OFD Sender: No OFD packet to send [20:51:10]OFD Sender: No OFD packet to send [20:51:15]OFD Sender: No OFD packet to send [20:51:20]OFD Sender: No OFD packet to send [20:51:25]OFD Sender: No OFD packet to send [20:51:30]OFD Sender: No OFD packet to send [20:51:35]OFD Sender: No OFD packet to send [20:51:40]OFD Sender: No OFD packet to send [20:51:45]OFD Sender: No OFD packet to send [20:51:50]OFD Sender: No OFD packet to send [20:51:55]OFD Sender: No OFD packet to send [20:52:00]OFD Sender: No OFD packet to send [20:52:05]OFD Sender: No OFD packet to send [20:52:10]OFD Sender: No OFD packet to send [20:52:15]OFD Sender: No OFD packet to send [20:52:20]OFD Sender: No OFD packet to send [20:52:25]OFD Sender: No OFD packet to send [20:52:30]OFD Sender: No OFD packet to send [20:52:35]OFD Sender: No OFD packet to send [20:52:40]OFD Sender: No OFD packet to send [20:52:45]OFD Sender: No OFD packet to send [20:52:50]OFD Sender: No OFD packet to send [20:52:55]OFD Sender: No OFD packet to send [20:53:00]OFD Sender: No OFD packet to send [20:53:05]OFD Sender: No OFD packet to send [20:53:10]OFD Sender: No OFD packet to send [20:53:15]OFD Sender: No OFD packet to send [20:53:20]OFD Sender: No OFD packet to send [20:53:25]OFD Sender: No OFD packet to send [20:53:30]OFD Sender: No OFD packet to send [20:53:36]OFD Sender: No OFD packet to send [20:53:41]OFD Sender: No OFD packet to send [20:53:46]OFD Sender: No OFD packet to send [20:53:51]OFD Sender: No OFD packet to send [20:53:56]OFD Sender: No OFD packet to send [20:54:01]OFD Sender: No OFD packet to send [20:54:06]OFD Sender: No OFD packet to send [20:54:11]OFD Sender: No OFD packet to send [20:54:16]OFD Sender: No OFD packet to send [20:54:21]OFD Sender: No OFD packet to send [20:54:26]OFD Sender: No OFD packet to send [20:54:31]OFD Sender: No OFD packet to send [20:54:36]OFD Sender: No OFD packet to send [20:54:41]OFD Sender: No OFD packet to send [20:54:46]OFD Sender: No OFD packet to send [20:54:51]OFD Sender: No OFD packet to send [20:54:56]OFD Sender: No OFD packet to send [20:55:01]OFD Sender: No OFD packet to send [20:55:06]OFD Sender: No OFD packet to send [20:55:11]OFD Sender: No OFD packet to send [20:55:16]OFD Sender: No OFD packet to send [20:55:21]OFD Sender: No OFD packet to send [20:55:21]accept exits with 7 [20:55:21]New connection [20:55:21]New thread 3066785124 created [20:55:21]Thread 3066928484 joined [20:55:21]Waiting for new connection... [20:55:21] Sock 7.Parse request [20:55:21]Sock 7.Check first char [20:55:21]Sock 7.First char is OK [20:55:21]request: POST /json_proto HTTP/1.0 [20:55:21]Method: POST [20:55:21]URL: /json_proto [20:55:21]Method is POST - this is cgi request [20:55:21]url: /json_proto [20:55:21]query_string will be loaded in cgi processing [20:55:21]execute_cgi json_proto POST (null) [20:55:21]execute_cgi path=json_proto method=POST [20:55:21]POST find Content-Length [20:55:21]Host: 172.17.56.4:8080 [20:55:21]Content-Length: 677 [20:55:21]Content-Type: application/json [20:55:21] [20:55:21]POST finish read [20:55:21]Found Content-Length = 677 [20:55:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459191", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "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" ] } } [20:55:21]execute_script... [20:55: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)459191", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "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" ] } } [20:55:21]POST & json_proto [20:55:21]process_json_proto [20:55:21]json parsed OK: [20:55:21]protocol is kg_v1.0 [20:55:21]action value=close_receipt [20:55:21]process_action close_receipt [20:55:21]cmd_close_receipt [20:55:21]MH_GetDate [20:55:21]Write to MH i2c: F0 00 00 7D 08 74 [20:55:21]Write i2c OK [20:55:21]MH_I2C_Read... [20:55:21]Read from MH i2c: F0 [20:55:21]MH_I2C_Read... [20:55:21]Read from MH i2c: F0 09 00 [20:55:21]MH_I2C_Read... [20:55:21]Read from MH i2c: F0 09 00 7D 08 00 3B 3B 94 66 C9 DC B2 64 A8 [20:55:21]GetLastDocTimeStamp 1720989774 [20:55:21]current date 1720990523 [20:55:21]FM_GetShiftState [20:55:21]SAM_PROTO_GetShiftState [20:55:21]wFMCommunicate request_size=4 [20:55:21]MH_SAM_APDU [20:55:21]CAPDU: 80 13 01 00 [20:55:21]Write to MH i2c: E2 08 00 7E 08 80 13 01 00 00 00 00 00 03 [20:55:21]Write i2c OK [20:55:21]MH_I2C_Read... [20:55:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:55:21]Read from MH i2c: E2 [20:55:21]MH_I2C_Read... [20:55:21]Read from MH i2c: E2 0E 00 [20:55:21]MH_I2C_Read... [20:55:21]Read from MH i2c: E2 0E 00 7E 08 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 83 [20:55:21]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [20:55:21]wFMCommunicate OK [20:55:21]SAM_PROTO_GetShiftState done [20:55:21]FM_GetShiftState done [20:55:21]opened in 1720917342 [20:55:21]opened+sec_in_day 1721003742 [20:55:21]quantity*price = 20003 [20:55:21]sum+1 = 20004 [20:55:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 286 14.07.2024 20:55 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165088 ФПД: 181998002982800 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T205523&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165088&fm=181998002982800&tin=02508201610067®Number=0000000000090829&sum=20000 [20:55:23]StoreToDocumentArchive [20:55:23]shift 447 fd 165088 [20:55:23]save to /storage/0447/doc_00165088 [20:55:23]save last doc name /storage/0447/doc_00165088 to /storage/kkm_last_doc_name [20:55:23]save OK [20:55:23]Clear old archive folders... [20:55:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:55:23]tlvbuf is 013A5620 [20:55:23]SAM_PROTO_ClearQueue [20:55:23]wFMCommunicate request_size=4 [20:55:23]MH_SAM_APDU [20:55:23]CAPDU: 80 09 00 00 [20:55:23]Write to MH i2c: E2 08 00 8B 08 80 09 00 00 00 00 00 00 05 [20:55:23]Write i2c OK [20:55:23]MH_I2C_Read... [20:55:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:55:23]Read from MH i2c: E2 [20:55:23]MH_I2C_Read... [20:55:23]Read from MH i2c: E2 03 00 [20:55:23]MH_I2C_Read... [20:55:23]Read from MH i2c: E2 03 00 8B 08 00 90 00 07 [20:55:23]RAPDU: 90 00 [20:55:23]wFMCommunicate OK [20:55:23]SAM_PROTO_ClearQueue done [20:55:23]KKMCreateOFDPacket [20:55:23]OFDProtocolAddRootSTLVToBuf [20:55:23]FM_MakeSignedData [20:55:23]FM_MakeSignedData [20:55:23]SAM_PROTO_SignData [20:55:23]wFMCommunicate request_size=4 [20:55:23]MH_SAM_APDU [20:55:23]CAPDU: 80 0D 01 02 [20:55:23]Write to MH i2c: E2 08 00 8C 08 80 0D 01 02 00 00 00 00 0D [20:55:23]Write i2c OK [20:55:23]MH_I2C_Read... [20:55:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:55:23]Read from MH i2c: E2 [20:55:23]MH_I2C_Read... [20:55:23]Read from MH i2c: E2 03 00 [20:55:23]MH_I2C_Read... [20:55:23]Read from MH i2c: E2 03 00 8C 08 00 90 00 08 [20:55:23]RAPDU: 90 00 [20:55:23]wFMCommunicate OK [20:55:23]wFMCommunicate request_size=255 [20:55:23]MH_SAM_APDU [20:55:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 1E 01 00 00 F4 03 04 00 3B 3B 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E0 84 02 00 35 04 06 00 A5 [20:55:23]Write to MH i2c: E2 02 01 8D 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 1E 01 00 00 F4 03 04 00 3B 3B 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E0 84 02 00 35 04 06 00 A5 00 00 81 [20:55:23]Write i2c OK [20:55:23]MH_I2C_Read... [20:55:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:55:23]Read from MH i2c: E2 [20:55:23]MH_I2C_Read... [20:55:23]Read from MH i2c: E2 03 00 [20:55:23]MH_I2C_Read... [20:55:23]Read from MH i2c: E2 03 00 8D 08 00 90 00 09 [20:55:23]RAPDU: 90 00 [20:55:23]wFMCommunicate OK [20:55:23]wFMCommunicate request_size=10 [20:55:23]MH_SAM_APDU [20:55:23]CAPDU: 80 0D 02 02 05 86 B6 51 4F 90 [20:55:23]Write to MH i2c: E2 0D 00 8E 08 80 0D 02 02 05 00 86 B6 51 4F 90 00 00 86 [20:55:23]Write i2c OK [20:55:23]MH_I2C_Read... [20:55:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:55:23]Read from MH i2c: E2 [20:55:23]MH_I2C_Read... [20:55:23]Read from MH i2c: E2 03 00 [20:55:23]MH_I2C_Read... [20:55:23]Read from MH i2c: E2 03 00 8E 08 00 90 00 0A [20:55:23]RAPDU: 90 00 [20:55:23]wFMCommunicate OK [20:55:23]wFMCommunicate request_size=4 [20:55:23]MH_SAM_APDU [20:55:23]CAPDU: 80 0D 03 02 [20:55:23]Write to MH i2c: E2 08 00 8F 08 80 0D 03 02 00 00 00 00 12 [20:55:23]Write i2c OK [20:55:23]MH_I2C_Read... [20:55:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:55:23]Read from MH i2c: E2 [20:55:23]MH_I2C_Read... [20:55:23]Read from MH i2c: E2 0B 00 [20:55:23]MH_I2C_Read... [20:55:23]Read from MH i2c: E2 0B 00 8F 08 00 DC 3C 59 92 31 AA 33 05 90 00 29 [20:55:23]RAPDU: DC 3C 59 92 31 AA 33 05 90 00 [20:55:23]wFMCommunicate OK [20:55:23]SAM_PROTO_SignData done [20:55:23]FM_MakeSignedData done [20:55:23]CreateOFDProtocolMessage [20:55:23]wFMCommunicate request_size=4 [20:55:23]MH_SAM_APDU [20:55:23]CAPDU: 80 11 00 00 [20:55:23]Write to MH i2c: E2 08 00 90 08 80 11 00 00 00 00 00 00 12 [20:55:23]Write i2c OK [20:55:23]MH_I2C_Read... [20:55:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:55:23]Read from MH i2c: E2 [20:55:23]MH_I2C_Read... [20:55:23]Read from MH i2c: E2 17 00 [20:55:23]MH_I2C_Read... [20:55:23]Read from MH i2c: E2 17 00 90 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 68 [20:55:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:55:23]wFMCommunicate OK [20:55:23]CreateOFDProtocolMessage done [20:55:23]OFDSenderStorePacket 165088 [20:55:23]StoreOFDPacket docnum=165088 [20:55:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C5 30 07 01 93 97 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 1E 01 00 00 F4 03 04 00 3B 3B 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E0 84 02 00 35 04 06 00 A5 86 B6 51 4F 90 DC 3C 59 92 31 AA 33 05 [20:55:23]CheckFolder [20:55:23]dirname=/storage/ofd_packets [20:55:23]CheckFolder done [20:55:23]ProducePacketName [20:55:23]name=ofd_packets/00165088 [20:55:23]NVStorageSaveData ofd_packets/00165088 [20:55:23]File name is /storage/ofd_packets/00165088 [20:55:23]Write 301 bytes [20:55:23]NVStorageSaveData done [20:55:23]OFDSenderStorePacket done [20:55:23]KKMCreateOFDPacket done [20:55:23]NVStorageSaveData kkm_last_timestamp [20:55:23]File name is /storage/kkm_last_timestamp [20:55:23]Write 4 bytes [20:55:23]NVStorageSaveData done [20:55:23]ExternCall_PrintAddStr [20:55:23]wPrintStart [20:55:23]Write to MH i2c: 01 00 00 91 08 99 [20:55:23]Write i2c OK [20:55:23]MH_I2C_Read... [20:55:23]Read from MH i2c: 01 [20:55:23]MH_I2C_Read... [20:55:23]Read from MH i2c: 01 07 00 [20:55:23]MH_I2C_Read... [20:55:23]Read from MH i2c: 01 07 00 91 08 00 00 00 00 00 FF 0F AE [20:55:23]RasterBufferAndPrint [20:55:23]line Счет N : (1)459191 [20:55:23]line ИНН: 02508201610067 [20:55:23]line Контрольно-Кассовый Чек [20:55:23]line ПРОДАЖА [20:55:23]line ТРК (МРК, ГНК) : 22 [20:55:23]line Товар: 2710124130 [20:55:23]line Аи-92-К-5 [20:55:23]line 3.040 * 65.80 [20:55:23]line = 200.03 [20:55:23]line НДС 12% НСП 1% [20:55:23]line > о реализуемом товаре [20:55:23]line ОКРУГЛЕНИЕ: -0.03 [20:55:23]line ИТОГО: 200.00 [20:55:23]line Внесено: 200.00 [20:55:23]line СДАЧА: 0.00 [20:55:23]line НСП 1% : 1.77 [20:55:23]line НДС 12% : 21.24 [20:55:23]line Наличными: 200.00 [20:55:23]line Безнал.: 0.00 [20:55:23]line Место: АЗС № 72 "Партнер Нефть" [20:55:23]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [20:55:23]line СНО: Общий режим [20:55:23]line Чек 286 14.07.2024 20:55 [20:55:23]line Смена: 447 ФФД: 1.0 [20:55:23]line ЗНМ: 0300000160 [20:55:23]line РНМ: 0000000000090829 [20:55:23]line Версия ККМ: 001 [20:55:23]line ФМ: 0000000000874718 [20:55:23]line ФД: 165088 [20:55:23]line ФПД: 181998002982800 [20:55:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T205523&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165088&fm=181998002982800&tin=02508201610067®Number=0000000000090829&sum=20000 [20:55:23]written 0, free lines is 4095 [20:55:23]OFD Sender: Processing packet 165088 [packets to send 106, broken 105] [20:55:23]ProducePacketName [20:55:23]name=ofd_packets/00165088 [20:55:23]OFD Sender: To server: pG, [20:55:23]CommunicateWithHost lk.salyk.kg:30040 [20:55:23]ConnectInit lk.salyk.kg [20:55:24]Connected sock=10 [20:55:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C5 30 07 01 93 97 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 1E 01 00 00 F4 03 04 00 3B 3B 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E0 84 02 00 35 04 06 00 A5 86 B6 51 4F 90 DC 3C 59 92 31 AA 33 05 [20:55:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 B6 4A 47 00 1C 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 38 37 34 37 31 38 10 04 04 00 E0 84 02 00 F4 03 04 00 C8 E1 93 66 B6 04 01 00 00 B2 69 36 46 33 91 02 3A [20:55:24]CommunicateWithHost err = 0 [20:55:24]CheckOFDResponse [20:55:24]1017 (14) - 77093643461234 [20:55:24]1041 (16) - 0000000000874718 [20:55:24]1040 (4) - 165088 [20:55:24]1012 (4) - 14.07.2024 14:33 [20:55:24]1206 (1) - 0 [20:55:24]OFD Sender: Remove packet 165088 [20:55:24]ProducePacketName [20:55:24]name=ofd_packets/00165088 [20:55:24]NVStorageDeleteData [20:55:24]Write to MH i2c: 01 00 00 BB 08 C3 [20:55:24]Write i2c OK [20:55:24]MH_I2C_Read... [20:55:24]Read from MH i2c: 01 [20:55:24]MH_I2C_Read... [20:55:24]Read from MH i2c: 01 07 00 [20:55:24]MH_I2C_Read... [20:55:24]Read from MH i2c: 01 07 00 BB 08 00 00 00 00 00 F7 0C CD [20:55:24]RasterBufferAndPrint [20:55:24]line [20:55:24]line [20:55:24]line [20:55:24]line [20:55:24]line [20:55:24]written 0, free lines is 3326 [20:55:24]MH_Cut [20:55:24]Write to MH i2c: D1 01 00 C2 08 01 9C [20:55:24]Write i2c OK [20:55:24]MH_I2C_Read... [20:55:24]Read from MH i2c: D1 [20:55:24]MH_I2C_Read... [20:55:24]Read from MH i2c: D1 01 00 [20:55:24]MH_I2C_Read... [20:55:24]Read from MH i2c: D1 01 00 C2 08 00 9B [20:55:24]Write to MH i2c: 01 00 00 C3 08 CB [20:55:24]Write i2c OK [20:55:24]MH_I2C_Read... [20:55:24]OFD Sender: No OFD packet to send [20:55:25]*** Cut start [20:55:25]*** Partial cut [20:55:25]*** CUTSNS_PIN = 1 [20:55:25]*** CUTSNS_PIN = 0 [20:55:25]*** Brake cut motor [20:55:25]Read from MH i2c: 01 [20:55:25]MH_I2C_Read... [20:55:25]*** Stop cut motor [20:55:25]*** Cut end [20:55:25]Read from MH i2c: 01 07 00 [20:55:25]MH_I2C_Read... [20:55:25]Read from MH i2c: 01 07 00 C3 08 00 00 00 00 00 FF 0F E0 [20:55:25]process_action close_receipt done [20:55:25]requested_data is exist [20:55:25]produce_requested_data [20:55:25]requested_item fm.sn is exist - process it [20:55:25]wFMCommunicate request_size=4 [20:55:25]MH_SAM_APDU [20:55:25]CAPDU: 80 11 00 00 [20:55:25]Write to MH i2c: E2 08 00 C4 08 80 11 00 00 00 00 00 00 46 [20:55:25]Write i2c OK [20:55:25]MH_I2C_Read... [20:55:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:55:25]Read from MH i2c: E2 [20:55:25]MH_I2C_Read... [20:55:25]Read from MH i2c: E2 17 00 [20:55:25]MH_I2C_Read... [20:55:25]Read from MH i2c: E2 17 00 C4 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 9C [20:55:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:55:25]wFMCommunicate OK [20:55:25]requested_item fd.num is exist - process it [20:55:25]SAM_PROTO_GetFieldsCounters [20:55:25]wFMCommunicate request_size=4 [20:55:25]MH_SAM_APDU [20:55:25]CAPDU: 80 13 00 00 [20:55:25]Write to MH i2c: E2 08 00 C5 08 80 13 00 00 00 00 00 00 49 [20:55:25]Write i2c OK [20:55:25]MH_I2C_Read... [20:55:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:55:25]Read from MH i2c: E2 [20:55:25]MH_I2C_Read... [20:55:25]Read from MH i2c: E2 62 00 [20:55:25]MH_I2C_Read... [20:55:25]Read from MH i2c: E2 62 00 C5 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E0 84 02 00 0E 04 04 00 BF 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 F3 [20:55:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E0 84 02 00 0E 04 04 00 BF 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 [20:55:25]wFMCommunicate OK [20:55:25]SAM_PROTO_GetFieldsCounters done [20:55:25]requested_item shift.num is exist - process it [20:55:25]requested_item shift.opened is exist - process it [20:55:25]req_shift_opened [20:55:25]FM_GetShiftState [20:55:25]SAM_PROTO_GetShiftState [20:55:25]wFMCommunicate request_size=4 [20:55:25]MH_SAM_APDU [20:55:25]CAPDU: 80 13 01 00 [20:55:25]Write to MH i2c: E2 08 00 C6 08 80 13 01 00 00 00 00 00 4B [20:55:25]Write i2c OK [20:55:25]MH_I2C_Read... [20:55:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:55:25]Read from MH i2c: E2 [20:55:25]MH_I2C_Read... [20:55:25]Read from MH i2c: E2 0E 00 [20:55:25]MH_I2C_Read... [20:55:25]Read from MH i2c: E2 0E 00 C6 08 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 CB [20:55:25]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [20:55:25]wFMCommunicate OK [20:55:25]SAM_PROTO_GetShiftState done [20:55:25]FM_GetShiftState done [20:55:25]req_shift_opened done [20:55:25]requested_item shift.open_date is exist - process it [20:55:25]req_shift_open_date [20:55:25]req_shift_open_date done [20:55:25]produce_requested_data done [20:55:25]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165088,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [20:55:25]process_action_free close_receipt [20:55:25]json_value_free [20:55:25]json_value_free done [20:55:25]process_json_proto returns [20:55:25]Send response to host [20:55:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165088,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [20:55:25]free response buf [20:55:25]execute_script done [20:55:25]execute_script returns [20:55:25]free content buf [20:55:25]Sock 7.Close socket [20:55:25]Sock 7.Thread stoped [20:55:29]OFD Sender: No OFD packet to send [20:55:34]OFD Sender: No OFD packet to send [20:55:39]OFD Sender: No OFD packet to send [20:55:44]OFD Sender: No OFD packet to send [20:55:49]OFD Sender: No OFD packet to send [20:55:54]OFD Sender: No OFD packet to send [20:55:59]OFD Sender: No OFD packet to send [20:56:04]OFD Sender: No OFD packet to send [20:56:09]OFD Sender: No OFD packet to send [20:56:14]OFD Sender: No OFD packet to send [20:56:19]OFD Sender: No OFD packet to send [20:56:24]OFD Sender: No OFD packet to send [20:56:29]OFD Sender: No OFD packet to send [20:56:34]OFD Sender: No OFD packet to send [20:56:39]OFD Sender: No OFD packet to send [20:56:44]OFD Sender: No OFD packet to send [20:56:49]OFD Sender: No OFD packet to send [20:56:54]OFD Sender: No OFD packet to send [20:56:59]OFD Sender: No OFD packet to send [20:57:04]OFD Sender: No OFD packet to send [20:57:09]OFD Sender: No OFD packet to send [20:57:14]OFD Sender: No OFD packet to send [20:57:19]OFD Sender: No OFD packet to send [20:57:24]OFD Sender: No OFD packet to send [20:57:25]accept exits with 9 [20:57:25]New connection [20:57:25]New thread 3066928484 created [20:57:25]Thread 3066785124 joined [20:57:25]Waiting for new connection... [20:57:25] Sock 9.Parse request [20:57:25]Sock 9.Check first char [20:57:25]Sock 9.First char is OK [20:57:25]request: POST /json_proto HTTP/1.0 [20:57:25]Method: POST [20:57:25]URL: /json_proto [20:57:25]Method is POST - this is cgi request [20:57:25]url: /json_proto [20:57:25]query_string will be loaded in cgi processing [20:57:25]execute_cgi json_proto POST (null) [20:57:25]execute_cgi path=json_proto method=POST [20:57:25]POST find Content-Length [20:57:25]Host: 172.17.56.4:8080 [20:57:25]Content-Length: 677 [20:57:25]Content-Type: application/json [20:57:25] [20:57:25]POST finish read [20:57:25]Found Content-Length = 677 [20:57:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459192", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 1.980, "sum" : 130.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 130.00, "total" : 130.00, "payments": [ { "type": 0, "sum" : 130.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:57:25]execute_script... [20:57: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)459192", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 1.980, "sum" : 130.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 130.00, "total" : 130.00, "payments": [ { "type": 0, "sum" : 130.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:57:25]POST & json_proto [20:57:25]process_json_proto [20:57:25]json parsed OK: [20:57:25]protocol is kg_v1.0 [20:57:25]action value=close_receipt [20:57:25]process_action close_receipt [20:57:25]cmd_close_receipt [20:57:25]MH_GetDate [20:57:25]Write to MH i2c: F0 00 00 C7 08 BE [20:57:25]Write i2c OK [20:57:25]MH_I2C_Read... [20:57:25]Read from MH i2c: F0 [20:57:25]MH_I2C_Read... [20:57:25]Read from MH i2c: F0 09 00 [20:57:25]MH_I2C_Read... [20:57:25]Read from MH i2c: F0 09 00 C7 08 00 B6 3B 94 66 C9 DC B2 64 6D [20:57:25]GetLastDocTimeStamp 1720990523 [20:57:25]current date 1720990646 [20:57:25]FM_GetShiftState [20:57:25]SAM_PROTO_GetShiftState [20:57:25]wFMCommunicate request_size=4 [20:57:25]MH_SAM_APDU [20:57:25]CAPDU: 80 13 01 00 [20:57:25]Write to MH i2c: E2 08 00 C8 08 80 13 01 00 00 00 00 00 4D [20:57:25]Write i2c OK [20:57:25]MH_I2C_Read... [20:57:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:57:25]Read from MH i2c: E2 [20:57:25]MH_I2C_Read... [20:57:25]Read from MH i2c: E2 0E 00 [20:57:25]MH_I2C_Read... [20:57:25]Read from MH i2c: E2 0E 00 C8 08 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 CD [20:57:25]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [20:57:25]wFMCommunicate OK [20:57:25]SAM_PROTO_GetShiftState done [20:57:25]FM_GetShiftState done [20:57:25]opened in 1720917342 [20:57:25]opened+sec_in_day 1721003742 [20:57:25]quantity*price = 13028 [20:57:25]sum+1 = 13029 [20:57:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 130.00 Внесено: 130.00 СДАЧА: 0.00 НСП 1% : 1.15 НДС 12% : 13.83 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 287 14.07.2024 20:57 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165089 ФПД: 157099802220662 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T205726&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165089&fm=157099802220662&tin=02508201610067®Number=0000000000090829&sum=13000 [20:57:26]StoreToDocumentArchive [20:57:26]shift 447 fd 165089 [20:57:26]save to /storage/0447/doc_00165089 [20:57:26]save last doc name /storage/0447/doc_00165089 to /storage/kkm_last_doc_name [20:57:26]save OK [20:57:26]Clear old archive folders... [20:57:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:57:26]tlvbuf is 0135DB70 [20:57:26]SAM_PROTO_ClearQueue [20:57:26]wFMCommunicate request_size=4 [20:57:26]MH_SAM_APDU [20:57:26]CAPDU: 80 09 00 00 [20:57:26]Write to MH i2c: E2 08 00 D5 08 80 09 00 00 00 00 00 00 4F [20:57:26]Write i2c OK [20:57:26]MH_I2C_Read... [20:57:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:57:26]Read from MH i2c: E2 [20:57:26]MH_I2C_Read... [20:57:26]Read from MH i2c: E2 03 00 [20:57:26]MH_I2C_Read... [20:57:26]Read from MH i2c: E2 03 00 D5 08 00 90 00 51 [20:57:26]RAPDU: 90 00 [20:57:26]wFMCommunicate OK [20:57:26]SAM_PROTO_ClearQueue done [20:57:26]KKMCreateOFDPacket [20:57:26]OFDProtocolAddRootSTLVToBuf [20:57:26]FM_MakeSignedData [20:57:26]FM_MakeSignedData [20:57:26]SAM_PROTO_SignData [20:57:26]wFMCommunicate request_size=4 [20:57:26]MH_SAM_APDU [20:57:26]CAPDU: 80 0D 01 02 [20:57:26]Write to MH i2c: E2 08 00 D6 08 80 0D 01 02 00 00 00 00 57 [20:57:26]Write i2c OK [20:57:26]MH_I2C_Read... [20:57:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:57:26]Read from MH i2c: E2 [20:57:26]MH_I2C_Read... [20:57:26]Read from MH i2c: E2 03 00 [20:57:26]MH_I2C_Read... [20:57:26]Read from MH i2c: E2 03 00 D6 08 00 90 00 52 [20:57:26]RAPDU: 90 00 [20:57:26]wFMCommunicate OK [20:57:26]wFMCommunicate request_size=255 [20:57:26]MH_SAM_APDU [20:57:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BC 07 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 E4 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 B6 3B 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E1 84 02 00 35 04 06 00 8E [20:57:26]Write to MH i2c: E2 02 01 D7 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BC 07 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 E4 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 B6 3B 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E1 84 02 00 35 04 06 00 8E 00 00 A0 [20:57:26]Write i2c OK [20:57:26]MH_I2C_Read... [20:57:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:57:26]Read from MH i2c: E2 [20:57:26]MH_I2C_Read... [20:57:26]Read from MH i2c: E2 03 00 [20:57:26]MH_I2C_Read... [20:57:26]Read from MH i2c: E2 03 00 D7 08 00 90 00 53 [20:57:26]RAPDU: 90 00 [20:57:26]wFMCommunicate OK [20:57:26]wFMCommunicate request_size=10 [20:57:26]MH_SAM_APDU [20:57:26]CAPDU: 80 0D 02 02 05 E1 A5 E7 D8 76 [20:57:26]Write to MH i2c: E2 0D 00 D8 08 80 0D 02 02 05 00 E1 A5 E7 D8 76 00 00 1F [20:57:26]Write i2c OK [20:57:26]MH_I2C_Read... [20:57:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:57:26]Read from MH i2c: E2 [20:57:26]MH_I2C_Read... [20:57:26]Read from MH i2c: E2 03 00 [20:57:26]MH_I2C_Read... [20:57:26]Read from MH i2c: E2 03 00 D8 08 00 90 00 54 [20:57:26]RAPDU: 90 00 [20:57:26]wFMCommunicate OK [20:57:26]wFMCommunicate request_size=4 [20:57:26]MH_SAM_APDU [20:57:26]CAPDU: 80 0D 03 02 [20:57:26]Write to MH i2c: E2 08 00 D9 08 80 0D 03 02 00 00 00 00 5C [20:57:26]Write i2c OK [20:57:26]MH_I2C_Read... [20:57:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:57:27]Read from MH i2c: E2 [20:57:27]MH_I2C_Read... [20:57:27]Read from MH i2c: E2 0B 00 [20:57:27]MH_I2C_Read... [20:57:27]Read from MH i2c: E2 0B 00 D9 08 00 29 1B CC 1F 3C 1B 77 0D 90 00 67 [20:57:27]RAPDU: 29 1B CC 1F 3C 1B 77 0D 90 00 [20:57:27]wFMCommunicate OK [20:57:27]SAM_PROTO_SignData done [20:57:27]FM_MakeSignedData done [20:57:27]CreateOFDProtocolMessage [20:57:27]wFMCommunicate request_size=4 [20:57:27]MH_SAM_APDU [20:57:27]CAPDU: 80 11 00 00 [20:57:27]Write to MH i2c: E2 08 00 DA 08 80 11 00 00 00 00 00 00 5C [20:57:27]Write i2c OK [20:57:27]MH_I2C_Read... [20:57:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:57:27]Read from MH i2c: E2 [20:57:27]MH_I2C_Read... [20:57:27]Read from MH i2c: E2 17 00 [20:57:27]MH_I2C_Read... [20:57:27]Read from MH i2c: E2 17 00 DA 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B2 [20:57:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:57:27]wFMCommunicate OK [20:57:27]CreateOFDProtocolMessage done [20:57:27]OFDSenderStorePacket 165089 [20:57:27]StoreOFDPacket docnum=165089 [20:57:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 F9 17 07 01 3B 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 35 FF 03 08 00 03 BC 07 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 E4 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 B6 3B 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E1 84 02 00 35 04 06 00 8E E1 A5 E7 D8 76 29 1B CC 1F 3C 1B 77 0D [20:57:27]CheckFolder [20:57:27]dirname=/storage/ofd_packets [20:57:27]CheckFolder done [20:57:27]ProducePacketName [20:57:27]name=ofd_packets/00165089 [20:57:27]NVStorageSaveData ofd_packets/00165089 [20:57:27]File name is /storage/ofd_packets/00165089 [20:57:27]Write 301 bytes [20:57:27]NVStorageSaveData done [20:57:27]OFDSenderStorePacket done [20:57:27]KKMCreateOFDPacket done [20:57:27]NVStorageSaveData kkm_last_timestamp [20:57:27]File name is /storage/kkm_last_timestamp [20:57:27]Write 4 bytes [20:57:27]NVStorageSaveData done [20:57:27]ExternCall_PrintAddStr [20:57:27]wPrintStart [20:57:27]Write to MH i2c: 01 00 00 DB 08 E3 [20:57:27]Write i2c OK [20:57:27]MH_I2C_Read... [20:57:27]Read from MH i2c: 01 [20:57:27]MH_I2C_Read... [20:57:27]Read from MH i2c: 01 07 00 [20:57:27]MH_I2C_Read... [20:57:27]Read from MH i2c: 01 07 00 DB 08 00 00 00 00 00 FF 0F F8 [20:57:27]RasterBufferAndPrint [20:57:27]line Счет N : (1)459192 [20:57:27]line ИНН: 02508201610067 [20:57:27]line Контрольно-Кассовый Чек [20:57:27]line ПРОДАЖА [20:57:27]line ТРК (МРК, ГНК) : 22 [20:57:27]line Товар: 2710124130 [20:57:27]line Аи-92-К-5 [20:57:27]line 1.980 * 65.80 [20:57:27]line = 130.28 [20:57:27]line НДС 12% НСП 1% [20:57:27]line > о реализуемом товаре [20:57:27]line ОКРУГЛЕНИЕ: -0.28 [20:57:27]line ИТОГО: 130.00 [20:57:27]line Внесено: 130.00 [20:57:27]line СДАЧА: 0.00 [20:57:27]line НСП 1% : 1.15 [20:57:27]line НДС 12% : 13.83 [20:57:27]line Наличными: 130.00 [20:57:27]line Безнал.: 0.00 [20:57:27]line Место: АЗС № 72 "Партнер Нефть" [20:57:27]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [20:57:27]line СНО: Общий режим [20:57:27]line Чек 287 14.07.2024 20:57 [20:57:27]line Смена: 447 ФФД: 1.0 [20:57:27]line ЗНМ: 0300000160 [20:57:27]line РНМ: 0000000000090829 [20:57:27]line Версия ККМ: 001 [20:57:27]line ФМ: 0000000000874718 [20:57:27]line ФД: 165089 [20:57:27]line ФПД: 157099802220662 [20:57:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T205726&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165089&fm=157099802220662&tin=02508201610067®Number=0000000000090829&sum=13000 [20:57:27]written 0, free lines is 4095 [20:57:27]OFD Sender: Processing packet 165089 [packets to send 106, broken 105] [20:57:27]ProducePacketName [20:57:27]name=ofd_packets/00165089 [20:57:27]OFD Sender: To server: pG, [20:57:27]CommunicateWithHost lk.salyk.kg:30040 [20:57:27]ConnectInit lk.salyk.kg [20:57:27]Connected sock=10 [20:57:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 F9 17 07 01 3B 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 35 FF 03 08 00 03 BC 07 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 E4 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 B6 3B 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E1 84 02 00 35 04 06 00 8E E1 A5 E7 D8 76 29 1B CC 1F 3C 1B 77 0D [20:57:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 84 84 47 00 89 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 38 37 34 37 31 38 10 04 04 00 E1 84 02 00 F4 03 04 00 43 E2 93 66 B6 04 01 00 00 72 58 9F 0F 73 60 46 1F [20:57:27]CommunicateWithHost err = 0 [20:57:27]CheckOFDResponse [20:57:27]1017 (14) - 77093643461234 [20:57:27]1041 (16) - 0000000000874718 [20:57:27]1040 (4) - 165089 [20:57:27]1012 (4) - 14.07.2024 14:35 [20:57:27]1206 (1) - 0 [20:57:27]OFD Sender: Remove packet 165089 [20:57:27]ProducePacketName [20:57:27]name=ofd_packets/00165089 [20:57:27]NVStorageDeleteData [20:57:27]Write to MH i2c: 01 00 00 05 09 0E [20:57:27]Write i2c OK [20:57:27]MH_I2C_Read... [20:57:27]Read from MH i2c: 01 [20:57:27]MH_I2C_Read... [20:57:27]Read from MH i2c: 01 07 00 [20:57:27]MH_I2C_Read... [20:57:27]Read from MH i2c: 01 07 00 05 09 00 00 00 00 00 FA 0C 1B [20:57:27]RasterBufferAndPrint [20:57:27]line [20:57:27]line [20:57:27]line [20:57:27]line [20:57:27]line [20:57:27]written 0, free lines is 3327 [20:57:27]MH_Cut [20:57:27]Write to MH i2c: D1 01 00 0C 09 01 E7 [20:57:27]Write i2c OK [20:57:27]MH_I2C_Read... [20:57:27]Read from MH i2c: D1 [20:57:27]MH_I2C_Read... [20:57:27]Read from MH i2c: D1 01 00 [20:57:27]MH_I2C_Read... [20:57:27]Read from MH i2c: D1 01 00 0C 09 00 E6 [20:57:27]Write to MH i2c: 01 00 00 0D 09 16 [20:57:27]Write i2c OK [20:57:27]MH_I2C_Read... [20:57:28]OFD Sender: No OFD packet to send [20:57:28]*** Cut start [20:57:28]*** Partial cut [20:57:28]*** CUTSNS_PIN = 1 [20:57:28]*** CUTSNS_PIN = 0 [20:57:28]*** Brake cut motor [20:57:29]Read from MH i2c: 01 [20:57:29]MH_I2C_Read... [20:57:29]*** Stop cut motor [20:57:29]*** Cut end [20:57:29]Read from MH i2c: 01 07 00 [20:57:29]MH_I2C_Read... [20:57:29]Read from MH i2c: 01 07 00 0D 09 00 00 00 00 00 FF 0F 2B [20:57:29]process_action close_receipt done [20:57:29]requested_data is exist [20:57:29]produce_requested_data [20:57:29]requested_item fm.sn is exist - process it [20:57:29]wFMCommunicate request_size=4 [20:57:29]MH_SAM_APDU [20:57:29]CAPDU: 80 11 00 00 [20:57:29]Write to MH i2c: E2 08 00 0E 09 80 11 00 00 00 00 00 00 91 [20:57:29]Write i2c OK [20:57:29]MH_I2C_Read... [20:57:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:57:29]Read from MH i2c: E2 [20:57:29]MH_I2C_Read... [20:57:29]Read from MH i2c: E2 17 00 [20:57:29]MH_I2C_Read... [20:57:29]Read from MH i2c: E2 17 00 0E 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E7 [20:57:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:57:29]wFMCommunicate OK [20:57:29]requested_item fd.num is exist - process it [20:57:29]SAM_PROTO_GetFieldsCounters [20:57:29]wFMCommunicate request_size=4 [20:57:29]MH_SAM_APDU [20:57:29]CAPDU: 80 13 00 00 [20:57:29]Write to MH i2c: E2 08 00 0F 09 80 13 00 00 00 00 00 00 94 [20:57:29]Write i2c OK [20:57:29]MH_I2C_Read... [20:57:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:57:29]Read from MH i2c: E2 [20:57:29]MH_I2C_Read... [20:57:29]Read from MH i2c: E2 62 00 [20:57:29]MH_I2C_Read... [20:57:29]Read from MH i2c: E2 62 00 0F 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E1 84 02 00 0E 04 04 00 BF 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 42 [20:57:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E1 84 02 00 0E 04 04 00 BF 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 [20:57:29]wFMCommunicate OK [20:57:29]SAM_PROTO_GetFieldsCounters done [20:57:29]requested_item shift.num is exist - process it [20:57:29]requested_item shift.opened is exist - process it [20:57:29]req_shift_opened [20:57:29]FM_GetShiftState [20:57:29]SAM_PROTO_GetShiftState [20:57:29]wFMCommunicate request_size=4 [20:57:29]MH_SAM_APDU [20:57:29]CAPDU: 80 13 01 00 [20:57:29]Write to MH i2c: E2 08 00 10 09 80 13 01 00 00 00 00 00 96 [20:57:29]Write i2c OK [20:57:29]MH_I2C_Read... [20:57:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:57:29]Read from MH i2c: E2 [20:57:29]MH_I2C_Read... [20:57:29]Read from MH i2c: E2 0E 00 [20:57:29]MH_I2C_Read... [20:57:29]Read from MH i2c: E2 0E 00 10 09 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 16 [20:57:29]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [20:57:29]wFMCommunicate OK [20:57:29]SAM_PROTO_GetShiftState done [20:57:29]FM_GetShiftState done [20:57:29]req_shift_opened done [20:57:29]requested_item shift.open_date is exist - process it [20:57:29]req_shift_open_date [20:57:29]req_shift_open_date done [20:57:29]produce_requested_data done [20:57:29]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165089,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [20:57:29]process_action_free close_receipt [20:57:29]json_value_free [20:57:29]json_value_free done [20:57:29]process_json_proto returns [20:57:29]Send response to host [20:57:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165089,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [20:57:29]free response buf [20:57:29]execute_script done [20:57:29]execute_script returns [20:57:29]free content buf [20:57:29]Sock 9.Close socket [20:57:29]Sock 9.Thread stoped [20:57:33]OFD Sender: No OFD packet to send [20:57:38]OFD Sender: No OFD packet to send [20:57:43]OFD Sender: No OFD packet to send [20:57:48]OFD Sender: No OFD packet to send [20:57:53]OFD Sender: No OFD packet to send [20:57:58]OFD Sender: No OFD packet to send [20:58:03]OFD Sender: No OFD packet to send [20:58:08]OFD Sender: No OFD packet to send [20:58:13]OFD Sender: No OFD packet to send [20:58:18]OFD Sender: No OFD packet to send [20:58:23]OFD Sender: No OFD packet to send [20:58:28]OFD Sender: No OFD packet to send [20:58:33]OFD Sender: No OFD packet to send [20:58:38]OFD Sender: No OFD packet to send [20:58:43]OFD Sender: No OFD packet to send [20:58:48]OFD Sender: No OFD packet to send [20:58:53]OFD Sender: No OFD packet to send [20:58:58]OFD Sender: No OFD packet to send [20:59:03]OFD Sender: No OFD packet to send [20:59:08]OFD Sender: No OFD packet to send [20:59:13]OFD Sender: No OFD packet to send [20:59:18]OFD Sender: No OFD packet to send [20:59:23]OFD Sender: No OFD packet to send [20:59:28]OFD Sender: No OFD packet to send [20:59:33]OFD Sender: No OFD packet to send [20:59:38]OFD Sender: No OFD packet to send [20:59:43]OFD Sender: No OFD packet to send [20:59:48]OFD Sender: No OFD packet to send [20:59:53]OFD Sender: No OFD packet to send [20:59:58]OFD Sender: No OFD packet to send [21:00:03]OFD Sender: No OFD packet to send [21:00:08]OFD Sender: No OFD packet to send [21:00:13]OFD Sender: No OFD packet to send [21:00:18]OFD Sender: No OFD packet to send [21:00:23]OFD Sender: No OFD packet to send [21:00:28]OFD Sender: No OFD packet to send [21:00:33]OFD Sender: No OFD packet to send [21:00:38]OFD Sender: No OFD packet to send [21:00:43]OFD Sender: No OFD packet to send [21:00:48]OFD Sender: No OFD packet to send [21:00:53]OFD Sender: No OFD packet to send [21:00:58]OFD Sender: No OFD packet to send [21:01:03]OFD Sender: No OFD packet to send [21:01:08]OFD Sender: No OFD packet to send [21:01:13]OFD Sender: No OFD packet to send [21:01:18]OFD Sender: No OFD packet to send [21:01:23]OFD Sender: No OFD packet to send [21:01:28]OFD Sender: No OFD packet to send [21:01:33]OFD Sender: No OFD packet to send [21:01:38]OFD Sender: No OFD packet to send [21:01:43]OFD Sender: No OFD packet to send [21:01:48]OFD Sender: No OFD packet to send [21:01:53]OFD Sender: No OFD packet to send [21:01:58]OFD Sender: No OFD packet to send [21:02:03]OFD Sender: No OFD packet to send [21:02:08]OFD Sender: No OFD packet to send [21:02:13]OFD Sender: No OFD packet to send [21:02:18]OFD Sender: No OFD packet to send [21:02:23]OFD Sender: No OFD packet to send [21:02:28]OFD Sender: No OFD packet to send [21:02:33]OFD Sender: No OFD packet to send [21:02:38]OFD Sender: No OFD packet to send [21:02:43]OFD Sender: No OFD packet to send [21:02:48]OFD Sender: No OFD packet to send [21:02:53]OFD Sender: No OFD packet to send [21:02:58]OFD Sender: No OFD packet to send [21:03:03]OFD Sender: No OFD packet to send [21:03:08]OFD Sender: No OFD packet to send [21:03:13]OFD Sender: No OFD packet to send [21:03:18]OFD Sender: No OFD packet to send [21:03:23]OFD Sender: No OFD packet to send [21:03:28]OFD Sender: No OFD packet to send [21:03:33]OFD Sender: No OFD packet to send [21:03:38]OFD Sender: No OFD packet to send [21:03:43]OFD Sender: No OFD packet to send [21:03:48]OFD Sender: No OFD packet to send [21:03:53]OFD Sender: No OFD packet to send [21:03:58]OFD Sender: No OFD packet to send [21:04:03]OFD Sender: No OFD packet to send [21:04:08]OFD Sender: No OFD packet to send [21:04:13]OFD Sender: No OFD packet to send [21:04:18]OFD Sender: No OFD packet to send [21:04:23]OFD Sender: No OFD packet to send [21:04:28]OFD Sender: No OFD packet to send [21:04:33]OFD Sender: No OFD packet to send [21:04:38]OFD Sender: No OFD packet to send [21:04:43]OFD Sender: No OFD packet to send [21:04:48]OFD Sender: No OFD packet to send [21:04:53]OFD Sender: No OFD packet to send [21:04:58]OFD Sender: No OFD packet to send [21:05:03]OFD Sender: No OFD packet to send [21:05:08]OFD Sender: No OFD packet to send [21:05:13]OFD Sender: No OFD packet to send [21:05:17]accept exits with 7 [21:05:17]New connection [21:05:17]New thread 3066785124 created [21:05:17]Thread 3066928484 joined [21:05:17]Waiting for new connection... [21:05:17] Sock 7.Parse request [21:05:17]Sock 7.Check first char [21:05:17]Sock 7.First char is OK [21:05:17]request: POST /json_proto HTTP/1.0 [21:05:17]Method: POST [21:05:17]URL: /json_proto [21:05:17]Method is POST - this is cgi request [21:05:17]url: /json_proto [21:05:17]query_string will be loaded in cgi processing [21:05:17]execute_cgi json_proto POST (null) [21:05:17]execute_cgi path=json_proto method=POST [21:05:17]POST find Content-Length [21:05:17]Host: 172.17.56.4:8080 [21:05:17]Content-Length: 677 [21:05:17]Content-Type: application/json [21:05:17] [21:05:17]POST finish read [21:05:17]Found Content-Length = 677 [21:05:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459193", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 1.830, "sum" : 120.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 120.00, "total" : 120.00, "payments": [ { "type": 0, "sum" : 120.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:05:17]execute_script... [21:05:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459193", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 1.830, "sum" : 120.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 120.00, "total" : 120.00, "payments": [ { "type": 0, "sum" : 120.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:05:17]POST & json_proto [21:05:17]process_json_proto [21:05:17]json parsed OK: [21:05:17]protocol is kg_v1.0 [21:05:17]action value=close_receipt [21:05:17]process_action close_receipt [21:05:17]cmd_close_receipt [21:05:17]MH_GetDate [21:05:17]Write to MH i2c: F0 00 00 11 09 09 [21:05:17]Write i2c OK [21:05:17]MH_I2C_Read... [21:05:17]Read from MH i2c: F0 [21:05:17]MH_I2C_Read... [21:05:17]Read from MH i2c: F0 09 00 [21:05:17]MH_I2C_Read... [21:05:17]Read from MH i2c: F0 09 00 11 09 00 8E 3D 94 66 C9 DC B2 64 92 [21:05:17]GetLastDocTimeStamp 1720990646 [21:05:17]current date 1720991118 [21:05:17]FM_GetShiftState [21:05:17]SAM_PROTO_GetShiftState [21:05:17]wFMCommunicate request_size=4 [21:05:17]MH_SAM_APDU [21:05:17]CAPDU: 80 13 01 00 [21:05:17]Write to MH i2c: E2 08 00 12 09 80 13 01 00 00 00 00 00 98 [21:05:17]Write i2c OK [21:05:17]MH_I2C_Read... [21:05:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:05:17]Read from MH i2c: E2 [21:05:17]MH_I2C_Read... [21:05:17]Read from MH i2c: E2 0E 00 [21:05:17]MH_I2C_Read... [21:05:17]Read from MH i2c: E2 0E 00 12 09 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 18 [21:05:17]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [21:05:17]wFMCommunicate OK [21:05:17]SAM_PROTO_GetShiftState done [21:05:17]FM_GetShiftState done [21:05:17]opened in 1720917342 [21:05:17]opened+sec_in_day 1721003742 [21:05:17]quantity*price = 12041 [21:05:17]sum+1 = 12042 [21:05:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 120.00 Внесено: 120.00 СДАЧА: 0.00 НСП 1% : 1.07 НДС 12% : 12.79 Наличными: 120.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 288 14.07.2024 21:05 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165090 ФПД: 34665647213303 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T210519&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165090&fm=34665647213303&tin=02508201610067®Number=0000000000090829&sum=12000 [21:05:18]StoreToDocumentArchive [21:05:18]shift 447 fd 165090 [21:05:18]save to /storage/0447/doc_00165090 [21:05:18]save last doc name /storage/0447/doc_00165090 to /storage/kkm_last_doc_name [21:05:18]save OK [21:05:18]Clear old archive folders... [21:05:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:05:18]tlvbuf is 01329480 [21:05:18]SAM_PROTO_ClearQueue [21:05:18]wFMCommunicate request_size=4 [21:05:18]MH_SAM_APDU [21:05:18]CAPDU: 80 09 00 00 [21:05:18]Write to MH i2c: E2 08 00 1F 09 80 09 00 00 00 00 00 00 9A [21:05:18]Write i2c OK [21:05:18]MH_I2C_Read... [21:05:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:05:18]Read from MH i2c: E2 [21:05:18]MH_I2C_Read... [21:05:18]Read from MH i2c: E2 03 00 [21:05:18]MH_I2C_Read... [21:05:18]Read from MH i2c: E2 03 00 1F 09 00 90 00 9C [21:05:18]RAPDU: 90 00 [21:05:18]wFMCommunicate OK [21:05:18]SAM_PROTO_ClearQueue done [21:05:18]KKMCreateOFDPacket [21:05:18]OFDProtocolAddRootSTLVToBuf [21:05:18]FM_MakeSignedData [21:05:18]FM_MakeSignedData [21:05:18]SAM_PROTO_SignData [21:05:18]wFMCommunicate request_size=4 [21:05:18]MH_SAM_APDU [21:05:18]CAPDU: 80 0D 01 02 [21:05:18]Write to MH i2c: E2 08 00 20 09 80 0D 01 02 00 00 00 00 A2 [21:05:18]Write i2c OK [21:05:18]MH_I2C_Read... [21:05:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:05:18]Read from MH i2c: E2 [21:05:18]MH_I2C_Read... [21:05:18]Read from MH i2c: E2 03 00 [21:05:18]MH_I2C_Read... [21:05:18]Read from MH i2c: E2 03 00 20 09 00 90 00 9D [21:05:18]RAPDU: 90 00 [21:05:18]wFMCommunicate OK [21:05:18]wFMCommunicate request_size=255 [21:05:18]MH_SAM_APDU [21:05:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 26 07 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 09 2F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 8F 3D 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E2 84 02 00 35 04 06 00 1F [21:05:18]Write to MH i2c: E2 02 01 21 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 26 07 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 09 2F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 8F 3D 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E2 84 02 00 35 04 06 00 1F 00 00 9C [21:05:18]Write i2c OK [21:05:18]MH_I2C_Read... [21:05:18]OFD Sender: No OFD packet to send [21:05:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:05:18]Read from MH i2c: E2 [21:05:18]MH_I2C_Read... [21:05:18]Read from MH i2c: E2 03 00 [21:05:18]MH_I2C_Read... [21:05:18]Read from MH i2c: E2 03 00 21 09 00 90 00 9E [21:05:18]RAPDU: 90 00 [21:05:18]wFMCommunicate OK [21:05:18]wFMCommunicate request_size=10 [21:05:18]MH_SAM_APDU [21:05:18]CAPDU: 80 0D 02 02 05 87 39 96 8A F7 [21:05:18]Write to MH i2c: E2 0D 00 22 09 80 0D 02 02 05 00 87 39 96 8A F7 00 00 86 [21:05:18]Write i2c OK [21:05:18]MH_I2C_Read... [21:05:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:05:19]Read from MH i2c: E2 [21:05:19]MH_I2C_Read... [21:05:19]Read from MH i2c: E2 03 00 [21:05:19]MH_I2C_Read... [21:05:19]Read from MH i2c: E2 03 00 22 09 00 90 00 9F [21:05:19]RAPDU: 90 00 [21:05:19]wFMCommunicate OK [21:05:19]wFMCommunicate request_size=4 [21:05:19]MH_SAM_APDU [21:05:19]CAPDU: 80 0D 03 02 [21:05:19]Write to MH i2c: E2 08 00 23 09 80 0D 03 02 00 00 00 00 A7 [21:05:19]Write i2c OK [21:05:19]MH_I2C_Read... [21:05:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:05:19]Read from MH i2c: E2 [21:05:19]MH_I2C_Read... [21:05:19]Read from MH i2c: E2 0B 00 [21:05:19]MH_I2C_Read... [21:05:19]Read from MH i2c: E2 0B 00 23 09 00 19 E2 2B 33 7D 34 76 2B 90 00 53 [21:05:19]RAPDU: 19 E2 2B 33 7D 34 76 2B 90 00 [21:05:19]wFMCommunicate OK [21:05:19]SAM_PROTO_SignData done [21:05:19]FM_MakeSignedData done [21:05:19]CreateOFDProtocolMessage [21:05:19]wFMCommunicate request_size=4 [21:05:19]MH_SAM_APDU [21:05:19]CAPDU: 80 11 00 00 [21:05:19]Write to MH i2c: E2 08 00 24 09 80 11 00 00 00 00 00 00 A7 [21:05:19]Write i2c OK [21:05:19]MH_I2C_Read... [21:05:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:05:19]Read from MH i2c: E2 [21:05:19]MH_I2C_Read... [21:05:19]Read from MH i2c: E2 17 00 [21:05:19]MH_I2C_Read... [21:05:19]Read from MH i2c: E2 17 00 24 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 FD [21:05:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:05:19]wFMCommunicate OK [21:05:19]CreateOFDProtocolMessage done [21:05:19]OFDSenderStorePacket 165090 [21:05:19]StoreOFDPacket docnum=165090 [21:05:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 31 92 07 01 5A 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 26 07 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 09 2F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 8F 3D 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E2 84 02 00 35 04 06 00 1F 87 39 96 8A F7 19 E2 2B 33 7D 34 76 2B [21:05:19]CheckFolder [21:05:19]dirname=/storage/ofd_packets [21:05:19]CheckFolder done [21:05:19]ProducePacketName [21:05:19]name=ofd_packets/00165090 [21:05:19]NVStorageSaveData ofd_packets/00165090 [21:05:19]File name is /storage/ofd_packets/00165090 [21:05:19]Write 301 bytes [21:05:19]NVStorageSaveData done [21:05:19]OFDSenderStorePacket done [21:05:19]KKMCreateOFDPacket done [21:05:19]NVStorageSaveData kkm_last_timestamp [21:05:19]File name is /storage/kkm_last_timestamp [21:05:19]Write 4 bytes [21:05:19]NVStorageSaveData done [21:05:19]ExternCall_PrintAddStr [21:05:19]wPrintStart [21:05:19]Write to MH i2c: 01 00 00 25 09 2E [21:05:19]Write i2c OK [21:05:19]MH_I2C_Read... [21:05:19]Read from MH i2c: 01 [21:05:19]MH_I2C_Read... [21:05:19]Read from MH i2c: 01 07 00 [21:05:19]MH_I2C_Read... [21:05:19]Read from MH i2c: 01 07 00 25 09 00 00 00 00 00 FF 0F 43 [21:05:19]RasterBufferAndPrint [21:05:19]line Счет N : (1)459193 [21:05:19]line ИНН: 02508201610067 [21:05:19]line Контрольно-Кассовый Чек [21:05:19]line ПРОДАЖА [21:05:19]line ТРК (МРК, ГНК) : 22 [21:05:19]line Товар: 2710124130 [21:05:19]line Аи-92-К-5 [21:05:19]line 1.830 * 65.80 [21:05:19]line = 120.41 [21:05:19]line НДС 12% НСП 1% [21:05:19]line > о реализуемом товаре [21:05:19]line ОКРУГЛЕНИЕ: -0.41 [21:05:19]line ИТОГО: 120.00 [21:05:19]line Внесено: 120.00 [21:05:19]line СДАЧА: 0.00 [21:05:19]line НСП 1% : 1.07 [21:05:19]line НДС 12% : 12.79 [21:05:19]line Наличными: 120.00 [21:05:19]line Безнал.: 0.00 [21:05:19]line Место: АЗС № 72 "Партнер Нефть" [21:05:19]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [21:05:19]line СНО: Общий режим [21:05:19]line Чек 288 14.07.2024 21:05 [21:05:19]line Смена: 447 ФФД: 1.0 [21:05:19]line ЗНМ: 0300000160 [21:05:19]line РНМ: 0000000000090829 [21:05:19]line Версия ККМ: 001 [21:05:19]line ФМ: 0000000000874718 [21:05:19]line ФД: 165090 [21:05:19]line ФПД: 34665647213303 [21:05:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T210519&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165090&fm=34665647213303&tin=02508201610067®Number=0000000000090829&sum=12000 [21:05:19]written 0, free lines is 4095 [21:05:19]OFD Sender: Processing packet 165090 [packets to send 106, broken 105] [21:05:19]ProducePacketName [21:05:19]name=ofd_packets/00165090 [21:05:19]OFD Sender: To server: pG, [21:05:19]CommunicateWithHost lk.salyk.kg:30040 [21:05:19]ConnectInit lk.salyk.kg [21:05:19]Connected sock=9 [21:05:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 31 92 07 01 5A 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 26 07 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 09 2F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 8F 3D 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E2 84 02 00 35 04 06 00 1F 87 39 96 8A F7 19 E2 2B 33 7D 34 76 2B [21:05:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 3D 6E 47 00 ED D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E2 84 02 00 F4 03 04 00 1B E4 93 66 B6 04 01 00 00 33 61 73 87 05 63 B6 FE [21:05:19]CommunicateWithHost err = 0 [21:05:19]CheckOFDResponse [21:05:19]1017 (14) - 77093643461234 [21:05:19]1041 (16) - 0000000000874718 [21:05:19]1040 (4) - 165090 [21:05:19]1012 (4) - 14.07.2024 14:43 [21:05:19]1206 (1) - 0 [21:05:19]OFD Sender: Remove packet 165090 [21:05:19]ProducePacketName [21:05:19]name=ofd_packets/00165090 [21:05:19]NVStorageDeleteData [21:05:19]Write to MH i2c: 01 00 00 4F 09 58 [21:05:19]Write i2c OK [21:05:19]MH_I2C_Read... [21:05:19]Read from MH i2c: 01 [21:05:19]MH_I2C_Read... [21:05:19]Read from MH i2c: 01 07 00 [21:05:19]MH_I2C_Read... [21:05:19]Read from MH i2c: 01 07 00 4F 09 00 00 00 00 00 00 0D 6C [21:05:19]RasterBufferAndPrint [21:05:19]line [21:05:19]line [21:05:19]line [21:05:19]line [21:05:19]line [21:05:19]written 0, free lines is 3334 [21:05:19]MH_Cut [21:05:19]Write to MH i2c: D1 01 00 56 09 01 31 [21:05:19]Write i2c OK [21:05:19]MH_I2C_Read... [21:05:19]Read from MH i2c: D1 [21:05:19]MH_I2C_Read... [21:05:19]Read from MH i2c: D1 01 00 [21:05:19]MH_I2C_Read... [21:05:19]Read from MH i2c: D1 01 00 56 09 00 30 [21:05:19]Write to MH i2c: 01 00 00 57 09 60 [21:05:19]Write i2c OK [21:05:19]MH_I2C_Read... [21:05:19]OFD Sender: No OFD packet to send [21:05:20]*** Cut start [21:05:20]*** Partial cut [21:05:20]*** CUTSNS_PIN = 1 [21:05:20]*** CUTSNS_PIN = 0 [21:05:20]*** Brake cut motor [21:05:20]Read from MH i2c: 01 [21:05:20]MH_I2C_Read... [21:05:20]*** Stop cut motor [21:05:20]*** Cut end [21:05:20]Read from MH i2c: 01 07 00 [21:05:20]MH_I2C_Read... [21:05:20]Read from MH i2c: 01 07 00 57 09 00 00 00 00 00 FF 0F 75 [21:05:20]process_action close_receipt done [21:05:20]requested_data is exist [21:05:20]produce_requested_data [21:05:20]requested_item fm.sn is exist - process it [21:05:20]wFMCommunicate request_size=4 [21:05:20]MH_SAM_APDU [21:05:20]CAPDU: 80 11 00 00 [21:05:20]Write to MH i2c: E2 08 00 58 09 80 11 00 00 00 00 00 00 DB [21:05:20]Write i2c OK [21:05:20]MH_I2C_Read... [21:05:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:05:20]Read from MH i2c: E2 [21:05:20]MH_I2C_Read... [21:05:20]Read from MH i2c: E2 17 00 [21:05:20]MH_I2C_Read... [21:05:20]Read from MH i2c: E2 17 00 58 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 31 [21:05:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:05:20]wFMCommunicate OK [21:05:20]requested_item fd.num is exist - process it [21:05:20]SAM_PROTO_GetFieldsCounters [21:05:20]wFMCommunicate request_size=4 [21:05:20]MH_SAM_APDU [21:05:20]CAPDU: 80 13 00 00 [21:05:20]Write to MH i2c: E2 08 00 59 09 80 13 00 00 00 00 00 00 DE [21:05:20]Write i2c OK [21:05:20]MH_I2C_Read... [21:05:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:05:21]Read from MH i2c: E2 [21:05:21]MH_I2C_Read... [21:05:21]Read from MH i2c: E2 62 00 [21:05:21]MH_I2C_Read... [21:05:21]Read from MH i2c: E2 62 00 59 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E2 84 02 00 0E 04 04 00 BF 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 90 [21:05:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E2 84 02 00 0E 04 04 00 BF 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 [21:05:21]wFMCommunicate OK [21:05:21]SAM_PROTO_GetFieldsCounters done [21:05:21]requested_item shift.num is exist - process it [21:05:21]requested_item shift.opened is exist - process it [21:05:21]req_shift_opened [21:05:21]FM_GetShiftState [21:05:21]SAM_PROTO_GetShiftState [21:05:21]wFMCommunicate request_size=4 [21:05:21]MH_SAM_APDU [21:05:21]CAPDU: 80 13 01 00 [21:05:21]Write to MH i2c: E2 08 00 5A 09 80 13 01 00 00 00 00 00 E0 [21:05:21]Write i2c OK [21:05:21]MH_I2C_Read... [21:05:21]Read from MH i2c: E2 [21:05:21]MH_I2C_Read... [21:05:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:05:21]Read from MH i2c: E2 0E 00 [21:05:21]MH_I2C_Read... [21:05:21]Read from MH i2c: E2 0E 00 5A 09 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 60 [21:05:21]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [21:05:21]wFMCommunicate OK [21:05:21]SAM_PROTO_GetShiftState done [21:05:21]FM_GetShiftState done [21:05:21]req_shift_opened done [21:05:21]requested_item shift.open_date is exist - process it [21:05:21]req_shift_open_date [21:05:21]req_shift_open_date done [21:05:21]produce_requested_data done [21:05:21]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165090,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [21:05:21]process_action_free close_receipt [21:05:21]json_value_free [21:05:21]json_value_free done [21:05:21]process_json_proto returns [21:05:21]Send response to host [21:05:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165090,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [21:05:21]free response buf [21:05:21]execute_script done [21:05:21]execute_script returns [21:05:21]free content buf [21:05:21]Sock 7.Close socket [21:05:21]Sock 7.Thread stoped [21:05:24]OFD Sender: No OFD packet to send [21:05:29]OFD Sender: No OFD packet to send [21:05:34]OFD Sender: No OFD packet to send [21:05:39]OFD Sender: No OFD packet to send [21:05:44]OFD Sender: No OFD packet to send [21:05:50]OFD Sender: No OFD packet to send [21:05:50]accept exits with 10 [21:05:50]New connection [21:05:50]New thread 3066928484 created [21:05:50]Thread 3066785124 joined [21:05:50]Waiting for new connection... [21:05:50] Sock 10.Parse request [21:05:50]Sock 10.Check first char [21:05:50]Sock 10.First char is OK [21:05:50]request: POST /json_proto HTTP/1.0 [21:05:50]Method: POST [21:05:50]URL: /json_proto [21:05:50]Method is POST - this is cgi request [21:05:50]url: /json_proto [21:05:50]query_string will be loaded in cgi processing [21:05:50]execute_cgi json_proto POST (null) [21:05:50]execute_cgi path=json_proto method=POST [21:05:50]POST find Content-Length [21:05:50]Host: 172.17.56.4:8080 [21:05:50]Content-Length: 677 [21:05:50]Content-Type: application/json [21:05:50] [21:05:50]POST finish read [21:05:50]Found Content-Length = 677 [21:05:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459194", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:05:50]execute_script... [21:05:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459194", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:05:50]POST & json_proto [21:05:50]process_json_proto [21:05:50]json parsed OK: [21:05:50]protocol is kg_v1.0 [21:05:50]action value=close_receipt [21:05:50]process_action close_receipt [21:05:50]cmd_close_receipt [21:05:50]MH_GetDate [21:05:50]Write to MH i2c: F0 00 00 5B 09 53 [21:05:50]Write i2c OK [21:05:50]MH_I2C_Read... [21:05:50]Read from MH i2c: F0 [21:05:50]MH_I2C_Read... [21:05:50]Read from MH i2c: F0 09 00 [21:05:50]MH_I2C_Read... [21:05:50]Read from MH i2c: F0 09 00 5B 09 00 B0 3D 94 66 C9 DC B2 64 FE [21:05:50]GetLastDocTimeStamp 1720991119 [21:05:50]current date 1720991152 [21:05:50]FM_GetShiftState [21:05:50]SAM_PROTO_GetShiftState [21:05:50]wFMCommunicate request_size=4 [21:05:50]MH_SAM_APDU [21:05:50]CAPDU: 80 13 01 00 [21:05:50]Write to MH i2c: E2 08 00 5C 09 80 13 01 00 00 00 00 00 E2 [21:05:50]Write i2c OK [21:05:50]MH_I2C_Read... [21:05:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:05:50]Read from MH i2c: E2 [21:05:50]MH_I2C_Read... [21:05:50]Read from MH i2c: E2 0E 00 [21:05:50]MH_I2C_Read... [21:05:50]Read from MH i2c: E2 0E 00 5C 09 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 62 [21:05:50]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [21:05:50]wFMCommunicate OK [21:05:50]SAM_PROTO_GetShiftState done [21:05:50]FM_GetShiftState done [21:05:50]opened in 1720917342 [21:05:50]opened+sec_in_day 1721003742 [21:05:50]quantity*price = 60009 [21:05:50]sum+1 = 60011 [21:05:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 289 14.07.2024 21:05 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165091 ФПД: 194323168666258 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T210552&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165091&fm=194323168666258&tin=02508201610067®Number=0000000000090829&sum=60000 [21:05:51]StoreToDocumentArchive [21:05:51]shift 447 fd 165091 [21:05:51]save to /storage/0447/doc_00165091 [21:05:51]save last doc name /storage/0447/doc_00165091 to /storage/kkm_last_doc_name [21:05:51]save OK [21:05:51]Clear old archive folders... [21:05:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:05:51]tlvbuf is 0135DB70 [21:05:51]SAM_PROTO_ClearQueue [21:05:51]wFMCommunicate request_size=4 [21:05:51]MH_SAM_APDU [21:05:51]CAPDU: 80 09 00 00 [21:05:51]Write to MH i2c: E2 08 00 69 09 80 09 00 00 00 00 00 00 E4 [21:05:51]Write i2c OK [21:05:51]MH_I2C_Read... [21:05:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:05:51]Read from MH i2c: E2 [21:05:51]MH_I2C_Read... [21:05:51]Read from MH i2c: E2 03 00 [21:05:51]MH_I2C_Read... [21:05:51]Read from MH i2c: E2 03 00 69 09 00 90 00 E6 [21:05:51]RAPDU: 90 00 [21:05:51]wFMCommunicate OK [21:05:51]SAM_PROTO_ClearQueue done [21:05:51]KKMCreateOFDPacket [21:05:51]OFDProtocolAddRootSTLVToBuf [21:05:51]FM_MakeSignedData [21:05:51]FM_MakeSignedData [21:05:51]SAM_PROTO_SignData [21:05:51]wFMCommunicate request_size=4 [21:05:51]MH_SAM_APDU [21:05:51]CAPDU: 80 0D 01 02 [21:05:51]Write to MH i2c: E2 08 00 6A 09 80 0D 01 02 00 00 00 00 EC [21:05:51]Write i2c OK [21:05:51]MH_I2C_Read... [21:05:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:05:51]Read from MH i2c: E2 [21:05:51]MH_I2C_Read... [21:05:51]Read from MH i2c: E2 03 00 [21:05:51]MH_I2C_Read... [21:05:51]Read from MH i2c: E2 03 00 6A 09 00 90 00 E7 [21:05:51]RAPDU: 90 00 [21:05:51]wFMCommunicate OK [21:05:51]wFMCommunicate request_size=255 [21:05:51]MH_SAM_APDU [21:05:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A 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 21 01 00 00 F4 03 04 00 B0 3D 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E3 84 02 00 35 04 06 00 B0 [21:05:51]Write to MH i2c: E2 02 01 6B 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A 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 21 01 00 00 F4 03 04 00 B0 3D 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E3 84 02 00 35 04 06 00 B0 00 00 68 [21:05:51]Write i2c OK [21:05:51]MH_I2C_Read... [21:05:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:05:52]Read from MH i2c: E2 [21:05:52]MH_I2C_Read... [21:05:52]Read from MH i2c: E2 03 00 [21:05:52]MH_I2C_Read... [21:05:52]Read from MH i2c: E2 03 00 6B 09 00 90 00 E8 [21:05:52]RAPDU: 90 00 [21:05:52]wFMCommunicate OK [21:05:52]wFMCommunicate request_size=10 [21:05:52]MH_SAM_APDU [21:05:52]CAPDU: 80 0D 02 02 05 BC 63 70 A2 92 [21:05:52]Write to MH i2c: E2 0D 00 6C 09 80 0D 02 02 05 00 BC 63 70 A2 92 00 00 BC [21:05:52]Write i2c OK [21:05:52]MH_I2C_Read... [21:05:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:05:52]Read from MH i2c: E2 [21:05:52]MH_I2C_Read... [21:05:52]Read from MH i2c: E2 03 00 [21:05:52]MH_I2C_Read... [21:05:52]Read from MH i2c: E2 03 00 6C 09 00 90 00 E9 [21:05:52]RAPDU: 90 00 [21:05:52]wFMCommunicate OK [21:05:52]wFMCommunicate request_size=4 [21:05:52]MH_SAM_APDU [21:05:52]CAPDU: 80 0D 03 02 [21:05:52]Write to MH i2c: E2 08 00 6D 09 80 0D 03 02 00 00 00 00 F1 [21:05:52]Write i2c OK [21:05:52]MH_I2C_Read... [21:05:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:05:52]Read from MH i2c: E2 [21:05:52]MH_I2C_Read... [21:05:52]Read from MH i2c: E2 0B 00 [21:05:52]MH_I2C_Read... [21:05:52]Read from MH i2c: E2 0B 00 6D 09 00 EA C5 1E CB CB B1 72 CB 90 00 43 [21:05:52]RAPDU: EA C5 1E CB CB B1 72 CB 90 00 [21:05:52]wFMCommunicate OK [21:05:52]SAM_PROTO_SignData done [21:05:52]FM_MakeSignedData done [21:05:52]CreateOFDProtocolMessage [21:05:52]wFMCommunicate request_size=4 [21:05:52]MH_SAM_APDU [21:05:52]CAPDU: 80 11 00 00 [21:05:52]Write to MH i2c: E2 08 00 6E 09 80 11 00 00 00 00 00 00 F1 [21:05:52]Write i2c OK [21:05:52]MH_I2C_Read... [21:05:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:05:52]Read from MH i2c: E2 [21:05:52]MH_I2C_Read... [21:05:52]Read from MH i2c: E2 17 00 [21:05:52]MH_I2C_Read... [21:05:52]Read from MH i2c: E2 17 00 6E 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 47 [21:05:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:05:52]wFMCommunicate OK [21:05:52]CreateOFDProtocolMessage done [21:05:52]OFDSenderStorePacket 165091 [21:05:52]StoreOFDPacket docnum=165091 [21:05:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 71 D4 07 01 D8 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A 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 21 01 00 00 F4 03 04 00 B0 3D 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E3 84 02 00 35 04 06 00 B0 BC 63 70 A2 92 EA C5 1E CB CB B1 72 CB [21:05:52]CheckFolder [21:05:52]dirname=/storage/ofd_packets [21:05:52]CheckFolder done [21:05:52]ProducePacketName [21:05:52]name=ofd_packets/00165091 [21:05:52]NVStorageSaveData ofd_packets/00165091 [21:05:52]File name is /storage/ofd_packets/00165091 [21:05:52]Write 301 bytes [21:05:52]NVStorageSaveData done [21:05:52]OFDSenderStorePacket done [21:05:52]KKMCreateOFDPacket done [21:05:52]NVStorageSaveData kkm_last_timestamp [21:05:52]File name is /storage/kkm_last_timestamp [21:05:52]Write 4 bytes [21:05:52]NVStorageSaveData done [21:05:52]ExternCall_PrintAddStr [21:05:52]wPrintStart [21:05:52]Write to MH i2c: 01 00 00 6F 09 78 [21:05:52]Write i2c OK [21:05:52]MH_I2C_Read... [21:05:52]Read from MH i2c: 01 [21:05:52]MH_I2C_Read... [21:05:52]Read from MH i2c: 01 07 00 [21:05:52]MH_I2C_Read... [21:05:52]Read from MH i2c: 01 07 00 6F 09 00 00 00 00 00 FF 0F 8D [21:05:52]RasterBufferAndPrint [21:05:52]line Счет N : (1)459194 [21:05:52]line ИНН: 02508201610067 [21:05:52]line Контрольно-Кассовый Чек [21:05:52]line ПРОДАЖА [21:05:52]line ТРК (МРК, ГНК) : 12 [21:05:52]line Товар: 2710124130 [21:05:52]line Аи-92-К-5 [21:05:52]line 9.120 * 65.80 [21:05:52]line = 600.10 [21:05:52]line НДС 12% НСП 1% [21:05:52]line > о реализуемом товаре [21:05:52]line ОКРУГЛЕНИЕ: -0.10 [21:05:52]line ИТОГО: 600.00 [21:05:52]line Внесено: 600.00 [21:05:52]line СДАЧА: 0.00 [21:05:52]line НСП 1% : 5.31 [21:05:52]line НДС 12% : 63.73 [21:05:52]line Наличными: 600.00 [21:05:52]line Безнал.: 0.00 [21:05:52]line Место: АЗС № 72 "Партнер Нефть" [21:05:52]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [21:05:52]line СНО: Общий режим [21:05:52]line Чек 289 14.07.2024 21:05 [21:05:52]line Смена: 447 ФФД: 1.0 [21:05:52]line ЗНМ: 0300000160 [21:05:52]line РНМ: 0000000000090829 [21:05:52]line Версия ККМ: 001 [21:05:52]line ФМ: 0000000000874718 [21:05:52]line ФД: 165091 [21:05:52]line ФПД: 194323168666258 [21:05:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T210552&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165091&fm=194323168666258&tin=02508201610067®Number=0000000000090829&sum=60000 [21:05:52]OFD Sender: Processing packet 165091 [packets to send 106, broken 105] [21:05:52]ProducePacketName [21:05:52]name=ofd_packets/00165091 [21:05:52]OFD Sender: To server: pG, [21:05:52]CommunicateWithHost lk.salyk.kg:30040 [21:05:52]ConnectInit lk.salyk.kg [21:05:52]written 0, free lines is 4095 [21:05:52]Connected sock=9 [21:05:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 71 D4 07 01 D8 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A 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 21 01 00 00 F4 03 04 00 B0 3D 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E3 84 02 00 35 04 06 00 B0 BC 63 70 A2 92 EA C5 1E CB CB B1 72 CB [21:05:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 93 C9 47 00 CB 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E3 84 02 00 F4 03 04 00 3C E4 93 66 B6 04 01 00 00 A2 13 B1 1D 95 E1 C5 77 [21:05:52]CommunicateWithHost err = 0 [21:05:52]CheckOFDResponse [21:05:52]1017 (14) - 77093643461234 [21:05:52]1041 (16) - 0000000000874718 [21:05:52]1040 (4) - 165091 [21:05:52]1012 (4) - 14.07.2024 14:44 [21:05:52]1206 (1) - 0 [21:05:52]OFD Sender: Remove packet 165091 [21:05:52]ProducePacketName [21:05:52]name=ofd_packets/00165091 [21:05:52]NVStorageDeleteData [21:05:53]Write to MH i2c: 01 00 00 99 09 A2 [21:05:53]Write i2c OK [21:05:53]MH_I2C_Read... [21:05:53]Read from MH i2c: 01 [21:05:53]MH_I2C_Read... [21:05:53]Read from MH i2c: 01 07 00 [21:05:53]MH_I2C_Read... [21:05:53]Read from MH i2c: 01 07 00 99 09 00 00 00 00 00 01 0D B7 [21:05:53]RasterBufferAndPrint [21:05:53]line [21:05:53]line [21:05:53]line [21:05:53]line [21:05:53]line [21:05:53]written 0, free lines is 3335 [21:05:53]MH_Cut [21:05:53]Write to MH i2c: D1 01 00 A0 09 01 7B [21:05:53]Write i2c OK [21:05:53]MH_I2C_Read... [21:05:53]Read from MH i2c: D1 [21:05:53]MH_I2C_Read... [21:05:53]Read from MH i2c: D1 01 00 [21:05:53]MH_I2C_Read... [21:05:53]Read from MH i2c: D1 01 00 A0 09 00 7A [21:05:53]Write to MH i2c: 01 00 00 A1 09 AA [21:05:53]Write i2c OK [21:05:53]MH_I2C_Read... [21:05:53]OFD Sender: No OFD packet to send [21:05:53]*** Cut start [21:05:53]*** Partial cut [21:05:53]*** CUTSNS_PIN = 1 [21:05:53]*** CUTSNS_PIN = 0 [21:05:53]*** Brake cut motor [21:05:54]Read from MH i2c: 01 [21:05:54]MH_I2C_Read... [21:05:54]*** Stop cut motor [21:05:54]*** Cut end [21:05:54]Read from MH i2c: 01 07 00 [21:05:54]MH_I2C_Read... [21:05:54]Read from MH i2c: 01 07 00 A1 09 00 00 00 00 00 FF 0F BF [21:05:54]process_action close_receipt done [21:05:54]requested_data is exist [21:05:54]produce_requested_data [21:05:54]requested_item fm.sn is exist - process it [21:05:54]wFMCommunicate request_size=4 [21:05:54]MH_SAM_APDU [21:05:54]CAPDU: 80 11 00 00 [21:05:54]Write to MH i2c: E2 08 00 A2 09 80 11 00 00 00 00 00 00 25 [21:05:54]Write i2c OK [21:05:54]MH_I2C_Read... [21:05:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:05:54]Read from MH i2c: E2 [21:05:54]MH_I2C_Read... [21:05:54]Read from MH i2c: E2 17 00 [21:05:54]MH_I2C_Read... [21:05:54]Read from MH i2c: E2 17 00 A2 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 7B [21:05:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:05:54]wFMCommunicate OK [21:05:54]requested_item fd.num is exist - process it [21:05:54]SAM_PROTO_GetFieldsCounters [21:05:54]wFMCommunicate request_size=4 [21:05:54]MH_SAM_APDU [21:05:54]CAPDU: 80 13 00 00 [21:05:54]Write to MH i2c: E2 08 00 A3 09 80 13 00 00 00 00 00 00 28 [21:05:54]Write i2c OK [21:05:54]MH_I2C_Read... [21:05:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:05:54]Read from MH i2c: E2 [21:05:54]MH_I2C_Read... [21:05:54]Read from MH i2c: E2 62 00 [21:05:54]MH_I2C_Read... [21:05:54]Read from MH i2c: E2 62 00 A3 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E3 84 02 00 0E 04 04 00 BF 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 DE [21:05:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E3 84 02 00 0E 04 04 00 BF 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 [21:05:54]wFMCommunicate OK [21:05:54]SAM_PROTO_GetFieldsCounters done [21:05:54]requested_item shift.num is exist - process it [21:05:54]requested_item shift.opened is exist - process it [21:05:54]req_shift_opened [21:05:54]FM_GetShiftState [21:05:54]SAM_PROTO_GetShiftState [21:05:54]wFMCommunicate request_size=4 [21:05:54]MH_SAM_APDU [21:05:54]CAPDU: 80 13 01 00 [21:05:54]Write to MH i2c: E2 08 00 A4 09 80 13 01 00 00 00 00 00 2A [21:05:54]Write i2c OK [21:05:54]MH_I2C_Read... [21:05:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:05:54]Read from MH i2c: E2 [21:05:54]MH_I2C_Read... [21:05:54]Read from MH i2c: E2 0E 00 [21:05:54]MH_I2C_Read... [21:05:54]Read from MH i2c: E2 0E 00 A4 09 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 AA [21:05:54]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [21:05:54]wFMCommunicate OK [21:05:54]SAM_PROTO_GetShiftState done [21:05:54]FM_GetShiftState done [21:05:54]req_shift_opened done [21:05:54]requested_item shift.open_date is exist - process it [21:05:54]req_shift_open_date [21:05:54]req_shift_open_date done [21:05:54]produce_requested_data done [21:05:54]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165091,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [21:05:54]process_action_free close_receipt [21:05:54]json_value_free [21:05:54]json_value_free done [21:05:54]process_json_proto returns [21:05:54]Send response to host [21:05:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165091,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [21:05:54]free response buf [21:05:54]execute_script done [21:05:54]execute_script returns [21:05:54]free content buf [21:05:54]Sock 10.Close socket [21:05:54]Sock 10.Thread stoped [21:05:58]OFD Sender: No OFD packet to send [21:06:03]OFD Sender: No OFD packet to send [21:06:08]OFD Sender: No OFD packet to send [21:06:13]OFD Sender: No OFD packet to send [21:06:18]OFD Sender: No OFD packet to send [21:06:23]OFD Sender: No OFD packet to send [21:06:28]OFD Sender: No OFD packet to send [21:06:33]OFD Sender: No OFD packet to send [21:06:38]OFD Sender: No OFD packet to send [21:06:43]OFD Sender: No OFD packet to send [21:06:48]OFD Sender: No OFD packet to send [21:06:53]OFD Sender: No OFD packet to send [21:06:58]OFD Sender: No OFD packet to send [21:07:03]OFD Sender: No OFD packet to send [21:07:08]OFD Sender: No OFD packet to send [21:07:13]OFD Sender: No OFD packet to send [21:07:18]OFD Sender: No OFD packet to send [21:07:23]OFD Sender: No OFD packet to send [21:07:28]OFD Sender: No OFD packet to send [21:07:33]OFD Sender: No OFD packet to send [21:07:38]OFD Sender: No OFD packet to send [21:07:43]OFD Sender: No OFD packet to send [21:07:48]OFD Sender: No OFD packet to send [21:07:53]OFD Sender: No OFD packet to send [21:07:58]OFD Sender: No OFD packet to send [21:08:03]OFD Sender: No OFD packet to send [21:08:08]OFD Sender: No OFD packet to send [21:08:13]OFD Sender: No OFD packet to send [21:08:18]OFD Sender: No OFD packet to send [21:08:23]OFD Sender: No OFD packet to send [21:08:28]OFD Sender: No OFD packet to send [21:08:33]OFD Sender: No OFD packet to send [21:08:38]OFD Sender: No OFD packet to send [21:08:43]OFD Sender: No OFD packet to send [21:08:48]OFD Sender: No OFD packet to send [21:08:53]OFD Sender: No OFD packet to send [21:08:58]OFD Sender: No OFD packet to send [21:09:03]OFD Sender: No OFD packet to send [21:09:08]OFD Sender: No OFD packet to send [21:09:13]OFD Sender: No OFD packet to send [21:09:18]OFD Sender: No OFD packet to send [21:09:22]accept exits with 7 [21:09:22]New connection [21:09:22]New thread 3066785124 created [21:09:22]Thread 3066928484 joined [21:09:22]Waiting for new connection... [21:09:22] Sock 7.Parse request [21:09:22]Sock 7.Check first char [21:09:22]Sock 7.First char is OK [21:09:22]request: POST /json_proto HTTP/1.0 [21:09:22]Method: POST [21:09:22]URL: /json_proto [21:09:22]Method is POST - this is cgi request [21:09:22]url: /json_proto [21:09:22]query_string will be loaded in cgi processing [21:09:22]execute_cgi json_proto POST (null) [21:09:22]execute_cgi path=json_proto method=POST [21:09:22]POST find Content-Length [21:09:22]Host: 172.17.56.4:8080 [21:09:22]Content-Length: 682 [21:09:22]Content-Type: application/json [21:09:22] [21:09:22]POST finish read [21:09:22]Found Content-Length = 682 [21:09:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459195", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 18.240, "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" ] } } [21:09:22]execute_script... [21: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)459195", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 18.240, "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" ] } } [21:09:22]POST & json_proto [21:09:22]process_json_proto [21:09:22]json parsed OK: [21:09:22]protocol is kg_v1.0 [21:09:22]action value=close_receipt [21:09:22]process_action close_receipt [21:09:22]cmd_close_receipt [21:09:22]MH_GetDate [21:09:22]Write to MH i2c: F0 00 00 A5 09 9D [21:09:22]Write i2c OK [21:09:22]MH_I2C_Read... [21:09:22]Read from MH i2c: F0 [21:09:22]MH_I2C_Read... [21:09:22]Read from MH i2c: F0 09 00 [21:09:22]MH_I2C_Read... [21:09:22]Read from MH i2c: F0 09 00 A5 09 00 84 3E 94 66 C9 DC B2 64 1D [21:09:22]GetLastDocTimeStamp 1720991152 [21:09:22]current date 1720991364 [21:09:22]FM_GetShiftState [21:09:22]SAM_PROTO_GetShiftState [21:09:22]wFMCommunicate request_size=4 [21:09:22]MH_SAM_APDU [21:09:22]CAPDU: 80 13 01 00 [21:09:22]Write to MH i2c: E2 08 00 A6 09 80 13 01 00 00 00 00 00 2C [21:09:22]Write i2c OK [21:09:22]MH_I2C_Read... [21:09:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:09:22]Read from MH i2c: E2 [21:09:22]MH_I2C_Read... [21:09:22]Read from MH i2c: E2 0E 00 [21:09:22]MH_I2C_Read... [21:09:22]Read from MH i2c: E2 0E 00 A6 09 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 AC [21:09:22]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [21:09:22]wFMCommunicate OK [21:09:22]SAM_PROTO_GetShiftState done [21:09:22]FM_GetShiftState done [21:09:22]opened in 1720917342 [21:09:22]opened+sec_in_day 1721003742 [21:09:22]quantity*price = 120019 [21:09:22]sum+1 = 120020 [21:09:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 290 14.07.2024 21:09 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165092 ФПД: 32947727626403 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T210924&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165092&fm=32947727626403&tin=02508201610067®Number=0000000000090829&sum=120000 [21:09:23]StoreToDocumentArchive [21:09:23]shift 447 fd 165092 [21:09:23]save to /storage/0447/doc_00165092 [21:09:23]save last doc name /storage/0447/doc_00165092 to /storage/kkm_last_doc_name [21:09:23]save OK [21:09:23]Clear old archive folders... [21:09:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:09:23]tlvbuf is 013294E0 [21:09:23]SAM_PROTO_ClearQueue [21:09:23]wFMCommunicate request_size=4 [21:09:23]MH_SAM_APDU [21:09:23]CAPDU: 80 09 00 00 [21:09:23]Write to MH i2c: E2 08 00 B3 09 80 09 00 00 00 00 00 00 2E [21:09:23]Write i2c OK [21:09:23]MH_I2C_Read... [21:09:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:09:23]Read from MH i2c: E2 [21:09:23]MH_I2C_Read... [21:09:23]Read from MH i2c: E2 03 00 [21:09:23]MH_I2C_Read... [21:09:23]Read from MH i2c: E2 03 00 B3 09 00 90 00 30 [21:09:23]RAPDU: 90 00 [21:09:23]wFMCommunicate OK [21:09:23]SAM_PROTO_ClearQueue done [21:09:23]KKMCreateOFDPacket [21:09:23]OFDProtocolAddRootSTLVToBuf [21:09:23]FM_MakeSignedData [21:09:23]FM_MakeSignedData [21:09:23]SAM_PROTO_SignData [21:09:23]wFMCommunicate request_size=4 [21:09:23]MH_SAM_APDU [21:09:23]CAPDU: 80 0D 01 02 [21:09:23]Write to MH i2c: E2 08 00 B4 09 80 0D 01 02 00 00 00 00 36 [21:09:23]Write i2c OK [21:09:23]MH_I2C_Read... [21:09:23]OFD Sender: No OFD packet to send [21:09:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:09:23]Read from MH i2c: E2 [21:09:23]MH_I2C_Read... [21:09:23]Read from MH i2c: E2 03 00 [21:09:23]MH_I2C_Read... [21:09:23]Read from MH i2c: E2 03 00 B4 09 00 90 00 31 [21:09:23]RAPDU: 90 00 [21:09:23]wFMCommunicate OK [21:09:23]wFMCommunicate request_size=255 [21:09:23]MH_SAM_APDU [21:09:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 47 00 00 00 00 00 37 04 06 00 B4 19 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 22 01 00 00 F4 03 04 00 84 3E 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E4 84 02 00 35 04 06 00 1D [21:09:23]Write to MH i2c: E2 02 01 B5 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 47 00 00 00 00 00 37 04 06 00 B4 19 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 22 01 00 00 F4 03 04 00 84 3E 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E4 84 02 00 35 04 06 00 1D 00 00 B6 [21:09:23]Write i2c OK [21:09:23]MH_I2C_Read... [21:09:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:09:23]Read from MH i2c: E2 [21:09:23]MH_I2C_Read... [21:09:23]Read from MH i2c: E2 03 00 [21:09:23]MH_I2C_Read... [21:09:23]Read from MH i2c: E2 03 00 B5 09 00 90 00 32 [21:09:23]RAPDU: 90 00 [21:09:23]wFMCommunicate OK [21:09:23]wFMCommunicate request_size=10 [21:09:23]MH_SAM_APDU [21:09:23]CAPDU: 80 0D 02 02 05 F7 3D 99 F0 A3 [21:09:23]Write to MH i2c: E2 0D 00 B6 09 80 0D 02 02 05 00 F7 3D 99 F0 A3 00 00 A3 [21:09:23]Write i2c OK [21:09:23]MH_I2C_Read... [21:09:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:09:24]Read from MH i2c: E2 [21:09:24]MH_I2C_Read... [21:09:24]Read from MH i2c: E2 03 00 [21:09:24]MH_I2C_Read... [21:09:24]Read from MH i2c: E2 03 00 B6 09 00 90 00 33 [21:09:24]RAPDU: 90 00 [21:09:24]wFMCommunicate OK [21:09:24]wFMCommunicate request_size=4 [21:09:24]MH_SAM_APDU [21:09:24]CAPDU: 80 0D 03 02 [21:09:24]Write to MH i2c: E2 08 00 B7 09 80 0D 03 02 00 00 00 00 3B [21:09:24]Write i2c OK [21:09:24]MH_I2C_Read... [21:09:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:09:24]Read from MH i2c: E2 [21:09:24]MH_I2C_Read... [21:09:24]Read from MH i2c: E2 0B 00 [21:09:24]MH_I2C_Read... [21:09:24]Read from MH i2c: E2 0B 00 B7 09 00 9C C2 C2 84 FE 46 A6 9B 90 00 65 [21:09:24]RAPDU: 9C C2 C2 84 FE 46 A6 9B 90 00 [21:09:24]wFMCommunicate OK [21:09:24]SAM_PROTO_SignData done [21:09:24]FM_MakeSignedData done [21:09:24]CreateOFDProtocolMessage [21:09:24]wFMCommunicate request_size=4 [21:09:24]MH_SAM_APDU [21:09:24]CAPDU: 80 11 00 00 [21:09:24]Write to MH i2c: E2 08 00 B8 09 80 11 00 00 00 00 00 00 3B [21:09:24]Write i2c OK [21:09:24]MH_I2C_Read... [21:09:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:09:24]Read from MH i2c: E2 [21:09:24]MH_I2C_Read... [21:09:24]Read from MH i2c: E2 17 00 [21:09:24]MH_I2C_Read... [21:09:24]Read from MH i2c: E2 17 00 B8 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 91 [21:09:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:09:24]wFMCommunicate OK [21:09:24]CreateOFDProtocolMessage done [21:09:24]OFDSenderStorePacket 165092 [21:09:24]StoreOFDPacket docnum=165092 [21:09:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 FC F6 07 01 26 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 47 00 00 00 00 00 37 04 06 00 B4 19 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 22 01 00 00 F4 03 04 00 84 3E 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E4 84 02 00 35 04 06 00 1D F7 3D 99 F0 A3 9C C2 C2 84 FE 46 A6 9B [21:09:24]CheckFolder [21:09:24]dirname=/storage/ofd_packets [21:09:24]CheckFolder done [21:09:24]ProducePacketName [21:09:24]name=ofd_packets/00165092 [21:09:24]NVStorageSaveData ofd_packets/00165092 [21:09:24]File name is /storage/ofd_packets/00165092 [21:09:24]Write 301 bytes [21:09:24]NVStorageSaveData done [21:09:24]OFDSenderStorePacket done [21:09:24]KKMCreateOFDPacket done [21:09:24]NVStorageSaveData kkm_last_timestamp [21:09:24]File name is /storage/kkm_last_timestamp [21:09:24]Write 4 bytes [21:09:24]NVStorageSaveData done [21:09:24]ExternCall_PrintAddStr [21:09:24]wPrintStart [21:09:24]Write to MH i2c: 01 00 00 B9 09 C2 [21:09:24]Write i2c OK [21:09:24]MH_I2C_Read... [21:09:24]Read from MH i2c: 01 [21:09:24]MH_I2C_Read... [21:09:24]Read from MH i2c: 01 07 00 [21:09:24]MH_I2C_Read... [21:09:24]Read from MH i2c: 01 07 00 B9 09 00 00 00 00 00 FF 0F D7 [21:09:24]RasterBufferAndPrint [21:09:24]line Счет N : (1)459195 [21:09:24]line ИНН: 02508201610067 [21:09:24]line Контрольно-Кассовый Чек [21:09:24]line ПРОДАЖА [21:09:24]line ТРК (МРК, ГНК) : 12 [21:09:24]line Товар: 2710124130 [21:09:24]line Аи-92-К-5 [21:09:24]line 18.240 * 65.80 [21:09:24]line = 1200.19 [21:09:24]line НДС 12% НСП 1% [21:09:24]line > о реализуемом товаре [21:09:24]line ОКРУГЛЕНИЕ: -0.19 [21:09:24]line ИТОГО: 1200.00 [21:09:24]line Внесено: 1200.00 [21:09:24]line СДАЧА: 0.00 [21:09:24]line НСП 1% : 10.62 [21:09:24]line НДС 12% : 127.45 [21:09:24]line Наличными: 1200.00 [21:09:24]line Безнал.: 0.00 [21:09:24]line Место: АЗС № 72 "Партнер Нефть" [21:09:24]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [21:09:24]line СНО: Общий режим [21:09:24]line Чек 290 14.07.2024 21:09 [21:09:24]line Смена: 447 ФФД: 1.0 [21:09:24]line ЗНМ: 0300000160 [21:09:24]line РНМ: 0000000000090829 [21:09:24]line Версия ККМ: 001 [21:09:24]line ФМ: 0000000000874718 [21:09:24]line ФД: 165092 [21:09:24]line ФПД: 32947727626403 [21:09:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T210924&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165092&fm=32947727626403&tin=02508201610067®Number=0000000000090829&sum=120000 [21:09:24]OFD Sender: Processing packet 165092 [packets to send 106, broken 105] [21:09:24]ProducePacketName [21:09:24]name=ofd_packets/00165092 [21:09:24]OFD Sender: To server: pG, [21:09:24]CommunicateWithHost lk.salyk.kg:30040 [21:09:24]ConnectInit lk.salyk.kg [21:09:24]written 0, free lines is 4095 [21:09:24]Connected sock=10 [21:09:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 FC F6 07 01 26 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 47 00 00 00 00 00 37 04 06 00 B4 19 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 22 01 00 00 F4 03 04 00 84 3E 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E4 84 02 00 35 04 06 00 1D F7 3D 99 F0 A3 9C C2 C2 84 FE 46 A6 9B [21:09:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 8F 89 47 00 1E 01 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E4 84 02 00 F4 03 04 00 10 E5 93 66 B6 04 01 00 00 11 28 DA 97 46 76 35 2D [21:09:24]CommunicateWithHost err = 0 [21:09:24]CheckOFDResponse [21:09:24]1017 (14) - 77093643461234 [21:09:24]1041 (16) - 0000000000874718 [21:09:24]1040 (4) - 165092 [21:09:24]1012 (4) - 14.07.2024 14:47 [21:09:24]1206 (1) - 0 [21:09:24]OFD Sender: Remove packet 165092 [21:09:24]ProducePacketName [21:09:24]name=ofd_packets/00165092 [21:09:24]NVStorageDeleteData [21:09:24]Write to MH i2c: 01 00 00 E3 09 EC [21:09:24]Write i2c OK [21:09:24]MH_I2C_Read... [21:09:24]Read from MH i2c: 01 [21:09:24]MH_I2C_Read... [21:09:24]Read from MH i2c: 01 07 00 [21:09:24]MH_I2C_Read... [21:09:24]Read from MH i2c: 01 07 00 E3 09 00 00 00 00 00 10 0D 10 [21:09:24]RasterBufferAndPrint [21:09:24]line [21:09:24]line [21:09:24]line [21:09:24]line [21:09:24]line [21:09:24]written 0, free lines is 3350 [21:09:24]MH_Cut [21:09:24]Write to MH i2c: D1 01 00 EA 09 01 C5 [21:09:24]Write i2c OK [21:09:24]MH_I2C_Read... [21:09:24]Read from MH i2c: D1 [21:09:24]MH_I2C_Read... [21:09:24]Read from MH i2c: D1 01 00 [21:09:24]MH_I2C_Read... [21:09:24]Read from MH i2c: D1 01 00 EA 09 00 C4 [21:09:24]Write to MH i2c: 01 00 00 EB 09 F4 [21:09:24]Write i2c OK [21:09:24]MH_I2C_Read... [21:09:25]OFD Sender: No OFD packet to send [21:09:25]*** Cut start [21:09:25]*** Partial cut [21:09:25]*** CUTSNS_PIN = 1 [21:09:25]*** CUTSNS_PIN = 0 [21:09:25]*** Brake cut motor [21:09:26]Read from MH i2c: 01 [21:09:26]MH_I2C_Read... [21:09:26]*** Stop cut motor [21:09:26]*** Cut end [21:09:26]Read from MH i2c: 01 07 00 [21:09:26]MH_I2C_Read... [21:09:26]Read from MH i2c: 01 07 00 EB 09 00 00 00 00 00 FF 0F 09 [21:09:26]process_action close_receipt done [21:09:26]requested_data is exist [21:09:26]produce_requested_data [21:09:26]requested_item fm.sn is exist - process it [21:09:26]wFMCommunicate request_size=4 [21:09:26]MH_SAM_APDU [21:09:26]CAPDU: 80 11 00 00 [21:09:26]Write to MH i2c: E2 08 00 EC 09 80 11 00 00 00 00 00 00 6F [21:09:26]Write i2c OK [21:09:26]MH_I2C_Read... [21:09:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:09:26]Read from MH i2c: E2 [21:09:26]MH_I2C_Read... [21:09:26]Read from MH i2c: E2 17 00 [21:09:26]MH_I2C_Read... [21:09:26]Read from MH i2c: E2 17 00 EC 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C5 [21:09:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:09:26]wFMCommunicate OK [21:09:26]requested_item fd.num is exist - process it [21:09:26]SAM_PROTO_GetFieldsCounters [21:09:26]wFMCommunicate request_size=4 [21:09:26]MH_SAM_APDU [21:09:26]CAPDU: 80 13 00 00 [21:09:26]Write to MH i2c: E2 08 00 ED 09 80 13 00 00 00 00 00 00 72 [21:09:26]Write i2c OK [21:09:26]MH_I2C_Read... [21:09:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:09:26]Read from MH i2c: E2 [21:09:26]MH_I2C_Read... [21:09:26]Read from MH i2c: E2 62 00 [21:09:26]MH_I2C_Read... [21:09:26]Read from MH i2c: E2 62 00 ED 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E4 84 02 00 0E 04 04 00 BF 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 2C [21:09:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E4 84 02 00 0E 04 04 00 BF 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 [21:09:26]wFMCommunicate OK [21:09:26]SAM_PROTO_GetFieldsCounters done [21:09:26]requested_item shift.num is exist - process it [21:09:26]requested_item shift.opened is exist - process it [21:09:26]req_shift_opened [21:09:26]FM_GetShiftState [21:09:26]SAM_PROTO_GetShiftState [21:09:26]wFMCommunicate request_size=4 [21:09:26]MH_SAM_APDU [21:09:26]CAPDU: 80 13 01 00 [21:09:26]Write to MH i2c: E2 08 00 EE 09 80 13 01 00 00 00 00 00 74 [21:09:26]Write i2c OK [21:09:26]MH_I2C_Read... [21:09:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:09:26]Read from MH i2c: E2 [21:09:26]MH_I2C_Read... [21:09:26]Read from MH i2c: E2 0E 00 [21:09:26]MH_I2C_Read... [21:09:26]Read from MH i2c: E2 0E 00 EE 09 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 F4 [21:09:26]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [21:09:26]wFMCommunicate OK [21:09:26]SAM_PROTO_GetShiftState done [21:09:26]FM_GetShiftState done [21:09:26]req_shift_opened done [21:09:26]requested_item shift.open_date is exist - process it [21:09:26]req_shift_open_date [21:09:26]req_shift_open_date done [21:09:26]produce_requested_data done [21:09:26]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165092,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [21:09:26]process_action_free close_receipt [21:09:26]json_value_free [21:09:26]json_value_free done [21:09:26]process_json_proto returns [21:09:26]Send response to host [21:09:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165092,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [21:09:26]free response buf [21:09:26]execute_script done [21:09:26]execute_script returns [21:09:26]free content buf [21:09:26]Sock 7.Close socket [21:09:26]Sock 7.Thread stoped [21:09:30]OFD Sender: No OFD packet to send [21:09:35]OFD Sender: No OFD packet to send [21:09:40]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:35]OFD Sender: No OFD packet to send [21:13:40]OFD Sender: No OFD packet to send [21:13:45]OFD Sender: No OFD packet to send [21:13:50]OFD Sender: No OFD packet to send [21:13:55]OFD Sender: No OFD packet to send [21:14:00]OFD Sender: No OFD packet to send [21:14:05]OFD Sender: No OFD packet to send [21:14:10]OFD Sender: No OFD packet to send [21:14:15]OFD Sender: No OFD packet to send [21:14:20]OFD Sender: No OFD packet to send [21:14:25]OFD Sender: No OFD packet to send [21:14:30]OFD Sender: No OFD packet to send [21:14:35]OFD Sender: No OFD packet to send [21:14:40]OFD Sender: No OFD packet to send [21:14:45]OFD Sender: No OFD packet to send [21:14:50]OFD Sender: No OFD packet to send [21:14:55]OFD Sender: No OFD packet to send [21:15:00]OFD Sender: No OFD packet to send [21:15:05]OFD Sender: No OFD packet to send [21:15:10]OFD Sender: No OFD packet to send [21:15:15]OFD Sender: No OFD packet to send [21:15:20]OFD Sender: No OFD packet to send [21:15:25]OFD Sender: No OFD packet to send [21:15:30]OFD Sender: No OFD packet to send [21:15:35]OFD Sender: No OFD packet to send [21:15:40]OFD Sender: No OFD packet to send [21:15:45]OFD Sender: No OFD packet to send [21:15:50]OFD Sender: No OFD packet to send [21:15:55]OFD Sender: No OFD packet to send [21:16:00]OFD Sender: No OFD packet to send [21:16:05]OFD Sender: No OFD packet to send [21:16:10]OFD Sender: No OFD packet to send [21:16:15]OFD Sender: No OFD packet to send [21:16:20]OFD Sender: No OFD packet to send [21:16:25]OFD Sender: No OFD packet to send [21:16:30]OFD Sender: No OFD packet to send [21:16:35]OFD Sender: No OFD packet to send [21:16:40]OFD Sender: No OFD packet to send [21:16:45]OFD Sender: No OFD packet to send [21:16:50]OFD Sender: No OFD packet to send [21:16:55]OFD Sender: No OFD packet to send [21:17:00]OFD Sender: No OFD packet to send [21:17:05]OFD Sender: No OFD packet to send [21:17:10]OFD Sender: No OFD packet to send [21:17:15]OFD Sender: No OFD packet to send [21:17:20]OFD Sender: No OFD packet to send [21:17:25]OFD Sender: No OFD packet to send [21:17:30]OFD Sender: No OFD packet to send [21:17:35]OFD Sender: No OFD packet to send [21:17:40]OFD Sender: No OFD packet to send [21:17:45]OFD Sender: No OFD packet to send [21:17:50]OFD Sender: No OFD packet to send [21:17:55]OFD Sender: No OFD packet to send [21:18:00]OFD Sender: No OFD packet to send [21:18:05]OFD Sender: No OFD packet to send [21:18:10]OFD Sender: No OFD packet to send [21:18:15]OFD Sender: No OFD packet to send [21:18:20]OFD Sender: No OFD packet to send [21:18:25]OFD Sender: No OFD packet to send [21:18:28]accept exits with 9 [21:18:28]New connection [21:18:28]New thread 3066928484 created [21:18:28]Thread 3066785124 joined [21:18:28]Waiting for new connection... [21:18:28] Sock 9.Parse request [21:18:28]Sock 9.Check first char [21:18:28]Sock 9.First char is OK [21:18:28]request: POST /json_proto HTTP/1.0 [21:18:28]Method: POST [21:18:28]URL: /json_proto [21:18:28]Method is POST - this is cgi request [21:18:28]url: /json_proto [21:18:28]query_string will be loaded in cgi processing [21:18:28]execute_cgi json_proto POST (null) [21:18:28]execute_cgi path=json_proto method=POST [21:18:28]POST find Content-Length [21:18:28]Host: 172.17.56.4:8080 [21:18:28]Content-Length: 677 [21:18:28]Content-Type: application/json [21:18:28] [21:18:28]POST finish read [21:18:28]Found Content-Length = 677 [21:18:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459196", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "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:18:28]execute_script... [21:18: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)459196", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "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:18:28]POST & json_proto [21:18:28]process_json_proto [21:18:28]json parsed OK: [21:18:28]protocol is kg_v1.0 [21:18:28]action value=close_receipt [21:18:28]process_action close_receipt [21:18:28]cmd_close_receipt [21:18:28]MH_GetDate [21:18:28]Write to MH i2c: F0 00 00 EF 09 E7 [21:18:28]Write i2c OK [21:18:28]MH_I2C_Read... [21:18:28]Read from MH i2c: F0 [21:18:28]MH_I2C_Read... [21:18:28]Read from MH i2c: F0 09 00 [21:18:28]MH_I2C_Read... [21:18:28]Read from MH i2c: F0 09 00 EF 09 00 A6 40 94 66 C9 DC B2 64 8B [21:18:28]GetLastDocTimeStamp 1720991364 [21:18:28]current date 1720991910 [21:18:28]FM_GetShiftState [21:18:28]SAM_PROTO_GetShiftState [21:18:28]wFMCommunicate request_size=4 [21:18:28]MH_SAM_APDU [21:18:28]CAPDU: 80 13 01 00 [21:18:28]Write to MH i2c: E2 08 00 F0 09 80 13 01 00 00 00 00 00 76 [21:18:28]Write i2c OK [21:18:28]MH_I2C_Read... [21:18:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:18:28]Read from MH i2c: E2 [21:18:28]MH_I2C_Read... [21:18:28]Read from MH i2c: E2 0E 00 [21:18:28]MH_I2C_Read... [21:18:28]Read from MH i2c: E2 0E 00 F0 09 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 F6 [21:18:28]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [21:18:28]wFMCommunicate OK [21:18:28]SAM_PROTO_GetShiftState done [21:18:28]FM_GetShiftState done [21:18:28]opened in 1720917342 [21:18:28]opened+sec_in_day 1721003742 [21:18:28]quantity*price = 30004 [21:18:28]sum+1 = 30006 [21:18:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 291 14.07.2024 21:18 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165093 ФПД: 218192839521329 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T211830&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165093&fm=218192839521329&tin=02508201610067®Number=0000000000090829&sum=30000 [21:18:29]StoreToDocumentArchive [21:18:29]shift 447 fd 165093 [21:18:29]save to /storage/0447/doc_00165093 [21:18:29]save last doc name /storage/0447/doc_00165093 to /storage/kkm_last_doc_name [21:18:29]save OK [21:18:29]Clear old archive folders... [21:18:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:18:29]tlvbuf is 0135DB40 [21:18:29]SAM_PROTO_ClearQueue [21:18:29]wFMCommunicate request_size=4 [21:18:29]MH_SAM_APDU [21:18:29]CAPDU: 80 09 00 00 [21:18:29]Write to MH i2c: E2 08 00 FD 09 80 09 00 00 00 00 00 00 78 [21:18:29]Write i2c OK [21:18:29]MH_I2C_Read... [21:18:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:18:30]Read from MH i2c: E2 [21:18:30]MH_I2C_Read... [21:18:30]Read from MH i2c: E2 03 00 [21:18:30]MH_I2C_Read... [21:18:30]Read from MH i2c: E2 03 00 FD 09 00 90 00 7A [21:18:30]RAPDU: 90 00 [21:18:30]wFMCommunicate OK [21:18:30]SAM_PROTO_ClearQueue done [21:18:30]KKMCreateOFDPacket [21:18:30]OFDProtocolAddRootSTLVToBuf [21:18:30]FM_MakeSignedData [21:18:30]FM_MakeSignedData [21:18:30]SAM_PROTO_SignData [21:18:30]wFMCommunicate request_size=4 [21:18:30]MH_SAM_APDU [21:18:30]CAPDU: 80 0D 01 02 [21:18:30]Write to MH i2c: E2 08 00 FE 09 80 0D 01 02 00 00 00 00 80 [21:18:30]Write i2c OK [21:18:30]MH_I2C_Read... [21:18:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:18:30]Read from MH i2c: E2 [21:18:30]MH_I2C_Read... [21:18:30]Read from MH i2c: E2 03 00 [21:18:30]MH_I2C_Read... [21:18:30]Read from MH i2c: E2 03 00 FE 09 00 90 00 7B [21:18:30]RAPDU: 90 00 [21:18:30]wFMCommunicate OK [21:18:30]wFMCommunicate request_size=255 [21:18:30]MH_SAM_APDU [21:18:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 A6 40 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E5 84 02 00 35 04 06 00 C6 [21:18:30]Write to MH i2c: E2 02 01 FF 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 A6 40 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E5 84 02 00 35 04 06 00 C6 00 00 AF [21:18:30]Write i2c OK [21:18:30]MH_I2C_Read... [21:18:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:18:30]Read from MH i2c: E2 [21:18:30]MH_I2C_Read... [21:18:30]Read from MH i2c: E2 03 00 [21:18:30]MH_I2C_Read... [21:18:30]Read from MH i2c: E2 03 00 FF 09 00 90 00 7C [21:18:30]RAPDU: 90 00 [21:18:30]wFMCommunicate OK [21:18:30]wFMCommunicate request_size=10 [21:18:30]MH_SAM_APDU [21:18:30]CAPDU: 80 0D 02 02 05 71 FA B1 34 31 [21:18:30]Write to MH i2c: E2 0D 00 00 0A 80 0D 02 02 05 00 71 FA B1 34 31 00 00 0F [21:18:30]Write i2c OK [21:18:30]MH_I2C_Read... [21:18:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:18:30]Read from MH i2c: E2 [21:18:30]MH_I2C_Read... [21:18:30]Read from MH i2c: E2 03 00 [21:18:30]MH_I2C_Read... [21:18:30]Read from MH i2c: E2 03 00 00 0A 00 90 00 7E [21:18:30]RAPDU: 90 00 [21:18:30]wFMCommunicate OK [21:18:30]wFMCommunicate request_size=4 [21:18:30]MH_SAM_APDU [21:18:30]CAPDU: 80 0D 03 02 [21:18:30]Write to MH i2c: E2 08 00 01 0A 80 0D 03 02 00 00 00 00 86 [21:18:30]Write i2c OK [21:18:30]MH_I2C_Read... [21:18:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:18:30]Read from MH i2c: E2 [21:18:30]MH_I2C_Read... [21:18:30]Read from MH i2c: E2 0B 00 [21:18:30]MH_I2C_Read... [21:18:30]Read from MH i2c: E2 0B 00 01 0A 00 1D A1 05 1D CC 75 7E F4 90 00 1A [21:18:30]RAPDU: 1D A1 05 1D CC 75 7E F4 90 00 [21:18:30]wFMCommunicate OK [21:18:30]SAM_PROTO_SignData done [21:18:30]FM_MakeSignedData done [21:18:30]CreateOFDProtocolMessage [21:18:30]wFMCommunicate request_size=4 [21:18:30]MH_SAM_APDU [21:18:30]CAPDU: 80 11 00 00 [21:18:30]Write to MH i2c: E2 08 00 02 0A 80 11 00 00 00 00 00 00 86 [21:18:30]Write i2c OK [21:18:30]MH_I2C_Read... [21:18:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:18:30]Read from MH i2c: E2 [21:18:30]MH_I2C_Read... [21:18:30]Read from MH i2c: E2 17 00 [21:18:30]MH_I2C_Read... [21:18:30]Read from MH i2c: E2 17 00 02 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DC [21:18:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:18:30]wFMCommunicate OK [21:18:30]CreateOFDProtocolMessage done [21:18:30]OFDSenderStorePacket 165093 [21:18:30]StoreOFDPacket docnum=165093 [21:18:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 A7 E5 07 01 B2 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 A6 40 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E5 84 02 00 35 04 06 00 C6 71 FA B1 34 31 1D A1 05 1D CC 75 7E F4 [21:18:30]CheckFolder [21:18:30]dirname=/storage/ofd_packets [21:18:30]CheckFolder done [21:18:30]ProducePacketName [21:18:30]name=ofd_packets/00165093 [21:18:30]NVStorageSaveData ofd_packets/00165093 [21:18:30]File name is /storage/ofd_packets/00165093 [21:18:30]Write 301 bytes [21:18:30]NVStorageSaveData done [21:18:30]OFDSenderStorePacket done [21:18:30]KKMCreateOFDPacket done [21:18:30]NVStorageSaveData kkm_last_timestamp [21:18:30]File name is /storage/kkm_last_timestamp [21:18:30]Write 4 bytes [21:18:30]NVStorageSaveData done [21:18:30]OFD Sender: Processing packet 165093 [packets to send 106, broken 105] [21:18:30]ProducePacketName [21:18:30]name=ofd_packets/00165093 [21:18:30]OFD Sender: To server: pG, [21:18:30]CommunicateWithHost lk.salyk.kg:30040 [21:18:30]ConnectInit lk.salyk.kg [21:18:30]ExternCall_PrintAddStr [21:18:30]wPrintStart [21:18:30]Write to MH i2c: 01 00 00 03 0A 0D [21:18:30]Write i2c OK [21:18:30]MH_I2C_Read... [21:18:30]Read from MH i2c: 01 [21:18:30]MH_I2C_Read... [21:18:30]Read from MH i2c: 01 07 00 [21:18:30]MH_I2C_Read... [21:18:30]Read from MH i2c: 01 07 00 03 0A 00 00 00 00 00 FF 0F 22 [21:18:30]RasterBufferAndPrint [21:18:30]line Счет N : (1)459196 [21:18:30]line ИНН: 02508201610067 [21:18:30]line Контрольно-Кассовый Чек [21:18:30]line ПРОДАЖА [21:18:30]line ТРК (МРК, ГНК) : 22 [21:18:30]line Товар: 2710124130 [21:18:30]line Аи-92-К-5 [21:18:30]line 4.560 * 65.80 [21:18:30]line = 300.05 [21:18:30]line НДС 12% НСП 1% [21:18:30]line > о реализуемом товаре [21:18:30]line ОКРУГЛЕНИЕ: -0.05 [21:18:30]line ИТОГО: 300.00 [21:18:30]line Внесено: 300.00 [21:18:30]line СДАЧА: 0.00 [21:18:30]line НСП 1% : 2.65 [21:18:30]line НДС 12% : 31.86 [21:18:30]line Наличными: 300.00 [21:18:30]line Безнал.: 0.00 [21:18:30]line Место: АЗС № 72 "Партнер Нефть" [21:18:30]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [21:18:30]line СНО: Общий режим [21:18:30]line Чек 291 14.07.2024 21:18 [21:18:30]line Смена: 447 ФФД: 1.0 [21:18:30]line ЗНМ: 0300000160 [21:18:30]line РНМ: 0000000000090829 [21:18:30]line Версия ККМ: 001 [21:18:30]line ФМ: 0000000000874718 [21:18:30]line ФД: 165093 [21:18:30]line ФПД: 218192839521329 [21:18:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T211830&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165093&fm=218192839521329&tin=02508201610067®Number=0000000000090829&sum=30000 [21:18:30]Connected sock=11 [21:18:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 A7 E5 07 01 B2 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 A6 40 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E5 84 02 00 35 04 06 00 C6 71 FA B1 34 31 1D A1 05 1D CC 75 7E F4 [21:18:30]written 0, free lines is 4095 [21:18:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 44 F3 47 00 D0 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E5 84 02 00 F4 03 04 00 32 E7 93 66 B6 04 01 00 00 7B 43 F0 2B 9C 6F B7 D9 [21:18:31]CommunicateWithHost err = 0 [21:18:31]CheckOFDResponse [21:18:31]1017 (14) - 77093643461234 [21:18:31]1041 (16) - 0000000000874718 [21:18:31]1040 (4) - 165093 [21:18:31]1012 (4) - 14.07.2024 14:56 [21:18:31]1206 (1) - 0 [21:18:31]OFD Sender: Remove packet 165093 [21:18:31]ProducePacketName [21:18:31]name=ofd_packets/00165093 [21:18:31]NVStorageDeleteData [21:18:31]Write to MH i2c: 01 00 00 2D 0A 37 [21:18:31]Write i2c OK [21:18:31]MH_I2C_Read... [21:18:31]Read from MH i2c: 01 [21:18:31]MH_I2C_Read... [21:18:31]Read from MH i2c: 01 07 00 [21:18:31]MH_I2C_Read... [21:18:31]Read from MH i2c: 01 07 00 2D 0A 00 00 00 00 00 05 0D 50 [21:18:31]RasterBufferAndPrint [21:18:31]line [21:18:31]line [21:18:31]line [21:18:31]line [21:18:31]line [21:18:31]written 0, free lines is 3339 [21:18:31]MH_Cut [21:18:31]Write to MH i2c: D1 01 00 34 0A 01 10 [21:18:31]Write i2c OK [21:18:31]MH_I2C_Read... [21:18:31]Read from MH i2c: D1 [21:18:31]MH_I2C_Read... [21:18:31]Read from MH i2c: D1 01 00 [21:18:31]MH_I2C_Read... [21:18:31]Read from MH i2c: D1 01 00 34 0A 00 0F [21:18:31]Write to MH i2c: 01 00 00 35 0A 3F [21:18:31]Write i2c OK [21:18:31]MH_I2C_Read... [21:18:31]OFD Sender: No OFD packet to send [21:18:31]*** Cut start [21:18:31]*** Partial cut [21:18:31]*** CUTSNS_PIN = 1 [21:18:32]*** CUTSNS_PIN = 0 [21:18:32]*** Brake cut motor [21:18:32]Read from MH i2c: 01 [21:18:32]MH_I2C_Read... [21:18:32]*** Stop cut motor [21:18:32]*** Cut end [21:18:32]Read from MH i2c: 01 07 00 [21:18:32]MH_I2C_Read... [21:18:32]Read from MH i2c: 01 07 00 35 0A 00 00 00 00 00 FF 0F 54 [21:18:32]process_action close_receipt done [21:18:32]requested_data is exist [21:18:32]produce_requested_data [21:18:32]requested_item fm.sn is exist - process it [21:18:32]wFMCommunicate request_size=4 [21:18:32]MH_SAM_APDU [21:18:32]CAPDU: 80 11 00 00 [21:18:32]Write to MH i2c: E2 08 00 36 0A 80 11 00 00 00 00 00 00 BA [21:18:32]Write i2c OK [21:18:32]MH_I2C_Read... [21:18:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:18:32]Read from MH i2c: E2 [21:18:32]MH_I2C_Read... [21:18:32]Read from MH i2c: E2 17 00 [21:18:32]MH_I2C_Read... [21:18:32]Read from MH i2c: E2 17 00 36 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 10 [21:18:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:18:32]wFMCommunicate OK [21:18:32]requested_item fd.num is exist - process it [21:18:32]SAM_PROTO_GetFieldsCounters [21:18:32]wFMCommunicate request_size=4 [21:18:32]MH_SAM_APDU [21:18:32]CAPDU: 80 13 00 00 [21:18:32]Write to MH i2c: E2 08 00 37 0A 80 13 00 00 00 00 00 00 BD [21:18:32]Write i2c OK [21:18:32]MH_I2C_Read... [21:18:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:18:32]Read from MH i2c: E2 [21:18:32]MH_I2C_Read... [21:18:32]Read from MH i2c: E2 62 00 [21:18:32]MH_I2C_Read... [21:18:32]Read from MH i2c: E2 62 00 37 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E5 84 02 00 0E 04 04 00 BF 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 7B [21:18:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E5 84 02 00 0E 04 04 00 BF 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 [21:18:32]wFMCommunicate OK [21:18:32]SAM_PROTO_GetFieldsCounters done [21:18:32]requested_item shift.num is exist - process it [21:18:32]requested_item shift.opened is exist - process it [21:18:32]req_shift_opened [21:18:32]FM_GetShiftState [21:18:32]SAM_PROTO_GetShiftState [21:18:32]wFMCommunicate request_size=4 [21:18:32]MH_SAM_APDU [21:18:32]CAPDU: 80 13 01 00 [21:18:32]Write to MH i2c: E2 08 00 38 0A 80 13 01 00 00 00 00 00 BF [21:18:32]Write i2c OK [21:18:32]MH_I2C_Read... [21:18:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:18:32]Read from MH i2c: E2 [21:18:32]MH_I2C_Read... [21:18:32]Read from MH i2c: E2 0E 00 [21:18:32]MH_I2C_Read... [21:18:32]Read from MH i2c: E2 0E 00 38 0A 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 3F [21:18:32]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [21:18:32]wFMCommunicate OK [21:18:32]SAM_PROTO_GetShiftState done [21:18:32]FM_GetShiftState done [21:18:32]req_shift_opened done [21:18:32]requested_item shift.open_date is exist - process it [21:18:32]req_shift_open_date [21:18:32]req_shift_open_date done [21:18:32]produce_requested_data done [21:18:32]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165093,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [21:18:32]process_action_free close_receipt [21:18:32]json_value_free [21:18:32]json_value_free done [21:18:32]process_json_proto returns [21:18:32]Send response to host [21:18:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165093,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [21:18:32]free response buf [21:18:32]execute_script done [21:18:32]execute_script returns [21:18:32]free content buf [21:18:32]Sock 9.Close socket [21:18:32]Sock 9.Thread stoped [21:18:36]OFD Sender: No OFD packet to send [21:18:41]OFD Sender: No OFD packet to send [21:18:46]OFD Sender: No OFD packet to send [21:18:51]OFD Sender: No OFD packet to send [21:18:56]OFD Sender: No OFD packet to send [21:19:01]OFD Sender: No OFD packet to send [21:19:06]OFD Sender: No OFD packet to send [21:19:11]OFD Sender: No OFD packet to send [21:19:16]OFD Sender: No OFD packet to send [21:19:21]OFD Sender: No OFD packet to send [21:19:26]OFD Sender: No OFD packet to send [21:19:31]OFD Sender: No OFD packet to send [21:19:36]OFD Sender: No OFD packet to send [21:19:41]OFD Sender: No OFD packet to send [21:19:46]OFD Sender: No OFD packet to send [21:19:51]OFD Sender: No OFD packet to send [21:19:56]OFD Sender: No OFD packet to send [21:20:01]OFD Sender: No OFD packet to send [21:20:06]OFD Sender: No OFD packet to send [21:20:11]OFD Sender: No OFD packet to send [21:20:16]OFD Sender: No OFD packet to send [21:20:21]OFD Sender: No OFD packet to send [21:20:26]OFD Sender: No OFD packet to send [21:20:31]OFD Sender: No OFD packet to send [21:20:36]OFD Sender: No OFD packet to send [21:20:41]OFD Sender: No OFD packet to send [21:20:46]OFD Sender: No OFD packet to send [21:20:51]OFD Sender: No OFD packet to send [21:20:56]OFD Sender: No OFD packet to send [21:21:01]OFD Sender: No OFD packet to send [21:21:06]OFD Sender: No OFD packet to send [21:21:11]OFD Sender: No OFD packet to send [21:21:16]OFD Sender: No OFD packet to send [21:21:21]OFD Sender: No OFD packet to send [21:21:26]OFD Sender: No OFD packet to send [21:21:31]OFD Sender: No OFD packet to send [21:21:36]OFD Sender: No OFD packet to send [21:21:41]OFD Sender: No OFD packet to send [21:21:46]OFD Sender: No OFD packet to send [21:21:51]OFD Sender: No OFD packet to send [21:21:56]OFD Sender: No OFD packet to send [21:22:01]OFD Sender: No OFD packet to send [21:22:06]OFD Sender: No OFD packet to send [21:22:11]OFD Sender: No OFD packet to send [21:22:16]OFD Sender: No OFD packet to send [21:22:21]OFD Sender: No OFD packet to send [21:22:26]OFD Sender: No OFD packet to send [21:22:31]OFD Sender: No OFD packet to send [21:22:36]OFD Sender: No OFD packet to send [21:22:41]OFD Sender: No OFD packet to send [21:22:46]OFD Sender: No OFD packet to send [21:22:51]OFD Sender: No OFD packet to send [21:22:56]OFD Sender: No OFD packet to send [21:23:01]OFD Sender: No OFD packet to send [21:23:06]OFD Sender: No OFD packet to send [21:23:11]OFD Sender: No OFD packet to send [21:23: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:16]OFD Sender: No OFD packet to send [21:24:21]OFD Sender: No OFD packet to send [21:24:26]OFD Sender: No OFD packet to send [21:24:31]OFD Sender: No OFD packet to send [21:24:36]OFD Sender: No OFD packet to send [21:24:41]OFD Sender: No OFD packet to send [21:24:46]OFD Sender: No OFD packet to send [21:24:51]OFD Sender: No OFD packet to send [21:24:56]OFD Sender: No OFD packet to send [21:25:01]OFD Sender: No OFD packet to send [21:25:06]OFD Sender: No OFD packet to send [21:25:11]OFD Sender: No OFD packet to send [21:25:17]OFD Sender: No OFD packet to send [21:25:22]OFD Sender: No OFD packet to send [21:25:27]OFD Sender: No OFD packet to send [21:25:32]OFD Sender: No OFD packet to send [21:25:37]OFD Sender: No OFD packet to send [21:25:42]OFD Sender: No OFD packet to send [21:25:47]OFD Sender: No OFD packet to send [21:25:52]OFD Sender: No OFD packet to send [21:25:53]accept exits with 7 [21:25:53]New connection [21:25:53]New thread 3066785124 created [21:25:53]Thread 3066928484 joined [21:25:53]Waiting for new connection... [21:25:53] Sock 7.Parse request [21:25:53]Sock 7.Check first char [21:25:53]Sock 7.First char is OK [21:25:53]request: POST /json_proto HTTP/1.0 [21:25:53]Method: POST [21:25:53]URL: /json_proto [21:25:53]Method is POST - this is cgi request [21:25:53]url: /json_proto [21:25:53]query_string will be loaded in cgi processing [21:25:53]execute_cgi json_proto POST (null) [21:25:53]execute_cgi path=json_proto method=POST [21:25:53]POST find Content-Length [21:25:53]Host: 172.17.56.4:8080 [21:25:53]Content-Length: 790 [21:25:53]Content-Type: application/json [21:25:53] [21:25:53]POST finish read [21:25:53]Found Content-Length = 790 [21:25:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459197", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 7.670, "sum" : 500.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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:25:53]execute_script... [21:25: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)459197", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 7.670, "sum" : 500.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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:25:53]POST & json_proto [21:25:53]process_json_proto [21:25:53]json parsed OK: [21:25:53]protocol is kg_v1.0 [21:25:53]action value=close_receipt [21:25:53]process_action close_receipt [21:25:53]cmd_close_receipt [21:25:53]MH_GetDate [21:25:53]Write to MH i2c: F0 00 00 39 0A 32 [21:25:53]Write i2c OK [21:25:53]MH_I2C_Read... [21:25:53]Read from MH i2c: F0 [21:25:53]MH_I2C_Read... [21:25:53]Read from MH i2c: F0 09 00 [21:25:53]MH_I2C_Read... [21:25:53]Read from MH i2c: F0 09 00 39 0A 00 63 42 94 66 C9 DC B2 64 95 [21:25:53]GetLastDocTimeStamp 1720991910 [21:25:53]current date 1720992355 [21:25:53]FM_GetShiftState [21:25:53]SAM_PROTO_GetShiftState [21:25:53]wFMCommunicate request_size=4 [21:25:53]MH_SAM_APDU [21:25:53]CAPDU: 80 13 01 00 [21:25:53]Write to MH i2c: E2 08 00 3A 0A 80 13 01 00 00 00 00 00 C1 [21:25:53]Write i2c OK [21:25:53]MH_I2C_Read... [21:25:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:25:54]Read from MH i2c: E2 [21:25:54]MH_I2C_Read... [21:25:54]Read from MH i2c: E2 0E 00 [21:25:54]MH_I2C_Read... [21:25:54]Read from MH i2c: E2 0E 00 3A 0A 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 41 [21:25:54]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [21:25:54]wFMCommunicate OK [21:25:54]SAM_PROTO_GetShiftState done [21:25:54]FM_GetShiftState done [21:25:54]opened in 1720917342 [21:25:54]opened+sec_in_day 1721003742 [21:25:54]quantity*price = 50023 [21:25:54]sum+1 = 50025 [21:25:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.24 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.24 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 292 14.07.2024 21:25 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 165094 ФПД: 26982203062781 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T212555&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165094&fm=26982203062781&tin=02508201610067®Number=0000000000090829&sum=50024 [21:25:55]StoreToDocumentArchive [21:25:55]shift 447 fd 165094 [21:25:55]save to /storage/0447/doc_00165094 [21:25:55]save last doc name /storage/0447/doc_00165094 to /storage/kkm_last_doc_name [21:25:55]save OK [21:25:55]Clear old archive folders... [21:25:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:25:55]tlvbuf is 013774A0 [21:25:55]SAM_PROTO_ClearQueue [21:25:55]wFMCommunicate request_size=4 [21:25:55]MH_SAM_APDU [21:25:55]CAPDU: 80 09 00 00 [21:25:55]Write to MH i2c: E2 08 00 47 0A 80 09 00 00 00 00 00 00 C3 [21:25:55]Write i2c OK [21:25:55]MH_I2C_Read... [21:25:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:25:55]Read from MH i2c: E2 [21:25:55]MH_I2C_Read... [21:25:55]Read from MH i2c: E2 03 00 [21:25:55]MH_I2C_Read... [21:25:55]Read from MH i2c: E2 03 00 47 0A 00 90 00 C5 [21:25:55]RAPDU: 90 00 [21:25:55]wFMCommunicate OK [21:25:55]SAM_PROTO_ClearQueue done [21:25:55]KKMCreateOFDPacket [21:25:55]OFDProtocolAddRootSTLVToBuf [21:25:55]FM_MakeSignedData [21:25:55]FM_MakeSignedData [21:25:55]SAM_PROTO_SignData [21:25:55]wFMCommunicate request_size=4 [21:25:55]MH_SAM_APDU [21:25:55]CAPDU: 80 0D 01 02 [21:25:55]Write to MH i2c: E2 08 00 48 0A 80 0D 01 02 00 00 00 00 CB [21:25:55]Write i2c OK [21:25:55]MH_I2C_Read... [21:25:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:25:55]Read from MH i2c: E2 [21:25:55]MH_I2C_Read... [21:25:55]Read from MH i2c: E2 03 00 [21:25:55]MH_I2C_Read... [21:25:55]Read from MH i2c: E2 03 00 48 0A 00 90 00 C6 [21:25:55]RAPDU: 90 00 [21:25:55]wFMCommunicate OK [21:25:55]wFMCommunicate request_size=255 [21:25:55]MH_SAM_APDU [21:25:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 63 42 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E6 84 02 00 35 04 06 00 18 [21:25:55]Write to MH i2c: E2 02 01 49 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 63 42 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E6 84 02 00 35 04 06 00 18 00 00 9A [21:25:55]Write i2c OK [21:25:55]MH_I2C_Read... [21:25:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:25:55]Read from MH i2c: E2 [21:25:55]MH_I2C_Read... [21:25:55]Read from MH i2c: E2 03 00 [21:25:55]MH_I2C_Read... [21:25:55]Read from MH i2c: E2 03 00 49 0A 00 90 00 C7 [21:25:55]RAPDU: 90 00 [21:25:55]wFMCommunicate OK [21:25:55]wFMCommunicate request_size=10 [21:25:55]MH_SAM_APDU [21:25:55]CAPDU: 80 0D 02 02 05 8A 48 A0 F9 FD [21:25:55]Write to MH i2c: E2 0D 00 4A 0A 80 0D 02 02 05 00 8A 48 A0 F9 FD 00 00 40 [21:25:55]Write i2c OK [21:25:55]MH_I2C_Read... [21:25:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:25:55]Read from MH i2c: E2 [21:25:55]MH_I2C_Read... [21:25:55]Read from MH i2c: E2 03 00 [21:25:55]MH_I2C_Read... [21:25:55]Read from MH i2c: E2 03 00 4A 0A 00 90 00 C8 [21:25:55]RAPDU: 90 00 [21:25:55]wFMCommunicate OK [21:25:55]wFMCommunicate request_size=4 [21:25:55]MH_SAM_APDU [21:25:55]CAPDU: 80 0D 03 02 [21:25:55]Write to MH i2c: E2 08 00 4B 0A 80 0D 03 02 00 00 00 00 D0 [21:25:55]Write i2c OK [21:25:55]MH_I2C_Read... [21:25:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:25:55]Read from MH i2c: E2 [21:25:55]MH_I2C_Read... [21:25:55]Read from MH i2c: E2 0B 00 [21:25:55]MH_I2C_Read... [21:25:55]Read from MH i2c: E2 0B 00 4B 0A 00 BB 83 BC 4C 2B BA 16 35 90 00 47 [21:25:55]RAPDU: BB 83 BC 4C 2B BA 16 35 90 00 [21:25:55]wFMCommunicate OK [21:25:55]SAM_PROTO_SignData done [21:25:55]FM_MakeSignedData done [21:25:55]CreateOFDProtocolMessage [21:25:55]wFMCommunicate request_size=4 [21:25:55]MH_SAM_APDU [21:25:55]CAPDU: 80 11 00 00 [21:25:55]Write to MH i2c: E2 08 00 4C 0A 80 11 00 00 00 00 00 00 D0 [21:25:55]Write i2c OK [21:25:55]MH_I2C_Read... [21:25:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:25:55]Read from MH i2c: E2 [21:25:55]MH_I2C_Read... [21:25:55]Read from MH i2c: E2 17 00 [21:25:55]MH_I2C_Read... [21:25:55]Read from MH i2c: E2 17 00 4C 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 26 [21:25:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:25:55]wFMCommunicate OK [21:25:55]CreateOFDProtocolMessage done [21:25:55]OFDSenderStorePacket 165094 [21:25:55]StoreOFDPacket docnum=165094 [21:25:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 3B 94 07 01 E7 F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 63 42 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E6 84 02 00 35 04 06 00 18 8A 48 A0 F9 FD BB 83 BC 4C 2B BA 16 35 [21:25:55]CheckFolder [21:25:55]dirname=/storage/ofd_packets [21:25:55]CheckFolder done [21:25:55]ProducePacketName [21:25:55]name=ofd_packets/00165094 [21:25:55]NVStorageSaveData ofd_packets/00165094 [21:25:55]File name is /storage/ofd_packets/00165094 [21:25:55]Write 301 bytes [21:25:55]NVStorageSaveData done [21:25:55]OFDSenderStorePacket done [21:25:55]KKMCreateOFDPacket done [21:25:55]NVStorageSaveData kkm_last_timestamp [21:25:55]File name is /storage/kkm_last_timestamp [21:25:55]Write 4 bytes [21:25:55]NVStorageSaveData done [21:25:55]ExternCall_PrintAddStr [21:25:55]wPrintStart [21:25:55]Write to MH i2c: 01 00 00 4D 0A 57 [21:25:55]Write i2c OK [21:25:55]MH_I2C_Read... [21:25:55]Read from MH i2c: 01 [21:25:55]MH_I2C_Read... [21:25:55]Read from MH i2c: 01 07 00 [21:25:55]MH_I2C_Read... [21:25:55]Read from MH i2c: 01 07 00 4D 0A 00 00 00 00 00 FF 0F 6C [21:25:55]RasterBufferAndPrint [21:25:55]line Счет N : (1)459197 [21:25:55]line ИНН: 02508201610067 [21:25:55]line Контрольно-Кассовый Чек [21:25:55]line ПРОДАЖА [21:25:55]line ТРК (МРК, ГНК) : 12 [21:25:55]line Товар: 2710124130 [21:25:55]line Аи-92-К-5 [21:25:55]line 7.670 * 65.22 [21:25:55]line = 500.24 [21:25:55]line НДС 12% НСП 1% [21:25:55]line > о реализуемом товаре [21:25:55]line ИТОГО: 500.24 [21:25:55]line НСП 1% : 4.43 [21:25:55]line НДС 12% : 53.12 [21:25:55]line Наличными: 0.00 [21:25:55]line Безнал.: 500.24 [21:25:55]line Место: АЗС № 72 "Партнер Нефть" [21:25:55]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [21:25:55]line СНО: Общий режим [21:25:55]line Чек 292 14.07.2024 21:25 [21:25:55]line Смена: 447 ФФД: 1.0 [21:25:55]line ЗНМ: 0300000160 [21:25:55]line РНМ: 0000000000090829 [21:25:55]line Версия ККМ: 001 [21:25:55]line Платежная система: KICB Банк [21:25:55]line ФМ: 0000000000874718 [21:25:55]line ФД: 165094 [21:25:55]line ФПД: 26982203062781 [21:25:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T212555&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165094&fm=26982203062781&tin=02508201610067®Number=0000000000090829&sum=50024 [21:25:55]written 0, free lines is 4095 [21:25:55]OFD Sender: Processing packet 165094 [packets to send 106, broken 105] [21:25:55]ProducePacketName [21:25:55]name=ofd_packets/00165094 [21:25:55]OFD Sender: To server: pG, [21:25:55]CommunicateWithHost lk.salyk.kg:30040 [21:25:55]ConnectInit lk.salyk.kg [21:25:55]Connected sock=10 [21:25:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 3B 94 07 01 E7 F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 63 42 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E6 84 02 00 35 04 06 00 18 8A 48 A0 F9 FD BB 83 BC 4C 2B BA 16 35 [21:25:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 FB AE 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 38 37 34 37 31 38 10 04 04 00 E6 84 02 00 F4 03 04 00 EF E8 93 66 B6 04 01 00 00 D7 2C 97 8A 9A 3C AD 44 [21:25:56]CommunicateWithHost err = 0 [21:25:56]CheckOFDResponse [21:25:56]1017 (14) - 77093643461234 [21:25:56]1041 (16) - 0000000000874718 [21:25:56]1040 (4) - 165094 [21:25:56]1012 (4) - 14.07.2024 15:04 [21:25:56]1206 (1) - 0 [21:25:56]OFD Sender: Remove packet 165094 [21:25:56]ProducePacketName [21:25:56]name=ofd_packets/00165094 [21:25:56]NVStorageDeleteData [21:25:56]Write to MH i2c: 01 00 00 76 0A 80 [21:25:56]Write i2c OK [21:25:56]MH_I2C_Read... [21:25:56]Read from MH i2c: 01 [21:25:56]MH_I2C_Read... [21:25:56]Read from MH i2c: 01 07 00 [21:25:56]MH_I2C_Read... [21:25:56]Read from MH i2c: 01 07 00 76 0A 00 00 00 00 00 FF 0C 92 [21:25:56]RasterBufferAndPrint [21:25:56]line [21:25:56]line [21:25:56]line [21:25:56]line [21:25:56]line [21:25:56]written 0, free lines is 3333 [21:25:56]MH_Cut [21:25:56]Write to MH i2c: D1 01 00 7D 0A 01 59 [21:25:56]Write i2c OK [21:25:56]MH_I2C_Read... [21:25:56]Read from MH i2c: D1 [21:25:56]MH_I2C_Read... [21:25:56]Read from MH i2c: D1 01 00 [21:25:56]MH_I2C_Read... [21:25:56]Read from MH i2c: D1 01 00 7D 0A 00 58 [21:25:56]Write to MH i2c: 01 00 00 7E 0A 88 [21:25:56]Write i2c OK [21:25:56]MH_I2C_Read... [21:25:56]OFD Sender: No OFD packet to send [21:25:56]*** Cut start [21:25:56]*** Partial cut [21:25:56]*** CUTSNS_PIN = 1 [21:25:56]*** CUTSNS_PIN = 0 [21:25:57]*** Brake cut motor [21:25:57]Read from MH i2c: 01 [21:25:57]MH_I2C_Read... [21:25:57]*** Stop cut motor [21:25:57]*** Cut end [21:25:57]Read from MH i2c: 01 07 00 [21:25:57]MH_I2C_Read... [21:25:57]Read from MH i2c: 01 07 00 7E 0A 00 00 00 00 00 FF 0F 9D [21:25:57]process_action close_receipt done [21:25:57]requested_data is exist [21:25:57]produce_requested_data [21:25:57]requested_item fm.sn is exist - process it [21:25:57]wFMCommunicate request_size=4 [21:25:57]MH_SAM_APDU [21:25:57]CAPDU: 80 11 00 00 [21:25:57]Write to MH i2c: E2 08 00 7F 0A 80 11 00 00 00 00 00 00 03 [21:25:57]Write i2c OK [21:25:57]MH_I2C_Read... [21:25:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:25:57]Read from MH i2c: E2 [21:25:57]MH_I2C_Read... [21:25:57]Read from MH i2c: E2 17 00 [21:25:57]MH_I2C_Read... [21:25:57]Read from MH i2c: E2 17 00 7F 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 59 [21:25:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:25:57]wFMCommunicate OK [21:25:57]requested_item fd.num is exist - process it [21:25:57]SAM_PROTO_GetFieldsCounters [21:25:57]wFMCommunicate request_size=4 [21:25:57]MH_SAM_APDU [21:25:57]CAPDU: 80 13 00 00 [21:25:57]Write to MH i2c: E2 08 00 80 0A 80 13 00 00 00 00 00 00 06 [21:25:57]Write i2c OK [21:25:57]MH_I2C_Read... [21:25:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:25:57]Read from MH i2c: E2 [21:25:57]MH_I2C_Read... [21:25:57]Read from MH i2c: E2 62 00 [21:25:57]MH_I2C_Read... [21:25:57]Read from MH i2c: E2 62 00 80 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E6 84 02 00 0E 04 04 00 BF 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 C8 [21:25:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E6 84 02 00 0E 04 04 00 BF 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 [21:25:57]wFMCommunicate OK [21:25:57]SAM_PROTO_GetFieldsCounters done [21:25:57]requested_item shift.num is exist - process it [21:25:57]requested_item shift.opened is exist - process it [21:25:57]req_shift_opened [21:25:57]FM_GetShiftState [21:25:57]SAM_PROTO_GetShiftState [21:25:57]wFMCommunicate request_size=4 [21:25:57]MH_SAM_APDU [21:25:57]CAPDU: 80 13 01 00 [21:25:57]Write to MH i2c: E2 08 00 81 0A 80 13 01 00 00 00 00 00 08 [21:25:57]Write i2c OK [21:25:57]MH_I2C_Read... [21:25:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:25:57]Read from MH i2c: E2 [21:25:57]MH_I2C_Read... [21:25:57]Read from MH i2c: E2 0E 00 [21:25:57]MH_I2C_Read... [21:25:57]Read from MH i2c: E2 0E 00 81 0A 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 88 [21:25:57]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [21:25:57]wFMCommunicate OK [21:25:57]SAM_PROTO_GetShiftState done [21:25:57]FM_GetShiftState done [21:25:57]req_shift_opened done [21:25:57]requested_item shift.open_date is exist - process it [21:25:57]req_shift_open_date [21:25:57]req_shift_open_date done [21:25:57]produce_requested_data done [21:25:57]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165094,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [21:25:57]process_action_free close_receipt [21:25:57]json_value_free [21:25:57]json_value_free done [21:25:57]process_json_proto returns [21:25:57]Send response to host [21:25:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165094,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [21:25:57]free response buf [21:25:57]execute_script done [21:25:57]execute_script returns [21:25:57]free content buf [21:25:57]Sock 7.Close socket [21:25:57]Sock 7.Thread stoped [21:26:01]OFD Sender: No OFD packet to send [21:26:06]OFD Sender: No OFD packet to send [21:26:11]OFD Sender: No OFD packet to send [21:26:16]OFD Sender: No OFD packet to send [21:26:21]OFD Sender: No OFD packet to send [21:26:26]OFD Sender: No OFD packet to send [21:26:31]OFD Sender: No OFD packet to send [21:26:36]OFD Sender: No OFD packet to send [21:26:41]OFD Sender: No OFD packet to send [21:26:46]OFD Sender: No OFD packet to send [21:26:51]OFD Sender: No OFD packet to send [21:26:56]OFD Sender: No OFD packet to send [21:27:01]OFD Sender: No OFD packet to send [21:27:06]OFD Sender: No OFD packet to send [21:27:11]OFD Sender: No OFD packet to send [21:27:16]OFD Sender: No OFD packet to send [21:27:21]OFD Sender: No OFD packet to send [21:27:26]OFD Sender: No OFD packet to send [21:27:31]OFD Sender: No OFD packet to send [21:27:36]OFD Sender: No OFD packet to send [21:27:41]OFD Sender: No OFD packet to send [21:27:46]OFD Sender: No OFD packet to send [21:27:51]OFD Sender: No OFD packet to send [21:27:56]OFD Sender: No OFD packet to send [21:28:01]OFD Sender: No OFD packet to send [21:28:06]OFD Sender: No OFD packet to send [21:28:11]OFD Sender: No OFD packet to send [21:28:16]OFD Sender: No OFD packet to send [21:28:21]OFD Sender: No OFD packet to send [21:28:26]OFD Sender: No OFD packet to send [21:28:31]OFD Sender: No OFD packet to send [21:28:36]OFD Sender: No OFD packet to send [21:28:41]OFD Sender: No OFD packet to send [21:28:46]OFD Sender: No OFD packet to send [21:28:51]OFD Sender: No OFD packet to send [21:28:56]OFD Sender: No OFD packet to send [21:29:01]OFD Sender: No OFD packet to send [21:29:05]accept exits with 9 [21:29:05]New connection [21:29:05]New thread 3066928484 created [21:29:05]Thread 3066785124 joined [21:29:05]Waiting for new connection... [21:29:05] Sock 9.Parse request [21:29:05]Sock 9.Check first char [21:29:05]Sock 9.First char is OK [21:29:05]request: POST /json_proto HTTP/1.0 [21:29:05]Method: POST [21:29:05]URL: /json_proto [21:29:05]Method is POST - this is cgi request [21:29:05]url: /json_proto [21:29:05]query_string will be loaded in cgi processing [21:29:05]execute_cgi json_proto POST (null) [21:29:05]execute_cgi path=json_proto method=POST [21:29:05]POST find Content-Length [21:29:05]Host: 172.17.56.4:8080 [21:29:05]Content-Length: 677 [21:29:05]Content-Type: application/json [21:29:05] [21:29:05]POST finish read [21:29:05]Found Content-Length = 677 [21:29:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459198", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "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:29:05]execute_script... [21:29: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)459198", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "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:29:05]POST & json_proto [21:29:05]process_json_proto [21:29:05]json parsed OK: [21:29:05]protocol is kg_v1.0 [21:29:05]action value=close_receipt [21:29:05]process_action close_receipt [21:29:05]cmd_close_receipt [21:29:05]MH_GetDate [21:29:05]Write to MH i2c: F0 00 00 82 0A 7B [21:29:05]Write i2c OK [21:29:05]MH_I2C_Read... [21:29:05]Read from MH i2c: F0 [21:29:05]MH_I2C_Read... [21:29:05]Read from MH i2c: F0 09 00 [21:29:05]MH_I2C_Read... [21:29:05]Read from MH i2c: F0 09 00 82 0A 00 23 43 94 66 C9 DC B2 64 9F [21:29:05]GetLastDocTimeStamp 1720992355 [21:29:05]current date 1720992547 [21:29:05]FM_GetShiftState [21:29:05]SAM_PROTO_GetShiftState [21:29:05]wFMCommunicate request_size=4 [21:29:05]MH_SAM_APDU [21:29:05]CAPDU: 80 13 01 00 [21:29:05]Write to MH i2c: E2 08 00 83 0A 80 13 01 00 00 00 00 00 0A [21:29:05]Write i2c OK [21:29:05]MH_I2C_Read... [21:29:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:29:05]Read from MH i2c: E2 [21:29:05]MH_I2C_Read... [21:29:05]Read from MH i2c: E2 0E 00 [21:29:05]MH_I2C_Read... [21:29:05]Read from MH i2c: E2 0E 00 83 0A 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 8A [21:29:05]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [21:29:05]wFMCommunicate OK [21:29:05]SAM_PROTO_GetShiftState done [21:29:05]FM_GetShiftState done [21:29:05]opened in 1720917342 [21:29:05]opened+sec_in_day 1721003742 [21:29:05]quantity*price = 30004 [21:29:05]sum+1 = 30006 [21:29:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 293 14.07.2024 21:29 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165095 ФПД: 106538480959632 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T212907&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165095&fm=106538480959632&tin=02508201610067®Number=0000000000090829&sum=30000 [21:29:06]StoreToDocumentArchive [21:29:06]shift 447 fd 165095 [21:29:06]save to /storage/0447/doc_00165095 [21:29:06]save last doc name /storage/0447/doc_00165095 to /storage/kkm_last_doc_name [21:29:06]save OK [21:29:06]Clear old archive folders... [21:29:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:29:06]tlvbuf is 0135E320 [21:29:06]SAM_PROTO_ClearQueue [21:29:06]wFMCommunicate request_size=4 [21:29:06]MH_SAM_APDU [21:29:06]CAPDU: 80 09 00 00 [21:29:06]Write to MH i2c: E2 08 00 90 0A 80 09 00 00 00 00 00 00 0C [21:29:06]Write i2c OK [21:29:06]MH_I2C_Read... [21:29:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:29:06]Read from MH i2c: E2 [21:29:06]MH_I2C_Read... [21:29:06]Read from MH i2c: E2 03 00 [21:29:06]MH_I2C_Read... [21:29:06]Read from MH i2c: E2 03 00 90 0A 00 90 00 0E [21:29:06]RAPDU: 90 00 [21:29:06]wFMCommunicate OK [21:29:06]SAM_PROTO_ClearQueue done [21:29:06]KKMCreateOFDPacket [21:29:06]OFDProtocolAddRootSTLVToBuf [21:29:06]FM_MakeSignedData [21:29:06]FM_MakeSignedData [21:29:06]SAM_PROTO_SignData [21:29:06]wFMCommunicate request_size=4 [21:29:06]MH_SAM_APDU [21:29:06]CAPDU: 80 0D 01 02 [21:29:06]Write to MH i2c: E2 08 00 91 0A 80 0D 01 02 00 00 00 00 14 [21:29:06]Write i2c OK [21:29:06]MH_I2C_Read... [21:29:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:29:06]Read from MH i2c: E2 [21:29:06]MH_I2C_Read... [21:29:06]Read from MH i2c: E2 03 00 [21:29:06]MH_I2C_Read... [21:29:06]Read from MH i2c: E2 03 00 91 0A 00 90 00 0F [21:29:06]RAPDU: 90 00 [21:29:06]wFMCommunicate OK [21:29:06]wFMCommunicate request_size=255 [21:29:06]MH_SAM_APDU [21:29:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 23 43 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E7 84 02 00 35 04 06 00 60 [21:29:06]Write to MH i2c: E2 02 01 92 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 23 43 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E7 84 02 00 35 04 06 00 60 00 00 61 [21:29:06]Write i2c OK [21:29:06]MH_I2C_Read... [21:29:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:29:07]Read from MH i2c: E2 [21:29:07]MH_I2C_Read... [21:29:07]Read from MH i2c: E2 03 00 [21:29:07]MH_I2C_Read... [21:29:07]Read from MH i2c: E2 03 00 92 0A 00 90 00 10 [21:29:07]RAPDU: 90 00 [21:29:07]wFMCommunicate OK [21:29:07]wFMCommunicate request_size=10 [21:29:07]MH_SAM_APDU [21:29:07]CAPDU: 80 0D 02 02 05 E5 6C 50 00 90 [21:29:07]Write to MH i2c: E2 0D 00 93 0A 80 0D 02 02 05 00 E5 6C 50 00 90 00 00 52 [21:29:07]Write i2c OK [21:29:07]MH_I2C_Read... [21:29:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:29:07]Read from MH i2c: E2 [21:29:07]MH_I2C_Read... [21:29:07]Read from MH i2c: E2 03 00 [21:29:07]MH_I2C_Read... [21:29:07]Read from MH i2c: E2 03 00 93 0A 00 90 00 11 [21:29:07]RAPDU: 90 00 [21:29:07]wFMCommunicate OK [21:29:07]wFMCommunicate request_size=4 [21:29:07]MH_SAM_APDU [21:29:07]CAPDU: 80 0D 03 02 [21:29:07]Write to MH i2c: E2 08 00 94 0A 80 0D 03 02 00 00 00 00 19 [21:29:07]Write i2c OK [21:29:07]MH_I2C_Read... [21:29:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:29:07]Read from MH i2c: E2 [21:29:07]MH_I2C_Read... [21:29:07]Read from MH i2c: E2 0B 00 [21:29:07]MH_I2C_Read... [21:29:07]Read from MH i2c: E2 0B 00 94 0A 00 BC 64 2A 74 8F 3D EF 7E 90 00 11 [21:29:07]RAPDU: BC 64 2A 74 8F 3D EF 7E 90 00 [21:29:07]wFMCommunicate OK [21:29:07]SAM_PROTO_SignData done [21:29:07]FM_MakeSignedData done [21:29:07]CreateOFDProtocolMessage [21:29:07]wFMCommunicate request_size=4 [21:29:07]MH_SAM_APDU [21:29:07]CAPDU: 80 11 00 00 [21:29:07]Write to MH i2c: E2 08 00 95 0A 80 11 00 00 00 00 00 00 19 [21:29:07]Write i2c OK [21:29:07]MH_I2C_Read... [21:29:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:29:07]Read from MH i2c: E2 [21:29:07]MH_I2C_Read... [21:29:07]Read from MH i2c: E2 17 00 [21:29:07]MH_I2C_Read... [21:29:07]Read from MH i2c: E2 17 00 95 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 6F [21:29:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:29:07]wFMCommunicate OK [21:29:07]CreateOFDProtocolMessage done [21:29:07]OFDSenderStorePacket 165095 [21:29:07]StoreOFDPacket docnum=165095 [21:29:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 6E E6 07 01 03 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 23 43 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E7 84 02 00 35 04 06 00 60 E5 6C 50 00 90 BC 64 2A 74 8F 3D EF 7E [21:29:07]CheckFolder [21:29:07]dirname=/storage/ofd_packets [21:29:07]CheckFolder done [21:29:07]ProducePacketName [21:29:07]name=ofd_packets/00165095 [21:29:07]NVStorageSaveData ofd_packets/00165095 [21:29:07]File name is /storage/ofd_packets/00165095 [21:29:07]Write 301 bytes [21:29:07]NVStorageSaveData done [21:29:07]OFDSenderStorePacket done [21:29:07]KKMCreateOFDPacket done [21:29:07]NVStorageSaveData kkm_last_timestamp [21:29:07]File name is /storage/kkm_last_timestamp [21:29:07]Write 4 bytes [21:29:07]NVStorageSaveData done [21:29:07]ExternCall_PrintAddStr [21:29:07]wPrintStart [21:29:07]Write to MH i2c: 01 00 00 96 0A A0 [21:29:07]Write i2c OK [21:29:07]MH_I2C_Read... [21:29:07]Read from MH i2c: 01 [21:29:07]MH_I2C_Read... [21:29:07]Read from MH i2c: 01 07 00 [21:29:07]MH_I2C_Read... [21:29:07]Read from MH i2c: 01 07 00 96 0A 00 00 00 00 00 FF 0F B5 [21:29:07]RasterBufferAndPrint [21:29:07]line Счет N : (1)459198 [21:29:07]line ИНН: 02508201610067 [21:29:07]line Контрольно-Кассовый Чек [21:29:07]line ПРОДАЖА [21:29:07]line ТРК (МРК, ГНК) : 22 [21:29:07]line Товар: 2710124130 [21:29:07]line Аи-92-К-5 [21:29:07]line 4.560 * 65.80 [21:29:07]line = 300.05 [21:29:07]line НДС 12% НСП 1% [21:29:07]line > о реализуемом товаре [21:29:07]line ОКРУГЛЕНИЕ: -0.05 [21:29:07]line ИТОГО: 300.00 [21:29:07]line Внесено: 300.00 [21:29:07]line СДАЧА: 0.00 [21:29:07]line НСП 1% : 2.65 [21:29:07]line НДС 12% : 31.86 [21:29:07]line Наличными: 300.00 [21:29:07]line Безнал.: 0.00 [21:29:07]line Место: АЗС № 72 "Партнер Нефть" [21:29:07]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [21:29:07]line СНО: Общий режим [21:29:07]line Чек 293 14.07.2024 21:29 [21:29:07]line Смена: 447 ФФД: 1.0 [21:29:07]line ЗНМ: 0300000160 [21:29:07]line РНМ: 0000000000090829 [21:29:07]line Версия ККМ: 001 [21:29:07]line ФМ: 0000000000874718 [21:29:07]line ФД: 165095 [21:29:07]line ФПД: 106538480959632 [21:29:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T212907&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165095&fm=106538480959632&tin=02508201610067®Number=0000000000090829&sum=30000 [21:29:07]OFD Sender: Processing packet 165095 [packets to send 106, broken 105] [21:29:07]ProducePacketName [21:29:07]name=ofd_packets/00165095 [21:29:07]OFD Sender: To server: pG, [21:29:07]CommunicateWithHost lk.salyk.kg:30040 [21:29:07]ConnectInit lk.salyk.kg [21:29:07]written 0, free lines is 4095 [21:29:07]Connected sock=10 [21:29:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 6E E6 07 01 03 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 23 43 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E7 84 02 00 35 04 06 00 60 E5 6C 50 00 90 BC 64 2A 74 8F 3D EF 7E [21:29:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 E0 73 47 00 9A 03 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E7 84 02 00 F4 03 04 00 AF E9 93 66 B6 04 01 00 00 27 4D 2D F7 FD AC 33 A9 [21:29:08]CommunicateWithHost err = 0 [21:29:08]CheckOFDResponse [21:29:08]1017 (14) - 77093643461234 [21:29:08]1041 (16) - 0000000000874718 [21:29:08]1040 (4) - 165095 [21:29:08]1012 (4) - 14.07.2024 15:07 [21:29:08]1206 (1) - 0 [21:29:08]OFD Sender: Remove packet 165095 [21:29:08]ProducePacketName [21:29:08]name=ofd_packets/00165095 [21:29:08]NVStorageDeleteData [21:29:08]Write to MH i2c: 01 00 00 C0 0A CA [21:29:08]Write i2c OK [21:29:08]MH_I2C_Read... [21:29:08]Read from MH i2c: 01 [21:29:08]MH_I2C_Read... [21:29:08]Read from MH i2c: 01 07 00 [21:29:08]MH_I2C_Read... [21:29:08]Read from MH i2c: 01 07 00 C0 0A 00 00 00 00 00 03 0D E1 [21:29:08]RasterBufferAndPrint [21:29:08]line [21:29:08]line [21:29:08]line [21:29:08]line [21:29:08]line [21:29:08]written 0, free lines is 3337 [21:29:08]MH_Cut [21:29:08]Write to MH i2c: D1 01 00 C7 0A 01 A3 [21:29:08]Write i2c OK [21:29:08]MH_I2C_Read... [21:29:08]Read from MH i2c: D1 [21:29:08]MH_I2C_Read... [21:29:08]Read from MH i2c: D1 01 00 [21:29:08]MH_I2C_Read... [21:29:08]Read from MH i2c: D1 01 00 C7 0A 00 A2 [21:29:08]Write to MH i2c: 01 00 00 C8 0A D2 [21:29:08]Write i2c OK [21:29:08]MH_I2C_Read... [21:29:08]OFD Sender: No OFD packet to send [21:29:08]*** Cut start [21:29:08]*** Partial cut [21:29:08]*** CUTSNS_PIN = 1 [21:29:08]*** CUTSNS_PIN = 0 [21:29:09]*** Brake cut motor [21:29:09]Read from MH i2c: 01 [21:29:09]MH_I2C_Read... [21:29:09]*** Stop cut motor [21:29:09]*** Cut end [21:29:09]Read from MH i2c: 01 07 00 [21:29:09]MH_I2C_Read... [21:29:09]Read from MH i2c: 01 07 00 C8 0A 00 00 00 00 00 FF 0F E7 [21:29:09]process_action close_receipt done [21:29:09]requested_data is exist [21:29:09]produce_requested_data [21:29:09]requested_item fm.sn is exist - process it [21:29:09]wFMCommunicate request_size=4 [21:29:09]MH_SAM_APDU [21:29:09]CAPDU: 80 11 00 00 [21:29:09]Write to MH i2c: E2 08 00 C9 0A 80 11 00 00 00 00 00 00 4D [21:29:09]Write i2c OK [21:29:09]MH_I2C_Read... [21:29:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:29:09]Read from MH i2c: E2 [21:29:09]MH_I2C_Read... [21:29:09]Read from MH i2c: E2 17 00 [21:29:09]MH_I2C_Read... [21:29:09]Read from MH i2c: E2 17 00 C9 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A3 [21:29:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:29:09]wFMCommunicate OK [21:29:09]requested_item fd.num is exist - process it [21:29:09]SAM_PROTO_GetFieldsCounters [21:29:09]wFMCommunicate request_size=4 [21:29:09]MH_SAM_APDU [21:29:09]CAPDU: 80 13 00 00 [21:29:09]Write to MH i2c: E2 08 00 CA 0A 80 13 00 00 00 00 00 00 50 [21:29:09]Write i2c OK [21:29:09]MH_I2C_Read... [21:29:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:29:09]Read from MH i2c: E2 [21:29:09]MH_I2C_Read... [21:29:09]Read from MH i2c: E2 62 00 [21:29:09]MH_I2C_Read... [21:29:09]Read from MH i2c: E2 62 00 CA 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E7 84 02 00 0E 04 04 00 BF 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 [21:29:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E7 84 02 00 0E 04 04 00 BF 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 [21:29:09]wFMCommunicate OK [21:29:09]SAM_PROTO_GetFieldsCounters done [21:29:09]requested_item shift.num is exist - process it [21:29:09]requested_item shift.opened is exist - process it [21:29:09]req_shift_opened [21:29:09]FM_GetShiftState [21:29:09]SAM_PROTO_GetShiftState [21:29:09]wFMCommunicate request_size=4 [21:29:09]MH_SAM_APDU [21:29:09]CAPDU: 80 13 01 00 [21:29:09]Write to MH i2c: E2 08 00 CB 0A 80 13 01 00 00 00 00 00 52 [21:29:09]Write i2c OK [21:29:09]MH_I2C_Read... [21:29:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:29:09]Read from MH i2c: E2 [21:29:09]MH_I2C_Read... [21:29:09]Read from MH i2c: E2 0E 00 [21:29:09]MH_I2C_Read... [21:29:09]Read from MH i2c: E2 0E 00 CB 0A 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 D2 [21:29:09]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [21:29:09]wFMCommunicate OK [21:29:09]SAM_PROTO_GetShiftState done [21:29:09]FM_GetShiftState done [21:29:09]req_shift_opened done [21:29:09]requested_item shift.open_date is exist - process it [21:29:09]req_shift_open_date [21:29:09]req_shift_open_date done [21:29:09]produce_requested_data done [21:29:09]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165095,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [21:29:09]process_action_free close_receipt [21:29:09]json_value_free [21:29:09]json_value_free done [21:29:09]process_json_proto returns [21:29:09]Send response to host [21:29:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165095,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [21:29:09]free response buf [21:29:09]execute_script done [21:29:09]execute_script returns [21:29:09]free content buf [21:29:09]Sock 9.Close socket [21:29:09]Sock 9.Thread stoped [21:29:13]OFD Sender: No OFD packet to send [21:29:18]OFD Sender: No OFD packet to send [21:29:23]OFD Sender: No OFD packet to send [21:29:28]OFD Sender: No OFD packet to send [21:29:33]OFD Sender: No OFD packet to send [21:29:38]OFD Sender: No OFD packet to send [21:29:43]OFD Sender: No OFD packet to send [21:29:48]OFD Sender: No OFD packet to send [21:29:49]accept exits with 7 [21:29:49]New connection [21:29:49]New thread 3066785124 created [21:29:49]Thread 3066928484 joined [21:29:49]Waiting for new connection... [21:29:49] Sock 7.Parse request [21:29:49]Sock 7.Check first char [21:29:49]Sock 7.First char is OK [21:29:49]request: POST /json_proto HTTP/1.0 [21:29:49]Method: POST [21:29:49]URL: /json_proto [21:29:49]Method is POST - this is cgi request [21:29:49]url: /json_proto [21:29:49]query_string will be loaded in cgi processing [21:29:49]execute_cgi json_proto POST (null) [21:29:49]execute_cgi path=json_proto method=POST [21:29:49]POST find Content-Length [21:29:49]Host: 172.17.56.4:8080 [21:29:49]Content-Length: 679 [21:29:49]Content-Type: application/json [21:29:49] [21:29:49]POST finish read [21:29:49]Found Content-Length = 679 [21:29:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459199", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:29:49]execute_script... [21:29: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)459199", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:29:49]POST & json_proto [21:29:49]process_json_proto [21:29:49]json parsed OK: [21:29:49]protocol is kg_v1.0 [21:29:49]action value=close_receipt [21:29:49]process_action close_receipt [21:29:49]cmd_close_receipt [21:29:49]MH_GetDate [21:29:49]Write to MH i2c: F0 00 00 CC 0A C5 [21:29:49]Write i2c OK [21:29:49]MH_I2C_Read... [21:29:49]Read from MH i2c: F0 [21:29:49]MH_I2C_Read... [21:29:49]Read from MH i2c: F0 09 00 [21:29:49]MH_I2C_Read... [21:29:49]Read from MH i2c: F0 09 00 CC 0A 00 4F 43 94 66 C9 DC B2 64 15 [21:29:49]GetLastDocTimeStamp 1720992547 [21:29:49]current date 1720992591 [21:29:49]FM_GetShiftState [21:29:49]SAM_PROTO_GetShiftState [21:29:49]wFMCommunicate request_size=4 [21:29:49]MH_SAM_APDU [21:29:49]CAPDU: 80 13 01 00 [21:29:49]Write to MH i2c: E2 08 00 CD 0A 80 13 01 00 00 00 00 00 54 [21:29:49]Write i2c OK [21:29:49]MH_I2C_Read... [21:29:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:29:49]Read from MH i2c: E2 [21:29:49]MH_I2C_Read... [21:29:49]Read from MH i2c: E2 0E 00 [21:29:49]MH_I2C_Read... [21:29:49]Read from MH i2c: E2 0E 00 CD 0A 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 D4 [21:29:49]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [21:29:49]wFMCommunicate OK [21:29:49]SAM_PROTO_GetShiftState done [21:29:49]FM_GetShiftState done [21:29:49]opened in 1720917342 [21:29:49]opened+sec_in_day 1721003742 [21:29:49]quantity*price = 100012 [21:29:49]sum+1 = 100014 [21:29:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 294 14.07.2024 21:29 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165096 ФПД: 102843745386773 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T212951&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165096&fm=102843745386773&tin=02508201610067®Number=0000000000090829&sum=100000 [21:29:50]StoreToDocumentArchive [21:29:50]shift 447 fd 165096 [21:29:50]save to /storage/0447/doc_00165096 [21:29:50]save last doc name /storage/0447/doc_00165096 to /storage/kkm_last_doc_name [21:29:50]save OK [21:29:50]Clear old archive folders... [21:29:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:29:50]tlvbuf is 01352420 [21:29:50]SAM_PROTO_ClearQueue [21:29:50]wFMCommunicate request_size=4 [21:29:50]MH_SAM_APDU [21:29:50]CAPDU: 80 09 00 00 [21:29:50]Write to MH i2c: E2 08 00 DA 0A 80 09 00 00 00 00 00 00 56 [21:29:50]Write i2c OK [21:29:50]MH_I2C_Read... [21:29:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:29:50]Read from MH i2c: E2 [21:29:50]MH_I2C_Read... [21:29:50]Read from MH i2c: E2 03 00 [21:29:50]MH_I2C_Read... [21:29:50]Read from MH i2c: E2 03 00 DA 0A 00 90 00 58 [21:29:50]RAPDU: 90 00 [21:29:50]wFMCommunicate OK [21:29:50]SAM_PROTO_ClearQueue done [21:29:50]KKMCreateOFDPacket [21:29:50]OFDProtocolAddRootSTLVToBuf [21:29:50]FM_MakeSignedData [21:29:50]FM_MakeSignedData [21:29:50]SAM_PROTO_SignData [21:29:50]wFMCommunicate request_size=4 [21:29:50]MH_SAM_APDU [21:29:50]CAPDU: 80 0D 01 02 [21:29:50]Write to MH i2c: E2 08 00 DB 0A 80 0D 01 02 00 00 00 00 5E [21:29:50]Write i2c OK [21:29:50]MH_I2C_Read... [21:29:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:29:50]Read from MH i2c: E2 [21:29:50]MH_I2C_Read... [21:29:50]Read from MH i2c: E2 03 00 [21:29:50]MH_I2C_Read... [21:29:50]Read from MH i2c: E2 03 00 DB 0A 00 90 00 59 [21:29:50]RAPDU: 90 00 [21:29:50]wFMCommunicate OK [21:29:50]wFMCommunicate request_size=255 [21:29:50]MH_SAM_APDU [21:29: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 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 4F 43 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E8 84 02 00 35 04 06 00 5D 89 2C E9 [21:29:50]Write to MH i2c: E2 02 01 DC 0A 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 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 4F 43 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E8 84 02 00 35 04 06 00 5D 89 2C E9 00 00 FB [21:29:50]Write i2c OK [21:29:50]MH_I2C_Read... [21:29:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:29:50]Read from MH i2c: E2 [21:29:50]MH_I2C_Read... [21:29:50]Read from MH i2c: E2 03 00 [21:29:50]MH_I2C_Read... [21:29:50]Read from MH i2c: E2 03 00 DC 0A 00 90 00 5A [21:29:50]RAPDU: 90 00 [21:29:50]wFMCommunicate OK [21:29:50]wFMCommunicate request_size=7 [21:29:50]MH_SAM_APDU [21:29:50]CAPDU: 80 0D 02 02 02 41 15 [21:29:50]Write to MH i2c: E2 0A 00 DD 0A 80 0D 02 02 02 00 41 15 00 00 BB [21:29:50]Write i2c OK [21:29:50]MH_I2C_Read... [21:29:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:29:50]Read from MH i2c: E2 [21:29:50]MH_I2C_Read... [21:29:50]Read from MH i2c: E2 03 00 [21:29:50]MH_I2C_Read... [21:29:50]Read from MH i2c: E2 03 00 DD 0A 00 90 00 5B [21:29:50]RAPDU: 90 00 [21:29:50]wFMCommunicate OK [21:29:50]wFMCommunicate request_size=4 [21:29:50]MH_SAM_APDU [21:29:50]CAPDU: 80 0D 03 02 [21:29:50]Write to MH i2c: E2 08 00 DE 0A 80 0D 03 02 00 00 00 00 63 [21:29:50]Write i2c OK [21:29:50]MH_I2C_Read... [21:29:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:29:51]Read from MH i2c: E2 [21:29:51]MH_I2C_Read... [21:29:51]Read from MH i2c: E2 0B 00 [21:29:51]MH_I2C_Read... [21:29:51]Read from MH i2c: E2 0B 00 DE 0A 00 03 59 2B D7 75 8F DF 27 90 00 CC [21:29:51]RAPDU: 03 59 2B D7 75 8F DF 27 90 00 [21:29:51]wFMCommunicate OK [21:29:51]SAM_PROTO_SignData done [21:29:51]FM_MakeSignedData done [21:29:51]CreateOFDProtocolMessage [21:29:51]wFMCommunicate request_size=4 [21:29:51]MH_SAM_APDU [21:29:51]CAPDU: 80 11 00 00 [21:29:51]Write to MH i2c: E2 08 00 DF 0A 80 11 00 00 00 00 00 00 63 [21:29:51]Write i2c OK [21:29:51]MH_I2C_Read... [21:29:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:29:51]Read from MH i2c: E2 [21:29:51]MH_I2C_Read... [21:29:51]Read from MH i2c: E2 17 00 [21:29:51]MH_I2C_Read... [21:29:51]Read from MH i2c: E2 17 00 DF 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B9 [21:29:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:29:51]wFMCommunicate OK [21:29:51]CreateOFDProtocolMessage done [21:29:51]OFDSenderStorePacket 165096 [21:29:51]StoreOFDPacket docnum=165096 [21:29:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 D2 39 04 01 7B 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 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 4F 43 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E8 84 02 00 35 04 06 00 5D 89 2C E9 41 15 03 59 2B D7 75 8F DF 27 [21:29:51]CheckFolder [21:29:51]dirname=/storage/ofd_packets [21:29:51]CheckFolder done [21:29:51]ProducePacketName [21:29:51]name=ofd_packets/00165096 [21:29:51]NVStorageSaveData ofd_packets/00165096 [21:29:51]File name is /storage/ofd_packets/00165096 [21:29:51]Write 298 bytes [21:29:51]NVStorageSaveData done [21:29:51]OFDSenderStorePacket done [21:29:51]KKMCreateOFDPacket done [21:29:51]NVStorageSaveData kkm_last_timestamp [21:29:51]File name is /storage/kkm_last_timestamp [21:29:51]Write 4 bytes [21:29:51]NVStorageSaveData done [21:29:51]ExternCall_PrintAddStr [21:29:51]wPrintStart [21:29:51]Write to MH i2c: 01 00 00 E0 0A EA [21:29:51]Write i2c OK [21:29:51]MH_I2C_Read... [21:29:51]Read from MH i2c: 01 [21:29:51]MH_I2C_Read... [21:29:51]Read from MH i2c: 01 07 00 [21:29:51]MH_I2C_Read... [21:29:51]Read from MH i2c: 01 07 00 E0 0A 00 00 00 00 00 FF 0F FF [21:29:51]RasterBufferAndPrint [21:29:51]line Счет N : (1)459199 [21:29:51]line ИНН: 02508201610067 [21:29:51]line Контрольно-Кассовый Чек [21:29:51]line ПРОДАЖА [21:29:51]line ТРК (МРК, ГНК) : 11 [21:29:51]line Товар: 2710194210 [21:29:51]line ДТ-К-5 [21:29:51]line 13.910 * 71.90 [21:29:51]line = 1000.13 [21:29:51]line НДС 12% НСП 1% [21:29:51]line > о реализуемом товаре [21:29:51]line ОКРУГЛЕНИЕ: -0.13 [21:29:51]line ИТОГО: 1000.00 [21:29:51]line Внесено: 1000.00 [21:29:51]line СДАЧА: 0.00 [21:29:51]line НСП 1% : 8.85 [21:29:51]line НДС 12% : 106.21 [21:29:51]line Наличными: 1000.00 [21:29:51]line Безнал.: 0.00 [21:29:51]line Место: АЗС № 72 "Партнер Нефть" [21:29:51]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [21:29:51]line СНО: Общий режим [21:29:51]line Чек 294 14.07.2024 21:29 [21:29:51]line Смена: 447 ФФД: 1.0 [21:29:51]line ЗНМ: 0300000160 [21:29:51]line РНМ: 0000000000090829 [21:29:51]line Версия ККМ: 001 [21:29:51]line ФМ: 0000000000874718 [21:29:51]line ФД: 165096 [21:29:51]line ФПД: 102843745386773 [21:29:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T212951&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165096&fm=102843745386773&tin=02508201610067®Number=0000000000090829&sum=100000 [21:29:51]OFD Sender: Processing packet 165096 [packets to send 106, broken 105] [21:29:51]ProducePacketName [21:29:51]name=ofd_packets/00165096 [21:29:51]OFD Sender: To server: pG, [21:29:51]CommunicateWithHost lk.salyk.kg:30040 [21:29:51]ConnectInit lk.salyk.kg [21:29:51]written 0, free lines is 4095 [21:29:51]Connected sock=10 [21:29:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 D2 39 04 01 7B 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 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 4F 43 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E8 84 02 00 35 04 06 00 5D 89 2C E9 41 15 03 59 2B D7 75 8F DF 27 [21:29:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 41 1B 47 00 D6 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E8 84 02 00 F4 03 04 00 DB E9 93 66 B6 04 01 00 00 1C 9E 92 83 95 E0 4D 73 [21:29:51]CommunicateWithHost err = 0 [21:29:51]CheckOFDResponse [21:29:51]1017 (14) - 77093643461234 [21:29:51]1041 (16) - 0000000000874718 [21:29:51]1040 (4) - 165096 [21:29:51]1012 (4) - 14.07.2024 15:08 [21:29:51]1206 (1) - 0 [21:29:51]OFD Sender: Remove packet 165096 [21:29:51]ProducePacketName [21:29:51]name=ofd_packets/00165096 [21:29:51]NVStorageDeleteData [21:29:51]Write to MH i2c: 01 00 00 0A 0B 15 [21:29:51]Write i2c OK [21:29:51]MH_I2C_Read... [21:29:51]Read from MH i2c: 01 [21:29:51]MH_I2C_Read... [21:29:51]Read from MH i2c: 01 07 00 [21:29:51]MH_I2C_Read... [21:29:51]Read from MH i2c: 01 07 00 0A 0B 00 00 00 00 00 F1 0C 19 [21:29:51]RasterBufferAndPrint [21:29:51]line [21:29:51]line [21:29:51]line [21:29:51]line [21:29:51]line [21:29:51]written 0, free lines is 3322 [21:29:51]MH_Cut [21:29:51]Write to MH i2c: D1 01 00 11 0B 01 EE [21:29:51]Write i2c OK [21:29:51]MH_I2C_Read... [21:29:51]Read from MH i2c: D1 [21:29:51]MH_I2C_Read... [21:29:51]Read from MH i2c: D1 01 00 [21:29:51]MH_I2C_Read... [21:29:51]Read from MH i2c: D1 01 00 11 0B 00 ED [21:29:51]Write to MH i2c: 01 00 00 12 0B 1D [21:29:51]Write i2c OK [21:29:51]MH_I2C_Read... [21:29:52]OFD Sender: No OFD packet to send [21:29:52]*** Cut start [21:29:52]*** Partial cut [21:29:52]*** CUTSNS_PIN = 1 [21:29:52]*** CUTSNS_PIN = 0 [21:29:52]*** Brake cut motor [21:29:53]Read from MH i2c: 01 [21:29:53]MH_I2C_Read... [21:29:53]*** Stop cut motor [21:29:53]*** Cut end [21:29:53]Read from MH i2c: 01 07 00 [21:29:53]MH_I2C_Read... [21:29:53]Read from MH i2c: 01 07 00 12 0B 00 00 00 00 00 FF 0F 32 [21:29:53]process_action close_receipt done [21:29:53]requested_data is exist [21:29:53]produce_requested_data [21:29:53]requested_item fm.sn is exist - process it [21:29:53]wFMCommunicate request_size=4 [21:29:53]MH_SAM_APDU [21:29:53]CAPDU: 80 11 00 00 [21:29:53]Write to MH i2c: E2 08 00 13 0B 80 11 00 00 00 00 00 00 98 [21:29:53]Write i2c OK [21:29:53]MH_I2C_Read... [21:29:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:29:53]Read from MH i2c: E2 [21:29:53]MH_I2C_Read... [21:29:53]Read from MH i2c: E2 17 00 [21:29:53]MH_I2C_Read... [21:29:53]Read from MH i2c: E2 17 00 13 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 EE [21:29:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:29:53]wFMCommunicate OK [21:29:53]requested_item fd.num is exist - process it [21:29:53]SAM_PROTO_GetFieldsCounters [21:29:53]wFMCommunicate request_size=4 [21:29:53]MH_SAM_APDU [21:29:53]CAPDU: 80 13 00 00 [21:29:53]Write to MH i2c: E2 08 00 14 0B 80 13 00 00 00 00 00 00 9B [21:29:53]Write i2c OK [21:29:53]MH_I2C_Read... [21:29:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:29:53]Read from MH i2c: E2 [21:29:53]MH_I2C_Read... [21:29:53]Read from MH i2c: E2 62 00 [21:29:53]MH_I2C_Read... [21:29:53]Read from MH i2c: E2 62 00 14 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E8 84 02 00 0E 04 04 00 BF 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 [21:29:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E8 84 02 00 0E 04 04 00 BF 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 [21:29:53]wFMCommunicate OK [21:29:53]SAM_PROTO_GetFieldsCounters done [21:29:53]requested_item shift.num is exist - process it [21:29:53]requested_item shift.opened is exist - process it [21:29:53]req_shift_opened [21:29:53]FM_GetShiftState [21:29:53]SAM_PROTO_GetShiftState [21:29:53]wFMCommunicate request_size=4 [21:29:53]MH_SAM_APDU [21:29:53]CAPDU: 80 13 01 00 [21:29:53]Write to MH i2c: E2 08 00 15 0B 80 13 01 00 00 00 00 00 9D [21:29:53]Write i2c OK [21:29:53]MH_I2C_Read... [21:29:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:29:53]Read from MH i2c: E2 [21:29:53]MH_I2C_Read... [21:29:53]Read from MH i2c: E2 0E 00 [21:29:53]MH_I2C_Read... [21:29:53]Read from MH i2c: E2 0E 00 15 0B 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 1D [21:29:53]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [21:29:53]wFMCommunicate OK [21:29:53]SAM_PROTO_GetShiftState done [21:29:53]FM_GetShiftState done [21:29:53]req_shift_opened done [21:29:53]requested_item shift.open_date is exist - process it [21:29:53]req_shift_open_date [21:29:53]req_shift_open_date done [21:29:53]produce_requested_data done [21:29:53]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165096,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [21:29:53]process_action_free close_receipt [21:29:53]json_value_free [21:29:53]json_value_free done [21:29:53]process_json_proto returns [21:29:53]Send response to host [21:29:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165096,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [21:29:53]free response buf [21:29:53]execute_script done [21:29:53]execute_script returns [21:29:53]free content buf [21:29:53]Sock 7.Close socket [21:29:53]Sock 7.Thread stoped [21:29:57]OFD Sender: No OFD packet to send [21:30:02]OFD Sender: No OFD packet to send [21:30:07]OFD Sender: No OFD packet to send [21:30:12]OFD Sender: No OFD packet to send [21:30:17]OFD Sender: No OFD packet to send [21:30:22]OFD Sender: No OFD packet to send [21:30:27]OFD Sender: No OFD packet to send [21:30:32]OFD Sender: No OFD packet to send [21:30:37]OFD Sender: No OFD packet to send [21:30:42]OFD Sender: No OFD packet to send [21:30:47]OFD Sender: No OFD packet to send [21:30:52]OFD Sender: No OFD packet to send [21:30:55]accept exits with 9 [21:30:55]New connection [21:30:55]New thread 3066928484 created [21:30:55]Thread 3066785124 joined [21:30:55]Waiting for new connection... [21:30:55] Sock 9.Parse request [21:30:55]Sock 9.Check first char [21:30:55]Sock 9.First char is OK [21:30:55]request: POST /json_proto HTTP/1.0 [21:30:55]Method: POST [21:30:55]URL: /json_proto [21:30:55]Method is POST - this is cgi request [21:30:55]url: /json_proto [21:30:55]query_string will be loaded in cgi processing [21:30:55]execute_cgi json_proto POST (null) [21:30:55]execute_cgi path=json_proto method=POST [21:30:55]POST find Content-Length [21:30:55]Host: 172.17.56.4:8080 [21:30:55]Content-Length: 677 [21:30:55]Content-Type: application/json [21:30:55] [21:30:55]POST finish read [21:30:55]Found Content-Length = 677 [21:30:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459200", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 2.600, "sum" : 171.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 171.00, "total" : 171.00, "payments": [ { "type": 0, "sum" : 171.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:30:55]execute_script... [21:30: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)459200", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 2.600, "sum" : 171.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 171.00, "total" : 171.00, "payments": [ { "type": 0, "sum" : 171.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:30:55]POST & json_proto [21:30:55]process_json_proto [21:30:55]json parsed OK: [21:30:55]protocol is kg_v1.0 [21:30:55]action value=close_receipt [21:30:55]process_action close_receipt [21:30:55]cmd_close_receipt [21:30:55]MH_GetDate [21:30:55]Write to MH i2c: F0 00 00 16 0B 10 [21:30:55]Write i2c OK [21:30:55]MH_I2C_Read... [21:30:55]Read from MH i2c: F0 [21:30:55]MH_I2C_Read... [21:30:55]Read from MH i2c: F0 09 00 [21:30:55]MH_I2C_Read... [21:30:55]Read from MH i2c: F0 09 00 16 0B 00 90 43 94 66 C9 DC B2 64 A1 [21:30:55]GetLastDocTimeStamp 1720992591 [21:30:55]current date 1720992656 [21:30:55]FM_GetShiftState [21:30:55]SAM_PROTO_GetShiftState [21:30:55]wFMCommunicate request_size=4 [21:30:55]MH_SAM_APDU [21:30:55]CAPDU: 80 13 01 00 [21:30:55]Write to MH i2c: E2 08 00 17 0B 80 13 01 00 00 00 00 00 9F [21:30:55]Write i2c OK [21:30:55]MH_I2C_Read... [21:30:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:30:55]Read from MH i2c: E2 [21:30:55]MH_I2C_Read... [21:30:55]Read from MH i2c: E2 0E 00 [21:30:55]MH_I2C_Read... [21:30:55]Read from MH i2c: E2 0E 00 17 0B 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 1F [21:30:55]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [21:30:55]wFMCommunicate OK [21:30:55]SAM_PROTO_GetShiftState done [21:30:55]FM_GetShiftState done [21:30:55]opened in 1720917342 [21:30:55]opened+sec_in_day 1721003742 [21:30:55]quantity*price = 17108 [21:30:55]sum+1 = 17109 [21:30:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 171.00 Внесено: 171.00 СДАЧА: 0.00 НСП 1% : 1.51 НДС 12% : 18.17 Наличными: 171.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 295 14.07.2024 21:30 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165097 ФПД: 195387011388769 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T213056&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165097&fm=195387011388769&tin=02508201610067®Number=0000000000090829&sum=17100 [21:30:56]StoreToDocumentArchive [21:30:56]shift 447 fd 165097 [21:30:56]save to /storage/0447/doc_00165097 [21:30:56]save last doc name /storage/0447/doc_00165097 to /storage/kkm_last_doc_name [21:30:56]save OK [21:30:56]Clear old archive folders... [21:30:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:30:56]tlvbuf is 0135E5D0 [21:30:56]SAM_PROTO_ClearQueue [21:30:56]wFMCommunicate request_size=4 [21:30:56]MH_SAM_APDU [21:30:56]CAPDU: 80 09 00 00 [21:30:56]Write to MH i2c: E2 08 00 24 0B 80 09 00 00 00 00 00 00 A1 [21:30:56]Write i2c OK [21:30:56]MH_I2C_Read... [21:30:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:30:56]Read from MH i2c: E2 [21:30:56]MH_I2C_Read... [21:30:56]Read from MH i2c: E2 03 00 [21:30:56]MH_I2C_Read... [21:30:56]Read from MH i2c: E2 03 00 24 0B 00 90 00 A3 [21:30:56]RAPDU: 90 00 [21:30:56]wFMCommunicate OK [21:30:56]SAM_PROTO_ClearQueue done [21:30:56]KKMCreateOFDPacket [21:30:56]OFDProtocolAddRootSTLVToBuf [21:30:56]FM_MakeSignedData [21:30:56]FM_MakeSignedData [21:30:56]SAM_PROTO_SignData [21:30:56]wFMCommunicate request_size=4 [21:30:56]MH_SAM_APDU [21:30:56]CAPDU: 80 0D 01 02 [21:30:56]Write to MH i2c: E2 08 00 25 0B 80 0D 01 02 00 00 00 00 A9 [21:30:56]Write i2c OK [21:30:56]MH_I2C_Read... [21:30:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:30:56]Read from MH i2c: E2 [21:30:56]MH_I2C_Read... [21:30:56]Read from MH i2c: E2 03 00 [21:30:56]MH_I2C_Read... [21:30:56]Read from MH i2c: E2 03 00 25 0B 00 90 00 A4 [21:30:56]RAPDU: 90 00 [21:30:56]wFMCommunicate OK [21:30:56]wFMCommunicate request_size=255 [21:30:56]MH_SAM_APDU [21:30:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 0A 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 D4 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 07 00 00 00 00 07 04 06 00 CC 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 90 43 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E9 84 02 00 35 04 06 00 B1 [21:30:56]Write to MH i2c: E2 02 01 26 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 0A 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 D4 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 07 00 00 00 00 07 04 06 00 CC 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 90 43 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E9 84 02 00 35 04 06 00 B1 00 00 76 [21:30:56]Write i2c OK [21:30:56]MH_I2C_Read... [21:30:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:30:56]Read from MH i2c: E2 [21:30:56]MH_I2C_Read... [21:30:56]Read from MH i2c: E2 03 00 [21:30:56]MH_I2C_Read... [21:30:56]Read from MH i2c: E2 03 00 26 0B 00 90 00 A5 [21:30:56]RAPDU: 90 00 [21:30:56]wFMCommunicate OK [21:30:56]wFMCommunicate request_size=10 [21:30:56]MH_SAM_APDU [21:30:56]CAPDU: 80 0D 02 02 05 B4 15 68 55 61 [21:30:56]Write to MH i2c: E2 0D 00 27 0B 80 0D 02 02 05 00 B4 15 68 55 61 00 00 9D [21:30:56]Write i2c OK [21:30:56]MH_I2C_Read... [21:30:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:30:56]Read from MH i2c: E2 [21:30:56]MH_I2C_Read... [21:30:56]Read from MH i2c: E2 03 00 [21:30:56]MH_I2C_Read... [21:30:56]Read from MH i2c: E2 03 00 27 0B 00 90 00 A6 [21:30:56]RAPDU: 90 00 [21:30:56]wFMCommunicate OK [21:30:56]wFMCommunicate request_size=4 [21:30:56]MH_SAM_APDU [21:30:56]CAPDU: 80 0D 03 02 [21:30:56]Write to MH i2c: E2 08 00 28 0B 80 0D 03 02 00 00 00 00 AE [21:30:56]Write i2c OK [21:30:56]MH_I2C_Read... [21:30:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:30:56]Read from MH i2c: E2 [21:30:56]MH_I2C_Read... [21:30:56]Read from MH i2c: E2 0B 00 [21:30:56]MH_I2C_Read... [21:30:56]Read from MH i2c: E2 0B 00 28 0B 00 76 EE A5 D4 BB E1 B4 0A 90 00 E6 [21:30:56]RAPDU: 76 EE A5 D4 BB E1 B4 0A 90 00 [21:30:56]wFMCommunicate OK [21:30:56]SAM_PROTO_SignData done [21:30:56]FM_MakeSignedData done [21:30:56]CreateOFDProtocolMessage [21:30:56]wFMCommunicate request_size=4 [21:30:56]MH_SAM_APDU [21:30:56]CAPDU: 80 11 00 00 [21:30:56]Write to MH i2c: E2 08 00 29 0B 80 11 00 00 00 00 00 00 AE [21:30:56]Write i2c OK [21:30:56]MH_I2C_Read... [21:30:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:30:56]Read from MH i2c: E2 [21:30:56]MH_I2C_Read... [21:30:56]Read from MH i2c: E2 17 00 [21:30:56]MH_I2C_Read... [21:30:56]Read from MH i2c: E2 17 00 29 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 04 [21:30:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:30:56]wFMCommunicate OK [21:30:56]CreateOFDProtocolMessage done [21:30:56]OFDSenderStorePacket 165097 [21:30:56]StoreOFDPacket docnum=165097 [21:30:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 7D A3 07 01 8B 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 0A 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 D4 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 07 00 00 00 00 07 04 06 00 CC 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 90 43 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E9 84 02 00 35 04 06 00 B1 B4 15 68 55 61 76 EE A5 D4 BB E1 B4 0A [21:30:56]CheckFolder [21:30:56]dirname=/storage/ofd_packets [21:30:56]CheckFolder done [21:30:56]ProducePacketName [21:30:56]name=ofd_packets/00165097 [21:30:56]NVStorageSaveData ofd_packets/00165097 [21:30:56]File name is /storage/ofd_packets/00165097 [21:30:56]Write 301 bytes [21:30:56]NVStorageSaveData done [21:30:56]OFDSenderStorePacket done [21:30:56]KKMCreateOFDPacket done [21:30:56]NVStorageSaveData kkm_last_timestamp [21:30:56]File name is /storage/kkm_last_timestamp [21:30:56]Write 4 bytes [21:30:56]NVStorageSaveData done [21:30:56]ExternCall_PrintAddStr [21:30:56]wPrintStart [21:30:56]Write to MH i2c: 01 00 00 2A 0B 35 [21:30:56]Write i2c OK [21:30:56]MH_I2C_Read... [21:30:56]Read from MH i2c: 01 [21:30:56]MH_I2C_Read... [21:30:56]Read from MH i2c: 01 07 00 [21:30:56]MH_I2C_Read... [21:30:56]Read from MH i2c: 01 07 00 2A 0B 00 00 00 00 00 FF 0F 4A [21:30:56]RasterBufferAndPrint [21:30:56]line Счет N : (1)459200 [21:30:56]line ИНН: 02508201610067 [21:30:56]line Контрольно-Кассовый Чек [21:30:56]line ПРОДАЖА [21:30:56]line ТРК (МРК, ГНК) : 12 [21:30:56]line Товар: 2710124130 [21:30:56]line Аи-92-К-5 [21:30:56]line 2.600 * 65.80 [21:30:56]line = 171.08 [21:30:56]line НДС 12% НСП 1% [21:30:56]line > о реализуемом товаре [21:30:56]line ОКРУГЛЕНИЕ: -0.08 [21:30:56]line ИТОГО: 171.00 [21:30:56]line Внесено: 171.00 [21:30:56]line СДАЧА: 0.00 [21:30:56]line НСП 1% : 1.51 [21:30:56]line НДС 12% : 18.17 [21:30:56]line Наличными: 171.00 [21:30:56]line Безнал.: 0.00 [21:30:56]line Место: АЗС № 72 "Партнер Нефть" [21:30:56]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [21:30:56]line СНО: Общий режим [21:30:56]line Чек 295 14.07.2024 21:30 [21:30:56]line Смена: 447 ФФД: 1.0 [21:30:56]line ЗНМ: 0300000160 [21:30:56]line РНМ: 0000000000090829 [21:30:56]line Версия ККМ: 001 [21:30:56]line ФМ: 0000000000874718 [21:30:56]line ФД: 165097 [21:30:56]line ФПД: 195387011388769 [21:30:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T213056&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165097&fm=195387011388769&tin=02508201610067®Number=0000000000090829&sum=17100 [21:30:57]written 0, free lines is 4095 [21:30:57]OFD Sender: Processing packet 165097 [packets to send 106, broken 105] [21:30:57]ProducePacketName [21:30:57]name=ofd_packets/00165097 [21:30:57]OFD Sender: To server: pG, [21:30:57]CommunicateWithHost lk.salyk.kg:30040 [21:30:57]ConnectInit lk.salyk.kg [21:30:57]Connected sock=10 [21:30:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 7D A3 07 01 8B 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 0A 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 D4 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 07 00 00 00 00 07 04 06 00 CC 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 90 43 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E9 84 02 00 35 04 06 00 B1 B4 15 68 55 61 76 EE A5 D4 BB E1 B4 0A [21:30:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 DC E5 47 00 B9 ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E9 84 02 00 F4 03 04 00 1D EA 93 66 B6 04 01 00 00 85 9D E2 8C ED 04 10 F2 [21:30:57]CommunicateWithHost err = 0 [21:30:57]CheckOFDResponse [21:30:57]1017 (14) - 77093643461234 [21:30:57]1041 (16) - 0000000000874718 [21:30:57]1040 (4) - 165097 [21:30:57]1012 (4) - 14.07.2024 15:09 [21:30:57]1206 (1) - 0 [21:30:57]OFD Sender: Remove packet 165097 [21:30:57]ProducePacketName [21:30:57]name=ofd_packets/00165097 [21:30:57]NVStorageDeleteData [21:30:57]Write to MH i2c: 01 00 00 54 0B 5F [21:30:57]Write i2c OK [21:30:57]MH_I2C_Read... [21:30:57]Read from MH i2c: 01 [21:30:57]MH_I2C_Read... [21:30:57]Read from MH i2c: 01 07 00 [21:30:57]MH_I2C_Read... [21:30:57]Read from MH i2c: 01 07 00 54 0B 00 00 00 00 00 ED 0C 5F [21:30:57]RasterBufferAndPrint [21:30:57]line [21:30:57]line [21:30:57]line [21:30:57]line [21:30:57]line [21:30:57]written 0, free lines is 3315 [21:30:57]MH_Cut [21:30:57]Write to MH i2c: D1 01 00 5B 0B 01 38 [21:30:57]Write i2c OK [21:30:57]MH_I2C_Read... [21:30:57]Read from MH i2c: D1 [21:30:57]MH_I2C_Read... [21:30:57]Read from MH i2c: D1 01 00 [21:30:57]MH_I2C_Read... [21:30:57]Read from MH i2c: D1 01 00 5B 0B 00 37 [21:30:57]Write to MH i2c: 01 00 00 5C 0B 67 [21:30:57]Write i2c OK [21:30:57]MH_I2C_Read... [21:30:57]OFD Sender: No OFD packet to send [21:30:58]*** Cut start [21:30:58]*** Partial cut [21:30:58]*** CUTSNS_PIN = 1 [21:30:58]*** CUTSNS_PIN = 0 [21:30:58]*** Brake cut motor [21:30:58]Read from MH i2c: 01 [21:30:58]MH_I2C_Read... [21:30:58]*** Stop cut motor [21:30:58]*** Cut end [21:30:58]Read from MH i2c: 01 07 00 [21:30:58]MH_I2C_Read... [21:30:58]Read from MH i2c: 01 07 00 5C 0B 00 00 00 00 00 FF 0F 7C [21:30:58]process_action close_receipt done [21:30:58]requested_data is exist [21:30:58]produce_requested_data [21:30:58]requested_item fm.sn is exist - process it [21:30:58]wFMCommunicate request_size=4 [21:30:58]MH_SAM_APDU [21:30:58]CAPDU: 80 11 00 00 [21:30:58]Write to MH i2c: E2 08 00 5D 0B 80 11 00 00 00 00 00 00 E2 [21:30:58]Write i2c OK [21:30:58]MH_I2C_Read... [21:30:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:30:58]Read from MH i2c: E2 [21:30:58]MH_I2C_Read... [21:30:58]Read from MH i2c: E2 17 00 [21:30:58]MH_I2C_Read... [21:30:58]Read from MH i2c: E2 17 00 5D 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 38 [21:30:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:30:58]wFMCommunicate OK [21:30:58]requested_item fd.num is exist - process it [21:30:58]SAM_PROTO_GetFieldsCounters [21:30:58]wFMCommunicate request_size=4 [21:30:58]MH_SAM_APDU [21:30:58]CAPDU: 80 13 00 00 [21:30:58]Write to MH i2c: E2 08 00 5E 0B 80 13 00 00 00 00 00 00 E5 [21:30:58]Write i2c OK [21:30:58]MH_I2C_Read... [21:30:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:30:59]Read from MH i2c: E2 [21:30:59]MH_I2C_Read... [21:30:59]Read from MH i2c: E2 62 00 [21:30:59]MH_I2C_Read... [21:30:59]Read from MH i2c: E2 62 00 5E 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E9 84 02 00 0E 04 04 00 BF 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 [21:30:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E9 84 02 00 0E 04 04 00 BF 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 [21:30:59]wFMCommunicate OK [21:30:59]SAM_PROTO_GetFieldsCounters done [21:30:59]requested_item shift.num is exist - process it [21:30:59]requested_item shift.opened is exist - process it [21:30:59]req_shift_opened [21:30:59]FM_GetShiftState [21:30:59]SAM_PROTO_GetShiftState [21:30:59]wFMCommunicate request_size=4 [21:30:59]MH_SAM_APDU [21:30:59]CAPDU: 80 13 01 00 [21:30:59]Write to MH i2c: E2 08 00 5F 0B 80 13 01 00 00 00 00 00 E7 [21:30:59]Write i2c OK [21:30:59]MH_I2C_Read... [21:30:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:30:59]Read from MH i2c: E2 [21:30:59]MH_I2C_Read... [21:30:59]Read from MH i2c: E2 0E 00 [21:30:59]MH_I2C_Read... [21:30:59]Read from MH i2c: E2 0E 00 5F 0B 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 67 [21:30:59]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [21:30:59]wFMCommunicate OK [21:30:59]SAM_PROTO_GetShiftState done [21:30:59]FM_GetShiftState done [21:30:59]req_shift_opened done [21:30:59]requested_item shift.open_date is exist - process it [21:30:59]req_shift_open_date [21:30:59]req_shift_open_date done [21:30:59]produce_requested_data done [21:30:59]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165097,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [21:30:59]process_action_free close_receipt [21:30:59]json_value_free [21:30:59]json_value_free done [21:30:59]process_json_proto returns [21:30:59]Send response to host [21:30:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165097,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [21:30:59]free response buf [21:30:59]execute_script done [21:30:59]execute_script returns [21:30:59]free content buf [21:30:59]Sock 9.Close socket [21:30:59]Sock 9.Thread stoped [21:31:02]OFD Sender: No OFD packet to send [21:31:07]OFD Sender: No OFD packet to send [21:31:12]OFD Sender: No OFD packet to send [21:31:17]OFD Sender: No OFD packet to send [21:31:22]OFD Sender: No OFD packet to send [21:31:27]OFD Sender: No OFD packet to send [21:31:32]OFD Sender: No OFD packet to send [21:31:37]OFD Sender: No OFD packet to send [21:31:42]OFD Sender: No OFD packet to send [21:31:46]accept exits with 7 [21:31:46]New connection [21:31:46]New thread 3066785124 created [21:31:46]Thread 3066928484 joined [21:31:46]Waiting for new connection... [21:31:46] Sock 7.Parse request [21:31:46]Sock 7.Check first char [21:31:46]Sock 7.First char is OK [21:31:46]request: POST /json_proto HTTP/1.0 [21:31:46]Method: POST [21:31:46]URL: /json_proto [21:31:46]Method is POST - this is cgi request [21:31:46]url: /json_proto [21:31:46]query_string will be loaded in cgi processing [21:31:46]execute_cgi json_proto POST (null) [21:31:46]execute_cgi path=json_proto method=POST [21:31:46]POST find Content-Length [21:31:46]Host: 172.17.56.4:8080 [21:31:46]Content-Length: 677 [21:31:46]Content-Type: application/json [21:31:46] [21:31:46]POST finish read [21:31:46]Found Content-Length = 677 [21:31:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459201", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.800, "sum" : 250.04, "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" ] } } [21:31:46]execute_script... [21:31: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)459201", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.800, "sum" : 250.04, "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" ] } } [21:31:46]POST & json_proto [21:31:46]process_json_proto [21:31:46]json parsed OK: [21:31:46]protocol is kg_v1.0 [21:31:46]action value=close_receipt [21:31:46]process_action close_receipt [21:31:46]cmd_close_receipt [21:31:46]MH_GetDate [21:31:46]Write to MH i2c: F0 00 00 60 0B 5A [21:31:46]Write i2c OK [21:31:46]MH_I2C_Read... [21:31:46]Read from MH i2c: F0 [21:31:46]MH_I2C_Read... [21:31:46]Read from MH i2c: F0 09 00 [21:31:46]MH_I2C_Read... [21:31:46]Read from MH i2c: F0 09 00 60 0B 00 C4 43 94 66 C9 DC B2 64 1F [21:31:46]GetLastDocTimeStamp 1720992656 [21:31:46]current date 1720992708 [21:31:46]FM_GetShiftState [21:31:46]SAM_PROTO_GetShiftState [21:31:46]wFMCommunicate request_size=4 [21:31:46]MH_SAM_APDU [21:31:46]CAPDU: 80 13 01 00 [21:31:46]Write to MH i2c: E2 08 00 61 0B 80 13 01 00 00 00 00 00 E9 [21:31:46]Write i2c OK [21:31:46]MH_I2C_Read... [21:31:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:31:46]Read from MH i2c: E2 [21:31:46]MH_I2C_Read... [21:31:46]Read from MH i2c: E2 0E 00 [21:31:46]MH_I2C_Read... [21:31:46]Read from MH i2c: E2 0E 00 61 0B 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 69 [21:31:46]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [21:31:46]wFMCommunicate OK [21:31:46]SAM_PROTO_GetShiftState done [21:31:46]FM_GetShiftState done [21:31:46]opened in 1720917342 [21:31:46]opened+sec_in_day 1721003742 [21:31:46]quantity*price = 25004 [21:31:46]sum+1 = 25005 [21:31:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.55 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 296 14.07.2024 21:31 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165098 ФПД: 132593658363789 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T213148&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165098&fm=132593658363789&tin=02508201610067®Number=0000000000090829&sum=25000 [21:31:47]StoreToDocumentArchive [21:31:47]shift 447 fd 165098 [21:31:47]save to /storage/0447/doc_00165098 [21:31:47]save last doc name /storage/0447/doc_00165098 to /storage/kkm_last_doc_name [21:31:47]save OK [21:31:47]Clear old archive folders... [21:31:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:31:47]tlvbuf is 01377A40 [21:31:47]SAM_PROTO_ClearQueue [21:31:47]wFMCommunicate request_size=4 [21:31:47]MH_SAM_APDU [21:31:47]CAPDU: 80 09 00 00 [21:31:47]Write to MH i2c: E2 08 00 6E 0B 80 09 00 00 00 00 00 00 EB [21:31:47]Write i2c OK [21:31:47]MH_I2C_Read... [21:31:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:31:47]Read from MH i2c: E2 [21:31:47]MH_I2C_Read... [21:31:47]Read from MH i2c: E2 03 00 [21:31:47]MH_I2C_Read... [21:31:47]Read from MH i2c: E2 03 00 6E 0B 00 90 00 ED [21:31:47]RAPDU: 90 00 [21:31:47]wFMCommunicate OK [21:31:47]SAM_PROTO_ClearQueue done [21:31:47]KKMCreateOFDPacket [21:31:47]OFDProtocolAddRootSTLVToBuf [21:31:47]FM_MakeSignedData [21:31:47]FM_MakeSignedData [21:31:47]SAM_PROTO_SignData [21:31:47]wFMCommunicate request_size=4 [21:31:47]MH_SAM_APDU [21:31:47]CAPDU: 80 0D 01 02 [21:31:47]Write to MH i2c: E2 08 00 6F 0B 80 0D 01 02 00 00 00 00 F3 [21:31:47]Write i2c OK [21:31:47]MH_I2C_Read... [21:31:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:31:48]OFD Sender: No OFD packet to send [21:31:48]Read from MH i2c: E2 [21:31:48]MH_I2C_Read... [21:31:48]Read from MH i2c: E2 03 00 [21:31:48]MH_I2C_Read... [21:31:48]Read from MH i2c: E2 03 00 6F 0B 00 90 00 EE [21:31:48]RAPDU: 90 00 [21:31:48]wFMCommunicate OK [21:31:48]wFMCommunicate request_size=255 [21:31:48]MH_SAM_APDU [21:31:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 AC 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 C4 43 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EA 84 02 00 35 04 06 00 78 [21:31:48]Write to MH i2c: E2 02 01 70 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 AC 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 C4 43 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EA 84 02 00 35 04 06 00 78 00 00 ED [21:31:48]Write i2c OK [21:31:48]MH_I2C_Read... [21:31:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:31:48]Read from MH i2c: E2 [21:31:48]MH_I2C_Read... [21:31:48]Read from MH i2c: E2 03 00 [21:31:48]MH_I2C_Read... [21:31:48]Read from MH i2c: E2 03 00 70 0B 00 90 00 EF [21:31:48]RAPDU: 90 00 [21:31:48]wFMCommunicate OK [21:31:48]wFMCommunicate request_size=10 [21:31:48]MH_SAM_APDU [21:31:48]CAPDU: 80 0D 02 02 05 97 DD E7 FF 8D [21:31:48]Write to MH i2c: E2 0D 00 71 0B 80 0D 02 02 05 00 97 DD E7 FF 8D 00 00 E7 [21:31:48]Write i2c OK [21:31:48]MH_I2C_Read... [21:31:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:31:48]Read from MH i2c: E2 [21:31:48]MH_I2C_Read... [21:31:48]Read from MH i2c: E2 03 00 [21:31:48]MH_I2C_Read... [21:31:48]Read from MH i2c: E2 03 00 71 0B 00 90 00 F0 [21:31:48]RAPDU: 90 00 [21:31:48]wFMCommunicate OK [21:31:48]wFMCommunicate request_size=4 [21:31:48]MH_SAM_APDU [21:31:48]CAPDU: 80 0D 03 02 [21:31:48]Write to MH i2c: E2 08 00 72 0B 80 0D 03 02 00 00 00 00 F8 [21:31:48]Write i2c OK [21:31:48]MH_I2C_Read... [21:31:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:31:48]Read from MH i2c: E2 [21:31:48]MH_I2C_Read... [21:31:48]Read from MH i2c: E2 0B 00 [21:31:48]MH_I2C_Read... [21:31:48]Read from MH i2c: E2 0B 00 72 0B 00 66 83 35 5F 87 EF 2C 26 90 00 3E [21:31:48]RAPDU: 66 83 35 5F 87 EF 2C 26 90 00 [21:31:48]wFMCommunicate OK [21:31:48]SAM_PROTO_SignData done [21:31:48]FM_MakeSignedData done [21:31:48]CreateOFDProtocolMessage [21:31:48]wFMCommunicate request_size=4 [21:31:48]MH_SAM_APDU [21:31:48]CAPDU: 80 11 00 00 [21:31:48]Write to MH i2c: E2 08 00 73 0B 80 11 00 00 00 00 00 00 F8 [21:31:48]Write i2c OK [21:31:48]MH_I2C_Read... [21:31:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:31:48]Read from MH i2c: E2 [21:31:48]MH_I2C_Read... [21:31:48]Read from MH i2c: E2 17 00 [21:31:48]MH_I2C_Read... [21:31:48]Read from MH i2c: E2 17 00 73 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 4E [21:31:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:31:48]wFMCommunicate OK [21:31:48]CreateOFDProtocolMessage done [21:31:48]OFDSenderStorePacket 165098 [21:31:48]StoreOFDPacket docnum=165098 [21:31:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 96 E2 07 01 72 C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 AC 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 C4 43 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EA 84 02 00 35 04 06 00 78 97 DD E7 FF 8D 66 83 35 5F 87 EF 2C 26 [21:31:48]CheckFolder [21:31:48]dirname=/storage/ofd_packets [21:31:48]CheckFolder done [21:31:48]ProducePacketName [21:31:48]name=ofd_packets/00165098 [21:31:48]NVStorageSaveData ofd_packets/00165098 [21:31:48]File name is /storage/ofd_packets/00165098 [21:31:48]Write 301 bytes [21:31:48]NVStorageSaveData done [21:31:48]OFDSenderStorePacket done [21:31:48]KKMCreateOFDPacket done [21:31:48]NVStorageSaveData kkm_last_timestamp [21:31:48]File name is /storage/kkm_last_timestamp [21:31:48]Write 4 bytes [21:31:48]NVStorageSaveData done [21:31:48]ExternCall_PrintAddStr [21:31:48]wPrintStart [21:31:48]Write to MH i2c: 01 00 00 74 0B 7F [21:31:48]Write i2c OK [21:31:48]MH_I2C_Read... [21:31:48]Read from MH i2c: 01 [21:31:48]MH_I2C_Read... [21:31:48]Read from MH i2c: 01 07 00 [21:31:48]MH_I2C_Read... [21:31:48]Read from MH i2c: 01 07 00 74 0B 00 00 00 00 00 FF 0F 94 [21:31:48]RasterBufferAndPrint [21:31:48]line Счет N : (1)459201 [21:31:48]line ИНН: 02508201610067 [21:31:48]line Контрольно-Кассовый Чек [21:31:48]line ПРОДАЖА [21:31:48]line ТРК (МРК, ГНК) : 22 [21:31:48]line Товар: 2710124130 [21:31:48]line Аи-92-К-5 [21:31:48]line 3.800 * 65.80 [21:31:48]line = 250.04 [21:31:48]line НДС 12% НСП 1% [21:31:48]line > о реализуемом товаре [21:31:48]line ОКРУГЛЕНИЕ: -0.04 [21:31:48]line ИТОГО: 250.00 [21:31:48]line Внесено: 250.00 [21:31:48]line СДАЧА: 0.00 [21:31:48]line НСП 1% : 2.21 [21:31:48]line НДС 12% : 26.55 [21:31:48]line Наличными: 250.00 [21:31:48]line Безнал.: 0.00 [21:31:48]line Место: АЗС № 72 "Партнер Нефть" [21:31:48]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [21:31:48]line СНО: Общий режим [21:31:48]line Чек 296 14.07.2024 21:31 [21:31:48]line Смена: 447 ФФД: 1.0 [21:31:48]line ЗНМ: 0300000160 [21:31:48]line РНМ: 0000000000090829 [21:31:48]line Версия ККМ: 001 [21:31:48]line ФМ: 0000000000874718 [21:31:48]line ФД: 165098 [21:31:48]line ФПД: 132593658363789 [21:31:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T213148&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165098&fm=132593658363789&tin=02508201610067®Number=0000000000090829&sum=25000 [21:31:48]OFD Sender: Processing packet 165098 [packets to send 106, broken 105] [21:31:48]ProducePacketName [21:31:48]name=ofd_packets/00165098 [21:31:48]OFD Sender: To server: pG, [21:31:48]CommunicateWithHost lk.salyk.kg:30040 [21:31:48]ConnectInit lk.salyk.kg [21:31:48]written 0, free lines is 4095 [21:31:48]Connected sock=10 [21:31:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 96 E2 07 01 72 C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 AC 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 C4 43 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EA 84 02 00 35 04 06 00 78 97 DD E7 FF 8D 66 83 35 5F 87 EF 2C 26 [21:31:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 3E 79 47 00 F5 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 38 37 34 37 31 38 10 04 04 00 EA 84 02 00 F4 03 04 00 50 EA 93 66 B6 04 01 00 00 CE 0C 7E 8B F0 5D F3 47 [21:31:49]CommunicateWithHost err = 0 [21:31:49]CheckOFDResponse [21:31:49]1017 (14) - 77093643461234 [21:31:49]1041 (16) - 0000000000874718 [21:31:49]1040 (4) - 165098 [21:31:49]1012 (4) - 14.07.2024 15:10 [21:31:49]1206 (1) - 0 [21:31:49]OFD Sender: Remove packet 165098 [21:31:49]ProducePacketName [21:31:49]name=ofd_packets/00165098 [21:31:49]NVStorageDeleteData [21:31:49]Write to MH i2c: 01 00 00 9E 0B A9 [21:31:49]Write i2c OK [21:31:49]MH_I2C_Read... [21:31:49]Read from MH i2c: 01 [21:31:49]MH_I2C_Read... [21:31:49]Read from MH i2c: 01 07 00 [21:31:49]MH_I2C_Read... [21:31:49]Read from MH i2c: 01 07 00 9E 0B 00 00 00 00 00 F2 0C AE [21:31:49]RasterBufferAndPrint [21:31:49]line [21:31:49]line [21:31:49]line [21:31:49]line [21:31:49]line [21:31:49]written 0, free lines is 3321 [21:31:49]MH_Cut [21:31:49]Write to MH i2c: D1 01 00 A5 0B 01 82 [21:31:49]Write i2c OK [21:31:49]MH_I2C_Read... [21:31:49]Read from MH i2c: D1 [21:31:49]MH_I2C_Read... [21:31:49]Read from MH i2c: D1 01 00 [21:31:49]MH_I2C_Read... [21:31:49]Read from MH i2c: D1 01 00 A5 0B 00 81 [21:31:49]Write to MH i2c: 01 00 00 A6 0B B1 [21:31:49]Write i2c OK [21:31:49]MH_I2C_Read... [21:31:49]OFD Sender: No OFD packet to send [21:31:49]*** Cut start [21:31:49]*** Partial cut [21:31:49]*** CUTSNS_PIN = 1 [21:31:49]*** CUTSNS_PIN = 0 [21:31:50]*** Brake cut motor [21:31:50]Read from MH i2c: 01 [21:31:50]MH_I2C_Read... [21:31:50]*** Stop cut motor [21:31:50]*** Cut end [21:31:50]Read from MH i2c: 01 07 00 [21:31:50]MH_I2C_Read... [21:31:50]Read from MH i2c: 01 07 00 A6 0B 00 00 00 00 00 FF 0F C6 [21:31:50]process_action close_receipt done [21:31:50]requested_data is exist [21:31:50]produce_requested_data [21:31:50]requested_item fm.sn is exist - process it [21:31:50]wFMCommunicate request_size=4 [21:31:50]MH_SAM_APDU [21:31:50]CAPDU: 80 11 00 00 [21:31:50]Write to MH i2c: E2 08 00 A7 0B 80 11 00 00 00 00 00 00 2C [21:31:50]Write i2c OK [21:31:50]MH_I2C_Read... [21:31:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:31:50]Read from MH i2c: E2 [21:31:50]MH_I2C_Read... [21:31:50]Read from MH i2c: E2 17 00 [21:31:50]MH_I2C_Read... [21:31:50]Read from MH i2c: E2 17 00 A7 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 82 [21:31:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:31:50]wFMCommunicate OK [21:31:50]requested_item fd.num is exist - process it [21:31:50]SAM_PROTO_GetFieldsCounters [21:31:50]wFMCommunicate request_size=4 [21:31:50]MH_SAM_APDU [21:31:50]CAPDU: 80 13 00 00 [21:31:50]Write to MH i2c: E2 08 00 A8 0B 80 13 00 00 00 00 00 00 2F [21:31:50]Write i2c OK [21:31:50]MH_I2C_Read... [21:31:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:31:50]Read from MH i2c: E2 [21:31:50]MH_I2C_Read... [21:31:50]Read from MH i2c: E2 62 00 [21:31:50]MH_I2C_Read... [21:31:50]Read from MH i2c: E2 62 00 A8 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 EA 84 02 00 0E 04 04 00 BF 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 01 [21:31:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 EA 84 02 00 0E 04 04 00 BF 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 [21:31:50]wFMCommunicate OK [21:31:50]SAM_PROTO_GetFieldsCounters done [21:31:50]requested_item shift.num is exist - process it [21:31:50]requested_item shift.opened is exist - process it [21:31:50]req_shift_opened [21:31:50]FM_GetShiftState [21:31:50]SAM_PROTO_GetShiftState [21:31:50]wFMCommunicate request_size=4 [21:31:50]MH_SAM_APDU [21:31:50]CAPDU: 80 13 01 00 [21:31:50]Write to MH i2c: E2 08 00 A9 0B 80 13 01 00 00 00 00 00 31 [21:31:50]Write i2c OK [21:31:50]MH_I2C_Read... [21:31:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:31:50]Read from MH i2c: E2 [21:31:50]MH_I2C_Read... [21:31:50]Read from MH i2c: E2 0E 00 [21:31:50]MH_I2C_Read... [21:31:50]Read from MH i2c: E2 0E 00 A9 0B 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 B1 [21:31:50]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [21:31:50]wFMCommunicate OK [21:31:50]SAM_PROTO_GetShiftState done [21:31:50]FM_GetShiftState done [21:31:50]req_shift_opened done [21:31:50]requested_item shift.open_date is exist - process it [21:31:50]req_shift_open_date [21:31:50]req_shift_open_date done [21:31:50]produce_requested_data done [21:31:50]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165098,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [21:31:50]process_action_free close_receipt [21:31:50]json_value_free [21:31:50]json_value_free done [21:31:50]process_json_proto returns [21:31:50]Send response to host [21:31:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165098,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [21:31:50]free response buf [21:31:50]execute_script done [21:31:50]execute_script returns [21:31:50]free content buf [21:31:50]Sock 7.Close socket [21:31:50]Sock 7.Thread stoped [21:31:54]OFD Sender: No OFD packet to send [21:31:59]OFD Sender: No OFD packet to send [21:32:04]OFD Sender: No OFD packet to send [21:32:09]OFD Sender: No OFD packet to send [21:32:14]OFD Sender: No OFD packet to send [21:32:19]OFD Sender: No OFD packet to send [21:32:24]OFD Sender: No OFD packet to send [21:32:29]OFD Sender: No OFD packet to send [21:32:34]OFD Sender: No OFD packet to send [21:32:39]OFD Sender: No OFD packet to send [21:32:44]OFD Sender: No OFD packet to send [21:32:49]OFD Sender: No OFD packet to send [21:32:54]OFD Sender: No OFD packet to send [21:32:59]OFD Sender: No OFD packet to send [21:33:04]OFD Sender: No OFD packet to send [21:33:09]OFD Sender: No OFD packet to send [21:33:14]OFD Sender: No OFD packet to send [21:33:19]OFD Sender: No OFD packet to send [21:33:24]OFD Sender: No OFD packet to send [21:33:29]OFD Sender: No OFD packet to send [21:33:34]OFD Sender: No OFD packet to send [21:33:39]OFD Sender: No OFD packet to send [21:33:44]OFD Sender: No OFD packet to send [21:33:49]OFD Sender: No OFD packet to send [21:33:54]OFD Sender: No OFD packet to send [21:33:59]OFD Sender: No OFD packet to send [21:34:04]OFD Sender: No OFD packet to send [21:34:09]OFD Sender: No OFD packet to send [21:34:14]OFD Sender: No OFD packet to send [21:34:19]OFD Sender: No OFD packet to send [21:34:24]OFD Sender: No OFD packet to send [21:34:29]OFD Sender: No OFD packet to send [21:34:34]OFD Sender: No OFD packet to send [21:34:39]OFD Sender: No OFD packet to send [21:34:44]OFD Sender: No OFD packet to send [21:34:49]OFD Sender: No OFD packet to send [21:34:54]OFD Sender: No OFD packet to send [21:34:59]OFD Sender: No OFD packet to send [21:35:04]OFD Sender: No OFD packet to send [21:35:09]OFD Sender: No OFD packet to send [21:35:14]OFD Sender: No OFD packet to send [21:35:19]OFD Sender: No OFD packet to send [21:35:24]OFD Sender: No OFD packet to send [21:35:29]OFD Sender: No OFD packet to send [21:35:34]OFD Sender: No OFD packet to send [21:35:39]OFD Sender: No OFD packet to send [21:35:44]OFD Sender: No OFD packet to send [21:35:49]OFD Sender: No OFD packet to send [21:35:54]OFD Sender: No OFD packet to send [21:35:59]OFD Sender: No OFD packet to send [21:36:04]OFD Sender: No OFD packet to send [21:36:09]OFD Sender: No OFD packet to send [21:36:14]OFD Sender: No OFD packet to send [21:36:19]OFD Sender: No OFD packet to send [21:36:24]OFD Sender: No OFD packet to send [21:36:29]OFD Sender: No OFD packet to send [21:36:34]OFD Sender: No OFD packet to send [21:36:39]OFD Sender: No OFD packet to send [21:36:44]OFD Sender: No OFD packet to send [21:36:49]OFD Sender: No OFD packet to send [21:36:54]OFD Sender: No OFD packet to send [21:36:59]OFD Sender: No OFD packet to send [21:37:04]OFD Sender: No OFD packet to send [21:37:09]OFD Sender: No OFD packet to send [21:37:14]OFD Sender: No OFD packet to send [21:37:19]OFD Sender: No OFD packet to send [21:37:24]OFD Sender: No OFD packet to send [21:37:29]OFD Sender: No OFD packet to send [21:37:34]OFD Sender: No OFD packet to send [21:37:39]OFD Sender: No OFD packet to send [21:37:44]OFD Sender: No OFD packet to send [21:37:49]OFD Sender: No OFD packet to send [21:37:55]OFD Sender: No OFD packet to send [21:38:00]OFD Sender: No OFD packet to send [21:38:05]OFD Sender: No OFD packet to send [21:38:10]OFD Sender: No OFD packet to send [21:38:15]OFD Sender: No OFD packet to send [21:38:20]OFD Sender: No OFD packet to send [21:38:25]OFD Sender: No OFD packet to send [21:38:30]OFD Sender: No OFD packet to send [21:38:35]OFD Sender: No OFD packet to send [21:38:40]OFD Sender: No OFD packet to send [21:38:45]OFD Sender: No OFD packet to send [21:38:50]OFD Sender: No OFD packet to send [21:38:55]OFD Sender: No OFD packet to send [21:39:00]OFD Sender: No OFD packet to send [21:39:05]OFD Sender: No OFD packet to send [21:39:10]OFD Sender: No OFD packet to send [21:39:15]OFD Sender: No OFD packet to send [21:39:20]OFD Sender: No OFD packet to send [21:39:25]OFD Sender: No OFD packet to send [21:39:30]OFD Sender: No OFD packet to send [21:39:35]OFD Sender: No OFD packet to send [21:39:40]OFD Sender: No OFD packet to send [21:39:45]OFD Sender: No OFD packet to send [21:39:50]OFD Sender: No OFD packet to send [21:39:55]OFD Sender: No OFD packet to send [21:40:00]OFD Sender: No OFD packet to send [21:40:05]OFD Sender: No OFD packet to send [21:40:10]OFD Sender: No OFD packet to send [21:40:15]OFD Sender: No OFD packet to send [21:40:20]OFD Sender: No OFD packet to send [21:40:25]OFD Sender: No OFD packet to send [21:40:30]OFD Sender: No OFD packet to send [21:40:35]OFD Sender: No OFD packet to send [21:40:40]OFD Sender: No OFD packet to send [21:40:45]OFD Sender: No OFD packet to send [21:40:50]OFD Sender: No OFD packet to send [21:40:55]OFD Sender: No OFD packet to send [21:41:00]OFD Sender: No OFD packet to send [21:41:05]OFD Sender: No OFD packet to send [21:41:10]OFD Sender: No OFD packet to send [21:41:15]OFD Sender: No OFD packet to send [21:41:20]OFD Sender: No OFD packet to send [21:41:25]OFD Sender: No OFD packet to send [21:41:30]OFD Sender: No OFD packet to send [21:41:35]OFD Sender: No OFD packet to send [21:41:40]OFD Sender: No OFD packet to send [21:41:45]OFD Sender: No OFD packet to send [21:41:50]OFD Sender: No OFD packet to send [21:41:55]OFD Sender: No OFD packet to send [21:42:00]OFD Sender: No OFD packet to send [21:42:04]accept exits with 9 [21:42:04]New connection [21:42:04]New thread 3066928484 created [21:42:04]Thread 3066785124 joined [21:42:04]Waiting for new connection... [21:42:04] Sock 9.Parse request [21:42:04]Sock 9.Check first char [21:42:04]Sock 9.First char is OK [21:42:04]request: POST /json_proto HTTP/1.0 [21:42:04]Method: POST [21:42:04]URL: /json_proto [21:42:04]Method is POST - this is cgi request [21:42:04]url: /json_proto [21:42:04]query_string will be loaded in cgi processing [21:42:04]execute_cgi json_proto POST (null) [21:42:04]execute_cgi path=json_proto method=POST [21:42:04]POST find Content-Length [21:42:04]Host: 172.17.56.4:8080 [21:42:04]Content-Length: 679 [21:42:04]Content-Type: application/json [21:42:04] [21:42:04]POST finish read [21:42:04]Found Content-Length = 679 [21:42:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459202", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:42:04]execute_script... [21:42: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)459202", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:42:04]POST & json_proto [21:42:04]process_json_proto [21:42:04]json parsed OK: [21:42:04]protocol is kg_v1.0 [21:42:04]action value=close_receipt [21:42:04]process_action close_receipt [21:42:04]cmd_close_receipt [21:42:04]MH_GetDate [21:42:04]Write to MH i2c: F0 00 00 AA 0B A4 [21:42:04]Write i2c OK [21:42:04]MH_I2C_Read... [21:42:04]Read from MH i2c: F0 [21:42:04]MH_I2C_Read... [21:42:04]Read from MH i2c: F0 09 00 [21:42:04]MH_I2C_Read... [21:42:04]Read from MH i2c: F0 09 00 AA 0B 00 2E 46 94 66 C9 DC B2 64 D6 [21:42:04]GetLastDocTimeStamp 1720992708 [21:42:04]current date 1720993326 [21:42:04]FM_GetShiftState [21:42:04]SAM_PROTO_GetShiftState [21:42:04]wFMCommunicate request_size=4 [21:42:04]MH_SAM_APDU [21:42:04]CAPDU: 80 13 01 00 [21:42:04]Write to MH i2c: E2 08 00 AB 0B 80 13 01 00 00 00 00 00 33 [21:42:04]Write i2c OK [21:42:04]MH_I2C_Read... [21:42:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:42:04]Read from MH i2c: E2 [21:42:04]MH_I2C_Read... [21:42:04]Read from MH i2c: E2 0E 00 [21:42:04]MH_I2C_Read... [21:42:04]Read from MH i2c: E2 0E 00 AB 0B 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 B3 [21:42:04]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [21:42:04]wFMCommunicate OK [21:42:04]SAM_PROTO_GetShiftState done [21:42:04]FM_GetShiftState done [21:42:04]opened in 1720917342 [21:42:04]opened+sec_in_day 1721003742 [21:42:04]quantity*price = 100012 [21:42:04]sum+1 = 100014 [21:42:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 297 14.07.2024 21:42 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165099 ФПД: 231163882446031 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T214206&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165099&fm=231163882446031&tin=02508201610067®Number=0000000000090829&sum=100000 [21:42:05]StoreToDocumentArchive [21:42:05]shift 447 fd 165099 [21:42:05]save to /storage/0447/doc_00165099 [21:42:05]save last doc name /storage/0447/doc_00165099 to /storage/kkm_last_doc_name [21:42:05]save OK [21:42:05]Clear old archive folders... [21:42:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:42:05]tlvbuf is 01343700 [21:42:05]SAM_PROTO_ClearQueue [21:42:05]wFMCommunicate request_size=4 [21:42:05]MH_SAM_APDU [21:42:05]CAPDU: 80 09 00 00 [21:42:05]Write to MH i2c: E2 08 00 B8 0B 80 09 00 00 00 00 00 00 35 [21:42:05]Write i2c OK [21:42:05]MH_I2C_Read... [21:42:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:42:05]Read from MH i2c: E2 [21:42:05]MH_I2C_Read... [21:42:05]Read from MH i2c: E2 03 00 [21:42:05]MH_I2C_Read... [21:42:05]Read from MH i2c: E2 03 00 B8 0B 00 90 00 37 [21:42:05]RAPDU: 90 00 [21:42:05]wFMCommunicate OK [21:42:05]SAM_PROTO_ClearQueue done [21:42:05]KKMCreateOFDPacket [21:42:05]OFDProtocolAddRootSTLVToBuf [21:42:05]FM_MakeSignedData [21:42:05]FM_MakeSignedData [21:42:05]SAM_PROTO_SignData [21:42:05]wFMCommunicate request_size=4 [21:42:05]MH_SAM_APDU [21:42:05]CAPDU: 80 0D 01 02 [21:42:05]Write to MH i2c: E2 08 00 B9 0B 80 0D 01 02 00 00 00 00 3D [21:42:05]Write i2c OK [21:42:05]MH_I2C_Read... [21:42:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:42:05]Read from MH i2c: E2 [21:42:05]MH_I2C_Read... [21:42:05]Read from MH i2c: E2 03 00 [21:42:05]MH_I2C_Read... [21:42:05]Read from MH i2c: E2 03 00 B9 0B 00 90 00 38 [21:42:05]RAPDU: 90 00 [21:42:05]wFMCommunicate OK [21:42:05]wFMCommunicate request_size=255 [21:42:05]MH_SAM_APDU [21:42: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 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 2E 46 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EB 84 02 00 35 04 06 00 D2 3E 09 19 [21:42:05]Write to MH i2c: E2 02 01 BA 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 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 2E 46 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EB 84 02 00 35 04 06 00 D2 3E 09 19 00 00 F9 [21:42:06]Write i2c OK [21:42:06]MH_I2C_Read... [21:42:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:42:06]Read from MH i2c: E2 [21:42:06]MH_I2C_Read... [21:42:06]Read from MH i2c: E2 03 00 [21:42:06]MH_I2C_Read... [21:42:06]Read from MH i2c: E2 03 00 BA 0B 00 90 00 39 [21:42:06]RAPDU: 90 00 [21:42:06]wFMCommunicate OK [21:42:06]wFMCommunicate request_size=7 [21:42:06]MH_SAM_APDU [21:42:06]CAPDU: 80 0D 02 02 02 1C CF [21:42:06]Write to MH i2c: E2 0A 00 BB 0B 80 0D 02 02 02 00 1C CF 00 00 2F [21:42:06]Write i2c OK [21:42:06]MH_I2C_Read... [21:42:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:42:06]Read from MH i2c: E2 [21:42:06]MH_I2C_Read... [21:42:06]Read from MH i2c: E2 03 00 [21:42:06]MH_I2C_Read... [21:42:06]Read from MH i2c: E2 03 00 BB 0B 00 90 00 3A [21:42:06]RAPDU: 90 00 [21:42:06]wFMCommunicate OK [21:42:06]wFMCommunicate request_size=4 [21:42:06]MH_SAM_APDU [21:42:06]CAPDU: 80 0D 03 02 [21:42:06]Write to MH i2c: E2 08 00 BC 0B 80 0D 03 02 00 00 00 00 42 [21:42:06]Write i2c OK [21:42:06]MH_I2C_Read... [21:42:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:42:06]Read from MH i2c: E2 [21:42:06]MH_I2C_Read... [21:42:06]Read from MH i2c: E2 0B 00 [21:42:06]MH_I2C_Read... [21:42:06]Read from MH i2c: E2 0B 00 BC 0B 00 D6 17 24 D8 E8 13 D4 72 90 00 6D [21:42:06]RAPDU: D6 17 24 D8 E8 13 D4 72 90 00 [21:42:06]wFMCommunicate OK [21:42:06]SAM_PROTO_SignData done [21:42:06]FM_MakeSignedData done [21:42:06]CreateOFDProtocolMessage [21:42:06]wFMCommunicate request_size=4 [21:42:06]MH_SAM_APDU [21:42:06]CAPDU: 80 11 00 00 [21:42:06]Write to MH i2c: E2 08 00 BD 0B 80 11 00 00 00 00 00 00 42 [21:42:06]Write i2c OK [21:42:06]MH_I2C_Read... [21:42:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:42:06]Read from MH i2c: E2 [21:42:06]MH_I2C_Read... [21:42:06]Read from MH i2c: E2 17 00 [21:42:06]MH_I2C_Read... [21:42:06]Read from MH i2c: E2 17 00 BD 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 98 [21:42:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:42:06]wFMCommunicate OK [21:42:06]CreateOFDProtocolMessage done [21:42:06]OFDSenderStorePacket 165099 [21:42:06]StoreOFDPacket docnum=165099 [21:42:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 B2 27 04 01 77 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 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 2E 46 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EB 84 02 00 35 04 06 00 D2 3E 09 19 1C CF D6 17 24 D8 E8 13 D4 72 [21:42:06]CheckFolder [21:42:06]dirname=/storage/ofd_packets [21:42:06]CheckFolder done [21:42:06]ProducePacketName [21:42:06]name=ofd_packets/00165099 [21:42:06]NVStorageSaveData ofd_packets/00165099 [21:42:06]File name is /storage/ofd_packets/00165099 [21:42:06]Write 298 bytes [21:42:06]NVStorageSaveData done [21:42:06]OFDSenderStorePacket done [21:42:06]KKMCreateOFDPacket done [21:42:06]NVStorageSaveData kkm_last_timestamp [21:42:06]File name is /storage/kkm_last_timestamp [21:42:06]Write 4 bytes [21:42:06]NVStorageSaveData done [21:42:06]ExternCall_PrintAddStr [21:42:06]wPrintStart [21:42:06]Write to MH i2c: 01 00 00 BE 0B C9 [21:42:06]Write i2c OK [21:42:06]MH_I2C_Read... [21:42:06]Read from MH i2c: 01 [21:42:06]MH_I2C_Read... [21:42:06]Read from MH i2c: 01 07 00 [21:42:06]MH_I2C_Read... [21:42:06]Read from MH i2c: 01 07 00 BE 0B 00 00 00 00 00 FF 0F DE [21:42:06]RasterBufferAndPrint [21:42:06]line Счет N : (1)459202 [21:42:06]line ИНН: 02508201610067 [21:42:06]line Контрольно-Кассовый Чек [21:42:06]line ПРОДАЖА [21:42:06]line ТРК (МРК, ГНК) : 21 [21:42:06]line Товар: 2710194210 [21:42:06]line ДТ-К-5 [21:42:06]line 13.910 * 71.90 [21:42:06]line = 1000.13 [21:42:06]line НДС 12% НСП 1% [21:42:06]line > о реализуемом товаре [21:42:06]line ОКРУГЛЕНИЕ: -0.13 [21:42:06]line ИТОГО: 1000.00 [21:42:06]line Внесено: 1000.00 [21:42:06]line СДАЧА: 0.00 [21:42:06]line НСП 1% : 8.85 [21:42:06]line НДС 12% : 106.21 [21:42:06]line Наличными: 1000.00 [21:42:06]line Безнал.: 0.00 [21:42:06]line Место: АЗС № 72 "Партнер Нефть" [21:42:06]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [21:42:06]line СНО: Общий режим [21:42:06]line Чек 297 14.07.2024 21:42 [21:42:06]line Смена: 447 ФФД: 1.0 [21:42:06]line ЗНМ: 0300000160 [21:42:06]line РНМ: 0000000000090829 [21:42:06]line Версия ККМ: 001 [21:42:06]line ФМ: 0000000000874718 [21:42:06]line ФД: 165099 [21:42:06]line ФПД: 231163882446031 [21:42:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T214206&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165099&fm=231163882446031&tin=02508201610067®Number=0000000000090829&sum=100000 [21:42:06]OFD Sender: Processing packet 165099 [packets to send 106, broken 105] [21:42:06]ProducePacketName [21:42:06]name=ofd_packets/00165099 [21:42:06]OFD Sender: To server: pG, [21:42:06]CommunicateWithHost lk.salyk.kg:30040 [21:42:06]ConnectInit lk.salyk.kg [21:42:06]written 0, free lines is 4095 [21:42:06]Connected sock=10 [21:42:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 B2 27 04 01 77 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 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 2E 46 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EB 84 02 00 35 04 06 00 D2 3E 09 19 1C CF D6 17 24 D8 E8 13 D4 72 [21:42:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 50 A6 47 00 46 F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EB 84 02 00 F4 03 04 00 BA EC 93 66 B6 04 01 00 00 D9 F8 0C 49 08 DE 6B 53 [21:42:07]CommunicateWithHost err = 0 [21:42:07]CheckOFDResponse [21:42:07]1017 (14) - 77093643461234 [21:42:07]1041 (16) - 0000000000874718 [21:42:07]1040 (4) - 165099 [21:42:07]1012 (4) - 14.07.2024 15:20 [21:42:07]1206 (1) - 0 [21:42:07]OFD Sender: Remove packet 165099 [21:42:07]ProducePacketName [21:42:07]name=ofd_packets/00165099 [21:42:07]NVStorageDeleteData [21:42:07]Write to MH i2c: 01 00 00 E8 0B F3 [21:42:07]Write i2c OK [21:42:07]MH_I2C_Read... [21:42:07]Read from MH i2c: 01 [21:42:07]MH_I2C_Read... [21:42:07]Read from MH i2c: 01 07 00 [21:42:07]MH_I2C_Read... [21:42:07]Read from MH i2c: 01 07 00 E8 0B 00 00 00 00 00 F2 0C F8 [21:42:07]RasterBufferAndPrint [21:42:07]line [21:42:07]line [21:42:07]line [21:42:07]line [21:42:07]line [21:42:07]written 0, free lines is 3322 [21:42:07]MH_Cut [21:42:07]Write to MH i2c: D1 01 00 EF 0B 01 CC [21:42:07]Write i2c OK [21:42:07]MH_I2C_Read... [21:42:07]Read from MH i2c: D1 [21:42:07]MH_I2C_Read... [21:42:07]Read from MH i2c: D1 01 00 [21:42:07]MH_I2C_Read... [21:42:07]Read from MH i2c: D1 01 00 EF 0B 00 CB [21:42:07]Write to MH i2c: 01 00 00 F0 0B FB [21:42:07]Write i2c OK [21:42:07]MH_I2C_Read... [21:42:07]OFD Sender: No OFD packet to send [21:42:07]*** Cut start [21:42:07]*** Partial cut [21:42:07]*** CUTSNS_PIN = 1 [21:42:07]*** CUTSNS_PIN = 0 [21:42:08]*** Brake cut motor [21:42:08]Read from MH i2c: 01 [21:42:08]MH_I2C_Read... [21:42:08]*** Stop cut motor [21:42:08]*** Cut end [21:42:08]Read from MH i2c: 01 07 00 [21:42:08]MH_I2C_Read... [21:42:08]Read from MH i2c: 01 07 00 F0 0B 00 00 00 00 00 FF 0F 10 [21:42:08]process_action close_receipt done [21:42:08]requested_data is exist [21:42:08]produce_requested_data [21:42:08]requested_item fm.sn is exist - process it [21:42:08]wFMCommunicate request_size=4 [21:42:08]MH_SAM_APDU [21:42:08]CAPDU: 80 11 00 00 [21:42:08]Write to MH i2c: E2 08 00 F1 0B 80 11 00 00 00 00 00 00 76 [21:42:08]Write i2c OK [21:42:08]MH_I2C_Read... [21:42:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:42:08]Read from MH i2c: E2 [21:42:08]MH_I2C_Read... [21:42:08]Read from MH i2c: E2 17 00 [21:42:08]MH_I2C_Read... [21:42:08]Read from MH i2c: E2 17 00 F1 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 CC [21:42:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:42:08]wFMCommunicate OK [21:42:08]requested_item fd.num is exist - process it [21:42:08]SAM_PROTO_GetFieldsCounters [21:42:08]wFMCommunicate request_size=4 [21:42:08]MH_SAM_APDU [21:42:08]CAPDU: 80 13 00 00 [21:42:08]Write to MH i2c: E2 08 00 F2 0B 80 13 00 00 00 00 00 00 79 [21:42:08]Write i2c OK [21:42:08]MH_I2C_Read... [21:42:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:42:08]Read from MH i2c: E2 [21:42:08]MH_I2C_Read... [21:42:08]Read from MH i2c: E2 62 00 [21:42:08]MH_I2C_Read... [21:42:08]Read from MH i2c: E2 62 00 F2 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 EB 84 02 00 0E 04 04 00 BF 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 4F [21:42:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 EB 84 02 00 0E 04 04 00 BF 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 [21:42:08]wFMCommunicate OK [21:42:08]SAM_PROTO_GetFieldsCounters done [21:42:08]requested_item shift.num is exist - process it [21:42:08]requested_item shift.opened is exist - process it [21:42:08]req_shift_opened [21:42:08]FM_GetShiftState [21:42:08]SAM_PROTO_GetShiftState [21:42:08]wFMCommunicate request_size=4 [21:42:08]MH_SAM_APDU [21:42:08]CAPDU: 80 13 01 00 [21:42:08]Write to MH i2c: E2 08 00 F3 0B 80 13 01 00 00 00 00 00 7B [21:42:08]Write i2c OK [21:42:08]MH_I2C_Read... [21:42:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:42:08]Read from MH i2c: E2 [21:42:08]MH_I2C_Read... [21:42:08]Read from MH i2c: E2 0E 00 [21:42:08]MH_I2C_Read... [21:42:08]Read from MH i2c: E2 0E 00 F3 0B 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 FB [21:42:08]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [21:42:08]wFMCommunicate OK [21:42:08]SAM_PROTO_GetShiftState done [21:42:08]FM_GetShiftState done [21:42:08]req_shift_opened done [21:42:08]requested_item shift.open_date is exist - process it [21:42:08]req_shift_open_date [21:42:08]req_shift_open_date done [21:42:08]produce_requested_data done [21:42:08]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165099,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [21:42:08]process_action_free close_receipt [21:42:08]json_value_free [21:42:08]json_value_free done [21:42:08]process_json_proto returns [21:42:08]Send response to host [21:42:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165099,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [21:42:08]free response buf [21:42:08]execute_script done [21:42:08]execute_script returns [21:42:08]free content buf [21:42:08]Sock 9.Close socket [21:42:08]Sock 9.Thread stoped [21:42:12]OFD Sender: No OFD packet to send [21:42:17]OFD Sender: No OFD packet to send [21:42:22]OFD Sender: No OFD packet to send [21:42:27]OFD Sender: No OFD packet to send [21:42:32]OFD Sender: No OFD packet to send [21:42:37]OFD Sender: No OFD packet to send [21:42:42]OFD Sender: No OFD packet to send [21:42:47]OFD Sender: No OFD packet to send [21:42:52]OFD Sender: No OFD packet to send [21:42:57]OFD Sender: No OFD packet to send [21:43:02]OFD Sender: No OFD packet to send [21:43: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:17]OFD Sender: No OFD packet to send [21:46:22]OFD Sender: No OFD packet to send [21:46:27]OFD Sender: No OFD packet to send [21:46:32]OFD Sender: No OFD packet to send [21:46:37]OFD Sender: No OFD packet to send [21:46:42]OFD Sender: No OFD packet to send [21:46:47]OFD Sender: No OFD packet to send [21:46:52]OFD Sender: No OFD packet to send [21:46:57]OFD Sender: No OFD packet to send [21:47:02]OFD Sender: No OFD packet to send [21:47:07]OFD Sender: No OFD packet to send [21:47:12]OFD Sender: No OFD packet to send [21:47:17]OFD Sender: No OFD packet to send [21:47:22]OFD Sender: No OFD packet to send [21:47:27]OFD Sender: No OFD packet to send [21:47:32]OFD Sender: No OFD packet to send [21:47:37]OFD Sender: No OFD packet to send [21:47:42]OFD Sender: No OFD packet to send [21:47:47]OFD Sender: No OFD packet to send [21:47:52]OFD Sender: No OFD packet to send [21:47:57]OFD Sender: No OFD packet to send [21:48:02]OFD Sender: No OFD packet to send [21:48:07]OFD Sender: No OFD packet to send [21:48:12]OFD Sender: No OFD packet to send [21:48:17]OFD Sender: No OFD packet to send [21:48:22]OFD Sender: No OFD packet to send [21:48:27]OFD Sender: No OFD packet to send [21:48:32]OFD Sender: No OFD packet to send [21:48:37]OFD Sender: No OFD packet to send [21:48:42]OFD Sender: No OFD packet to send [21:48:47]OFD Sender: No OFD packet to send [21:48:52]OFD Sender: No OFD packet to send [21:48:58]OFD Sender: No OFD packet to send [21:49:03]OFD Sender: No OFD packet to send [21:49:08]OFD Sender: No OFD packet to send [21:49:13]OFD Sender: No OFD packet to send [21:49:18]OFD Sender: No OFD packet to send [21:49:23]OFD Sender: No OFD packet to send [21:49:28]OFD Sender: No OFD packet to send [21:49:33]OFD Sender: No OFD packet to send [21:49:38]OFD Sender: No OFD packet to send [21:49:43]OFD Sender: No OFD packet to send [21:49:48]OFD Sender: No OFD packet to send [21:49:53]OFD Sender: No OFD packet to send [21:49:58]OFD Sender: No OFD packet to send [21:50:03]OFD Sender: No OFD packet to send [21:50:08]OFD Sender: No OFD packet to send [21:50:13]OFD Sender: No OFD packet to send [21:50:18]OFD Sender: No OFD packet to send [21:50:23]OFD Sender: No OFD packet to send [21:50:28]OFD Sender: No OFD packet to send [21:50:33]OFD Sender: No OFD packet to send [21:50:38]OFD Sender: No OFD packet to send [21:50:43]OFD Sender: No OFD packet to send [21:50:48]OFD Sender: No OFD packet to send [21:50:53]OFD Sender: No OFD packet to send [21:50:58]OFD Sender: No OFD packet to send [21:51:03]OFD Sender: No OFD packet to send [21:51:08]OFD Sender: No OFD packet to send [21:51:13]OFD Sender: No OFD packet to send [21:51:18]OFD Sender: No OFD packet to send [21:51:23]OFD Sender: No OFD packet to send [21:51:28]OFD Sender: No OFD packet to send [21:51:33]OFD Sender: No OFD packet to send [21:51:38]OFD Sender: No OFD packet to send [21:51:43]OFD Sender: No OFD packet to send [21:51:48]OFD Sender: No OFD packet to send [21:51:53]OFD Sender: No OFD packet to send [21:51:58]OFD Sender: No OFD packet to send [21:52:03]OFD Sender: No OFD packet to send [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:08]OFD Sender: No OFD packet to send [21:53:13]OFD Sender: No OFD packet to send [21:53:18]OFD Sender: No OFD packet to send [21:53:23]OFD Sender: No OFD packet to send [21:53:28]OFD Sender: No OFD packet to send [21:53:33]OFD Sender: No OFD packet to send [21:53:38]OFD Sender: No OFD packet to send [21:53:43]OFD Sender: No OFD packet to send [21:53:48]OFD Sender: No OFD packet to send [21:53:53]OFD Sender: No OFD packet to send [21:53:58]OFD Sender: No OFD packet to send [21:54:03]OFD Sender: No OFD packet to send [21:54:08]OFD Sender: No OFD packet to send [21:54:13]OFD Sender: No OFD packet to send [21:54:18]OFD Sender: No OFD packet to send [21:54:23]OFD Sender: No OFD packet to send [21:54:28]OFD Sender: No OFD packet to send [21:54:33]OFD Sender: No OFD packet to send [21:54:38]OFD Sender: No OFD packet to send [21:54:43]OFD Sender: No OFD packet to send [21:54:48]OFD Sender: No OFD packet to send [21:54:53]OFD Sender: No OFD packet to send [21:54:58]OFD Sender: No OFD packet to send [21:55:03]OFD Sender: No OFD packet to send [21:55:08]OFD Sender: No OFD packet to send [21:55:13]OFD Sender: No OFD packet to send [21:55:18]OFD Sender: No OFD packet to send [21:55:23]OFD Sender: No OFD packet to send [21:55:28]OFD Sender: No OFD packet to send [21:55:33]OFD Sender: No OFD packet to send [21:55:38]OFD Sender: No OFD packet to send [21:55:43]OFD Sender: No OFD packet to send [21:55:48]OFD Sender: No OFD packet to send [21:55:53]OFD Sender: No OFD packet to send [21:55:58]OFD Sender: No OFD packet to send [21:56:03]OFD Sender: No OFD packet to send [21:56:08]OFD Sender: No OFD packet to send [21:56:13]OFD Sender: No OFD packet to send [21:56:18]OFD Sender: No OFD packet to send [21:56:23]OFD Sender: No OFD packet to send [21:56:28]OFD Sender: No OFD packet to send [21:56:33]OFD Sender: No OFD packet to send [21:56:38]OFD Sender: No OFD packet to send [21:56:43]OFD Sender: No OFD packet to send [21:56:48]OFD Sender: No OFD packet to send [21:56:53]OFD Sender: No OFD packet to send [21:56:58]OFD Sender: No OFD packet to send [21:57:03]OFD Sender: No OFD packet to send [21:57:08]OFD Sender: No OFD packet to send [21:57:13]OFD Sender: No OFD packet to send [21:57:18]OFD Sender: No OFD packet to send [21:57:23]OFD Sender: No OFD packet to send [21:57:28]OFD Sender: No OFD packet to send [21:57:33]OFD Sender: No OFD packet to send [21:57:38]OFD Sender: No OFD packet to send [21:57:43]OFD Sender: No OFD packet to send [21:57:48]OFD Sender: No OFD packet to send [21:57:53]OFD Sender: No OFD packet to send [21:57:58]OFD Sender: No OFD packet to send [21:58:03]OFD Sender: No OFD packet to send [21:58:08]OFD Sender: No OFD packet to send [21:58:13]OFD Sender: No OFD packet to send [21:58:18]OFD Sender: No OFD packet to send [21:58:23]OFD Sender: No OFD packet to send [21:58:28]OFD Sender: No OFD packet to send [21:58:33]OFD Sender: No OFD packet to send [21:58:38]OFD Sender: No OFD packet to send [21:58:43]OFD Sender: No OFD packet to send [21:58:48]OFD Sender: No OFD packet to send [21:58:53]OFD Sender: No OFD packet to send [21:58:58]OFD Sender: No OFD packet to send [21:59:03]OFD Sender: No OFD packet to send [21:59:08]OFD Sender: No OFD packet to send [21:59:13]OFD Sender: No OFD packet to send [21:59:18]OFD Sender: No OFD packet to send [21:59:23]OFD Sender: No OFD packet to send [21:59:28]OFD Sender: No OFD packet to send [21:59:33]OFD Sender: No OFD packet to send [21:59:38]OFD Sender: No OFD packet to send [21:59:43]OFD Sender: No OFD packet to send [21:59:48]OFD Sender: No OFD packet to send [21:59:53]OFD Sender: No OFD packet to send [21:59:56]accept exits with 7 [21:59:56]New connection [21:59:56]New thread 3066785124 created [21:59:56]Thread 3066928484 joined [21:59:56]Waiting for new connection... [21:59:56] Sock 7.Parse request [21:59:56]Sock 7.Check first char [21:59:56]Sock 7.First char is OK [21:59:56]request: POST /json_proto HTTP/1.0 [21:59:56]Method: POST [21:59:56]URL: /json_proto [21:59:56]Method is POST - this is cgi request [21:59:56]url: /json_proto [21:59:56]query_string will be loaded in cgi processing [21:59:56]execute_cgi json_proto POST (null) [21:59:56]execute_cgi path=json_proto method=POST [21:59:56]POST find Content-Length [21:59:56]Host: 172.17.56.4:8080 [21:59:56]Content-Length: 677 [21:59:56]Content-Type: application/json [21:59:56] [21:59:56]POST finish read [21:59:56]Found Content-Length = 677 [21:59:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459203", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 2.280, "sum" : 150.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:59:56]execute_script... [21:59: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)459203", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 2.280, "sum" : 150.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:59:56]POST & json_proto [21:59:56]process_json_proto [21:59:56]json parsed OK: [21:59:56]protocol is kg_v1.0 [21:59:56]action value=close_receipt [21:59:56]process_action close_receipt [21:59:56]cmd_close_receipt [21:59:56]MH_GetDate [21:59:56]Write to MH i2c: F0 00 00 F4 0B EE [21:59:56]Write i2c OK [21:59:56]MH_I2C_Read... [21:59:56]Read from MH i2c: F0 [21:59:56]MH_I2C_Read... [21:59:56]Read from MH i2c: F0 09 00 [21:59:56]MH_I2C_Read... [21:59:56]Read from MH i2c: F0 09 00 F4 0B 00 5E 4A 94 66 C9 DC B2 64 54 [21:59:56]GetLastDocTimeStamp 1720993326 [21:59:56]current date 1720994398 [21:59:56]FM_GetShiftState [21:59:56]SAM_PROTO_GetShiftState [21:59:56]wFMCommunicate request_size=4 [21:59:56]MH_SAM_APDU [21:59:56]CAPDU: 80 13 01 00 [21:59:56]Write to MH i2c: E2 08 00 F5 0B 80 13 01 00 00 00 00 00 7D [21:59:56]Write i2c OK [21:59:56]MH_I2C_Read... [21:59:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:59:56]Read from MH i2c: E2 [21:59:56]MH_I2C_Read... [21:59:56]Read from MH i2c: E2 0E 00 [21:59:56]MH_I2C_Read... [21:59:56]Read from MH i2c: E2 0E 00 F5 0B 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 FD [21:59:56]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [21:59:56]wFMCommunicate OK [21:59:56]SAM_PROTO_GetShiftState done [21:59:56]FM_GetShiftState done [21:59:56]opened in 1720917342 [21:59:56]opened+sec_in_day 1721003742 [21:59:56]quantity*price = 15002 [21:59:56]sum+1 = 15003 [21:59:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 150.00 Внесено: 150.00 СДАЧА: 0.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 298 14.07.2024 21:59 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165100 ФПД: 50579726064705 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T215958&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165100&fm=50579726064705&tin=02508201610067®Number=0000000000090829&sum=15000 [21:59:57]StoreToDocumentArchive [21:59:57]shift 447 fd 165100 [21:59:57]save to /storage/0447/doc_00165100 [21:59:57]save last doc name /storage/0447/doc_00165100 to /storage/kkm_last_doc_name [21:59:57]save OK [21:59:57]Clear old archive folders... [21:59:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:59:57]tlvbuf is 013B6F40 [21:59:57]SAM_PROTO_ClearQueue [21:59:57]wFMCommunicate request_size=4 [21:59:57]MH_SAM_APDU [21:59:57]CAPDU: 80 09 00 00 [21:59:57]Write to MH i2c: E2 08 00 02 0C 80 09 00 00 00 00 00 00 80 [21:59:57]Write i2c OK [21:59:57]MH_I2C_Read... [21:59:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:59:57]Read from MH i2c: E2 [21:59:57]MH_I2C_Read... [21:59:57]Read from MH i2c: E2 03 00 [21:59:57]MH_I2C_Read... [21:59:57]Read from MH i2c: E2 03 00 02 0C 00 90 00 82 [21:59:57]RAPDU: 90 00 [21:59:57]wFMCommunicate OK [21:59:57]SAM_PROTO_ClearQueue done [21:59:57]KKMCreateOFDPacket [21:59:57]OFDProtocolAddRootSTLVToBuf [21:59:57]FM_MakeSignedData [21:59:57]FM_MakeSignedData [21:59:57]SAM_PROTO_SignData [21:59:57]wFMCommunicate request_size=4 [21:59:57]MH_SAM_APDU [21:59:57]CAPDU: 80 0D 01 02 [21:59:57]Write to MH i2c: E2 08 00 03 0C 80 0D 01 02 00 00 00 00 88 [21:59:57]Write i2c OK [21:59:57]MH_I2C_Read... [21:59:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:59:57]Read from MH i2c: E2 [21:59:57]MH_I2C_Read... [21:59:57]Read from MH i2c: E2 03 00 [21:59:57]MH_I2C_Read... [21:59:57]Read from MH i2c: E2 03 00 03 0C 00 90 00 83 [21:59:57]RAPDU: 90 00 [21:59:57]wFMCommunicate OK [21:59:57]wFMCommunicate request_size=255 [21:59:57]MH_SAM_APDU [21:59:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 08 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 9A 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 5E 4A 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EC 84 02 00 35 04 06 00 2E [21:59:57]Write to MH i2c: E2 02 01 04 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 08 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 9A 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 5E 4A 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EC 84 02 00 35 04 06 00 2E 00 00 BE [21:59:57]Write i2c OK [21:59:57]MH_I2C_Read... [21:59:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:59:58]Read from MH i2c: E2 [21:59:58]MH_I2C_Read... [21:59:58]Read from MH i2c: E2 03 00 [21:59:58]MH_I2C_Read... [21:59:58]Read from MH i2c: E2 03 00 04 0C 00 90 00 84 [21:59:58]RAPDU: 90 00 [21:59:58]wFMCommunicate OK [21:59:58]wFMCommunicate request_size=10 [21:59:58]MH_SAM_APDU [21:59:58]CAPDU: 80 0D 02 02 05 00 82 9A DC 41 [21:59:58]Write to MH i2c: E2 0D 00 05 0C 80 0D 02 02 05 00 00 82 9A DC 41 00 00 CE [21:59:58]Write i2c OK [21:59:58]MH_I2C_Read... [21:59:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:59:58]Read from MH i2c: E2 [21:59:58]MH_I2C_Read... [21:59:58]Read from MH i2c: E2 03 00 [21:59:58]MH_I2C_Read... [21:59:58]Read from MH i2c: E2 03 00 05 0C 00 90 00 85 [21:59:58]RAPDU: 90 00 [21:59:58]wFMCommunicate OK [21:59:58]wFMCommunicate request_size=4 [21:59:58]MH_SAM_APDU [21:59:58]CAPDU: 80 0D 03 02 [21:59:58]Write to MH i2c: E2 08 00 06 0C 80 0D 03 02 00 00 00 00 8D [21:59:58]Write i2c OK [21:59:58]MH_I2C_Read... [21:59:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:59:58]Read from MH i2c: E2 [21:59:58]MH_I2C_Read... [21:59:58]Read from MH i2c: E2 0B 00 [21:59:58]MH_I2C_Read... [21:59:58]Read from MH i2c: E2 0B 00 06 0C 00 17 94 94 52 E5 AE E2 EC 90 00 80 [21:59:58]RAPDU: 17 94 94 52 E5 AE E2 EC 90 00 [21:59:58]wFMCommunicate OK [21:59:58]SAM_PROTO_SignData done [21:59:58]FM_MakeSignedData done [21:59:58]CreateOFDProtocolMessage [21:59:58]wFMCommunicate request_size=4 [21:59:58]MH_SAM_APDU [21:59:58]CAPDU: 80 11 00 00 [21:59:58]Write to MH i2c: E2 08 00 07 0C 80 11 00 00 00 00 00 00 8D [21:59:58]Write i2c OK [21:59:58]MH_I2C_Read... [21:59:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:59:58]Read from MH i2c: E2 [21:59:58]MH_I2C_Read... [21:59:58]Read from MH i2c: E2 17 00 [21:59:58]MH_I2C_Read... [21:59:58]Read from MH i2c: E2 17 00 07 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E3 [21:59:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:59:58]wFMCommunicate OK [21:59:58]CreateOFDProtocolMessage done [21:59:58]OFDSenderStorePacket 165100 [21:59:58]StoreOFDPacket docnum=165100 [21:59:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 14 5F 07 01 4C 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 08 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 9A 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 5E 4A 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EC 84 02 00 35 04 06 00 2E 00 82 9A DC 41 17 94 94 52 E5 AE E2 EC [21:59:58]CheckFolder [21:59:58]dirname=/storage/ofd_packets [21:59:58]CheckFolder done [21:59:58]ProducePacketName [21:59:58]name=ofd_packets/00165100 [21:59:58]NVStorageSaveData ofd_packets/00165100 [21:59:58]File name is /storage/ofd_packets/00165100 [21:59:58]Write 301 bytes [21:59:58]NVStorageSaveData done [21:59:58]OFDSenderStorePacket done [21:59:58]KKMCreateOFDPacket done [21:59:58]NVStorageSaveData kkm_last_timestamp [21:59:58]File name is /storage/kkm_last_timestamp [21:59:58]Write 4 bytes [21:59:58]NVStorageSaveData done [21:59:58]ExternCall_PrintAddStr [21:59:58]wPrintStart [21:59:58]Write to MH i2c: 01 00 00 08 0C 14 [21:59:58]Write i2c OK [21:59:58]MH_I2C_Read... [21:59:58]Read from MH i2c: 01 [21:59:58]MH_I2C_Read... [21:59:58]Read from MH i2c: 01 07 00 [21:59:58]MH_I2C_Read... [21:59:58]Read from MH i2c: 01 07 00 08 0C 00 00 00 00 00 FF 0F 29 [21:59:58]RasterBufferAndPrint [21:59:58]line Счет N : (1)459203 [21:59:58]line ИНН: 02508201610067 [21:59:58]line Контрольно-Кассовый Чек [21:59:58]line ПРОДАЖА [21:59:58]line ТРК (МРК, ГНК) : 12 [21:59:58]line Товар: 2710124130 [21:59:58]line Аи-92-К-5 [21:59:58]line 2.280 * 65.80 [21:59:58]line = 150.02 [21:59:58]line НДС 12% НСП 1% [21:59:58]line > о реализуемом товаре [21:59:58]line ОКРУГЛЕНИЕ: -0.02 [21:59:58]line ИТОГО: 150.00 [21:59:58]line Внесено: 150.00 [21:59:58]line СДАЧА: 0.00 [21:59:58]line НСП 1% : 1.33 [21:59:58]line НДС 12% : 15.93 [21:59:58]line Наличными: 150.00 [21:59:58]line Безнал.: 0.00 [21:59:58]line Место: АЗС № 72 "Партнер Нефть" [21:59:58]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [21:59:58]line СНО: Общий режим [21:59:58]line Чек 298 14.07.2024 21:59 [21:59:58]line Смена: 447 ФФД: 1.0 [21:59:58]line ЗНМ: 0300000160 [21:59:58]line РНМ: 0000000000090829 [21:59:58]line Версия ККМ: 001 [21:59:58]line ФМ: 0000000000874718 [21:59:58]line ФД: 165100 [21:59:58]line ФПД: 50579726064705 [21:59:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T215958&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165100&fm=50579726064705&tin=02508201610067®Number=0000000000090829&sum=15000 [21:59:58]written 0, free lines is 4095 [21:59:58]OFD Sender: Processing packet 165100 [packets to send 106, broken 105] [21:59:58]ProducePacketName [21:59:58]name=ofd_packets/00165100 [21:59:58]OFD Sender: To server: pG, [21:59:58]CommunicateWithHost lk.salyk.kg:30040 [21:59:58]ConnectInit lk.salyk.kg [21:59:58]Connected sock=10 [21:59:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 14 5F 07 01 4C 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 08 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 9A 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 5E 4A 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EC 84 02 00 35 04 06 00 2E 00 82 9A DC 41 17 94 94 52 E5 AE E2 EC [21:59:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 49 76 47 00 7B D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EC 84 02 00 F4 03 04 00 EA F0 93 66 B6 04 01 00 00 B6 82 40 22 24 B4 34 84 [21:59:59]CommunicateWithHost err = 0 [21:59:59]CheckOFDResponse [21:59:59]1017 (14) - 77093643461234 [21:59:59]1041 (16) - 0000000000874718 [21:59:59]1040 (4) - 165100 [21:59:59]1012 (4) - 14.07.2024 15:38 [21:59:59]1206 (1) - 0 [21:59:59]OFD Sender: Remove packet 165100 [21:59:59]ProducePacketName [21:59:59]name=ofd_packets/00165100 [21:59:59]NVStorageDeleteData [21:59:59]Write to MH i2c: 01 00 00 32 0C 3E [21:59:59]Write i2c OK [21:59:59]MH_I2C_Read... [21:59:59]Read from MH i2c: 01 [21:59:59]MH_I2C_Read... [21:59:59]Read from MH i2c: 01 07 00 [21:59:59]MH_I2C_Read... [21:59:59]Read from MH i2c: 01 07 00 32 0C 00 00 00 00 00 F3 0C 44 [21:59:59]RasterBufferAndPrint [21:59:59]line [21:59:59]line [21:59:59]line [21:59:59]line [21:59:59]line [21:59:59]written 0, free lines is 3322 [21:59:59]MH_Cut [21:59:59]Write to MH i2c: D1 01 00 39 0C 01 17 [21:59:59]Write i2c OK [21:59:59]MH_I2C_Read... [21:59:59]Read from MH i2c: D1 [21:59:59]MH_I2C_Read... [21:59:59]Read from MH i2c: D1 01 00 [21:59:59]MH_I2C_Read... [21:59:59]Read from MH i2c: D1 01 00 39 0C 00 16 [21:59:59]Write to MH i2c: 01 00 00 3A 0C 46 [21:59:59]Write i2c OK [21:59:59]MH_I2C_Read... [21:59:59]OFD Sender: No OFD packet to send [21:59:59]*** Cut start [21:59:59]*** Partial cut [21:59:59]*** CUTSNS_PIN = 1 [21:59:59]*** CUTSNS_PIN = 0 [22:00:00]*** Brake cut motor [22:00:00]Read from MH i2c: 01 [22:00:00]MH_I2C_Read... [22:00:00]*** Stop cut motor [22:00:00]*** Cut end [22:00:00]Read from MH i2c: 01 07 00 [22:00:00]MH_I2C_Read... [22:00:00]Read from MH i2c: 01 07 00 3A 0C 00 00 00 00 00 FF 0F 5B [22:00:00]process_action close_receipt done [22:00:00]requested_data is exist [22:00:00]produce_requested_data [22:00:00]requested_item fm.sn is exist - process it [22:00:00]wFMCommunicate request_size=4 [22:00:00]MH_SAM_APDU [22:00:00]CAPDU: 80 11 00 00 [22:00:00]Write to MH i2c: E2 08 00 3B 0C 80 11 00 00 00 00 00 00 C1 [22:00:00]Write i2c OK [22:00:00]MH_I2C_Read... [22:00:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:00:00]Read from MH i2c: E2 [22:00:00]MH_I2C_Read... [22:00:00]Read from MH i2c: E2 17 00 [22:00:00]MH_I2C_Read... [22:00:00]Read from MH i2c: E2 17 00 3B 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 17 [22:00:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:00:00]wFMCommunicate OK [22:00:00]requested_item fd.num is exist - process it [22:00:00]SAM_PROTO_GetFieldsCounters [22:00:00]wFMCommunicate request_size=4 [22:00:00]MH_SAM_APDU [22:00:00]CAPDU: 80 13 00 00 [22:00:00]Write to MH i2c: E2 08 00 3C 0C 80 13 00 00 00 00 00 00 C4 [22:00:00]Write i2c OK [22:00:00]MH_I2C_Read... [22:00:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:00:00]Read from MH i2c: E2 [22:00:00]MH_I2C_Read... [22:00:00]Read from MH i2c: E2 62 00 [22:00:00]MH_I2C_Read... [22:00:00]Read from MH i2c: E2 62 00 3C 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 EC 84 02 00 0E 04 04 00 BF 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 9E [22:00:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 EC 84 02 00 0E 04 04 00 BF 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 [22:00:00]wFMCommunicate OK [22:00:00]SAM_PROTO_GetFieldsCounters done [22:00:00]requested_item shift.num is exist - process it [22:00:00]requested_item shift.opened is exist - process it [22:00:00]req_shift_opened [22:00:00]FM_GetShiftState [22:00:00]SAM_PROTO_GetShiftState [22:00:00]wFMCommunicate request_size=4 [22:00:00]MH_SAM_APDU [22:00:00]CAPDU: 80 13 01 00 [22:00:00]Write to MH i2c: E2 08 00 3D 0C 80 13 01 00 00 00 00 00 C6 [22:00:00]Write i2c OK [22:00:00]MH_I2C_Read... [22:00:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:00:00]Read from MH i2c: E2 [22:00:00]MH_I2C_Read... [22:00:00]Read from MH i2c: E2 0E 00 [22:00:00]MH_I2C_Read... [22:00:00]Read from MH i2c: E2 0E 00 3D 0C 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 46 [22:00:00]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [22:00:00]wFMCommunicate OK [22:00:00]SAM_PROTO_GetShiftState done [22:00:00]FM_GetShiftState done [22:00:00]req_shift_opened done [22:00:00]requested_item shift.open_date is exist - process it [22:00:00]req_shift_open_date [22:00:00]req_shift_open_date done [22:00:00]produce_requested_data done [22:00:00]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165100,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [22:00:00]process_action_free close_receipt [22:00:00]json_value_free [22:00:00]json_value_free done [22:00:00]process_json_proto returns [22:00:00]Send response to host [22:00:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165100,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [22:00:00]free response buf [22:00:00]execute_script done [22:00:00]execute_script returns [22:00:00]free content buf [22:00:00]Sock 7.Close socket [22:00:00]Sock 7.Thread stoped [22:00:04]OFD Sender: No OFD packet to send [22:00:09]OFD Sender: No OFD packet to send [22:00:14]OFD Sender: No OFD packet to send [22:00:19]OFD Sender: No OFD packet to send [22:00:24]OFD Sender: No OFD packet to send [22:00:29]OFD Sender: No OFD packet to send [22:00:34]OFD Sender: No OFD packet to send [22:00:39]OFD Sender: No OFD packet to send [22:00:44]OFD Sender: No OFD packet to send [22:00:49]OFD Sender: No OFD packet to send [22:00:54]OFD Sender: No OFD packet to send [22:00:59]OFD Sender: No OFD packet to send [22:01:04]OFD Sender: No OFD packet to send [22:01:09]OFD Sender: No OFD packet to send [22:01:14]OFD Sender: No OFD packet to send [22:01:19]OFD Sender: No OFD packet to send [22:01:24]OFD Sender: No OFD packet to send [22:01:29]OFD Sender: No OFD packet to send [22:01:34]OFD Sender: No OFD packet to send [22:01:39]OFD Sender: No OFD packet to send [22:01:44]OFD Sender: No OFD packet to send [22:01:49]OFD Sender: No OFD packet to send [22:01:54]OFD Sender: No OFD packet to send [22:01:59]OFD Sender: No OFD packet to send [22:02:04]OFD Sender: No OFD packet to send [22:02:09]OFD Sender: No OFD packet to send [22:02:14]OFD Sender: No OFD packet to send [22:02:19]OFD Sender: No OFD packet to send [22:02:24]OFD Sender: No OFD packet to send [22:02:29]OFD Sender: No OFD packet to send [22:02:34]OFD Sender: No OFD packet to send [22:02:39]OFD Sender: No OFD packet to send [22:02:44]OFD Sender: No OFD packet to send [22:02:49]OFD Sender: No OFD packet to send [22:02:54]OFD Sender: No OFD packet to send [22:02:59]OFD Sender: No OFD packet to send [22:03:04]OFD Sender: No OFD packet to send [22:03:09]OFD Sender: No OFD packet to send [22:03:14]OFD Sender: No OFD packet to send [22:03:19]OFD Sender: No OFD packet to send [22:03:24]OFD Sender: No OFD packet to send [22:03:29]OFD Sender: No OFD packet to send [22:03:34]OFD Sender: No OFD packet to send [22:03:39]OFD Sender: No OFD packet to send [22:03:44]OFD Sender: No OFD packet to send [22:03:49]OFD Sender: No OFD packet to send [22:03:54]OFD Sender: No OFD packet to send [22:03:59]OFD Sender: No OFD packet to send [22:04:04]OFD Sender: No OFD packet to send [22:04:09]OFD Sender: No OFD packet to send [22:04:14]OFD Sender: No OFD packet to send [22:04:19]OFD Sender: No OFD packet to send [22:04:24]OFD Sender: No OFD packet to send [22:04:29]OFD Sender: No OFD packet to send [22:04:34]OFD Sender: No OFD packet to send [22:04:39]OFD Sender: No OFD packet to send [22:04:44]OFD Sender: No OFD packet to send [22:04:49]OFD Sender: No OFD packet to send [22:04:54]OFD Sender: No OFD packet to send [22:04:59]OFD Sender: No OFD packet to send [22:05:04]OFD Sender: No OFD packet to send [22:05:09]OFD Sender: No OFD packet to send [22:05:14]OFD Sender: No OFD packet to send [22:05:15]accept exits with 9 [22:05:15]New connection [22:05:15]New thread 3066928484 created [22:05:15]Thread 3066785124 joined [22:05:15]Waiting for new connection... [22:05:15] Sock 9.Parse request [22:05:15]Sock 9.Check first char [22:05:15]Sock 9.First char is OK [22:05:15]request: POST /json_proto HTTP/1.0 [22:05:15]Method: POST [22:05:15]URL: /json_proto [22:05:15]Method is POST - this is cgi request [22:05:15]url: /json_proto [22:05:15]query_string will be loaded in cgi processing [22:05:15]execute_cgi json_proto POST (null) [22:05:15]execute_cgi path=json_proto method=POST [22:05:15]POST find Content-Length [22:05:15]Host: 172.17.56.4:8080 [22:05:15]Content-Length: 677 [22:05:15]Content-Type: application/json [22:05:15] [22:05:15]POST finish read [22:05:15]Found Content-Length = 677 [22:05:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459204", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "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" ] } } [22:05:15]execute_script... [22:05: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)459204", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "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" ] } } [22:05:15]POST & json_proto [22:05:15]process_json_proto [22:05:15]json parsed OK: [22:05:15]protocol is kg_v1.0 [22:05:15]action value=close_receipt [22:05:15]process_action close_receipt [22:05:15]cmd_close_receipt [22:05:15]MH_GetDate [22:05:15]Write to MH i2c: F0 00 00 3E 0C 39 [22:05:15]Write i2c OK [22:05:15]MH_I2C_Read... [22:05:15]Read from MH i2c: F0 [22:05:15]MH_I2C_Read... [22:05:15]Read from MH i2c: F0 09 00 [22:05:15]MH_I2C_Read... [22:05:15]Read from MH i2c: F0 09 00 3E 0C 00 9D 4B 94 66 C9 DC B2 64 DF [22:05:15]GetLastDocTimeStamp 1720994398 [22:05:15]current date 1720994717 [22:05:15]FM_GetShiftState [22:05:15]SAM_PROTO_GetShiftState [22:05:15]wFMCommunicate request_size=4 [22:05:15]MH_SAM_APDU [22:05:15]CAPDU: 80 13 01 00 [22:05:15]Write to MH i2c: E2 08 00 3F 0C 80 13 01 00 00 00 00 00 C8 [22:05:15]Write i2c OK [22:05:15]MH_I2C_Read... [22:05:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:05:15]Read from MH i2c: E2 [22:05:15]MH_I2C_Read... [22:05:15]Read from MH i2c: E2 0E 00 [22:05:15]MH_I2C_Read... [22:05:15]Read from MH i2c: E2 0E 00 3F 0C 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 48 [22:05:15]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [22:05:15]wFMCommunicate OK [22:05:15]SAM_PROTO_GetShiftState done [22:05:15]FM_GetShiftState done [22:05:15]opened in 1720917342 [22:05:15]opened+sec_in_day 1721003742 [22:05:15]quantity*price = 40006 [22:05:15]sum+1 = 40007 [22:05:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 299 14.07.2024 22:05 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165101 ФПД: 191977609904345 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T220517&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165101&fm=191977609904345&tin=02508201610067®Number=0000000000090829&sum=40000 [22:05:16]StoreToDocumentArchive [22:05:16]shift 447 fd 165101 [22:05:16]save to /storage/0447/doc_00165101 [22:05:16]save last doc name /storage/0447/doc_00165101 to /storage/kkm_last_doc_name [22:05:16]save OK [22:05:16]Clear old archive folders... [22:05:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:05:16]tlvbuf is 01352980 [22:05:16]SAM_PROTO_ClearQueue [22:05:16]wFMCommunicate request_size=4 [22:05:16]MH_SAM_APDU [22:05:16]CAPDU: 80 09 00 00 [22:05:16]Write to MH i2c: E2 08 00 4C 0C 80 09 00 00 00 00 00 00 CA [22:05:16]Write i2c OK [22:05:16]MH_I2C_Read... [22:05:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:05:17]Read from MH i2c: E2 [22:05:17]MH_I2C_Read... [22:05:17]Read from MH i2c: E2 03 00 [22:05:17]MH_I2C_Read... [22:05:17]Read from MH i2c: E2 03 00 4C 0C 00 90 00 CC [22:05:17]RAPDU: 90 00 [22:05:17]wFMCommunicate OK [22:05:17]SAM_PROTO_ClearQueue done [22:05:17]KKMCreateOFDPacket [22:05:17]OFDProtocolAddRootSTLVToBuf [22:05:17]FM_MakeSignedData [22:05:17]FM_MakeSignedData [22:05:17]SAM_PROTO_SignData [22:05:17]wFMCommunicate request_size=4 [22:05:17]MH_SAM_APDU [22:05:17]CAPDU: 80 0D 01 02 [22:05:17]Write to MH i2c: E2 08 00 4D 0C 80 0D 01 02 00 00 00 00 D2 [22:05:17]Write i2c OK [22:05:17]MH_I2C_Read... [22:05:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:05:17]Read from MH i2c: E2 [22:05:17]MH_I2C_Read... [22:05:17]Read from MH i2c: E2 03 00 [22:05:17]MH_I2C_Read... [22:05:17]Read from MH i2c: E2 03 00 4D 0C 00 90 00 CD [22:05:17]RAPDU: 90 00 [22:05:17]wFMCommunicate OK [22:05:17]wFMCommunicate request_size=255 [22:05:17]MH_SAM_APDU [22:05:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 2B 01 00 00 F4 03 04 00 9D 4B 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 ED 84 02 00 35 04 06 00 AE [22:05:17]Write to MH i2c: E2 02 01 4E 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 2B 01 00 00 F4 03 04 00 9D 4B 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 ED 84 02 00 35 04 06 00 AE 00 00 1A [22:05:17]Write i2c OK [22:05:17]MH_I2C_Read... [22:05:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:05:17]Read from MH i2c: E2 [22:05:17]MH_I2C_Read... [22:05:17]Read from MH i2c: E2 03 00 [22:05:17]MH_I2C_Read... [22:05:17]Read from MH i2c: E2 03 00 4E 0C 00 90 00 CE [22:05:17]RAPDU: 90 00 [22:05:17]wFMCommunicate OK [22:05:17]wFMCommunicate request_size=10 [22:05:17]MH_SAM_APDU [22:05:17]CAPDU: 80 0D 02 02 05 9A 45 3E 40 D9 [22:05:17]Write to MH i2c: E2 0D 00 4F 0C 80 0D 02 02 05 00 9A 45 3E 40 D9 00 00 15 [22:05:17]Write i2c OK [22:05:17]MH_I2C_Read... [22:05:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:05:17]Read from MH i2c: E2 [22:05:17]MH_I2C_Read... [22:05:17]Read from MH i2c: E2 03 00 [22:05:17]MH_I2C_Read... [22:05:17]Read from MH i2c: E2 03 00 4F 0C 00 90 00 CF [22:05:17]RAPDU: 90 00 [22:05:17]wFMCommunicate OK [22:05:17]wFMCommunicate request_size=4 [22:05:17]MH_SAM_APDU [22:05:17]CAPDU: 80 0D 03 02 [22:05:17]Write to MH i2c: E2 08 00 50 0C 80 0D 03 02 00 00 00 00 D7 [22:05:17]Write i2c OK [22:05:17]MH_I2C_Read... [22:05:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:05:17]Read from MH i2c: E2 [22:05:17]MH_I2C_Read... [22:05:17]Read from MH i2c: E2 0B 00 [22:05:17]MH_I2C_Read... [22:05:17]Read from MH i2c: E2 0B 00 50 0C 00 A3 77 0D B4 A5 E2 AB 5F 90 00 44 [22:05:17]RAPDU: A3 77 0D B4 A5 E2 AB 5F 90 00 [22:05:17]wFMCommunicate OK [22:05:17]SAM_PROTO_SignData done [22:05:17]FM_MakeSignedData done [22:05:17]CreateOFDProtocolMessage [22:05:17]wFMCommunicate request_size=4 [22:05:17]MH_SAM_APDU [22:05:17]CAPDU: 80 11 00 00 [22:05:17]Write to MH i2c: E2 08 00 51 0C 80 11 00 00 00 00 00 00 D7 [22:05:17]Write i2c OK [22:05:17]MH_I2C_Read... [22:05:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:05:17]Read from MH i2c: E2 [22:05:17]MH_I2C_Read... [22:05:17]Read from MH i2c: E2 17 00 [22:05:17]MH_I2C_Read... [22:05:17]Read from MH i2c: E2 17 00 51 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 2D [22:05:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:05:17]wFMCommunicate OK [22:05:17]CreateOFDProtocolMessage done [22:05:17]OFDSenderStorePacket 165101 [22:05:17]StoreOFDPacket docnum=165101 [22:05:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C4 EF 07 01 08 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 2B 01 00 00 F4 03 04 00 9D 4B 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 ED 84 02 00 35 04 06 00 AE 9A 45 3E 40 D9 A3 77 0D B4 A5 E2 AB 5F [22:05:17]CheckFolder [22:05:17]dirname=/storage/ofd_packets [22:05:17]CheckFolder done [22:05:17]ProducePacketName [22:05:17]name=ofd_packets/00165101 [22:05:17]NVStorageSaveData ofd_packets/00165101 [22:05:17]File name is /storage/ofd_packets/00165101 [22:05:17]Write 301 bytes [22:05:17]NVStorageSaveData done [22:05:17]OFDSenderStorePacket done [22:05:17]KKMCreateOFDPacket done [22:05:17]NVStorageSaveData kkm_last_timestamp [22:05:17]File name is /storage/kkm_last_timestamp [22:05:17]Write 4 bytes [22:05:17]NVStorageSaveData done [22:05:17]ExternCall_PrintAddStr [22:05:17]wPrintStart [22:05:17]Write to MH i2c: 01 00 00 52 0C 5E [22:05:17]Write i2c OK [22:05:17]MH_I2C_Read... [22:05:17]Read from MH i2c: 01 [22:05:17]MH_I2C_Read... [22:05:17]Read from MH i2c: 01 07 00 [22:05:17]MH_I2C_Read... [22:05:17]Read from MH i2c: 01 07 00 52 0C 00 00 00 00 00 FF 0F 73 [22:05:17]RasterBufferAndPrint [22:05:17]line Счет N : (1)459204 [22:05:17]line ИНН: 02508201610067 [22:05:17]line Контрольно-Кассовый Чек [22:05:17]line ПРОДАЖА [22:05:17]line ТРК (МРК, ГНК) : 22 [22:05:17]line Товар: 2710124130 [22:05:17]line Аи-92-К-5 [22:05:17]line 6.080 * 65.80 [22:05:17]line = 400.06 [22:05:17]line НДС 12% НСП 1% [22:05:17]line > о реализуемом товаре [22:05:17]line ОКРУГЛЕНИЕ: -0.06 [22:05:17]line ИТОГО: 400.00 [22:05:17]line Внесено: 400.00 [22:05:17]line СДАЧА: 0.00 [22:05:17]line НСП 1% : 3.54 [22:05:17]line НДС 12% : 42.48 [22:05:17]line Наличными: 400.00 [22:05:17]line Безнал.: 0.00 [22:05:17]line Место: АЗС № 72 "Партнер Нефть" [22:05:17]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [22:05:17]line СНО: Общий режим [22:05:17]line Чек 299 14.07.2024 22:05 [22:05:17]line Смена: 447 ФФД: 1.0 [22:05:17]line ЗНМ: 0300000160 [22:05:17]line РНМ: 0000000000090829 [22:05:17]line Версия ККМ: 001 [22:05:17]line ФМ: 0000000000874718 [22:05:17]line ФД: 165101 [22:05:17]line ФПД: 191977609904345 [22:05:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T220517&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165101&fm=191977609904345&tin=02508201610067®Number=0000000000090829&sum=40000 [22:05:17]OFD Sender: Processing packet 165101 [packets to send 106, broken 105] [22:05:17]ProducePacketName [22:05:17]name=ofd_packets/00165101 [22:05:17]OFD Sender: To server: pG, [22:05:17]CommunicateWithHost lk.salyk.kg:30040 [22:05:17]ConnectInit lk.salyk.kg [22:05:17]written 0, free lines is 4095 [22:05:17]Connected sock=10 [22:05:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C4 EF 07 01 08 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 2B 01 00 00 F4 03 04 00 9D 4B 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 ED 84 02 00 35 04 06 00 AE 9A 45 3E 40 D9 A3 77 0D B4 A5 E2 AB 5F [22:05:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 07 38 47 00 36 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 ED 84 02 00 F4 03 04 00 2A F2 93 66 B6 04 01 00 00 08 95 94 DC A4 E8 C8 56 [22:05:18]CommunicateWithHost err = 0 [22:05:18]CheckOFDResponse [22:05:18]1017 (14) - 77093643461234 [22:05:18]1041 (16) - 0000000000874718 [22:05:18]1040 (4) - 165101 [22:05:18]1012 (4) - 14.07.2024 15:43 [22:05:18]1206 (1) - 0 [22:05:18]OFD Sender: Remove packet 165101 [22:05:18]ProducePacketName [22:05:18]name=ofd_packets/00165101 [22:05:18]NVStorageDeleteData [22:05:18]Write to MH i2c: 01 00 00 7C 0C 88 [22:05:18]Write i2c OK [22:05:18]MH_I2C_Read... [22:05:18]Read from MH i2c: 01 [22:05:18]MH_I2C_Read... [22:05:18]Read from MH i2c: 01 07 00 [22:05:18]MH_I2C_Read... [22:05:18]Read from MH i2c: 01 07 00 7C 0C 00 00 00 00 00 01 0D 9D [22:05:18]RasterBufferAndPrint [22:05:18]line [22:05:18]line [22:05:18]line [22:05:18]line [22:05:18]line [22:05:18]written 0, free lines is 3335 [22:05:18]MH_Cut [22:05:18]Write to MH i2c: D1 01 00 83 0C 01 61 [22:05:18]Write i2c OK [22:05:18]MH_I2C_Read... [22:05:18]Read from MH i2c: D1 [22:05:18]MH_I2C_Read... [22:05:18]Read from MH i2c: D1 01 00 [22:05:18]MH_I2C_Read... [22:05:18]Read from MH i2c: D1 01 00 83 0C 00 60 [22:05:18]Write to MH i2c: 01 00 00 84 0C 90 [22:05:18]Write i2c OK [22:05:18]MH_I2C_Read... [22:05:18]OFD Sender: No OFD packet to send [22:05:18]*** Cut start [22:05:18]*** Partial cut [22:05:18]*** CUTSNS_PIN = 1 [22:05:19]*** CUTSNS_PIN = 0 [22:05:19]*** Brake cut motor [22:05:19]Read from MH i2c: 01 [22:05:19]MH_I2C_Read... [22:05:19]*** Stop cut motor [22:05:19]*** Cut end [22:05:19]Read from MH i2c: 01 07 00 [22:05:19]MH_I2C_Read... [22:05:19]Read from MH i2c: 01 07 00 84 0C 00 00 00 00 00 FF 0F A5 [22:05:19]process_action close_receipt done [22:05:19]requested_data is exist [22:05:19]produce_requested_data [22:05:19]requested_item fm.sn is exist - process it [22:05:19]wFMCommunicate request_size=4 [22:05:19]MH_SAM_APDU [22:05:19]CAPDU: 80 11 00 00 [22:05:19]Write to MH i2c: E2 08 00 85 0C 80 11 00 00 00 00 00 00 0B [22:05:19]Write i2c OK [22:05:19]MH_I2C_Read... [22:05:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:05:19]Read from MH i2c: E2 [22:05:19]MH_I2C_Read... [22:05:19]Read from MH i2c: E2 17 00 [22:05:19]MH_I2C_Read... [22:05:19]Read from MH i2c: E2 17 00 85 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 61 [22:05:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:05:19]wFMCommunicate OK [22:05:19]requested_item fd.num is exist - process it [22:05:19]SAM_PROTO_GetFieldsCounters [22:05:19]wFMCommunicate request_size=4 [22:05:19]MH_SAM_APDU [22:05:19]CAPDU: 80 13 00 00 [22:05:19]Write to MH i2c: E2 08 00 86 0C 80 13 00 00 00 00 00 00 0E [22:05:19]Write i2c OK [22:05:19]MH_I2C_Read... [22:05:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:05:19]Read from MH i2c: E2 [22:05:19]MH_I2C_Read... [22:05:19]Read from MH i2c: E2 62 00 [22:05:19]MH_I2C_Read... [22:05:19]Read from MH i2c: E2 62 00 86 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 ED 84 02 00 0E 04 04 00 BF 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 EC [22:05:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 ED 84 02 00 0E 04 04 00 BF 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 [22:05:19]wFMCommunicate OK [22:05:19]SAM_PROTO_GetFieldsCounters done [22:05:19]requested_item shift.num is exist - process it [22:05:19]requested_item shift.opened is exist - process it [22:05:19]req_shift_opened [22:05:19]FM_GetShiftState [22:05:19]SAM_PROTO_GetShiftState [22:05:19]wFMCommunicate request_size=4 [22:05:19]MH_SAM_APDU [22:05:19]CAPDU: 80 13 01 00 [22:05:19]Write to MH i2c: E2 08 00 87 0C 80 13 01 00 00 00 00 00 10 [22:05:19]Write i2c OK [22:05:19]MH_I2C_Read... [22:05:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:05:19]Read from MH i2c: E2 [22:05:19]MH_I2C_Read... [22:05:19]Read from MH i2c: E2 0E 00 [22:05:19]MH_I2C_Read... [22:05:19]Read from MH i2c: E2 0E 00 87 0C 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 90 [22:05:19]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [22:05:19]wFMCommunicate OK [22:05:19]SAM_PROTO_GetShiftState done [22:05:19]FM_GetShiftState done [22:05:19]req_shift_opened done [22:05:19]requested_item shift.open_date is exist - process it [22:05:19]req_shift_open_date [22:05:19]req_shift_open_date done [22:05:19]produce_requested_data done [22:05:19]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165101,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [22:05:19]process_action_free close_receipt [22:05:19]json_value_free [22:05:19]json_value_free done [22:05:19]process_json_proto returns [22:05:19]Send response to host [22:05:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165101,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [22:05:19]free response buf [22:05:19]execute_script done [22:05:19]execute_script returns [22:05:19]free content buf [22:05:19]Sock 9.Close socket [22:05:19]Sock 9.Thread stoped [22:05:23]OFD Sender: No OFD packet to send [22:05:28]OFD Sender: No OFD packet to send [22:05:33]OFD Sender: No OFD packet to send [22:05:38]OFD Sender: No OFD packet to send [22:05:43]OFD Sender: No OFD packet to send [22:05:48]OFD Sender: No OFD packet to send [22:05:53]OFD Sender: No OFD packet to send [22:05:58]OFD Sender: No OFD packet to send [22:06:03]OFD Sender: No OFD packet to send [22:06:08]OFD Sender: No OFD packet to send [22:06:13]OFD Sender: No OFD packet to send [22:06:16]accept exits with 7 [22:06:16]New connection [22:06:16]New thread 3066785124 created [22:06:16]Thread 3066928484 joined [22:06:16]Waiting for new connection... [22:06:16] Sock 7.Parse request [22:06:16]Sock 7.Check first char [22:06:16]Sock 7.First char is OK [22:06:16]request: POST /json_proto HTTP/1.0 [22:06:16]Method: POST [22:06:16]URL: /json_proto [22:06:16]Method is POST - this is cgi request [22:06:16]url: /json_proto [22:06:16]query_string will be loaded in cgi processing [22:06:16]execute_cgi json_proto POST (null) [22:06:16]execute_cgi path=json_proto method=POST [22:06:16]POST find Content-Length [22:06:16]Host: 172.17.56.4:8080 [22:06:16]Content-Length: 677 [22:06:16]Content-Type: application/json [22:06:16] [22:06:16]POST finish read [22:06:16]Found Content-Length = 677 [22:06:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459205", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 8.210, "sum" : 540.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 540.00, "total" : 540.00, "payments": [ { "type": 0, "sum" : 540.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:06:16]execute_script... [22:06:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459205", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 8.210, "sum" : 540.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 540.00, "total" : 540.00, "payments": [ { "type": 0, "sum" : 540.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:06:16]POST & json_proto [22:06:16]process_json_proto [22:06:16]json parsed OK: [22:06:16]protocol is kg_v1.0 [22:06:16]action value=close_receipt [22:06:16]process_action close_receipt [22:06:16]cmd_close_receipt [22:06:16]MH_GetDate [22:06:16]Write to MH i2c: F0 00 00 88 0C 83 [22:06:16]Write i2c OK [22:06:16]MH_I2C_Read... [22:06:16]Read from MH i2c: F0 [22:06:16]MH_I2C_Read... [22:06:16]Read from MH i2c: F0 09 00 [22:06:16]MH_I2C_Read... [22:06:16]Read from MH i2c: F0 09 00 88 0C 00 DA 4B 94 66 C9 DC B2 64 66 [22:06:16]GetLastDocTimeStamp 1720994717 [22:06:16]current date 1720994778 [22:06:16]FM_GetShiftState [22:06:16]SAM_PROTO_GetShiftState [22:06:16]wFMCommunicate request_size=4 [22:06:16]MH_SAM_APDU [22:06:16]CAPDU: 80 13 01 00 [22:06:16]Write to MH i2c: E2 08 00 89 0C 80 13 01 00 00 00 00 00 12 [22:06:16]Write i2c OK [22:06:16]MH_I2C_Read... [22:06:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:06:16]Read from MH i2c: E2 [22:06:16]MH_I2C_Read... [22:06:16]Read from MH i2c: E2 0E 00 [22:06:16]MH_I2C_Read... [22:06:16]Read from MH i2c: E2 0E 00 89 0C 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 92 [22:06:16]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [22:06:16]wFMCommunicate OK [22:06:16]SAM_PROTO_GetShiftState done [22:06:16]FM_GetShiftState done [22:06:16]opened in 1720917342 [22:06:16]opened+sec_in_day 1721003742 [22:06:16]quantity*price = 54021 [22:06:16]sum+1 = 54023 [22:06:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 540.00 Внесено: 540.00 СДАЧА: 0.00 НСП 1% : 4.78 НДС 12% : 57.37 Наличными: 540.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 300 14.07.2024 22:06 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165102 ФПД: 161089274784713 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T220618&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165102&fm=161089274784713&tin=02508201610067®Number=0000000000090829&sum=54000 [22:06:17]StoreToDocumentArchive [22:06:17]shift 447 fd 165102 [22:06:17]save to /storage/0447/doc_00165102 [22:06:17]save last doc name /storage/0447/doc_00165102 to /storage/kkm_last_doc_name [22:06:17]save OK [22:06:17]Clear old archive folders... [22:06:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:06:17]tlvbuf is 0135E530 [22:06:17]SAM_PROTO_ClearQueue [22:06:17]wFMCommunicate request_size=4 [22:06:17]MH_SAM_APDU [22:06:17]CAPDU: 80 09 00 00 [22:06:17]Write to MH i2c: E2 08 00 96 0C 80 09 00 00 00 00 00 00 14 [22:06:17]Write i2c OK [22:06:17]MH_I2C_Read... [22:06:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:06:17]Read from MH i2c: E2 [22:06:17]MH_I2C_Read... [22:06:17]Read from MH i2c: E2 03 00 [22:06:17]MH_I2C_Read... [22:06:17]Read from MH i2c: E2 03 00 96 0C 00 90 00 16 [22:06:17]RAPDU: 90 00 [22:06:17]wFMCommunicate OK [22:06:17]SAM_PROTO_ClearQueue done [22:06:17]KKMCreateOFDPacket [22:06:17]OFDProtocolAddRootSTLVToBuf [22:06:17]FM_MakeSignedData [22:06:17]FM_MakeSignedData [22:06:17]SAM_PROTO_SignData [22:06:17]wFMCommunicate request_size=4 [22:06:17]MH_SAM_APDU [22:06:17]CAPDU: 80 0D 01 02 [22:06:17]Write to MH i2c: E2 08 00 97 0C 80 0D 01 02 00 00 00 00 1C [22:06:17]Write i2c OK [22:06:17]MH_I2C_Read... [22:06:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:06:17]Read from MH i2c: E2 [22:06:17]MH_I2C_Read... [22:06:17]Read from MH i2c: E2 03 00 [22:06:17]MH_I2C_Read... [22:06:17]Read from MH i2c: E2 03 00 97 0C 00 90 00 17 [22:06:17]RAPDU: 90 00 [22:06:17]wFMCommunicate OK [22:06:17]wFMCommunicate request_size=255 [22:06:17]MH_SAM_APDU [22:06:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 20 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 06 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 DA 4B 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EE 84 02 00 35 04 06 00 92 [22:06:17]Write to MH i2c: E2 02 01 98 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 20 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 06 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 DA 4B 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EE 84 02 00 35 04 06 00 92 00 00 F8 [22:06:17]Write i2c OK [22:06:17]MH_I2C_Read... [22:06:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:06:18]Read from MH i2c: E2 [22:06:18]MH_I2C_Read... [22:06:18]Read from MH i2c: E2 03 00 [22:06:18]MH_I2C_Read... [22:06:18]Read from MH i2c: E2 03 00 98 0C 00 90 00 18 [22:06:18]RAPDU: 90 00 [22:06:18]wFMCommunicate OK [22:06:18]wFMCommunicate request_size=10 [22:06:18]MH_SAM_APDU [22:06:18]CAPDU: 80 0D 02 02 05 82 85 00 2B C9 [22:06:18]Write to MH i2c: E2 0D 00 99 0C 80 0D 02 02 05 00 82 85 00 2B C9 00 00 24 [22:06:18]Write i2c OK [22:06:18]MH_I2C_Read... [22:06:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:06:18]Read from MH i2c: E2 [22:06:18]MH_I2C_Read... [22:06:18]Read from MH i2c: E2 03 00 [22:06:18]MH_I2C_Read... [22:06:18]Read from MH i2c: E2 03 00 99 0C 00 90 00 19 [22:06:18]RAPDU: 90 00 [22:06:18]wFMCommunicate OK [22:06:18]wFMCommunicate request_size=4 [22:06:18]MH_SAM_APDU [22:06:18]CAPDU: 80 0D 03 02 [22:06:18]Write to MH i2c: E2 08 00 9A 0C 80 0D 03 02 00 00 00 00 21 [22:06:18]Write i2c OK [22:06:18]MH_I2C_Read... [22:06:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:06:18]Read from MH i2c: E2 [22:06:18]MH_I2C_Read... [22:06:18]Read from MH i2c: E2 0B 00 [22:06:18]MH_I2C_Read... [22:06:18]Read from MH i2c: E2 0B 00 9A 0C 00 9F 00 11 CF E6 E4 07 E1 90 00 53 [22:06:18]RAPDU: 9F 00 11 CF E6 E4 07 E1 90 00 [22:06:18]wFMCommunicate OK [22:06:18]SAM_PROTO_SignData done [22:06:18]FM_MakeSignedData done [22:06:18]CreateOFDProtocolMessage [22:06:18]wFMCommunicate request_size=4 [22:06:18]MH_SAM_APDU [22:06:18]CAPDU: 80 11 00 00 [22:06:18]Write to MH i2c: E2 08 00 9B 0C 80 11 00 00 00 00 00 00 21 [22:06:18]Write i2c OK [22:06:18]MH_I2C_Read... [22:06:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:06:18]Read from MH i2c: E2 [22:06:18]MH_I2C_Read... [22:06:18]Read from MH i2c: E2 17 00 [22:06:18]MH_I2C_Read... [22:06:18]Read from MH i2c: E2 17 00 9B 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 77 [22:06:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:06:18]wFMCommunicate OK [22:06:18]CreateOFDProtocolMessage done [22:06:18]OFDSenderStorePacket 165102 [22:06:18]StoreOFDPacket docnum=165102 [22:06:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 62 8F 07 01 43 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 35 FF 03 08 00 03 12 20 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 06 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 DA 4B 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EE 84 02 00 35 04 06 00 92 82 85 00 2B C9 9F 00 11 CF E6 E4 07 E1 [22:06:18]CheckFolder [22:06:18]dirname=/storage/ofd_packets [22:06:18]CheckFolder done [22:06:18]ProducePacketName [22:06:18]name=ofd_packets/00165102 [22:06:18]NVStorageSaveData ofd_packets/00165102 [22:06:18]File name is /storage/ofd_packets/00165102 [22:06:18]Write 301 bytes [22:06:18]NVStorageSaveData done [22:06:18]OFDSenderStorePacket done [22:06:18]KKMCreateOFDPacket done [22:06:18]NVStorageSaveData kkm_last_timestamp [22:06:18]File name is /storage/kkm_last_timestamp [22:06:18]Write 4 bytes [22:06:18]NVStorageSaveData done [22:06:18]ExternCall_PrintAddStr [22:06:18]wPrintStart [22:06:18]Write to MH i2c: 01 00 00 9C 0C A8 [22:06:18]Write i2c OK [22:06:18]MH_I2C_Read... [22:06:18]Read from MH i2c: 01 [22:06:18]MH_I2C_Read... [22:06:18]Read from MH i2c: 01 07 00 [22:06:18]MH_I2C_Read... [22:06:18]Read from MH i2c: 01 07 00 9C 0C 00 00 00 00 00 FF 0F BD [22:06:18]RasterBufferAndPrint [22:06:18]line Счет N : (1)459205 [22:06:18]line ИНН: 02508201610067 [22:06:18]line Контрольно-Кассовый Чек [22:06:18]line ПРОДАЖА [22:06:18]line ТРК (МРК, ГНК) : 12 [22:06:18]line Товар: 2710124130 [22:06:18]line Аи-92-К-5 [22:06:18]line 8.210 * 65.80 [22:06:18]line = 540.22 [22:06:18]line НДС 12% НСП 1% [22:06:18]line > о реализуемом товаре [22:06:18]line ОКРУГЛЕНИЕ: -0.22 [22:06:18]line ИТОГО: 540.00 [22:06:18]line Внесено: 540.00 [22:06:18]line СДАЧА: 0.00 [22:06:18]line НСП 1% : 4.78 [22:06:18]line НДС 12% : 57.37 [22:06:18]line Наличными: 540.00 [22:06:18]line Безнал.: 0.00 [22:06:18]line Место: АЗС № 72 "Партнер Нефть" [22:06:18]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [22:06:18]line СНО: Общий режим [22:06:18]line Чек 300 14.07.2024 22:06 [22:06:18]line Смена: 447 ФФД: 1.0 [22:06:18]line ЗНМ: 0300000160 [22:06:18]line РНМ: 0000000000090829 [22:06:18]line Версия ККМ: 001 [22:06:18]line ФМ: 0000000000874718 [22:06:18]line ФД: 165102 [22:06:18]line ФПД: 161089274784713 [22:06:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T220618&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165102&fm=161089274784713&tin=02508201610067®Number=0000000000090829&sum=54000 [22:06:18]OFD Sender: Processing packet 165102 [packets to send 106, broken 105] [22:06:18]ProducePacketName [22:06:18]name=ofd_packets/00165102 [22:06:18]OFD Sender: To server: pG, [22:06:18]CommunicateWithHost lk.salyk.kg:30040 [22:06:18]ConnectInit lk.salyk.kg [22:06:18]written 0, free lines is 4095 [22:06:18]Connected sock=10 [22:06:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 62 8F 07 01 43 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 35 FF 03 08 00 03 12 20 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 06 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 DA 4B 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EE 84 02 00 35 04 06 00 92 82 85 00 2B C9 9F 00 11 CF E6 E4 07 E1 [22:06:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 9D B9 47 00 42 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EE 84 02 00 F4 03 04 00 66 F2 93 66 B6 04 01 00 00 52 C0 E8 7E 9B B8 C4 74 [22:06:18]CommunicateWithHost err = 0 [22:06:18]CheckOFDResponse [22:06:18]1017 (14) - 77093643461234 [22:06:18]1041 (16) - 0000000000874718 [22:06:18]1040 (4) - 165102 [22:06:18]1012 (4) - 14.07.2024 15:44 [22:06:18]1206 (1) - 0 [22:06:18]OFD Sender: Remove packet 165102 [22:06:18]ProducePacketName [22:06:18]name=ofd_packets/00165102 [22:06:18]NVStorageDeleteData [22:06:19]Write to MH i2c: 01 00 00 C6 0C D2 [22:06:19]Write i2c OK [22:06:19]MH_I2C_Read... [22:06:19]Read from MH i2c: 01 [22:06:19]MH_I2C_Read... [22:06:19]Read from MH i2c: 01 07 00 [22:06:19]MH_I2C_Read... [22:06:19]Read from MH i2c: 01 07 00 C6 0C 00 00 00 00 00 04 0D EA [22:06:19]RasterBufferAndPrint [22:06:19]line [22:06:19]line [22:06:19]line [22:06:19]line [22:06:19]line [22:06:19]written 0, free lines is 3338 [22:06:19]MH_Cut [22:06:19]Write to MH i2c: D1 01 00 CD 0C 01 AB [22:06:19]Write i2c OK [22:06:19]MH_I2C_Read... [22:06:19]Read from MH i2c: D1 [22:06:19]MH_I2C_Read... [22:06:19]Read from MH i2c: D1 01 00 [22:06:19]MH_I2C_Read... [22:06:19]Read from MH i2c: D1 01 00 CD 0C 00 AA [22:06:19]Write to MH i2c: 01 00 00 CE 0C DA [22:06:19]Write i2c OK [22:06:19]MH_I2C_Read... [22:06:19]OFD Sender: No OFD packet to send [22:06:19]*** Cut start [22:06:19]*** Partial cut [22:06:19]*** CUTSNS_PIN = 1 [22:06:19]*** CUTSNS_PIN = 0 [22:06:19]*** Brake cut motor [22:06:20]Read from MH i2c: 01 [22:06:20]MH_I2C_Read... [22:06:20]*** Stop cut motor [22:06:20]*** Cut end [22:06:20]Read from MH i2c: 01 07 00 [22:06:20]MH_I2C_Read... [22:06:20]Read from MH i2c: 01 07 00 CE 0C 00 00 00 00 00 FF 0F EF [22:06:20]process_action close_receipt done [22:06:20]requested_data is exist [22:06:20]produce_requested_data [22:06:20]requested_item fm.sn is exist - process it [22:06:20]wFMCommunicate request_size=4 [22:06:20]MH_SAM_APDU [22:06:20]CAPDU: 80 11 00 00 [22:06:20]Write to MH i2c: E2 08 00 CF 0C 80 11 00 00 00 00 00 00 55 [22:06:20]Write i2c OK [22:06:20]MH_I2C_Read... [22:06:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:06:20]Read from MH i2c: E2 [22:06:20]MH_I2C_Read... [22:06:20]Read from MH i2c: E2 17 00 [22:06:20]MH_I2C_Read... [22:06:20]Read from MH i2c: E2 17 00 CF 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 AB [22:06:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:06:20]wFMCommunicate OK [22:06:20]requested_item fd.num is exist - process it [22:06:20]SAM_PROTO_GetFieldsCounters [22:06:20]wFMCommunicate request_size=4 [22:06:20]MH_SAM_APDU [22:06:20]CAPDU: 80 13 00 00 [22:06:20]Write to MH i2c: E2 08 00 D0 0C 80 13 00 00 00 00 00 00 58 [22:06:20]Write i2c OK [22:06:20]MH_I2C_Read... [22:06:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:06:20]Read from MH i2c: E2 [22:06:20]MH_I2C_Read... [22:06:20]Read from MH i2c: E2 62 00 [22:06:20]MH_I2C_Read... [22:06:20]Read from MH i2c: E2 62 00 D0 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 EE 84 02 00 0E 04 04 00 BF 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 3A [22:06:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 EE 84 02 00 0E 04 04 00 BF 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 [22:06:20]wFMCommunicate OK [22:06:20]SAM_PROTO_GetFieldsCounters done [22:06:20]requested_item shift.num is exist - process it [22:06:20]requested_item shift.opened is exist - process it [22:06:20]req_shift_opened [22:06:20]FM_GetShiftState [22:06:20]SAM_PROTO_GetShiftState [22:06:20]wFMCommunicate request_size=4 [22:06:20]MH_SAM_APDU [22:06:20]CAPDU: 80 13 01 00 [22:06:20]Write to MH i2c: E2 08 00 D1 0C 80 13 01 00 00 00 00 00 5A [22:06:20]Write i2c OK [22:06:20]MH_I2C_Read... [22:06:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:06:20]Read from MH i2c: E2 [22:06:20]MH_I2C_Read... [22:06:20]Read from MH i2c: E2 0E 00 [22:06:20]MH_I2C_Read... [22:06:20]Read from MH i2c: E2 0E 00 D1 0C 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 DA [22:06:20]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [22:06:20]wFMCommunicate OK [22:06:20]SAM_PROTO_GetShiftState done [22:06:20]FM_GetShiftState done [22:06:20]req_shift_opened done [22:06:20]requested_item shift.open_date is exist - process it [22:06:20]req_shift_open_date [22:06:20]req_shift_open_date done [22:06:20]produce_requested_data done [22:06:20]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165102,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [22:06:20]process_action_free close_receipt [22:06:20]json_value_free [22:06:20]json_value_free done [22:06:20]process_json_proto returns [22:06:20]Send response to host [22:06:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165102,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [22:06:20]free response buf [22:06:20]execute_script done [22:06:20]execute_script returns [22:06:20]free content buf [22:06:20]Sock 7.Close socket [22:06:20]Sock 7.Thread stoped [22:06:24]OFD Sender: No OFD packet to send [22:06:29]OFD Sender: No OFD packet to send [22:06:34]OFD Sender: No OFD packet to send [22:06:39]OFD Sender: No OFD packet to send [22:06:44]OFD Sender: No OFD packet to send [22:06:49]OFD Sender: No OFD packet to send [22:06:54]OFD Sender: No OFD packet to send [22:06:59]OFD Sender: No OFD packet to send [22:07:04]OFD Sender: No OFD packet to send [22:07:09]OFD Sender: No OFD packet to send [22:07:14]OFD Sender: No OFD packet to send [22:07:19]OFD Sender: No OFD packet to send [22:07:24]OFD Sender: No OFD packet to send [22:07:29]OFD Sender: No OFD packet to send [22:07:34]OFD Sender: No OFD packet to send [22:07:39]OFD Sender: No OFD packet to send [22:07:44]OFD Sender: No OFD packet to send [22:07:49]OFD Sender: No OFD packet to send [22:07:54]OFD Sender: No OFD packet to send [22:07:59]OFD Sender: No OFD packet to send [22:08:04]OFD Sender: No OFD packet to send [22:08:09]OFD Sender: No OFD packet to send [22:08:14]OFD Sender: No OFD packet to send [22:08:19]OFD Sender: No OFD packet to send [22:08:24]OFD Sender: No OFD packet to send [22:08:29]OFD Sender: No OFD packet to send [22:08:34]OFD Sender: No OFD packet to send [22:08:39]OFD Sender: No OFD packet to send [22:08:44]OFD Sender: No OFD packet to send [22:08:49]OFD Sender: No OFD packet to send [22:08:54]OFD Sender: No OFD packet to send [22:08:59]OFD Sender: No OFD packet to send [22:09:04]OFD Sender: No OFD packet to send [22:09:09]OFD Sender: No OFD packet to send [22:09:14]OFD Sender: No OFD packet to send [22:09:19]OFD Sender: No OFD packet to send [22:09:24]OFD Sender: No OFD packet to send [22:09:29]OFD Sender: No OFD packet to send [22:09:34]OFD Sender: No OFD packet to send [22:09:39]OFD Sender: No OFD packet to send [22:09:44]OFD Sender: No OFD packet to send [22:09:49]OFD Sender: No OFD packet to send [22:09:54]OFD Sender: No OFD packet to send [22:09:59]OFD Sender: No OFD packet to send [22:10:04]OFD Sender: No OFD packet to send [22:10:09]OFD Sender: No OFD packet to send [22:10:14]OFD Sender: No OFD packet to send [22:10:19]OFD Sender: No OFD packet to send [22:10:24]OFD Sender: No OFD packet to send [22:10:29]OFD Sender: No OFD packet to send [22:10:34]OFD Sender: No OFD packet to send [22:10:39]OFD Sender: No OFD packet to send [22:10:44]OFD Sender: No OFD packet to send [22:10:49]OFD Sender: No OFD packet to send [22:10:54]OFD Sender: No OFD packet to send [22:10:59]OFD Sender: No OFD packet to send [22:11:04]OFD Sender: No OFD packet to send [22:11:09]OFD Sender: No OFD packet to send [22:11:14]OFD Sender: No OFD packet to send [22:11:19]OFD Sender: No OFD packet to send [22:11:24]OFD Sender: No OFD packet to send [22:11:29]OFD Sender: No OFD packet to send [22:11:34]OFD Sender: No OFD packet to send [22:11:39]OFD Sender: No OFD packet to send [22:11:44]OFD Sender: No OFD packet to send [22:11:49]OFD Sender: No OFD packet to send [22:11:50]accept exits with 9 [22:11:50]New connection [22:11:50]New thread 3066928484 created [22:11:50]Thread 3066785124 joined [22:11:50]Waiting for new connection... [22:11:50] Sock 9.Parse request [22:11:50]Sock 9.Check first char [22:11:50]Sock 9.First char is OK [22:11:50]request: POST /json_proto HTTP/1.0 [22:11:50]Method: POST [22:11:50]URL: /json_proto [22:11:50]Method is POST - this is cgi request [22:11:50]url: /json_proto [22:11:50]query_string will be loaded in cgi processing [22:11:50]execute_cgi json_proto POST (null) [22:11:50]execute_cgi path=json_proto method=POST [22:11:50]POST find Content-Length [22:11:50]Host: 172.17.56.4:8080 [22:11:50]Content-Length: 678 [22:11:50]Content-Type: application/json [22:11:50] [22:11:50]POST finish read [22:11:50]Found Content-Length = 678 [22:11:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459206", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "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" ] } } [22:11:50]execute_script... [22:11: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)459206", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "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" ] } } [22:11:50]POST & json_proto [22:11:50]process_json_proto [22:11:50]json parsed OK: [22:11:50]protocol is kg_v1.0 [22:11:50]action value=close_receipt [22:11:50]process_action close_receipt [22:11:50]cmd_close_receipt [22:11:50]MH_GetDate [22:11:50]Write to MH i2c: F0 00 00 D2 0C CD [22:11:50]Write i2c OK [22:11:50]MH_I2C_Read... [22:11:50]Read from MH i2c: F0 [22:11:50]MH_I2C_Read... [22:11:50]Read from MH i2c: F0 09 00 [22:11:50]MH_I2C_Read... [22:11:50]Read from MH i2c: F0 09 00 D2 0C 00 28 4D 94 66 C9 DC B2 64 00 [22:11:50]GetLastDocTimeStamp 1720994778 [22:11:50]current date 1720995112 [22:11:50]FM_GetShiftState [22:11:50]SAM_PROTO_GetShiftState [22:11:50]wFMCommunicate request_size=4 [22:11:50]MH_SAM_APDU [22:11:50]CAPDU: 80 13 01 00 [22:11:50]Write to MH i2c: E2 08 00 D3 0C 80 13 01 00 00 00 00 00 5C [22:11:50]Write i2c OK [22:11:50]MH_I2C_Read... [22:11:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:11:50]Read from MH i2c: E2 [22:11:50]MH_I2C_Read... [22:11:50]Read from MH i2c: E2 0E 00 [22:11:50]MH_I2C_Read... [22:11:50]Read from MH i2c: E2 0E 00 D3 0C 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 DC [22:11:50]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [22:11:50]wFMCommunicate OK [22:11:50]SAM_PROTO_GetShiftState done [22:11:50]FM_GetShiftState done [22:11:50]opened in 1720917342 [22:11:50]opened+sec_in_day 1721003742 [22:11:50]quantity*price = 70011 [22:11:50]sum+1 = 70012 [22:11:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 301 14.07.2024 22:11 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165103 ФПД: 253879067603805 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T221152&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165103&fm=253879067603805&tin=02508201610067®Number=0000000000090829&sum=70000 [22:11:51]StoreToDocumentArchive [22:11:51]shift 447 fd 165103 [22:11:51]save to /storage/0447/doc_00165103 [22:11:51]save last doc name /storage/0447/doc_00165103 to /storage/kkm_last_doc_name [22:11:51]save OK [22:11:51]Clear old archive folders... [22:11:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:11:51]tlvbuf is 0134ED30 [22:11:51]SAM_PROTO_ClearQueue [22:11:51]wFMCommunicate request_size=4 [22:11:51]MH_SAM_APDU [22:11:51]CAPDU: 80 09 00 00 [22:11:51]Write to MH i2c: E2 08 00 E0 0C 80 09 00 00 00 00 00 00 5E [22:11:51]Write i2c OK [22:11:51]MH_I2C_Read... [22:11:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:11:51]Read from MH i2c: E2 [22:11:51]MH_I2C_Read... [22:11:51]Read from MH i2c: E2 03 00 [22:11:51]MH_I2C_Read... [22:11:51]Read from MH i2c: E2 03 00 E0 0C 00 90 00 60 [22:11:51]RAPDU: 90 00 [22:11:51]wFMCommunicate OK [22:11:51]SAM_PROTO_ClearQueue done [22:11:51]KKMCreateOFDPacket [22:11:51]OFDProtocolAddRootSTLVToBuf [22:11:51]FM_MakeSignedData [22:11:51]FM_MakeSignedData [22:11:51]SAM_PROTO_SignData [22:11:51]wFMCommunicate request_size=4 [22:11:51]MH_SAM_APDU [22:11:51]CAPDU: 80 0D 01 02 [22:11:51]Write to MH i2c: E2 08 00 E1 0C 80 0D 01 02 00 00 00 00 66 [22:11:51]Write i2c OK [22:11:51]MH_I2C_Read... [22:11:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:11:51]Read from MH i2c: E2 [22:11:51]MH_I2C_Read... [22:11:51]Read from MH i2c: E2 03 00 [22:11:51]MH_I2C_Read... [22:11:51]Read from MH i2c: E2 03 00 E1 0C 00 90 00 61 [22:11:51]RAPDU: 90 00 [22:11:51]wFMCommunicate OK [22:11:51]wFMCommunicate request_size=255 [22:11:51]MH_SAM_APDU [22:11:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 2D 01 00 00 F4 03 04 00 28 4D 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EF 84 02 00 35 04 06 00 E6 [22:11:51]Write to MH i2c: E2 02 01 E2 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 2D 01 00 00 F4 03 04 00 28 4D 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EF 84 02 00 35 04 06 00 E6 00 00 DB [22:11:51]Write i2c OK [22:11:51]MH_I2C_Read... [22:11:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:11:51]Read from MH i2c: E2 [22:11:51]MH_I2C_Read... [22:11:51]Read from MH i2c: E2 03 00 [22:11:51]MH_I2C_Read... [22:11:51]Read from MH i2c: E2 03 00 E2 0C 00 90 00 62 [22:11:51]RAPDU: 90 00 [22:11:51]wFMCommunicate OK [22:11:51]wFMCommunicate request_size=10 [22:11:51]MH_SAM_APDU [22:11:51]CAPDU: 80 0D 02 02 05 E6 D3 A3 F3 5D [22:11:51]Write to MH i2c: E2 0D 00 E3 0C 80 0D 02 02 05 00 E6 D3 A3 F3 5D 00 00 1F [22:11:51]Write i2c OK [22:11:51]MH_I2C_Read... [22:11:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:11:51]Read from MH i2c: E2 [22:11:51]MH_I2C_Read... [22:11:51]Read from MH i2c: E2 03 00 [22:11:51]MH_I2C_Read... [22:11:51]Read from MH i2c: E2 03 00 E3 0C 00 90 00 63 [22:11:51]RAPDU: 90 00 [22:11:51]wFMCommunicate OK [22:11:51]wFMCommunicate request_size=4 [22:11:51]MH_SAM_APDU [22:11:51]CAPDU: 80 0D 03 02 [22:11:51]Write to MH i2c: E2 08 00 E4 0C 80 0D 03 02 00 00 00 00 6B [22:11:51]Write i2c OK [22:11:51]MH_I2C_Read... [22:11:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:11:52]Read from MH i2c: E2 [22:11:52]MH_I2C_Read... [22:11:52]Read from MH i2c: E2 0B 00 [22:11:52]MH_I2C_Read... [22:11:52]Read from MH i2c: E2 0B 00 E4 0C 00 B4 46 C4 EF 7D 29 C2 B0 90 00 31 [22:11:52]RAPDU: B4 46 C4 EF 7D 29 C2 B0 90 00 [22:11:52]wFMCommunicate OK [22:11:52]SAM_PROTO_SignData done [22:11:52]FM_MakeSignedData done [22:11:52]CreateOFDProtocolMessage [22:11:52]wFMCommunicate request_size=4 [22:11:52]MH_SAM_APDU [22:11:52]CAPDU: 80 11 00 00 [22:11:52]Write to MH i2c: E2 08 00 E5 0C 80 11 00 00 00 00 00 00 6B [22:11:52]Write i2c OK [22:11:52]MH_I2C_Read... [22:11:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:11:52]Read from MH i2c: E2 [22:11:52]MH_I2C_Read... [22:11:52]Read from MH i2c: E2 17 00 [22:11:52]MH_I2C_Read... [22:11:52]Read from MH i2c: E2 17 00 E5 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C1 [22:11:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:11:52]wFMCommunicate OK [22:11:52]CreateOFDProtocolMessage done [22:11:52]OFDSenderStorePacket 165103 [22:11:52]StoreOFDPacket docnum=165103 [22:11:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 42 E7 07 01 0E 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 2D 01 00 00 F4 03 04 00 28 4D 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EF 84 02 00 35 04 06 00 E6 E6 D3 A3 F3 5D B4 46 C4 EF 7D 29 C2 B0 [22:11:52]CheckFolder [22:11:52]dirname=/storage/ofd_packets [22:11:52]CheckFolder done [22:11:52]ProducePacketName [22:11:52]name=ofd_packets/00165103 [22:11:52]NVStorageSaveData ofd_packets/00165103 [22:11:52]File name is /storage/ofd_packets/00165103 [22:11:52]Write 301 bytes [22:11:52]NVStorageSaveData done [22:11:52]OFDSenderStorePacket done [22:11:52]KKMCreateOFDPacket done [22:11:52]NVStorageSaveData kkm_last_timestamp [22:11:52]File name is /storage/kkm_last_timestamp [22:11:52]Write 4 bytes [22:11:52]NVStorageSaveData done [22:11:52]ExternCall_PrintAddStr [22:11:52]wPrintStart [22:11:52]Write to MH i2c: 01 00 00 E6 0C F2 [22:11:52]Write i2c OK [22:11:52]MH_I2C_Read... [22:11:52]Read from MH i2c: 01 [22:11:52]MH_I2C_Read... [22:11:52]Read from MH i2c: 01 07 00 [22:11:52]MH_I2C_Read... [22:11:52]Read from MH i2c: 01 07 00 E6 0C 00 00 00 00 00 FF 0F 07 [22:11:52]RasterBufferAndPrint [22:11:52]line Счет N : (1)459206 [22:11:52]line ИНН: 02508201610067 [22:11:52]line Контрольно-Кассовый Чек [22:11:52]line ПРОДАЖА [22:11:52]line ТРК (МРК, ГНК) : 12 [22:11:52]line Товар: 2710124130 [22:11:52]line Аи-92-К-5 [22:11:52]line 10.640 * 65.80 [22:11:52]line = 700.11 [22:11:52]line НДС 12% НСП 1% [22:11:52]line > о реализуемом товаре [22:11:52]line ОКРУГЛЕНИЕ: -0.11 [22:11:52]line ИТОГО: 700.00 [22:11:52]line Внесено: 700.00 [22:11:52]line СДАЧА: 0.00 [22:11:52]line НСП 1% : 6.20 [22:11:52]line НДС 12% : 74.35 [22:11:52]line Наличными: 700.00 [22:11:52]line Безнал.: 0.00 [22:11:52]line Место: АЗС № 72 "Партнер Нефть" [22:11:52]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [22:11:52]line СНО: Общий режим [22:11:52]line Чек 301 14.07.2024 22:11 [22:11:52]line Смена: 447 ФФД: 1.0 [22:11:52]line ЗНМ: 0300000160 [22:11:52]line РНМ: 0000000000090829 [22:11:52]line Версия ККМ: 001 [22:11:52]line ФМ: 0000000000874718 [22:11:52]line ФД: 165103 [22:11:52]line ФПД: 253879067603805 [22:11:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T221152&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165103&fm=253879067603805&tin=02508201610067®Number=0000000000090829&sum=70000 [22:11:52]OFD Sender: Processing packet 165103 [packets to send 106, broken 105] [22:11:52]ProducePacketName [22:11:52]name=ofd_packets/00165103 [22:11:52]OFD Sender: To server: pG, [22:11:52]CommunicateWithHost lk.salyk.kg:30040 [22:11:52]ConnectInit lk.salyk.kg [22:11:52]written 0, free lines is 4095 [22:11:52]Connected sock=10 [22:11:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 42 E7 07 01 0E 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 2D 01 00 00 F4 03 04 00 28 4D 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EF 84 02 00 35 04 06 00 E6 E6 D3 A3 F3 5D B4 46 C4 EF 7D 29 C2 B0 [22:11:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 2F 5D 47 00 20 C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EF 84 02 00 F4 03 04 00 B4 F3 93 66 B6 04 01 00 00 99 CE E0 72 AA D5 5A 37 [22:11:52]CommunicateWithHost err = 0 [22:11:52]CheckOFDResponse [22:11:52]1017 (14) - 77093643461234 [22:11:52]1041 (16) - 0000000000874718 [22:11:52]1040 (4) - 165103 [22:11:52]1012 (4) - 14.07.2024 15:50 [22:11:52]1206 (1) - 0 [22:11:52]OFD Sender: Remove packet 165103 [22:11:52]ProducePacketName [22:11:52]name=ofd_packets/00165103 [22:11:52]NVStorageDeleteData [22:11:52]Write to MH i2c: 01 00 00 10 0D 1D [22:11:52]Write i2c OK [22:11:52]MH_I2C_Read... [22:11:52]Read from MH i2c: 01 [22:11:52]MH_I2C_Read... [22:11:52]Read from MH i2c: 01 07 00 [22:11:52]MH_I2C_Read... [22:11:52]Read from MH i2c: 01 07 00 10 0D 00 00 00 00 00 F6 0C 26 [22:11:52]RasterBufferAndPrint [22:11:52]line [22:11:52]line [22:11:52]line [22:11:52]line [22:11:52]line [22:11:52]written 0, free lines is 3325 [22:11:52]MH_Cut [22:11:52]Write to MH i2c: D1 01 00 17 0D 01 F6 [22:11:52]Write i2c OK [22:11:52]MH_I2C_Read... [22:11:52]Read from MH i2c: D1 [22:11:52]MH_I2C_Read... [22:11:52]Read from MH i2c: D1 01 00 [22:11:52]MH_I2C_Read... [22:11:52]Read from MH i2c: D1 01 00 17 0D 00 F5 [22:11:52]Write to MH i2c: 01 00 00 18 0D 25 [22:11:52]Write i2c OK [22:11:52]MH_I2C_Read... [22:11:53]OFD Sender: No OFD packet to send [22:11:53]*** Cut start [22:11:53]*** Partial cut [22:11:53]*** CUTSNS_PIN = 1 [22:11:53]*** CUTSNS_PIN = 0 [22:11:53]*** Brake cut motor [22:11:54]Read from MH i2c: 01 [22:11:54]MH_I2C_Read... [22:11:54]*** Stop cut motor [22:11:54]*** Cut end [22:11:54]Read from MH i2c: 01 07 00 [22:11:54]MH_I2C_Read... [22:11:54]Read from MH i2c: 01 07 00 18 0D 00 00 00 00 00 FF 0F 3A [22:11:54]process_action close_receipt done [22:11:54]requested_data is exist [22:11:54]produce_requested_data [22:11:54]requested_item fm.sn is exist - process it [22:11:54]wFMCommunicate request_size=4 [22:11:54]MH_SAM_APDU [22:11:54]CAPDU: 80 11 00 00 [22:11:54]Write to MH i2c: E2 08 00 19 0D 80 11 00 00 00 00 00 00 A0 [22:11:54]Write i2c OK [22:11:54]MH_I2C_Read... [22:11:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:11:54]Read from MH i2c: E2 [22:11:54]MH_I2C_Read... [22:11:54]Read from MH i2c: E2 17 00 [22:11:54]MH_I2C_Read... [22:11:54]Read from MH i2c: E2 17 00 19 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F6 [22:11:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:11:54]wFMCommunicate OK [22:11:54]requested_item fd.num is exist - process it [22:11:54]SAM_PROTO_GetFieldsCounters [22:11:54]wFMCommunicate request_size=4 [22:11:54]MH_SAM_APDU [22:11:54]CAPDU: 80 13 00 00 [22:11:54]Write to MH i2c: E2 08 00 1A 0D 80 13 00 00 00 00 00 00 A3 [22:11:54]Write i2c OK [22:11:54]MH_I2C_Read... [22:11:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:11:54]Read from MH i2c: E2 [22:11:54]MH_I2C_Read... [22:11:54]Read from MH i2c: E2 62 00 [22:11:54]MH_I2C_Read... [22:11:54]Read from MH i2c: E2 62 00 1A 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 EF 84 02 00 0E 04 04 00 BF 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 89 [22:11:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 EF 84 02 00 0E 04 04 00 BF 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 [22:11:54]wFMCommunicate OK [22:11:54]SAM_PROTO_GetFieldsCounters done [22:11:54]requested_item shift.num is exist - process it [22:11:54]requested_item shift.opened is exist - process it [22:11:54]req_shift_opened [22:11:54]FM_GetShiftState [22:11:54]SAM_PROTO_GetShiftState [22:11:54]wFMCommunicate request_size=4 [22:11:54]MH_SAM_APDU [22:11:54]CAPDU: 80 13 01 00 [22:11:54]Write to MH i2c: E2 08 00 1B 0D 80 13 01 00 00 00 00 00 A5 [22:11:54]Write i2c OK [22:11:54]MH_I2C_Read... [22:11:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:11:54]Read from MH i2c: E2 [22:11:54]MH_I2C_Read... [22:11:54]Read from MH i2c: E2 0E 00 [22:11:54]MH_I2C_Read... [22:11:54]Read from MH i2c: E2 0E 00 1B 0D 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 25 [22:11:54]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [22:11:54]wFMCommunicate OK [22:11:54]SAM_PROTO_GetShiftState done [22:11:54]FM_GetShiftState done [22:11:54]req_shift_opened done [22:11:54]requested_item shift.open_date is exist - process it [22:11:54]req_shift_open_date [22:11:54]req_shift_open_date done [22:11:54]produce_requested_data done [22:11:54]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165103,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [22:11:54]process_action_free close_receipt [22:11:54]json_value_free [22:11:54]json_value_free done [22:11:54]process_json_proto returns [22:11:54]Send response to host [22:11:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165103,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [22:11:54]free response buf [22:11:54]execute_script done [22:11:54]execute_script returns [22:11:54]free content buf [22:11:54]Sock 9.Close socket [22:11:54]Sock 9.Thread stoped [22:11:58]OFD Sender: No OFD packet to send [22:12:03]OFD Sender: No OFD packet to send [22:12:08]OFD Sender: No OFD packet to send [22:12:13]OFD Sender: No OFD packet to send [22:12:18]OFD Sender: No OFD packet to send [22:12:23]OFD Sender: No OFD packet to send [22:12:28]OFD Sender: No OFD packet to send [22:12:33]OFD Sender: No OFD packet to send [22:12:38]OFD Sender: No OFD packet to send [22:12:43]OFD Sender: No OFD packet to send [22:12:48]OFD Sender: No OFD packet to send [22:12:53]OFD Sender: No OFD packet to send [22:12:58]OFD Sender: No OFD packet to send [22:13:03]OFD Sender: No OFD packet to send [22:13:08]OFD Sender: No OFD packet to send [22:13:11]accept exits with 7 [22:13:11]New connection [22:13:11]New thread 3066785124 created [22:13:11]Thread 3066928484 joined [22:13:11]Waiting for new connection... [22:13:11] Sock 7.Parse request [22:13:11]Sock 7.Check first char [22:13:11]Sock 7.First char is OK [22:13:11]request: POST /json_proto HTTP/1.0 [22:13:11]Method: POST [22:13:11]URL: /json_proto [22:13:11]Method is POST - this is cgi request [22:13:11]url: /json_proto [22:13:11]query_string will be loaded in cgi processing [22:13:11]execute_cgi json_proto POST (null) [22:13:11]execute_cgi path=json_proto method=POST [22:13:11]POST find Content-Length [22:13:11]Host: 172.17.56.4:8080 [22:13:11]Content-Length: 682 [22:13:11]Content-Type: application/json [22:13:11] [22:13:11]POST finish read [22:13:11]Found Content-Length = 682 [22:13:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459207", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:13:11]execute_script... [22:13:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459207", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:13:11]POST & json_proto [22:13:11]process_json_proto [22:13:11]json parsed OK: [22:13:11]protocol is kg_v1.0 [22:13:11]action value=close_receipt [22:13:11]process_action close_receipt [22:13:11]cmd_close_receipt [22:13:11]MH_GetDate [22:13:11]Write to MH i2c: F0 00 00 1C 0D 18 [22:13:11]Write i2c OK [22:13:11]MH_I2C_Read... [22:13:11]Read from MH i2c: F0 [22:13:11]MH_I2C_Read... [22:13:11]Read from MH i2c: F0 09 00 [22:13:11]MH_I2C_Read... [22:13:11]Read from MH i2c: F0 09 00 1C 0D 00 79 4D 94 66 C9 DC B2 64 9C [22:13:11]GetLastDocTimeStamp 1720995112 [22:13:11]current date 1720995193 [22:13:11]FM_GetShiftState [22:13:11]SAM_PROTO_GetShiftState [22:13:11]wFMCommunicate request_size=4 [22:13:11]MH_SAM_APDU [22:13:11]CAPDU: 80 13 01 00 [22:13:11]Write to MH i2c: E2 08 00 1D 0D 80 13 01 00 00 00 00 00 A7 [22:13:11]Write i2c OK [22:13:11]MH_I2C_Read... [22:13:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:13:11]Read from MH i2c: E2 [22:13:11]MH_I2C_Read... [22:13:11]Read from MH i2c: E2 0E 00 [22:13:11]MH_I2C_Read... [22:13:11]Read from MH i2c: E2 0E 00 1D 0D 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 27 [22:13:11]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [22:13:11]wFMCommunicate OK [22:13:11]SAM_PROTO_GetShiftState done [22:13:11]FM_GetShiftState done [22:13:11]opened in 1720917342 [22:13:11]opened+sec_in_day 1721003742 [22:13:11]quantity*price = 100016 [22:13:11]sum+1 = 100017 [22:13:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 302 14.07.2024 22:13 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165104 ФПД: 195160361950764 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T221313&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165104&fm=195160361950764&tin=02508201610067®Number=0000000000090829&sum=100000 [22:13:12]StoreToDocumentArchive [22:13:12]shift 447 fd 165104 [22:13:12]save to /storage/0447/doc_00165104 [22:13:12]save last doc name /storage/0447/doc_00165104 to /storage/kkm_last_doc_name [22:13:12]save OK [22:13:12]Clear old archive folders... [22:13:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:13:12]tlvbuf is 01351C80 [22:13:12]SAM_PROTO_ClearQueue [22:13:12]wFMCommunicate request_size=4 [22:13:12]MH_SAM_APDU [22:13:12]CAPDU: 80 09 00 00 [22:13:12]Write to MH i2c: E2 08 00 2A 0D 80 09 00 00 00 00 00 00 A9 [22:13:12]Write i2c OK [22:13:12]MH_I2C_Read... [22:13:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:13:12]Read from MH i2c: E2 [22:13:12]MH_I2C_Read... [22:13:12]Read from MH i2c: E2 03 00 [22:13:12]MH_I2C_Read... [22:13:12]Read from MH i2c: E2 03 00 2A 0D 00 90 00 AB [22:13:12]RAPDU: 90 00 [22:13:12]wFMCommunicate OK [22:13:12]SAM_PROTO_ClearQueue done [22:13:12]KKMCreateOFDPacket [22:13:12]OFDProtocolAddRootSTLVToBuf [22:13:12]FM_MakeSignedData [22:13:12]FM_MakeSignedData [22:13:12]SAM_PROTO_SignData [22:13:12]wFMCommunicate request_size=4 [22:13:12]MH_SAM_APDU [22:13:12]CAPDU: 80 0D 01 02 [22:13:12]Write to MH i2c: E2 08 00 2B 0D 80 0D 01 02 00 00 00 00 B1 [22:13:12]Write i2c OK [22:13:12]MH_I2C_Read... [22:13:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:13:12]Read from MH i2c: E2 [22:13:12]MH_I2C_Read... [22:13:12]Read from MH i2c: E2 03 00 [22:13:12]MH_I2C_Read... [22:13:12]Read from MH i2c: E2 03 00 2B 0D 00 90 00 AC [22:13:12]RAPDU: 90 00 [22:13:12]wFMCommunicate OK [22:13:12]wFMCommunicate request_size=255 [22:13:12]MH_SAM_APDU [22:13:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 79 4D 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F0 84 02 00 35 04 06 00 B1 [22:13:12]Write to MH i2c: E2 02 01 2C 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 79 4D 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F0 84 02 00 35 04 06 00 B1 00 00 A2 [22:13:12]Write i2c OK [22:13:12]MH_I2C_Read... [22:13:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:13:12]Read from MH i2c: E2 [22:13:12]MH_I2C_Read... [22:13:12]Read from MH i2c: E2 03 00 [22:13:12]MH_I2C_Read... [22:13:12]Read from MH i2c: E2 03 00 2C 0D 00 90 00 AD [22:13:12]RAPDU: 90 00 [22:13:12]wFMCommunicate OK [22:13:12]wFMCommunicate request_size=10 [22:13:12]MH_SAM_APDU [22:13:12]CAPDU: 80 0D 02 02 05 7F 50 0C 5E 2C [22:13:12]Write to MH i2c: E2 0D 00 2D 0D 80 0D 02 02 05 00 7F 50 0C 5E 2C 00 00 23 [22:13:12]Write i2c OK [22:13:12]MH_I2C_Read... [22:13:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:13:13]Read from MH i2c: E2 [22:13:13]MH_I2C_Read... [22:13:13]Read from MH i2c: E2 03 00 [22:13:13]MH_I2C_Read... [22:13:13]Read from MH i2c: E2 03 00 2D 0D 00 90 00 AE [22:13:13]RAPDU: 90 00 [22:13:13]wFMCommunicate OK [22:13:13]wFMCommunicate request_size=4 [22:13:13]MH_SAM_APDU [22:13:13]CAPDU: 80 0D 03 02 [22:13:13]Write to MH i2c: E2 08 00 2E 0D 80 0D 03 02 00 00 00 00 B6 [22:13:13]Write i2c OK [22:13:13]MH_I2C_Read... [22:13:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:13:13]Read from MH i2c: E2 [22:13:13]MH_I2C_Read... [22:13:13]Read from MH i2c: E2 0B 00 [22:13:13]MH_I2C_Read... [22:13:13]Read from MH i2c: E2 0B 00 2E 0D 00 EC 38 87 FE 2E 59 90 51 90 00 C8 [22:13:13]RAPDU: EC 38 87 FE 2E 59 90 51 90 00 [22:13:13]wFMCommunicate OK [22:13:13]SAM_PROTO_SignData done [22:13:13]FM_MakeSignedData done [22:13:13]CreateOFDProtocolMessage [22:13:13]wFMCommunicate request_size=4 [22:13:13]MH_SAM_APDU [22:13:13]CAPDU: 80 11 00 00 [22:13:13]Write to MH i2c: E2 08 00 2F 0D 80 11 00 00 00 00 00 00 B6 [22:13:13]Write i2c OK [22:13:13]MH_I2C_Read... [22:13:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:13:13]Read from MH i2c: E2 [22:13:13]MH_I2C_Read... [22:13:13]Read from MH i2c: E2 17 00 [22:13:13]MH_I2C_Read... [22:13:13]Read from MH i2c: E2 17 00 2F 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 0C [22:13:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:13:13]wFMCommunicate OK [22:13:13]CreateOFDProtocolMessage done [22:13:13]OFDSenderStorePacket 165104 [22:13:13]StoreOFDPacket docnum=165104 [22:13:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 F2 AD 07 01 CB 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 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 79 4D 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F0 84 02 00 35 04 06 00 B1 7F 50 0C 5E 2C EC 38 87 FE 2E 59 90 51 [22:13:13]CheckFolder [22:13:13]dirname=/storage/ofd_packets [22:13:13]CheckFolder done [22:13:13]ProducePacketName [22:13:13]name=ofd_packets/00165104 [22:13:13]NVStorageSaveData ofd_packets/00165104 [22:13:13]File name is /storage/ofd_packets/00165104 [22:13:13]Write 301 bytes [22:13:13]NVStorageSaveData done [22:13:13]OFDSenderStorePacket done [22:13:13]KKMCreateOFDPacket done [22:13:13]NVStorageSaveData kkm_last_timestamp [22:13:13]File name is /storage/kkm_last_timestamp [22:13:13]Write 4 bytes [22:13:13]NVStorageSaveData done [22:13:13]ExternCall_PrintAddStr [22:13:13]wPrintStart [22:13:13]Write to MH i2c: 01 00 00 30 0D 3D [22:13:13]Write i2c OK [22:13:13]MH_I2C_Read... [22:13:13]Read from MH i2c: 01 [22:13:13]MH_I2C_Read... [22:13:13]Read from MH i2c: 01 07 00 [22:13:13]MH_I2C_Read... [22:13:13]Read from MH i2c: 01 07 00 30 0D 00 00 00 00 00 FF 0F 52 [22:13:13]RasterBufferAndPrint [22:13:13]line Счет N : (1)459207 [22:13:13]line ИНН: 02508201610067 [22:13:13]line Контрольно-Кассовый Чек [22:13:13]line ПРОДАЖА [22:13:13]line ТРК (МРК, ГНК) : 22 [22:13:13]line Товар: 2710124130 [22:13:13]line Аи-92-К-5 [22:13:13]line 15.200 * 65.80 [22:13:13]line = 1000.16 [22:13:13]line НДС 12% НСП 1% [22:13:13]line > о реализуемом товаре [22:13:13]line ОКРУГЛЕНИЕ: -0.16 [22:13:13]line ИТОГО: 1000.00 [22:13:13]line Внесено: 1000.00 [22:13:13]line СДАЧА: 0.00 [22:13:13]line НСП 1% : 8.85 [22:13:13]line НДС 12% : 106.21 [22:13:13]line Наличными: 1000.00 [22:13:13]line Безнал.: 0.00 [22:13:13]line Место: АЗС № 72 "Партнер Нефть" [22:13:13]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [22:13:13]line СНО: Общий режим [22:13:13]line Чек 302 14.07.2024 22:13 [22:13:13]line Смена: 447 ФФД: 1.0 [22:13:13]line ЗНМ: 0300000160 [22:13:13]line РНМ: 0000000000090829 [22:13:13]line Версия ККМ: 001 [22:13:13]line ФМ: 0000000000874718 [22:13:13]line ФД: 165104 [22:13:13]line ФПД: 195160361950764 [22:13:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T221313&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165104&fm=195160361950764&tin=02508201610067®Number=0000000000090829&sum=100000 [22:13:13]OFD Sender: Processing packet 165104 [packets to send 106, broken 105] [22:13:13]ProducePacketName [22:13:13]name=ofd_packets/00165104 [22:13:13]OFD Sender: To server: pG, [22:13:13]CommunicateWithHost lk.salyk.kg:30040 [22:13:13]ConnectInit lk.salyk.kg [22:13:13]written 0, free lines is 4095 [22:13:13]Connected sock=10 [22:13:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 F2 AD 07 01 CB 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 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 79 4D 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F0 84 02 00 35 04 06 00 B1 7F 50 0C 5E 2C EC 38 87 FE 2E 59 90 51 [22:13:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 73 85 47 00 F7 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 38 37 34 37 31 38 10 04 04 00 F0 84 02 00 F4 03 04 00 05 F4 93 66 B6 04 01 00 00 1C 59 52 D9 EB AA BD 26 [22:13:13]CommunicateWithHost err = 0 [22:13:13]CheckOFDResponse [22:13:13]1017 (14) - 77093643461234 [22:13:13]1041 (16) - 0000000000874718 [22:13:13]1040 (4) - 165104 [22:13:13]1012 (4) - 14.07.2024 15:51 [22:13:13]1206 (1) - 0 [22:13:13]OFD Sender: Remove packet 165104 [22:13:13]ProducePacketName [22:13:13]name=ofd_packets/00165104 [22:13:13]NVStorageDeleteData [22:13:13]Write to MH i2c: 01 00 00 5A 0D 67 [22:13:13]Write i2c OK [22:13:13]MH_I2C_Read... [22:13:13]Read from MH i2c: 01 [22:13:13]MH_I2C_Read... [22:13:13]Read from MH i2c: 01 07 00 [22:13:13]MH_I2C_Read... [22:13:13]Read from MH i2c: 01 07 00 5A 0D 00 00 00 00 00 0A 0D 85 [22:13:13]RasterBufferAndPrint [22:13:13]line [22:13:13]line [22:13:13]line [22:13:13]line [22:13:13]line [22:13:13]written 0, free lines is 3344 [22:13:13]MH_Cut [22:13:13]Write to MH i2c: D1 01 00 61 0D 01 40 [22:13:13]Write i2c OK [22:13:13]MH_I2C_Read... [22:13:13]Read from MH i2c: D1 [22:13:13]MH_I2C_Read... [22:13:13]Read from MH i2c: D1 01 00 [22:13:13]MH_I2C_Read... [22:13:13]Read from MH i2c: D1 01 00 61 0D 00 3F [22:13:13]Write to MH i2c: 01 00 00 62 0D 6F [22:13:13]Write i2c OK [22:13:13]MH_I2C_Read... [22:13:14]OFD Sender: No OFD packet to send [22:13:14]*** Cut start [22:13:14]*** Partial cut [22:13:14]*** CUTSNS_PIN = 1 [22:13:14]*** CUTSNS_PIN = 0 [22:13:14]*** Brake cut motor [22:13:15]Read from MH i2c: 01 [22:13:15]MH_I2C_Read... [22:13:15]*** Stop cut motor [22:13:15]*** Cut end [22:13:15]Read from MH i2c: 01 07 00 [22:13:15]MH_I2C_Read... [22:13:15]Read from MH i2c: 01 07 00 62 0D 00 00 00 00 00 FF 0F 84 [22:13:15]process_action close_receipt done [22:13:15]requested_data is exist [22:13:15]produce_requested_data [22:13:15]requested_item fm.sn is exist - process it [22:13:15]wFMCommunicate request_size=4 [22:13:15]MH_SAM_APDU [22:13:15]CAPDU: 80 11 00 00 [22:13:15]Write to MH i2c: E2 08 00 63 0D 80 11 00 00 00 00 00 00 EA [22:13:15]Write i2c OK [22:13:15]MH_I2C_Read... [22:13:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:13:15]Read from MH i2c: E2 [22:13:15]MH_I2C_Read... [22:13:15]Read from MH i2c: E2 17 00 [22:13:15]MH_I2C_Read... [22:13:15]Read from MH i2c: E2 17 00 63 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 40 [22:13:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:13:15]wFMCommunicate OK [22:13:15]requested_item fd.num is exist - process it [22:13:15]SAM_PROTO_GetFieldsCounters [22:13:15]wFMCommunicate request_size=4 [22:13:15]MH_SAM_APDU [22:13:15]CAPDU: 80 13 00 00 [22:13:15]Write to MH i2c: E2 08 00 64 0D 80 13 00 00 00 00 00 00 ED [22:13:15]Write i2c OK [22:13:15]MH_I2C_Read... [22:13:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:13:15]Read from MH i2c: E2 [22:13:15]MH_I2C_Read... [22:13:15]Read from MH i2c: E2 62 00 [22:13:15]MH_I2C_Read... [22:13:15]Read from MH i2c: E2 62 00 64 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F0 84 02 00 0E 04 04 00 BF 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 D7 [22:13:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F0 84 02 00 0E 04 04 00 BF 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 [22:13:15]wFMCommunicate OK [22:13:15]SAM_PROTO_GetFieldsCounters done [22:13:15]requested_item shift.num is exist - process it [22:13:15]requested_item shift.opened is exist - process it [22:13:15]req_shift_opened [22:13:15]FM_GetShiftState [22:13:15]SAM_PROTO_GetShiftState [22:13:15]wFMCommunicate request_size=4 [22:13:15]MH_SAM_APDU [22:13:15]CAPDU: 80 13 01 00 [22:13:15]Write to MH i2c: E2 08 00 65 0D 80 13 01 00 00 00 00 00 EF [22:13:15]Write i2c OK [22:13:15]MH_I2C_Read... [22:13:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:13:15]Read from MH i2c: E2 [22:13:15]MH_I2C_Read... [22:13:15]Read from MH i2c: E2 0E 00 [22:13:15]MH_I2C_Read... [22:13:15]Read from MH i2c: E2 0E 00 65 0D 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 6F [22:13:15]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [22:13:15]wFMCommunicate OK [22:13:15]SAM_PROTO_GetShiftState done [22:13:15]FM_GetShiftState done [22:13:15]req_shift_opened done [22:13:15]requested_item shift.open_date is exist - process it [22:13:15]req_shift_open_date [22:13:15]req_shift_open_date done [22:13:15]produce_requested_data done [22:13:15]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165104,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [22:13:15]process_action_free close_receipt [22:13:15]json_value_free [22:13:15]json_value_free done [22:13:15]process_json_proto returns [22:13:15]Send response to host [22:13:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165104,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [22:13:15]free response buf [22:13:15]execute_script done [22:13:15]execute_script returns [22:13:15]free content buf [22:13:15]Sock 7.Close socket [22:13:15]Sock 7.Thread stoped [22:13:19]OFD Sender: No OFD packet to send [22:13:24]OFD Sender: No OFD packet to send [22:13:29]OFD Sender: No OFD packet to send [22:13:34]OFD Sender: No OFD packet to send [22:13:39]OFD Sender: No OFD packet to send [22:13:44]OFD Sender: No OFD packet to send [22:13:49]OFD Sender: No OFD packet to send [22:13:54]OFD Sender: No OFD packet to send [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]accept exits with 9 [22:16:14]New connection [22:16:14]New thread 3066928484 created [22:16:14]Thread 3066785124 joined [22:16:14]Waiting for new connection... [22:16:14] Sock 9.Parse request [22:16:14]Sock 9.Check first char [22:16:14]Sock 9.First char is OK [22:16:14]request: POST /json_proto HTTP/1.0 [22:16:14]Method: POST [22:16:14]URL: /json_proto [22:16:14]Method is POST - this is cgi request [22:16:14]url: /json_proto [22:16:14]query_string will be loaded in cgi processing [22:16:14]execute_cgi json_proto POST (null) [22:16:14]execute_cgi path=json_proto method=POST [22:16:14]POST find Content-Length [22:16:14]Host: 172.17.56.4:8080 [22:16:14]Content-Length: 677 [22:16:14]Content-Type: application/json [22:16:14] [22:16:14]POST finish read [22:16:14]Found Content-Length = 677 [22:16:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459208", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:16:14]execute_script... [22:16: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)459208", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:16:14]POST & json_proto [22:16:14]process_json_proto [22:16:14]json parsed OK: [22:16:14]protocol is kg_v1.0 [22:16:14]action value=close_receipt [22:16:14]process_action close_receipt [22:16:14]cmd_close_receipt [22:16:14]MH_GetDate [22:16:14]Write to MH i2c: F0 00 00 66 0D 62 [22:16:14]Write i2c OK [22:16:14]MH_I2C_Read... [22:16:14]Read from MH i2c: F0 [22:16:14]MH_I2C_Read... [22:16:14]Read from MH i2c: F0 09 00 [22:16:14]MH_I2C_Read... [22:16:14]Read from MH i2c: F0 09 00 66 0D 00 30 4E 94 66 C9 DC B2 64 9E [22:16:14]GetLastDocTimeStamp 1720995193 [22:16:14]current date 1720995376 [22:16:14]FM_GetShiftState [22:16:14]SAM_PROTO_GetShiftState [22:16:14]wFMCommunicate request_size=4 [22:16:14]MH_SAM_APDU [22:16:14]CAPDU: 80 13 01 00 [22:16:14]Write to MH i2c: E2 08 00 67 0D 80 13 01 00 00 00 00 00 F1 [22:16:14]Write i2c OK [22:16:14]MH_I2C_Read... [22:16:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:16:14]Read from MH i2c: E2 [22:16:14]MH_I2C_Read... [22:16:14]Read from MH i2c: E2 0E 00 [22:16:14]MH_I2C_Read... [22:16:14]Read from MH i2c: E2 0E 00 67 0D 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 71 [22:16:14]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [22:16:14]wFMCommunicate OK [22:16:14]SAM_PROTO_GetShiftState done [22:16:14]FM_GetShiftState done [22:16:14]opened in 1720917342 [22:16:14]opened+sec_in_day 1721003742 [22:16:14]quantity*price = 30004 [22:16:14]sum+1 = 30006 [22:16:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 303 14.07.2024 22:16 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165105 ФПД: 106586831242888 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T221616&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165105&fm=106586831242888&tin=02508201610067®Number=0000000000090829&sum=30000 [22:16:15]StoreToDocumentArchive [22:16:15]shift 447 fd 165105 [22:16:15]save to /storage/0447/doc_00165105 [22:16:15]save last doc name /storage/0447/doc_00165105 to /storage/kkm_last_doc_name [22:16:15]save OK [22:16:15]Clear old archive folders... [22:16:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:16:15]tlvbuf is 01373C90 [22:16:15]SAM_PROTO_ClearQueue [22:16:15]wFMCommunicate request_size=4 [22:16:15]MH_SAM_APDU [22:16:15]CAPDU: 80 09 00 00 [22:16:15]Write to MH i2c: E2 08 00 74 0D 80 09 00 00 00 00 00 00 F3 [22:16:15]Write i2c OK [22:16:15]MH_I2C_Read... [22:16:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:16:15]Read from MH i2c: E2 [22:16:15]MH_I2C_Read... [22:16:15]Read from MH i2c: E2 03 00 [22:16:15]MH_I2C_Read... [22:16:15]Read from MH i2c: E2 03 00 74 0D 00 90 00 F5 [22:16:15]RAPDU: 90 00 [22:16:15]wFMCommunicate OK [22:16:15]SAM_PROTO_ClearQueue done [22:16:15]KKMCreateOFDPacket [22:16:15]OFDProtocolAddRootSTLVToBuf [22:16:15]FM_MakeSignedData [22:16:15]FM_MakeSignedData [22:16:15]SAM_PROTO_SignData [22:16:15]wFMCommunicate request_size=4 [22:16:15]MH_SAM_APDU [22:16:15]CAPDU: 80 0D 01 02 [22:16:15]Write to MH i2c: E2 08 00 75 0D 80 0D 01 02 00 00 00 00 FB [22:16:15]Write i2c OK [22:16:15]MH_I2C_Read... [22:16:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:16:15]Read from MH i2c: E2 [22:16:15]MH_I2C_Read... [22:16:15]Read from MH i2c: E2 03 00 [22:16:15]MH_I2C_Read... [22:16:15]Read from MH i2c: E2 03 00 75 0D 00 90 00 F6 [22:16:15]RAPDU: 90 00 [22:16:15]wFMCommunicate OK [22:16:15]wFMCommunicate request_size=255 [22:16:15]MH_SAM_APDU [22:16:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 30 4E 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F1 84 02 00 35 04 06 00 60 [22:16:15]Write to MH i2c: E2 02 01 76 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 30 4E 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F1 84 02 00 35 04 06 00 60 00 00 74 [22:16:15]Write i2c OK [22:16:15]MH_I2C_Read... [22:16:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:16:15]Read from MH i2c: E2 [22:16:15]MH_I2C_Read... [22:16:15]Read from MH i2c: E2 03 00 [22:16:15]MH_I2C_Read... [22:16:15]Read from MH i2c: E2 03 00 76 0D 00 90 00 F7 [22:16:15]RAPDU: 90 00 [22:16:15]wFMCommunicate OK [22:16:15]wFMCommunicate request_size=10 [22:16:15]MH_SAM_APDU [22:16:15]CAPDU: 80 0D 02 02 05 F0 AE 36 C6 88 [22:16:15]Write to MH i2c: E2 0D 00 77 0D 80 0D 02 02 05 00 F0 AE 36 C6 88 00 00 2A [22:16:15]Write i2c OK [22:16:15]MH_I2C_Read... [22:16:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:16:15]Read from MH i2c: E2 [22:16:15]MH_I2C_Read... [22:16:15]Read from MH i2c: E2 03 00 [22:16:15]MH_I2C_Read... [22:16:15]Read from MH i2c: E2 03 00 77 0D 00 90 00 F8 [22:16:15]RAPDU: 90 00 [22:16:15]wFMCommunicate OK [22:16:15]wFMCommunicate request_size=4 [22:16:15]MH_SAM_APDU [22:16:15]CAPDU: 80 0D 03 02 [22:16:15]Write to MH i2c: E2 08 00 78 0D 80 0D 03 02 00 00 00 00 00 [22:16:15]Write i2c OK [22:16:15]MH_I2C_Read... [22:16:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:16:15]Read from MH i2c: E2 [22:16:15]MH_I2C_Read... [22:16:15]Read from MH i2c: E2 0B 00 [22:16:15]MH_I2C_Read... [22:16:15]Read from MH i2c: E2 0B 00 78 0D 00 3C AC 9C 19 B4 DA E3 E1 90 00 F0 [22:16:15]RAPDU: 3C AC 9C 19 B4 DA E3 E1 90 00 [22:16:15]wFMCommunicate OK [22:16:15]SAM_PROTO_SignData done [22:16:15]FM_MakeSignedData done [22:16:15]CreateOFDProtocolMessage [22:16:15]wFMCommunicate request_size=4 [22:16:15]MH_SAM_APDU [22:16:15]CAPDU: 80 11 00 00 [22:16:15]Write to MH i2c: E2 08 00 79 0D 80 11 00 00 00 00 00 00 00 [22:16:15]Write i2c OK [22:16:15]MH_I2C_Read... [22:16:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:16:16]Read from MH i2c: E2 [22:16:16]MH_I2C_Read... [22:16:16]Read from MH i2c: E2 17 00 [22:16:16]MH_I2C_Read... [22:16:16]Read from MH i2c: E2 17 00 79 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 56 [22:16:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:16:16]wFMCommunicate OK [22:16:16]CreateOFDProtocolMessage done [22:16:16]OFDSenderStorePacket 165105 [22:16:16]StoreOFDPacket docnum=165105 [22:16:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 7B AF 07 01 27 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 30 4E 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F1 84 02 00 35 04 06 00 60 F0 AE 36 C6 88 3C AC 9C 19 B4 DA E3 E1 [22:16:16]CheckFolder [22:16:16]dirname=/storage/ofd_packets [22:16:16]CheckFolder done [22:16:16]ProducePacketName [22:16:16]name=ofd_packets/00165105 [22:16:16]NVStorageSaveData ofd_packets/00165105 [22:16:16]File name is /storage/ofd_packets/00165105 [22:16:16]Write 301 bytes [22:16:16]NVStorageSaveData done [22:16:16]OFDSenderStorePacket done [22:16:16]KKMCreateOFDPacket done [22:16:16]NVStorageSaveData kkm_last_timestamp [22:16:16]File name is /storage/kkm_last_timestamp [22:16:16]Write 4 bytes [22:16:16]NVStorageSaveData done [22:16:16]ExternCall_PrintAddStr [22:16:16]wPrintStart [22:16:16]Write to MH i2c: 01 00 00 7A 0D 87 [22:16:16]OFD Sender: Processing packet 165105 [packets to send 106, broken 105] [22:16:16]ProducePacketName [22:16:16]name=ofd_packets/00165105 [22:16:16]OFD Sender: To server: pG, [22:16:16]CommunicateWithHost lk.salyk.kg:30040 [22:16:16]ConnectInit lk.salyk.kg [22:16:16]Write i2c OK [22:16:16]MH_I2C_Read... [22:16:16]Read from MH i2c: 01 [22:16:16]MH_I2C_Read... [22:16:16]Read from MH i2c: 01 07 00 [22:16:16]MH_I2C_Read... [22:16:16]Read from MH i2c: 01 07 00 7A 0D 00 00 00 00 00 FF 0F 9C [22:16:16]RasterBufferAndPrint [22:16:16]line Счет N : (1)459208 [22:16:16]line ИНН: 02508201610067 [22:16:16]line Контрольно-Кассовый Чек [22:16:16]line ПРОДАЖА [22:16:16]line ТРК (МРК, ГНК) : 12 [22:16:16]line Товар: 2710124130 [22:16:16]line Аи-92-К-5 [22:16:16]line 4.560 * 65.80 [22:16:16]line = 300.05 [22:16:16]line НДС 12% НСП 1% [22:16:16]line > о реализуемом товаре [22:16:16]line ОКРУГЛЕНИЕ: -0.05 [22:16:16]line ИТОГО: 300.00 [22:16:16]line Внесено: 300.00 [22:16:16]line СДАЧА: 0.00 [22:16:16]line НСП 1% : 2.65 [22:16:16]line НДС 12% : 31.86 [22:16:16]line Наличными: 300.00 [22:16:16]line Безнал.: 0.00 [22:16:16]line Место: АЗС № 72 "Партнер Нефть" [22:16:16]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [22:16:16]line СНО: Общий режим [22:16:16]line Чек 303 14.07.2024 22:16 [22:16:16]line Смена: 447 ФФД: 1.0 [22:16:16]line ЗНМ: 0300000160 [22:16:16]line РНМ: 0000000000090829 [22:16:16]line Версия ККМ: 001 [22:16:16]line ФМ: 0000000000874718 [22:16:16]line ФД: 165105 [22:16:16]line ФПД: 106586831242888 [22:16:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T221616&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165105&fm=106586831242888&tin=02508201610067®Number=0000000000090829&sum=30000 [22:16:16]written 0, free lines is 4095 [22:16:16]Connected sock=10 [22:16:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 7B AF 07 01 27 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 30 4E 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F1 84 02 00 35 04 06 00 60 F0 AE 36 C6 88 3C AC 9C 19 B4 DA E3 E1 [22:16:16]Write to MH i2c: 01 00 00 A4 0D B1 [22:16:16]Write i2c OK [22:16:16]MH_I2C_Read... [22:16:16]Read from MH i2c: 01 [22:16:16]MH_I2C_Read... [22:16:16]Read from MH i2c: 01 07 00 [22:16:16]MH_I2C_Read... [22:16:16]Read from MH i2c: 01 07 00 A4 0D 00 00 00 00 00 03 0D C8 [22:16:16]RasterBufferAndPrint [22:16:16]line [22:16:16]line [22:16:16]line [22:16:16]line [22:16:16]line [22:16:16]written 0, free lines is 3337 [22:16:16]MH_Cut [22:16:16]Write to MH i2c: D1 01 00 AB 0D 01 8A [22:16:16]Write i2c OK [22:16:16]MH_I2C_Read... [22:16:16]Read from MH i2c: D1 [22:16:16]MH_I2C_Read... [22:16:16]Read from MH i2c: D1 01 00 [22:16:16]MH_I2C_Read... [22:16:16]Read from MH i2c: D1 01 00 AB 0D 00 89 [22:16:16]Write to MH i2c: 01 00 00 AC 0D B9 [22:16:16]Write i2c OK [22:16:16]MH_I2C_Read... [22:16:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 B1 B8 47 00 4C 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F1 84 02 00 F4 03 04 00 BC F4 93 66 B6 04 01 00 00 AF 42 98 82 5E B0 08 F0 [22:16:16]CommunicateWithHost err = 0 [22:16:16]CheckOFDResponse [22:16:16]1017 (14) - 77093643461234 [22:16:16]1041 (16) - 0000000000874718 [22:16:16]1040 (4) - 165105 [22:16:16]1012 (4) - 14.07.2024 15:54 [22:16:16]1206 (1) - 0 [22:16:16]OFD Sender: Remove packet 165105 [22:16:16]ProducePacketName [22:16:16]name=ofd_packets/00165105 [22:16:16]NVStorageDeleteData [22:16:17]OFD Sender: No OFD packet to send [22:16:17]*** Cut start [22:16:17]*** Partial cut [22:16:17]*** CUTSNS_PIN = 1 [22:16:17]*** CUTSNS_PIN = 0 [22:16:17]*** Brake cut motor [22:16:17]Read from MH i2c: 01 [22:16:17]MH_I2C_Read... [22:16:17]*** Stop cut motor [22:16:17]*** Cut end [22:16:17]Read from MH i2c: 01 07 00 [22:16:17]MH_I2C_Read... [22:16:17]Read from MH i2c: 01 07 00 AC 0D 00 00 00 00 00 FF 0F CE [22:16:17]process_action close_receipt done [22:16:17]requested_data is exist [22:16:17]produce_requested_data [22:16:17]requested_item fm.sn is exist - process it [22:16:17]wFMCommunicate request_size=4 [22:16:17]MH_SAM_APDU [22:16:17]CAPDU: 80 11 00 00 [22:16:17]Write to MH i2c: E2 08 00 AD 0D 80 11 00 00 00 00 00 00 34 [22:16:17]Write i2c OK [22:16:17]MH_I2C_Read... [22:16:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:16:17]Read from MH i2c: E2 [22:16:17]MH_I2C_Read... [22:16:17]Read from MH i2c: E2 17 00 [22:16:17]MH_I2C_Read... [22:16:17]Read from MH i2c: E2 17 00 AD 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 8A [22:16:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:16:17]wFMCommunicate OK [22:16:17]requested_item fd.num is exist - process it [22:16:17]SAM_PROTO_GetFieldsCounters [22:16:17]wFMCommunicate request_size=4 [22:16:17]MH_SAM_APDU [22:16:17]CAPDU: 80 13 00 00 [22:16:17]Write to MH i2c: E2 08 00 AE 0D 80 13 00 00 00 00 00 00 37 [22:16:17]Write i2c OK [22:16:17]MH_I2C_Read... [22:16:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:16:17]Read from MH i2c: E2 [22:16:17]MH_I2C_Read... [22:16:17]Read from MH i2c: E2 62 00 [22:16:17]MH_I2C_Read... [22:16:17]Read from MH i2c: E2 62 00 AE 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F1 84 02 00 0E 04 04 00 BF 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 25 [22:16:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F1 84 02 00 0E 04 04 00 BF 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 [22:16:17]wFMCommunicate OK [22:16:17]SAM_PROTO_GetFieldsCounters done [22:16:17]requested_item shift.num is exist - process it [22:16:17]requested_item shift.opened is exist - process it [22:16:17]req_shift_opened [22:16:17]FM_GetShiftState [22:16:17]SAM_PROTO_GetShiftState [22:16:17]wFMCommunicate request_size=4 [22:16:17]MH_SAM_APDU [22:16:17]CAPDU: 80 13 01 00 [22:16:17]Write to MH i2c: E2 08 00 AF 0D 80 13 01 00 00 00 00 00 39 [22:16:17]Write i2c OK [22:16:17]MH_I2C_Read... [22:16:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:16:18]Read from MH i2c: E2 [22:16:18]MH_I2C_Read... [22:16:18]Read from MH i2c: E2 0E 00 [22:16:18]MH_I2C_Read... [22:16:18]Read from MH i2c: E2 0E 00 AF 0D 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 B9 [22:16:18]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [22:16:18]wFMCommunicate OK [22:16:18]SAM_PROTO_GetShiftState done [22:16:18]FM_GetShiftState done [22:16:18]req_shift_opened done [22:16:18]requested_item shift.open_date is exist - process it [22:16:18]req_shift_open_date [22:16:18]req_shift_open_date done [22:16:18]produce_requested_data done [22:16:18]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165105,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [22:16:18]process_action_free close_receipt [22:16:18]json_value_free [22:16:18]json_value_free done [22:16:18]process_json_proto returns [22:16:18]Send response to host [22:16:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165105,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [22:16:18]free response buf [22:16:18]execute_script done [22:16:18]execute_script returns [22:16:18]free content buf [22:16:18]Sock 9.Close socket [22:16:18]Sock 9.Thread stoped [22:16:22]OFD Sender: No OFD packet to send [22:16:27]OFD Sender: No OFD packet to send [22:16:32]OFD Sender: No OFD packet to send [22:16:37]OFD Sender: No OFD packet to send [22:16:42]OFD Sender: No OFD packet to send [22:16:47]OFD Sender: No OFD packet to send [22:16:52]OFD Sender: No OFD packet to send [22:16:57]OFD Sender: No OFD packet to send [22:17:02]OFD Sender: No OFD packet to send [22:17:07]OFD Sender: No OFD packet to send [22:17:12]OFD Sender: No OFD packet to send [22:17:17]OFD Sender: No OFD packet to send [22:17:22]OFD Sender: No OFD packet to send [22:17:27]OFD Sender: No OFD packet to send [22:17:32]OFD Sender: No OFD packet to send [22:17:37]OFD Sender: No OFD packet to send [22:17:42]OFD Sender: No OFD packet to send [22:17:47]OFD Sender: No OFD packet to send [22:17:52]OFD Sender: No OFD packet to send [22:17:57]OFD Sender: No OFD packet to send [22:18:02]OFD Sender: No OFD packet to send [22:18:07]OFD Sender: No OFD packet to send [22:18:12]OFD Sender: No OFD packet to send [22:18:17]OFD Sender: No OFD packet to send [22:18:22]OFD Sender: No OFD packet to send [22:18:27]OFD Sender: No OFD packet to send [22:18:32]OFD Sender: No OFD packet to send [22:18:37]OFD Sender: No OFD packet to send [22:18:42]OFD Sender: No OFD packet to send [22:18:47]OFD Sender: No OFD packet to send [22:18:52]OFD Sender: No OFD packet to send [22:18:57]OFD Sender: No OFD packet to send [22:19:02]OFD Sender: No OFD packet to send [22:19:07]OFD Sender: No OFD packet to send [22:19:12]OFD Sender: No OFD packet to send [22:19:17]OFD Sender: No OFD packet to send [22:19:22]OFD Sender: No OFD packet to send [22:19:27]OFD Sender: No OFD packet to send [22:19:32]OFD Sender: No OFD packet to send [22:19:37]OFD Sender: No OFD packet to send [22:19:42]OFD Sender: No OFD packet to send [22:19:47]OFD Sender: No OFD packet to send [22:19:52]OFD Sender: No OFD packet to send [22:19:57]OFD Sender: No OFD packet to send [22:20:02]OFD Sender: No OFD packet to send [22:20:07]OFD Sender: No OFD packet to send [22:20:12]OFD Sender: No OFD packet to send [22:20:17]OFD Sender: No OFD packet to send [22:20:22]OFD Sender: No OFD packet to send [22:20:27]OFD Sender: No OFD packet to send [22:20:32]OFD Sender: No OFD packet to send [22:20:37]OFD Sender: No OFD packet to send [22:20:42]OFD Sender: No OFD packet to send [22:20:47]OFD Sender: No OFD packet to send [22:20:52]OFD Sender: No OFD packet to send [22:20:57]OFD Sender: No OFD packet to send [22:21:02]OFD Sender: No OFD packet to send [22:21:07]OFD Sender: No OFD packet to send [22:21:12]OFD Sender: No OFD packet to send [22:21:17]OFD Sender: No OFD packet to send [22:21:22]OFD Sender: No OFD packet to send [22:21:27]OFD Sender: No OFD packet to send [22:21:32]OFD Sender: No OFD packet to send [22:21:37]OFD Sender: No OFD packet to send [22:21:42]OFD Sender: No OFD packet to send [22:21:47]OFD Sender: No OFD packet to send [22:21:52]OFD Sender: No OFD packet to send [22:21:57]OFD Sender: No OFD packet to send [22:22:02]OFD Sender: No OFD packet to send [22:22:07]OFD Sender: No OFD packet to send [22:22:12]OFD Sender: No OFD packet to send [22:22:17]OFD Sender: No OFD packet to send [22:22:22]OFD Sender: No OFD packet to send [22:22:27]OFD Sender: No OFD packet to send [22:22:32]OFD Sender: No OFD packet to send [22:22:37]OFD Sender: No OFD packet to send [22:22:42]OFD Sender: No OFD packet to send [22:22:47]OFD Sender: No OFD packet to send [22:22:52]OFD Sender: No OFD packet to send [22:22:57]OFD Sender: No OFD packet to send [22:23:02]OFD Sender: No OFD packet to send [22:23:07]OFD Sender: No OFD packet to send [22:23:12]OFD Sender: No OFD packet to send [22:23:17]OFD Sender: No OFD packet to send [22:23:22]OFD Sender: No OFD packet to send [22:23:27]OFD Sender: No OFD packet to send [22:23:32]OFD Sender: No OFD packet to send [22:23:37]OFD Sender: No OFD packet to send [22:23:42]OFD Sender: No OFD packet to send [22:23:47]OFD Sender: No OFD packet to send [22:23:52]OFD Sender: No OFD packet to send [22:23:57]OFD Sender: No OFD packet to send [22:24:02]OFD Sender: No OFD packet to send [22:24:07]OFD Sender: No OFD packet to send [22:24:12]OFD Sender: No OFD packet to send [22:24:17]OFD Sender: No OFD packet to send [22:24:22]OFD Sender: No OFD packet to send [22:24:27]OFD Sender: No OFD packet to send [22:24:32]OFD Sender: No OFD packet to send [22:24:37]OFD Sender: No OFD packet to send [22:24:42]OFD Sender: No OFD packet to send [22:24:47]OFD Sender: No OFD packet to send [22:24:52]OFD Sender: No OFD packet to send [22:24:57]OFD Sender: No OFD packet to send [22:25:02]OFD Sender: No OFD packet to send [22:25:07]OFD Sender: No OFD packet to send [22:25:12]OFD Sender: No OFD packet to send [22:25:17]OFD Sender: No OFD packet to send [22:25:22]OFD Sender: No OFD packet to send [22:25:27]OFD Sender: No OFD packet to send [22:25:32]OFD Sender: No OFD packet to send [22:25:37]OFD Sender: No OFD packet to send [22:25:42]OFD Sender: No OFD packet to send [22:25:47]OFD Sender: No OFD packet to send [22:25:52]OFD Sender: No OFD packet to send [22:25:57]OFD Sender: No OFD packet to send [22:26:02]OFD Sender: No OFD packet to send [22:26:07]OFD Sender: No OFD packet to send [22:26:12]OFD Sender: No OFD packet to send [22:26:17]OFD Sender: No OFD packet to send [22:26:22]OFD Sender: No OFD packet to send [22:26:27]OFD Sender: No OFD packet to send [22:26:32]OFD Sender: No OFD packet to send [22:26:37]OFD Sender: No OFD packet to send [22:26:42]OFD Sender: No OFD packet to send [22:26:47]OFD Sender: No OFD packet to send [22:26:52]OFD Sender: No OFD packet to send [22:26:57]OFD Sender: No OFD packet to send [22:27:02]OFD Sender: No OFD packet to send [22:27:07]OFD Sender: No OFD packet to send [22:27:12]OFD Sender: No OFD packet to send [22:27:17]OFD Sender: No OFD packet to send [22:27:22]OFD Sender: No OFD packet to send [22:27:27]OFD Sender: No OFD packet to send [22:27:32]OFD Sender: No OFD packet to send [22:27:37]OFD Sender: No OFD packet to send [22:27:42]OFD Sender: No OFD packet to send [22:27:47]OFD Sender: No OFD packet to send [22:27:52]OFD Sender: No OFD packet to send [22:27:57]OFD Sender: No OFD packet to send [22:28:02]OFD Sender: No OFD packet to send [22:28:07]OFD Sender: No OFD packet to send [22:28:12]OFD Sender: No OFD packet to send [22:28:17]OFD Sender: No OFD packet to send [22:28:22]OFD Sender: No OFD packet to send [22:28:27]OFD Sender: No OFD packet to send [22:28:32]OFD Sender: No OFD packet to send [22:28:37]OFD Sender: No OFD packet to send [22:28:42]OFD Sender: No OFD packet to send [22:28:47]OFD Sender: No OFD packet to send [22:28:52]OFD Sender: No OFD packet to send [22:28:57]OFD Sender: No OFD packet to send [22:29: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:13]OFD Sender: No OFD packet to send [22:32:18]OFD Sender: No OFD packet to send [22:32:23]OFD Sender: No OFD packet to send [22:32:28]OFD Sender: No OFD packet to send [22:32:33]OFD Sender: No OFD packet to send [22:32:38]OFD Sender: No OFD packet to send [22:32:43]OFD Sender: No OFD packet to send [22:32:48]OFD Sender: No OFD packet to send [22:32:53]OFD Sender: No OFD packet to send [22:32:58]OFD Sender: No OFD packet to send [22:33:03]OFD Sender: No OFD packet to send [22:33:08]OFD Sender: No OFD packet to send [22:33:13]OFD Sender: No OFD packet to send [22:33:18]OFD Sender: No OFD packet to send [22:33:23]OFD Sender: No OFD packet to send [22:33:28]OFD Sender: No OFD packet to send [22:33:33]OFD Sender: No OFD packet to send [22:33:38]OFD Sender: No OFD packet to send [22:33:43]OFD Sender: No OFD packet to send [22:33:48]OFD Sender: No OFD packet to send [22:33:53]OFD Sender: No OFD packet to send [22:33:58]OFD Sender: No OFD packet to send [22:34:03]OFD Sender: No OFD packet to send [22:34:08]OFD Sender: No OFD packet to send [22:34:13]OFD Sender: No OFD packet to send [22:34:18]OFD Sender: No OFD packet to send [22:34:23]OFD Sender: No OFD packet to send [22:34:28]OFD Sender: No OFD packet to send [22:34:33]OFD Sender: No OFD packet to send [22:34:38]OFD Sender: No OFD packet to send [22:34:43]OFD Sender: No OFD packet to send [22:34:48]OFD Sender: No OFD packet to send [22:34:53]OFD Sender: No OFD packet to send [22:34:58]OFD Sender: No OFD packet to send [22:35:03]OFD Sender: No OFD packet to send [22:35:08]OFD Sender: No OFD packet to send [22:35:13]OFD Sender: No OFD packet to send [22:35:18]OFD Sender: No OFD packet to send [22:35:23]OFD Sender: No OFD packet to send [22:35:28]OFD Sender: No OFD packet to send [22:35:33]OFD Sender: No OFD packet to send [22:35:38]OFD Sender: No OFD packet to send [22:35:43]OFD Sender: No OFD packet to send [22:35:48]OFD Sender: No OFD packet to send [22:35:52]accept exits with 7 [22:35:52]New connection [22:35:52]New thread 3066785124 created [22:35:52]Thread 3066928484 joined [22:35:52]Waiting for new connection... [22:35:52] Sock 7.Parse request [22:35:52]Sock 7.Check first char [22:35:52]Sock 7.First char is OK [22:35:52]request: POST /json_proto HTTP/1.0 [22:35:52]Method: POST [22:35:52]URL: /json_proto [22:35:52]Method is POST - this is cgi request [22:35:52]url: /json_proto [22:35:52]query_string will be loaded in cgi processing [22:35:52]execute_cgi json_proto POST (null) [22:35:52]execute_cgi path=json_proto method=POST [22:35:52]POST find Content-Length [22:35:52]Host: 172.17.56.4:8080 [22:35:52]Content-Length: 677 [22:35:52]Content-Type: application/json [22:35:52] [22:35:52]POST finish read [22:35:52]Found Content-Length = 677 [22:35:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459209", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:35:52]execute_script... [22:35: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)459209", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:35:52]POST & json_proto [22:35:52]process_json_proto [22:35:52]json parsed OK: [22:35:52]protocol is kg_v1.0 [22:35:52]action value=close_receipt [22:35:52]process_action close_receipt [22:35:52]cmd_close_receipt [22:35:52]MH_GetDate [22:35:52]Write to MH i2c: F0 00 00 B0 0D AC [22:35:52]Write i2c OK [22:35:52]MH_I2C_Read... [22:35:52]Read from MH i2c: F0 [22:35:52]MH_I2C_Read... [22:35:52]Read from MH i2c: F0 09 00 [22:35:52]MH_I2C_Read... [22:35:52]Read from MH i2c: F0 09 00 B0 0D 00 CA 52 94 66 C9 DC B2 64 86 [22:35:52]GetLastDocTimeStamp 1720995376 [22:35:52]current date 1720996554 [22:35:52]FM_GetShiftState [22:35:52]SAM_PROTO_GetShiftState [22:35:52]wFMCommunicate request_size=4 [22:35:52]MH_SAM_APDU [22:35:52]CAPDU: 80 13 01 00 [22:35:52]Write to MH i2c: E2 08 00 B1 0D 80 13 01 00 00 00 00 00 3B [22:35:52]Write i2c OK [22:35:52]MH_I2C_Read... [22:35:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:35:52]Read from MH i2c: E2 [22:35:52]MH_I2C_Read... [22:35:52]Read from MH i2c: E2 0E 00 [22:35:52]MH_I2C_Read... [22:35:52]Read from MH i2c: E2 0E 00 B1 0D 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 BB [22:35:52]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [22:35:52]wFMCommunicate OK [22:35:52]SAM_PROTO_GetShiftState done [22:35:52]FM_GetShiftState done [22:35:52]opened in 1720917342 [22:35:52]opened+sec_in_day 1721003742 [22:35:52]quantity*price = 30004 [22:35:52]sum+1 = 30006 [22:35:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 304 14.07.2024 22:35 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165106 ФПД: 40837762437179 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T223554&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165106&fm=40837762437179&tin=02508201610067®Number=0000000000090829&sum=30000 [22:35:53]StoreToDocumentArchive [22:35:53]shift 447 fd 165106 [22:35:53]save to /storage/0447/doc_00165106 [22:35:53]save last doc name /storage/0447/doc_00165106 to /storage/kkm_last_doc_name [22:35:53]save OK [22:35:53]Clear old archive folders... [22:35:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:35:53]tlvbuf is 01355960 [22:35:53]SAM_PROTO_ClearQueue [22:35:53]wFMCommunicate request_size=4 [22:35:53]MH_SAM_APDU [22:35:53]CAPDU: 80 09 00 00 [22:35:53]Write to MH i2c: E2 08 00 BE 0D 80 09 00 00 00 00 00 00 3D [22:35:53]OFD Sender: No OFD packet to send [22:35:53]Write i2c OK [22:35:53]MH_I2C_Read... [22:35:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:35:53]Read from MH i2c: E2 [22:35:53]MH_I2C_Read... [22:35:53]Read from MH i2c: E2 03 00 [22:35:53]MH_I2C_Read... [22:35:53]Read from MH i2c: E2 03 00 BE 0D 00 90 00 3F [22:35:53]RAPDU: 90 00 [22:35:53]wFMCommunicate OK [22:35:53]SAM_PROTO_ClearQueue done [22:35:53]KKMCreateOFDPacket [22:35:53]OFDProtocolAddRootSTLVToBuf [22:35:53]FM_MakeSignedData [22:35:53]FM_MakeSignedData [22:35:53]SAM_PROTO_SignData [22:35:53]wFMCommunicate request_size=4 [22:35:53]MH_SAM_APDU [22:35:53]CAPDU: 80 0D 01 02 [22:35:53]Write to MH i2c: E2 08 00 BF 0D 80 0D 01 02 00 00 00 00 45 [22:35:53]Write i2c OK [22:35:53]MH_I2C_Read... [22:35:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:35:53]Read from MH i2c: E2 [22:35:53]MH_I2C_Read... [22:35:53]Read from MH i2c: E2 03 00 [22:35:53]MH_I2C_Read... [22:35:53]Read from MH i2c: E2 03 00 BF 0D 00 90 00 40 [22:35:53]RAPDU: 90 00 [22:35:53]wFMCommunicate OK [22:35:53]wFMCommunicate request_size=255 [22:35:53]MH_SAM_APDU [22:35:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 CA 52 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F2 84 02 00 35 04 06 00 25 [22:35:53]Write to MH i2c: E2 02 01 C0 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 CA 52 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F2 84 02 00 35 04 06 00 25 00 00 23 [22:35:53]Write i2c OK [22:35:53]MH_I2C_Read... [22:35:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:35:53]Read from MH i2c: E2 [22:35:53]MH_I2C_Read... [22:35:53]Read from MH i2c: E2 03 00 [22:35:53]MH_I2C_Read... [22:35:53]Read from MH i2c: E2 03 00 C0 0D 00 90 00 41 [22:35:53]RAPDU: 90 00 [22:35:53]wFMCommunicate OK [22:35:53]wFMCommunicate request_size=10 [22:35:53]MH_SAM_APDU [22:35:53]CAPDU: 80 0D 02 02 05 24 48 52 D0 3B [22:35:53]Write to MH i2c: E2 0D 00 C1 0D 80 0D 02 02 05 00 24 48 52 D0 3B 00 00 1B [22:35:53]Write i2c OK [22:35:53]MH_I2C_Read... [22:35:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:35:53]Read from MH i2c: E2 [22:35:53]MH_I2C_Read... [22:35:53]Read from MH i2c: E2 03 00 [22:35:53]MH_I2C_Read... [22:35:53]Read from MH i2c: E2 03 00 C1 0D 00 90 00 42 [22:35:53]RAPDU: 90 00 [22:35:53]wFMCommunicate OK [22:35:53]wFMCommunicate request_size=4 [22:35:53]MH_SAM_APDU [22:35:53]CAPDU: 80 0D 03 02 [22:35:53]Write to MH i2c: E2 08 00 C2 0D 80 0D 03 02 00 00 00 00 4A [22:35:53]Write i2c OK [22:35:53]MH_I2C_Read... [22:35:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:35:53]Read from MH i2c: E2 [22:35:53]MH_I2C_Read... [22:35:53]Read from MH i2c: E2 0B 00 [22:35:53]MH_I2C_Read... [22:35:53]Read from MH i2c: E2 0B 00 C2 0D 00 AE B8 2A CF 3C ED 34 12 90 00 19 [22:35:53]RAPDU: AE B8 2A CF 3C ED 34 12 90 00 [22:35:53]wFMCommunicate OK [22:35:53]SAM_PROTO_SignData done [22:35:53]FM_MakeSignedData done [22:35:53]CreateOFDProtocolMessage [22:35:53]wFMCommunicate request_size=4 [22:35:53]MH_SAM_APDU [22:35:53]CAPDU: 80 11 00 00 [22:35:53]Write to MH i2c: E2 08 00 C3 0D 80 11 00 00 00 00 00 00 4A [22:35:53]Write i2c OK [22:35:53]MH_I2C_Read... [22:35:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:35:54]Read from MH i2c: E2 [22:35:54]MH_I2C_Read... [22:35:54]Read from MH i2c: E2 17 00 [22:35:54]MH_I2C_Read... [22:35:54]Read from MH i2c: E2 17 00 C3 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A0 [22:35:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:35:54]wFMCommunicate OK [22:35:54]CreateOFDProtocolMessage done [22:35:54]OFDSenderStorePacket 165106 [22:35:54]StoreOFDPacket docnum=165106 [22:35:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 1B C6 07 01 B0 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 CA 52 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F2 84 02 00 35 04 06 00 25 24 48 52 D0 3B AE B8 2A CF 3C ED 34 12 [22:35:54]CheckFolder [22:35:54]dirname=/storage/ofd_packets [22:35:54]CheckFolder done [22:35:54]ProducePacketName [22:35:54]name=ofd_packets/00165106 [22:35:54]NVStorageSaveData ofd_packets/00165106 [22:35:54]File name is /storage/ofd_packets/00165106 [22:35:54]Write 301 bytes [22:35:54]NVStorageSaveData done [22:35:54]OFDSenderStorePacket done [22:35:54]KKMCreateOFDPacket done [22:35:54]NVStorageSaveData kkm_last_timestamp [22:35:54]File name is /storage/kkm_last_timestamp [22:35:54]Write 4 bytes [22:35:54]NVStorageSaveData done [22:35:54]ExternCall_PrintAddStr [22:35:54]wPrintStart [22:35:54]Write to MH i2c: 01 00 00 C4 0D D1 [22:35:54]Write i2c OK [22:35:54]MH_I2C_Read... [22:35:54]Read from MH i2c: 01 [22:35:54]MH_I2C_Read... [22:35:54]Read from MH i2c: 01 07 00 [22:35:54]MH_I2C_Read... [22:35:54]Read from MH i2c: 01 07 00 C4 0D 00 00 00 00 00 FF 0F E6 [22:35:54]RasterBufferAndPrint [22:35:54]line Счет N : (1)459209 [22:35:54]line ИНН: 02508201610067 [22:35:54]line Контрольно-Кассовый Чек [22:35:54]line ПРОДАЖА [22:35:54]line ТРК (МРК, ГНК) : 22 [22:35:54]line Товар: 2710124130 [22:35:54]line Аи-92-К-5 [22:35:54]line 4.560 * 65.80 [22:35:54]line = 300.05 [22:35:54]line НДС 12% НСП 1% [22:35:54]line > о реализуемом товаре [22:35:54]line ОКРУГЛЕНИЕ: -0.05 [22:35:54]line ИТОГО: 300.00 [22:35:54]line Внесено: 300.00 [22:35:54]line СДАЧА: 0.00 [22:35:54]line НСП 1% : 2.65 [22:35:54]line НДС 12% : 31.86 [22:35:54]line Наличными: 300.00 [22:35:54]line Безнал.: 0.00 [22:35:54]line Место: АЗС № 72 "Партнер Нефть" [22:35:54]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [22:35:54]line СНО: Общий режим [22:35:54]line Чек 304 14.07.2024 22:35 [22:35:54]line Смена: 447 ФФД: 1.0 [22:35:54]line ЗНМ: 0300000160 [22:35:54]line РНМ: 0000000000090829 [22:35:54]line Версия ККМ: 001 [22:35:54]line ФМ: 0000000000874718 [22:35:54]line ФД: 165106 [22:35:54]line ФПД: 40837762437179 [22:35:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T223554&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165106&fm=40837762437179&tin=02508201610067®Number=0000000000090829&sum=30000 [22:35:54]written 0, free lines is 4095 [22:35:54]OFD Sender: Processing packet 165106 [packets to send 106, broken 105] [22:35:54]ProducePacketName [22:35:54]name=ofd_packets/00165106 [22:35:54]OFD Sender: To server: pG, [22:35:54]CommunicateWithHost lk.salyk.kg:30040 [22:35:54]ConnectInit lk.salyk.kg [22:35:54]Connected sock=10 [22:35:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 1B C6 07 01 B0 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 CA 52 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F2 84 02 00 35 04 06 00 25 24 48 52 D0 3B AE B8 2A CF 3C ED 34 12 [22:35:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 F9 72 47 00 60 03 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F2 84 02 00 F4 03 04 00 56 F9 93 66 B6 04 01 00 00 78 65 B6 68 33 B9 16 90 [22:35:54]CommunicateWithHost err = 0 [22:35:54]CheckOFDResponse [22:35:54]1017 (14) - 77093643461234 [22:35:54]1041 (16) - 0000000000874718 [22:35:54]1040 (4) - 165106 [22:35:54]1012 (4) - 14.07.2024 16:14 [22:35:54]1206 (1) - 0 [22:35:54]OFD Sender: Remove packet 165106 [22:35:54]ProducePacketName [22:35:54]name=ofd_packets/00165106 [22:35:54]NVStorageDeleteData [22:35:54]Write to MH i2c: 01 00 00 EE 0D FB [22:35:54]Write i2c OK [22:35:54]MH_I2C_Read... [22:35:54]Read from MH i2c: 01 [22:35:54]MH_I2C_Read... [22:35:54]Read from MH i2c: 01 07 00 [22:35:54]MH_I2C_Read... [22:35:54]Read from MH i2c: 01 07 00 EE 0D 00 00 00 00 00 FE 0C 0C [22:35:54]RasterBufferAndPrint [22:35:54]line [22:35:54]line [22:35:54]line [22:35:54]line [22:35:54]line [22:35:54]written 0, free lines is 3332 [22:35:54]MH_Cut [22:35:54]Write to MH i2c: D1 01 00 F5 0D 01 D4 [22:35:54]Write i2c OK [22:35:54]MH_I2C_Read... [22:35:54]Read from MH i2c: D1 [22:35:54]MH_I2C_Read... [22:35:54]Read from MH i2c: D1 01 00 [22:35:54]MH_I2C_Read... [22:35:54]Read from MH i2c: D1 01 00 F5 0D 00 D3 [22:35:54]Write to MH i2c: 01 00 00 F6 0D 03 [22:35:54]Write i2c OK [22:35:54]MH_I2C_Read... [22:35:54]OFD Sender: No OFD packet to send [22:35:55]*** Cut start [22:35:55]*** Partial cut [22:35:55]*** CUTSNS_PIN = 1 [22:35:55]*** CUTSNS_PIN = 0 [22:35:55]*** Brake cut motor [22:35:55]Read from MH i2c: 01 [22:35:55]MH_I2C_Read... [22:35:55]*** Stop cut motor [22:35:55]*** Cut end [22:35:55]Read from MH i2c: 01 07 00 [22:35:55]MH_I2C_Read... [22:35:55]Read from MH i2c: 01 07 00 F6 0D 00 00 00 00 00 FF 0F 18 [22:35:55]process_action close_receipt done [22:35:55]requested_data is exist [22:35:55]produce_requested_data [22:35:55]requested_item fm.sn is exist - process it [22:35:55]wFMCommunicate request_size=4 [22:35:55]MH_SAM_APDU [22:35:55]CAPDU: 80 11 00 00 [22:35:55]Write to MH i2c: E2 08 00 F7 0D 80 11 00 00 00 00 00 00 7E [22:35:55]Write i2c OK [22:35:55]MH_I2C_Read... [22:35:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:35:55]Read from MH i2c: E2 [22:35:55]MH_I2C_Read... [22:35:55]Read from MH i2c: E2 17 00 [22:35:55]MH_I2C_Read... [22:35:55]Read from MH i2c: E2 17 00 F7 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D4 [22:35:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:35:55]wFMCommunicate OK [22:35:55]requested_item fd.num is exist - process it [22:35:55]SAM_PROTO_GetFieldsCounters [22:35:55]wFMCommunicate request_size=4 [22:35:55]MH_SAM_APDU [22:35:55]CAPDU: 80 13 00 00 [22:35:55]Write to MH i2c: E2 08 00 F8 0D 80 13 00 00 00 00 00 00 81 [22:35:55]Write i2c OK [22:35:55]MH_I2C_Read... [22:35:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:35:55]Read from MH i2c: E2 [22:35:55]MH_I2C_Read... [22:35:55]Read from MH i2c: E2 62 00 [22:35:55]MH_I2C_Read... [22:35:55]Read from MH i2c: E2 62 00 F8 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F2 84 02 00 0E 04 04 00 BF 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 73 [22:35:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F2 84 02 00 0E 04 04 00 BF 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 [22:35:55]wFMCommunicate OK [22:35:55]SAM_PROTO_GetFieldsCounters done [22:35:55]requested_item shift.num is exist - process it [22:35:55]requested_item shift.opened is exist - process it [22:35:55]req_shift_opened [22:35:55]FM_GetShiftState [22:35:55]SAM_PROTO_GetShiftState [22:35:55]wFMCommunicate request_size=4 [22:35:55]MH_SAM_APDU [22:35:55]CAPDU: 80 13 01 00 [22:35:55]Write to MH i2c: E2 08 00 F9 0D 80 13 01 00 00 00 00 00 83 [22:35:55]Write i2c OK [22:35:55]MH_I2C_Read... [22:35:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:35:55]Read from MH i2c: E2 [22:35:55]MH_I2C_Read... [22:35:55]Read from MH i2c: E2 0E 00 [22:35:55]MH_I2C_Read... [22:35:55]Read from MH i2c: E2 0E 00 F9 0D 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 03 [22:35:55]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [22:35:55]wFMCommunicate OK [22:35:55]SAM_PROTO_GetShiftState done [22:35:55]FM_GetShiftState done [22:35:55]req_shift_opened done [22:35:55]requested_item shift.open_date is exist - process it [22:35:55]req_shift_open_date [22:35:55]req_shift_open_date done [22:35:55]produce_requested_data done [22:35:55]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165106,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [22:35:55]process_action_free close_receipt [22:35:55]json_value_free [22:35:55]json_value_free done [22:35:55]process_json_proto returns [22:35:55]Send response to host [22:35:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165106,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [22:35:55]free response buf [22:35:55]execute_script done [22:35:55]execute_script returns [22:35:55]free content buf [22:35:55]Sock 7.Close socket [22:35:55]Sock 7.Thread stoped [22:35:59]OFD Sender: No OFD packet to send [22:36:04]OFD Sender: No OFD packet to send [22:36:09]OFD Sender: No OFD packet to send [22:36:14]OFD Sender: No OFD packet to send [22:36:19]OFD Sender: No OFD packet to send [22:36:24]OFD Sender: No OFD packet to send [22:36:29]OFD Sender: No OFD packet to send [22:36:34]OFD Sender: No OFD packet to send [22:36:39]OFD Sender: No OFD packet to send [22:36:44]OFD Sender: No OFD packet to send [22:36:49]OFD Sender: No OFD packet to send [22:36:54]OFD Sender: No OFD packet to send [22:36:59]OFD Sender: No OFD packet to send [22:37:04]OFD Sender: No OFD packet to send [22:37:09]OFD Sender: No OFD packet to send [22:37:15]OFD Sender: No OFD packet to send [22:37:20]OFD Sender: No OFD packet to send [22:37:25]OFD Sender: No OFD packet to send [22:37:30]OFD Sender: No OFD packet to send [22:37:35]OFD Sender: No OFD packet to send [22:37:40]OFD Sender: No OFD packet to send [22:37:45]OFD Sender: No OFD packet to send [22:37:50]OFD Sender: No OFD packet to send [22:37:55]OFD Sender: No OFD packet to send [22:38:00]OFD Sender: No OFD packet to send [22:38:05]OFD Sender: No OFD packet to send [22:38:10]OFD Sender: No OFD packet to send [22:38:15]OFD Sender: No OFD packet to send [22:38:20]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:10]OFD Sender: No OFD packet to send [22:41:15]OFD Sender: No OFD packet to send [22:41:20]OFD Sender: No OFD packet to send [22:41:25]OFD Sender: No OFD packet to send [22:41:30]OFD Sender: No OFD packet to send [22:41:35]OFD Sender: No OFD packet to send [22:41:40]OFD Sender: No OFD packet to send [22:41:45]OFD Sender: No OFD packet to send [22:41:49]accept exits with 9 [22:41:49]New connection [22:41:49]New thread 3066928484 created [22:41:49]Thread 3066785124 joined [22:41:49]Waiting for new connection... [22:41:49] Sock 9.Parse request [22:41:49]Sock 9.Check first char [22:41:49]Sock 9.First char is OK [22:41:49]request: POST /json_proto HTTP/1.0 [22:41:49]Method: POST [22:41:49]URL: /json_proto [22:41:49]Method is POST - this is cgi request [22:41:49]url: /json_proto [22:41:49]query_string will be loaded in cgi processing [22:41:49]execute_cgi json_proto POST (null) [22:41:49]execute_cgi path=json_proto method=POST [22:41:49]POST find Content-Length [22:41:49]Host: 172.17.56.4:8080 [22:41:49]Content-Length: 677 [22:41:49]Content-Type: application/json [22:41:49] [22:41:49]POST finish read [22:41:49]Found Content-Length = 677 [22:41:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459210", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "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" ] } } [22:41:49]execute_script... [22:41:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459210", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "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" ] } } [22:41:49]POST & json_proto [22:41:49]process_json_proto [22:41:49]json parsed OK: [22:41:49]protocol is kg_v1.0 [22:41:49]action value=close_receipt [22:41:49]process_action close_receipt [22:41:49]cmd_close_receipt [22:41:49]MH_GetDate [22:41:49]Write to MH i2c: F0 00 00 FA 0D F6 [22:41:49]Write i2c OK [22:41:49]MH_I2C_Read... [22:41:49]Read from MH i2c: F0 [22:41:49]MH_I2C_Read... [22:41:49]Read from MH i2c: F0 09 00 [22:41:49]MH_I2C_Read... [22:41:49]Read from MH i2c: F0 09 00 FA 0D 00 2F 54 94 66 C9 DC B2 64 37 [22:41:49]GetLastDocTimeStamp 1720996554 [22:41:49]current date 1720996911 [22:41:49]FM_GetShiftState [22:41:49]SAM_PROTO_GetShiftState [22:41:49]wFMCommunicate request_size=4 [22:41:49]MH_SAM_APDU [22:41:49]CAPDU: 80 13 01 00 [22:41:49]Write to MH i2c: E2 08 00 FB 0D 80 13 01 00 00 00 00 00 85 [22:41:49]Write i2c OK [22:41:49]MH_I2C_Read... [22:41:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:41:49]Read from MH i2c: E2 [22:41:49]MH_I2C_Read... [22:41:49]Read from MH i2c: E2 0E 00 [22:41:49]MH_I2C_Read... [22:41:49]Read from MH i2c: E2 0E 00 FB 0D 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 05 [22:41:49]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [22:41:49]wFMCommunicate OK [22:41:49]SAM_PROTO_GetShiftState done [22:41:49]FM_GetShiftState done [22:41:49]opened in 1720917342 [22:41:49]opened+sec_in_day 1721003742 [22:41:49]quantity*price = 60009 [22:41:49]sum+1 = 60011 [22:41:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 305 14.07.2024 22:41 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165107 ФПД: 166276338429898 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T224151&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165107&fm=166276338429898&tin=02508201610067®Number=0000000000090829&sum=60000 [22:41:50]StoreToDocumentArchive [22:41:50]shift 447 fd 165107 [22:41:50]save to /storage/0447/doc_00165107 [22:41:50]save last doc name /storage/0447/doc_00165107 to /storage/kkm_last_doc_name [22:41:50]save OK [22:41:50]Clear old archive folders... [22:41:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:41:50]tlvbuf is 01343FA0 [22:41:50]SAM_PROTO_ClearQueue [22:41:50]wFMCommunicate request_size=4 [22:41:50]MH_SAM_APDU [22:41:50]CAPDU: 80 09 00 00 [22:41:50]Write to MH i2c: E2 08 00 08 0E 80 09 00 00 00 00 00 00 88 [22:41:50]Write i2c OK [22:41:50]MH_I2C_Read... [22:41:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:41:50]Read from MH i2c: E2 [22:41:50]MH_I2C_Read... [22:41:50]Read from MH i2c: E2 03 00 [22:41:50]MH_I2C_Read... [22:41:50]Read from MH i2c: E2 03 00 08 0E 00 90 00 8A [22:41:50]RAPDU: 90 00 [22:41:50]wFMCommunicate OK [22:41:50]SAM_PROTO_ClearQueue done [22:41:50]KKMCreateOFDPacket [22:41:50]OFDProtocolAddRootSTLVToBuf [22:41:50]FM_MakeSignedData [22:41:50]FM_MakeSignedData [22:41:50]SAM_PROTO_SignData [22:41:50]wFMCommunicate request_size=4 [22:41:50]MH_SAM_APDU [22:41:50]CAPDU: 80 0D 01 02 [22:41:50]Write to MH i2c: E2 08 00 09 0E 80 0D 01 02 00 00 00 00 90 [22:41:50]Write i2c OK [22:41:50]MH_I2C_Read... [22:41:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:41:50]Read from MH i2c: E2 [22:41:50]MH_I2C_Read... [22:41:50]Read from MH i2c: E2 03 00 [22:41:50]MH_I2C_Read... [22:41:50]Read from MH i2c: E2 03 00 09 0E 00 90 00 8B [22:41:50]RAPDU: 90 00 [22:41:50]wFMCommunicate OK [22:41:50]wFMCommunicate request_size=255 [22:41:50]MH_SAM_APDU [22:41:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A 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 31 01 00 00 F4 03 04 00 2F 54 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F3 84 02 00 35 04 06 00 97 [22:41:50]Write to MH i2c: E2 02 01 0A 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A 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 31 01 00 00 F4 03 04 00 2F 54 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F3 84 02 00 35 04 06 00 97 00 00 A9 [22:41:50]Write i2c OK [22:41:50]MH_I2C_Read... [22:41:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:41:51]Read from MH i2c: E2 [22:41:51]MH_I2C_Read... [22:41:51]Read from MH i2c: E2 03 00 [22:41:51]MH_I2C_Read... [22:41:51]Read from MH i2c: E2 03 00 0A 0E 00 90 00 8C [22:41:51]RAPDU: 90 00 [22:41:51]wFMCommunicate OK [22:41:51]wFMCommunicate request_size=10 [22:41:51]MH_SAM_APDU [22:41:51]CAPDU: 80 0D 02 02 05 3A 3A 16 2F CA [22:41:51]Write to MH i2c: E2 0D 00 0B 0E 80 0D 02 02 05 00 3A 3A 16 2F CA 00 00 20 [22:41:51]Write i2c OK [22:41:51]MH_I2C_Read... [22:41:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:41:51]Read from MH i2c: E2 [22:41:51]MH_I2C_Read... [22:41:51]Read from MH i2c: E2 03 00 [22:41:51]MH_I2C_Read... [22:41:51]Read from MH i2c: E2 03 00 0B 0E 00 90 00 8D [22:41:51]RAPDU: 90 00 [22:41:51]wFMCommunicate OK [22:41:51]wFMCommunicate request_size=4 [22:41:51]MH_SAM_APDU [22:41:51]CAPDU: 80 0D 03 02 [22:41:51]Write to MH i2c: E2 08 00 0C 0E 80 0D 03 02 00 00 00 00 95 [22:41:51]Write i2c OK [22:41:51]MH_I2C_Read... [22:41:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:41:51]Read from MH i2c: E2 [22:41:51]MH_I2C_Read... [22:41:51]Read from MH i2c: E2 0B 00 [22:41:51]MH_I2C_Read... [22:41:51]Read from MH i2c: E2 0B 00 0C 0E 00 31 6C BB 45 4C 21 F1 4F 90 00 E0 [22:41:51]RAPDU: 31 6C BB 45 4C 21 F1 4F 90 00 [22:41:51]wFMCommunicate OK [22:41:51]SAM_PROTO_SignData done [22:41:51]FM_MakeSignedData done [22:41:51]CreateOFDProtocolMessage [22:41:51]wFMCommunicate request_size=4 [22:41:51]MH_SAM_APDU [22:41:51]CAPDU: 80 11 00 00 [22:41:51]Write to MH i2c: E2 08 00 0D 0E 80 11 00 00 00 00 00 00 95 [22:41:51]Write i2c OK [22:41:51]MH_I2C_Read... [22:41:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:41:51]Read from MH i2c: E2 [22:41:51]MH_I2C_Read... [22:41:51]Read from MH i2c: E2 17 00 [22:41:51]MH_I2C_Read... [22:41:51]Read from MH i2c: E2 17 00 0D 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 EB [22:41:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:41:51]wFMCommunicate OK [22:41:51]CreateOFDProtocolMessage done [22:41:51]OFDSenderStorePacket 165107 [22:41:51]StoreOFDPacket docnum=165107 [22:41:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 B0 B5 07 01 FF 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 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A 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 31 01 00 00 F4 03 04 00 2F 54 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F3 84 02 00 35 04 06 00 97 3A 3A 16 2F CA 31 6C BB 45 4C 21 F1 4F [22:41:51]CheckFolder [22:41:51]dirname=/storage/ofd_packets [22:41:51]CheckFolder done [22:41:51]ProducePacketName [22:41:51]name=ofd_packets/00165107 [22:41:51]NVStorageSaveData ofd_packets/00165107 [22:41:51]File name is /storage/ofd_packets/00165107 [22:41:51]Write 301 bytes [22:41:51]NVStorageSaveData done [22:41:51]OFDSenderStorePacket done [22:41:51]KKMCreateOFDPacket done [22:41:51]NVStorageSaveData kkm_last_timestamp [22:41:51]File name is /storage/kkm_last_timestamp [22:41:51]Write 4 bytes [22:41:51]NVStorageSaveData done [22:41:51]ExternCall_PrintAddStr [22:41:51]wPrintStart [22:41:51]Write to MH i2c: 01 00 00 0E 0E 1C [22:41:51]Write i2c OK [22:41:51]MH_I2C_Read... [22:41:51]Read from MH i2c: 01 [22:41:51]MH_I2C_Read... [22:41:51]Read from MH i2c: 01 07 00 [22:41:51]MH_I2C_Read... [22:41:51]Read from MH i2c: 01 07 00 0E 0E 00 00 00 00 00 FF 0F 31 [22:41:51]RasterBufferAndPrint [22:41:51]line Счет N : (1)459210 [22:41:51]line ИНН: 02508201610067 [22:41:51]line Контрольно-Кассовый Чек [22:41:51]line ПРОДАЖА [22:41:51]line ТРК (МРК, ГНК) : 12 [22:41:51]line Товар: 2710124130 [22:41:51]line Аи-92-К-5 [22:41:51]line 9.120 * 65.80 [22:41:51]line = 600.10 [22:41:51]line НДС 12% НСП 1% [22:41:51]line > о реализуемом товаре [22:41:51]line ОКРУГЛЕНИЕ: -0.10 [22:41:51]line ИТОГО: 600.00 [22:41:51]line Внесено: 600.00 [22:41:51]line СДАЧА: 0.00 [22:41:51]line НСП 1% : 5.31 [22:41:51]line НДС 12% : 63.73 [22:41:51]line Наличными: 600.00 [22:41:51]line Безнал.: 0.00 [22:41:51]line Место: АЗС № 72 "Партнер Нефть" [22:41:51]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [22:41:51]line СНО: Общий режим [22:41:51]line Чек 305 14.07.2024 22:41 [22:41:51]line Смена: 447 ФФД: 1.0 [22:41:51]line ЗНМ: 0300000160 [22:41:51]line РНМ: 0000000000090829 [22:41:51]line Версия ККМ: 001 [22:41:51]line ФМ: 0000000000874718 [22:41:51]line ФД: 165107 [22:41:51]line ФПД: 166276338429898 [22:41:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T224151&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165107&fm=166276338429898&tin=02508201610067®Number=0000000000090829&sum=60000 [22:41:51]OFD Sender: Processing packet 165107 [packets to send 106, broken 105] [22:41:51]ProducePacketName [22:41:51]name=ofd_packets/00165107 [22:41:51]OFD Sender: To server: pG, [22:41:51]CommunicateWithHost lk.salyk.kg:30040 [22:41:51]ConnectInit lk.salyk.kg [22:41:51]written 0, free lines is 4095 [22:41:51]Connected sock=10 [22:41:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 B0 B5 07 01 FF 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 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A 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 31 01 00 00 F4 03 04 00 2F 54 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F3 84 02 00 35 04 06 00 97 3A 3A 16 2F CA 31 6C BB 45 4C 21 F1 4F [22:41:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 62 A2 47 00 90 B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F3 84 02 00 F4 03 04 00 BB FA 93 66 B6 04 01 00 00 32 53 84 F5 58 1D 3C 44 [22:41:51]CommunicateWithHost err = 0 [22:41:51]CheckOFDResponse [22:41:51]1017 (14) - 77093643461234 [22:41:51]1041 (16) - 0000000000874718 [22:41:51]1040 (4) - 165107 [22:41:51]1012 (4) - 14.07.2024 16:20 [22:41:51]1206 (1) - 0 [22:41:51]OFD Sender: Remove packet 165107 [22:41:51]ProducePacketName [22:41:51]name=ofd_packets/00165107 [22:41:51]NVStorageDeleteData [22:41:51]Write to MH i2c: 01 00 00 38 0E 46 [22:41:51]Write i2c OK [22:41:51]MH_I2C_Read... [22:41:51]Read from MH i2c: 01 [22:41:51]MH_I2C_Read... [22:41:51]Read from MH i2c: 01 07 00 [22:41:51]MH_I2C_Read... [22:41:51]Read from MH i2c: 01 07 00 38 0E 00 00 00 00 00 0E 0D 68 [22:41:51]RasterBufferAndPrint [22:41:51]line [22:41:51]line [22:41:51]line [22:41:51]line [22:41:51]line [22:41:51]written 0, free lines is 3348 [22:41:51]MH_Cut [22:41:51]Write to MH i2c: D1 01 00 3F 0E 01 1F [22:41:52]Write i2c OK [22:41:52]MH_I2C_Read... [22:41:52]Read from MH i2c: D1 [22:41:52]MH_I2C_Read... [22:41:52]Read from MH i2c: D1 01 00 [22:41:52]MH_I2C_Read... [22:41:52]Read from MH i2c: D1 01 00 3F 0E 00 1E [22:41:52]Write to MH i2c: 01 00 00 40 0E 4E [22:41:52]Write i2c OK [22:41:52]MH_I2C_Read... [22:41:52]OFD Sender: No OFD packet to send [22:41:52]*** Cut start [22:41:52]*** Partial cut [22:41:52]*** CUTSNS_PIN = 1 [22:41:52]*** CUTSNS_PIN = 0 [22:41:52]*** Brake cut motor [22:41:53]Read from MH i2c: 01 [22:41:53]MH_I2C_Read... [22:41:53]*** Stop cut motor [22:41:53]*** Cut end [22:41:53]Read from MH i2c: 01 07 00 [22:41:53]MH_I2C_Read... [22:41:53]Read from MH i2c: 01 07 00 40 0E 00 00 00 00 00 FF 0F 63 [22:41:53]process_action close_receipt done [22:41:53]requested_data is exist [22:41:53]produce_requested_data [22:41:53]requested_item fm.sn is exist - process it [22:41:53]wFMCommunicate request_size=4 [22:41:53]MH_SAM_APDU [22:41:53]CAPDU: 80 11 00 00 [22:41:53]Write to MH i2c: E2 08 00 41 0E 80 11 00 00 00 00 00 00 C9 [22:41:53]Write i2c OK [22:41:53]MH_I2C_Read... [22:41:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:41:53]Read from MH i2c: E2 [22:41:53]MH_I2C_Read... [22:41:53]Read from MH i2c: E2 17 00 [22:41:53]MH_I2C_Read... [22:41:53]Read from MH i2c: E2 17 00 41 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 1F [22:41:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:41:53]wFMCommunicate OK [22:41:53]requested_item fd.num is exist - process it [22:41:53]SAM_PROTO_GetFieldsCounters [22:41:53]wFMCommunicate request_size=4 [22:41:53]MH_SAM_APDU [22:41:53]CAPDU: 80 13 00 00 [22:41:53]Write to MH i2c: E2 08 00 42 0E 80 13 00 00 00 00 00 00 CC [22:41:53]Write i2c OK [22:41:53]MH_I2C_Read... [22:41:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:41:53]Read from MH i2c: E2 [22:41:53]MH_I2C_Read... [22:41:53]Read from MH i2c: E2 62 00 [22:41:53]MH_I2C_Read... [22:41:53]Read from MH i2c: E2 62 00 42 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F3 84 02 00 0E 04 04 00 BF 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 C2 [22:41:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F3 84 02 00 0E 04 04 00 BF 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 [22:41:53]wFMCommunicate OK [22:41:53]SAM_PROTO_GetFieldsCounters done [22:41:53]requested_item shift.num is exist - process it [22:41:53]requested_item shift.opened is exist - process it [22:41:53]req_shift_opened [22:41:53]FM_GetShiftState [22:41:53]SAM_PROTO_GetShiftState [22:41:53]wFMCommunicate request_size=4 [22:41:53]MH_SAM_APDU [22:41:53]CAPDU: 80 13 01 00 [22:41:53]Write to MH i2c: E2 08 00 43 0E 80 13 01 00 00 00 00 00 CE [22:41:53]Write i2c OK [22:41:53]MH_I2C_Read... [22:41:53]Read from MH i2c: E2 [22:41:53]MH_I2C_Read... [22:41:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:41:53]Read from MH i2c: E2 0E 00 [22:41:53]MH_I2C_Read... [22:41:53]Read from MH i2c: E2 0E 00 43 0E 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 4E [22:41:53]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [22:41:53]wFMCommunicate OK [22:41:53]SAM_PROTO_GetShiftState done [22:41:53]FM_GetShiftState done [22:41:53]req_shift_opened done [22:41:53]requested_item shift.open_date is exist - process it [22:41:53]req_shift_open_date [22:41:53]req_shift_open_date done [22:41:53]produce_requested_data done [22:41:53]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165107,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [22:41:53]process_action_free close_receipt [22:41:53]json_value_free [22:41:53]json_value_free done [22:41:53]process_json_proto returns [22:41:53]Send response to host [22:41:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165107,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [22:41:53]free response buf [22:41:53]execute_script done [22:41:53]execute_script returns [22:41:53]free content buf [22:41:53]Sock 9.Close socket [22:41:53]Sock 9.Thread stoped [22:41:57]OFD Sender: No OFD packet to send [22:42:02]OFD Sender: No OFD packet to send [22:42:07]OFD Sender: No OFD packet to send [22:42:12]OFD Sender: No OFD packet to send [22:42:17]OFD Sender: No OFD packet to send [22:42:22]OFD Sender: No OFD packet to send [22:42:27]OFD Sender: No OFD packet to send [22:42:32]OFD Sender: No OFD packet to send [22:42:37]OFD Sender: No OFD packet to send [22:42:42]OFD Sender: No OFD packet to send [22:42:47]OFD Sender: No OFD packet to send [22:42:52]OFD Sender: No OFD packet to send [22:42:57]OFD Sender: No OFD packet to send [22:43:02]OFD Sender: No OFD packet to send [22:43:07]OFD Sender: No OFD packet to send [22:43:12]OFD Sender: No OFD packet to send [22:43:17]OFD Sender: No OFD packet to send [22:43:22]OFD Sender: No OFD packet to send [22:43:27]OFD Sender: No OFD packet to send [22:43:32]OFD Sender: No OFD packet to send [22:43:37]OFD Sender: No OFD packet to send [22:43:42]OFD Sender: No OFD packet to send [22:43:47]OFD Sender: No OFD packet to send [22:43:52]OFD Sender: No OFD packet to send [22:43:57]OFD Sender: No OFD packet to send [22:44:02]OFD Sender: No OFD packet to send [22:44:07]OFD Sender: No OFD packet to send [22:44:12]OFD Sender: No OFD packet to send [22:44:17]OFD Sender: No OFD packet to send [22:44:22]OFD Sender: No OFD packet to send [22:44:27]OFD Sender: No OFD packet to send [22:44:32]OFD Sender: No OFD packet to send [22:44:37]OFD Sender: No OFD packet to send [22:44:42]OFD Sender: No OFD packet to send [22:44:47]OFD Sender: No OFD packet to send [22:44:52]OFD Sender: No OFD packet to send [22:44:57]OFD Sender: No OFD packet to send [22:45:02]OFD Sender: No OFD packet to send [22:45:07]OFD Sender: No OFD packet to send [22:45:12]OFD Sender: No OFD packet to send [22:45:17]OFD Sender: No OFD packet to send [22:45:22]OFD Sender: No OFD packet to send [22:45:27]OFD Sender: No OFD packet to send [22:45:32]OFD Sender: No OFD packet to send [22:45:37]OFD Sender: No OFD packet to send [22:45:42]OFD Sender: No OFD packet to send [22:45:47]OFD Sender: No OFD packet to send [22:45:52]OFD Sender: No OFD packet to send [22:45:57]OFD Sender: No OFD packet to send [22:46:02]OFD Sender: No OFD packet to send [22:46:07]OFD Sender: No OFD packet to send [22:46:12]OFD Sender: No OFD packet to send [22:46:17]OFD Sender: No OFD packet to send [22:46:22]OFD Sender: No OFD packet to send [22:46:26]accept exits with 7 [22:46:26]New connection [22:46:26]New thread 3066785124 created [22:46:26]Thread 3066928484 joined [22:46:26]Waiting for new connection... [22:46:26] Sock 7.Parse request [22:46:26]Sock 7.Check first char [22:46:26]Sock 7.First char is OK [22:46:26]request: POST /json_proto HTTP/1.0 [22:46:26]Method: POST [22:46:26]URL: /json_proto [22:46:26]Method is POST - this is cgi request [22:46:26]url: /json_proto [22:46:26]query_string will be loaded in cgi processing [22:46:26]execute_cgi json_proto POST (null) [22:46:26]execute_cgi path=json_proto method=POST [22:46:26]POST find Content-Length [22:46:26]Host: 172.17.56.4:8080 [22:46:26]Content-Length: 682 [22:46:26]Content-Type: application/json [22:46:26] [22:46:26]POST finish read [22:46:26]Found Content-Length = 682 [22:46:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459211", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:46:26]execute_script... [22:46: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)459211", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:46:26]POST & json_proto [22:46:26]process_json_proto [22:46:26]json parsed OK: [22:46:26]protocol is kg_v1.0 [22:46:26]action value=close_receipt [22:46:26]process_action close_receipt [22:46:26]cmd_close_receipt [22:46:26]MH_GetDate [22:46:26]Write to MH i2c: F0 00 00 44 0E 41 [22:46:26]Write i2c OK [22:46:26]MH_I2C_Read... [22:46:26]Read from MH i2c: F0 [22:46:26]MH_I2C_Read... [22:46:26]Read from MH i2c: F0 09 00 [22:46:26]MH_I2C_Read... [22:46:26]Read from MH i2c: F0 09 00 44 0E 00 44 55 94 66 C9 DC B2 64 98 [22:46:26]GetLastDocTimeStamp 1720996911 [22:46:26]current date 1720997188 [22:46:26]FM_GetShiftState [22:46:26]SAM_PROTO_GetShiftState [22:46:26]wFMCommunicate request_size=4 [22:46:26]MH_SAM_APDU [22:46:26]CAPDU: 80 13 01 00 [22:46:26]Write to MH i2c: E2 08 00 45 0E 80 13 01 00 00 00 00 00 D0 [22:46:26]Write i2c OK [22:46:26]MH_I2C_Read... [22:46:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:46:26]Read from MH i2c: E2 [22:46:26]MH_I2C_Read... [22:46:26]Read from MH i2c: E2 0E 00 [22:46:26]MH_I2C_Read... [22:46:26]Read from MH i2c: E2 0E 00 45 0E 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 50 [22:46:26]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [22:46:26]wFMCommunicate OK [22:46:26]SAM_PROTO_GetShiftState done [22:46:26]FM_GetShiftState done [22:46:26]opened in 1720917342 [22:46:26]opened+sec_in_day 1721003742 [22:46:26]quantity*price = 100016 [22:46:26]sum+1 = 100017 [22:46: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 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 306 14.07.2024 22:46 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165108 ФПД: 180249530214672 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T224628&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165108&fm=180249530214672&tin=02508201610067®Number=0000000000090829&sum=100000 [22:46:27]StoreToDocumentArchive [22:46:27]shift 447 fd 165108 [22:46:27]save to /storage/0447/doc_00165108 [22:46:27]save last doc name /storage/0447/doc_00165108 to /storage/kkm_last_doc_name [22:46:27]save OK [22:46:27]Clear old archive folders... [22:46:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:46:27]tlvbuf is 01352DB0 [22:46:27]SAM_PROTO_ClearQueue [22:46:27]wFMCommunicate request_size=4 [22:46:27]MH_SAM_APDU [22:46:27]CAPDU: 80 09 00 00 [22:46:27]Write to MH i2c: E2 08 00 52 0E 80 09 00 00 00 00 00 00 D2 [22:46:27]Write i2c OK [22:46:27]MH_I2C_Read... [22:46:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:46:27]Read from MH i2c: E2 [22:46:27]MH_I2C_Read... [22:46:27]Read from MH i2c: E2 03 00 [22:46:27]MH_I2C_Read... [22:46:27]Read from MH i2c: E2 03 00 52 0E 00 90 00 D4 [22:46:27]RAPDU: 90 00 [22:46:27]wFMCommunicate OK [22:46:27]SAM_PROTO_ClearQueue done [22:46:27]KKMCreateOFDPacket [22:46:27]OFDProtocolAddRootSTLVToBuf [22:46:27]FM_MakeSignedData [22:46:27]FM_MakeSignedData [22:46:27]SAM_PROTO_SignData [22:46:27]wFMCommunicate request_size=4 [22:46:27]MH_SAM_APDU [22:46:27]CAPDU: 80 0D 01 02 [22:46:27]Write to MH i2c: E2 08 00 53 0E 80 0D 01 02 00 00 00 00 DA [22:46:27]Write i2c OK [22:46:27]MH_I2C_Read... [22:46:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:46:27]Read from MH i2c: E2 [22:46:27]MH_I2C_Read... [22:46:27]Read from MH i2c: E2 03 00 [22:46:27]MH_I2C_Read... [22:46:27]Read from MH i2c: E2 03 00 53 0E 00 90 00 D5 [22:46:27]RAPDU: 90 00 [22:46:27]wFMCommunicate OK [22:46:27]wFMCommunicate request_size=255 [22:46:27]MH_SAM_APDU [22:46:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 01 00 00 F4 03 04 00 44 55 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F4 84 02 00 35 04 06 00 A3 [22:46:27]Write to MH i2c: E2 02 01 54 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 01 00 00 F4 03 04 00 44 55 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F4 84 02 00 35 04 06 00 A3 00 00 98 [22:46:27]Write i2c OK [22:46:27]MH_I2C_Read... [22:46:27]OFD Sender: No OFD packet to send [22:46:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:46:27]Read from MH i2c: E2 [22:46:27]MH_I2C_Read... [22:46:27]Read from MH i2c: E2 03 00 [22:46:27]MH_I2C_Read... [22:46:27]Read from MH i2c: E2 03 00 54 0E 00 90 00 D6 [22:46:27]RAPDU: 90 00 [22:46:27]wFMCommunicate OK [22:46:27]wFMCommunicate request_size=10 [22:46:27]MH_SAM_APDU [22:46:27]CAPDU: 80 0D 02 02 05 EF 9D 38 29 10 [22:46:27]Write to MH i2c: E2 0D 00 55 0E 80 0D 02 02 05 00 EF 9D 38 29 10 00 00 E4 [22:46:27]Write i2c OK [22:46:27]MH_I2C_Read... [22:46:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:46:27]Read from MH i2c: E2 [22:46:27]MH_I2C_Read... [22:46:27]Read from MH i2c: E2 03 00 [22:46:27]MH_I2C_Read... [22:46:27]Read from MH i2c: E2 03 00 55 0E 00 90 00 D7 [22:46:27]RAPDU: 90 00 [22:46:27]wFMCommunicate OK [22:46:27]wFMCommunicate request_size=4 [22:46:27]MH_SAM_APDU [22:46:27]CAPDU: 80 0D 03 02 [22:46:27]Write to MH i2c: E2 08 00 56 0E 80 0D 03 02 00 00 00 00 DF [22:46:27]Write i2c OK [22:46:27]MH_I2C_Read... [22:46:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:46:27]Read from MH i2c: E2 [22:46:27]MH_I2C_Read... [22:46:27]Read from MH i2c: E2 0B 00 [22:46:27]MH_I2C_Read... [22:46:27]Read from MH i2c: E2 0B 00 56 0E 00 49 5B F3 B3 71 D6 EB D8 90 00 34 [22:46:27]RAPDU: 49 5B F3 B3 71 D6 EB D8 90 00 [22:46:27]wFMCommunicate OK [22:46:27]SAM_PROTO_SignData done [22:46:27]FM_MakeSignedData done [22:46:27]CreateOFDProtocolMessage [22:46:27]wFMCommunicate request_size=4 [22:46:27]MH_SAM_APDU [22:46:27]CAPDU: 80 11 00 00 [22:46:27]Write to MH i2c: E2 08 00 57 0E 80 11 00 00 00 00 00 00 DF [22:46:27]Write i2c OK [22:46:27]MH_I2C_Read... [22:46:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:46:27]Read from MH i2c: E2 [22:46:27]MH_I2C_Read... [22:46:27]Read from MH i2c: E2 17 00 [22:46:27]MH_I2C_Read... [22:46:27]Read from MH i2c: E2 17 00 57 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 35 [22:46:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:46:27]wFMCommunicate OK [22:46:27]CreateOFDProtocolMessage done [22:46:27]OFDSenderStorePacket 165108 [22:46:27]StoreOFDPacket docnum=165108 [22:46:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 5D 37 07 01 D5 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 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 01 00 00 F4 03 04 00 44 55 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F4 84 02 00 35 04 06 00 A3 EF 9D 38 29 10 49 5B F3 B3 71 D6 EB D8 [22:46:27]CheckFolder [22:46:27]dirname=/storage/ofd_packets [22:46:27]CheckFolder done [22:46:27]ProducePacketName [22:46:27]name=ofd_packets/00165108 [22:46:27]NVStorageSaveData ofd_packets/00165108 [22:46:27]File name is /storage/ofd_packets/00165108 [22:46:27]Write 301 bytes [22:46:27]NVStorageSaveData done [22:46:27]OFDSenderStorePacket done [22:46:27]KKMCreateOFDPacket done [22:46:27]NVStorageSaveData kkm_last_timestamp [22:46:27]File name is /storage/kkm_last_timestamp [22:46:27]Write 4 bytes [22:46:27]NVStorageSaveData done [22:46:27]ExternCall_PrintAddStr [22:46:27]wPrintStart [22:46:27]Write to MH i2c: 01 00 00 58 0E 66 [22:46:27]Write i2c OK [22:46:27]MH_I2C_Read... [22:46:27]Read from MH i2c: 01 [22:46:27]MH_I2C_Read... [22:46:27]Read from MH i2c: 01 07 00 [22:46:27]MH_I2C_Read... [22:46:27]Read from MH i2c: 01 07 00 58 0E 00 00 00 00 00 FF 0F 7B [22:46:27]RasterBufferAndPrint [22:46:27]line Счет N : (1)459211 [22:46:27]line ИНН: 02508201610067 [22:46:27]line Контрольно-Кассовый Чек [22:46:27]line ПРОДАЖА [22:46:27]line ТРК (МРК, ГНК) : 12 [22:46:27]line Товар: 2710124130 [22:46:27]line Аи-92-К-5 [22:46:27]line 15.200 * 65.80 [22:46:27]line = 1000.16 [22:46:27]line НДС 12% НСП 1% [22:46:27]line > о реализуемом товаре [22:46:27]line ОКРУГЛЕНИЕ: -0.16 [22:46:27]line ИТОГО: 1000.00 [22:46:27]line Внесено: 1000.00 [22:46:27]line СДАЧА: 0.00 [22:46:27]line НСП 1% : 8.85 [22:46:27]line НДС 12% : 106.21 [22:46:27]line Наличными: 1000.00 [22:46:27]line Безнал.: 0.00 [22:46:27]line Место: АЗС № 72 "Партнер Нефть" [22:46:27]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [22:46:27]line СНО: Общий режим [22:46:27]line Чек 306 14.07.2024 22:46 [22:46:27]line Смена: 447 ФФД: 1.0 [22:46:27]line ЗНМ: 0300000160 [22:46:27]line РНМ: 0000000000090829 [22:46:27]line Версия ККМ: 001 [22:46:27]line ФМ: 0000000000874718 [22:46:27]line ФД: 165108 [22:46:27]line ФПД: 180249530214672 [22:46:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T224628&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165108&fm=180249530214672&tin=02508201610067®Number=0000000000090829&sum=100000 [22:46:27]written 0, free lines is 4095 [22:46:27]OFD Sender: Processing packet 165108 [packets to send 106, broken 105] [22:46:27]ProducePacketName [22:46:27]name=ofd_packets/00165108 [22:46:27]OFD Sender: To server: pG, [22:46:27]CommunicateWithHost lk.salyk.kg:30040 [22:46:27]ConnectInit lk.salyk.kg [22:46:28]Connected sock=10 [22:46:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 5D 37 07 01 D5 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 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 01 00 00 F4 03 04 00 44 55 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F4 84 02 00 35 04 06 00 A3 EF 9D 38 29 10 49 5B F3 B3 71 D6 EB D8 [22:46:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 C8 C7 47 00 2E 21 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F4 84 02 00 F4 03 04 00 D0 FB 93 66 B6 04 01 00 00 23 F2 AE BA 98 85 C5 33 [22:46:28]CommunicateWithHost err = 0 [22:46:28]CheckOFDResponse [22:46:28]1017 (14) - 77093643461234 [22:46:28]1041 (16) - 0000000000874718 [22:46:28]1040 (4) - 165108 [22:46:28]1012 (4) - 14.07.2024 16:24 [22:46:28]1206 (1) - 0 [22:46:28]OFD Sender: Remove packet 165108 [22:46:28]ProducePacketName [22:46:28]name=ofd_packets/00165108 [22:46:28]NVStorageDeleteData [22:46:28]Write to MH i2c: 01 00 00 82 0E 90 [22:46:28]Write i2c OK [22:46:28]MH_I2C_Read... [22:46:28]Read from MH i2c: 01 [22:46:28]MH_I2C_Read... [22:46:28]Read from MH i2c: 01 07 00 [22:46:28]MH_I2C_Read... [22:46:28]Read from MH i2c: 01 07 00 82 0E 00 00 00 00 00 02 0D A6 [22:46:28]RasterBufferAndPrint [22:46:28]line [22:46:28]line [22:46:28]line [22:46:28]line [22:46:28]line [22:46:28]written 0, free lines is 3336 [22:46:28]MH_Cut [22:46:28]Write to MH i2c: D1 01 00 89 0E 01 69 [22:46:28]Write i2c OK [22:46:28]MH_I2C_Read... [22:46:28]Read from MH i2c: D1 [22:46:28]MH_I2C_Read... [22:46:28]Read from MH i2c: D1 01 00 [22:46:28]MH_I2C_Read... [22:46:28]Read from MH i2c: D1 01 00 89 0E 00 68 [22:46:28]Write to MH i2c: 01 00 00 8A 0E 98 [22:46:28]Write i2c OK [22:46:28]MH_I2C_Read... [22:46:28]OFD Sender: No OFD packet to send [22:46:29]*** Cut start [22:46:29]*** Partial cut [22:46:29]*** CUTSNS_PIN = 1 [22:46:29]*** CUTSNS_PIN = 0 [22:46:29]*** Brake cut motor [22:46:29]Read from MH i2c: 01 [22:46:29]MH_I2C_Read... [22:46:29]*** Stop cut motor [22:46:29]*** Cut end [22:46:29]Read from MH i2c: 01 07 00 [22:46:29]MH_I2C_Read... [22:46:29]Read from MH i2c: 01 07 00 8A 0E 00 00 00 00 00 FF 0F AD [22:46:29]process_action close_receipt done [22:46:29]requested_data is exist [22:46:29]produce_requested_data [22:46:29]requested_item fm.sn is exist - process it [22:46:29]wFMCommunicate request_size=4 [22:46:29]MH_SAM_APDU [22:46:29]CAPDU: 80 11 00 00 [22:46:29]Write to MH i2c: E2 08 00 8B 0E 80 11 00 00 00 00 00 00 13 [22:46:29]Write i2c OK [22:46:29]MH_I2C_Read... [22:46:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:46:29]Read from MH i2c: E2 [22:46:29]MH_I2C_Read... [22:46:29]Read from MH i2c: E2 17 00 [22:46:29]MH_I2C_Read... [22:46:29]Read from MH i2c: E2 17 00 8B 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 69 [22:46:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:46:29]wFMCommunicate OK [22:46:29]requested_item fd.num is exist - process it [22:46:29]SAM_PROTO_GetFieldsCounters [22:46:29]wFMCommunicate request_size=4 [22:46:29]MH_SAM_APDU [22:46:29]CAPDU: 80 13 00 00 [22:46:29]Write to MH i2c: E2 08 00 8C 0E 80 13 00 00 00 00 00 00 16 [22:46:29]Write i2c OK [22:46:29]MH_I2C_Read... [22:46:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:46:29]Read from MH i2c: E2 [22:46:29]MH_I2C_Read... [22:46:29]Read from MH i2c: E2 62 00 [22:46:29]MH_I2C_Read... [22:46:29]Read from MH i2c: E2 62 00 8C 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F4 84 02 00 0E 04 04 00 BF 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 10 [22:46:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F4 84 02 00 0E 04 04 00 BF 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 [22:46:29]wFMCommunicate OK [22:46:29]SAM_PROTO_GetFieldsCounters done [22:46:29]requested_item shift.num is exist - process it [22:46:29]requested_item shift.opened is exist - process it [22:46:29]req_shift_opened [22:46:29]FM_GetShiftState [22:46:29]SAM_PROTO_GetShiftState [22:46:29]wFMCommunicate request_size=4 [22:46:29]MH_SAM_APDU [22:46:29]CAPDU: 80 13 01 00 [22:46:29]Write to MH i2c: E2 08 00 8D 0E 80 13 01 00 00 00 00 00 18 [22:46:29]Write i2c OK [22:46:29]MH_I2C_Read... [22:46:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:46:29]Read from MH i2c: E2 [22:46:29]MH_I2C_Read... [22:46:29]Read from MH i2c: E2 0E 00 [22:46:29]MH_I2C_Read... [22:46:29]Read from MH i2c: E2 0E 00 8D 0E 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 98 [22:46:29]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [22:46:29]wFMCommunicate OK [22:46:29]SAM_PROTO_GetShiftState done [22:46:29]FM_GetShiftState done [22:46:29]req_shift_opened done [22:46:29]requested_item shift.open_date is exist - process it [22:46:29]req_shift_open_date [22:46:29]req_shift_open_date done [22:46:29]produce_requested_data done [22:46:29]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165108,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [22:46:29]process_action_free close_receipt [22:46:29]json_value_free [22:46:29]json_value_free done [22:46:29]process_json_proto returns [22:46:29]Send response to host [22:46:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165108,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [22:46:29]free response buf [22:46:29]execute_script done [22:46:29]execute_script returns [22:46:29]free content buf [22:46:29]Sock 7.Close socket [22:46:29]Sock 7.Thread stoped [22:46:33]OFD Sender: No OFD packet to send [22:46:38]OFD Sender: No OFD packet to send [22:46:43]OFD Sender: No OFD packet to send [22:46:48]OFD Sender: No OFD packet to send [22:46:53]OFD Sender: No OFD packet to send [22:46:58]OFD Sender: No OFD packet to send [22:47:03]OFD Sender: No OFD packet to send [22:47:08]OFD Sender: No OFD packet to send [22:47:13]OFD Sender: No OFD packet to send [22:47:18]OFD Sender: No OFD packet to send [22:47:23]OFD Sender: No OFD packet to send [22:47:28]OFD Sender: No OFD packet to send [22:47:33]OFD Sender: No OFD packet to send [22:47:38]OFD Sender: No OFD packet to send [22:47:43]OFD Sender: No OFD packet to send [22:47:48]OFD Sender: No OFD packet to send [22:47:53]OFD Sender: No OFD packet to send [22:47:58]OFD Sender: No OFD packet to send [22:48:03]OFD Sender: No OFD packet to send [22:48:08]OFD Sender: No OFD packet to send [22:48:13]OFD Sender: No OFD packet to send [22:48:18]OFD Sender: No OFD packet to send [22:48:23]OFD Sender: No OFD packet to send [22:48:28]OFD Sender: No OFD packet to send [22:48:33]OFD Sender: No OFD packet to send [22:48:38]OFD Sender: No OFD packet to send [22:48:43]OFD Sender: No OFD packet to send [22:48:48]OFD Sender: No OFD packet to send [22:48:53]OFD Sender: No OFD packet to send [22:48:58]OFD Sender: No OFD packet to send [22:49:03]OFD Sender: No OFD packet to send [22:49:08]OFD Sender: No OFD packet to send [22:49:13]OFD Sender: No OFD packet to send [22:49:18]OFD Sender: No OFD packet to send [22:49:23]accept exits with 9 [22:49:23]New connection [22:49:23]New thread 3066928484 created [22:49:23]Thread 3066785124 joined [22:49:23]Waiting for new connection... [22:49:23] Sock 9.Parse request [22:49:23]Sock 9.Check first char [22:49:23]Sock 9.First char is OK [22:49:23]request: POST /json_proto HTTP/1.0 [22:49:23]Method: POST [22:49:23]URL: /json_proto [22:49:23]Method is POST - this is cgi request [22:49:23]url: /json_proto [22:49:23]query_string will be loaded in cgi processing [22:49:23]execute_cgi json_proto POST (null) [22:49:23]execute_cgi path=json_proto method=POST [22:49:23]POST find Content-Length [22:49:23]Host: 172.17.56.4:8080 [22:49:23]Content-Length: 682 [22:49:23]Content-Type: application/json [22:49:23] [22:49:23]POST finish read [22:49:23]Found Content-Length = 682 [22:49:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459212", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.510, "sum" : 1020.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1020.00, "total" : 1020.00, "payments": [ { "type": 0, "sum" : 1020.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:49:23]execute_script... [22:49: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)459212", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.510, "sum" : 1020.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1020.00, "total" : 1020.00, "payments": [ { "type": 0, "sum" : 1020.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:49:23]POST & json_proto [22:49:23]process_json_proto [22:49:23]json parsed OK: [22:49:23]protocol is kg_v1.0 [22:49:23]action value=close_receipt [22:49:23]process_action close_receipt [22:49:23]cmd_close_receipt [22:49:23]MH_GetDate [22:49:23]Write to MH i2c: F0 00 00 8E 0E 8B [22:49:23]Write i2c OK [22:49:23]MH_I2C_Read... [22:49:23]Read from MH i2c: F0 [22:49:23]MH_I2C_Read... [22:49:23]Read from MH i2c: F0 09 00 [22:49:23]MH_I2C_Read... [22:49:23]Read from MH i2c: F0 09 00 8E 0E 00 F5 55 94 66 C9 DC B2 64 93 [22:49:23]GetLastDocTimeStamp 1720997188 [22:49:23]current date 1720997365 [22:49:23]FM_GetShiftState [22:49:23]SAM_PROTO_GetShiftState [22:49:23]wFMCommunicate request_size=4 [22:49:23]MH_SAM_APDU [22:49:23]CAPDU: 80 13 01 00 [22:49:23]Write to MH i2c: E2 08 00 8F 0E 80 13 01 00 00 00 00 00 1A [22:49:23]Write i2c OK [22:49:23]MH_I2C_Read... [22:49:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:49:23]Read from MH i2c: E2 [22:49:23]MH_I2C_Read... [22:49:23]Read from MH i2c: E2 0E 00 [22:49:23]MH_I2C_Read... [22:49:23]Read from MH i2c: E2 0E 00 8F 0E 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 9A [22:49:23]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [22:49:23]wFMCommunicate OK [22:49:23]SAM_PROTO_GetShiftState done [22:49:23]FM_GetShiftState done [22:49:23]opened in 1720917342 [22:49:23]opened+sec_in_day 1721003742 [22:49:23]quantity*price = 102055 [22:49:23]sum+1 = 102057 [22:49:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 1020.00 Внесено: 1020.00 СДАЧА: 0.00 НСП 1% : 9.03 НДС 12% : 108.38 Наличными: 1020.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 307 14.07.2024 22:49 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165109 ФПД: 139218857222066 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T224925&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165109&fm=139218857222066&tin=02508201610067®Number=0000000000090829&sum=102000 [22:49:24]StoreToDocumentArchive [22:49:24]shift 447 fd 165109 [22:49:24]save to /storage/0447/doc_00165109 [22:49:24]save last doc name /storage/0447/doc_00165109 to /storage/kkm_last_doc_name [22:49:24]save OK [22:49:24]Clear old archive folders... [22:49:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:49:24]tlvbuf is 01329DC0 [22:49:24]SAM_PROTO_ClearQueue [22:49:24]wFMCommunicate request_size=4 [22:49:24]MH_SAM_APDU [22:49:24]CAPDU: 80 09 00 00 [22:49:24]Write to MH i2c: E2 08 00 9C 0E 80 09 00 00 00 00 00 00 1C [22:49:24]Write i2c OK [22:49:24]MH_I2C_Read... [22:49:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:49:24]Read from MH i2c: E2 [22:49:24]MH_I2C_Read... [22:49:24]Read from MH i2c: E2 03 00 [22:49:24]MH_I2C_Read... [22:49:24]Read from MH i2c: E2 03 00 9C 0E 00 90 00 1E [22:49:24]RAPDU: 90 00 [22:49:24]wFMCommunicate OK [22:49:24]SAM_PROTO_ClearQueue done [22:49:24]KKMCreateOFDPacket [22:49:24]OFDProtocolAddRootSTLVToBuf [22:49:24]FM_MakeSignedData [22:49:24]FM_MakeSignedData [22:49:24]SAM_PROTO_SignData [22:49:24]wFMCommunicate request_size=4 [22:49:24]MH_SAM_APDU [22:49:24]CAPDU: 80 0D 01 02 [22:49:24]Write to MH i2c: E2 08 00 9D 0E 80 0D 01 02 00 00 00 00 24 [22:49:24]Write i2c OK [22:49:24]MH_I2C_Read... [22:49:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:49:24]Read from MH i2c: E2 [22:49:24]MH_I2C_Read... [22:49:24]Read from MH i2c: E2 03 00 [22:49:24]MH_I2C_Read... [22:49:24]Read from MH i2c: E2 03 00 9D 0E 00 90 00 1F [22:49:24]RAPDU: 90 00 [22:49:24]wFMCommunicate OK [22:49:24]wFMCommunicate request_size=255 [22:49:24]MH_SAM_APDU [22:49:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 96 3C 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 A8 8E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 8E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 2A 00 00 00 00 07 04 06 00 70 8E 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 F5 55 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F5 84 02 00 35 04 06 00 7E [22:49:24]Write to MH i2c: E2 02 01 9E 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 96 3C 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 A8 8E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 8E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 2A 00 00 00 00 07 04 06 00 70 8E 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 F5 55 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F5 84 02 00 35 04 06 00 7E 00 00 43 [22:49:24]Write i2c OK [22:49:24]MH_I2C_Read... [22:49:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:49:25]Read from MH i2c: E2 [22:49:25]MH_I2C_Read... [22:49:25]Read from MH i2c: E2 03 00 [22:49:25]MH_I2C_Read... [22:49:25]Read from MH i2c: E2 03 00 9E 0E 00 90 00 20 [22:49:25]RAPDU: 90 00 [22:49:25]wFMCommunicate OK [22:49:25]wFMCommunicate request_size=10 [22:49:25]MH_SAM_APDU [22:49:25]CAPDU: 80 0D 02 02 05 9E 6A 87 DF B2 [22:49:25]Write to MH i2c: E2 0D 00 9F 0E 80 0D 02 02 05 00 9E 6A 87 DF B2 00 00 51 [22:49:25]Write i2c OK [22:49:25]MH_I2C_Read... [22:49:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:49:25]Read from MH i2c: E2 [22:49:25]MH_I2C_Read... [22:49:25]Read from MH i2c: E2 03 00 [22:49:25]MH_I2C_Read... [22:49:25]Read from MH i2c: E2 03 00 9F 0E 00 90 00 21 [22:49:25]RAPDU: 90 00 [22:49:25]wFMCommunicate OK [22:49:25]wFMCommunicate request_size=4 [22:49:25]MH_SAM_APDU [22:49:25]CAPDU: 80 0D 03 02 [22:49:25]Write to MH i2c: E2 08 00 A0 0E 80 0D 03 02 00 00 00 00 29 [22:49:25]Write i2c OK [22:49:25]MH_I2C_Read... [22:49:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:49:25]Read from MH i2c: E2 [22:49:25]MH_I2C_Read... [22:49:25]Read from MH i2c: E2 0B 00 [22:49:25]MH_I2C_Read... [22:49:25]Read from MH i2c: E2 0B 00 A0 0E 00 03 04 0E 69 8C DC 44 B6 90 00 0A [22:49:25]RAPDU: 03 04 0E 69 8C DC 44 B6 90 00 [22:49:25]wFMCommunicate OK [22:49:25]SAM_PROTO_SignData done [22:49:25]FM_MakeSignedData done [22:49:25]CreateOFDProtocolMessage [22:49:25]wFMCommunicate request_size=4 [22:49:25]MH_SAM_APDU [22:49:25]CAPDU: 80 11 00 00 [22:49:25]Write to MH i2c: E2 08 00 A1 0E 80 11 00 00 00 00 00 00 29 [22:49:25]Write i2c OK [22:49:25]MH_I2C_Read... [22:49:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:49:25]Read from MH i2c: E2 [22:49:25]MH_I2C_Read... [22:49:25]Read from MH i2c: E2 17 00 [22:49:25]MH_I2C_Read... [22:49:25]Read from MH i2c: E2 17 00 A1 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 7F [22:49:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:49:25]wFMCommunicate OK [22:49:25]CreateOFDProtocolMessage done [22:49:25]OFDSenderStorePacket 165109 [22:49:25]StoreOFDPacket docnum=165109 [22:49:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 7C 45 07 01 14 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 96 3C 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 A8 8E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 8E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 2A 00 00 00 00 07 04 06 00 70 8E 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 F5 55 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F5 84 02 00 35 04 06 00 7E 9E 6A 87 DF B2 03 04 0E 69 8C DC 44 B6 [22:49:25]CheckFolder [22:49:25]dirname=/storage/ofd_packets [22:49:25]CheckFolder done [22:49:25]ProducePacketName [22:49:25]name=ofd_packets/00165109 [22:49:25]NVStorageSaveData ofd_packets/00165109 [22:49:25]File name is /storage/ofd_packets/00165109 [22:49:25]Write 301 bytes [22:49:25]NVStorageSaveData done [22:49:25]OFDSenderStorePacket done [22:49:25]KKMCreateOFDPacket done [22:49:25]NVStorageSaveData kkm_last_timestamp [22:49:25]File name is /storage/kkm_last_timestamp [22:49:25]Write 4 bytes [22:49:25]NVStorageSaveData done [22:49:25]ExternCall_PrintAddStr [22:49:25]wPrintStart [22:49:25]Write to MH i2c: 01 00 00 A2 0E B0 [22:49:25]Write i2c OK [22:49:25]MH_I2C_Read... [22:49:25]Read from MH i2c: 01 [22:49:25]MH_I2C_Read... [22:49:25]Read from MH i2c: 01 07 00 [22:49:25]MH_I2C_Read... [22:49:25]Read from MH i2c: 01 07 00 A2 0E 00 00 00 00 00 FF 0F C5 [22:49:25]RasterBufferAndPrint [22:49:25]line Счет N : (1)459212 [22:49:25]line ИНН: 02508201610067 [22:49:25]line Контрольно-Кассовый Чек [22:49:25]line ПРОДАЖА [22:49:25]line ТРК (МРК, ГНК) : 12 [22:49:25]line Товар: 2710124130 [22:49:25]line Аи-92-К-5 [22:49:25]line 15.510 * 65.80 [22:49:25]line = 1020.56 [22:49:25]line НДС 12% НСП 1% [22:49:25]line > о реализуемом товаре [22:49:25]line ОКРУГЛЕНИЕ: -0.56 [22:49:25]line ИТОГО: 1020.00 [22:49:25]line Внесено: 1020.00 [22:49:25]line СДАЧА: 0.00 [22:49:25]line НСП 1% : 9.03 [22:49:25]line НДС 12% : 108.38 [22:49:25]line Наличными: 1020.00 [22:49:25]line Безнал.: 0.00 [22:49:25]line Место: АЗС № 72 "Партнер Нефть" [22:49:25]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [22:49:25]line СНО: Общий режим [22:49:25]line Чек 307 14.07.2024 22:49 [22:49:25]line Смена: 447 ФФД: 1.0 [22:49:25]line ЗНМ: 0300000160 [22:49:25]line РНМ: 0000000000090829 [22:49:25]line Версия ККМ: 001 [22:49:25]line ФМ: 0000000000874718 [22:49:25]line ФД: 165109 [22:49:25]line ФПД: 139218857222066 [22:49:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T224925&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165109&fm=139218857222066&tin=02508201610067®Number=0000000000090829&sum=102000 [22:49:25]OFD Sender: Processing packet 165109 [packets to send 106, broken 105] [22:49:25]ProducePacketName [22:49:25]name=ofd_packets/00165109 [22:49:25]OFD Sender: To server: pG, [22:49:25]CommunicateWithHost lk.salyk.kg:30040 [22:49:25]ConnectInit lk.salyk.kg [22:49:25]written 0, free lines is 4095 [22:49:25]Connected sock=10 [22:49:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 7C 45 07 01 14 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 96 3C 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 A8 8E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 8E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 2A 00 00 00 00 07 04 06 00 70 8E 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 F5 55 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F5 84 02 00 35 04 06 00 7E 9E 6A 87 DF B2 03 04 0E 69 8C DC 44 B6 [22:49:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 90 17 47 00 22 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F5 84 02 00 F4 03 04 00 82 FC 93 66 B6 04 01 00 00 F4 E0 7A B4 10 13 AA 7F [22:49:26]CommunicateWithHost err = 0 [22:49:26]CheckOFDResponse [22:49:26]1017 (14) - 77093643461234 [22:49:26]1041 (16) - 0000000000874718 [22:49:26]1040 (4) - 165109 [22:49:26]1012 (4) - 14.07.2024 16:27 [22:49:26]1206 (1) - 0 [22:49:26]OFD Sender: Remove packet 165109 [22:49:26]ProducePacketName [22:49:26]name=ofd_packets/00165109 [22:49:26]NVStorageDeleteData [22:49:26]Write to MH i2c: 01 00 00 CC 0E DA [22:49:26]Write i2c OK [22:49:26]MH_I2C_Read... [22:49:26]Read from MH i2c: 01 [22:49:26]MH_I2C_Read... [22:49:26]Read from MH i2c: 01 07 00 [22:49:26]MH_I2C_Read... [22:49:26]Read from MH i2c: 01 07 00 CC 0E 00 00 00 00 00 F7 0C E4 [22:49:26]RasterBufferAndPrint [22:49:26]line [22:49:26]line [22:49:26]line [22:49:26]line [22:49:26]line [22:49:26]written 0, free lines is 3326 [22:49:26]MH_Cut [22:49:26]Write to MH i2c: D1 01 00 D3 0E 01 B3 [22:49:26]Write i2c OK [22:49:26]MH_I2C_Read... [22:49:26]Read from MH i2c: D1 [22:49:26]MH_I2C_Read... [22:49:26]Read from MH i2c: D1 01 00 [22:49:26]MH_I2C_Read... [22:49:26]Read from MH i2c: D1 01 00 D3 0E 00 B2 [22:49:26]Write to MH i2c: 01 00 00 D4 0E E2 [22:49:26]Write i2c OK [22:49:26]MH_I2C_Read... [22:49:26]OFD Sender: No OFD packet to send [22:49:26]*** Cut start [22:49:26]*** Partial cut [22:49:26]*** CUTSNS_PIN = 1 [22:49:26]*** CUTSNS_PIN = 0 [22:49:27]*** Brake cut motor [22:49:27]Read from MH i2c: 01 [22:49:27]MH_I2C_Read... [22:49:27]*** Stop cut motor [22:49:27]*** Cut end [22:49:27]Read from MH i2c: 01 07 00 [22:49:27]MH_I2C_Read... [22:49:27]Read from MH i2c: 01 07 00 D4 0E 00 00 00 00 00 FF 0F F7 [22:49:27]process_action close_receipt done [22:49:27]requested_data is exist [22:49:27]produce_requested_data [22:49:27]requested_item fm.sn is exist - process it [22:49:27]wFMCommunicate request_size=4 [22:49:27]MH_SAM_APDU [22:49:27]CAPDU: 80 11 00 00 [22:49:27]Write to MH i2c: E2 08 00 D5 0E 80 11 00 00 00 00 00 00 5D [22:49:27]Write i2c OK [22:49:27]MH_I2C_Read... [22:49:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:49:27]Read from MH i2c: E2 [22:49:27]MH_I2C_Read... [22:49:27]Read from MH i2c: E2 17 00 [22:49:27]MH_I2C_Read... [22:49:27]Read from MH i2c: E2 17 00 D5 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B3 [22:49:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:49:27]wFMCommunicate OK [22:49:27]requested_item fd.num is exist - process it [22:49:27]SAM_PROTO_GetFieldsCounters [22:49:27]wFMCommunicate request_size=4 [22:49:27]MH_SAM_APDU [22:49:27]CAPDU: 80 13 00 00 [22:49:27]Write to MH i2c: E2 08 00 D6 0E 80 13 00 00 00 00 00 00 60 [22:49:27]Write i2c OK [22:49:27]MH_I2C_Read... [22:49:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:49:27]Read from MH i2c: E2 [22:49:27]MH_I2C_Read... [22:49:27]Read from MH i2c: E2 62 00 [22:49:27]MH_I2C_Read... [22:49:27]Read from MH i2c: E2 62 00 D6 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F5 84 02 00 0E 04 04 00 BF 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 5E [22:49:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F5 84 02 00 0E 04 04 00 BF 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 [22:49:27]wFMCommunicate OK [22:49:27]SAM_PROTO_GetFieldsCounters done [22:49:27]requested_item shift.num is exist - process it [22:49:27]requested_item shift.opened is exist - process it [22:49:27]req_shift_opened [22:49:27]FM_GetShiftState [22:49:27]SAM_PROTO_GetShiftState [22:49:27]wFMCommunicate request_size=4 [22:49:27]MH_SAM_APDU [22:49:27]CAPDU: 80 13 01 00 [22:49:27]Write to MH i2c: E2 08 00 D7 0E 80 13 01 00 00 00 00 00 62 [22:49:27]Write i2c OK [22:49:27]MH_I2C_Read... [22:49:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:49:27]Read from MH i2c: E2 [22:49:27]MH_I2C_Read... [22:49:27]Read from MH i2c: E2 0E 00 [22:49:27]MH_I2C_Read... [22:49:27]Read from MH i2c: E2 0E 00 D7 0E 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 E2 [22:49:27]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [22:49:27]wFMCommunicate OK [22:49:27]SAM_PROTO_GetShiftState done [22:49:27]FM_GetShiftState done [22:49:27]req_shift_opened done [22:49:27]requested_item shift.open_date is exist - process it [22:49:27]req_shift_open_date [22:49:27]req_shift_open_date done [22:49:27]produce_requested_data done [22:49:27]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165109,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [22:49:27]process_action_free close_receipt [22:49:27]json_value_free [22:49:27]json_value_free done [22:49:27]process_json_proto returns [22:49:27]Send response to host [22:49:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165109,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [22:49:27]free response buf [22:49:27]execute_script done [22:49:27]execute_script returns [22:49:27]free content buf [22:49:27]Sock 9.Close socket [22:49:27]Sock 9.Thread stoped [22:49:31]OFD Sender: No OFD packet to send [22:49:36]OFD Sender: No OFD packet to send [22:49:41]OFD Sender: No OFD packet to send [22:49:45]accept exits with 7 [22:49:45]New connection [22:49:45]New thread 3066785124 created [22:49:45]Thread 3066928484 joined [22:49:45]Waiting for new connection... [22:49:45] Sock 7.Parse request [22:49:45]Sock 7.Check first char [22:49:45]Sock 7.First char is OK [22:49:45]request: POST /json_proto HTTP/1.0 [22:49:45]Method: POST [22:49:45]URL: /json_proto [22:49:45]Method is POST - this is cgi request [22:49:45]url: /json_proto [22:49:45]query_string will be loaded in cgi processing [22:49:45]execute_cgi json_proto POST (null) [22:49:45]execute_cgi path=json_proto method=POST [22:49:45]POST find Content-Length [22:49:45]Host: 172.17.56.4:8080 [22:49:45]Content-Length: 677 [22:49:45]Content-Type: application/json [22:49:45] [22:49:45]POST finish read [22:49:45]Found Content-Length = 677 [22:49:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459213", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.720, "sum" : 310.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 310.00, "total" : 310.00, "payments": [ { "type": 0, "sum" : 310.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:49:45]execute_script... [22:49:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459213", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.720, "sum" : 310.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 310.00, "total" : 310.00, "payments": [ { "type": 0, "sum" : 310.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:49:45]POST & json_proto [22:49:45]process_json_proto [22:49:45]json parsed OK: [22:49:45]protocol is kg_v1.0 [22:49:45]action value=close_receipt [22:49:45]process_action close_receipt [22:49:45]cmd_close_receipt [22:49:45]MH_GetDate [22:49:45]Write to MH i2c: F0 00 00 D8 0E D5 [22:49:45]Write i2c OK [22:49:45]MH_I2C_Read... [22:49:45]Read from MH i2c: F0 [22:49:45]MH_I2C_Read... [22:49:45]Read from MH i2c: F0 09 00 [22:49:45]MH_I2C_Read... [22:49:45]Read from MH i2c: F0 09 00 D8 0E 00 0B 56 94 66 C9 DC B2 64 F4 [22:49:45]GetLastDocTimeStamp 1720997365 [22:49:45]current date 1720997387 [22:49:45]FM_GetShiftState [22:49:45]SAM_PROTO_GetShiftState [22:49:45]wFMCommunicate request_size=4 [22:49:45]MH_SAM_APDU [22:49:45]CAPDU: 80 13 01 00 [22:49:45]Write to MH i2c: E2 08 00 D9 0E 80 13 01 00 00 00 00 00 64 [22:49:45]Write i2c OK [22:49:45]MH_I2C_Read... [22:49:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:49:45]Read from MH i2c: E2 [22:49:45]MH_I2C_Read... [22:49:45]Read from MH i2c: E2 0E 00 [22:49:45]MH_I2C_Read... [22:49:45]Read from MH i2c: E2 0E 00 D9 0E 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 E4 [22:49:45]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [22:49:45]wFMCommunicate OK [22:49:45]SAM_PROTO_GetShiftState done [22:49:45]FM_GetShiftState done [22:49:45]opened in 1720917342 [22:49:45]opened+sec_in_day 1721003742 [22:49:45]quantity*price = 31057 [22:49:45]sum+1 = 31059 [22:49:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.58 ИТОГО: 310.00 Внесено: 310.00 СДАЧА: 0.00 НСП 1% : 2.75 НДС 12% : 32.98 Наличными: 310.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 308 14.07.2024 22:49 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165110 ФПД: 27535816220015 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T224947&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165110&fm=27535816220015&tin=02508201610067®Number=0000000000090829&sum=31000 [22:49:46]StoreToDocumentArchive [22:49:46]shift 447 fd 165110 [22:49:46]save to /storage/0447/doc_00165110 [22:49:46]save last doc name /storage/0447/doc_00165110 to /storage/kkm_last_doc_name [22:49:46]save OK [22:49:46]Clear old archive folders... [22:49:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:49:46]tlvbuf is 013B6F50 [22:49:46]SAM_PROTO_ClearQueue [22:49:46]wFMCommunicate request_size=4 [22:49:46]MH_SAM_APDU [22:49:46]CAPDU: 80 09 00 00 [22:49:46]Write to MH i2c: E2 08 00 E6 0E 80 09 00 00 00 00 00 00 66 [22:49:46]Write i2c OK [22:49:46]MH_I2C_Read... [22:49:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:49:46]Read from MH i2c: E2 [22:49:46]MH_I2C_Read... [22:49:46]Read from MH i2c: E2 03 00 [22:49:46]MH_I2C_Read... [22:49:46]Read from MH i2c: E2 03 00 E6 0E 00 90 00 68 [22:49:46]RAPDU: 90 00 [22:49:46]wFMCommunicate OK [22:49:46]SAM_PROTO_ClearQueue done [22:49:46]KKMCreateOFDPacket [22:49:46]OFDProtocolAddRootSTLVToBuf [22:49:46]FM_MakeSignedData [22:49:46]FM_MakeSignedData [22:49:46]SAM_PROTO_SignData [22:49:46]wFMCommunicate request_size=4 [22:49:46]MH_SAM_APDU [22:49:46]CAPDU: 80 0D 01 02 [22:49:46]Write to MH i2c: E2 08 00 E7 0E 80 0D 01 02 00 00 00 00 6E [22:49:46]Write i2c OK [22:49:46]MH_I2C_Read... [22:49:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:49:46]Read from MH i2c: E2 [22:49:46]MH_I2C_Read... [22:49:46]Read from MH i2c: E2 03 00 [22:49:46]MH_I2C_Read... [22:49:46]Read from MH i2c: E2 03 00 E7 0E 00 90 00 69 [22:49:46]RAPDU: 90 00 [22:49:46]wFMCommunicate OK [22:49:46]wFMCommunicate request_size=255 [22:49:46]MH_SAM_APDU [22:49:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 70 12 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 52 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 0B 56 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F6 84 02 00 35 04 06 00 19 [22:49:47]Write to MH i2c: E2 02 01 E8 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 70 12 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 52 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 0B 56 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F6 84 02 00 35 04 06 00 19 00 00 A1 [22:49:47]Write i2c OK [22:49:47]MH_I2C_Read... [22:49:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:49:47]Read from MH i2c: E2 [22:49:47]MH_I2C_Read... [22:49:47]Read from MH i2c: E2 03 00 [22:49:47]MH_I2C_Read... [22:49:47]Read from MH i2c: E2 03 00 E8 0E 00 90 00 6A [22:49:47]RAPDU: 90 00 [22:49:47]wFMCommunicate OK [22:49:47]wFMCommunicate request_size=10 [22:49:47]MH_SAM_APDU [22:49:47]CAPDU: 80 0D 02 02 05 0B 2E 8B 5D 6F [22:49:47]Write to MH i2c: E2 0D 00 E9 0E 80 0D 02 02 05 00 0B 2E 8B 5D 6F 00 00 0B [22:49:47]Write i2c OK [22:49:47]MH_I2C_Read... [22:49:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:49:47]Read from MH i2c: E2 [22:49:47]MH_I2C_Read... [22:49:47]Read from MH i2c: E2 03 00 [22:49:47]MH_I2C_Read... [22:49:47]Read from MH i2c: E2 03 00 E9 0E 00 90 00 6B [22:49:47]RAPDU: 90 00 [22:49:47]wFMCommunicate OK [22:49:47]wFMCommunicate request_size=4 [22:49:47]MH_SAM_APDU [22:49:47]CAPDU: 80 0D 03 02 [22:49:47]Write to MH i2c: E2 08 00 EA 0E 80 0D 03 02 00 00 00 00 73 [22:49:47]Write i2c OK [22:49:47]MH_I2C_Read... [22:49:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:49:47]Read from MH i2c: E2 [22:49:47]MH_I2C_Read... [22:49:47]Read from MH i2c: E2 0B 00 [22:49:47]MH_I2C_Read... [22:49:47]Read from MH i2c: E2 0B 00 EA 0E 00 8D 10 D4 A8 60 43 77 0C 90 00 B3 [22:49:47]RAPDU: 8D 10 D4 A8 60 43 77 0C 90 00 [22:49:47]wFMCommunicate OK [22:49:47]SAM_PROTO_SignData done [22:49:47]FM_MakeSignedData done [22:49:47]CreateOFDProtocolMessage [22:49:47]wFMCommunicate request_size=4 [22:49:47]MH_SAM_APDU [22:49:47]CAPDU: 80 11 00 00 [22:49:47]Write to MH i2c: E2 08 00 EB 0E 80 11 00 00 00 00 00 00 73 [22:49:47]Write i2c OK [22:49:47]MH_I2C_Read... [22:49:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:49:47]Read from MH i2c: E2 [22:49:47]MH_I2C_Read... [22:49:47]Read from MH i2c: E2 17 00 [22:49:47]MH_I2C_Read... [22:49:47]Read from MH i2c: E2 17 00 EB 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C9 [22:49:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:49:47]wFMCommunicate OK [22:49:47]CreateOFDProtocolMessage done [22:49:47]OFDSenderStorePacket 165110 [22:49:47]StoreOFDPacket docnum=165110 [22:49:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 54 A7 07 01 20 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 70 12 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 52 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 0B 56 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F6 84 02 00 35 04 06 00 19 0B 2E 8B 5D 6F 8D 10 D4 A8 60 43 77 0C [22:49:47]CheckFolder [22:49:47]dirname=/storage/ofd_packets [22:49:47]CheckFolder done [22:49:47]ProducePacketName [22:49:47]name=ofd_packets/00165110 [22:49:47]NVStorageSaveData ofd_packets/00165110 [22:49:47]File name is /storage/ofd_packets/00165110 [22:49:47]Write 301 bytes [22:49:47]NVStorageSaveData done [22:49:47]OFDSenderStorePacket done [22:49:47]KKMCreateOFDPacket done [22:49:47]NVStorageSaveData kkm_last_timestamp [22:49:47]File name is /storage/kkm_last_timestamp [22:49:47]Write 4 bytes [22:49:47]NVStorageSaveData done [22:49:47]ExternCall_PrintAddStr [22:49:47]wPrintStart [22:49:47]Write to MH i2c: 01 00 00 EC 0E FA [22:49:47]Write i2c OK [22:49:47]MH_I2C_Read... [22:49:47]Read from MH i2c: 01 [22:49:47]MH_I2C_Read... [22:49:47]Read from MH i2c: 01 07 00 [22:49:47]MH_I2C_Read... [22:49:47]Read from MH i2c: 01 07 00 EC 0E 00 00 00 00 00 FF 0F 0F [22:49:47]RasterBufferAndPrint [22:49:47]line Счет N : (1)459213 [22:49:47]line ИНН: 02508201610067 [22:49:47]line Контрольно-Кассовый Чек [22:49:47]line ПРОДАЖА [22:49:47]line ТРК (МРК, ГНК) : 22 [22:49:47]line Товар: 2710124130 [22:49:47]line Аи-92-К-5 [22:49:47]line 4.720 * 65.80 [22:49:47]line = 310.58 [22:49:47]line НДС 12% НСП 1% [22:49:47]line > о реализуемом товаре [22:49:47]line ОКРУГЛЕНИЕ: -0.58 [22:49:47]line ИТОГО: 310.00 [22:49:47]line Внесено: 310.00 [22:49:47]line СДАЧА: 0.00 [22:49:47]line НСП 1% : 2.75 [22:49:47]line НДС 12% : 32.98 [22:49:47]line Наличными: 310.00 [22:49:47]line Безнал.: 0.00 [22:49:47]line Место: АЗС № 72 "Партнер Нефть" [22:49:47]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [22:49:47]line СНО: Общий режим [22:49:47]line Чек 308 14.07.2024 22:49 [22:49:47]line Смена: 447 ФФД: 1.0 [22:49:47]line ЗНМ: 0300000160 [22:49:47]line РНМ: 0000000000090829 [22:49:47]line Версия ККМ: 001 [22:49:47]line ФМ: 0000000000874718 [22:49:47]line ФД: 165110 [22:49:47]line ФПД: 27535816220015 [22:49:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T224947&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165110&fm=27535816220015&tin=02508201610067®Number=0000000000090829&sum=31000 [22:49:47]written 0, free lines is 4095 [22:49:47]OFD Sender: Processing packet 165110 [packets to send 106, broken 105] [22:49:47]ProducePacketName [22:49:47]name=ofd_packets/00165110 [22:49:47]OFD Sender: To server: pG, [22:49:47]CommunicateWithHost lk.salyk.kg:30040 [22:49:47]ConnectInit lk.salyk.kg [22:49:47]Connected sock=10 [22:49:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 54 A7 07 01 20 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 70 12 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 52 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 0B 56 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F6 84 02 00 35 04 06 00 19 0B 2E 8B 5D 6F 8D 10 D4 A8 60 43 77 0C [22:49:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 BC 79 47 00 1B 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 38 37 34 37 31 38 10 04 04 00 F6 84 02 00 F4 03 04 00 98 FC 93 66 B6 04 01 00 00 82 1D 2B F3 B0 C3 3A 1D [22:49:48]CommunicateWithHost err = 0 [22:49:48]CheckOFDResponse [22:49:48]1017 (14) - 77093643461234 [22:49:48]1041 (16) - 0000000000874718 [22:49:48]1040 (4) - 165110 [22:49:48]1012 (4) - 14.07.2024 16:28 [22:49:48]1206 (1) - 0 [22:49:48]OFD Sender: Remove packet 165110 [22:49:48]ProducePacketName [22:49:48]name=ofd_packets/00165110 [22:49:48]NVStorageDeleteData [22:49:48]Write to MH i2c: 01 00 00 16 0F 25 [22:49:48]Write i2c OK [22:49:48]MH_I2C_Read... [22:49:48]Read from MH i2c: 01 [22:49:48]MH_I2C_Read... [22:49:48]Read from MH i2c: 01 07 00 [22:49:48]MH_I2C_Read... [22:49:48]Read from MH i2c: 01 07 00 16 0F 00 00 00 00 00 EE 0C 26 [22:49:48]RasterBufferAndPrint [22:49:48]line [22:49:48]line [22:49:48]line [22:49:48]line [22:49:48]line [22:49:48]written 0, free lines is 3316 [22:49:48]MH_Cut [22:49:48]Write to MH i2c: D1 01 00 1D 0F 01 FE [22:49:48]Write i2c OK [22:49:48]MH_I2C_Read... [22:49:48]Read from MH i2c: D1 [22:49:48]MH_I2C_Read... [22:49:48]Read from MH i2c: D1 01 00 [22:49:48]MH_I2C_Read... [22:49:48]Read from MH i2c: D1 01 00 1D 0F 00 FD [22:49:48]Write to MH i2c: 01 00 00 1E 0F 2D [22:49:48]Write i2c OK [22:49:48]MH_I2C_Read... [22:49:48]OFD Sender: No OFD packet to send [22:49:48]*** Cut start [22:49:48]*** Partial cut [22:49:48]*** CUTSNS_PIN = 1 [22:49:48]*** CUTSNS_PIN = 0 [22:49:49]*** Brake cut motor [22:49:49]Read from MH i2c: 01 [22:49:49]MH_I2C_Read... [22:49:49]*** Stop cut motor [22:49:49]*** Cut end [22:49:49]Read from MH i2c: 01 07 00 [22:49:49]MH_I2C_Read... [22:49:49]Read from MH i2c: 01 07 00 1E 0F 00 00 00 00 00 FF 0F 42 [22:49:49]process_action close_receipt done [22:49:49]requested_data is exist [22:49:49]produce_requested_data [22:49:49]requested_item fm.sn is exist - process it [22:49:49]wFMCommunicate request_size=4 [22:49:49]MH_SAM_APDU [22:49:49]CAPDU: 80 11 00 00 [22:49:49]Write to MH i2c: E2 08 00 1F 0F 80 11 00 00 00 00 00 00 A8 [22:49:49]Write i2c OK [22:49:49]MH_I2C_Read... [22:49:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:49:49]Read from MH i2c: E2 [22:49:49]MH_I2C_Read... [22:49:49]Read from MH i2c: E2 17 00 [22:49:49]MH_I2C_Read... [22:49:49]Read from MH i2c: E2 17 00 1F 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 FE [22:49:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:49:49]wFMCommunicate OK [22:49:49]requested_item fd.num is exist - process it [22:49:49]SAM_PROTO_GetFieldsCounters [22:49:49]wFMCommunicate request_size=4 [22:49:49]MH_SAM_APDU [22:49:49]CAPDU: 80 13 00 00 [22:49:49]Write to MH i2c: E2 08 00 20 0F 80 13 00 00 00 00 00 00 AB [22:49:49]Write i2c OK [22:49:49]MH_I2C_Read... [22:49:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:49:49]Read from MH i2c: E2 [22:49:49]MH_I2C_Read... [22:49:49]Read from MH i2c: E2 62 00 [22:49:49]MH_I2C_Read... [22:49:49]Read from MH i2c: E2 62 00 20 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F6 84 02 00 0E 04 04 00 BF 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 AD [22:49:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F6 84 02 00 0E 04 04 00 BF 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 [22:49:49]wFMCommunicate OK [22:49:49]SAM_PROTO_GetFieldsCounters done [22:49:49]requested_item shift.num is exist - process it [22:49:49]requested_item shift.opened is exist - process it [22:49:49]req_shift_opened [22:49:49]FM_GetShiftState [22:49:49]SAM_PROTO_GetShiftState [22:49:49]wFMCommunicate request_size=4 [22:49:49]MH_SAM_APDU [22:49:49]CAPDU: 80 13 01 00 [22:49:49]Write to MH i2c: E2 08 00 21 0F 80 13 01 00 00 00 00 00 AD [22:49:49]Write i2c OK [22:49:49]MH_I2C_Read... [22:49:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:49:49]Read from MH i2c: E2 [22:49:49]MH_I2C_Read... [22:49:49]Read from MH i2c: E2 0E 00 [22:49:49]MH_I2C_Read... [22:49:49]Read from MH i2c: E2 0E 00 21 0F 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 2D [22:49:49]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [22:49:49]wFMCommunicate OK [22:49:49]SAM_PROTO_GetShiftState done [22:49:49]FM_GetShiftState done [22:49:49]req_shift_opened done [22:49:49]requested_item shift.open_date is exist - process it [22:49:49]req_shift_open_date [22:49:49]req_shift_open_date done [22:49:49]produce_requested_data done [22:49:49]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165110,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [22:49:49]process_action_free close_receipt [22:49:49]json_value_free [22:49:49]json_value_free done [22:49:49]process_json_proto returns [22:49:49]Send response to host [22:49:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165110,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [22:49:49]free response buf [22:49:49]execute_script done [22:49:49]execute_script returns [22:49:49]free content buf [22:49:49]Sock 7.Close socket [22:49:49]Sock 7.Thread stoped [22:49:53]OFD Sender: No OFD packet to send [22:49:58]OFD Sender: No OFD packet to send [22:50:03]OFD Sender: No OFD packet to send [22:50:08]OFD Sender: No OFD packet to send [22:50:13]OFD Sender: No OFD packet to send [22:50:18]OFD Sender: No OFD packet to send [22:50:23]OFD Sender: No OFD packet to send [22:50:28]OFD Sender: No OFD packet to send [22:50:33]OFD Sender: No OFD packet to send [22:50:38]OFD Sender: No OFD packet to send [22:50:43]OFD Sender: No OFD packet to send [22:50:48]OFD Sender: No OFD packet to send [22:50:53]OFD Sender: No OFD packet to send [22:50:58]OFD Sender: No OFD packet to send [22:51:03]OFD Sender: No OFD packet to send [22:51:08]OFD Sender: No OFD packet to send [22:51:13]OFD Sender: No OFD packet to send [22:51:18]OFD Sender: No OFD packet to send [22:51:23]OFD Sender: No OFD packet to send [22:51:28]OFD Sender: No OFD packet to send [22:51:33]OFD Sender: No OFD packet to send [22:51:38]OFD Sender: No OFD packet to send [22:51:43]OFD Sender: No OFD packet to send [22:51:48]OFD Sender: No OFD packet to send [22:51:53]OFD Sender: No OFD packet to send [22:51:58]OFD Sender: No OFD packet to send [22:52:03]OFD Sender: No OFD packet to send [22:52:08]OFD Sender: No OFD packet to send [22:52:13]OFD Sender: No OFD packet to send [22:52:18]OFD Sender: No OFD packet to send [22:52:23]OFD Sender: No OFD packet to send [22:52:28]OFD Sender: No OFD packet to send [22:52:33]OFD Sender: No OFD packet to send [22:52:38]OFD Sender: No OFD packet to send [22:52:43]OFD Sender: No OFD packet to send [22:52:48]OFD Sender: No OFD packet to send [22:52:53]OFD Sender: No OFD packet to send [22:52:58]accept exits with 9 [22:52:58]New connection [22:52:58]New thread 3066928484 created [22:52:58]Thread 3066785124 joined [22:52:58]Waiting for new connection... [22:52:58] Sock 9.Parse request [22:52:58]Sock 9.Check first char [22:52:58]Sock 9.First char is OK [22:52:58]request: POST /json_proto HTTP/1.0 [22:52:58]Method: POST [22:52:58]URL: /json_proto [22:52:58]Method is POST - this is cgi request [22:52:58]url: /json_proto [22:52:58]query_string will be loaded in cgi processing [22:52:58]execute_cgi json_proto POST (null) [22:52:58]execute_cgi path=json_proto method=POST [22:52:58]POST find Content-Length [22:52:58]Host: 172.17.56.4:8080 [22:52:58]Content-Length: 674 [22:52:58]Content-Type: application/json [22:52:58] [22:52:58]POST finish read [22:52:58]Found Content-Length = 674 [22:52:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459214", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 4.870, "sum" : 350.15, "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" ] } } [22:52:58]execute_script... [22:52: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)459214", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 4.870, "sum" : 350.15, "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" ] } } [22:52:58]POST & json_proto [22:52:58]process_json_proto [22:52:58]json parsed OK: [22:52:58]protocol is kg_v1.0 [22:52:58]action value=close_receipt [22:52:58]process_action close_receipt [22:52:58]cmd_close_receipt [22:52:58]MH_GetDate [22:52:58]Write to MH i2c: F0 00 00 22 0F 20 [22:52:58]Write i2c OK [22:52:58]MH_I2C_Read... [22:52:58]Read from MH i2c: F0 [22:52:58]MH_I2C_Read... [22:52:58]Read from MH i2c: F0 09 00 [22:52:58]MH_I2C_Read... [22:52:58]Read from MH i2c: F0 09 00 22 0F 00 CC 56 94 66 C9 DC B2 64 00 [22:52:58]GetLastDocTimeStamp 1720997387 [22:52:58]current date 1720997580 [22:52:58]FM_GetShiftState [22:52:58]SAM_PROTO_GetShiftState [22:52:58]wFMCommunicate request_size=4 [22:52:58]MH_SAM_APDU [22:52:58]CAPDU: 80 13 01 00 [22:52:58]Write to MH i2c: E2 08 00 23 0F 80 13 01 00 00 00 00 00 AF [22:52:58]Write i2c OK [22:52:58]MH_I2C_Read... [22:52:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:52:58]Read from MH i2c: E2 [22:52:58]MH_I2C_Read... [22:52:58]Read from MH i2c: E2 0E 00 [22:52:58]MH_I2C_Read... [22:52:58]Read from MH i2c: E2 0E 00 23 0F 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 2F [22:52:58]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [22:52:58]wFMCommunicate OK [22:52:58]SAM_PROTO_GetShiftState done [22:52:58]FM_GetShiftState done [22:52:58]opened in 1720917342 [22:52:58]opened+sec_in_day 1721003742 [22:52:58]quantity*price = 35015 [22:52:58]sum+1 = 35016 [22:52:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.18 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 309 14.07.2024 22:53 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165111 ФПД: 218311683596652 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T225300&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165111&fm=218311683596652&tin=02508201610067®Number=0000000000090829&sum=35000 [22:52:59]StoreToDocumentArchive [22:52:59]shift 447 fd 165111 [22:52:59]save to /storage/0447/doc_00165111 [22:52:59]save last doc name /storage/0447/doc_00165111 to /storage/kkm_last_doc_name [22:52:59]save OK [22:52:59]Clear old archive folders... [22:52:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:52:59]tlvbuf is 01352A30 [22:52:59]SAM_PROTO_ClearQueue [22:52:59]wFMCommunicate request_size=4 [22:52:59]MH_SAM_APDU [22:52:59]CAPDU: 80 09 00 00 [22:52:59]Write to MH i2c: E2 08 00 30 0F 80 09 00 00 00 00 00 00 B1 [22:52:59]Write i2c OK [22:52:59]MH_I2C_Read... [22:52:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:52:59]Read from MH i2c: E2 [22:52:59]MH_I2C_Read... [22:52:59]Read from MH i2c: E2 03 00 [22:52:59]MH_I2C_Read... [22:52:59]Read from MH i2c: E2 03 00 30 0F 00 90 00 B3 [22:52:59]RAPDU: 90 00 [22:52:59]wFMCommunicate OK [22:52:59]SAM_PROTO_ClearQueue done [22:52:59]KKMCreateOFDPacket [22:52:59]OFDProtocolAddRootSTLVToBuf [22:52:59]FM_MakeSignedData [22:52:59]FM_MakeSignedData [22:52:59]SAM_PROTO_SignData [22:52:59]wFMCommunicate request_size=4 [22:52:59]MH_SAM_APDU [22:52:59]CAPDU: 80 0D 01 02 [22:52:59]Write to MH i2c: E2 08 00 31 0F 80 0D 01 02 00 00 00 00 B9 [22:52:59]Write i2c OK [22:52:59]MH_I2C_Read... [22:52:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:52:59]Read from MH i2c: E2 [22:52:59]MH_I2C_Read... [22:52:59]Read from MH i2c: E2 03 00 [22:52:59]MH_I2C_Read... [22:52:59]Read from MH i2c: E2 03 00 31 0F 00 90 00 B4 [22:52:59]RAPDU: 90 00 [22:52:59]wFMCommunicate OK [22:52:59]wFMCommunicate request_size=255 [22:52:59]MH_SAM_APDU [22:52: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 06 13 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 C7 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 86 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 35 01 00 00 F4 03 04 00 CC 56 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F7 84 02 00 35 04 06 00 C6 8D A6 59 [22:52:59]Write to MH i2c: E2 02 01 32 0F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 06 13 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 C7 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 86 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 35 01 00 00 F4 03 04 00 CC 56 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F7 84 02 00 35 04 06 00 C6 8D A6 59 00 00 E2 [22:52:59]Write i2c OK [22:52:59]MH_I2C_Read... [22:52:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:52:59]Read from MH i2c: E2 [22:52:59]MH_I2C_Read... [22:52:59]Read from MH i2c: E2 03 00 [22:52:59]MH_I2C_Read... [22:52:59]Read from MH i2c: E2 03 00 32 0F 00 90 00 B5 [22:52:59]RAPDU: 90 00 [22:52:59]wFMCommunicate OK [22:52:59]wFMCommunicate request_size=7 [22:52:59]MH_SAM_APDU [22:52:59]CAPDU: 80 0D 02 02 02 E1 6C [22:52:59]Write to MH i2c: E2 0A 00 33 0F 80 0D 02 02 02 00 E1 6C 00 00 0D [22:52:59]Write i2c OK [22:52:59]MH_I2C_Read... [22:52:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:52:59]Read from MH i2c: E2 [22:52:59]MH_I2C_Read... [22:52:59]Read from MH i2c: E2 03 00 [22:52:59]MH_I2C_Read... [22:52:59]Read from MH i2c: E2 03 00 33 0F 00 90 00 B6 [22:52:59]RAPDU: 90 00 [22:52:59]wFMCommunicate OK [22:52:59]wFMCommunicate request_size=4 [22:52:59]MH_SAM_APDU [22:52:59]CAPDU: 80 0D 03 02 [22:52:59]Write to MH i2c: E2 08 00 34 0F 80 0D 03 02 00 00 00 00 BE [22:52:59]Write i2c OK [22:52:59]MH_I2C_Read... [22:52:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:52:59]Read from MH i2c: E2 [22:52:59]MH_I2C_Read... [22:52:59]Read from MH i2c: E2 0B 00 [22:52:59]MH_I2C_Read... [22:52:59]Read from MH i2c: E2 0B 00 34 0F 00 3D B0 84 11 A7 DF 1F CA 90 00 B0 [22:52:59]RAPDU: 3D B0 84 11 A7 DF 1F CA 90 00 [22:52:59]wFMCommunicate OK [22:52:59]SAM_PROTO_SignData done [22:52:59]FM_MakeSignedData done [22:52:59]CreateOFDProtocolMessage [22:52:59]wFMCommunicate request_size=4 [22:52:59]MH_SAM_APDU [22:52:59]CAPDU: 80 11 00 00 [22:52:59]Write to MH i2c: E2 08 00 35 0F 80 11 00 00 00 00 00 00 BE [22:52:59]Write i2c OK [22:52:59]MH_I2C_Read... [22:52:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:52:59]Read from MH i2c: E2 [22:52:59]MH_I2C_Read... [22:52:59]Read from MH i2c: E2 17 00 [22:52:59]MH_I2C_Read... [22:52:59]Read from MH i2c: E2 17 00 35 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 14 [22:52:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:52:59]wFMCommunicate OK [22:52:59]CreateOFDProtocolMessage done [22:52:59]OFDSenderStorePacket 165111 [22:52:59]StoreOFDPacket docnum=165111 [22:52:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 C7 9E 04 01 A6 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 06 13 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 C7 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 86 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 35 01 00 00 F4 03 04 00 CC 56 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F7 84 02 00 35 04 06 00 C6 8D A6 59 E1 6C 3D B0 84 11 A7 DF 1F CA [22:52:59]CheckFolder [22:52:59]dirname=/storage/ofd_packets [22:52:59]CheckFolder done [22:52:59]ProducePacketName [22:52:59]name=ofd_packets/00165111 [22:52:59]NVStorageSaveData ofd_packets/00165111 [22:52:59]File name is /storage/ofd_packets/00165111 [22:52:59]Write 298 bytes [22:52:59]NVStorageSaveData done [22:52:59]OFDSenderStorePacket done [22:52:59]KKMCreateOFDPacket done [22:52:59]NVStorageSaveData kkm_last_timestamp [22:52:59]File name is /storage/kkm_last_timestamp [22:52:59]Write 4 bytes [22:52:59]NVStorageSaveData done [22:52:59]ExternCall_PrintAddStr [22:52:59]wPrintStart [22:52:59]Write to MH i2c: 01 00 00 36 0F 45 [22:52:59]Write i2c OK [22:52:59]MH_I2C_Read... [22:52:59]Read from MH i2c: 01 [22:52:59]MH_I2C_Read... [22:52:59]Read from MH i2c: 01 07 00 [22:52:59]MH_I2C_Read... [22:52:59]Read from MH i2c: 01 07 00 36 0F 00 00 00 00 00 FF 0F 5A [22:52:59]RasterBufferAndPrint [22:52:59]line Счет N : (1)459214 [22:52:59]line ИНН: 02508201610067 [22:52:59]line Контрольно-Кассовый Чек [22:52:59]line ПРОДАЖА [22:52:59]line ТРК (МРК, ГНК) : 21 [22:52:59]line Товар: 2710194210 [22:52:59]line ДТ-К-5 [22:52:59]line 4.870 * 71.90 [22:52:59]line = 350.15 [22:52:59]line НДС 12% НСП 1% [22:52:59]line > о реализуемом товаре [22:52:59]line ОКРУГЛЕНИЕ: -0.15 [22:52:59]line ИТОГО: 350.00 [22:52:59]line Внесено: 350.00 [22:52:59]line СДАЧА: 0.00 [22:52:59]line НСП 1% : 3.10 [22:52:59]line НДС 12% : 37.18 [22:52:59]line Наличными: 350.00 [22:52:59]line Безнал.: 0.00 [22:52:59]line Место: АЗС № 72 "Партнер Нефть" [22:52:59]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [22:52:59]line СНО: Общий режим [22:52:59]line Чек 309 14.07.2024 22:53 [22:52:59]line Смена: 447 ФФД: 1.0 [22:52:59]line ЗНМ: 0300000160 [22:52:59]line РНМ: 0000000000090829 [22:52:59]line Версия ККМ: 001 [22:52:59]line ФМ: 0000000000874718 [22:52:59]line ФД: 165111 [22:52:59]line ФПД: 218311683596652 [22:52:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T225300&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165111&fm=218311683596652&tin=02508201610067®Number=0000000000090829&sum=35000 [22:53:00]OFD Sender: Processing packet 165111 [packets to send 106, broken 105] [22:53:00]ProducePacketName [22:53:00]name=ofd_packets/00165111 [22:53:00]OFD Sender: To server: pG, [22:53:00]CommunicateWithHost lk.salyk.kg:30040 [22:53:00]ConnectInit lk.salyk.kg [22:53:00]written 0, free lines is 4095 [22:53:00]Connected sock=10 [22:53:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 C7 9E 04 01 A6 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 06 13 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 C7 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 86 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 35 01 00 00 F4 03 04 00 CC 56 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F7 84 02 00 35 04 06 00 C6 8D A6 59 E1 6C 3D B0 84 11 A7 DF 1F CA [22:53:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 53 63 47 00 4E A3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F7 84 02 00 F4 03 04 00 58 FD 93 66 B6 04 01 00 00 7C A8 B6 E5 8E F2 F5 A4 [22:53:00]CommunicateWithHost err = 0 [22:53:00]CheckOFDResponse [22:53:00]1017 (14) - 77093643461234 [22:53:00]1041 (16) - 0000000000874718 [22:53:00]1040 (4) - 165111 [22:53:00]1012 (4) - 14.07.2024 16:31 [22:53:00]1206 (1) - 0 [22:53:00]OFD Sender: Remove packet 165111 [22:53:00]ProducePacketName [22:53:00]name=ofd_packets/00165111 [22:53:00]NVStorageDeleteData [22:53:00]Write to MH i2c: 01 00 00 60 0F 6F [22:53:00]Write i2c OK [22:53:00]MH_I2C_Read... [22:53:00]Read from MH i2c: 01 [22:53:00]MH_I2C_Read... [22:53:00]Read from MH i2c: 01 07 00 [22:53:00]MH_I2C_Read... [22:53:00]Read from MH i2c: 01 07 00 60 0F 00 00 00 00 00 E8 0C 6A [22:53:00]RasterBufferAndPrint [22:53:00]line [22:53:00]line [22:53:00]line [22:53:00]line [22:53:00]line [22:53:00]written 0, free lines is 3313 [22:53:00]MH_Cut [22:53:00]Write to MH i2c: D1 01 00 67 0F 01 48 [22:53:00]Write i2c OK [22:53:00]MH_I2C_Read... [22:53:00]Read from MH i2c: D1 [22:53:00]MH_I2C_Read... [22:53:00]Read from MH i2c: D1 01 00 [22:53:00]MH_I2C_Read... [22:53:00]Read from MH i2c: D1 01 00 67 0F 00 47 [22:53:00]Write to MH i2c: 01 00 00 68 0F 77 [22:53:00]Write i2c OK [22:53:00]MH_I2C_Read... [22:53:01]OFD Sender: No OFD packet to send [22:53:01]*** Cut start [22:53:01]*** Partial cut [22:53:01]*** CUTSNS_PIN = 1 [22:53:01]*** CUTSNS_PIN = 0 [22:53:01]*** Brake cut motor [22:53:01]Read from MH i2c: 01 [22:53:01]MH_I2C_Read... [22:53:01]*** Stop cut motor [22:53:01]*** Cut end [22:53:01]Read from MH i2c: 01 07 00 [22:53:02]MH_I2C_Read... [22:53:02]Read from MH i2c: 01 07 00 68 0F 00 00 00 00 00 FF 0F 8C [22:53:02]process_action close_receipt done [22:53:02]requested_data is exist [22:53:02]produce_requested_data [22:53:02]requested_item fm.sn is exist - process it [22:53:02]wFMCommunicate request_size=4 [22:53:02]MH_SAM_APDU [22:53:02]CAPDU: 80 11 00 00 [22:53:02]Write to MH i2c: E2 08 00 69 0F 80 11 00 00 00 00 00 00 F2 [22:53:02]Write i2c OK [22:53:02]MH_I2C_Read... [22:53:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:53:02]Read from MH i2c: E2 [22:53:02]MH_I2C_Read... [22:53:02]Read from MH i2c: E2 17 00 [22:53:02]MH_I2C_Read... [22:53:02]Read from MH i2c: E2 17 00 69 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 48 [22:53:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:53:02]wFMCommunicate OK [22:53:02]requested_item fd.num is exist - process it [22:53:02]SAM_PROTO_GetFieldsCounters [22:53:02]wFMCommunicate request_size=4 [22:53:02]MH_SAM_APDU [22:53:02]CAPDU: 80 13 00 00 [22:53:02]Write to MH i2c: E2 08 00 6A 0F 80 13 00 00 00 00 00 00 F5 [22:53:02]Write i2c OK [22:53:02]MH_I2C_Read... [22:53:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:53:02]Read from MH i2c: E2 [22:53:02]MH_I2C_Read... [22:53:02]Read from MH i2c: E2 62 00 [22:53:02]MH_I2C_Read... [22:53:02]Read from MH i2c: E2 62 00 6A 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F7 84 02 00 0E 04 04 00 BF 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 FB [22:53:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F7 84 02 00 0E 04 04 00 BF 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 [22:53:02]wFMCommunicate OK [22:53:02]SAM_PROTO_GetFieldsCounters done [22:53:02]requested_item shift.num is exist - process it [22:53:02]requested_item shift.opened is exist - process it [22:53:02]req_shift_opened [22:53:02]FM_GetShiftState [22:53:02]SAM_PROTO_GetShiftState [22:53:02]wFMCommunicate request_size=4 [22:53:02]MH_SAM_APDU [22:53:02]CAPDU: 80 13 01 00 [22:53:02]Write to MH i2c: E2 08 00 6B 0F 80 13 01 00 00 00 00 00 F7 [22:53:02]Write i2c OK [22:53:02]MH_I2C_Read... [22:53:02]Read from MH i2c: E2 [22:53:02]MH_I2C_Read... [22:53:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:53:02]Read from MH i2c: E2 0E 00 [22:53:02]MH_I2C_Read... [22:53:02]Read from MH i2c: E2 0E 00 6B 0F 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 77 [22:53:02]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [22:53:02]wFMCommunicate OK [22:53:02]SAM_PROTO_GetShiftState done [22:53:02]FM_GetShiftState done [22:53:02]req_shift_opened done [22:53:02]requested_item shift.open_date is exist - process it [22:53:02]req_shift_open_date [22:53:02]req_shift_open_date done [22:53:02]produce_requested_data done [22:53:02]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165111,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [22:53:02]process_action_free close_receipt [22:53:02]json_value_free [22:53:02]json_value_free done [22:53:02]process_json_proto returns [22:53:02]Send response to host [22:53:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165111,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [22:53:02]free response buf [22:53:02]execute_script done [22:53:02]execute_script returns [22:53:02]free content buf [22:53:02]Sock 9.Close socket [22:53:02]Sock 9.Thread stoped [22:53:06]OFD Sender: No OFD packet to send [22:53:11]OFD Sender: No OFD packet to send [22:53:16]OFD Sender: No OFD packet to send [22:53:21]OFD Sender: No OFD packet to send [22:53:26]OFD Sender: No OFD packet to send [22:53:31]OFD Sender: No OFD packet to send [22:53:36]OFD Sender: No OFD packet to send [22:53:41]OFD Sender: No OFD packet to send [22:53:46]OFD Sender: No OFD packet to send [22:53:51]OFD Sender: No OFD packet to send [22:53:56]OFD Sender: No OFD packet to send [22:54:01]OFD Sender: No OFD packet to send [22:54:06]OFD Sender: No OFD packet to send [22:54:11]OFD Sender: No OFD packet to send [22:54:16]OFD Sender: No OFD packet to send [22:54:21]OFD Sender: No OFD packet to send [22:54:26]OFD Sender: No OFD packet to send [22:54:31]OFD Sender: No OFD packet to send [22:54:36]OFD Sender: No OFD packet to send [22:54:41]OFD Sender: No OFD packet to send [22:54:46]OFD Sender: No OFD packet to send [22:54:51]OFD Sender: No OFD packet to send [22:54:56]OFD Sender: No OFD packet to send [22:55:01]OFD Sender: No OFD packet to send [22:55:06]OFD Sender: No OFD packet to send [22:55:11]OFD Sender: No OFD packet to send [22:55:16]OFD Sender: No OFD packet to send [22:55:21]OFD Sender: No OFD packet to send [22:55:26]OFD Sender: No OFD packet to send [22:55:31]OFD Sender: No OFD packet to send [22:55:36]OFD Sender: No OFD packet to send [22:55:41]OFD Sender: No OFD packet to send [22:55:46]OFD Sender: No OFD packet to send [22:55:51]OFD Sender: No OFD packet to send [22:55:56]OFD Sender: No OFD packet to send [22:56:01]OFD Sender: No OFD packet to send [22:56:06]OFD Sender: No OFD packet to send [22:56:11]OFD Sender: No OFD packet to send [22:56:16]OFD Sender: No OFD packet to send [22:56:21]OFD Sender: No OFD packet to send [22:56:26]OFD Sender: No OFD packet to send [22:56:31]OFD Sender: No OFD packet to send [22:56:36]OFD Sender: No OFD packet to send [22:56:41]OFD Sender: No OFD packet to send [22:56:46]OFD Sender: No OFD packet to send [22:56:51]OFD Sender: No OFD packet to send [22:56:56]OFD Sender: No OFD packet to send [22:57:01]OFD Sender: No OFD packet to send [22:57:06]OFD Sender: No OFD packet to send [22:57:11]OFD Sender: No OFD packet to send [22:57:16]OFD Sender: No OFD packet to send [22:57:21]OFD Sender: No OFD packet to send [22:57:23]accept exits with 7 [22:57:23]New connection [22:57:23]New thread 3066785124 created [22:57:23]Thread 3066928484 joined [22:57:23]Waiting for new connection... [22:57:23] Sock 7.Parse request [22:57:23]Sock 7.Check first char [22:57:23]Sock 7.First char is OK [22:57:23]request: POST /json_proto HTTP/1.0 [22:57:23]Method: POST [22:57:23]URL: /json_proto [22:57:23]Method is POST - this is cgi request [22:57:23]url: /json_proto [22:57:23]query_string will be loaded in cgi processing [22:57:23]execute_cgi json_proto POST (null) [22:57:23]execute_cgi path=json_proto method=POST [22:57:23]POST find Content-Length [22:57:23]Host: 172.17.56.4:8080 [22:57:23]Content-Length: 677 [22:57:23]Content-Type: application/json [22:57:23] [22:57:23]POST finish read [22:57:23]Found Content-Length = 677 [22:57:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459215", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.800, "sum" : 250.04, "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" ] } } [22:57:23]execute_script... [22:57: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)459215", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.800, "sum" : 250.04, "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" ] } } [22:57:23]POST & json_proto [22:57:23]process_json_proto [22:57:23]json parsed OK: [22:57:23]protocol is kg_v1.0 [22:57:23]action value=close_receipt [22:57:23]process_action close_receipt [22:57:23]cmd_close_receipt [22:57:23]MH_GetDate [22:57:23]Write to MH i2c: F0 00 00 6C 0F 6A [22:57:23]Write i2c OK [22:57:23]MH_I2C_Read... [22:57:23]Read from MH i2c: F0 [22:57:23]MH_I2C_Read... [22:57:23]Read from MH i2c: F0 09 00 [22:57:23]MH_I2C_Read... [22:57:23]Read from MH i2c: F0 09 00 6C 0F 00 D5 57 94 66 C9 DC B2 64 54 [22:57:23]GetLastDocTimeStamp 1720997580 [22:57:23]current date 1720997845 [22:57:23]FM_GetShiftState [22:57:23]SAM_PROTO_GetShiftState [22:57:23]wFMCommunicate request_size=4 [22:57:23]MH_SAM_APDU [22:57:23]CAPDU: 80 13 01 00 [22:57:23]Write to MH i2c: E2 08 00 6D 0F 80 13 01 00 00 00 00 00 F9 [22:57:23]Write i2c OK [22:57:23]MH_I2C_Read... [22:57:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:57:23]Read from MH i2c: E2 [22:57:23]MH_I2C_Read... [22:57:23]Read from MH i2c: E2 0E 00 [22:57:23]MH_I2C_Read... [22:57:23]Read from MH i2c: E2 0E 00 6D 0F 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 79 [22:57:23]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [22:57:23]wFMCommunicate OK [22:57:23]SAM_PROTO_GetShiftState done [22:57:23]FM_GetShiftState done [22:57:23]opened in 1720917342 [22:57:23]opened+sec_in_day 1721003742 [22:57:23]quantity*price = 25004 [22:57:23]sum+1 = 25005 [22:57:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.55 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 310 14.07.2024 22:57 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165112 ФПД: 11982102345530 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T225725&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165112&fm=11982102345530&tin=02508201610067®Number=0000000000090829&sum=25000 [22:57:24]StoreToDocumentArchive [22:57:24]shift 447 fd 165112 [22:57:24]save to /storage/0447/doc_00165112 [22:57:24]save last doc name /storage/0447/doc_00165112 to /storage/kkm_last_doc_name [22:57:24]save OK [22:57:24]Clear old archive folders... [22:57:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:57:24]tlvbuf is 013C08A0 [22:57:24]SAM_PROTO_ClearQueue [22:57:24]wFMCommunicate request_size=4 [22:57:24]MH_SAM_APDU [22:57:24]CAPDU: 80 09 00 00 [22:57:24]Write to MH i2c: E2 08 00 7A 0F 80 09 00 00 00 00 00 00 FB [22:57:24]Write i2c OK [22:57:24]MH_I2C_Read... [22:57:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:57:24]Read from MH i2c: E2 [22:57:24]MH_I2C_Read... [22:57:24]Read from MH i2c: E2 03 00 [22:57:24]MH_I2C_Read... [22:57:24]Read from MH i2c: E2 03 00 7A 0F 00 90 00 FD [22:57:24]RAPDU: 90 00 [22:57:24]wFMCommunicate OK [22:57:24]SAM_PROTO_ClearQueue done [22:57:24]KKMCreateOFDPacket [22:57:24]OFDProtocolAddRootSTLVToBuf [22:57:24]FM_MakeSignedData [22:57:24]FM_MakeSignedData [22:57:24]SAM_PROTO_SignData [22:57:24]wFMCommunicate request_size=4 [22:57:24]MH_SAM_APDU [22:57:24]CAPDU: 80 0D 01 02 [22:57:24]Write to MH i2c: E2 08 00 7B 0F 80 0D 01 02 00 00 00 00 03 [22:57:24]Write i2c OK [22:57:24]MH_I2C_Read... [22:57:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:57:24]Read from MH i2c: E2 [22:57:24]MH_I2C_Read... [22:57:24]Read from MH i2c: E2 03 00 [22:57:24]MH_I2C_Read... [22:57:24]Read from MH i2c: E2 03 00 7B 0F 00 90 00 FE [22:57:24]RAPDU: 90 00 [22:57:24]wFMCommunicate OK [22:57:24]wFMCommunicate request_size=255 [22:57:24]MH_SAM_APDU [22:57:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 AC 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 D5 57 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F8 84 02 00 35 04 06 00 0A [22:57:24]Write to MH i2c: E2 02 01 7C 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 AC 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 D5 57 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F8 84 02 00 35 04 06 00 0A 00 00 D0 [22:57:24]Write i2c OK [22:57:24]MH_I2C_Read... [22:57:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:57:24]Read from MH i2c: E2 [22:57:24]MH_I2C_Read... [22:57:24]Read from MH i2c: E2 03 00 [22:57:24]MH_I2C_Read... [22:57:24]Read from MH i2c: E2 03 00 7C 0F 00 90 00 FF [22:57:24]RAPDU: 90 00 [22:57:24]wFMCommunicate OK [22:57:24]wFMCommunicate request_size=10 [22:57:24]MH_SAM_APDU [22:57:24]CAPDU: 80 0D 02 02 05 E5 CC F4 37 3A [22:57:24]Write to MH i2c: E2 0D 00 7D 0F 80 0D 02 02 05 00 E5 CC F4 37 3A 00 00 26 [22:57:24]Write i2c OK [22:57:24]MH_I2C_Read... [22:57:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:57:24]Read from MH i2c: E2 [22:57:24]MH_I2C_Read... [22:57:24]Read from MH i2c: E2 03 00 [22:57:24]MH_I2C_Read... [22:57:24]Read from MH i2c: E2 03 00 7D 0F 00 90 00 00 [22:57:24]RAPDU: 90 00 [22:57:24]wFMCommunicate OK [22:57:24]wFMCommunicate request_size=4 [22:57:24]MH_SAM_APDU [22:57:24]CAPDU: 80 0D 03 02 [22:57:24]Write to MH i2c: E2 08 00 7E 0F 80 0D 03 02 00 00 00 00 08 [22:57:24]Write i2c OK [22:57:24]MH_I2C_Read... [22:57:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:57:24]Read from MH i2c: E2 [22:57:24]MH_I2C_Read... [22:57:24]Read from MH i2c: E2 0B 00 [22:57:24]MH_I2C_Read... [22:57:24]Read from MH i2c: E2 0B 00 7E 0F 00 B0 8E 67 FD CB A2 F8 C3 90 00 D3 [22:57:24]RAPDU: B0 8E 67 FD CB A2 F8 C3 90 00 [22:57:24]wFMCommunicate OK [22:57:24]SAM_PROTO_SignData done [22:57:24]FM_MakeSignedData done [22:57:24]CreateOFDProtocolMessage [22:57:24]wFMCommunicate request_size=4 [22:57:24]MH_SAM_APDU [22:57:24]CAPDU: 80 11 00 00 [22:57:24]Write to MH i2c: E2 08 00 7F 0F 80 11 00 00 00 00 00 00 08 [22:57:24]Write i2c OK [22:57:24]MH_I2C_Read... [22:57:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:57:24]Read from MH i2c: E2 [22:57:24]MH_I2C_Read... [22:57:24]Read from MH i2c: E2 17 00 [22:57:24]MH_I2C_Read... [22:57:24]Read from MH i2c: E2 17 00 7F 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 5E [22:57:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:57:24]wFMCommunicate OK [22:57:24]CreateOFDProtocolMessage done [22:57:24]OFDSenderStorePacket 165112 [22:57:24]StoreOFDPacket docnum=165112 [22:57:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 FC A9 07 01 D6 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 AC 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 D5 57 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F8 84 02 00 35 04 06 00 0A E5 CC F4 37 3A B0 8E 67 FD CB A2 F8 C3 [22:57:24]CheckFolder [22:57:24]dirname=/storage/ofd_packets [22:57:24]CheckFolder done [22:57:24]ProducePacketName [22:57:24]name=ofd_packets/00165112 [22:57:24]NVStorageSaveData ofd_packets/00165112 [22:57:24]File name is /storage/ofd_packets/00165112 [22:57:24]Write 301 bytes [22:57:24]NVStorageSaveData done [22:57:24]OFDSenderStorePacket done [22:57:24]KKMCreateOFDPacket done [22:57:24]NVStorageSaveData kkm_last_timestamp [22:57:24]File name is /storage/kkm_last_timestamp [22:57:24]Write 4 bytes [22:57:24]NVStorageSaveData done [22:57:24]ExternCall_PrintAddStr [22:57:24]wPrintStart [22:57:24]Write to MH i2c: 01 00 00 80 0F 8F [22:57:24]Write i2c OK [22:57:24]MH_I2C_Read... [22:57:24]Read from MH i2c: 01 [22:57:24]MH_I2C_Read... [22:57:24]Read from MH i2c: 01 07 00 [22:57:24]MH_I2C_Read... [22:57:24]Read from MH i2c: 01 07 00 80 0F 00 00 00 00 00 FF 0F A4 [22:57:24]RasterBufferAndPrint [22:57:24]line Счет N : (1)459215 [22:57:24]line ИНН: 02508201610067 [22:57:24]line Контрольно-Кассовый Чек [22:57:24]line ПРОДАЖА [22:57:24]line ТРК (МРК, ГНК) : 12 [22:57:24]line Товар: 2710124130 [22:57:24]line Аи-92-К-5 [22:57:24]line 3.800 * 65.80 [22:57:24]line = 250.04 [22:57:24]line НДС 12% НСП 1% [22:57:24]line > о реализуемом товаре [22:57:24]line ОКРУГЛЕНИЕ: -0.04 [22:57:24]line ИТОГО: 250.00 [22:57:24]line Внесено: 250.00 [22:57:24]line СДАЧА: 0.00 [22:57:24]line НСП 1% : 2.21 [22:57:24]line НДС 12% : 26.55 [22:57:24]line Наличными: 250.00 [22:57:24]line Безнал.: 0.00 [22:57:24]line Место: АЗС № 72 "Партнер Нефть" [22:57:24]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [22:57:24]line СНО: Общий режим [22:57:24]line Чек 310 14.07.2024 22:57 [22:57:24]line Смена: 447 ФФД: 1.0 [22:57:24]line ЗНМ: 0300000160 [22:57:24]line РНМ: 0000000000090829 [22:57:24]line Версия ККМ: 001 [22:57:24]line ФМ: 0000000000874718 [22:57:24]line ФД: 165112 [22:57:24]line ФПД: 11982102345530 [22:57:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T225725&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165112&fm=11982102345530&tin=02508201610067®Number=0000000000090829&sum=25000 [22:57:25]OFD Sender: Processing packet 165112 [packets to send 106, broken 105] [22:57:25]ProducePacketName [22:57:25]name=ofd_packets/00165112 [22:57:25]OFD Sender: To server: pG, [22:57:25]CommunicateWithHost lk.salyk.kg:30040 [22:57:25]ConnectInit lk.salyk.kg [22:57:25]written 0, free lines is 4095 [22:57:25]Connected sock=10 [22:57:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 FC A9 07 01 D6 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 AC 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 D5 57 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F8 84 02 00 35 04 06 00 0A E5 CC F4 37 3A B0 8E 67 FD CB A2 F8 C3 [22:57:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 EF C8 47 00 05 CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F8 84 02 00 F4 03 04 00 61 FE 93 66 B6 04 01 00 00 C9 29 53 06 9B 5D 01 88 [22:57:25]CommunicateWithHost err = 0 [22:57:25]CheckOFDResponse [22:57:25]1017 (14) - 77093643461234 [22:57:25]1041 (16) - 0000000000874718 [22:57:25]1040 (4) - 165112 [22:57:25]1012 (4) - 14.07.2024 16:35 [22:57:25]1206 (1) - 0 [22:57:25]OFD Sender: Remove packet 165112 [22:57:25]ProducePacketName [22:57:25]name=ofd_packets/00165112 [22:57:25]NVStorageDeleteData [22:57:25]Write to MH i2c: 01 00 00 AA 0F B9 [22:57:25]Write i2c OK [22:57:25]MH_I2C_Read... [22:57:25]Read from MH i2c: 01 [22:57:25]MH_I2C_Read... [22:57:25]Read from MH i2c: 01 07 00 [22:57:25]MH_I2C_Read... [22:57:25]Read from MH i2c: 01 07 00 AA 0F 00 00 00 00 00 FB 0C C7 [22:57:25]RasterBufferAndPrint [22:57:25]line [22:57:25]line [22:57:25]line [22:57:25]line [22:57:25]line [22:57:25]written 0, free lines is 3329 [22:57:25]MH_Cut [22:57:25]Write to MH i2c: D1 01 00 B1 0F 01 92 [22:57:25]Write i2c OK [22:57:25]MH_I2C_Read... [22:57:25]Read from MH i2c: D1 [22:57:25]MH_I2C_Read... [22:57:25]Read from MH i2c: D1 01 00 [22:57:25]MH_I2C_Read... [22:57:25]Read from MH i2c: D1 01 00 B1 0F 00 91 [22:57:25]Write to MH i2c: 01 00 00 B2 0F C1 [22:57:25]Write i2c OK [22:57:25]MH_I2C_Read... [22:57:26]OFD Sender: No OFD packet to send [22:57:26]*** Cut start [22:57:26]*** Partial cut [22:57:26]*** CUTSNS_PIN = 1 [22:57:26]*** CUTSNS_PIN = 0 [22:57:26]*** Brake cut motor [22:57:26]Read from MH i2c: 01 [22:57:27]MH_I2C_Read... [22:57:27]*** Stop cut motor [22:57:27]*** Cut end [22:57:27]Read from MH i2c: 01 07 00 [22:57:27]MH_I2C_Read... [22:57:27]Read from MH i2c: 01 07 00 B2 0F 00 00 00 00 00 FF 0F D6 [22:57:27]process_action close_receipt done [22:57:27]requested_data is exist [22:57:27]produce_requested_data [22:57:27]requested_item fm.sn is exist - process it [22:57:27]wFMCommunicate request_size=4 [22:57:27]MH_SAM_APDU [22:57:27]CAPDU: 80 11 00 00 [22:57:27]Write to MH i2c: E2 08 00 B3 0F 80 11 00 00 00 00 00 00 3C [22:57:27]Write i2c OK [22:57:27]MH_I2C_Read... [22:57:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:57:27]Read from MH i2c: E2 [22:57:27]MH_I2C_Read... [22:57:27]Read from MH i2c: E2 17 00 [22:57:27]MH_I2C_Read... [22:57:27]Read from MH i2c: E2 17 00 B3 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 92 [22:57:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:57:27]wFMCommunicate OK [22:57:27]requested_item fd.num is exist - process it [22:57:27]SAM_PROTO_GetFieldsCounters [22:57:27]wFMCommunicate request_size=4 [22:57:27]MH_SAM_APDU [22:57:27]CAPDU: 80 13 00 00 [22:57:27]Write to MH i2c: E2 08 00 B4 0F 80 13 00 00 00 00 00 00 3F [22:57:27]Write i2c OK [22:57:27]MH_I2C_Read... [22:57:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:57:27]Read from MH i2c: E2 [22:57:27]MH_I2C_Read... [22:57:27]Read from MH i2c: E2 62 00 [22:57:27]MH_I2C_Read... [22:57:27]Read from MH i2c: E2 62 00 B4 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F8 84 02 00 0E 04 04 00 BF 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 49 [22:57:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F8 84 02 00 0E 04 04 00 BF 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 [22:57:27]wFMCommunicate OK [22:57:27]SAM_PROTO_GetFieldsCounters done [22:57:27]requested_item shift.num is exist - process it [22:57:27]requested_item shift.opened is exist - process it [22:57:27]req_shift_opened [22:57:27]FM_GetShiftState [22:57:27]SAM_PROTO_GetShiftState [22:57:27]wFMCommunicate request_size=4 [22:57:27]MH_SAM_APDU [22:57:27]CAPDU: 80 13 01 00 [22:57:27]Write to MH i2c: E2 08 00 B5 0F 80 13 01 00 00 00 00 00 41 [22:57:27]Write i2c OK [22:57:27]MH_I2C_Read... [22:57:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:57:27]Read from MH i2c: E2 [22:57:27]MH_I2C_Read... [22:57:27]Read from MH i2c: E2 0E 00 [22:57:27]MH_I2C_Read... [22:57:27]Read from MH i2c: E2 0E 00 B5 0F 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 C1 [22:57:27]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [22:57:27]wFMCommunicate OK [22:57:27]SAM_PROTO_GetShiftState done [22:57:27]FM_GetShiftState done [22:57:27]req_shift_opened done [22:57:27]requested_item shift.open_date is exist - process it [22:57:27]req_shift_open_date [22:57:27]req_shift_open_date done [22:57:27]produce_requested_data done [22:57:27]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165112,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [22:57:27]process_action_free close_receipt [22:57:27]json_value_free [22:57:27]json_value_free done [22:57:27]process_json_proto returns [22:57:27]Send response to host [22:57:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165112,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [22:57:27]free response buf [22:57:27]execute_script done [22:57:27]execute_script returns [22:57:27]free content buf [22:57:27]Sock 7.Close socket [22:57:27]Sock 7.Thread stoped [22:57:31]OFD Sender: No OFD packet to send [22:57:36]OFD Sender: No OFD packet to send [22:57:41]OFD Sender: No OFD packet to send [22:57:46]OFD Sender: No OFD packet to send [22:57:51]OFD Sender: No OFD packet to send [22:57:56]OFD Sender: No OFD packet to send [22:58:01]OFD Sender: No OFD packet to send [22:58:06]OFD Sender: No OFD packet to send [22:58:11]OFD Sender: No OFD packet to send [22:58:16]OFD Sender: No OFD packet to send [22:58:21]OFD Sender: No OFD packet to send [22:58:26]OFD Sender: No OFD packet to send [22:58:31]OFD Sender: No OFD packet to send [22:58:36]OFD Sender: No OFD packet to send [22:58:41]OFD Sender: No OFD packet to send [22:58:46]OFD Sender: No OFD packet to send [22:58:51]OFD Sender: No OFD packet to send [22:58:56]OFD Sender: No OFD packet to send [22:59:01]OFD Sender: No OFD packet to send [22:59:06]OFD Sender: No OFD packet to send [22:59:11]OFD Sender: No OFD packet to send [22:59:16]OFD Sender: No OFD packet to send [22:59:21]OFD Sender: No OFD packet to send [22:59:26]OFD Sender: No OFD packet to send [22:59:31]OFD Sender: No OFD packet to send [22:59:36]OFD Sender: No OFD packet to send [22:59:41]OFD Sender: No OFD packet to send [22:59:46]OFD Sender: No OFD packet to send [22:59:51]OFD Sender: No OFD packet to send [22:59:56]OFD Sender: No OFD packet to send [23:00:01]OFD Sender: No OFD packet to send [23:00:06]OFD Sender: No OFD packet to send [23:00:11]OFD Sender: No OFD packet to send [23:00:16]OFD Sender: No OFD packet to send [23:00:21]OFD Sender: No OFD packet to send [23:00:26]OFD Sender: No OFD packet to send [23:00:31]OFD Sender: No OFD packet to send [23:00:36]OFD Sender: No OFD packet to send [23:00:41]OFD Sender: No OFD packet to send [23:00:46]OFD Sender: No OFD packet to send [23:00:51]OFD Sender: No OFD packet to send [23:00:56]OFD Sender: No OFD packet to send [23:01:01]OFD Sender: No OFD packet to send [23:01:06]OFD Sender: No OFD packet to send [23:01:11]OFD Sender: No OFD packet to send [23:01:16]OFD Sender: No OFD packet to send [23:01:21]OFD Sender: No OFD packet to send [23:01:26]OFD Sender: No OFD packet to send [23:01:31]OFD Sender: No OFD packet to send [23:01:36]OFD Sender: No OFD packet to send [23:01:41]OFD Sender: No OFD packet to send [23:01:42]accept exits with 9 [23:01:42]New connection [23:01:42]New thread 3066928484 created [23:01:42]Thread 3066785124 joined [23:01:42]Waiting for new connection... [23:01:42] Sock 9.Parse request [23:01:42]Sock 9.Check first char [23:01:42]Sock 9.First char is OK [23:01:42]request: POST /json_proto HTTP/1.0 [23:01:42]Method: POST [23:01:42]URL: /json_proto [23:01:42]Method is POST - this is cgi request [23:01:42]url: /json_proto [23:01:42]query_string will be loaded in cgi processing [23:01:42]execute_cgi json_proto POST (null) [23:01:42]execute_cgi path=json_proto method=POST [23:01:42]POST find Content-Length [23:01:42]Host: 172.17.56.4:8080 [23:01:42]Content-Length: 677 [23:01:42]Content-Type: application/json [23:01:42] [23:01:42]POST finish read [23:01:42]Found Content-Length = 677 [23:01:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459216", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "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" ] } } [23:01:42]execute_script... [23:01: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)459216", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "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" ] } } [23:01:42]POST & json_proto [23:01:42]process_json_proto [23:01:42]json parsed OK: [23:01:42]protocol is kg_v1.0 [23:01:42]action value=close_receipt [23:01:42]process_action close_receipt [23:01:42]cmd_close_receipt [23:01:42]MH_GetDate [23:01:42]Write to MH i2c: F0 00 00 B6 0F B4 [23:01:42]Write i2c OK [23:01:42]MH_I2C_Read... [23:01:42]Read from MH i2c: F0 [23:01:42]MH_I2C_Read... [23:01:42]Read from MH i2c: F0 09 00 [23:01:42]MH_I2C_Read... [23:01:42]Read from MH i2c: F0 09 00 B6 0F 00 D8 58 94 66 C9 DC B2 64 A2 [23:01:42]GetLastDocTimeStamp 1720997845 [23:01:42]current date 1720998104 [23:01:42]FM_GetShiftState [23:01:42]SAM_PROTO_GetShiftState [23:01:42]wFMCommunicate request_size=4 [23:01:42]MH_SAM_APDU [23:01:42]CAPDU: 80 13 01 00 [23:01:42]Write to MH i2c: E2 08 00 B7 0F 80 13 01 00 00 00 00 00 43 [23:01:42]Write i2c OK [23:01:42]MH_I2C_Read... [23:01:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:01:42]Read from MH i2c: E2 [23:01:42]MH_I2C_Read... [23:01:42]Read from MH i2c: E2 0E 00 [23:01:42]MH_I2C_Read... [23:01:42]Read from MH i2c: E2 0E 00 B7 0F 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 C3 [23:01:42]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [23:01:42]wFMCommunicate OK [23:01:42]SAM_PROTO_GetShiftState done [23:01:42]FM_GetShiftState done [23:01:42]opened in 1720917342 [23:01:42]opened+sec_in_day 1721003742 [23:01:42]quantity*price = 30004 [23:01:42]sum+1 = 30006 [23:01:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 311 14.07.2024 23:01 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165113 ФПД: 132171899653077 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T230144&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165113&fm=132171899653077&tin=02508201610067®Number=0000000000090829&sum=30000 [23:01:43]StoreToDocumentArchive [23:01:43]shift 447 fd 165113 [23:01:43]save to /storage/0447/doc_00165113 [23:01:43]save last doc name /storage/0447/doc_00165113 to /storage/kkm_last_doc_name [23:01:43]save OK [23:01:43]Clear old archive folders... [23:01:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:01:43]tlvbuf is 01355310 [23:01:43]SAM_PROTO_ClearQueue [23:01:43]wFMCommunicate request_size=4 [23:01:43]MH_SAM_APDU [23:01:43]CAPDU: 80 09 00 00 [23:01:43]Write to MH i2c: E2 08 00 C4 0F 80 09 00 00 00 00 00 00 45 [23:01:43]Write i2c OK [23:01:43]MH_I2C_Read... [23:01:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:01:43]Read from MH i2c: E2 [23:01:43]MH_I2C_Read... [23:01:43]Read from MH i2c: E2 03 00 [23:01:43]MH_I2C_Read... [23:01:43]Read from MH i2c: E2 03 00 C4 0F 00 90 00 47 [23:01:43]RAPDU: 90 00 [23:01:43]wFMCommunicate OK [23:01:43]SAM_PROTO_ClearQueue done [23:01:43]KKMCreateOFDPacket [23:01:43]OFDProtocolAddRootSTLVToBuf [23:01:43]FM_MakeSignedData [23:01:43]FM_MakeSignedData [23:01:43]SAM_PROTO_SignData [23:01:43]wFMCommunicate request_size=4 [23:01:43]MH_SAM_APDU [23:01:43]CAPDU: 80 0D 01 02 [23:01:43]Write to MH i2c: E2 08 00 C5 0F 80 0D 01 02 00 00 00 00 4D [23:01:43]Write i2c OK [23:01:43]MH_I2C_Read... [23:01:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:01:43]Read from MH i2c: E2 [23:01:43]MH_I2C_Read... [23:01:43]Read from MH i2c: E2 03 00 [23:01:43]MH_I2C_Read... [23:01:43]Read from MH i2c: E2 03 00 C5 0F 00 90 00 48 [23:01:43]RAPDU: 90 00 [23:01:43]wFMCommunicate OK [23:01:43]wFMCommunicate request_size=255 [23:01:43]MH_SAM_APDU [23:01:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 D8 58 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F9 84 02 00 35 04 06 00 78 [23:01:43]Write to MH i2c: E2 02 01 C6 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 D8 58 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F9 84 02 00 35 04 06 00 78 00 00 A0 [23:01:43]Write i2c OK [23:01:43]MH_I2C_Read... [23:01:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:01:43]Read from MH i2c: E2 [23:01:43]MH_I2C_Read... [23:01:43]Read from MH i2c: E2 03 00 [23:01:43]MH_I2C_Read... [23:01:43]Read from MH i2c: E2 03 00 C6 0F 00 90 00 49 [23:01:43]RAPDU: 90 00 [23:01:43]wFMCommunicate OK [23:01:43]wFMCommunicate request_size=10 [23:01:43]MH_SAM_APDU [23:01:43]CAPDU: 80 0D 02 02 05 35 AB 20 CB D5 [23:01:43]Write to MH i2c: E2 0D 00 C7 0F 80 0D 02 02 05 00 35 AB 20 CB D5 00 00 FA [23:01:43]Write i2c OK [23:01:43]MH_I2C_Read... [23:01:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:01:43]Read from MH i2c: E2 [23:01:43]MH_I2C_Read... [23:01:43]Read from MH i2c: E2 03 00 [23:01:43]MH_I2C_Read... [23:01:43]Read from MH i2c: E2 03 00 C7 0F 00 90 00 4A [23:01:43]RAPDU: 90 00 [23:01:43]wFMCommunicate OK [23:01:43]wFMCommunicate request_size=4 [23:01:43]MH_SAM_APDU [23:01:43]CAPDU: 80 0D 03 02 [23:01:43]Write to MH i2c: E2 08 00 C8 0F 80 0D 03 02 00 00 00 00 52 [23:01:43]Write i2c OK [23:01:43]MH_I2C_Read... [23:01:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:01:44]Read from MH i2c: E2 [23:01:44]MH_I2C_Read... [23:01:44]Read from MH i2c: E2 0B 00 [23:01:44]MH_I2C_Read... [23:01:44]Read from MH i2c: E2 0B 00 C8 0F 00 3D 97 90 0C AB 12 07 B2 90 00 39 [23:01:44]RAPDU: 3D 97 90 0C AB 12 07 B2 90 00 [23:01:44]wFMCommunicate OK [23:01:44]SAM_PROTO_SignData done [23:01:44]FM_MakeSignedData done [23:01:44]CreateOFDProtocolMessage [23:01:44]wFMCommunicate request_size=4 [23:01:44]MH_SAM_APDU [23:01:44]CAPDU: 80 11 00 00 [23:01:44]Write to MH i2c: E2 08 00 C9 0F 80 11 00 00 00 00 00 00 52 [23:01:44]Write i2c OK [23:01:44]MH_I2C_Read... [23:01:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:01:44]Read from MH i2c: E2 [23:01:44]MH_I2C_Read... [23:01:44]Read from MH i2c: E2 17 00 [23:01:44]MH_I2C_Read... [23:01:44]Read from MH i2c: E2 17 00 C9 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A8 [23:01:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:01:44]wFMCommunicate OK [23:01:44]CreateOFDProtocolMessage done [23:01:44]OFDSenderStorePacket 165113 [23:01:44]StoreOFDPacket docnum=165113 [23:01:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 2F 8C 07 01 43 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 D8 58 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F9 84 02 00 35 04 06 00 78 35 AB 20 CB D5 3D 97 90 0C AB 12 07 B2 [23:01:44]CheckFolder [23:01:44]dirname=/storage/ofd_packets [23:01:44]CheckFolder done [23:01:44]ProducePacketName [23:01:44]name=ofd_packets/00165113 [23:01:44]NVStorageSaveData ofd_packets/00165113 [23:01:44]File name is /storage/ofd_packets/00165113 [23:01:44]Write 301 bytes [23:01:44]NVStorageSaveData done [23:01:44]OFDSenderStorePacket done [23:01:44]KKMCreateOFDPacket done [23:01:44]NVStorageSaveData kkm_last_timestamp [23:01:44]File name is /storage/kkm_last_timestamp [23:01:44]Write 4 bytes [23:01:44]NVStorageSaveData done [23:01:44]ExternCall_PrintAddStr [23:01:44]wPrintStart [23:01:44]Write to MH i2c: 01 00 00 CA 0F D9 [23:01:44]Write i2c OK [23:01:44]MH_I2C_Read... [23:01:44]Read from MH i2c: 01 [23:01:44]MH_I2C_Read... [23:01:44]Read from MH i2c: 01 07 00 [23:01:44]MH_I2C_Read... [23:01:44]Read from MH i2c: 01 07 00 CA 0F 00 00 00 00 00 FF 0F EE [23:01:44]RasterBufferAndPrint [23:01:44]line Счет N : (1)459216 [23:01:44]line ИНН: 02508201610067 [23:01:44]line Контрольно-Кассовый Чек [23:01:44]line ПРОДАЖА [23:01:44]line ТРК (МРК, ГНК) : 12 [23:01:44]line Товар: 2710124130 [23:01:44]line Аи-92-К-5 [23:01:44]line 4.560 * 65.80 [23:01:44]line = 300.05 [23:01:44]line НДС 12% НСП 1% [23:01:44]line > о реализуемом товаре [23:01:44]line ОКРУГЛЕНИЕ: -0.05 [23:01:44]line ИТОГО: 300.00 [23:01:44]line Внесено: 300.00 [23:01:44]line СДАЧА: 0.00 [23:01:44]line НСП 1% : 2.65 [23:01:44]line НДС 12% : 31.86 [23:01:44]line Наличными: 300.00 [23:01:44]line Безнал.: 0.00 [23:01:44]line Место: АЗС № 72 "Партнер Нефть" [23:01:44]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [23:01:44]line СНО: Общий режим [23:01:44]line Чек 311 14.07.2024 23:01 [23:01:44]line Смена: 447 ФФД: 1.0 [23:01:44]line ЗНМ: 0300000160 [23:01:44]line РНМ: 0000000000090829 [23:01:44]line Версия ККМ: 001 [23:01:44]line ФМ: 0000000000874718 [23:01:44]line ФД: 165113 [23:01:44]line ФПД: 132171899653077 [23:01:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T230144&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165113&fm=132171899653077&tin=02508201610067®Number=0000000000090829&sum=30000 [23:01:44]OFD Sender: Processing packet 165113 [packets to send 106, broken 105] [23:01:44]ProducePacketName [23:01:44]name=ofd_packets/00165113 [23:01:44]OFD Sender: To server: pG, [23:01:44]CommunicateWithHost lk.salyk.kg:30040 [23:01:44]ConnectInit lk.salyk.kg [23:01:44]written 0, free lines is 4095 [23:01:44]Connected sock=10 [23:01:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 2F 8C 07 01 43 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 D8 58 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F9 84 02 00 35 04 06 00 78 35 AB 20 CB D5 3D 97 90 0C AB 12 07 B2 [23:01:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 1B F6 47 00 7F 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F9 84 02 00 F4 03 04 00 64 FF 93 66 B6 04 01 00 00 E3 60 D0 B5 D2 7C B0 18 [23:01:44]CommunicateWithHost err = 0 [23:01:44]CheckOFDResponse [23:01:44]1017 (14) - 77093643461234 [23:01:44]1041 (16) - 0000000000874718 [23:01:44]1040 (4) - 165113 [23:01:44]1012 (4) - 14.07.2024 16:40 [23:01:44]1206 (1) - 0 [23:01:44]OFD Sender: Remove packet 165113 [23:01:44]ProducePacketName [23:01:44]name=ofd_packets/00165113 [23:01:44]NVStorageDeleteData [23:01:44]Write to MH i2c: 01 00 00 F4 0F 03 [23:01:44]Write i2c OK [23:01:44]MH_I2C_Read... [23:01:44]Read from MH i2c: 01 [23:01:44]MH_I2C_Read... [23:01:44]Read from MH i2c: 01 07 00 [23:01:44]MH_I2C_Read... [23:01:44]Read from MH i2c: 01 07 00 F4 0F 00 00 00 00 00 FE 0C 14 [23:01:44]RasterBufferAndPrint [23:01:44]line [23:01:44]line [23:01:44]line [23:01:44]line [23:01:44]line [23:01:44]written 0, free lines is 3332 [23:01:44]MH_Cut [23:01:44]Write to MH i2c: D1 01 00 FB 0F 01 DC [23:01:44]Write i2c OK [23:01:44]MH_I2C_Read... [23:01:44]Read from MH i2c: D1 [23:01:44]MH_I2C_Read... [23:01:44]Read from MH i2c: D1 01 00 [23:01:44]MH_I2C_Read... [23:01:44]Read from MH i2c: D1 01 00 FB 0F 00 DB [23:01:44]Write to MH i2c: 01 00 00 FC 0F 0B [23:01:44]Write i2c OK [23:01:44]MH_I2C_Read... [23:01:45]OFD Sender: No OFD packet to send [23:01:45]*** Cut start [23:01:45]*** Partial cut [23:01:45]*** CUTSNS_PIN = 1 [23:01:45]*** CUTSNS_PIN = 0 [23:01:45]*** Brake cut motor [23:01:46]Read from MH i2c: 01 [23:01:46]MH_I2C_Read... [23:01:46]*** Stop cut motor [23:01:46]*** Cut end [23:01:46]Read from MH i2c: 01 07 00 [23:01:46]MH_I2C_Read... [23:01:46]Read from MH i2c: 01 07 00 FC 0F 00 00 00 00 00 FF 0F 20 [23:01:46]process_action close_receipt done [23:01:46]requested_data is exist [23:01:46]produce_requested_data [23:01:46]requested_item fm.sn is exist - process it [23:01:46]wFMCommunicate request_size=4 [23:01:46]MH_SAM_APDU [23:01:46]CAPDU: 80 11 00 00 [23:01:46]Write to MH i2c: E2 08 00 FD 0F 80 11 00 00 00 00 00 00 86 [23:01:46]Write i2c OK [23:01:46]MH_I2C_Read... [23:01:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:01:46]Read from MH i2c: E2 [23:01:46]MH_I2C_Read... [23:01:46]Read from MH i2c: E2 17 00 [23:01:46]MH_I2C_Read... [23:01:46]Read from MH i2c: E2 17 00 FD 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DC [23:01:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:01:46]wFMCommunicate OK [23:01:46]requested_item fd.num is exist - process it [23:01:46]SAM_PROTO_GetFieldsCounters [23:01:46]wFMCommunicate request_size=4 [23:01:46]MH_SAM_APDU [23:01:46]CAPDU: 80 13 00 00 [23:01:46]Write to MH i2c: E2 08 00 FE 0F 80 13 00 00 00 00 00 00 89 [23:01:46]Write i2c OK [23:01:46]MH_I2C_Read... [23:01:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:01:46]Read from MH i2c: E2 [23:01:46]MH_I2C_Read... [23:01:46]Read from MH i2c: E2 62 00 [23:01:46]MH_I2C_Read... [23:01:46]Read from MH i2c: E2 62 00 FE 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F9 84 02 00 0E 04 04 00 BF 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 97 [23:01:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F9 84 02 00 0E 04 04 00 BF 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 [23:01:46]wFMCommunicate OK [23:01:46]SAM_PROTO_GetFieldsCounters done [23:01:46]requested_item shift.num is exist - process it [23:01:46]requested_item shift.opened is exist - process it [23:01:46]req_shift_opened [23:01:46]FM_GetShiftState [23:01:46]SAM_PROTO_GetShiftState [23:01:46]wFMCommunicate request_size=4 [23:01:46]MH_SAM_APDU [23:01:46]CAPDU: 80 13 01 00 [23:01:46]Write to MH i2c: E2 08 00 FF 0F 80 13 01 00 00 00 00 00 8B [23:01:46]Write i2c OK [23:01:46]MH_I2C_Read... [23:01:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:01:46]Read from MH i2c: E2 [23:01:46]MH_I2C_Read... [23:01:46]Read from MH i2c: E2 0E 00 [23:01:46]MH_I2C_Read... [23:01:46]Read from MH i2c: E2 0E 00 FF 0F 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 0B [23:01:46]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [23:01:46]wFMCommunicate OK [23:01:46]SAM_PROTO_GetShiftState done [23:01:46]FM_GetShiftState done [23:01:46]req_shift_opened done [23:01:46]requested_item shift.open_date is exist - process it [23:01:46]req_shift_open_date [23:01:46]req_shift_open_date done [23:01:46]produce_requested_data done [23:01:46]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165113,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [23:01:46]process_action_free close_receipt [23:01:46]json_value_free [23:01:46]json_value_free done [23:01:46]process_json_proto returns [23:01:46]Send response to host [23:01:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165113,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [23:01:46]free response buf [23:01:46]execute_script done [23:01:46]execute_script returns [23:01:46]free content buf [23:01:46]Sock 9.Close socket [23:01:46]Sock 9.Thread stoped [23:01:50]OFD Sender: No OFD packet to send [23:01:55]OFD Sender: No OFD packet to send [23:02:00]OFD Sender: No OFD packet to send [23:02:05]OFD Sender: No OFD packet to send [23:02:10]OFD Sender: No OFD packet to send [23:02:15]OFD Sender: No OFD packet to send [23:02:20]OFD Sender: No OFD packet to send [23:02:25]OFD Sender: No OFD packet to send [23:02:30]OFD Sender: No OFD packet to send [23:02:35]OFD Sender: No OFD packet to send [23:02:40]OFD Sender: No OFD packet to send [23:02:45]OFD Sender: No OFD packet to send [23:02:50]OFD Sender: No OFD packet to send [23:02:55]OFD Sender: No OFD packet to send [23:03:00]OFD Sender: No OFD packet to send [23:03:05]OFD Sender: No OFD packet to send [23:03:10]OFD Sender: No OFD packet to send [23:03:15]OFD Sender: No OFD packet to send [23:03:20]OFD Sender: No OFD packet to send [23:03:25]OFD Sender: No OFD packet to send [23:03:30]OFD Sender: No OFD packet to send [23:03:35]OFD Sender: No OFD packet to send [23:03:40]OFD Sender: No OFD packet to send [23:03:45]OFD Sender: No OFD packet to send [23:03:50]OFD Sender: No OFD packet to send [23:03:55]OFD Sender: No OFD packet to send [23:04:00]OFD Sender: No OFD packet to send [23:04:05]OFD Sender: No OFD packet to send [23:04:10]OFD Sender: No OFD packet to send [23:04:15]OFD Sender: No OFD packet to send [23:04:20]OFD Sender: No OFD packet to send [23:04:25]OFD Sender: No OFD packet to send [23:04:30]OFD Sender: No OFD packet to send [23:04:35]OFD Sender: No OFD packet to send [23:04:40]OFD Sender: No OFD packet to send [23:04:45]OFD Sender: No OFD packet to send [23:04:50]OFD Sender: No OFD packet to send [23:04:55]OFD Sender: No OFD packet to send [23:05:00]OFD Sender: No OFD packet to send [23:05:05]OFD Sender: No OFD packet to send [23:05:06]accept exits with 7 [23:05:06]New connection [23:05:06]New thread 3066785124 created [23:05:06]Thread 3066928484 joined [23:05:06]Waiting for new connection... [23:05:06] Sock 7.Parse request [23:05:06]Sock 7.Check first char [23:05:06]Sock 7.First char is OK [23:05:06]request: POST /json_proto HTTP/1.0 [23:05:06]Method: POST [23:05:06]URL: /json_proto [23:05:06]Method is POST - this is cgi request [23:05:06]url: /json_proto [23:05:06]query_string will be loaded in cgi processing [23:05:06]execute_cgi json_proto POST (null) [23:05:06]execute_cgi path=json_proto method=POST [23:05:06]POST find Content-Length [23:05:06]Host: 172.17.56.4:8080 [23:05:06]Content-Length: 682 [23:05:06]Content-Type: application/json [23:05:06] [23:05:06]POST finish read [23:05:06]Found Content-Length = 682 [23:05:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459217", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "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:05:06]execute_script... [23:05: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)459217", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "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:05:06]POST & json_proto [23:05:06]process_json_proto [23:05:06]json parsed OK: [23:05:06]protocol is kg_v1.0 [23:05:06]action value=close_receipt [23:05:06]process_action close_receipt [23:05:06]cmd_close_receipt [23:05:06]MH_GetDate [23:05:06]Write to MH i2c: F0 00 00 00 10 FF [23:05:06]Write i2c OK [23:05:06]MH_I2C_Read... [23:05:06]Read from MH i2c: F0 [23:05:06]MH_I2C_Read... [23:05:06]Read from MH i2c: F0 09 00 [23:05:06]MH_I2C_Read... [23:05:06]Read from MH i2c: F0 09 00 00 10 00 A4 59 94 66 C9 DC B2 64 BA [23:05:06]GetLastDocTimeStamp 1720998104 [23:05:06]current date 1720998308 [23:05:06]FM_GetShiftState [23:05:06]SAM_PROTO_GetShiftState [23:05:06]wFMCommunicate request_size=4 [23:05:06]MH_SAM_APDU [23:05:06]CAPDU: 80 13 01 00 [23:05:06]Write to MH i2c: E2 08 00 01 10 80 13 01 00 00 00 00 00 8E [23:05:06]Write i2c OK [23:05:06]MH_I2C_Read... [23:05:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:05:06]Read from MH i2c: E2 [23:05:06]MH_I2C_Read... [23:05:06]Read from MH i2c: E2 0E 00 [23:05:06]MH_I2C_Read... [23:05:06]Read from MH i2c: E2 0E 00 01 10 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 0E [23:05:06]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [23:05:06]wFMCommunicate OK [23:05:06]SAM_PROTO_GetShiftState done [23:05:06]FM_GetShiftState done [23:05:06]opened in 1720917342 [23:05:06]opened+sec_in_day 1721003742 [23:05:06]quantity*price = 100016 [23:05:06]sum+1 = 100017 [23:05:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 312 14.07.2024 23:05 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165114 ФПД: 84476015263104 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T230508&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165114&fm=84476015263104&tin=02508201610067®Number=0000000000090829&sum=100000 [23:05:07]StoreToDocumentArchive [23:05:07]shift 447 fd 165114 [23:05:07]save to /storage/0447/doc_00165114 [23:05:07]save last doc name /storage/0447/doc_00165114 to /storage/kkm_last_doc_name [23:05:07]save OK [23:05:07]Clear old archive folders... [23:05:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:05:07]tlvbuf is 013554A0 [23:05:07]SAM_PROTO_ClearQueue [23:05:07]wFMCommunicate request_size=4 [23:05:07]MH_SAM_APDU [23:05:07]CAPDU: 80 09 00 00 [23:05:07]Write to MH i2c: E2 08 00 0E 10 80 09 00 00 00 00 00 00 90 [23:05:07]Write i2c OK [23:05:07]MH_I2C_Read... [23:05:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:05:07]Read from MH i2c: E2 [23:05:07]MH_I2C_Read... [23:05:07]Read from MH i2c: E2 03 00 [23:05:07]MH_I2C_Read... [23:05:07]Read from MH i2c: E2 03 00 0E 10 00 90 00 92 [23:05:07]RAPDU: 90 00 [23:05:07]wFMCommunicate OK [23:05:07]SAM_PROTO_ClearQueue done [23:05:07]KKMCreateOFDPacket [23:05:07]OFDProtocolAddRootSTLVToBuf [23:05:07]FM_MakeSignedData [23:05:07]FM_MakeSignedData [23:05:07]SAM_PROTO_SignData [23:05:07]wFMCommunicate request_size=4 [23:05:07]MH_SAM_APDU [23:05:07]CAPDU: 80 0D 01 02 [23:05:07]Write to MH i2c: E2 08 00 0F 10 80 0D 01 02 00 00 00 00 98 [23:05:07]Write i2c OK [23:05:07]MH_I2C_Read... [23:05:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:05:07]Read from MH i2c: E2 [23:05:07]MH_I2C_Read... [23:05:07]Read from MH i2c: E2 03 00 [23:05:07]MH_I2C_Read... [23:05:07]Read from MH i2c: E2 03 00 0F 10 00 90 00 93 [23:05:07]RAPDU: 90 00 [23:05:07]wFMCommunicate OK [23:05:07]wFMCommunicate request_size=255 [23:05:07]MH_SAM_APDU [23:05:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 A4 59 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FA 84 02 00 35 04 06 00 4C [23:05:07]Write to MH i2c: E2 02 01 10 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 A4 59 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FA 84 02 00 35 04 06 00 4C 00 00 6F [23:05:07]Write i2c OK [23:05:07]MH_I2C_Read... [23:05:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:05:08]Read from MH i2c: E2 [23:05:08]MH_I2C_Read... [23:05:08]Read from MH i2c: E2 03 00 [23:05:08]MH_I2C_Read... [23:05:08]Read from MH i2c: E2 03 00 10 10 00 90 00 94 [23:05:08]RAPDU: 90 00 [23:05:08]wFMCommunicate OK [23:05:08]wFMCommunicate request_size=10 [23:05:08]MH_SAM_APDU [23:05:08]CAPDU: 80 0D 02 02 05 D4 9A E1 BD 80 [23:05:08]Write to MH i2c: E2 0D 00 11 10 80 0D 02 02 05 00 D4 9A E1 BD 80 00 00 31 [23:05:08]Write i2c OK [23:05:08]MH_I2C_Read... [23:05:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:05:08]Read from MH i2c: E2 [23:05:08]MH_I2C_Read... [23:05:08]Read from MH i2c: E2 03 00 [23:05:08]MH_I2C_Read... [23:05:08]Read from MH i2c: E2 03 00 11 10 00 90 00 95 [23:05:08]RAPDU: 90 00 [23:05:08]wFMCommunicate OK [23:05:08]wFMCommunicate request_size=4 [23:05:08]MH_SAM_APDU [23:05:08]CAPDU: 80 0D 03 02 [23:05:08]Write to MH i2c: E2 08 00 12 10 80 0D 03 02 00 00 00 00 9D [23:05:08]Write i2c OK [23:05:08]MH_I2C_Read... [23:05:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:05:08]Read from MH i2c: E2 [23:05:08]MH_I2C_Read... [23:05:08]Read from MH i2c: E2 0B 00 [23:05:08]MH_I2C_Read... [23:05:08]Read from MH i2c: E2 0B 00 12 10 00 AF 6F 58 E7 F5 03 E2 61 90 00 36 [23:05:08]RAPDU: AF 6F 58 E7 F5 03 E2 61 90 00 [23:05:08]wFMCommunicate OK [23:05:08]SAM_PROTO_SignData done [23:05:08]FM_MakeSignedData done [23:05:08]CreateOFDProtocolMessage [23:05:08]wFMCommunicate request_size=4 [23:05:08]MH_SAM_APDU [23:05:08]CAPDU: 80 11 00 00 [23:05:08]Write to MH i2c: E2 08 00 13 10 80 11 00 00 00 00 00 00 9D [23:05:08]Write i2c OK [23:05:08]MH_I2C_Read... [23:05:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:05:08]Read from MH i2c: E2 [23:05:08]MH_I2C_Read... [23:05:08]Read from MH i2c: E2 17 00 [23:05:08]MH_I2C_Read... [23:05:08]Read from MH i2c: E2 17 00 13 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F3 [23:05:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:05:08]wFMCommunicate OK [23:05:08]CreateOFDProtocolMessage done [23:05:08]OFDSenderStorePacket 165114 [23:05:08]StoreOFDPacket docnum=165114 [23:05:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C6 DE 07 01 3C 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 A4 59 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FA 84 02 00 35 04 06 00 4C D4 9A E1 BD 80 AF 6F 58 E7 F5 03 E2 61 [23:05:08]CheckFolder [23:05:08]dirname=/storage/ofd_packets [23:05:08]CheckFolder done [23:05:08]ProducePacketName [23:05:08]name=ofd_packets/00165114 [23:05:08]NVStorageSaveData ofd_packets/00165114 [23:05:08]File name is /storage/ofd_packets/00165114 [23:05:08]Write 301 bytes [23:05:08]NVStorageSaveData done [23:05:08]OFDSenderStorePacket done [23:05:08]KKMCreateOFDPacket done [23:05:08]NVStorageSaveData kkm_last_timestamp [23:05:08]File name is /storage/kkm_last_timestamp [23:05:08]Write 4 bytes [23:05:08]NVStorageSaveData done [23:05:08]OFD Sender: Processing packet 165114 [packets to send 106, broken 105] [23:05:08]ProducePacketName [23:05:08]name=ofd_packets/00165114 [23:05:08]OFD Sender: To server: pG, [23:05:08]CommunicateWithHost lk.salyk.kg:30040 [23:05:08]ConnectInit lk.salyk.kg [23:05:08]ExternCall_PrintAddStr [23:05:08]wPrintStart [23:05:08]Write to MH i2c: 01 00 00 14 10 24 [23:05:08]Write i2c OK [23:05:08]MH_I2C_Read... [23:05:08]Read from MH i2c: 01 [23:05:08]MH_I2C_Read... [23:05:08]Read from MH i2c: 01 07 00 [23:05:08]MH_I2C_Read... [23:05:08]Read from MH i2c: 01 07 00 14 10 00 00 00 00 00 FF 0F 39 [23:05:08]RasterBufferAndPrint [23:05:08]line Счет N : (1)459217 [23:05:08]line ИНН: 02508201610067 [23:05:08]line Контрольно-Кассовый Чек [23:05:08]line ПРОДАЖА [23:05:08]line ТРК (МРК, ГНК) : 22 [23:05:08]line Товар: 2710124130 [23:05:08]line Аи-92-К-5 [23:05:08]line 15.200 * 65.80 [23:05:08]line = 1000.16 [23:05:08]line НДС 12% НСП 1% [23:05:08]line > о реализуемом товаре [23:05:08]line ОКРУГЛЕНИЕ: -0.16 [23:05:08]line ИТОГО: 1000.00 [23:05:08]line Внесено: 1000.00 [23:05:08]line СДАЧА: 0.00 [23:05:08]line НСП 1% : 8.85 [23:05:08]line НДС 12% : 106.21 [23:05:08]line Наличными: 1000.00 [23:05:08]line Безнал.: 0.00 [23:05:08]line Место: АЗС № 72 "Партнер Нефть" [23:05:08]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [23:05:08]line СНО: Общий режим [23:05:08]line Чек 312 14.07.2024 23:05 [23:05:08]line Смена: 447 ФФД: 1.0 [23:05:08]line ЗНМ: 0300000160 [23:05:08]line РНМ: 0000000000090829 [23:05:08]line Версия ККМ: 001 [23:05:08]line ФМ: 0000000000874718 [23:05:08]line ФД: 165114 [23:05:08]line ФПД: 84476015263104 [23:05:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T230508&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165114&fm=84476015263104&tin=02508201610067®Number=0000000000090829&sum=100000 [23:05:08]Connected sock=11 [23:05:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C6 DE 07 01 3C 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 A4 59 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FA 84 02 00 35 04 06 00 4C D4 9A E1 BD 80 AF 6F 58 E7 F5 03 E2 61 [23:05:08]written 0, free lines is 4095 [23:05:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 9D EA 47 00 02 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 38 37 34 37 31 38 10 04 04 00 FA 84 02 00 F4 03 04 00 30 00 94 66 B6 04 01 00 00 75 FC 10 E0 41 7A B7 C5 [23:05:08]CommunicateWithHost err = 0 [23:05:08]CheckOFDResponse [23:05:08]1017 (14) - 77093643461234 [23:05:08]1041 (16) - 0000000000874718 [23:05:08]1040 (4) - 165114 [23:05:08]1012 (4) - 14.07.2024 16:43 [23:05:08]1206 (1) - 0 [23:05:08]OFD Sender: Remove packet 165114 [23:05:08]ProducePacketName [23:05:08]name=ofd_packets/00165114 [23:05:08]NVStorageDeleteData [23:05:08]Write to MH i2c: 01 00 00 3E 10 4E [23:05:08]Write i2c OK [23:05:08]MH_I2C_Read... [23:05:08]Read from MH i2c: 01 [23:05:08]MH_I2C_Read... [23:05:08]Read from MH i2c: 01 07 00 [23:05:08]MH_I2C_Read... [23:05:08]Read from MH i2c: 01 07 00 3E 10 00 00 00 00 00 F2 0C 53 [23:05:08]RasterBufferAndPrint [23:05:08]line [23:05:08]line [23:05:08]line [23:05:08]line [23:05:08]line [23:05:08]written 0, free lines is 3322 [23:05:09]MH_Cut [23:05:09]Write to MH i2c: D1 01 00 45 10 01 27 [23:05:09]Write i2c OK [23:05:09]MH_I2C_Read... [23:05:09]Read from MH i2c: D1 [23:05:09]MH_I2C_Read... [23:05:09]Read from MH i2c: D1 01 00 [23:05:09]MH_I2C_Read... [23:05:09]Read from MH i2c: D1 01 00 45 10 00 26 [23:05:09]Write to MH i2c: 01 00 00 46 10 56 [23:05:09]Write i2c OK [23:05:09]MH_I2C_Read... [23:05:09]OFD Sender: No OFD packet to send [23:05:09]*** Cut start [23:05:09]*** Partial cut [23:05:09]*** CUTSNS_PIN = 1 [23:05:09]*** CUTSNS_PIN = 0 [23:05:09]*** Brake cut motor [23:05:10]Read from MH i2c: 01 [23:05:10]MH_I2C_Read... [23:05:10]*** Stop cut motor [23:05:10]*** Cut end [23:05:10]Read from MH i2c: 01 07 00 [23:05:10]MH_I2C_Read... [23:05:10]Read from MH i2c: 01 07 00 46 10 00 00 00 00 00 FF 0F 6B [23:05:10]process_action close_receipt done [23:05:10]requested_data is exist [23:05:10]produce_requested_data [23:05:10]requested_item fm.sn is exist - process it [23:05:10]wFMCommunicate request_size=4 [23:05:10]MH_SAM_APDU [23:05:10]CAPDU: 80 11 00 00 [23:05:10]Write to MH i2c: E2 08 00 47 10 80 11 00 00 00 00 00 00 D1 [23:05:10]Write i2c OK [23:05:10]MH_I2C_Read... [23:05:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:05:10]Read from MH i2c: E2 [23:05:10]MH_I2C_Read... [23:05:10]Read from MH i2c: E2 17 00 [23:05:10]MH_I2C_Read... [23:05:10]Read from MH i2c: E2 17 00 47 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 27 [23:05:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:05:10]wFMCommunicate OK [23:05:10]requested_item fd.num is exist - process it [23:05:10]SAM_PROTO_GetFieldsCounters [23:05:10]wFMCommunicate request_size=4 [23:05:10]MH_SAM_APDU [23:05:10]CAPDU: 80 13 00 00 [23:05:10]Write to MH i2c: E2 08 00 48 10 80 13 00 00 00 00 00 00 D4 [23:05:10]Write i2c OK [23:05:10]MH_I2C_Read... [23:05:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:05:10]Read from MH i2c: E2 [23:05:10]MH_I2C_Read... [23:05:10]Read from MH i2c: E2 62 00 [23:05:10]MH_I2C_Read... [23:05:10]Read from MH i2c: E2 62 00 48 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 FA 84 02 00 0E 04 04 00 BF 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 E6 [23:05:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 FA 84 02 00 0E 04 04 00 BF 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 [23:05:10]wFMCommunicate OK [23:05:10]SAM_PROTO_GetFieldsCounters done [23:05:10]requested_item shift.num is exist - process it [23:05:10]requested_item shift.opened is exist - process it [23:05:10]req_shift_opened [23:05:10]FM_GetShiftState [23:05:10]SAM_PROTO_GetShiftState [23:05:10]wFMCommunicate request_size=4 [23:05:10]MH_SAM_APDU [23:05:10]CAPDU: 80 13 01 00 [23:05:10]Write to MH i2c: E2 08 00 49 10 80 13 01 00 00 00 00 00 D6 [23:05:10]Write i2c OK [23:05:10]MH_I2C_Read... [23:05:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:05:10]Read from MH i2c: E2 [23:05:10]MH_I2C_Read... [23:05:10]Read from MH i2c: E2 0E 00 [23:05:10]MH_I2C_Read... [23:05:10]Read from MH i2c: E2 0E 00 49 10 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 56 [23:05:10]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [23:05:10]wFMCommunicate OK [23:05:10]SAM_PROTO_GetShiftState done [23:05:10]FM_GetShiftState done [23:05:10]req_shift_opened done [23:05:10]requested_item shift.open_date is exist - process it [23:05:10]req_shift_open_date [23:05:10]req_shift_open_date done [23:05:10]produce_requested_data done [23:05:10]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165114,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [23:05:10]process_action_free close_receipt [23:05:10]json_value_free [23:05:10]json_value_free done [23:05:10]process_json_proto returns [23:05:10]Send response to host [23:05:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165114,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [23:05:10]free response buf [23:05:10]execute_script done [23:05:10]execute_script returns [23:05:10]free content buf [23:05:10]Sock 7.Close socket [23:05:10]Sock 7.Thread stoped [23:05:14]OFD Sender: No OFD packet to send [23:05:19]OFD Sender: No OFD packet to send [23:05:24]OFD Sender: No OFD packet to send [23:05:29]OFD Sender: No OFD packet to send [23:05:34]OFD Sender: No OFD packet to send [23:05:39]OFD Sender: No OFD packet to send [23:05:44]OFD Sender: No OFD packet to send [23:05:49]OFD Sender: No OFD packet to send [23:05:54]OFD Sender: No OFD packet to send [23:05:59]OFD Sender: No OFD packet to send [23:06:04]OFD Sender: No OFD packet to send [23:06:09]OFD Sender: No OFD packet to send [23:06:14]OFD Sender: No OFD packet to send [23:06:19]OFD Sender: No OFD packet to send [23:06:24]OFD Sender: No OFD packet to send [23:06:29]OFD Sender: No OFD packet to send [23:06:34]OFD Sender: No OFD packet to send [23:06:39]OFD Sender: No OFD packet to send [23:06:44]OFD Sender: No OFD packet to send [23:06:49]OFD Sender: No OFD packet to send [23:06:54]OFD Sender: No OFD packet to send [23:06:59]OFD Sender: No OFD packet to send [23:07:04]OFD Sender: No OFD packet to send [23:07:09]OFD Sender: No OFD packet to send [23:07:14]OFD Sender: No OFD packet to send [23:07:19]OFD Sender: No OFD packet to send [23:07:24]OFD Sender: No OFD packet to send [23:07:29]OFD Sender: No OFD packet to send [23:07:34]OFD Sender: No OFD packet to send [23:07:39]OFD Sender: No OFD packet to send [23:07:44]OFD Sender: No OFD packet to send [23:07:49]OFD Sender: No OFD packet to send [23:07:54]OFD Sender: No OFD packet to send [23:07:59]OFD Sender: No OFD packet to send [23:08:04]OFD Sender: No OFD packet to send [23:08:09]OFD Sender: No OFD packet to send [23:08:14]OFD Sender: No OFD packet to send [23:08:19]OFD Sender: No OFD packet to send [23:08:24]OFD Sender: No OFD packet to send [23:08:29]OFD Sender: No OFD packet to send [23:08:34]OFD Sender: No OFD packet to send [23:08:39]OFD Sender: No OFD packet to send [23:08:44]OFD Sender: No OFD packet to send [23:08:49]OFD Sender: No OFD packet to send [23:08:54]OFD Sender: No OFD packet to send [23:08:59]OFD Sender: No OFD packet to send [23:09:04]OFD Sender: No OFD packet to send [23:09:09]OFD Sender: No OFD packet to send [23:09:14]OFD Sender: No OFD packet to send [23:09:19]OFD Sender: No OFD packet to send [23:09:24]OFD Sender: No OFD packet to send [23:09:29]OFD Sender: No OFD packet to send [23:09:34]OFD Sender: No OFD packet to send [23:09:39]OFD Sender: No OFD packet to send [23:09:44]OFD Sender: No OFD packet to send [23:09:49]OFD Sender: No OFD packet to send [23:09:54]OFD Sender: No OFD packet to send [23:09:59]OFD Sender: No OFD packet to send [23:10:04]OFD Sender: No OFD packet to send [23:10:09]OFD Sender: No OFD packet to send [23:10:14]OFD Sender: No OFD packet to send [23:10:19]OFD Sender: No OFD packet to send [23:10:24]OFD Sender: No OFD packet to send [23:10:29]OFD Sender: No OFD packet to send [23:10:34]OFD Sender: No OFD packet to send [23:10:39]OFD Sender: No OFD packet to send [23:10:44]OFD Sender: No OFD packet to send [23:10:49]OFD Sender: No OFD packet to send [23:10:54]OFD Sender: No OFD packet to send [23:10:59]OFD Sender: No OFD packet to send [23:11:04]OFD Sender: No OFD packet to send [23:11:09]OFD Sender: No OFD packet to send [23:11:14]OFD Sender: No OFD packet to send [23:11:19]OFD Sender: No OFD packet to send [23:11:24]OFD Sender: No OFD packet to send [23:11:29]OFD Sender: No OFD packet to send [23:11:34]OFD Sender: No OFD packet to send [23:11:39]OFD Sender: No OFD packet to send [23:11:44]OFD Sender: No OFD packet to send [23:11:49]OFD Sender: No OFD packet to send [23:11:54]OFD Sender: No OFD packet to send [23:11:59]OFD Sender: No OFD packet to send [23:12:04]OFD Sender: No OFD packet to send [23:12:09]OFD Sender: No OFD packet to send [23:12:14]OFD Sender: No OFD packet to send [23:12:19]OFD Sender: No OFD packet to send [23:12:24]OFD Sender: No OFD packet to send [23:12:29]OFD Sender: No OFD packet to send [23:12:34]OFD Sender: No OFD packet to send [23:12:39]OFD Sender: No OFD packet to send [23:12:44]OFD Sender: No OFD packet to send [23:12:49]OFD Sender: No OFD packet to send [23:12:54]OFD Sender: No OFD packet to send [23:12:59]OFD Sender: No OFD packet to send [23:13:04]OFD Sender: No OFD packet to send [23:13:09]OFD Sender: No OFD packet to send [23:13:14]OFD Sender: No OFD packet to send [23:13:19]OFD Sender: No OFD packet to send [23:13:24]OFD Sender: No OFD packet to send [23:13:29]OFD Sender: No OFD packet to send [23:13:34]OFD Sender: No OFD packet to send [23:13:39]OFD Sender: No OFD packet to send [23:13:44]OFD Sender: No OFD packet to send [23:13:49]OFD Sender: No OFD packet to send [23:13:54]OFD Sender: No OFD packet to send [23:13:59]OFD Sender: No OFD packet to send [23:14:04]OFD Sender: No OFD packet to send [23:14:09]OFD Sender: No OFD packet to send [23:14:14]OFD Sender: No OFD packet to send [23:14:19]OFD Sender: No OFD packet to send [23:14:24]OFD Sender: No OFD packet to send [23:14:29]OFD Sender: No OFD packet to send [23:14:34]OFD Sender: No OFD packet to send [23:14:39]OFD Sender: No OFD packet to send [23:14:44]OFD Sender: No OFD packet to send [23:14:49]OFD Sender: No OFD packet to send [23:14:54]OFD Sender: No OFD packet to send [23:14:59]OFD Sender: No OFD packet to send [23:15:03]accept exits with 9 [23:15:03]New connection [23:15:03]New thread 3066928484 created [23:15:03]Thread 3066785124 joined [23:15:03]Waiting for new connection... [23:15:03] Sock 9.Parse request [23:15:03]Sock 9.Check first char [23:15:03]Sock 9.First char is OK [23:15:03]request: POST /json_proto HTTP/1.0 [23:15:03]Method: POST [23:15:03]URL: /json_proto [23:15:03]Method is POST - this is cgi request [23:15:03]url: /json_proto [23:15:03]query_string will be loaded in cgi processing [23:15:03]execute_cgi json_proto POST (null) [23:15:03]execute_cgi path=json_proto method=POST [23:15:03]POST find Content-Length [23:15:03]Host: 172.17.56.4:8080 [23:15:03]Content-Length: 677 [23:15:03]Content-Type: application/json [23:15:03] [23:15:03]POST finish read [23:15:03]Found Content-Length = 677 [23:15:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459218", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "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" ] } } [23:15:03]execute_script... [23:15:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459218", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "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" ] } } [23:15:03]POST & json_proto [23:15:03]process_json_proto [23:15:03]json parsed OK: [23:15:03]protocol is kg_v1.0 [23:15:03]action value=close_receipt [23:15:03]process_action close_receipt [23:15:03]cmd_close_receipt [23:15:03]MH_GetDate [23:15:03]Write to MH i2c: F0 00 00 4A 10 49 [23:15:03]Write i2c OK [23:15:03]MH_I2C_Read... [23:15:03]Read from MH i2c: F0 [23:15:03]MH_I2C_Read... [23:15:03]Read from MH i2c: F0 09 00 [23:15:03]MH_I2C_Read... [23:15:03]Read from MH i2c: F0 09 00 4A 10 00 F9 5B 94 66 C9 DC B2 64 5B [23:15:03]GetLastDocTimeStamp 1720998308 [23:15:03]current date 1720998905 [23:15:03]FM_GetShiftState [23:15:03]SAM_PROTO_GetShiftState [23:15:03]wFMCommunicate request_size=4 [23:15:03]MH_SAM_APDU [23:15:03]CAPDU: 80 13 01 00 [23:15:03]Write to MH i2c: E2 08 00 4B 10 80 13 01 00 00 00 00 00 D8 [23:15:03]Write i2c OK [23:15:03]MH_I2C_Read... [23:15:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:15:03]Read from MH i2c: E2 [23:15:03]MH_I2C_Read... [23:15:03]Read from MH i2c: E2 0E 00 [23:15:03]MH_I2C_Read... [23:15:03]Read from MH i2c: E2 0E 00 4B 10 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 58 [23:15:03]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [23:15:03]wFMCommunicate OK [23:15:03]SAM_PROTO_GetShiftState done [23:15:03]FM_GetShiftState done [23:15:03]opened in 1720917342 [23:15:03]opened+sec_in_day 1721003742 [23:15:03]quantity*price = 20003 [23:15:03]sum+1 = 20004 [23:15:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 313 14.07.2024 23:15 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165115 ФПД: 131907059551578 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T231505&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165115&fm=131907059551578&tin=02508201610067®Number=0000000000090829&sum=20000 [23:15:04]StoreToDocumentArchive [23:15:04]shift 447 fd 165115 [23:15:04]save to /storage/0447/doc_00165115 [23:15:04]save last doc name /storage/0447/doc_00165115 to /storage/kkm_last_doc_name [23:15:04]save OK [23:15:04]Clear old archive folders... [23:15:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:15:04]tlvbuf is 013BFEA0 [23:15:04]SAM_PROTO_ClearQueue [23:15:04]wFMCommunicate request_size=4 [23:15:04]MH_SAM_APDU [23:15:04]CAPDU: 80 09 00 00 [23:15:04]Write to MH i2c: E2 08 00 58 10 80 09 00 00 00 00 00 00 DA [23:15:04]Write i2c OK [23:15:04]MH_I2C_Read... [23:15:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:15:04]Read from MH i2c: E2 [23:15:04]MH_I2C_Read... [23:15:04]Read from MH i2c: E2 03 00 [23:15:04]MH_I2C_Read... [23:15:04]Read from MH i2c: E2 03 00 58 10 00 90 00 DC [23:15:04]RAPDU: 90 00 [23:15:04]wFMCommunicate OK [23:15:04]SAM_PROTO_ClearQueue done [23:15:04]KKMCreateOFDPacket [23:15:04]OFDProtocolAddRootSTLVToBuf [23:15:04]FM_MakeSignedData [23:15:04]FM_MakeSignedData [23:15:04]SAM_PROTO_SignData [23:15:04]wFMCommunicate request_size=4 [23:15:04]MH_SAM_APDU [23:15:04]CAPDU: 80 0D 01 02 [23:15:04]Write to MH i2c: E2 08 00 59 10 80 0D 01 02 00 00 00 00 E2 [23:15:04]Write i2c OK [23:15:04]MH_I2C_Read... [23:15:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:15:04]Read from MH i2c: E2 [23:15:04]MH_I2C_Read... [23:15:04]Read from MH i2c: E2 03 00 [23:15:04]MH_I2C_Read... [23:15:04]Read from MH i2c: E2 03 00 59 10 00 90 00 DD [23:15:04]RAPDU: 90 00 [23:15:04]wFMCommunicate OK [23:15:04]wFMCommunicate request_size=255 [23:15:04]MH_SAM_APDU [23:15:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 F9 5B 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FB 84 02 00 35 04 06 00 77 [23:15:04]Write to MH i2c: E2 02 01 5A 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 F9 5B 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FB 84 02 00 35 04 06 00 77 00 00 3C [23:15:04]Write i2c OK [23:15:04]MH_I2C_Read... [23:15:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:15:04]Read from MH i2c: E2 [23:15:04]MH_I2C_Read... [23:15:04]Read from MH i2c: E2 03 00 [23:15:04]MH_I2C_Read... [23:15:04]Read from MH i2c: E2 03 00 5A 10 00 90 00 DE [23:15:04]RAPDU: 90 00 [23:15:04]wFMCommunicate OK [23:15:04]wFMCommunicate request_size=10 [23:15:04]MH_SAM_APDU [23:15:04]CAPDU: 80 0D 02 02 05 F8 01 6D 8D 5A [23:15:04]Write to MH i2c: E2 0D 00 5B 10 80 0D 02 02 05 00 F8 01 6D 8D 5A 00 00 3C [23:15:04]Write i2c OK [23:15:04]MH_I2C_Read... [23:15:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:15:04]Read from MH i2c: E2 [23:15:04]MH_I2C_Read... [23:15:04]Read from MH i2c: E2 03 00 [23:15:04]MH_I2C_Read... [23:15:04]Read from MH i2c: E2 03 00 5B 10 00 90 00 DF [23:15:04]RAPDU: 90 00 [23:15:04]wFMCommunicate OK [23:15:04]wFMCommunicate request_size=4 [23:15:04]MH_SAM_APDU [23:15:04]CAPDU: 80 0D 03 02 [23:15:04]Write to MH i2c: E2 08 00 5C 10 80 0D 03 02 00 00 00 00 E7 [23:15:04]Write i2c OK [23:15:04]MH_I2C_Read... [23:15:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:15:04]Read from MH i2c: E2 [23:15:04]MH_I2C_Read... [23:15:04]Read from MH i2c: E2 0B 00 [23:15:04]MH_I2C_Read... [23:15:04]Read from MH i2c: E2 0B 00 5C 10 00 D8 FA FA 93 A4 AF 38 E7 90 00 B9 [23:15:04]RAPDU: D8 FA FA 93 A4 AF 38 E7 90 00 [23:15:04]wFMCommunicate OK [23:15:04]SAM_PROTO_SignData done [23:15:04]FM_MakeSignedData done [23:15:04]CreateOFDProtocolMessage [23:15:04]wFMCommunicate request_size=4 [23:15:04]MH_SAM_APDU [23:15:04]CAPDU: 80 11 00 00 [23:15:04]Write to MH i2c: E2 08 00 5D 10 80 11 00 00 00 00 00 00 E7 [23:15:04]Write i2c OK [23:15:04]MH_I2C_Read... [23:15:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:15:04]Read from MH i2c: E2 [23:15:04]MH_I2C_Read... [23:15:04]Read from MH i2c: E2 17 00 [23:15:04]MH_I2C_Read... [23:15:04]Read from MH i2c: E2 17 00 5D 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 3D [23:15:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:15:04]wFMCommunicate OK [23:15:04]CreateOFDProtocolMessage done [23:15:04]OFDSenderStorePacket 165115 [23:15:04]StoreOFDPacket docnum=165115 [23:15:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 02 EA 07 01 80 AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 F9 5B 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FB 84 02 00 35 04 06 00 77 F8 01 6D 8D 5A D8 FA FA 93 A4 AF 38 E7 [23:15:04]CheckFolder [23:15:04]dirname=/storage/ofd_packets [23:15:04]CheckFolder done [23:15:04]ProducePacketName [23:15:04]name=ofd_packets/00165115 [23:15:04]NVStorageSaveData ofd_packets/00165115 [23:15:04]File name is /storage/ofd_packets/00165115 [23:15:04]Write 301 bytes [23:15:04]NVStorageSaveData done [23:15:04]OFDSenderStorePacket done [23:15:04]KKMCreateOFDPacket done [23:15:04]NVStorageSaveData kkm_last_timestamp [23:15:04]File name is /storage/kkm_last_timestamp [23:15:04]Write 4 bytes [23:15:04]NVStorageSaveData done [23:15:04]ExternCall_PrintAddStr [23:15:04]wPrintStart [23:15:04]Write to MH i2c: 01 00 00 5E 10 6E [23:15:04]Write i2c OK [23:15:04]MH_I2C_Read... [23:15:04]Read from MH i2c: 01 [23:15:04]MH_I2C_Read... [23:15:04]Read from MH i2c: 01 07 00 [23:15:04]MH_I2C_Read... [23:15:04]Read from MH i2c: 01 07 00 5E 10 00 00 00 00 00 FF 0F 83 [23:15:04]RasterBufferAndPrint [23:15:04]line Счет N : (1)459218 [23:15:04]line ИНН: 02508201610067 [23:15:04]line Контрольно-Кассовый Чек [23:15:04]line ПРОДАЖА [23:15:04]line ТРК (МРК, ГНК) : 12 [23:15:04]line Товар: 2710124130 [23:15:04]line Аи-92-К-5 [23:15:04]line 3.040 * 65.80 [23:15:04]line = 200.03 [23:15:04]line НДС 12% НСП 1% [23:15:04]line > о реализуемом товаре [23:15:04]line ОКРУГЛЕНИЕ: -0.03 [23:15:04]line ИТОГО: 200.00 [23:15:04]line Внесено: 200.00 [23:15:04]line СДАЧА: 0.00 [23:15:04]line НСП 1% : 1.77 [23:15:04]line НДС 12% : 21.24 [23:15:04]line Наличными: 200.00 [23:15:04]line Безнал.: 0.00 [23:15:04]line Место: АЗС № 72 "Партнер Нефть" [23:15:04]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [23:15:04]line СНО: Общий режим [23:15:04]line Чек 313 14.07.2024 23:15 [23:15:04]line Смена: 447 ФФД: 1.0 [23:15:04]line ЗНМ: 0300000160 [23:15:04]line РНМ: 0000000000090829 [23:15:04]line Версия ККМ: 001 [23:15:04]line ФМ: 0000000000874718 [23:15:04]line ФД: 165115 [23:15:04]line ФПД: 131907059551578 [23:15:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T231505&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165115&fm=131907059551578&tin=02508201610067®Number=0000000000090829&sum=20000 [23:15:05]written 0, free lines is 4095 [23:15:05]OFD Sender: Processing packet 165115 [packets to send 106, broken 105] [23:15:05]ProducePacketName [23:15:05]name=ofd_packets/00165115 [23:15:05]OFD Sender: To server: pG, [23:15:05]CommunicateWithHost lk.salyk.kg:30040 [23:15:05]ConnectInit lk.salyk.kg [23:15:05]Connected sock=10 [23:15:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 02 EA 07 01 80 AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 F9 5B 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FB 84 02 00 35 04 06 00 77 F8 01 6D 8D 5A D8 FA FA 93 A4 AF 38 E7 [23:15:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 22 D7 47 00 22 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FB 84 02 00 F4 03 04 00 85 02 94 66 B6 04 01 00 00 DB 5D 56 05 1D DD B4 F0 [23:15:05]CommunicateWithHost err = 0 [23:15:05]CheckOFDResponse [23:15:05]1017 (14) - 77093643461234 [23:15:05]1041 (16) - 0000000000874718 [23:15:05]1040 (4) - 165115 [23:15:05]1012 (4) - 14.07.2024 16:53 [23:15:05]1206 (1) - 0 [23:15:05]OFD Sender: Remove packet 165115 [23:15:05]ProducePacketName [23:15:05]name=ofd_packets/00165115 [23:15:05]NVStorageDeleteData [23:15:05]Write to MH i2c: 01 00 00 88 10 98 [23:15:05]Write i2c OK [23:15:05]MH_I2C_Read... [23:15:05]Read from MH i2c: 01 [23:15:05]MH_I2C_Read... [23:15:05]Read from MH i2c: 01 07 00 [23:15:05]MH_I2C_Read... [23:15:05]Read from MH i2c: 01 07 00 88 10 00 00 00 00 00 EF 0C 9A [23:15:05]RasterBufferAndPrint [23:15:05]line [23:15:05]line [23:15:05]line [23:15:05]line [23:15:05]line [23:15:05]written 0, free lines is 3317 [23:15:05]MH_Cut [23:15:05]Write to MH i2c: D1 01 00 8F 10 01 71 [23:15:05]Write i2c OK [23:15:05]MH_I2C_Read... [23:15:05]Read from MH i2c: D1 [23:15:05]MH_I2C_Read... [23:15:05]Read from MH i2c: D1 01 00 [23:15:05]MH_I2C_Read... [23:15:05]Read from MH i2c: D1 01 00 8F 10 00 70 [23:15:05]Write to MH i2c: 01 00 00 90 10 A0 [23:15:05]Write i2c OK [23:15:05]MH_I2C_Read... [23:15:05]OFD Sender: No OFD packet to send [23:15:06]*** Cut start [23:15:06]*** Partial cut [23:15:06]*** CUTSNS_PIN = 1 [23:15:06]*** CUTSNS_PIN = 0 [23:15:06]*** Brake cut motor [23:15:06]Read from MH i2c: 01 [23:15:06]MH_I2C_Read... [23:15:06]*** Stop cut motor [23:15:06]*** Cut end [23:15:06]Read from MH i2c: 01 07 00 [23:15:06]MH_I2C_Read... [23:15:06]Read from MH i2c: 01 07 00 90 10 00 00 00 00 00 FF 0F B5 [23:15:06]process_action close_receipt done [23:15:06]requested_data is exist [23:15:06]produce_requested_data [23:15:06]requested_item fm.sn is exist - process it [23:15:06]wFMCommunicate request_size=4 [23:15:06]MH_SAM_APDU [23:15:06]CAPDU: 80 11 00 00 [23:15:06]Write to MH i2c: E2 08 00 91 10 80 11 00 00 00 00 00 00 1B [23:15:06]Write i2c OK [23:15:06]MH_I2C_Read... [23:15:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:15:06]Read from MH i2c: E2 [23:15:06]MH_I2C_Read... [23:15:06]Read from MH i2c: E2 17 00 [23:15:06]MH_I2C_Read... [23:15:06]Read from MH i2c: E2 17 00 91 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 71 [23:15:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:15:06]wFMCommunicate OK [23:15:06]requested_item fd.num is exist - process it [23:15:06]SAM_PROTO_GetFieldsCounters [23:15:06]wFMCommunicate request_size=4 [23:15:06]MH_SAM_APDU [23:15:06]CAPDU: 80 13 00 00 [23:15:06]Write to MH i2c: E2 08 00 92 10 80 13 00 00 00 00 00 00 1E [23:15:06]Write i2c OK [23:15:06]MH_I2C_Read... [23:15:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:15:06]Read from MH i2c: E2 [23:15:06]MH_I2C_Read... [23:15:06]Read from MH i2c: E2 62 00 [23:15:06]MH_I2C_Read... [23:15:06]Read from MH i2c: E2 62 00 92 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 FB 84 02 00 0E 04 04 00 BF 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 34 [23:15:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 FB 84 02 00 0E 04 04 00 BF 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 [23:15:06]wFMCommunicate OK [23:15:06]SAM_PROTO_GetFieldsCounters done [23:15:06]requested_item shift.num is exist - process it [23:15:06]requested_item shift.opened is exist - process it [23:15:06]req_shift_opened [23:15:06]FM_GetShiftState [23:15:06]SAM_PROTO_GetShiftState [23:15:06]wFMCommunicate request_size=4 [23:15:06]MH_SAM_APDU [23:15:06]CAPDU: 80 13 01 00 [23:15:06]Write to MH i2c: E2 08 00 93 10 80 13 01 00 00 00 00 00 20 [23:15:06]Write i2c OK [23:15:06]MH_I2C_Read... [23:15:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:15:07]Read from MH i2c: E2 [23:15:07]MH_I2C_Read... [23:15:07]Read from MH i2c: E2 0E 00 [23:15:07]MH_I2C_Read... [23:15:07]Read from MH i2c: E2 0E 00 93 10 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 A0 [23:15:07]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [23:15:07]wFMCommunicate OK [23:15:07]SAM_PROTO_GetShiftState done [23:15:07]FM_GetShiftState done [23:15:07]req_shift_opened done [23:15:07]requested_item shift.open_date is exist - process it [23:15:07]req_shift_open_date [23:15:07]req_shift_open_date done [23:15:07]produce_requested_data done [23:15:07]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165115,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [23:15:07]process_action_free close_receipt [23:15:07]json_value_free [23:15:07]json_value_free done [23:15:07]process_json_proto returns [23:15:07]Send response to host [23:15:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165115,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [23:15:07]free response buf [23:15:07]execute_script done [23:15:07]execute_script returns [23:15:07]free content buf [23:15:07]Sock 9.Close socket [23:15:07]Sock 9.Thread stoped [23:15:10]OFD Sender: No OFD packet to send [23:15:15]OFD Sender: No OFD packet to send [23:15:20]OFD Sender: No OFD packet to send [23:15:25]OFD Sender: No OFD packet to send [23:15:30]OFD Sender: No OFD packet to send [23:15:35]OFD Sender: No OFD packet to send [23:15:40]OFD Sender: No OFD packet to send [23:15:45]OFD Sender: No OFD packet to send [23:15:50]OFD Sender: No OFD packet to send [23:15:55]OFD Sender: No OFD packet to send [23:16:00]OFD Sender: No OFD packet to send [23:16:05]OFD Sender: No OFD packet to send [23:16:10]OFD Sender: No OFD packet to send [23:16:15]OFD Sender: No OFD packet to send [23:16:20]OFD Sender: No OFD packet to send [23:16:25]OFD Sender: No OFD packet to send [23:16:30]OFD Sender: No OFD packet to send [23:16:32]accept exits with 7 [23:16:32]New connection [23:16:32]New thread 3066785124 created [23:16:32]Thread 3066928484 joined [23:16:32]Waiting for new connection... [23:16:32] Sock 7.Parse request [23:16:32]Sock 7.Check first char [23:16:32]Sock 7.First char is OK [23:16:32]request: POST /json_proto HTTP/1.0 [23:16:32]Method: POST [23:16:32]URL: /json_proto [23:16:32]Method is POST - this is cgi request [23:16:32]url: /json_proto [23:16:32]query_string will be loaded in cgi processing [23:16:32]execute_cgi json_proto POST (null) [23:16:32]execute_cgi path=json_proto method=POST [23:16:32]POST find Content-Length [23:16:32]Host: 172.17.56.4:8080 [23:16:32]Content-Length: 790 [23:16:32]Content-Type: application/json [23:16:32] [23:16:32]POST finish read [23:16:32]Found Content-Length = 790 [23:16:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459219", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 5.000, "sum" : 326.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 326.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:16:32]execute_script... [23:16: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)459219", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 5.000, "sum" : 326.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 326.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:16:32]POST & json_proto [23:16:32]process_json_proto [23:16:32]json parsed OK: [23:16:32]protocol is kg_v1.0 [23:16:32]action value=close_receipt [23:16:32]process_action close_receipt [23:16:32]cmd_close_receipt [23:16:32]MH_GetDate [23:16:32]Write to MH i2c: F0 00 00 94 10 93 [23:16:32]Write i2c OK [23:16:32]MH_I2C_Read... [23:16:32]Read from MH i2c: F0 [23:16:32]MH_I2C_Read... [23:16:32]Read from MH i2c: F0 09 00 [23:16:32]MH_I2C_Read... [23:16:32]Read from MH i2c: F0 09 00 94 10 00 52 5C 94 66 C9 DC B2 64 FF [23:16:32]GetLastDocTimeStamp 1720998905 [23:16:32]current date 1720998994 [23:16:32]FM_GetShiftState [23:16:32]SAM_PROTO_GetShiftState [23:16:32]wFMCommunicate request_size=4 [23:16:32]MH_SAM_APDU [23:16:32]CAPDU: 80 13 01 00 [23:16:32]Write to MH i2c: E2 08 00 95 10 80 13 01 00 00 00 00 00 22 [23:16:32]Write i2c OK [23:16:32]MH_I2C_Read... [23:16:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:16:32]Read from MH i2c: E2 [23:16:32]MH_I2C_Read... [23:16:32]Read from MH i2c: E2 0E 00 [23:16:32]MH_I2C_Read... [23:16:32]Read from MH i2c: E2 0E 00 95 10 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 A2 [23:16:32]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [23:16:32]wFMCommunicate OK [23:16:32]SAM_PROTO_GetShiftState done [23:16:32]FM_GetShiftState done [23:16:32]opened in 1720917342 [23:16:32]opened+sec_in_day 1721003742 [23:16:32]quantity*price = 32610 [23:16:32]sum+1 = 32611 [23:16:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 326.10 НСП 1% : 2.89 НДС 12% : 34.63 Наличными: 0.00 Безнал.: 326.10 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 314 14.07.2024 23:16 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 165116 ФПД: 254822145284615 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T231634&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165116&fm=254822145284615&tin=02508201610067®Number=0000000000090829&sum=32610 [23:16:33]StoreToDocumentArchive [23:16:33]shift 447 fd 165116 [23:16:33]save to /storage/0447/doc_00165116 [23:16:33]save last doc name /storage/0447/doc_00165116 to /storage/kkm_last_doc_name [23:16:33]save OK [23:16:33]Clear old archive folders... [23:16:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:16:33]tlvbuf is 013B7250 [23:16:33]SAM_PROTO_ClearQueue [23:16:33]wFMCommunicate request_size=4 [23:16:33]MH_SAM_APDU [23:16:33]CAPDU: 80 09 00 00 [23:16:33]Write to MH i2c: E2 08 00 A2 10 80 09 00 00 00 00 00 00 24 [23:16:33]Write i2c OK [23:16:33]MH_I2C_Read... [23:16:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:16:33]Read from MH i2c: E2 [23:16:33]MH_I2C_Read... [23:16:33]Read from MH i2c: E2 03 00 [23:16:33]MH_I2C_Read... [23:16:33]Read from MH i2c: E2 03 00 A2 10 00 90 00 26 [23:16:33]RAPDU: 90 00 [23:16:33]wFMCommunicate OK [23:16:33]SAM_PROTO_ClearQueue done [23:16:33]KKMCreateOFDPacket [23:16:33]OFDProtocolAddRootSTLVToBuf [23:16:33]FM_MakeSignedData [23:16:33]FM_MakeSignedData [23:16:33]SAM_PROTO_SignData [23:16:33]wFMCommunicate request_size=4 [23:16:33]MH_SAM_APDU [23:16:33]CAPDU: 80 0D 01 02 [23:16:33]Write to MH i2c: E2 08 00 A3 10 80 0D 01 02 00 00 00 00 2C [23:16:33]Write i2c OK [23:16:33]MH_I2C_Read... [23:16:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:16:33]Read from MH i2c: E2 [23:16:33]MH_I2C_Read... [23:16:33]Read from MH i2c: E2 03 00 [23:16:33]MH_I2C_Read... [23:16:33]Read from MH i2c: E2 03 00 A3 10 00 90 00 27 [23:16:33]RAPDU: 90 00 [23:16:33]wFMCommunicate OK [23:16:33]wFMCommunicate request_size=255 [23:16:33]MH_SAM_APDU [23:16:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 62 7F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 7F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 7F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 52 5C 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FC 84 02 00 35 04 06 00 E7 [23:16:33]Write to MH i2c: E2 02 01 A4 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 62 7F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 7F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 7F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 52 5C 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FC 84 02 00 35 04 06 00 E7 00 00 CF [23:16:33]Write i2c OK [23:16:33]MH_I2C_Read... [23:16:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:16:34]Read from MH i2c: E2 [23:16:34]MH_I2C_Read... [23:16:34]Read from MH i2c: E2 03 00 [23:16:34]MH_I2C_Read... [23:16:34]Read from MH i2c: E2 03 00 A4 10 00 90 00 28 [23:16:34]RAPDU: 90 00 [23:16:34]wFMCommunicate OK [23:16:34]wFMCommunicate request_size=10 [23:16:34]MH_SAM_APDU [23:16:34]CAPDU: 80 0D 02 02 05 C2 67 73 5A 07 [23:16:34]Write to MH i2c: E2 0D 00 A5 10 80 0D 02 02 05 00 C2 67 73 5A 07 00 00 36 [23:16:34]Write i2c OK [23:16:34]MH_I2C_Read... [23:16:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:16:34]Read from MH i2c: E2 [23:16:34]MH_I2C_Read... [23:16:34]Read from MH i2c: E2 03 00 [23:16:34]MH_I2C_Read... [23:16:34]Read from MH i2c: E2 03 00 A5 10 00 90 00 29 [23:16:34]RAPDU: 90 00 [23:16:34]wFMCommunicate OK [23:16:34]wFMCommunicate request_size=4 [23:16:34]MH_SAM_APDU [23:16:34]CAPDU: 80 0D 03 02 [23:16:34]Write to MH i2c: E2 08 00 A6 10 80 0D 03 02 00 00 00 00 31 [23:16:34]Write i2c OK [23:16:34]MH_I2C_Read... [23:16:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:16:34]Read from MH i2c: E2 [23:16:34]MH_I2C_Read... [23:16:34]Read from MH i2c: E2 0B 00 [23:16:34]MH_I2C_Read... [23:16:34]Read from MH i2c: E2 0B 00 A6 10 00 19 4D 01 B5 31 08 0C 18 90 00 AB [23:16:34]RAPDU: 19 4D 01 B5 31 08 0C 18 90 00 [23:16:34]wFMCommunicate OK [23:16:34]SAM_PROTO_SignData done [23:16:34]FM_MakeSignedData done [23:16:34]CreateOFDProtocolMessage [23:16:34]wFMCommunicate request_size=4 [23:16:34]MH_SAM_APDU [23:16:34]CAPDU: 80 11 00 00 [23:16:34]Write to MH i2c: E2 08 00 A7 10 80 11 00 00 00 00 00 00 31 [23:16:34]Write i2c OK [23:16:34]MH_I2C_Read... [23:16:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:16:34]Read from MH i2c: E2 [23:16:34]MH_I2C_Read... [23:16:34]Read from MH i2c: E2 17 00 [23:16:34]MH_I2C_Read... [23:16:34]Read from MH i2c: E2 17 00 A7 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 87 [23:16:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:16:34]wFMCommunicate OK [23:16:34]CreateOFDProtocolMessage done [23:16:34]OFDSenderStorePacket 165116 [23:16:34]StoreOFDPacket docnum=165116 [23:16:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 EE 5C 07 01 47 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 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 62 7F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 7F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 7F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 52 5C 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FC 84 02 00 35 04 06 00 E7 C2 67 73 5A 07 19 4D 01 B5 31 08 0C 18 [23:16:34]CheckFolder [23:16:34]dirname=/storage/ofd_packets [23:16:34]CheckFolder done [23:16:34]ProducePacketName [23:16:34]name=ofd_packets/00165116 [23:16:34]NVStorageSaveData ofd_packets/00165116 [23:16:34]File name is /storage/ofd_packets/00165116 [23:16:34]Write 301 bytes [23:16:34]NVStorageSaveData done [23:16:34]OFDSenderStorePacket done [23:16:34]KKMCreateOFDPacket done [23:16:34]NVStorageSaveData kkm_last_timestamp [23:16:34]File name is /storage/kkm_last_timestamp [23:16:34]Write 4 bytes [23:16:34]NVStorageSaveData done [23:16:34]ExternCall_PrintAddStr [23:16:34]wPrintStart [23:16:34]Write to MH i2c: 01 00 00 A8 10 B8 [23:16:34]Write i2c OK [23:16:34]MH_I2C_Read... [23:16:34]Read from MH i2c: 01 [23:16:34]MH_I2C_Read... [23:16:34]Read from MH i2c: 01 07 00 [23:16:34]MH_I2C_Read... [23:16:34]Read from MH i2c: 01 07 00 A8 10 00 00 00 00 00 FF 0F CD [23:16:34]RasterBufferAndPrint [23:16:34]line Счет N : (1)459219 [23:16:34]line ИНН: 02508201610067 [23:16:34]line Контрольно-Кассовый Чек [23:16:34]line ПРОДАЖА [23:16:34]line ТРК (МРК, ГНК) : 22 [23:16:34]line Товар: 2710124130 [23:16:34]line Аи-92-К-5 [23:16:34]line 5.000 * 65.22 [23:16:34]line = 326.10 [23:16:34]line НДС 12% НСП 1% [23:16:34]line > о реализуемом товаре [23:16:34]line ИТОГО: 326.10 [23:16:34]line НСП 1% : 2.89 [23:16:34]line НДС 12% : 34.63 [23:16:34]line Наличными: 0.00 [23:16:34]line Безнал.: 326.10 [23:16:34]line Место: АЗС № 72 "Партнер Нефть" [23:16:34]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [23:16:34]line СНО: Общий режим [23:16:34]line Чек 314 14.07.2024 23:16 [23:16:34]line Смена: 447 ФФД: 1.0 [23:16:34]line ЗНМ: 0300000160 [23:16:34]line РНМ: 0000000000090829 [23:16:34]line Версия ККМ: 001 [23:16:34]line Платежная система: KICB Банк [23:16:34]line ФМ: 0000000000874718 [23:16:34]line ФД: 165116 [23:16:34]line ФПД: 254822145284615 [23:16:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T231634&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165116&fm=254822145284615&tin=02508201610067®Number=0000000000090829&sum=32610 [23:16:34]written 0, free lines is 4095 [23:16:34]OFD Sender: Processing packet 165116 [packets to send 106, broken 105] [23:16:34]ProducePacketName [23:16:34]name=ofd_packets/00165116 [23:16:34]OFD Sender: To server: pG, [23:16:34]CommunicateWithHost lk.salyk.kg:30040 [23:16:34]ConnectInit lk.salyk.kg [23:16:34]Connected sock=10 [23:16:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 EE 5C 07 01 47 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 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 62 7F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 7F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 7F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 52 5C 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FC 84 02 00 35 04 06 00 E7 C2 67 73 5A 07 19 4D 01 B5 31 08 0C 18 [23:16:34]Write to MH i2c: 01 00 00 D1 10 E1 [23:16:34]Write i2c OK [23:16:34]MH_I2C_Read... [23:16:34]Read from MH i2c: 01 [23:16:34]MH_I2C_Read... [23:16:34]Read from MH i2c: 01 07 00 [23:16:34]MH_I2C_Read... [23:16:34]Read from MH i2c: 01 07 00 D1 10 00 00 00 00 00 0D 0D 02 [23:16:34]RasterBufferAndPrint [23:16:34]line [23:16:34]line [23:16:34]line [23:16:34]line [23:16:34]line [23:16:34]written 0, free lines is 3347 [23:16:34]MH_Cut [23:16:34]Write to MH i2c: D1 01 00 D8 10 01 BA [23:16:34]Write i2c OK [23:16:34]MH_I2C_Read... [23:16:34]Read from MH i2c: D1 [23:16:34]MH_I2C_Read... [23:16:34]Read from MH i2c: D1 01 00 [23:16:34]MH_I2C_Read... [23:16:34]Read from MH i2c: D1 01 00 D8 10 00 B9 [23:16:34]Write to MH i2c: 01 00 00 D9 10 E9 [23:16:34]Write i2c OK [23:16:34]MH_I2C_Read... [23:16:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 1C 58 47 00 80 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 38 37 34 37 31 38 10 04 04 00 FC 84 02 00 F4 03 04 00 DE 02 94 66 B6 04 01 00 00 F9 66 CD 3A 3B 6F EF B8 [23:16:34]CommunicateWithHost err = 0 [23:16:34]CheckOFDResponse [23:16:34]1017 (14) - 77093643461234 [23:16:34]1041 (16) - 0000000000874718 [23:16:34]1040 (4) - 165116 [23:16:34]1012 (4) - 14.07.2024 16:54 [23:16:34]1206 (1) - 0 [23:16:34]OFD Sender: Remove packet 165116 [23:16:34]ProducePacketName [23:16:34]name=ofd_packets/00165116 [23:16:34]NVStorageDeleteData [23:16:35]*** Cut start [23:16:35]*** Partial cut [23:16:35]*** CUTSNS_PIN = 1 [23:16:35]*** CUTSNS_PIN = 0 [23:16:35]OFD Sender: No OFD packet to send [23:16:35]*** Brake cut motor [23:16:35]Read from MH i2c: 01 [23:16:35]MH_I2C_Read... [23:16:35]*** Stop cut motor [23:16:35]*** Cut end [23:16:35]Read from MH i2c: 01 07 00 [23:16:35]MH_I2C_Read... [23:16:35]Read from MH i2c: 01 07 00 D9 10 00 00 00 00 00 FF 0F FE [23:16:35]process_action close_receipt done [23:16:35]requested_data is exist [23:16:35]produce_requested_data [23:16:35]requested_item fm.sn is exist - process it [23:16:35]wFMCommunicate request_size=4 [23:16:35]MH_SAM_APDU [23:16:35]CAPDU: 80 11 00 00 [23:16:35]Write to MH i2c: E2 08 00 DA 10 80 11 00 00 00 00 00 00 64 [23:16:35]Write i2c OK [23:16:35]MH_I2C_Read... [23:16:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:16:35]Read from MH i2c: E2 [23:16:35]MH_I2C_Read... [23:16:35]Read from MH i2c: E2 17 00 [23:16:35]MH_I2C_Read... [23:16:35]Read from MH i2c: E2 17 00 DA 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 BA [23:16:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:16:35]wFMCommunicate OK [23:16:35]requested_item fd.num is exist - process it [23:16:35]SAM_PROTO_GetFieldsCounters [23:16:35]wFMCommunicate request_size=4 [23:16:35]MH_SAM_APDU [23:16:35]CAPDU: 80 13 00 00 [23:16:35]Write to MH i2c: E2 08 00 DB 10 80 13 00 00 00 00 00 00 67 [23:16:35]Write i2c OK [23:16:35]MH_I2C_Read... [23:16:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:16:36]Read from MH i2c: E2 [23:16:36]MH_I2C_Read... [23:16:36]Read from MH i2c: E2 62 00 [23:16:36]MH_I2C_Read... [23:16:36]Read from MH i2c: E2 62 00 DB 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 FC 84 02 00 0E 04 04 00 BF 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 81 [23:16:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 FC 84 02 00 0E 04 04 00 BF 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 [23:16:36]wFMCommunicate OK [23:16:36]SAM_PROTO_GetFieldsCounters done [23:16:36]requested_item shift.num is exist - process it [23:16:36]requested_item shift.opened is exist - process it [23:16:36]req_shift_opened [23:16:36]FM_GetShiftState [23:16:36]SAM_PROTO_GetShiftState [23:16:36]wFMCommunicate request_size=4 [23:16:36]MH_SAM_APDU [23:16:36]CAPDU: 80 13 01 00 [23:16:36]Write to MH i2c: E2 08 00 DC 10 80 13 01 00 00 00 00 00 69 [23:16:36]Write i2c OK [23:16:36]MH_I2C_Read... [23:16:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:16:36]Read from MH i2c: E2 [23:16:36]MH_I2C_Read... [23:16:36]Read from MH i2c: E2 0E 00 [23:16:36]MH_I2C_Read... [23:16:36]Read from MH i2c: E2 0E 00 DC 10 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 E9 [23:16:36]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [23:16:36]wFMCommunicate OK [23:16:36]SAM_PROTO_GetShiftState done [23:16:36]FM_GetShiftState done [23:16:36]req_shift_opened done [23:16:36]requested_item shift.open_date is exist - process it [23:16:36]req_shift_open_date [23:16:36]req_shift_open_date done [23:16:36]produce_requested_data done [23:16:36]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165116,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [23:16:36]process_action_free close_receipt [23:16:36]json_value_free [23:16:36]json_value_free done [23:16:36]process_json_proto returns [23:16:36]Send response to host [23:16:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165116,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [23:16:36]free response buf [23:16:36]execute_script done [23:16:36]execute_script returns [23:16:36]free content buf [23:16:36]Sock 7.Close socket [23:16:36]Sock 7.Thread stoped [23:16:40]OFD Sender: No OFD packet to send [23:16:45]OFD Sender: No OFD packet to send [23:16:50]OFD Sender: No OFD packet to send [23:16:55]OFD Sender: No OFD packet to send [23:17:00]OFD Sender: No OFD packet to send [23:17:05]OFD Sender: No OFD packet to send [23:17:10]OFD Sender: No OFD packet to send [23:17:15]OFD Sender: No OFD packet to send [23:17:20]OFD Sender: No OFD packet to send [23:17:25]OFD Sender: No OFD packet to send [23:17:30]OFD Sender: No OFD packet to send [23:17:35]OFD Sender: No OFD packet to send [23:17:40]OFD Sender: No OFD packet to send [23:17:45]OFD Sender: No OFD packet to send [23:17:50]OFD Sender: No OFD packet to send [23:17:55]OFD Sender: No OFD packet to send [23:18:00]OFD Sender: No OFD packet to send [23:18:05]OFD Sender: No OFD packet to send [23:18:10]OFD Sender: No OFD packet to send [23:18:15]OFD Sender: No OFD packet to send [23:18:20]OFD Sender: No OFD packet to send [23:18:25]OFD Sender: No OFD packet to send [23:18:30]OFD Sender: No OFD packet to send [23:18:35]OFD Sender: No OFD packet to send [23:18:40]OFD Sender: No OFD packet to send [23:18:45]OFD Sender: No OFD packet to send [23:18:50]OFD Sender: No OFD packet to send [23:18:55]OFD Sender: No OFD packet to send [23:19:00]OFD Sender: No OFD packet to send [23:19:05]OFD Sender: No OFD packet to send [23:19:10]OFD Sender: No OFD packet to send [23:19:15]OFD Sender: No OFD packet to send [23:19:20]OFD Sender: No OFD packet to send [23:19:25]OFD Sender: No OFD packet to send [23:19:30]OFD Sender: No OFD packet to send [23:19:35]OFD Sender: No OFD packet to send [23:19:40]OFD Sender: No OFD packet to send [23:19:45]OFD Sender: No OFD packet to send [23:19:50]OFD Sender: No OFD packet to send [23:19:55]OFD Sender: No OFD packet to send [23:20:00]OFD Sender: No OFD packet to send [23:20:05]OFD Sender: No OFD packet to send [23:20:10]OFD Sender: No OFD packet to send [23:20:15]OFD Sender: No OFD packet to send [23:20:20]OFD Sender: No OFD packet to send [23:20:25]OFD Sender: No OFD packet to send [23:20:30]OFD Sender: No OFD packet to send [23:20:35]OFD Sender: No OFD packet to send [23:20:40]OFD Sender: No OFD packet to send [23:20:45]OFD Sender: No OFD packet to send [23:20:50]OFD Sender: No OFD packet to send [23:20:55]OFD Sender: No OFD packet to send [23:21:00]OFD Sender: No OFD packet to send [23:21:05]OFD Sender: No OFD packet to send [23:21:10]OFD Sender: No OFD packet to send [23:21:15]OFD Sender: No OFD packet to send [23:21:20]OFD Sender: No OFD packet to send [23:21:25]OFD Sender: No OFD packet to send [23:21:30]OFD Sender: No OFD packet to send [23:21:35]OFD Sender: No OFD packet to send [23:21:40]OFD Sender: No OFD packet to send [23:21:45]OFD Sender: No OFD packet to send [23:21:50]OFD Sender: No OFD packet to send [23:21:55]OFD Sender: No OFD packet to send [23:22:00]OFD Sender: No OFD packet to send [23:22:05]OFD Sender: No OFD packet to send [23:22:10]OFD Sender: No OFD packet to send [23:22:15]OFD Sender: No OFD packet to send [23:22:20]OFD Sender: No OFD packet to send [23:22:25]OFD Sender: No OFD packet to send [23:22:30]OFD Sender: No OFD packet to send [23:22:35]OFD Sender: No OFD packet to send [23:22:40]OFD Sender: No OFD packet to send [23:22:45]OFD Sender: No OFD packet to send [23:22:50]OFD Sender: No OFD packet to send [23:22:55]OFD Sender: No OFD packet to send [23:23:00]OFD Sender: No OFD packet to send [23:23:05]OFD Sender: No OFD packet to send [23:23:10]OFD Sender: No OFD packet to send [23:23:15]OFD Sender: No OFD packet to send [23:23:20]OFD Sender: No OFD packet to send [23:23: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:24:00]OFD Sender: No OFD packet to send [23:24:05]OFD Sender: No OFD packet to send [23:24:10]OFD Sender: No OFD packet to send [23:24:15]OFD Sender: No OFD packet to send [23:24:20]OFD Sender: No OFD packet to send [23:24:25]OFD Sender: No OFD packet to send [23:24:30]OFD Sender: No OFD packet to send [23:24:32]accept exits with 9 [23:24:32]New connection [23:24:32]New thread 3066928484 created [23:24:32]Thread 3066785124 joined [23:24:32]Waiting for new connection... [23:24:32] Sock 9.Parse request [23:24:32]Sock 9.Check first char [23:24:32]Sock 9.First char is OK [23:24:32]request: POST /json_proto HTTP/1.0 [23:24:32]Method: POST [23:24:32]URL: /json_proto [23:24:32]Method is POST - this is cgi request [23:24:32]url: /json_proto [23:24:32]query_string will be loaded in cgi processing [23:24:32]execute_cgi json_proto POST (null) [23:24:32]execute_cgi path=json_proto method=POST [23:24:32]POST find Content-Length [23:24:32]Host: 172.17.56.4:8080 [23:24:32]Content-Length: 678 [23:24:32]Content-Type: application/json [23:24:32] [23:24:32]POST finish read [23:24:32]Found Content-Length = 678 [23:24:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459220", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.040, "sum" : 660.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 660.00, "total" : 660.00, "payments": [ { "type": 0, "sum" : 660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:24:32]execute_script... [23:24: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)459220", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.040, "sum" : 660.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 660.00, "total" : 660.00, "payments": [ { "type": 0, "sum" : 660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:24:32]POST & json_proto [23:24:32]process_json_proto [23:24:32]json parsed OK: [23:24:32]protocol is kg_v1.0 [23:24:32]action value=close_receipt [23:24:32]process_action close_receipt [23:24:32]cmd_close_receipt [23:24:32]MH_GetDate [23:24:32]Write to MH i2c: F0 00 00 DD 10 DC [23:24:32]Write i2c OK [23:24:32]MH_I2C_Read... [23:24:32]Read from MH i2c: F0 [23:24:32]MH_I2C_Read... [23:24:32]Read from MH i2c: F0 09 00 [23:24:32]MH_I2C_Read... [23:24:32]Read from MH i2c: F0 09 00 DD 10 00 32 5E 94 66 C9 DC B2 64 2A [23:24:32]GetLastDocTimeStamp 1720998994 [23:24:32]current date 1720999474 [23:24:32]FM_GetShiftState [23:24:32]SAM_PROTO_GetShiftState [23:24:32]wFMCommunicate request_size=4 [23:24:32]MH_SAM_APDU [23:24:32]CAPDU: 80 13 01 00 [23:24:32]Write to MH i2c: E2 08 00 DE 10 80 13 01 00 00 00 00 00 6B [23:24:32]Write i2c OK [23:24:32]MH_I2C_Read... [23:24:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:24:32]Read from MH i2c: E2 [23:24:32]MH_I2C_Read... [23:24:32]Read from MH i2c: E2 0E 00 [23:24:32]MH_I2C_Read... [23:24:32]Read from MH i2c: E2 0E 00 DE 10 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 EB [23:24:32]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [23:24:32]wFMCommunicate OK [23:24:32]SAM_PROTO_GetShiftState done [23:24:32]FM_GetShiftState done [23:24:32]opened in 1720917342 [23:24:32]opened+sec_in_day 1721003742 [23:24:32]quantity*price = 66063 [23:24:32]sum+1 = 66064 [23:24:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 660.00 Внесено: 660.00 СДАЧА: 0.00 НСП 1% : 5.85 НДС 12% : 70.15 Наличными: 660.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 315 14.07.2024 23:24 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165117 ФПД: 61902670753210 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T232434&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165117&fm=61902670753210&tin=02508201610067®Number=0000000000090829&sum=66000 [23:24:33]StoreToDocumentArchive [23:24:33]shift 447 fd 165117 [23:24:33]save to /storage/0447/doc_00165117 [23:24:33]save last doc name /storage/0447/doc_00165117 to /storage/kkm_last_doc_name [23:24:33]save OK [23:24:33]Clear old archive folders... [23:24:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:24:33]tlvbuf is 013292C0 [23:24:33]SAM_PROTO_ClearQueue [23:24:33]wFMCommunicate request_size=4 [23:24:33]MH_SAM_APDU [23:24:33]CAPDU: 80 09 00 00 [23:24:33]Write to MH i2c: E2 08 00 EB 10 80 09 00 00 00 00 00 00 6D [23:24:33]Write i2c OK [23:24:33]MH_I2C_Read... [23:24:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:24:33]Read from MH i2c: E2 [23:24:33]MH_I2C_Read... [23:24:33]Read from MH i2c: E2 03 00 [23:24:33]MH_I2C_Read... [23:24:33]Read from MH i2c: E2 03 00 EB 10 00 90 00 6F [23:24:33]RAPDU: 90 00 [23:24:33]wFMCommunicate OK [23:24:33]SAM_PROTO_ClearQueue done [23:24:33]KKMCreateOFDPacket [23:24:33]OFDProtocolAddRootSTLVToBuf [23:24:33]FM_MakeSignedData [23:24:33]FM_MakeSignedData [23:24:33]SAM_PROTO_SignData [23:24:33]wFMCommunicate request_size=4 [23:24:33]MH_SAM_APDU [23:24:33]CAPDU: 80 0D 01 02 [23:24:33]Write to MH i2c: E2 08 00 EC 10 80 0D 01 02 00 00 00 00 75 [23:24:33]Write i2c OK [23:24:33]MH_I2C_Read... [23:24:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:24:33]Read from MH i2c: E2 [23:24:33]MH_I2C_Read... [23:24:33]Read from MH i2c: E2 03 00 [23:24:33]MH_I2C_Read... [23:24:33]Read from MH i2c: E2 03 00 EC 10 00 90 00 70 [23:24:33]RAPDU: 90 00 [23:24:33]wFMCommunicate OK [23:24:33]wFMCommunicate request_size=255 [23:24:33]MH_SAM_APDU [23:24:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0F 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 32 5E 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FD 84 02 00 35 04 06 00 38 [23:24:33]Write to MH i2c: E2 02 01 ED 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0F 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 32 5E 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FD 84 02 00 35 04 06 00 38 00 00 75 [23:24:33]Write i2c OK [23:24:33]MH_I2C_Read... [23:24:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:24:34]Read from MH i2c: E2 [23:24:34]MH_I2C_Read... [23:24:34]Read from MH i2c: E2 03 00 [23:24:34]MH_I2C_Read... [23:24:34]Read from MH i2c: E2 03 00 ED 10 00 90 00 71 [23:24:34]RAPDU: 90 00 [23:24:34]wFMCommunicate OK [23:24:34]wFMCommunicate request_size=10 [23:24:34]MH_SAM_APDU [23:24:34]CAPDU: 80 0D 02 02 05 4C D6 B3 6D BA [23:24:34]Write to MH i2c: E2 0D 00 EE 10 80 0D 02 02 05 00 4C D6 B3 6D BA 00 00 7E [23:24:34]Write i2c OK [23:24:34]MH_I2C_Read... [23:24:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:24:34]Read from MH i2c: E2 [23:24:34]MH_I2C_Read... [23:24:34]Read from MH i2c: E2 03 00 [23:24:34]MH_I2C_Read... [23:24:34]Read from MH i2c: E2 03 00 EE 10 00 90 00 72 [23:24:34]RAPDU: 90 00 [23:24:34]wFMCommunicate OK [23:24:34]wFMCommunicate request_size=4 [23:24:34]MH_SAM_APDU [23:24:34]CAPDU: 80 0D 03 02 [23:24:34]Write to MH i2c: E2 08 00 EF 10 80 0D 03 02 00 00 00 00 7A [23:24:34]Write i2c OK [23:24:34]MH_I2C_Read... [23:24:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:24:34]Read from MH i2c: E2 [23:24:34]MH_I2C_Read... [23:24:34]Read from MH i2c: E2 0B 00 [23:24:34]MH_I2C_Read... [23:24:34]Read from MH i2c: E2 0B 00 EF 10 00 3B E9 7A B3 AD 29 0B D2 90 00 7F [23:24:34]RAPDU: 3B E9 7A B3 AD 29 0B D2 90 00 [23:24:34]wFMCommunicate OK [23:24:34]SAM_PROTO_SignData done [23:24:34]FM_MakeSignedData done [23:24:34]CreateOFDProtocolMessage [23:24:34]wFMCommunicate request_size=4 [23:24:34]MH_SAM_APDU [23:24:34]CAPDU: 80 11 00 00 [23:24:34]Write to MH i2c: E2 08 00 F0 10 80 11 00 00 00 00 00 00 7A [23:24:34]Write i2c OK [23:24:34]MH_I2C_Read... [23:24:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:24:34]Read from MH i2c: E2 [23:24:34]MH_I2C_Read... [23:24:34]Read from MH i2c: E2 17 00 [23:24:34]MH_I2C_Read... [23:24:34]Read from MH i2c: E2 17 00 F0 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D0 [23:24:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:24:34]wFMCommunicate OK [23:24:34]CreateOFDProtocolMessage done [23:24:34]OFDSenderStorePacket 165117 [23:24:34]StoreOFDPacket docnum=165117 [23:24:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 8C 6B 07 01 E1 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0F 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 32 5E 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FD 84 02 00 35 04 06 00 38 4C D6 B3 6D BA 3B E9 7A B3 AD 29 0B D2 [23:24:34]CheckFolder [23:24:34]dirname=/storage/ofd_packets [23:24:34]CheckFolder done [23:24:34]ProducePacketName [23:24:34]name=ofd_packets/00165117 [23:24:34]NVStorageSaveData ofd_packets/00165117 [23:24:34]File name is /storage/ofd_packets/00165117 [23:24:34]Write 301 bytes [23:24:34]NVStorageSaveData done [23:24:34]OFDSenderStorePacket done [23:24:34]KKMCreateOFDPacket done [23:24:34]NVStorageSaveData kkm_last_timestamp [23:24:34]File name is /storage/kkm_last_timestamp [23:24:34]Write 4 bytes [23:24:34]NVStorageSaveData done [23:24:34]ExternCall_PrintAddStr [23:24:34]wPrintStart [23:24:34]Write to MH i2c: 01 00 00 F1 10 01 [23:24:34]Write i2c OK [23:24:34]MH_I2C_Read... [23:24:34]Read from MH i2c: 01 [23:24:34]MH_I2C_Read... [23:24:34]Read from MH i2c: 01 07 00 [23:24:34]MH_I2C_Read... [23:24:34]Read from MH i2c: 01 07 00 F1 10 00 00 00 00 00 FF 0F 16 [23:24:34]RasterBufferAndPrint [23:24:34]line Счет N : (1)459220 [23:24:34]line ИНН: 02508201610067 [23:24:34]line Контрольно-Кассовый Чек [23:24:34]line ПРОДАЖА [23:24:34]line ТРК (МРК, ГНК) : 22 [23:24:34]line Товар: 2710124130 [23:24:34]line Аи-92-К-5 [23:24:34]line 10.040 * 65.80 [23:24:34]line = 660.63 [23:24:34]line НДС 12% НСП 1% [23:24:34]line > о реализуемом товаре [23:24:34]line ОКРУГЛЕНИЕ: -0.63 [23:24:34]line ИТОГО: 660.00 [23:24:34]line Внесено: 660.00 [23:24:34]line СДАЧА: 0.00 [23:24:34]line НСП 1% : 5.85 [23:24:34]line НДС 12% : 70.15 [23:24:34]line Наличными: 660.00 [23:24:34]line Безнал.: 0.00 [23:24:34]line Место: АЗС № 72 "Партнер Нефть" [23:24:34]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [23:24:34]line СНО: Общий режим [23:24:34]line Чек 315 14.07.2024 23:24 [23:24:34]line Смена: 447 ФФД: 1.0 [23:24:34]line ЗНМ: 0300000160 [23:24:34]line РНМ: 0000000000090829 [23:24:34]line Версия ККМ: 001 [23:24:34]line ФМ: 0000000000874718 [23:24:34]line ФД: 165117 [23:24:34]line ФПД: 61902670753210 [23:24:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T232434&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165117&fm=61902670753210&tin=02508201610067®Number=0000000000090829&sum=66000 [23:24:34]OFD Sender: Processing packet 165117 [packets to send 106, broken 105] [23:24:34]ProducePacketName [23:24:34]name=ofd_packets/00165117 [23:24:34]OFD Sender: To server: pG, [23:24:34]CommunicateWithHost lk.salyk.kg:30040 [23:24:34]ConnectInit lk.salyk.kg [23:24:34]written 0, free lines is 4095 [23:24:34]Connected sock=10 [23:24:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 8C 6B 07 01 E1 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0F 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 32 5E 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FD 84 02 00 35 04 06 00 38 4C D6 B3 6D BA 3B E9 7A B3 AD 29 0B D2 [23:24:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 1C B5 47 00 55 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FD 84 02 00 F4 03 04 00 BE 04 94 66 B6 04 01 00 00 94 7D DD CF 2B 28 28 38 [23:24:34]CommunicateWithHost err = 0 [23:24:34]CheckOFDResponse [23:24:34]1017 (14) - 77093643461234 [23:24:34]1041 (16) - 0000000000874718 [23:24:34]1040 (4) - 165117 [23:24:34]1012 (4) - 14.07.2024 17:02 [23:24:34]1206 (1) - 0 [23:24:34]OFD Sender: Remove packet 165117 [23:24:34]ProducePacketName [23:24:34]name=ofd_packets/00165117 [23:24:34]NVStorageDeleteData [23:24:34]Write to MH i2c: 01 00 00 1B 11 2C [23:24:34]Write i2c OK [23:24:34]MH_I2C_Read... [23:24:34]Read from MH i2c: 01 [23:24:34]MH_I2C_Read... [23:24:34]Read from MH i2c: 01 07 00 [23:24:34]MH_I2C_Read... [23:24:34]Read from MH i2c: 01 07 00 1B 11 00 00 00 00 00 00 0D 40 [23:24:35]RasterBufferAndPrint [23:24:35]line [23:24:35]line [23:24:35]line [23:24:35]line [23:24:35]line [23:24:35]written 0, free lines is 3334 [23:24:35]MH_Cut [23:24:35]Write to MH i2c: D1 01 00 22 11 01 05 [23:24:35]Write i2c OK [23:24:35]MH_I2C_Read... [23:24:35]Read from MH i2c: D1 [23:24:35]MH_I2C_Read... [23:24:35]Read from MH i2c: D1 01 00 [23:24:35]MH_I2C_Read... [23:24:35]Read from MH i2c: D1 01 00 22 11 00 04 [23:24:35]Write to MH i2c: 01 00 00 23 11 34 [23:24:35]Write i2c OK [23:24:35]MH_I2C_Read... [23:24:35]OFD Sender: No OFD packet to send [23:24:35]*** Cut start [23:24:35]*** Partial cut [23:24:35]*** CUTSNS_PIN = 1 [23:24:35]*** CUTSNS_PIN = 0 [23:24:35]*** Brake cut motor [23:24:36]Read from MH i2c: 01 [23:24:36]MH_I2C_Read... [23:24:36]*** Stop cut motor [23:24:36]*** Cut end [23:24:36]Read from MH i2c: 01 07 00 [23:24:36]MH_I2C_Read... [23:24:36]Read from MH i2c: 01 07 00 23 11 00 00 00 00 00 FF 0F 49 [23:24:36]process_action close_receipt done [23:24:36]requested_data is exist [23:24:36]produce_requested_data [23:24:36]requested_item fm.sn is exist - process it [23:24:36]wFMCommunicate request_size=4 [23:24:36]MH_SAM_APDU [23:24:36]CAPDU: 80 11 00 00 [23:24:36]Write to MH i2c: E2 08 00 24 11 80 11 00 00 00 00 00 00 AF [23:24:36]Write i2c OK [23:24:36]MH_I2C_Read... [23:24:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:24:36]Read from MH i2c: E2 [23:24:36]MH_I2C_Read... [23:24:36]Read from MH i2c: E2 17 00 [23:24:36]MH_I2C_Read... [23:24:36]Read from MH i2c: E2 17 00 24 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 05 [23:24:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:24:36]wFMCommunicate OK [23:24:36]requested_item fd.num is exist - process it [23:24:36]SAM_PROTO_GetFieldsCounters [23:24:36]wFMCommunicate request_size=4 [23:24:36]MH_SAM_APDU [23:24:36]CAPDU: 80 13 00 00 [23:24:36]Write to MH i2c: E2 08 00 25 11 80 13 00 00 00 00 00 00 B2 [23:24:36]Write i2c OK [23:24:36]MH_I2C_Read... [23:24:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:24:36]Read from MH i2c: E2 [23:24:36]MH_I2C_Read... [23:24:36]Read from MH i2c: E2 62 00 [23:24:36]MH_I2C_Read... [23:24:36]Read from MH i2c: E2 62 00 25 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 FD 84 02 00 0E 04 04 00 BF 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 D0 [23:24:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 FD 84 02 00 0E 04 04 00 BF 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 [23:24:36]wFMCommunicate OK [23:24:36]SAM_PROTO_GetFieldsCounters done [23:24:36]requested_item shift.num is exist - process it [23:24:36]requested_item shift.opened is exist - process it [23:24:36]req_shift_opened [23:24:36]FM_GetShiftState [23:24:36]SAM_PROTO_GetShiftState [23:24:36]wFMCommunicate request_size=4 [23:24:36]MH_SAM_APDU [23:24:36]CAPDU: 80 13 01 00 [23:24:36]Write to MH i2c: E2 08 00 26 11 80 13 01 00 00 00 00 00 B4 [23:24:36]Write i2c OK [23:24:36]MH_I2C_Read... [23:24:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:24:36]Read from MH i2c: E2 [23:24:36]MH_I2C_Read... [23:24:36]Read from MH i2c: E2 0E 00 [23:24:36]MH_I2C_Read... [23:24:36]Read from MH i2c: E2 0E 00 26 11 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 34 [23:24:36]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [23:24:36]wFMCommunicate OK [23:24:36]SAM_PROTO_GetShiftState done [23:24:36]FM_GetShiftState done [23:24:36]req_shift_opened done [23:24:36]requested_item shift.open_date is exist - process it [23:24:36]req_shift_open_date [23:24:36]req_shift_open_date done [23:24:36]produce_requested_data done [23:24:36]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165117,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [23:24:36]process_action_free close_receipt [23:24:36]json_value_free [23:24:36]json_value_free done [23:24:36]process_json_proto returns [23:24:36]Send response to host [23:24:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165117,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [23:24:36]free response buf [23:24:36]execute_script done [23:24:36]execute_script returns [23:24:36]free content buf [23:24:36]Sock 9.Close socket [23:24:36]Sock 9.Thread stoped [23:24:40]OFD Sender: No OFD packet to send [23:24:45]OFD Sender: No OFD packet to send [23:24:50]OFD Sender: No OFD packet to send [23:24:55]OFD Sender: No OFD packet to send [23:25:00]OFD Sender: No OFD packet to send [23:25:05]OFD Sender: No OFD packet to send [23:25:10]OFD Sender: No OFD packet to send [23:25:14]accept exits with 7 [23:25:14]New connection [23:25:14]New thread 3066785124 created [23:25:14]Thread 3066928484 joined [23:25:14]Waiting for new connection... [23:25:14] Sock 7.Parse request [23:25:14]Sock 7.Check first char [23:25:14]Sock 7.First char is OK [23:25:14]request: POST /json_proto HTTP/1.0 [23:25:14]Method: POST [23:25:14]URL: /json_proto [23:25:14]Method is POST - this is cgi request [23:25:14]url: /json_proto [23:25:14]query_string will be loaded in cgi processing [23:25:14]execute_cgi json_proto POST (null) [23:25:14]execute_cgi path=json_proto method=POST [23:25:14]POST find Content-Length [23:25:14]Host: 172.17.56.4:8080 [23:25:14]Content-Length: 675 [23:25:14]Content-Type: application/json [23:25:14] [23:25:14]POST finish read [23:25:14]Found Content-Length = 675 [23:25:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459221", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 11.130, "sum" : 800.25, "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" ] } } [23:25:14]execute_script... [23:25:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459221", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 11.130, "sum" : 800.25, "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" ] } } [23:25:14]POST & json_proto [23:25:14]process_json_proto [23:25:14]json parsed OK: [23:25:14]protocol is kg_v1.0 [23:25:14]action value=close_receipt [23:25:14]process_action close_receipt [23:25:14]cmd_close_receipt [23:25:14]MH_GetDate [23:25:14]Write to MH i2c: F0 00 00 27 11 27 [23:25:14]Write i2c OK [23:25:14]MH_I2C_Read... [23:25:14]Read from MH i2c: F0 [23:25:14]MH_I2C_Read... [23:25:14]Read from MH i2c: F0 09 00 [23:25:14]MH_I2C_Read... [23:25:14]Read from MH i2c: F0 09 00 27 11 00 5C 5E 94 66 C9 DC B2 64 9F [23:25:14]GetLastDocTimeStamp 1720999474 [23:25:14]current date 1720999516 [23:25:14]FM_GetShiftState [23:25:14]SAM_PROTO_GetShiftState [23:25:14]wFMCommunicate request_size=4 [23:25:14]MH_SAM_APDU [23:25:14]CAPDU: 80 13 01 00 [23:25:14]Write to MH i2c: E2 08 00 28 11 80 13 01 00 00 00 00 00 B6 [23:25:14]Write i2c OK [23:25:14]MH_I2C_Read... [23:25:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:25:14]Read from MH i2c: E2 [23:25:14]MH_I2C_Read... [23:25:14]Read from MH i2c: E2 0E 00 [23:25:14]MH_I2C_Read... [23:25:14]Read from MH i2c: E2 0E 00 28 11 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 36 [23:25:14]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [23:25:14]wFMCommunicate OK [23:25:14]SAM_PROTO_GetShiftState done [23:25:14]FM_GetShiftState done [23:25:14]opened in 1720917342 [23:25:14]opened+sec_in_day 1721003742 [23:25:14]quantity*price = 80024 [23:25:14]sum+1 = 80026 [23:25:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.98 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 316 14.07.2024 23:25 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165118 ФПД: 60535094851053 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T232516&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165118&fm=60535094851053&tin=02508201610067®Number=0000000000090829&sum=80000 [23:25:15]StoreToDocumentArchive [23:25:15]shift 447 fd 165118 [23:25:15]save to /storage/0447/doc_00165118 [23:25:15]save last doc name /storage/0447/doc_00165118 to /storage/kkm_last_doc_name [23:25:15]save OK [23:25:15]Clear old archive folders... [23:25:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:25:15]tlvbuf is 013663A0 [23:25:15]SAM_PROTO_ClearQueue [23:25:15]wFMCommunicate request_size=4 [23:25:15]MH_SAM_APDU [23:25:15]CAPDU: 80 09 00 00 [23:25:15]Write to MH i2c: E2 08 00 35 11 80 09 00 00 00 00 00 00 B8 [23:25:15]Write i2c OK [23:25:15]MH_I2C_Read... [23:25:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:25:15]Read from MH i2c: E2 [23:25:15]MH_I2C_Read... [23:25:15]Read from MH i2c: E2 03 00 [23:25:15]MH_I2C_Read... [23:25:15]Read from MH i2c: E2 03 00 35 11 00 90 00 BA [23:25:15]RAPDU: 90 00 [23:25:15]wFMCommunicate OK [23:25:15]SAM_PROTO_ClearQueue done [23:25:15]KKMCreateOFDPacket [23:25:15]OFDProtocolAddRootSTLVToBuf [23:25:15]FM_MakeSignedData [23:25:15]FM_MakeSignedData [23:25:15]SAM_PROTO_SignData [23:25:15]wFMCommunicate request_size=4 [23:25:15]MH_SAM_APDU [23:25:15]CAPDU: 80 0D 01 02 [23:25:15]Write to MH i2c: E2 08 00 36 11 80 0D 01 02 00 00 00 00 C0 [23:25:15]Write i2c OK [23:25:15]MH_I2C_Read... [23:25:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:25:15]Read from MH i2c: E2 [23:25:15]MH_I2C_Read... [23:25:15]Read from MH i2c: E2 03 00 [23:25:15]MH_I2C_Read... [23:25:15]Read from MH i2c: E2 03 00 36 11 00 90 00 BB [23:25:15]RAPDU: 90 00 [23:25:15]wFMCommunicate OK [23:25:15]wFMCommunicate request_size=255 [23:25:15]MH_SAM_APDU [23:25:15]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 7A 2B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 99 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 5C 5E 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FE 84 02 00 35 04 06 00 37 0E 6C D3 [23:25:15]Write to MH i2c: E2 02 01 37 11 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 7A 2B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 99 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 5C 5E 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FE 84 02 00 35 04 06 00 37 0E 6C D3 00 00 10 [23:25:15]Write i2c OK [23:25:15]MH_I2C_Read... [23:25:15]OFD Sender: No OFD packet to send [23:25:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:25:15]Read from MH i2c: E2 [23:25:15]MH_I2C_Read... [23:25:15]Read from MH i2c: E2 03 00 [23:25:15]MH_I2C_Read... [23:25:15]Read from MH i2c: E2 03 00 37 11 00 90 00 BC [23:25:15]RAPDU: 90 00 [23:25:15]wFMCommunicate OK [23:25:15]wFMCommunicate request_size=7 [23:25:15]MH_SAM_APDU [23:25:15]CAPDU: 80 0D 02 02 02 35 ED [23:25:15]Write to MH i2c: E2 0A 00 38 11 80 0D 02 02 02 00 35 ED 00 00 E9 [23:25:15]Write i2c OK [23:25:15]MH_I2C_Read... [23:25:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:25:15]Read from MH i2c: E2 [23:25:15]MH_I2C_Read... [23:25:15]Read from MH i2c: E2 03 00 [23:25:15]MH_I2C_Read... [23:25:15]Read from MH i2c: E2 03 00 38 11 00 90 00 BD [23:25:15]RAPDU: 90 00 [23:25:15]wFMCommunicate OK [23:25:15]wFMCommunicate request_size=4 [23:25:15]MH_SAM_APDU [23:25:15]CAPDU: 80 0D 03 02 [23:25:15]Write to MH i2c: E2 08 00 39 11 80 0D 03 02 00 00 00 00 C5 [23:25:15]Write i2c OK [23:25:15]MH_I2C_Read... [23:25:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:25:15]Read from MH i2c: E2 [23:25:15]MH_I2C_Read... [23:25:15]Read from MH i2c: E2 0B 00 [23:25:15]MH_I2C_Read... [23:25:15]Read from MH i2c: E2 0B 00 39 11 00 33 61 5A DD CB 38 2D F0 90 00 B1 [23:25:15]RAPDU: 33 61 5A DD CB 38 2D F0 90 00 [23:25:15]wFMCommunicate OK [23:25:15]SAM_PROTO_SignData done [23:25:15]FM_MakeSignedData done [23:25:15]CreateOFDProtocolMessage [23:25:15]wFMCommunicate request_size=4 [23:25:15]MH_SAM_APDU [23:25:15]CAPDU: 80 11 00 00 [23:25:15]Write to MH i2c: E2 08 00 3A 11 80 11 00 00 00 00 00 00 C5 [23:25:15]Write i2c OK [23:25:15]MH_I2C_Read... [23:25:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:25:15]Read from MH i2c: E2 [23:25:15]MH_I2C_Read... [23:25:15]Read from MH i2c: E2 17 00 [23:25:15]MH_I2C_Read... [23:25:15]Read from MH i2c: E2 17 00 3A 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 1B [23:25:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:25:15]wFMCommunicate OK [23:25:15]CreateOFDProtocolMessage done [23:25:15]OFDSenderStorePacket 165118 [23:25:15]StoreOFDPacket docnum=165118 [23:25:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 92 79 04 01 92 27 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 99 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 5C 5E 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FE 84 02 00 35 04 06 00 37 0E 6C D3 35 ED 33 61 5A DD CB 38 2D F0 [23:25:15]CheckFolder [23:25:15]dirname=/storage/ofd_packets [23:25:15]CheckFolder done [23:25:15]ProducePacketName [23:25:15]name=ofd_packets/00165118 [23:25:15]NVStorageSaveData ofd_packets/00165118 [23:25:15]File name is /storage/ofd_packets/00165118 [23:25:15]Write 298 bytes [23:25:15]NVStorageSaveData done [23:25:15]OFDSenderStorePacket done [23:25:15]KKMCreateOFDPacket done [23:25:15]NVStorageSaveData kkm_last_timestamp [23:25:15]File name is /storage/kkm_last_timestamp [23:25:15]Write 4 bytes [23:25:15]NVStorageSaveData done [23:25:15]ExternCall_PrintAddStr [23:25:15]wPrintStart [23:25:15]Write to MH i2c: 01 00 00 3B 11 4C [23:25:15]Write i2c OK [23:25:15]MH_I2C_Read... [23:25:15]Read from MH i2c: 01 [23:25:15]MH_I2C_Read... [23:25:15]Read from MH i2c: 01 07 00 [23:25:15]MH_I2C_Read... [23:25:15]Read from MH i2c: 01 07 00 3B 11 00 00 00 00 00 FF 0F 61 [23:25:15]RasterBufferAndPrint [23:25:15]line Счет N : (1)459221 [23:25:15]line ИНН: 02508201610067 [23:25:15]line Контрольно-Кассовый Чек [23:25:15]line ПРОДАЖА [23:25:15]line ТРК (МРК, ГНК) : 21 [23:25:15]line Товар: 2710194210 [23:25:15]line ДТ-К-5 [23:25:15]line 11.130 * 71.90 [23:25:15]line = 800.25 [23:25:15]line НДС 12% НСП 1% [23:25:15]line > о реализуемом товаре [23:25:15]line ОКРУГЛЕНИЕ: -0.25 [23:25:15]line ИТОГО: 800.00 [23:25:15]line Внесено: 800.00 [23:25:15]line СДАЧА: 0.00 [23:25:15]line НСП 1% : 7.08 [23:25:15]line НДС 12% : 84.98 [23:25:15]line Наличными: 800.00 [23:25:15]line Безнал.: 0.00 [23:25:15]line Место: АЗС № 72 "Партнер Нефть" [23:25:15]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [23:25:15]line СНО: Общий режим [23:25:15]line Чек 316 14.07.2024 23:25 [23:25:15]line Смена: 447 ФФД: 1.0 [23:25:15]line ЗНМ: 0300000160 [23:25:15]line РНМ: 0000000000090829 [23:25:15]line Версия ККМ: 001 [23:25:15]line ФМ: 0000000000874718 [23:25:15]line ФД: 165118 [23:25:15]line ФПД: 60535094851053 [23:25:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T232516&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165118&fm=60535094851053&tin=02508201610067®Number=0000000000090829&sum=80000 [23:25:16]OFD Sender: Processing packet 165118 [packets to send 106, broken 105] [23:25:16]ProducePacketName [23:25:16]name=ofd_packets/00165118 [23:25:16]OFD Sender: To server: pG, [23:25:16]CommunicateWithHost lk.salyk.kg:30040 [23:25:16]ConnectInit lk.salyk.kg [23:25:16]written 0, free lines is 4095 [23:25:16]Connected sock=10 [23:25:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 92 79 04 01 92 27 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 99 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 5C 5E 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FE 84 02 00 35 04 06 00 37 0E 6C D3 35 ED 33 61 5A DD CB 38 2D F0 [23:25:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 3F BE 47 00 9D 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FE 84 02 00 F4 03 04 00 E8 04 94 66 B6 04 01 00 00 EF 8F 92 9A DB 83 9F 57 [23:25:16]CommunicateWithHost err = 0 [23:25:16]CheckOFDResponse [23:25:16]1017 (14) - 77093643461234 [23:25:16]1041 (16) - 0000000000874718 [23:25:16]1040 (4) - 165118 [23:25:16]1012 (4) - 14.07.2024 17:03 [23:25:16]1206 (1) - 0 [23:25:16]OFD Sender: Remove packet 165118 [23:25:16]ProducePacketName [23:25:16]name=ofd_packets/00165118 [23:25:16]NVStorageDeleteData [23:25:16]Write to MH i2c: 01 00 00 65 11 76 [23:25:16]Write i2c OK [23:25:16]MH_I2C_Read... [23:25:16]Read from MH i2c: 01 [23:25:16]MH_I2C_Read... [23:25:16]Read from MH i2c: 01 07 00 [23:25:16]MH_I2C_Read... [23:25:16]Read from MH i2c: 01 07 00 65 11 00 00 00 00 00 FC 0C 85 [23:25:16]RasterBufferAndPrint [23:25:16]line [23:25:16]line [23:25:16]line [23:25:16]line [23:25:16]line [23:25:16]written 0, free lines is 3330 [23:25:16]MH_Cut [23:25:16]Write to MH i2c: D1 01 00 6C 11 01 4F [23:25:16]Write i2c OK [23:25:16]MH_I2C_Read... [23:25:16]Read from MH i2c: D1 [23:25:16]MH_I2C_Read... [23:25:16]Read from MH i2c: D1 01 00 [23:25:16]MH_I2C_Read... [23:25:16]Read from MH i2c: D1 01 00 6C 11 00 4E [23:25:16]Write to MH i2c: 01 00 00 6D 11 7E [23:25:16]Write i2c OK [23:25:16]MH_I2C_Read... [23:25:16]OFD Sender: No OFD packet to send [23:25:17]*** Cut start [23:25:17]*** Partial cut [23:25:17]*** CUTSNS_PIN = 1 [23:25:17]*** CUTSNS_PIN = 0 [23:25:17]*** Brake cut motor [23:25:17]Read from MH i2c: 01 [23:25:17]MH_I2C_Read... [23:25:17]*** Stop cut motor [23:25:17]*** Cut end [23:25:17]Read from MH i2c: 01 07 00 [23:25:17]MH_I2C_Read... [23:25:17]Read from MH i2c: 01 07 00 6D 11 00 00 00 00 00 FF 0F 93 [23:25:17]process_action close_receipt done [23:25:17]requested_data is exist [23:25:17]produce_requested_data [23:25:17]requested_item fm.sn is exist - process it [23:25:17]wFMCommunicate request_size=4 [23:25:17]MH_SAM_APDU [23:25:17]CAPDU: 80 11 00 00 [23:25:17]Write to MH i2c: E2 08 00 6E 11 80 11 00 00 00 00 00 00 F9 [23:25:17]Write i2c OK [23:25:17]MH_I2C_Read... [23:25:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:25:17]Read from MH i2c: E2 [23:25:17]MH_I2C_Read... [23:25:17]Read from MH i2c: E2 17 00 [23:25:17]MH_I2C_Read... [23:25:17]Read from MH i2c: E2 17 00 6E 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 4F [23:25:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:25:17]wFMCommunicate OK [23:25:17]requested_item fd.num is exist - process it [23:25:17]SAM_PROTO_GetFieldsCounters [23:25:17]wFMCommunicate request_size=4 [23:25:17]MH_SAM_APDU [23:25:17]CAPDU: 80 13 00 00 [23:25:17]Write to MH i2c: E2 08 00 6F 11 80 13 00 00 00 00 00 00 FC [23:25:17]Write i2c OK [23:25:17]MH_I2C_Read... [23:25:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:25:18]Read from MH i2c: E2 [23:25:18]MH_I2C_Read... [23:25:18]Read from MH i2c: E2 62 00 [23:25:18]MH_I2C_Read... [23:25:18]Read from MH i2c: E2 62 00 6F 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 FE 84 02 00 0E 04 04 00 BF 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 1E [23:25:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 FE 84 02 00 0E 04 04 00 BF 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 [23:25:18]wFMCommunicate OK [23:25:18]SAM_PROTO_GetFieldsCounters done [23:25:18]requested_item shift.num is exist - process it [23:25:18]requested_item shift.opened is exist - process it [23:25:18]req_shift_opened [23:25:18]FM_GetShiftState [23:25:18]SAM_PROTO_GetShiftState [23:25:18]wFMCommunicate request_size=4 [23:25:18]MH_SAM_APDU [23:25:18]CAPDU: 80 13 01 00 [23:25:18]Write to MH i2c: E2 08 00 70 11 80 13 01 00 00 00 00 00 FE [23:25:18]Write i2c OK [23:25:18]MH_I2C_Read... [23:25:18]Read from MH i2c: E2 [23:25:18]MH_I2C_Read... [23:25:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:25:18]Read from MH i2c: E2 0E 00 [23:25:18]MH_I2C_Read... [23:25:18]Read from MH i2c: E2 0E 00 70 11 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 7E [23:25:18]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [23:25:18]wFMCommunicate OK [23:25:18]SAM_PROTO_GetShiftState done [23:25:18]FM_GetShiftState done [23:25:18]req_shift_opened done [23:25:18]requested_item shift.open_date is exist - process it [23:25:18]req_shift_open_date [23:25:18]req_shift_open_date done [23:25:18]produce_requested_data done [23:25:18]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165118,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [23:25:18]process_action_free close_receipt [23:25:18]json_value_free [23:25:18]json_value_free done [23:25:18]process_json_proto returns [23:25:18]Send response to host [23:25:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165118,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [23:25:18]free response buf [23:25:18]execute_script done [23:25:18]execute_script returns [23:25:18]free content buf [23:25:18]Sock 7.Close socket [23:25:18]Sock 7.Thread stoped [23:25:21]OFD Sender: No OFD packet to send [23:25:26]OFD Sender: No OFD packet to send [23:25:31]OFD Sender: No OFD packet to send [23:25:36]OFD Sender: No OFD packet to send [23:25:41]OFD Sender: No OFD packet to send [23:25:46]OFD Sender: No OFD packet to send [23:25:51]OFD Sender: No OFD packet to send [23:25:56]OFD Sender: No OFD packet to send [23:26:01]OFD Sender: No OFD packet to send [23:26:06]OFD Sender: No OFD packet to send [23:26:11]OFD Sender: No OFD packet to send [23:26:16]OFD Sender: No OFD packet to send [23:26:21]OFD Sender: No OFD packet to send [23:26:26]OFD Sender: No OFD packet to send [23:26:31]OFD Sender: No OFD packet to send [23:26: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:38]accept exits with 9 [23:28:38]New connection [23:28:38]New thread 3066928484 created [23:28:38]Thread 3066785124 joined [23:28:38]Waiting for new connection... [23:28:38] Sock 9.Parse request [23:28:38]Sock 9.Check first char [23:28:38]Sock 9.First char is OK [23:28:38]request: POST /json_proto HTTP/1.0 [23:28:38]Method: POST [23:28:38]URL: /json_proto [23:28:38]Method is POST - this is cgi request [23:28:38]url: /json_proto [23:28:38]query_string will be loaded in cgi processing [23:28:38]execute_cgi json_proto POST (null) [23:28:38]execute_cgi path=json_proto method=POST [23:28:38]POST find Content-Length [23:28:38]Host: 172.17.56.4:8080 [23:28:38]Content-Length: 674 [23:28:38]Content-Type: application/json [23:28:38] [23:28:38]POST finish read [23:28:38]Found Content-Length = 674 [23:28:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459222", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 4.180, "sum" : 300.54, "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" ] } } [23:28:38]execute_script... [23: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)459222", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 4.180, "sum" : 300.54, "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" ] } } [23:28:38]POST & json_proto [23:28:38]process_json_proto [23:28:38]json parsed OK: [23:28:38]protocol is kg_v1.0 [23:28:38]action value=close_receipt [23:28:38]process_action close_receipt [23:28:38]cmd_close_receipt [23:28:38]MH_GetDate [23:28:38]Write to MH i2c: F0 00 00 71 11 71 [23:28:38]Write i2c OK [23:28:38]MH_I2C_Read... [23:28:38]Read from MH i2c: F0 [23:28:38]MH_I2C_Read... [23:28:38]Read from MH i2c: F0 09 00 [23:28:38]MH_I2C_Read... [23:28:38]Read from MH i2c: F0 09 00 71 11 00 28 5F 94 66 C9 DC B2 64 B6 [23:28:38]GetLastDocTimeStamp 1720999516 [23:28:38]current date 1720999720 [23:28:38]FM_GetShiftState [23:28:38]SAM_PROTO_GetShiftState [23:28:38]wFMCommunicate request_size=4 [23:28:38]MH_SAM_APDU [23:28:38]CAPDU: 80 13 01 00 [23:28:38]Write to MH i2c: E2 08 00 72 11 80 13 01 00 00 00 00 00 00 [23:28:38]Write i2c OK [23:28:38]MH_I2C_Read... [23:28:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:28:38]Read from MH i2c: E2 [23:28:38]MH_I2C_Read... [23:28:38]Read from MH i2c: E2 0E 00 [23:28:38]MH_I2C_Read... [23:28:38]Read from MH i2c: E2 0E 00 72 11 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 80 [23:28:38]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [23:28:38]wFMCommunicate OK [23:28:38]SAM_PROTO_GetShiftState done [23:28:38]FM_GetShiftState done [23:28:38]opened in 1720917342 [23:28:38]opened+sec_in_day 1721003742 [23:28:38]quantity*price = 30054 [23:28:38]sum+1 = 30055 [23:28:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.92 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 317 14.07.2024 23:28 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165119 ФПД: 13335770300718 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T232840&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165119&fm=13335770300718&tin=02508201610067®Number=0000000000090829&sum=30000 [23:28:39]StoreToDocumentArchive [23:28:39]shift 447 fd 165119 [23:28:39]save to /storage/0447/doc_00165119 [23:28:39]save last doc name /storage/0447/doc_00165119 to /storage/kkm_last_doc_name [23:28:39]save OK [23:28:39]Clear old archive folders... [23:28:39]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:28:39]tlvbuf is B6F4FB80 [23:28:39]SAM_PROTO_ClearQueue [23:28:39]wFMCommunicate request_size=4 [23:28:39]MH_SAM_APDU [23:28:39]CAPDU: 80 09 00 00 [23:28:39]Write to MH i2c: E2 08 00 7F 11 80 09 00 00 00 00 00 00 02 [23:28:39]Write i2c OK [23:28:39]MH_I2C_Read... [23:28:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:28:39]Read from MH i2c: E2 [23:28:39]MH_I2C_Read... [23:28:39]Read from MH i2c: E2 03 00 [23:28:39]MH_I2C_Read... [23:28:39]Read from MH i2c: E2 03 00 7F 11 00 90 00 04 [23:28:39]RAPDU: 90 00 [23:28:39]wFMCommunicate OK [23:28:39]SAM_PROTO_ClearQueue done [23:28:39]KKMCreateOFDPacket [23:28:39]OFDProtocolAddRootSTLVToBuf [23:28:39]FM_MakeSignedData [23:28:39]FM_MakeSignedData [23:28:39]SAM_PROTO_SignData [23:28:39]wFMCommunicate request_size=4 [23:28:39]MH_SAM_APDU [23:28:39]CAPDU: 80 0D 01 02 [23:28:39]Write to MH i2c: E2 08 00 80 11 80 0D 01 02 00 00 00 00 0A [23:28:39]Write i2c OK [23:28:39]MH_I2C_Read... [23:28:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:28:39]Read from MH i2c: E2 [23:28:39]MH_I2C_Read... [23:28:39]Read from MH i2c: E2 03 00 [23:28:39]MH_I2C_Read... [23:28:39]Read from MH i2c: E2 03 00 80 11 00 90 00 05 [23:28:39]RAPDU: 90 00 [23:28:39]wFMCommunicate OK [23:28:39]wFMCommunicate request_size=255 [23:28:39]MH_SAM_APDU [23:28:39]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 10 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 66 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 78 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 3D 01 00 00 F4 03 04 00 28 5F 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FF 84 02 00 35 04 06 00 0C 20 F9 DA [23:28:39]Write to MH i2c: E2 02 01 81 11 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 10 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 66 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 78 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 3D 01 00 00 F4 03 04 00 28 5F 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FF 84 02 00 35 04 06 00 0C 20 F9 DA 00 00 BA [23:28:39]Write i2c OK [23:28:39]MH_I2C_Read... [23:28:39]Read from MH i2c: E2 [23:28:39]MH_I2C_Read... [23:28:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:28:39]Read from MH i2c: E2 03 00 [23:28:39]MH_I2C_Read... [23:28:39]Read from MH i2c: E2 03 00 81 11 00 90 00 06 [23:28:39]RAPDU: 90 00 [23:28:39]wFMCommunicate OK [23:28:39]wFMCommunicate request_size=7 [23:28:39]MH_SAM_APDU [23:28:39]CAPDU: 80 0D 02 02 02 01 2E [23:28:39]Write to MH i2c: E2 0A 00 82 11 80 0D 02 02 02 00 01 2E 00 00 40 [23:28:39]Write i2c OK [23:28:39]MH_I2C_Read... [23:28:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:28:39]Read from MH i2c: E2 [23:28:39]MH_I2C_Read... [23:28:39]Read from MH i2c: E2 03 00 [23:28:39]MH_I2C_Read... [23:28:39]Read from MH i2c: E2 03 00 82 11 00 90 00 07 [23:28:39]RAPDU: 90 00 [23:28:39]wFMCommunicate OK [23:28:39]wFMCommunicate request_size=4 [23:28:39]MH_SAM_APDU [23:28:39]CAPDU: 80 0D 03 02 [23:28:39]Write to MH i2c: E2 08 00 83 11 80 0D 03 02 00 00 00 00 0F [23:28:39]Write i2c OK [23:28:39]MH_I2C_Read... [23:28:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:28:39]Read from MH i2c: E2 [23:28:39]MH_I2C_Read... [23:28:39]Read from MH i2c: E2 0B 00 [23:28:39]MH_I2C_Read... [23:28:39]Read from MH i2c: E2 0B 00 83 11 00 52 73 8E 77 53 CD D7 82 90 00 53 [23:28:39]RAPDU: 52 73 8E 77 53 CD D7 82 90 00 [23:28:39]wFMCommunicate OK [23:28:39]SAM_PROTO_SignData done [23:28:39]FM_MakeSignedData done [23:28:39]CreateOFDProtocolMessage [23:28:39]wFMCommunicate request_size=4 [23:28:39]MH_SAM_APDU [23:28:39]CAPDU: 80 11 00 00 [23:28:39]Write to MH i2c: E2 08 00 84 11 80 11 00 00 00 00 00 00 0F [23:28:39]Write i2c OK [23:28:39]MH_I2C_Read... [23:28:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:28:39]Read from MH i2c: E2 [23:28:39]MH_I2C_Read... [23:28:39]Read from MH i2c: E2 17 00 [23:28:39]MH_I2C_Read... [23:28:39]Read from MH i2c: E2 17 00 84 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 65 [23:28:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:28:39]wFMCommunicate OK [23:28:39]CreateOFDProtocolMessage done [23:28:39]OFDSenderStorePacket 165119 [23:28:39]StoreOFDPacket docnum=165119 [23:28:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 A3 1B 04 01 4A 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 54 10 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 66 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 78 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 3D 01 00 00 F4 03 04 00 28 5F 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FF 84 02 00 35 04 06 00 0C 20 F9 DA 01 2E 52 73 8E 77 53 CD D7 82 [23:28:39]CheckFolder [23:28:39]dirname=/storage/ofd_packets [23:28:39]CheckFolder done [23:28:39]ProducePacketName [23:28:39]name=ofd_packets/00165119 [23:28:39]NVStorageSaveData ofd_packets/00165119 [23:28:39]File name is /storage/ofd_packets/00165119 [23:28:39]Write 298 bytes [23:28:39]NVStorageSaveData done [23:28:39]OFDSenderStorePacket done [23:28:39]KKMCreateOFDPacket done [23:28:39]NVStorageSaveData kkm_last_timestamp [23:28:39]File name is /storage/kkm_last_timestamp [23:28:39]Write 4 bytes [23:28:39]NVStorageSaveData done [23:28:39]ExternCall_PrintAddStr [23:28:39]wPrintStart [23:28:39]Write to MH i2c: 01 00 00 85 11 96 [23:28:39]Write i2c OK [23:28:39]MH_I2C_Read... [23:28:39]Read from MH i2c: 01 [23:28:39]MH_I2C_Read... [23:28:39]Read from MH i2c: 01 07 00 [23:28:39]MH_I2C_Read... [23:28:39]Read from MH i2c: 01 07 00 85 11 00 00 00 00 00 FF 0F AB [23:28:39]RasterBufferAndPrint [23:28:39]line Счет N : (1)459222 [23:28:39]line ИНН: 02508201610067 [23:28:39]line Контрольно-Кассовый Чек [23:28:39]line ПРОДАЖА [23:28:39]line ТРК (МРК, ГНК) : 11 [23:28:39]line Товар: 2710194210 [23:28:39]line ДТ-К-5 [23:28:39]line 4.180 * 71.90 [23:28:39]line = 300.54 [23:28:39]line НДС 12% НСП 1% [23:28:39]line > о реализуемом товаре [23:28:39]line ОКРУГЛЕНИЕ: -0.54 [23:28:39]line ИТОГО: 300.00 [23:28:39]line Внесено: 300.00 [23:28:39]line СДАЧА: 0.00 [23:28:39]line НСП 1% : 2.66 [23:28:39]line НДС 12% : 31.92 [23:28:39]line Наличными: 300.00 [23:28:39]line Безнал.: 0.00 [23:28:39]line Место: АЗС № 72 "Партнер Нефть" [23:28:39]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [23:28:39]line СНО: Общий режим [23:28:39]line Чек 317 14.07.2024 23:28 [23:28:39]line Смена: 447 ФФД: 1.0 [23:28:39]line ЗНМ: 0300000160 [23:28:39]line РНМ: 0000000000090829 [23:28:39]line Версия ККМ: 001 [23:28:39]line ФМ: 0000000000874718 [23:28:39]line ФД: 165119 [23:28:39]line ФПД: 13335770300718 [23:28:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T232840&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165119&fm=13335770300718&tin=02508201610067®Number=0000000000090829&sum=30000 [23:28:40]OFD Sender: Processing packet 165119 [packets to send 106, broken 105] [23:28:40]ProducePacketName [23:28:40]name=ofd_packets/00165119 [23:28:40]OFD Sender: To server: pG, [23:28:40]CommunicateWithHost lk.salyk.kg:30040 [23:28:40]ConnectInit lk.salyk.kg [23:28:40]written 0, free lines is 4095 [23:28:40]Connected sock=10 [23:28:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 A3 1B 04 01 4A 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 54 10 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 66 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 78 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 3D 01 00 00 F4 03 04 00 28 5F 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FF 84 02 00 35 04 06 00 0C 20 F9 DA 01 2E 52 73 8E 77 53 CD D7 82 [23:28:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 BA BA 47 00 51 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 38 37 34 37 31 38 10 04 04 00 FF 84 02 00 F4 03 04 00 B4 05 94 66 B6 04 01 00 00 BB F5 AF 74 41 CA 72 7F [23:28:40]CommunicateWithHost err = 0 [23:28:40]CheckOFDResponse [23:28:40]1017 (14) - 77093643461234 [23:28:40]1041 (16) - 0000000000874718 [23:28:40]1040 (4) - 165119 [23:28:40]1012 (4) - 14.07.2024 17:07 [23:28:40]1206 (1) - 0 [23:28:40]OFD Sender: Remove packet 165119 [23:28:40]ProducePacketName [23:28:40]name=ofd_packets/00165119 [23:28:40]NVStorageDeleteData [23:28:40]Write to MH i2c: 01 00 00 AF 11 C0 [23:28:40]Write i2c OK [23:28:40]MH_I2C_Read... [23:28:40]Read from MH i2c: 01 [23:28:40]MH_I2C_Read... [23:28:40]Read from MH i2c: 01 07 00 [23:28:40]MH_I2C_Read... [23:28:40]Read from MH i2c: 01 07 00 AF 11 00 00 00 00 00 F3 0C C6 [23:28:40]RasterBufferAndPrint [23:28:40]line [23:28:40]line [23:28:40]line [23:28:40]line [23:28:40]line [23:28:40]written 0, free lines is 3322 [23:28:40]MH_Cut [23:28:40]Write to MH i2c: D1 01 00 B6 11 01 99 [23:28:40]Write i2c OK [23:28:40]MH_I2C_Read... [23:28:40]Read from MH i2c: D1 [23:28:40]MH_I2C_Read... [23:28:40]Read from MH i2c: D1 01 00 [23:28:40]MH_I2C_Read... [23:28:40]Read from MH i2c: D1 01 00 B6 11 00 98 [23:28:40]Write to MH i2c: 01 00 00 B7 11 C8 [23:28:40]Write i2c OK [23:28:40]MH_I2C_Read... [23:28:40]OFD Sender: No OFD packet to send [23:28:41]*** Cut start [23:28:41]*** Partial cut [23:28:41]*** CUTSNS_PIN = 1 [23:28:41]*** CUTSNS_PIN = 0 [23:28:41]*** Brake cut motor [23:28:41]Read from MH i2c: 01 [23:28:41]MH_I2C_Read... [23:28:41]*** Stop cut motor [23:28:41]*** Cut end [23:28:41]Read from MH i2c: 01 07 00 [23:28:41]MH_I2C_Read... [23:28:41]Read from MH i2c: 01 07 00 B7 11 00 00 00 00 00 FF 0F DD [23:28:41]process_action close_receipt done [23:28:41]requested_data is exist [23:28:41]produce_requested_data [23:28:41]requested_item fm.sn is exist - process it [23:28:41]wFMCommunicate request_size=4 [23:28:41]MH_SAM_APDU [23:28:41]CAPDU: 80 11 00 00 [23:28:41]Write to MH i2c: E2 08 00 B8 11 80 11 00 00 00 00 00 00 43 [23:28:41]Write i2c OK [23:28:41]MH_I2C_Read... [23:28:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:28:41]Read from MH i2c: E2 [23:28:41]MH_I2C_Read... [23:28:41]Read from MH i2c: E2 17 00 [23:28:41]MH_I2C_Read... [23:28:41]Read from MH i2c: E2 17 00 B8 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 99 [23:28:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:28:41]wFMCommunicate OK [23:28:41]requested_item fd.num is exist - process it [23:28:41]SAM_PROTO_GetFieldsCounters [23:28:41]wFMCommunicate request_size=4 [23:28:41]MH_SAM_APDU [23:28:41]CAPDU: 80 13 00 00 [23:28:41]Write to MH i2c: E2 08 00 B9 11 80 13 00 00 00 00 00 00 46 [23:28:41]Write i2c OK [23:28:41]MH_I2C_Read... [23:28:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:28:42]Read from MH i2c: E2 [23:28:42]MH_I2C_Read... [23:28:42]Read from MH i2c: E2 62 00 [23:28:42]MH_I2C_Read... [23:28:42]Read from MH i2c: E2 62 00 B9 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 FF 84 02 00 0E 04 04 00 BF 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 6C [23:28:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 FF 84 02 00 0E 04 04 00 BF 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 [23:28:42]wFMCommunicate OK [23:28:42]SAM_PROTO_GetFieldsCounters done [23:28:42]requested_item shift.num is exist - process it [23:28:42]requested_item shift.opened is exist - process it [23:28:42]req_shift_opened [23:28:42]FM_GetShiftState [23:28:42]SAM_PROTO_GetShiftState [23:28:42]wFMCommunicate request_size=4 [23:28:42]MH_SAM_APDU [23:28:42]CAPDU: 80 13 01 00 [23:28:42]Write to MH i2c: E2 08 00 BA 11 80 13 01 00 00 00 00 00 48 [23:28:42]Write i2c OK [23:28:42]MH_I2C_Read... [23:28:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:28:42]Read from MH i2c: E2 [23:28:42]MH_I2C_Read... [23:28:42]Read from MH i2c: E2 0E 00 [23:28:42]MH_I2C_Read... [23:28:42]Read from MH i2c: E2 0E 00 BA 11 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 C8 [23:28:42]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [23:28:42]wFMCommunicate OK [23:28:42]SAM_PROTO_GetShiftState done [23:28:42]FM_GetShiftState done [23:28:42]req_shift_opened done [23:28:42]requested_item shift.open_date is exist - process it [23:28:42]req_shift_open_date [23:28:42]req_shift_open_date done [23:28:42]produce_requested_data done [23:28:42]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165119,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [23:28:42]process_action_free close_receipt [23:28:42]json_value_free [23:28:42]json_value_free done [23:28:42]process_json_proto returns [23:28:42]Send response to host [23:28:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165119,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [23:28:42]free response buf [23:28:42]execute_script done [23:28:42]execute_script returns [23:28:42]free content buf [23:28:42]Sock 9.Close socket [23:28:42]Sock 9.Thread stoped [23:28:45]OFD Sender: No OFD packet to send [23:28:51]OFD Sender: No OFD packet to send [23:28:56]OFD Sender: No OFD packet to send [23:29:01]OFD Sender: No OFD packet to send [23:29:06]OFD Sender: No OFD packet to send [23:29:11]OFD Sender: No OFD packet to send [23:29:16]OFD Sender: No OFD packet to send [23:29:21]OFD Sender: No OFD packet to send [23:29:26]OFD Sender: No OFD packet to send [23:29:31]OFD Sender: No OFD packet to send [23:29:36]OFD Sender: No OFD packet to send [23:29:41]OFD Sender: No OFD packet to send [23:29:46]OFD Sender: No OFD packet to send [23:29:51]OFD Sender: No OFD packet to send [23:29:56]OFD Sender: No OFD packet to send [23:30:01]OFD Sender: No OFD packet to send [23:30:06]OFD Sender: No OFD packet to send [23:30:11]OFD Sender: No OFD packet to send [23:30:16]OFD Sender: No OFD packet to send [23:30:21]OFD Sender: No OFD packet to send [23:30:26]OFD Sender: No OFD packet to send [23:30:31]OFD Sender: No OFD packet to send [23:30:36]OFD Sender: No OFD packet to send [23:30:41]OFD Sender: No OFD packet to send [23:30:46]OFD Sender: No OFD packet to send [23:30:51]OFD Sender: No OFD packet to send [23:30:56]OFD Sender: No OFD packet to send [23:31:01]OFD Sender: No OFD packet to send [23:31:06]OFD Sender: No OFD packet to send [23:31:11]OFD Sender: No OFD packet to send [23:31:16]OFD Sender: No OFD packet to send [23:31:21]OFD Sender: No OFD packet to send [23:31:26]OFD Sender: No OFD packet to send [23:31:31]OFD Sender: No OFD packet to send [23:31:36]OFD Sender: No OFD packet to send [23:31:41]OFD Sender: No OFD packet to send [23:31:46]OFD Sender: No OFD packet to send [23:31:51]OFD Sender: No OFD packet to send [23:31:56]OFD Sender: No OFD packet to send [23:32:01]OFD Sender: No OFD packet to send [23:32:06]OFD Sender: No OFD packet to send [23:32:11]OFD Sender: No OFD packet to send [23:32:16]OFD Sender: No OFD packet to send [23:32:21]OFD Sender: No OFD packet to send [23:32:26]OFD Sender: No OFD packet to send [23:32:31]OFD Sender: No OFD packet to send [23:32:36]OFD Sender: No OFD packet to send [23:32:41]OFD Sender: No OFD packet to send [23:32:46]OFD Sender: No OFD packet to send [23:32:51]OFD Sender: No OFD packet to send [23:32:56]OFD Sender: No OFD packet to send [23:33:01]OFD Sender: No OFD packet to send [23:33:06]OFD Sender: No OFD packet to send [23:33:11]OFD Sender: No OFD packet to send [23:33:16]OFD Sender: No OFD packet to send [23:33:21]OFD Sender: No OFD packet to send [23:33:26]OFD Sender: No OFD packet to send [23:33:31]OFD Sender: No OFD packet to send [23:33:36]OFD Sender: No OFD packet to send [23:33:41]OFD Sender: No OFD packet to send [23:33:46]OFD Sender: No OFD packet to send [23:33:51]OFD Sender: No OFD packet to send [23:33:56]OFD Sender: No OFD packet to send [23:34:01]OFD Sender: No OFD packet to send [23:34:06]OFD Sender: No OFD packet to send [23:34:11]OFD Sender: No OFD packet to send [23:34:16]OFD Sender: No OFD packet to send [23:34:21]OFD Sender: No OFD packet to send [23:34:26]OFD Sender: No OFD packet to send [23:34:31]OFD Sender: No OFD packet to send [23:34:36]OFD Sender: No OFD packet to send [23:34:41]OFD Sender: No OFD packet to send [23:34:46]OFD Sender: No OFD packet to send [23:34:51]OFD Sender: No OFD packet to send [23:34:56]OFD Sender: No OFD packet to send [23:35:01]OFD Sender: No OFD packet to send [23:35:06]OFD Sender: No OFD packet to send [23:35:11]OFD Sender: No OFD packet to send [23:35:16]OFD Sender: No OFD packet to send [23:35:21]OFD Sender: No OFD packet to send [23:35:26]OFD Sender: No OFD packet to send [23:35:31]OFD Sender: No OFD packet to send [23:35:36]OFD Sender: No OFD packet to send [23:35:41]OFD Sender: No OFD packet to send [23:35:46]OFD Sender: No OFD packet to send [23:35:51]OFD Sender: No OFD packet to send [23:35:56]OFD Sender: No OFD packet to send [23:36:01]OFD Sender: No OFD packet to send [23:36:06]OFD Sender: No OFD packet to send [23:36:11]OFD Sender: No OFD packet to send [23:36:16]OFD Sender: No OFD packet to send [23:36:21]OFD Sender: No OFD packet to send [23:36:26]OFD Sender: No OFD packet to send [23:36:31]OFD Sender: No OFD packet to send [23:36:36]OFD Sender: No OFD packet to send [23:36:41]OFD Sender: No OFD packet to send [23:36:46]OFD Sender: No OFD packet to send [23:36:51]OFD Sender: No OFD packet to send [23:36:56]OFD Sender: No OFD packet to send [23:37:01]OFD Sender: No OFD packet to send [23:37:06]OFD Sender: No OFD packet to send [23:37:11]OFD Sender: No OFD packet to send [23:37:16]OFD Sender: No OFD packet to send [23:37:21]OFD Sender: No OFD packet to send [23:37:26]OFD Sender: No OFD packet to send [23:37:31]OFD Sender: No OFD packet to send [23:37:36]OFD Sender: No OFD packet to send [23:37:41]OFD Sender: No OFD packet to send [23:37:46]OFD Sender: No OFD packet to send [23:37:51]OFD Sender: No OFD packet to send [23:37:56]OFD Sender: No OFD packet to send [23:38:01]OFD Sender: No OFD packet to send [23:38:06]OFD Sender: No OFD packet to send [23:38:11]OFD Sender: No OFD packet to send [23:38:16]OFD Sender: No OFD packet to send [23:38:21]OFD Sender: No OFD packet to send [23:38:26]OFD Sender: No OFD packet to send [23:38:31]OFD Sender: No OFD packet to send [23:38:36]OFD Sender: No OFD packet to send [23:38:41]OFD Sender: No OFD packet to send [23:38:46]OFD Sender: No OFD packet to send [23:38:51]OFD Sender: No OFD packet to send [23:38:56]OFD Sender: No OFD packet to send [23:39:01]OFD Sender: No OFD packet to send [23:39:06]OFD Sender: No OFD packet to send [23:39:11]OFD Sender: No OFD packet to send [23:39:16]OFD Sender: No OFD packet to send [23:39:21]OFD Sender: No OFD packet to send [23:39:26]OFD Sender: No OFD packet to send [23:39:31]OFD Sender: No OFD packet to send [23:39:36]OFD Sender: No OFD packet to send [23:39:41]OFD Sender: No OFD packet to send [23:39:46]OFD Sender: No OFD packet to send [23:39:51]OFD Sender: No OFD packet to send [23:39:56]OFD Sender: No OFD packet to send [23:40:01]OFD Sender: No OFD packet to send [23:40:06]OFD Sender: No OFD packet to send [23:40:11]OFD Sender: No OFD packet to send [23:40:16]OFD Sender: No OFD packet to send [23:40:21]OFD Sender: No OFD packet to send [23:40:26]OFD Sender: No OFD packet to send [23:40:31]OFD Sender: No OFD packet to send [23:40:36]OFD Sender: No OFD packet to send [23:40:41]OFD Sender: No OFD packet to send [23:40:46]OFD Sender: No OFD packet to send [23:40:51]OFD Sender: No OFD packet to send [23:40:56]OFD Sender: No OFD packet to send [23:41:01]OFD Sender: No OFD packet to send [23:41:06]OFD Sender: No OFD packet to send [23:41:07]accept exits with 7 [23:41:07]New connection [23:41:07]New thread 3066785124 created [23:41:07]Thread 3066928484 joined [23:41:07]Waiting for new connection... [23:41:07] Sock 7.Parse request [23:41:07]Sock 7.Check first char [23:41:07]Sock 7.First char is OK [23:41:07]request: POST /json_proto HTTP/1.0 [23:41:07]Method: POST [23:41:07]URL: /json_proto [23:41:07]Method is POST - this is cgi request [23:41:07]url: /json_proto [23:41:07]query_string will be loaded in cgi processing [23:41:07]execute_cgi json_proto POST (null) [23:41:07]execute_cgi path=json_proto method=POST [23:41:07]POST find Content-Length [23:41:07]Host: 172.17.56.4:8080 [23:41:07]Content-Length: 642 [23:41:07]Content-Type: application/json [23:41:07] [23:41:07]POST finish read [23:41:07]Found Content-Length = 642 [23:41:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459223", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 30.000, "sum" : 1974.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1974.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:41:07]execute_script... [23:41: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)459223", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 30.000, "sum" : 1974.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1974.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:41:07]POST & json_proto [23:41:07]process_json_proto [23:41:07]json parsed OK: [23:41:07]protocol is kg_v1.0 [23:41:07]action value=close_receipt [23:41:07]process_action close_receipt [23:41:07]cmd_close_receipt [23:41:07]MH_GetDate [23:41:07]Write to MH i2c: F0 00 00 BB 11 BB [23:41:07]Write i2c OK [23:41:07]MH_I2C_Read... [23:41:07]Read from MH i2c: F0 [23:41:07]MH_I2C_Read... [23:41:07]Read from MH i2c: F0 09 00 [23:41:07]MH_I2C_Read... [23:41:07]Read from MH i2c: F0 09 00 BB 11 00 15 62 94 66 C9 DC B2 64 F0 [23:41:07]GetLastDocTimeStamp 1720999720 [23:41:07]current date 1721000469 [23:41:07]FM_GetShiftState [23:41:07]SAM_PROTO_GetShiftState [23:41:07]wFMCommunicate request_size=4 [23:41:07]MH_SAM_APDU [23:41:07]CAPDU: 80 13 01 00 [23:41:07]Write to MH i2c: E2 08 00 BC 11 80 13 01 00 00 00 00 00 4A [23:41:07]Write i2c OK [23:41:07]MH_I2C_Read... [23:41:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:41:07]Read from MH i2c: E2 [23:41:07]MH_I2C_Read... [23:41:07]Read from MH i2c: E2 0E 00 [23:41:07]MH_I2C_Read... [23:41:07]Read from MH i2c: E2 0E 00 BC 11 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 CA [23:41:07]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [23:41:07]wFMCommunicate OK [23:41:07]SAM_PROTO_GetShiftState done [23:41:07]FM_GetShiftState done [23:41:07]opened in 1720917342 [23:41:07]opened+sec_in_day 1721003742 [23:41:07]quantity*price = 197400 [23:41:07]sum+1 = 197401 [23:41:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1974.00 НСП 1% : 17.47 НДС 12% : 209.63 Наличными: 1974.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 318 14.07.2024 23:41 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165120 ФПД: 108624546641794 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T234109&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165120&fm=108624546641794&tin=02508201610067®Number=0000000000090829&sum=197400 [23:41:08]StoreToDocumentArchive [23:41:08]shift 447 fd 165120 [23:41:08]save to /storage/0447/doc_00165120 [23:41:08]save last doc name /storage/0447/doc_00165120 to /storage/kkm_last_doc_name [23:41:08]save OK [23:41:08]Clear old archive folders... [23:41:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:41:08]tlvbuf is 01365920 [23:41:08]SAM_PROTO_ClearQueue [23:41:08]wFMCommunicate request_size=4 [23:41:08]MH_SAM_APDU [23:41:08]CAPDU: 80 09 00 00 [23:41:08]Write to MH i2c: E2 08 00 C9 11 80 09 00 00 00 00 00 00 4C [23:41:08]Write i2c OK [23:41:08]MH_I2C_Read... [23:41:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:41:08]Read from MH i2c: E2 [23:41:08]MH_I2C_Read... [23:41:08]Read from MH i2c: E2 03 00 [23:41:08]MH_I2C_Read... [23:41:08]Read from MH i2c: E2 03 00 C9 11 00 90 00 4E [23:41:08]RAPDU: 90 00 [23:41:08]wFMCommunicate OK [23:41:08]SAM_PROTO_ClearQueue done [23:41:08]KKMCreateOFDPacket [23:41:08]OFDProtocolAddRootSTLVToBuf [23:41:08]FM_MakeSignedData [23:41:08]FM_MakeSignedData [23:41:08]SAM_PROTO_SignData [23:41:08]wFMCommunicate request_size=4 [23:41:08]MH_SAM_APDU [23:41:08]CAPDU: 80 0D 01 02 [23:41:08]Write to MH i2c: E2 08 00 CA 11 80 0D 01 02 00 00 00 00 54 [23:41:08]Write i2c OK [23:41:08]MH_I2C_Read... [23:41:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:41:08]Read from MH i2c: E2 [23:41:08]MH_I2C_Read... [23:41:08]Read from MH i2c: E2 03 00 [23:41:08]MH_I2C_Read... [23:41:08]Read from MH i2c: E2 03 00 CA 11 00 90 00 4F [23:41:08]RAPDU: 90 00 [23:41:08]wFMCommunicate OK [23:41:08]wFMCommunicate request_size=255 [23:41:08]MH_SAM_APDU [23:41:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 18 03 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 03 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 51 00 00 00 00 07 04 06 00 18 03 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 15 62 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 00 85 02 00 35 04 06 00 62 [23:41:08]Write to MH i2c: E2 02 01 CB 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 18 03 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 03 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 51 00 00 00 00 07 04 06 00 18 03 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 15 62 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 00 85 02 00 35 04 06 00 62 00 00 96 [23:41:08]Write i2c OK [23:41:08]MH_I2C_Read... [23:41:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:41:09]Read from MH i2c: E2 [23:41:09]MH_I2C_Read... [23:41:09]Read from MH i2c: E2 03 00 [23:41:09]MH_I2C_Read... [23:41:09]Read from MH i2c: E2 03 00 CB 11 00 90 00 50 [23:41:09]RAPDU: 90 00 [23:41:09]wFMCommunicate OK [23:41:09]wFMCommunicate request_size=10 [23:41:09]MH_SAM_APDU [23:41:09]CAPDU: 80 0D 02 02 05 CB 1F 84 37 82 [23:41:09]Write to MH i2c: E2 0D 00 CC 11 80 0D 02 02 05 00 CB 1F 84 37 82 00 00 88 [23:41:09]Write i2c OK [23:41:09]MH_I2C_Read... [23:41:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:41:09]Read from MH i2c: E2 [23:41:09]MH_I2C_Read... [23:41:09]Read from MH i2c: E2 03 00 [23:41:09]MH_I2C_Read... [23:41:09]Read from MH i2c: E2 03 00 CC 11 00 90 00 51 [23:41:09]RAPDU: 90 00 [23:41:09]wFMCommunicate OK [23:41:09]wFMCommunicate request_size=4 [23:41:09]MH_SAM_APDU [23:41:09]CAPDU: 80 0D 03 02 [23:41:09]Write to MH i2c: E2 08 00 CD 11 80 0D 03 02 00 00 00 00 59 [23:41:09]Write i2c OK [23:41:09]MH_I2C_Read... [23:41:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:41:09]Read from MH i2c: E2 [23:41:09]MH_I2C_Read... [23:41:09]Read from MH i2c: E2 0B 00 [23:41:09]MH_I2C_Read... [23:41:09]Read from MH i2c: E2 0B 00 CD 11 00 60 53 81 08 8F 27 E8 3A 90 00 6E [23:41:09]RAPDU: 60 53 81 08 8F 27 E8 3A 90 00 [23:41:09]wFMCommunicate OK [23:41:09]SAM_PROTO_SignData done [23:41:09]FM_MakeSignedData done [23:41:09]CreateOFDProtocolMessage [23:41:09]wFMCommunicate request_size=4 [23:41:09]MH_SAM_APDU [23:41:09]CAPDU: 80 11 00 00 [23:41:09]Write to MH i2c: E2 08 00 CE 11 80 11 00 00 00 00 00 00 59 [23:41:09]Write i2c OK [23:41:09]MH_I2C_Read... [23:41:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:41:09]Read from MH i2c: E2 [23:41:09]MH_I2C_Read... [23:41:09]Read from MH i2c: E2 17 00 [23:41:09]MH_I2C_Read... [23:41:09]Read from MH i2c: E2 17 00 CE 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 AF [23:41:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:41:09]wFMCommunicate OK [23:41:09]CreateOFDProtocolMessage done [23:41:09]OFDSenderStorePacket 165120 [23:41:09]StoreOFDPacket docnum=165120 [23:41:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 60 1B 07 01 2F 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 18 03 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 03 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 51 00 00 00 00 07 04 06 00 18 03 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 15 62 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 00 85 02 00 35 04 06 00 62 CB 1F 84 37 82 60 53 81 08 8F 27 E8 3A [23:41:09]CheckFolder [23:41:09]dirname=/storage/ofd_packets [23:41:09]CheckFolder done [23:41:09]ProducePacketName [23:41:09]name=ofd_packets/00165120 [23:41:09]NVStorageSaveData ofd_packets/00165120 [23:41:09]File name is /storage/ofd_packets/00165120 [23:41:09]Write 301 bytes [23:41:09]NVStorageSaveData done [23:41:09]OFDSenderStorePacket done [23:41:09]KKMCreateOFDPacket done [23:41:09]NVStorageSaveData kkm_last_timestamp [23:41:09]File name is /storage/kkm_last_timestamp [23:41:09]Write 4 bytes [23:41:09]NVStorageSaveData done [23:41:09]ExternCall_PrintAddStr [23:41:09]wPrintStart [23:41:09]Write to MH i2c: 01 00 00 CF 11 E0 [23:41:09]Write i2c OK [23:41:09]MH_I2C_Read... [23:41:09]Read from MH i2c: 01 [23:41:09]MH_I2C_Read... [23:41:09]Read from MH i2c: 01 07 00 [23:41:09]MH_I2C_Read... [23:41:09]Read from MH i2c: 01 07 00 CF 11 00 00 00 00 00 FF 0F F5 [23:41:09]RasterBufferAndPrint [23:41:09]line Счет N : (1)459223 [23:41:09]line ИНН: 02508201610067 [23:41:09]line Контрольно-Кассовый Чек [23:41:09]line ПРОДАЖА [23:41:09]line ТРК (МРК, ГНК) : 12 [23:41:09]line Товар: 2710124130 [23:41:09]line Аи-92-К-5 [23:41:09]line 30.000 * 65.80 [23:41:09]line = 1974.00 [23:41:09]line НДС 12% НСП 1% [23:41:09]line > о реализуемом товаре [23:41:09]line ИТОГО: 1974.00 [23:41:09]line НСП 1% : 17.47 [23:41:09]line НДС 12% : 209.63 [23:41:09]line Наличными: 1974.00 [23:41:09]line Безнал.: 0.00 [23:41:09]line Место: АЗС № 72 "Партнер Нефть" [23:41:09]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [23:41:09]line СНО: Общий режим [23:41:09]line Чек 318 14.07.2024 23:41 [23:41:09]line Смена: 447 ФФД: 1.0 [23:41:09]line ЗНМ: 0300000160 [23:41:09]line РНМ: 0000000000090829 [23:41:09]line Версия ККМ: 001 [23:41:09]line ФМ: 0000000000874718 [23:41:09]line ФД: 165120 [23:41:09]line ФПД: 108624546641794 [23:41:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T234109&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165120&fm=108624546641794&tin=02508201610067®Number=0000000000090829&sum=197400 [23:41:09]written 0, free lines is 4095 [23:41:09]OFD Sender: Processing packet 165120 [packets to send 106, broken 105] [23:41:09]ProducePacketName [23:41:09]name=ofd_packets/00165120 [23:41:09]OFD Sender: To server: pG, [23:41:09]CommunicateWithHost lk.salyk.kg:30040 [23:41:09]ConnectInit lk.salyk.kg [23:41:09]Connected sock=10 [23:41:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 60 1B 07 01 2F 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 18 03 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 03 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 51 00 00 00 00 07 04 06 00 18 03 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 15 62 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 00 85 02 00 35 04 06 00 62 CB 1F 84 37 82 60 53 81 08 8F 27 E8 3A [23:41:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 FD FB 47 00 8E 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 00 85 02 00 F4 03 04 00 A1 08 94 66 B6 04 01 00 00 D1 9C 24 94 EC 79 40 5E [23:41:09]CommunicateWithHost err = 0 [23:41:09]CheckOFDResponse [23:41:09]1017 (14) - 77093643461234 [23:41:09]1041 (16) - 0000000000874718 [23:41:09]1040 (4) - 165120 [23:41:09]1012 (4) - 14.07.2024 17:19 [23:41:09]1206 (1) - 0 [23:41:09]OFD Sender: Remove packet 165120 [23:41:09]ProducePacketName [23:41:09]name=ofd_packets/00165120 [23:41:09]NVStorageDeleteData [23:41:09]Write to MH i2c: 01 00 00 F6 11 07 [23:41:09]Write i2c OK [23:41:09]MH_I2C_Read... [23:41:09]Read from MH i2c: 01 [23:41:09]MH_I2C_Read... [23:41:09]Read from MH i2c: 01 07 00 [23:41:09]MH_I2C_Read... [23:41:09]Read from MH i2c: 01 07 00 F6 11 00 00 00 00 00 2D 0D 48 [23:41:09]RasterBufferAndPrint [23:41:09]line [23:41:09]line [23:41:09]line [23:41:09]line [23:41:09]line [23:41:09]written 0, free lines is 3379 [23:41:09]MH_Cut [23:41:09]Write to MH i2c: D1 01 00 FD 11 01 E0 [23:41:09]Write i2c OK [23:41:09]MH_I2C_Read... [23:41:09]Read from MH i2c: D1 [23:41:09]MH_I2C_Read... [23:41:09]Read from MH i2c: D1 01 00 [23:41:09]MH_I2C_Read... [23:41:09]Read from MH i2c: D1 01 00 FD 11 00 DF [23:41:09]Write to MH i2c: 01 00 00 FE 11 0F [23:41:09]Write i2c OK [23:41:09]MH_I2C_Read... [23:41:10]OFD Sender: No OFD packet to send [23:41:10]*** Cut start [23:41:10]*** Partial cut [23:41:10]*** CUTSNS_PIN = 1 [23:41:10]*** CUTSNS_PIN = 0 [23:41:10]*** Brake cut motor [23:41:11]Read from MH i2c: 01 [23:41:11]MH_I2C_Read... [23:41:11]*** Stop cut motor [23:41:11]*** Cut end [23:41:11]Read from MH i2c: 01 07 00 [23:41:11]MH_I2C_Read... [23:41:11]Read from MH i2c: 01 07 00 FE 11 00 00 00 00 00 FF 0F 24 [23:41:11]process_action close_receipt done [23:41:11]requested_data is exist [23:41:11]produce_requested_data [23:41:11]requested_item fm.sn is exist - process it [23:41:11]wFMCommunicate request_size=4 [23:41:11]MH_SAM_APDU [23:41:11]CAPDU: 80 11 00 00 [23:41:11]Write to MH i2c: E2 08 00 FF 11 80 11 00 00 00 00 00 00 8A [23:41:11]Write i2c OK [23:41:11]MH_I2C_Read... [23:41:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:41:11]Read from MH i2c: E2 [23:41:11]MH_I2C_Read... [23:41:11]Read from MH i2c: E2 17 00 [23:41:11]MH_I2C_Read... [23:41:11]Read from MH i2c: E2 17 00 FF 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E0 [23:41:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:41:11]wFMCommunicate OK [23:41:11]requested_item fd.num is exist - process it [23:41:11]SAM_PROTO_GetFieldsCounters [23:41:11]wFMCommunicate request_size=4 [23:41:11]MH_SAM_APDU [23:41:11]CAPDU: 80 13 00 00 [23:41:11]Write to MH i2c: E2 08 00 00 12 80 13 00 00 00 00 00 00 8E [23:41:11]Write i2c OK [23:41:11]MH_I2C_Read... [23:41:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:41:11]Read from MH i2c: E2 [23:41:11]MH_I2C_Read... [23:41:11]Read from MH i2c: E2 62 00 [23:41:11]MH_I2C_Read... [23:41:11]Read from MH i2c: E2 62 00 00 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 00 85 02 00 0E 04 04 00 BF 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 B9 [23:41:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 00 85 02 00 0E 04 04 00 BF 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 [23:41:11]wFMCommunicate OK [23:41:11]SAM_PROTO_GetFieldsCounters done [23:41:11]requested_item shift.num is exist - process it [23:41:11]requested_item shift.opened is exist - process it [23:41:11]req_shift_opened [23:41:11]FM_GetShiftState [23:41:11]SAM_PROTO_GetShiftState [23:41:11]wFMCommunicate request_size=4 [23:41:11]MH_SAM_APDU [23:41:11]CAPDU: 80 13 01 00 [23:41:11]Write to MH i2c: E2 08 00 01 12 80 13 01 00 00 00 00 00 90 [23:41:11]Write i2c OK [23:41:11]MH_I2C_Read... [23:41:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:41:11]Read from MH i2c: E2 [23:41:11]MH_I2C_Read... [23:41:11]Read from MH i2c: E2 0E 00 [23:41:11]MH_I2C_Read... [23:41:11]Read from MH i2c: E2 0E 00 01 12 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 10 [23:41:11]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [23:41:11]wFMCommunicate OK [23:41:11]SAM_PROTO_GetShiftState done [23:41:11]FM_GetShiftState done [23:41:11]req_shift_opened done [23:41:11]requested_item shift.open_date is exist - process it [23:41:11]req_shift_open_date [23:41:11]req_shift_open_date done [23:41:11]produce_requested_data done [23:41:11]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165120,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [23:41:11]process_action_free close_receipt [23:41:11]json_value_free [23:41:11]json_value_free done [23:41:11]process_json_proto returns [23:41:11]Send response to host [23:41:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165120,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [23:41:11]free response buf [23:41:11]execute_script done [23:41:11]execute_script returns [23:41:11]free content buf [23:41:11]Sock 7.Close socket [23:41:11]Sock 7.Thread stoped [23:41:15]OFD Sender: No OFD packet to send [23:41:20]OFD Sender: No OFD packet to send [23:41:25]OFD Sender: No OFD packet to send [23:41:30]OFD Sender: No OFD packet to send [23:41:35]OFD Sender: No OFD packet to send [23:41:40]OFD Sender: No OFD packet to send [23:41:45]OFD Sender: No OFD packet to send [23:41:50]OFD Sender: No OFD packet to send [23:41:55]OFD Sender: No OFD packet to send [23:42:00]OFD Sender: No OFD packet to send [23:42:05]OFD Sender: No OFD packet to send [23:42:06]accept exits with 9 [23:42:06]New connection [23:42:06]New thread 3066928484 created [23:42:06]Thread 3066785124 joined [23:42:06]Waiting for new connection... [23:42:06] Sock 9.Parse request [23:42:06]Sock 9.Check first char [23:42:06]Sock 9.First char is OK [23:42:06]request: POST /json_proto HTTP/1.0 [23:42:06]Method: POST [23:42:06]URL: /json_proto [23:42:06]Method is POST - this is cgi request [23:42:06]url: /json_proto [23:42:06]query_string will be loaded in cgi processing [23:42:06]execute_cgi json_proto POST (null) [23:42:06]execute_cgi path=json_proto method=POST [23:42:06]POST find Content-Length [23:42:06]Host: 172.17.56.4:8080 [23:42:06]Content-Length: 677 [23:42:06]Content-Type: application/json [23:42:06] [23:42:06]POST finish read [23:42:06]Found Content-Length = 677 [23:42:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459224", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.870, "sum" : 320.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:42:06]execute_script... [23:42:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459224", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.870, "sum" : 320.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:42:06]POST & json_proto [23:42:06]process_json_proto [23:42:06]json parsed OK: [23:42:06]protocol is kg_v1.0 [23:42:06]action value=close_receipt [23:42:06]process_action close_receipt [23:42:06]cmd_close_receipt [23:42:06]MH_GetDate [23:42:06]Write to MH i2c: F0 00 00 02 12 03 [23:42:06]Write i2c OK [23:42:06]MH_I2C_Read... [23:42:06]Read from MH i2c: F0 [23:42:06]MH_I2C_Read... [23:42:06]Read from MH i2c: F0 09 00 [23:42:06]MH_I2C_Read... [23:42:06]Read from MH i2c: F0 09 00 02 12 00 50 62 94 66 C9 DC B2 64 73 [23:42:06]GetLastDocTimeStamp 1721000469 [23:42:06]current date 1721000528 [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 03 12 80 13 01 00 00 00 00 00 92 [23:42:06]Write i2c OK [23:42:06]MH_I2C_Read... [23:42:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:42:06]Read from MH i2c: E2 [23:42:06]MH_I2C_Read... [23:42:06]Read from MH i2c: E2 0E 00 [23:42:06]MH_I2C_Read... [23:42:06]Read from MH i2c: E2 0E 00 03 12 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 12 [23:42:06]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [23:42:06]wFMCommunicate OK [23:42:06]SAM_PROTO_GetShiftState done [23:42:06]FM_GetShiftState done [23:42:06]opened in 1720917342 [23:42:06]opened+sec_in_day 1721003742 [23:42:06]quantity*price = 32044 [23:42:06]sum+1 = 32046 [23:42:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 320.00 Внесено: 320.00 СДАЧА: 0.00 НСП 1% : 2.84 НДС 12% : 34.03 Наличными: 320.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 319 14.07.2024 23:42 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165121 ФПД: 269316802239533 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T234208&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165121&fm=269316802239533&tin=02508201610067®Number=0000000000090829&sum=32000 [23:42:07]StoreToDocumentArchive [23:42:07]shift 447 fd 165121 [23:42:07]save to /storage/0447/doc_00165121 [23:42:07]save last doc name /storage/0447/doc_00165121 to /storage/kkm_last_doc_name [23:42:07]save OK [23:42:07]Clear old archive folders... [23:42:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:42:07]tlvbuf is 01373860 [23:42:07]SAM_PROTO_ClearQueue [23:42:07]wFMCommunicate request_size=4 [23:42:07]MH_SAM_APDU [23:42:07]CAPDU: 80 09 00 00 [23:42:07]Write to MH i2c: E2 08 00 10 12 80 09 00 00 00 00 00 00 94 [23:42:07]Write i2c OK [23:42:07]MH_I2C_Read... [23:42:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:42:07]Read from MH i2c: E2 [23:42:07]MH_I2C_Read... [23:42:07]Read from MH i2c: E2 03 00 [23:42:07]MH_I2C_Read... [23:42:07]Read from MH i2c: E2 03 00 10 12 00 90 00 96 [23:42:07]RAPDU: 90 00 [23:42:07]wFMCommunicate OK [23:42:07]SAM_PROTO_ClearQueue done [23:42:07]KKMCreateOFDPacket [23:42:07]OFDProtocolAddRootSTLVToBuf [23:42:07]FM_MakeSignedData [23:42:07]FM_MakeSignedData [23:42:07]SAM_PROTO_SignData [23:42:07]wFMCommunicate request_size=4 [23:42:07]MH_SAM_APDU [23:42:07]CAPDU: 80 0D 01 02 [23:42:07]Write to MH i2c: E2 08 00 11 12 80 0D 01 02 00 00 00 00 9C [23:42:07]Write i2c OK [23:42:07]MH_I2C_Read... [23:42:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:42:07]Read from MH i2c: E2 [23:42:07]MH_I2C_Read... [23:42:07]Read from MH i2c: E2 03 00 [23:42:07]MH_I2C_Read... [23:42:07]Read from MH i2c: E2 03 00 11 12 00 90 00 97 [23:42:07]RAPDU: 90 00 [23:42:07]wFMCommunicate OK [23:42:07]wFMCommunicate request_size=255 [23:42:07]MH_SAM_APDU [23:42:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 50 62 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 01 85 02 00 35 04 06 00 F4 [23:42:07]Write to MH i2c: E2 02 01 12 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 50 62 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 01 85 02 00 35 04 06 00 F4 00 00 D3 [23:42:07]Write i2c OK [23:42:07]MH_I2C_Read... [23:42:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:42:07]Read from MH i2c: E2 [23:42:07]MH_I2C_Read... [23:42:07]Read from MH i2c: E2 03 00 [23:42:07]MH_I2C_Read... [23:42:07]Read from MH i2c: E2 03 00 12 12 00 90 00 98 [23:42:07]RAPDU: 90 00 [23:42:07]wFMCommunicate OK [23:42:07]wFMCommunicate request_size=10 [23:42:07]MH_SAM_APDU [23:42:07]CAPDU: 80 0D 02 02 05 F1 34 54 5C 2D [23:42:07]Write to MH i2c: E2 0D 00 13 12 80 0D 02 02 05 00 F1 34 54 5C 2D 00 00 AB [23:42:07]Write i2c OK [23:42:07]MH_I2C_Read... [23:42:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:42:08]Read from MH i2c: E2 [23:42:08]MH_I2C_Read... [23:42:08]Read from MH i2c: E2 03 00 [23:42:08]MH_I2C_Read... [23:42:08]Read from MH i2c: E2 03 00 13 12 00 90 00 99 [23:42:08]RAPDU: 90 00 [23:42:08]wFMCommunicate OK [23:42:08]wFMCommunicate request_size=4 [23:42:08]MH_SAM_APDU [23:42:08]CAPDU: 80 0D 03 02 [23:42:08]Write to MH i2c: E2 08 00 14 12 80 0D 03 02 00 00 00 00 A1 [23:42:08]Write i2c OK [23:42:08]MH_I2C_Read... [23:42:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:42:08]Read from MH i2c: E2 [23:42:08]MH_I2C_Read... [23:42:08]Read from MH i2c: E2 0B 00 [23:42:08]MH_I2C_Read... [23:42:08]Read from MH i2c: E2 0B 00 14 12 00 27 3D 51 2E D0 DF A4 63 90 00 3B [23:42:08]RAPDU: 27 3D 51 2E D0 DF A4 63 90 00 [23:42:08]wFMCommunicate OK [23:42:08]SAM_PROTO_SignData done [23:42:08]FM_MakeSignedData done [23:42:08]CreateOFDProtocolMessage [23:42:08]wFMCommunicate request_size=4 [23:42:08]MH_SAM_APDU [23:42:08]CAPDU: 80 11 00 00 [23:42:08]Write to MH i2c: E2 08 00 15 12 80 11 00 00 00 00 00 00 A1 [23:42:08]Write i2c OK [23:42:08]MH_I2C_Read... [23:42:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:42:08]Read from MH i2c: E2 [23:42:08]MH_I2C_Read... [23:42:08]Read from MH i2c: E2 17 00 [23:42:08]MH_I2C_Read... [23:42:08]Read from MH i2c: E2 17 00 15 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F7 [23:42:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:42:08]wFMCommunicate OK [23:42:08]CreateOFDProtocolMessage done [23:42:08]OFDSenderStorePacket 165121 [23:42:08]StoreOFDPacket docnum=165121 [23:42:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 0C 09 07 01 BF 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 50 62 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 01 85 02 00 35 04 06 00 F4 F1 34 54 5C 2D 27 3D 51 2E D0 DF A4 63 [23:42:08]CheckFolder [23:42:08]dirname=/storage/ofd_packets [23:42:08]CheckFolder done [23:42:08]ProducePacketName [23:42:08]name=ofd_packets/00165121 [23:42:08]NVStorageSaveData ofd_packets/00165121 [23:42:08]File name is /storage/ofd_packets/00165121 [23:42:08]Write 301 bytes [23:42:08]NVStorageSaveData done [23:42:08]OFDSenderStorePacket done [23:42:08]KKMCreateOFDPacket done [23:42:08]NVStorageSaveData kkm_last_timestamp [23:42:08]File name is /storage/kkm_last_timestamp [23:42:08]Write 4 bytes [23:42:08]NVStorageSaveData done [23:42:08]ExternCall_PrintAddStr [23:42:08]wPrintStart [23:42:08]Write to MH i2c: 01 00 00 16 12 28 [23:42:08]Write i2c OK [23:42:08]MH_I2C_Read... [23:42:08]Read from MH i2c: 01 [23:42:08]MH_I2C_Read... [23:42:08]Read from MH i2c: 01 07 00 [23:42:08]MH_I2C_Read... [23:42:08]Read from MH i2c: 01 07 00 16 12 00 00 00 00 00 FF 0F 3D [23:42:08]RasterBufferAndPrint [23:42:08]line Счет N : (1)459224 [23:42:08]line ИНН: 02508201610067 [23:42:08]line Контрольно-Кассовый Чек [23:42:08]line ПРОДАЖА [23:42:08]line ТРК (МРК, ГНК) : 22 [23:42:08]line Товар: 2710124130 [23:42:08]line Аи-92-К-5 [23:42:08]line 4.870 * 65.80 [23:42:08]line = 320.45 [23:42:08]line НДС 12% НСП 1% [23:42:08]line > о реализуемом товаре [23:42:08]line ОКРУГЛЕНИЕ: -0.45 [23:42:08]line ИТОГО: 320.00 [23:42:08]line Внесено: 320.00 [23:42:08]line СДАЧА: 0.00 [23:42:08]line НСП 1% : 2.84 [23:42:08]line НДС 12% : 34.03 [23:42:08]line Наличными: 320.00 [23:42:08]line Безнал.: 0.00 [23:42:08]line Место: АЗС № 72 "Партнер Нефть" [23:42:08]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [23:42:08]line СНО: Общий режим [23:42:08]line Чек 319 14.07.2024 23:42 [23:42:08]line Смена: 447 ФФД: 1.0 [23:42:08]line ЗНМ: 0300000160 [23:42:08]line РНМ: 0000000000090829 [23:42:08]line Версия ККМ: 001 [23:42:08]line ФМ: 0000000000874718 [23:42:08]line ФД: 165121 [23:42:08]line ФПД: 269316802239533 [23:42:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T234208&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165121&fm=269316802239533&tin=02508201610067®Number=0000000000090829&sum=32000 [23:42:08]written 0, free lines is 4095 [23:42:08]OFD Sender: Processing packet 165121 [packets to send 106, broken 105] [23:42:08]ProducePacketName [23:42:08]name=ofd_packets/00165121 [23:42:08]OFD Sender: To server: pG, [23:42:08]CommunicateWithHost lk.salyk.kg:30040 [23:42:08]ConnectInit lk.salyk.kg [23:42:08]Connected sock=10 [23:42:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 0C 09 07 01 BF 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 50 62 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 01 85 02 00 35 04 06 00 F4 F1 34 54 5C 2D 27 3D 51 2E D0 DF A4 63 [23:42:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 28 9F 47 00 3F 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 01 85 02 00 F4 03 04 00 DC 08 94 66 B6 04 01 00 00 67 14 84 C8 DA BF A4 CD [23:42:08]CommunicateWithHost err = 0 [23:42:08]CheckOFDResponse [23:42:08]1017 (14) - 77093643461234 [23:42:08]1041 (16) - 0000000000874718 [23:42:08]1040 (4) - 165121 [23:42:08]1012 (4) - 14.07.2024 17:20 [23:42:08]1206 (1) - 0 [23:42:08]OFD Sender: Remove packet 165121 [23:42:08]ProducePacketName [23:42:08]name=ofd_packets/00165121 [23:42:08]NVStorageDeleteData [23:42:08]Write to MH i2c: 01 00 00 40 12 52 [23:42:08]Write i2c OK [23:42:08]MH_I2C_Read... [23:42:08]Read from MH i2c: 01 [23:42:08]MH_I2C_Read... [23:42:08]Read from MH i2c: 01 07 00 [23:42:08]MH_I2C_Read... [23:42:08]Read from MH i2c: 01 07 00 40 12 00 00 00 00 00 F5 0C 5A [23:42:08]RasterBufferAndPrint [23:42:08]line [23:42:08]line [23:42:08]line [23:42:08]line [23:42:08]line [23:42:08]written 0, free lines is 3323 [23:42:08]MH_Cut [23:42:08]Write to MH i2c: D1 01 00 47 12 01 2B [23:42:08]Write i2c OK [23:42:08]MH_I2C_Read... [23:42:08]Read from MH i2c: D1 [23:42:08]MH_I2C_Read... [23:42:08]Read from MH i2c: D1 01 00 [23:42:08]MH_I2C_Read... [23:42:08]Read from MH i2c: D1 01 00 47 12 00 2A [23:42:08]Write to MH i2c: 01 00 00 48 12 5A [23:42:08]Write i2c OK [23:42:08]MH_I2C_Read... [23:42:09]OFD Sender: No OFD packet to send [23:42:09]*** Cut start [23:42:09]*** Partial cut [23:42:09]*** CUTSNS_PIN = 1 [23:42:09]*** CUTSNS_PIN = 0 [23:42:09]*** Brake cut motor [23:42:10]Read from MH i2c: 01 [23:42:10]MH_I2C_Read... [23:42:10]*** Stop cut motor [23:42:10]*** Cut end [23:42:10]Read from MH i2c: 01 07 00 [23:42:10]MH_I2C_Read... [23:42:10]Read from MH i2c: 01 07 00 48 12 00 00 00 00 00 FF 0F 6F [23:42:10]process_action close_receipt done [23:42:10]requested_data is exist [23:42:10]produce_requested_data [23:42:10]requested_item fm.sn is exist - process it [23:42:10]wFMCommunicate request_size=4 [23:42:10]MH_SAM_APDU [23:42:10]CAPDU: 80 11 00 00 [23:42:10]Write to MH i2c: E2 08 00 49 12 80 11 00 00 00 00 00 00 D5 [23:42:10]Write i2c OK [23:42:10]MH_I2C_Read... [23:42:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:42:10]Read from MH i2c: E2 [23:42:10]MH_I2C_Read... [23:42:10]Read from MH i2c: E2 17 00 [23:42:10]MH_I2C_Read... [23:42:10]Read from MH i2c: E2 17 00 49 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 2B [23:42:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:42:10]wFMCommunicate OK [23:42:10]requested_item fd.num is exist - process it [23:42:10]SAM_PROTO_GetFieldsCounters [23:42:10]wFMCommunicate request_size=4 [23:42:10]MH_SAM_APDU [23:42:10]CAPDU: 80 13 00 00 [23:42:10]Write to MH i2c: E2 08 00 4A 12 80 13 00 00 00 00 00 00 D8 [23:42:10]Write i2c OK [23:42:10]MH_I2C_Read... [23:42:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:42:10]Read from MH i2c: E2 [23:42:10]MH_I2C_Read... [23:42:10]Read from MH i2c: E2 62 00 [23:42:10]MH_I2C_Read... [23:42:10]Read from MH i2c: E2 62 00 4A 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 01 85 02 00 0E 04 04 00 BF 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 07 [23:42:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 01 85 02 00 0E 04 04 00 BF 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 [23:42:10]wFMCommunicate OK [23:42:10]SAM_PROTO_GetFieldsCounters done [23:42:10]requested_item shift.num is exist - process it [23:42:10]requested_item shift.opened is exist - process it [23:42:10]req_shift_opened [23:42:10]FM_GetShiftState [23:42:10]SAM_PROTO_GetShiftState [23:42:10]wFMCommunicate request_size=4 [23:42:10]MH_SAM_APDU [23:42:10]CAPDU: 80 13 01 00 [23:42:10]Write to MH i2c: E2 08 00 4B 12 80 13 01 00 00 00 00 00 DA [23:42:10]Write i2c OK [23:42:10]MH_I2C_Read... [23:42:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:42:10]Read from MH i2c: E2 [23:42:10]MH_I2C_Read... [23:42:10]Read from MH i2c: E2 0E 00 [23:42:10]MH_I2C_Read... [23:42:10]Read from MH i2c: E2 0E 00 4B 12 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 5A [23:42:10]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [23:42:10]wFMCommunicate OK [23:42:10]SAM_PROTO_GetShiftState done [23:42:10]FM_GetShiftState done [23:42:10]req_shift_opened done [23:42:10]requested_item shift.open_date is exist - process it [23:42:10]req_shift_open_date [23:42:10]req_shift_open_date done [23:42:10]produce_requested_data done [23:42:10]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165121,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [23:42:10]process_action_free close_receipt [23:42:10]json_value_free [23:42:10]json_value_free done [23:42:10]process_json_proto returns [23:42:10]Send response to host [23:42:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165121,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [23:42:10]free response buf [23:42:10]execute_script done [23:42:10]execute_script returns [23:42:10]free content buf [23:42:10]Sock 9.Close socket [23:42:10]Sock 9.Thread stoped [23:42:14]OFD Sender: No OFD packet to send [23:42:19]OFD Sender: No OFD packet to send [23:42:24]OFD Sender: No OFD packet to send [23:42:29]OFD Sender: No OFD packet to send [23:42:34]OFD Sender: No OFD packet to send [23:42:39]OFD Sender: No OFD packet to send [23:42:44]OFD Sender: No OFD packet to send [23:42:44]accept exits with 7 [23:42:44]New connection [23:42:44]New thread 3066785124 created [23:42:44]Thread 3066928484 joined [23:42:44]Waiting for new connection... [23:42:44] Sock 7.Parse request [23:42:44]Sock 7.Check first char [23:42:44]Sock 7.First char is OK [23:42:44]request: POST /json_proto HTTP/1.0 [23:42:44]Method: POST [23:42:44]URL: /json_proto [23:42:44]Method is POST - this is cgi request [23:42:44]url: /json_proto [23:42:44]query_string will be loaded in cgi processing [23:42:44]execute_cgi json_proto POST (null) [23:42:44]execute_cgi path=json_proto method=POST [23:42:44]POST find Content-Length [23:42:44]Host: 172.17.56.4:8080 [23:42:44]Content-Length: 675 [23:42:44]Content-Type: application/json [23:42:44] [23:42:44]POST finish read [23:42:44]Found Content-Length = 675 [23:42:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459225", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 12.520, "sum" : 900.19, "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" ] } } [23:42:44]execute_script... [23: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)459225", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 12.520, "sum" : 900.19, "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" ] } } [23:42:44]POST & json_proto [23:42:44]process_json_proto [23:42:44]json parsed OK: [23:42:44]protocol is kg_v1.0 [23:42:44]action value=close_receipt [23:42:44]process_action close_receipt [23:42:44]cmd_close_receipt [23:42:44]MH_GetDate [23:42:44]Write to MH i2c: F0 00 00 4C 12 4D [23:42:44]Write i2c OK [23:42:44]MH_I2C_Read... [23:42:44]Read from MH i2c: F0 [23:42:44]MH_I2C_Read... [23:42:44]Read from MH i2c: F0 09 00 [23:42:44]MH_I2C_Read... [23:42:44]Read from MH i2c: F0 09 00 4C 12 00 77 62 94 66 C9 DC B2 64 E4 [23:42:44]GetLastDocTimeStamp 1721000528 [23:42:44]current date 1721000567 [23:42:44]FM_GetShiftState [23:42:44]SAM_PROTO_GetShiftState [23:42:44]wFMCommunicate request_size=4 [23:42:44]MH_SAM_APDU [23:42:44]CAPDU: 80 13 01 00 [23:42:44]Write to MH i2c: E2 08 00 4D 12 80 13 01 00 00 00 00 00 DC [23:42:44]Write i2c OK [23:42:44]MH_I2C_Read... [23:42:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:42:44]Read from MH i2c: E2 [23:42:44]MH_I2C_Read... [23:42:44]Read from MH i2c: E2 0E 00 [23:42:44]MH_I2C_Read... [23:42:44]Read from MH i2c: E2 0E 00 4D 12 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 5C [23:42:44]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [23:42:44]wFMCommunicate OK [23:42:44]SAM_PROTO_GetShiftState done [23:42:44]FM_GetShiftState done [23:42:44]opened in 1720917342 [23:42:44]opened+sec_in_day 1721003742 [23:42:44]quantity*price = 90018 [23:42:44]sum+1 = 90020 [23:42:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.59 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 320 14.07.2024 23:42 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165122 ФПД: 81873709074692 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T234247&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165122&fm=81873709074692&tin=02508201610067®Number=0000000000090829&sum=90000 [23:42:45]StoreToDocumentArchive [23:42:45]shift 447 fd 165122 [23:42:45]save to /storage/0447/doc_00165122 [23:42:46]save last doc name /storage/0447/doc_00165122 to /storage/kkm_last_doc_name [23:42:46]save OK [23:42:46]Clear old archive folders... [23:42:46]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:42:46]tlvbuf is 01365600 [23:42:46]SAM_PROTO_ClearQueue [23:42:46]wFMCommunicate request_size=4 [23:42:46]MH_SAM_APDU [23:42:46]CAPDU: 80 09 00 00 [23:42:46]Write to MH i2c: E2 08 00 5A 12 80 09 00 00 00 00 00 00 DE [23:42:46]Write i2c OK [23:42:46]MH_I2C_Read... [23:42:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:42:46]Read from MH i2c: E2 [23:42:46]MH_I2C_Read... [23:42:46]Read from MH i2c: E2 03 00 [23:42:46]MH_I2C_Read... [23:42:46]Read from MH i2c: E2 03 00 5A 12 00 90 00 E0 [23:42:46]RAPDU: 90 00 [23:42:46]wFMCommunicate OK [23:42:46]SAM_PROTO_ClearQueue done [23:42:46]KKMCreateOFDPacket [23:42:46]OFDProtocolAddRootSTLVToBuf [23:42:46]FM_MakeSignedData [23:42:46]FM_MakeSignedData [23:42:46]SAM_PROTO_SignData [23:42:46]wFMCommunicate request_size=4 [23:42:46]MH_SAM_APDU [23:42:46]CAPDU: 80 0D 01 02 [23:42:46]Write to MH i2c: E2 08 00 5B 12 80 0D 01 02 00 00 00 00 E6 [23:42:46]Write i2c OK [23:42:46]MH_I2C_Read... [23:42:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:42:46]Read from MH i2c: E2 [23:42:46]MH_I2C_Read... [23:42:46]Read from MH i2c: E2 03 00 [23:42:46]MH_I2C_Read... [23:42:46]Read from MH i2c: E2 03 00 5B 12 00 90 00 E1 [23:42:46]RAPDU: 90 00 [23:42:46]wFMCommunicate OK [23:42:46]wFMCommunicate request_size=255 [23:42:46]MH_SAM_APDU [23:42: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 E8 30 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 A3 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 40 01 00 00 F4 03 04 00 77 62 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 02 85 02 00 35 04 06 00 4A 76 B5 58 [23:42:46]Write to MH i2c: E2 02 01 5C 12 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E8 30 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 A3 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 40 01 00 00 F4 03 04 00 77 62 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 02 85 02 00 35 04 06 00 4A 76 B5 58 00 00 3C [23:42:46]Write i2c OK [23:42:46]MH_I2C_Read... [23:42:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:42:46]Read from MH i2c: E2 [23:42:46]MH_I2C_Read... [23:42:46]Read from MH i2c: E2 03 00 [23:42:46]MH_I2C_Read... [23:42:46]Read from MH i2c: E2 03 00 5C 12 00 90 00 E2 [23:42:46]RAPDU: 90 00 [23:42:46]wFMCommunicate OK [23:42:46]wFMCommunicate request_size=7 [23:42:46]MH_SAM_APDU [23:42:46]CAPDU: 80 0D 02 02 02 89 04 [23:42:46]Write to MH i2c: E2 0A 00 5D 12 80 0D 02 02 02 00 89 04 00 00 7A [23:42:46]Write i2c OK [23:42:46]MH_I2C_Read... [23:42:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:42:46]Read from MH i2c: E2 [23:42:46]MH_I2C_Read... [23:42:46]Read from MH i2c: E2 03 00 [23:42:46]MH_I2C_Read... [23:42:46]Read from MH i2c: E2 03 00 5D 12 00 90 00 E3 [23:42:46]RAPDU: 90 00 [23:42:46]wFMCommunicate OK [23:42:46]wFMCommunicate request_size=4 [23:42:46]MH_SAM_APDU [23:42:46]CAPDU: 80 0D 03 02 [23:42:46]Write to MH i2c: E2 08 00 5E 12 80 0D 03 02 00 00 00 00 EB [23:42:46]Write i2c OK [23:42:46]MH_I2C_Read... [23:42:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:42:46]Read from MH i2c: E2 [23:42:46]MH_I2C_Read... [23:42:46]Read from MH i2c: E2 0B 00 [23:42:46]MH_I2C_Read... [23:42:46]Read from MH i2c: E2 0B 00 5E 12 00 2F 26 EB 6A 59 04 E5 BB 90 00 93 [23:42:46]RAPDU: 2F 26 EB 6A 59 04 E5 BB 90 00 [23:42:46]wFMCommunicate OK [23:42:46]SAM_PROTO_SignData done [23:42:46]FM_MakeSignedData done [23:42:46]CreateOFDProtocolMessage [23:42:46]wFMCommunicate request_size=4 [23:42:46]MH_SAM_APDU [23:42:46]CAPDU: 80 11 00 00 [23:42:46]Write to MH i2c: E2 08 00 5F 12 80 11 00 00 00 00 00 00 EB [23:42:46]Write i2c OK [23:42:46]MH_I2C_Read... [23:42:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:42:46]Read from MH i2c: E2 [23:42:46]MH_I2C_Read... [23:42:46]Read from MH i2c: E2 17 00 [23:42:46]MH_I2C_Read... [23:42:46]Read from MH i2c: E2 17 00 5F 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 41 [23:42:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:42:46]wFMCommunicate OK [23:42:46]CreateOFDProtocolMessage done [23:42:46]OFDSenderStorePacket 165122 [23:42:46]StoreOFDPacket docnum=165122 [23:42:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 06 1E 04 01 8B DB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E8 30 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 A3 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 40 01 00 00 F4 03 04 00 77 62 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 02 85 02 00 35 04 06 00 4A 76 B5 58 89 04 2F 26 EB 6A 59 04 E5 BB [23:42:46]CheckFolder [23:42:46]dirname=/storage/ofd_packets [23:42:46]CheckFolder done [23:42:46]ProducePacketName [23:42:46]name=ofd_packets/00165122 [23:42:46]NVStorageSaveData ofd_packets/00165122 [23:42:46]File name is /storage/ofd_packets/00165122 [23:42:46]Write 298 bytes [23:42:46]NVStorageSaveData done [23:42:46]OFDSenderStorePacket done [23:42:46]KKMCreateOFDPacket done [23:42:46]NVStorageSaveData kkm_last_timestamp [23:42:46]File name is /storage/kkm_last_timestamp [23:42:46]Write 4 bytes [23:42:46]NVStorageSaveData done [23:42:46]ExternCall_PrintAddStr [23:42:46]wPrintStart [23:42:46]Write to MH i2c: 01 00 00 60 12 72 [23:42:46]Write i2c OK [23:42:46]MH_I2C_Read... [23:42:46]Read from MH i2c: 01 [23:42:46]MH_I2C_Read... [23:42:46]Read from MH i2c: 01 07 00 [23:42:46]MH_I2C_Read... [23:42:46]Read from MH i2c: 01 07 00 60 12 00 00 00 00 00 FF 0F 87 [23:42:46]RasterBufferAndPrint [23:42:46]line Счет N : (1)459225 [23:42:46]line ИНН: 02508201610067 [23:42:46]line Контрольно-Кассовый Чек [23:42:46]line ПРОДАЖА [23:42:46]line ТРК (МРК, ГНК) : 11 [23:42:46]line Товар: 2710194210 [23:42:46]line ДТ-К-5 [23:42:46]line 12.520 * 71.90 [23:42:46]line = 900.19 [23:42:46]line НДС 12% НСП 1% [23:42:46]line > о реализуемом товаре [23:42:46]line ОКРУГЛЕНИЕ: -0.19 [23:42:46]line ИТОГО: 900.00 [23:42:46]line Внесено: 900.00 [23:42:46]line СДАЧА: 0.00 [23:42:46]line НСП 1% : 7.97 [23:42:46]line НДС 12% : 95.59 [23:42:46]line Наличными: 900.00 [23:42:46]line Безнал.: 0.00 [23:42:46]line Место: АЗС № 72 "Партнер Нефть" [23:42:46]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [23:42:46]line СНО: Общий режим [23:42:46]line Чек 320 14.07.2024 23:42 [23:42:46]line Смена: 447 ФФД: 1.0 [23:42:46]line ЗНМ: 0300000160 [23:42:46]line РНМ: 0000000000090829 [23:42:46]line Версия ККМ: 001 [23:42:46]line ФМ: 0000000000874718 [23:42:46]line ФД: 165122 [23:42:46]line ФПД: 81873709074692 [23:42:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T234247&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165122&fm=81873709074692&tin=02508201610067®Number=0000000000090829&sum=90000 [23:42:46]OFD Sender: Processing packet 165122 [packets to send 106, broken 105] [23:42:46]ProducePacketName [23:42:46]name=ofd_packets/00165122 [23:42:46]OFD Sender: To server: pG, [23:42:46]CommunicateWithHost lk.salyk.kg:30040 [23:42:46]ConnectInit lk.salyk.kg [23:42:46]written 0, free lines is 4095 [23:42:46]Connected sock=10 [23:42:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 06 1E 04 01 8B DB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E8 30 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 A3 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 40 01 00 00 F4 03 04 00 77 62 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 02 85 02 00 35 04 06 00 4A 76 B5 58 89 04 2F 26 EB 6A 59 04 E5 BB [23:42:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 13 32 47 00 BD 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 02 85 02 00 F4 03 04 00 03 09 94 66 B6 04 01 00 00 CC 17 61 FC 31 2B DC EF [23:42:47]CommunicateWithHost err = 0 [23:42:47]CheckOFDResponse [23:42:47]1017 (14) - 77093643461234 [23:42:47]1041 (16) - 0000000000874718 [23:42:47]1040 (4) - 165122 [23:42:47]1012 (4) - 14.07.2024 17:21 [23:42:47]1206 (1) - 0 [23:42:47]OFD Sender: Remove packet 165122 [23:42:47]ProducePacketName [23:42:47]name=ofd_packets/00165122 [23:42:47]NVStorageDeleteData [23:42:47]Write to MH i2c: 01 00 00 8A 12 9C [23:42:47]Write i2c OK [23:42:47]MH_I2C_Read... [23:42:47]Read from MH i2c: 01 [23:42:47]MH_I2C_Read... [23:42:47]Read from MH i2c: 01 07 00 [23:42:47]MH_I2C_Read... [23:42:47]Read from MH i2c: 01 07 00 8A 12 00 00 00 00 00 F7 0C A6 [23:42:47]RasterBufferAndPrint [23:42:47]line [23:42:47]line [23:42:47]line [23:42:47]line [23:42:47]line [23:42:47]written 0, free lines is 3326 [23:42:47]MH_Cut [23:42:47]Write to MH i2c: D1 01 00 91 12 01 75 [23:42:47]Write i2c OK [23:42:47]MH_I2C_Read... [23:42:47]Read from MH i2c: D1 [23:42:47]MH_I2C_Read... [23:42:47]Read from MH i2c: D1 01 00 [23:42:47]MH_I2C_Read... [23:42:47]Read from MH i2c: D1 01 00 91 12 00 74 [23:42:47]Write to MH i2c: 01 00 00 92 12 A4 [23:42:47]Write i2c OK [23:42:47]MH_I2C_Read... [23:42:47]OFD Sender: No OFD packet to send [23:42:47]*** Cut start [23:42:47]*** Partial cut [23:42:47]*** CUTSNS_PIN = 1 [23:42:48]*** CUTSNS_PIN = 0 [23:42:48]*** Brake cut motor [23:42:48]Read from MH i2c: 01 [23:42:48]MH_I2C_Read... [23:42:48]*** Stop cut motor [23:42:48]*** Cut end [23:42:48]Read from MH i2c: 01 07 00 [23:42:48]MH_I2C_Read... [23:42:48]Read from MH i2c: 01 07 00 92 12 00 00 00 00 00 FF 0F B9 [23:42:48]process_action close_receipt done [23:42:48]requested_data is exist [23:42:48]produce_requested_data [23:42:48]requested_item fm.sn is exist - process it [23:42:48]wFMCommunicate request_size=4 [23:42:48]MH_SAM_APDU [23:42:48]CAPDU: 80 11 00 00 [23:42:48]Write to MH i2c: E2 08 00 93 12 80 11 00 00 00 00 00 00 1F [23:42:48]Write i2c OK [23:42:48]MH_I2C_Read... [23:42:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:42:48]Read from MH i2c: E2 [23:42:48]MH_I2C_Read... [23:42:48]Read from MH i2c: E2 17 00 [23:42:48]MH_I2C_Read... [23:42:48]Read from MH i2c: E2 17 00 93 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 75 [23:42:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:42:48]wFMCommunicate OK [23:42:48]requested_item fd.num is exist - process it [23:42:48]SAM_PROTO_GetFieldsCounters [23:42:48]wFMCommunicate request_size=4 [23:42:48]MH_SAM_APDU [23:42:48]CAPDU: 80 13 00 00 [23:42:48]Write to MH i2c: E2 08 00 94 12 80 13 00 00 00 00 00 00 22 [23:42:48]Write i2c OK [23:42:48]MH_I2C_Read... [23:42:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:42:48]Read from MH i2c: E2 [23:42:48]MH_I2C_Read... [23:42:48]Read from MH i2c: E2 62 00 [23:42:48]MH_I2C_Read... [23:42:48]Read from MH i2c: E2 62 00 94 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 02 85 02 00 0E 04 04 00 BF 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 55 [23:42:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 02 85 02 00 0E 04 04 00 BF 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 [23:42:48]wFMCommunicate OK [23:42:48]SAM_PROTO_GetFieldsCounters done [23:42:48]requested_item shift.num is exist - process it [23:42:48]requested_item shift.opened is exist - process it [23:42:48]req_shift_opened [23:42:48]FM_GetShiftState [23:42:48]SAM_PROTO_GetShiftState [23:42:48]wFMCommunicate request_size=4 [23:42:48]MH_SAM_APDU [23:42:48]CAPDU: 80 13 01 00 [23:42:48]Write to MH i2c: E2 08 00 95 12 80 13 01 00 00 00 00 00 24 [23:42:48]Write i2c OK [23:42:48]MH_I2C_Read... [23:42:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:42:48]Read from MH i2c: E2 [23:42:48]MH_I2C_Read... [23:42:48]Read from MH i2c: E2 0E 00 [23:42:48]MH_I2C_Read... [23:42:48]Read from MH i2c: E2 0E 00 95 12 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 A4 [23:42:48]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [23:42:48]wFMCommunicate OK [23:42:48]SAM_PROTO_GetShiftState done [23:42:48]FM_GetShiftState done [23:42:48]req_shift_opened done [23:42:48]requested_item shift.open_date is exist - process it [23:42:48]req_shift_open_date [23:42:48]req_shift_open_date done [23:42:48]produce_requested_data done [23:42:48]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165122,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [23:42:48]process_action_free close_receipt [23:42:48]json_value_free [23:42:48]json_value_free done [23:42:48]process_json_proto returns [23:42:48]Send response to host [23:42:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165122,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [23:42:48]free response buf [23:42:48]execute_script done [23:42:48]execute_script returns [23:42:48]free content buf [23:42:48]Sock 7.Close socket [23:42:48]Sock 7.Thread stoped [23:42:52]OFD Sender: No OFD packet to send [23:42:57]OFD Sender: No OFD packet to send [23:43:02]OFD Sender: No OFD packet to send [23:43:07]OFD Sender: No OFD packet to send [23:43:12]OFD Sender: No OFD packet to send [23:43:17]OFD Sender: No OFD packet to send [23:43:22]OFD Sender: No OFD packet to send [23:43:27]OFD Sender: No OFD packet to send [23:43:32]OFD Sender: No OFD packet to send [23:43:37]OFD Sender: No OFD packet to send [23:43:42]OFD Sender: No OFD packet to send [23:43:47]OFD Sender: No OFD packet to send [23:43:52]OFD Sender: No OFD packet to send [23:43:57]OFD Sender: No OFD packet to send [23:44:02]OFD Sender: No OFD packet to send [23:44:07]OFD Sender: No OFD packet to send [23:44:12]OFD Sender: No OFD packet to send [23:44:17]OFD Sender: No OFD packet to send [23:44:22]OFD Sender: No OFD packet to send [23:44:27]OFD Sender: No OFD packet to send [23:44:32]OFD Sender: No OFD packet to send [23:44:37]OFD Sender: No OFD packet to send [23:44:42]OFD Sender: No OFD packet to send [23:44:47]OFD Sender: No OFD packet to send [23:44:52]OFD Sender: No OFD packet to send [23:44:57]OFD Sender: No OFD packet to send [23:45:02]OFD Sender: No OFD packet to send [23:45:07]OFD Sender: No OFD packet to send [23:45:12]OFD Sender: No OFD packet to send [23:45:17]OFD Sender: No OFD packet to send [23:45:22]OFD Sender: No OFD packet to send [23:45:27]OFD Sender: No OFD packet to send [23:45:32]OFD Sender: No OFD packet to send [23:45:37]OFD Sender: No OFD packet to send [23:45:42]OFD Sender: No OFD packet to send [23:45:47]OFD Sender: No OFD packet to send [23:45:52]OFD Sender: No OFD packet to send [23:45:57]OFD Sender: No OFD packet to send [23:46:02]OFD Sender: No OFD packet to send [23:46:07]OFD Sender: No OFD packet to send [23:46:12]OFD Sender: No OFD packet to send [23:46:17]OFD Sender: No OFD packet to send [23:46:22]OFD Sender: No OFD packet to send [23:46:27]OFD Sender: No OFD packet to send [23:46:32]OFD Sender: No OFD packet to send [23:46:37]OFD Sender: No OFD packet to send [23:46:42]OFD Sender: No OFD packet to send [23:46:47]OFD Sender: No OFD packet to send [23:46:52]OFD Sender: No OFD packet to send [23:46:57]OFD Sender: No OFD packet to send [23:47:02]OFD Sender: No OFD packet to send [23:47:07]OFD Sender: No OFD packet to send [23:47:12]OFD Sender: No OFD packet to send [23:47:17]OFD Sender: No OFD packet to send [23:47:22]OFD Sender: No OFD packet to send [23:47:27]OFD Sender: No OFD packet to send [23:47:32]OFD Sender: No OFD packet to send [23:47:37]OFD Sender: No OFD packet to send [23:47:42]OFD Sender: No OFD packet to send [23:47:48]OFD Sender: No OFD packet to send [23:47:53]OFD Sender: No OFD packet to send [23:47:58]OFD Sender: No OFD packet to send [23:48:03]OFD Sender: No OFD packet to send [23:48:08]OFD Sender: No OFD packet to send [23:48:13]OFD Sender: No OFD packet to send [23:48:18]OFD Sender: No OFD packet to send [23:48:23]OFD Sender: No OFD packet to send [23:48:28]OFD Sender: No OFD packet to send [23:48:33]OFD Sender: No OFD packet to send [23:48:38]OFD Sender: No OFD packet to send [23:48:43]OFD Sender: No OFD packet to send [23:48:48]OFD Sender: No OFD packet to send [23:48:53]OFD Sender: No OFD packet to send [23:48:58]OFD Sender: No OFD packet to send [23:49:03]OFD Sender: No OFD packet to send [23:49:08]OFD Sender: No OFD packet to send [23:49:13]OFD Sender: No OFD packet to send [23:49:18]OFD Sender: No OFD packet to send [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]accept exits with 9 [23:49:38]New connection [23:49:38]New thread 3066928484 created [23:49:38]Thread 3066785124 joined [23:49:38]Waiting for new connection... [23:49:38] Sock 9.Parse request [23:49:38]Sock 9.Check first char [23:49:38]Sock 9.First char is OK [23:49:38]request: POST /json_proto HTTP/1.0 [23:49:38]Method: POST [23:49:38]URL: /json_proto [23:49:38]Method is POST - this is cgi request [23:49:38]url: /json_proto [23:49:38]query_string will be loaded in cgi processing [23:49:38]execute_cgi json_proto POST (null) [23:49:38]execute_cgi path=json_proto method=POST [23:49:38]POST find Content-Length [23:49:38]Host: 172.17.56.4:8080 [23:49:38]Content-Length: 677 [23:49:38]Content-Type: application/json [23:49:38] [23:49:38]POST finish read [23:49:38]Found Content-Length = 677 [23:49:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459226", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "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" ] } } [23:49:38]execute_script... [23:49: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)459226", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "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" ] } } [23:49:38]POST & json_proto [23:49:38]process_json_proto [23:49:38]json parsed OK: [23:49:38]protocol is kg_v1.0 [23:49:38]action value=close_receipt [23:49:38]process_action close_receipt [23:49:38]cmd_close_receipt [23:49:38]MH_GetDate [23:49:38]Write to MH i2c: F0 00 00 96 12 97 [23:49:38]Write i2c OK [23:49:38]MH_I2C_Read... [23:49:38]Read from MH i2c: F0 [23:49:38]MH_I2C_Read... [23:49:38]Read from MH i2c: F0 09 00 [23:49:38]MH_I2C_Read... [23:49:38]Read from MH i2c: F0 09 00 96 12 00 14 64 94 66 C9 DC B2 64 CD [23:49:38]GetLastDocTimeStamp 1721000567 [23:49:38]current date 1721000980 [23:49:38]FM_GetShiftState [23:49:38]SAM_PROTO_GetShiftState [23:49:38]wFMCommunicate request_size=4 [23:49:38]MH_SAM_APDU [23:49:38]CAPDU: 80 13 01 00 [23:49:38]Write to MH i2c: E2 08 00 97 12 80 13 01 00 00 00 00 00 26 [23:49:38]Write i2c OK [23:49:38]MH_I2C_Read... [23:49:38]OFD Sender: No OFD packet to send [23:49:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:49:38]Read from MH i2c: E2 [23:49:38]MH_I2C_Read... [23:49:38]Read from MH i2c: E2 0E 00 [23:49:38]MH_I2C_Read... [23:49:38]Read from MH i2c: E2 0E 00 97 12 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 A6 [23:49:38]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [23:49:38]wFMCommunicate OK [23:49:38]SAM_PROTO_GetShiftState done [23:49:38]FM_GetShiftState done [23:49:38]opened in 1720917342 [23:49:38]opened+sec_in_day 1721003742 [23:49:38]quantity*price = 20003 [23:49:38]sum+1 = 20004 [23:49:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 321 14.07.2024 23:49 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165123 ФПД: 216056112655490 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T234940&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165123&fm=216056112655490&tin=02508201610067®Number=0000000000090829&sum=20000 [23:49:39]StoreToDocumentArchive [23:49:39]shift 447 fd 165123 [23:49:39]save to /storage/0447/doc_00165123 [23:49:39]save last doc name /storage/0447/doc_00165123 to /storage/kkm_last_doc_name [23:49:39]save OK [23:49:39]Clear old archive folders... [23:49:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:49:39]tlvbuf is B6EA2210 [23:49:39]SAM_PROTO_ClearQueue [23:49:39]wFMCommunicate request_size=4 [23:49:39]MH_SAM_APDU [23:49:39]CAPDU: 80 09 00 00 [23:49:39]Write to MH i2c: E2 08 00 A4 12 80 09 00 00 00 00 00 00 28 [23:49:39]Write i2c OK [23:49:39]MH_I2C_Read... [23:49:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:49:39]Read from MH i2c: E2 [23:49:39]MH_I2C_Read... [23:49:39]Read from MH i2c: E2 03 00 [23:49:39]MH_I2C_Read... [23:49:39]Read from MH i2c: E2 03 00 A4 12 00 90 00 2A [23:49:39]RAPDU: 90 00 [23:49:39]wFMCommunicate OK [23:49:39]SAM_PROTO_ClearQueue done [23:49:39]KKMCreateOFDPacket [23:49:39]OFDProtocolAddRootSTLVToBuf [23:49:39]FM_MakeSignedData [23:49:39]FM_MakeSignedData [23:49:39]SAM_PROTO_SignData [23:49:39]wFMCommunicate request_size=4 [23:49:39]MH_SAM_APDU [23:49:39]CAPDU: 80 0D 01 02 [23:49:39]Write to MH i2c: E2 08 00 A5 12 80 0D 01 02 00 00 00 00 30 [23:49:39]Write i2c OK [23:49:39]MH_I2C_Read... [23:49:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:49:39]Read from MH i2c: E2 [23:49:39]MH_I2C_Read... [23:49:39]Read from MH i2c: E2 03 00 [23:49:39]MH_I2C_Read... [23:49:39]Read from MH i2c: E2 03 00 A5 12 00 90 00 2B [23:49:39]RAPDU: 90 00 [23:49:39]wFMCommunicate OK [23:49:39]wFMCommunicate request_size=255 [23:49:39]MH_SAM_APDU [23:49:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 41 01 00 00 F4 03 04 00 14 64 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 03 85 02 00 35 04 06 00 C4 [23:49:39]Write to MH i2c: E2 02 01 A6 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 41 01 00 00 F4 03 04 00 14 64 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 03 85 02 00 35 04 06 00 C4 00 00 0C [23:49:39]Write i2c OK [23:49:39]MH_I2C_Read... [23:49:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:49:39]Read from MH i2c: E2 [23:49:39]MH_I2C_Read... [23:49:39]Read from MH i2c: E2 03 00 [23:49:39]MH_I2C_Read... [23:49:39]Read from MH i2c: E2 03 00 A6 12 00 90 00 2C [23:49:39]RAPDU: 90 00 [23:49:39]wFMCommunicate OK [23:49:39]wFMCommunicate request_size=10 [23:49:39]MH_SAM_APDU [23:49:39]CAPDU: 80 0D 02 02 05 80 7B D8 AC 82 [23:49:39]Write to MH i2c: E2 0D 00 A7 12 80 0D 02 02 05 00 80 7B D8 AC 82 00 00 3E [23:49:39]Write i2c OK [23:49:39]MH_I2C_Read... [23:49:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:49:39]Read from MH i2c: E2 [23:49:39]MH_I2C_Read... [23:49:39]Read from MH i2c: E2 03 00 [23:49:39]MH_I2C_Read... [23:49:39]Read from MH i2c: E2 03 00 A7 12 00 90 00 2D [23:49:39]RAPDU: 90 00 [23:49:39]wFMCommunicate OK [23:49:39]wFMCommunicate request_size=4 [23:49:39]MH_SAM_APDU [23:49:39]CAPDU: 80 0D 03 02 [23:49:39]Write to MH i2c: E2 08 00 A8 12 80 0D 03 02 00 00 00 00 35 [23:49:39]Write i2c OK [23:49:39]MH_I2C_Read... [23:49:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:49:39]Read from MH i2c: E2 [23:49:39]MH_I2C_Read... [23:49:39]Read from MH i2c: E2 0B 00 [23:49:39]MH_I2C_Read... [23:49:39]Read from MH i2c: E2 0B 00 A8 12 00 0C 39 C9 79 58 EF F7 23 90 00 1E [23:49:39]RAPDU: 0C 39 C9 79 58 EF F7 23 90 00 [23:49:39]wFMCommunicate OK [23:49:39]SAM_PROTO_SignData done [23:49:39]FM_MakeSignedData done [23:49:39]CreateOFDProtocolMessage [23:49:39]wFMCommunicate request_size=4 [23:49:39]MH_SAM_APDU [23:49:39]CAPDU: 80 11 00 00 [23:49:39]Write to MH i2c: E2 08 00 A9 12 80 11 00 00 00 00 00 00 35 [23:49:39]Write i2c OK [23:49:39]MH_I2C_Read... [23:49:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:49:39]Read from MH i2c: E2 [23:49:39]MH_I2C_Read... [23:49:39]Read from MH i2c: E2 17 00 [23:49:39]MH_I2C_Read... [23:49:39]Read from MH i2c: E2 17 00 A9 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 8B [23:49:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:49:39]wFMCommunicate OK [23:49:39]CreateOFDProtocolMessage done [23:49:39]OFDSenderStorePacket 165123 [23:49:39]StoreOFDPacket docnum=165123 [23:49:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 17 39 07 01 43 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 41 01 00 00 F4 03 04 00 14 64 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 03 85 02 00 35 04 06 00 C4 80 7B D8 AC 82 0C 39 C9 79 58 EF F7 23 [23:49:39]CheckFolder [23:49:39]dirname=/storage/ofd_packets [23:49:39]CheckFolder done [23:49:39]ProducePacketName [23:49:39]name=ofd_packets/00165123 [23:49:39]NVStorageSaveData ofd_packets/00165123 [23:49:39]File name is /storage/ofd_packets/00165123 [23:49:39]Write 301 bytes [23:49:39]NVStorageSaveData done [23:49:39]OFDSenderStorePacket done [23:49:39]KKMCreateOFDPacket done [23:49:39]NVStorageSaveData kkm_last_timestamp [23:49:39]File name is /storage/kkm_last_timestamp [23:49:39]Write 4 bytes [23:49:39]NVStorageSaveData done [23:49:39]ExternCall_PrintAddStr [23:49:39]wPrintStart [23:49:39]Write to MH i2c: 01 00 00 AA 12 BC [23:49:39]Write i2c OK [23:49:39]MH_I2C_Read... [23:49:39]Read from MH i2c: 01 [23:49:39]MH_I2C_Read... [23:49:39]Read from MH i2c: 01 07 00 [23:49:39]MH_I2C_Read... [23:49:39]Read from MH i2c: 01 07 00 AA 12 00 00 00 00 00 FF 0F D1 [23:49:39]RasterBufferAndPrint [23:49:39]line Счет N : (1)459226 [23:49:39]line ИНН: 02508201610067 [23:49:39]line Контрольно-Кассовый Чек [23:49:39]line ПРОДАЖА [23:49:39]line ТРК (МРК, ГНК) : 12 [23:49:39]line Товар: 2710124130 [23:49:39]line Аи-92-К-5 [23:49:39]line 3.040 * 65.80 [23:49:39]line = 200.03 [23:49:39]line НДС 12% НСП 1% [23:49:39]line > о реализуемом товаре [23:49:39]line ОКРУГЛЕНИЕ: -0.03 [23:49:39]line ИТОГО: 200.00 [23:49:39]line Внесено: 200.00 [23:49:39]line СДАЧА: 0.00 [23:49:39]line НСП 1% : 1.77 [23:49:39]line НДС 12% : 21.24 [23:49:39]line Наличными: 200.00 [23:49:39]line Безнал.: 0.00 [23:49:39]line Место: АЗС № 72 "Партнер Нефть" [23:49:39]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [23:49:39]line СНО: Общий режим [23:49:39]line Чек 321 14.07.2024 23:49 [23:49:39]line Смена: 447 ФФД: 1.0 [23:49:39]line ЗНМ: 0300000160 [23:49:39]line РНМ: 0000000000090829 [23:49:39]line Версия ККМ: 001 [23:49:39]line ФМ: 0000000000874718 [23:49:39]line ФД: 165123 [23:49:39]line ФПД: 216056112655490 [23:49:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T234940&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165123&fm=216056112655490&tin=02508201610067®Number=0000000000090829&sum=20000 [23:49:40]OFD Sender: Processing packet 165123 [packets to send 106, broken 105] [23:49:40]ProducePacketName [23:49:40]name=ofd_packets/00165123 [23:49:40]OFD Sender: To server: pG, [23:49:40]CommunicateWithHost lk.salyk.kg:30040 [23:49:40]ConnectInit lk.salyk.kg [23:49:40]written 0, free lines is 4095 [23:49:40]Connected sock=10 [23:49:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 17 39 07 01 43 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 41 01 00 00 F4 03 04 00 14 64 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 03 85 02 00 35 04 06 00 C4 80 7B D8 AC 82 0C 39 C9 79 58 EF F7 23 [23:49:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 B0 E6 47 00 04 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 03 85 02 00 F4 03 04 00 A0 0A 94 66 B6 04 01 00 00 7E 40 0F 98 70 2E 8C ED [23:49:40]CommunicateWithHost err = 0 [23:49:40]CheckOFDResponse [23:49:40]1017 (14) - 77093643461234 [23:49:40]1041 (16) - 0000000000874718 [23:49:40]1040 (4) - 165123 [23:49:40]1012 (4) - 14.07.2024 17:28 [23:49:40]1206 (1) - 0 [23:49:40]OFD Sender: Remove packet 165123 [23:49:40]ProducePacketName [23:49:40]name=ofd_packets/00165123 [23:49:40]NVStorageDeleteData [23:49:40]Write to MH i2c: 01 00 00 D4 12 E6 [23:49:40]Write i2c OK [23:49:40]MH_I2C_Read... [23:49:40]Read from MH i2c: 01 [23:49:40]MH_I2C_Read... [23:49:40]Read from MH i2c: 01 07 00 [23:49:40]MH_I2C_Read... [23:49:40]Read from MH i2c: 01 07 00 D4 12 00 00 00 00 00 FA 0C F3 [23:49:40]RasterBufferAndPrint [23:49:40]line [23:49:40]line [23:49:40]line [23:49:40]line [23:49:40]line [23:49:40]written 0, free lines is 3328 [23:49:40]MH_Cut [23:49:40]Write to MH i2c: D1 01 00 DB 12 01 BF [23:49:40]Write i2c OK [23:49:40]MH_I2C_Read... [23:49:40]Read from MH i2c: D1 [23:49:40]MH_I2C_Read... [23:49:40]Read from MH i2c: D1 01 00 [23:49:40]MH_I2C_Read... [23:49:40]Read from MH i2c: D1 01 00 DB 12 00 BE [23:49:40]Write to MH i2c: 01 00 00 DC 12 EE [23:49:40]Write i2c OK [23:49:40]MH_I2C_Read... [23:49:40]OFD Sender: No OFD packet to send [23:49:41]*** Cut start [23:49:41]*** Partial cut [23:49:41]*** CUTSNS_PIN = 1 [23:49:41]*** CUTSNS_PIN = 0 [23:49:41]*** Brake cut motor [23:49:41]Read from MH i2c: 01 [23:49:41]MH_I2C_Read... [23:49:41]*** Stop cut motor [23:49:41]*** Cut end [23:49:41]Read from MH i2c: 01 07 00 [23:49:41]MH_I2C_Read... [23:49:41]Read from MH i2c: 01 07 00 DC 12 00 00 00 00 00 FF 0F 03 [23:49:41]process_action close_receipt done [23:49:41]requested_data is exist [23:49:41]produce_requested_data [23:49:41]requested_item fm.sn is exist - process it [23:49:41]wFMCommunicate request_size=4 [23:49:41]MH_SAM_APDU [23:49:41]CAPDU: 80 11 00 00 [23:49:41]Write to MH i2c: E2 08 00 DD 12 80 11 00 00 00 00 00 00 69 [23:49:41]Write i2c OK [23:49:41]MH_I2C_Read... [23:49:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:49:41]Read from MH i2c: E2 [23:49:41]MH_I2C_Read... [23:49:41]Read from MH i2c: E2 17 00 [23:49:41]MH_I2C_Read... [23:49:41]Read from MH i2c: E2 17 00 DD 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 BF [23:49:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:49:41]wFMCommunicate OK [23:49:41]requested_item fd.num is exist - process it [23:49:41]SAM_PROTO_GetFieldsCounters [23:49:41]wFMCommunicate request_size=4 [23:49:41]MH_SAM_APDU [23:49:41]CAPDU: 80 13 00 00 [23:49:41]Write to MH i2c: E2 08 00 DE 12 80 13 00 00 00 00 00 00 6C [23:49:41]Write i2c OK [23:49:41]MH_I2C_Read... [23:49:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:49:42]Read from MH i2c: E2 [23:49:42]MH_I2C_Read... [23:49:42]Read from MH i2c: E2 62 00 [23:49:42]MH_I2C_Read... [23:49:42]Read from MH i2c: E2 62 00 DE 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 03 85 02 00 0E 04 04 00 BF 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 A3 [23:49:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 03 85 02 00 0E 04 04 00 BF 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 [23:49:42]wFMCommunicate OK [23:49:42]SAM_PROTO_GetFieldsCounters done [23:49:42]requested_item shift.num is exist - process it [23:49:42]requested_item shift.opened is exist - process it [23:49:42]req_shift_opened [23:49:42]FM_GetShiftState [23:49:42]SAM_PROTO_GetShiftState [23:49:42]wFMCommunicate request_size=4 [23:49:42]MH_SAM_APDU [23:49:42]CAPDU: 80 13 01 00 [23:49:42]Write to MH i2c: E2 08 00 DF 12 80 13 01 00 00 00 00 00 6E [23:49:42]Write i2c OK [23:49:42]MH_I2C_Read... [23:49:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:49:42]Read from MH i2c: E2 [23:49:42]MH_I2C_Read... [23:49:42]Read from MH i2c: E2 0E 00 [23:49:42]MH_I2C_Read... [23:49:42]Read from MH i2c: E2 0E 00 DF 12 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 EE [23:49:42]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [23:49:42]wFMCommunicate OK [23:49:42]SAM_PROTO_GetShiftState done [23:49:42]FM_GetShiftState done [23:49:42]req_shift_opened done [23:49:42]requested_item shift.open_date is exist - process it [23:49:42]req_shift_open_date [23:49:42]req_shift_open_date done [23:49:42]produce_requested_data done [23:49:42]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165123,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [23:49:42]process_action_free close_receipt [23:49:42]json_value_free [23:49:42]json_value_free done [23:49:42]process_json_proto returns [23:49:42]Send response to host [23:49:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165123,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [23:49:42]free response buf [23:49:42]execute_script done [23:49:42]execute_script returns [23:49:42]free content buf [23:49:42]Sock 9.Close socket [23:49:42]Sock 9.Thread stoped [23:49:45]OFD Sender: No OFD packet to send [23:49:50]OFD Sender: No OFD packet to send [23:49:55]OFD Sender: No OFD packet to send [23:50:00]OFD Sender: No OFD packet to send [23:50:05]OFD Sender: No OFD packet to send [23:50:10]OFD Sender: No OFD packet to send [23:50:15]OFD Sender: No OFD packet to send [23:50:20]OFD Sender: No OFD packet to send [23:50:25]OFD Sender: No OFD packet to send [23:50:30]OFD Sender: No OFD packet to send [23:50:35]OFD Sender: No OFD packet to send [23:50:40]OFD Sender: No OFD packet to send [23:50:45]OFD Sender: No OFD packet to send [23:50:51]OFD Sender: No OFD packet to send [23:50:56]OFD Sender: No OFD packet to send [23:51:01]OFD Sender: No OFD packet to send [23:51:06]OFD Sender: No OFD packet to send [23:51:11]OFD Sender: No OFD packet to send [23:51:16]OFD Sender: No OFD packet to send [23:51:21]OFD Sender: No OFD packet to send [23:51:26]OFD Sender: No OFD packet to send [23:51:31]OFD Sender: No OFD packet to send [23:51:36]OFD Sender: No OFD packet to send [23:51:41]OFD Sender: No OFD packet to send [23:51:46]OFD Sender: No OFD packet to send [23:51:51]OFD Sender: No OFD packet to send [23:51:56]OFD Sender: No OFD packet to send [23:52:01]OFD Sender: No OFD packet to send [23:52:06]OFD Sender: No OFD packet to send [23:52:11]OFD Sender: No OFD packet to send [23:52:16]OFD Sender: No OFD packet to send [23:52:21]OFD Sender: No OFD packet to send [23:52:26]OFD Sender: No OFD packet to send [23:52:31]OFD Sender: No OFD packet to send [23:52:36]OFD Sender: No OFD packet to send [23:52:41]OFD Sender: No OFD packet to send [23:52:46]OFD Sender: No OFD packet to send [23:52:51]OFD Sender: No OFD packet to send [23:52:56]OFD Sender: No OFD packet to send [23:53:01]OFD Sender: No OFD packet to send [23:53:06]OFD Sender: No OFD packet to send [23:53:11]OFD Sender: No OFD packet to send [23:53:16]OFD Sender: No OFD packet to send [23:53:21]OFD Sender: No OFD packet to send [23:53:26]OFD Sender: No OFD packet to send [23:53:31]OFD Sender: No OFD packet to send [23:53:36]OFD Sender: No OFD packet to send [23:53:41]OFD Sender: No OFD packet to send [23:53:46]OFD Sender: No OFD packet to send [23:53:51]OFD Sender: No OFD packet to send [23:53:56]OFD Sender: No OFD packet to send [23:54:01]OFD Sender: No OFD packet to send [23:54:06]OFD Sender: No OFD packet to send [23:54:11]OFD Sender: No OFD packet to send [23:54:16]OFD Sender: No OFD packet to send [23:54:21]OFD Sender: No OFD packet to send [23:54:26]OFD Sender: No OFD packet to send [23:54:31]OFD Sender: No OFD packet to send [23:54:36]OFD Sender: No OFD packet to send [23:54:41]OFD Sender: No OFD packet to send [23:54:46]OFD Sender: No OFD packet to send [23:54:51]OFD Sender: No OFD packet to send [23:54:56]OFD Sender: No OFD packet to send [23:55:01]OFD Sender: No OFD packet to send [23:55:06]OFD Sender: No OFD packet to send [23:55:11]OFD Sender: No OFD packet to send [23:55:16]OFD Sender: No OFD packet to send [23:55:21]OFD Sender: No OFD packet to send [23:55:26]OFD Sender: No OFD packet to send [23:55:31]OFD Sender: No OFD packet to send [23:55:36]OFD Sender: No OFD packet to send [23:55:41]OFD Sender: No OFD packet to send [23:55:46]OFD Sender: No OFD packet to send [23:55:51]OFD Sender: No OFD packet to send [23:55:56]OFD Sender: No OFD packet to send [23:56:01]OFD Sender: No OFD packet to send [23:56:06]OFD Sender: No OFD packet to send [23:56:11]OFD Sender: No OFD packet to send [23:56:16]OFD Sender: No OFD packet to send [23:56:21]OFD Sender: No OFD packet to send [23:56:26]OFD Sender: No OFD packet to send [23:56:31]OFD Sender: No OFD packet to send [23:56:36]OFD Sender: No OFD packet to send [23:56:41]OFD Sender: No OFD packet to send [23:56:46]OFD Sender: No OFD packet to send [23:56:51]OFD Sender: No OFD packet to send [23:56:56]OFD Sender: No OFD packet to send [23:57:01]OFD Sender: No OFD packet to send [23:57:06]OFD Sender: No OFD packet to send [23:57:11]OFD Sender: No OFD packet to send [23:57:16]OFD Sender: No OFD packet to send [23:57:21]OFD Sender: No OFD packet to send [23:57:26]OFD Sender: No OFD packet to send [23:57:31]OFD Sender: No OFD packet to send [23:57:36]OFD Sender: No OFD packet to send [23:57:41]OFD Sender: No OFD packet to send [23:57:46]OFD Sender: No OFD packet to send [23:57:51]OFD Sender: No OFD packet to send [23:57:56]OFD Sender: No OFD packet to send [23:58:01]OFD Sender: No OFD packet to send [23:58:06]OFD Sender: No OFD packet to send [23:58:11]OFD Sender: No OFD packet to send [23:58:16]OFD Sender: No OFD packet to send [23:58:21]OFD Sender: No OFD packet to send [23:58:26]OFD Sender: No OFD packet to send [23:58:31]OFD Sender: No OFD packet to send [23:58:36]OFD Sender: No OFD packet to send [23:58:41]OFD Sender: No OFD packet to send [23:58:46]OFD Sender: No OFD packet to send [23:58:51]OFD Sender: No OFD packet to send [23:58:56]OFD Sender: No OFD packet to send [23:59:01]OFD Sender: No OFD packet to send [23:59:06]OFD Sender: No OFD packet to send [23:59:11]OFD Sender: No OFD packet to send [23:59:16]OFD Sender: No OFD packet to send [23:59:21]OFD Sender: No OFD packet to send [23:59:26]OFD Sender: No OFD packet to send [23:59:31]OFD Sender: No OFD packet to send [23:59:36]OFD Sender: No OFD packet to send [23:59:41]OFD Sender: No OFD packet to send [23:59:46]OFD Sender: No OFD packet to send [23:59:51]OFD Sender: No OFD packet to send [23:59:56]OFD Sender: No OFD packet to send [00:00:01]OFD Sender: No OFD packet to send [00:00:06]OFD Sender: No OFD packet to send [00:00:11]OFD Sender: No OFD packet to send [00:00:16]OFD Sender: No OFD packet to send [00:00:21]OFD Sender: No OFD packet to send [00:00:26]OFD Sender: No OFD packet to send [00:00:31]OFD Sender: No OFD packet to send [00:00:36]OFD Sender: No OFD packet to send [00:00:41]OFD Sender: No OFD packet to send [00:00:46]OFD Sender: No OFD packet to send [00:00:51]OFD Sender: No OFD packet to send [00:00:56]OFD Sender: No OFD packet to send [00:01:01]OFD Sender: No OFD packet to send [00:01:06]OFD Sender: No OFD packet to send [00:01:11]OFD Sender: No OFD packet to send [00:01:16]OFD Sender: No OFD packet to send [00:01:21]OFD Sender: No OFD packet to send [00:01:26]OFD Sender: No OFD packet to send [00:01:31]OFD Sender: No OFD packet to send [00:01:36]OFD Sender: No OFD packet to send [00:01:41]OFD Sender: No OFD packet to send [00:01:46]OFD Sender: No OFD packet to send [00:01:51]OFD Sender: No OFD packet to send [00:01:56]OFD Sender: No OFD packet to send [00:02:01]OFD Sender: No OFD packet to send [00:02:06]OFD Sender: No OFD packet to send [00:02:11]OFD Sender: No OFD packet to send [00:02:16]OFD Sender: No OFD packet to send [00:02:21]OFD Sender: No OFD packet to send [00:02:26]OFD Sender: No OFD packet to send [00:02:31]OFD Sender: No OFD packet to send [00:02:36]OFD Sender: No OFD packet to send [00:02:41]OFD Sender: No OFD packet to send [00:02:46]OFD Sender: No OFD packet to send [00:02:51]OFD Sender: No OFD packet to send [00:02:56]OFD Sender: No OFD packet to send [00:03:01]OFD Sender: No OFD packet to send [00:03:06]OFD Sender: No OFD packet to send [00:03:11]OFD Sender: No OFD packet to send [00:03:16]OFD Sender: No OFD packet to send [00:03:21]OFD Sender: No OFD packet to send [00:03:26]OFD Sender: No OFD packet to send [00:03:31]OFD Sender: No OFD packet to send [00:03:36]OFD Sender: No OFD packet to send [00:03:41]OFD Sender: No OFD packet to send [00:03:46]OFD Sender: No OFD packet to send [00:03:51]OFD Sender: No OFD packet to send [00:03:56]OFD Sender: No OFD packet to send [00:04:01]OFD Sender: No OFD packet to send [00:04:06]OFD Sender: No OFD packet to send [00:04:11]OFD Sender: No OFD packet to send [00:04:16]OFD Sender: No OFD packet to send [00:04:21]OFD Sender: No OFD packet to send [00:04:26]OFD Sender: No OFD packet to send [00:04:31]OFD Sender: No OFD packet to send [00:04:36]OFD Sender: No OFD packet to send [00:04:41]OFD Sender: No OFD packet to send [00:04:46]OFD Sender: No OFD packet to send [00:04:51]OFD Sender: No OFD packet to send [00:04:56]OFD Sender: No OFD packet to send [00:05:01]OFD Sender: No OFD packet to send [00:05:06]OFD Sender: No OFD packet to send [00:05:11]OFD Sender: No OFD packet to send [00:05:16]OFD Sender: No OFD packet to send [00:05:21]OFD Sender: No OFD packet to send [00:05:26]OFD Sender: No OFD packet to send [00:05:31]OFD Sender: No OFD packet to send [00:05:36]OFD Sender: No OFD packet to send [00:05:41]OFD Sender: No OFD packet to send [00:05:46]OFD Sender: No OFD packet to send [00:05:51]OFD Sender: No OFD packet to send [00:05:56]OFD Sender: No OFD packet to send [00:06:02]OFD Sender: No OFD packet to send [00:06:07]OFD Sender: No OFD packet to send [00:06:12]OFD Sender: No OFD packet to send [00:06:17]OFD Sender: No OFD packet to send [00:06:22]OFD Sender: No OFD packet to send [00:06:27]OFD Sender: No OFD packet to send [00:06:32]OFD Sender: No OFD packet to send [00:06:37]OFD Sender: No OFD packet to send [00:06:42]OFD Sender: No OFD packet to send [00:06:47]OFD Sender: No OFD packet to send [00:06:52]OFD Sender: No OFD packet to send [00:06:57]OFD Sender: No OFD packet to send [00:07:02]OFD Sender: No OFD packet to send [00:07:07]OFD Sender: No OFD packet to send [00:07:12]OFD Sender: No OFD packet to send [00:07:17]OFD Sender: No OFD packet to send [00:07:22]OFD Sender: No OFD packet to send [00:07:27]OFD Sender: No OFD packet to send [00:07:32]OFD Sender: No OFD packet to send [00:07:37]OFD Sender: No OFD packet to send [00:07:42]OFD Sender: No OFD packet to send [00:07:47]OFD Sender: No OFD packet to send [00:07:52]OFD Sender: No OFD packet to send [00:07:57]OFD Sender: No OFD packet to send [00:08:02]OFD Sender: No OFD packet to send [00:08:07]OFD Sender: No OFD packet to send [00:08:12]OFD Sender: No OFD packet to send [00:08:17]OFD Sender: No OFD packet to send [00:08:22]OFD Sender: No OFD packet to send [00:08:27]OFD Sender: No OFD packet to send [00:08:32]OFD Sender: No OFD packet to send [00:08:37]OFD Sender: No OFD packet to send [00:08:42]OFD Sender: No OFD packet to send [00:08:47]OFD Sender: No OFD packet to send [00:08:52]OFD Sender: No OFD packet to send [00:08:57]OFD Sender: No OFD packet to send [00:09:02]OFD Sender: No OFD packet to send [00:09:07]OFD Sender: No OFD packet to send [00:09:12]OFD Sender: No OFD packet to send [00:09:17]OFD Sender: No OFD packet to send [00:09:22]OFD Sender: No OFD packet to send [00:09:27]OFD Sender: No OFD packet to send [00:09:32]OFD Sender: No OFD packet to send [00:09:37]OFD Sender: No OFD packet to send [00:09:42]OFD Sender: No OFD packet to send [00:09:47]OFD Sender: No OFD packet to send [00:09:48]accept exits with 7 [00:09:48]New connection [00:09:48]New thread 3066785124 created [00:09:48]Thread 3066928484 joined [00:09:48]Waiting for new connection... [00:09:48] Sock 7.Parse request [00:09:48]Sock 7.Check first char [00:09:48]Sock 7.First char is OK [00:09:48]request: POST /json_proto HTTP/1.0 [00:09:48]Method: POST [00:09:48]URL: /json_proto [00:09:48]Method is POST - this is cgi request [00:09:48]url: /json_proto [00:09:48]query_string will be loaded in cgi processing [00:09:48]execute_cgi json_proto POST (null) [00:09:48]execute_cgi path=json_proto method=POST [00:09:48]POST find Content-Length [00:09:48]Host: 172.17.56.4:8080 [00:09:48]Content-Length: 677 [00:09:48]Content-Type: application/json [00:09:48] [00:09:48]POST finish read [00:09:48]Found Content-Length = 677 [00:09:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459227", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 2.000, "sum" : 131.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 131.00, "total" : 131.00, "payments": [ { "type": 0, "sum" : 131.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:09:48]execute_script... [00:09: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)459227", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 2.000, "sum" : 131.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 131.00, "total" : 131.00, "payments": [ { "type": 0, "sum" : 131.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:09:48]POST & json_proto [00:09:48]process_json_proto [00:09:48]json parsed OK: [00:09:48]protocol is kg_v1.0 [00:09:48]action value=close_receipt [00:09:48]process_action close_receipt [00:09:48]cmd_close_receipt [00:09:48]MH_GetDate [00:09:48]Write to MH i2c: F0 00 00 E0 12 E1 [00:09:48]Write i2c OK [00:09:48]MH_I2C_Read... [00:09:48]Read from MH i2c: F0 [00:09:48]MH_I2C_Read... [00:09:48]Read from MH i2c: F0 09 00 [00:09:48]MH_I2C_Read... [00:09:48]Read from MH i2c: F0 09 00 E0 12 00 CE 68 94 66 C9 DC B2 64 D5 [00:09:48]GetLastDocTimeStamp 1721000980 [00:09:48]current date 1721002190 [00:09:48]FM_GetShiftState [00:09:48]SAM_PROTO_GetShiftState [00:09:48]wFMCommunicate request_size=4 [00:09:48]MH_SAM_APDU [00:09:48]CAPDU: 80 13 01 00 [00:09:48]Write to MH i2c: E2 08 00 E1 12 80 13 01 00 00 00 00 00 70 [00:09:48]Write i2c OK [00:09:48]MH_I2C_Read... [00:09:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:09:48]Read from MH i2c: E2 [00:09:48]MH_I2C_Read... [00:09:48]Read from MH i2c: E2 0E 00 [00:09:48]MH_I2C_Read... [00:09:48]Read from MH i2c: E2 0E 00 E1 12 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 F0 [00:09:48]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [00:09:48]wFMCommunicate OK [00:09:48]SAM_PROTO_GetShiftState done [00:09:48]FM_GetShiftState done [00:09:48]opened in 1720917342 [00:09:48]opened+sec_in_day 1721003742 [00:09:48]quantity*price = 13160 [00:09:48]sum+1 = 13161 [00:09:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 131.00 Внесено: 131.00 СДАЧА: 0.00 НСП 1% : 1.16 НДС 12% : 13.97 Наличными: 131.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 322 15.07.2024 00:09 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165124 ФПД: 108265648915825 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T000950&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165124&fm=108265648915825&tin=02508201610067®Number=0000000000090829&sum=13100 [00:09:49]StoreToDocumentArchive [00:09:49]shift 447 fd 165124 [00:09:49]save to /storage/0447/doc_00165124 [00:09:49]save last doc name /storage/0447/doc_00165124 to /storage/kkm_last_doc_name [00:09:49]save OK [00:09:49]Clear old archive folders... [00:09:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:09:49]tlvbuf is 013A7E80 [00:09:49]SAM_PROTO_ClearQueue [00:09:49]wFMCommunicate request_size=4 [00:09:49]MH_SAM_APDU [00:09:49]CAPDU: 80 09 00 00 [00:09:49]Write to MH i2c: E2 08 00 EE 12 80 09 00 00 00 00 00 00 72 [00:09:49]Write i2c OK [00:09:49]MH_I2C_Read... [00:09:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:09:49]Read from MH i2c: E2 [00:09:49]MH_I2C_Read... [00:09:49]Read from MH i2c: E2 03 00 [00:09:49]MH_I2C_Read... [00:09:49]Read from MH i2c: E2 03 00 EE 12 00 90 00 74 [00:09:49]RAPDU: 90 00 [00:09:49]wFMCommunicate OK [00:09:49]SAM_PROTO_ClearQueue done [00:09:49]KKMCreateOFDPacket [00:09:49]OFDProtocolAddRootSTLVToBuf [00:09:49]FM_MakeSignedData [00:09:49]FM_MakeSignedData [00:09:49]SAM_PROTO_SignData [00:09:49]wFMCommunicate request_size=4 [00:09:49]MH_SAM_APDU [00:09:49]CAPDU: 80 0D 01 02 [00:09:49]Write to MH i2c: E2 08 00 EF 12 80 0D 01 02 00 00 00 00 7A [00:09:49]Write i2c OK [00:09:49]MH_I2C_Read... [00:09:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:09:49]Read from MH i2c: E2 [00:09:49]MH_I2C_Read... [00:09:49]Read from MH i2c: E2 03 00 [00:09:49]MH_I2C_Read... [00:09:49]Read from MH i2c: E2 03 00 EF 12 00 90 00 75 [00:09:49]RAPDU: 90 00 [00:09:49]wFMCommunicate OK [00:09:49]wFMCommunicate request_size=255 [00:09:49]MH_SAM_APDU [00:09:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 68 33 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 05 00 00 00 00 07 04 06 00 2C 33 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 CE 68 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 04 85 02 00 35 04 06 00 62 [00:09:49]Write to MH i2c: E2 02 01 F0 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 68 33 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 05 00 00 00 00 07 04 06 00 2C 33 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 CE 68 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 04 85 02 00 35 04 06 00 62 00 00 95 [00:09:49]Write i2c OK [00:09:49]MH_I2C_Read... [00:09:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:09:49]Read from MH i2c: E2 [00:09:49]MH_I2C_Read... [00:09:49]Read from MH i2c: E2 03 00 [00:09:49]MH_I2C_Read... [00:09:49]Read from MH i2c: E2 03 00 F0 12 00 90 00 76 [00:09:49]RAPDU: 90 00 [00:09:49]wFMCommunicate OK [00:09:49]wFMCommunicate request_size=10 [00:09:49]MH_SAM_APDU [00:09:49]CAPDU: 80 0D 02 02 05 77 8F 8B 85 71 [00:09:49]Write to MH i2c: E2 0D 00 F1 12 80 0D 02 02 05 00 77 8F 8B 85 71 00 00 0E [00:09:49]Write i2c OK [00:09:49]MH_I2C_Read... [00:09:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:09:49]Read from MH i2c: E2 [00:09:49]MH_I2C_Read... [00:09:49]Read from MH i2c: E2 03 00 [00:09:49]MH_I2C_Read... [00:09:49]Read from MH i2c: E2 03 00 F1 12 00 90 00 77 [00:09:49]RAPDU: 90 00 [00:09:49]wFMCommunicate OK [00:09:49]wFMCommunicate request_size=4 [00:09:49]MH_SAM_APDU [00:09:49]CAPDU: 80 0D 03 02 [00:09:49]Write to MH i2c: E2 08 00 F2 12 80 0D 03 02 00 00 00 00 7F [00:09:49]Write i2c OK [00:09:49]MH_I2C_Read... [00:09:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:09:49]Read from MH i2c: E2 [00:09:49]MH_I2C_Read... [00:09:49]Read from MH i2c: E2 0B 00 [00:09:49]MH_I2C_Read... [00:09:49]Read from MH i2c: E2 0B 00 F2 12 00 FB BE 29 FB 2B B8 6B 49 90 00 F4 [00:09:49]RAPDU: FB BE 29 FB 2B B8 6B 49 90 00 [00:09:49]wFMCommunicate OK [00:09:49]SAM_PROTO_SignData done [00:09:49]FM_MakeSignedData done [00:09:49]CreateOFDProtocolMessage [00:09:49]wFMCommunicate request_size=4 [00:09:49]MH_SAM_APDU [00:09:49]CAPDU: 80 11 00 00 [00:09:49]Write to MH i2c: E2 08 00 F3 12 80 11 00 00 00 00 00 00 7F [00:09:49]Write i2c OK [00:09:49]MH_I2C_Read... [00:09:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:09:49]Read from MH i2c: E2 [00:09:49]MH_I2C_Read... [00:09:49]Read from MH i2c: E2 17 00 [00:09:49]MH_I2C_Read... [00:09:49]Read from MH i2c: E2 17 00 F3 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D5 [00:09:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [00:09:49]wFMCommunicate OK [00:09:49]CreateOFDProtocolMessage done [00:09:49]OFDSenderStorePacket 165124 [00:09:49]StoreOFDPacket docnum=165124 [00:09:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 83 13 07 01 84 E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 68 33 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 05 00 00 00 00 07 04 06 00 2C 33 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 CE 68 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 04 85 02 00 35 04 06 00 62 77 8F 8B 85 71 FB BE 29 FB 2B B8 6B 49 [00:09:49]CheckFolder [00:09:49]dirname=/storage/ofd_packets [00:09:49]CheckFolder done [00:09:49]ProducePacketName [00:09:49]name=ofd_packets/00165124 [00:09:49]NVStorageSaveData ofd_packets/00165124 [00:09:49]File name is /storage/ofd_packets/00165124 [00:09:49]Write 301 bytes [00:09:49]NVStorageSaveData done [00:09:49]OFDSenderStorePacket done [00:09:49]KKMCreateOFDPacket done [00:09:49]NVStorageSaveData kkm_last_timestamp [00:09:49]File name is /storage/kkm_last_timestamp [00:09:49]Write 4 bytes [00:09:49]NVStorageSaveData done [00:09:49]ExternCall_PrintAddStr [00:09:49]wPrintStart [00:09:49]Write to MH i2c: 01 00 00 F4 12 06 [00:09:49]Write i2c OK [00:09:49]MH_I2C_Read... [00:09:49]Read from MH i2c: 01 [00:09:49]MH_I2C_Read... [00:09:49]Read from MH i2c: 01 07 00 [00:09:49]MH_I2C_Read... [00:09:49]Read from MH i2c: 01 07 00 F4 12 00 00 00 00 00 FF 0F 1B [00:09:49]RasterBufferAndPrint [00:09:49]line Счет N : (1)459227 [00:09:49]line ИНН: 02508201610067 [00:09:49]line Контрольно-Кассовый Чек [00:09:49]line ПРОДАЖА [00:09:49]line ТРК (МРК, ГНК) : 12 [00:09:49]line Товар: 2710124130 [00:09:49]line Аи-92-К-5 [00:09:49]line 2.000 * 65.80 [00:09:49]line = 131.60 [00:09:49]line НДС 12% НСП 1% [00:09:49]line > о реализуемом товаре [00:09:49]line ОКРУГЛЕНИЕ: -0.60 [00:09:49]line ИТОГО: 131.00 [00:09:49]line Внесено: 131.00 [00:09:49]line СДАЧА: 0.00 [00:09:49]line НСП 1% : 1.16 [00:09:49]line НДС 12% : 13.97 [00:09:49]line Наличными: 131.00 [00:09:49]line Безнал.: 0.00 [00:09:49]line Место: АЗС № 72 "Партнер Нефть" [00:09:49]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [00:09:49]line СНО: Общий режим [00:09:49]line Чек 322 15.07.2024 00:09 [00:09:49]line Смена: 447 ФФД: 1.0 [00:09:49]line ЗНМ: 0300000160 [00:09:49]line РНМ: 0000000000090829 [00:09:49]line Версия ККМ: 001 [00:09:49]line ФМ: 0000000000874718 [00:09:49]line ФД: 165124 [00:09:49]line ФПД: 108265648915825 [00:09:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T000950&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165124&fm=108265648915825&tin=02508201610067®Number=0000000000090829&sum=13100 [00:09:50]written 0, free lines is 4095 [00:09:50]OFD Sender: Processing packet 165124 [packets to send 106, broken 105] [00:09:50]ProducePacketName [00:09:50]name=ofd_packets/00165124 [00:09:50]OFD Sender: To server: pG, [00:09:50]CommunicateWithHost lk.salyk.kg:30040 [00:09:50]ConnectInit lk.salyk.kg [00:09:50]Connected sock=10 [00:09:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 83 13 07 01 84 E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 68 33 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 05 00 00 00 00 07 04 06 00 2C 33 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 CE 68 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 04 85 02 00 35 04 06 00 62 77 8F 8B 85 71 FB BE 29 FB 2B B8 6B 49 [00:09:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 0A B1 47 00 A5 D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 04 85 02 00 F4 03 04 00 5A 0F 94 66 B6 04 01 00 00 FC 4F B7 BC 5D 6F 1E E2 [00:09:50]CommunicateWithHost err = 0 [00:09:50]CheckOFDResponse [00:09:50]1017 (14) - 77093643461234 [00:09:50]1041 (16) - 0000000000874718 [00:09:50]1040 (4) - 165124 [00:09:50]1012 (4) - 14.07.2024 17:48 [00:09:50]1206 (1) - 0 [00:09:50]OFD Sender: Remove packet 165124 [00:09:50]ProducePacketName [00:09:50]name=ofd_packets/00165124 [00:09:50]NVStorageDeleteData [00:09:50]Write to MH i2c: 01 00 00 1E 13 31 [00:09:50]Write i2c OK [00:09:50]MH_I2C_Read... [00:09:50]Read from MH i2c: 01 [00:09:50]MH_I2C_Read... [00:09:50]Read from MH i2c: 01 07 00 [00:09:50]MH_I2C_Read... [00:09:50]Read from MH i2c: 01 07 00 1E 13 00 00 00 00 00 F2 0C 36 [00:09:50]RasterBufferAndPrint [00:09:50]line [00:09:50]line [00:09:50]line [00:09:50]line [00:09:50]line [00:09:50]written 0, free lines is 3320 [00:09:50]MH_Cut [00:09:50]Write to MH i2c: D1 01 00 25 13 01 0A [00:09:50]Write i2c OK [00:09:50]MH_I2C_Read... [00:09:50]Read from MH i2c: D1 [00:09:50]MH_I2C_Read... [00:09:50]Read from MH i2c: D1 01 00 [00:09:50]MH_I2C_Read... [00:09:50]Read from MH i2c: D1 01 00 25 13 00 09 [00:09:50]Write to MH i2c: 01 00 00 26 13 39 [00:09:50]Write i2c OK [00:09:50]MH_I2C_Read... [00:09:51]OFD Sender: No OFD packet to send [00:09:51]*** Cut start [00:09:51]*** Partial cut [00:09:51]*** CUTSNS_PIN = 1 [00:09:51]*** CUTSNS_PIN = 0 [00:09:51]*** Brake cut motor [00:09:51]Read from MH i2c: 01 [00:09:51]MH_I2C_Read... [00:09:51]*** Stop cut motor [00:09:51]*** Cut end [00:09:51]Read from MH i2c: 01 07 00 [00:09:51]MH_I2C_Read... [00:09:51]Read from MH i2c: 01 07 00 26 13 00 00 00 00 00 FF 0F 4E [00:09:51]process_action close_receipt done [00:09:51]requested_data is exist [00:09:51]produce_requested_data [00:09:51]requested_item fm.sn is exist - process it [00:09:51]wFMCommunicate request_size=4 [00:09:51]MH_SAM_APDU [00:09:51]CAPDU: 80 11 00 00 [00:09:51]Write to MH i2c: E2 08 00 27 13 80 11 00 00 00 00 00 00 B4 [00:09:51]Write i2c OK [00:09:51]MH_I2C_Read... [00:09:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:09:52]Read from MH i2c: E2 [00:09:52]MH_I2C_Read... [00:09:52]Read from MH i2c: E2 17 00 [00:09:52]MH_I2C_Read... [00:09:52]Read from MH i2c: E2 17 00 27 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 0A [00:09:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [00:09:52]wFMCommunicate OK [00:09:52]requested_item fd.num is exist - process it [00:09:52]SAM_PROTO_GetFieldsCounters [00:09:52]wFMCommunicate request_size=4 [00:09:52]MH_SAM_APDU [00:09:52]CAPDU: 80 13 00 00 [00:09:52]Write to MH i2c: E2 08 00 28 13 80 13 00 00 00 00 00 00 B7 [00:09:52]Write i2c OK [00:09:52]MH_I2C_Read... [00:09:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:09:52]Read from MH i2c: E2 [00:09:52]MH_I2C_Read... [00:09:52]Read from MH i2c: E2 62 00 [00:09:52]MH_I2C_Read... [00:09:52]Read from MH i2c: E2 62 00 28 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 04 85 02 00 0E 04 04 00 BF 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 F2 [00:09:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 04 85 02 00 0E 04 04 00 BF 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 [00:09:52]wFMCommunicate OK [00:09:52]SAM_PROTO_GetFieldsCounters done [00:09:52]requested_item shift.num is exist - process it [00:09:52]requested_item shift.opened is exist - process it [00:09:52]req_shift_opened [00:09:52]FM_GetShiftState [00:09:52]SAM_PROTO_GetShiftState [00:09:52]wFMCommunicate request_size=4 [00:09:52]MH_SAM_APDU [00:09:52]CAPDU: 80 13 01 00 [00:09:52]Write to MH i2c: E2 08 00 29 13 80 13 01 00 00 00 00 00 B9 [00:09:52]Write i2c OK [00:09:52]MH_I2C_Read... [00:09:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:09:52]Read from MH i2c: E2 [00:09:52]MH_I2C_Read... [00:09:52]Read from MH i2c: E2 0E 00 [00:09:52]MH_I2C_Read... [00:09:52]Read from MH i2c: E2 0E 00 29 13 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 39 [00:09:52]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [00:09:52]wFMCommunicate OK [00:09:52]SAM_PROTO_GetShiftState done [00:09:52]FM_GetShiftState done [00:09:52]req_shift_opened done [00:09:52]requested_item shift.open_date is exist - process it [00:09:52]req_shift_open_date [00:09:52]req_shift_open_date done [00:09:52]produce_requested_data done [00:09:52]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165124,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [00:09:52]process_action_free close_receipt [00:09:52]json_value_free [00:09:52]json_value_free done [00:09:52]process_json_proto returns [00:09:52]Send response to host [00:09:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165124,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [00:09:52]free response buf [00:09:52]execute_script done [00:09:52]execute_script returns [00:09:52]free content buf [00:09:52]Sock 7.Close socket [00:09:52]Sock 7.Thread stoped [00:09:56]OFD Sender: No OFD packet to send [00:10:01]OFD Sender: No OFD packet to send [00:10:06]OFD Sender: No OFD packet to send [00:10:11]OFD Sender: No OFD packet to send [00:10:16]OFD Sender: No OFD packet to send [00:10:21]OFD Sender: No OFD packet to send [00:10:26]OFD Sender: No OFD packet to send [00:10:31]OFD Sender: No OFD packet to send [00:10:36]OFD Sender: No OFD packet to send [00:10:41]OFD Sender: No OFD packet to send [00:10:46]OFD Sender: No OFD packet to send [00:10:51]OFD Sender: No OFD packet to send [00:10:56]OFD Sender: No OFD packet to send [00:11:01]OFD Sender: No OFD packet to send [00:11:06]OFD Sender: No OFD packet to send [00:11:11]OFD Sender: No OFD packet to send [00:11:16]OFD Sender: No OFD packet to send [00:11:21]OFD Sender: No OFD packet to send [00:11:26]OFD Sender: No OFD packet to send [00:11:31]OFD Sender: No OFD packet to send [00:11:36]OFD Sender: No OFD packet to send [00:11:41]OFD Sender: No OFD packet to send [00:11:46]OFD Sender: No OFD packet to send [00:11:51]OFD Sender: No OFD packet to send [00:11:56]OFD Sender: No OFD packet to send [00:12:01]OFD Sender: No OFD packet to send [00:12:06]OFD Sender: No OFD packet to send [00:12:11]OFD Sender: No OFD packet to send [00:12:16]OFD Sender: No OFD packet to send [00:12:21]OFD Sender: No OFD packet to send [00:12:26]OFD Sender: No OFD packet to send [00:12:31]OFD Sender: No OFD packet to send [00:12:36]OFD Sender: No OFD packet to send [00:12:41]OFD Sender: No OFD packet to send [00:12:46]OFD Sender: No OFD packet to send [00:12:51]OFD Sender: No OFD packet to send [00:12:56]OFD Sender: No OFD packet to send [00:13:01]OFD Sender: No OFD packet to send [00:13:06]OFD Sender: No OFD packet to send [00:13:11]OFD Sender: No OFD packet to send [00:13:16]OFD Sender: No OFD packet to send [00:13:21]OFD Sender: No OFD packet to send [00:13:26]OFD Sender: No OFD packet to send [00:13:31]OFD Sender: No OFD packet to send [00:13:36]OFD Sender: No OFD packet to send [00:13:41]OFD Sender: No OFD packet to send [00:13:46]OFD Sender: No OFD packet to send [00:13:51]OFD Sender: No OFD packet to send [00:13:56]OFD Sender: No OFD packet to send [00:14:01]OFD Sender: No OFD packet to send [00:14:06]OFD Sender: No OFD packet to send [00:14:11]OFD Sender: No OFD packet to send [00:14:16]OFD Sender: No OFD packet to send [00:14:21]OFD Sender: No OFD packet to send [00:14:26]OFD Sender: No OFD packet to send [00:14:31]OFD Sender: No OFD packet to send [00:14:36]OFD Sender: No OFD packet to send [00:14:41]OFD Sender: No OFD packet to send [00:14:46]OFD Sender: No OFD packet to send [00:14:51]OFD Sender: No OFD packet to send [00:14:56]OFD Sender: No OFD packet to send [00:15:01]OFD Sender: No OFD packet to send [00:15:06]OFD Sender: No OFD packet to send [00:15:11]OFD Sender: No OFD packet to send [00:15:16]OFD Sender: No OFD packet to send [00:15:21]OFD Sender: No OFD packet to send [00:15:26]OFD Sender: No OFD packet to send [00:15:31]OFD Sender: No OFD packet to send [00:15:36]OFD Sender: No OFD packet to send [00:15:41]OFD Sender: No OFD packet to send [00:15:46]OFD Sender: No OFD packet to send [00:15:51]OFD Sender: No OFD packet to send [00:15:56]OFD Sender: No OFD packet to send [00:16:01]OFD Sender: No OFD packet to send [00:16:06]OFD Sender: No OFD packet to send [00:16:11]OFD Sender: No OFD packet to send [00:16:16]OFD Sender: No OFD packet to send [00:16:21]OFD Sender: No OFD packet to send [00:16:26]OFD Sender: No OFD packet to send [00:16:31]OFD Sender: No OFD packet to send [00:16:36]OFD Sender: No OFD packet to send [00:16:41]OFD Sender: No OFD packet to send [00:16:46]OFD Sender: No OFD packet to send [00:16:51]OFD Sender: No OFD packet to send [00:16:56]OFD Sender: No OFD packet to send [00:17:01]OFD Sender: No OFD packet to send [00:17:05]accept exits with 9 [00:17:05]New connection [00:17:05]New thread 3066928484 created [00:17:05]Thread 3066785124 joined [00:17:05]Waiting for new connection... [00:17:05] Sock 9.Parse request [00:17:05]Sock 9.Check first char [00:17:05]Sock 9.First char is OK [00:17:05]request: POST /json_proto HTTP/1.0 [00:17:05]Method: POST [00:17:05]URL: /json_proto [00:17:05]Method is POST - this is cgi request [00:17:05]url: /json_proto [00:17:05]query_string will be loaded in cgi processing [00:17:05]execute_cgi json_proto POST (null) [00:17:05]execute_cgi path=json_proto method=POST [00:17:05]POST find Content-Length [00:17:05]Host: 172.17.56.4:8080 [00:17:05]Content-Length: 677 [00:17:05]Content-Type: application/json [00:17:05] [00:17:05]POST finish read [00:17:05]Found Content-Length = 677 [00:17:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459228", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "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" ] } } [00:17:05]execute_script... [00:17: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)459228", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "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" ] } } [00:17:05]POST & json_proto [00:17:05]process_json_proto [00:17:05]json parsed OK: [00:17:05]protocol is kg_v1.0 [00:17:05]action value=close_receipt [00:17:05]process_action close_receipt [00:17:05]cmd_close_receipt [00:17:05]MH_GetDate [00:17:05]Write to MH i2c: F0 00 00 2A 13 2C [00:17:05]Write i2c OK [00:17:05]MH_I2C_Read... [00:17:05]Read from MH i2c: F0 [00:17:05]MH_I2C_Read... [00:17:05]Read from MH i2c: F0 09 00 [00:17:05]MH_I2C_Read... [00:17:05]Read from MH i2c: F0 09 00 2A 13 00 83 6A 94 66 C9 DC B2 64 D7 [00:17:05]GetLastDocTimeStamp 1721002190 [00:17:05]current date 1721002627 [00:17:05]FM_GetShiftState [00:17:05]SAM_PROTO_GetShiftState [00:17:05]wFMCommunicate request_size=4 [00:17:05]MH_SAM_APDU [00:17:05]CAPDU: 80 13 01 00 [00:17:05]Write to MH i2c: E2 08 00 2B 13 80 13 01 00 00 00 00 00 BB [00:17:05]Write i2c OK [00:17:05]MH_I2C_Read... [00:17:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:17:05]Read from MH i2c: E2 [00:17:05]MH_I2C_Read... [00:17:05]Read from MH i2c: E2 0E 00 [00:17:05]MH_I2C_Read... [00:17:05]Read from MH i2c: E2 0E 00 2B 13 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 3B [00:17:05]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [00:17:05]wFMCommunicate OK [00:17:05]SAM_PROTO_GetShiftState done [00:17:05]FM_GetShiftState done [00:17:05]opened in 1720917342 [00:17:05]opened+sec_in_day 1721003742 [00:17:05]quantity*price = 40006 [00:17:05]sum+1 = 40007 [00:17:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 323 15.07.2024 00:17 Смена: 447 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165125 ФПД: 68147491857433 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T001707&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165125&fm=68147491857433&tin=02508201610067®Number=0000000000090829&sum=40000 [00:17:06]StoreToDocumentArchive [00:17:06]shift 447 fd 165125 [00:17:06]save to /storage/0447/doc_00165125 [00:17:06]save last doc name /storage/0447/doc_00165125 to /storage/kkm_last_doc_name [00:17:06]save OK [00:17:06]Clear old archive folders... [00:17:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:17:06]tlvbuf is 01365560 [00:17:06]SAM_PROTO_ClearQueue [00:17:06]wFMCommunicate request_size=4 [00:17:06]MH_SAM_APDU [00:17:06]CAPDU: 80 09 00 00 [00:17:06]Write to MH i2c: E2 08 00 38 13 80 09 00 00 00 00 00 00 BD [00:17:06]Write i2c OK [00:17:06]MH_I2C_Read... [00:17:06]OFD Sender: No OFD packet to send [00:17:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:17:06]Read from MH i2c: E2 [00:17:06]MH_I2C_Read... [00:17:06]Read from MH i2c: E2 03 00 [00:17:06]MH_I2C_Read... [00:17:06]Read from MH i2c: E2 03 00 38 13 00 90 00 BF [00:17:06]RAPDU: 90 00 [00:17:06]wFMCommunicate OK [00:17:06]SAM_PROTO_ClearQueue done [00:17:06]KKMCreateOFDPacket [00:17:06]OFDProtocolAddRootSTLVToBuf [00:17:06]FM_MakeSignedData [00:17:06]FM_MakeSignedData [00:17:06]SAM_PROTO_SignData [00:17:06]wFMCommunicate request_size=4 [00:17:06]MH_SAM_APDU [00:17:06]CAPDU: 80 0D 01 02 [00:17:06]Write to MH i2c: E2 08 00 39 13 80 0D 01 02 00 00 00 00 C5 [00:17:06]Write i2c OK [00:17:06]MH_I2C_Read... [00:17:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:17:06]Read from MH i2c: E2 [00:17:06]MH_I2C_Read... [00:17:06]Read from MH i2c: E2 03 00 [00:17:06]MH_I2C_Read... [00:17:06]Read from MH i2c: E2 03 00 39 13 00 90 00 C0 [00:17:06]RAPDU: 90 00 [00:17:06]wFMCommunicate OK [00:17:06]wFMCommunicate request_size=255 [00:17:06]MH_SAM_APDU [00:17:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 43 01 00 00 F4 03 04 00 83 6A 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 05 85 02 00 35 04 06 00 3D [00:17:06]Write to MH i2c: E2 02 01 3A 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 43 01 00 00 F4 03 04 00 83 6A 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 05 85 02 00 35 04 06 00 3D 00 00 D2 [00:17:06]Write i2c OK [00:17:06]MH_I2C_Read... [00:17:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:17:06]Read from MH i2c: E2 [00:17:06]MH_I2C_Read... [00:17:06]Read from MH i2c: E2 03 00 [00:17:06]MH_I2C_Read... [00:17:06]Read from MH i2c: E2 03 00 3A 13 00 90 00 C1 [00:17:06]RAPDU: 90 00 [00:17:06]wFMCommunicate OK [00:17:06]wFMCommunicate request_size=10 [00:17:06]MH_SAM_APDU [00:17:06]CAPDU: 80 0D 02 02 05 FA D3 0B 64 19 [00:17:06]Write to MH i2c: E2 0D 00 3B 13 80 0D 02 02 05 00 FA D3 0B 64 19 00 00 27 [00:17:06]Write i2c OK [00:17:06]MH_I2C_Read... [00:17:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:17:06]Read from MH i2c: E2 [00:17:06]MH_I2C_Read... [00:17:06]Read from MH i2c: E2 03 00 [00:17:06]MH_I2C_Read... [00:17:06]Read from MH i2c: E2 03 00 3B 13 00 90 00 C2 [00:17:06]RAPDU: 90 00 [00:17:06]wFMCommunicate OK [00:17:06]wFMCommunicate request_size=4 [00:17:06]MH_SAM_APDU [00:17:06]CAPDU: 80 0D 03 02 [00:17:06]Write to MH i2c: E2 08 00 3C 13 80 0D 03 02 00 00 00 00 CA [00:17:06]Write i2c OK [00:17:06]MH_I2C_Read... [00:17:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:17:06]Read from MH i2c: E2 [00:17:06]MH_I2C_Read... [00:17:06]Read from MH i2c: E2 0B 00 [00:17:06]MH_I2C_Read... [00:17:06]Read from MH i2c: E2 0B 00 3C 13 00 A8 90 4A 90 16 53 CC 03 90 00 15 [00:17:06]RAPDU: A8 90 4A 90 16 53 CC 03 90 00 [00:17:06]wFMCommunicate OK [00:17:06]SAM_PROTO_SignData done [00:17:06]FM_MakeSignedData done [00:17:06]CreateOFDProtocolMessage [00:17:06]wFMCommunicate request_size=4 [00:17:06]MH_SAM_APDU [00:17:06]CAPDU: 80 11 00 00 [00:17:06]Write to MH i2c: E2 08 00 3D 13 80 11 00 00 00 00 00 00 CA [00:17:07]Write i2c OK [00:17:07]MH_I2C_Read... [00:17:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:17:07]Read from MH i2c: E2 [00:17:07]MH_I2C_Read... [00:17:07]Read from MH i2c: E2 17 00 [00:17:07]MH_I2C_Read... [00:17:07]Read from MH i2c: E2 17 00 3D 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 20 [00:17:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [00:17:07]wFMCommunicate OK [00:17:07]CreateOFDProtocolMessage done [00:17:07]OFDSenderStorePacket 165125 [00:17:07]StoreOFDPacket docnum=165125 [00:17:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 02 02 07 01 E8 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 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 43 01 00 00 F4 03 04 00 83 6A 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 05 85 02 00 35 04 06 00 3D FA D3 0B 64 19 A8 90 4A 90 16 53 CC 03 [00:17:07]CheckFolder [00:17:07]dirname=/storage/ofd_packets [00:17:07]CheckFolder done [00:17:07]ProducePacketName [00:17:07]name=ofd_packets/00165125 [00:17:07]NVStorageSaveData ofd_packets/00165125 [00:17:07]File name is /storage/ofd_packets/00165125 [00:17:07]Write 301 bytes [00:17:07]NVStorageSaveData done [00:17:07]OFDSenderStorePacket done [00:17:07]KKMCreateOFDPacket done [00:17:07]NVStorageSaveData kkm_last_timestamp [00:17:07]File name is /storage/kkm_last_timestamp [00:17:07]Write 4 bytes [00:17:07]NVStorageSaveData done [00:17:07]ExternCall_PrintAddStr [00:17:07]wPrintStart [00:17:07]Write to MH i2c: 01 00 00 3E 13 51 [00:17:07]Write i2c OK [00:17:07]MH_I2C_Read... [00:17:07]Read from MH i2c: 01 [00:17:07]MH_I2C_Read... [00:17:07]Read from MH i2c: 01 07 00 [00:17:07]MH_I2C_Read... [00:17:07]Read from MH i2c: 01 07 00 3E 13 00 00 00 00 00 FF 0F 66 [00:17:07]RasterBufferAndPrint [00:17:07]line Счет N : (1)459228 [00:17:07]line ИНН: 02508201610067 [00:17:07]line Контрольно-Кассовый Чек [00:17:07]line ПРОДАЖА [00:17:07]line ТРК (МРК, ГНК) : 22 [00:17:07]line Товар: 2710124130 [00:17:07]line Аи-92-К-5 [00:17:07]line 6.080 * 65.80 [00:17:07]line = 400.06 [00:17:07]line НДС 12% НСП 1% [00:17:07]line > о реализуемом товаре [00:17:07]line ОКРУГЛЕНИЕ: -0.06 [00:17:07]line ИТОГО: 400.00 [00:17:07]line Внесено: 400.00 [00:17:07]line СДАЧА: 0.00 [00:17:07]line НСП 1% : 3.54 [00:17:07]line НДС 12% : 42.48 [00:17:07]line Наличными: 400.00 [00:17:07]line Безнал.: 0.00 [00:17:07]line Место: АЗС № 72 "Партнер Нефть" [00:17:07]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [00:17:07]line СНО: Общий режим [00:17:07]line Чек 323 15.07.2024 00:17 [00:17:07]line Смена: 447 ФФД: 1.0 [00:17:07]line ЗНМ: 0300000160 [00:17:07]line РНМ: 0000000000090829 [00:17:07]line Версия ККМ: 001 [00:17:07]line ФМ: 0000000000874718 [00:17:07]line ФД: 165125 [00:17:07]line ФПД: 68147491857433 [00:17:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T001707&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165125&fm=68147491857433&tin=02508201610067®Number=0000000000090829&sum=40000 [00:17:07]OFD Sender: Processing packet 165125 [packets to send 106, broken 105] [00:17:07]ProducePacketName [00:17:07]name=ofd_packets/00165125 [00:17:07]OFD Sender: To server: pG, [00:17:07]CommunicateWithHost lk.salyk.kg:30040 [00:17:07]ConnectInit lk.salyk.kg [00:17:07]written 0, free lines is 4095 [00:17:07]Connected sock=10 [00:17:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 02 02 07 01 E8 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 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 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 43 01 00 00 F4 03 04 00 83 6A 94 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 05 85 02 00 35 04 06 00 3D FA D3 0B 64 19 A8 90 4A 90 16 53 CC 03 [00:17:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 C5 90 47 00 D3 DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 05 85 02 00 F4 03 04 00 0F 11 94 66 B6 04 01 00 00 36 8F 9A 05 9E 2F 5B 2A [00:17:07]CommunicateWithHost err = 0 [00:17:07]CheckOFDResponse [00:17:07]1017 (14) - 77093643461234 [00:17:07]1041 (16) - 0000000000874718 [00:17:07]1040 (4) - 165125 [00:17:07]1012 (4) - 14.07.2024 17:55 [00:17:07]1206 (1) - 0 [00:17:07]OFD Sender: Remove packet 165125 [00:17:07]ProducePacketName [00:17:07]name=ofd_packets/00165125 [00:17:07]NVStorageDeleteData [00:17:07]Write to MH i2c: 01 00 00 68 13 7B [00:17:07]Write i2c OK [00:17:07]MH_I2C_Read... [00:17:07]Read from MH i2c: 01 [00:17:07]MH_I2C_Read... [00:17:07]Read from MH i2c: 01 07 00 [00:17:07]MH_I2C_Read... [00:17:07]Read from MH i2c: 01 07 00 68 13 00 00 00 00 00 F0 0C 7E [00:17:07]RasterBufferAndPrint [00:17:07]line [00:17:07]line [00:17:07]line [00:17:07]line [00:17:07]line [00:17:07]written 0, free lines is 3318 [00:17:07]MH_Cut [00:17:07]Write to MH i2c: D1 01 00 6F 13 01 54 [00:17:07]Write i2c OK [00:17:07]MH_I2C_Read... [00:17:07]Read from MH i2c: D1 [00:17:07]MH_I2C_Read... [00:17:07]Read from MH i2c: D1 01 00 [00:17:07]MH_I2C_Read... [00:17:07]Read from MH i2c: D1 01 00 6F 13 00 53 [00:17:07]Write to MH i2c: 01 00 00 70 13 83 [00:17:07]Write i2c OK [00:17:07]MH_I2C_Read... [00:17:08]OFD Sender: No OFD packet to send [00:17:08]*** Cut start [00:17:08]*** Partial cut [00:17:08]*** CUTSNS_PIN = 1 [00:17:08]*** CUTSNS_PIN = 0 [00:17:08]*** Brake cut motor [00:17:09]Read from MH i2c: 01 [00:17:09]MH_I2C_Read... [00:17:09]*** Stop cut motor [00:17:09]*** Cut end [00:17:09]Read from MH i2c: 01 07 00 [00:17:09]MH_I2C_Read... [00:17:09]Read from MH i2c: 01 07 00 70 13 00 00 00 00 00 FF 0F 98 [00:17:09]process_action close_receipt done [00:17:09]requested_data is exist [00:17:09]produce_requested_data [00:17:09]requested_item fm.sn is exist - process it [00:17:09]wFMCommunicate request_size=4 [00:17:09]MH_SAM_APDU [00:17:09]CAPDU: 80 11 00 00 [00:17:09]Write to MH i2c: E2 08 00 71 13 80 11 00 00 00 00 00 00 FE [00:17:09]Write i2c OK [00:17:09]MH_I2C_Read... [00:17:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:17:09]Read from MH i2c: E2 [00:17:09]MH_I2C_Read... [00:17:09]Read from MH i2c: E2 17 00 [00:17:09]MH_I2C_Read... [00:17:09]Read from MH i2c: E2 17 00 71 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 54 [00:17:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [00:17:09]wFMCommunicate OK [00:17:09]requested_item fd.num is exist - process it [00:17:09]SAM_PROTO_GetFieldsCounters [00:17:09]wFMCommunicate request_size=4 [00:17:09]MH_SAM_APDU [00:17:09]CAPDU: 80 13 00 00 [00:17:09]Write to MH i2c: E2 08 00 72 13 80 13 00 00 00 00 00 00 01 [00:17:09]Write i2c OK [00:17:09]MH_I2C_Read... [00:17:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:17:09]Read from MH i2c: E2 [00:17:09]MH_I2C_Read... [00:17:09]Read from MH i2c: E2 62 00 [00:17:09]MH_I2C_Read... [00:17:09]Read from MH i2c: E2 62 00 72 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 05 85 02 00 0E 04 04 00 BF 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 40 [00:17:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 05 85 02 00 0E 04 04 00 BF 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 [00:17:09]wFMCommunicate OK [00:17:09]SAM_PROTO_GetFieldsCounters done [00:17:09]requested_item shift.num is exist - process it [00:17:09]requested_item shift.opened is exist - process it [00:17:09]req_shift_opened [00:17:09]FM_GetShiftState [00:17:09]SAM_PROTO_GetShiftState [00:17:09]wFMCommunicate request_size=4 [00:17:09]MH_SAM_APDU [00:17:09]CAPDU: 80 13 01 00 [00:17:09]Write to MH i2c: E2 08 00 73 13 80 13 01 00 00 00 00 00 03 [00:17:09]Write i2c OK [00:17:09]MH_I2C_Read... [00:17:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:17:09]Read from MH i2c: E2 [00:17:09]MH_I2C_Read... [00:17:09]Read from MH i2c: E2 0E 00 [00:17:09]MH_I2C_Read... [00:17:09]Read from MH i2c: E2 0E 00 73 13 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 83 [00:17:09]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [00:17:09]wFMCommunicate OK [00:17:09]SAM_PROTO_GetShiftState done [00:17:09]FM_GetShiftState done [00:17:09]req_shift_opened done [00:17:09]requested_item shift.open_date is exist - process it [00:17:09]req_shift_open_date [00:17:09]req_shift_open_date done [00:17:09]produce_requested_data done [00:17:09]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165125,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [00:17:09]process_action_free close_receipt [00:17:09]json_value_free [00:17:09]json_value_free done [00:17:09]process_json_proto returns [00:17:09]Send response to host [00:17:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165125,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [00:17:09]free response buf [00:17:09]execute_script done [00:17:09]execute_script returns [00:17:09]free content buf [00:17:09]Sock 9.Close socket [00:17:09]Sock 9.Thread stoped [00:17:13]OFD Sender: No OFD packet to send [00:17:18]OFD Sender: No OFD packet to send [00:17:23]OFD Sender: No OFD packet to send [00:17:28]OFD Sender: No OFD packet to send [00:17:33]OFD Sender: No OFD packet to send [00:17:38]OFD Sender: No OFD packet to send [00:17:43]OFD Sender: No OFD packet to send [00:17:48]OFD Sender: No OFD packet to send [00:17:53]OFD Sender: No OFD packet to send [00:17:58]OFD Sender: No OFD packet to send [00:18:03]OFD Sender: No OFD packet to send [00:18:08]OFD Sender: No OFD packet to send [00:18:13]OFD Sender: No OFD packet to send [00:18:18]OFD Sender: No OFD packet to send [00:18:23]OFD Sender: No OFD packet to send [00:18:28]OFD Sender: No OFD packet to send [00:18:33]OFD Sender: No OFD packet to send [00:18:38]OFD Sender: No OFD packet to send [00:18:43]OFD Sender: No OFD packet to send [00:18:48]OFD Sender: No OFD packet to send [00:18:53]OFD Sender: No OFD packet to send [00:18:58]OFD Sender: No OFD packet to send [00:19:03]OFD Sender: No OFD packet to send [00:19:08]OFD Sender: No OFD packet to send [00:19:13]OFD Sender: No OFD packet to send [00:19:18]OFD Sender: No OFD packet to send [00:19:23]OFD Sender: No OFD packet to send [00:19:28]OFD Sender: No OFD packet to send [00:19:33]OFD Sender: No OFD packet to send [00:19:38]OFD Sender: No OFD packet to send [00:19:43]OFD Sender: No OFD packet to send [00:19:48]OFD Sender: No OFD packet to send [00:19:53]OFD Sender: No OFD packet to send [00:19:58]OFD Sender: No OFD packet to send [00:20:03]OFD Sender: No OFD packet to send [00:20:08]OFD Sender: No OFD packet to send [00:20:13]OFD Sender: No OFD packet to send [00:20:18]OFD Sender: No OFD packet to send [00:20:23]OFD Sender: No OFD packet to send [00:20:28]OFD Sender: No OFD packet to send [00:20:33]OFD Sender: No OFD packet to send [00:20:38]OFD Sender: No OFD packet to send [00:20:43]OFD Sender: No OFD packet to send [00:20:48]OFD Sender: No OFD packet to send [00:20:53]OFD Sender: No OFD packet to send [00:20:58]OFD Sender: No OFD packet to send [00:21:03]OFD Sender: No OFD packet to send [00:21:08]OFD Sender: No OFD packet to send [00:21:13]OFD Sender: No OFD packet to send [00:21:18]OFD Sender: No OFD packet to send [00:21:23]OFD Sender: No OFD packet to send [00:21:28]OFD Sender: No OFD packet to send [00:21:33]OFD Sender: No OFD packet to send [00:21:38]OFD Sender: No OFD packet to send [00:21:43]OFD Sender: No OFD packet to send [00:21:48]OFD Sender: No OFD packet to send [00:21:53]OFD Sender: No OFD packet to send [00:21:58]OFD Sender: No OFD packet to send [00:22:03]OFD Sender: No OFD packet to send [00:22:08]OFD Sender: No OFD packet to send [00:22:13]OFD Sender: No OFD packet to send [00:22:18]OFD Sender: No OFD packet to send [00:22:23]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:13]OFD Sender: No OFD packet to send [00:23:18]OFD Sender: No OFD packet to send [00:23:23]OFD Sender: No OFD packet to send [00:23:28]OFD Sender: No OFD packet to send [00:23:33]OFD Sender: No OFD packet to send [00:23:38]OFD Sender: No OFD packet to send [00:23:43]OFD Sender: No OFD packet to send [00:23:48]OFD Sender: No OFD packet to send [00:23:53]OFD Sender: No OFD packet to send [00:23:58]OFD Sender: No OFD packet to send [00:24:03]OFD Sender: No OFD packet to send [00:24:08]OFD Sender: No OFD packet to send [00:24:13]OFD Sender: No OFD packet to send [00:24:18]OFD Sender: No OFD packet to send [00:24:23]OFD Sender: No OFD packet to send [00:24:28]OFD Sender: No OFD packet to send [00:24:33]OFD Sender: No OFD packet to send [00:24:38]OFD Sender: No OFD packet to send [00:24:43]OFD Sender: No OFD packet to send [00:24:48]OFD Sender: No OFD packet to send [00:24:53]OFD Sender: No OFD packet to send [00:24:58]OFD Sender: No OFD packet to send [00:25:03]OFD Sender: No OFD packet to send [00:25:08]OFD Sender: No OFD packet to send [00:25:13]OFD Sender: No OFD packet to send [00:25:18]OFD Sender: No OFD packet to send [00:25:23]OFD Sender: No OFD packet to send [00:25:28]OFD Sender: No OFD packet to send [00:25:33]OFD Sender: No OFD packet to send [00:25:38]OFD Sender: No OFD packet to send [00:25:43]OFD Sender: No OFD packet to send [00:25:48]OFD Sender: No OFD packet to send [00:25:53]OFD Sender: No OFD packet to send [00:25:58]OFD Sender: No OFD packet to send [00:26:03]OFD Sender: No OFD packet to send [00:26:08]OFD Sender: No OFD packet to send [00:26:13]OFD Sender: No OFD packet to send [00:26:18]OFD Sender: No OFD packet to send [00:26:23]OFD Sender: No OFD packet to send [00:26:28]OFD Sender: No OFD packet to send [00:26:33]OFD Sender: No OFD packet to send [00:26:38]OFD Sender: No OFD packet to send [00:26:43]OFD Sender: No OFD packet to send [00:26:48]OFD Sender: No OFD packet to send [00:26:53]OFD Sender: No OFD packet to send [00:26:58]OFD Sender: No OFD packet to send [00:27:03]OFD Sender: No OFD packet to send [00:27:08]OFD Sender: No OFD packet to send [00:27:13]OFD Sender: No OFD packet to send [00:27:18]OFD Sender: No OFD packet to send [00:27:23]OFD Sender: No OFD packet to send [00:27:28]OFD Sender: No OFD packet to send [00:27:33]OFD Sender: No OFD packet to send [00:27:38]OFD Sender: No OFD packet to send [00:27:43]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:34]OFD Sender: No OFD packet to send [00:29:39]OFD Sender: No OFD packet to send [00:29:44]OFD Sender: No OFD packet to send [00:29:49]OFD Sender: No OFD packet to send [00:29:54]OFD Sender: No OFD packet to send [00:29:59]OFD Sender: No OFD packet to send [00:30:04]OFD Sender: No OFD packet to send [00:30:09]OFD Sender: No OFD packet to send [00:30:13]accept exits with 7 [00:30:13]New connection [00:30:13]New thread 3066785124 created [00:30:13]Thread 3066928484 joined [00:30:13]Waiting for new connection... [00:30:13] Sock 7.Parse request [00:30:13]Sock 7.Check first char [00:30:13]Sock 7.First char is OK [00:30:13]request: POST /json_proto HTTP/1.0 [00:30:13]Method: POST [00:30:13]URL: /json_proto [00:30:13]Method is POST - this is cgi request [00:30:13]url: /json_proto [00:30:13]query_string will be loaded in cgi processing [00:30:13]execute_cgi json_proto POST (null) [00:30:13]execute_cgi path=json_proto method=POST [00:30:13]POST find Content-Length [00:30:13]Host: 172.17.56.4:8080 [00:30:13]Content-Length: 215 [00:30:13]Content-Type: application/json [00:30:13] [00:30:13]POST finish read [00:30:13]Found Content-Length = 215 [00:30:13]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:30:13]execute_script... [00:30:13]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:30:13]POST & json_proto [00:30:13]process_json_proto [00:30:13]json parsed OK: [00:30:13]protocol is kg_v1.0 [00:30:13]action value=get_value [00:30:13]process_action get_value [00:30:13]cmd_get_value [00:30:13]process_action get_value done [00:30:13]requested_data is exist [00:30:13]produce_requested_data [00:30:13]requested_item kkm.sn is exist - process it [00:30:13]requested_item kkm.ver is exist - process it [00:30:13]requested_item fm.sn is exist - process it [00:30:13]wFMCommunicate request_size=4 [00:30:13]MH_SAM_APDU [00:30:13]CAPDU: 80 11 00 00 [00:30:13]Write to MH i2c: E2 08 00 74 13 80 11 00 00 00 00 00 00 01 [00:30:13]Write i2c OK [00:30:13]MH_I2C_Read... [00:30:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:30:14]Read from MH i2c: E2 [00:30:14]MH_I2C_Read... [00:30:14]Read from MH i2c: E2 17 00 [00:30:14]MH_I2C_Read... [00:30:14]Read from MH i2c: E2 17 00 74 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 57 [00:30:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [00:30:14]wFMCommunicate OK [00:30:14]requested_item fd.num is exist - process it [00:30:14]SAM_PROTO_GetFieldsCounters [00:30:14]wFMCommunicate request_size=4 [00:30:14]MH_SAM_APDU [00:30:14]CAPDU: 80 13 00 00 [00:30:14]Write to MH i2c: E2 08 00 75 13 80 13 00 00 00 00 00 00 04 [00:30:14]Write i2c OK [00:30:14]MH_I2C_Read... [00:30:14]OFD Sender: No OFD packet to send [00:30:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:30:14]Read from MH i2c: E2 [00:30:14]MH_I2C_Read... [00:30:14]Read from MH i2c: E2 62 00 [00:30:14]MH_I2C_Read... [00:30:14]Read from MH i2c: E2 62 00 75 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 05 85 02 00 0E 04 04 00 BF 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 43 [00:30:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 05 85 02 00 0E 04 04 00 BF 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 [00:30:14]wFMCommunicate OK [00:30:14]SAM_PROTO_GetFieldsCounters done [00:30:14]requested_item shift.num is exist - process it [00:30:14]requested_item shift.opened is exist - process it [00:30:14]req_shift_opened [00:30:14]FM_GetShiftState [00:30:14]SAM_PROTO_GetShiftState [00:30:14]wFMCommunicate request_size=4 [00:30:14]MH_SAM_APDU [00:30:14]CAPDU: 80 13 01 00 [00:30:14]Write to MH i2c: E2 08 00 76 13 80 13 01 00 00 00 00 00 06 [00:30:14]Write i2c OK [00:30:14]MH_I2C_Read... [00:30:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:30:14]Read from MH i2c: E2 [00:30:14]MH_I2C_Read... [00:30:14]Read from MH i2c: E2 0E 00 [00:30:14]MH_I2C_Read... [00:30:14]Read from MH i2c: E2 0E 00 76 13 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 86 [00:30:14]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [00:30:14]wFMCommunicate OK [00:30:14]SAM_PROTO_GetShiftState done [00:30:14]FM_GetShiftState done [00:30:14]req_shift_opened done [00:30:14]requested_item shift.open_date is exist - process it [00:30:14]req_shift_open_date [00:30:14]req_shift_open_date done [00:30:14]produce_requested_data done [00:30:14]produce_requested_data return {"kkm.sn":"0300000160","kkm.ver":"001","fm.sn":"0000000000874718","fd.num":165125,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [00:30:14]process_action_free get_value [00:30:14]json_value_free [00:30:14]json_value_free done [00:30:14]process_json_proto returns [00:30:14]Send response to host [00:30:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000160","kkm.ver":"001","fm.sn":"0000000000874718","fd.num":165125,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [00:30:14]free response buf [00:30:14]execute_script done [00:30:14]execute_script returns [00:30:14]free content buf [00:30:14]Sock 7.Close socket [00:30:14]Sock 7.Thread stoped [00:30:14]accept exits with 9 [00:30:14]New connection [00:30:14]New thread 3066928484 created [00:30:14]Thread 3066785124 joined [00:30:14]Waiting for new connection... [00:30:14] Sock 9.Parse request [00:30:14]Sock 9.Check first char [00:30:14]Sock 9.First char is OK [00:30:14]request: POST /json_proto HTTP/1.0 [00:30:14]Method: POST [00:30:14]URL: /json_proto [00:30:14]Method is POST - this is cgi request [00:30:14]url: /json_proto [00:30:14]query_string will be loaded in cgi processing [00:30:14]execute_cgi json_proto POST (null) [00:30:14]execute_cgi path=json_proto method=POST [00:30:14]POST find Content-Length [00:30:14]Host: 172.17.56.4:8080 [00:30:14]Content-Length: 331 [00:30:14]Content-Type: application/json [00:30:14] [00:30:14]POST finish read [00:30:14]Found Content-Length = 331 [00:30:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:30:14]execute_script... [00:30:14]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:30:14]POST & json_proto [00:30:14]process_json_proto [00:30:14]json parsed OK: [00:30:14]protocol is kg_v1.0 [00:30:14]action value=get_value [00:30:14]process_action get_value [00:30:14]cmd_get_value [00:30:14]process_action get_value done [00:30:14]requested_data is exist [00:30:14]produce_requested_data [00:30:14]requested_item fm.sale.total is exist - process it [00:30:14]SAM_PROTO_GetFMData [00:30:14]wFMCommunicate request_size=4 [00:30:14]MH_SAM_APDU [00:30:14]CAPDU: 80 13 03 00 [00:30:14]Write to MH i2c: E2 08 00 77 13 80 13 03 00 00 00 00 00 09 [00:30:14]Write i2c OK [00:30:14]MH_I2C_Read... [00:30:14]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:30:14]Read from MH i2c: E2 [00:30:14]MH_I2C_Read... [00:30:14]Read from MH i2c: E2 FD 00 [00:30:14]MH_I2C_Read... [00:30:14]Read from MH i2c: E2 FD 00 77 13 00 C4 04 85 04 C0 04 6E 04 04 00 84 81 02 00 69 04 A3 00 6F 04 04 00 76 80 02 00 B1 04 05 00 85 45 51 59 02 70 04 05 00 5D FE FF 36 02 72 04 04 00 28 47 51 22 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 89 A3 E1 3F 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 FE 9C 52 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 0E 01 00 00 B1 04 04 00 6C E5 46 03 70 04 04 00 6C E5 46 03 72 04 00 00 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 23 19 59 EF 03 09 00 90 00 25 [00:30:14]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 84 81 02 00 69 04 A3 00 6F 04 04 00 76 80 02 00 B1 04 05 00 85 45 51 59 02 70 04 05 00 5D FE FF 36 02 72 04 04 00 28 47 51 22 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 89 A3 E1 3F 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 FE 9C 52 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 0E 01 00 00 B1 04 04 00 6C E5 46 03 70 04 04 00 6C E5 46 03 72 04 00 00 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 23 19 59 EF 03 09 00 90 00 [00:30:14]wFMCommunicate OK [00:30:14]wFMCommunicate request_size=4 [00:30:14]MH_SAM_APDU [00:30:14]CAPDU: 80 17 00 00 [00:30:14]Write to MH i2c: E2 08 00 78 13 80 17 00 00 00 00 00 00 0B [00:30:14]Write i2c OK [00:30:14]MH_I2C_Read... [00:30:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:15]Read from MH i2c: E2 [00:30:15]MH_I2C_Read... [00:30:15]Read from MH i2c: E2 FD 00 [00:30:15]MH_I2C_Read... [00:30:15]Read from MH i2c: E2 FD 00 78 13 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B1 6C 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 E5 [00:30:15]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B1 6C 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:30:15]wFMCommunicate OK [00:30:15]wFMCommunicate request_size=4 [00:30:15]MH_SAM_APDU [00:30:15]CAPDU: 80 17 00 00 [00:30:15]Write to MH i2c: E2 08 00 79 13 80 17 00 00 00 00 00 00 0C [00:30:15]Write i2c OK [00:30:15]MH_I2C_Read... [00:30:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:15]Read from MH i2c: E2 [00:30:15]MH_I2C_Read... [00:30:15]Read from MH i2c: E2 FD 00 [00:30:15]MH_I2C_Read... [00:30:15]Read from MH i2c: E2 FD 00 79 13 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 21 [00:30:15]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:30:15]wFMCommunicate OK [00:30:15]wFMCommunicate request_size=4 [00:30:15]MH_SAM_APDU [00:30:15]CAPDU: 80 17 00 00 [00:30:15]Write to MH i2c: E2 08 00 7A 13 80 17 00 00 00 00 00 00 0D [00:30:15]Write i2c OK [00:30:15]MH_I2C_Read... [00:30:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:15]Read from MH i2c: E2 [00:30:15]MH_I2C_Read... [00:30:15]Read from MH i2c: E2 FD 00 [00:30:15]MH_I2C_Read... [00:30:15]Read from MH i2c: E2 FD 00 7A 13 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 85 [00:30:15]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:30:15]wFMCommunicate OK [00:30:15]wFMCommunicate request_size=4 [00:30:15]MH_SAM_APDU [00:30:15]CAPDU: 80 17 00 00 [00:30:15]Write to MH i2c: E2 08 00 7B 13 80 17 00 00 00 00 00 00 0E [00:30:15]Write i2c OK [00:30:15]MH_I2C_Read... [00:30:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [00:30:16]Read from MH i2c: E2 [00:30:16]MH_I2C_Read... [00:30:16]Read from MH i2c: E2 E1 00 [00:30:16]MH_I2C_Read... [00:30:16]Read from MH i2c: E2 E1 00 7B 13 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 FC [00:30:16]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:30:16]wFMCommunicate OK [00:30:16]SAM_PROTO_GetFMData done [00:30:16]requested_item fm.sale_refund.total is exist - process it [00:30:16]requested_item fm.buy.total is exist - process it [00:30:16]requested_item shift.sale.total is exist - process it [00:30:16]SAM_PROTO_GetShiftData [00:30:16]wFMCommunicate request_size=4 [00:30:16]MH_SAM_APDU [00:30:16]CAPDU: 80 13 02 00 [00:30:16]Write to MH i2c: E2 08 00 7C 13 80 13 02 00 00 00 00 00 0D [00:30:16]Write i2c OK [00:30:16]MH_I2C_Read... [00:30:16]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:30:16]Read from MH i2c: E2 [00:30:16]MH_I2C_Read... [00:30:16]Read from MH i2c: E2 FD 00 [00:30:16]MH_I2C_Read... [00:30:16]Read from MH i2c: E2 FD 00 7C 13 00 B1 04 AA 04 AD 04 6E 04 04 00 43 01 00 00 69 04 9E 00 6F 04 04 00 43 01 00 00 B1 04 04 00 1F AD 40 01 70 04 04 00 44 F1 14 01 72 04 03 00 DB BB 2B 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 EF 0F 22 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 79 D6 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 F5 [00:30:16]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 43 01 00 00 69 04 9E 00 6F 04 04 00 43 01 00 00 B1 04 04 00 1F AD 40 01 70 04 04 00 44 F1 14 01 72 04 03 00 DB BB 2B 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 EF 0F 22 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 79 D6 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:30:16]wFMCommunicate OK [00:30:16]wFMCommunicate request_size=4 [00:30:16]MH_SAM_APDU [00:30:16]CAPDU: 80 17 00 00 [00:30:16]Write to MH i2c: E2 08 00 7D 13 80 17 00 00 00 00 00 00 10 [00:30:16]Write i2c OK [00:30:16]MH_I2C_Read... [00:30:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:16]Read from MH i2c: E2 [00:30:16]MH_I2C_Read... [00:30:16]Read from MH i2c: E2 FD 00 [00:30:16]MH_I2C_Read... [00:30:16]Read from MH i2c: E2 FD 00 7D 13 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 29 [00:30:16]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:30:16]wFMCommunicate OK [00:30:16]wFMCommunicate request_size=4 [00:30:16]MH_SAM_APDU [00:30:16]CAPDU: 80 17 00 00 [00:30:16]Write to MH i2c: E2 08 00 7E 13 80 17 00 00 00 00 00 00 11 [00:30:16]Write i2c OK [00:30:16]MH_I2C_Read... [00:30:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:17]Read from MH i2c: E2 [00:30:17]MH_I2C_Read... [00:30:17]Read from MH i2c: E2 FD 00 [00:30:17]MH_I2C_Read... [00:30:17]Read from MH i2c: E2 FD 00 7E 13 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 CA [00:30:17]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:30:17]wFMCommunicate OK [00:30:17]wFMCommunicate request_size=4 [00:30:17]MH_SAM_APDU [00:30:17]CAPDU: 80 17 00 00 [00:30:17]Write to MH i2c: E2 08 00 7F 13 80 17 00 00 00 00 00 00 12 [00:30:17]Write i2c OK [00:30:17]MH_I2C_Read... [00:30:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:17]Read from MH i2c: E2 [00:30:17]MH_I2C_Read... [00:30:17]Read from MH i2c: E2 FD 00 [00:30:17]MH_I2C_Read... [00:30:17]Read from MH i2c: E2 FD 00 7F 13 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 90 00 8A [00:30:17]RAPDU: 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 90 00 [00:30:17]wFMCommunicate OK [00:30:17]wFMCommunicate request_size=4 [00:30:17]MH_SAM_APDU [00:30:17]CAPDU: 80 17 00 00 [00:30:17]Write to MH i2c: E2 08 00 80 13 80 17 00 00 00 00 00 00 13 [00:30:17]Write i2c OK [00:30:17]MH_I2C_Read... [00:30:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:30:17]Read from MH i2c: E2 [00:30:17]MH_I2C_Read... [00:30:17]Read from MH i2c: E2 CE 00 [00:30:17]MH_I2C_Read... [00:30:17]Read from MH i2c: E2 CE 00 80 13 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 F8 [00:30:17]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:30:17]wFMCommunicate OK [00:30:17]SAM_PROTO_GetShiftData done [00:30:17]requested_item shift.sale.total_cash is exist - process it [00:30:17]requested_item shift.sale_refund.total is exist - process it [00:30:17]requested_item shift.sale_refund.total_cash is exist - process it [00:30:17]requested_item shift.buy.total is exist - process it [00:30:17]requested_item shift.buy.total_cash is exist - process it [00:30:17]produce_requested_data done [00:30:17]produce_requested_data return {"fm.sale.total":100884330.29,"fm.sale_refund.total":549779.00,"fm.buy.total":0.00,"shift.sale.total":210158.39,"shift.sale.total_cash":181497.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:30:17]process_action_free get_value [00:30:17]json_value_free [00:30:17]json_value_free done [00:30:17]process_json_proto returns [00:30:17]Send response to host [00:30:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":100884330.29,"fm.sale_refund.total":549779.00,"fm.buy.total":0.00,"shift.sale.total":210158.39,"shift.sale.total_cash":181497.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:30:17]free response buf [00:30:17]execute_script done [00:30:17]execute_script returns [00:30:17]free content buf [00:30:17]Sock 9.Close socket [00:30:17]Sock 9.Thread stoped [00:30:17]accept exits with 7 [00:30:17]New connection [00:30:17]New thread 3066785124 created [00:30:17]Thread 3066928484 joined [00:30:17]Waiting for new connection... [00:30:17] Sock 7.Parse request [00:30:17]Sock 7.Check first char [00:30:17]Sock 7.First char is OK [00:30:17]request: POST /json_proto HTTP/1.0 [00:30:17]Method: POST [00:30:17]URL: /json_proto [00:30:17]Method is POST - this is cgi request [00:30:17]url: /json_proto [00:30:17]query_string will be loaded in cgi processing [00:30:17]execute_cgi json_proto POST (null) [00:30:17]execute_cgi path=json_proto method=POST [00:30:17]POST find Content-Length [00:30:17]Host: 172.17.56.4:8080 [00:30:17]Content-Length: 331 [00:30:17]Content-Type: application/json [00:30:17] [00:30:17]POST finish read [00:30:17]Found Content-Length = 331 [00:30:17]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:30:17]execute_script... [00:30:17]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:30:17]POST & json_proto [00:30:17]process_json_proto [00:30:17]json parsed OK: [00:30:17]protocol is kg_v1.0 [00:30:17]action value=get_value [00:30:17]process_action get_value [00:30:17]cmd_get_value [00:30:17]process_action get_value done [00:30:17]requested_data is exist [00:30:17]produce_requested_data [00:30:17]requested_item fm.sale.total is exist - process it [00:30:17]SAM_PROTO_GetFMData [00:30:17]wFMCommunicate request_size=4 [00:30:17]MH_SAM_APDU [00:30:17]CAPDU: 80 13 03 00 [00:30:17]Write to MH i2c: E2 08 00 81 13 80 13 03 00 00 00 00 00 13 [00:30:17]Write i2c OK [00:30:17]MH_I2C_Read... [00:30:18]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:30:18]Read from MH i2c: E2 [00:30:18]MH_I2C_Read... [00:30:18]Read from MH i2c: E2 FD 00 [00:30:18]MH_I2C_Read... [00:30:18]Read from MH i2c: E2 FD 00 81 13 00 C4 04 85 04 C0 04 6E 04 04 00 84 81 02 00 69 04 A3 00 6F 04 04 00 76 80 02 00 B1 04 05 00 85 45 51 59 02 70 04 05 00 5D FE FF 36 02 72 04 04 00 28 47 51 22 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 89 A3 E1 3F 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 FE 9C 52 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 0E 01 00 00 B1 04 04 00 6C E5 46 03 70 04 04 00 6C E5 46 03 72 04 00 00 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 23 19 59 EF 03 09 00 90 00 2F [00:30:18]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 84 81 02 00 69 04 A3 00 6F 04 04 00 76 80 02 00 B1 04 05 00 85 45 51 59 02 70 04 05 00 5D FE FF 36 02 72 04 04 00 28 47 51 22 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 89 A3 E1 3F 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 FE 9C 52 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 0E 01 00 00 B1 04 04 00 6C E5 46 03 70 04 04 00 6C E5 46 03 72 04 00 00 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 23 19 59 EF 03 09 00 90 00 [00:30:18]wFMCommunicate OK [00:30:18]wFMCommunicate request_size=4 [00:30:18]MH_SAM_APDU [00:30:18]CAPDU: 80 17 00 00 [00:30:18]Write to MH i2c: E2 08 00 82 13 80 17 00 00 00 00 00 00 15 [00:30:18]Write i2c OK [00:30:18]MH_I2C_Read... [00:30:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:18]Read from MH i2c: E2 [00:30:18]MH_I2C_Read... [00:30:18]Read from MH i2c: E2 FD 00 [00:30:18]MH_I2C_Read... [00:30:18]Read from MH i2c: E2 FD 00 82 13 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B1 6C 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 EF [00:30:18]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B1 6C 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:30:18]wFMCommunicate OK [00:30:18]wFMCommunicate request_size=4 [00:30:18]MH_SAM_APDU [00:30:18]CAPDU: 80 17 00 00 [00:30:18]Write to MH i2c: E2 08 00 83 13 80 17 00 00 00 00 00 00 16 [00:30:18]Write i2c OK [00:30:18]MH_I2C_Read... [00:30:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:18]Read from MH i2c: E2 [00:30:18]MH_I2C_Read... [00:30:18]Read from MH i2c: E2 FD 00 [00:30:18]MH_I2C_Read... [00:30:18]Read from MH i2c: E2 FD 00 83 13 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 2B [00:30:18]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:30:18]wFMCommunicate OK [00:30:18]wFMCommunicate request_size=4 [00:30:18]MH_SAM_APDU [00:30:18]CAPDU: 80 17 00 00 [00:30:18]Write to MH i2c: E2 08 00 84 13 80 17 00 00 00 00 00 00 17 [00:30:18]Write i2c OK [00:30:18]MH_I2C_Read... [00:30:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:19]Read from MH i2c: E2 [00:30:19]MH_I2C_Read... [00:30:19]Read from MH i2c: E2 FD 00 [00:30:19]MH_I2C_Read... [00:30:19]Read from MH i2c: E2 FD 00 84 13 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 8F [00:30:19]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:30:19]wFMCommunicate OK [00:30:19]wFMCommunicate request_size=4 [00:30:19]MH_SAM_APDU [00:30:19]CAPDU: 80 17 00 00 [00:30:19]Write to MH i2c: E2 08 00 85 13 80 17 00 00 00 00 00 00 18 [00:30:19]OFD Sender: No OFD packet to send [00:30:19]Write i2c OK [00:30:19]MH_I2C_Read... [00:30:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [00:30:19]Read from MH i2c: E2 [00:30:19]MH_I2C_Read... [00:30:19]Read from MH i2c: E2 E1 00 [00:30:19]MH_I2C_Read... [00:30:19]Read from MH i2c: E2 E1 00 85 13 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 06 [00:30:19]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:30:19]wFMCommunicate OK [00:30:19]SAM_PROTO_GetFMData done [00:30:19]requested_item fm.sale_refund.total is exist - process it [00:30:19]requested_item fm.buy.total is exist - process it [00:30:19]requested_item shift.sale.total is exist - process it [00:30:19]SAM_PROTO_GetShiftData [00:30:19]wFMCommunicate request_size=4 [00:30:19]MH_SAM_APDU [00:30:19]CAPDU: 80 13 02 00 [00:30:19]Write to MH i2c: E2 08 00 86 13 80 13 02 00 00 00 00 00 17 [00:30:19]Write i2c OK [00:30:19]MH_I2C_Read... [00:30:20]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:30:20]Read from MH i2c: E2 [00:30:20]MH_I2C_Read... [00:30:20]Read from MH i2c: E2 FD 00 [00:30:20]MH_I2C_Read... [00:30:20]Read from MH i2c: E2 FD 00 86 13 00 B1 04 AA 04 AD 04 6E 04 04 00 43 01 00 00 69 04 9E 00 6F 04 04 00 43 01 00 00 B1 04 04 00 1F AD 40 01 70 04 04 00 44 F1 14 01 72 04 03 00 DB BB 2B 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 EF 0F 22 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 79 D6 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 FF [00:30:20]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 43 01 00 00 69 04 9E 00 6F 04 04 00 43 01 00 00 B1 04 04 00 1F AD 40 01 70 04 04 00 44 F1 14 01 72 04 03 00 DB BB 2B 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 EF 0F 22 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 79 D6 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:30:20]wFMCommunicate OK [00:30:20]wFMCommunicate request_size=4 [00:30:20]MH_SAM_APDU [00:30:20]CAPDU: 80 17 00 00 [00:30:20]Write to MH i2c: E2 08 00 87 13 80 17 00 00 00 00 00 00 1A [00:30:20]Write i2c OK [00:30:20]MH_I2C_Read... [00:30:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:20]Read from MH i2c: E2 [00:30:20]MH_I2C_Read... [00:30:20]Read from MH i2c: E2 FD 00 [00:30:20]MH_I2C_Read... [00:30:20]Read from MH i2c: E2 FD 00 87 13 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 33 [00:30:20]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:30:20]wFMCommunicate OK [00:30:20]wFMCommunicate request_size=4 [00:30:20]MH_SAM_APDU [00:30:20]CAPDU: 80 17 00 00 [00:30:20]Write to MH i2c: E2 08 00 88 13 80 17 00 00 00 00 00 00 1B [00:30:20]Write i2c OK [00:30:20]MH_I2C_Read... [00:30:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:20]Read from MH i2c: E2 [00:30:20]MH_I2C_Read... [00:30:20]Read from MH i2c: E2 FD 00 [00:30:20]MH_I2C_Read... [00:30:20]Read from MH i2c: E2 FD 00 88 13 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D4 [00:30:20]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:30:21]wFMCommunicate OK [00:30:21]wFMCommunicate request_size=4 [00:30:21]MH_SAM_APDU [00:30:21]CAPDU: 80 17 00 00 [00:30:21]Write to MH i2c: E2 08 00 89 13 80 17 00 00 00 00 00 00 1C [00:30:21]Write i2c OK [00:30:21]MH_I2C_Read... [00:30:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:21]Read from MH i2c: E2 [00:30:21]MH_I2C_Read... [00:30:21]Read from MH i2c: E2 FD 00 [00:30:21]MH_I2C_Read... [00:30:21]Read from MH i2c: E2 FD 00 89 13 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 90 00 94 [00:30:21]RAPDU: 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 90 00 [00:30:21]wFMCommunicate OK [00:30:21]wFMCommunicate request_size=4 [00:30:21]MH_SAM_APDU [00:30:21]CAPDU: 80 17 00 00 [00:30:21]Write to MH i2c: E2 08 00 8A 13 80 17 00 00 00 00 00 00 1D [00:30:21]Write i2c OK [00:30:21]MH_I2C_Read... [00:30:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:30:21]Read from MH i2c: E2 [00:30:21]MH_I2C_Read... [00:30:21]Read from MH i2c: E2 CE 00 [00:30:21]MH_I2C_Read... [00:30:21]Read from MH i2c: E2 CE 00 8A 13 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 02 [00:30:21]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:30:21]wFMCommunicate OK [00:30:21]SAM_PROTO_GetShiftData done [00:30:21]requested_item shift.sale.total_cash is exist - process it [00:30:21]requested_item shift.sale_refund.total is exist - process it [00:30:21]requested_item shift.sale_refund.total_cash is exist - process it [00:30:21]requested_item shift.buy.total is exist - process it [00:30:21]requested_item shift.buy.total_cash is exist - process it [00:30:21]produce_requested_data done [00:30:21]produce_requested_data return {"fm.sale.total":100884330.29,"fm.sale_refund.total":549779.00,"fm.buy.total":0.00,"shift.sale.total":210158.39,"shift.sale.total_cash":181497.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:30:21]process_action_free get_value [00:30:21]json_value_free [00:30:21]json_value_free done [00:30:21]process_json_proto returns [00:30:21]Send response to host [00:30:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":100884330.29,"fm.sale_refund.total":549779.00,"fm.buy.total":0.00,"shift.sale.total":210158.39,"shift.sale.total_cash":181497.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:30:21]free response buf [00:30:21]execute_script done [00:30:21]execute_script returns [00:30:21]free content buf [00:30:21]Sock 7.Close socket [00:30:21]Sock 7.Thread stoped [00:30:21]accept exits with 9 [00:30:21]New connection [00:30:21]New thread 3066928484 created [00:30:21]Thread 3066785124 joined [00:30:21]Waiting for new connection... [00:30:21] Sock 9.Parse request [00:30:21]Sock 9.Check first char [00:30:21]Sock 9.First char is OK [00:30:21]request: POST /json_proto HTTP/1.0 [00:30:21]Method: POST [00:30:21]URL: /json_proto [00:30:21]Method is POST - this is cgi request [00:30:21]url: /json_proto [00:30:21]query_string will be loaded in cgi processing [00:30:21]execute_cgi json_proto POST (null) [00:30:21]execute_cgi path=json_proto method=POST [00:30:21]POST find Content-Length [00:30:21]Host: 172.17.56.4:8080 [00:30:21]Content-Length: 257 [00:30:21]Content-Type: application/json [00:30:21] [00:30:21]POST finish read [00:30:21]Found Content-Length = 257 [00:30:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041D\u0443\u0440\u043C\u0430\u0442\u043E\u0432 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:30:21]execute_script... [00:30:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041D\u0443\u0440\u043C\u0430\u0442\u043E\u0432 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:30:21]POST & json_proto [00:30:21]process_json_proto [00:30:21]json parsed OK: [00:30:21]protocol is kg_v1.0 [00:30:21]action value=x_report [00:30:21]process_action x_report [00:30:21]cmd_x_report [00:30:21]MH_GetDate [00:30:21]Write to MH i2c: F0 00 00 8B 13 8D [00:30:21]Write i2c OK [00:30:21]MH_I2C_Read... [00:30:21]Read from MH i2c: F0 [00:30:21]MH_I2C_Read... [00:30:21]Read from MH i2c: F0 09 00 [00:30:21]MH_I2C_Read... [00:30:21]Read from MH i2c: F0 09 00 8B 13 00 A0 6D 94 66 C9 DC B2 64 58 [00:30:21]GetLastDocTimeStamp 1721002627 [00:30:21]current date 1721003424 [00:30:21]FM_GetShiftState [00:30:21]SAM_PROTO_GetShiftState [00:30:21]wFMCommunicate request_size=4 [00:30:21]MH_SAM_APDU [00:30:21]CAPDU: 80 13 01 00 [00:30:21]Write to MH i2c: E2 08 00 8C 13 80 13 01 00 00 00 00 00 1C [00:30:21]Write i2c OK [00:30:21]MH_I2C_Read... [00:30:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:30:21]Read from MH i2c: E2 [00:30:21]MH_I2C_Read... [00:30:21]Read from MH i2c: E2 0E 00 [00:30:21]MH_I2C_Read... [00:30:21]Read from MH i2c: E2 0E 00 8C 13 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 9C [00:30:21]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [00:30:21]wFMCommunicate OK [00:30:21]SAM_PROTO_GetShiftState done [00:30:21]FM_GetShiftState done [00:30:21]KKMCreateXReportDocument [00:30:21]Load OK [00:30:21]Malloc new data [00:30:21]MH_GetDate [00:30:21]Write to MH i2c: F0 00 00 8D 13 8F [00:30:21]Write i2c OK [00:30:21]MH_I2C_Read... [00:30:21]Read from MH i2c: F0 [00:30:21]MH_I2C_Read... [00:30:21]Read from MH i2c: F0 09 00 [00:30:21]MH_I2C_Read... [00:30:21]Read from MH i2c: F0 09 00 8D 13 00 A0 6D 94 66 C9 DC B2 64 5A [00:30:21]Malloc new data [00:30:21]Malloc new data [00:30:21]wFMCommunicate request_size=4 [00:30:21]MH_SAM_APDU [00:30:21]CAPDU: 80 11 00 00 [00:30:21]Write to MH i2c: E2 08 00 8E 13 80 11 00 00 00 00 00 00 1B [00:30:21]Write i2c OK [00:30:21]MH_I2C_Read... [00:30:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:30:21]Read from MH i2c: E2 [00:30:21]MH_I2C_Read... [00:30:21]Read from MH i2c: E2 17 00 [00:30:21]MH_I2C_Read... [00:30:21]Read from MH i2c: E2 17 00 8E 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 71 [00:30:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [00:30:21]wFMCommunicate OK [00:30:21]SAM_PROTO_GetFieldsCounters [00:30:21]wFMCommunicate request_size=4 [00:30:21]MH_SAM_APDU [00:30:21]CAPDU: 80 13 00 00 [00:30:21]Write to MH i2c: E2 08 00 8F 13 80 13 00 00 00 00 00 00 1E [00:30:21]Write i2c OK [00:30:21]MH_I2C_Read... [00:30:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:30:22]Read from MH i2c: E2 [00:30:22]MH_I2C_Read... [00:30:22]Read from MH i2c: E2 62 00 [00:30:22]MH_I2C_Read... [00:30:22]Read from MH i2c: E2 62 00 8F 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 05 85 02 00 0E 04 04 00 BF 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 5D [00:30:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 05 85 02 00 0E 04 04 00 BF 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 [00:30:22]wFMCommunicate OK [00:30:22]SAM_PROTO_GetFieldsCounters done [00:30:22]Malloc new data [00:30:22]Malloc new data [00:30:22]Malloc new data [00:30:22]KKMCreateXReportDocument OK [00:30:22]KKMSetXReportData OK [00:30:22]KKMPrepareXReportFMData [00:30:22]SAM_PROTO_GetShiftData [00:30:22]wFMCommunicate request_size=4 [00:30:22]MH_SAM_APDU [00:30:22]CAPDU: 80 13 02 00 [00:30:22]Write to MH i2c: E2 08 00 90 13 80 13 02 00 00 00 00 00 21 [00:30:22]Write i2c OK [00:30:22]MH_I2C_Read... [00:30:22]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:30:22]Read from MH i2c: E2 [00:30:22]MH_I2C_Read... [00:30:22]Read from MH i2c: E2 FD 00 [00:30:22]MH_I2C_Read... [00:30:22]Read from MH i2c: E2 FD 00 90 13 00 B1 04 AA 04 AD 04 6E 04 04 00 43 01 00 00 69 04 9E 00 6F 04 04 00 43 01 00 00 B1 04 04 00 1F AD 40 01 70 04 04 00 44 F1 14 01 72 04 03 00 DB BB 2B 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 EF 0F 22 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 79 D6 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 09 [00:30:22]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 43 01 00 00 69 04 9E 00 6F 04 04 00 43 01 00 00 B1 04 04 00 1F AD 40 01 70 04 04 00 44 F1 14 01 72 04 03 00 DB BB 2B 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 EF 0F 22 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 79 D6 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:30:22]wFMCommunicate OK [00:30:22]wFMCommunicate request_size=4 [00:30:22]MH_SAM_APDU [00:30:22]CAPDU: 80 17 00 00 [00:30:22]Write to MH i2c: E2 08 00 91 13 80 17 00 00 00 00 00 00 24 [00:30:22]Write i2c OK [00:30:22]MH_I2C_Read... [00:30:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:23]Read from MH i2c: E2 [00:30:23]MH_I2C_Read... [00:30:23]Read from MH i2c: E2 FD 00 [00:30:23]MH_I2C_Read... [00:30:23]Read from MH i2c: E2 FD 00 91 13 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3D [00:30:23]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:30:23]wFMCommunicate OK [00:30:23]wFMCommunicate request_size=4 [00:30:23]MH_SAM_APDU [00:30:23]CAPDU: 80 17 00 00 [00:30:23]Write to MH i2c: E2 08 00 92 13 80 17 00 00 00 00 00 00 25 [00:30:23]Write i2c OK [00:30:23]MH_I2C_Read... [00:30:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:23]Read from MH i2c: E2 [00:30:23]MH_I2C_Read... [00:30:23]Read from MH i2c: E2 FD 00 [00:30:23]MH_I2C_Read... [00:30:23]Read from MH i2c: E2 FD 00 92 13 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 DE [00:30:23]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:30:23]wFMCommunicate OK [00:30:23]wFMCommunicate request_size=4 [00:30:23]MH_SAM_APDU [00:30:23]CAPDU: 80 17 00 00 [00:30:23]Write to MH i2c: E2 08 00 93 13 80 17 00 00 00 00 00 00 26 [00:30:23]Write i2c OK [00:30:23]MH_I2C_Read... [00:30:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:23]Read from MH i2c: E2 [00:30:23]MH_I2C_Read... [00:30:23]Read from MH i2c: E2 FD 00 [00:30:23]MH_I2C_Read... [00:30:23]Read from MH i2c: E2 FD 00 93 13 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 90 00 9E [00:30:24]RAPDU: 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 90 00 [00:30:24]wFMCommunicate OK [00:30:24]wFMCommunicate request_size=4 [00:30:24]MH_SAM_APDU [00:30:24]CAPDU: 80 17 00 00 [00:30:24]Write to MH i2c: E2 08 00 94 13 80 17 00 00 00 00 00 00 27 [00:30:24]Write i2c OK [00:30:24]MH_I2C_Read... [00:30:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:30:24]Read from MH i2c: E2 [00:30:24]MH_I2C_Read... [00:30:24]Read from MH i2c: E2 CE 00 [00:30:24]MH_I2C_Read... [00:30:24]Read from MH i2c: E2 CE 00 94 13 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0C [00:30:24]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:30:24]wFMCommunicate OK [00:30:24]SAM_PROTO_GetShiftData done [00:30:24]1194 (1197) - счетчики итогов смены [00:30:24] 1134 (4) - 323 - количество чеков со всеми признаками расчетов [00:30:24] 1129 (158) - счетчики операций «приход» [00:30:24] 1135 (4) - 323 - количество чеков по признаку расчетов [00:30:24] 1201 (4) - 210158.39 - общая итоговая сумма в чеках [00:30:24] 1136 (4) - 181497.00 - итоговая сумма в чеках наличными [00:30:24] OFD Sender: No OFD packet to send [00:30:24] 1138 (3) - 28661.39 - итоговая сумма в чеках безналичными [00:30:24] 1024 (123) - суммы налогов [00:30:24] 1006 (9) - суммы НДС [00:30:24] 1010 (1) - 0% - код ставки НДС [00:30:24] 1011 (0) - 0.00 - сумма НДС по ставке [00:30:24] 1006 (12) - суммы НДС [00:30:24] 1010 (1) - 12% - код ставки НДС [00:30:24] 1011 (3) - 22323.03 - сумма НДС по ставке [00:30:24] 1007 (9) - суммы НСП [00:30:24] 1014 (1) - 0% - код ставки НСП [00:30:24] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:24] 1007 (12) - суммы НСП [00:30:24] 1014 (1) - 1% - код ставки НСП [00:30:24] 1015 (3) - 1859.77 - сумма НСП по ставке [00:30:24] 1007 (9) - суммы НСП [00:30:24] 1014 (1) - 2% - код ставки НСП [00:30:24] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:24] 1007 (9) - суммы НСП [00:30:24] 1014 (1) - 3% - код ставки НСП [00:30:24] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:24] 1007 (9) - суммы НСП [00:30:24] 1014 (1) - 5% - код ставки НСП [00:30:24] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:24] 1007 (9) - суммы НСП [00:30:24] 1014 (1) - 0,50% - код ставки НСП [00:30:24] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:24] 1007 (9) - суммы НСП [00:30:24] 1014 (1) - 1,50% - код ставки НСП [00:30:24] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:24] 1130 (141) - счетчики операций «возврат прихода» [00:30:24] 1135 (4) - 0 - количество чеков по признаку расчетов [00:30:24] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:30:24] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:30:24] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:30:24] 1024 (117) - суммы налогов [00:30:24] 1006 (9) - суммы НДС [00:30:24] 1010 (1) - 0% - код ставки НДС [00:30:24] 1011 (0) - 0.00 - сумма НДС по ставке [00:30:24] 1006 (9) - суммы НДС [00:30:24] 1010 (1) - 12% - код ставки НДС [00:30:24] 1011 (0) - 0.00 - сумма НДС по ставке [00:30:24] 1007 (9) - суммы НСП [00:30:24] 1014 (1) - 0% - код ставки НСП [00:30:24] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:24] 1007 (9) - суммы НСП [00:30:24] 1014 (1) - 1% - код ставки НСП [00:30:24] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:24] 1007 (9) - суммы НСП [00:30:24] 1014 (1) - 2% - код ставки НСП [00:30:24] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:24] 1007 (9) - суммы НСП [00:30:24] 1014 (1) - 3% - код ставки НСП [00:30:24] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:24] 1007 (9) - суммы НСП [00:30:24] 1014 (1) - 5% - код ставки НСП [00:30:24] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:24] 1007 (9) - суммы НСП [00:30:24] 1014 (1) - 0,50% - код ставки НСП [00:30:24] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:24] 1007 (9) - суммы НСП [00:30:24] 1014 (1) - 1,50% - код ставки НСП [00:30:24] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:24] 1131 (141) - счетчики операций «расход» [00:30:24] 1135 (4) - 0 - количество чеков по признаку расчетов [00:30:24] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:30:24] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:30:24] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:30:24] 1024 (117) - суммы налогов [00:30:24] 1006 (9) - суммы НДС [00:30:24] 1010 (1) - 0% - код ставки НДС [00:30:24] 1011 (0) - 0.00 - сумма НДС по ставке [00:30:24] 1006 (9) - суммы НДС [00:30:24] 1010 (1) - 12% - код ставки НДС [00:30:24] 1011 (0) - 0.00 - сумма НДС по ставке [00:30:24] 1007 (9) - суммы НСП [00:30:24] 1014 (1) - 0% - код ставки НСП [00:30:24] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:24] 1007 (9) - суммы НСП [00:30:24] 1014 (1) - 1% - код ставки НСП [00:30:24] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:24] 1007 (9) - суммы НСП [00:30:24] 1014 (1) - 2% - код ставки НСП [00:30:24] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:24] 1007 (9) - суммы НСП [00:30:24] 1014 (1) - 3% - код ставки НСП [00:30:24] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:24] 1007 (9) - суммы НСП [00:30:24] 1014 (1) - 5% - код ставки НСП [00:30:24] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:24] 1007 (9) - суммы НСП [00:30:24] 1014 (1) - 0,50% - код ставки НСП [00:30:24] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:24] 1007 (9) - суммы НСП [00:30:24] 1014 (1) - 1,50% - код ставки НСП [00:30:24] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:24] 1132 (141) - счетчики операций «возврат расхода» [00:30:24] 1135 (4) - 0 - количество чеков по признаку расчетов [00:30:24] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:30:24] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:30:24] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:30:24] 1024 (117) - суммы налогов [00:30:24] 1006 (9) - суммы НДС [00:30:24] 1010 (1) - 0% - код ставки НДС [00:30:24] 1011 (0) - 0.00 - сумма НДС по ставке [00:30:24] 1006 (9) - суммы НДС [00:30:24] 1010 (1) - 12% - код ставки НДС [00:30:24] 1011 (0) - 0.00 - сумма НДС по ставке [00:30:24] 1007 (9) - суммы НСП [00:30:24] 1014 (1) - 0% - код ставки НСП [00:30:24] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:24] 1007 (9) - суммы НСП [00:30:24] 1014 (1) - 1% - код ставки НСП [00:30:24] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:24] 1007 (9) - суммы НСП [00:30:24] 1014 (1) - 2% - код ставки НСП [00:30:24] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:24] 1007 (9) - суммы НСП [00:30:24] 1014 (1) - 3% - код ставки НСП [00:30:24] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:24] 1007 (9) - суммы НСП [00:30:24] 1014 (1) - 5% - код ставки НСП [00:30:24] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:24] 1007 (9) - суммы НСП [00:30:24] 1014 (1) - 0,50% - код ставки НСП [00:30:24] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:24] 1007 (9) - суммы НСП [00:30:24] 1014 (1) - 1,50% - код ставки НСП [00:30:24] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:24] 1133 (588) - - счетчики коррекции - не используются [00:30:24]SetTLVBufToDocument [00:30:24]Processing tag 1194 (04AA) [00:30:24]Load OK [00:30:24]SetTLVBufToDocument [00:30:24]Processing tag 1134 (046E) [00:30:24]Malloc new data [00:30:24]Processing tag 1129 (0469) [00:30:24]Load OK [00:30:24]SetTLVBufToDocument [00:30:24]Processing tag 1135 (046F) [00:30:24]Malloc new data [00:30:24]Processing tag 1201 (04B1) [00:30:24]Malloc new data [00:30:24]Processing tag 1136 (0470) [00:30:24]Malloc new data [00:30:24]Processing tag 1138 (0472) [00:30:24]Malloc new data [00:30:24]Processing tag 1024 (0400) [00:30:24]Load OK [00:30:24]SetTLVBufToDocument [00:30:24]Processing tag 1006 (03EE) [00:30:24]Load OK [00:30:25]SetTLVBufToDocument [00:30:25]Processing tag 1010 (03F2) [00:30:25]Malloc new data [00:30:25]Processing tag 1011 (03F3) [00:30:25]Malloc new data [00:30:25]SetTLVBufToDocument err=0 [00:30:25]Processing tag 1006 (03EE) [00:30:25]Load OK [00:30:25]SetTLVBufToDocument [00:30:25]Processing tag 1010 (03F2) [00:30:25]Malloc new data [00:30:25]Processing tag 1011 (03F3) [00:30:25]Malloc new data [00:30:25]SetTLVBufToDocument err=0 [00:30:25]Processing tag 1007 (03EF) [00:30:25]Load OK [00:30:25]SetTLVBufToDocument [00:30:25]Processing tag 1014 (03F6) [00:30:25]Malloc new data [00:30:25]Processing tag 1015 (03F7) [00:30:25]Malloc new data [00:30:25]SetTLVBufToDocument err=0 [00:30:25]Processing tag 1007 (03EF) [00:30:25]Load OK [00:30:25]SetTLVBufToDocument [00:30:25]Processing tag 1014 (03F6) [00:30:25]Malloc new data [00:30:25]Processing tag 1015 (03F7) [00:30:25]Malloc new data [00:30:25]SetTLVBufToDocument err=0 [00:30:25]Processing tag 1007 (03EF) [00:30:25]Load OK [00:30:25]SetTLVBufToDocument [00:30:25]Processing tag 1014 (03F6) [00:30:25]Malloc new data [00:30:25]Processing tag 1015 (03F7) [00:30:25]Malloc new data [00:30:25]SetTLVBufToDocument err=0 [00:30:25]Processing tag 1007 (03EF) [00:30:25]Load OK [00:30:25]SetTLVBufToDocument [00:30:25]Processing tag 1014 (03F6) [00:30:25]Malloc new data [00:30:25]Processing tag 1015 (03F7) [00:30:25]Malloc new data [00:30:25]SetTLVBufToDocument err=0 [00:30:25]Processing tag 1007 (03EF) [00:30:25]Load OK [00:30:25]SetTLVBufToDocument [00:30:25]Processing tag 1014 (03F6) [00:30:25]Malloc new data [00:30:25]Processing tag 1015 (03F7) [00:30:25]Malloc new data [00:30:25]SetTLVBufToDocument err=0 [00:30:25]Processing tag 1007 (03EF) [00:30:25]Load OK [00:30:25]SetTLVBufToDocument [00:30:25]Processing tag 1014 (03F6) [00:30:25]Malloc new data [00:30:25]Processing tag 1015 (03F7) [00:30:25]Malloc new data [00:30:25]SetTLVBufToDocument err=0 [00:30:25]Processing tag 1007 (03EF) [00:30:25]Load OK [00:30:25]SetTLVBufToDocument [00:30:25]Processing tag 1014 (03F6) [00:30:25]Malloc new data [00:30:25]Processing tag 1015 (03F7) [00:30:25]Malloc new data [00:30:25]SetTLVBufToDocument err=0 [00:30:25]SetTLVBufToDocument err=0 [00:30:25]SetTLVBufToDocument err=0 [00:30:25]Processing tag 1130 (046A) [00:30:25]Load OK [00:30:25]SetTLVBufToDocument [00:30:25]Processing tag 1135 (046F) [00:30:25]Malloc new data [00:30:25]Processing tag 1201 (04B1) [00:30:25]Malloc new data [00:30:25]Processing tag 1136 (0470) [00:30:25]Malloc new data [00:30:25]Processing tag 1138 (0472) [00:30:25]Malloc new data [00:30:25]Processing tag 1024 (0400) [00:30:25]Load OK [00:30:25]SetTLVBufToDocument [00:30:25]Processing tag 1006 (03EE) [00:30:25]Load OK [00:30:25]SetTLVBufToDocument [00:30:25]Processing tag 1010 (03F2) [00:30:25]Malloc new data [00:30:25]Processing tag 1011 (03F3) [00:30:25]Malloc new data [00:30:25]SetTLVBufToDocument err=0 [00:30:25]Processing tag 1006 (03EE) [00:30:25]Load OK [00:30:25]SetTLVBufToDocument [00:30:25]Processing tag 1010 (03F2) [00:30:25]Malloc new data [00:30:25]Processing tag 1011 (03F3) [00:30:25]Malloc new data [00:30:25]SetTLVBufToDocument err=0 [00:30:25]Processing tag 1007 (03EF) [00:30:25]Load OK [00:30:25]SetTLVBufToDocument [00:30:25]Processing tag 1014 (03F6) [00:30:25]Malloc new data [00:30:25]Processing tag 1015 (03F7) [00:30:25]Malloc new data [00:30:25]SetTLVBufToDocument err=0 [00:30:25]Processing tag 1007 (03EF) [00:30:25]Load OK [00:30:25]SetTLVBufToDocument [00:30:25]Processing tag 1014 (03F6) [00:30:25]Malloc new data [00:30:25]Processing tag 1015 (03F7) [00:30:25]Malloc new data [00:30:25]SetTLVBufToDocument err=0 [00:30:25]Processing tag 1007 (03EF) [00:30:25]Load OK [00:30:25]SetTLVBufToDocument [00:30:25]Processing tag 1014 (03F6) [00:30:25]Malloc new data [00:30:25]Processing tag 1015 (03F7) [00:30:25]Malloc new data [00:30:25]SetTLVBufToDocument err=0 [00:30:25]Processing tag 1007 (03EF) [00:30:25]Load OK [00:30:25]SetTLVBufToDocument [00:30:25]Processing tag 1014 (03F6) [00:30:25]Malloc new data [00:30:25]Processing tag 1015 (03F7) [00:30:25]Malloc new data [00:30:25]SetTLVBufToDocument err=0 [00:30:25]Processing tag 1007 (03EF) [00:30:25]Load OK [00:30:25]SetTLVBufToDocument [00:30:25]Processing tag 1014 (03F6) [00:30:25]Malloc new data [00:30:25]Processing tag 1015 (03F7) [00:30:25]Malloc new data [00:30:25]SetTLVBufToDocument err=0 [00:30:25]Processing tag 1007 (03EF) [00:30:25]Load OK [00:30:25]SetTLVBufToDocument [00:30:25]Processing tag 1014 (03F6) [00:30:25]Malloc new data [00:30:25]Processing tag 1015 (03F7) [00:30:25]Malloc new data [00:30:25]SetTLVBufToDocument err=0 [00:30:25]Processing tag 1007 (03EF) [00:30:25]Load OK [00:30:25]SetTLVBufToDocument [00:30:25]Processing tag 1014 (03F6) [00:30:25]Malloc new data [00:30:25]Processing tag 1015 (03F7) [00:30:25]Malloc new data [00:30:25]SetTLVBufToDocument err=0 [00:30:25]SetTLVBufToDocument err=0 [00:30:25]SetTLVBufToDocument err=0 [00:30:25]Processing tag 1131 (046B) [00:30:25]Load OK [00:30:25]SetTLVBufToDocument [00:30:25]Processing tag 1135 (046F) [00:30:25]Malloc new data [00:30:25]Processing tag 1201 (04B1) [00:30:25]Malloc new data [00:30:25]Processing tag 1136 (0470) [00:30:25]Malloc new data [00:30:25]Processing tag 1138 (0472) [00:30:25]Malloc new data [00:30:25]Processing tag 1024 (0400) [00:30:25]Load OK [00:30:25]SetTLVBufToDocument [00:30:25]Processing tag 1006 (03EE) [00:30:25]Load OK [00:30:25]SetTLVBufToDocument [00:30:25]Processing tag 1010 (03F2) [00:30:25]Malloc new data [00:30:25]Processing tag 1011 (03F3) [00:30:25]Malloc new data [00:30:25]SetTLVBufToDocument err=0 [00:30:25]Processing tag 1006 (03EE) [00:30:25]Load OK [00:30:25]SetTLVBufToDocument [00:30:25]Processing tag 1010 (03F2) [00:30:25]Malloc new data [00:30:25]Processing tag 1011 (03F3) [00:30:25]Malloc new data [00:30:25]SetTLVBufToDocument err=0 [00:30:25]Processing tag 1007 (03EF) [00:30:25]Load OK [00:30:25]SetTLVBufToDocument [00:30:25]Processing tag 1014 (03F6) [00:30:25]Malloc new data [00:30:25]Processing tag 1015 (03F7) [00:30:25]Malloc new data [00:30:25]SetTLVBufToDocument err=0 [00:30:25]Processing tag 1007 (03EF) [00:30:25]Load OK [00:30:25]SetTLVBufToDocument [00:30:25]Processing tag 1014 (03F6) [00:30:25]Malloc new data [00:30:25]Processing tag 1015 (03F7) [00:30:25]Malloc new data [00:30:25]SetTLVBufToDocument err=0 [00:30:25]Processing tag 1007 (03EF) [00:30:25]Load OK [00:30:25]SetTLVBufToDocument [00:30:25]Processing tag 1014 (03F6) [00:30:25]Malloc new data [00:30:25]Processing tag 1015 (03F7) [00:30:25]Malloc new data [00:30:25]SetTLVBufToDocument err=0 [00:30:25]Processing tag 1007 (03EF) [00:30:25]Load OK [00:30:25]SetTLVBufToDocument [00:30:25]Processing tag 1014 (03F6) [00:30:25]Malloc new data [00:30:25]Processing tag 1015 (03F7) [00:30:25]Malloc new data [00:30:25]SetTLVBufToDocument err=0 [00:30:25]Processing tag 1007 (03EF) [00:30:25]Load OK [00:30:25]SetTLVBufToDocument [00:30:25]Processing tag 1014 (03F6) [00:30:25]Malloc new data [00:30:25]Processing tag 1015 (03F7) [00:30:25]Malloc new data [00:30:25]SetTLVBufToDocument err=0 [00:30:25]Processing tag 1007 (03EF) [00:30:25]Load OK [00:30:25]SetTLVBufToDocument [00:30:25]Processing tag 1014 (03F6) [00:30:25]Malloc new data [00:30:25]Processing tag 1015 (03F7) [00:30:25]Malloc new data [00:30:25]SetTLVBufToDocument err=0 [00:30:25]Processing tag 1007 (03EF) [00:30:25]Load OK [00:30:25]SetTLVBufToDocument [00:30:25]Processing tag 1014 (03F6) [00:30:25]Malloc new data [00:30:25]Processing tag 1015 (03F7) [00:30:25]Malloc new data [00:30:25]SetTLVBufToDocument err=0 [00:30:25]SetTLVBufToDocument err=0 [00:30:25]SetTLVBufToDocument err=0 [00:30:25]Processing tag 1132 (046C) [00:30:25]Load OK [00:30:25]SetTLVBufToDocument [00:30:25]Processing tag 1135 (046F) [00:30:25]Malloc new data [00:30:25]Processing tag 1201 (04B1) [00:30:25]Malloc new data [00:30:25]Processing tag 1136 (0470) [00:30:25]Malloc new data [00:30:25]Processing tag 1138 (0472) [00:30:25]Malloc new data [00:30:25]Processing tag 1024 (0400) [00:30:25]Load OK [00:30:25]SetTLVBufToDocument [00:30:25]Processing tag 1006 (03EE) [00:30:25]Load OK [00:30:25]SetTLVBufToDocument [00:30:25]Processing tag 1010 (03F2) [00:30:25]Malloc new data [00:30:25]Processing tag 1011 (03F3) [00:30:25]Malloc new data [00:30:25]SetTLVBufToDocument err=0 [00:30:25]Processing tag 1006 (03EE) [00:30:25]Load OK [00:30:25]SetTLVBufToDocument [00:30:25]Processing tag 1010 (03F2) [00:30:25]Malloc new data [00:30:25]Processing tag 1011 (03F3) [00:30:25]Malloc new data [00:30:25]SetTLVBufToDocument err=0 [00:30:25]Processing tag 1007 (03EF) [00:30:25]Load OK [00:30:25]SetTLVBufToDocument [00:30:25]Processing tag 1014 (03F6) [00:30:25]Malloc new data [00:30:25]Processing tag 1015 (03F7) [00:30:25]Malloc new data [00:30:25]SetTLVBufToDocument err=0 [00:30:25]Processing tag 1007 (03EF) [00:30:25]Load OK [00:30:25]SetTLVBufToDocument [00:30:25]Processing tag 1014 (03F6) [00:30:25]Malloc new data [00:30:25]Processing tag 1015 (03F7) [00:30:25]Malloc new data [00:30:25]SetTLVBufToDocument err=0 [00:30:25]Processing tag 1007 (03EF) [00:30:25]Load OK [00:30:25]SetTLVBufToDocument [00:30:25]Processing tag 1014 (03F6) [00:30:25]Malloc new data [00:30:25]Processing tag 1015 (03F7) [00:30:25]Malloc new data [00:30:25]SetTLVBufToDocument err=0 [00:30:25]Processing tag 1007 (03EF) [00:30:25]Load OK [00:30:25]SetTLVBufToDocument [00:30:25]Processing tag 1014 (03F6) [00:30:25]Malloc new data [00:30:25]Processing tag 1015 (03F7) [00:30:25]Malloc new data [00:30:25]SetTLVBufToDocument err=0 [00:30:25]Processing tag 1007 (03EF) [00:30:25]Load OK [00:30:25]SetTLVBufToDocument [00:30:25]Processing tag 1014 (03F6) [00:30:25]Malloc new data [00:30:25]Processing tag 1015 (03F7) [00:30:25]Malloc new data [00:30:25]SetTLVBufToDocument err=0 [00:30:25]Processing tag 1007 (03EF) [00:30:25]Load OK [00:30:25]SetTLVBufToDocument [00:30:25]Processing tag 1014 (03F6) [00:30:25]Malloc new data [00:30:25]Processing tag 1015 (03F7) [00:30:25]Malloc new data [00:30:25]SetTLVBufToDocument err=0 [00:30:25]Processing tag 1007 (03EF) [00:30:25]Load OK [00:30:25]SetTLVBufToDocument [00:30:25]Processing tag 1014 (03F6) [00:30:25]Malloc new data [00:30:25]Processing tag 1015 (03F7) [00:30:25]Malloc new data [00:30:25]SetTLVBufToDocument err=0 [00:30:25]SetTLVBufToDocument err=0 [00:30:25]SetTLVBufToDocument err=0 [00:30:25]Processing tag 1133 (046D) [00:30:25]Malloc new data [00:30:25]SetTLVBufToDocument err=0 [00:30:25]SetTLVBufToDocument err=0 [00:30:25]Malloc new data [00:30:25]SAM_PROTO_GetFMData [00:30:25]wFMCommunicate request_size=4 [00:30:25]MH_SAM_APDU [00:30:25]CAPDU: 80 13 03 00 [00:30:25]Write to MH i2c: E2 08 00 95 13 80 13 03 00 00 00 00 00 27 [00:30:25]Write i2c OK [00:30:25]MH_I2C_Read... [00:30:26]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:30:26]Read from MH i2c: E2 [00:30:26]MH_I2C_Read... [00:30:26]Read from MH i2c: E2 FD 00 [00:30:26]MH_I2C_Read... [00:30:26]Read from MH i2c: E2 FD 00 95 13 00 C4 04 85 04 C0 04 6E 04 04 00 84 81 02 00 69 04 A3 00 6F 04 04 00 76 80 02 00 B1 04 05 00 85 45 51 59 02 70 04 05 00 5D FE FF 36 02 72 04 04 00 28 47 51 22 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 89 A3 E1 3F 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 FE 9C 52 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 0E 01 00 00 B1 04 04 00 6C E5 46 03 70 04 04 00 6C E5 46 03 72 04 00 00 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 23 19 59 EF 03 09 00 90 00 43 [00:30:26]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 84 81 02 00 69 04 A3 00 6F 04 04 00 76 80 02 00 B1 04 05 00 85 45 51 59 02 70 04 05 00 5D FE FF 36 02 72 04 04 00 28 47 51 22 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 89 A3 E1 3F 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 FE 9C 52 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 0E 01 00 00 B1 04 04 00 6C E5 46 03 70 04 04 00 6C E5 46 03 72 04 00 00 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 23 19 59 EF 03 09 00 90 00 [00:30:26]wFMCommunicate OK [00:30:26]wFMCommunicate request_size=4 [00:30:26]MH_SAM_APDU [00:30:26]CAPDU: 80 17 00 00 [00:30:26]Write to MH i2c: E2 08 00 96 13 80 17 00 00 00 00 00 00 29 [00:30:26]Write i2c OK [00:30:26]MH_I2C_Read... [00:30:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:26]Read from MH i2c: E2 [00:30:26]MH_I2C_Read... [00:30:26]Read from MH i2c: E2 FD 00 [00:30:26]MH_I2C_Read... [00:30:26]Read from MH i2c: E2 FD 00 96 13 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B1 6C 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 03 [00:30:26]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B1 6C 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:30:27]wFMCommunicate OK [00:30:27]wFMCommunicate request_size=4 [00:30:27]MH_SAM_APDU [00:30:27]CAPDU: 80 17 00 00 [00:30:27]Write to MH i2c: E2 08 00 97 13 80 17 00 00 00 00 00 00 2A [00:30:27]Write i2c OK [00:30:27]MH_I2C_Read... [00:30:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:27]Read from MH i2c: E2 [00:30:27]MH_I2C_Read... [00:30:27]Read from MH i2c: E2 FD 00 [00:30:27]MH_I2C_Read... [00:30:27]Read from MH i2c: E2 FD 00 97 13 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3F [00:30:27]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:30:27]wFMCommunicate OK [00:30:27]wFMCommunicate request_size=4 [00:30:27]MH_SAM_APDU [00:30:27]CAPDU: 80 17 00 00 [00:30:27]Write to MH i2c: E2 08 00 98 13 80 17 00 00 00 00 00 00 2B [00:30:27]Write i2c OK [00:30:27]MH_I2C_Read... [00:30:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:27]Read from MH i2c: E2 [00:30:27]MH_I2C_Read... [00:30:27]Read from MH i2c: E2 FD 00 [00:30:27]MH_I2C_Read... [00:30:27]Read from MH i2c: E2 FD 00 98 13 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A3 [00:30:27]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:30:28]wFMCommunicate OK [00:30:28]wFMCommunicate request_size=4 [00:30:28]MH_SAM_APDU [00:30:28]CAPDU: 80 17 00 00 [00:30:28]Write to MH i2c: E2 08 00 99 13 80 17 00 00 00 00 00 00 2C [00:30:28]Write i2c OK [00:30:28]MH_I2C_Read... [00:30:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [00:30:28]Read from MH i2c: E2 [00:30:28]MH_I2C_Read... [00:30:28]Read from MH i2c: E2 E1 00 [00:30:28]MH_I2C_Read... [00:30:28]Read from MH i2c: E2 E1 00 99 13 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 1A [00:30:28]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:30:28]wFMCommunicate OK [00:30:28]SAM_PROTO_GetFMData done [00:30:28]FM_GetFMData:85 04 C0 04 6E 04 04 00 84 81 02 00 69 04 A3 00 6F 04 04 00 76 80 02 00 B1 04 05 00 85 45 51 59 02 70 04 05 00 5D FE FF 36 02 72 04 04 00 28 47 51 22 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 89 A3 E1 3F 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 FE 9C 52 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 0E 01 00 00 B1 04 04 00 6C E5 46 03 70 04 04 00 6C E5 46 03 72 04 00 00 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 23 19 59 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 B1 6C 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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:30:29]oper:6F 04 04 00 76 80 02 00 B1 04 05 00 85 45 51 59 02 70 04 05 00 5D FE FF 36 02 72 04 04 00 28 47 51 22 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 89 A3 E1 3F 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 FE 9C 52 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:30:29]total:85 45 51 59 02 [00:30:29]Malloc new data [00:30:29]oper:6F 04 04 00 0E 01 00 00 B1 04 04 00 6C E5 46 03 70 04 04 00 6C E5 46 03 72 04 00 00 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 23 19 59 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 B1 6C 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:30:29]total:6C E5 46 03 [00:30:29]Malloc new data [00:30:29]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:30:29]total: [00:30:29]Malloc new data [00:30:29]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:30:29]total: [00:30:29]Malloc new data [00:30:29]KKMPrepareXReportFMData err=0 [00:30:29]Х отчет ИНН: 02508201610067 Кассир: Нурматов Н. 15.07.2024 00:30 Смена: 266 РНМ: 0000000000090829 ЗНМ: 0300000160 СНО: Общий режим Всего чеков: 323 ИТОГИ ПРИХОД Чеков: 323 Общий итог: 210158.39 Итого наличными: 181497.00 Итого безнал.: 28661.39 НДС 0% : 0.00 НДС 12% : 22323.03 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 1859.77 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 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 Нал. в кассе: 181497.00 НС Приход: 100884330.29 НС Возвр.Прихода: 549779.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000874718 [00:30:29]StoreToDocumentArchive [00:30:29]MH_GetDate [00:30:29]Write to MH i2c: F0 00 00 9A 13 9C [00:30:29]Write i2c OK [00:30:29]MH_I2C_Read... [00:30:29]Read from MH i2c: F0 [00:30:29]MH_I2C_Read... [00:30:29]Read from MH i2c: F0 09 00 [00:30:29]MH_I2C_Read... [00:30:29]Read from MH i2c: F0 09 00 9A 13 00 A8 6D 94 66 C9 DC B2 64 6F [00:30:29]shift 266 fd 1721003432 [00:30:29]Create dir for shift 0266 [00:30:29]save to /storage/0266/doc_1721003432 [00:30:29]save last doc name /storage/0266/doc_1721003432 to /storage/kkm_last_doc_name [00:30:29]save OK [00:30:29]Clear old archive folders... [00:30:29]NVStorageSaveData kkm_last_timestamp [00:30:29]File name is /storage/kkm_last_timestamp [00:30:29]Write 4 bytes [00:30:29]NVStorageSaveData done [00:30:29]ExternCall_PrintAddStr [00:30:29]wPrintStart [00:30:29]Write to MH i2c: 01 00 00 9B 13 AE [00:30:29]Write i2c OK [00:30:29]MH_I2C_Read... [00:30:29]Read from MH i2c: 01 [00:30:29]MH_I2C_Read... [00:30:29]Read from MH i2c: 01 07 00 [00:30:29]MH_I2C_Read... [00:30:29]Read from MH i2c: 01 07 00 9B 13 00 00 00 00 00 FF 0F C3 [00:30:29]RasterBufferAndPrint [00:30:29]line Х отчет [00:30:29]line ИНН: 02508201610067 [00:30:29]line Кассир: Нурматов Н. [00:30:29]line 15.07.2024 00:30 [00:30:29]line Смена: 266 [00:30:29]line РНМ: 0000000000090829 [00:30:29]line ЗНМ: 0300000160 [00:30:29]line СНО: Общий режим [00:30:29]line Всего чеков: 323 [00:30:29]line ИТОГИ ПРИХОД [00:30:29]line Чеков: 323 [00:30:29]line Общий итог: 210158.39 [00:30:29]line Итого наличными: 181497.00 [00:30:29]line Итого безнал.: 28661.39 [00:30:29]line НДС 0% : 0.00 [00:30:29]line НДС 12% : 22323.03 [00:30:29]line НСП 0% : 0.00 [00:30:29]line НСП 1,50% : 0.00 [00:30:29]line НСП 0,50% : 0.00 [00:30:29]line НСП 5% : 0.00 [00:30:29]line НСП 3% : 0.00 [00:30:29]line НСП 2% : 0.00 [00:30:29]line НСП 1% : 1859.77 [00:30:29]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:30:29]line Чеков: 0 [00:30:29]line Общий итог: 0.00 [00:30:29]line Итого наличными: 0.00 [00:30:29]line Итого безнал.: 0.00 [00:30:29]line НДС 0% : 0.00 [00:30:29]line НДС 12% : 0.00 [00:30:29]line НСП 0% : 0.00 [00:30:29]line НСП 1,50% : 0.00 [00:30:29]line НСП 0,50% : 0.00 [00:30:29]line НСП 5% : 0.00 [00:30:29]line НСП 3% : 0.00 [00:30:29]line НСП 2% : 0.00 [00:30:29]line НСП 1% : 0.00 [00:30:29]line ИТОГИ РАСХОД [00:30:29]line Чеков: 0 [00:30:29]line Общий итог: 0.00 [00:30:29]line Итого наличными: 0.00 [00:30:29]line Итого безнал.: 0.00 [00:30:29]line НДС 0% : 0.00 [00:30:29]line НДС 12% : 0.00 [00:30:29]line НСП 0% : 0.00 [00:30:29]line НСП 1,50% : 0.00 [00:30:29]line НСП 0,50% : 0.00 [00:30:29]line НСП 5% : 0.00 [00:30:29]line НСП 3% : 0.00 [00:30:29]line НСП 2% : 0.00 [00:30:29]line НСП 1% : 0.00 [00:30:29]line ИТОГИ ВОЗВРАТ РАСХОДА [00:30:29]line Чеков: 0 [00:30:29]line Общий итог: 0.00 [00:30:29]line Итого наличными: 0.00 [00:30:29]line Итого безнал.: 0.00 [00:30:29]line НДС 0% : 0.00 [00:30:29]line НДС 12% : 0.00 [00:30:29]line НСП 0% : 0.00 [00:30:29]line НСП 1,50% : 0.00 [00:30:29]line НСП 0,50% : 0.00 [00:30:29]line НСП 5% : 0.00 [00:30:29]line НСП 3% : 0.00 [00:30:29]line НСП 2% : 0.00 [00:30:29]line НСП 1% : 0.00 [00:30:29]line Сумма внесений: 0.00 [00:30:29]line Сумма выплат: 0.00 [00:30:29]line Нал. в кассе: 181497.00 [00:30:29]line НС Приход: 100884330.29 [00:30:29]line НС Возвр.Прихода: 549779.00 [00:30:29]line НС Расход: 0.00 [00:30:29]line НС Возвр.Расхода: 0.00 [00:30:29]line ФМ: 0000000000874718 [00:30:29]OFD Sender: No OFD packet to send [00:30:29]written 0, free lines is 4095 [00:30:30]Write to MH i2c: 01 00 00 E6 13 F9 [00:30:30]Write i2c OK [00:30:30]MH_I2C_Read... [00:30:30]Read from MH i2c: 01 [00:30:30]MH_I2C_Read... [00:30:30]Read from MH i2c: 01 07 00 [00:30:30]MH_I2C_Read... [00:30:30]Read from MH i2c: 01 07 00 E6 13 00 00 00 00 00 2A 0B 35 [00:30:30]RasterBufferAndPrint [00:30:30]line [00:30:30]line [00:30:30]line [00:30:30]line [00:30:30]line [00:30:30]written 0, free lines is 2895 [00:30:30]MH_Cut [00:30:30]Write to MH i2c: D1 01 00 ED 13 01 D2 [00:30:30]Write i2c OK [00:30:30]MH_I2C_Read... [00:30:30]Read from MH i2c: D1 [00:30:30]MH_I2C_Read... [00:30:30]Read from MH i2c: D1 01 00 [00:30:30]MH_I2C_Read... [00:30:30]Read from MH i2c: D1 01 00 ED 13 00 D1 [00:30:30]Write to MH i2c: 01 00 00 EE 13 01 [00:30:30]Write i2c OK [00:30:30]MH_I2C_Read... [00:30:31]*** Cut start [00:30:31]*** Partial cut [00:30:31]*** CUTSNS_PIN = 1 [00:30:31]*** CUTSNS_PIN = 0 [00:30:31]*** Brake cut motor [00:30:32]Read from MH i2c: 01 [00:30:32]MH_I2C_Read... [00:30:32]*** Stop cut motor [00:30:32]*** Cut end [00:30:32]Read from MH i2c: 01 07 00 [00:30:32]MH_I2C_Read... [00:30:32]Read from MH i2c: 01 07 00 EE 13 00 00 00 00 00 FF 0F 16 [00:30:32]process_action x_report done [00:30:32]requested_data is exist [00:30:32]produce_requested_data [00:30:32]requested_item fd.num is exist - process it [00:30:32]SAM_PROTO_GetFieldsCounters [00:30:32]wFMCommunicate request_size=4 [00:30:32]MH_SAM_APDU [00:30:32]CAPDU: 80 13 00 00 [00:30:32]Write to MH i2c: E2 08 00 EF 13 80 13 00 00 00 00 00 00 7E [00:30:32]Write i2c OK [00:30:32]MH_I2C_Read... [00:30:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:30:32]Read from MH i2c: E2 [00:30:32]MH_I2C_Read... [00:30:32]Read from MH i2c: E2 62 00 [00:30:32]MH_I2C_Read... [00:30:32]Read from MH i2c: E2 62 00 EF 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 05 85 02 00 0E 04 04 00 BF 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 BD [00:30:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 05 85 02 00 0E 04 04 00 BF 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 [00:30:32]wFMCommunicate OK [00:30:32]SAM_PROTO_GetFieldsCounters done [00:30:32]requested_item shift.num is exist - process it [00:30:32]requested_item shift.opened is exist - process it [00:30:32]req_shift_opened [00:30:32]FM_GetShiftState [00:30:32]SAM_PROTO_GetShiftState [00:30:32]wFMCommunicate request_size=4 [00:30:32]MH_SAM_APDU [00:30:32]CAPDU: 80 13 01 00 [00:30:32]Write to MH i2c: E2 08 00 F0 13 80 13 01 00 00 00 00 00 80 [00:30:32]Write i2c OK [00:30:32]MH_I2C_Read... [00:30:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:30:32]Read from MH i2c: E2 [00:30:32]MH_I2C_Read... [00:30:32]Read from MH i2c: E2 0E 00 [00:30:32]MH_I2C_Read... [00:30:32]Read from MH i2c: E2 0E 00 F0 13 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 00 [00:30:32]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [00:30:32]wFMCommunicate OK [00:30:32]SAM_PROTO_GetShiftState done [00:30:32]FM_GetShiftState done [00:30:32]req_shift_opened done [00:30:32]requested_item shift.open_date is exist - process it [00:30:32]req_shift_open_date [00:30:32]req_shift_open_date done [00:30:32]produce_requested_data done [00:30:32]produce_requested_data return {"fd.num":165125,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [00:30:32]process_action_free x_report [00:30:32]json_value_free [00:30:32]json_value_free done [00:30:32]process_json_proto returns [00:30:32]Send response to host [00:30:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":165125,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [00:30:32]free response buf [00:30:32]execute_script done [00:30:32]execute_script returns [00:30:32]free content buf [00:30:32]Sock 9.Close socket [00:30:32]Sock 9.Thread stoped [00:30:34]OFD Sender: No OFD packet to send [00:30:36]accept exits with 7 [00:30:36]New connection [00:30:36]New thread 3066785124 created [00:30:36]Thread 3066928484 joined [00:30:36]Waiting for new connection... [00:30:36] Sock 7.Parse request [00:30:36]Sock 7.Check first char [00:30:36]Sock 7.First char is OK [00:30:36]request: POST /json_proto HTTP/1.0 [00:30:36]Method: POST [00:30:36]URL: /json_proto [00:30:36]Method is POST - this is cgi request [00:30:36]url: /json_proto [00:30:36]query_string will be loaded in cgi processing [00:30:36]execute_cgi json_proto POST (null) [00:30:36]execute_cgi path=json_proto method=POST [00:30:36]POST find Content-Length [00:30:36]Host: 172.17.56.4:8080 [00:30:36]Content-Length: 215 [00:30:36]Content-Type: application/json [00:30:36] [00:30:36]POST finish read [00:30:36]Found Content-Length = 215 [00:30:36]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:30:36]execute_script... [00:30:36]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:30:36]POST & json_proto [00:30:36]process_json_proto [00:30:36]json parsed OK: [00:30:36]protocol is kg_v1.0 [00:30:36]action value=get_value [00:30:36]process_action get_value [00:30:36]cmd_get_value [00:30:36]process_action get_value done [00:30:36]requested_data is exist [00:30:36]produce_requested_data [00:30:36]requested_item kkm.sn is exist - process it [00:30:36]requested_item kkm.ver is exist - process it [00:30:36]requested_item fm.sn is exist - process it [00:30:36]wFMCommunicate request_size=4 [00:30:36]MH_SAM_APDU [00:30:36]CAPDU: 80 11 00 00 [00:30:36]Write to MH i2c: E2 08 00 F1 13 80 11 00 00 00 00 00 00 7E [00:30:36]Write i2c OK [00:30:36]MH_I2C_Read... [00:30:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:30:36]Read from MH i2c: E2 [00:30:36]MH_I2C_Read... [00:30:36]Read from MH i2c: E2 17 00 [00:30:36]MH_I2C_Read... [00:30:36]Read from MH i2c: E2 17 00 F1 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D4 [00:30:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [00:30:36]wFMCommunicate OK [00:30:36]requested_item fd.num is exist - process it [00:30:36]SAM_PROTO_GetFieldsCounters [00:30:36]wFMCommunicate request_size=4 [00:30:36]MH_SAM_APDU [00:30:36]CAPDU: 80 13 00 00 [00:30:36]Write to MH i2c: E2 08 00 F2 13 80 13 00 00 00 00 00 00 81 [00:30:36]Write i2c OK [00:30:36]MH_I2C_Read... [00:30:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:30:36]Read from MH i2c: E2 [00:30:36]MH_I2C_Read... [00:30:36]Read from MH i2c: E2 62 00 [00:30:36]MH_I2C_Read... [00:30:36]Read from MH i2c: E2 62 00 F2 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 05 85 02 00 0E 04 04 00 BF 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 C0 [00:30:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 05 85 02 00 0E 04 04 00 BF 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 [00:30:36]wFMCommunicate OK [00:30:36]SAM_PROTO_GetFieldsCounters done [00:30:36]requested_item shift.num is exist - process it [00:30:36]requested_item shift.opened is exist - process it [00:30:36]req_shift_opened [00:30:36]FM_GetShiftState [00:30:36]SAM_PROTO_GetShiftState [00:30:36]wFMCommunicate request_size=4 [00:30:36]MH_SAM_APDU [00:30:36]CAPDU: 80 13 01 00 [00:30:36]Write to MH i2c: E2 08 00 F3 13 80 13 01 00 00 00 00 00 83 [00:30:36]Write i2c OK [00:30:36]MH_I2C_Read... [00:30:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:30:36]Read from MH i2c: E2 [00:30:36]MH_I2C_Read... [00:30:36]Read from MH i2c: E2 0E 00 [00:30:36]MH_I2C_Read... [00:30:36]Read from MH i2c: E2 0E 00 F3 13 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 03 [00:30:36]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [00:30:36]wFMCommunicate OK [00:30:36]SAM_PROTO_GetShiftState done [00:30:36]FM_GetShiftState done [00:30:36]req_shift_opened done [00:30:36]requested_item shift.open_date is exist - process it [00:30:36]req_shift_open_date [00:30:36]req_shift_open_date done [00:30:36]produce_requested_data done [00:30:36]produce_requested_data return {"kkm.sn":"0300000160","kkm.ver":"001","fm.sn":"0000000000874718","fd.num":165125,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342} [00:30:36]process_action_free get_value [00:30:36]json_value_free [00:30:36]json_value_free done [00:30:36]process_json_proto returns [00:30:36]Send response to host [00:30:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000160","kkm.ver":"001","fm.sn":"0000000000874718","fd.num":165125,"shift.num":447,"shift.opened":1,"shift.open_date":1720917342}}} [00:30:36]free response buf [00:30:36]execute_script done [00:30:36]execute_script returns [00:30:36]free content buf [00:30:36]Sock 7.Close socket [00:30:36]Sock 7.Thread stoped [00:30:36]accept exits with 9 [00:30:36]New connection [00:30:36]New thread 3066928484 created [00:30:36]Thread 3066785124 joined [00:30:36]Waiting for new connection... [00:30:36] Sock 9.Parse request [00:30:36]Sock 9.Check first char [00:30:36]Sock 9.First char is OK [00:30:36]request: POST /json_proto HTTP/1.0 [00:30:36]Method: POST [00:30:36]URL: /json_proto [00:30:36]Method is POST - this is cgi request [00:30:36]url: /json_proto [00:30:36]query_string will be loaded in cgi processing [00:30:36]execute_cgi json_proto POST (null) [00:30:36]execute_cgi path=json_proto method=POST [00:30:36]POST find Content-Length [00:30:36]Host: 172.17.56.4:8080 [00:30:36]Content-Length: 331 [00:30:36]Content-Type: application/json [00:30:36] [00:30:36]POST finish read [00:30:36]Found Content-Length = 331 [00:30:36]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:30:36]execute_script... [00:30:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:30:36]POST & json_proto [00:30:36]process_json_proto [00:30:36]json parsed OK: [00:30:36]protocol is kg_v1.0 [00:30:36]action value=get_value [00:30:36]process_action get_value [00:30:36]cmd_get_value [00:30:36]process_action get_value done [00:30:36]requested_data is exist [00:30:36]produce_requested_data [00:30:36]requested_item fm.sale.total is exist - process it [00:30:36]SAM_PROTO_GetFMData [00:30:36]wFMCommunicate request_size=4 [00:30:36]MH_SAM_APDU [00:30:36]CAPDU: 80 13 03 00 [00:30:36]Write to MH i2c: E2 08 00 F4 13 80 13 03 00 00 00 00 00 86 [00:30:36]Write i2c OK [00:30:36]MH_I2C_Read... [00:30:37]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:30:37]Read from MH i2c: E2 [00:30:37]MH_I2C_Read... [00:30:37]Read from MH i2c: E2 FD 00 [00:30:37]MH_I2C_Read... [00:30:37]Read from MH i2c: E2 FD 00 F4 13 00 C4 04 85 04 C0 04 6E 04 04 00 84 81 02 00 69 04 A3 00 6F 04 04 00 76 80 02 00 B1 04 05 00 85 45 51 59 02 70 04 05 00 5D FE FF 36 02 72 04 04 00 28 47 51 22 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 89 A3 E1 3F 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 FE 9C 52 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 0E 01 00 00 B1 04 04 00 6C E5 46 03 70 04 04 00 6C E5 46 03 72 04 00 00 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 23 19 59 EF 03 09 00 90 00 A2 [00:30:37]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 84 81 02 00 69 04 A3 00 6F 04 04 00 76 80 02 00 B1 04 05 00 85 45 51 59 02 70 04 05 00 5D FE FF 36 02 72 04 04 00 28 47 51 22 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 89 A3 E1 3F 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 FE 9C 52 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 0E 01 00 00 B1 04 04 00 6C E5 46 03 70 04 04 00 6C E5 46 03 72 04 00 00 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 23 19 59 EF 03 09 00 90 00 [00:30:37]wFMCommunicate OK [00:30:37]wFMCommunicate request_size=4 [00:30:37]MH_SAM_APDU [00:30:37]CAPDU: 80 17 00 00 [00:30:37]Write to MH i2c: E2 08 00 F5 13 80 17 00 00 00 00 00 00 88 [00:30:37]Write i2c OK [00:30:37]MH_I2C_Read... [00:30:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:37]Read from MH i2c: E2 [00:30:37]MH_I2C_Read... [00:30:37]Read from MH i2c: E2 FD 00 [00:30:37]MH_I2C_Read... [00:30:37]Read from MH i2c: E2 FD 00 F5 13 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B1 6C 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 62 [00:30:37]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B1 6C 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:30:37]wFMCommunicate OK [00:30:37]wFMCommunicate request_size=4 [00:30:37]MH_SAM_APDU [00:30:37]CAPDU: 80 17 00 00 [00:30:37]Write to MH i2c: E2 08 00 F6 13 80 17 00 00 00 00 00 00 89 [00:30:37]Write i2c OK [00:30:37]MH_I2C_Read... [00:30:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:38]Read from MH i2c: E2 [00:30:38]MH_I2C_Read... [00:30:38]Read from MH i2c: E2 FD 00 [00:30:38]MH_I2C_Read... [00:30:38]Read from MH i2c: E2 FD 00 F6 13 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 9E [00:30:38]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:30:38]wFMCommunicate OK [00:30:38]wFMCommunicate request_size=4 [00:30:38]MH_SAM_APDU [00:30:38]CAPDU: 80 17 00 00 [00:30:38]Write to MH i2c: E2 08 00 F7 13 80 17 00 00 00 00 00 00 8A [00:30:38]Write i2c OK [00:30:38]MH_I2C_Read... [00:30:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:38]Read from MH i2c: E2 [00:30:38]MH_I2C_Read... [00:30:38]Read from MH i2c: E2 FD 00 [00:30:38]MH_I2C_Read... [00:30:38]Read from MH i2c: E2 FD 00 F7 13 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 02 [00:30:38]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:30:38]wFMCommunicate OK [00:30:38]wFMCommunicate request_size=4 [00:30:38]MH_SAM_APDU [00:30:38]CAPDU: 80 17 00 00 [00:30:38]Write to MH i2c: E2 08 00 F8 13 80 17 00 00 00 00 00 00 8B [00:30:38]Write i2c OK [00:30:38]MH_I2C_Read... [00:30:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [00:30:39]Read from MH i2c: E2 [00:30:39]MH_I2C_Read... [00:30:39]Read from MH i2c: E2 E1 00 [00:30:39]MH_I2C_Read... [00:30:39]Read from MH i2c: E2 E1 00 F8 13 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 79 [00:30:39]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:30:39]wFMCommunicate OK [00:30:39]SAM_PROTO_GetFMData done [00:30:39]requested_item fm.sale_refund.total is exist - process it [00:30:39]requested_item fm.buy.total is exist - process it [00:30:39]requested_item shift.sale.total is exist - process it [00:30:39]SAM_PROTO_GetShiftData [00:30:39]wFMCommunicate request_size=4 [00:30:39]MH_SAM_APDU [00:30:39]CAPDU: 80 13 02 00 [00:30:39]Write to MH i2c: E2 08 00 F9 13 80 13 02 00 00 00 00 00 8A [00:30:39]Write i2c OK [00:30:39]MH_I2C_Read... [00:30:39]OFD Sender: No OFD packet to send [00:30:39]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:30:39]Read from MH i2c: E2 [00:30:39]MH_I2C_Read... [00:30:39]Read from MH i2c: E2 FD 00 [00:30:39]MH_I2C_Read... [00:30:39]Read from MH i2c: E2 FD 00 F9 13 00 B1 04 AA 04 AD 04 6E 04 04 00 43 01 00 00 69 04 9E 00 6F 04 04 00 43 01 00 00 B1 04 04 00 1F AD 40 01 70 04 04 00 44 F1 14 01 72 04 03 00 DB BB 2B 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 EF 0F 22 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 79 D6 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 72 [00:30:40]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 43 01 00 00 69 04 9E 00 6F 04 04 00 43 01 00 00 B1 04 04 00 1F AD 40 01 70 04 04 00 44 F1 14 01 72 04 03 00 DB BB 2B 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 EF 0F 22 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 79 D6 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:30:40]wFMCommunicate OK [00:30:40]wFMCommunicate request_size=4 [00:30:40]MH_SAM_APDU [00:30:40]CAPDU: 80 17 00 00 [00:30:40]Write to MH i2c: E2 08 00 FA 13 80 17 00 00 00 00 00 00 8D [00:30:40]Write i2c OK [00:30:40]MH_I2C_Read... [00:30:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:40]Read from MH i2c: E2 [00:30:40]MH_I2C_Read... [00:30:40]Read from MH i2c: E2 FD 00 [00:30:40]MH_I2C_Read... [00:30:40]Read from MH i2c: E2 FD 00 FA 13 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A6 [00:30:40]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:30:40]wFMCommunicate OK [00:30:40]wFMCommunicate request_size=4 [00:30:40]MH_SAM_APDU [00:30:40]CAPDU: 80 17 00 00 [00:30:40]Write to MH i2c: E2 08 00 FB 13 80 17 00 00 00 00 00 00 8E [00:30:40]Write i2c OK [00:30:40]MH_I2C_Read... [00:30:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:41]Read from MH i2c: E2 [00:30:41]MH_I2C_Read... [00:30:41]Read from MH i2c: E2 FD 00 [00:30:41]MH_I2C_Read... [00:30:41]Read from MH i2c: E2 FD 00 FB 13 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 47 [00:30:41]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:30:41]wFMCommunicate OK [00:30:41]wFMCommunicate request_size=4 [00:30:41]MH_SAM_APDU [00:30:41]CAPDU: 80 17 00 00 [00:30:41]Write to MH i2c: E2 08 00 FC 13 80 17 00 00 00 00 00 00 8F [00:30:41]Write i2c OK [00:30:41]MH_I2C_Read... [00:30:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:41]Read from MH i2c: E2 [00:30:41]MH_I2C_Read... [00:30:41]Read from MH i2c: E2 FD 00 [00:30:41]MH_I2C_Read... [00:30:41]Read from MH i2c: E2 FD 00 FC 13 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 90 00 07 [00:30:41]RAPDU: 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 90 00 [00:30:42]wFMCommunicate OK [00:30:42]wFMCommunicate request_size=4 [00:30:42]MH_SAM_APDU [00:30:42]CAPDU: 80 17 00 00 [00:30:42]Write to MH i2c: E2 08 00 FD 13 80 17 00 00 00 00 00 00 90 [00:30:42]Write i2c OK [00:30:42]MH_I2C_Read... [00:30:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:30:42]Read from MH i2c: E2 [00:30:42]MH_I2C_Read... [00:30:42]Read from MH i2c: E2 CE 00 [00:30:42]MH_I2C_Read... [00:30:42]Read from MH i2c: E2 CE 00 FD 13 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:30:42]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:30:42]wFMCommunicate OK [00:30:42]SAM_PROTO_GetShiftData done [00:30:42]requested_item shift.sale.total_cash is exist - process it [00:30:42]requested_item shift.sale_refund.total is exist - process it [00:30:42]requested_item shift.sale_refund.total_cash is exist - process it [00:30:42]requested_item shift.buy.total is exist - process it [00:30:42]requested_item shift.buy.total_cash is exist - process it [00:30:42]produce_requested_data done [00:30:42]produce_requested_data return {"fm.sale.total":100884330.29,"fm.sale_refund.total":549779.00,"fm.buy.total":0.00,"shift.sale.total":210158.39,"shift.sale.total_cash":181497.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:30:42]process_action_free get_value [00:30:42]json_value_free [00:30:42]json_value_free done [00:30:42]process_json_proto returns [00:30:42]Send response to host [00:30:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":100884330.29,"fm.sale_refund.total":549779.00,"fm.buy.total":0.00,"shift.sale.total":210158.39,"shift.sale.total_cash":181497.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:30:42]free response buf [00:30:42]execute_script done [00:30:42]execute_script returns [00:30:42]free content buf [00:30:42]Sock 9.Close socket [00:30:42]Sock 9.Thread stoped [00:30:42]accept exits with 7 [00:30:42]New connection [00:30:42]New thread 3066785124 created [00:30:42]Thread 3066928484 joined [00:30:42]Waiting for new connection... [00:30:42] Sock 7.Parse request [00:30:42]Sock 7.Check first char [00:30:42]Sock 7.First char is OK [00:30:42]request: POST /json_proto HTTP/1.0 [00:30:42]Method: POST [00:30:42]URL: /json_proto [00:30:42]Method is POST - this is cgi request [00:30:42]url: /json_proto [00:30:42]query_string will be loaded in cgi processing [00:30:42]execute_cgi json_proto POST (null) [00:30:42]execute_cgi path=json_proto method=POST [00:30:42]POST find Content-Length [00:30:42]Host: 172.17.56.4:8080 [00:30:42]Content-Length: 331 [00:30:42]Content-Type: application/json [00:30:42] [00:30:42]POST finish read [00:30:42]Found Content-Length = 331 [00:30: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" ] } } [00:30:42]execute_script... [00:30: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" ] } } [00:30:42]POST & json_proto [00:30:42]process_json_proto [00:30:42]json parsed OK: [00:30:42]protocol is kg_v1.0 [00:30:42]action value=get_value [00:30:42]process_action get_value [00:30:42]cmd_get_value [00:30:42]process_action get_value done [00:30:42]requested_data is exist [00:30:42]produce_requested_data [00:30:42]requested_item fm.sale.total is exist - process it [00:30:42]SAM_PROTO_GetFMData [00:30:42]wFMCommunicate request_size=4 [00:30:42]MH_SAM_APDU [00:30:42]CAPDU: 80 13 03 00 [00:30:42]Write to MH i2c: E2 08 00 FE 13 80 13 03 00 00 00 00 00 90 [00:30:42]Write i2c OK [00:30:42]MH_I2C_Read... [00:30:43]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:30:43]Read from MH i2c: E2 [00:30:43]MH_I2C_Read... [00:30:43]Read from MH i2c: E2 FD 00 [00:30:43]MH_I2C_Read... [00:30:43]Read from MH i2c: E2 FD 00 FE 13 00 C4 04 85 04 C0 04 6E 04 04 00 84 81 02 00 69 04 A3 00 6F 04 04 00 76 80 02 00 B1 04 05 00 85 45 51 59 02 70 04 05 00 5D FE FF 36 02 72 04 04 00 28 47 51 22 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 89 A3 E1 3F 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 FE 9C 52 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 0E 01 00 00 B1 04 04 00 6C E5 46 03 70 04 04 00 6C E5 46 03 72 04 00 00 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 23 19 59 EF 03 09 00 90 00 AC [00:30:43]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 84 81 02 00 69 04 A3 00 6F 04 04 00 76 80 02 00 B1 04 05 00 85 45 51 59 02 70 04 05 00 5D FE FF 36 02 72 04 04 00 28 47 51 22 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 89 A3 E1 3F 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 FE 9C 52 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 0E 01 00 00 B1 04 04 00 6C E5 46 03 70 04 04 00 6C E5 46 03 72 04 00 00 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 23 19 59 EF 03 09 00 90 00 [00:30:43]wFMCommunicate OK [00:30:43]wFMCommunicate request_size=4 [00:30:43]MH_SAM_APDU [00:30:43]CAPDU: 80 17 00 00 [00:30:43]Write to MH i2c: E2 08 00 FF 13 80 17 00 00 00 00 00 00 92 [00:30:43]Write i2c OK [00:30:43]MH_I2C_Read... [00:30:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:43]Read from MH i2c: E2 [00:30:43]MH_I2C_Read... [00:30:43]Read from MH i2c: E2 FD 00 [00:30:43]MH_I2C_Read... [00:30:43]Read from MH i2c: E2 FD 00 FF 13 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B1 6C 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 6C [00:30:43]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B1 6C 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:30:44]wFMCommunicate OK [00:30:44]wFMCommunicate request_size=4 [00:30:44]MH_SAM_APDU [00:30:44]CAPDU: 80 17 00 00 [00:30:44]Write to MH i2c: E2 08 00 00 14 80 17 00 00 00 00 00 00 94 [00:30:44]Write i2c OK [00:30:44]MH_I2C_Read... [00:30:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:44]Read from MH i2c: E2 [00:30:44]MH_I2C_Read... [00:30:44]Read from MH i2c: E2 FD 00 [00:30:44]MH_I2C_Read... [00:30:44]Read from MH i2c: E2 FD 00 00 14 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A9 [00:30:44]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:30:44]wFMCommunicate OK [00:30:44]wFMCommunicate request_size=4 [00:30:44]MH_SAM_APDU [00:30:44]CAPDU: 80 17 00 00 [00:30:44]Write to MH i2c: E2 08 00 01 14 80 17 00 00 00 00 00 00 95 [00:30:44]Write i2c OK [00:30:44]MH_I2C_Read... [00:30:44]OFD Sender: No OFD packet to send [00:30:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:44]Read from MH i2c: E2 [00:30:44]MH_I2C_Read... [00:30:44]Read from MH i2c: E2 FD 00 [00:30:44]MH_I2C_Read... [00:30:44]Read from MH i2c: E2 FD 00 01 14 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 0D [00:30:45]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:30:45]wFMCommunicate OK [00:30:45]wFMCommunicate request_size=4 [00:30:45]MH_SAM_APDU [00:30:45]CAPDU: 80 17 00 00 [00:30:45]Write to MH i2c: E2 08 00 02 14 80 17 00 00 00 00 00 00 96 [00:30:45]Write i2c OK [00:30:45]MH_I2C_Read... [00:30:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [00:30:45]Read from MH i2c: E2 [00:30:45]MH_I2C_Read... [00:30:45]Read from MH i2c: E2 E1 00 [00:30:45]MH_I2C_Read... [00:30:45]Read from MH i2c: E2 E1 00 02 14 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 84 [00:30:45]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:30:45]wFMCommunicate OK [00:30:45]SAM_PROTO_GetFMData done [00:30:45]requested_item fm.sale_refund.total is exist - process it [00:30:45]requested_item fm.buy.total is exist - process it [00:30:45]requested_item shift.sale.total is exist - process it [00:30:45]SAM_PROTO_GetShiftData [00:30:45]wFMCommunicate request_size=4 [00:30:45]MH_SAM_APDU [00:30:45]CAPDU: 80 13 02 00 [00:30:45]Write to MH i2c: E2 08 00 03 14 80 13 02 00 00 00 00 00 95 [00:30:45]Write i2c OK [00:30:45]MH_I2C_Read... [00:30:46]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:30:46]Read from MH i2c: E2 [00:30:46]MH_I2C_Read... [00:30:46]Read from MH i2c: E2 FD 00 [00:30:46]MH_I2C_Read... [00:30:46]Read from MH i2c: E2 FD 00 03 14 00 B1 04 AA 04 AD 04 6E 04 04 00 43 01 00 00 69 04 9E 00 6F 04 04 00 43 01 00 00 B1 04 04 00 1F AD 40 01 70 04 04 00 44 F1 14 01 72 04 03 00 DB BB 2B 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 EF 0F 22 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 79 D6 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 7D [00:30:46]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 43 01 00 00 69 04 9E 00 6F 04 04 00 43 01 00 00 B1 04 04 00 1F AD 40 01 70 04 04 00 44 F1 14 01 72 04 03 00 DB BB 2B 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 EF 0F 22 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 79 D6 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:30:46]wFMCommunicate OK [00:30:46]wFMCommunicate request_size=4 [00:30:46]MH_SAM_APDU [00:30:46]CAPDU: 80 17 00 00 [00:30:46]Write to MH i2c: E2 08 00 04 14 80 17 00 00 00 00 00 00 98 [00:30:46]Write i2c OK [00:30:46]MH_I2C_Read... [00:30:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:47]Read from MH i2c: E2 [00:30:47]MH_I2C_Read... [00:30:47]Read from MH i2c: E2 FD 00 [00:30:47]MH_I2C_Read... [00:30:47]Read from MH i2c: E2 FD 00 04 14 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B1 [00:30:47]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:30:47]wFMCommunicate OK [00:30:47]wFMCommunicate request_size=4 [00:30:47]MH_SAM_APDU [00:30:47]CAPDU: 80 17 00 00 [00:30:47]Write to MH i2c: E2 08 00 05 14 80 17 00 00 00 00 00 00 99 [00:30:47]Write i2c OK [00:30:47]MH_I2C_Read... [00:30:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:47]Read from MH i2c: E2 [00:30:47]MH_I2C_Read... [00:30:47]Read from MH i2c: E2 FD 00 [00:30:47]MH_I2C_Read... [00:30:47]Read from MH i2c: E2 FD 00 05 14 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 52 [00:30:48]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:30:48]wFMCommunicate OK [00:30:48]wFMCommunicate request_size=4 [00:30:48]MH_SAM_APDU [00:30:48]CAPDU: 80 17 00 00 [00:30:48]Write to MH i2c: E2 08 00 06 14 80 17 00 00 00 00 00 00 9A [00:30:48]Write i2c OK [00:30:48]MH_I2C_Read... [00:30:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:48]Read from MH i2c: E2 [00:30:48]MH_I2C_Read... [00:30:48]Read from MH i2c: E2 FD 00 [00:30:48]MH_I2C_Read... [00:30:48]Read from MH i2c: E2 FD 00 06 14 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 90 00 12 [00:30:48]RAPDU: 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 90 00 [00:30:48]wFMCommunicate OK [00:30:48]wFMCommunicate request_size=4 [00:30:48]MH_SAM_APDU [00:30:48]CAPDU: 80 17 00 00 [00:30:48]Write to MH i2c: E2 08 00 07 14 80 17 00 00 00 00 00 00 9B [00:30:48]Write i2c OK [00:30:48]MH_I2C_Read... [00:30:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:30:49]Read from MH i2c: E2 [00:30:49]MH_I2C_Read... [00:30:49]Read from MH i2c: E2 CE 00 [00:30:49]MH_I2C_Read... [00:30:49]Read from MH i2c: E2 CE 00 07 14 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:30:49]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:30:49]wFMCommunicate OK [00:30:49]SAM_PROTO_GetShiftData done [00:30:49]requested_item shift.sale.total_cash is exist - process it [00:30:49]requested_item shift.sale_refund.total is exist - process it [00:30:49]requested_item shift.sale_refund.total_cash is exist - process it [00:30:49]requested_item shift.buy.total is exist - process it [00:30:49]requested_item shift.buy.total_cash is exist - process it [00:30:49]produce_requested_data done [00:30:49]produce_requested_data return {"fm.sale.total":100884330.29,"fm.sale_refund.total":549779.00,"fm.buy.total":0.00,"shift.sale.total":210158.39,"shift.sale.total_cash":181497.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:30:49]process_action_free get_value [00:30:49]json_value_free [00:30:49]json_value_free done [00:30:49]process_json_proto returns [00:30:49]Send response to host [00:30:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":100884330.29,"fm.sale_refund.total":549779.00,"fm.buy.total":0.00,"shift.sale.total":210158.39,"shift.sale.total_cash":181497.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:30:49]free response buf [00:30:49]execute_script done [00:30:49]execute_script returns [00:30:49]free content buf [00:30:49]Sock 7.Close socket [00:30:49]Sock 7.Thread stoped [00:30:49]accept exits with 9 [00:30:49]New connection [00:30:49]New thread 3066928484 created [00:30:49]Thread 3066785124 joined [00:30:49]Waiting for new connection... [00:30:49] Sock 9.Parse request [00:30:49]Sock 9.Check first char [00:30:49]Sock 9.First char is OK [00:30:49]request: POST /json_proto HTTP/1.0 [00:30:49]Method: POST [00:30:49]URL: /json_proto [00:30:49]Method is POST - this is cgi request [00:30:49]url: /json_proto [00:30:49]query_string will be loaded in cgi processing [00:30:49]execute_cgi json_proto POST (null) [00:30:49]execute_cgi path=json_proto method=POST [00:30:49]POST find Content-Length [00:30:49]Host: 172.17.56.4:8080 [00:30:49]Content-Length: 260 [00:30:49]Content-Type: application/json [00:30:49] [00:30:49]POST finish read [00:30:49]Found Content-Length = 260 [00:30:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041D\u0443\u0440\u043C\u0430\u0442\u043E\u0432 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:30:49]execute_script... [00:30:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041D\u0443\u0440\u043C\u0430\u0442\u043E\u0432 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:30:49]POST & json_proto [00:30:49]process_json_proto [00:30:49]json parsed OK: [00:30:49]protocol is kg_v1.0 [00:30:49]action value=close_shift [00:30:49]process_action close_shift [00:30:49]cmd_close_shift [00:30:49]MH_GetDate [00:30:49]Write to MH i2c: F0 00 00 08 14 0B [00:30:49]Write i2c OK [00:30:49]MH_I2C_Read... [00:30:49]Read from MH i2c: F0 [00:30:49]MH_I2C_Read... [00:30:49]Read from MH i2c: F0 09 00 [00:30:49]MH_I2C_Read... [00:30:49]Read from MH i2c: F0 09 00 08 14 00 BB 6D 94 66 C9 DC B2 64 F1 [00:30:49]GetLastDocTimeStamp 1721003424 [00:30:49]current date 1721003451 [00:30:49]FM_GetShiftState [00:30:49]SAM_PROTO_GetShiftState [00:30:49]wFMCommunicate request_size=4 [00:30:49]MH_SAM_APDU [00:30:49]CAPDU: 80 13 01 00 [00:30:49]Write to MH i2c: E2 08 00 09 14 80 13 01 00 00 00 00 00 9A [00:30:49]Write i2c OK [00:30:49]MH_I2C_Read... [00:30:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:30:49]Read from MH i2c: E2 [00:30:49]MH_I2C_Read... [00:30:49]Read from MH i2c: E2 0E 00 [00:30:49]MH_I2C_Read... [00:30:49]Read from MH i2c: E2 0E 00 09 14 00 09 00 01 5E 1D 93 66 00 00 00 00 90 00 1A [00:30:49]RAPDU: 09 00 01 5E 1D 93 66 00 00 00 00 90 00 [00:30:49]wFMCommunicate OK [00:30:49]SAM_PROTO_GetShiftState done [00:30:49]FM_GetShiftState done [00:30:49]KKMCreateCloseShiftDocument [00:30:49]Load OK [00:30:49]Malloc new data [00:30:49]MH_GetDate [00:30:49]Write to MH i2c: F0 00 00 0A 14 0D [00:30:49]Write i2c OK [00:30:49]MH_I2C_Read... [00:30:49]Read from MH i2c: F0 [00:30:49]MH_I2C_Read... [00:30:49]Read from MH i2c: F0 09 00 [00:30:49]MH_I2C_Read... [00:30:49]Read from MH i2c: F0 09 00 0A 14 00 BC 6D 94 66 C9 DC B2 64 F4 [00:30:49]Malloc new data [00:30:49]Malloc new data [00:30:49]Malloc new data [00:30:49]Malloc new data [00:30:49]KKMCreateCloseShiftDocument OK [00:30:49]KKMSetCloseShiftData OK [00:30:49]ProcessDocumentItem done err = 0, tmpTLVsize=71 [00:30:49]tlvbuf is 014AD120 [00:30:49]KKMLoadAndSignCloseShiftData [00:30:49]SAM_PROTO_ProcessDocument [00:30:49]wFMCommunicate request_size=9 [00:30:49]MH_SAM_APDU [00:30:49]CAPDU: 80 15 01 00 04 05 00 47 00 [00:30:49]Write to MH i2c: E2 0C 00 0B 14 80 15 01 00 04 00 05 00 47 00 00 00 F2 [00:30:49]Write i2c OK [00:30:49]MH_I2C_Read... [00:30:49]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:30:49]Read from MH i2c: E2 [00:30:49]MH_I2C_Read... [00:30:49]Read from MH i2c: E2 03 00 [00:30:49]MH_I2C_Read... [00:30:49]Read from MH i2c: E2 03 00 0B 14 00 90 00 93 [00:30:49]RAPDU: 90 00 [00:30:49]wFMCommunicate OK [00:30:49]wFMCommunicate request_size=23 [00:30:49]MH_SAM_APDU [00:30:49]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:30:49]Write to MH i2c: E2 1A 00 0C 14 80 15 02 00 12 00 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 00 00 95 [00:30:49]Write i2c OK [00:30:49]MH_I2C_Read... [00:30:49]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:30:49]Read from MH i2c: E2 [00:30:49]MH_I2C_Read... [00:30:49]Read from MH i2c: E2 03 00 [00:30:49]MH_I2C_Read... [00:30:49]Read from MH i2c: E2 03 00 0C 14 00 90 00 94 [00:30:49]RAPDU: 90 00 [00:30:50]wFMCommunicate OK [00:30:50]wFMCommunicate request_size=30 [00:30:50]MH_SAM_APDU [00:30:50]CAPDU: 80 15 02 00 19 FD 03 15 00 D0 9D D1 83 D1 80 D0 BC D0 B0 D1 82 D0 BE D0 B2 20 D0 9D 2E 20 [00:30:50]Write to MH i2c: E2 21 00 0D 14 80 15 02 00 19 00 FD 03 15 00 D0 9D D1 83 D1 80 D0 BC D0 B0 D1 82 D0 BE D0 B2 20 D0 9D 2E 20 00 00 44 [00:30:50]OFD Sender: No OFD packet to send [00:30:50]Write i2c OK [00:30:50]MH_I2C_Read... [00:30:50]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:30:50]Read from MH i2c: E2 [00:30:50]MH_I2C_Read... [00:30:50]Read from MH i2c: E2 03 00 [00:30:50]MH_I2C_Read... [00:30:50]Read from MH i2c: E2 03 00 0D 14 00 90 00 95 [00:30:50]RAPDU: 90 00 [00:30:50]wFMCommunicate OK [00:30:50]wFMCommunicate request_size=13 [00:30:50]MH_SAM_APDU [00:30:50]CAPDU: 80 15 02 00 08 F4 03 04 00 BC 6D 94 66 [00:30:50]Write to MH i2c: E2 10 00 0E 14 80 15 02 00 08 00 F4 03 04 00 BC 6D 94 66 00 00 D0 [00:30:50]Write i2c OK [00:30:50]MH_I2C_Read... [00:30:50]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:30:50]Read from MH i2c: E2 [00:30:50]MH_I2C_Read... [00:30:50]Read from MH i2c: E2 03 00 [00:30:50]MH_I2C_Read... [00:30:50]Read from MH i2c: E2 03 00 0E 14 00 90 00 96 [00:30:50]RAPDU: 90 00 [00:30:50]wFMCommunicate OK [00:30:50]wFMCommunicate request_size=25 [00:30:50]MH_SAM_APDU [00:30:50]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 [00:30:50]Write to MH i2c: E2 1C 00 0F 14 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 00 00 08 [00:30:50]Write i2c OK [00:30:50]MH_I2C_Read... [00:30:50]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:30:50]Read from MH i2c: E2 [00:30:50]MH_I2C_Read... [00:30:50]Read from MH i2c: E2 03 00 [00:30:50]MH_I2C_Read... [00:30:50]Read from MH i2c: E2 03 00 0F 14 00 90 00 97 [00:30:50]RAPDU: 90 00 [00:30:50]wFMCommunicate OK [00:30:50]wFMCommunicate request_size=4 [00:30:50]MH_SAM_APDU [00:30:50]CAPDU: 80 15 03 00 [00:30:50]Write to MH i2c: E2 08 00 10 14 80 15 03 00 00 00 00 00 A5 [00:30:50]Write i2c OK [00:30:50]MH_I2C_Read... [00:30:50]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:30:50]Read from MH i2c: E2 [00:30:50]MH_I2C_Read... [00:30:50]Read from MH i2c: E2 FD 00 [00:30:50]MH_I2C_Read... [00:30:50]Read from MH i2c: E2 FD 00 10 14 00 F4 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 06 85 02 00 0E 04 04 00 BF 01 00 00 5E 04 04 00 43 01 00 00 57 04 04 00 45 01 00 00 AA 04 AD 04 6E 04 04 00 43 01 00 00 69 04 9E 00 6F 04 04 00 43 01 00 00 B1 04 04 00 1F AD 40 01 70 04 04 00 44 F1 14 01 72 04 03 00 DB BB 2B 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 EF 0F 22 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 79 D6 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 FA [00:30:51]RAPDU: F4 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 06 85 02 00 0E 04 04 00 BF 01 00 00 5E 04 04 00 43 01 00 00 57 04 04 00 45 01 00 00 AA 04 AD 04 6E 04 04 00 43 01 00 00 69 04 9E 00 6F 04 04 00 43 01 00 00 B1 04 04 00 1F AD 40 01 70 04 04 00 44 F1 14 01 72 04 03 00 DB BB 2B 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 EF 0F 22 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 79 D6 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 [00:30:51]wFMCommunicate OK [00:30:51]SAM_PROTO_ProcessDocument answer len = 1268 [00:30:51]SAM_PROTO_ProcessDocument remain to read = 1020 [00:30:51]wFMCommunicate request_size=4 [00:30:51]MH_SAM_APDU [00:30:51]CAPDU: 80 17 00 00 [00:30:51]Write to MH i2c: E2 08 00 11 14 80 17 00 00 00 00 00 00 A5 [00:30:51]Write i2c OK [00:30:51]MH_I2C_Read... [00:30:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:51]Read from MH i2c: E2 [00:30:51]MH_I2C_Read... [00:30:51]Read from MH i2c: E2 FD 00 [00:30:51]MH_I2C_Read... [00:30:51]Read from MH i2c: E2 FD 00 11 14 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F9 [00:30:51]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:30:52]wFMCommunicate OK [00:30:52]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:30:52]SAM_PROTO_ProcessDocument remain to read = 770 [00:30:52]wFMCommunicate request_size=4 [00:30:52]MH_SAM_APDU [00:30:52]CAPDU: 80 17 00 00 [00:30:52]Write to MH i2c: E2 08 00 12 14 80 17 00 00 00 00 00 00 A6 [00:30:52]Write i2c OK [00:30:52]MH_I2C_Read... [00:30:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:52]Read from MH i2c: E2 [00:30:52]MH_I2C_Read... [00:30:52]Read from MH i2c: E2 FD 00 [00:30:52]MH_I2C_Read... [00:30:52]Read from MH i2c: E2 FD 00 12 14 00 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 90 00 08 [00:30:52]RAPDU: 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 90 00 [00:30:52]wFMCommunicate OK [00:30:52]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:30:52]SAM_PROTO_ProcessDocument remain to read = 520 [00:30:52]wFMCommunicate request_size=4 [00:30:52]MH_SAM_APDU [00:30:52]CAPDU: 80 17 00 00 [00:30:52]Write to MH i2c: E2 08 00 13 14 80 17 00 00 00 00 00 00 A7 [00:30:52]Write i2c OK [00:30:52]MH_I2C_Read... [00:30:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:53]Read from MH i2c: E2 [00:30:53]MH_I2C_Read... [00:30:53]Read from MH i2c: E2 FD 00 [00:30:53]MH_I2C_Read... [00:30:53]Read from MH i2c: E2 FD 00 13 14 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 2F [00:30:53]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:30:53]wFMCommunicate OK [00:30:53]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:30:53]SAM_PROTO_ProcessDocument remain to read = 270 [00:30:53]wFMCommunicate request_size=4 [00:30:53]MH_SAM_APDU [00:30:53]CAPDU: 80 17 00 00 [00:30:53]Write to MH i2c: E2 08 00 14 14 80 17 00 00 00 00 00 00 A8 [00:30:53]Write i2c OK [00:30:53]MH_I2C_Read... [00:30:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:53]Read from MH i2c: E2 [00:30:53]MH_I2C_Read... [00:30:53]Read from MH i2c: E2 FD 00 [00:30:53]MH_I2C_Read... [00:30:53]Read from MH i2c: E2 FD 00 14 14 00 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 72 [00:30:54]RAPDU: 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:30:54]wFMCommunicate OK [00:30:54]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:30:54]SAM_PROTO_ProcessDocument remain to read = 20 [00:30:54]wFMCommunicate request_size=4 [00:30:54]MH_SAM_APDU [00:30:54]CAPDU: 80 17 00 00 [00:30:54]Write to MH i2c: E2 08 00 15 14 80 17 00 00 00 00 00 00 A9 [00:30:54]Write i2c OK [00:30:54]MH_I2C_Read... [00:30:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 20! [00:30:54]Read from MH i2c: E2 [00:30:54]MH_I2C_Read... [00:30:54]Read from MH i2c: E2 17 00 [00:30:54]MH_I2C_Read... [00:30:54]Read from MH i2c: E2 17 00 15 14 00 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 EA 10 A7 03 C7 BA 90 00 0F [00:30:54]RAPDU: 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 EA 10 A7 03 C7 BA 90 00 [00:30:54]wFMCommunicate OK [00:30:54]SAM_PROTO_ProcessDocument received (without SW) 20 bytes [00:30:54]SAM_PROTO_ProcessDocument done [00:30:54]1209 (1) - 1.0 - номер версии ФФД [00:30:54]1041 (16) - 0000000000874718 - номер ФМ [00:30:54]1040 (4) - 165126 - номер ФД [00:30:54]1038 (4) - 447 - номер смены [00:30:54]1118 (4) - 323 - количество кассовых чеков за смену [00:30:54]1111 (4) - 325 - общее количество ФД за смену [00:30:54]1194 (1197) - счетчики итогов смены [00:30:54] 1134 (4) - 323 - количество чеков со всеми признаками расчетов [00:30:54] 1129 (158) - счетчики операций «приход» [00:30:54] 1135 (4) - 323 - количество чеков по признаку расчетов [00:30:54] 1201 (4) - 210158.39 - общая итоговая сумма в чеках [00:30:54] 1136 (4) - 181497.00 - итоговая сумма в чеках наличными [00:30:54] 1138 (3) - 28661.39 - итоговая сумма в чеках безналичными [00:30:54] 1024 (123) - суммы налогов [00:30:54] 1006 (9) - суммы НДС [00:30:54] 1010 (1) - 0% - код ставки НДС [00:30:54] 1011 (0) - 0.00 - сумма НДС по ставке [00:30:54] 1006 (12) - суммы НДС [00:30:54] 1010 (1) - 12% - код ставки НДС [00:30:54] 1011 (3) - 22323.03 - сумма НДС по ставке [00:30:54] 1007 (9) - суммы НСП [00:30:54] 1014 (1) - 0% - код ставки НСП [00:30:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:54] 1007 (12) - суммы НСП [00:30:54] 1014 (1) - 1% - код ставки НСП [00:30:54] 1015 (3) - 1859.77 - сумма НСП по ставке [00:30:54] 1007 (9) - суммы НСП [00:30:54] 1014 (1) - 2% - код ставки НСП [00:30:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:54] 1007 (9) - суммы НСП [00:30:54] 1014 (1) - 3% - код ставки НСП [00:30:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:54] 1007 (9) - суммы НСП [00:30:54] 1014 (1) - 5% - код ставки НСП [00:30:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:54] 1007 (9) - суммы НСП [00:30:54] 1014 (1) - 0,50% - код ставки НСП [00:30:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:54] 1007 (9) - суммы НСП [00:30:54] 1014 (1) - 1,50% - код ставки НСП [00:30:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:54] 1130 (141) - счетчики операций «возврат прихода» [00:30:54] 1135 (4) - 0 - количество чеков по признаку расчетов [00:30:54] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:30:54] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:30:54] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:30:54] 1024 (117) - суммы налогов [00:30:54] 1006 (9) - суммы НДС [00:30:54] 1010 (1) - 0% - код ставки НДС [00:30:54] 1011 (0) - 0.00 - сумма НДС по ставке [00:30:54] 1006 (9) - суммы НДС [00:30:54] 1010 (1) - 12% - код ставки НДС [00:30:54] 1011 (0) - 0.00 - сумма НДС по ставке [00:30:54] 1007 (9) - суммы НСП [00:30:54] 1014 (1) - 0% - код ставки НСП [00:30:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:54] 1007 (9) - суммы НСП [00:30:54] 1014 (1) - 1% - код ставки НСП [00:30:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:54] 1007 (9) - суммы НСП [00:30:54] 1014 (1) - 2% - код ставки НСП [00:30:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:54] 1007 (9) - суммы НСП [00:30:54] 1014 (1) - 3% - код ставки НСП [00:30:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:54] 1007 (9) - суммы НСП [00:30:54] 1014 (1) - 5% - код ставки НСП [00:30:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:54] 1007 (9) - суммы НСП [00:30:54] 1014 (1) - 0,50% - код ставки НСП [00:30:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:54] 1007 (9) - суммы НСП [00:30:54] 1014 (1) - 1,50% - код ставки НСП [00:30:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:54] 1131 (141) - счетчики операций «расход» [00:30:54] 1135 (4) - 0 - количество чеков по признаку расчетов [00:30:54] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:30:54] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:30:54] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:30:54] 1024 (117) - суммы налогов [00:30:54] 1006 (9) - суммы НДС [00:30:54] 1010 (1) - 0% - код ставки НДС [00:30:54] 1011 (0) - 0.00 - сумма НДС по ставке [00:30:54] 1006 (9) - суммы НДС [00:30:54] 1010 (1) - 12% - код ставки НДС [00:30:54] 1011 (0) - 0.00 - сумма НДС по ставке [00:30:54] 1007 (9) - суммы НСП [00:30:54] 1014 (1) - 0% - код ставки НСП [00:30:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:54] 1007 (9) - суммы НСП [00:30:54] 1014 (1) - 1% - код ставки НСП [00:30:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:54] 1007 (9) - суммы НСП [00:30:54] 1014 (1) - 2% - код ставки НСП [00:30:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:54] 1007 (9) - суммы НСП [00:30:54] 1014 (1) - 3% - код ставки НСП [00:30:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:54] 1007 (9) - суммы НСП [00:30:54] 1014 (1) - 5% - код ставки НСП [00:30:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:54] 1007 (9) - суммы НСП [00:30:54] 1014 (1) - 0,50% - код ставки НСП [00:30:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:54] 1007 (9) - суммы НСП [00:30:54] 1014 (1) - 1,50% - код ставки НСП [00:30:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:54] 1132 (141) - счетчики операций «возврат расхода» [00:30:54] 1135 (4) - 0 - количество чеков по признаку расчетов [00:30:54] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:30:54] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:30:54] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:30:54] 1024 (117) - суммы налогов [00:30:54] 1006 (9) - суммы НДС [00:30:54] 1010 (1) - 0% - код ставки НДС [00:30:54] 1011 (0) - 0.00 - сумма НДС по ставке [00:30:54] 1006 (9) - суммы НДС [00:30:54] 1010 (1) - 12% - код ставки НДС [00:30:54] 1011 (0) - 0.00 - сумма НДС по ставке [00:30:54] 1007 (9) - суммы НСП [00:30:54] 1014 (1) - 0% - код ставки НСП [00:30:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:54] 1007 (9) - суммы НСП [00:30:54] 1014 (1) - 1% - код ставки НСП [00:30:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:54] 1007 (9) - суммы НСП [00:30:54] 1014 (1) - 2% - код ставки НСП [00:30:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:54] 1007 (9) - суммы НСП [00:30:54] 1014 (1) - 3% - код ставки НСП [00:30:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:54] 1007 (9) - суммы НСП [00:30:54] 1014 (1) - 5% - код ставки НСП [00:30:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:54] 1007 (9) - суммы НСП [00:30:54] 1014 (1) - 0,50% - код ставки НСП [00:30:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:54] 1007 (9) - суммы НСП [00:30:54] 1014 (1) - 1,50% - код ставки НСП [00:30:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:54] 1133 (588) - - счетчики коррекции - не используются [00:30:54]1077 (6) - 257357242419130 - ФПД [00:30:54]SetTLVBufToDocument [00:30:54]Processing tag 1209 (04B9) [00:30:54]Malloc new data [00:30:54]Processing tag 1041 (0411) [00:30:54]Processing tag 1040 (0410) [00:30:54]Malloc new data [00:30:54]Processing tag 1038 (040E) [00:30:54]Malloc new data [00:30:54]Processing tag 1118 (045E) [00:30:54]Malloc new data [00:30:54]Processing tag 1111 (0457) [00:30:54]Malloc new data [00:30:54]Processing tag 1194 (04AA) [00:30:54]Load OK [00:30:55]SetTLVBufToDocument [00:30:55]Processing tag 1134 (046E) [00:30:55]Malloc new data [00:30:55]Processing tag 1129 (0469) [00:30:55]Load OK [00:30:55]SetTLVBufToDocument [00:30:55]Processing tag 1135 (046F) [00:30:55]Malloc new data [00:30:55]Processing tag 1201 (04B1) [00:30:55]Malloc new data [00:30:55]Processing tag 1136 (0470) [00:30:55]Malloc new data [00:30:55]Processing tag 1138 (0472) [00:30:55]Malloc new data [00:30:55]Processing tag 1024 (0400) [00:30:55]Load OK [00:30:55]SetTLVBufToDocument [00:30:55]Processing tag 1006 (03EE) [00:30:55]Load OK [00:30:55]SetTLVBufToDocument [00:30:55]Processing tag 1010 (03F2) [00:30:55]Malloc new data [00:30:55]Processing tag 1011 (03F3) [00:30:55]Malloc new data [00:30:55]SetTLVBufToDocument err=0 [00:30:55]Processing tag 1006 (03EE) [00:30:55]Load OK [00:30:55]SetTLVBufToDocument [00:30:55]Processing tag 1010 (03F2) [00:30:55]Malloc new data [00:30:55]Processing tag 1011 (03F3) [00:30:55]Malloc new data [00:30:55]SetTLVBufToDocument err=0 [00:30:55]Processing tag 1007 (03EF) [00:30:55]Load OK [00:30:55]SetTLVBufToDocument [00:30:55]Processing tag 1014 (03F6) [00:30:55]Malloc new data [00:30:55]Processing tag 1015 (03F7) [00:30:55]Malloc new data [00:30:55]SetTLVBufToDocument err=0 [00:30:55]Processing tag 1007 (03EF) [00:30:55]Load OK [00:30:55]SetTLVBufToDocument [00:30:55]Processing tag 1014 (03F6) [00:30:55]Malloc new data [00:30:55]Processing tag 1015 (03F7) [00:30:55]Malloc new data [00:30:55]SetTLVBufToDocument err=0 [00:30:55]Processing tag 1007 (03EF) [00:30:55]Load OK [00:30:55]SetTLVBufToDocument [00:30:55]Processing tag 1014 (03F6) [00:30:55]Malloc new data [00:30:55]Processing tag 1015 (03F7) [00:30:55]Malloc new data [00:30:55]SetTLVBufToDocument err=0 [00:30:55]Processing tag 1007 (03EF) [00:30:55]Load OK [00:30:55]SetTLVBufToDocument [00:30:55]Processing tag 1014 (03F6) [00:30:55]Malloc new data [00:30:55]Processing tag 1015 (03F7) [00:30:55]Malloc new data [00:30:55]SetTLVBufToDocument err=0 [00:30:55]Processing tag 1007 (03EF) [00:30:55]Load OK [00:30:55]SetTLVBufToDocument [00:30:55]Processing tag 1014 (03F6) [00:30:55]Malloc new data [00:30:55]Processing tag 1015 (03F7) [00:30:55]Malloc new data [00:30:55]SetTLVBufToDocument err=0 [00:30:55]Processing tag 1007 (03EF) [00:30:55]Load OK [00:30:55]SetTLVBufToDocument [00:30:55]Processing tag 1014 (03F6) [00:30:55]Malloc new data [00:30:55]Processing tag 1015 (03F7) [00:30:55]Malloc new data [00:30:55]SetTLVBufToDocument err=0 [00:30:55]Processing tag 1007 (03EF) [00:30:55]Load OK [00:30:55]SetTLVBufToDocument [00:30:55]Processing tag 1014 (03F6) [00:30:55]Malloc new data [00:30:55]Processing tag 1015 (03F7) [00:30:55]Malloc new data [00:30:55]SetTLVBufToDocument err=0 [00:30:55]SetTLVBufToDocument err=0 [00:30:55]SetTLVBufToDocument err=0 [00:30:55]Processing tag 1130 (046A) [00:30:55]Load OK [00:30:55]SetTLVBufToDocument [00:30:55]Processing tag 1135 (046F) [00:30:55]Malloc new data [00:30:55]Processing tag 1201 (04B1) [00:30:55]Malloc new data [00:30:55]Processing tag 1136 (0470) [00:30:55]Malloc new data [00:30:55]Processing tag 1138 (0472) [00:30:55]Malloc new data [00:30:55]Processing tag 1024 (0400) [00:30:55]Load OK [00:30:55]SetTLVBufToDocument [00:30:55]Processing tag 1006 (03EE) [00:30:55]Load OK [00:30:55]SetTLVBufToDocument [00:30:55]Processing tag 1010 (03F2) [00:30:55]Malloc new data [00:30:55]Processing tag 1011 (03F3) [00:30:55]Malloc new data [00:30:55]SetTLVBufToDocument err=0 [00:30:55]Processing tag 1006 (03EE) [00:30:55]Load OK [00:30:55]SetTLVBufToDocument [00:30:55]Processing tag 1010 (03F2) [00:30:55]Malloc new data [00:30:55]Processing tag 1011 (03F3) [00:30:55]Malloc new data [00:30:55]SetTLVBufToDocument err=0 [00:30:55]Processing tag 1007 (03EF) [00:30:55]Load OK [00:30:55]SetTLVBufToDocument [00:30:55]Processing tag 1014 (03F6) [00:30:55]Malloc new data [00:30:55]Processing tag 1015 (03F7) [00:30:55]Malloc new data [00:30:55]SetTLVBufToDocument err=0 [00:30:55]Processing tag 1007 (03EF) [00:30:55]Load OK [00:30:55]SetTLVBufToDocument [00:30:55]Processing tag 1014 (03F6) [00:30:55]Malloc new data [00:30:55]Processing tag 1015 (03F7) [00:30:55]Malloc new data [00:30:55]SetTLVBufToDocument err=0 [00:30:55]Processing tag 1007 (03EF) [00:30:55]Load OK [00:30:55]SetTLVBufToDocument [00:30:55]Processing tag 1014 (03F6) [00:30:55]Malloc new data [00:30:55]Processing tag 1015 (03F7) [00:30:55]Malloc new data [00:30:55]SetTLVBufToDocument err=0 [00:30:55]Processing tag 1007 (03EF) [00:30:55]Load OK [00:30:55]SetTLVBufToDocument [00:30:55]Processing tag 1014 (03F6) [00:30:55]Malloc new data [00:30:55]Processing tag 1015 (03F7) [00:30:55]Malloc new data [00:30:55]SetTLVBufToDocument err=0 [00:30:55]Processing tag 1007 (03EF) [00:30:55]Load OK [00:30:55]SetTLVBufToDocument [00:30:55]Processing tag 1014 (03F6) [00:30:55]Malloc new data [00:30:55]Processing tag 1015 (03F7) [00:30:55]Malloc new data [00:30:55]SetTLVBufToDocument err=0 [00:30:55]Processing tag 1007 (03EF) [00:30:55]Load OK [00:30:55]SetTLVBufToDocument [00:30:55]Processing tag 1014 (03F6) [00:30:55]Malloc new data [00:30:55]Processing tag 1015 (03F7) [00:30:55]Malloc new data [00:30:55]SetTLVBufToDocument err=0 [00:30:55]Processing tag 1007 (03EF) [00:30:55]Load OK [00:30:55]OFD Sender: No OFD packet to send [00:30:55]SetTLVBufToDocument [00:30:55]Processing tag 1014 (03F6) [00:30:55]Malloc new data [00:30:55]Processing tag 1015 (03F7) [00:30:55]Malloc new data [00:30:55]SetTLVBufToDocument err=0 [00:30:55]SetTLVBufToDocument err=0 [00:30:55]SetTLVBufToDocument err=0 [00:30:55]Processing tag 1131 (046B) [00:30:55]Load OK [00:30:55]SetTLVBufToDocument [00:30:55]Processing tag 1135 (046F) [00:30:55]Malloc new data [00:30:55]Processing tag 1201 (04B1) [00:30:55]Malloc new data [00:30:55]Processing tag 1136 (0470) [00:30:55]Malloc new data [00:30:55]Processing tag 1138 (0472) [00:30:55]Malloc new data [00:30:55]Processing tag 1024 (0400) [00:30:55]Load OK [00:30:55]SetTLVBufToDocument [00:30:55]Processing tag 1006 (03EE) [00:30:55]Load OK [00:30:55]SetTLVBufToDocument [00:30:55]Processing tag 1010 (03F2) [00:30:55]Malloc new data [00:30:55]Processing tag 1011 (03F3) [00:30:55]Malloc new data [00:30:55]SetTLVBufToDocument err=0 [00:30:55]Processing tag 1006 (03EE) [00:30:55]Load OK [00:30:55]SetTLVBufToDocument [00:30:55]Processing tag 1010 (03F2) [00:30:55]Malloc new data [00:30:55]Processing tag 1011 (03F3) [00:30:55]Malloc new data [00:30:55]SetTLVBufToDocument err=0 [00:30:55]Processing tag 1007 (03EF) [00:30:55]Load OK [00:30:55]SetTLVBufToDocument [00:30:55]Processing tag 1014 (03F6) [00:30:55]Malloc new data [00:30:55]Processing tag 1015 (03F7) [00:30:55]Malloc new data [00:30:55]SetTLVBufToDocument err=0 [00:30:55]Processing tag 1007 (03EF) [00:30:55]Load OK [00:30:55]SetTLVBufToDocument [00:30:55]Processing tag 1014 (03F6) [00:30:55]Malloc new data [00:30:55]Processing tag 1015 (03F7) [00:30:55]Malloc new data [00:30:55]SetTLVBufToDocument err=0 [00:30:55]Processing tag 1007 (03EF) [00:30:55]Load OK [00:30:55]SetTLVBufToDocument [00:30:55]Processing tag 1014 (03F6) [00:30:55]Malloc new data [00:30:55]Processing tag 1015 (03F7) [00:30:55]Malloc new data [00:30:55]SetTLVBufToDocument err=0 [00:30:55]Processing tag 1007 (03EF) [00:30:55]Load OK [00:30:55]SetTLVBufToDocument [00:30:55]Processing tag 1014 (03F6) [00:30:55]Malloc new data [00:30:55]Processing tag 1015 (03F7) [00:30:55]Malloc new data [00:30:55]SetTLVBufToDocument err=0 [00:30:55]Processing tag 1007 (03EF) [00:30:55]Load OK [00:30:55]SetTLVBufToDocument [00:30:55]Processing tag 1014 (03F6) [00:30:55]Malloc new data [00:30:55]Processing tag 1015 (03F7) [00:30:55]Malloc new data [00:30:55]SetTLVBufToDocument err=0 [00:30:55]Processing tag 1007 (03EF) [00:30:55]Load OK [00:30:55]SetTLVBufToDocument [00:30:55]Processing tag 1014 (03F6) [00:30:55]Malloc new data [00:30:55]Processing tag 1015 (03F7) [00:30:55]Malloc new data [00:30:55]SetTLVBufToDocument err=0 [00:30:55]Processing tag 1007 (03EF) [00:30:55]Load OK [00:30:55]SetTLVBufToDocument [00:30:55]Processing tag 1014 (03F6) [00:30:55]Malloc new data [00:30:55]Processing tag 1015 (03F7) [00:30:55]Malloc new data [00:30:55]SetTLVBufToDocument err=0 [00:30:55]SetTLVBufToDocument err=0 [00:30:55]SetTLVBufToDocument err=0 [00:30:55]Processing tag 1132 (046C) [00:30:55]Load OK [00:30:55]SetTLVBufToDocument [00:30:55]Processing tag 1135 (046F) [00:30:55]Malloc new data [00:30:55]Processing tag 1201 (04B1) [00:30:55]Malloc new data [00:30:55]Processing tag 1136 (0470) [00:30:55]Malloc new data [00:30:55]Processing tag 1138 (0472) [00:30:55]Malloc new data [00:30:55]Processing tag 1024 (0400) [00:30:55]Load OK [00:30:55]SetTLVBufToDocument [00:30:55]Processing tag 1006 (03EE) [00:30:55]Load OK [00:30:55]SetTLVBufToDocument [00:30:55]Processing tag 1010 (03F2) [00:30:55]Malloc new data [00:30:55]Processing tag 1011 (03F3) [00:30:55]Malloc new data [00:30:55]SetTLVBufToDocument err=0 [00:30:55]Processing tag 1006 (03EE) [00:30:55]Load OK [00:30:55]SetTLVBufToDocument [00:30:55]Processing tag 1010 (03F2) [00:30:55]Malloc new data [00:30:55]Processing tag 1011 (03F3) [00:30:55]Malloc new data [00:30:55]SetTLVBufToDocument err=0 [00:30:55]Processing tag 1007 (03EF) [00:30:55]Load OK [00:30:55]SetTLVBufToDocument [00:30:55]Processing tag 1014 (03F6) [00:30:55]Malloc new data [00:30:55]Processing tag 1015 (03F7) [00:30:55]Malloc new data [00:30:55]SetTLVBufToDocument err=0 [00:30:55]Processing tag 1007 (03EF) [00:30:55]Load OK [00:30:55]SetTLVBufToDocument [00:30:55]Processing tag 1014 (03F6) [00:30:55]Malloc new data [00:30:55]Processing tag 1015 (03F7) [00:30:55]Malloc new data [00:30:55]SetTLVBufToDocument err=0 [00:30:55]Processing tag 1007 (03EF) [00:30:55]Load OK [00:30:55]SetTLVBufToDocument [00:30:55]Processing tag 1014 (03F6) [00:30:55]Malloc new data [00:30:55]Processing tag 1015 (03F7) [00:30:55]Malloc new data [00:30:55]SetTLVBufToDocument err=0 [00:30:55]Processing tag 1007 (03EF) [00:30:55]Load OK [00:30:55]SetTLVBufToDocument [00:30:55]Processing tag 1014 (03F6) [00:30:55]Malloc new data [00:30:55]Processing tag 1015 (03F7) [00:30:55]Malloc new data [00:30:55]SetTLVBufToDocument err=0 [00:30:55]Processing tag 1007 (03EF) [00:30:55]Load OK [00:30:55]SetTLVBufToDocument [00:30:55]Processing tag 1014 (03F6) [00:30:55]Malloc new data [00:30:55]Processing tag 1015 (03F7) [00:30:55]Malloc new data [00:30:55]SetTLVBufToDocument err=0 [00:30:55]Processing tag 1007 (03EF) [00:30:55]Load OK [00:30:55]SetTLVBufToDocument [00:30:55]Processing tag 1014 (03F6) [00:30:55]Malloc new data [00:30:55]Processing tag 1015 (03F7) [00:30:55]Malloc new data [00:30:55]SetTLVBufToDocument err=0 [00:30:55]Processing tag 1007 (03EF) [00:30:55]Load OK [00:30:55]SetTLVBufToDocument [00:30:55]Processing tag 1014 (03F6) [00:30:55]Malloc new data [00:30:55]Processing tag 1015 (03F7) [00:30:55]Malloc new data [00:30:55]SetTLVBufToDocument err=0 [00:30:55]SetTLVBufToDocument err=0 [00:30:55]SetTLVBufToDocument err=0 [00:30:55]Processing tag 1133 (046D) [00:30:55]Malloc new data [00:30:55]SetTLVBufToDocument err=0 [00:30:55]Processing tag 1077 (0435) [00:30:55]Malloc new data [00:30:55]SetTLVBufToDocument err=0 [00:30:55]Malloc new data [00:30:55]SAM_PROTO_GetFMData [00:30:55]wFMCommunicate request_size=4 [00:30:55]MH_SAM_APDU [00:30:55]CAPDU: 80 13 03 00 [00:30:55]Write to MH i2c: E2 08 00 16 14 80 13 03 00 00 00 00 00 A9 [00:30:55]Write i2c OK [00:30:55]MH_I2C_Read... [00:30:55]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:30:55]Read from MH i2c: E2 [00:30:55]MH_I2C_Read... [00:30:55]Read from MH i2c: E2 FD 00 [00:30:55]MH_I2C_Read... [00:30:55]Read from MH i2c: E2 FD 00 16 14 00 C4 04 85 04 C0 04 6E 04 04 00 84 81 02 00 69 04 A3 00 6F 04 04 00 76 80 02 00 B1 04 05 00 85 45 51 59 02 70 04 05 00 5D FE FF 36 02 72 04 04 00 28 47 51 22 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 89 A3 E1 3F 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 FE 9C 52 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 0E 01 00 00 B1 04 04 00 6C E5 46 03 70 04 04 00 6C E5 46 03 72 04 00 00 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 23 19 59 EF 03 09 00 90 00 C5 [00:30:56]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 84 81 02 00 69 04 A3 00 6F 04 04 00 76 80 02 00 B1 04 05 00 85 45 51 59 02 70 04 05 00 5D FE FF 36 02 72 04 04 00 28 47 51 22 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 89 A3 E1 3F 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 FE 9C 52 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 0E 01 00 00 B1 04 04 00 6C E5 46 03 70 04 04 00 6C E5 46 03 72 04 00 00 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 23 19 59 EF 03 09 00 90 00 [00:30:56]wFMCommunicate OK [00:30:56]wFMCommunicate request_size=4 [00:30:56]MH_SAM_APDU [00:30:56]CAPDU: 80 17 00 00 [00:30:56]Write to MH i2c: E2 08 00 17 14 80 17 00 00 00 00 00 00 AB [00:30:56]Write i2c OK [00:30:56]MH_I2C_Read... [00:30:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:56]Read from MH i2c: E2 [00:30:56]MH_I2C_Read... [00:30:56]Read from MH i2c: E2 FD 00 [00:30:56]MH_I2C_Read... [00:30:56]Read from MH i2c: E2 FD 00 17 14 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B1 6C 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 85 [00:30:56]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B1 6C 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:30:57]wFMCommunicate OK [00:30:57]wFMCommunicate request_size=4 [00:30:57]MH_SAM_APDU [00:30:57]CAPDU: 80 17 00 00 [00:30:57]Write to MH i2c: E2 08 00 18 14 80 17 00 00 00 00 00 00 AC [00:30:57]Write i2c OK [00:30:57]MH_I2C_Read... [00:30:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:57]Read from MH i2c: E2 [00:30:57]MH_I2C_Read... [00:30:57]Read from MH i2c: E2 FD 00 [00:30:57]MH_I2C_Read... [00:30:57]Read from MH i2c: E2 FD 00 18 14 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C1 [00:30:57]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:30:57]wFMCommunicate OK [00:30:57]wFMCommunicate request_size=4 [00:30:57]MH_SAM_APDU [00:30:57]CAPDU: 80 17 00 00 [00:30:57]Write to MH i2c: E2 08 00 19 14 80 17 00 00 00 00 00 00 AD [00:30:57]Write i2c OK [00:30:57]MH_I2C_Read... [00:30:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:58]Read from MH i2c: E2 [00:30:58]MH_I2C_Read... [00:30:58]Read from MH i2c: E2 FD 00 [00:30:58]MH_I2C_Read... [00:30:58]Read from MH i2c: E2 FD 00 19 14 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 25 [00:30:58]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:30:58]wFMCommunicate OK [00:30:58]wFMCommunicate request_size=4 [00:30:58]MH_SAM_APDU [00:30:58]CAPDU: 80 17 00 00 [00:30:58]Write to MH i2c: E2 08 00 1A 14 80 17 00 00 00 00 00 00 AE [00:30:58]Write i2c OK [00:30:58]MH_I2C_Read... [00:30:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [00:30:58]Read from MH i2c: E2 [00:30:58]MH_I2C_Read... [00:30:58]Read from MH i2c: E2 E1 00 [00:30:58]MH_I2C_Read... [00:30:59]Read from MH i2c: E2 E1 00 1A 14 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 9C [00:30:59]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:30:59]wFMCommunicate OK [00:30:59]SAM_PROTO_GetFMData done [00:30:59]Malloc new data [00:30:59]Malloc new data [00:30:59]Malloc new data [00:30:59]Malloc new data [00:30:59]KKMLoadAndSignCloseShiftData err=0 [00:30:59]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Нурматов Н. 15.07.2024 00:30 Смена: 447 РНМ: 0000000000090829 ЗНМ: 0300000160 СНО: Общий режим Чеков за смену: 323 ФД за смену: 325 Всего чеков: 323 ИТОГИ ПРИХОД Чеков: 323 Общий итог: 210158.39 Итого наличными: 181497.00 Итого безнал.: 28661.39 НДС 0% : 0.00 НДС 12% : 22323.03 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 1859.77 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 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 Нал. в кассе: 181497.00 НС Приход: 100884330.29 НС Возвр.Прихода: 549779.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 165126 ФМ: 0000000000874718 ФПД: 257357242419130 [00:30:59]StoreToDocumentArchive [00:30:59]shift 447 fd 165126 [00:30:59]save to /storage/0447/doc_00165126 [00:30:59]save last doc name /storage/0447/doc_00165126 to /storage/kkm_last_doc_name [00:30:59]save OK [00:30:59]Clear old archive folders... [00:30:59]Remove dir /storage/0266 [00:30:59]opendir ok [00:30:59]file . [00:30:59]file .. [00:30:59]file doc_1721003432 [00:30:59]remove file /storage/0266/doc_1721003432 [00:30:59]remove dir /storage/0266 [00:30:59]NVStorageSaveData kkm_registers [00:30:59]File name is /storage/kkm_registers [00:30:59]Write 24 bytes [00:30:59]NVStorageSaveData done [00:30:59]NVStorageSaveData kkm_registers [00:30:59]File name is /storage/kkm_registers [00:30:59]Write 24 bytes [00:30:59]NVStorageSaveData done [00:30:59]ProcessDocumentItem done err = 0, tmpTLVsize=1382 [00:30:59]tlvbuf is 013DFEC0 [00:30:59]SAM_PROTO_ClearQueue [00:30:59]wFMCommunicate request_size=4 [00:30:59]MH_SAM_APDU [00:30:59]CAPDU: 80 09 00 00 [00:30:59]Write to MH i2c: E2 08 00 1B 14 80 09 00 00 00 00 00 00 A1 [00:30:59]Write i2c OK [00:30:59]MH_I2C_Read... [00:30:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:30:59]Read from MH i2c: E2 [00:30:59]MH_I2C_Read... [00:30:59]Read from MH i2c: E2 03 00 [00:30:59]MH_I2C_Read... [00:30:59]Read from MH i2c: E2 03 00 1B 14 00 90 00 A3 [00:30:59]RAPDU: 90 00 [00:30:59]wFMCommunicate OK [00:30:59]SAM_PROTO_ClearQueue done [00:30:59]KKMCreateOFDPacket [00:30:59]OFDProtocolAddRootSTLVToBuf [00:30:59]FM_MakeSignedData [00:30:59]FM_MakeSignedData [00:30:59]SAM_PROTO_SignData [00:30:59]wFMCommunicate request_size=4 [00:30:59]MH_SAM_APDU [00:30:59]CAPDU: 80 0D 01 02 [00:30:59]Write to MH i2c: E2 08 00 1C 14 80 0D 01 02 00 00 00 00 A9 [00:30:59]Write i2c OK [00:30:59]MH_I2C_Read... [00:30:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:30:59]Read from MH i2c: E2 [00:30:59]MH_I2C_Read... [00:30:59]Read from MH i2c: E2 03 00 [00:30:59]MH_I2C_Read... [00:30:59]Read from MH i2c: E2 03 00 1C 14 00 90 00 A4 [00:30:59]RAPDU: 90 00 [00:30:59]wFMCommunicate OK [00:30:59]wFMCommunicate request_size=255 [00:30:59]MH_SAM_APDU [00:30:59]CAPDU: 80 0D 02 02 FA 05 00 66 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 9D D1 83 D1 80 D0 BC D0 B0 D1 82 D0 BE D0 B2 20 D0 9D 2E 20 F4 03 04 00 BC 6D 94 66 0E 04 04 00 BF 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 5E 04 04 00 43 01 00 00 57 04 04 00 45 01 00 00 AA 04 D8 04 6E 04 04 00 43 01 00 00 69 04 A5 00 6F 04 04 00 43 01 00 00 B1 04 04 00 1F AD 40 01 70 04 04 00 44 F1 14 01 72 04 03 00 DB BB 2B 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 EF 0F 22 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 [00:30:59]Write to MH i2c: E2 02 01 1D 14 80 0D 02 02 FA 00 05 00 66 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 9D D1 83 D1 80 D0 BC D0 B0 D1 82 D0 BE D0 B2 20 D0 9D 2E 20 F4 03 04 00 BC 6D 94 66 0E 04 04 00 BF 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 5E 04 04 00 43 01 00 00 57 04 04 00 45 01 00 00 AA 04 D8 04 6E 04 04 00 43 01 00 00 69 04 A5 00 6F 04 04 00 43 01 00 00 B1 04 04 00 1F AD 40 01 70 04 04 00 44 F1 14 01 72 04 03 00 DB BB 2B 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 EF 0F 22 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 00 00 AB [00:31:00]OFD Sender: No OFD packet to send [00:31:00]Write i2c OK [00:31:00]MH_I2C_Read... [00:31:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:31:00]Read from MH i2c: E2 [00:31:00]MH_I2C_Read... [00:31:00]Read from MH i2c: E2 03 00 [00:31:00]MH_I2C_Read... [00:31:00]Read from MH i2c: E2 03 00 1D 14 00 90 00 A5 [00:31:00]RAPDU: 90 00 [00:31:00]wFMCommunicate OK [00:31:00]wFMCommunicate request_size=255 [00:31:00]MH_SAM_APDU [00:31:00]CAPDU: 80 0D 02 02 FA F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 79 D6 02 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 [00:31:00]Write to MH i2c: E2 02 01 1E 14 80 0D 02 02 FA 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 79 D6 02 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 00 69 [00:31:01]Write i2c OK [00:31:01]MH_I2C_Read... [00:31:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:31:01]Read from MH i2c: E2 [00:31:01]MH_I2C_Read... [00:31:01]Read from MH i2c: E2 03 00 [00:31:01]MH_I2C_Read... [00:31:01]Read from MH i2c: E2 03 00 1E 14 00 90 00 A6 [00:31:01]RAPDU: 90 00 [00:31:01]wFMCommunicate OK [00:31:01]wFMCommunicate request_size=255 [00:31:01]MH_SAM_APDU [00:31:01]CAPDU: 80 0D 02 02 FA 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:31:01]Write to MH i2c: E2 02 01 1F 14 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 00 00 73 [00:31:01]Write i2c OK [00:31:01]MH_I2C_Read... [00:31:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:31:02]Read from MH i2c: E2 [00:31:02]MH_I2C_Read... [00:31:02]Read from MH i2c: E2 03 00 [00:31:02]MH_I2C_Read... [00:31:02]Read from MH i2c: E2 03 00 1F 14 00 90 00 A7 [00:31:02]RAPDU: 90 00 [00:31:02]wFMCommunicate OK [00:31:02]wFMCommunicate request_size=255 [00:31:02]MH_SAM_APDU [00:31:02]CAPDU: 80 0D 02 02 FA 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:31:02]Write to MH i2c: E2 02 01 20 14 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 01 00 00 73 [00:31:02]Write i2c OK [00:31:02]MH_I2C_Read... [00:31:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:31:03]Read from MH i2c: E2 [00:31:03]MH_I2C_Read... [00:31:03]Read from MH i2c: E2 03 00 [00:31:03]MH_I2C_Read... [00:31:03]Read from MH i2c: E2 03 00 20 14 00 90 00 A8 [00:31:03]RAPDU: 90 00 [00:31:03]wFMCommunicate OK [00:31:03]wFMCommunicate request_size=255 [00:31:03]MH_SAM_APDU [00:31:03]CAPDU: 80 0D 02 02 FA 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:31:03]Write to MH i2c: E2 02 01 21 14 80 0D 02 02 FA 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 00 00 39 [00:31:03]Write i2c OK [00:31:03]MH_I2C_Read... [00:31:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:31:03]Read from MH i2c: E2 [00:31:03]MH_I2C_Read... [00:31:03]Read from MH i2c: E2 03 00 [00:31:03]MH_I2C_Read... [00:31:03]Read from MH i2c: E2 03 00 21 14 00 90 00 A9 [00:31:03]RAPDU: 90 00 [00:31:03]wFMCommunicate OK [00:31:03]wFMCommunicate request_size=141 [00:31:03]MH_SAM_APDU [00:31:03]CAPDU: 80 0D 02 02 88 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 06 85 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 35 04 06 00 EA 10 A7 03 C7 BA [00:31:04]Write to MH i2c: E2 90 00 22 14 80 0D 02 02 88 00 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 06 85 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 35 04 06 00 EA 10 A7 03 C7 BA 00 00 A7 [00:31:04]Write i2c OK [00:31:04]MH_I2C_Read... [00:31:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:31:04]Read from MH i2c: E2 [00:31:04]MH_I2C_Read... [00:31:04]Read from MH i2c: E2 03 00 [00:31:04]MH_I2C_Read... [00:31:04]Read from MH i2c: E2 03 00 22 14 00 90 00 AA [00:31:04]RAPDU: 90 00 [00:31:04]wFMCommunicate OK [00:31:04]wFMCommunicate request_size=4 [00:31:04]MH_SAM_APDU [00:31:04]CAPDU: 80 0D 03 02 [00:31:04]Write to MH i2c: E2 08 00 23 14 80 0D 03 02 00 00 00 00 B2 [00:31:04]Write i2c OK [00:31:04]MH_I2C_Read... [00:31:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:31:04]Read from MH i2c: E2 [00:31:04]MH_I2C_Read... [00:31:04]Read from MH i2c: E2 0B 00 [00:31:04]MH_I2C_Read... [00:31:04]Read from MH i2c: E2 0B 00 23 14 00 8E 4D EB A4 3C 94 A2 62 90 00 F1 [00:31:04]RAPDU: 8E 4D EB A4 3C 94 A2 62 90 00 [00:31:04]wFMCommunicate OK [00:31:04]SAM_PROTO_SignData done [00:31:04]FM_MakeSignedData done [00:31:04]CreateOFDProtocolMessage [00:31:04]wFMCommunicate request_size=4 [00:31:04]MH_SAM_APDU [00:31:04]CAPDU: 80 11 00 00 [00:31:04]Write to MH i2c: E2 08 00 24 14 80 11 00 00 00 00 00 00 B2 [00:31:04]Write i2c OK [00:31:04]MH_I2C_Read... [00:31:04]Read from MH i2c: E2 [00:31:04]MH_I2C_Read... [00:31:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:31:04]Read from MH i2c: E2 17 00 [00:31:04]MH_I2C_Read... [00:31:04]Read from MH i2c: E2 17 00 24 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 08 [00:31:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [00:31:04]wFMCommunicate OK [00:31:04]CreateOFDProtocolMessage done [00:31:04]OFDSenderStorePacket 165126 [00:31:04]StoreOFDPacket docnum=165126 [00:31:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 7A 05 00 00 AB AE 72 05 B0 57 5A 05 01 00 05 00 66 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 9D D1 83 D1 80 D0 BC D0 B0 D1 82 D0 BE D0 B2 20 D0 9D 2E 20 F4 03 04 00 BC 6D 94 66 0E 04 04 00 BF 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 5E 04 04 00 43 01 00 00 57 04 04 00 45 01 00 00 AA 04 D8 04 6E 04 04 00 43 01 00 00 69 04 A5 00 6F 04 04 00 43 01 00 00 B1 04 04 00 1F AD 40 01 70 04 04 00 44 F1 14 01 72 04 03 00 DB BB 2B 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 EF 0F 22 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 79 D6 02 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 06 85 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 35 04 06 00 EA 10 A7 03 C7 BA 8E 4D EB A4 3C 94 A2 62 [00:31:05]CheckFolder [00:31:05]dirname=/storage/ofd_packets [00:31:05]CheckFolder done [00:31:05]ProducePacketName [00:31:05]name=ofd_packets/00165126 [00:31:05]NVStorageSaveData ofd_packets/00165126 [00:31:05]File name is /storage/ofd_packets/00165126 [00:31:05]Write 1432 bytes [00:31:05]NVStorageSaveData done [00:31:05]OFDSenderStorePacket done [00:31:05]KKMCreateOFDPacket done [00:31:05]NVStorageSaveData kkm_last_timestamp [00:31:05]File name is /storage/kkm_last_timestamp [00:31:05]Write 4 bytes [00:31:05]NVStorageSaveData done [00:31:05]ExternCall_PrintAddStr [00:31:05]wPrintStart [00:31:05]Write to MH i2c: 01 00 00 25 14 39 [00:31:05]Write i2c OK [00:31:05]MH_I2C_Read... [00:31:05]Read from MH i2c: 01 [00:31:05]MH_I2C_Read... [00:31:05]Read from MH i2c: 01 07 00 [00:31:05]MH_I2C_Read... [00:31:05]Read from MH i2c: 01 07 00 25 14 00 00 00 00 00 FF 0F 4E [00:31:05]RasterBufferAndPrint [00:31:05]line Отчет о закрытии смены [00:31:05]line ФФД: 1.0 [00:31:05]line ИНН: 02508201610067 [00:31:05]line Кассир: Нурматов Н. [00:31:05]line 15.07.2024 00:30 [00:31:05]line Смена: 447 [00:31:05]line РНМ: 0000000000090829 [00:31:05]line ЗНМ: 0300000160 [00:31:05]line СНО: Общий режим [00:31:05]line Чеков за смену: 323 [00:31:05]line ФД за смену: 325 [00:31:05]line Всего чеков: 323 [00:31:05]line ИТОГИ ПРИХОД [00:31:05]line Чеков: 323 [00:31:05]line Общий итог: 210158.39 [00:31:05]line Итого наличными: 181497.00 [00:31:05]line Итого безнал.: 28661.39 [00:31:05]line НДС 0% : 0.00 [00:31:05]line НДС 12% : 22323.03 [00:31:05]line НСП 0% : 0.00 [00:31:05]line НСП 1,50% : 0.00 [00:31:05]line НСП 0,50% : 0.00 [00:31:05]line НСП 5% : 0.00 [00:31:05]line НСП 3% : 0.00 [00:31:05]line НСП 2% : 0.00 [00:31:05]line НСП 1% : 1859.77 [00:31:05]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:31:05]line Чеков: 0 [00:31:05]line Общий итог: 0.00 [00:31:05]line Итого наличными: 0.00 [00:31:05]line Итого безнал.: 0.00 [00:31:05]line НДС 0% : 0.00 [00:31:05]line НДС 12% : 0.00 [00:31:05]line НСП 0% : 0.00 [00:31:05]line НСП 1,50% : 0.00 [00:31:05]line НСП 0,50% : 0.00 [00:31:05]line НСП 5% : 0.00 [00:31:05]line НСП 3% : 0.00 [00:31:05]line НСП 2% : 0.00 [00:31:05]line НСП 1% : 0.00 [00:31:05]line ИТОГИ РАСХОД [00:31:05]line Чеков: 0 [00:31:05]line Общий итог: 0.00 [00:31:05]line Итого наличными: 0.00 [00:31:05]line Итого безнал.: 0.00 [00:31:05]line НДС 0% : 0.00 [00:31:05]line НДС 12% : 0.00 [00:31:05]line НСП 0% : 0.00 [00:31:05]line НСП 1,50% : 0.00 [00:31:05]line НСП 0,50% : 0.00 [00:31:05]OFD Sender: Processing packet 165126 [packets to send 106, broken 105] [00:31:05]ProducePacketName [00:31:05]name=ofd_packets/00165126 [00:31:05]OFD Sender: To server: pG, [00:31:05]CommunicateWithHost lk.salyk.kg:30040 [00:31:05]ConnectInit lk.salyk.kg [00:31:05]line НСП 5% : 0.00 [00:31:05]line НСП 3% : 0.00 [00:31:05]line НСП 2% : 0.00 [00:31:05]line НСП 1% : 0.00 [00:31:05]line ИТОГИ ВОЗВРАТ РАСХОДА [00:31:05]line Чеков: 0 [00:31:05]line Общий итог: 0.00 [00:31:05]line Итого наличными: 0.00 [00:31:05]line Итого безнал.: 0.00 [00:31:05]line НДС 0% : 0.00 [00:31:05]line НДС 12% : 0.00 [00:31:05]line НСП 0% : 0.00 [00:31:05]line НСП 1,50% : 0.00 [00:31:05]line НСП 0,50% : 0.00 [00:31:05]line НСП 5% : 0.00 [00:31:05]line НСП 3% : 0.00 [00:31:05]line НСП 2% : 0.00 [00:31:05]line НСП 1% : 0.00 [00:31:05]line Сумма внесений: 0.00 [00:31:05]line Сумма выплат: 0.00 [00:31:05]line Нал. в кассе: 181497.00 [00:31:05]line НС Приход: 100884330.29 [00:31:05]line НС Возвр.Прихода: 549779.00 [00:31:05]line НС Расход: 0.00 [00:31:05]line НС Возвр.Расхода: 0.00 [00:31:05]line ФД: 165126 [00:31:05]line ФМ: 0000000000874718 [00:31:05]line ФПД: 257357242419130 [00:31:05]written 0, free lines is 4095 [00:31:05]Connected sock=10 [00:31:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 7A 05 00 00 AB AE 72 05 B0 57 5A 05 01 00 05 00 66 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 9D D1 83 D1 80 D0 BC D0 B0 D1 82 D0 BE D0 B2 20 D0 9D 2E 20 F4 03 04 00 BC 6D 94 66 0E 04 04 00 BF 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 5E 04 04 00 43 01 00 00 57 04 04 00 45 01 00 00 AA 04 D8 04 6E 04 04 00 43 01 00 00 69 04 A5 00 6F 04 04 00 43 01 00 00 B1 04 04 00 1F AD 40 01 70 04 04 00 44 F1 14 01 72 04 03 00 DB BB 2B 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 EF 0F 22 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 79 D6 02 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 Write to MH i2c: 03 01 01 00 00 00 00 75 14 EF 89 03 [00:31:06]0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 Write i2c OK [00:31:06]6F MH_I2C_Read... [00:31:06]04 04 00 00 00 Read from MH i2c: 00 01 00 [00:31:06]B1 MH_I2C_Read... [00:31:06]04 01 00 00 70 04 01 00 00 72 04 01 Read from MH i2c: 00 01 00 07 00 00 04 [00:31:06]7E MH_I2C_Read... [00:31:06]00 EE 03 0A 00 F2 03 01 Read from MH i2c: 00 01 00 07 F3 00 03 75 01 00 00 EE 03 0A 00 F2 03 01 14 00 00 00 01 00 F3 00 03 00 01 D4 00 0B 00 6F EF [00:31:06]03 RasterBufferAndPrint [00:31:06]line [00:31:06]line [00:31:06]line [00:31:06]line [00:31:06]line [00:31:06]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 written 0, free lines is 3246 [00:31:06]01 00 00 EF 03 0A 00 F6 03 MH_Cut [00:31:06]01 Write to MH i2c: 00 D1 02 01 F7 00 7C 14 01 62 [00:31:06]Write i2c OK [00:31:06]MH_I2C_Read... [00:31:06]Read from MH i2c: 03 D1 01 [00:31:06]00 MH_I2C_Read... [00:31:06]00 Read from MH i2c: EF D1 03 01 0A 00 00 [00:31:06]F6 MH_I2C_Read... [00:31:06]03 Read from MH i2c: 01 D1 00 01 01 F7 03 01 00 00 6D 04 4C 02 78 00 04 7C 04 14 00 00 00 61 00 00 00 79 04 8D 00 6F 04 04 00 [00:31:06]00 Write to MH i2c: 00 01 00 00 00 00 B1 7D 04 14 00 91 00 [00:31:06]70 04 00 00 72 04 00 00 00 04 75 00 Write i2c OK [00:31:06]EE MH_I2C_Read... [00:31:06]03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 *** Cut start [00:31:07]00 *** Partial cut [00:31:07]F6 03 01 00 05 F7 03 00 00 EF *** CUTSNS_PIN = 1 [00:31:07]03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 *** CUTSNS_PIN = 0 [00:31:07]00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 06 85 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 35 04 06 00 EA 10 A7 03 C7 BA 8E 4D EB A4 3C 94 A2 62 [00:31:07]*** Brake cut motor [00:31:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 26 BC 47 00 B0 ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 06 85 02 00 F4 03 04 00 57 14 94 66 B6 04 01 00 00 ED C7 0A 18 F5 CC 71 39 [00:31:07]CommunicateWithHost err = 0 [00:31:07]CheckOFDResponse [00:31:07]1017 (14) - 77093643461234 [00:31:07]*** Stop cut motor [00:31:07]1041 (16) - 0000000000874718 [00:31:07]*** Cut end [00:31:07]1040 (4) - 165126 [00:31:07]1012 (4) - 14.07.2024 18:09 [00:31:07]1206 (1) - 0 [00:31:07]OFD Sender: Remove packet 165126 [00:31:07]ProducePacketName [00:31:07]Read from MH i2c: 01 [00:31:07]MH_I2C_Read... [00:31:07]name=ofd_packets/00165126 [00:31:07]NVStorageDeleteData [00:31:07]Read from MH i2c: 01 07 00 [00:31:07]MH_I2C_Read... [00:31:07]Read from MH i2c: 01 07 00 7D 14 00 00 00 00 00 FF 0F A6 [00:31:07]process_action close_shift done [00:31:07]requested_data is exist [00:31:07]produce_requested_data [00:31:07]requested_item fd.num is exist - process it [00:31:07]SAM_PROTO_GetFieldsCounters [00:31:07]wFMCommunicate request_size=4 [00:31:07]MH_SAM_APDU [00:31:07]CAPDU: 80 13 00 00 [00:31:07]Write to MH i2c: E2 08 00 7E 14 80 13 00 00 00 00 00 00 0E [00:31:07]Write i2c OK [00:31:07]MH_I2C_Read... [00:31:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:31:07]Read from MH i2c: E2 [00:31:07]MH_I2C_Read... [00:31:07]Read from MH i2c: E2 62 00 [00:31:07]MH_I2C_Read... [00:31:07]Read from MH i2c: E2 62 00 7E 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 06 85 02 00 0E 04 04 00 BF 01 00 00 12 04 04 00 43 01 00 00 5E 04 04 00 43 01 00 00 57 04 04 00 45 01 00 00 19 04 04 00 00 00 00 00 90 00 4F [00:31:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 06 85 02 00 0E 04 04 00 BF 01 00 00 12 04 04 00 43 01 00 00 5E 04 04 00 43 01 00 00 57 04 04 00 45 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:31:08]wFMCommunicate OK [00:31:08]SAM_PROTO_GetFieldsCounters done [00:31:08]requested_item shift.num is exist - process it [00:31:08]requested_item shift.opened is exist - process it [00:31:08]req_shift_opened [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 7F 14 80 13 01 00 00 00 00 00 10 [00:31:08]Write i2c OK [00:31:08]MH_I2C_Read... [00:31:08]OFD Sender: No OFD packet to send [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 7F 14 00 09 00 00 00 00 00 00 00 00 00 00 90 00 1B [00:31:08]RAPDU: 09 00 00 00 00 00 00 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]req_shift_opened done [00:31:08]requested_item shift.open_date is exist - process it [00:31:08]req_shift_open_date [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 80 14 80 13 01 00 00 00 00 00 11 [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 80 14 00 09 00 00 00 00 00 00 00 00 00 00 90 00 1C [00:31:08]RAPDU: 09 00 00 00 00 00 00 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]req_shift_open_date done [00:31:08]produce_requested_data done [00:31:08]produce_requested_data return {"fd.num":165126,"shift.num":447,"shift.opened":0,"shift.open_date":0} [00:31:08]process_action_free close_shift [00:31:08]json_value_free [00:31:08]json_value_free done [00:31:08]process_json_proto returns [00:31:08]Send response to host [00:31:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":165126,"shift.num":447,"shift.opened":0,"shift.open_date":0}}} [00:31:08]free response buf [00:31:08]execute_script done [00:31:08]execute_script returns [00:31:08]free content buf [00:31:08]Sock 9.Close socket [00:31:08]Sock 9.Thread stoped [00:31:13]OFD Sender: No OFD packet to send [00:31:18]OFD Sender: No OFD packet to send [00:31:23]OFD Sender: No OFD packet to send [00:31:28]OFD Sender: No OFD packet to send [00:31:33]OFD Sender: No OFD packet to send [00:31:38]OFD Sender: No OFD packet to send [00:31:43]OFD Sender: No OFD packet to send [00:31:48]OFD Sender: No OFD packet to send [00:31:53]OFD Sender: No OFD packet to send [00:31:58]OFD Sender: No OFD packet to send [00:32:03]OFD Sender: No OFD packet to send [00:32:08]OFD Sender: No OFD packet to send [00:32:13]OFD Sender: No OFD packet to send [00:32:18]OFD Sender: No OFD packet to send [00:32:23]OFD Sender: No OFD packet to send [00:32:28]OFD Sender: No OFD packet to send [00:32:33]OFD Sender: No OFD packet to send [00:32:38]OFD Sender: No OFD packet to send [00:32:43]OFD Sender: No OFD packet to send [00:32:48]OFD Sender: No OFD packet to send [00:32:53]OFD Sender: No OFD packet to send [00:32:58]OFD Sender: No OFD packet to send [00:33:03]OFD Sender: No OFD packet to send [00:33:08]OFD Sender: No OFD packet to send [00:33:13]OFD Sender: No OFD packet to send [00:33:18]OFD Sender: No OFD packet to send [00:33:23]OFD Sender: No OFD packet to send [00:33:28]OFD Sender: No OFD packet to send [00:33:33]OFD Sender: No OFD packet to send [00:33:38]OFD Sender: No OFD packet to send [00:33:43]OFD Sender: No OFD packet to send [00:33:48]OFD Sender: No OFD packet to send [00:33:53]OFD Sender: No OFD packet to send [00:33:58]OFD Sender: No OFD packet to send [00:34:03]OFD Sender: No OFD packet to send [00:34:08]OFD Sender: No OFD packet to send [00:34:13]OFD Sender: No OFD packet to send [00:34:18]OFD Sender: No OFD packet to send [00:34:23]OFD Sender: No OFD packet to send [00:34:28]OFD Sender: No OFD packet to send [00:34:33]OFD Sender: No OFD packet to send [00:34:38]OFD Sender: No OFD packet to send [00:34:43]OFD Sender: No OFD packet to send [00:34:48]OFD Sender: No OFD packet to send [00:34:53]OFD Sender: No OFD packet to send [00:34:58]OFD Sender: No OFD packet to send [00:35:03]OFD Sender: No OFD packet to send [00:35:08]OFD Sender: No OFD packet to send [00:35:13]OFD Sender: No OFD packet to send [00:35:18]OFD Sender: No OFD packet to send [00:35:23]OFD Sender: No OFD packet to send [00:35:28]OFD Sender: No OFD packet to send [00:35:33]OFD Sender: No OFD packet to send [00:35:38]OFD Sender: No OFD packet to send [00:35:43]OFD Sender: No OFD packet to send [00:35:48]OFD Sender: No OFD packet to send [00:35:53]OFD Sender: No OFD packet to send [00:35:58]OFD Sender: No OFD packet to send [00:36:03]OFD Sender: No OFD packet to send [00:36:08]OFD Sender: No OFD packet to send [00:36:13]OFD Sender: No OFD packet to send [00:36:18]OFD Sender: No OFD packet to send [00:36:23]OFD Sender: No OFD packet to send [00:36:28]OFD Sender: No OFD packet to send [00:36:33]OFD Sender: No OFD packet to send [00:36:38]OFD Sender: No OFD packet to send [00:36:43]OFD Sender: No OFD packet to send [00:36:48]OFD Sender: No OFD packet to send [00:36:53]OFD Sender: No OFD packet to send [00:36:58]OFD Sender: No OFD packet to send [00:37:03]OFD Sender: No OFD packet to send [00:37:08]OFD Sender: No OFD packet to send [00:37:13]OFD Sender: No OFD packet to send [00:37:18]OFD Sender: No OFD packet to send [00:37:23]OFD Sender: No OFD packet to send [00:37:28]OFD Sender: No OFD packet to send [00:37:33]OFD Sender: No OFD packet to send [00:37:38]OFD Sender: No OFD packet to send [00:37:43]OFD Sender: No OFD packet to send [00:37:48]OFD Sender: No OFD packet to send [00:37:49]accept exits with 7 [00:37:49]New connection [00:37:49]New thread 3066785124 created [00:37:49]Thread 3066928484 joined [00:37:49]Waiting for new connection... [00:37:49] Sock 7.Parse request [00:37:49]Sock 7.Check first char [00:37:49]Sock 7.First char is OK [00:37:49]request: POST /json_proto HTTP/1.0 [00:37:49]Method: POST [00:37:49]URL: /json_proto [00:37:49]Method is POST - this is cgi request [00:37:49]url: /json_proto [00:37:49]query_string will be loaded in cgi processing [00:37:49]execute_cgi json_proto POST (null) [00:37:49]execute_cgi path=json_proto method=POST [00:37:49]POST find Content-Length [00:37:49]Host: 172.17.56.4:8080 [00:37:49]Content-Length: 215 [00:37:49]Content-Type: application/json [00:37:49] [00:37:49]POST finish read [00:37:49]Found Content-Length = 215 [00:37: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:37:49]execute_script... [00:37: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:37:49]POST & json_proto [00:37:49]process_json_proto [00:37:49]json parsed OK: [00:37:49]protocol is kg_v1.0 [00:37:49]action value=get_value [00:37:49]process_action get_value [00:37:49]cmd_get_value [00:37:49]process_action get_value done [00:37:49]requested_data is exist [00:37:49]produce_requested_data [00:37:49]requested_item kkm.sn is exist - process it [00:37:49]requested_item kkm.ver is exist - process it [00:37:49]requested_item fm.sn is exist - process it [00:37:49]wFMCommunicate request_size=4 [00:37:49]MH_SAM_APDU [00:37:49]CAPDU: 80 11 00 00 [00:37:49]Write to MH i2c: E2 08 00 81 14 80 11 00 00 00 00 00 00 0F [00:37:49]Write i2c OK [00:37:49]MH_I2C_Read... [00:37:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:37:49]Read from MH i2c: E2 [00:37:49]MH_I2C_Read... [00:37:49]Read from MH i2c: E2 17 00 [00:37:49]MH_I2C_Read... [00:37:49]Read from MH i2c: E2 17 00 81 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 65 [00:37:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [00:37:49]wFMCommunicate OK [00:37:49]requested_item fd.num is exist - process it [00:37:49]SAM_PROTO_GetFieldsCounters [00:37:49]wFMCommunicate request_size=4 [00:37:49]MH_SAM_APDU [00:37:49]CAPDU: 80 13 00 00 [00:37:49]Write to MH i2c: E2 08 00 82 14 80 13 00 00 00 00 00 00 12 [00:37:49]Write i2c OK [00:37:49]MH_I2C_Read... [00:37:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:37:50]Read from MH i2c: E2 [00:37:50]MH_I2C_Read... [00:37:50]Read from MH i2c: E2 62 00 [00:37:50]MH_I2C_Read... [00:37:50]Read from MH i2c: E2 62 00 82 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 06 85 02 00 0E 04 04 00 BF 01 00 00 12 04 04 00 43 01 00 00 5E 04 04 00 43 01 00 00 57 04 04 00 45 01 00 00 19 04 04 00 00 00 00 00 90 00 53 [00:37:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 06 85 02 00 0E 04 04 00 BF 01 00 00 12 04 04 00 43 01 00 00 5E 04 04 00 43 01 00 00 57 04 04 00 45 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:37:50]wFMCommunicate OK [00:37:50]SAM_PROTO_GetFieldsCounters done [00:37:50]requested_item shift.num is exist - process it [00:37:50]requested_item shift.opened is exist - process it [00:37:50]req_shift_opened [00:37:50]FM_GetShiftState [00:37:50]SAM_PROTO_GetShiftState [00:37:50]wFMCommunicate request_size=4 [00:37:50]MH_SAM_APDU [00:37:50]CAPDU: 80 13 01 00 [00:37:50]Write to MH i2c: E2 08 00 83 14 80 13 01 00 00 00 00 00 14 [00:37:50]Write i2c OK [00:37:50]MH_I2C_Read... [00:37:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:37:50]Read from MH i2c: E2 [00:37:50]MH_I2C_Read... [00:37:50]Read from MH i2c: E2 0E 00 [00:37:50]MH_I2C_Read... [00:37:50]Read from MH i2c: E2 0E 00 83 14 00 09 00 00 00 00 00 00 00 00 00 00 90 00 1F [00:37:50]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:37:50]wFMCommunicate OK [00:37:50]SAM_PROTO_GetShiftState done [00:37:50]FM_GetShiftState done [00:37:50]req_shift_opened done [00:37:50]requested_item shift.open_date is exist - process it [00:37:50]req_shift_open_date [00:37:50]FM_GetShiftState [00:37:50]SAM_PROTO_GetShiftState [00:37:50]wFMCommunicate request_size=4 [00:37:50]MH_SAM_APDU [00:37:50]CAPDU: 80 13 01 00 [00:37:50]Write to MH i2c: E2 08 00 84 14 80 13 01 00 00 00 00 00 15 [00:37:50]Write i2c OK [00:37:50]MH_I2C_Read... [00:37:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:37:50]Read from MH i2c: E2 [00:37:50]MH_I2C_Read... [00:37:50]Read from MH i2c: E2 0E 00 [00:37:50]MH_I2C_Read... [00:37:50]Read from MH i2c: E2 0E 00 84 14 00 09 00 00 00 00 00 00 00 00 00 00 90 00 20 [00:37:50]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:37:50]wFMCommunicate OK [00:37:50]SAM_PROTO_GetShiftState done [00:37:50]FM_GetShiftState done [00:37:50]req_shift_open_date done [00:37:50]produce_requested_data done [00:37:50]produce_requested_data return {"kkm.sn":"0300000160","kkm.ver":"001","fm.sn":"0000000000874718","fd.num":165126,"shift.num":447,"shift.opened":0,"shift.open_date":0} [00:37:50]process_action_free get_value [00:37:50]json_value_free [00:37:50]json_value_free done [00:37:50]process_json_proto returns [00:37:50]Send response to host [00:37:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000160","kkm.ver":"001","fm.sn":"0000000000874718","fd.num":165126,"shift.num":447,"shift.opened":0,"shift.open_date":0}}} [00:37:50]free response buf [00:37:50]execute_script done [00:37:50]execute_script returns [00:37:50]free content buf [00:37:50]Sock 7.Close socket [00:37:50]Sock 7.Thread stoped [00:37:50]accept exits with 9 [00:37:50]New connection [00:37:50]New thread 3066928484 created [00:37:50]Thread 3066785124 joined [00:37:50]Waiting for new connection... [00:37:50] Sock 9.Parse request [00:37:50]Sock 9.Check first char [00:37:50]Sock 9.First char is OK [00:37:50]request: POST /json_proto HTTP/1.0 [00:37:50]Method: POST [00:37:50]URL: /json_proto [00:37:50]Method is POST - this is cgi request [00:37:50]url: /json_proto [00:37:50]query_string will be loaded in cgi processing [00:37:50]execute_cgi json_proto POST (null) [00:37:50]execute_cgi path=json_proto method=POST [00:37:50]POST find Content-Length [00:37:50]Host: 172.17.56.4:8080 [00:37:50]Content-Length: 331 [00:37:50]Content-Type: application/json [00:37:50] [00:37:50]POST finish read [00:37:50]Found Content-Length = 331 [00:37: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:37:50]execute_script... [00:37: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:37:50]POST & json_proto [00:37:50]process_json_proto [00:37:50]json parsed OK: [00:37:50]protocol is kg_v1.0 [00:37:50]action value=get_value [00:37:50]process_action get_value [00:37:50]cmd_get_value [00:37:50]process_action get_value done [00:37:50]requested_data is exist [00:37:50]produce_requested_data [00:37:50]requested_item fm.sale.total is exist - process it [00:37:50]SAM_PROTO_GetFMData [00:37:50]wFMCommunicate request_size=4 [00:37:50]MH_SAM_APDU [00:37:50]CAPDU: 80 13 03 00 [00:37:50]Write to MH i2c: E2 08 00 85 14 80 13 03 00 00 00 00 00 18 [00:37:50]Write i2c OK [00:37:50]MH_I2C_Read... [00:37:50]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:37:50]Read from MH i2c: E2 [00:37:50]MH_I2C_Read... [00:37:50]Read from MH i2c: E2 FD 00 [00:37:50]MH_I2C_Read... [00:37:50]Read from MH i2c: E2 FD 00 85 14 00 C4 04 85 04 C0 04 6E 04 04 00 84 81 02 00 69 04 A3 00 6F 04 04 00 76 80 02 00 B1 04 05 00 85 45 51 59 02 70 04 05 00 5D FE FF 36 02 72 04 04 00 28 47 51 22 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 89 A3 E1 3F 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 FE 9C 52 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 0E 01 00 00 B1 04 04 00 6C E5 46 03 70 04 04 00 6C E5 46 03 72 04 00 00 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 23 19 59 EF 03 09 00 90 00 34 [00:37:50]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 84 81 02 00 69 04 A3 00 6F 04 04 00 76 80 02 00 B1 04 05 00 85 45 51 59 02 70 04 05 00 5D FE FF 36 02 72 04 04 00 28 47 51 22 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 89 A3 E1 3F 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 FE 9C 52 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 0E 01 00 00 B1 04 04 00 6C E5 46 03 70 04 04 00 6C E5 46 03 72 04 00 00 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 23 19 59 EF 03 09 00 90 00 [00:37:50]wFMCommunicate OK [00:37:50]wFMCommunicate request_size=4 [00:37:50]MH_SAM_APDU [00:37:50]CAPDU: 80 17 00 00 [00:37:50]Write to MH i2c: E2 08 00 86 14 80 17 00 00 00 00 00 00 1A [00:37:50]Write i2c OK [00:37:50]MH_I2C_Read... [00:37:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:37:51]Read from MH i2c: E2 [00:37:51]MH_I2C_Read... [00:37:51]Read from MH i2c: E2 FD 00 [00:37:51]MH_I2C_Read... [00:37:51]Read from MH i2c: E2 FD 00 86 14 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B1 6C 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 F4 [00:37:51]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B1 6C 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:37:51]wFMCommunicate OK [00:37:51]wFMCommunicate request_size=4 [00:37:51]MH_SAM_APDU [00:37:51]CAPDU: 80 17 00 00 [00:37:51]Write to MH i2c: E2 08 00 87 14 80 17 00 00 00 00 00 00 1B [00:37:51]Write i2c OK [00:37:51]MH_I2C_Read... [00:37:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:37:51]Read from MH i2c: E2 [00:37:51]MH_I2C_Read... [00:37:51]Read from MH i2c: E2 FD 00 [00:37:51]MH_I2C_Read... [00:37:51]Read from MH i2c: E2 FD 00 87 14 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 30 [00:37:51]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:37:51]wFMCommunicate OK [00:37:51]wFMCommunicate request_size=4 [00:37:51]MH_SAM_APDU [00:37:51]CAPDU: 80 17 00 00 [00:37:51]Write to MH i2c: E2 08 00 88 14 80 17 00 00 00 00 00 00 1C [00:37:51]Write i2c OK [00:37:51]MH_I2C_Read... [00:37:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:37:51]Read from MH i2c: E2 [00:37:51]MH_I2C_Read... [00:37:51]Read from MH i2c: E2 FD 00 [00:37:51]MH_I2C_Read... [00:37:51]Read from MH i2c: E2 FD 00 88 14 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 94 [00:37:51]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:37:51]wFMCommunicate OK [00:37:51]wFMCommunicate request_size=4 [00:37:51]MH_SAM_APDU [00:37:51]CAPDU: 80 17 00 00 [00:37:51]Write to MH i2c: E2 08 00 89 14 80 17 00 00 00 00 00 00 1D [00:37:51]Write i2c OK [00:37:51]MH_I2C_Read... [00:37:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [00:37:51]Read from MH i2c: E2 [00:37:51]MH_I2C_Read... [00:37:51]Read from MH i2c: E2 E1 00 [00:37:51]MH_I2C_Read... [00:37:51]Read from MH i2c: E2 E1 00 89 14 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:37:51]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:37:51]wFMCommunicate OK [00:37:51]SAM_PROTO_GetFMData done [00:37:51]requested_item fm.sale_refund.total is exist - process it [00:37:51]requested_item fm.buy.total is exist - process it [00:37:51]requested_item shift.sale.total is exist - process it [00:37:51]SAM_PROTO_GetShiftData [00:37:51]wFMCommunicate request_size=4 [00:37:51]MH_SAM_APDU [00:37:51]CAPDU: 80 13 02 00 [00:37:51]Write to MH i2c: E2 08 00 8A 14 80 13 02 00 00 00 00 00 1C [00:37:51]Write i2c OK [00:37:51]MH_I2C_Read... [00:37:52]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:37:52]Read from MH i2c: E2 [00:37:52]MH_I2C_Read... [00:37:52]Read from MH i2c: E2 FD 00 [00:37:52]MH_I2C_Read... [00:37:52]Read from MH i2c: E2 FD 00 8A 14 00 B1 04 AA 04 AD 04 6E 04 04 00 43 01 00 00 69 04 9E 00 6F 04 04 00 43 01 00 00 B1 04 04 00 1F AD 40 01 70 04 04 00 44 F1 14 01 72 04 03 00 DB BB 2B 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 EF 0F 22 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 79 D6 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 04 [00:37:52]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 43 01 00 00 69 04 9E 00 6F 04 04 00 43 01 00 00 B1 04 04 00 1F AD 40 01 70 04 04 00 44 F1 14 01 72 04 03 00 DB BB 2B 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 EF 0F 22 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 79 D6 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:37:52]wFMCommunicate OK [00:37:52]wFMCommunicate request_size=4 [00:37:52]MH_SAM_APDU [00:37:52]CAPDU: 80 17 00 00 [00:37:52]Write to MH i2c: E2 08 00 8B 14 80 17 00 00 00 00 00 00 1F [00:37:52]Write i2c OK [00:37:52]MH_I2C_Read... [00:37:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:37:52]Read from MH i2c: E2 [00:37:52]MH_I2C_Read... [00:37:52]Read from MH i2c: E2 FD 00 [00:37:52]MH_I2C_Read... [00:37:52]Read from MH i2c: E2 FD 00 8B 14 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 38 [00:37:52]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:37:52]wFMCommunicate OK [00:37:52]wFMCommunicate request_size=4 [00:37:52]MH_SAM_APDU [00:37:52]CAPDU: 80 17 00 00 [00:37:52]Write to MH i2c: E2 08 00 8C 14 80 17 00 00 00 00 00 00 20 [00:37:52]Write i2c OK [00:37:52]MH_I2C_Read... [00:37:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:37:52]Read from MH i2c: E2 [00:37:52]MH_I2C_Read... [00:37:52]Read from MH i2c: E2 FD 00 [00:37:52]MH_I2C_Read... [00:37:52]Read from MH i2c: E2 FD 00 8C 14 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D9 [00:37:52]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:37:52]wFMCommunicate OK [00:37:52]wFMCommunicate request_size=4 [00:37:52]MH_SAM_APDU [00:37:52]CAPDU: 80 17 00 00 [00:37:52]Write to MH i2c: E2 08 00 8D 14 80 17 00 00 00 00 00 00 21 [00:37:52]Write i2c OK [00:37:52]MH_I2C_Read... [00:37:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:37:53]Read from MH i2c: E2 [00:37:53]MH_I2C_Read... [00:37:53]Read from MH i2c: E2 FD 00 [00:37:53]MH_I2C_Read... [00:37:53]Read from MH i2c: E2 FD 00 8D 14 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 90 00 99 [00:37:53]RAPDU: 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 90 00 [00:37:53]wFMCommunicate OK [00:37:53]wFMCommunicate request_size=4 [00:37:53]MH_SAM_APDU [00:37:53]CAPDU: 80 17 00 00 [00:37:53]Write to MH i2c: E2 08 00 8E 14 80 17 00 00 00 00 00 00 22 [00:37:53]Write i2c OK [00:37:53]MH_I2C_Read... [00:37:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:37:53]Read from MH i2c: E2 [00:37:53]MH_I2C_Read... [00:37:53]Read from MH i2c: E2 CE 00 [00:37:53]MH_I2C_Read... [00:37:53]Read from MH i2c: E2 CE 00 8E 14 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 07 [00:37:53]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:37:53]wFMCommunicate OK [00:37:53]SAM_PROTO_GetShiftData done [00:37:53]requested_item shift.sale.total_cash is exist - process it [00:37:53]requested_item shift.sale_refund.total is exist - process it [00:37:53]requested_item shift.sale_refund.total_cash is exist - process it [00:37:53]requested_item shift.buy.total is exist - process it [00:37:53]requested_item shift.buy.total_cash is exist - process it [00:37:53]produce_requested_data done [00:37:53]produce_requested_data return {"fm.sale.total":100884330.29,"fm.sale_refund.total":549779.00,"fm.buy.total":0.00,"shift.sale.total":210158.39,"shift.sale.total_cash":181497.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:37:53]process_action_free get_value [00:37:53]json_value_free [00:37:53]json_value_free done [00:37:53]process_json_proto returns [00:37:53]Send response to host [00:37:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":100884330.29,"fm.sale_refund.total":549779.00,"fm.buy.total":0.00,"shift.sale.total":210158.39,"shift.sale.total_cash":181497.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:37:53]free response buf [00:37:53]execute_script done [00:37:53]execute_script returns [00:37:53]free content buf [00:37:53]Sock 9.Close socket [00:37:53]Sock 9.Thread stoped [00:37:53]accept exits with 7 [00:37:53]New connection [00:37:53]New thread 3066785124 created [00:37:53]Thread 3066928484 joined [00:37:53]Waiting for new connection... [00:37:53] Sock 7.Parse request [00:37:53]Sock 7.Check first char [00:37:53]Sock 7.First char is OK [00:37:53]request: POST /json_proto HTTP/1.0 [00:37:53]Method: POST [00:37:53]URL: /json_proto [00:37:53]Method is POST - this is cgi request [00:37:53]url: /json_proto [00:37:53]query_string will be loaded in cgi processing [00:37:53]execute_cgi json_proto POST (null) [00:37:53]execute_cgi path=json_proto method=POST [00:37:53]POST find Content-Length [00:37:53]Host: 172.17.56.4:8080 [00:37:53]Content-Length: 253 [00:37:53]Content-Type: application/json [00:37:53] [00:37:53]POST finish read [00:37:53]Found Content-Length = 253 [00:37:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0421\u0430\u0434\u044B\u043A\u043E\u0432 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:37:53]execute_script... [00:37:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0421\u0430\u0434\u044B\u043A\u043E\u0432 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:37:53]POST & json_proto [00:37:53]process_json_proto [00:37:53]json parsed OK: [00:37:53]protocol is kg_v1.0 [00:37:53]action value=open_shift [00:37:53]process_action open_shift [00:37:53]cmd_open_shift [00:37:53]MH_GetDate [00:37:53]Write to MH i2c: F0 00 00 8F 14 92 [00:37:53]Write i2c OK [00:37:53]MH_I2C_Read... [00:37:53]Read from MH i2c: F0 [00:37:53]MH_I2C_Read... [00:37:53]Read from MH i2c: F0 09 00 [00:37:53]MH_I2C_Read... [00:37:53]Read from MH i2c: F0 09 00 8F 14 00 64 6F 94 66 C9 DC B2 64 23 [00:37:53]GetLastDocTimeStamp 1721003452 [00:37:53]current date 1721003876 [00:37:53]FM_GetShiftState [00:37:53]SAM_PROTO_GetShiftState [00:37:53]wFMCommunicate request_size=4 [00:37:53]MH_SAM_APDU [00:37:53]CAPDU: 80 13 01 00 [00:37:53]Write to MH i2c: E2 08 00 90 14 80 13 01 00 00 00 00 00 21 [00:37:53]Write i2c OK [00:37:53]MH_I2C_Read... [00:37:53]OFD Sender: No OFD packet to send [00:37:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:37:53]Read from MH i2c: E2 [00:37:53]MH_I2C_Read... [00:37:53]Read from MH i2c: E2 0E 00 [00:37:53]MH_I2C_Read... [00:37:53]Read from MH i2c: E2 0E 00 90 14 00 09 00 00 00 00 00 00 00 00 00 00 90 00 2C [00:37:53]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:37:53]wFMCommunicate OK [00:37:53]SAM_PROTO_GetShiftState done [00:37:53]FM_GetShiftState done [00:37:53]KKMCreateOpenShiftDocument [00:37:53]Load OK [00:37:53]Malloc new data [00:37:53]MH_GetDate [00:37:53]Write to MH i2c: F0 00 00 91 14 94 [00:37:53]Write i2c OK [00:37:53]MH_I2C_Read... [00:37:53]Read from MH i2c: F0 [00:37:53]MH_I2C_Read... [00:37:53]Read from MH i2c: F0 09 00 [00:37:53]MH_I2C_Read... [00:37:53]Read from MH i2c: F0 09 00 91 14 00 64 6F 94 66 C9 DC B2 64 25 [00:37:53]Malloc new data [00:37:53]KKMCreateOpenShiftDocument OK [00:37:53]KKMSetOpenShiftData OK [00:37:53]ProcessDocumentItem done err = 0, tmpTLVsize=169 [00:37:53]tlvbuf is 0138A200 [00:37:53]KKMLoadAndSignOpenShiftData [00:37:53]SAM_PROTO_ProcessDocument [00:37:53]wFMCommunicate request_size=9 [00:37:53]MH_SAM_APDU [00:37:53]CAPDU: 80 15 01 00 04 02 00 A9 00 [00:37:53]Write to MH i2c: E2 0C 00 92 14 80 15 01 00 04 00 02 00 A9 00 00 00 D8 [00:37:53]Write i2c OK [00:37:53]MH_I2C_Read... [00:37:53]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:37:53]Read from MH i2c: E2 [00:37:53]MH_I2C_Read... [00:37:53]Read from MH i2c: E2 03 00 [00:37:53]MH_I2C_Read... [00:37:53]Read from MH i2c: E2 03 00 92 14 00 90 00 1A [00:37:53]RAPDU: 90 00 [00:37:53]wFMCommunicate OK [00:37:53]wFMCommunicate request_size=23 [00:37:53]MH_SAM_APDU [00:37: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:37:53]Write to MH i2c: E2 1A 00 93 14 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 1C [00:37:53]Write i2c OK [00:37:53]MH_I2C_Read... [00:37:53]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:37:53]Read from MH i2c: E2 [00:37:53]MH_I2C_Read... [00:37:53]Read from MH i2c: E2 03 00 [00:37:53]MH_I2C_Read... [00:37:53]Read from MH i2c: E2 03 00 93 14 00 90 00 1B [00:37:53]RAPDU: 90 00 [00:37:53]wFMCommunicate OK [00:37:53]wFMCommunicate request_size=28 [00:37:53]MH_SAM_APDU [00:37:53]CAPDU: 80 15 02 00 17 FD 03 13 00 D0 A1 D0 B0 D0 B4 D1 8B D0 BA D0 BE D0 B2 20 D0 9D 2E 20 [00:37:53]Write to MH i2c: E2 1F 00 94 14 80 15 02 00 17 00 FD 03 13 00 D0 A1 D0 B0 D0 B4 D1 8B D0 BA D0 BE D0 B2 20 D0 9D 2E 20 00 00 AF [00:37:53]Write i2c OK [00:37:53]MH_I2C_Read... [00:37:54]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:37:54]Read from MH i2c: E2 [00:37:54]MH_I2C_Read... [00:37:54]Read from MH i2c: E2 03 00 [00:37:54]MH_I2C_Read... [00:37:54]Read from MH i2c: E2 03 00 94 14 00 90 00 1C [00:37:54]RAPDU: 90 00 [00:37:54]wFMCommunicate OK [00:37:54]wFMCommunicate request_size=60 [00:37:54]MH_SAM_APDU [00:37:54]CAPDU: 80 15 02 00 37 F1 03 33 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 91 D0 B0 D0 BA D0 B0 D0 B9 20 D0 90 D1 82 D0 B0 2C 20 34 32 2E 34 38 36 37 37 38 2C 20 37 31 2E 39 33 34 30 30 34 [00:37:54]Write to MH i2c: E2 3F 00 95 14 80 15 02 00 37 00 F1 03 33 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 91 D0 B0 D0 BA D0 B0 D0 B9 20 D0 90 D1 82 D0 B0 2C 20 34 32 2E 34 38 36 37 37 38 2C 20 37 31 2E 39 33 34 30 30 34 00 00 D9 [00:37:54]Write i2c OK [00:37:54]MH_I2C_Read... [00:37:54]Read from MH i2c: E2 [00:37:54]MH_I2C_Read... [00:37:54]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:37:54]Read from MH i2c: E2 03 00 [00:37:54]MH_I2C_Read... [00:37:54]Read from MH i2c: E2 03 00 95 14 00 90 00 1D [00:37:54]RAPDU: 90 00 [00:37:54]wFMCommunicate OK [00:37:54]wFMCommunicate request_size=50 [00:37:54]MH_SAM_APDU [00:37:54]CAPDU: 80 15 02 00 2D A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 37 32 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 [00:37:54]Write to MH i2c: E2 35 00 96 14 80 15 02 00 2D 00 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 37 32 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 00 00 A2 [00:37:54]Write i2c OK [00:37:54]MH_I2C_Read... [00:37:54]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:37:54]Read from MH i2c: E2 [00:37:54]MH_I2C_Read... [00:37:54]Read from MH i2c: E2 03 00 [00:37:54]MH_I2C_Read... [00:37:54]Read from MH i2c: E2 03 00 96 14 00 90 00 1E [00:37:54]RAPDU: 90 00 [00:37:54]wFMCommunicate OK [00:37:54]wFMCommunicate request_size=13 [00:37:54]MH_SAM_APDU [00:37:54]CAPDU: 80 15 02 00 08 F4 03 04 00 64 6F 94 66 [00:37:54]Write to MH i2c: E2 10 00 97 14 80 15 02 00 08 00 F4 03 04 00 64 6F 94 66 00 00 03 [00:37:54]Write i2c OK [00:37:54]MH_I2C_Read... [00:37:54]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:37:54]Read from MH i2c: E2 [00:37:54]MH_I2C_Read... [00:37:54]Read from MH i2c: E2 03 00 [00:37:54]MH_I2C_Read... [00:37:54]Read from MH i2c: E2 03 00 97 14 00 90 00 1F [00:37:54]RAPDU: 90 00 [00:37:54]wFMCommunicate OK [00:37:54]wFMCommunicate request_size=25 [00:37:54]MH_SAM_APDU [00:37:54]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 [00:37:54]Write to MH i2c: E2 1C 00 98 14 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 00 00 91 [00:37:54]Write i2c OK [00:37:54]MH_I2C_Read... [00:37:54]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:37:54]Read from MH i2c: E2 [00:37:54]MH_I2C_Read... [00:37:54]Read from MH i2c: E2 03 00 [00:37:54]MH_I2C_Read... [00:37:54]Read from MH i2c: E2 03 00 98 14 00 90 00 20 [00:37:54]RAPDU: 90 00 [00:37:54]wFMCommunicate OK [00:37:54]wFMCommunicate request_size=4 [00:37:54]MH_SAM_APDU [00:37:54]CAPDU: 80 15 03 00 [00:37:54]Write to MH i2c: E2 08 00 99 14 80 15 03 00 00 00 00 00 2E [00:37:54]Write i2c OK [00:37:54]MH_I2C_Read... [00:37:54]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:37:54]Read from MH i2c: E2 [00:37:54]MH_I2C_Read... [00:37:54]Read from MH i2c: E2 38 00 [00:37:54]MH_I2C_Read... [00:37:54]Read from MH i2c: E2 38 00 99 14 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 07 85 02 00 0E 04 04 00 C0 01 00 00 35 04 06 00 26 E8 78 80 F9 28 90 00 73 [00:37:54]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 07 85 02 00 0E 04 04 00 C0 01 00 00 35 04 06 00 26 E8 78 80 F9 28 90 00 [00:37:54]wFMCommunicate OK [00:37:54]SAM_PROTO_ProcessDocument answer len = 51 [00:37:54]SAM_PROTO_ProcessDocument done [00:37:54]SetTLVBufToDocument [00:37:54]Processing tag 1209 (04B9) [00:37:54]Malloc new data [00:37:54]Processing tag 1041 (0411) [00:37:54]Processing tag 1040 (0410) [00:37:54]Malloc new data [00:37:54]Processing tag 1038 (040E) [00:37:54]Malloc new data [00:37:54]Processing tag 1077 (0435) [00:37:54]Malloc new data [00:37:54]SetTLVBufToDocument err=0 [00:37:54]KKMLoadAndSignOpenShiftData store KKM data [00:37:54]KKMLoadAndSignOpenShiftData err=0 [00:37:54]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Садыков Н. Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 Место: АЗС № 72 "Партнер Нефть" 15.07.2024 00:37 Смена: 448 РНМ: 0000000000090829 ЗНМ: 0300000160 ФД: 165127 ФМ: 0000000000874718 ФПД: 42779895986472 [00:37:54]StoreToDocumentArchive [00:37:54]shift 448 fd 165127 [00:37:54]Create dir for shift 0448 [00:37:54]save to /storage/0448/doc_00165127 [00:37:54]save last doc name /storage/0448/doc_00165127 to /storage/kkm_last_doc_name [00:37:54]save OK [00:37:54]Clear old archive folders... [00:37:54]Remove dir /storage/0447 [00:37:54]opendir ok [00:37:54]file . [00:37:54]file .. [00:37:54]file doc_00164802 [00:37:54]remove file /storage/0447/doc_00164802 [00:37:54]file doc_00164803 [00:37:54]remove file /storage/0447/doc_00164803 [00:37:54]file doc_00164804 [00:37:54]remove file /storage/0447/doc_00164804 [00:37:54]file doc_00164805 [00:37:54]remove file /storage/0447/doc_00164805 [00:37:54]file doc_00164806 [00:37:54]remove file /storage/0447/doc_00164806 [00:37:54]file doc_00164807 [00:37:54]remove file /storage/0447/doc_00164807 [00:37:54]file doc_00164808 [00:37:54]remove file /storage/0447/doc_00164808 [00:37:54]file doc_00164809 [00:37:54]remove file /storage/0447/doc_00164809 [00:37:54]file doc_00164810 [00:37:54]remove file /storage/0447/doc_00164810 [00:37:54]file doc_00164811 [00:37:54]remove file /storage/0447/doc_00164811 [00:37:54]file doc_00164812 [00:37:54]remove file /storage/0447/doc_00164812 [00:37:54]file doc_00164813 [00:37:54]remove file /storage/0447/doc_00164813 [00:37:54]file doc_00164814 [00:37:54]remove file /storage/0447/doc_00164814 [00:37:54]file doc_00164815 [00:37:54]remove file /storage/0447/doc_00164815 [00:37:54]file doc_00164816 [00:37:54]remove file /storage/0447/doc_00164816 [00:37:54]file doc_00164817 [00:37:54]remove file /storage/0447/doc_00164817 [00:37:54]file doc_00164818 [00:37:54]remove file /storage/0447/doc_00164818 [00:37:54]file doc_00164819 [00:37:54]remove file /storage/0447/doc_00164819 [00:37:54]file doc_00164820 [00:37:54]remove file /storage/0447/doc_00164820 [00:37:54]file doc_00164821 [00:37:54]remove file /storage/0447/doc_00164821 [00:37:54]file doc_00164822 [00:37:54]remove file /storage/0447/doc_00164822 [00:37:54]file doc_00164823 [00:37:54]remove file /storage/0447/doc_00164823 [00:37:54]file doc_00164824 [00:37:54]remove file /storage/0447/doc_00164824 [00:37:54]file doc_00164825 [00:37:54]remove file /storage/0447/doc_00164825 [00:37:54]file doc_00164826 [00:37:54]remove file /storage/0447/doc_00164826 [00:37:54]file doc_00164827 [00:37:54]remove file /storage/0447/doc_00164827 [00:37:54]file doc_00164828 [00:37:54]remove file /storage/0447/doc_00164828 [00:37:54]file doc_00164829 [00:37:54]remove file /storage/0447/doc_00164829 [00:37:54]file doc_00164830 [00:37:54]remove file /storage/0447/doc_00164830 [00:37:54]file doc_00164831 [00:37:54]remove file /storage/0447/doc_00164831 [00:37:54]file doc_00164832 [00:37:54]remove file /storage/0447/doc_00164832 [00:37:54]file doc_00164833 [00:37:54]remove file /storage/0447/doc_00164833 [00:37:54]file doc_00164834 [00:37:54]remove file /storage/0447/doc_00164834 [00:37:54]file doc_00164835 [00:37:54]remove file /storage/0447/doc_00164835 [00:37:54]file doc_00164836 [00:37:54]remove file /storage/0447/doc_00164836 [00:37:54]file doc_00164837 [00:37:54]remove file /storage/0447/doc_00164837 [00:37:54]file doc_00164838 [00:37:54]remove file /storage/0447/doc_00164838 [00:37:54]file doc_00164839 [00:37:54]remove file /storage/0447/doc_00164839 [00:37:54]file doc_00164840 [00:37:54]remove file /storage/0447/doc_00164840 [00:37:54]file doc_00164841 [00:37:54]remove file /storage/0447/doc_00164841 [00:37:54]file doc_00164842 [00:37:54]remove file /storage/0447/doc_00164842 [00:37:54]file doc_00164843 [00:37:54]remove file /storage/0447/doc_00164843 [00:37:54]file doc_00164844 [00:37:54]remove file /storage/0447/doc_00164844 [00:37:54]file doc_00164845 [00:37:54]remove file /storage/0447/doc_00164845 [00:37:54]file doc_00164846 [00:37:54]remove file /storage/0447/doc_00164846 [00:37:54]file doc_00164847 [00:37:54]remove file /storage/0447/doc_00164847 [00:37:54]file doc_00164848 [00:37:54]remove file /storage/0447/doc_00164848 [00:37:54]file doc_00164849 [00:37:54]remove file /storage/0447/doc_00164849 [00:37:54]file doc_00164850 [00:37:54]remove file /storage/0447/doc_00164850 [00:37:54]file doc_00164851 [00:37:54]remove file /storage/0447/doc_00164851 [00:37:54]file doc_00164852 [00:37:54]remove file /storage/0447/doc_00164852 [00:37:54]file doc_00164853 [00:37:54]remove file /storage/0447/doc_00164853 [00:37:54]file doc_00164854 [00:37:54]remove file /storage/0447/doc_00164854 [00:37:54]file doc_00164855 [00:37:54]remove file /storage/0447/doc_00164855 [00:37:54]file doc_00164856 [00:37:54]remove file /storage/0447/doc_00164856 [00:37:54]file doc_00164857 [00:37:54]remove file /storage/0447/doc_00164857 [00:37:54]file doc_00164858 [00:37:54]remove file /storage/0447/doc_00164858 [00:37:54]file doc_00164859 [00:37:54]remove file /storage/0447/doc_00164859 [00:37:54]file doc_00164860 [00:37:54]remove file /storage/0447/doc_00164860 [00:37:54]file doc_00164861 [00:37:54]remove file /storage/0447/doc_00164861 [00:37:54]file doc_00164862 [00:37:54]remove file /storage/0447/doc_00164862 [00:37:54]file doc_00164863 [00:37:54]remove file /storage/0447/doc_00164863 [00:37:54]file doc_00164864 [00:37:54]remove file /storage/0447/doc_00164864 [00:37:54]file doc_00164865 [00:37:54]remove file /storage/0447/doc_00164865 [00:37:54]file doc_00164866 [00:37:54]remove file /storage/0447/doc_00164866 [00:37:54]file doc_00164867 [00:37:54]remove file /storage/0447/doc_00164867 [00:37:54]file doc_00164868 [00:37:54]remove file /storage/0447/doc_00164868 [00:37:54]file doc_00164869 [00:37:54]remove file /storage/0447/doc_00164869 [00:37:54]file doc_00164870 [00:37:54]remove file /storage/0447/doc_00164870 [00:37:54]file doc_00164871 [00:37:54]remove file /storage/0447/doc_00164871 [00:37:54]file doc_00164872 [00:37:54]remove file /storage/0447/doc_00164872 [00:37:54]file doc_00164873 [00:37:54]remove file /storage/0447/doc_00164873 [00:37:54]file doc_00164874 [00:37:54]remove file /storage/0447/doc_00164874 [00:37:54]file doc_00164875 [00:37:54]remove file /storage/0447/doc_00164875 [00:37:54]file doc_00164876 [00:37:54]remove file /storage/0447/doc_00164876 [00:37:54]file doc_00164877 [00:37:54]remove file /storage/0447/doc_00164877 [00:37:54]file doc_00164878 [00:37:54]remove file /storage/0447/doc_00164878 [00:37:54]file doc_00164879 [00:37:54]remove file /storage/0447/doc_00164879 [00:37:54]file doc_00164880 [00:37:54]remove file /storage/0447/doc_00164880 [00:37:54]file doc_00164881 [00:37:54]remove file /storage/0447/doc_00164881 [00:37:54]file doc_00164882 [00:37:54]remove file /storage/0447/doc_00164882 [00:37:54]file doc_00164883 [00:37:54]remove file /storage/0447/doc_00164883 [00:37:54]file doc_00164884 [00:37:54]remove file /storage/0447/doc_00164884 [00:37:54]file doc_00164885 [00:37:54]remove file /storage/0447/doc_00164885 [00:37:54]file doc_00164886 [00:37:54]remove file /storage/0447/doc_00164886 [00:37:54]file doc_00164887 [00:37:54]remove file /storage/0447/doc_00164887 [00:37:54]file doc_00164888 [00:37:54]remove file /storage/0447/doc_00164888 [00:37:54]file doc_00164889 [00:37:54]remove file /storage/0447/doc_00164889 [00:37:54]file doc_00164890 [00:37:54]remove file /storage/0447/doc_00164890 [00:37:54]file doc_00164891 [00:37:54]remove file /storage/0447/doc_00164891 [00:37:54]file doc_00164892 [00:37:54]remove file /storage/0447/doc_00164892 [00:37:54]file doc_00164893 [00:37:54]remove file /storage/0447/doc_00164893 [00:37:54]file doc_00164894 [00:37:54]remove file /storage/0447/doc_00164894 [00:37:54]file doc_00164895 [00:37:54]remove file /storage/0447/doc_00164895 [00:37:54]file doc_00164896 [00:37:54]remove file /storage/0447/doc_00164896 [00:37:54]file doc_00164897 [00:37:54]remove file /storage/0447/doc_00164897 [00:37:54]file doc_00164898 [00:37:54]remove file /storage/0447/doc_00164898 [00:37:54]file doc_00164899 [00:37:54]remove file /storage/0447/doc_00164899 [00:37:55]file doc_00164900 [00:37:55]remove file /storage/0447/doc_00164900 [00:37:55]file doc_00164901 [00:37:55]remove file /storage/0447/doc_00164901 [00:37:55]file doc_00164902 [00:37:55]remove file /storage/0447/doc_00164902 [00:37:55]file doc_00164903 [00:37:55]remove file /storage/0447/doc_00164903 [00:37:55]file doc_00164904 [00:37:55]remove file /storage/0447/doc_00164904 [00:37:55]file doc_00164905 [00:37:55]remove file /storage/0447/doc_00164905 [00:37:55]file doc_00164906 [00:37:55]remove file /storage/0447/doc_00164906 [00:37:55]file doc_00164907 [00:37:55]remove file /storage/0447/doc_00164907 [00:37:55]file doc_00164908 [00:37:55]remove file /storage/0447/doc_00164908 [00:37:55]file doc_00164909 [00:37:55]remove file /storage/0447/doc_00164909 [00:37:55]file doc_00164910 [00:37:55]remove file /storage/0447/doc_00164910 [00:37:55]file doc_00164911 [00:37:55]remove file /storage/0447/doc_00164911 [00:37:55]file doc_00164912 [00:37:55]remove file /storage/0447/doc_00164912 [00:37:55]file doc_00164913 [00:37:55]remove file /storage/0447/doc_00164913 [00:37:55]file doc_00164914 [00:37:55]remove file /storage/0447/doc_00164914 [00:37:55]file doc_00164915 [00:37:55]remove file /storage/0447/doc_00164915 [00:37:55]file doc_00164916 [00:37:55]remove file /storage/0447/doc_00164916 [00:37:55]file doc_00164917 [00:37:55]remove file /storage/0447/doc_00164917 [00:37:55]file doc_00164918 [00:37:55]remove file /storage/0447/doc_00164918 [00:37:55]file doc_00164919 [00:37:55]remove file /storage/0447/doc_00164919 [00:37:55]file doc_00164920 [00:37:55]remove file /storage/0447/doc_00164920 [00:37:55]file doc_00164921 [00:37:55]remove file /storage/0447/doc_00164921 [00:37:55]file doc_00164922 [00:37:55]remove file /storage/0447/doc_00164922 [00:37:55]file doc_00164923 [00:37:55]remove file /storage/0447/doc_00164923 [00:37:55]file doc_00164924 [00:37:55]remove file /storage/0447/doc_00164924 [00:37:55]file doc_00164925 [00:37:55]remove file /storage/0447/doc_00164925 [00:37:55]file doc_00164926 [00:37:55]remove file /storage/0447/doc_00164926 [00:37:55]file doc_00164927 [00:37:55]remove file /storage/0447/doc_00164927 [00:37:55]file doc_00164928 [00:37:55]remove file /storage/0447/doc_00164928 [00:37:55]file doc_00164929 [00:37:55]remove file /storage/0447/doc_00164929 [00:37:55]file doc_00164930 [00:37:55]remove file /storage/0447/doc_00164930 [00:37:55]file doc_00164931 [00:37:55]remove file /storage/0447/doc_00164931 [00:37:55]file doc_00164932 [00:37:55]remove file /storage/0447/doc_00164932 [00:37:55]file doc_00164933 [00:37:55]remove file /storage/0447/doc_00164933 [00:37:55]file doc_00164934 [00:37:55]remove file /storage/0447/doc_00164934 [00:37:55]file doc_00164935 [00:37:55]remove file /storage/0447/doc_00164935 [00:37:55]file doc_00164936 [00:37:55]remove file /storage/0447/doc_00164936 [00:37:55]file doc_00164937 [00:37:55]remove file /storage/0447/doc_00164937 [00:37:55]file doc_00164938 [00:37:55]remove file /storage/0447/doc_00164938 [00:37:55]file doc_00164939 [00:37:55]remove file /storage/0447/doc_00164939 [00:37:55]file doc_00164940 [00:37:55]remove file /storage/0447/doc_00164940 [00:37:55]file doc_00164941 [00:37:55]remove file /storage/0447/doc_00164941 [00:37:55]file doc_00164942 [00:37:55]remove file /storage/0447/doc_00164942 [00:37:55]file doc_00164943 [00:37:55]remove file /storage/0447/doc_00164943 [00:37:55]file doc_00164944 [00:37:55]remove file /storage/0447/doc_00164944 [00:37:55]file doc_00164945 [00:37:55]remove file /storage/0447/doc_00164945 [00:37:55]file doc_00164946 [00:37:55]remove file /storage/0447/doc_00164946 [00:37:55]file doc_00164947 [00:37:55]remove file /storage/0447/doc_00164947 [00:37:55]file doc_00164948 [00:37:55]remove file /storage/0447/doc_00164948 [00:37:55]file doc_00164949 [00:37:55]remove file /storage/0447/doc_00164949 [00:37:55]file doc_00164950 [00:37:55]remove file /storage/0447/doc_00164950 [00:37:55]file doc_00164951 [00:37:55]remove file /storage/0447/doc_00164951 [00:37:55]file doc_00164952 [00:37:55]remove file /storage/0447/doc_00164952 [00:37:55]file doc_00164953 [00:37:55]remove file /storage/0447/doc_00164953 [00:37:55]file doc_00164954 [00:37:55]remove file /storage/0447/doc_00164954 [00:37:55]file doc_00164955 [00:37:55]remove file /storage/0447/doc_00164955 [00:37:55]file doc_00164956 [00:37:55]remove file /storage/0447/doc_00164956 [00:37:55]file doc_00164957 [00:37:55]remove file /storage/0447/doc_00164957 [00:37:55]file doc_00164958 [00:37:55]remove file /storage/0447/doc_00164958 [00:37:55]file doc_00164959 [00:37:55]remove file /storage/0447/doc_00164959 [00:37:55]file doc_00164960 [00:37:55]remove file /storage/0447/doc_00164960 [00:37:55]file doc_00164961 [00:37:55]remove file /storage/0447/doc_00164961 [00:37:55]file doc_00164962 [00:37:55]remove file /storage/0447/doc_00164962 [00:37:55]file doc_00164963 [00:37:55]remove file /storage/0447/doc_00164963 [00:37:55]file doc_00164964 [00:37:55]remove file /storage/0447/doc_00164964 [00:37:55]file doc_00164965 [00:37:55]remove file /storage/0447/doc_00164965 [00:37:55]file doc_00164966 [00:37:55]remove file /storage/0447/doc_00164966 [00:37:55]file doc_00164967 [00:37:55]remove file /storage/0447/doc_00164967 [00:37:55]file doc_00164968 [00:37:55]remove file /storage/0447/doc_00164968 [00:37:55]file doc_00164969 [00:37:55]remove file /storage/0447/doc_00164969 [00:37:55]file doc_00164970 [00:37:55]remove file /storage/0447/doc_00164970 [00:37:55]file doc_00164971 [00:37:55]remove file /storage/0447/doc_00164971 [00:37:55]file doc_00164972 [00:37:55]remove file /storage/0447/doc_00164972 [00:37:55]file doc_00164973 [00:37:55]remove file /storage/0447/doc_00164973 [00:37:55]file doc_00164974 [00:37:55]remove file /storage/0447/doc_00164974 [00:37:55]file doc_00164975 [00:37:55]remove file /storage/0447/doc_00164975 [00:37:55]file doc_00164976 [00:37:55]remove file /storage/0447/doc_00164976 [00:37:55]file doc_00164977 [00:37:55]remove file /storage/0447/doc_00164977 [00:37:55]file doc_00164978 [00:37:55]remove file /storage/0447/doc_00164978 [00:37:55]file doc_00164979 [00:37:55]remove file /storage/0447/doc_00164979 [00:37:55]file doc_00164980 [00:37:55]remove file /storage/0447/doc_00164980 [00:37:55]file doc_00164981 [00:37:55]remove file /storage/0447/doc_00164981 [00:37:55]file doc_00164982 [00:37:55]remove file /storage/0447/doc_00164982 [00:37:55]file doc_00164983 [00:37:55]remove file /storage/0447/doc_00164983 [00:37:55]file doc_00164984 [00:37:55]remove file /storage/0447/doc_00164984 [00:37:55]file doc_00164985 [00:37:55]remove file /storage/0447/doc_00164985 [00:37:55]file doc_00164986 [00:37:55]remove file /storage/0447/doc_00164986 [00:37:55]file doc_00164987 [00:37:55]remove file /storage/0447/doc_00164987 [00:37:55]file doc_00164988 [00:37:55]remove file /storage/0447/doc_00164988 [00:37:55]file doc_00164989 [00:37:55]remove file /storage/0447/doc_00164989 [00:37:55]file doc_00164990 [00:37:55]remove file /storage/0447/doc_00164990 [00:37:55]file doc_00164991 [00:37:55]remove file /storage/0447/doc_00164991 [00:37:55]file doc_00164992 [00:37:55]remove file /storage/0447/doc_00164992 [00:37:55]file doc_00164993 [00:37:55]remove file /storage/0447/doc_00164993 [00:37:55]file doc_00164994 [00:37:55]remove file /storage/0447/doc_00164994 [00:37:55]file doc_00164995 [00:37:55]remove file /storage/0447/doc_00164995 [00:37:55]file doc_00164996 [00:37:55]remove file /storage/0447/doc_00164996 [00:37:55]file doc_00164997 [00:37:55]remove file /storage/0447/doc_00164997 [00:37:55]file doc_00164998 [00:37:55]remove file /storage/0447/doc_00164998 [00:37:55]file doc_00164999 [00:37:55]remove file /storage/0447/doc_00164999 [00:37:55]file doc_00165000 [00:37:55]remove file /storage/0447/doc_00165000 [00:37:55]file doc_00165001 [00:37:55]remove file /storage/0447/doc_00165001 [00:37:55]file doc_00165002 [00:37:55]remove file /storage/0447/doc_00165002 [00:37:55]file doc_00165003 [00:37:55]remove file /storage/0447/doc_00165003 [00:37:55]file doc_00165004 [00:37:55]remove file /storage/0447/doc_00165004 [00:37:55]file doc_00165005 [00:37:55]remove file /storage/0447/doc_00165005 [00:37:55]file doc_00165006 [00:37:55]remove file /storage/0447/doc_00165006 [00:37:55]file doc_00165007 [00:37:55]remove file /storage/0447/doc_00165007 [00:37:55]file doc_00165008 [00:37:55]remove file /storage/0447/doc_00165008 [00:37:55]file doc_00165009 [00:37:55]remove file /storage/0447/doc_00165009 [00:37:55]file doc_00165010 [00:37:55]remove file /storage/0447/doc_00165010 [00:37:55]file doc_00165011 [00:37:55]remove file /storage/0447/doc_00165011 [00:37:55]file doc_00165012 [00:37:55]remove file /storage/0447/doc_00165012 [00:37:55]file doc_00165013 [00:37:55]remove file /storage/0447/doc_00165013 [00:37:55]file doc_00165014 [00:37:55]remove file /storage/0447/doc_00165014 [00:37:55]file doc_00165015 [00:37:55]remove file /storage/0447/doc_00165015 [00:37:55]file doc_00165016 [00:37:55]remove file /storage/0447/doc_00165016 [00:37:55]file doc_00165017 [00:37:55]remove file /storage/0447/doc_00165017 [00:37:55]file doc_00165018 [00:37:55]remove file /storage/0447/doc_00165018 [00:37:55]file doc_00165019 [00:37:55]remove file /storage/0447/doc_00165019 [00:37:55]file doc_00165020 [00:37:55]remove file /storage/0447/doc_00165020 [00:37:55]file doc_00165021 [00:37:55]remove file /storage/0447/doc_00165021 [00:37:55]file doc_00165022 [00:37:55]remove file /storage/0447/doc_00165022 [00:37:55]file doc_00165023 [00:37:55]remove file /storage/0447/doc_00165023 [00:37:55]file doc_00165024 [00:37:55]remove file /storage/0447/doc_00165024 [00:37:55]file doc_00165025 [00:37:55]remove file /storage/0447/doc_00165025 [00:37:55]file doc_00165026 [00:37:55]remove file /storage/0447/doc_00165026 [00:37:55]file doc_00165027 [00:37:55]remove file /storage/0447/doc_00165027 [00:37:55]file doc_00165028 [00:37:55]remove file /storage/0447/doc_00165028 [00:37:55]file doc_00165029 [00:37:55]remove file /storage/0447/doc_00165029 [00:37:55]file doc_00165030 [00:37:55]remove file /storage/0447/doc_00165030 [00:37:55]file doc_00165031 [00:37:55]remove file /storage/0447/doc_00165031 [00:37:55]file doc_00165032 [00:37:55]remove file /storage/0447/doc_00165032 [00:37:55]file doc_00165033 [00:37:55]remove file /storage/0447/doc_00165033 [00:37:55]file doc_00165034 [00:37:55]remove file /storage/0447/doc_00165034 [00:37:55]file doc_00165035 [00:37:55]remove file /storage/0447/doc_00165035 [00:37:55]file doc_00165036 [00:37:55]remove file /storage/0447/doc_00165036 [00:37:55]file doc_00165037 [00:37:55]remove file /storage/0447/doc_00165037 [00:37:55]file doc_00165038 [00:37:55]remove file /storage/0447/doc_00165038 [00:37:55]file doc_00165039 [00:37:55]remove file /storage/0447/doc_00165039 [00:37:55]file doc_00165040 [00:37:55]remove file /storage/0447/doc_00165040 [00:37:55]file doc_00165041 [00:37:55]remove file /storage/0447/doc_00165041 [00:37:55]file doc_00165042 [00:37:55]remove file /storage/0447/doc_00165042 [00:37:55]file doc_00165043 [00:37:55]remove file /storage/0447/doc_00165043 [00:37:55]file doc_00165044 [00:37:55]remove file /storage/0447/doc_00165044 [00:37:55]file doc_00165045 [00:37:55]remove file /storage/0447/doc_00165045 [00:37:55]file doc_00165046 [00:37:55]remove file /storage/0447/doc_00165046 [00:37:55]file doc_00165047 [00:37:55]remove file /storage/0447/doc_00165047 [00:37:55]file doc_00165048 [00:37:55]remove file /storage/0447/doc_00165048 [00:37:55]file doc_00165049 [00:37:55]remove file /storage/0447/doc_00165049 [00:37:55]file doc_00165050 [00:37:55]remove file /storage/0447/doc_00165050 [00:37:55]file doc_00165051 [00:37:55]remove file /storage/0447/doc_00165051 [00:37:55]file doc_00165052 [00:37:55]remove file /storage/0447/doc_00165052 [00:37:55]file doc_00165053 [00:37:55]remove file /storage/0447/doc_00165053 [00:37:55]file doc_00165054 [00:37:55]remove file /storage/0447/doc_00165054 [00:37:55]file doc_00165055 [00:37:55]remove file /storage/0447/doc_00165055 [00:37:55]file doc_00165056 [00:37:55]remove file /storage/0447/doc_00165056 [00:37:55]file doc_00165057 [00:37:55]remove file /storage/0447/doc_00165057 [00:37:55]file doc_00165058 [00:37:55]remove file /storage/0447/doc_00165058 [00:37:55]file doc_00165059 [00:37:55]remove file /storage/0447/doc_00165059 [00:37:55]file doc_00165060 [00:37:55]remove file /storage/0447/doc_00165060 [00:37:55]file doc_00165061 [00:37:55]remove file /storage/0447/doc_00165061 [00:37:55]file doc_00165062 [00:37:55]remove file /storage/0447/doc_00165062 [00:37:55]file doc_00165063 [00:37:55]remove file /storage/0447/doc_00165063 [00:37:55]file doc_00165064 [00:37:55]remove file /storage/0447/doc_00165064 [00:37:55]file doc_00165065 [00:37:55]remove file /storage/0447/doc_00165065 [00:37:55]file doc_00165066 [00:37:56]remove file /storage/0447/doc_00165066 [00:37:56]file doc_00165067 [00:37:56]remove file /storage/0447/doc_00165067 [00:37:56]file doc_00165068 [00:37:56]remove file /storage/0447/doc_00165068 [00:37:56]file doc_00165069 [00:37:56]remove file /storage/0447/doc_00165069 [00:37:56]file doc_00165070 [00:37:56]remove file /storage/0447/doc_00165070 [00:37:56]file doc_00165071 [00:37:56]remove file /storage/0447/doc_00165071 [00:37:56]file doc_00165072 [00:37:56]remove file /storage/0447/doc_00165072 [00:37:56]file doc_00165073 [00:37:56]remove file /storage/0447/doc_00165073 [00:37:56]file doc_00165074 [00:37:56]remove file /storage/0447/doc_00165074 [00:37:56]file doc_00165075 [00:37:56]remove file /storage/0447/doc_00165075 [00:37:56]file doc_00165076 [00:37:56]remove file /storage/0447/doc_00165076 [00:37:56]file doc_00165077 [00:37:56]remove file /storage/0447/doc_00165077 [00:37:56]file doc_00165078 [00:37:56]remove file /storage/0447/doc_00165078 [00:37:56]file doc_00165079 [00:37:56]remove file /storage/0447/doc_00165079 [00:37:56]file doc_00165080 [00:37:56]remove file /storage/0447/doc_00165080 [00:37:56]file doc_00165081 [00:37:56]remove file /storage/0447/doc_00165081 [00:37:56]file doc_00165082 [00:37:56]remove file /storage/0447/doc_00165082 [00:37:56]file doc_00165083 [00:37:56]remove file /storage/0447/doc_00165083 [00:37:56]file doc_00165084 [00:37:56]remove file /storage/0447/doc_00165084 [00:37:56]file doc_00165085 [00:37:56]remove file /storage/0447/doc_00165085 [00:37:56]file doc_00165086 [00:37:56]remove file /storage/0447/doc_00165086 [00:37:56]file doc_00165087 [00:37:56]remove file /storage/0447/doc_00165087 [00:37:56]file doc_00165088 [00:37:56]remove file /storage/0447/doc_00165088 [00:37:56]file doc_00165089 [00:37:56]remove file /storage/0447/doc_00165089 [00:37:56]file doc_00165090 [00:37:56]remove file /storage/0447/doc_00165090 [00:37:56]file doc_00165091 [00:37:56]remove file /storage/0447/doc_00165091 [00:37:56]file doc_00165092 [00:37:56]remove file /storage/0447/doc_00165092 [00:37:56]file doc_00165093 [00:37:56]remove file /storage/0447/doc_00165093 [00:37:56]file doc_00165094 [00:37:56]remove file /storage/0447/doc_00165094 [00:37:56]file doc_00165095 [00:37:56]remove file /storage/0447/doc_00165095 [00:37:56]file doc_00165096 [00:37:56]remove file /storage/0447/doc_00165096 [00:37:56]file doc_00165097 [00:37:56]remove file /storage/0447/doc_00165097 [00:37:56]file doc_00165098 [00:37:56]remove file /storage/0447/doc_00165098 [00:37:56]file doc_00165099 [00:37:56]remove file /storage/0447/doc_00165099 [00:37:56]file doc_00165100 [00:37:56]remove file /storage/0447/doc_00165100 [00:37:56]file doc_00165101 [00:37:56]remove file /storage/0447/doc_00165101 [00:37:56]file doc_00165102 [00:37:56]remove file /storage/0447/doc_00165102 [00:37:56]file doc_00165103 [00:37:56]remove file /storage/0447/doc_00165103 [00:37:56]file doc_00165104 [00:37:56]remove file /storage/0447/doc_00165104 [00:37:56]file doc_00165105 [00:37:56]remove file /storage/0447/doc_00165105 [00:37:56]file doc_00165106 [00:37:56]remove file /storage/0447/doc_00165106 [00:37:56]file doc_00165107 [00:37:56]remove file /storage/0447/doc_00165107 [00:37:56]file doc_00165108 [00:37:56]remove file /storage/0447/doc_00165108 [00:37:56]file doc_00165109 [00:37:56]remove file /storage/0447/doc_00165109 [00:37:56]file doc_00165110 [00:37:56]remove file /storage/0447/doc_00165110 [00:37:56]file doc_00165111 [00:37:56]remove file /storage/0447/doc_00165111 [00:37:56]file doc_00165112 [00:37:56]remove file /storage/0447/doc_00165112 [00:37:56]file doc_00165113 [00:37:56]remove file /storage/0447/doc_00165113 [00:37:56]file doc_00165114 [00:37:56]remove file /storage/0447/doc_00165114 [00:37:56]file doc_00165115 [00:37:56]remove file /storage/0447/doc_00165115 [00:37:56]file doc_00165116 [00:37:56]remove file /storage/0447/doc_00165116 [00:37:56]file doc_00165117 [00:37:56]remove file /storage/0447/doc_00165117 [00:37:56]file doc_00165118 [00:37:56]remove file /storage/0447/doc_00165118 [00:37:56]file doc_00165119 [00:37:56]remove file /storage/0447/doc_00165119 [00:37:56]file doc_00165120 [00:37:56]remove file /storage/0447/doc_00165120 [00:37:56]file doc_00165121 [00:37:56]remove file /storage/0447/doc_00165121 [00:37:56]file doc_00165122 [00:37:56]remove file /storage/0447/doc_00165122 [00:37:56]file doc_00165123 [00:37:56]remove file /storage/0447/doc_00165123 [00:37:56]file doc_00165124 [00:37:56]remove file /storage/0447/doc_00165124 [00:37:56]file doc_00165125 [00:37:56]remove file /storage/0447/doc_00165125 [00:37:56]file doc_00165126 [00:37:56]remove file /storage/0447/doc_00165126 [00:37:56]remove dir /storage/0447 [00:37:56]ProcessDocumentItem done err = 0, tmpTLVsize=220 [00:37:56]tlvbuf is 0138DDE0 [00:37:56]SAM_PROTO_ClearQueue [00:37:56]wFMCommunicate request_size=4 [00:37:56]MH_SAM_APDU [00:37:56]CAPDU: 80 09 00 00 [00:37:56]Write to MH i2c: E2 08 00 9A 14 80 09 00 00 00 00 00 00 20 [00:37:56]Write i2c OK [00:37:56]MH_I2C_Read... [00:37:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:37:56]Read from MH i2c: E2 [00:37:56]MH_I2C_Read... [00:37:56]Read from MH i2c: E2 03 00 [00:37:56]MH_I2C_Read... [00:37:56]Read from MH i2c: E2 03 00 9A 14 00 90 00 22 [00:37:56]RAPDU: 90 00 [00:37:56]wFMCommunicate OK [00:37:56]SAM_PROTO_ClearQueue done [00:37:56]KKMCreateOFDPacket [00:37:56]OFDProtocolAddRootSTLVToBuf [00:37:56]FM_MakeSignedData [00:37:56]FM_MakeSignedData [00:37:56]SAM_PROTO_SignData [00:37:56]wFMCommunicate request_size=4 [00:37:56]MH_SAM_APDU [00:37:56]CAPDU: 80 0D 01 02 [00:37:56]Write to MH i2c: E2 08 00 9B 14 80 0D 01 02 00 00 00 00 28 [00:37:56]Write i2c OK [00:37:56]MH_I2C_Read... [00:37:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:37:56]Read from MH i2c: E2 [00:37:56]MH_I2C_Read... [00:37:56]Read from MH i2c: E2 03 00 [00:37:56]MH_I2C_Read... [00:37:56]Read from MH i2c: E2 03 00 9B 14 00 90 00 23 [00:37:56]RAPDU: 90 00 [00:37:56]wFMCommunicate OK [00:37:56]wFMCommunicate request_size=229 [00:37:56]MH_SAM_APDU [00:37:56]CAPDU: 80 0D 02 02 E0 02 00 DC 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 13 00 D0 A1 D0 B0 D0 B4 D1 8B D0 BA D0 BE D0 B2 20 D0 9D 2E 20 F1 03 33 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 91 D0 B0 D0 BA D0 B0 D0 B9 20 D0 90 D1 82 D0 B0 2C 20 34 32 2E 34 38 36 37 37 38 2C 20 37 31 2E 39 33 34 30 30 34 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 37 32 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 64 6F 94 66 0E 04 04 00 C0 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 07 85 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 35 04 06 00 26 E8 78 80 F9 28 [00:37:56]Write to MH i2c: E2 E8 00 9C 14 80 0D 02 02 E0 00 02 00 DC 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 13 00 D0 A1 D0 B0 D0 B4 D1 8B D0 BA D0 BE D0 B2 20 D0 9D 2E 20 F1 03 33 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 91 D0 B0 D0 BA D0 B0 D0 B9 20 D0 90 D1 82 D0 B0 2C 20 34 32 2E 34 38 36 37 37 38 2C 20 37 31 2E 39 33 34 30 30 34 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 37 32 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 64 6F 94 66 0E 04 04 00 C0 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 07 85 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 35 04 06 00 26 E8 78 80 F9 28 00 00 41 [00:37:56]Write i2c OK [00:37:56]MH_I2C_Read... [00:37:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:37:56]Read from MH i2c: E2 [00:37:56]MH_I2C_Read... [00:37:56]Read from MH i2c: E2 03 00 [00:37:56]MH_I2C_Read... [00:37:56]Read from MH i2c: E2 03 00 9C 14 00 90 00 24 [00:37:56]RAPDU: 90 00 [00:37:56]wFMCommunicate OK [00:37:56]wFMCommunicate request_size=4 [00:37:56]MH_SAM_APDU [00:37:56]CAPDU: 80 0D 03 02 [00:37:56]Write to MH i2c: E2 08 00 9D 14 80 0D 03 02 00 00 00 00 2C [00:37:56]Write i2c OK [00:37:56]MH_I2C_Read... [00:37:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:37:56]Read from MH i2c: E2 [00:37:56]MH_I2C_Read... [00:37:56]Read from MH i2c: E2 0B 00 [00:37:56]MH_I2C_Read... [00:37:56]Read from MH i2c: E2 0B 00 9D 14 00 F8 AC E3 68 C4 66 9B 3F 90 00 20 [00:37:56]RAPDU: F8 AC E3 68 C4 66 9B 3F 90 00 [00:37:56]wFMCommunicate OK [00:37:56]SAM_PROTO_SignData done [00:37:56]FM_MakeSignedData done [00:37:56]CreateOFDProtocolMessage [00:37:56]wFMCommunicate request_size=4 [00:37:56]MH_SAM_APDU [00:37:56]CAPDU: 80 11 00 00 [00:37:56]Write to MH i2c: E2 08 00 9E 14 80 11 00 00 00 00 00 00 2C [00:37:56]Write i2c OK [00:37:56]MH_I2C_Read... [00:37:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:37:56]Read from MH i2c: E2 [00:37:56]MH_I2C_Read... [00:37:56]Read from MH i2c: E2 17 00 [00:37:56]MH_I2C_Read... [00:37:56]Read from MH i2c: E2 17 00 9E 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 82 [00:37:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [00:37:56]wFMCommunicate OK [00:37:56]CreateOFDProtocolMessage done [00:37:56]OFDSenderStorePacket 165127 [00:37:56]StoreOFDPacket docnum=165127 [00:37:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 F0 00 00 00 26 96 E8 00 E1 10 5A 02 01 00 02 00 DC 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 13 00 D0 A1 D0 B0 D0 B4 D1 8B D0 BA D0 BE D0 B2 20 D0 9D 2E 20 F1 03 33 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 91 D0 B0 D0 BA D0 B0 D0 B9 20 D0 90 D1 82 D0 B0 2C 20 34 32 2E 34 38 36 37 37 38 2C 20 37 31 2E 39 33 34 30 30 34 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 37 32 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 64 6F 94 66 0E 04 04 00 C0 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 07 85 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 35 04 06 00 26 E8 78 80 F9 28 F8 AC E3 68 C4 66 9B 3F [00:37:56]CheckFolder [00:37:56]dirname=/storage/ofd_packets [00:37:56]CheckFolder done [00:37:56]ProducePacketName [00:37:56]name=ofd_packets/00165127 [00:37:56]NVStorageSaveData ofd_packets/00165127 [00:37:56]File name is /storage/ofd_packets/00165127 [00:37:56]Write 270 bytes [00:37:56]NVStorageSaveData done [00:37:56]OFDSenderStorePacket done [00:37:56]KKMCreateOFDPacket done [00:37:56]NVStorageSaveData kkm_last_timestamp [00:37:56]File name is /storage/kkm_last_timestamp [00:37:56]Write 4 bytes [00:37:56]NVStorageSaveData done [00:37:56]ExternCall_PrintAddStr [00:37:56]wPrintStart [00:37:56]Write to MH i2c: 01 00 00 9F 14 B3 [00:37:56]Write i2c OK [00:37:56]MH_I2C_Read... [00:37:56]Read from MH i2c: 01 [00:37:56]MH_I2C_Read... [00:37:56]Read from MH i2c: 01 07 00 [00:37:56]MH_I2C_Read... [00:37:56]Read from MH i2c: 01 07 00 9F 14 00 00 00 00 00 FF 0F C8 [00:37:56]RasterBufferAndPrint [00:37:56]line Отчет об открытии смены [00:37:56]line ФФД: 1.0 [00:37:56]line ИНН: 02508201610067 [00:37:56]line Кассир: Садыков Н. [00:37:56]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [00:37:56]line Место: АЗС № 72 "Партнер Нефть" [00:37:56]line 15.07.2024 00:37 [00:37:56]line Смена: 448 [00:37:56]line РНМ: 0000000000090829 [00:37:56]line ЗНМ: 0300000160 [00:37:56]line ФД: 165127 [00:37:56]line ФМ: 0000000000874718 [00:37:56]line ФПД: 42779895986472 [00:37:56]written 0, free lines is 4095 [00:37:57]OFD Sender: Processing packet 165127 [packets to send 106, broken 105] [00:37:57]ProducePacketName [00:37:57]name=ofd_packets/00165127 [00:37:57]OFD Sender: To server: pG, [00:37:57]CommunicateWithHost lk.salyk.kg:30040 [00:37:57]ConnectInit lk.salyk.kg [00:37:57]Connected sock=10 [00:37:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 F0 00 00 00 26 96 E8 00 E1 10 5A 02 01 00 02 00 DC 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 13 00 D0 A1 D0 B0 D0 B4 D1 8B D0 BA D0 BE D0 B2 20 D0 9D 2E 20 F1 03 33 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 91 D0 B0 D0 BA D0 B0 D0 B9 20 D0 90 D1 82 D0 B0 2C 20 34 32 2E 34 38 36 37 37 38 2C 20 37 31 2E 39 33 34 30 30 34 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 37 32 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 64 6F 94 66 0E 04 04 00 C0 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 07 85 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 35 04 06 00 26 E8 78 80 F9 28 F8 AC E3 68 C4 66 9B 3F [00:37:57]Write to MH i2c: 01 00 00 B0 14 C4 [00:37:57]Write i2c OK [00:37:57]MH_I2C_Read... [00:37:57]Read from MH i2c: 01 [00:37:57]MH_I2C_Read... [00:37:57]Read from MH i2c: 01 07 00 [00:37:57]MH_I2C_Read... [00:37:57]Read from MH i2c: 01 07 00 B0 14 00 00 00 00 00 BA 0E 93 [00:37:57]RasterBufferAndPrint [00:37:57]line [00:37:57]line [00:37:57]line [00:37:57]line [00:37:57]line [00:37:57]written 0, free lines is 3785 [00:37:57]MH_Cut [00:37:57]Write to MH i2c: D1 01 00 B7 14 01 9D [00:37:57]Write i2c OK [00:37:57]MH_I2C_Read... [00:37:57]Read from MH i2c: D1 [00:37:57]MH_I2C_Read... [00:37:57]Read from MH i2c: D1 01 00 [00:37:57]MH_I2C_Read... [00:37:57]Read from MH i2c: D1 01 00 B7 14 00 9C [00:37:57]Write to MH i2c: 01 00 00 B8 14 CC [00:37:57]Write i2c OK [00:37:57]MH_I2C_Read... [00:37:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 42 3F 47 00 75 B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 07 85 02 00 F4 03 04 00 F1 15 94 66 B6 04 01 00 00 43 DA F0 E8 AB 53 54 31 [00:37:57]CommunicateWithHost err = 0 [00:37:57]CheckOFDResponse [00:37:57]1017 (14) - 77093643461234 [00:37:57]1041 (16) - 0000000000874718 [00:37:57]1040 (4) - 165127 [00:37:57]1012 (4) - 14.07.2024 18:16 [00:37:57]1206 (1) - 0 [00:37:57]OFD Sender: Remove packet 165127 [00:37:57]ProducePacketName [00:37:57]name=ofd_packets/00165127 [00:37:57]NVStorageDeleteData [00:37:57]*** Cut start [00:37:57]*** Partial cut [00:37:57]*** CUTSNS_PIN = 1 [00:37:57]*** CUTSNS_PIN = 0 [00:37:57]*** Brake cut motor [00:37:57]OFD Sender: No OFD packet to send [00:37:58]Read from MH i2c: 01 [00:37:58]MH_I2C_Read... [00:37:58]*** Stop cut motor [00:37:58]*** Cut end [00:37:58]Read from MH i2c: 01 07 00 [00:37:58]MH_I2C_Read... [00:37:58]Read from MH i2c: 01 07 00 B8 14 00 00 00 00 00 FF 0F E1 [00:37:58]process_action open_shift done [00:37:58]requested_data is exist [00:37:58]produce_requested_data [00:37:58]requested_item fd.num is exist - process it [00:37:58]SAM_PROTO_GetFieldsCounters [00:37:58]wFMCommunicate request_size=4 [00:37:58]MH_SAM_APDU [00:37:58]CAPDU: 80 13 00 00 [00:37:58]Write to MH i2c: E2 08 00 B9 14 80 13 00 00 00 00 00 00 49 [00:37:58]Write i2c OK [00:37:58]MH_I2C_Read... [00:37:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:37:58]Read from MH i2c: E2 [00:37:58]MH_I2C_Read... [00:37:58]Read from MH i2c: E2 62 00 [00:37:58]MH_I2C_Read... [00:37:58]Read from MH i2c: E2 62 00 B9 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 07 85 02 00 0E 04 04 00 C0 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 BF [00:37:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 07 85 02 00 0E 04 04 00 C0 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:37:58]wFMCommunicate OK [00:37:58]SAM_PROTO_GetFieldsCounters done [00:37:58]requested_item shift.num is exist - process it [00:37:58]requested_item shift.opened is exist - process it [00:37:58]req_shift_opened [00:37:58]FM_GetShiftState [00:37:58]SAM_PROTO_GetShiftState [00:37:58]wFMCommunicate request_size=4 [00:37:58]MH_SAM_APDU [00:37:58]CAPDU: 80 13 01 00 [00:37:58]Write to MH i2c: E2 08 00 BA 14 80 13 01 00 00 00 00 00 4B [00:37:58]Write i2c OK [00:37:58]MH_I2C_Read... [00:37:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:37:58]Read from MH i2c: E2 [00:37:58]MH_I2C_Read... [00:37:58]Read from MH i2c: E2 0E 00 [00:37:58]MH_I2C_Read... [00:37:58]Read from MH i2c: E2 0E 00 BA 14 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 24 [00:37:58]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [00:37:58]wFMCommunicate OK [00:37:58]SAM_PROTO_GetShiftState done [00:37:58]FM_GetShiftState done [00:37:58]req_shift_opened done [00:37:58]requested_item shift.open_date is exist - process it [00:37:58]req_shift_open_date [00:37:58]req_shift_open_date done [00:37:58]produce_requested_data done [00:37:58]produce_requested_data return {"fd.num":165127,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [00:37:58]process_action_free open_shift [00:37:58]json_value_free [00:37:58]json_value_free done [00:37:58]process_json_proto returns [00:37:58]Send response to host [00:37:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":165127,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [00:37:58]free response buf [00:37:58]execute_script done [00:37:58]execute_script returns [00:37:58]free content buf [00:37:58]Sock 7.Close socket [00:37:58]Sock 7.Thread stoped [00:37:58]accept exits with 9 [00:37:58]New connection [00:37:58]New thread 3066928484 created [00:37:58]Thread 3066785124 joined [00:37:58]Waiting for new connection... [00:37:58] Sock 9.Parse request [00:37:58]Sock 9.Check first char [00:37:58]Sock 9.First char is OK [00:37:58]request: POST /json_proto HTTP/1.0 [00:37:58]Method: POST [00:37:58]URL: /json_proto [00:37:58]Method is POST - this is cgi request [00:37:58]url: /json_proto [00:37:58]query_string will be loaded in cgi processing [00:37:58]execute_cgi json_proto POST (null) [00:37:58]execute_cgi path=json_proto method=POST [00:37:58]POST find Content-Length [00:37:58]Host: 172.17.56.4:8080 [00:37:58]Content-Length: 331 [00:37:58]Content-Type: application/json [00:37:58] [00:37:58]POST finish read [00:37:58]Found Content-Length = 331 [00:37:58]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:37:58]execute_script... [00:37:58]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:37:58]POST & json_proto [00:37:58]process_json_proto [00:37:58]json parsed OK: [00:37:58]protocol is kg_v1.0 [00:37:58]action value=get_value [00:37:58]process_action get_value [00:37:58]cmd_get_value [00:37:58]process_action get_value done [00:37:58]requested_data is exist [00:37:58]produce_requested_data [00:37:58]requested_item fm.sale.total is exist - process it [00:37:58]SAM_PROTO_GetFMData [00:37:58]wFMCommunicate request_size=4 [00:37:58]MH_SAM_APDU [00:37:58]CAPDU: 80 13 03 00 [00:37:58]Write to MH i2c: E2 08 00 BB 14 80 13 03 00 00 00 00 00 4E [00:37:58]Write i2c OK [00:37:58]MH_I2C_Read... [00:37:58]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:37:58]Read from MH i2c: E2 [00:37:58]MH_I2C_Read... [00:37:58]Read from MH i2c: E2 FD 00 [00:37:58]MH_I2C_Read... [00:37:58]Read from MH i2c: E2 FD 00 BB 14 00 C4 04 85 04 C0 04 6E 04 04 00 84 81 02 00 69 04 A3 00 6F 04 04 00 76 80 02 00 B1 04 05 00 85 45 51 59 02 70 04 05 00 5D FE FF 36 02 72 04 04 00 28 47 51 22 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 89 A3 E1 3F 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 FE 9C 52 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 0E 01 00 00 B1 04 04 00 6C E5 46 03 70 04 04 00 6C E5 46 03 72 04 00 00 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 23 19 59 EF 03 09 00 90 00 6A [00:37:58]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 84 81 02 00 69 04 A3 00 6F 04 04 00 76 80 02 00 B1 04 05 00 85 45 51 59 02 70 04 05 00 5D FE FF 36 02 72 04 04 00 28 47 51 22 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 89 A3 E1 3F 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 FE 9C 52 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 0E 01 00 00 B1 04 04 00 6C E5 46 03 70 04 04 00 6C E5 46 03 72 04 00 00 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 23 19 59 EF 03 09 00 90 00 [00:37:59]wFMCommunicate OK [00:37:59]wFMCommunicate request_size=4 [00:37:59]MH_SAM_APDU [00:37:59]CAPDU: 80 17 00 00 [00:37:59]Write to MH i2c: E2 08 00 BC 14 80 17 00 00 00 00 00 00 50 [00:37:59]Write i2c OK [00:37:59]MH_I2C_Read... [00:37:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:37:59]Read from MH i2c: E2 [00:37:59]MH_I2C_Read... [00:37:59]Read from MH i2c: E2 FD 00 [00:37:59]MH_I2C_Read... [00:37:59]Read from MH i2c: E2 FD 00 BC 14 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B1 6C 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 2A [00:37:59]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B1 6C 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:37:59]wFMCommunicate OK [00:37:59]wFMCommunicate request_size=4 [00:37:59]MH_SAM_APDU [00:37:59]CAPDU: 80 17 00 00 [00:37:59]Write to MH i2c: E2 08 00 BD 14 80 17 00 00 00 00 00 00 51 [00:37:59]Write i2c OK [00:37:59]MH_I2C_Read... [00:37:59]Read from MH i2c: E2 [00:37:59]MH_I2C_Read... [00:37:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:37:59]Read from MH i2c: E2 FD 00 [00:37:59]MH_I2C_Read... [00:37:59]Read from MH i2c: E2 FD 00 BD 14 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 66 [00:37:59]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:37:59]wFMCommunicate OK [00:37:59]wFMCommunicate request_size=4 [00:37:59]MH_SAM_APDU [00:37:59]CAPDU: 80 17 00 00 [00:37:59]Write to MH i2c: E2 08 00 BE 14 80 17 00 00 00 00 00 00 52 [00:37:59]Write i2c OK [00:37:59]MH_I2C_Read... [00:38:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:38:00]Read from MH i2c: E2 [00:38:00]MH_I2C_Read... [00:38:00]Read from MH i2c: E2 FD 00 [00:38:00]MH_I2C_Read... [00:38:00]Read from MH i2c: E2 FD 00 BE 14 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 CA [00:38:00]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:38:00]wFMCommunicate OK [00:38:00]wFMCommunicate request_size=4 [00:38:00]MH_SAM_APDU [00:38:00]CAPDU: 80 17 00 00 [00:38:00]Write to MH i2c: E2 08 00 BF 14 80 17 00 00 00 00 00 00 53 [00:38:00]Write i2c OK [00:38:00]MH_I2C_Read... [00:38:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [00:38:00]Read from MH i2c: E2 [00:38:00]MH_I2C_Read... [00:38:00]Read from MH i2c: E2 E1 00 [00:38:00]MH_I2C_Read... [00:38:00]Read from MH i2c: E2 E1 00 BF 14 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 41 [00:38:00]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:38:00]wFMCommunicate OK [00:38:00]SAM_PROTO_GetFMData done [00:38:00]requested_item fm.sale_refund.total is exist - process it [00:38:00]requested_item fm.buy.total is exist - process it [00:38:00]requested_item shift.sale.total is exist - process it [00:38:00]SAM_PROTO_GetShiftData [00:38:00]wFMCommunicate request_size=4 [00:38:00]MH_SAM_APDU [00:38:00]CAPDU: 80 13 02 00 [00:38:00]Write to MH i2c: E2 08 00 C0 14 80 13 02 00 00 00 00 00 52 [00:38:00]Write i2c OK [00:38:00]MH_I2C_Read... [00:38:01]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:38:01]Read from MH i2c: E2 [00:38:01]MH_I2C_Read... [00:38:01]Read from MH i2c: E2 FD 00 [00:38:01]MH_I2C_Read... [00:38:01]Read from MH i2c: E2 FD 00 C0 14 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 C5 [00:38:01]RAPDU: A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [00:38:01]wFMCommunicate OK [00:38:01]wFMCommunicate request_size=4 [00:38:01]MH_SAM_APDU [00:38:01]CAPDU: 80 17 00 00 [00:38:01]Write to MH i2c: E2 08 00 C1 14 80 17 00 00 00 00 00 00 55 [00:38:01]Write i2c OK [00:38:01]MH_I2C_Read... [00:38:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:38:01]Read from MH i2c: E2 [00:38:01]MH_I2C_Read... [00:38:01]Read from MH i2c: E2 FD 00 [00:38:01]MH_I2C_Read... [00:38:01]Read from MH i2c: E2 FD 00 C1 14 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 5D [00:38:01]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:38:01]wFMCommunicate OK [00:38:01]wFMCommunicate request_size=4 [00:38:01]MH_SAM_APDU [00:38:01]CAPDU: 80 17 00 00 [00:38:01]Write to MH i2c: E2 08 00 C2 14 80 17 00 00 00 00 00 00 56 [00:38:01]Write i2c OK [00:38:01]MH_I2C_Read... [00:38:02]Read from MH i2c: E2 [00:38:02]MH_I2C_Read... [00:38:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:38:02]Read from MH i2c: E2 FD 00 [00:38:02]MH_I2C_Read... [00:38:02]Read from MH i2c: E2 FD 00 C2 14 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 28 [00:38:02]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 [00:38:02]wFMCommunicate OK [00:38:02]wFMCommunicate request_size=4 [00:38:02]MH_SAM_APDU [00:38:02]CAPDU: 80 17 00 00 [00:38:02]Write to MH i2c: E2 08 00 C3 14 80 17 00 00 00 00 00 00 57 [00:38:02]Write i2c OK [00:38:02]MH_I2C_Read... [00:38:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:38:02]Read from MH i2c: E2 [00:38:02]MH_I2C_Read... [00:38:02]Read from MH i2c: E2 FD 00 [00:38:02]MH_I2C_Read... [00:38:02]Read from MH i2c: E2 FD 00 C3 14 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 C9 [00:38:02]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:38:02]wFMCommunicate OK [00:38:02]wFMCommunicate request_size=4 [00:38:02]MH_SAM_APDU [00:38:02]CAPDU: 80 17 00 00 [00:38:02]Write to MH i2c: E2 08 00 C4 14 80 17 00 00 00 00 00 00 58 [00:38:02]Write i2c OK [00:38:02]MH_I2C_Read... [00:38:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:38:02]Read from MH i2c: E2 [00:38:02]MH_I2C_Read... [00:38:02]Read from MH i2c: E2 BD 00 [00:38:02]MH_I2C_Read... [00:38:02]Read from MH i2c: E2 BD 00 C4 14 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 3E [00:38:03]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 OFD Sender: No OFD packet to send [00:38:03]00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:38:03]wFMCommunicate OK [00:38:03]SAM_PROTO_GetShiftData done [00:38:03]requested_item shift.sale.total_cash is exist - process it [00:38:03]requested_item shift.sale_refund.total is exist - process it [00:38:03]requested_item shift.sale_refund.total_cash is exist - process it [00:38:03]requested_item shift.buy.total is exist - process it [00:38:03]requested_item shift.buy.total_cash is exist - process it [00:38:03]produce_requested_data done [00:38:03]produce_requested_data return {"fm.sale.total":100884330.29,"fm.sale_refund.total":549779.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:38:03]process_action_free get_value [00:38:03]json_value_free [00:38:03]json_value_free done [00:38:03]process_json_proto returns [00:38:03]Send response to host [00:38:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":100884330.29,"fm.sale_refund.total":549779.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:38:03]free response buf [00:38:03]execute_script done [00:38:03]execute_script returns [00:38:03]free content buf [00:38:03]Sock 9.Close socket [00:38:03]Sock 9.Thread stoped [00:38:08]OFD Sender: No OFD packet to send [00:38:13]OFD Sender: No OFD packet to send [00:38:18]OFD Sender: No OFD packet to send [00:38:23]OFD Sender: No OFD packet to send [00:38:28]OFD Sender: No OFD packet to send [00:38:33]OFD Sender: No OFD packet to send [00:38:38]OFD Sender: No OFD packet to send [00:38:43]OFD Sender: No OFD packet to send [00:38:48]OFD Sender: No OFD packet to send [00:38:53]OFD Sender: No OFD packet to send [00:38:58]OFD Sender: No OFD packet to send [00:39:03]OFD Sender: No OFD packet to send [00:39:08]OFD Sender: No OFD packet to send [00:39:13]OFD Sender: No OFD packet to send [00:39:18]OFD Sender: No OFD packet to send [00:39:23]OFD Sender: No OFD packet to send [00:39:28]OFD Sender: No OFD packet to send [00:39:33]OFD Sender: No OFD packet to send [00:39:38]OFD Sender: No OFD packet to send [00:39:43]OFD Sender: No OFD packet to send [00:39:47]accept exits with 7 [00:39:47]New connection [00:39:47]New thread 3066785124 created [00:39:47]Thread 3066928484 joined [00:39:47]Waiting for new connection... [00:39:47] Sock 7.Parse request [00:39:47]Sock 7.Check first char [00:39:47]Sock 7.First char is OK [00:39:47]request: POST /json_proto HTTP/1.0 [00:39:47]Method: POST [00:39:47]URL: /json_proto [00:39:47]Method is POST - this is cgi request [00:39:47]url: /json_proto [00:39:47]query_string will be loaded in cgi processing [00:39:47]execute_cgi json_proto POST (null) [00:39:47]execute_cgi path=json_proto method=POST [00:39:47]POST find Content-Length [00:39:47]Host: 172.17.56.4:8080 [00:39:47]Content-Length: 790 [00:39:47]Content-Type: application/json [00:39:47] [00:39:47]POST finish read [00:39:47]Found Content-Length = 790 [00:39:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459229", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 6.120, "sum" : 399.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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 399.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:39:47]execute_script... [00:39: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)459229", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 6.120, "sum" : 399.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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 399.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:39:47]POST & json_proto [00:39:47]process_json_proto [00:39:47]json parsed OK: [00:39:47]protocol is kg_v1.0 [00:39:47]action value=close_receipt [00:39:47]process_action close_receipt [00:39:47]cmd_close_receipt [00:39:47]MH_GetDate [00:39:47]Write to MH i2c: F0 00 00 C5 14 C8 [00:39:47]Write i2c OK [00:39:47]MH_I2C_Read... [00:39:47]Read from MH i2c: F0 [00:39:47]MH_I2C_Read... [00:39:47]Read from MH i2c: F0 09 00 [00:39:47]MH_I2C_Read... [00:39:47]Read from MH i2c: F0 09 00 C5 14 00 D5 6F 94 66 C9 DC B2 64 CA [00:39:47]GetLastDocTimeStamp 1721003876 [00:39:47]current date 1721003989 [00:39:47]FM_GetShiftState [00:39:47]SAM_PROTO_GetShiftState [00:39:47]wFMCommunicate request_size=4 [00:39:47]MH_SAM_APDU [00:39:47]CAPDU: 80 13 01 00 [00:39:47]Write to MH i2c: E2 08 00 C6 14 80 13 01 00 00 00 00 00 57 [00:39:47]Write i2c OK [00:39:47]MH_I2C_Read... [00:39:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:39:47]Read from MH i2c: E2 [00:39:47]MH_I2C_Read... [00:39:47]Read from MH i2c: E2 0E 00 [00:39:47]MH_I2C_Read... [00:39:47]Read from MH i2c: E2 0E 00 C6 14 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 30 [00:39:47]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [00:39:47]wFMCommunicate OK [00:39:47]SAM_PROTO_GetShiftState done [00:39:47]FM_GetShiftState done [00:39:47]opened in 1721003876 [00:39:47]opened+sec_in_day 1721090276 [00:39:47]quantity*price = 39914 [00:39:47]sum+1 = 39916 [00:39:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 399.15 НСП 1% : 3.53 НДС 12% : 42.39 Наличными: 0.00 Безнал.: 399.15 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 1 15.07.2024 00:39 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 165128 ФПД: 206831892477280 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T003949&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165128&fm=206831892477280&tin=02508201610067®Number=0000000000090829&sum=39915 [00:39:48]StoreToDocumentArchive [00:39:48]shift 448 fd 165128 [00:39:48]save to /storage/0448/doc_00165128 [00:39:48]save last doc name /storage/0448/doc_00165128 to /storage/kkm_last_doc_name [00:39:48]save OK [00:39:48]Clear old archive folders... [00:39:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:39:48]tlvbuf is 013C0090 [00:39:48]SAM_PROTO_ClearQueue [00:39:48]wFMCommunicate request_size=4 [00:39:48]MH_SAM_APDU [00:39:48]CAPDU: 80 09 00 00 [00:39:48]Write to MH i2c: E2 08 00 D3 14 80 09 00 00 00 00 00 00 59 [00:39:48]Write i2c OK [00:39:48]MH_I2C_Read... [00:39:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:39:48]Read from MH i2c: E2 [00:39:48]MH_I2C_Read... [00:39:48]Read from MH i2c: E2 03 00 [00:39:48]MH_I2C_Read... [00:39:48]Read from MH i2c: E2 03 00 D3 14 00 90 00 5B [00:39:48]RAPDU: 90 00 [00:39:48]wFMCommunicate OK [00:39:48]SAM_PROTO_ClearQueue done [00:39:48]KKMCreateOFDPacket [00:39:48]OFDProtocolAddRootSTLVToBuf [00:39:48]FM_MakeSignedData [00:39:48]FM_MakeSignedData [00:39:48]SAM_PROTO_SignData [00:39:48]wFMCommunicate request_size=4 [00:39:48]MH_SAM_APDU [00:39:48]CAPDU: 80 0D 01 02 [00:39:48]Write to MH i2c: E2 08 00 D4 14 80 0D 01 02 00 00 00 00 61 [00:39:48]Write i2c OK [00:39:48]MH_I2C_Read... [00:39:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:39:48]Read from MH i2c: E2 [00:39:48]MH_I2C_Read... [00:39:48]Read from MH i2c: E2 03 00 [00:39:48]MH_I2C_Read... [00:39:48]Read from MH i2c: E2 03 00 D4 14 00 90 00 5C [00:39:48]RAPDU: 90 00 [00:39:48]wFMCommunicate OK [00:39:48]wFMCommunicate request_size=255 [00:39:48]MH_SAM_APDU [00:39:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 17 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 EB 9B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EB 9B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EB 9B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 D5 6F 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 08 85 02 00 35 04 06 00 BC [00:39:48]Write to MH i2c: E2 02 01 D5 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 17 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 EB 9B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EB 9B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EB 9B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 D5 6F 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 08 85 02 00 35 04 06 00 BC 00 00 E1 [00:39:48]Write i2c OK [00:39:48]MH_I2C_Read... [00:39:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:39:49]Read from MH i2c: E2 [00:39:49]MH_I2C_Read... [00:39:49]Read from MH i2c: E2 03 00 [00:39:49]MH_I2C_Read... [00:39:49]Read from MH i2c: E2 03 00 D5 14 00 90 00 5D [00:39:49]RAPDU: 90 00 [00:39:49]wFMCommunicate OK [00:39:49]wFMCommunicate request_size=10 [00:39:49]MH_SAM_APDU [00:39:49]CAPDU: 80 0D 02 02 05 1C CD 7A B5 60 [00:39:49]Write to MH i2c: E2 0D 00 D6 14 80 0D 02 02 05 00 1C CD 7A B5 60 00 00 E6 [00:39:49]Write i2c OK [00:39:49]MH_I2C_Read... [00:39:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:39:49]Read from MH i2c: E2 [00:39:49]MH_I2C_Read... [00:39:49]Read from MH i2c: E2 03 00 [00:39:49]MH_I2C_Read... [00:39:49]Read from MH i2c: E2 03 00 D6 14 00 90 00 5E [00:39:49]RAPDU: 90 00 [00:39:49]wFMCommunicate OK [00:39:49]wFMCommunicate request_size=4 [00:39:49]MH_SAM_APDU [00:39:49]CAPDU: 80 0D 03 02 [00:39:49]Write to MH i2c: E2 08 00 D7 14 80 0D 03 02 00 00 00 00 66 [00:39:49]Write i2c OK [00:39:49]MH_I2C_Read... [00:39:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:39:49]Read from MH i2c: E2 [00:39:49]MH_I2C_Read... [00:39:49]Read from MH i2c: E2 0B 00 [00:39:49]MH_I2C_Read... [00:39:49]Read from MH i2c: E2 0B 00 D7 14 00 DC EA B1 2F 2E 88 AB E8 90 00 56 [00:39:49]RAPDU: DC EA B1 2F 2E 88 AB E8 90 00 [00:39:49]wFMCommunicate OK [00:39:49]SAM_PROTO_SignData done [00:39:49]FM_MakeSignedData done [00:39:49]CreateOFDProtocolMessage [00:39:49]wFMCommunicate request_size=4 [00:39:49]MH_SAM_APDU [00:39:49]CAPDU: 80 11 00 00 [00:39:49]Write to MH i2c: E2 08 00 D8 14 80 11 00 00 00 00 00 00 66 [00:39:49]Write i2c OK [00:39:49]MH_I2C_Read... [00:39:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:39:49]Read from MH i2c: E2 [00:39:49]MH_I2C_Read... [00:39:49]Read from MH i2c: E2 17 00 [00:39:49]MH_I2C_Read... [00:39:49]Read from MH i2c: E2 17 00 D8 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 BC [00:39:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [00:39:49]wFMCommunicate OK [00:39:49]CreateOFDProtocolMessage done [00:39:49]OFDSenderStorePacket 165128 [00:39:49]StoreOFDPacket docnum=165128 [00:39:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C6 74 07 01 2E 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 17 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 EB 9B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EB 9B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EB 9B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 D5 6F 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 08 85 02 00 35 04 06 00 BC 1C CD 7A B5 60 DC EA B1 2F 2E 88 AB E8 [00:39:49]CheckFolder [00:39:49]dirname=/storage/ofd_packets [00:39:49]CheckFolder done [00:39:49]ProducePacketName [00:39:49]name=ofd_packets/00165128 [00:39:49]NVStorageSaveData ofd_packets/00165128 [00:39:49]File name is /storage/ofd_packets/00165128 [00:39:49]Write 301 bytes [00:39:49]NVStorageSaveData done [00:39:49]OFDSenderStorePacket done [00:39:49]KKMCreateOFDPacket done [00:39:49]NVStorageSaveData kkm_last_timestamp [00:39:49]File name is /storage/kkm_last_timestamp [00:39:49]Write 4 bytes [00:39:49]NVStorageSaveData done [00:39:49]ExternCall_PrintAddStr [00:39:49]wPrintStart [00:39:49]Write to MH i2c: 01 00 00 D9 14 ED [00:39:49]OFD Sender: Processing packet 165128 [packets to send 106, broken 105] [00:39:49]ProducePacketName [00:39:49]name=ofd_packets/00165128 [00:39:49]OFD Sender: To server: pG, [00:39:49]CommunicateWithHost lk.salyk.kg:30040 [00:39:49]ConnectInit lk.salyk.kg [00:39:49]Write i2c OK [00:39:49]MH_I2C_Read... [00:39:49]Read from MH i2c: 01 [00:39:49]MH_I2C_Read... [00:39:49]Read from MH i2c: 01 07 00 [00:39:49]MH_I2C_Read... [00:39:49]Read from MH i2c: 01 07 00 D9 14 00 00 00 00 00 FF 0F 02 [00:39:49]RasterBufferAndPrint [00:39:49]line Счет N : (1)459229 [00:39:49]line ИНН: 02508201610067 [00:39:49]line Контрольно-Кассовый Чек [00:39:49]line ПРОДАЖА [00:39:49]line ТРК (МРК, ГНК) : 12 [00:39:49]line Товар: 2710124130 [00:39:49]line Аи-92-К-5 [00:39:49]line 6.120 * 65.22 [00:39:49]line = 399.15 [00:39:49]line НДС 12% НСП 1% [00:39:49]line > о реализуемом товаре [00:39:49]line ИТОГО: 399.15 [00:39:49]line НСП 1% : 3.53 [00:39:49]line НДС 12% : 42.39 [00:39:49]line Наличными: 0.00 [00:39:49]line Безнал.: 399.15 [00:39:49]line Место: АЗС № 72 "Партнер Нефть" [00:39:49]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [00:39:49]line СНО: Общий режим [00:39:49]line Чек 1 15.07.2024 00:39 [00:39:49]line Смена: 448 ФФД: 1.0 [00:39:49]line ЗНМ: 0300000160 [00:39:49]line РНМ: 0000000000090829 [00:39:49]line Версия ККМ: 001 [00:39:49]line Платежная система: KICB Банк [00:39:49]line ФМ: 0000000000874718 [00:39:49]line ФД: 165128 [00:39:49]line ФПД: 206831892477280 [00:39:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T003949&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165128&fm=206831892477280&tin=02508201610067®Number=0000000000090829&sum=39915 [00:39:49]written 0, free lines is 4095 [00:39:49]Connected sock=10 [00:39:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C6 74 07 01 2E 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 17 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 EB 9B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EB 9B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EB 9B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 D5 6F 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 08 85 02 00 35 04 06 00 BC 1C CD 7A B5 60 DC EA B1 2F 2E 88 AB E8 [00:39:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 D3 79 47 00 B0 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 08 85 02 00 F4 03 04 00 61 16 94 66 B6 04 01 00 00 B3 F2 67 B0 B6 1E 26 35 [00:39:49]CommunicateWithHost err = 0 [00:39:49]CheckOFDResponse [00:39:49]1017 (14) - 77093643461234 [00:39:49]1041 (16) - 0000000000874718 [00:39:49]1040 (4) - 165128 [00:39:49]1012 (4) - 14.07.2024 18:18 [00:39:49]1206 (1) - 0 [00:39:49]OFD Sender: Remove packet 165128 [00:39:49]ProducePacketName [00:39:49]name=ofd_packets/00165128 [00:39:49]NVStorageDeleteData [00:39:50]Write to MH i2c: 01 00 00 02 15 17 [00:39:50]Write i2c OK [00:39:50]MH_I2C_Read... [00:39:50]Read from MH i2c: 01 [00:39:50]MH_I2C_Read... [00:39:50]Read from MH i2c: 01 07 00 [00:39:50]MH_I2C_Read... [00:39:50]Read from MH i2c: 01 07 00 02 15 00 00 00 00 00 04 0D 2F [00:39:50]RasterBufferAndPrint [00:39:50]line [00:39:50]line [00:39:50]line [00:39:50]line [00:39:50]line [00:39:50]written 0, free lines is 3338 [00:39:50]MH_Cut [00:39:50]Write to MH i2c: D1 01 00 09 15 01 F0 [00:39:50]Write i2c OK [00:39:50]MH_I2C_Read... [00:39:50]Read from MH i2c: D1 [00:39:50]MH_I2C_Read... [00:39:50]Read from MH i2c: D1 01 00 [00:39:50]MH_I2C_Read... [00:39:50]Read from MH i2c: D1 01 00 09 15 00 EF [00:39:50]Write to MH i2c: 01 00 00 0A 15 1F [00:39:50]Write i2c OK [00:39:50]MH_I2C_Read... [00:39:50]OFD Sender: No OFD packet to send [00:39:50]*** Cut start [00:39:50]*** Partial cut [00:39:50]*** CUTSNS_PIN = 1 [00:39:50]*** CUTSNS_PIN = 0 [00:39:50]*** Brake cut motor [00:39:51]Read from MH i2c: 01 [00:39:51]MH_I2C_Read... [00:39:51]*** Stop cut motor [00:39:51]*** Cut end [00:39:51]Read from MH i2c: 01 07 00 [00:39:51]MH_I2C_Read... [00:39:51]Read from MH i2c: 01 07 00 0A 15 00 00 00 00 00 FF 0F 34 [00:39:51]process_action close_receipt done [00:39:51]requested_data is exist [00:39:51]produce_requested_data [00:39:51]requested_item fm.sn is exist - process it [00:39:51]wFMCommunicate request_size=4 [00:39:51]MH_SAM_APDU [00:39:51]CAPDU: 80 11 00 00 [00:39:51]Write to MH i2c: E2 08 00 0B 15 80 11 00 00 00 00 00 00 9A [00:39:51]Write i2c OK [00:39:51]MH_I2C_Read... [00:39:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:39:51]Read from MH i2c: E2 [00:39:51]MH_I2C_Read... [00:39:51]Read from MH i2c: E2 17 00 [00:39:51]MH_I2C_Read... [00:39:51]Read from MH i2c: E2 17 00 0B 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F0 [00:39:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [00:39:51]wFMCommunicate OK [00:39:51]requested_item fd.num is exist - process it [00:39:51]SAM_PROTO_GetFieldsCounters [00:39:51]wFMCommunicate request_size=4 [00:39:51]MH_SAM_APDU [00:39:51]CAPDU: 80 13 00 00 [00:39:51]Write to MH i2c: E2 08 00 0C 15 80 13 00 00 00 00 00 00 9D [00:39:51]Write i2c OK [00:39:51]MH_I2C_Read... [00:39:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:39:51]Read from MH i2c: E2 [00:39:51]MH_I2C_Read... [00:39:51]Read from MH i2c: E2 62 00 [00:39:51]MH_I2C_Read... [00:39:51]Read from MH i2c: E2 62 00 0C 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 08 85 02 00 0E 04 04 00 C0 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 17 [00:39:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 08 85 02 00 0E 04 04 00 C0 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:39:51]wFMCommunicate OK [00:39:51]SAM_PROTO_GetFieldsCounters done [00:39:51]requested_item shift.num is exist - process it [00:39:51]requested_item shift.opened is exist - process it [00:39:51]req_shift_opened [00:39:51]FM_GetShiftState [00:39:51]SAM_PROTO_GetShiftState [00:39:51]wFMCommunicate request_size=4 [00:39:51]MH_SAM_APDU [00:39:51]CAPDU: 80 13 01 00 [00:39:51]Write to MH i2c: E2 08 00 0D 15 80 13 01 00 00 00 00 00 9F [00:39:51]Write i2c OK [00:39:51]MH_I2C_Read... [00:39:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:39:51]Read from MH i2c: E2 [00:39:51]MH_I2C_Read... [00:39:51]Read from MH i2c: E2 0E 00 [00:39:51]MH_I2C_Read... [00:39:51]Read from MH i2c: E2 0E 00 0D 15 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 78 [00:39:51]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [00:39:51]wFMCommunicate OK [00:39:51]SAM_PROTO_GetShiftState done [00:39:51]FM_GetShiftState done [00:39:51]req_shift_opened done [00:39:51]requested_item shift.open_date is exist - process it [00:39:51]req_shift_open_date [00:39:51]req_shift_open_date done [00:39:51]produce_requested_data done [00:39:51]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165128,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [00:39:51]process_action_free close_receipt [00:39:51]json_value_free [00:39:51]json_value_free done [00:39:51]process_json_proto returns [00:39:51]Send response to host [00:39:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165128,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [00:39:51]free response buf [00:39:51]execute_script done [00:39:51]execute_script returns [00:39:51]free content buf [00:39:51]Sock 7.Close socket [00:39:51]Sock 7.Thread stoped [00:39:55]OFD Sender: No OFD packet to send [00:40:00]OFD Sender: No OFD packet to send [00:40:05]OFD Sender: No OFD packet to send [00:40:10]OFD Sender: No OFD packet to send [00:40:15]OFD Sender: No OFD packet to send [00:40:20]OFD Sender: No OFD packet to send [00:40:25]OFD Sender: No OFD packet to send [00:40:30]OFD Sender: No OFD packet to send [00:40:35]OFD Sender: No OFD packet to send [00:40:40]OFD Sender: No OFD packet to send [00:40:45]OFD Sender: No OFD packet to send [00:40:50]OFD Sender: No OFD packet to send [00:40:55]OFD Sender: No OFD packet to send [00:41:00]OFD Sender: No OFD packet to send [00:41:05]OFD Sender: No OFD packet to send [00:41:10]OFD Sender: No OFD packet to send [00:41:15]OFD Sender: No OFD packet to send [00:41:20]OFD Sender: No OFD packet to send [00:41:25]OFD Sender: No OFD packet to send [00:41:30]OFD Sender: No OFD packet to send [00:41:35]OFD Sender: No OFD packet to send [00:41:40]OFD Sender: No OFD packet to send [00:41:45]OFD Sender: No OFD packet to send [00:41:50]OFD Sender: No OFD packet to send [00:41:55]OFD Sender: No OFD packet to send [00:42:00]OFD Sender: No OFD packet to send [00:42:05]OFD Sender: No OFD packet to send [00:42:10]OFD Sender: No OFD packet to send [00:42:15]OFD Sender: No OFD packet to send [00:42:20]OFD Sender: No OFD packet to send [00:42:25]OFD Sender: No OFD packet to send [00:42:30]OFD Sender: No OFD packet to send [00:42:35]OFD Sender: No OFD packet to send [00:42:40]OFD Sender: No OFD packet to send [00:42:45]OFD Sender: No OFD packet to send [00:42:50]OFD Sender: No OFD packet to send [00:42:55]OFD Sender: No OFD packet to send [00:43:00]OFD Sender: No OFD packet to send [00:43:05]OFD Sender: No OFD packet to send [00:43:10]OFD Sender: No OFD packet to send [00:43:15]OFD Sender: No OFD packet to send [00:43:20]OFD Sender: No OFD packet to send [00:43:25]OFD Sender: No OFD packet to send [00:43:30]OFD Sender: No OFD packet to send [00:43:35]OFD Sender: No OFD packet to send [00:43:40]OFD Sender: No OFD packet to send [00:43:45]OFD Sender: No OFD packet to send [00:43:50]OFD Sender: No OFD packet to send [00:43:55]OFD Sender: No OFD packet to send [00:44:00]OFD Sender: No OFD packet to send [00:44:05]OFD Sender: No OFD packet to send [00:44:10]OFD Sender: No OFD packet to send [00:44:15]OFD Sender: No OFD packet to send [00:44:20]OFD Sender: No OFD packet to send [00:44:25]OFD Sender: No OFD packet to send [00:44:30]OFD Sender: No OFD packet to send [00:44:35]OFD Sender: No OFD packet to send [00:44:40]OFD Sender: No OFD packet to send [00:44:45]OFD Sender: No OFD packet to send [00:44:50]OFD Sender: No OFD packet to send [00:44:55]OFD Sender: No OFD packet to send [00:45:00]OFD Sender: No OFD packet to send [00:45:05]OFD Sender: No OFD packet to send [00:45:10]OFD Sender: No OFD packet to send [00:45:15]OFD Sender: No OFD packet to send [00:45:20]OFD Sender: No OFD packet to send [00:45:25]OFD Sender: No OFD packet to send [00:45:30]OFD Sender: No OFD packet to send [00:45:35]OFD Sender: No OFD packet to send [00:45:40]OFD Sender: No OFD packet to send [00:45:45]OFD Sender: No OFD packet to send [00:45:50]OFD Sender: No OFD packet to send [00:45:55]OFD Sender: No OFD packet to send [00:46:00]OFD Sender: No OFD packet to send [00:46:05]OFD Sender: No OFD packet to send [00:46:10]OFD Sender: No OFD packet to send [00:46:15]OFD Sender: No OFD packet to send [00:46:20]OFD Sender: No OFD packet to send [00:46:25]OFD Sender: No OFD packet to send [00:46:30]OFD Sender: No OFD packet to send [00:46:35]OFD Sender: No OFD packet to send [00:46:40]OFD Sender: No OFD packet to send [00:46:45]OFD Sender: No OFD packet to send [00:46:50]OFD Sender: No OFD packet to send [00:46:55]OFD Sender: No OFD packet to send [00:47:00]OFD Sender: No OFD packet to send [00:47:05]OFD Sender: No OFD packet to send [00:47:10]OFD Sender: No OFD packet to send [00:47:15]OFD Sender: No OFD packet to send [00:47:20]OFD Sender: No OFD packet to send [00:47:25]OFD Sender: No OFD packet to send [00:47:30]OFD Sender: No OFD packet to send [00:47:35]OFD Sender: No OFD packet to send [00:47:40]OFD Sender: No OFD packet to send [00:47:45]OFD Sender: No OFD packet to send [00:47:50]OFD Sender: No OFD packet to send [00:47:55]OFD Sender: No OFD packet to send [00:48:00]OFD Sender: No OFD packet to send [00:48:05]OFD Sender: No OFD packet to send [00:48:10]OFD Sender: No OFD packet to send [00:48:15]OFD Sender: No OFD packet to send [00:48:20]OFD Sender: No OFD packet to send [00:48:25]OFD Sender: No OFD packet to send [00:48:30]OFD Sender: No OFD packet to send [00:48:35]OFD Sender: No OFD packet to send [00:48:40]OFD Sender: No OFD packet to send [00:48:45]OFD Sender: No OFD packet to send [00:48:50]OFD Sender: No OFD packet to send [00:48:55]OFD Sender: No OFD packet to send [00:49:00]OFD Sender: No OFD packet to send [00:49:05]OFD Sender: No OFD packet to send [00:49:10]OFD Sender: No OFD packet to send [00:49:15]OFD Sender: No OFD packet to send [00:49:20]OFD Sender: No OFD packet to send [00:49:25]OFD Sender: No OFD packet to send [00:49:30]OFD Sender: No OFD packet to send [00:49:35]OFD Sender: No OFD packet to send [00:49:40]OFD Sender: No OFD packet to send [00:49:45]OFD Sender: No OFD packet to send [00:49:50]OFD Sender: No OFD packet to send [00:49:55]OFD Sender: No OFD packet to send [00:50:00]OFD Sender: No OFD packet to send [00:50:05]OFD Sender: No OFD packet to send [00:50:10]OFD Sender: No OFD packet to send [00:50:15]OFD Sender: No OFD packet to send [00:50:20]OFD Sender: No OFD packet to send [00:50:25]OFD Sender: No OFD packet to send [00:50:30]OFD Sender: No OFD packet to send [00:50:35]OFD Sender: No OFD packet to send [00:50:40]OFD Sender: No OFD packet to send [00:50:45]OFD Sender: No OFD packet to send [00:50:51]OFD Sender: No OFD packet to send [00:50:56]OFD Sender: No OFD packet to send [00:51:01]OFD Sender: No OFD packet to send [00:51:06]OFD Sender: No OFD packet to send [00:51:11]OFD Sender: No OFD packet to send [00:51:16]OFD Sender: No OFD packet to send [00:51:21]OFD Sender: No OFD packet to send [00:51:26]OFD Sender: No OFD packet to send [00:51:31]OFD Sender: No OFD packet to send [00:51:36]OFD Sender: No OFD packet to send [00:51:41]OFD Sender: No OFD packet to send [00:51:46]OFD Sender: No OFD packet to send [00:51:51]OFD Sender: No OFD packet to send [00:51:56]OFD Sender: No OFD packet to send [00:52:01]OFD Sender: No OFD packet to send [00:52:06]OFD Sender: No OFD packet to send [00:52:11]OFD Sender: No OFD packet to send [00:52:16]OFD Sender: No OFD packet to send [00:52:21]OFD Sender: No OFD packet to send [00:52:26]OFD Sender: No OFD packet to send [00:52:31]OFD Sender: No OFD packet to send [00:52:36]OFD Sender: No OFD packet to send [00:52:41]OFD Sender: No OFD packet to send [00:52:46]OFD Sender: No OFD packet to send [00:52:51]OFD Sender: No OFD packet to send [00:52:56]OFD Sender: No OFD packet to send [00:53:01]OFD Sender: No OFD packet to send [00:53:06]OFD Sender: No OFD packet to send [00:53:11]OFD Sender: No OFD packet to send [00:53:16]OFD Sender: No OFD packet to send [00:53:21]OFD Sender: No OFD packet to send [00:53:26]OFD Sender: No OFD packet to send [00:53:31]OFD Sender: No OFD packet to send [00:53:36]OFD Sender: No OFD packet to send [00:53:41]OFD Sender: No OFD packet to send [00:53:46]OFD Sender: No OFD packet to send [00:53:51]OFD Sender: No OFD packet to send [00:53:56]OFD Sender: No OFD packet to send [00:54:01]OFD Sender: No OFD packet to send [00:54:06]OFD Sender: No OFD packet to send [00:54:11]OFD Sender: No OFD packet to send [00:54:16]OFD Sender: No OFD packet to send [00:54:21]OFD Sender: No OFD packet to send [00:54:26]OFD Sender: No OFD packet to send [00:54:31]OFD Sender: No OFD packet to send [00:54:36]OFD Sender: No OFD packet to send [00:54:41]OFD Sender: No OFD packet to send [00:54:46]OFD Sender: No OFD packet to send [00:54:51]OFD Sender: No OFD packet to send [00:54:56]OFD Sender: No OFD packet to send [00:55:01]OFD Sender: No OFD packet to send [00:55:06]OFD Sender: No OFD packet to send [00:55:11]OFD Sender: No OFD packet to send [00:55:16]OFD Sender: No OFD packet to send [00:55:21]OFD Sender: No OFD packet to send [00:55:26]OFD Sender: No OFD packet to send [00:55:31]OFD Sender: No OFD packet to send [00:55:36]OFD Sender: No OFD packet to send [00:55:41]OFD Sender: No OFD packet to send [00:55:46]OFD Sender: No OFD packet to send [00:55:51]OFD Sender: No OFD packet to send [00:55:56]OFD Sender: No OFD packet to send [00:56:01]OFD Sender: No OFD packet to send [00:56:06]OFD Sender: No OFD packet to send [00:56:11]OFD Sender: No OFD packet to send [00:56:16]OFD Sender: No OFD packet to send [00:56:21]OFD Sender: No OFD packet to send [00:56:26]OFD Sender: No OFD packet to send [00:56:31]OFD Sender: No OFD packet to send [00:56:36]OFD Sender: No OFD packet to send [00:56:41]OFD Sender: No OFD packet to send [00:56:46]OFD Sender: No OFD packet to send [00:56:51]OFD Sender: No OFD packet to send [00:56:56]OFD Sender: No OFD packet to send [00:57:01]OFD Sender: No OFD packet to send [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:41]OFD Sender: No OFD packet to send [00:58:46]OFD Sender: No OFD packet to send [00:58:51]OFD Sender: No OFD packet to send [00:58:56]OFD Sender: No OFD packet to send [00:59:01]OFD Sender: No OFD packet to send [00:59:01]accept exits with 9 [00:59:01]New connection [00:59:01]New thread 3066928484 created [00:59:01]Thread 3066785124 joined [00:59:01]Waiting for new connection... [00:59:01] Sock 9.Parse request [00:59:01]Sock 9.Check first char [00:59:01]Sock 9.First char is OK [00:59:01]request: POST /json_proto HTTP/1.0 [00:59:01]Method: POST [00:59:01]URL: /json_proto [00:59:01]Method is POST - this is cgi request [00:59:01]url: /json_proto [00:59:01]query_string will be loaded in cgi processing [00:59:01]execute_cgi json_proto POST (null) [00:59:01]execute_cgi path=json_proto method=POST [00:59:01]POST find Content-Length [00:59:01]Host: 172.17.56.4:8080 [00:59:01]Content-Length: 677 [00:59:01]Content-Type: application/json [00:59:01] [00:59:01]POST finish read [00:59:01]Found Content-Length = 677 [00:59:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459230", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.610, "sum" : 369.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 369.00, "total" : 369.00, "payments": [ { "type": 0, "sum" : 369.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:59:01]execute_script... [00:59: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)459230", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.610, "sum" : 369.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 369.00, "total" : 369.00, "payments": [ { "type": 0, "sum" : 369.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:59:01]POST & json_proto [00:59:01]process_json_proto [00:59:01]json parsed OK: [00:59:01]protocol is kg_v1.0 [00:59:01]action value=close_receipt [00:59:01]process_action close_receipt [00:59:01]cmd_close_receipt [00:59:01]MH_GetDate [00:59:01]Write to MH i2c: F0 00 00 0E 15 12 [00:59:01]Write i2c OK [00:59:01]MH_I2C_Read... [00:59:01]Read from MH i2c: F0 [00:59:01]MH_I2C_Read... [00:59:01]Read from MH i2c: F0 09 00 [00:59:01]MH_I2C_Read... [00:59:01]Read from MH i2c: F0 09 00 0E 15 00 58 74 94 66 C9 DC B2 64 9C [00:59:01]GetLastDocTimeStamp 1721003989 [00:59:01]current date 1721005144 [00:59:01]FM_GetShiftState [00:59:01]SAM_PROTO_GetShiftState [00:59:01]wFMCommunicate request_size=4 [00:59:01]MH_SAM_APDU [00:59:01]CAPDU: 80 13 01 00 [00:59:01]Write to MH i2c: E2 08 00 0F 15 80 13 01 00 00 00 00 00 A1 [00:59:01]Write i2c OK [00:59:01]MH_I2C_Read... [00:59:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:59:01]Read from MH i2c: E2 [00:59:01]MH_I2C_Read... [00:59:01]Read from MH i2c: E2 0E 00 [00:59:01]MH_I2C_Read... [00:59:01]Read from MH i2c: E2 0E 00 0F 15 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 7A [00:59:01]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [00:59:01]wFMCommunicate OK [00:59:01]SAM_PROTO_GetShiftState done [00:59:01]FM_GetShiftState done [00:59:01]opened in 1721003876 [00:59:01]opened+sec_in_day 1721090276 [00:59:01]quantity*price = 36913 [00:59:01]sum+1 = 36915 [00:59:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 369.00 Внесено: 369.00 СДАЧА: 0.00 НСП 1% : 3.27 НДС 12% : 39.20 Наличными: 369.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 2 15.07.2024 00:59 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165129 ФПД: 603112666983 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T005904&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165129&fm=603112666983&tin=02508201610067®Number=0000000000090829&sum=36900 [00:59:02]StoreToDocumentArchive [00:59:02]shift 448 fd 165129 [00:59:02]save to /storage/0448/doc_00165129 [00:59:02]save last doc name /storage/0448/doc_00165129 to /storage/kkm_last_doc_name [00:59:02]save OK [00:59:02]Clear old archive folders... [00:59:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:59:02]tlvbuf is 01355380 [00:59:02]SAM_PROTO_ClearQueue [00:59:02]wFMCommunicate request_size=4 [00:59:02]MH_SAM_APDU [00:59:02]CAPDU: 80 09 00 00 [00:59:02]Write to MH i2c: E2 08 00 1C 15 80 09 00 00 00 00 00 00 A3 [00:59:02]Write i2c OK [00:59:02]MH_I2C_Read... [00:59:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:59:02]Read from MH i2c: E2 [00:59:02]MH_I2C_Read... [00:59:02]Read from MH i2c: E2 03 00 [00:59:02]MH_I2C_Read... [00:59:02]Read from MH i2c: E2 03 00 1C 15 00 90 00 A5 [00:59:02]RAPDU: 90 00 [00:59:02]wFMCommunicate OK [00:59:02]SAM_PROTO_ClearQueue done [00:59:02]KKMCreateOFDPacket [00:59:02]OFDProtocolAddRootSTLVToBuf [00:59:02]FM_MakeSignedData [00:59:02]FM_MakeSignedData [00:59:02]SAM_PROTO_SignData [00:59:02]wFMCommunicate request_size=4 [00:59:02]MH_SAM_APDU [00:59:02]CAPDU: 80 0D 01 02 [00:59:02]Write to MH i2c: E2 08 00 1D 15 80 0D 01 02 00 00 00 00 AB [00:59:02]Write i2c OK [00:59:02]MH_I2C_Read... [00:59:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:59:03]Read from MH i2c: E2 [00:59:03]MH_I2C_Read... [00:59:03]Read from MH i2c: E2 03 00 [00:59:03]MH_I2C_Read... [00:59:03]Read from MH i2c: E2 03 00 1D 15 00 90 00 A6 [00:59:03]RAPDU: 90 00 [00:59:03]wFMCommunicate OK [00:59:03]wFMCommunicate request_size=255 [00:59:03]MH_SAM_APDU [00:59:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EA 15 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 32 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 0F 00 00 00 00 07 04 06 00 24 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 02 00 00 00 F4 03 04 00 58 74 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 09 85 02 00 35 04 06 00 00 [00:59:03]Write to MH i2c: E2 02 01 1E 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EA 15 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 32 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 0F 00 00 00 00 07 04 06 00 24 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 02 00 00 00 F4 03 04 00 58 74 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 09 85 02 00 35 04 06 00 00 00 00 71 [00:59:03]Write i2c OK [00:59:03]MH_I2C_Read... [00:59:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:59:03]Read from MH i2c: E2 [00:59:03]MH_I2C_Read... [00:59:03]Read from MH i2c: E2 03 00 [00:59:03]MH_I2C_Read... [00:59:03]Read from MH i2c: E2 03 00 1E 15 00 90 00 A7 [00:59:03]RAPDU: 90 00 [00:59:03]wFMCommunicate OK [00:59:03]wFMCommunicate request_size=10 [00:59:03]MH_SAM_APDU [00:59:03]CAPDU: 80 0D 02 02 05 8C 6C 50 F7 67 [00:59:03]Write to MH i2c: E2 0D 00 1F 15 80 0D 02 02 05 00 8C 6C 50 F7 67 00 00 5E [00:59:03]Write i2c OK [00:59:03]MH_I2C_Read... [00:59:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:59:03]Read from MH i2c: E2 [00:59:03]MH_I2C_Read... [00:59:03]Read from MH i2c: E2 03 00 [00:59:03]MH_I2C_Read... [00:59:03]Read from MH i2c: E2 03 00 1F 15 00 90 00 A8 [00:59:03]RAPDU: 90 00 [00:59:03]wFMCommunicate OK [00:59:03]wFMCommunicate request_size=4 [00:59:03]MH_SAM_APDU [00:59:03]CAPDU: 80 0D 03 02 [00:59:03]Write to MH i2c: E2 08 00 20 15 80 0D 03 02 00 00 00 00 B0 [00:59:03]Write i2c OK [00:59:03]MH_I2C_Read... [00:59:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:59:03]Read from MH i2c: E2 [00:59:03]MH_I2C_Read... [00:59:03]Read from MH i2c: E2 0B 00 [00:59:03]MH_I2C_Read... [00:59:03]Read from MH i2c: E2 0B 00 20 15 00 BE 68 A7 53 65 04 84 19 90 00 D7 [00:59:03]RAPDU: BE 68 A7 53 65 04 84 19 90 00 [00:59:03]wFMCommunicate OK [00:59:03]SAM_PROTO_SignData done [00:59:03]FM_MakeSignedData done [00:59:03]CreateOFDProtocolMessage [00:59:03]wFMCommunicate request_size=4 [00:59:03]MH_SAM_APDU [00:59:03]CAPDU: 80 11 00 00 [00:59:03]Write to MH i2c: E2 08 00 21 15 80 11 00 00 00 00 00 00 B0 [00:59:03]Write i2c OK [00:59:03]MH_I2C_Read... [00:59:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:59:03]Read from MH i2c: E2 [00:59:03]MH_I2C_Read... [00:59:03]Read from MH i2c: E2 17 00 [00:59:03]MH_I2C_Read... [00:59:03]Read from MH i2c: E2 17 00 21 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 06 [00:59:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [00:59:03]wFMCommunicate OK [00:59:03]CreateOFDProtocolMessage done [00:59:03]OFDSenderStorePacket 165129 [00:59:03]StoreOFDPacket docnum=165129 [00:59:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D3 D6 07 01 7C 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EA 15 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 32 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 0F 00 00 00 00 07 04 06 00 24 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 02 00 00 00 F4 03 04 00 58 74 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 09 85 02 00 35 04 06 00 00 8C 6C 50 F7 67 BE 68 A7 53 65 04 84 19 [00:59:03]CheckFolder [00:59:03]dirname=/storage/ofd_packets [00:59:03]CheckFolder done [00:59:03]ProducePacketName [00:59:03]name=ofd_packets/00165129 [00:59:03]NVStorageSaveData ofd_packets/00165129 [00:59:03]File name is /storage/ofd_packets/00165129 [00:59:03]Write 301 bytes [00:59:03]NVStorageSaveData done [00:59:03]OFDSenderStorePacket done [00:59:03]KKMCreateOFDPacket done [00:59:03]NVStorageSaveData kkm_last_timestamp [00:59:03]File name is /storage/kkm_last_timestamp [00:59:03]Write 4 bytes [00:59:03]NVStorageSaveData done [00:59:03]ExternCall_PrintAddStr [00:59:03]wPrintStart [00:59:03]Write to MH i2c: 01 00 00 22 15 37 [00:59:03]OFD Sender: Processing packet 165129 [packets to send 106, broken 105] [00:59:03]ProducePacketName [00:59:03]name=ofd_packets/00165129 [00:59:03]OFD Sender: To server: pG, [00:59:03]CommunicateWithHost lk.salyk.kg:30040 [00:59:03]ConnectInit lk.salyk.kg [00:59:03]Write i2c OK [00:59:03]MH_I2C_Read... [00:59:03]Read from MH i2c: 01 [00:59:03]MH_I2C_Read... [00:59:03]Read from MH i2c: 01 07 00 [00:59:03]MH_I2C_Read... [00:59:03]Read from MH i2c: 01 07 00 22 15 00 00 00 00 00 FF 0F 4C [00:59:03]RasterBufferAndPrint [00:59:03]line Счет N : (1)459230 [00:59:03]line ИНН: 02508201610067 [00:59:03]line Контрольно-Кассовый Чек [00:59:03]line ПРОДАЖА [00:59:03]line ТРК (МРК, ГНК) : 22 [00:59:03]line Товар: 2710124130 [00:59:03]line Аи-92-К-5 [00:59:03]line 5.610 * 65.80 [00:59:03]line = 369.14 [00:59:03]line НДС 12% НСП 1% [00:59:03]line > о реализуемом товаре [00:59:03]line ОКРУГЛЕНИЕ: -0.14 [00:59:03]line ИТОГО: 369.00 [00:59:03]line Внесено: 369.00 [00:59:03]line СДАЧА: 0.00 [00:59:03]line НСП 1% : 3.27 [00:59:03]line НДС 12% : 39.20 [00:59:03]line Наличными: 369.00 [00:59:03]line Безнал.: 0.00 [00:59:03]line Место: АЗС № 72 "Партнер Нефть" [00:59:03]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [00:59:03]line СНО: Общий режим [00:59:03]line Чек 2 15.07.2024 00:59 [00:59:03]line Смена: 448 ФФД: 1.0 [00:59:03]line ЗНМ: 0300000160 [00:59:03]line РНМ: 0000000000090829 [00:59:03]line Версия ККМ: 001 [00:59:03]line ФМ: 0000000000874718 [00:59:03]line ФД: 165129 [00:59:03]line ФПД: 603112666983 [00:59:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T005904&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165129&fm=603112666983&tin=02508201610067®Number=0000000000090829&sum=36900 [00:59:03]Connected sock=7 [00:59:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D3 D6 07 01 7C 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EA 15 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 32 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 0F 00 00 00 00 07 04 06 00 24 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 02 00 00 00 F4 03 04 00 58 74 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 09 85 02 00 35 04 06 00 00 8C 6C 50 F7 67 BE 68 A7 53 65 04 84 19 [00:59:03]written 0, free lines is 4095 [00:59:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 91 C8 47 00 5F 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 38 37 34 37 31 38 10 04 04 00 09 85 02 00 F4 03 04 00 E4 1A 94 66 B6 04 01 00 00 68 89 16 64 B4 C7 79 A2 [00:59:04]CommunicateWithHost err = 0 [00:59:04]CheckOFDResponse [00:59:04]1017 (14) - 77093643461234 [00:59:04]1041 (16) - 0000000000874718 [00:59:04]1040 (4) - 165129 [00:59:04]1012 (4) - 14.07.2024 18:37 [00:59:04]1206 (1) - 0 [00:59:04]OFD Sender: Remove packet 165129 [00:59:04]ProducePacketName [00:59:04]name=ofd_packets/00165129 [00:59:04]NVStorageDeleteData [00:59:04]Write to MH i2c: 01 00 00 4C 15 61 [00:59:04]Write i2c OK [00:59:04]MH_I2C_Read... [00:59:04]Read from MH i2c: 01 [00:59:04]MH_I2C_Read... [00:59:04]Read from MH i2c: 01 07 00 [00:59:04]MH_I2C_Read... [00:59:04]Read from MH i2c: 01 07 00 4C 15 00 00 00 00 00 FF 0C 73 [00:59:04]RasterBufferAndPrint [00:59:04]line [00:59:04]line [00:59:04]line [00:59:04]line [00:59:04]line [00:59:04]written 0, free lines is 3335 [00:59:04]MH_Cut [00:59:04]Write to MH i2c: D1 01 00 53 15 01 3A [00:59:04]Write i2c OK [00:59:04]MH_I2C_Read... [00:59:04]Read from MH i2c: D1 [00:59:04]MH_I2C_Read... [00:59:04]Read from MH i2c: D1 01 00 [00:59:04]MH_I2C_Read... [00:59:04]Read from MH i2c: D1 01 00 53 15 00 39 [00:59:04]Write to MH i2c: 01 00 00 54 15 69 [00:59:04]Write i2c OK [00:59:04]MH_I2C_Read... [00:59:04]OFD Sender: No OFD packet to send [00:59:04]*** Cut start [00:59:04]*** Partial cut [00:59:04]*** CUTSNS_PIN = 1 [00:59:05]*** CUTSNS_PIN = 0 [00:59:05]*** Brake cut motor [00:59:05]Read from MH i2c: 01 [00:59:05]MH_I2C_Read... [00:59:05]*** Stop cut motor [00:59:05]*** Cut end [00:59:05]Read from MH i2c: 01 07 00 [00:59:05]MH_I2C_Read... [00:59:05]Read from MH i2c: 01 07 00 54 15 00 00 00 00 00 FF 0F 7E [00:59:05]process_action close_receipt done [00:59:05]requested_data is exist [00:59:05]produce_requested_data [00:59:05]requested_item fm.sn is exist - process it [00:59:05]wFMCommunicate request_size=4 [00:59:05]MH_SAM_APDU [00:59:05]CAPDU: 80 11 00 00 [00:59:05]Write to MH i2c: E2 08 00 55 15 80 11 00 00 00 00 00 00 E4 [00:59:05]Write i2c OK [00:59:05]MH_I2C_Read... [00:59:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:59:05]Read from MH i2c: E2 [00:59:05]MH_I2C_Read... [00:59:05]Read from MH i2c: E2 17 00 [00:59:05]MH_I2C_Read... [00:59:05]Read from MH i2c: E2 17 00 55 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 3A [00:59:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [00:59:05]wFMCommunicate OK [00:59:05]requested_item fd.num is exist - process it [00:59:05]SAM_PROTO_GetFieldsCounters [00:59:05]wFMCommunicate request_size=4 [00:59:05]MH_SAM_APDU [00:59:05]CAPDU: 80 13 00 00 [00:59:05]Write to MH i2c: E2 08 00 56 15 80 13 00 00 00 00 00 00 E7 [00:59:05]Write i2c OK [00:59:05]MH_I2C_Read... [00:59:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:59:05]Read from MH i2c: E2 [00:59:05]MH_I2C_Read... [00:59:05]Read from MH i2c: E2 62 00 [00:59:05]MH_I2C_Read... [00:59:05]Read from MH i2c: E2 62 00 56 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 09 85 02 00 0E 04 04 00 C0 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 65 [00:59:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 09 85 02 00 0E 04 04 00 C0 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:59:05]wFMCommunicate OK [00:59:05]SAM_PROTO_GetFieldsCounters done [00:59:05]requested_item shift.num is exist - process it [00:59:05]requested_item shift.opened is exist - process it [00:59:05]req_shift_opened [00:59:05]FM_GetShiftState [00:59:05]SAM_PROTO_GetShiftState [00:59:05]wFMCommunicate request_size=4 [00:59:05]MH_SAM_APDU [00:59:05]CAPDU: 80 13 01 00 [00:59:05]Write to MH i2c: E2 08 00 57 15 80 13 01 00 00 00 00 00 E9 [00:59:05]Write i2c OK [00:59:05]MH_I2C_Read... [00:59:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:59:05]Read from MH i2c: E2 [00:59:05]MH_I2C_Read... [00:59:05]Read from MH i2c: E2 0E 00 [00:59:05]MH_I2C_Read... [00:59:05]Read from MH i2c: E2 0E 00 57 15 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 C2 [00:59:05]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [00:59:05]wFMCommunicate OK [00:59:05]SAM_PROTO_GetShiftState done [00:59:05]FM_GetShiftState done [00:59:05]req_shift_opened done [00:59:05]requested_item shift.open_date is exist - process it [00:59:05]req_shift_open_date [00:59:05]req_shift_open_date done [00:59:05]produce_requested_data done [00:59:05]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165129,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [00:59:05]process_action_free close_receipt [00:59:05]json_value_free [00:59:05]json_value_free done [00:59:05]process_json_proto returns [00:59:05]Send response to host [00:59:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165129,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [00:59:05]free response buf [00:59:05]execute_script done [00:59:05]execute_script returns [00:59:05]free content buf [00:59:05]Sock 9.Close socket [00:59:05]Sock 9.Thread stoped [00:59:09]OFD Sender: No OFD packet to send [00:59:14]OFD Sender: No OFD packet to send [00:59:19]OFD Sender: No OFD packet to send [00:59:24]OFD Sender: No OFD packet to send [00:59:29]OFD Sender: No OFD packet to send [00:59:34]OFD Sender: No OFD packet to send [00:59:39]OFD Sender: No OFD packet to send [00:59:44]OFD Sender: No OFD packet to send [00:59:49]OFD Sender: No OFD packet to send [00:59:54]OFD Sender: No OFD packet to send [00:59:59]OFD Sender: No OFD packet to send [01:00:04]OFD Sender: No OFD packet to send [01:00:09]OFD Sender: No OFD packet to send [01:00:14]OFD Sender: No OFD packet to send [01:00:19]OFD Sender: No OFD packet to send [01:00:24]OFD Sender: No OFD packet to send [01:00:27]accept exits with 10 [01:00:27]New connection [01:00:27]New thread 3066785124 created [01:00:27]Thread 3066928484 joined [01:00:27]Waiting for new connection... [01:00:27] Sock 10.Parse request [01:00:27]Sock 10.Check first char [01:00:27]Sock 10.First char is OK [01:00:27]request: POST /json_proto HTTP/1.0 [01:00:27]Method: POST [01:00:27]URL: /json_proto [01:00:27]Method is POST - this is cgi request [01:00:27]url: /json_proto [01:00:27]query_string will be loaded in cgi processing [01:00:27]execute_cgi json_proto POST (null) [01:00:27]execute_cgi path=json_proto method=POST [01:00:27]POST find Content-Length [01:00:27]Host: 172.17.56.4:8080 [01:00:27]Content-Length: 790 [01:00:27]Content-Type: application/json [01:00:27] [01:00:27]POST finish read [01:00:27]Found Content-Length = 790 [01:00:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459231", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 5.000, "sum" : 326.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 326.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:00:27]execute_script... [01:00: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)459231", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 5.000, "sum" : 326.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 326.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:00:27]POST & json_proto [01:00:27]process_json_proto [01:00:27]json parsed OK: [01:00:27]protocol is kg_v1.0 [01:00:27]action value=close_receipt [01:00:27]process_action close_receipt [01:00:27]cmd_close_receipt [01:00:27]MH_GetDate [01:00:27]Write to MH i2c: F0 00 00 58 15 5C [01:00:27]Write i2c OK [01:00:27]MH_I2C_Read... [01:00:27]Read from MH i2c: F0 [01:00:27]MH_I2C_Read... [01:00:27]Read from MH i2c: F0 09 00 [01:00:27]MH_I2C_Read... [01:00:27]Read from MH i2c: F0 09 00 58 15 00 AD 74 94 66 C9 DC B2 64 3B [01:00:27]GetLastDocTimeStamp 1721005144 [01:00:27]current date 1721005229 [01:00:27]FM_GetShiftState [01:00:27]SAM_PROTO_GetShiftState [01:00:27]wFMCommunicate request_size=4 [01:00:27]MH_SAM_APDU [01:00:27]CAPDU: 80 13 01 00 [01:00:27]Write to MH i2c: E2 08 00 59 15 80 13 01 00 00 00 00 00 EB [01:00:27]Write i2c OK [01:00:27]MH_I2C_Read... [01:00:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:00:27]Read from MH i2c: E2 [01:00:27]MH_I2C_Read... [01:00:27]Read from MH i2c: E2 0E 00 [01:00:27]MH_I2C_Read... [01:00:27]Read from MH i2c: E2 0E 00 59 15 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 C4 [01:00:27]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [01:00:27]wFMCommunicate OK [01:00:27]SAM_PROTO_GetShiftState done [01:00:27]FM_GetShiftState done [01:00:27]opened in 1721003876 [01:00:27]opened+sec_in_day 1721090276 [01:00:27]quantity*price = 32610 [01:00:27]sum+1 = 32611 [01:00:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 326.10 НСП 1% : 2.89 НДС 12% : 34.63 Наличными: 0.00 Безнал.: 326.10 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 3 15.07.2024 01:00 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 165130 ФПД: 254246343882305 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T010029&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165130&fm=254246343882305&tin=02508201610067®Number=0000000000090829&sum=32610 [01:00:28]StoreToDocumentArchive [01:00:28]shift 448 fd 165130 [01:00:28]save to /storage/0448/doc_00165130 [01:00:28]save last doc name /storage/0448/doc_00165130 to /storage/kkm_last_doc_name [01:00:28]save OK [01:00:28]Clear old archive folders... [01:00:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:00:28]tlvbuf is 01355140 [01:00:28]SAM_PROTO_ClearQueue [01:00:28]wFMCommunicate request_size=4 [01:00:28]MH_SAM_APDU [01:00:28]CAPDU: 80 09 00 00 [01:00:28]Write to MH i2c: E2 08 00 66 15 80 09 00 00 00 00 00 00 ED [01:00:28]Write i2c OK [01:00:28]MH_I2C_Read... [01:00:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:00:28]Read from MH i2c: E2 [01:00:28]MH_I2C_Read... [01:00:28]Read from MH i2c: E2 03 00 [01:00:28]MH_I2C_Read... [01:00:28]Read from MH i2c: E2 03 00 66 15 00 90 00 EF [01:00:28]RAPDU: 90 00 [01:00:28]wFMCommunicate OK [01:00:28]SAM_PROTO_ClearQueue done [01:00:28]KKMCreateOFDPacket [01:00:28]OFDProtocolAddRootSTLVToBuf [01:00:28]FM_MakeSignedData [01:00:28]FM_MakeSignedData [01:00:28]SAM_PROTO_SignData [01:00:28]wFMCommunicate request_size=4 [01:00:28]MH_SAM_APDU [01:00:28]CAPDU: 80 0D 01 02 [01:00:28]Write to MH i2c: E2 08 00 67 15 80 0D 01 02 00 00 00 00 F5 [01:00:28]Write i2c OK [01:00:28]MH_I2C_Read... [01:00:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:00:28]Read from MH i2c: E2 [01:00:28]MH_I2C_Read... [01:00:28]Read from MH i2c: E2 03 00 [01:00:28]MH_I2C_Read... [01:00:28]Read from MH i2c: E2 03 00 67 15 00 90 00 F0 [01:00:28]RAPDU: 90 00 [01:00:28]wFMCommunicate OK [01:00:28]wFMCommunicate request_size=255 [01:00:28]MH_SAM_APDU [01:00:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 62 7F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 7F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 7F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 AD 74 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0A 85 02 00 35 04 06 00 E7 [01:00:28]Write to MH i2c: E2 02 01 68 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 62 7F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 7F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 7F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 AD 74 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0A 85 02 00 35 04 06 00 E7 00 00 E3 [01:00:28]Write i2c OK [01:00:28]MH_I2C_Read... [01:00:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:00:28]Read from MH i2c: E2 [01:00:28]MH_I2C_Read... [01:00:28]Read from MH i2c: E2 03 00 [01:00:28]MH_I2C_Read... [01:00:28]Read from MH i2c: E2 03 00 68 15 00 90 00 F1 [01:00:28]RAPDU: 90 00 [01:00:28]wFMCommunicate OK [01:00:28]wFMCommunicate request_size=10 [01:00:28]MH_SAM_APDU [01:00:28]CAPDU: 80 0D 02 02 05 3C 57 03 36 41 [01:00:28]Write to MH i2c: E2 0D 00 69 15 80 0D 02 02 05 00 3C 57 03 36 41 00 00 0F [01:00:28]Write i2c OK [01:00:28]MH_I2C_Read... [01:00:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:00:28]Read from MH i2c: E2 [01:00:28]MH_I2C_Read... [01:00:28]Read from MH i2c: E2 03 00 [01:00:28]MH_I2C_Read... [01:00:28]Read from MH i2c: E2 03 00 69 15 00 90 00 F2 [01:00:28]RAPDU: 90 00 [01:00:28]wFMCommunicate OK [01:00:28]wFMCommunicate request_size=4 [01:00:28]MH_SAM_APDU [01:00:28]CAPDU: 80 0D 03 02 [01:00:28]Write to MH i2c: E2 08 00 6A 15 80 0D 03 02 00 00 00 00 FA [01:00:28]Write i2c OK [01:00:28]MH_I2C_Read... [01:00:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:00:28]Read from MH i2c: E2 [01:00:28]MH_I2C_Read... [01:00:28]Read from MH i2c: E2 0B 00 [01:00:28]MH_I2C_Read... [01:00:28]Read from MH i2c: E2 0B 00 6A 15 00 DA 8F 13 FE 0D AA 58 8A 90 00 0E [01:00:28]RAPDU: DA 8F 13 FE 0D AA 58 8A 90 00 [01:00:28]wFMCommunicate OK [01:00:28]SAM_PROTO_SignData done [01:00:28]FM_MakeSignedData done [01:00:28]CreateOFDProtocolMessage [01:00:28]wFMCommunicate request_size=4 [01:00:28]MH_SAM_APDU [01:00:28]CAPDU: 80 11 00 00 [01:00:28]Write to MH i2c: E2 08 00 6B 15 80 11 00 00 00 00 00 00 FA [01:00:28]Write i2c OK [01:00:28]MH_I2C_Read... [01:00:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:00:28]Read from MH i2c: E2 [01:00:28]MH_I2C_Read... [01:00:28]Read from MH i2c: E2 17 00 [01:00:28]MH_I2C_Read... [01:00:28]Read from MH i2c: E2 17 00 6B 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 50 [01:00:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [01:00:28]wFMCommunicate OK [01:00:28]CreateOFDProtocolMessage done [01:00:28]OFDSenderStorePacket 165130 [01:00:28]StoreOFDPacket docnum=165130 [01:00:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 12 21 07 01 E8 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 62 7F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 7F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 7F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 AD 74 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0A 85 02 00 35 04 06 00 E7 3C 57 03 36 41 DA 8F 13 FE 0D AA 58 8A [01:00:28]CheckFolder [01:00:28]dirname=/storage/ofd_packets [01:00:28]CheckFolder done [01:00:28]ProducePacketName [01:00:28]name=ofd_packets/00165130 [01:00:28]NVStorageSaveData ofd_packets/00165130 [01:00:28]File name is /storage/ofd_packets/00165130 [01:00:28]Write 301 bytes [01:00:28]NVStorageSaveData done [01:00:28]OFDSenderStorePacket done [01:00:28]KKMCreateOFDPacket done [01:00:28]NVStorageSaveData kkm_last_timestamp [01:00:28]File name is /storage/kkm_last_timestamp [01:00:28]Write 4 bytes [01:00:28]NVStorageSaveData done [01:00:28]ExternCall_PrintAddStr [01:00:28]wPrintStart [01:00:28]Write to MH i2c: 01 00 00 6C 15 81 [01:00:28]Write i2c OK [01:00:28]MH_I2C_Read... [01:00:28]Read from MH i2c: 01 [01:00:28]MH_I2C_Read... [01:00:28]Read from MH i2c: 01 07 00 [01:00:28]MH_I2C_Read... [01:00:28]Read from MH i2c: 01 07 00 6C 15 00 00 00 00 00 FF 0F 96 [01:00:28]RasterBufferAndPrint [01:00:28]line Счет N : (1)459231 [01:00:28]line ИНН: 02508201610067 [01:00:28]line Контрольно-Кассовый Чек [01:00:28]line ПРОДАЖА [01:00:28]line ТРК (МРК, ГНК) : 12 [01:00:28]line Товар: 2710124130 [01:00:28]line Аи-92-К-5 [01:00:28]line 5.000 * 65.22 [01:00:28]line = 326.10 [01:00:28]line НДС 12% НСП 1% [01:00:28]line > о реализуемом товаре [01:00:28]line ИТОГО: 326.10 [01:00:28]line НСП 1% : 2.89 [01:00:28]line НДС 12% : 34.63 [01:00:28]line Наличными: 0.00 [01:00:28]line Безнал.: 326.10 [01:00:28]line Место: АЗС № 72 "Партнер Нефть" [01:00:28]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [01:00:28]line СНО: Общий режим [01:00:28]line Чек 3 15.07.2024 01:00 [01:00:28]line Смена: 448 ФФД: 1.0 [01:00:28]line ЗНМ: 0300000160 [01:00:28]line РНМ: 0000000000090829 [01:00:28]line Версия ККМ: 001 [01:00:28]line Платежная система: KICB Банк [01:00:28]line ФМ: 0000000000874718 [01:00:28]line ФД: 165130 [01:00:28]line ФПД: 254246343882305 [01:00:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T010029&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165130&fm=254246343882305&tin=02508201610067®Number=0000000000090829&sum=32610 [01:00:28]written 0, free lines is 4095 [01:00:28]OFD Sender: Processing packet 165130 [packets to send 106, broken 105] [01:00:28]ProducePacketName [01:00:28]name=ofd_packets/00165130 [01:00:28]OFD Sender: To server: pG, [01:00:29]CommunicateWithHost lk.salyk.kg:30040 [01:00:29]ConnectInit lk.salyk.kg [01:00:29]Connected sock=9 [01:00:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 12 21 07 01 E8 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 62 7F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 7F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 7F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 AD 74 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0A 85 02 00 35 04 06 00 E7 3C 57 03 36 41 DA 8F 13 FE 0D AA 58 8A [01:00:29]Write to MH i2c: 01 00 00 95 15 AA [01:00:29]Write i2c OK [01:00:29]MH_I2C_Read... [01:00:29]Read from MH i2c: 01 [01:00:29]MH_I2C_Read... [01:00:29]Read from MH i2c: 01 07 00 [01:00:29]MH_I2C_Read... [01:00:29]Read from MH i2c: 01 07 00 95 15 00 00 00 00 00 08 0D C6 [01:00:29]RasterBufferAndPrint [01:00:29]line [01:00:29]line [01:00:29]line [01:00:29]line [01:00:29]line [01:00:29]written 0, free lines is 3342 [01:00:29]MH_Cut [01:00:29]Write to MH i2c: D1 01 00 9C 15 01 83 [01:00:29]Write i2c OK [01:00:29]MH_I2C_Read... [01:00:29]Read from MH i2c: D1 [01:00:29]MH_I2C_Read... [01:00:29]Read from MH i2c: D1 01 00 [01:00:29]MH_I2C_Read... [01:00:29]Read from MH i2c: D1 01 00 9C 15 00 82 [01:00:29]Write to MH i2c: 01 00 00 9D 15 B2 [01:00:29]Write i2c OK [01:00:29]MH_I2C_Read... [01:00:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 5F 90 47 00 F7 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0A 85 02 00 F4 03 04 00 39 1B 94 66 B6 04 01 00 00 CB 4F 60 40 32 57 60 78 [01:00:29]CommunicateWithHost err = 0 [01:00:29]CheckOFDResponse [01:00:29]1017 (14) - 77093643461234 [01:00:29]1041 (16) - 0000000000874718 [01:00:29]1040 (4) - 165130 [01:00:29]1012 (4) - 14.07.2024 18:38 [01:00:29]1206 (1) - 0 [01:00:29]OFD Sender: Remove packet 165130 [01:00:29]ProducePacketName [01:00:29]name=ofd_packets/00165130 [01:00:29]NVStorageDeleteData [01:00:29]*** Cut start [01:00:29]*** Partial cut [01:00:29]*** CUTSNS_PIN = 1 [01:00:29]OFD Sender: No OFD packet to send [01:00:29]*** CUTSNS_PIN = 0 [01:00:30]*** Brake cut motor [01:00:30]Read from MH i2c: 01 [01:00:30]MH_I2C_Read... [01:00:30]*** Stop cut motor [01:00:30]*** Cut end [01:00:30]Read from MH i2c: 01 07 00 [01:00:30]MH_I2C_Read... [01:00:30]Read from MH i2c: 01 07 00 9D 15 00 00 00 00 00 FF 0F C7 [01:00:30]process_action close_receipt done [01:00:30]requested_data is exist [01:00:30]produce_requested_data [01:00:30]requested_item fm.sn is exist - process it [01:00:30]wFMCommunicate request_size=4 [01:00:30]MH_SAM_APDU [01:00:30]CAPDU: 80 11 00 00 [01:00:30]Write to MH i2c: E2 08 00 9E 15 80 11 00 00 00 00 00 00 2D [01:00:30]Write i2c OK [01:00:30]MH_I2C_Read... [01:00:30]Read from MH i2c: E2 [01:00:30]MH_I2C_Read... [01:00:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:00:30]Read from MH i2c: E2 17 00 [01:00:30]MH_I2C_Read... [01:00:30]Read from MH i2c: E2 17 00 9E 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 83 [01:00:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [01:00:30]wFMCommunicate OK [01:00:30]requested_item fd.num is exist - process it [01:00:30]SAM_PROTO_GetFieldsCounters [01:00:30]wFMCommunicate request_size=4 [01:00:30]MH_SAM_APDU [01:00:30]CAPDU: 80 13 00 00 [01:00:30]Write to MH i2c: E2 08 00 9F 15 80 13 00 00 00 00 00 00 30 [01:00:30]Write i2c OK [01:00:30]MH_I2C_Read... [01:00:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:00:30]Read from MH i2c: E2 [01:00:30]MH_I2C_Read... [01:00:30]Read from MH i2c: E2 62 00 [01:00:30]MH_I2C_Read... [01:00:30]Read from MH i2c: E2 62 00 9F 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 0A 85 02 00 0E 04 04 00 C0 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 B2 [01:00:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 0A 85 02 00 0E 04 04 00 C0 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 [01:00:30]wFMCommunicate OK [01:00:30]SAM_PROTO_GetFieldsCounters done [01:00:30]requested_item shift.num is exist - process it [01:00:30]requested_item shift.opened is exist - process it [01:00:30]req_shift_opened [01:00:30]FM_GetShiftState [01:00:30]SAM_PROTO_GetShiftState [01:00:30]wFMCommunicate request_size=4 [01:00:30]MH_SAM_APDU [01:00:30]CAPDU: 80 13 01 00 [01:00:30]Write to MH i2c: E2 08 00 A0 15 80 13 01 00 00 00 00 00 32 [01:00:30]Write i2c OK [01:00:30]MH_I2C_Read... [01:00:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:00:30]Read from MH i2c: E2 [01:00:30]MH_I2C_Read... [01:00:30]Read from MH i2c: E2 0E 00 [01:00:30]MH_I2C_Read... [01:00:30]Read from MH i2c: E2 0E 00 A0 15 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 0B [01:00:30]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [01:00:30]wFMCommunicate OK [01:00:30]SAM_PROTO_GetShiftState done [01:00:30]FM_GetShiftState done [01:00:30]req_shift_opened done [01:00:30]requested_item shift.open_date is exist - process it [01:00:30]req_shift_open_date [01:00:30]req_shift_open_date done [01:00:30]produce_requested_data done [01:00:30]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165130,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [01:00:30]process_action_free close_receipt [01:00:30]json_value_free [01:00:30]json_value_free done [01:00:30]process_json_proto returns [01:00:30]Send response to host [01:00:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165130,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [01:00:30]free response buf [01:00:30]execute_script done [01:00:30]execute_script returns [01:00:30]free content buf [01:00:30]Sock 10.Close socket [01:00:30]Sock 10.Thread stoped [01:00:34]OFD Sender: No OFD packet to send [01:00:39]OFD Sender: No OFD packet to send [01:00:44]OFD Sender: No OFD packet to send [01:00:49]OFD Sender: No OFD packet to send [01:00:54]OFD Sender: No OFD packet to send [01:00:59]OFD Sender: No OFD packet to send [01:01:04]OFD Sender: No OFD packet to send [01:01:09]OFD Sender: No OFD packet to send [01:01:14]OFD Sender: No OFD packet to send [01:01:19]OFD Sender: No OFD packet to send [01:01:24]OFD Sender: No OFD packet to send [01:01:29]OFD Sender: No OFD packet to send [01:01:34]OFD Sender: No OFD packet to send [01:01:39]OFD Sender: No OFD packet to send [01:01:44]OFD Sender: No OFD packet to send [01:01:49]OFD Sender: No OFD packet to send [01:01:54]OFD Sender: No OFD packet to send [01:02:00]OFD Sender: No OFD packet to send [01:02:05]OFD Sender: No OFD packet to send [01:02:10]OFD Sender: No OFD packet to send [01:02:15]OFD Sender: No OFD packet to send [01:02:20]OFD Sender: No OFD packet to send [01:02:25]OFD Sender: No OFD packet to send [01:02:30]OFD Sender: No OFD packet to send [01:02:35]OFD Sender: No OFD packet to send [01:02:40]OFD Sender: No OFD packet to send [01:02:45]OFD Sender: No OFD packet to send [01:02:50]OFD Sender: No OFD packet to send [01:02:55]OFD Sender: No OFD packet to send [01:03:00]OFD Sender: No OFD packet to send [01:03:05]OFD Sender: No OFD packet to send [01:03:10]OFD Sender: No OFD packet to send [01:03:15]OFD Sender: No OFD packet to send [01:03:20]OFD Sender: No OFD packet to send [01:03:25]OFD Sender: No OFD packet to send [01:03:30]OFD Sender: No OFD packet to send [01:03:35]OFD Sender: No OFD packet to send [01:03:40]OFD Sender: No OFD packet to send [01:03:45]OFD Sender: No OFD packet to send [01:03:50]OFD Sender: No OFD packet to send [01:03:55]OFD Sender: No OFD packet to send [01:04:00]OFD Sender: No OFD packet to send [01:04:05]OFD Sender: No OFD packet to send [01:04:10]OFD Sender: No OFD packet to send [01:04:15]OFD Sender: No OFD packet to send [01:04:20]OFD Sender: No OFD packet to send [01:04:25]OFD Sender: No OFD packet to send [01:04:30]OFD Sender: No OFD packet to send [01:04:35]OFD Sender: No OFD packet to send [01:04:40]OFD Sender: No OFD packet to send [01:04:45]OFD Sender: No OFD packet to send [01:04:50]OFD Sender: No OFD packet to send [01:04:55]OFD Sender: No OFD packet to send [01:05:00]OFD Sender: No OFD packet to send [01:05:05]OFD Sender: No OFD packet to send [01:05:10]OFD Sender: No OFD packet to send [01:05:12]accept exits with 7 [01:05:12]New connection [01:05:12]New thread 3066928484 created [01:05:12]Thread 3066785124 joined [01:05:12]Waiting for new connection... [01:05:12] Sock 7.Parse request [01:05:12]Sock 7.Check first char [01:05:12]Sock 7.First char is OK [01:05:12]request: POST /json_proto HTTP/1.0 [01:05:12]Method: POST [01:05:12]URL: /json_proto [01:05:12]Method is POST - this is cgi request [01:05:12]url: /json_proto [01:05:12]query_string will be loaded in cgi processing [01:05:12]execute_cgi json_proto POST (null) [01:05:12]execute_cgi path=json_proto method=POST [01:05:12]POST find Content-Length [01:05:12]Host: 172.17.56.4:8080 [01:05:12]Content-Length: 679 [01:05:12]Content-Type: application/json [01:05:12] [01:05:12]POST finish read [01:05:12]Found Content-Length = 679 [01:05:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459232", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:05:12]execute_script... [01:05: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)459232", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:05:12]POST & json_proto [01:05:12]process_json_proto [01:05:12]json parsed OK: [01:05:12]protocol is kg_v1.0 [01:05:12]action value=close_receipt [01:05:12]process_action close_receipt [01:05:12]cmd_close_receipt [01:05:12]MH_GetDate [01:05:12]Write to MH i2c: F0 00 00 A1 15 A5 [01:05:12]Write i2c OK [01:05:12]MH_I2C_Read... [01:05:12]Read from MH i2c: F0 [01:05:12]MH_I2C_Read... [01:05:12]Read from MH i2c: F0 09 00 [01:05:12]MH_I2C_Read... [01:05:12]Read from MH i2c: F0 09 00 A1 15 00 CA 75 94 66 C9 DC B2 64 A2 [01:05:12]GetLastDocTimeStamp 1721005229 [01:05:12]current date 1721005514 [01:05:12]FM_GetShiftState [01:05:12]SAM_PROTO_GetShiftState [01:05:12]wFMCommunicate request_size=4 [01:05:12]MH_SAM_APDU [01:05:12]CAPDU: 80 13 01 00 [01:05:12]Write to MH i2c: E2 08 00 A2 15 80 13 01 00 00 00 00 00 34 [01:05:12]Write i2c OK [01:05:12]MH_I2C_Read... [01:05:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:05:12]Read from MH i2c: E2 [01:05:12]MH_I2C_Read... [01:05:12]Read from MH i2c: E2 0E 00 [01:05:12]MH_I2C_Read... [01:05:12]Read from MH i2c: E2 0E 00 A2 15 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 0D [01:05:12]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [01:05:12]wFMCommunicate OK [01:05:12]SAM_PROTO_GetShiftState done [01:05:12]FM_GetShiftState done [01:05:12]opened in 1721003876 [01:05:12]opened+sec_in_day 1721090276 [01:05:12]quantity*price = 100012 [01:05:12]sum+1 = 100014 [01:05:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 4 15.07.2024 01:05 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165131 ФПД: 202215114618443 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T010514&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165131&fm=202215114618443&tin=02508201610067®Number=0000000000090829&sum=100000 [01:05:13]StoreToDocumentArchive [01:05:13]shift 448 fd 165131 [01:05:13]save to /storage/0448/doc_00165131 [01:05:13]save last doc name /storage/0448/doc_00165131 to /storage/kkm_last_doc_name [01:05:13]save OK [01:05:13]Clear old archive folders... [01:05:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [01:05:13]tlvbuf is 013C0020 [01:05:13]SAM_PROTO_ClearQueue [01:05:13]wFMCommunicate request_size=4 [01:05:13]MH_SAM_APDU [01:05:13]CAPDU: 80 09 00 00 [01:05:13]Write to MH i2c: E2 08 00 AF 15 80 09 00 00 00 00 00 00 36 [01:05:13]Write i2c OK [01:05:13]MH_I2C_Read... [01:05:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:05:13]Read from MH i2c: E2 [01:05:13]MH_I2C_Read... [01:05:13]Read from MH i2c: E2 03 00 [01:05:13]MH_I2C_Read... [01:05:13]Read from MH i2c: E2 03 00 AF 15 00 90 00 38 [01:05:13]RAPDU: 90 00 [01:05:13]wFMCommunicate OK [01:05:13]SAM_PROTO_ClearQueue done [01:05:13]KKMCreateOFDPacket [01:05:13]OFDProtocolAddRootSTLVToBuf [01:05:13]FM_MakeSignedData [01:05:13]FM_MakeSignedData [01:05:13]SAM_PROTO_SignData [01:05:13]wFMCommunicate request_size=4 [01:05:13]MH_SAM_APDU [01:05:13]CAPDU: 80 0D 01 02 [01:05:13]Write to MH i2c: E2 08 00 B0 15 80 0D 01 02 00 00 00 00 3E [01:05:13]Write i2c OK [01:05:13]MH_I2C_Read... [01:05:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:05:13]Read from MH i2c: E2 [01:05:13]MH_I2C_Read... [01:05:13]Read from MH i2c: E2 03 00 [01:05:13]MH_I2C_Read... [01:05:13]Read from MH i2c: E2 03 00 B0 15 00 90 00 39 [01:05:13]RAPDU: 90 00 [01:05:13]wFMCommunicate OK [01:05:13]wFMCommunicate request_size=255 [01:05:13]MH_SAM_APDU [01:05: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 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 00 00 00 F4 03 04 00 CA 75 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0B 85 02 00 35 04 06 00 B7 E9 E0 13 [01:05:13]Write to MH i2c: E2 02 01 B1 15 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 00 00 00 F4 03 04 00 CA 75 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0B 85 02 00 35 04 06 00 B7 E9 E0 13 00 00 22 [01:05:13]Write i2c OK [01:05:13]MH_I2C_Read... [01:05:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:05:13]Read from MH i2c: E2 [01:05:13]MH_I2C_Read... [01:05:13]Read from MH i2c: E2 03 00 [01:05:13]MH_I2C_Read... [01:05:13]Read from MH i2c: E2 03 00 B1 15 00 90 00 3A [01:05:13]RAPDU: 90 00 [01:05:13]wFMCommunicate OK [01:05:13]wFMCommunicate request_size=7 [01:05:13]MH_SAM_APDU [01:05:13]CAPDU: 80 0D 02 02 02 36 4B [01:05:13]Write to MH i2c: E2 0A 00 B2 15 80 0D 02 02 02 00 36 4B 00 00 C6 [01:05:13]Write i2c OK [01:05:13]MH_I2C_Read... [01:05:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:05:13]Read from MH i2c: E2 [01:05:13]MH_I2C_Read... [01:05:13]Read from MH i2c: E2 03 00 [01:05:13]MH_I2C_Read... [01:05:13]Read from MH i2c: E2 03 00 B2 15 00 90 00 3B [01:05:13]RAPDU: 90 00 [01:05:13]wFMCommunicate OK [01:05:13]wFMCommunicate request_size=4 [01:05:13]MH_SAM_APDU [01:05:13]CAPDU: 80 0D 03 02 [01:05:13]Write to MH i2c: E2 08 00 B3 15 80 0D 03 02 00 00 00 00 43 [01:05:13]Write i2c OK [01:05:13]MH_I2C_Read... [01:05:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:05:14]Read from MH i2c: E2 [01:05:14]MH_I2C_Read... [01:05:14]Read from MH i2c: E2 0B 00 [01:05:14]MH_I2C_Read... [01:05:14]Read from MH i2c: E2 0B 00 B3 15 00 A7 D6 80 93 76 3E 80 7F 90 00 87 [01:05:14]RAPDU: A7 D6 80 93 76 3E 80 7F 90 00 [01:05:14]wFMCommunicate OK [01:05:14]SAM_PROTO_SignData done [01:05:14]FM_MakeSignedData done [01:05:14]CreateOFDProtocolMessage [01:05:14]wFMCommunicate request_size=4 [01:05:14]MH_SAM_APDU [01:05:14]CAPDU: 80 11 00 00 [01:05:14]Write to MH i2c: E2 08 00 B4 15 80 11 00 00 00 00 00 00 43 [01:05:14]Write i2c OK [01:05:14]MH_I2C_Read... [01:05:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:05:14]Read from MH i2c: E2 [01:05:14]MH_I2C_Read... [01:05:14]Read from MH i2c: E2 17 00 [01:05:14]MH_I2C_Read... [01:05:14]Read from MH i2c: E2 17 00 B4 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 99 [01:05:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [01:05:14]wFMCommunicate OK [01:05:14]CreateOFDProtocolMessage done [01:05:14]OFDSenderStorePacket 165131 [01:05:14]StoreOFDPacket docnum=165131 [01:05:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 A4 F2 04 01 8A 6B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 00 00 00 F4 03 04 00 CA 75 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0B 85 02 00 35 04 06 00 B7 E9 E0 13 36 4B A7 D6 80 93 76 3E 80 7F [01:05:14]CheckFolder [01:05:14]dirname=/storage/ofd_packets [01:05:14]CheckFolder done [01:05:14]ProducePacketName [01:05:14]name=ofd_packets/00165131 [01:05:14]NVStorageSaveData ofd_packets/00165131 [01:05:14]File name is /storage/ofd_packets/00165131 [01:05:14]Write 298 bytes [01:05:14]NVStorageSaveData done [01:05:14]OFDSenderStorePacket done [01:05:14]KKMCreateOFDPacket done [01:05:14]NVStorageSaveData kkm_last_timestamp [01:05:14]File name is /storage/kkm_last_timestamp [01:05:14]Write 4 bytes [01:05:14]NVStorageSaveData done [01:05:14]ExternCall_PrintAddStr [01:05:14]wPrintStart [01:05:14]Write to MH i2c: 01 00 00 B5 15 CA [01:05:14]Write i2c OK [01:05:14]MH_I2C_Read... [01:05:14]Read from MH i2c: 01 [01:05:14]MH_I2C_Read... [01:05:14]Read from MH i2c: 01 07 00 [01:05:14]MH_I2C_Read... [01:05:14]Read from MH i2c: 01 07 00 B5 15 00 00 00 00 00 FF 0F DF [01:05:14]RasterBufferAndPrint [01:05:14]line Счет N : (1)459232 [01:05:14]line ИНН: 02508201610067 [01:05:14]line Контрольно-Кассовый Чек [01:05:14]line ПРОДАЖА [01:05:14]line ТРК (МРК, ГНК) : 11 [01:05:14]line Товар: 2710194210 [01:05:14]line ДТ-К-5 [01:05:14]line 13.910 * 71.90 [01:05:14]line = 1000.13 [01:05:14]line НДС 12% НСП 1% [01:05:14]line > о реализуемом товаре [01:05:14]line ОКРУГЛЕНИЕ: -0.13 [01:05:14]line ИТОГО: 1000.00 [01:05:14]line Внесено: 1000.00 [01:05:14]line СДАЧА: 0.00 [01:05:14]line НСП 1% : 8.85 [01:05:14]line НДС 12% : 106.21 [01:05:14]line Наличными: 1000.00 [01:05:14]line Безнал.: 0.00 [01:05:14]line Место: АЗС № 72 "Партнер Нефть" [01:05:14]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [01:05:14]line СНО: Общий режим [01:05:14]line Чек 4 15.07.2024 01:05 [01:05:14]line Смена: 448 ФФД: 1.0 [01:05:14]line ЗНМ: 0300000160 [01:05:14]line РНМ: 0000000000090829 [01:05:14]line Версия ККМ: 001 [01:05:14]line ФМ: 0000000000874718 [01:05:14]line ФД: 165131 [01:05:14]line ФПД: 202215114618443 [01:05:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T010514&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165131&fm=202215114618443&tin=02508201610067®Number=0000000000090829&sum=100000 [01:05:14]written 0, free lines is 4095 [01:05:14]OFD Sender: Processing packet 165131 [packets to send 106, broken 105] [01:05:14]ProducePacketName [01:05:14]name=ofd_packets/00165131 [01:05:14]OFD Sender: To server: pG, [01:05:14]CommunicateWithHost lk.salyk.kg:30040 [01:05:14]ConnectInit lk.salyk.kg [01:05:14]Connected sock=10 [01:05:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 A4 F2 04 01 8A 6B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 00 00 00 F4 03 04 00 CA 75 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0B 85 02 00 35 04 06 00 B7 E9 E0 13 36 4B A7 D6 80 93 76 3E 80 7F [01:05:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 C7 58 47 00 F0 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0B 85 02 00 F4 03 04 00 56 1C 94 66 B6 04 01 00 00 BB 25 A3 37 2F 0D 1F 91 [01:05:14]CommunicateWithHost err = 0 [01:05:14]CheckOFDResponse [01:05:14]1017 (14) - 77093643461234 [01:05:14]1041 (16) - 0000000000874718 [01:05:14]1040 (4) - 165131 [01:05:14]1012 (4) - 14.07.2024 18:43 [01:05:14]1206 (1) - 0 [01:05:14]OFD Sender: Remove packet 165131 [01:05:14]ProducePacketName [01:05:14]name=ofd_packets/00165131 [01:05:14]NVStorageDeleteData [01:05:14]Write to MH i2c: 01 00 00 DF 15 F4 [01:05:14]Write i2c OK [01:05:14]MH_I2C_Read... [01:05:14]Read from MH i2c: 01 [01:05:14]MH_I2C_Read... [01:05:14]Read from MH i2c: 01 07 00 [01:05:14]MH_I2C_Read... [01:05:14]Read from MH i2c: 01 07 00 DF 15 00 00 00 00 00 FD 0C 04 [01:05:14]RasterBufferAndPrint [01:05:14]line [01:05:14]line [01:05:14]line [01:05:14]line [01:05:14]line [01:05:14]written 0, free lines is 3331 [01:05:14]MH_Cut [01:05:14]Write to MH i2c: D1 01 00 E6 15 01 CD [01:05:14]Write i2c OK [01:05:14]MH_I2C_Read... [01:05:14]Read from MH i2c: D1 [01:05:14]MH_I2C_Read... [01:05:14]Read from MH i2c: D1 01 00 [01:05:14]MH_I2C_Read... [01:05:14]Read from MH i2c: D1 01 00 E6 15 00 CC [01:05:14]Write to MH i2c: 01 00 00 E7 15 FC [01:05:14]Write i2c OK [01:05:14]MH_I2C_Read... [01:05:14]OFD Sender: No OFD packet to send [01:05:15]*** Cut start [01:05:15]*** Partial cut [01:05:15]*** CUTSNS_PIN = 1 [01:05:15]*** CUTSNS_PIN = 0 [01:05:15]*** Brake cut motor [01:05:15]Read from MH i2c: 01 [01:05:15]MH_I2C_Read... [01:05:15]*** Stop cut motor [01:05:15]*** Cut end [01:05:15]Read from MH i2c: 01 07 00 [01:05:15]MH_I2C_Read... [01:05:15]Read from MH i2c: 01 07 00 E7 15 00 00 00 00 00 FF 0F 11 [01:05:15]process_action close_receipt done [01:05:15]requested_data is exist [01:05:15]produce_requested_data [01:05:15]requested_item fm.sn is exist - process it [01:05:15]wFMCommunicate request_size=4 [01:05:15]MH_SAM_APDU [01:05:15]CAPDU: 80 11 00 00 [01:05:15]Write to MH i2c: E2 08 00 E8 15 80 11 00 00 00 00 00 00 77 [01:05:15]Write i2c OK [01:05:15]MH_I2C_Read... [01:05:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:05:15]Read from MH i2c: E2 [01:05:15]MH_I2C_Read... [01:05:15]Read from MH i2c: E2 17 00 [01:05:15]MH_I2C_Read... [01:05:15]Read from MH i2c: E2 17 00 E8 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 CD [01:05:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [01:05:15]wFMCommunicate OK [01:05:15]requested_item fd.num is exist - process it [01:05:15]SAM_PROTO_GetFieldsCounters [01:05:15]wFMCommunicate request_size=4 [01:05:15]MH_SAM_APDU [01:05:15]CAPDU: 80 13 00 00 [01:05:15]Write to MH i2c: E2 08 00 E9 15 80 13 00 00 00 00 00 00 7A [01:05:15]Write i2c OK [01:05:15]MH_I2C_Read... [01:05:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:05:16]Read from MH i2c: E2 [01:05:16]MH_I2C_Read... [01:05:16]Read from MH i2c: E2 62 00 [01:05:16]MH_I2C_Read... [01:05:16]Read from MH i2c: E2 62 00 E9 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 0B 85 02 00 0E 04 04 00 C0 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 [01:05:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 0B 85 02 00 0E 04 04 00 C0 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 [01:05:16]wFMCommunicate OK [01:05:16]SAM_PROTO_GetFieldsCounters done [01:05:16]requested_item shift.num is exist - process it [01:05:16]requested_item shift.opened is exist - process it [01:05:16]req_shift_opened [01:05:16]FM_GetShiftState [01:05:16]SAM_PROTO_GetShiftState [01:05:16]wFMCommunicate request_size=4 [01:05:16]MH_SAM_APDU [01:05:16]CAPDU: 80 13 01 00 [01:05:16]Write to MH i2c: E2 08 00 EA 15 80 13 01 00 00 00 00 00 7C [01:05:16]Write i2c OK [01:05:16]MH_I2C_Read... [01:05:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:05:16]Read from MH i2c: E2 [01:05:16]MH_I2C_Read... [01:05:16]Read from MH i2c: E2 0E 00 [01:05:16]MH_I2C_Read... [01:05:16]Read from MH i2c: E2 0E 00 EA 15 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 55 [01:05:16]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [01:05:16]wFMCommunicate OK [01:05:16]SAM_PROTO_GetShiftState done [01:05:16]FM_GetShiftState done [01:05:16]req_shift_opened done [01:05:16]requested_item shift.open_date is exist - process it [01:05:16]req_shift_open_date [01:05:16]req_shift_open_date done [01:05:16]produce_requested_data done [01:05:16]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165131,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [01:05:16]process_action_free close_receipt [01:05:16]json_value_free [01:05:16]json_value_free done [01:05:16]process_json_proto returns [01:05:16]Send response to host [01:05:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165131,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [01:05:16]free response buf [01:05:16]execute_script done [01:05:16]execute_script returns [01:05:16]free content buf [01:05:16]Sock 7.Close socket [01:05:16]Sock 7.Thread stoped [01:05:19]OFD Sender: No OFD packet to send [01:05:24]OFD Sender: No OFD packet to send [01:05:29]OFD Sender: No OFD packet to send [01:05:34]OFD Sender: No OFD packet to send [01:05:39]OFD Sender: No OFD packet to send [01:05:44]OFD Sender: No OFD packet to send [01:05:49]OFD Sender: No OFD packet to send [01:05:54]OFD Sender: No OFD packet to send [01:05:59]OFD Sender: No OFD packet to send [01:06:05]OFD Sender: No OFD packet to send [01:06:10]OFD Sender: No OFD packet to send [01:06:15]OFD Sender: No OFD packet to send [01:06:20]OFD Sender: No OFD packet to send [01:06:25]OFD Sender: No OFD packet to send [01:06:30]OFD Sender: No OFD packet to send [01:06:35]OFD Sender: No OFD packet to send [01:06:40]OFD Sender: No OFD packet to send [01:06:45]OFD Sender: No OFD packet to send [01:06:50]OFD Sender: No OFD packet to send [01:06:55]OFD Sender: No OFD packet to send [01:07:00]OFD Sender: No OFD packet to send [01:07:05]OFD Sender: No OFD packet to send [01:07:10]OFD Sender: No OFD packet to send [01:07:15]OFD Sender: No OFD packet to send [01:07:20]OFD Sender: No OFD packet to send [01:07:25]OFD Sender: No OFD packet to send [01:07:30]OFD Sender: No OFD packet to send [01:07:35]OFD Sender: No OFD packet to send [01:07:40]OFD Sender: No OFD packet to send [01:07:45]OFD Sender: No OFD packet to send [01:07:50]OFD Sender: No OFD packet to send [01:07:55]OFD Sender: No OFD packet to send [01:08:00]OFD Sender: No OFD packet to send [01:08:05]OFD Sender: No OFD packet to send [01:08:10]OFD Sender: No OFD packet to send [01:08:15]OFD Sender: No OFD packet to send [01:08:20]OFD Sender: No OFD packet to send [01:08:25]OFD Sender: No OFD packet to send [01:08:30]OFD Sender: No OFD packet to send [01:08:35]OFD Sender: No OFD packet to send [01:08:40]OFD Sender: No OFD packet to send [01:08:45]OFD Sender: No OFD packet to send [01:08:50]OFD Sender: No OFD packet to send [01:08:55]OFD Sender: No OFD packet to send [01:09:00]OFD Sender: No OFD packet to send [01:09:05]OFD Sender: No OFD packet to send [01:09:10]OFD Sender: No OFD packet to send [01:09:15]OFD Sender: No OFD packet to send [01:09:20]OFD Sender: No OFD packet to send [01:09:25]OFD Sender: No OFD packet to send [01:09:30]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:20]OFD Sender: No OFD packet to send [01:13:25]OFD Sender: No OFD packet to send [01:13:30]OFD Sender: No OFD packet to send [01:13:35]OFD Sender: No OFD packet to send [01:13:40]OFD Sender: No OFD packet to send [01:13:45]OFD Sender: No OFD packet to send [01:13:50]OFD Sender: No OFD packet to send [01:13:55]OFD Sender: No OFD packet to send [01:14:00]OFD Sender: No OFD packet to send [01:14:05]OFD Sender: No OFD packet to send [01:14:10]OFD Sender: No OFD packet to send [01:14:15]OFD Sender: No OFD packet to send [01:14:20]OFD Sender: No OFD packet to send [01:14:25]OFD Sender: No OFD packet to send [01:14:30]OFD Sender: No OFD packet to send [01:14:35]OFD Sender: No OFD packet to send [01:14:40]OFD Sender: No OFD packet to send [01:14:45]OFD Sender: No OFD packet to send [01:14:50]OFD Sender: No OFD packet to send [01:14:55]OFD Sender: No OFD packet to send [01:15:00]OFD Sender: No OFD packet to send [01:15:05]OFD Sender: No OFD packet to send [01:15:10]OFD Sender: No OFD packet to send [01:15:15]OFD Sender: No OFD packet to send [01:15:20]OFD Sender: No OFD packet to send [01:15:25]OFD Sender: No OFD packet to send [01:15:30]OFD Sender: No OFD packet to send [01:15:35]OFD Sender: No OFD packet to send [01:15:38]accept exits with 9 [01:15:38]New connection [01:15:38]New thread 3066785124 created [01:15:38]Thread 3066928484 joined [01:15:38]Waiting for new connection... [01:15:38] Sock 9.Parse request [01:15:38]Sock 9.Check first char [01:15:38]Sock 9.First char is OK [01:15:38]request: POST /json_proto HTTP/1.0 [01:15:38]Method: POST [01:15:38]URL: /json_proto [01:15:38]Method is POST - this is cgi request [01:15:38]url: /json_proto [01:15:38]query_string will be loaded in cgi processing [01:15:38]execute_cgi json_proto POST (null) [01:15:38]execute_cgi path=json_proto method=POST [01:15:38]POST find Content-Length [01:15:38]Host: 172.17.56.4:8080 [01:15:38]Content-Length: 677 [01:15:38]Content-Type: application/json [01:15:38] [01:15:38]POST finish read [01:15:38]Found Content-Length = 677 [01:15:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459233", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:15:38]execute_script... [01:15: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)459233", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:15:38]POST & json_proto [01:15:38]process_json_proto [01:15:38]json parsed OK: [01:15:38]protocol is kg_v1.0 [01:15:38]action value=close_receipt [01:15:38]process_action close_receipt [01:15:38]cmd_close_receipt [01:15:38]MH_GetDate [01:15:38]Write to MH i2c: F0 00 00 EB 15 EF [01:15:38]Write i2c OK [01:15:38]MH_I2C_Read... [01:15:38]Read from MH i2c: F0 [01:15:38]MH_I2C_Read... [01:15:38]Read from MH i2c: F0 09 00 [01:15:38]MH_I2C_Read... [01:15:38]Read from MH i2c: F0 09 00 EB 15 00 3C 78 94 66 C9 DC B2 64 61 [01:15:38]GetLastDocTimeStamp 1721005514 [01:15:38]current date 1721006140 [01:15:38]FM_GetShiftState [01:15:38]SAM_PROTO_GetShiftState [01:15:38]wFMCommunicate request_size=4 [01:15:38]MH_SAM_APDU [01:15:38]CAPDU: 80 13 01 00 [01:15:38]Write to MH i2c: E2 08 00 EC 15 80 13 01 00 00 00 00 00 7E [01:15:38]Write i2c OK [01:15:38]MH_I2C_Read... [01:15:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:15:38]Read from MH i2c: E2 [01:15:38]MH_I2C_Read... [01:15:38]Read from MH i2c: E2 0E 00 [01:15:38]MH_I2C_Read... [01:15:38]Read from MH i2c: E2 0E 00 EC 15 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 57 [01:15:38]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [01:15:38]wFMCommunicate OK [01:15:38]SAM_PROTO_GetShiftState done [01:15:38]FM_GetShiftState done [01:15:38]opened in 1721003876 [01:15:38]opened+sec_in_day 1721090276 [01:15:38]quantity*price = 50008 [01:15:38]sum+1 = 50009 [01:15:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 5 15.07.2024 01:15 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165132 ФПД: 85793518326760 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T011540&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165132&fm=85793518326760&tin=02508201610067®Number=0000000000090829&sum=50000 [01:15:39]StoreToDocumentArchive [01:15:39]shift 448 fd 165132 [01:15:39]save to /storage/0448/doc_00165132 [01:15:39]save last doc name /storage/0448/doc_00165132 to /storage/kkm_last_doc_name [01:15:39]save OK [01:15:39]Clear old archive folders... [01:15:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:15:39]tlvbuf is 013663B0 [01:15:39]SAM_PROTO_ClearQueue [01:15:39]wFMCommunicate request_size=4 [01:15:39]MH_SAM_APDU [01:15:39]CAPDU: 80 09 00 00 [01:15:39]Write to MH i2c: E2 08 00 F9 15 80 09 00 00 00 00 00 00 80 [01:15:39]Write i2c OK [01:15:39]MH_I2C_Read... [01:15:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:15:39]Read from MH i2c: E2 [01:15:39]MH_I2C_Read... [01:15:39]Read from MH i2c: E2 03 00 [01:15:39]MH_I2C_Read... [01:15:39]Read from MH i2c: E2 03 00 F9 15 00 90 00 82 [01:15:39]RAPDU: 90 00 [01:15:39]wFMCommunicate OK [01:15:39]SAM_PROTO_ClearQueue done [01:15:39]KKMCreateOFDPacket [01:15:39]OFDProtocolAddRootSTLVToBuf [01:15:39]FM_MakeSignedData [01:15:39]FM_MakeSignedData [01:15:39]SAM_PROTO_SignData [01:15:39]wFMCommunicate request_size=4 [01:15:39]MH_SAM_APDU [01:15:39]CAPDU: 80 0D 01 02 [01:15:39]Write to MH i2c: E2 08 00 FA 15 80 0D 01 02 00 00 00 00 88 [01:15:39]Write i2c OK [01:15:39]MH_I2C_Read... [01:15:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:15:39]Read from MH i2c: E2 [01:15:39]MH_I2C_Read... [01:15:39]Read from MH i2c: E2 03 00 [01:15:39]MH_I2C_Read... [01:15:39]Read from MH i2c: E2 03 00 FA 15 00 90 00 83 [01:15:39]RAPDU: 90 00 [01:15:39]wFMCommunicate OK [01:15:39]wFMCommunicate request_size=255 [01:15:39]MH_SAM_APDU [01:15:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 05 00 00 00 F4 03 04 00 3C 78 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0C 85 02 00 35 04 06 00 4E [01:15:39]Write to MH i2c: E2 02 01 FB 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 05 00 00 00 F4 03 04 00 3C 78 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0C 85 02 00 35 04 06 00 4E 00 00 56 [01:15:39]Write i2c OK [01:15:39]MH_I2C_Read... [01:15:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:15:39]Read from MH i2c: E2 [01:15:39]MH_I2C_Read... [01:15:39]Read from MH i2c: E2 03 00 [01:15:39]MH_I2C_Read... [01:15:39]Read from MH i2c: E2 03 00 FB 15 00 90 00 84 [01:15:39]RAPDU: 90 00 [01:15:39]wFMCommunicate OK [01:15:39]wFMCommunicate request_size=10 [01:15:39]MH_SAM_APDU [01:15:39]CAPDU: 80 0D 02 02 05 07 5C 2F 13 E8 [01:15:39]Write to MH i2c: E2 0D 00 FC 15 80 0D 02 02 05 00 07 5C 2F 13 E8 00 00 22 [01:15:39]Write i2c OK [01:15:39]MH_I2C_Read... [01:15:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:15:39]Read from MH i2c: E2 [01:15:39]MH_I2C_Read... [01:15:39]Read from MH i2c: E2 03 00 [01:15:39]MH_I2C_Read... [01:15:39]Read from MH i2c: E2 03 00 FC 15 00 90 00 85 [01:15:39]RAPDU: 90 00 [01:15:39]wFMCommunicate OK [01:15:39]wFMCommunicate request_size=4 [01:15:39]MH_SAM_APDU [01:15:39]CAPDU: 80 0D 03 02 [01:15:39]Write to MH i2c: E2 08 00 FD 15 80 0D 03 02 00 00 00 00 8D [01:15:39]Write i2c OK [01:15:39]MH_I2C_Read... [01:15:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:15:39]Read from MH i2c: E2 [01:15:39]MH_I2C_Read... [01:15:39]Read from MH i2c: E2 0B 00 [01:15:39]MH_I2C_Read... [01:15:39]Read from MH i2c: E2 0B 00 FD 15 00 9F 78 45 EC FC 92 55 EE 90 00 A7 [01:15:39]RAPDU: 9F 78 45 EC FC 92 55 EE 90 00 [01:15:39]wFMCommunicate OK [01:15:39]SAM_PROTO_SignData done [01:15:39]FM_MakeSignedData done [01:15:39]CreateOFDProtocolMessage [01:15:39]wFMCommunicate request_size=4 [01:15:39]MH_SAM_APDU [01:15:39]CAPDU: 80 11 00 00 [01:15:39]Write to MH i2c: E2 08 00 FE 15 80 11 00 00 00 00 00 00 8D [01:15:39]Write i2c OK [01:15:39]MH_I2C_Read... [01:15:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:15:40]Read from MH i2c: E2 [01:15:40]MH_I2C_Read... [01:15:40]Read from MH i2c: E2 17 00 [01:15:40]MH_I2C_Read... [01:15:40]Read from MH i2c: E2 17 00 FE 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E3 [01:15:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [01:15:40]wFMCommunicate OK [01:15:40]CreateOFDProtocolMessage done [01:15:40]OFDSenderStorePacket 165132 [01:15:40]StoreOFDPacket docnum=165132 [01:15:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 00 59 07 01 FB 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 05 00 00 00 F4 03 04 00 3C 78 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0C 85 02 00 35 04 06 00 4E 07 5C 2F 13 E8 9F 78 45 EC FC 92 55 EE [01:15:40]CheckFolder [01:15:40]dirname=/storage/ofd_packets [01:15:40]CheckFolder done [01:15:40]ProducePacketName [01:15:40]name=ofd_packets/00165132 [01:15:40]NVStorageSaveData ofd_packets/00165132 [01:15:40]File name is /storage/ofd_packets/00165132 [01:15:40]Write 301 bytes [01:15:40]NVStorageSaveData done [01:15:40]OFDSenderStorePacket done [01:15:40]KKMCreateOFDPacket done [01:15:40]NVStorageSaveData kkm_last_timestamp [01:15:40]File name is /storage/kkm_last_timestamp [01:15:40]Write 4 bytes [01:15:40]NVStorageSaveData done [01:15:40]ExternCall_PrintAddStr [01:15:40]wPrintStart [01:15:40]Write to MH i2c: 01 00 00 FF 15 14 [01:15:40]Write i2c OK [01:15:40]MH_I2C_Read... [01:15:40]Read from MH i2c: 01 [01:15:40]MH_I2C_Read... [01:15:40]Read from MH i2c: 01 07 00 [01:15:40]MH_I2C_Read... [01:15:40]Read from MH i2c: 01 07 00 FF 15 00 00 00 00 00 FF 0F 29 [01:15:40]RasterBufferAndPrint [01:15:40]line Счет N : (1)459233 [01:15:40]line ИНН: 02508201610067 [01:15:40]line Контрольно-Кассовый Чек [01:15:40]line ПРОДАЖА [01:15:40]line ТРК (МРК, ГНК) : 22 [01:15:40]line Товар: 2710124130 [01:15:40]line Аи-92-К-5 [01:15:40]line 7.600 * 65.80 [01:15:40]line = 500.08 [01:15:40]line НДС 12% НСП 1% [01:15:40]line > о реализуемом товаре [01:15:40]line ОКРУГЛЕНИЕ: -0.08 [01:15:40]line ИТОГО: 500.00 [01:15:40]line Внесено: 500.00 [01:15:40]line СДАЧА: 0.00 [01:15:40]line НСП 1% : 4.42 [01:15:40]line НДС 12% : 53.11 [01:15:40]line Наличными: 500.00 [01:15:40]line Безнал.: 0.00 [01:15:40]line Место: АЗС № 72 "Партнер Нефть" [01:15:40]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [01:15:40]line СНО: Общий режим [01:15:40]line Чек 5 15.07.2024 01:15 [01:15:40]line Смена: 448 ФФД: 1.0 [01:15:40]line ЗНМ: 0300000160 [01:15:40]line РНМ: 0000000000090829 [01:15:40]line Версия ККМ: 001 [01:15:40]line ФМ: 0000000000874718 [01:15:40]line ФД: 165132 [01:15:40]line ФПД: 85793518326760 [01:15:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T011540&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165132&fm=85793518326760&tin=02508201610067®Number=0000000000090829&sum=50000 [01:15:40]OFD Sender: Processing packet 165132 [packets to send 106, broken 105] [01:15:40]ProducePacketName [01:15:40]name=ofd_packets/00165132 [01:15:40]OFD Sender: To server: pG, [01:15:40]CommunicateWithHost lk.salyk.kg:30040 [01:15:40]ConnectInit lk.salyk.kg [01:15:40]written 0, free lines is 4095 [01:15:40]Connected sock=7 [01:15:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 00 59 07 01 FB 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 05 00 00 00 F4 03 04 00 3C 78 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0C 85 02 00 35 04 06 00 4E 07 5C 2F 13 E8 9F 78 45 EC FC 92 55 EE [01:15:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 8B 7B 47 00 AC DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0C 85 02 00 F4 03 04 00 C8 1E 94 66 B6 04 01 00 00 36 8B 47 00 A2 7F 76 77 [01:15:40]CommunicateWithHost err = 0 [01:15:40]CheckOFDResponse [01:15:40]1017 (14) - 77093643461234 [01:15:40]1041 (16) - 0000000000874718 [01:15:40]1040 (4) - 165132 [01:15:40]1012 (4) - 14.07.2024 18:54 [01:15:40]1206 (1) - 0 [01:15:40]OFD Sender: Remove packet 165132 [01:15:40]ProducePacketName [01:15:40]name=ofd_packets/00165132 [01:15:40]NVStorageDeleteData [01:15:40]Write to MH i2c: 01 00 00 29 16 3F [01:15:40]Write i2c OK [01:15:40]MH_I2C_Read... [01:15:40]Read from MH i2c: 01 [01:15:40]MH_I2C_Read... [01:15:40]Read from MH i2c: 01 07 00 [01:15:40]MH_I2C_Read... [01:15:40]Read from MH i2c: 01 07 00 29 16 00 00 00 00 00 02 0D 55 [01:15:40]RasterBufferAndPrint [01:15:40]line [01:15:40]line [01:15:40]line [01:15:40]line [01:15:40]line [01:15:40]written 0, free lines is 3336 [01:15:40]MH_Cut [01:15:40]Write to MH i2c: D1 01 00 30 16 01 18 [01:15:40]Write i2c OK [01:15:40]MH_I2C_Read... [01:15:40]Read from MH i2c: D1 [01:15:40]MH_I2C_Read... [01:15:40]Read from MH i2c: D1 01 00 [01:15:40]MH_I2C_Read... [01:15:40]Read from MH i2c: D1 01 00 30 16 00 17 [01:15:40]Write to MH i2c: 01 00 00 31 16 47 [01:15:40]Write i2c OK [01:15:40]MH_I2C_Read... [01:15:41]OFD Sender: No OFD packet to send [01:15:41]*** Cut start [01:15:41]*** Partial cut [01:15:41]*** CUTSNS_PIN = 1 [01:15:41]*** CUTSNS_PIN = 0 [01:15:41]*** Brake cut motor [01:15:42]Read from MH i2c: 01 [01:15:42]MH_I2C_Read... [01:15:42]*** Stop cut motor [01:15:42]*** Cut end [01:15:42]Read from MH i2c: 01 07 00 [01:15:42]MH_I2C_Read... [01:15:42]Read from MH i2c: 01 07 00 31 16 00 00 00 00 00 FF 0F 5C [01:15:42]process_action close_receipt done [01:15:42]requested_data is exist [01:15:42]produce_requested_data [01:15:42]requested_item fm.sn is exist - process it [01:15:42]wFMCommunicate request_size=4 [01:15:42]MH_SAM_APDU [01:15:42]CAPDU: 80 11 00 00 [01:15:42]Write to MH i2c: E2 08 00 32 16 80 11 00 00 00 00 00 00 C2 [01:15:42]Write i2c OK [01:15:42]MH_I2C_Read... [01:15:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:15:42]Read from MH i2c: E2 [01:15:42]MH_I2C_Read... [01:15:42]Read from MH i2c: E2 17 00 [01:15:42]MH_I2C_Read... [01:15:42]Read from MH i2c: E2 17 00 32 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 18 [01:15:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [01:15:42]wFMCommunicate OK [01:15:42]requested_item fd.num is exist - process it [01:15:42]SAM_PROTO_GetFieldsCounters [01:15:42]wFMCommunicate request_size=4 [01:15:42]MH_SAM_APDU [01:15:42]CAPDU: 80 13 00 00 [01:15:42]Write to MH i2c: E2 08 00 33 16 80 13 00 00 00 00 00 00 C5 [01:15:42]Write i2c OK [01:15:42]MH_I2C_Read... [01:15:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:15:42]Read from MH i2c: E2 [01:15:42]MH_I2C_Read... [01:15:42]Read from MH i2c: E2 62 00 [01:15:42]MH_I2C_Read... [01:15:42]Read from MH i2c: E2 62 00 33 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 0C 85 02 00 0E 04 04 00 C0 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 4F [01:15:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 0C 85 02 00 0E 04 04 00 C0 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 [01:15:42]wFMCommunicate OK [01:15:42]SAM_PROTO_GetFieldsCounters done [01:15:42]requested_item shift.num is exist - process it [01:15:42]requested_item shift.opened is exist - process it [01:15:42]req_shift_opened [01:15:42]FM_GetShiftState [01:15:42]SAM_PROTO_GetShiftState [01:15:42]wFMCommunicate request_size=4 [01:15:42]MH_SAM_APDU [01:15:42]CAPDU: 80 13 01 00 [01:15:42]Write to MH i2c: E2 08 00 34 16 80 13 01 00 00 00 00 00 C7 [01:15:42]Write i2c OK [01:15:42]MH_I2C_Read... [01:15:42]Read from MH i2c: E2 [01:15:42]MH_I2C_Read... [01:15:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:15:42]Read from MH i2c: E2 0E 00 [01:15:42]MH_I2C_Read... [01:15:42]Read from MH i2c: E2 0E 00 34 16 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 A0 [01:15:42]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [01:15:42]wFMCommunicate OK [01:15:42]SAM_PROTO_GetShiftState done [01:15:42]FM_GetShiftState done [01:15:42]req_shift_opened done [01:15:42]requested_item shift.open_date is exist - process it [01:15:42]req_shift_open_date [01:15:42]req_shift_open_date done [01:15:42]produce_requested_data done [01:15:42]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165132,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [01:15:42]process_action_free close_receipt [01:15:42]json_value_free [01:15:42]json_value_free done [01:15:42]process_json_proto returns [01:15:42]Send response to host [01:15:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165132,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [01:15:42]free response buf [01:15:42]execute_script done [01:15:42]execute_script returns [01:15:42]free content buf [01:15:42]Sock 9.Close socket [01:15:42]Sock 9.Thread stoped [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:09]accept exits with 10 [01:16:09]New connection [01:16:09]New thread 3066928484 created [01:16:09]Thread 3066785124 joined [01:16:09]Waiting for new connection... [01:16:09] Sock 10.Parse request [01:16:09]Sock 10.Check first char [01:16:09]Sock 10.First char is OK [01:16:09]request: POST /json_proto HTTP/1.0 [01:16:09]Method: POST [01:16:09]URL: /json_proto [01:16:09]Method is POST - this is cgi request [01:16:09]url: /json_proto [01:16:09]query_string will be loaded in cgi processing [01:16:09]execute_cgi json_proto POST (null) [01:16:09]execute_cgi path=json_proto method=POST [01:16:09]POST find Content-Length [01:16:09]Host: 172.17.56.4:8080 [01:16:09]Content-Length: 682 [01:16:09]Content-Type: application/json [01:16:09] [01:16:09]POST finish read [01:16:09]Found Content-Length = 682 [01:16:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459234", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:16:09]execute_script... [01:16: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)459234", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:16:09]POST & json_proto [01:16:09]process_json_proto [01:16:09]json parsed OK: [01:16:09]protocol is kg_v1.0 [01:16:09]action value=close_receipt [01:16:09]process_action close_receipt [01:16:09]cmd_close_receipt [01:16:09]MH_GetDate [01:16:09]Write to MH i2c: F0 00 00 35 16 3A [01:16:09]Write i2c OK [01:16:09]MH_I2C_Read... [01:16:09]Read from MH i2c: F0 [01:16:09]MH_I2C_Read... [01:16:09]Read from MH i2c: F0 09 00 [01:16:09]MH_I2C_Read... [01:16:09]Read from MH i2c: F0 09 00 35 16 00 5C 78 94 66 C9 DC B2 64 CC [01:16:09]GetLastDocTimeStamp 1721006140 [01:16:09]current date 1721006172 [01:16:09]FM_GetShiftState [01:16:09]SAM_PROTO_GetShiftState [01:16:09]wFMCommunicate request_size=4 [01:16:09]MH_SAM_APDU [01:16:09]CAPDU: 80 13 01 00 [01:16:09]Write to MH i2c: E2 08 00 36 16 80 13 01 00 00 00 00 00 C9 [01:16:09]Write i2c OK [01:16:09]MH_I2C_Read... [01:16:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:16:09]Read from MH i2c: E2 [01:16:09]MH_I2C_Read... [01:16:09]Read from MH i2c: E2 0E 00 [01:16:09]MH_I2C_Read... [01:16:09]Read from MH i2c: E2 0E 00 36 16 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 A2 [01:16:09]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [01:16:09]wFMCommunicate OK [01:16:09]SAM_PROTO_GetShiftState done [01:16:09]FM_GetShiftState done [01:16:09]opened in 1721003876 [01:16:09]opened+sec_in_day 1721090276 [01:16:09]quantity*price = 100016 [01:16:09]sum+1 = 100017 [01:16:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 6 15.07.2024 01:16 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165133 ФПД: 263976899875071 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T011612&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165133&fm=263976899875071&tin=02508201610067®Number=0000000000090829&sum=100000 [01:16:11]StoreToDocumentArchive [01:16:11]shift 448 fd 165133 [01:16:11]save to /storage/0448/doc_00165133 [01:16:11]save last doc name /storage/0448/doc_00165133 to /storage/kkm_last_doc_name [01:16:11]save OK [01:16:11]Clear old archive folders... [01:16:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:16:11]tlvbuf is 013C0700 [01:16:11]SAM_PROTO_ClearQueue [01:16:11]wFMCommunicate request_size=4 [01:16:11]MH_SAM_APDU [01:16:11]CAPDU: 80 09 00 00 [01:16:11]Write to MH i2c: E2 08 00 43 16 80 09 00 00 00 00 00 00 CB [01:16:11]Write i2c OK [01:16:11]MH_I2C_Read... [01:16:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:16:11]Read from MH i2c: E2 [01:16:11]MH_I2C_Read... [01:16:11]Read from MH i2c: E2 03 00 [01:16:11]MH_I2C_Read... [01:16:11]Read from MH i2c: E2 03 00 43 16 00 90 00 CD [01:16:11]RAPDU: 90 00 [01:16:11]wFMCommunicate OK [01:16:11]SAM_PROTO_ClearQueue done [01:16:11]KKMCreateOFDPacket [01:16:11]OFDProtocolAddRootSTLVToBuf [01:16:11]FM_MakeSignedData [01:16:11]FM_MakeSignedData [01:16:11]SAM_PROTO_SignData [01:16:11]wFMCommunicate request_size=4 [01:16:11]MH_SAM_APDU [01:16:11]CAPDU: 80 0D 01 02 [01:16:11]Write to MH i2c: E2 08 00 44 16 80 0D 01 02 00 00 00 00 D3 [01:16:11]Write i2c OK [01:16:11]MH_I2C_Read... [01:16:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:16:11]Read from MH i2c: E2 [01:16:11]MH_I2C_Read... [01:16:11]Read from MH i2c: E2 03 00 [01:16:11]MH_I2C_Read... [01:16:11]Read from MH i2c: E2 03 00 44 16 00 90 00 CE [01:16:11]RAPDU: 90 00 [01:16:11]wFMCommunicate OK [01:16:11]wFMCommunicate request_size=255 [01:16:11]MH_SAM_APDU [01:16:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 5C 78 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0D 85 02 00 35 04 06 00 F0 [01:16:11]Write to MH i2c: E2 02 01 45 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 5C 78 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0D 85 02 00 35 04 06 00 F0 00 00 07 [01:16:11]Write i2c OK [01:16:11]MH_I2C_Read... [01:16:11]OFD Sender: No OFD packet to send [01:16:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:16:11]Read from MH i2c: E2 [01:16:11]MH_I2C_Read... [01:16:11]Read from MH i2c: E2 03 00 [01:16:11]MH_I2C_Read... [01:16:11]Read from MH i2c: E2 03 00 45 16 00 90 00 CF [01:16:11]RAPDU: 90 00 [01:16:11]wFMCommunicate OK [01:16:11]wFMCommunicate request_size=10 [01:16:11]MH_SAM_APDU [01:16:11]CAPDU: 80 0D 02 02 05 15 E9 58 90 FF [01:16:11]Write to MH i2c: E2 0D 00 46 16 80 0D 02 02 05 00 15 E9 58 90 FF 00 00 C5 [01:16:11]Write i2c OK [01:16:11]MH_I2C_Read... [01:16:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:16:11]Read from MH i2c: E2 [01:16:11]MH_I2C_Read... [01:16:11]Read from MH i2c: E2 03 00 [01:16:11]MH_I2C_Read... [01:16:11]Read from MH i2c: E2 03 00 46 16 00 90 00 D0 [01:16:11]RAPDU: 90 00 [01:16:11]wFMCommunicate OK [01:16:11]wFMCommunicate request_size=4 [01:16:11]MH_SAM_APDU [01:16:11]CAPDU: 80 0D 03 02 [01:16:11]Write to MH i2c: E2 08 00 47 16 80 0D 03 02 00 00 00 00 D8 [01:16:11]Write i2c OK [01:16:11]MH_I2C_Read... [01:16:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:16:11]Read from MH i2c: E2 [01:16:11]MH_I2C_Read... [01:16:11]Read from MH i2c: E2 0B 00 [01:16:11]MH_I2C_Read... [01:16:11]Read from MH i2c: E2 0B 00 47 16 00 8D F4 11 7F 8D CB 60 60 90 00 02 [01:16:11]RAPDU: 8D F4 11 7F 8D CB 60 60 90 00 [01:16:11]wFMCommunicate OK [01:16:11]SAM_PROTO_SignData done [01:16:11]FM_MakeSignedData done [01:16:11]CreateOFDProtocolMessage [01:16:11]wFMCommunicate request_size=4 [01:16:11]MH_SAM_APDU [01:16:11]CAPDU: 80 11 00 00 [01:16:11]Write to MH i2c: E2 08 00 48 16 80 11 00 00 00 00 00 00 D8 [01:16:11]Write i2c OK [01:16:11]MH_I2C_Read... [01:16:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:16:11]Read from MH i2c: E2 [01:16:11]MH_I2C_Read... [01:16:11]Read from MH i2c: E2 17 00 [01:16:11]MH_I2C_Read... [01:16:11]Read from MH i2c: E2 17 00 48 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 2E [01:16:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [01:16:11]wFMCommunicate OK [01:16:11]CreateOFDProtocolMessage done [01:16:11]OFDSenderStorePacket 165133 [01:16:11]StoreOFDPacket docnum=165133 [01:16:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 24 22 07 01 C8 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 5C 78 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0D 85 02 00 35 04 06 00 F0 15 E9 58 90 FF 8D F4 11 7F 8D CB 60 60 [01:16:11]CheckFolder [01:16:11]dirname=/storage/ofd_packets [01:16:11]CheckFolder done [01:16:11]ProducePacketName [01:16:11]name=ofd_packets/00165133 [01:16:11]NVStorageSaveData ofd_packets/00165133 [01:16:11]File name is /storage/ofd_packets/00165133 [01:16:11]Write 301 bytes [01:16:11]NVStorageSaveData done [01:16:11]OFDSenderStorePacket done [01:16:11]KKMCreateOFDPacket done [01:16:11]NVStorageSaveData kkm_last_timestamp [01:16:11]File name is /storage/kkm_last_timestamp [01:16:11]Write 4 bytes [01:16:11]NVStorageSaveData done [01:16:11]ExternCall_PrintAddStr [01:16:11]wPrintStart [01:16:11]Write to MH i2c: 01 00 00 49 16 5F [01:16:11]Write i2c OK [01:16:11]MH_I2C_Read... [01:16:11]Read from MH i2c: 01 [01:16:11]MH_I2C_Read... [01:16:11]Read from MH i2c: 01 07 00 [01:16:11]MH_I2C_Read... [01:16:11]Read from MH i2c: 01 07 00 49 16 00 00 00 00 00 FF 0F 74 [01:16:11]RasterBufferAndPrint [01:16:11]line Счет N : (1)459234 [01:16:11]line ИНН: 02508201610067 [01:16:11]line Контрольно-Кассовый Чек [01:16:11]line ПРОДАЖА [01:16:11]line ТРК (МРК, ГНК) : 12 [01:16:11]line Товар: 2710124130 [01:16:11]line Аи-92-К-5 [01:16:11]line 15.200 * 65.80 [01:16:11]line = 1000.16 [01:16:11]line НДС 12% НСП 1% [01:16:11]line > о реализуемом товаре [01:16:11]line ОКРУГЛЕНИЕ: -0.16 [01:16:11]line ИТОГО: 1000.00 [01:16:11]line Внесено: 1000.00 [01:16:11]line СДАЧА: 0.00 [01:16:11]line НСП 1% : 8.85 [01:16:11]line НДС 12% : 106.21 [01:16:11]line Наличными: 1000.00 [01:16:11]line Безнал.: 0.00 [01:16:11]line Место: АЗС № 72 "Партнер Нефть" [01:16:11]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [01:16:11]line СНО: Общий режим [01:16:11]line Чек 6 15.07.2024 01:16 [01:16:11]line Смена: 448 ФФД: 1.0 [01:16:11]line ЗНМ: 0300000160 [01:16:11]line РНМ: 0000000000090829 [01:16:11]line Версия ККМ: 001 [01:16:11]line ФМ: 0000000000874718 [01:16:11]line ФД: 165133 [01:16:11]line ФПД: 263976899875071 [01:16:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T011612&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165133&fm=263976899875071&tin=02508201610067®Number=0000000000090829&sum=100000 [01:16:11]OFD Sender: Processing packet 165133 [packets to send 106, broken 105] [01:16:11]ProducePacketName [01:16:11]name=ofd_packets/00165133 [01:16:11]OFD Sender: To server: pG, [01:16:11]CommunicateWithHost lk.salyk.kg:30040 [01:16:11]ConnectInit lk.salyk.kg [01:16:11]written 0, free lines is 4095 [01:16:11]Connected sock=7 [01:16:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 24 22 07 01 C8 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 5C 78 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0D 85 02 00 35 04 06 00 F0 15 E9 58 90 FF 8D F4 11 7F 8D CB 60 60 [01:16:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 0F C0 47 00 83 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0D 85 02 00 F4 03 04 00 E8 1E 94 66 B6 04 01 00 00 D6 03 70 99 D0 1E AC BE [01:16:12]CommunicateWithHost err = 0 [01:16:12]CheckOFDResponse [01:16:12]1017 (14) - 77093643461234 [01:16:12]1041 (16) - 0000000000874718 [01:16:12]1040 (4) - 165133 [01:16:12]1012 (4) - 14.07.2024 18:54 [01:16:12]1206 (1) - 0 [01:16:12]OFD Sender: Remove packet 165133 [01:16:12]ProducePacketName [01:16:12]name=ofd_packets/00165133 [01:16:12]NVStorageDeleteData [01:16:12]Write to MH i2c: 01 00 00 73 16 89 [01:16:12]Write i2c OK [01:16:12]MH_I2C_Read... [01:16:12]Read from MH i2c: 01 [01:16:12]MH_I2C_Read... [01:16:12]Read from MH i2c: 01 07 00 [01:16:12]MH_I2C_Read... [01:16:12]Read from MH i2c: 01 07 00 73 16 00 00 00 00 00 F3 0C 8F [01:16:12]RasterBufferAndPrint [01:16:12]line [01:16:12]line [01:16:12]line [01:16:12]line [01:16:12]line [01:16:12]written 0, free lines is 3321 [01:16:12]MH_Cut [01:16:12]Write to MH i2c: D1 01 00 7A 16 01 62 [01:16:12]Write i2c OK [01:16:12]MH_I2C_Read... [01:16:12]Read from MH i2c: D1 [01:16:12]MH_I2C_Read... [01:16:12]Read from MH i2c: D1 01 00 [01:16:12]MH_I2C_Read... [01:16:12]Read from MH i2c: D1 01 00 7A 16 00 61 [01:16:12]Write to MH i2c: 01 00 00 7B 16 91 [01:16:12]Write i2c OK [01:16:12]MH_I2C_Read... [01:16:12]OFD Sender: No OFD packet to send [01:16:12]*** Cut start [01:16:12]*** Partial cut [01:16:12]*** CUTSNS_PIN = 1 [01:16:13]*** CUTSNS_PIN = 0 [01:16:13]*** Brake cut motor [01:16:13]Read from MH i2c: 01 [01:16:13]MH_I2C_Read... [01:16:13]*** Stop cut motor [01:16:13]*** Cut end [01:16:13]Read from MH i2c: 01 07 00 [01:16:13]MH_I2C_Read... [01:16:13]Read from MH i2c: 01 07 00 7B 16 00 00 00 00 00 FF 0F A6 [01:16:13]process_action close_receipt done [01:16:13]requested_data is exist [01:16:13]produce_requested_data [01:16:13]requested_item fm.sn is exist - process it [01:16:13]wFMCommunicate request_size=4 [01:16:13]MH_SAM_APDU [01:16:13]CAPDU: 80 11 00 00 [01:16:13]Write to MH i2c: E2 08 00 7C 16 80 11 00 00 00 00 00 00 0C [01:16:13]Write i2c OK [01:16:13]MH_I2C_Read... [01:16:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:16:13]Read from MH i2c: E2 [01:16:13]MH_I2C_Read... [01:16:13]Read from MH i2c: E2 17 00 [01:16:13]MH_I2C_Read... [01:16:13]Read from MH i2c: E2 17 00 7C 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 62 [01:16:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [01:16:13]wFMCommunicate OK [01:16:13]requested_item fd.num is exist - process it [01:16:13]SAM_PROTO_GetFieldsCounters [01:16:13]wFMCommunicate request_size=4 [01:16:13]MH_SAM_APDU [01:16:13]CAPDU: 80 13 00 00 [01:16:13]Write to MH i2c: E2 08 00 7D 16 80 13 00 00 00 00 00 00 0F [01:16:13]Write i2c OK [01:16:13]MH_I2C_Read... [01:16:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:16:13]Read from MH i2c: E2 [01:16:13]MH_I2C_Read... [01:16:13]Read from MH i2c: E2 62 00 [01:16:13]MH_I2C_Read... [01:16:13]Read from MH i2c: E2 62 00 7D 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 0D 85 02 00 0E 04 04 00 C0 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 9D [01:16:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 0D 85 02 00 0E 04 04 00 C0 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 [01:16:13]wFMCommunicate OK [01:16:13]SAM_PROTO_GetFieldsCounters done [01:16:13]requested_item shift.num is exist - process it [01:16:13]requested_item shift.opened is exist - process it [01:16:13]req_shift_opened [01:16:13]FM_GetShiftState [01:16:13]SAM_PROTO_GetShiftState [01:16:13]wFMCommunicate request_size=4 [01:16:13]MH_SAM_APDU [01:16:13]CAPDU: 80 13 01 00 [01:16:13]Write to MH i2c: E2 08 00 7E 16 80 13 01 00 00 00 00 00 11 [01:16:13]Write i2c OK [01:16:13]MH_I2C_Read... [01:16:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:16:13]Read from MH i2c: E2 [01:16:13]MH_I2C_Read... [01:16:13]Read from MH i2c: E2 0E 00 [01:16:13]MH_I2C_Read... [01:16:13]Read from MH i2c: E2 0E 00 7E 16 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 EA [01:16:13]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [01:16:13]wFMCommunicate OK [01:16:13]SAM_PROTO_GetShiftState done [01:16:13]FM_GetShiftState done [01:16:13]req_shift_opened done [01:16:13]requested_item shift.open_date is exist - process it [01:16:13]req_shift_open_date [01:16:13]req_shift_open_date done [01:16:13]produce_requested_data done [01:16:13]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165133,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [01:16:13]process_action_free close_receipt [01:16:13]json_value_free [01:16:13]json_value_free done [01:16:13]process_json_proto returns [01:16:13]Send response to host [01:16:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165133,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [01:16:13]free response buf [01:16:13]execute_script done [01:16:13]execute_script returns [01:16:13]free content buf [01:16:13]Sock 10.Close socket [01:16:13]Sock 10.Thread stoped [01:16:17]OFD Sender: No OFD packet to send [01:16:22]OFD Sender: No OFD packet to send [01:16:27]OFD Sender: No OFD packet to send [01:16:32]OFD Sender: No OFD packet to send [01:16:37]OFD Sender: No OFD packet to send [01:16:42]OFD Sender: No OFD packet to send [01:16:47]OFD Sender: No OFD packet to send [01:16:52]OFD Sender: No OFD packet to send [01:16:57]OFD Sender: No OFD packet to send [01:17:02]OFD Sender: No OFD packet to send [01:17:07]OFD Sender: No OFD packet to send [01:17:12]OFD Sender: No OFD packet to send [01:17:17]OFD Sender: No OFD packet to send [01:17:22]OFD Sender: No OFD packet to send [01:17:27]OFD Sender: No OFD packet to send [01:17:32]OFD Sender: No OFD packet to send [01:17:37]OFD Sender: No OFD packet to send [01:17:42]OFD Sender: No OFD packet to send [01:17:47]OFD Sender: No OFD packet to send [01:17:52]OFD Sender: No OFD packet to send [01:17:57]OFD Sender: No OFD packet to send [01:18:02]OFD Sender: No OFD packet to send [01:18:07]OFD Sender: No OFD packet to send [01:18:12]OFD Sender: No OFD packet to send [01:18:17]OFD Sender: No OFD packet to send [01:18:22]OFD Sender: No OFD packet to send [01:18:27]OFD Sender: No OFD packet to send [01:18:32]OFD Sender: No OFD packet to send [01:18:37]OFD Sender: No OFD packet to send [01:18:42]OFD Sender: No OFD packet to send [01:18:47]OFD Sender: No OFD packet to send [01:18:52]OFD Sender: No OFD packet to send [01:18:57]OFD Sender: No OFD packet to send [01:19:02]OFD Sender: No OFD packet to send [01:19:07]OFD Sender: No OFD packet to send [01:19:12]OFD Sender: No OFD packet to send [01:19:17]OFD Sender: No OFD packet to send [01:19:22]OFD Sender: No OFD packet to send [01:19:27]OFD Sender: No OFD packet to send [01:19:32]OFD Sender: No OFD packet to send [01:19:37]OFD Sender: No OFD packet to send [01:19:42]OFD Sender: No OFD packet to send [01:19:47]OFD Sender: No OFD packet to send [01:19:52]OFD Sender: No OFD packet to send [01:19:57]OFD Sender: No OFD packet to send [01:20:02]OFD Sender: No OFD packet to send [01:20:07]OFD Sender: No OFD packet to send [01:20:12]OFD Sender: No OFD packet to send [01:20:17]OFD Sender: No OFD packet to send [01:20:22]OFD Sender: No OFD packet to send [01:20:27]OFD Sender: No OFD packet to send [01:20:32]OFD Sender: No OFD packet to send [01:20:37]OFD Sender: No OFD packet to send [01:20:42]OFD Sender: No OFD packet to send [01:20:47]OFD Sender: No OFD packet to send [01:20:52]OFD Sender: No OFD packet to send [01:20:57]OFD Sender: No OFD packet to send [01:21: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: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:38]OFD Sender: No OFD packet to send [01:24:43]OFD Sender: No OFD packet to send [01:24:48]OFD Sender: No OFD packet to send [01:24:53]OFD Sender: No OFD packet to send [01:24:58]OFD Sender: No OFD packet to send [01:25:03]OFD Sender: No OFD packet to send [01:25:08]OFD Sender: No OFD packet to send [01:25:13]OFD Sender: No OFD packet to send [01:25:18]OFD Sender: No OFD packet to send [01:25:23]OFD Sender: No OFD packet to send [01:25:28]OFD Sender: No OFD packet to send [01:25:33]OFD Sender: No OFD packet to send [01:25:38]OFD Sender: No OFD packet to send [01:25:43]OFD Sender: No OFD packet to send [01:25:48]OFD Sender: No OFD packet to send [01:25:53]OFD Sender: No OFD packet to send [01:25:58]OFD Sender: No OFD packet to send [01:26:03]OFD Sender: No OFD packet to send [01:26:08]OFD Sender: No OFD packet to send [01:26:13]OFD Sender: No OFD packet to send [01:26:18]OFD Sender: No OFD packet to send [01:26:23]OFD Sender: No OFD packet to send [01:26:28]OFD Sender: No OFD packet to send [01:26:33]OFD Sender: No OFD packet to send [01:26:38]OFD Sender: No OFD packet to send [01:26:43]OFD Sender: No OFD packet to send [01:26:48]OFD Sender: No OFD packet to send [01:26:53]OFD Sender: No OFD packet to send [01:26:58]OFD Sender: No OFD packet to send [01:27:03]OFD Sender: No OFD packet to send [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:48]OFD Sender: No OFD packet to send [01:28:53]OFD Sender: No OFD packet to send [01:28:58]OFD Sender: No OFD packet to send [01:29:03]OFD Sender: No OFD packet to send [01:29:08]OFD Sender: No OFD packet to send [01:29:13]OFD Sender: No OFD packet to send [01:29:18]OFD Sender: No OFD packet to send [01:29:23]OFD Sender: No OFD packet to send [01:29:28]OFD Sender: No OFD packet to send [01:29:33]OFD Sender: No OFD packet to send [01:29:38]OFD Sender: No OFD packet to send [01:29:43]OFD Sender: No OFD packet to send [01:29:48]OFD Sender: No OFD packet to send [01:29:53]OFD Sender: No OFD packet to send [01:29:58]OFD Sender: No OFD packet to send [01:30:03]OFD Sender: No OFD packet to send [01:30:08]OFD Sender: No OFD packet to send [01:30:13]OFD Sender: No OFD packet to send [01:30:18]OFD Sender: No OFD packet to send [01:30:23]OFD Sender: No OFD packet to send [01:30:28]OFD Sender: No OFD packet to send [01:30:33]OFD Sender: No OFD packet to send [01:30:38]OFD Sender: No OFD packet to send [01:30:43]OFD Sender: No OFD packet to send [01:30:48]OFD Sender: No OFD packet to send [01:30:53]OFD Sender: No OFD packet to send [01:30:58]OFD Sender: No OFD packet to send [01:31:03]OFD Sender: No OFD packet to send [01:31:08]OFD Sender: No OFD packet to send [01:31:13]OFD Sender: No OFD packet to send [01:31:18]OFD Sender: No OFD packet to send [01:31:23]OFD Sender: No OFD packet to send [01:31:28]OFD Sender: No OFD packet to send [01:31:33]OFD Sender: No OFD packet to send [01:31:38]OFD Sender: No OFD packet to send [01:31:43]OFD Sender: No OFD packet to send [01:31:48]OFD Sender: No OFD packet to send [01:31:53]OFD Sender: No OFD packet to send [01:31:58]OFD Sender: No OFD packet to send [01:32:03]OFD Sender: No OFD packet to send [01:32:08]OFD Sender: No OFD packet to send [01:32:13]OFD Sender: No OFD packet to send [01:32:18]OFD Sender: No OFD packet to send [01:32:23]OFD Sender: No OFD packet to send [01:32:28]OFD Sender: No OFD packet to send [01:32:33]OFD Sender: No OFD packet to send [01:32:38]OFD Sender: No OFD packet to send [01:32:43]OFD Sender: No OFD packet to send [01:32:48]OFD Sender: No OFD packet to send [01:32:53]OFD Sender: No OFD packet to send [01:32:58]OFD Sender: No OFD packet to send [01:33:03]OFD Sender: No OFD packet to send [01:33:08]OFD Sender: No OFD packet to send [01:33:13]OFD Sender: No OFD packet to send [01:33:18]OFD Sender: No OFD packet to send [01:33:23]OFD Sender: No OFD packet to send [01:33:28]OFD Sender: No OFD packet to send [01:33:33]OFD Sender: No OFD packet to send [01:33:38]OFD Sender: No OFD packet to send [01:33:43]OFD Sender: No OFD packet to send [01:33:48]OFD Sender: No OFD packet to send [01:33:53]OFD Sender: No OFD packet to send [01:33:58]OFD Sender: No OFD packet to send [01:34:03]OFD Sender: No OFD packet to send [01:34:08]OFD Sender: No OFD packet to send [01:34:13]OFD Sender: No OFD packet to send [01:34:18]OFD Sender: No OFD packet to send [01:34:23]OFD Sender: No OFD packet to send [01:34:28]OFD Sender: No OFD packet to send [01:34:33]OFD Sender: No OFD packet to send [01:34:38]OFD Sender: No OFD packet to send [01:34:43]OFD Sender: No OFD packet to send [01:34:48]OFD Sender: No OFD packet to send [01:34:53]OFD Sender: No OFD packet to send [01:34:58]OFD Sender: No OFD packet to send [01:35:03]OFD Sender: No OFD packet to send [01:35:08]OFD Sender: No OFD packet to send [01:35:13]OFD Sender: No OFD packet to send [01:35:18]OFD Sender: No OFD packet to send [01:35:23]OFD Sender: No OFD packet to send [01:35:28]OFD Sender: No OFD packet to send [01:35:33]OFD Sender: No OFD packet to send [01:35:38]OFD Sender: No OFD packet to send [01:35:43]OFD Sender: No OFD packet to send [01:35:48]OFD Sender: No OFD packet to send [01:35:53]OFD Sender: No OFD packet to send [01:35:58]OFD Sender: No OFD packet to send [01:36:03]OFD Sender: No OFD packet to send [01:36:09]OFD Sender: No OFD packet to send [01:36:14]OFD Sender: No OFD packet to send [01:36:19]OFD Sender: No OFD packet to send [01:36:24]OFD Sender: No OFD packet to send [01:36:29]OFD Sender: No OFD packet to send [01:36:34]OFD Sender: No OFD packet to send [01:36:39]OFD Sender: No OFD packet to send [01:36:44]OFD Sender: No OFD packet to send [01:36:49]OFD Sender: No OFD packet to send [01:36:54]OFD Sender: No OFD packet to send [01:36:59]OFD Sender: No OFD packet to send [01:37:04]OFD Sender: No OFD packet to send [01:37:09]OFD Sender: No OFD packet to send [01:37:14]OFD Sender: No OFD packet to send [01:37:19]OFD Sender: No OFD packet to send [01:37:24]OFD Sender: No OFD packet to send [01:37:29]OFD Sender: No OFD packet to send [01:37:34]OFD Sender: No OFD packet to send [01:37:39]OFD Sender: No OFD packet to send [01:37:44]OFD Sender: No OFD packet to send [01:37:49]OFD Sender: No OFD packet to send [01:37:54]OFD Sender: No OFD packet to send [01:37:59]OFD Sender: No OFD packet to send [01:38:04]OFD Sender: No OFD packet to send [01:38:09]OFD Sender: No OFD packet to send [01:38:14]OFD Sender: No OFD packet to send [01:38:19]OFD Sender: No OFD packet to send [01:38:24]OFD Sender: No OFD packet to send [01:38:29]OFD Sender: No OFD packet to send [01:38:34]OFD Sender: No OFD packet to send [01:38:39]OFD Sender: No OFD packet to send [01:38:44]OFD Sender: No OFD packet to send [01:38:49]OFD Sender: No OFD packet to send [01:38:54]OFD Sender: No OFD packet to send [01:38:59]OFD Sender: No OFD packet to send [01:39:04]OFD Sender: No OFD packet to send [01:39:09]OFD Sender: No OFD packet to send [01:39:14]OFD Sender: No OFD packet to send [01:39:19]OFD Sender: No OFD packet to send [01:39:24]OFD Sender: No OFD packet to send [01:39:29]OFD Sender: No OFD packet to send [01:39:34]OFD Sender: No OFD packet to send [01:39:39]OFD Sender: No OFD packet to send [01:39:44]OFD Sender: No OFD packet to send [01:39:49]OFD Sender: No OFD packet to send [01:39:54]OFD Sender: No OFD packet to send [01:39:59]OFD Sender: No OFD packet to send [01:40:04]OFD Sender: No OFD packet to send [01:40:09]OFD Sender: No OFD packet to send [01:40:14]OFD Sender: No OFD packet to send [01:40:19]OFD Sender: No OFD packet to send [01:40:24]OFD Sender: No OFD packet to send [01:40:29]OFD Sender: No OFD packet to send [01:40:34]OFD Sender: No OFD packet to send [01:40:39]OFD Sender: No OFD packet to send [01:40:44]OFD Sender: No OFD packet to send [01:40:49]OFD Sender: No OFD packet to send [01:40:54]OFD Sender: No OFD packet to send [01:40:59]OFD Sender: No OFD packet to send [01:41:04]OFD Sender: No OFD packet to send [01:41:09]OFD Sender: No OFD packet to send [01:41:14]OFD Sender: No OFD packet to send [01:41:19]OFD Sender: No OFD packet to send [01:41:24]OFD Sender: No OFD packet to send [01:41:29]OFD Sender: No OFD packet to send [01:41:34]OFD Sender: No OFD packet to send [01:41:39]OFD Sender: No OFD packet to send [01:41:44]OFD Sender: No OFD packet to send [01:41:49]OFD Sender: No OFD packet to send [01:41:54]OFD Sender: No OFD packet to send [01:41:59]OFD Sender: No OFD packet to send [01:42:04]OFD Sender: No OFD packet to send [01:42:09]OFD Sender: No OFD packet to send [01:42:14]OFD Sender: No OFD packet to send [01:42:19]OFD Sender: No OFD packet to send [01:42:24]OFD Sender: No OFD packet to send [01:42:29]OFD Sender: No OFD packet to send [01:42:34]OFD Sender: No OFD packet to send [01:42:39]OFD Sender: No OFD packet to send [01:42:44]OFD Sender: No OFD packet to send [01:42:49]OFD Sender: No OFD packet to send [01:42:54]OFD Sender: No OFD packet to send [01:42:59]OFD Sender: No OFD packet to send [01:43:04]OFD Sender: No OFD packet to send [01:43:09]OFD Sender: No OFD packet to send [01:43:14]OFD Sender: No OFD packet to send [01:43:19]OFD Sender: No OFD packet to send [01:43:24]OFD Sender: No OFD packet to send [01:43:29]OFD Sender: No OFD packet to send [01:43:34]OFD Sender: No OFD packet to send [01:43:39]OFD Sender: No OFD packet to send [01:43:44]OFD Sender: No OFD packet to send [01:43:49]OFD Sender: No OFD packet to send [01:43:54]OFD Sender: No OFD packet to send [01:43:59]OFD Sender: No OFD packet to send [01:44:04]OFD Sender: No OFD packet to send [01:44:09]OFD Sender: No OFD packet to send [01:44:14]OFD Sender: No OFD packet to send [01:44:19]OFD Sender: No OFD packet to send [01:44:24]OFD Sender: No OFD packet to send [01:44:29]OFD Sender: No OFD packet to send [01:44:34]OFD Sender: No OFD packet to send [01:44:39]OFD Sender: No OFD packet to send [01:44:44]OFD Sender: No OFD packet to send [01:44:49]OFD Sender: No OFD packet to send [01:44:54]OFD Sender: No OFD packet to send [01:44:59]OFD Sender: No OFD packet to send [01:45:04]OFD Sender: No OFD packet to send [01:45:09]OFD Sender: No OFD packet to send [01:45:14]OFD Sender: No OFD packet to send [01:45:19]OFD Sender: No OFD packet to send [01:45:24]OFD Sender: No OFD packet to send [01:45:29]OFD Sender: No OFD packet to send [01:45:34]OFD Sender: No OFD packet to send [01:45:39]OFD Sender: No OFD packet to send [01:45:44]OFD Sender: No OFD packet to send [01:45:49]OFD Sender: No OFD packet to send [01:45:54]OFD Sender: No OFD packet to send [01:45:59]OFD Sender: No OFD packet to send [01:46:04]OFD Sender: No OFD packet to send [01:46:09]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:29]OFD Sender: No OFD packet to send [01:47:34]OFD Sender: No OFD packet to send [01:47:39]OFD Sender: No OFD packet to send [01:47:44]OFD Sender: No OFD packet to send [01:47:49]OFD Sender: No OFD packet to send [01:47:54]OFD Sender: No OFD packet to send [01:47:59]OFD Sender: No OFD packet to send [01:48:04]OFD Sender: No OFD packet to send [01:48:09]OFD Sender: No OFD packet to send [01:48:14]OFD Sender: No OFD packet to send [01:48:19]OFD Sender: No OFD packet to send [01:48:24]OFD Sender: No OFD packet to send [01:48:29]OFD Sender: No OFD packet to send [01:48:34]OFD Sender: No OFD packet to send [01:48:39]OFD Sender: No OFD packet to send [01:48:44]OFD Sender: No OFD packet to send [01:48:49]OFD Sender: No OFD packet to send [01:48:54]OFD Sender: No OFD packet to send [01:48:59]OFD Sender: No OFD packet to send [01:49:04]OFD Sender: No OFD packet to send [01:49:09]OFD Sender: No OFD packet to send [01:49:14]OFD Sender: No OFD packet to send [01:49:19]OFD Sender: No OFD packet to send [01:49:24]OFD Sender: No OFD packet to send [01:49:29]OFD Sender: No OFD packet to send [01:49:34]OFD Sender: No OFD packet to send [01:49:39]OFD Sender: No OFD packet to send [01:49:44]OFD Sender: No OFD packet to send [01:49:49]OFD Sender: No OFD packet to send [01:49:54]OFD Sender: No OFD packet to send [01:49:59]OFD Sender: No OFD packet to send [01:50:04]OFD Sender: No OFD packet to send [01:50:09]OFD Sender: No OFD packet to send [01:50:14]OFD Sender: No OFD packet to send [01:50:19]OFD Sender: No OFD packet to send [01:50:24]OFD Sender: No OFD packet to send [01:50:29]OFD Sender: No OFD packet to send [01:50:34]OFD Sender: No OFD packet to send [01:50:39]OFD Sender: No OFD packet to send [01:50:44]OFD Sender: No OFD packet to send [01:50:49]OFD Sender: No OFD packet to send [01:50:54]OFD Sender: No OFD packet to send [01:50:59]OFD Sender: No OFD packet to send [01:51:05]OFD Sender: No OFD packet to send [01:51:10]OFD Sender: No OFD packet to send [01:51:15]OFD Sender: No OFD packet to send [01:51:20]OFD Sender: No OFD packet to send [01:51:25]OFD Sender: No OFD packet to send [01:51:30]OFD Sender: No OFD packet to send [01:51:35]OFD Sender: No OFD packet to send [01:51:40]OFD Sender: No OFD packet to send [01:51:45]OFD Sender: No OFD packet to send [01:51:50]OFD Sender: No OFD packet to send [01:51:55]OFD Sender: No OFD packet to send [01:52:00]OFD Sender: No OFD packet to send [01:52:05]OFD Sender: No OFD packet to send [01:52:10]OFD Sender: No OFD packet to send [01:52:15]OFD Sender: No OFD packet to send [01:52:20]OFD Sender: No OFD packet to send [01:52:25]OFD Sender: No OFD packet to send [01:52:30]OFD Sender: No OFD packet to send [01:52:35]OFD Sender: No OFD packet to send [01:52:40]OFD Sender: No OFD packet to send [01:52:45]OFD Sender: No OFD packet to send [01:52:50]OFD Sender: No OFD packet to send [01:52:55]OFD Sender: No OFD packet to send [01:53:00]OFD Sender: No OFD packet to send [01:53:05]OFD Sender: No OFD packet to send [01:53:10]OFD Sender: No OFD packet to send [01:53:15]OFD Sender: No OFD packet to send [01:53:20]OFD Sender: No OFD packet to send [01:53:25]OFD Sender: No OFD packet to send [01:53:30]OFD Sender: No OFD packet to send [01:53:35]OFD Sender: No OFD packet to send [01:53:40]OFD Sender: No OFD packet to send [01:53:45]OFD Sender: No OFD packet to send [01:53:50]OFD Sender: No OFD packet to send [01:53:55]OFD Sender: No OFD packet to send [01:54:00]OFD Sender: No OFD packet to send [01:54:05]OFD Sender: No OFD packet to send [01:54:10]OFD Sender: No OFD packet to send [01:54:15]OFD Sender: No OFD packet to send [01:54:20]OFD Sender: No OFD packet to send [01:54:25]OFD Sender: No OFD packet to send [01:54:30]OFD Sender: No OFD packet to send [01:54:35]OFD Sender: No OFD packet to send [01:54:40]OFD Sender: No OFD packet to send [01:54:45]OFD Sender: No OFD packet to send [01:54:50]OFD Sender: No OFD packet to send [01:54:55]OFD Sender: No OFD packet to send [01:55:00]OFD Sender: No OFD packet to send [01:55:05]OFD Sender: No OFD packet to send [01:55:10]OFD Sender: No OFD packet to send [01:55:15]OFD Sender: No OFD packet to send [01:55:20]OFD Sender: No OFD packet to send [01:55:25]OFD Sender: No OFD packet to send [01:55:30]OFD Sender: No OFD packet to send [01:55:35]OFD Sender: No OFD packet to send [01:55:40]OFD Sender: No OFD packet to send [01:55:45]OFD Sender: No OFD packet to send [01:55:50]OFD Sender: No OFD packet to send [01:55:55]OFD Sender: No OFD packet to send [01:56:00]OFD Sender: No OFD packet to send [01:56:05]OFD Sender: No OFD packet to send [01:56:10]OFD Sender: No OFD packet to send [01:56:15]OFD Sender: No OFD packet to send [01:56:20]OFD Sender: No OFD packet to send [01:56:25]OFD Sender: No OFD packet to send [01:56:30]OFD Sender: No OFD packet to send [01:56:35]OFD Sender: No OFD packet to send [01:56:40]OFD Sender: No OFD packet to send [01:56:45]OFD Sender: No OFD packet to send [01:56:50]OFD Sender: No OFD packet to send [01:56:55]OFD Sender: No OFD packet to send [01:57:00]OFD Sender: No OFD packet to send [01:57:05]OFD Sender: No OFD packet to send [01:57:10]OFD Sender: No OFD packet to send [01:57:15]OFD Sender: No OFD packet to send [01:57:20]OFD Sender: No OFD packet to send [01:57:25]OFD Sender: No OFD packet to send [01:57:30]OFD Sender: No OFD packet to send [01:57:35]OFD Sender: No OFD packet to send [01:57:40]OFD Sender: No OFD packet to send [01:57:45]OFD Sender: No OFD packet to send [01:57:50]OFD Sender: No OFD packet to send [01:57:55]OFD Sender: No OFD packet to send [01:58:00]OFD Sender: No OFD packet to send [01:58:05]OFD Sender: No OFD packet to send [01:58:10]OFD Sender: No OFD packet to send [01:58:15]OFD Sender: No OFD packet to send [01:58:20]OFD Sender: No OFD packet to send [01:58:25]OFD Sender: No OFD packet to send [01:58:30]OFD Sender: No OFD packet to send [01:58:35]OFD Sender: No OFD packet to send [01:58:40]OFD Sender: No OFD packet to send [01:58:45]OFD Sender: No OFD packet to send [01:58:50]OFD Sender: No OFD packet to send [01:58:55]OFD Sender: No OFD packet to send [01:59:00]OFD Sender: No OFD packet to send [01:59:05]OFD Sender: No OFD packet to send [01:59:10]OFD Sender: No OFD packet to send [01:59:15]OFD Sender: No OFD packet to send [01:59:20]OFD Sender: No OFD packet to send [01:59:25]OFD Sender: No OFD packet to send [01:59:30]OFD Sender: No OFD packet to send [01:59:35]OFD Sender: No OFD packet to send [01:59:40]OFD Sender: No OFD packet to send [01:59:45]accept exits with 9 [01:59:45]New connection [01:59:45]New thread 3066785124 created [01:59:45]Thread 3066928484 joined [01:59:45]Waiting for new connection... [01:59:45] Sock 9.Parse request [01:59:45]Sock 9.Check first char [01:59:45]Sock 9.First char is OK [01:59:45]request: POST /json_proto HTTP/1.0 [01:59:45]Method: POST [01:59:45]URL: /json_proto [01:59:45]Method is POST - this is cgi request [01:59:45]url: /json_proto [01:59:45]query_string will be loaded in cgi processing [01:59:45]execute_cgi json_proto POST (null) [01:59:45]execute_cgi path=json_proto method=POST [01:59:45]POST find Content-Length [01:59:45]Host: 172.17.56.4:8080 [01:59:45]Content-Length: 677 [01:59:45]Content-Type: application/json [01:59:45] [01:59:45]POST finish read [01:59:45]Found Content-Length = 677 [01:59:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459235", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "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" ] } } [01:59:45]execute_script... [01:59: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)459235", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "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" ] } } [01:59:45]POST & json_proto [01:59:45]process_json_proto [01:59:45]json parsed OK: [01:59:45]protocol is kg_v1.0 [01:59:45]action value=close_receipt [01:59:45]process_action close_receipt [01:59:45]cmd_close_receipt [01:59:45]MH_GetDate [01:59:45]Write to MH i2c: F0 00 00 7F 16 84 [01:59:45]Write i2c OK [01:59:45]MH_I2C_Read... [01:59:45]Read from MH i2c: F0 [01:59:45]MH_I2C_Read... [01:59:45]Read from MH i2c: F0 09 00 [01:59:45]MH_I2C_Read... [01:59:45]Read from MH i2c: F0 09 00 7F 16 00 94 82 94 66 C9 DC B2 64 58 [01:59:45]GetLastDocTimeStamp 1721006172 [01:59:45]current date 1721008788 [01:59:45]FM_GetShiftState [01:59:45]SAM_PROTO_GetShiftState [01:59:45]wFMCommunicate request_size=4 [01:59:45]MH_SAM_APDU [01:59:45]CAPDU: 80 13 01 00 [01:59:45]Write to MH i2c: E2 08 00 80 16 80 13 01 00 00 00 00 00 13 [01:59:45]Write i2c OK [01:59:45]MH_I2C_Read... [01:59:45]OFD Sender: No OFD packet to send [01:59:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:59:45]Read from MH i2c: E2 [01:59:45]MH_I2C_Read... [01:59:45]Read from MH i2c: E2 0E 00 [01:59:45]MH_I2C_Read... [01:59:45]Read from MH i2c: E2 0E 00 80 16 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 EC [01:59:45]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [01:59:45]wFMCommunicate OK [01:59:45]SAM_PROTO_GetShiftState done [01:59:45]FM_GetShiftState done [01:59:45]opened in 1721003876 [01:59:45]opened+sec_in_day 1721090276 [01:59:45]quantity*price = 20003 [01:59:45]sum+1 = 20004 [01:59:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 7 15.07.2024 01:59 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165134 ФПД: 169668704635070 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T015948&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165134&fm=169668704635070&tin=02508201610067®Number=0000000000090829&sum=20000 [01:59:46]StoreToDocumentArchive [01:59:46]shift 448 fd 165134 [01:59:46]save to /storage/0448/doc_00165134 [01:59:46]save last doc name /storage/0448/doc_00165134 to /storage/kkm_last_doc_name [01:59:46]save OK [01:59:46]Clear old archive folders... [01:59:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:59:46]tlvbuf is B6EBB620 [01:59:46]SAM_PROTO_ClearQueue [01:59:46]wFMCommunicate request_size=4 [01:59:46]MH_SAM_APDU [01:59:46]CAPDU: 80 09 00 00 [01:59:46]Write to MH i2c: E2 08 00 8D 16 80 09 00 00 00 00 00 00 15 [01:59:46]Write i2c OK [01:59:46]MH_I2C_Read... [01:59:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:59:46]Read from MH i2c: E2 [01:59:46]MH_I2C_Read... [01:59:46]Read from MH i2c: E2 03 00 [01:59:46]MH_I2C_Read... [01:59:46]Read from MH i2c: E2 03 00 8D 16 00 90 00 17 [01:59:46]RAPDU: 90 00 [01:59:46]wFMCommunicate OK [01:59:46]SAM_PROTO_ClearQueue done [01:59:46]KKMCreateOFDPacket [01:59:46]OFDProtocolAddRootSTLVToBuf [01:59:46]FM_MakeSignedData [01:59:46]FM_MakeSignedData [01:59:46]SAM_PROTO_SignData [01:59:46]wFMCommunicate request_size=4 [01:59:46]MH_SAM_APDU [01:59:46]CAPDU: 80 0D 01 02 [01:59:46]Write to MH i2c: E2 08 00 8E 16 80 0D 01 02 00 00 00 00 1D [01:59:46]Write i2c OK [01:59:46]MH_I2C_Read... [01:59:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:59:46]Read from MH i2c: E2 [01:59:46]MH_I2C_Read... [01:59:46]Read from MH i2c: E2 03 00 [01:59:46]MH_I2C_Read... [01:59:46]Read from MH i2c: E2 03 00 8E 16 00 90 00 18 [01:59:46]RAPDU: 90 00 [01:59:46]wFMCommunicate OK [01:59:46]wFMCommunicate request_size=255 [01:59:46]MH_SAM_APDU [01:59:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 07 00 00 00 F4 03 04 00 94 82 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0E 85 02 00 35 04 06 00 9A [01:59:46]Write to MH i2c: E2 02 01 8F 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 07 00 00 00 F4 03 04 00 94 82 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0E 85 02 00 35 04 06 00 9A 00 00 3E [01:59:46]Write i2c OK [01:59:46]MH_I2C_Read... [01:59:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:59:47]Read from MH i2c: E2 [01:59:47]MH_I2C_Read... [01:59:47]Read from MH i2c: E2 03 00 [01:59:47]MH_I2C_Read... [01:59:47]Read from MH i2c: E2 03 00 8F 16 00 90 00 19 [01:59:47]RAPDU: 90 00 [01:59:47]wFMCommunicate OK [01:59:47]wFMCommunicate request_size=10 [01:59:47]MH_SAM_APDU [01:59:47]CAPDU: 80 0D 02 02 05 50 12 DE 88 BE [01:59:47]Write to MH i2c: E2 0D 00 90 16 80 0D 02 02 05 00 50 12 DE 88 BE 00 00 B0 [01:59:47]Write i2c OK [01:59:47]MH_I2C_Read... [01:59:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:59:47]Read from MH i2c: E2 [01:59:47]MH_I2C_Read... [01:59:47]Read from MH i2c: E2 03 00 [01:59:47]MH_I2C_Read... [01:59:47]Read from MH i2c: E2 03 00 90 16 00 90 00 1A [01:59:47]RAPDU: 90 00 [01:59:47]wFMCommunicate OK [01:59:47]wFMCommunicate request_size=4 [01:59:47]MH_SAM_APDU [01:59:47]CAPDU: 80 0D 03 02 [01:59:47]Write to MH i2c: E2 08 00 91 16 80 0D 03 02 00 00 00 00 22 [01:59:47]Write i2c OK [01:59:47]MH_I2C_Read... [01:59:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:59:47]Read from MH i2c: E2 [01:59:47]MH_I2C_Read... [01:59:47]Read from MH i2c: E2 0B 00 [01:59:47]MH_I2C_Read... [01:59:47]Read from MH i2c: E2 0B 00 91 16 00 D8 69 F9 6C 3E DE C3 E9 90 00 91 [01:59:47]RAPDU: D8 69 F9 6C 3E DE C3 E9 90 00 [01:59:47]wFMCommunicate OK [01:59:47]SAM_PROTO_SignData done [01:59:47]FM_MakeSignedData done [01:59:47]CreateOFDProtocolMessage [01:59:47]wFMCommunicate request_size=4 [01:59:47]MH_SAM_APDU [01:59:47]CAPDU: 80 11 00 00 [01:59:47]Write to MH i2c: E2 08 00 92 16 80 11 00 00 00 00 00 00 22 [01:59:47]Write i2c OK [01:59:47]MH_I2C_Read... [01:59:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:59:47]Read from MH i2c: E2 [01:59:47]MH_I2C_Read... [01:59:47]Read from MH i2c: E2 17 00 [01:59:47]MH_I2C_Read... [01:59:47]Read from MH i2c: E2 17 00 92 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 78 [01:59:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [01:59:47]wFMCommunicate OK [01:59:47]CreateOFDProtocolMessage done [01:59:47]OFDSenderStorePacket 165134 [01:59:47]StoreOFDPacket docnum=165134 [01:59:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 5D 4F 07 01 32 A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 07 00 00 00 F4 03 04 00 94 82 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0E 85 02 00 35 04 06 00 9A 50 12 DE 88 BE D8 69 F9 6C 3E DE C3 E9 [01:59:47]CheckFolder [01:59:47]dirname=/storage/ofd_packets [01:59:47]CheckFolder done [01:59:47]ProducePacketName [01:59:47]name=ofd_packets/00165134 [01:59:47]NVStorageSaveData ofd_packets/00165134 [01:59:47]File name is /storage/ofd_packets/00165134 [01:59:47]Write 301 bytes [01:59:47]NVStorageSaveData done [01:59:47]OFDSenderStorePacket done [01:59:47]KKMCreateOFDPacket done [01:59:47]NVStorageSaveData kkm_last_timestamp [01:59:47]File name is /storage/kkm_last_timestamp [01:59:47]Write 4 bytes [01:59:47]NVStorageSaveData done [01:59:47]ExternCall_PrintAddStr [01:59:47]wPrintStart [01:59:47]Write to MH i2c: 01 00 00 93 16 A9 [01:59:47]Write i2c OK [01:59:47]MH_I2C_Read... [01:59:47]Read from MH i2c: 01 [01:59:47]MH_I2C_Read... [01:59:47]Read from MH i2c: 01 07 00 [01:59:47]MH_I2C_Read... [01:59:47]Read from MH i2c: 01 07 00 93 16 00 00 00 00 00 FF 0F BE [01:59:47]RasterBufferAndPrint [01:59:47]line Счет N : (1)459235 [01:59:47]line ИНН: 02508201610067 [01:59:47]line Контрольно-Кассовый Чек [01:59:47]line ПРОДАЖА [01:59:47]line ТРК (МРК, ГНК) : 22 [01:59:47]line Товар: 2710124130 [01:59:47]line Аи-92-К-5 [01:59:47]line 3.040 * 65.80 [01:59:47]line = 200.03 [01:59:47]line НДС 12% НСП 1% [01:59:47]line > о реализуемом товаре [01:59:47]line ОКРУГЛЕНИЕ: -0.03 [01:59:47]line ИТОГО: 200.00 [01:59:47]line Внесено: 200.00 [01:59:47]line СДАЧА: 0.00 [01:59:47]line НСП 1% : 1.77 [01:59:47]line НДС 12% : 21.24 [01:59:47]line Наличными: 200.00 [01:59:47]line Безнал.: 0.00 [01:59:47]line Место: АЗС № 72 "Партнер Нефть" [01:59:47]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [01:59:47]line СНО: Общий режим [01:59:47]line Чек 7 15.07.2024 01:59 [01:59:47]line Смена: 448 ФФД: 1.0 [01:59:47]line ЗНМ: 0300000160 [01:59:47]line РНМ: 0000000000090829 [01:59:47]line Версия ККМ: 001 [01:59:47]line ФМ: 0000000000874718 [01:59:47]line ФД: 165134 [01:59:47]line ФПД: 169668704635070 [01:59:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T015948&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165134&fm=169668704635070&tin=02508201610067®Number=0000000000090829&sum=20000 [01:59:47]OFD Sender: Processing packet 165134 [packets to send 106, broken 105] [01:59:47]ProducePacketName [01:59:47]name=ofd_packets/00165134 [01:59:47]OFD Sender: To server: pG, [01:59:47]CommunicateWithHost lk.salyk.kg:30040 [01:59:47]ConnectInit lk.salyk.kg [01:59:47]written 0, free lines is 4095 [01:59:47]Connected sock=10 [01:59:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 5D 4F 07 01 32 A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 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 07 00 00 00 F4 03 04 00 94 82 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0E 85 02 00 35 04 06 00 9A 50 12 DE 88 BE D8 69 F9 6C 3E DE C3 E9 [01:59:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 EC BC 47 00 77 BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0E 85 02 00 F4 03 04 00 20 29 94 66 B6 04 01 00 00 F4 B7 31 55 0A 1C B9 98 [01:59:47]CommunicateWithHost err = 0 [01:59:47]CheckOFDResponse [01:59:47]1017 (14) - 77093643461234 [01:59:47]1041 (16) - 0000000000874718 [01:59:47]1040 (4) - 165134 [01:59:47]1012 (4) - 14.07.2024 19:38 [01:59:47]1206 (1) - 0 [01:59:47]OFD Sender: Remove packet 165134 [01:59:47]ProducePacketName [01:59:47]name=ofd_packets/00165134 [01:59:47]NVStorageDeleteData [01:59:48]Write to MH i2c: 01 00 00 BD 16 D3 [01:59:48]Write i2c OK [01:59:48]MH_I2C_Read... [01:59:48]Read from MH i2c: 01 [01:59:48]MH_I2C_Read... [01:59:48]Read from MH i2c: 01 07 00 [01:59:48]MH_I2C_Read... [01:59:48]Read from MH i2c: 01 07 00 BD 16 00 00 00 00 00 FA 0C E0 [01:59:48]RasterBufferAndPrint [01:59:48]line [01:59:48]line [01:59:48]line [01:59:48]line [01:59:48]line [01:59:48]written 0, free lines is 3328 [01:59:48]MH_Cut [01:59:48]Write to MH i2c: D1 01 00 C4 16 01 AC [01:59:48]Write i2c OK [01:59:48]MH_I2C_Read... [01:59:48]Read from MH i2c: D1 [01:59:48]MH_I2C_Read... [01:59:48]Read from MH i2c: D1 01 00 [01:59:48]MH_I2C_Read... [01:59:48]Read from MH i2c: D1 01 00 C4 16 00 AB [01:59:48]Write to MH i2c: 01 00 00 C5 16 DB [01:59:48]Write i2c OK [01:59:48]MH_I2C_Read... [01:59:48]OFD Sender: No OFD packet to send [01:59:48]*** Cut start [01:59:48]*** Partial cut [01:59:48]*** CUTSNS_PIN = 1 [01:59:48]*** CUTSNS_PIN = 0 [01:59:48]*** Brake cut motor [01:59:49]Read from MH i2c: 01 [01:59:49]MH_I2C_Read... [01:59:49]*** Stop cut motor [01:59:49]*** Cut end [01:59:49]Read from MH i2c: 01 07 00 [01:59:49]MH_I2C_Read... [01:59:49]Read from MH i2c: 01 07 00 C5 16 00 00 00 00 00 FF 0F F0 [01:59:49]process_action close_receipt done [01:59:49]requested_data is exist [01:59:49]produce_requested_data [01:59:49]requested_item fm.sn is exist - process it [01:59:49]wFMCommunicate request_size=4 [01:59:49]MH_SAM_APDU [01:59:49]CAPDU: 80 11 00 00 [01:59:49]Write to MH i2c: E2 08 00 C6 16 80 11 00 00 00 00 00 00 56 [01:59:49]Write i2c OK [01:59:49]MH_I2C_Read... [01:59:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:59:49]Read from MH i2c: E2 [01:59:49]MH_I2C_Read... [01:59:49]Read from MH i2c: E2 17 00 [01:59:49]MH_I2C_Read... [01:59:49]Read from MH i2c: E2 17 00 C6 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 AC [01:59:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [01:59:49]wFMCommunicate OK [01:59:49]requested_item fd.num is exist - process it [01:59:49]SAM_PROTO_GetFieldsCounters [01:59:49]wFMCommunicate request_size=4 [01:59:49]MH_SAM_APDU [01:59:49]CAPDU: 80 13 00 00 [01:59:49]Write to MH i2c: E2 08 00 C7 16 80 13 00 00 00 00 00 00 59 [01:59:49]Write i2c OK [01:59:49]MH_I2C_Read... [01:59:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:59:49]Read from MH i2c: E2 [01:59:49]MH_I2C_Read... [01:59:49]Read from MH i2c: E2 62 00 [01:59:49]MH_I2C_Read... [01:59:49]Read from MH i2c: E2 62 00 C7 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 0E 85 02 00 0E 04 04 00 C0 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 EB [01:59:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 0E 85 02 00 0E 04 04 00 C0 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 [01:59:49]wFMCommunicate OK [01:59:49]SAM_PROTO_GetFieldsCounters done [01:59:49]requested_item shift.num is exist - process it [01:59:49]requested_item shift.opened is exist - process it [01:59:49]req_shift_opened [01:59:49]FM_GetShiftState [01:59:49]SAM_PROTO_GetShiftState [01:59:49]wFMCommunicate request_size=4 [01:59:49]MH_SAM_APDU [01:59:49]CAPDU: 80 13 01 00 [01:59:49]Write to MH i2c: E2 08 00 C8 16 80 13 01 00 00 00 00 00 5B [01:59:49]Write i2c OK [01:59:49]MH_I2C_Read... [01:59:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:59:49]Read from MH i2c: E2 [01:59:49]MH_I2C_Read... [01:59:49]Read from MH i2c: E2 0E 00 [01:59:49]MH_I2C_Read... [01:59:49]Read from MH i2c: E2 0E 00 C8 16 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 34 [01:59:49]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [01:59:49]wFMCommunicate OK [01:59:49]SAM_PROTO_GetShiftState done [01:59:49]FM_GetShiftState done [01:59:49]req_shift_opened done [01:59:49]requested_item shift.open_date is exist - process it [01:59:49]req_shift_open_date [01:59:49]req_shift_open_date done [01:59:49]produce_requested_data done [01:59:49]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165134,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [01:59:49]process_action_free close_receipt [01:59:49]json_value_free [01:59:49]json_value_free done [01:59:49]process_json_proto returns [01:59:49]Send response to host [01:59:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165134,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [01:59:49]free response buf [01:59:49]execute_script done [01:59:49]execute_script returns [01:59:49]free content buf [01:59:49]Sock 9.Close socket [01:59:49]Sock 9.Thread stoped [01:59:53]OFD Sender: No OFD packet to send [01:59:58]OFD Sender: No OFD packet to send [02:00:03]OFD Sender: No OFD packet to send [02:00:08]OFD Sender: No OFD packet to send [02:00:13]OFD Sender: No OFD packet to send [02:00:18]OFD Sender: No OFD packet to send [02:00:23]OFD Sender: No OFD packet to send [02:00:28]OFD Sender: No OFD packet to send [02:00:33]OFD Sender: No OFD packet to send [02:00:38]OFD Sender: No OFD packet to send [02:00:43]OFD Sender: No OFD packet to send [02:00:48]OFD Sender: No OFD packet to send [02:00:53]OFD Sender: No OFD packet to send [02:00:58]OFD Sender: No OFD packet to send [02:01:03]OFD Sender: No OFD packet to send [02:01:08]OFD Sender: No OFD packet to send [02:01:13]OFD Sender: No OFD packet to send [02:01:18]OFD Sender: No OFD packet to send [02:01:23]OFD Sender: No OFD packet to send [02:01:28]OFD Sender: No OFD packet to send [02:01:33]OFD Sender: No OFD packet to send [02:01:38]OFD Sender: No OFD packet to send [02:01:43]OFD Sender: No OFD packet to send [02:01:48]OFD Sender: No OFD packet to send [02:01:53]OFD Sender: No OFD packet to send [02:01:58]OFD Sender: No OFD packet to send [02:02:03]OFD Sender: No OFD packet to send [02:02:08]OFD Sender: No OFD packet to send [02:02:13]OFD Sender: No OFD packet to send [02:02:18]OFD Sender: No OFD packet to send [02:02:23]OFD Sender: No OFD packet to send [02:02:28]OFD Sender: No OFD packet to send [02:02:33]OFD Sender: No OFD packet to send [02:02:38]OFD Sender: No OFD packet to send [02:02:43]OFD Sender: No OFD packet to send [02:02:48]OFD Sender: No OFD packet to send [02:02:53]OFD Sender: No OFD packet to send [02:02:58]OFD Sender: No OFD packet to send [02:03:03]OFD Sender: No OFD packet to send [02:03:08]OFD Sender: No OFD packet to send [02:03:13]OFD Sender: No OFD packet to send [02:03:18]OFD Sender: No OFD packet to send [02:03:23]OFD Sender: No OFD packet to send [02:03:28]OFD Sender: No OFD packet to send [02:03:33]OFD Sender: No OFD packet to send [02:03:38]OFD Sender: No OFD packet to send [02:03:43]OFD Sender: No OFD packet to send [02:03:48]OFD Sender: No OFD packet to send [02:03:53]OFD Sender: No OFD packet to send [02:03:58]OFD Sender: No OFD packet to send [02:04:03]OFD Sender: No OFD packet to send [02:04:08]OFD Sender: No OFD packet to send [02:04:13]OFD Sender: No OFD packet to send [02:04:18]OFD Sender: No OFD packet to send [02:04:23]OFD Sender: No OFD packet to send [02:04:28]OFD Sender: No OFD packet to send [02:04:33]OFD Sender: No OFD packet to send [02:04:38]OFD Sender: No OFD packet to send [02:04:43]OFD Sender: No OFD packet to send [02:04:48]OFD Sender: No OFD packet to send [02:04:53]OFD Sender: No OFD packet to send [02:04:58]OFD Sender: No OFD packet to send [02:05:03]OFD Sender: No OFD packet to send [02:05:08]OFD Sender: No OFD packet to send [02:05:13]OFD Sender: No OFD packet to send [02:05:18]OFD Sender: No OFD packet to send [02:05:23]OFD Sender: No OFD packet to send [02:05:28]OFD Sender: No OFD packet to send [02:05:33]OFD Sender: No OFD packet to send [02:05:38]OFD Sender: No OFD packet to send [02:05:43]OFD Sender: No OFD packet to send [02:05:48]OFD Sender: No OFD packet to send [02:05:53]OFD Sender: No OFD packet to send [02:05:58]OFD Sender: No OFD packet to send [02:06:03]OFD Sender: No OFD packet to send [02:06:08]OFD Sender: No OFD packet to send [02:06:13]OFD Sender: No OFD packet to send [02:06:18]OFD Sender: No OFD packet to send [02:06:23]OFD Sender: No OFD packet to send [02:06:28]OFD Sender: No OFD packet to send [02:06:33]OFD Sender: No OFD packet to send [02:06:38]OFD Sender: No OFD packet to send [02:06:43]OFD Sender: No OFD packet to send [02:06:48]OFD Sender: No OFD packet to send [02:06:53]OFD Sender: No OFD packet to send [02:06:58]OFD Sender: No OFD packet to send [02:07:03]OFD Sender: No OFD packet to send [02:07:08]OFD Sender: No OFD packet to send [02:07:13]OFD Sender: No OFD packet to send [02:07:18]OFD Sender: No OFD packet to send [02:07:23]OFD Sender: No OFD packet to send [02:07:28]OFD Sender: No OFD packet to send [02:07:33]OFD Sender: No OFD packet to send [02:07:38]OFD Sender: No OFD packet to send [02:07:43]OFD Sender: No OFD packet to send [02:07:48]OFD Sender: No OFD packet to send [02:07:53]OFD Sender: No OFD packet to send [02:07:58]OFD Sender: No OFD packet to send [02:08:03]OFD Sender: No OFD packet to send [02:08:06]accept exits with 7 [02:08:06]New connection [02:08:06]New thread 3066928484 created [02:08:06]Thread 3066785124 joined [02:08:06]Waiting for new connection... [02:08:06] Sock 7.Parse request [02:08:06]Sock 7.Check first char [02:08:06]Sock 7.First char is OK [02:08:06]request: POST /json_proto HTTP/1.0 [02:08:06]Method: POST [02:08:06]URL: /json_proto [02:08:06]Method is POST - this is cgi request [02:08:06]url: /json_proto [02:08:06]query_string will be loaded in cgi processing [02:08:06]execute_cgi json_proto POST (null) [02:08:06]execute_cgi path=json_proto method=POST [02:08:06]POST find Content-Length [02:08:06]Host: 172.17.56.4:8080 [02:08:06]Content-Length: 790 [02:08:06]Content-Type: application/json [02:08:06] [02:08:06]POST finish read [02:08:06]Found Content-Length = 790 [02:08:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459236", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 6.140, "sum" : 400.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 400.45 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:08:06]execute_script... [02:08: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)459236", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 6.140, "sum" : 400.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 400.45 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:08:06]POST & json_proto [02:08:06]process_json_proto [02:08:06]json parsed OK: [02:08:06]protocol is kg_v1.0 [02:08:06]action value=close_receipt [02:08:06]process_action close_receipt [02:08:06]cmd_close_receipt [02:08:06]MH_GetDate [02:08:06]Write to MH i2c: F0 00 00 C9 16 CE [02:08:06]Write i2c OK [02:08:06]MH_I2C_Read... [02:08:06]Read from MH i2c: F0 [02:08:06]MH_I2C_Read... [02:08:06]Read from MH i2c: F0 09 00 [02:08:06]MH_I2C_Read... [02:08:06]Read from MH i2c: F0 09 00 C9 16 00 89 84 94 66 C9 DC B2 64 99 [02:08:06]GetLastDocTimeStamp 1721008788 [02:08:06]current date 1721009289 [02:08:06]FM_GetShiftState [02:08:06]SAM_PROTO_GetShiftState [02:08:06]wFMCommunicate request_size=4 [02:08:06]MH_SAM_APDU [02:08:06]CAPDU: 80 13 01 00 [02:08:06]Write to MH i2c: E2 08 00 CA 16 80 13 01 00 00 00 00 00 5D [02:08:06]Write i2c OK [02:08:06]MH_I2C_Read... [02:08:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:08:06]Read from MH i2c: E2 [02:08:06]MH_I2C_Read... [02:08:06]Read from MH i2c: E2 0E 00 [02:08:06]MH_I2C_Read... [02:08:06]Read from MH i2c: E2 0E 00 CA 16 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 36 [02:08:06]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [02:08:06]wFMCommunicate OK [02:08:06]SAM_PROTO_GetShiftState done [02:08:06]FM_GetShiftState done [02:08:06]opened in 1721003876 [02:08:06]opened+sec_in_day 1721090276 [02:08:06]quantity*price = 40045 [02:08:06]sum+1 = 40046 [02:08:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.45 НСП 1% : 3.54 НДС 12% : 42.53 Наличными: 0.00 Безнал.: 400.45 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 8 15.07.2024 02:08 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 165135 ФПД: 180042705590290 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T020809&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165135&fm=180042705590290&tin=02508201610067®Number=0000000000090829&sum=40045 [02:08:07]StoreToDocumentArchive [02:08:07]shift 448 fd 165135 [02:08:07]save to /storage/0448/doc_00165135 [02:08:07]save last doc name /storage/0448/doc_00165135 to /storage/kkm_last_doc_name [02:08:07]save OK [02:08:07]Clear old archive folders... [02:08:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:08:07]tlvbuf is 013BFF40 [02:08:07]SAM_PROTO_ClearQueue [02:08:07]wFMCommunicate request_size=4 [02:08:07]MH_SAM_APDU [02:08:07]CAPDU: 80 09 00 00 [02:08:07]Write to MH i2c: E2 08 00 D7 16 80 09 00 00 00 00 00 00 5F [02:08:07]Write i2c OK [02:08:07]MH_I2C_Read... [02:08:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:08:07]Read from MH i2c: E2 [02:08:07]MH_I2C_Read... [02:08:07]Read from MH i2c: E2 03 00 [02:08:07]MH_I2C_Read... [02:08:07]Read from MH i2c: E2 03 00 D7 16 00 90 00 61 [02:08:07]RAPDU: 90 00 [02:08:07]wFMCommunicate OK [02:08:07]SAM_PROTO_ClearQueue done [02:08:07]KKMCreateOFDPacket [02:08:07]OFDProtocolAddRootSTLVToBuf [02:08:07]FM_MakeSignedData [02:08:07]FM_MakeSignedData [02:08:07]SAM_PROTO_SignData [02:08:07]wFMCommunicate request_size=4 [02:08:07]MH_SAM_APDU [02:08:07]CAPDU: 80 0D 01 02 [02:08:07]Write to MH i2c: E2 08 00 D8 16 80 0D 01 02 00 00 00 00 67 [02:08:07]Write i2c OK [02:08:07]MH_I2C_Read... [02:08:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:08:07]Read from MH i2c: E2 [02:08:07]MH_I2C_Read... [02:08:07]Read from MH i2c: E2 03 00 [02:08:07]MH_I2C_Read... [02:08:07]Read from MH i2c: E2 03 00 D8 16 00 90 00 62 [02:08:07]RAPDU: 90 00 [02:08:07]wFMCommunicate OK [02:08:07]wFMCommunicate request_size=255 [02:08:07]MH_SAM_APDU [02:08:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 17 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6D 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 9D 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6D 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 89 84 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0F 85 02 00 35 04 06 00 A3 [02:08:07]Write to MH i2c: E2 02 01 D9 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 17 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6D 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 9D 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6D 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 89 84 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0F 85 02 00 35 04 06 00 A3 00 00 51 [02:08:07]Write i2c OK [02:08:07]MH_I2C_Read... [02:08:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:08:08]Read from MH i2c: E2 [02:08:08]MH_I2C_Read... [02:08:08]Read from MH i2c: E2 03 00 [02:08:08]MH_I2C_Read... [02:08:08]Read from MH i2c: E2 03 00 D9 16 00 90 00 63 [02:08:08]RAPDU: 90 00 [02:08:08]wFMCommunicate OK [02:08:08]wFMCommunicate request_size=10 [02:08:08]MH_SAM_APDU [02:08:08]CAPDU: 80 0D 02 02 05 BF 75 82 D8 12 [02:08:08]Write to MH i2c: E2 0D 00 DA 16 80 0D 02 02 05 00 BF 75 82 D8 12 00 00 14 [02:08:08]Write i2c OK [02:08:08]MH_I2C_Read... [02:08:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:08:08]Read from MH i2c: E2 [02:08:08]MH_I2C_Read... [02:08:08]Read from MH i2c: E2 03 00 [02:08:08]MH_I2C_Read... [02:08:08]Read from MH i2c: E2 03 00 DA 16 00 90 00 64 [02:08:08]RAPDU: 90 00 [02:08:08]wFMCommunicate OK [02:08:08]wFMCommunicate request_size=4 [02:08:08]MH_SAM_APDU [02:08:08]CAPDU: 80 0D 03 02 [02:08:08]Write to MH i2c: E2 08 00 DB 16 80 0D 03 02 00 00 00 00 6C [02:08:08]Write i2c OK [02:08:08]MH_I2C_Read... [02:08:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:08:08]Read from MH i2c: E2 [02:08:08]MH_I2C_Read... [02:08:08]Read from MH i2c: E2 0B 00 [02:08:08]MH_I2C_Read... [02:08:08]Read from MH i2c: E2 0B 00 DB 16 00 A2 A9 A1 E7 FE 03 BE 15 90 00 14 [02:08:08]RAPDU: A2 A9 A1 E7 FE 03 BE 15 90 00 [02:08:08]wFMCommunicate OK [02:08:08]SAM_PROTO_SignData done [02:08:08]FM_MakeSignedData done [02:08:08]CreateOFDProtocolMessage [02:08:08]wFMCommunicate request_size=4 [02:08:08]MH_SAM_APDU [02:08:08]CAPDU: 80 11 00 00 [02:08:08]Write to MH i2c: E2 08 00 DC 16 80 11 00 00 00 00 00 00 6C [02:08:08]Write i2c OK [02:08:08]MH_I2C_Read... [02:08:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:08:08]Read from MH i2c: E2 [02:08:08]MH_I2C_Read... [02:08:08]Read from MH i2c: E2 17 00 [02:08:08]MH_I2C_Read... [02:08:08]Read from MH i2c: E2 17 00 DC 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C2 [02:08:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [02:08:08]wFMCommunicate OK [02:08:08]CreateOFDProtocolMessage done [02:08:08]OFDSenderStorePacket 165135 [02:08:08]StoreOFDPacket docnum=165135 [02:08:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 36 EB 07 01 7F BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 17 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6D 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 9D 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6D 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 89 84 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0F 85 02 00 35 04 06 00 A3 BF 75 82 D8 12 A2 A9 A1 E7 FE 03 BE 15 [02:08:08]CheckFolder [02:08:08]dirname=/storage/ofd_packets [02:08:08]CheckFolder done [02:08:08]ProducePacketName [02:08:08]name=ofd_packets/00165135 [02:08:08]NVStorageSaveData ofd_packets/00165135 [02:08:08]File name is /storage/ofd_packets/00165135 [02:08:08]Write 301 bytes [02:08:08]NVStorageSaveData done [02:08:08]OFDSenderStorePacket done [02:08:08]KKMCreateOFDPacket done [02:08:08]NVStorageSaveData kkm_last_timestamp [02:08:08]File name is /storage/kkm_last_timestamp [02:08:08]Write 4 bytes [02:08:08]NVStorageSaveData done [02:08:08]ExternCall_PrintAddStr [02:08:08]wPrintStart [02:08:08]Write to MH i2c: 01 00 00 DD 16 F3 [02:08:08]Write i2c OK [02:08:08]MH_I2C_Read... [02:08:08]Read from MH i2c: 01 [02:08:08]MH_I2C_Read... [02:08:08]Read from MH i2c: 01 07 00 [02:08:08]MH_I2C_Read... [02:08:08]Read from MH i2c: 01 07 00 DD 16 00 00 00 00 00 FF 0F 08 [02:08:08]RasterBufferAndPrint [02:08:08]line Счет N : (1)459236 [02:08:08]line ИНН: 02508201610067 [02:08:08]line Контрольно-Кассовый Чек [02:08:08]line ПРОДАЖА [02:08:08]line ТРК (МРК, ГНК) : 22 [02:08:08]line Товар: 2710124130 [02:08:08]line Аи-92-К-5 [02:08:08]line 6.140 * 65.22 [02:08:08]line = 400.45 [02:08:08]line НДС 12% НСП 1% [02:08:08]line > о реализуемом товаре [02:08:08]line ИТОГО: 400.45 [02:08:08]line НСП 1% : 3.54 [02:08:08]line НДС 12% : 42.53 [02:08:08]line Наличными: 0.00 [02:08:08]line Безнал.: 400.45 [02:08:08]line Место: АЗС № 72 "Партнер Нефть" [02:08:08]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [02:08:08]line СНО: Общий режим [02:08:08]line Чек 8 15.07.2024 02:08 [02:08:08]line Смена: 448 ФФД: 1.0 [02:08:08]line ЗНМ: 0300000160 [02:08:08]line РНМ: 0000000000090829 [02:08:08]line Версия ККМ: 001 [02:08:08]line Платежная система: KICB Банк [02:08:08]line ФМ: 0000000000874718 [02:08:08]line ФД: 165135 [02:08:08]line ФПД: 180042705590290 [02:08:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T020809&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165135&fm=180042705590290&tin=02508201610067®Number=0000000000090829&sum=40045 [02:08:08]written 0, free lines is 4095 [02:08:08]OFD Sender: Processing packet 165135 [packets to send 106, broken 105] [02:08:08]ProducePacketName [02:08:08]name=ofd_packets/00165135 [02:08:08]OFD Sender: To server: pG, [02:08:08]CommunicateWithHost lk.salyk.kg:30040 [02:08:08]ConnectInit lk.salyk.kg [02:08:08]Connected sock=10 [02:08:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 36 EB 07 01 7F BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 17 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6D 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 9D 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6D 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 89 84 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0F 85 02 00 35 04 06 00 A3 BF 75 82 D8 12 A2 A9 A1 E7 FE 03 BE 15 [02:08:08]Write to MH i2c: 01 00 00 06 17 1D [02:08:08]Write i2c OK [02:08:08]MH_I2C_Read... [02:08:08]Read from MH i2c: 01 [02:08:08]MH_I2C_Read... [02:08:08]Read from MH i2c: 01 07 00 [02:08:08]MH_I2C_Read... [02:08:08]Read from MH i2c: 01 07 00 06 17 00 00 00 00 00 0E 0D 3F [02:08:08]RasterBufferAndPrint [02:08:08]line [02:08:08]line [02:08:08]line [02:08:08]line [02:08:08]line [02:08:08]written 0, free lines is 3348 [02:08:08]MH_Cut [02:08:08]Write to MH i2c: D1 01 00 0D 17 01 F6 [02:08:08]Write i2c OK [02:08:08]MH_I2C_Read... [02:08:08]Read from MH i2c: D1 [02:08:08]MH_I2C_Read... [02:08:08]Read from MH i2c: D1 01 00 [02:08:08]MH_I2C_Read... [02:08:08]Read from MH i2c: D1 01 00 0D 17 00 F5 [02:08:08]Write to MH i2c: 01 00 00 0E 17 25 [02:08:08]Write i2c OK [02:08:08]MH_I2C_Read... [02:08:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 31 A2 47 00 B2 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0F 85 02 00 F4 03 04 00 15 2B 94 66 B6 04 01 00 00 18 C2 C1 92 48 42 43 4D [02:08:08]CommunicateWithHost err = 0 [02:08:08]CheckOFDResponse [02:08:08]1017 (14) - 77093643461234 [02:08:08]1041 (16) - 0000000000874718 [02:08:08]1040 (4) - 165135 [02:08:08]1012 (4) - 14.07.2024 19:46 [02:08:08]1206 (1) - 0 [02:08:08]OFD Sender: Remove packet 165135 [02:08:08]ProducePacketName [02:08:08]name=ofd_packets/00165135 [02:08:08]NVStorageDeleteData [02:08:09]*** Cut start [02:08:09]*** Partial cut [02:08:09]*** CUTSNS_PIN = 1 [02:08:09]*** CUTSNS_PIN = 0 [02:08:09]OFD Sender: No OFD packet to send [02:08:09]*** Brake cut motor [02:08:09]Read from MH i2c: 01 [02:08:09]MH_I2C_Read... [02:08:09]*** Stop cut motor [02:08:09]*** Cut end [02:08:09]Read from MH i2c: 01 07 00 [02:08:09]MH_I2C_Read... [02:08:09]Read from MH i2c: 01 07 00 0E 17 00 00 00 00 00 FF 0F 3A [02:08:09]process_action close_receipt done [02:08:09]requested_data is exist [02:08:09]produce_requested_data [02:08:09]requested_item fm.sn is exist - process it [02:08:09]wFMCommunicate request_size=4 [02:08:09]MH_SAM_APDU [02:08:09]CAPDU: 80 11 00 00 [02:08:09]Write to MH i2c: E2 08 00 0F 17 80 11 00 00 00 00 00 00 A0 [02:08:09]Write i2c OK [02:08:09]MH_I2C_Read... [02:08:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:08:10]Read from MH i2c: E2 [02:08:10]MH_I2C_Read... [02:08:10]Read from MH i2c: E2 17 00 [02:08:10]MH_I2C_Read... [02:08:10]Read from MH i2c: E2 17 00 0F 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F6 [02:08:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [02:08:10]wFMCommunicate OK [02:08:10]requested_item fd.num is exist - process it [02:08:10]SAM_PROTO_GetFieldsCounters [02:08:10]wFMCommunicate request_size=4 [02:08:10]MH_SAM_APDU [02:08:10]CAPDU: 80 13 00 00 [02:08:10]Write to MH i2c: E2 08 00 10 17 80 13 00 00 00 00 00 00 A3 [02:08:10]Write i2c OK [02:08:10]MH_I2C_Read... [02:08:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:08:10]Read from MH i2c: E2 [02:08:10]MH_I2C_Read... [02:08:10]Read from MH i2c: E2 62 00 [02:08:10]MH_I2C_Read... [02:08:10]Read from MH i2c: E2 62 00 10 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 0F 85 02 00 0E 04 04 00 C0 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 39 [02:08:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 0F 85 02 00 0E 04 04 00 C0 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 [02:08:10]wFMCommunicate OK [02:08:10]SAM_PROTO_GetFieldsCounters done [02:08:10]requested_item shift.num is exist - process it [02:08:10]requested_item shift.opened is exist - process it [02:08:10]req_shift_opened [02:08:10]FM_GetShiftState [02:08:10]SAM_PROTO_GetShiftState [02:08:10]wFMCommunicate request_size=4 [02:08:10]MH_SAM_APDU [02:08:10]CAPDU: 80 13 01 00 [02:08:10]Write to MH i2c: E2 08 00 11 17 80 13 01 00 00 00 00 00 A5 [02:08:10]Write i2c OK [02:08:10]MH_I2C_Read... [02:08:10]Read from MH i2c: E2 [02:08:10]MH_I2C_Read... [02:08:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:08:10]Read from MH i2c: E2 0E 00 [02:08:10]MH_I2C_Read... [02:08:10]Read from MH i2c: E2 0E 00 11 17 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 7E [02:08:10]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [02:08:10]wFMCommunicate OK [02:08:10]SAM_PROTO_GetShiftState done [02:08:10]FM_GetShiftState done [02:08:10]req_shift_opened done [02:08:10]requested_item shift.open_date is exist - process it [02:08:10]req_shift_open_date [02:08:10]req_shift_open_date done [02:08:10]produce_requested_data done [02:08:10]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165135,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [02:08:10]process_action_free close_receipt [02:08:10]json_value_free [02:08:10]json_value_free done [02:08:10]process_json_proto returns [02:08:10]Send response to host [02:08:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165135,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [02:08:10]free response buf [02:08:10]execute_script done [02:08:10]execute_script returns [02:08:10]free content buf [02:08:10]Sock 7.Close socket [02:08:10]Sock 7.Thread stoped [02:08:14]OFD Sender: No OFD packet to send [02:08:19]OFD Sender: No OFD packet to send [02:08:24]OFD Sender: No OFD packet to send [02:08:29]OFD Sender: No OFD packet to send [02:08:34]OFD Sender: No OFD packet to send [02:08:39]OFD Sender: No OFD packet to send [02:08:44]OFD Sender: No OFD packet to send [02:08:49]OFD Sender: No OFD packet to send [02:08:54]OFD Sender: No OFD packet to send [02:08:59]OFD Sender: No OFD packet to send [02:09:04]OFD Sender: No OFD packet to send [02:09:09]OFD Sender: No OFD packet to send [02:09:14]OFD Sender: No OFD packet to send [02:09:19]OFD Sender: No OFD packet to send [02:09:24]OFD Sender: No OFD packet to send [02:09:29]OFD Sender: No OFD packet to send [02:09:34]OFD Sender: No OFD packet to send [02:09:39]OFD Sender: No OFD packet to send [02:09:44]OFD Sender: No OFD packet to send [02:09:49]OFD Sender: No OFD packet to send [02:09:54]OFD Sender: No OFD packet to send [02:09:59]OFD Sender: No OFD packet to send [02:10:04]OFD Sender: No OFD packet to send [02:10:09]OFD Sender: No OFD packet to send [02:10:14]OFD Sender: No OFD packet to send [02:10:19]OFD Sender: No OFD packet to send [02:10:24]OFD Sender: No OFD packet to send [02:10:29]OFD Sender: No OFD packet to send [02:10:34]OFD Sender: No OFD packet to send [02:10:39]OFD Sender: No OFD packet to send [02:10:44]OFD Sender: No OFD packet to send [02:10:49]OFD Sender: No OFD packet to send [02:10:54]OFD Sender: No OFD packet to send [02:10:59]OFD Sender: No OFD packet to send [02:11:04]OFD Sender: No OFD packet to send [02:11:09]OFD Sender: No OFD packet to send [02:11:14]OFD Sender: No OFD packet to send [02:11:19]OFD Sender: No OFD packet to send [02:11:24]OFD Sender: No OFD packet to send [02:11:29]OFD Sender: No OFD packet to send [02:11:34]OFD Sender: No OFD packet to send [02:11:39]OFD Sender: No OFD packet to send [02:11:44]OFD Sender: No OFD packet to send [02:11:49]OFD Sender: No OFD packet to send [02:11:54]OFD Sender: No OFD packet to send [02:11:59]OFD Sender: No OFD packet to send [02:12:04]OFD Sender: No OFD packet to send [02:12:09]OFD Sender: No OFD packet to send [02:12:14]OFD Sender: No OFD packet to send [02:12:19]OFD Sender: No OFD packet to send [02:12:24]OFD Sender: No OFD packet to send [02:12:29]OFD Sender: No OFD packet to send [02:12:34]OFD Sender: No OFD packet to send [02:12:39]OFD Sender: No OFD packet to send [02:12:44]OFD Sender: No OFD packet to send [02:12:49]OFD Sender: No OFD packet to send [02:12:54]OFD Sender: No OFD packet to send [02:12:59]OFD Sender: No OFD packet to send [02:13:04]OFD Sender: No OFD packet to send [02:13:09]OFD Sender: No OFD packet to send [02:13:14]OFD Sender: No OFD packet to send [02:13:19]OFD Sender: No OFD packet to send [02:13:24]OFD Sender: No OFD packet to send [02:13:29]OFD Sender: No OFD packet to send [02:13:34]OFD Sender: No OFD packet to send [02:13:39]OFD Sender: No OFD packet to send [02:13:44]OFD Sender: No OFD packet to send [02:13:49]OFD Sender: No OFD packet to send [02:13:54]OFD Sender: No OFD packet to send [02:13:59]OFD Sender: No OFD packet to send [02:14:04]OFD Sender: No OFD packet to send [02:14:09]OFD Sender: No OFD packet to send [02:14:14]OFD Sender: No OFD packet to send [02:14:19]OFD Sender: No OFD packet to send [02:14:24]OFD Sender: No OFD packet to send [02:14:29]OFD Sender: No OFD packet to send [02:14:34]OFD Sender: No OFD packet to send [02:14:39]OFD Sender: No OFD packet to send [02:14:44]OFD Sender: No OFD packet to send [02:14:49]OFD Sender: No OFD packet to send [02:14:54]OFD Sender: No OFD packet to send [02:14:59]OFD Sender: No OFD packet to send [02:15:04]OFD Sender: No OFD packet to send [02:15:09]OFD Sender: No OFD packet to send [02:15:14]OFD Sender: No OFD packet to send [02:15:19]OFD Sender: No OFD packet to send [02:15:24]OFD Sender: No OFD packet to send [02:15:29]OFD Sender: No OFD packet to send [02:15:34]OFD Sender: No OFD packet to send [02:15:39]OFD Sender: No OFD packet to send [02:15:44]OFD Sender: No OFD packet to send [02:15:49]OFD Sender: No OFD packet to send [02:15:54]OFD Sender: No OFD packet to send [02:15:59]OFD Sender: No OFD packet to send [02:16:04]OFD Sender: No OFD packet to send [02:16:09]OFD Sender: No OFD packet to send [02:16:14]OFD Sender: No OFD packet to send [02:16:19]OFD Sender: No OFD packet to send [02:16:24]OFD Sender: No OFD packet to send [02:16:29]OFD Sender: No OFD packet to send [02:16:34]OFD Sender: No OFD packet to send [02:16:39]OFD Sender: No OFD packet to send [02:16:45]OFD Sender: No OFD packet to send [02:16:50]OFD Sender: No OFD packet to send [02:16:55]OFD Sender: No OFD packet to send [02:17:00]OFD Sender: No OFD packet to send [02:17:05]OFD Sender: No OFD packet to send [02:17:10]OFD Sender: No OFD packet to send [02:17:15]OFD Sender: No OFD packet to send [02:17:20]OFD Sender: No OFD packet to send [02:17:25]OFD Sender: No OFD packet to send [02:17:30]OFD Sender: No OFD packet to send [02:17:35]OFD Sender: No OFD packet to send [02:17:40]OFD Sender: No OFD packet to send [02:17:45]OFD Sender: No OFD packet to send [02:17:50]OFD Sender: No OFD packet to send [02:17:55]OFD Sender: No OFD packet to send [02:18:00]OFD Sender: No OFD packet to send [02:18:05]OFD Sender: No OFD packet to send [02:18:10]OFD Sender: No OFD packet to send [02:18:15]OFD Sender: No OFD packet to send [02:18:20]OFD Sender: No OFD packet to send [02:18:25]OFD Sender: No OFD packet to send [02:18:30]OFD Sender: No OFD packet to send [02:18:35]OFD Sender: No OFD packet to send [02:18:40]OFD Sender: No OFD packet to send [02:18:45]OFD Sender: No OFD packet to send [02:18:50]OFD Sender: No OFD packet to send [02:18:55]OFD Sender: No OFD packet to send [02:19:00]OFD Sender: No OFD packet to send [02:19:05]OFD Sender: No OFD packet to send [02:19:10]OFD Sender: No OFD packet to send [02:19:15]OFD Sender: No OFD packet to send [02:19:20]OFD Sender: No OFD packet to send [02:19:25]OFD Sender: No OFD packet to send [02:19:30]OFD Sender: No OFD packet to send [02:19:35]OFD Sender: No OFD packet to send [02:19:40]OFD Sender: No OFD packet to send [02:19:45]OFD Sender: No OFD packet to send [02:19:50]OFD Sender: No OFD packet to send [02:19:55]OFD Sender: No OFD packet to send [02:20:00]OFD Sender: No OFD packet to send [02:20:05]OFD Sender: No OFD packet to send [02:20:10]OFD Sender: No OFD packet to send [02:20:15]OFD Sender: No OFD packet to send [02:20:20]OFD Sender: No OFD packet to send [02:20:25]OFD Sender: No OFD packet to send [02:20:30]OFD Sender: No OFD packet to send [02:20:35]OFD Sender: No OFD packet to send [02:20:40]OFD Sender: No OFD packet to send [02:20:45]OFD Sender: No OFD packet to send [02:20:50]OFD Sender: No OFD packet to send [02:20:55]OFD Sender: No OFD packet to send [02:21:00]OFD Sender: No OFD packet to send [02:21:05]OFD Sender: No OFD packet to send [02:21:10]OFD Sender: No OFD packet to send [02:21:15]OFD Sender: No OFD packet to send [02:21:20]OFD Sender: No OFD packet to send [02:21:25]OFD Sender: No OFD packet to send [02:21:30]OFD Sender: No OFD packet to send [02:21:35]OFD Sender: No OFD packet to send [02:21:40]OFD Sender: No OFD packet to send [02:21:45]OFD Sender: No OFD packet to send [02:21:50]OFD Sender: No OFD packet to send [02:21:55]OFD Sender: No OFD packet to send [02:22:00]OFD Sender: No OFD packet to send [02:22:05]OFD Sender: No OFD packet to send [02:22:10]OFD Sender: No OFD packet to send [02:22:15]OFD Sender: No OFD packet to send [02:22:20]OFD Sender: No OFD packet to send [02:22:25]OFD Sender: No OFD packet to send [02:22:30]OFD Sender: No OFD packet to send [02:22:35]OFD Sender: No OFD packet to send [02:22:40]OFD Sender: No OFD packet to send [02:22:45]OFD Sender: No OFD packet to send [02:22:50]OFD Sender: No OFD packet to send [02:22:55]OFD Sender: No OFD packet to send [02:23:00]OFD Sender: No OFD packet to send [02:23:05]OFD Sender: No OFD packet to send [02:23:10]OFD Sender: No OFD packet to send [02:23:15]OFD Sender: No OFD packet to send [02:23:20]OFD Sender: No OFD packet to send [02:23:25]OFD Sender: No OFD packet to send [02:23:30]OFD Sender: No OFD packet to send [02:23:35]OFD Sender: No OFD packet to send [02:23:40]OFD Sender: No OFD packet to send [02:23:45]OFD Sender: No OFD packet to send [02:23:50]OFD Sender: No OFD packet to send [02:23:55]OFD Sender: No OFD packet to send [02:24:00]OFD Sender: No OFD packet to send [02:24:05]OFD Sender: No OFD packet to send [02:24:10]OFD Sender: No OFD packet to send [02:24:15]OFD Sender: No OFD packet to send [02:24:20]OFD Sender: No OFD packet to send [02:24:25]OFD Sender: No OFD packet to send [02:24:30]OFD Sender: No OFD packet to send [02:24:35]OFD Sender: No OFD packet to send [02:24:40]OFD Sender: No OFD packet to send [02:24:45]OFD Sender: No OFD packet to send [02:24:50]OFD Sender: No OFD packet to send [02:24:55]OFD Sender: No OFD packet to send [02:25:00]OFD Sender: No OFD packet to send [02:25:05]OFD Sender: No OFD packet to send [02:25:10]OFD Sender: No OFD packet to send [02:25:15]OFD Sender: No OFD packet to send [02:25:20]OFD Sender: No OFD packet to send [02:25:25]OFD Sender: No OFD packet to send [02:25:30]OFD Sender: No OFD packet to send [02:25:35]OFD Sender: No OFD packet to send [02:25:40]OFD Sender: No OFD packet to send [02:25:45]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:50]OFD Sender: No OFD packet to send [02:26:55]OFD Sender: No OFD packet to send [02:27:00]OFD Sender: No OFD packet to send [02:27:05]OFD Sender: No OFD packet to send [02:27:10]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:30:00]OFD Sender: No OFD packet to send [02:30:05]OFD Sender: No OFD packet to send [02:30:10]OFD Sender: No OFD packet to send [02:30:15]OFD Sender: No OFD packet to send [02:30:20]OFD Sender: No OFD packet to send [02:30:25]OFD Sender: No OFD packet to send [02:30:30]OFD Sender: No OFD packet to send [02:30:35]OFD Sender: No OFD packet to send [02:30:40]OFD Sender: No OFD packet to send [02:30:45]OFD Sender: No OFD packet to send [02:30:50]OFD Sender: No OFD packet to send [02:30:55]OFD Sender: No OFD packet to send [02:31:00]OFD Sender: No OFD packet to send [02:31:05]OFD Sender: No OFD packet to send [02:31:10]OFD Sender: No OFD packet to send [02:31:15]OFD Sender: No OFD packet to send [02:31:20]OFD Sender: No OFD packet to send [02:31:25]OFD Sender: No OFD packet to send [02:31:30]OFD Sender: No OFD packet to send [02:31:35]OFD Sender: No OFD packet to send [02:31:40]OFD Sender: No OFD packet to send [02:31:45]OFD Sender: No OFD packet to send [02:31:51]OFD Sender: No OFD packet to send [02:31:56]OFD Sender: No OFD packet to send [02:32:01]OFD Sender: No OFD packet to send [02:32:06]OFD Sender: No OFD packet to send [02:32:11]OFD Sender: No OFD packet to send [02:32:16]OFD Sender: No OFD packet to send [02:32:21]OFD Sender: No OFD packet to send [02:32:26]OFD Sender: No OFD packet to send [02:32:31]OFD Sender: No OFD packet to send [02:32:36]OFD Sender: No OFD packet to send [02:32:41]OFD Sender: No OFD packet to send [02:32:46]OFD Sender: No OFD packet to send [02:32:51]OFD Sender: No OFD packet to send [02:32:56]OFD Sender: No OFD packet to send [02:33:01]OFD Sender: No OFD packet to send [02:33:06]OFD Sender: No OFD packet to send [02:33:11]OFD Sender: No OFD packet to send [02:33:16]OFD Sender: No OFD packet to send [02:33:21]OFD Sender: No OFD packet to send [02:33:26]OFD Sender: No OFD packet to send [02:33:31]OFD Sender: No OFD packet to send [02:33:36]OFD Sender: No OFD packet to send [02:33:41]OFD Sender: No OFD packet to send [02:33:46]OFD Sender: No OFD packet to send [02:33:51]OFD Sender: No OFD packet to send [02:33:56]OFD Sender: No OFD packet to send [02:34:01]OFD Sender: No OFD packet to send [02:34:06]OFD Sender: No OFD packet to send [02:34:11]OFD Sender: No OFD packet to send [02:34:16]OFD Sender: No OFD packet to send [02:34:21]OFD Sender: No OFD packet to send [02:34:26]OFD Sender: No OFD packet to send [02:34:31]OFD Sender: No OFD packet to send [02:34:36]OFD Sender: No OFD packet to send [02:34:41]OFD Sender: No OFD packet to send [02:34:46]OFD Sender: No OFD packet to send [02:34:51]OFD Sender: No OFD packet to send [02:34:56]OFD Sender: No OFD packet to send [02:35:01]OFD Sender: No OFD packet to send [02:35:06]OFD Sender: No OFD packet to send [02:35:11]OFD Sender: No OFD packet to send [02:35:16]OFD Sender: No OFD packet to send [02:35:21]OFD Sender: No OFD packet to send [02:35:26]OFD Sender: No OFD packet to send [02:35:31]OFD Sender: No OFD packet to send [02:35:36]OFD Sender: No OFD packet to send [02:35:41]OFD Sender: No OFD packet to send [02:35:46]OFD Sender: No OFD packet to send [02:35:51]OFD Sender: No OFD packet to send [02:35:56]OFD Sender: No OFD packet to send [02:36:01]OFD Sender: No OFD packet to send [02:36:06]OFD Sender: No OFD packet to send [02:36:11]OFD Sender: No OFD packet to send [02:36:16]OFD Sender: No OFD packet to send [02:36:21]OFD Sender: No OFD packet to send [02:36:26]OFD Sender: No OFD packet to send [02:36:31]OFD Sender: No OFD packet to send [02:36:36]OFD Sender: No OFD packet to send [02:36:41]OFD Sender: No OFD packet to send [02:36:46]OFD Sender: No OFD packet to send [02:36:51]OFD Sender: No OFD packet to send [02:36:56]OFD Sender: No OFD packet to send [02:37:01]OFD Sender: No OFD packet to send [02:37:06]OFD Sender: No OFD packet to send [02:37:11]OFD Sender: No OFD packet to send [02:37:16]OFD Sender: No OFD packet to send [02:37:21]OFD Sender: No OFD packet to send [02:37:26]OFD Sender: No OFD packet to send [02:37:31]OFD Sender: No OFD packet to send [02:37:36]OFD Sender: No OFD packet to send [02:37:41]OFD Sender: No OFD packet to send [02:37:46]OFD Sender: No OFD packet to send [02:37:51]OFD Sender: No OFD packet to send [02:37:56]OFD Sender: No OFD packet to send [02:38:01]OFD Sender: No OFD packet to send [02:38:06]OFD Sender: No OFD packet to send [02:38:11]OFD Sender: No OFD packet to send [02:38:16]OFD Sender: No OFD packet to send [02:38:21]OFD Sender: No OFD packet to send [02:38:26]OFD Sender: No OFD packet to send [02:38:31]OFD Sender: No OFD packet to send [02:38:36]OFD Sender: No OFD packet to send [02:38:41]OFD Sender: No OFD packet to send [02:38:46]OFD Sender: No OFD packet to send [02:38:51]OFD Sender: No OFD packet to send [02:38:56]OFD Sender: No OFD packet to send [02:39:01]OFD Sender: No OFD packet to send [02:39:06]OFD Sender: No OFD packet to send [02:39:11]OFD Sender: No OFD packet to send [02:39:16]OFD Sender: No OFD packet to send [02:39:21]OFD Sender: No OFD packet to send [02:39:26]OFD Sender: No OFD packet to send [02:39:31]OFD Sender: No OFD packet to send [02:39:36]OFD Sender: No OFD packet to send [02:39:41]OFD Sender: No OFD packet to send [02:39:46]OFD Sender: No OFD packet to send [02:39:51]OFD Sender: No OFD packet to send [02:39:56]OFD Sender: No OFD packet to send [02:40:01]OFD Sender: No OFD packet to send [02:40:06]OFD Sender: No OFD packet to send [02:40:11]OFD Sender: No OFD packet to send [02:40:16]OFD Sender: No OFD packet to send [02:40:21]OFD Sender: No OFD packet to send [02:40:26]OFD Sender: No OFD packet to send [02:40:31]OFD Sender: No OFD packet to send [02:40:36]OFD Sender: No OFD packet to send [02:40:41]OFD Sender: No OFD packet to send [02:40:46]OFD Sender: No OFD packet to send [02:40:51]OFD Sender: No OFD packet to send [02:40:56]OFD Sender: No OFD packet to send [02:41:01]OFD Sender: No OFD packet to send [02:41:06]OFD Sender: No OFD packet to send [02:41:11]OFD Sender: No OFD packet to send [02:41:16]OFD Sender: No OFD packet to send [02:41:21]OFD Sender: No OFD packet to send [02:41:26]OFD Sender: No OFD packet to send [02:41:31]OFD Sender: No OFD packet to send [02:41:36]OFD Sender: No OFD packet to send [02:41:41]OFD Sender: No OFD packet to send [02:41:46]OFD Sender: No OFD packet to send [02:41:51]OFD Sender: No OFD packet to send [02:41:56]OFD Sender: No OFD packet to send [02:42:01]OFD Sender: No OFD packet to send [02:42:06]OFD Sender: No OFD packet to send [02:42:11]OFD Sender: No OFD packet to send [02:42:16]OFD Sender: No OFD packet to send [02:42:21]OFD Sender: No OFD packet to send [02:42:26]OFD Sender: No OFD packet to send [02:42:31]OFD Sender: No OFD packet to send [02:42:36]OFD Sender: No OFD packet to send [02:42:41]OFD Sender: No OFD packet to send [02:42:46]OFD Sender: No OFD packet to send [02:42:51]OFD Sender: No OFD packet to send [02:42:56]OFD Sender: No OFD packet to send [02:43:01]OFD Sender: No OFD packet to send [02:43:06]OFD Sender: No OFD packet to send [02:43:11]OFD Sender: No OFD packet to send [02:43:16]OFD Sender: No OFD packet to send [02:43:21]OFD Sender: No OFD packet to send [02:43:26]OFD Sender: No OFD packet to send [02:43:31]OFD Sender: No OFD packet to send [02:43:36]OFD Sender: No OFD packet to send [02:43:41]OFD Sender: No OFD packet to send [02:43:46]OFD Sender: No OFD packet to send [02:43:51]OFD Sender: No OFD packet to send [02:43:56]OFD Sender: No OFD packet to send [02:44:01]OFD Sender: No OFD packet to send [02:44:06]OFD Sender: No OFD packet to send [02:44: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:06]OFD Sender: No OFD packet to send [02:46:11]OFD Sender: No OFD packet to send [02:46:16]OFD Sender: No OFD packet to send [02:46:21]OFD Sender: No OFD packet to send [02:46:26]OFD Sender: No OFD packet to send [02:46:31]OFD Sender: No OFD packet to send [02:46:36]OFD Sender: No OFD packet to send [02:46:41]OFD Sender: No OFD packet to send [02:46:46]OFD Sender: No OFD packet to send [02:46:52]OFD Sender: No OFD packet to send [02:46:57]OFD Sender: No OFD packet to send [02:47:02]OFD Sender: No OFD packet to send [02:47:07]OFD Sender: No OFD packet to send [02:47:12]OFD Sender: No OFD packet to send [02:47:17]OFD Sender: No OFD packet to send [02:47:22]OFD Sender: No OFD packet to send [02:47:27]OFD Sender: No OFD packet to send [02:47:32]OFD Sender: No OFD packet to send [02:47:37]OFD Sender: No OFD packet to send [02:47:42]OFD Sender: No OFD packet to send [02:47:47]OFD Sender: No OFD packet to send [02:47:52]OFD Sender: No OFD packet to send [02:47:57]OFD Sender: No OFD packet to send [02:48:02]OFD Sender: No OFD packet to send [02:48:07]OFD Sender: No OFD packet to send [02:48:12]OFD Sender: No OFD packet to send [02:48:17]OFD Sender: No OFD packet to send [02:48:22]OFD Sender: No OFD packet to send [02:48:27]OFD Sender: No OFD packet to send [02:48:32]OFD Sender: No OFD packet to send [02:48:37]OFD Sender: No OFD packet to send [02:48:42]OFD Sender: No OFD packet to send [02:48:47]OFD Sender: No OFD packet to send [02:48:52]OFD Sender: No OFD packet to send [02:48:57]OFD Sender: No OFD packet to send [02:49:02]OFD Sender: No OFD packet to send [02:49:07]OFD Sender: No OFD packet to send [02:49:12]OFD Sender: No OFD packet to send [02:49:17]OFD Sender: No OFD packet to send [02:49:22]OFD Sender: No OFD packet to send [02:49:27]OFD Sender: No OFD packet to send [02:49:32]OFD Sender: No OFD packet to send [02:49:37]OFD Sender: No OFD packet to send [02:49:42]OFD Sender: No OFD packet to send [02:49:47]OFD Sender: No OFD packet to send [02:49:52]OFD Sender: No OFD packet to send [02:49:57]OFD Sender: No OFD packet to send [02:50:02]OFD Sender: No OFD packet to send [02:50:07]OFD Sender: No OFD packet to send [02:50:12]OFD Sender: No OFD packet to send [02:50:17]OFD Sender: No OFD packet to send [02:50:22]OFD Sender: No OFD packet to send [02:50:27]OFD Sender: No OFD packet to send [02:50:32]OFD Sender: No OFD packet to send [02:50:37]OFD Sender: No OFD packet to send [02:50:42]OFD Sender: No OFD packet to send [02:50:47]OFD Sender: No OFD packet to send [02:50:52]OFD Sender: No OFD packet to send [02:50:57]OFD Sender: No OFD packet to send [02:51:02]OFD Sender: No OFD packet to send [02:51:07]OFD Sender: No OFD packet to send [02:51:12]OFD Sender: No OFD packet to send [02:51:17]OFD Sender: No OFD packet to send [02:51:22]OFD Sender: No OFD packet to send [02:51:27]OFD Sender: No OFD packet to send [02:51:32]OFD Sender: No OFD packet to send [02:51:37]OFD Sender: No OFD packet to send [02:51:42]OFD Sender: No OFD packet to send [02:51:47]OFD Sender: No OFD packet to send [02:51:52]OFD Sender: No OFD packet to send [02:51:57]OFD Sender: No OFD packet to send [02:52:02]OFD Sender: No OFD packet to send [02:52:07]OFD Sender: No OFD packet to send [02:52:12]OFD Sender: No OFD packet to send [02:52:17]OFD Sender: No OFD packet to send [02:52:22]OFD Sender: No OFD packet to send [02:52:27]OFD Sender: No OFD packet to send [02:52:32]OFD Sender: No OFD packet to send [02:52:37]OFD Sender: No OFD packet to send [02:52:42]OFD Sender: No OFD packet to send [02:52:47]OFD Sender: No OFD packet to send [02:52:52]OFD Sender: No OFD packet to send [02:52:57]OFD Sender: No OFD packet to send [02:53:02]OFD Sender: No OFD packet to send [02:53:07]OFD Sender: No OFD packet to send [02:53:12]OFD Sender: No OFD packet to send [02:53:17]OFD Sender: No OFD packet to send [02:53:22]OFD Sender: No OFD packet to send [02:53:27]OFD Sender: No OFD packet to send [02:53:32]OFD Sender: No OFD packet to send [02:53:37]OFD Sender: No OFD packet to send [02:53:42]OFD Sender: No OFD packet to send [02:53:47]OFD Sender: No OFD packet to send [02:53:52]OFD Sender: No OFD packet to send [02:53:57]OFD Sender: No OFD packet to send [02:54:02]OFD Sender: No OFD packet to send [02:54:07]OFD Sender: No OFD packet to send [02:54:12]OFD Sender: No OFD packet to send [02:54:17]OFD Sender: No OFD packet to send [02:54:22]OFD Sender: No OFD packet to send [02:54:27]OFD Sender: No OFD packet to send [02:54:32]OFD Sender: No OFD packet to send [02:54:37]OFD Sender: No OFD packet to send [02:54:42]OFD Sender: No OFD packet to send [02:54:47]OFD Sender: No OFD packet to send [02:54:52]OFD Sender: No OFD packet to send [02:54:57]OFD Sender: No OFD packet to send [02:55:02]OFD Sender: No OFD packet to send [02:55:07]OFD Sender: No OFD packet to send [02:55:12]OFD Sender: No OFD packet to send [02:55:17]OFD Sender: No OFD packet to send [02:55:22]OFD Sender: No OFD packet to send [02:55:27]OFD Sender: No OFD packet to send [02:55:32]OFD Sender: No OFD packet to send [02:55:37]OFD Sender: No OFD packet to send [02:55:42]OFD Sender: No OFD packet to send [02:55:47]OFD Sender: No OFD packet to send [02:55:52]OFD Sender: No OFD packet to send [02:55:57]OFD Sender: No OFD packet to send [02:56:02]OFD Sender: No OFD packet to send [02:56:07]OFD Sender: No OFD packet to send [02:56:12]OFD Sender: No OFD packet to send [02:56:17]OFD Sender: No OFD packet to send [02:56:22]OFD Sender: No OFD packet to send [02:56:27]OFD Sender: No OFD packet to send [02:56:32]OFD Sender: No OFD packet to send [02:56:37]OFD Sender: No OFD packet to send [02:56:42]OFD Sender: No OFD packet to send [02:56:47]OFD Sender: No OFD packet to send [02:56:52]OFD Sender: No OFD packet to send [02:56:57]OFD Sender: No OFD packet to send [02:57:02]OFD Sender: No OFD packet to send [02:57:07]OFD Sender: No OFD packet to send [02:57:12]OFD Sender: No OFD packet to send [02:57:17]OFD Sender: No OFD packet to send [02:57:22]OFD Sender: No OFD packet to send [02:57:27]OFD Sender: No OFD packet to send [02:57:32]OFD Sender: No OFD packet to send [02:57:37]OFD Sender: No OFD packet to send [02:57:42]OFD Sender: No OFD packet to send [02:57:47]OFD Sender: No OFD packet to send [02:57:52]OFD Sender: No OFD packet to send [02:57:57]OFD Sender: No OFD packet to send [02:58:02]OFD Sender: No OFD packet to send [02:58:07]OFD Sender: No OFD packet to send [02:58:12]OFD Sender: No OFD packet to send [02:58:17]OFD Sender: No OFD packet to send [02:58:22]OFD Sender: No OFD packet to send [02:58:27]OFD Sender: No OFD packet to send [02:58:32]OFD Sender: No OFD packet to send [02:58:37]OFD Sender: No OFD packet to send [02:58:42]OFD Sender: No OFD packet to send [02:58:47]OFD Sender: No OFD packet to send [02:58:52]OFD Sender: No OFD packet to send [02:58:57]OFD Sender: No OFD packet to send [02:59:02]OFD Sender: No OFD packet to send [02:59:07]OFD Sender: No OFD packet to send [02:59:12]OFD Sender: No OFD packet to send [02:59:17]OFD Sender: No OFD packet to send [02:59:22]OFD Sender: No OFD packet to send [02:59:27]OFD Sender: No OFD packet to send [02:59:32]OFD Sender: No OFD packet to send [02:59:37]OFD Sender: No OFD packet to send [02:59:42]OFD Sender: No OFD packet to send [02:59:47]OFD Sender: No OFD packet to send [02:59:52]OFD Sender: No OFD packet to send [02:59:57]OFD Sender: No OFD packet to send [03:00:02]OFD Sender: No OFD packet to send [03:00:07]OFD Sender: No OFD packet to send [03:00:12]OFD Sender: No OFD packet to send [03:00:17]OFD Sender: No OFD packet to send [03:00:22]OFD Sender: No OFD packet to send [03:00:27]OFD Sender: No OFD packet to send [03:00:32]OFD Sender: No OFD packet to send [03:00:37]OFD Sender: No OFD packet to send [03:00:42]OFD Sender: No OFD packet to send [03:00:47]OFD Sender: No OFD packet to send [03:00:52]OFD Sender: No OFD packet to send [03:00:57]OFD Sender: No OFD packet to send [03:01:02]OFD Sender: No OFD packet to send [03:01:07]OFD Sender: No OFD packet to send [03:01:12]OFD Sender: No OFD packet to send [03:01:17]OFD Sender: No OFD packet to send [03:01:22]OFD Sender: No OFD packet to send [03:01:27]OFD Sender: No OFD packet to send [03:01:32]OFD Sender: No OFD packet to send [03:01:37]OFD Sender: No OFD packet to send [03:01:42]OFD Sender: No OFD packet to send [03:01:47]OFD Sender: No OFD packet to send [03:01:53]OFD Sender: No OFD packet to send [03:01:58]OFD Sender: No OFD packet to send [03:02:03]OFD Sender: No OFD packet to send [03:02:08]OFD Sender: No OFD packet to send [03:02:13]OFD Sender: No OFD packet to send [03:02:18]OFD Sender: No OFD packet to send [03:02:23]OFD Sender: No OFD packet to send [03:02:28]OFD Sender: No OFD packet to send [03:02:33]OFD Sender: No OFD packet to send [03:02:38]OFD Sender: No OFD packet to send [03:02:43]OFD Sender: No OFD packet to send [03:02:48]OFD Sender: No OFD packet to send [03:02:53]OFD Sender: No OFD packet to send [03:02:58]OFD Sender: No OFD packet to send [03:03:03]OFD Sender: No OFD packet to send [03:03:08]OFD Sender: No OFD packet to send [03:03:13]OFD Sender: No OFD packet to send [03:03:18]OFD Sender: No OFD packet to send [03:03:23]OFD Sender: No OFD packet to send [03:03:28]OFD Sender: No OFD packet to send [03:03:33]OFD Sender: No OFD packet to send [03:03:38]OFD Sender: No OFD packet to send [03:03:43]OFD Sender: No OFD packet to send [03:03:48]OFD Sender: No OFD packet to send [03:03:53]OFD Sender: No OFD packet to send [03:03:58]OFD Sender: No OFD packet to send [03:04:03]OFD Sender: No OFD packet to send [03:04:08]OFD Sender: No OFD packet to send [03:04:13]OFD Sender: No OFD packet to send [03:04:18]OFD Sender: No OFD packet to send [03:04:23]OFD Sender: No OFD packet to send [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:53]OFD Sender: No OFD packet to send [03:05:58]OFD Sender: No OFD packet to send [03:06:03]OFD Sender: No OFD packet to send [03:06:08]OFD Sender: No OFD packet to send [03:06:13]OFD Sender: No OFD packet to send [03:06:18]OFD Sender: No OFD packet to send [03:06:23]OFD Sender: No OFD packet to send [03:06:28]OFD Sender: No OFD packet to send [03:06:33]OFD Sender: No OFD packet to send [03:06:38]OFD Sender: No OFD packet to send [03:06:43]OFD Sender: No OFD packet to send [03:06:48]OFD Sender: No OFD packet to send [03:06:53]OFD Sender: No OFD packet to send [03:06:58]OFD Sender: No OFD packet to send [03:07:03]OFD Sender: No OFD packet to send [03:07:08]OFD Sender: No OFD packet to send [03:07:13]OFD Sender: No OFD packet to send [03:07:18]OFD Sender: No OFD packet to send [03:07:23]OFD Sender: No OFD packet to send [03:07:28]OFD Sender: No OFD packet to send [03:07:33]OFD Sender: No OFD packet to send [03:07:38]OFD Sender: No OFD packet to send [03:07:43]OFD Sender: No OFD packet to send [03:07:48]OFD Sender: No OFD packet to send [03:07:53]OFD Sender: No OFD packet to send [03:07:58]OFD Sender: No OFD packet to send [03:08:03]OFD Sender: No OFD packet to send [03:08:08]OFD Sender: No OFD packet to send [03:08:13]OFD Sender: No OFD packet to send [03:08:18]OFD Sender: No OFD packet to send [03:08:23]OFD Sender: No OFD packet to send [03:08:28]OFD Sender: No OFD packet to send [03:08:33]OFD Sender: No OFD packet to send [03:08:38]OFD Sender: No OFD packet to send [03:08:43]OFD Sender: No OFD packet to send [03:08:48]OFD Sender: No OFD packet to send [03:08:53]OFD Sender: No OFD packet to send [03:08:58]OFD Sender: No OFD packet to send [03:09:03]OFD Sender: No OFD packet to send [03:09:08]OFD Sender: No OFD packet to send [03:09:13]OFD Sender: No OFD packet to send [03:09:18]OFD Sender: No OFD packet to send [03:09:23]OFD Sender: No OFD packet to send [03:09:28]OFD Sender: No OFD packet to send [03:09:33]OFD Sender: No OFD packet to send [03:09:38]OFD Sender: No OFD packet to send [03:09:43]OFD Sender: No OFD packet to send [03:09:48]OFD Sender: No OFD packet to send [03:09:53]OFD Sender: No OFD packet to send [03:09:58]OFD Sender: No OFD packet to send [03:10:03]OFD Sender: No OFD packet to send [03:10:08]OFD Sender: No OFD packet to send [03:10:13]OFD Sender: No OFD packet to send [03:10:18]OFD Sender: No OFD packet to send [03:10:23]OFD Sender: No OFD packet to send [03:10:28]OFD Sender: No OFD packet to send [03:10:33]OFD Sender: No OFD packet to send [03:10:38]OFD Sender: No OFD packet to send [03:10:43]OFD Sender: No OFD packet to send [03:10:48]OFD Sender: No OFD packet to send [03:10:53]OFD Sender: No OFD packet to send [03:10:58]OFD Sender: No OFD packet to send [03:11:03]OFD Sender: No OFD packet to send [03:11:08]OFD Sender: No OFD packet to send [03:11:13]OFD Sender: No OFD packet to send [03:11:18]OFD Sender: No OFD packet to send [03:11:23]OFD Sender: No OFD packet to send [03:11:28]OFD Sender: No OFD packet to send [03:11:33]OFD Sender: No OFD packet to send [03:11:38]OFD Sender: No OFD packet to send [03:11:43]OFD Sender: No OFD packet to send [03:11:48]OFD Sender: No OFD packet to send [03:11:53]OFD Sender: No OFD packet to send [03:11:58]OFD Sender: No OFD packet to send [03:12:03]OFD Sender: No OFD packet to send [03:12:08]OFD Sender: No OFD packet to send [03:12:13]OFD Sender: No OFD packet to send [03:12:18]OFD Sender: No OFD packet to send [03:12:23]OFD Sender: No OFD packet to send [03:12:28]OFD Sender: No OFD packet to send [03:12:33]OFD Sender: No OFD packet to send [03:12:38]OFD Sender: No OFD packet to send [03:12:43]OFD Sender: No OFD packet to send [03:12:48]OFD Sender: No OFD packet to send [03:12:53]OFD Sender: No OFD packet to send [03:12:58]OFD Sender: No OFD packet to send [03:13:03]OFD Sender: No OFD packet to send [03:13:08]OFD Sender: No OFD packet to send [03:13:13]OFD Sender: No OFD packet to send [03:13:18]OFD Sender: No OFD packet to send [03:13:23]OFD Sender: No OFD packet to send [03:13:28]OFD Sender: No OFD packet to send [03:13:33]OFD Sender: No OFD packet to send [03:13:38]OFD Sender: No OFD packet to send [03:13:43]OFD Sender: No OFD packet to send [03:13:48]OFD Sender: No OFD packet to send [03:13:53]OFD Sender: No OFD packet to send [03:13:58]OFD Sender: No OFD packet to send [03:14:03]OFD Sender: No OFD packet to send [03:14:08]OFD Sender: No OFD packet to send [03:14:13]OFD Sender: No OFD packet to send [03:14:18]OFD Sender: No OFD packet to send [03:14:23]OFD Sender: No OFD packet to send [03:14:28]OFD Sender: No OFD packet to send [03:14:33]OFD Sender: No OFD packet to send [03:14:38]OFD Sender: No OFD packet to send [03:14:43]OFD Sender: No OFD packet to send [03:14:48]OFD Sender: No OFD packet to send [03:14:53]OFD Sender: No OFD packet to send [03:14:58]OFD Sender: No OFD packet to send [03:15:03]OFD Sender: No OFD packet to send [03:15:08]OFD Sender: No OFD packet to send [03:15:13]OFD Sender: No OFD packet to send [03:15:18]OFD Sender: No OFD packet to send [03:15:23]OFD Sender: No OFD packet to send [03:15:28]OFD Sender: No OFD packet to send [03:15:33]OFD Sender: No OFD packet to send [03:15:38]OFD Sender: No OFD packet to send [03:15:43]OFD Sender: No OFD packet to send [03:15:48]OFD Sender: No OFD packet to send [03:15:53]OFD Sender: No OFD packet to send [03:15:58]OFD Sender: No OFD packet to send [03:16:03]OFD Sender: No OFD packet to send [03:16:08]OFD Sender: No OFD packet to send [03:16:13]OFD Sender: No OFD packet to send [03:16:18]OFD Sender: No OFD packet to send [03:16:23]OFD Sender: No OFD packet to send [03:16:28]OFD Sender: No OFD packet to send [03:16:33]OFD Sender: No OFD packet to send [03:16:38]OFD Sender: No OFD packet to send [03:16:43]OFD Sender: No OFD packet to send [03:16:48]OFD Sender: No OFD packet to send [03:16:53]OFD Sender: No OFD packet to send [03:16:59]OFD Sender: No OFD packet to send [03:17:04]OFD Sender: No OFD packet to send [03:17:09]OFD Sender: No OFD packet to send [03:17:14]OFD Sender: No OFD packet to send [03:17:19]OFD Sender: No OFD packet to send [03:17:24]OFD Sender: No OFD packet to send [03:17:29]OFD Sender: No OFD packet to send [03:17:34]OFD Sender: No OFD packet to send [03:17:39]OFD Sender: No OFD packet to send [03:17:44]OFD Sender: No OFD packet to send [03:17:49]OFD Sender: No OFD packet to send [03:17:54]OFD Sender: No OFD packet to send [03:17:59]OFD Sender: No OFD packet to send [03:18:04]OFD Sender: No OFD packet to send [03:18:09]OFD Sender: No OFD packet to send [03:18:14]OFD Sender: No OFD packet to send [03:18:19]OFD Sender: No OFD packet to send [03:18:24]OFD Sender: No OFD packet to send [03:18:29]OFD Sender: No OFD packet to send [03:18:34]OFD Sender: No OFD packet to send [03:18:39]OFD Sender: No OFD packet to send [03:18:44]OFD Sender: No OFD packet to send [03:18:49]OFD Sender: No OFD packet to send [03:18:54]OFD Sender: No OFD packet to send [03:18:59]OFD Sender: No OFD packet to send [03:19:04]OFD Sender: No OFD packet to send [03:19:09]OFD Sender: No OFD packet to send [03:19:14]OFD Sender: No OFD packet to send [03:19:19]OFD Sender: No OFD packet to send [03:19:24]OFD Sender: No OFD packet to send [03:19:29]OFD Sender: No OFD packet to send [03:19:34]OFD Sender: No OFD packet to send [03:19:39]OFD Sender: No OFD packet to send [03:19:44]OFD Sender: No OFD packet to send [03:19:49]OFD Sender: No OFD packet to send [03:19:54]OFD Sender: No OFD packet to send [03:19:59]OFD Sender: No OFD packet to send [03:20:04]OFD Sender: No OFD packet to send [03:20:09]OFD Sender: No OFD packet to send [03:20:14]OFD Sender: No OFD packet to send [03:20:19]OFD Sender: No OFD packet to send [03:20:24]OFD Sender: No OFD packet to send [03:20:29]OFD Sender: No OFD packet to send [03:20:34]OFD Sender: No OFD packet to send [03:20:39]OFD Sender: No OFD packet to send [03:20:44]OFD Sender: No OFD packet to send [03:20:49]OFD Sender: No OFD packet to send [03:20:54]OFD Sender: No OFD packet to send [03:20:59]OFD Sender: No OFD packet to send [03:21:04]OFD Sender: No OFD packet to send [03:21:09]OFD Sender: No OFD packet to send [03:21:14]OFD Sender: No OFD packet to send [03:21:19]OFD Sender: No OFD packet to send [03:21:24]OFD Sender: No OFD packet to send [03:21:29]OFD Sender: No OFD packet to send [03:21:34]OFD Sender: No OFD packet to send